/* PACK RAT — screen layouts (css/theme.css has the components). 360x640 -> 1920x1080, touch + keyboard. */

/* ------------------------------------------------------------------ common screen frame */
.scr-head { flex: none; display: flex; align-items: center; gap: 12px; padding: calc(var(--sat) + 10px) calc(var(--pr-gutter) + var(--sar)) 8px calc(var(--pr-gutter) + var(--sal)); }
.hd-title { font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--pr-paper); text-shadow: 0 3px 0 rgba(0, 0, 0, .3); flex: 1; }
.hd-right { display: flex; gap: 8px; align-items: center; }
.scr-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 8px calc(var(--pr-gutter) + var(--sar)) 24px calc(var(--pr-gutter) + var(--sal)); display: flex; flex-direction: column; align-items: center; gap: 18px; -webkit-overflow-scrolling: touch; }
.scr-body > * { width: 100%; max-width: 1120px; flex: none; }
.scr-body.narrow > * { max-width: 640px; }
.scr-foot { flex: none; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 12px var(--pr-gutter) calc(var(--sab) + 14px); background: linear-gradient(0deg, rgba(8, 24, 21, .75), rgba(8, 24, 21, 0)); }
.mp-head { text-align: center; font-size: clamp(1.7rem, 5vw, 2.6rem); color: var(--pr-paper); text-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.mp-sub { text-align: center; color: rgba(255, 246, 227, .8); font-weight: 500; margin-top: -8px; }
.map-say { max-width: 640px !important; margin: 0 auto; }
.map-say .say { font-size: .95rem; }
.rise { animation: pr-rise .5s var(--pr-ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes pr-rise { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
.flip { animation: pr-flip .6s var(--pr-ease) both; animation-delay: calc(var(--i, 0) * 110ms + 100ms); transform-origin: 50% 60%; }
@keyframes pr-flip { from { opacity: 0; transform: perspective(700px) rotateY(80deg) translateY(30px); } to { opacity: 1; transform: none; } }
kbd { position: absolute; top: 8px; right: 10px; font: 600 .72rem var(--pr-font-ui); color: var(--pr-ink-soft); background: rgba(29, 43, 42, .09); border-radius: 5px; padding: .05em .45em; box-shadow: inset 0 -2px 0 rgba(29, 43, 42, .15); pointer-events: none; }
@media (hover: none) { kbd { display: none; } }

/* every screen's root fills the frame (menu, level, splash and the no-WebGL card position themselves) */
.pr-screen > div:not(.menu):not(.lv):not(.nogl):not(.splash-host) { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* run header (map / intro / draft / shop / rest) */
.runbar { flex-wrap: wrap; row-gap: 6px; }
.rb-title { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; flex: 1; min-width: 150px; }
.rb-title small { color: rgba(255, 246, 227, .75); font-weight: 600; }
.rb-stats { display: flex; align-items: center; gap: 12px; }
.lv-cash { display: inline-flex; align-items: center; gap: .3em; font-family: var(--pr-font-display); font-size: 1.15rem; color: var(--pr-brand-accent); text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.lv-rep { display: inline-flex; gap: 3px; } .lv-rep .ic { width: 1.5em; height: 1.5em; } .lv-rep .on { color: var(--pr-brand-accent); fill: color-mix(in srgb, var(--pr-brand-accent) 35%, transparent); } .lv-rep .off { color: rgba(255, 246, 227, .28); }
.tok { display: inline-flex; align-items: center; gap: .25em; font-weight: 700; font-size: .85rem; background: rgba(255, 246, 227, .12); padding: .2em .6em; border-radius: 99px; }
.lv-perks { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.lv-perks .none { color: rgba(255, 246, 227, .55); font-weight: 500; }
.pk { position: relative; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--rc, #c99358); color: #2b1a08; box-shadow: 0 2px 0 rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .45); }
.pk .ic { width: 18px; height: 18px; }
.pk.r-common { --rc: #d9a86a; } .pk.r-rare { --rc: #3fbfa3; color: #063b30; } .pk.r-legendary { --rc: #ffc531; }
.lv-perks.big .pk { width: 42px; height: 42px; } .lv-perks.big .pk .ic { width: 24px; height: 24px; }
@media (max-width: 720px) { .runbar .lv-perks { order: 9; flex-basis: 100%; } .rb-stats { gap: 8px; } }

/* ------------------------------------------------------------------ menu */
.menu { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 64px); padding: calc(var(--sat) + 18px) calc(var(--pr-gutter) + var(--sar)) calc(var(--sab) + 18px) calc(var(--pr-gutter) + var(--sal)); overflow-y: auto; }
.menu-main { width: min(520px, 100%); display: flex; flex-direction: column; gap: 12px; margin: auto 0; }
.menu .logo { text-align: center; margin-bottom: 6px; }
.menu .logo h1 { font-size: clamp(3.2rem, 10vw, 5.4rem); color: var(--pr-brand-accent); letter-spacing: .07em; text-shadow: 0 3px 0 #c47d00, 0 7px 0 rgba(0, 0, 0, .35), 0 12px 24px rgba(0, 0, 0, .35); line-height: .95; transform: rotate(-1.5deg); }
.menu .logo p { color: rgba(255, 246, 227, .85); font-weight: 600; letter-spacing: .06em; margin-top: .5em; }
.menu-items { display: flex; flex-direction: column; gap: 10px; }
.menu-item { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 10px 16px 10px 10px; border: 0; border-radius: 8px; color: #f8f3e6; cursor: pointer; background: linear-gradient(180deg, #2f4140, #1c2927); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -3px 0 rgba(0, 0, 0, .4), 0 5px 0 rgba(0, 0, 0, .28), 0 10px 16px rgba(0, 0, 0, .25); transition: transform .14s var(--pr-ease), filter .15s; min-height: 58px; font: inherit; }
.menu-item:hover:not(:disabled), .menu-item:focus-visible { transform: translateX(8px) rotate(-.5deg); filter: brightness(1.12); }
.menu-item:active { transform: translateX(4px) translateY(3px); }
.menu-item .mi-ic { flex: none; width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: var(--pr-brand-accent); color: #2b2412; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
.menu-item .mi-ic .ic { width: 24px; height: 24px; }
.menu-item .mi-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.menu-item b { font-family: var(--pr-font-display); font-weight: 400; font-size: 1.2rem; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 -1px 0 rgba(255, 255, 255, .15); }
.menu-item small { opacity: .75; font-size: .82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item .mi-go { opacity: .5; }
.menu-item.primary { background: linear-gradient(180deg, #ffd35e, #f0a90f); color: #2b2412; min-height: 76px; }
.menu-item.primary b { font-size: 1.55rem; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.menu-item.primary .mi-ic { background: #2b2412; color: var(--pr-brand-accent); width: 52px; height: 52px; }
.menu-item.primary small { opacity: .8; }
.menu-small { display: flex; gap: 10px; justify-content: center; }
.ot-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: rgba(255, 246, 227, .85); font-weight: 600; padding-left: 6px; }
.seg { display: inline-flex; background: rgba(0, 0, 0, .28); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: rgba(255, 246, 227, .85); font-weight: 600; padding: .4em .85em; border-radius: 9px; display: inline-flex; align-items: center; gap: .35em; min-height: 36px; }
.seg button.on { background: var(--pr-paper); color: var(--pr-ink); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.menu-side { width: min(340px, 100%); display: flex; flex-direction: column; gap: 16px; margin: auto 0; }
.tipbox .say { font-size: .9rem; }
.best h3, .sp h3 { font-size: 1.3rem; color: var(--pr-brand-dark); margin-bottom: .5em; }
.bs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.bs small, .facts small, .jt-stats small, .dl-facts small, .gd-facts small, .sum-facts small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--pr-ink-soft); font-weight: 700; }
.bs b, .facts b, .dl-facts b, .gd-facts b, .sum-facts b { font-family: var(--pr-font-display); font-weight: 400; font-size: 1.3rem; color: var(--pr-brand-dark); }
.sp { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .7em; } .sp p { font-weight: 600; color: var(--pr-ink-soft); }
@media (max-width: 900px) { .menu { flex-direction: column; justify-content: flex-start; padding-top: calc(var(--sat) + 14px); } .menu-main, .menu-side { margin: 0 auto; width: min(560px, 100%); } .menu-side { flex-direction: column; } }
@media (max-height: 560px) and (orientation: landscape) { .menu { align-items: flex-start; } .menu .logo h1 { font-size: 2.6rem; } .menu-item { min-height: 46px; } .menu-item.primary { min-height: 58px; } }

/* ------------------------------------------------------------------ map */
.ovwrap { overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; max-width: 1120px; margin: 0 auto; border-radius: 16px; }
svg.ov { display: block; margin: 0 auto; min-width: 100%; }
.ov-act { font: 400 12px var(--pr-font-display); letter-spacing: .2em; fill: rgba(255, 246, 227, .7); }
.ov-edge { stroke: rgba(255, 246, 227, .2); stroke-width: 3; stroke-dasharray: 2 7; } .ov-edge.seen { stroke: var(--pr-brand-accent); stroke-dasharray: none; stroke-width: 4; } .ov-edge.live { stroke: rgba(255, 246, 227, .85); stroke-dasharray: 5 6; animation: pr-march 1s linear infinite; }
@keyframes pr-march { to { stroke-dashoffset: -22; } }
.ov-node .bg { fill: #2b3f3e; stroke: rgba(255, 246, 227, .35); stroke-width: 2.5; } .ov-node .ic-g { stroke: rgba(255, 246, 227, .7); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .ov-node .ic-g .fill { fill: currentColor; }
.ov-node.t-mini .bg, .ov-node.t-final .bg { fill: #6a4a12; stroke: var(--pr-brand-accent); } .ov-node.t-rush .bg { fill: #6b2b28; } .ov-node.t-friendly .bg, .ov-node.t-member .bg { fill: #1f5a4b; } .ov-node.t-shop .bg, .ov-node.t-rest .bg { fill: #3d3a55; }
.ov-node.done .bg { fill: var(--pr-brand-accent); stroke: #fff6e3; } .ov-node.done .ic-g { stroke: #2b2412; }
.ov-node.opt .bg { stroke: #fff6e3; stroke-width: 3.5; animation: pr-node 1.3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; } .ov-node.opt .ic-g { stroke: #fff6e3; }
.ov-node.skipped { opacity: .35; }
@keyframes pr-node { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 22px; padding: 26px 0 6px; }
.pr-tag.job { width: min(292px, 100%); text-align: left; display: flex; flex-direction: column; gap: 9px; border: 0; cursor: pointer; font: inherit; transition: transform .16s var(--pr-ease), box-shadow .16s; padding-top: 32px; }
.pr-tag.job:hover { transform: translateY(-6px) rotate(-.6deg); } .pr-tag.job:nth-child(2):hover { transform: translateY(-6px) rotate(.6deg); }
.pr-tag.job.sel { transform: translateY(-10px) scale(1.03); box-shadow: 0 0 0 4px var(--pr-brand-accent), var(--pr-shadow); }
.jt-top { display: flex; gap: 6px; flex-wrap: wrap; }
.jt-who { display: flex; gap: 12px; align-items: center; } .jt-who h3 { font-size: 1.3rem; color: var(--pr-brand-dark); } .jt-who small { color: var(--pr-ink-soft); font-weight: 600; display: block; margin-top: 2px; }
.jt-line { font-size: .85rem; color: var(--pr-ink-soft); font-weight: 500; min-height: 2.6em; }
.jt-plan { display: flex; align-items: center; gap: 10px; background: rgba(29, 43, 42, .06); border-radius: 10px; padding: 4px 8px; } .jt-plan svg { flex: none; }
.jt-unit b { font-family: var(--pr-font-display); font-weight: 400; font-size: 1.5rem; color: var(--pr-brand-dark); display: block; line-height: 1; } .jt-unit small { color: var(--pr-ink-soft); font-weight: 600; }
.jt-stats { display: flex; justify-content: space-between; gap: 8px; } .jt-stats b { font-family: var(--pr-font-display); font-weight: 400; font-size: 1.15rem; color: var(--pr-brand-dark); display: block; } .jt-stats .pay b { color: #1d7a44; }
.jt-tw { display: flex; gap: 5px; flex-wrap: wrap; }
.pr-tag.job.t-rest, .pr-tag.job.t-shop { align-items: center; text-align: center; } .jt-art { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(29, 43, 42, .08); color: var(--pr-brand); } .jt-art .ic { width: 46px; height: 46px; } .jt-help { color: var(--pr-ink-soft); font-weight: 500; }
.pr-tag.job.t-rush { background-image: var(--pr-grain), linear-gradient(180deg, #fffaf0, #ffe9d6); } .pr-tag.job.t-mini, .pr-tag.job.t-final { background-image: var(--pr-grain), linear-gradient(180deg, #fff7dc, #ffe39a); }

/* intro */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 14px; }
.intro-card { display: flex; flex-direction: column; gap: 12px; padding-top: 36px; }
.ic-who { display: flex; gap: 16px; align-items: center; } .ic-who h2 { font-size: 1.9rem; color: var(--pr-brand-dark); } .ic-who .sub { color: var(--pr-ink-soft); font-weight: 600; }
.quote { background: rgba(29, 43, 42, .07); border-left: 5px solid var(--pr-brand-accent); border-radius: 4px 12px 12px 4px; padding: .7em 1em; font-weight: 500; font-style: italic; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tw { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .tw li { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; font-weight: 500; color: var(--pr-ink-soft); } .tw .pr-chip { flex: none; }
.calm { color: var(--pr-ink-soft); font-weight: 600; } .act-syn small { display: block; color: var(--pr-ink-soft); font-weight: 700; text-transform: uppercase; font-size: .7rem; letter-spacing: .1em; margin-bottom: 4px; } .act-syn div { display: flex; gap: 5px; flex-wrap: wrap; }
.intro-side { display: flex; flex-direction: column; gap: 16px; }
.plan-wrap { padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; } .pl-cap { text-align: center; } .pl-cap b { font-family: var(--pr-font-display); font-weight: 400; font-size: 1.15rem; display: block; } .pl-cap small { color: var(--pr-ink-soft); font-weight: 500; }
svg.plan { max-width: 100%; height: auto; } .plan-lbl { font: 600 9px var(--pr-font-ui); fill: #fff; pointer-events: none; paint-order: stroke; stroke: rgba(0, 0, 0, .45); stroke-width: 2px; }
.loadout { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; } .loadout h4 { font-size: 1.05rem; } .loadout small { color: var(--pr-ink-soft); font-weight: 500; }
.step { display: flex; align-items: center; gap: 8px; font-weight: 600; } .step span { flex: 1; } .step b { min-width: 1.5em; text-align: center; font-family: var(--pr-font-display); font-weight: 400; font-size: 1.2rem; }
@media (max-width: 820px) { .intro-grid { grid-template-columns: 1fr; } .facts { grid-template-columns: repeat(2, 1fr); } }

/* break room */
.rest-opts { display: flex; flex-wrap: wrap; gap: 24px 20px; justify-content: center; padding-top: 22px; }
.rest-opt, .svc-tile { position: relative; width: min(250px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; font: inherit; cursor: pointer; transition: transform .16s var(--pr-ease), filter .15s; }
.rest-opt:hover:not(:disabled), .svc-tile:hover:not(:disabled) { transform: translateY(-6px) rotate(-.7deg); }
.rest-opt:disabled:not(.picked), .svc-tile:disabled { filter: grayscale(.6) brightness(.85); cursor: not-allowed; } .rest-opt.picked { box-shadow: 0 0 0 4px var(--pr-brand-accent), var(--pr-shadow); }
.ro-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--pr-brand); color: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2); } .ro-ic .ic { width: 32px; height: 32px; }
.rest-opt h3, .svc-tile h3 { font-size: 1.3rem; color: var(--pr-brand-dark); } .rest-opt p, .svc-tile p { color: var(--pr-ink-soft); font-weight: 500; font-size: .92rem; }

/* ------------------------------------------------------------------ perk cards, draft, shop */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 22px; padding-top: 26px; }
.pr-tag.perk { width: min(250px, 100%); min-height: 360px; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; border: 0; font: inherit; cursor: pointer; transition: transform .18s var(--pr-ease), box-shadow .18s, filter .18s; padding-top: 38px; }
.pr-tag.perk:hover:not(:disabled), .pr-tag.perk:focus-visible { transform: translateY(-10px) rotate(-.8deg) scale(1.02); }
.pr-tag.perk.r-common { box-shadow: 0 0 0 3px #d9a86a inset, var(--pr-shadow); } .pr-tag.perk.r-rare { box-shadow: 0 0 0 3px #3fbfa3 inset, var(--pr-shadow); } .pr-tag.perk.r-legendary { box-shadow: 0 0 0 3px #ffc531 inset, 0 0 26px rgba(255, 182, 39, .5), var(--pr-shadow); background-image: var(--pr-grain), linear-gradient(180deg, #fffbe6, #ffeeb0); animation: pr-shimmer 2.4s ease-in-out infinite alternate; }
@keyframes pr-shimmer { to { filter: brightness(1.06) saturate(1.1); } }
.perk .rib { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.perk .badge { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: #2b1a08; background: radial-gradient(circle at 35% 30%, #fff6, transparent 55%), var(--rc, #d9a86a); box-shadow: 0 4px 0 rgba(0, 0, 0, .2), inset 0 -5px 0 rgba(0, 0, 0, .15); }
.perk.r-common .badge { --rc: #d9a86a; } .perk.r-rare .badge { --rc: #3fbfa3; color: #063b30; } .perk.r-legendary .badge { --rc: #ffc531; }
.perk .badge .ic { width: 38px; height: 38px; }
.perk h3 { font-size: 1.3rem; color: var(--pr-brand-dark); min-height: 2.1em; display: flex; align-items: center; }
.perk .fx { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; }
.perk .fx li { display: flex; gap: 6px; align-items: flex-start; font-weight: 600; font-size: .86rem; line-height: 1.25; } .perk .fx li .ic { width: 1.05em; height: 1.05em; margin-top: .12em; padding: 1px; border-radius: 50%; stroke-width: 3; }
.perk .fx li.good .ic { color: #fff; background: var(--pr-good); } .perk .fx li.bad .ic { color: #fff; background: var(--pr-bad); } .perk .fx li.bad { color: var(--pr-bad-ink); }
.perk .fl { font-size: .8rem; color: var(--pr-ink-soft); font-style: italic; margin-top: auto; }
.perk .syn { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.perk .price { display: inline-flex; gap: .3em; align-items: center; font-family: var(--pr-font-display); font-size: 1.3rem; color: #1d7a44; background: rgba(63, 192, 110, .18); padding: .1em .7em; border-radius: 99px; } .perk .price.no { color: var(--pr-bad-ink); background: rgba(255, 90, 74, .15); }
.perk.sold { filter: grayscale(.8); opacity: .6; cursor: default; } .sold-stamp { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: var(--pr-bad-ink); pointer-events: none; }
.perk.chosen { animation: pr-chosen .6s var(--pr-ease) forwards; z-index: 3; } .perk.fade { opacity: .25; transform: scale(.94); filter: grayscale(.5); }
@keyframes pr-chosen { 50% { transform: translateY(-24px) scale(1.1) rotate(2deg); } 100% { transform: translateY(-8px) scale(1.06); } }
.dr-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.owned { display: flex; flex-direction: column; align-items: center; gap: 6px; } .owned small { color: rgba(255, 246, 227, .7); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.svc { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 18px; align-items: stretch; padding-top: 8px; } .svc-tile { width: min(230px, 100%); } .svc .pr-btn { align-self: center; }
.svc-tile .price { display: inline-flex; gap: .3em; align-items: center; font-family: var(--pr-font-display); font-size: 1.2rem; color: #1d7a44; margin-top: auto; } .svc-tile .price.no { color: var(--pr-bad-ink); }
@media (max-width: 640px) {
  .cards { flex-direction: column; align-items: center; gap: 30px; } .pr-tag.perk { min-height: 0; width: min(380px, 100%); } .perk h3 { min-height: 0; } .perk .fl { margin-top: 0; }
  .choices { gap: 28px; } .pr-tag.job { width: min(380px, 100%); }
}

/* ------------------------------------------------------------------ results / summary */
.res-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .9fr); gap: 24px; align-items: start; padding-top: 6px; }
.res-grid.one { grid-template-columns: minmax(0, 620px); justify-content: center; }
.res-left, .res-mid, .res-right { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.res-mid { align-items: center; }
.res-stamp { text-align: center; font-size: 1.8rem; color: var(--pr-brand-accent); margin: 22px 0 26px; } .res-stamp .pr-stamp { mix-blend-mode: normal; background: rgba(0, 0, 0, .25); font-size: clamp(1.4rem, 4vw, 2.2rem); animation: pr-stampin .5s var(--pr-ease) both; }
.results.lose .res-stamp { color: #ff9a8e; }
@keyframes pr-stampin { from { transform: rotate(-8deg) scale(2.2); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: .95; } }
.bigstars { display: flex; gap: 10px; justify-content: center; } .bigstars .ic { width: 64px; height: 64px; } .bigstars .off { color: rgba(255, 246, 227, .2); fill: rgba(255, 246, 227, .06); } .bigstars .on { color: var(--pr-brand-accent); fill: var(--pr-brand-accent); opacity: .25; transform: scale(.6); filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .3)); } .bigstars .on.pop { opacity: 1; transform: none; transition: transform .45s var(--pr-ease), opacity .2s; animation: pr-starpop .5s var(--pr-ease); }
html.pr-reduce .bigstars .on { opacity: 1; transform: none; }
@keyframes pr-starpop { 0% { transform: scale(.4) rotate(-40deg); } 60% { transform: scale(1.35) rotate(8deg); } 100% { transform: none; } }
.receipt { width: min(340px, 100%); padding: 16px 18px 18px; font-family: 'Fredoka', monospace; position: relative; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 96% 100%, 92% calc(100% - 8px), 88% 100%, 84% calc(100% - 8px), 80% 100%, 76% calc(100% - 8px), 72% 100%, 68% calc(100% - 8px), 64% 100%, 60% calc(100% - 8px), 56% 100%, 52% calc(100% - 8px), 48% 100%, 44% calc(100% - 8px), 40% 100%, 36% calc(100% - 8px), 32% 100%, 28% calc(100% - 8px), 24% 100%, 20% calc(100% - 8px), 16% 100%, 12% calc(100% - 8px), 8% 100%, 4% calc(100% - 8px), 0 100%); padding-bottom: 26px; transform: rotate(-1deg); }
.rc-head { display: flex; flex-direction: column; align-items: center; } .rc-head b { font-family: var(--pr-font-display); font-weight: 400; letter-spacing: .12em; } .rc-head small { color: var(--pr-ink-soft); font-weight: 600; }
.rc-line { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-weight: 600; transition: opacity .2s, transform .25s var(--pr-ease); transform: translateX(-10px); } .rc-line.in { transform: none; } .rc-line.pos b { color: #1d7a44; } .rc-line.neg b { color: var(--pr-bad-ink); }
.rc-tot { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--pr-font-display); font-size: 1.2rem; } .rc-total { font-size: 2rem; color: var(--pr-brand-dark); font-weight: 400; } .rc-tot.done .rc-total { color: #1d7a44; }
.flags { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(400px, 100%); } .flag { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; border-radius: 12px; background: rgba(255, 246, 227, .08); color: rgba(255, 246, 227, .5); text-align: center; box-shadow: inset 0 0 0 2px rgba(255, 246, 227, .15); } .flag small { font-weight: 600; font-size: .68rem; line-height: 1.1; } .flag > i { position: absolute; top: -7px; right: -5px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #6a5f58; color: #fff; } .flag > i .ic { width: 12px; height: 12px; stroke-width: 3.5; }
.flag.on { background: rgba(63, 192, 110, .2); color: #d8ffe4; box-shadow: inset 0 0 0 2px var(--pr-good); } .flag.on > i { background: var(--pr-good); }
.res-time { display: flex; gap: 8px; align-items: center; justify-content: center; color: rgba(255, 246, 227, .85); font-weight: 600; text-align: center; }
.repchips, .newitems .ni-row { display: flex; gap: 8px; flex-wrap: wrap; } .newitems small { color: rgba(255, 246, 227, .75); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; display: block; margin-bottom: 6px; }
.ni { position: relative; width: 52px; height: 52px; border-radius: 12px; background: var(--pr-paper); display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); } .newitems .more { align-self: center; font-weight: 700; }
.unlocks { display: flex; flex-direction: column; gap: 8px; } .unlock { display: flex; gap: 10px; align-items: center; background: rgba(255, 182, 39, .18); border-radius: 12px; padding: 10px 12px; box-shadow: inset 0 0 0 2px rgba(255, 182, 39, .6); color: #ffe9b0; } .unlock b { display: block; color: #fff3cc; } .unlock small { opacity: .85; font-weight: 500; }
.offer { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 16px; } .offer small { color: var(--pr-ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; } .offer p { font-weight: 600; } .offer .ph { text-transform: none; letter-spacing: 0; }
.failbox { padding: 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 360px; } .failbox .ic { width: 48px; height: 48px; color: var(--pr-bad); } .failbox p { color: var(--pr-ink-soft); font-weight: 600; }
.score-big { text-align: center; } .score-big small { display: block; color: rgba(255, 246, 227, .8); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; } .score-big b { font-family: var(--pr-font-display); font-weight: 400; font-size: 3.2rem; color: var(--pr-brand-accent); text-shadow: 0 4px 0 rgba(0, 0, 0, .3); display: block; line-height: 1.1; }
.sum-card .score-big small, .sum-card .score-big b { color: var(--pr-brand-dark); } .sum-card .score-big small { color: var(--pr-ink-soft); }
.sharetext { white-space: pre-wrap; background: rgba(0, 0, 0, .28); padding: 10px 14px; border-radius: 10px; font: 600 .85rem/1.5 var(--pr-font-ui); color: var(--pr-paper); user-select: text; text-align: left; margin: 0; }
.egrid { display: grid; grid-template-columns: repeat(8, 22px); gap: 4px; justify-content: center; } .egrid i { width: 22px; height: 22px; border-radius: 5px; box-shadow: 0 2px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .3); }
.sum-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 26px; align-items: start; padding-top: 14px; }
.sum-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 40px; } .sum-card h1 { font-size: clamp(2rem, 6vw, 3.2rem); color: var(--pr-brand-dark); } .sum-card .sub { color: var(--pr-ink-soft); font-weight: 600; } .sum-card .res-stamp .pr-stamp { background: none; color: var(--pr-brand); }
.sum-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; width: 100%; } .sum-side { display: flex; flex-direction: column; gap: 16px; }
.sum-card .unlock { color: var(--pr-ink); background: rgba(255, 182, 39, .25); text-align: left; } .sum-card .unlock b { color: #6b4a00; }
@media (max-width: 900px) { .res-grid, .sum-grid { grid-template-columns: 1fr; } .res-mid { order: -1; } .receipt { transform: none; } }

/* ------------------------------------------------------------------ level */
.lv { position: absolute; inset: 0; background: #0f2a26; }
.lv-top { position: absolute; left: 0; right: 0; top: 0; height: var(--pr-topbar); z-index: 5; display: flex; align-items: center; gap: 14px; padding: var(--sat) calc(10px + var(--sar)) 0 calc(10px + var(--sal)); background: linear-gradient(180deg, rgba(10, 30, 27, .96), rgba(10, 30, 27, .82)); color: var(--pr-paper); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); box-sizing: content-box; }
.lv { --pr-topbar: 56px; }
.lv-cust { display: flex; align-items: center; gap: 10px; min-width: 0; } .lv-cust .who { display: flex; flex-direction: column; min-width: 0; } .lv-cust b { font-family: var(--pr-font-display); font-weight: 400; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lv-cust small { opacity: .75; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-cust .pr-portrait { box-shadow: 0 0 0 2px var(--pr-paper); } .lv-cust .tw { display: flex; gap: 4px; } .lv-cust .tw .pr-chip { font-size: .68rem; padding: .12em .45em; }
.lv-clock { display: flex; align-items: center; gap: 8px; margin-left: auto; } .lv-clock.hide { visibility: hidden; } .lv-clock .tl { display: flex; align-items: baseline; gap: 6px; } .lv-clock b { font-family: var(--pr-font-display); font-weight: 400; font-size: 1.3rem; min-width: 2.7em; } .lv-clock small { opacity: .65; font-weight: 600; }
.lv-clock .gauge { position: relative; width: 120px; height: 7px; border-radius: 9px; background: rgba(255, 246, 227, .18); overflow: hidden; } .lv-clock .gauge i { display: block; height: 100%; width: 0; background: var(--pr-good); transition: width .3s linear, background .3s; } .lv-clock.over .gauge i { background: var(--pr-warn); } .lv-clock.late .gauge i { background: var(--pr-bad); } .lv-clock.over b { color: var(--pr-warn); } .lv-clock.late b { color: #ff8a7e; animation: pr-pulse-t 1s ease-in-out infinite; }
.gauge .mk { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255, 246, 227, .7); } .gauge .m1 { left: 33.3%; } .gauge .m2 { left: 66.6%; opacity: .5; }
@keyframes pr-pulse-t { 50% { opacity: .6; } }
.lv-stats { display: flex; align-items: center; gap: 12px; } .lv-top .lv-perks { max-width: 260px; } .lv-top .pk { width: 26px; height: 26px; } .lv-top .pk .ic { width: 16px; height: 16px; }
.lv-right { display: flex; align-items: center; gap: 8px; } .lv-bug { opacity: .95; display: flex; align-items: center; } .lv-right .pr-btn.sm { min-height: 44px; min-width: 44px; padding: .4em .6em; } /* 44 px touch targets (were 38 tall) */
.lv-board { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--pr-topbar) + var(--sat)); overflow: hidden; }
.lv-veil { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; background: linear-gradient(180deg, #0f2a26, #1c3d4a); color: var(--pr-paper); transition: opacity .4s; } .lv-veil b { font-family: var(--pr-font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: .05em; } .lv-veil small { max-width: 420px; opacity: .8; font-weight: 500; font-size: .95rem; } .lv-veil.gone { opacity: 0; pointer-events: none; }
.lv-tip { position: absolute; left: 50%; top: calc(var(--pr-topbar) + var(--sat) + 10px); transform: translate(-50%, -20px); opacity: 0; z-index: 4; pointer-events: none; transition: transform .35s var(--pr-ease), opacity .3s; width: min(440px, calc(100% - 24px)); } .lv-tip.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.lv-tip .tp { display: flex; gap: 10px; align-items: center; background: var(--pr-card); color: var(--pr-ink); border-radius: 16px; padding: 8px 10px; box-shadow: var(--pr-shadow); } .lv-tip b { font-family: var(--pr-font-display); font-weight: 400; color: var(--pr-brand); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; } .lv-tip p { font-size: .88rem; font-weight: 500; } .lv-tip .tp > div { flex: 1; }
.pausebody { display: flex; flex-direction: column; gap: 10px; } .rng { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--pr-ink); } .rng span { width: 6.5em; } .rng input, .set-row input[type=range] { flex: 1; accent-color: var(--pr-brand); height: 28px; }
@media (max-width: 860px) { .lv-top .lv-perks, .lv-clock .gauge, .lv-cust .tw, .lv-cust small { display: none; } }
@media (max-width: 560px) { .lv-top { gap: 8px; } .lv-bug { display: none; } .lv-cust .who { max-width: 84px; } .lv-cust b { font-size: .8rem; } .lv-clock b { font-size: 1.05rem; min-width: 2.4em; } .lv-clock small { display: none; } .lv-stats { gap: 6px; } .lv-rep .ic { width: 1.2em; height: 1.2em; } .lv-cash { font-size: .95rem; } }

/* ------------------------------------------------------------------ settings / credits */
.settings, .credits { display: flex; flex-direction: column; gap: 14px; } .settings h3, .credits h3 { font-size: 1.3rem; color: var(--pr-brand-dark); margin-top: .4em; border-bottom: 3px dotted rgba(29, 43, 42, .18); padding-bottom: .2em; }
.set-row { display: flex; align-items: center; gap: 14px; justify-content: space-between; font-weight: 600; flex-wrap: wrap; } .set-row > span { display: flex; flex-direction: column; flex: 1; min-width: 150px; } .set-row small { font-weight: 500; color: var(--pr-ink-soft); font-size: .8rem; } .set-row b { min-width: 3.2em; text-align: right; }
.settings .seg, .credits .seg { background: rgba(29, 43, 42, .1); } .settings .seg button { color: var(--pr-ink); } .settings .seg button.on { background: var(--pr-brand); color: #fff; }
.settings label.set-row > span { flex: 0 0 9em; }
.credits { text-align: center; align-items: center; } .credits ul { text-align: left; color: var(--pr-ink-soft); font-weight: 500; } .credits .small { font-size: .8rem; color: var(--pr-ink-soft); } .credits p { color: var(--pr-ink-soft); font-weight: 500; } .cr-logo h1 { font-size: 3.2rem; color: var(--pr-brand-accent); text-shadow: 0 3px 0 #c47d00, 0 6px 0 rgba(0, 0, 0, .2); } .cr-sp { display: flex; flex-direction: column; align-items: center; gap: 8px; background: rgba(31, 122, 99, .1); padding: 14px; border-radius: 14px; width: 100%; }

/* ------------------------------------------------------------------ unit guide / dex */
.gd-lead { text-align: center; color: rgba(255, 246, 227, .85); font-weight: 600; font-size: 1.05rem; }
.gd-tabs, .fr-units { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gd-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 12px; border: 0; background: rgba(255, 246, 227, .1); color: var(--pr-paper); font: inherit; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 246, 227, .2); transition: transform .12s var(--pr-ease), background .15s; } .gd-tab b { font-family: var(--pr-font-display); font-weight: 400; letter-spacing: .05em; } .gd-tab:hover { transform: translateY(-3px); } .gd-tab.on { background: var(--pr-paper); color: var(--pr-ink); box-shadow: 0 4px 0 rgba(0, 0, 0, .25), inset 0 0 0 3px var(--pr-brand-accent); }
.gd-tab svg rect:first-child { fill: #f6ead0; }
.gd-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; justify-content: center; }
.plan-card { padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; } .plan-card small { color: var(--pr-ink-soft); font-weight: 600; text-align: center; max-width: 340px; }
.gd-side { display: flex; flex-direction: column; gap: 14px; } .gd-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pr-chip.tog { cursor: pointer; border: 0; font-family: inherit; min-height: 34px; padding: .3em .8em; } .pr-chip.tog i { width: 12px; height: 12px; border-radius: 4px; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .4); } .pr-chip.tog.on { background: var(--pr-paper); color: var(--pr-ink); box-shadow: 0 2px 0 rgba(0, 0, 0, .3), inset 0 0 0 2px var(--pr-brand-accent); }
.gd-info { background: rgba(255, 246, 227, .08); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.gd-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .gd-head h2 { font-size: 2.4rem; color: var(--pr-brand-accent); text-shadow: 0 3px 0 rgba(0, 0, 0, .3); } .gd-head .eq { font-weight: 700; color: var(--pr-paper); }
.gd-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .gd-facts small { color: rgba(255, 246, 227, .65); } .gd-facts b { color: var(--pr-paper); font-size: 1.15rem; }
.gd-fits { font-weight: 500; } .gd-hint { color: rgba(255, 246, 227, .7); font-weight: 500; } .gd-miss { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center; } .gd-cta small { display: block; color: var(--pr-ink-soft); font-weight: 600; } .gd-cta p { font-weight: 600; flex-basis: 100%; }
@media (max-width: 760px) { .gd-main { grid-template-columns: 1fr; justify-items: center; } .gd-facts { grid-template-columns: repeat(2, 1fr); } }
.dex-cats { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; } .dx-count { display: inline-flex; align-items: center; gap: .4em; font-family: var(--pr-font-display); font-size: 1.15rem; color: var(--pr-brand-accent); }
.dx-prog { display: flex; flex-direction: column; align-items: center; gap: 6px; } .dx-prog .bar { width: min(420px, 90%); height: 12px; border-radius: 9px; background: rgba(0, 0, 0, .3); overflow: hidden; } .dx-prog .bar i { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--pr-brand-accent) 0 10px, #e59a00 10px 20px); border-radius: 9px; } .dx-prog small { color: rgba(255, 246, 227, .75); font-weight: 600; }
.dex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.dex-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 10px; border-radius: 14px; border: 0; background: var(--pr-card); color: var(--pr-ink); font: inherit; text-align: center; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, .2); transition: transform .12s var(--pr-ease); animation: pr-rise .35s var(--pr-ease) both; } .dex-card:hover { transform: translateY(-4px) rotate(-.6deg); } .dex-card b { font-size: .82rem; line-height: 1.15; font-weight: 600; min-height: 2.3em; display: flex; align-items: center; } .dex-card small { color: var(--pr-ink-soft); font-size: .7rem; font-weight: 600; }
.dex-card.locked { background: rgba(255, 246, 227, .12); color: rgba(255, 246, 227, .6); box-shadow: none; } .dex-card.locked small { color: rgba(255, 246, 227, .5); } .dc-ic { width: 72px; height: 72px; display: grid; place-items: center; } .dex-card.locked .dc-ic .ic { width: 30px; height: 30px; }
.dexd { display: flex; flex-direction: column; gap: 12px; } .dd-top { display: flex; gap: 14px; align-items: center; } .dd-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; } .dd-top small { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--pr-ink-soft); font-size: .72rem; } .dexd .blurb { font-style: italic; }
.dd-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } .dd-facts small { display: block; color: var(--pr-ink-soft); font-size: .72rem; font-weight: 600; } .dd-facts b { font-family: var(--pr-font-display); font-weight: 400; font-size: 1.2rem; color: var(--pr-brand-dark); display: block; } .dexd .real { font-size: .85rem; }

/* ------------------------------------------------------------------ daily / free */
.dl-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: start; padding-top: 12px; }
.dl-card { display: flex; flex-direction: column; gap: 14px; padding-top: 40px; } .dl-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .dl-who { display: flex; gap: 14px; align-items: center; } .dl-who h2 { font-size: 1.8rem; color: var(--pr-brand-dark); } .dl-who .sub { font-weight: 700; color: var(--pr-brand); } .dl-who .blurb { color: var(--pr-ink-soft); font-weight: 500; font-size: .9rem; }
.dl-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .dl-tw, .dl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dl-side { display: flex; flex-direction: column; gap: 16px; } .dl-streak { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; } .dl-streak .st { display: flex; align-items: center; gap: 8px; color: #d9541a; } .dl-streak .st .ic { width: 34px; height: 34px; } .dl-streak .st b { font-family: var(--pr-font-display); font-weight: 400; font-size: 2.6rem; } .dl-streak small { color: var(--pr-ink-soft); font-weight: 700; } .dl-streak .cd { font-family: var(--pr-font-display); font-weight: 400; font-size: 1.6rem; color: var(--pr-brand-dark); display: block; }
.hist { display: flex; gap: 6px; } .hist i { width: 18px; height: 18px; border-radius: 5px; background: rgba(29, 43, 42, .15); } .hist i.on { background: var(--pr-good); } .hist i.miss { background: var(--pr-bad); opacity: .6; }
@media (max-width: 820px) { .dl-main { grid-template-columns: 1fr; } .dl-facts { grid-template-columns: repeat(2, 1fr); } }
.fr-card { display: flex; flex-direction: column; gap: 12px; } .fr-card h3 { font-size: 1.15rem; color: var(--pr-brand-dark); margin-top: .5em; }
.fr-units .gd-tab { color: var(--pr-ink); background: rgba(29, 43, 42, .07); box-shadow: inset 0 0 0 2px rgba(29, 43, 42, .12); } .fr-units .gd-tab.on { background: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .2), inset 0 0 0 3px var(--pr-brand); }
.fr-arch { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; } .fr-a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 0; border-radius: 12px; background: rgba(29, 43, 42, .07); color: var(--pr-ink); font: inherit; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; } .fr-a small { font-weight: 600; font-size: .72rem; line-height: 1.1; text-align: center; } .fr-a.on { background: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .2), inset 0 0 0 3px var(--pr-brand); } .fr-a .q { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pr-brand-accent); }
.fr-card .seg { background: rgba(29, 43, 42, .1); align-self: flex-start; } .fr-card .seg button { color: var(--pr-ink); } .fr-card .seg button.on { background: var(--pr-brand); color: #fff; }
.fr-tw { display: flex; gap: 6px; flex-wrap: wrap; } .fr-card .pr-chip.tog { color: var(--pr-ink); background: rgba(29, 43, 42, .08); box-shadow: inset 0 0 0 1.5px rgba(29, 43, 42, .2); } .fr-card .pr-chip.tog.on { background: var(--pr-brand); color: #fff; box-shadow: none; }
.fr-seed { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; } .fr-seed input { width: 8em; padding: .4em .6em; border-radius: 8px; border: 2px solid rgba(29, 43, 42, .25); background: #fff; margin-left: .5em; user-select: text; } .fr-best { color: var(--pr-brand); font-weight: 700; }

/* splash host / no-webgl */
.splash-host { position: absolute; inset: 0; } .nogl { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; } .nogl .pr-tag { max-width: 440px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; } .nogl h2 { font-size: 1.9rem; color: var(--pr-brand-dark); } .nogl p { color: var(--pr-ink-soft); font-weight: 500; } .nogl .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pr-screen.s-splash { color: inherit; }

/* ------------------------------------------------------------------ tutorial coach */
.coach { position: absolute; z-index: 8; left: 50%; top: calc(var(--pr-topbar) + var(--sat) + 10px); transform: translateX(-50%); width: min(560px, calc(100% - 20px)); pointer-events: none; }
.coach .cc { pointer-events: auto; display: flex; flex-direction: column; gap: 8px; background: var(--pr-card); color: var(--pr-ink); border-radius: 18px; padding: 10px 14px 12px; box-shadow: var(--pr-shadow); animation: pr-rise .4s var(--pr-ease) both; }
.coach .ct { display: flex; gap: 12px; align-items: flex-start; } .coach .ct > div { flex: 1; } .coach b { font-family: var(--pr-font-display); font-weight: 400; color: var(--pr-brand); letter-spacing: .05em; text-transform: uppercase; font-size: .9rem; } .coach p { font-weight: 500; font-size: .95rem; } .coach .cr { display: flex; align-items: center; gap: 8px; justify-content: space-between; } .coach .dots { display: flex; gap: 5px; } .coach .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(29, 43, 42, .2); } .coach .dots i.on { background: var(--pr-brand); } .coach .dots i.done { background: var(--pr-good); }
.coach kbd { position: static; display: inline-block; margin: 0 .1em; }
.coach-arrow { position: absolute; z-index: 9; width: 44px; height: 44px; pointer-events: none; color: var(--pr-brand-accent); filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .4)); animation: pr-bob 0.9s ease-in-out infinite alternate; } .coach-arrow .ic { width: 100%; height: 100%; stroke-width: 2.6; fill: rgba(255, 182, 39, .3); }
@keyframes pr-bob { to { transform: translate(var(--bx, 0), var(--by, 8px)); } }
@media (max-width: 640px) { .coach { bottom: auto; top: calc(var(--pr-topbar) + var(--sat) + 8px); } }

/* ------------------------------------------------------------------ how to play */
.howto-card { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; text-align: left; }
.howto-card h1 { text-align: center; font-size: clamp(2rem, 6vw, 3rem); color: var(--pr-brand-dark); }
.howto-card .res-stamp { text-align: center; } .howto-card .res-stamp .pr-stamp { background: none; color: var(--pr-brand); }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.lessons li { display: flex; align-items: center; gap: 10px; background: rgba(29, 43, 42, .06); padding: 8px 10px; border-radius: 12px; } .lessons .n { width: 24px; height: 24px; border-radius: 50%; background: var(--pr-brand); color: #fff; display: grid; place-items: center; font-family: var(--pr-font-display); flex: none; } .lessons .ic { color: var(--pr-brand); flex: none; width: 1.5em; height: 1.5em; } .lessons b { display: block; font-family: var(--pr-font-display); font-weight: 400; color: var(--pr-brand-dark); } .lessons small { color: var(--pr-ink-soft); font-weight: 500; }
.howto-note { color: var(--pr-ink-soft); font-weight: 500; text-align: center; } .tut-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.lv-skip { position: absolute; z-index: 9; left: 50%; bottom: 22px; transform: translateX(-50%); }

/* ------------------------------------------------------------------ round 2: glossary, history, codex, seed, compact layouts */
.perk .fx li.has-tip { cursor: help; } .perk .fx li .tipic { margin-left: auto; opacity: .45; width: .95em; height: .95em; background: none !important; color: var(--pr-ink-soft) !important; padding: 0; margin-top: .15em; }
.perk .fx li[data-tip]:hover::after { left: 0; transform: none; bottom: calc(100% + 4px); }
.perk .syn .pr-chip { white-space: normal; max-width: 100%; text-align: left; line-height: 1.15; }
.rmlist { display: flex; flex-wrap: wrap; gap: 8px; }
.ot-row input { width: 7em; padding: .35em .6em; border-radius: 8px; border: 0; background: var(--pr-paper); color: var(--pr-ink); font-weight: 700; user-select: text; } .ot-row .hint { opacity: .7; font-weight: 500; }
.hist-card { display: flex; flex-direction: column; gap: 10px; } .hist-row { display: grid; grid-template-columns: 3.5em 3.5em 1fr auto; gap: 4px 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(29, 43, 42, .06); } .hist-row.won { background: rgba(63, 192, 110, .15); } .hist-row .sc { font-family: var(--pr-font-display); font-weight: 400; font-size: 1.2rem; color: var(--pr-brand-dark); } .hist-row .sd { grid-column: 3 / 5; font-size: .75rem; color: var(--pr-ink-soft); } .hist-row .lv-perks { grid-column: 1 / 5; } .hist-row .pk { width: 24px; height: 24px; }
.codex { margin-top: 6px; } .codex h3 { color: var(--pr-brand-dark); font-size: 1.2rem; margin-bottom: 8px; } .cx { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; } .cxi { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(29, 43, 42, .06); color: var(--pr-ink-soft); } .cxi.on { background: rgba(255, 182, 39, .22); color: var(--pr-ink); } .cxi b { display: block; font-family: var(--pr-font-display); font-weight: 400; } .cxi small { font-weight: 500; }
.ov-node.t-event .bg { fill: #6a3d6b; }
.pr-tag.job.t-event { background-image: var(--pr-grain), linear-gradient(180deg, #fff4fb, #f1ddf5); }
.scr-body { padding-bottom: 34px; }

/* shorter screens (720p laptops): shrink cards so services and stash are reachable without hunting */
@media (max-height: 800px) {
  .pr-tag.perk { min-height: 0; gap: 6px; padding-top: 34px; } .perk .badge { width: 52px; height: 52px; } .perk .badge .ic { width: 28px; height: 28px; } .perk h3 { min-height: 0; font-size: 1.12rem; }
  .shopgrid .perk .fl { display: none; } .svc-tile { padding-top: 22px; } .svc-tile p { display: none; } .ro-ic { width: 46px; height: 46px; } .cards { padding-top: 20px; gap: 24px 16px; }
  .plan-wrap svg.plan { max-height: 210px; width: auto; } .intro-grid { gap: 18px; }
}
/* phones: compact horizontal cards and a slim header */
@media (max-width: 640px) {
  .scr-head.runbar { padding-top: calc(var(--sat) + 6px); padding-bottom: 4px; gap: 6px; } .runbar .lv-perks { display: none; } .rb-title small { display: none; } .runbar .pr-btn { padding: .35em .6em; min-height: 34px; } .lv-cash { font-size: 1rem; } .lv-rep .ic { width: 1.25em; height: 1.25em; }
  .mp-head { font-size: 1.5rem; } .mp-sub { display: none; } .scr-body { gap: 12px; padding-bottom: 26px; }
  .pr-tag.perk { display: grid; grid-template-columns: 54px 1fr; column-gap: 10px; row-gap: 3px; text-align: left; align-items: start; min-height: 0; padding: 30px 12px 12px; width: min(420px, 100%); }
  .pr-tag.perk .rib { grid-column: 2; justify-content: flex-start; } .pr-tag.perk .badge { grid-column: 1; grid-row: 1 / 4; width: 50px; height: 50px; } .pr-tag.perk .badge .ic { width: 26px; height: 26px; }
  .pr-tag.perk h3 { grid-column: 2; font-size: 1.05rem; } .pr-tag.perk .fx { grid-column: 1 / 3; } .pr-tag.perk .fl { display: none; } .pr-tag.perk .syn, .pr-tag.perk .price { grid-column: 1 / 3; justify-content: flex-start; } .perk .fx li { font-size: .8rem; }
  .cards { gap: 22px; padding-top: 18px; } .svc-tile p { display: none; } .scr-foot { padding-top: 8px; } .scr-foot .pr-btn { flex: 1 1 38%; padding-left: .6em; padding-right: .6em; } .scr-foot .pr-btn.lg { font-size: 1.05rem; }
  .map-say, .owned small { display: none; } .pr-tag.job { padding-top: 28px; gap: 6px; } .jt-line { display: none; } .choices { padding-top: 16px; gap: 22px; } .ovwrap { max-height: 150px; } .dr-actions { gap: 8px; }
  .sum-card, .dl-card, .intro-card { padding-top: 34px; } .menu-item { min-height: 50px; } .menu-item b { font-size: 1.05rem; } .menu-item small { font-size: .74rem; }
}

/* ------------------------------------------------------------------ round 3 */
.cards.kits { align-items: stretch; } .pr-tag.kit { width: min(230px, 100%); text-align: left; display: flex; flex-direction: column; gap: 8px; border: 0; font: inherit; cursor: pointer; transition: transform .16s var(--pr-ease); padding-top: 34px; }
.pr-tag.kit:hover:not(:disabled) { transform: translateY(-8px) rotate(-.6deg); } .pr-tag.kit.locked { filter: grayscale(.7) brightness(.9); cursor: not-allowed; }
.pr-tag.kit h3 { font-size: 1.3rem; color: var(--pr-brand-dark); } .kperks { display: flex; gap: 6px; align-items: center; } .pr-tag.kit .fx { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; } .pr-tag.kit .fx li { display: flex; gap: 6px; font-weight: 600; font-size: .85rem; align-items: flex-start; } .pr-tag.kit .fx .ic { color: #fff; background: var(--pr-good); border-radius: 50%; padding: 1px; width: 1.05em; height: 1.05em; stroke-width: 3; flex: none; margin-top: .1em; } .pr-tag.kit .fl { color: var(--pr-ink-soft); font-size: .8rem; font-style: italic; }
.legend { color: var(--pr-paper); max-width: 760px !important; margin: 0 auto; } .legend summary { cursor: pointer; text-align: center; font-weight: 700; opacity: .85; padding: 6px; } .legend .lg { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 8px; } .lgi { display: flex; gap: 8px; align-items: flex-start; background: rgba(255, 246, 227, .08); padding: 8px 10px; border-radius: 10px; } .lgi b { display: block; font-family: var(--pr-font-display); font-weight: 400; letter-spacing: .04em; } .lgi small { opacity: .8; font-weight: 500; }
.ov-node.t-elite .bg { fill: #7a2a22; stroke: #ffb627; } .ov-node.t-treasure .bg { fill: #7a5a12; } .pr-tag.job.t-elite { background-image: var(--pr-grain), linear-gradient(180deg, #fff1ea, #ffd0c0); } .pr-tag.job.t-treasure { background-image: var(--pr-grain), linear-gradient(180deg, #fffbe6, #ffeeb0); }
@media (max-width: 640px) {
  .dex-cats { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; } .dex-cats .pr-chip { flex: none; }
  .ovwrap { max-height: none; } svg.ov { min-width: 700px; } .ovwrap::after { content: "Swipe the route"; display: block; text-align: center; font-size: .7rem; opacity: .6; }
  .pr-tag.kit { width: min(380px, 100%); } .legend .lg { grid-template-columns: 1fr; }
}
.pr-modal .pr-btn.k-ghost { --fg: var(--pr-ink-soft); background: transparent; box-shadow: inset 0 0 0 2px rgba(29, 43, 42, .3); }
