/* Direction D, "Panda Console": the site is one console home screen.
   A carousel of square tiles picks the section, the screen beside it shows that section.
   Without JavaScript every section simply shows one after another. */
:root{
  --font-display:"Fredoka","Nunito",system-ui,sans-serif;
  --font-body:"Nunito",system-ui,sans-serif;
  --page:#FFF3F7;
  --dot:#F6D3E0;
  --card:#FFFFFF;
  --edge:#F1D5E0;
  --glow:linear-gradient(135deg,#FF8FBE 0%,#D7A8FF 50%,#8FD0FF 100%);
  --soft:0 2px 0 var(--edge),0 10px 22px rgba(176,48,106,.10);
  --cap:#5B4664;
  --bubble-a:#FFE9A8; --bubble-b:#C9EFE2;
  --bw:3px;
}
:root[data-theme=dark]{
  --page:#191320; --dot:#2C2233; --card:#261D2E; --edge:#3B2C45;
  --soft:0 2px 0 #120D17,0 10px 22px rgba(0,0,0,.35);
  --cap:#F3B4CB; --bubble-a:#5A4A1E; --bubble-b:#234A40;
  --star-opacity:.10;
}
body{background-color:var(--page);background-image:radial-gradient(var(--dot) 1.3px,transparent 1.4px);background-size:14px 14px;padding:86px 0 110px}

/* top pills ---------------------------------------------------------------- */
.pill{display:flex;align-items:center;gap:8px;min-height:48px;padding:5px 14px;border-radius:999px;background:var(--card);border:2px solid var(--edge);box-shadow:var(--soft);
  font-family:var(--font-display);font-weight:600;color:var(--ink)}
.top{position:fixed;top:12px;left:0;right:0;z-index:60;display:flex;align-items:center;gap:12px;padding:0 14px;pointer-events:none}
.top>*{pointer-events:auto}
.who{text-decoration:none;position:relative;padding-left:8px}
.who .crew{display:flex}
.who .crew .buddy{width:30px;margin-left:-8px;background:var(--card);border-radius:50%;padding:2px;border:2px solid var(--edge)}
.who .crew .buddy:first-child{margin-left:0}
.who .name{white-space:nowrap;overflow:hidden;max-width:220px;transition:max-width .35s var(--ease),opacity .25s}
.on-profile .who .name{max-width:0;opacity:0}
.title-pill{margin:0 auto;padding-inline:34px;font-size:1.15rem;min-width:min(340px,34vw);justify-content:center}
.title-pill span{display:inline-block}
.title-pill.swap span{animation:swap .3s var(--ease)}
@keyframes swap{from{transform:translateY(12px);opacity:0}}
.sys{gap:10px;padding-right:5px}
.sys .clock{font-variant-numeric:tabular-nums;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.sys .clock .ic{width:20px;height:20px;color:var(--accent)}
.round{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:0;background:var(--accent-fill);color:#33203B;cursor:pointer;transition:transform .18s var(--ease)}
.round:hover{transform:rotate(18deg) scale(1.08)}
.key{position:absolute;top:-9px;right:-6px;padding:0 6px;border-radius:6px;background:var(--card);border:2px solid var(--edge);font-family:var(--font-display);font-weight:600;font-size:.62rem;line-height:1.5;color:var(--ink-soft)}
@media (max-width:900px){.title-pill{display:none}.who{margin-right:auto}}
@media (max-width:480px){.sys .clock{display:none}.sys{padding:5px}.who .name{max-width:150px;text-overflow:ellipsis}.who .crew .buddy{width:26px}}

/* the screen: carousel beside the open section ----------------------------- */
.screen{display:grid;grid-template-columns:230px minmax(0,1fr);gap:26px;width:min(100% - 28px,1180px);margin-inline:auto;align-items:start}
.rack{position:sticky;top:86px;display:grid;gap:12px;justify-items:start;padding:6px 0 6px 6px}
.cart{position:relative;display:flex;align-items:center;gap:12px;padding:0;border:0;background:none;cursor:pointer;text-align:left;color:var(--ink-soft);font-family:var(--font-display);font-weight:600;font-size:.95rem;line-height:1.15}
.art{position:relative;display:grid;place-items:center;flex:none;width:68px;height:68px;border-radius:16px;border:4px solid var(--card);box-shadow:var(--soft);color:#33203B;overflow:hidden;
  transition:width .3s var(--ease),height .3s var(--ease),border-radius .3s var(--ease)}
.art .ic{width:54%;height:54%}
.art .panda,.art .buddy{width:68%}
.art .corner{position:absolute;top:0;left:0;width:34%;height:34%;border-radius:0 0 12px 0;display:grid;place-items:center;background:rgba(255,255,255,.75)}
.art .corner .ic{width:70%;height:70%}
.cart:hover .art{transform:translateX(4px)}
.cart[aria-selected=true]{color:var(--ink);font-size:1.12rem}
.cart[aria-selected=true] .art{width:132px;height:132px;border-radius:24px;border:5px solid transparent;
  background-origin:border-box;background-clip:padding-box,border-box;box-shadow:0 0 0 0 transparent,var(--soft);animation:pulse 2.4s ease-in-out infinite}
@keyframes pulse{50%{box-shadow:0 0 0 6px rgba(255,143,190,.28),var(--soft)}}
.a-pink{background:linear-gradient(160deg,#FFD0E0,#F8AFC8)}.a-butter{background:linear-gradient(160deg,#FFF3C7,#FFE08A)}.a-mint{background:linear-gradient(160deg,#DDF6EC,#BFEBD9)}
.a-sky{background:linear-gradient(160deg,#E2EFFF,#BFDCFB)}.a-lilac{background:linear-gradient(160deg,#F0E8FF,#D9C8FA)}.a-peach{background:linear-gradient(160deg,#FFE9DC,#FFCFB3)}
.cart[aria-selected=true] .a-pink{background-image:linear-gradient(160deg,#FFD0E0,#F8AFC8),var(--glow)}
.cart[aria-selected=true] .a-butter{background-image:linear-gradient(160deg,#FFF3C7,#FFE08A),var(--glow)}
.cart[aria-selected=true] .a-mint{background-image:linear-gradient(160deg,#DDF6EC,#BFEBD9),var(--glow)}
.cart[aria-selected=true] .a-sky{background-image:linear-gradient(160deg,#E2EFFF,#BFDCFB),var(--glow)}
.cart[aria-selected=true] .a-lilac{background-image:linear-gradient(160deg,#F0E8FF,#D9C8FA),var(--glow)}
.cart[aria-selected=true] .a-peach{background-image:linear-gradient(160deg,#FFE9DC,#FFCFB3),var(--glow)}
.cart .arrow{position:absolute;left:-16px;top:50%;width:0;height:0;border:7px solid transparent;border-left-color:var(--accent);transform:translateY(-50%);opacity:0}
.cart[aria-selected=true] .arrow{opacity:1;animation:nudge 1s ease-in-out infinite}
@keyframes nudge{50%{transform:translate(4px,-50%)}}

/* sections ---------------------------------------------------------------- */
.panel{position:relative;min-width:0;padding-bottom:10px}
.js .panel[hidden]{display:none}
.js .panel{animation:slide .4s var(--ease)}
@keyframes slide{from{opacity:0;transform:translateX(26px)}}
.panel+.panel{margin-top:60px}
.js .panel+.panel{margin-top:0}
.wall{position:fixed;right:-4vw;bottom:-6vh;width:min(60vh,46vw);height:min(60vh,46vw);z-index:-1;opacity:.07;color:var(--accent);pointer-events:none}
.wall .ic{width:100%;height:100%}
.big{font-size:clamp(2.2rem,5.2vw,3.6rem);line-height:1.05;text-shadow:0 3px 0 var(--card),0 6px 14px rgba(176,48,106,.16)}
.caps{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.cap{display:inline-flex;align-items:stretch;border-radius:999px;border:2px solid var(--cap);background:var(--card);font-size:.86rem;font-weight:800;overflow:hidden;max-width:100%}
.cap b{background:var(--cap);color:var(--card);padding:2px 10px 2px 12px;font-family:var(--font-display);font-weight:600;white-space:nowrap}
.cap span{padding:2px 14px 2px 10px}
.lead{margin-top:18px;max-width:42em}
.tile{background:var(--card);border:4px solid transparent;border-radius:22px;box-shadow:var(--soft);padding:18px;background-image:linear-gradient(var(--card),var(--card)),linear-gradient(var(--edge),var(--edge));background-origin:border-box;background-clip:padding-box,border-box;
  transition:transform .2s var(--ease)}
.tile.lit,.grid>.tile:hover,.grid>.tile:focus-within{background-image:linear-gradient(var(--card),var(--card)),var(--glow)}
.grid>.tile:hover{transform:translateY(-3px)}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:22px}
.ach{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 14px;align-items:center;position:relative}
.ach .badge{grid-row:span 2;display:grid;place-items:center;width:62px;height:62px;border-radius:16px;color:#33203B}
.ach .badge .ic{width:34px;height:34px}
.ach .num{font-size:1.7rem;line-height:1.05}
.ach p{font-size:.92rem;font-weight:700;color:var(--ink-soft);line-height:1.35}
.plat{position:absolute;top:0;right:0;padding:1px 9px;border-radius:8px;background:var(--surface-2);font-family:var(--font-display);font-weight:600;font-size:.68rem;color:var(--ink-soft)}
.job h3{font-size:1.18rem;padding-right:92px}
.job .role{font-weight:800;font-size:.88rem;color:var(--accent);margin-top:2px}
.job .body{margin-top:8px;font-size:.96rem;color:var(--ink-soft);line-height:1.55}
.job{position:relative}

/* finance */
.fin{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:16px;margin-top:22px;align-items:stretch}
.fin .tile{display:flex;flex-direction:column;gap:12px}
.gauge .track{position:relative;height:16px;border-radius:999px;background:var(--surface-2);box-shadow:inset 0 0 0 2px var(--edge);margin:30px 6px 28px}
.gauge .fill{position:absolute;inset:0;border-radius:999px;background:var(--glow);opacity:.75}
.gauge .dot{position:absolute;top:50%;left:27%;width:30px;height:30px;transform:translate(-50%,-50%);color:var(--accent)}
.gauge .dot .ic{width:30px;height:30px}
.gauge .lab{position:absolute;top:-26px;font-size:.78rem;font-weight:800;white-space:nowrap}
.gauge .lo{left:0}.gauge .hi{right:0}.gauge .px{left:27%;transform:translateX(-50%);top:22px;color:var(--accent)}
.media{margin-top:auto;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;background:var(--surface-2);color:var(--ink);text-decoration:none;font-family:var(--font-display);font-weight:600;
  box-shadow:6px 6px 0 -2px var(--card),6px 6px 0 0 var(--edge);transition:transform .18s var(--ease)}
.media:hover{transform:translate(-2px,-2px)}
.media .ic{width:30px;height:30px;color:var(--accent)}
table{width:100%;border-collapse:separate;border-spacing:0 6px;font-size:.95rem;font-variant-numeric:tabular-nums}
caption{text-align:left;font-family:var(--font-display);font-weight:600;font-size:1.1rem;margin-bottom:4px}
th,td{padding:8px;text-align:right}
th:first-child,td:first-child{text-align:left}
thead th{font-size:.72rem;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-faint);font-weight:800;padding-bottom:0}
tbody th{font-weight:800}
.rk{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:8px;border-radius:8px;background:var(--card);box-shadow:inset 0 0 0 2px var(--edge);font-family:var(--font-display);font-weight:600;font-size:.78rem}
tbody tr>*{background:var(--surface-2)}
tbody tr>*:first-child{border-radius:12px 0 0 12px}
tbody tr>*:last-child{border-radius:0 12px 12px 0}
tr.pick>*{background:var(--butter);color:#33203B}
tr.pick .rk{background:var(--accent-fill);box-shadow:none}

/* about: a profile card. The photo keeps its own proportions. */
.me{display:grid;grid-template-columns:auto minmax(0,1fr);gap:22px;align-items:start;margin-top:22px}
.photo{width:230px;padding:8px 8px 4px;border-radius:20px;background:var(--card);box-shadow:var(--soft);border:2px solid var(--edge)}
.photo img{width:100%;height:auto;border-radius:14px}
.photo figcaption{text-align:center;font-family:var(--font-display);font-weight:600;font-size:.9rem;margin-top:2px}
.say{position:relative;display:inline-block;padding:10px 16px;border-radius:18px;background:var(--card);border:2px solid var(--edge);box-shadow:var(--soft);font-weight:700}
.say::before{content:"";position:absolute;left:-9px;top:18px;width:14px;height:14px;background:var(--card);border-left:2px solid var(--edge);border-bottom:2px solid var(--edge);transform:rotate(45deg)}
.box-h{display:flex;align-items:center;justify-content:space-between;font-family:var(--font-display);font-weight:600;margin-bottom:10px}
.count{padding:0 10px;border-radius:8px;background:var(--gold);color:#33203B;font-size:.8rem}
.items{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.item{display:grid;justify-items:center;gap:4px;text-align:center;font-weight:800;font-size:.78rem;line-height:1.2}
.item .slot{display:grid;place-items:center;width:100%;aspect-ratio:1;border-radius:14px;background:var(--surface-2);transition:transform .2s var(--ease)}
.item .buddy{width:62%}

/* contact: message bubbles, no input box */
.chat{display:grid;gap:12px;margin-top:22px;padding:22px;border-radius:24px;background:var(--surface-2);max-width:640px}
.msg{display:flex;align-items:flex-end;gap:10px}
.msg .buddy{width:40px;flex:none}
.bub{padding:10px 16px;border-radius:18px;background:var(--bubble-a);color:var(--ink);font-weight:700;box-shadow:0 2px 0 rgba(0,0,0,.08)}
.msg.me2{justify-content:flex-end}
a.bub{display:flex;align-items:center;gap:10px;background:var(--bubble-b);text-decoration:none;overflow-wrap:anywhere;transition:transform .18s var(--ease)}
a.bub:hover{transform:translateY(-3px)}
a.bub .ic{width:26px;height:26px;flex:none}
a.bub small{display:block;font-weight:600;color:var(--ink-soft)}

/* bottom corners ---------------------------------------------------------- */
.hint{position:fixed;bottom:14px;z-index:60;display:flex;gap:8px;padding:8px;border-radius:18px;background:var(--card);border:2px solid var(--edge);box-shadow:var(--soft)}
.hint.l{left:14px}.hint.r{right:14px}
.hbtn{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 14px;border-radius:12px;border:0;background:var(--surface-2);color:var(--ink);font-family:var(--font-display);font-weight:600;font-size:.95rem;text-decoration:none;cursor:pointer;transition:transform .15s var(--ease),background .15s}
.hbtn:hover{transform:translateY(-2px)}
.hbtn:active{transform:translateY(2px)}
.hbtn.main{background:var(--accent-fill);color:#33203B}
.hbtn .ic{width:22px;height:22px}
.kc{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 5px;border-radius:50%;background:var(--card);box-shadow:inset 0 0 0 2px var(--cap);font-size:.72rem;color:var(--cap)}

/* phones: the carousel becomes a row of icons along the bottom */
@media (max-width:900px){
  body{padding-bottom:104px}
  .screen{grid-template-columns:1fr;gap:0}
  .rack{position:fixed;top:auto;bottom:10px;left:50%;transform:translateX(-50%);z-index:61;grid-auto-flow:column;gap:6px;padding:8px;border-radius:22px;background:var(--card);border:2px solid var(--edge);box-shadow:var(--soft);align-items:end}
  .cart{flex-direction:column;gap:2px;font-size:0}
  .cart .art,.cart[aria-selected=true] .art{width:46px;height:46px;border-radius:14px;border-width:3px}
  .cart[aria-selected=true] .art{transform:translateY(-10px) scale(1.12)}
  .cart .arrow{display:none}
  .hint.l{display:none}
  /* phones: the resume button moves up beside the theme button so nothing floats over the content */
  .hint.r{top:12px;bottom:auto;right:76px;padding:0;border:0;background:none;box-shadow:none}
  .hint.r .wa,.hint.r .hbtn span.t{display:none}
  .hint.r .hbtn{min-height:48px;border-radius:999px;box-shadow:var(--soft)}
  .top{padding-right:10px}
  .who{max-width:calc(100% - 200px)}
  .who .name{max-width:none;min-width:0;text-overflow:ellipsis;flex:1}
  .who .crew{flex:none}
  @media (max-width:480px){.who .crew{display:none}.on-profile .who .crew{display:flex}}
  .cart[aria-selected=true]{font-size:.68rem;max-width:64px;text-align:center}
  .grid,.fin{grid-template-columns:1fr}
  .me{grid-template-columns:1fr;justify-items:center}
  .photo{width:200px}
  .items{grid-template-columns:repeat(5,minmax(0,1fr))}
  .wall{opacity:.05}
  th,td{padding:7px 3px}
  table{font-size:.8rem}
  .col-price{display:none}
}

/* opening sequence: once per visit, about 2.3 seconds, skippable, off for reduced motion */
#intro{display:none}
.intro-on #intro{display:grid;place-items:center;position:fixed;inset:0;z-index:999;background:var(--pink-100);background-image:radial-gradient(var(--dot) 1.3px,transparent 1.4px);background-size:14px 14px;clip-path:circle(150% at 50% 46%);animation:intro-failsafe 0s linear 5s forwards}
:root[data-theme=dark].intro-on #intro{background-color:#221829}
.intro-on #intro.out{animation:iris .6s var(--ease) forwards}
@keyframes iris{to{clip-path:circle(0 at 50% 46%);visibility:hidden}}
@keyframes intro-failsafe{to{visibility:hidden}}
.boot{display:grid;justify-items:center;gap:16px;text-align:center}
.boot .art{width:150px;height:150px;border-radius:30px;border:6px solid transparent;background-image:linear-gradient(160deg,#FFD0E0,#F8AFC8),var(--glow);background-origin:border-box;background-clip:padding-box,border-box;animation:boot .7s var(--ease) both}
@keyframes boot{from{transform:scale(0) rotate(-30deg)}70%{transform:scale(1.12)}}
.boot .t{font-family:var(--font-display);font-weight:600;font-size:clamp(1.8rem,7vw,2.8rem);animation:swap .4s var(--ease) .5s both}
.boot .bar{width:190px;height:12px;border-radius:999px;background:var(--card);box-shadow:inset 0 0 0 2px var(--edge);overflow:hidden}
.boot .bar i{display:block;height:100%;width:100%;border-radius:999px;background:var(--glow);transform-origin:left;animation:load 1.5s ease-out .6s both}
@keyframes load{from{transform:scaleX(0)}}
.skip-intro{position:absolute;right:16px;bottom:16px}

/* helper characters */
.buddy{aspect-ratio:1;height:auto}
.buddy .o{stroke:var(--buddy-line,#33203B);stroke-linejoin:round;stroke-linecap:round}
.buddy .f{fill:#33203B}
.buddy .l{fill:none;stroke:#33203B;stroke-linecap:round}
.buddy .ck{fill:var(--pink-300)}

/* ---- round 2 fixes ------------------------------------------------------ */
/* helpers in dark mode: a cream outline so each shape stays clear on dark surfaces */
:root[data-theme=dark]{--buddy-line:#FFF3F7}
/* outline width by size: thin when tiny, full weight when large */
.who .crew{--cw:1.3px;--cl:1.1px}
.who .crew .buddy{width:34px;margin-left:-6px;background:none;border:0;padding:0;border-radius:0}
.cart .art{--cw:2px;--cl:1.6px}
.cart[aria-selected=true] .art{--cw:3px;--cl:2.5px}
.item .slot{--cw:2.2px;--cl:1.8px}
.msg{--cw:1.6px;--cl:1.3px}
@media (max-width:900px){.cart .art,.cart[aria-selected=true] .art{--cw:1.6px;--cl:1.3px}}

/* carousel: room for the pointer arrow */
.rack{padding-left:22px}
.cart .arrow{left:-18px}

/* finance: one column until the screen is wide enough for the table to breathe */
@media (max-width:1240px){.fin{grid-template-columns:1fr}}
tbody th{white-space:nowrap}
.tile{min-width:0}

/* item box: equal slots that wrap instead of squeezing */
.items{grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:12px}
.item .slot{width:100%}
.item{align-content:start}

/* bottom corners: icon buttons only */
.hbtn.sq{width:46px;min-height:46px;padding:0;justify-content:center;border-radius:14px}
.hbtn.sq .ic{width:24px;height:24px}
.kc{width:26px;height:26px;min-width:0;padding:0}
.kc .ic{width:16px;height:16px}
.only-s{display:none;text-decoration:none}

/* top right extras */
.sys .clock .ic:last-child{width:22px;height:22px;color:var(--ink-soft)}
.chip-btn{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:2px 12px;border-radius:999px;border:0;background:var(--surface-2);color:var(--ink);font-family:var(--font-display);font-weight:600;font-size:.95rem;cursor:pointer;transition:transform .18s var(--ease)}
.chip-btn:hover{transform:translateY(-2px)}
.chip-btn .ic{width:20px;height:20px;color:var(--gold)}
.chip-btn.bump{animation:bump .5s var(--ease)}
@keyframes bump{40%{transform:scale(1.25) rotate(-6deg)}}

/* grid and list switch */
.viewsw{display:inline-flex;gap:4px;margin-top:14px;padding:4px;border-radius:14px;background:var(--card);border:2px solid var(--edge)}
.viewsw button{display:grid;place-items:center;width:40px;height:34px;border:0;border-radius:10px;background:none;color:var(--ink-soft);cursor:pointer}
.viewsw button[aria-pressed=true]{background:var(--cap);color:var(--card)}
.viewsw .ic{width:20px;height:20px}
.grid.list{grid-template-columns:1fr}
.viewsw+.grid{margin-top:12px}

/* achievement toast */
.toast{position:fixed;left:50%;top:76px;z-index:80;display:flex;align-items:center;gap:12px;padding:10px 18px 10px 12px;border-radius:18px;background:var(--card);border:4px solid transparent;
  background-image:linear-gradient(var(--card),var(--card)),var(--glow);background-origin:border-box;background-clip:padding-box,border-box;box-shadow:var(--soft);transform:translateX(-50%);animation:toast .45s var(--ease)}
.toast[hidden]{display:none}
.toast .ic{width:34px;height:34px;color:var(--gold)}
.toast small{display:block;font-weight:800;font-size:.72rem;color:var(--ink-soft)}
.toast b{font-family:var(--font-display);font-weight:600}
@keyframes toast{from{transform:translate(-50%,-30px);opacity:0}}

/* sheets: the achievement list and the break room */
.sheet{width:min(92vw,460px);padding:18px;border:4px solid transparent;border-radius:26px;color:var(--ink);background-color:var(--card);
  background-image:linear-gradient(var(--card),var(--card)),var(--glow);background-origin:border-box;background-clip:padding-box,border-box;box-shadow:0 20px 50px rgba(51,32,59,.3)}
.sheet::backdrop{background:rgba(51,32,59,.45)}
.sheet[open]{animation:sheet-in .25s ease-out}
@keyframes sheet-in{from{opacity:0}}
@keyframes pop-in{from{transform:scale(.85);opacity:0}}
.sheet-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.sheet-top h2{font-size:1.4rem}
.sheet img{width:100%;height:auto;border-radius:16px}
.cheevo-list{display:grid;gap:8px}
.cheevo-list li{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:8px 12px 8px 8px;border-radius:16px;background:var(--surface-2);opacity:.6}
.cheevo-list .badge{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;color:#33203B;filter:grayscale(1)}
.cheevo-list .badge .ic{width:26px;height:26px}
.cheevo-list b{display:block;font-family:var(--font-display);font-weight:600}
.cheevo-list small{font-weight:700;color:var(--ink-soft)}
.cheevo-list li::after{content:"Locked";font-family:var(--font-display);font-weight:600;font-size:.74rem;color:var(--ink-faint)}
.cheevo-list li.got{opacity:1}
.cheevo-list li.got .badge{filter:none}
.cheevo-list li.got::after{content:"Earned";color:var(--accent)}

/* the profile tile reacts when it is tapped */
.cart .art.boing{animation:boing .45s var(--ease)}
@keyframes boing{30%{transform:scale(1.12,.9)}60%{transform:scale(.95,1.06)}}

@media (max-width:900px){
  .hint.r{display:none}
  .only-s{display:grid}
  .sys{padding:5px;gap:6px}
  .who{max-width:calc(100% - 170px)}
  .toast{top:70px;width:max-content;max-width:calc(100% - 24px)}
}
@media (max-width:480px){.chip-btn{padding:2px 9px}}

/* round 2 polish: the name never clips, and the toast sits clear of the title */
.who{flex:none}
.title-pill{min-width:0;flex:0 1 340px}
.toast{top:auto;bottom:22px}
@media (max-width:900px){.who{flex:0 1 auto}.toast{top:auto;bottom:112px}}

/* ---- round 3 ------------------------------------------------------------ */
/* corner tags sit inside the card with even spacing */
.plat{top:12px;right:12px}
.ach{position:static}
.tile{position:relative}
.ach .num{padding-right:86px}

/* the chosen buddy rides in the top left */
.who .mate{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--surface-2);--cw:1.6px;--cl:1.3px}
.who .mate .buddy{width:28px}
.who .mate.boing{animation:boing .45s var(--ease)}

/* item box buttons */
.items li{display:block}
button.item{width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:800;font-size:.78rem;line-height:1.2;cursor:pointer}
button.item .slot{border:3px solid transparent;transition:transform .2s var(--ease)}
button.item:hover .slot{transform:translateY(-4px)}
button.item[aria-pressed=true] .slot{background-image:linear-gradient(var(--surface-2),var(--surface-2)),var(--glow);background-origin:border-box;background-clip:padding-box,border-box}
button.item[aria-pressed=true] .buddy{animation:hop2 1.6s ease-in-out infinite}
@keyframes hop2{50%{transform:translateY(-5px)}}

/* number pages on the profile: pills like the app's filter tabs */
.tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.tabs button{min-height:40px;padding:4px 18px;border-radius:999px;border:2px solid var(--edge);background:var(--card);color:var(--ink-soft);font-family:var(--font-display);font-weight:600;font-size:.98rem;cursor:pointer;box-shadow:var(--soft);transition:transform .18s var(--ease)}
.tabs button:hover{transform:translateY(-2px)}
.tabs button[aria-pressed=true]{background:var(--cap);border-color:var(--cap);color:var(--card)}
.tabs+.grid{margin-top:14px}
.js [data-stats] .tile[hidden]{display:none}
.js [data-stats] .tile{animation:deal .35s var(--ease) both}
.js [data-stats] .tile:nth-child(4n+2){animation-delay:.05s}
.js [data-stats] .tile:nth-child(4n+3){animation-delay:.1s}
.js [data-stats] .tile:nth-child(4n+4){animation-delay:.15s}
@keyframes deal{from{opacity:0;transform:translateY(14px) scale(.96)}}

/* every tile bounces when picked */
.cart .art.boing{animation:boing .45s var(--ease)}
/* phones: tiles lift up on hover, they never slide sideways */
@media (max-width:900px){.cart:hover .art{transform:translateY(-4px)}.cart[aria-selected=true]:hover .art{transform:translateY(-12px) scale(1.12)}}

/* number cards: the tag sits above the number, so long numbers never wrap around it */
.ach{grid-template-rows:auto auto auto}
.ach .badge{grid-row:1 / span 3}
.ach .plat{position:static;grid-column:2;grid-row:1;justify-self:start;margin-bottom:2px}
.ach .num{grid-column:2;grid-row:2;padding-right:0}
.ach p{grid-column:2;grid-row:3}

/* phones: a soft strip behind the top pills so page text never shows through between them */
@media (max-width:900px){
  .top{top:0;padding:10px 10px 8px;background:color-mix(in srgb,var(--page) 86%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
  .hint.r{top:10px}
}

/* ---- round 4 ------------------------------------------------------------ */
/* dots: kept, but half as strong so they sit quietly behind the stars */
:root{--dot:#FBE4EC}
:root[data-theme=dark]{--dot:#231A2A}

/* carousel: wider column so a tile label never touches the screen beside it */
.screen{grid-template-columns:292px minmax(0,1fr);gap:22px}
.cart>span:last-child{min-width:0;overflow-wrap:anywhere}
.cart .art{width:60px;height:60px;border-radius:15px}
.cart[aria-selected=true] .art{width:124px;height:124px}
.rack{gap:10px}
.a-aqua{background:linear-gradient(160deg,#E1F6F9,#B9E7EE)}
.cart[aria-selected=true] .a-aqua{background-image:linear-gradient(160deg,#E1F6F9,#B9E7EE),var(--glow)}
@media (max-width:900px){
  .screen{grid-template-columns:1fr;gap:0}
  .rack{gap:4px;padding:8px 6px}
  .cart .art,.cart[aria-selected=true] .art{width:41px;height:41px;border-radius:12px}
}

/* keyboard focus on a tile: a soft ring that follows the tile shape, not a box around the whole row */
.cart:focus-visible{outline:none}
.cart:focus-visible .art{outline:3px solid var(--accent);outline-offset:4px}

/* number cards are real buttons: they open the section the number comes from */
button.tile.ach{width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer}
.ach .desc{display:block;grid-column:2;grid-row:3;font-size:.92rem;font-weight:700;color:var(--ink-soft);line-height:1.35;padding-right:26px}
.ach .go{position:absolute;right:14px;bottom:12px;color:var(--accent);opacity:.5;transition:transform .2s var(--ease),opacity .2s}
.ach .go .ic{width:20px;height:20px}
button.tile.ach:hover .go,button.tile.ach:focus-visible .go{opacity:1;transform:translateX(4px)}
button.tile.ach:focus-visible{outline:none;background-image:linear-gradient(var(--card),var(--card)),var(--glow)}

/* cards that do not open anything stay still, so nothing looks clickable when it is not */
.grid>.tile.job:hover,.grid>.tile.job:focus-within{transform:none;background-image:linear-gradient(var(--card),var(--card)),linear-gradient(var(--edge),var(--edge))}
.soon{margin-top:10px;display:inline-block;padding:2px 12px;border-radius:999px;background:var(--surface-2);color:var(--ink-faint);font-family:var(--font-display);font-weight:600;font-size:.74rem}

/* photo flip: both photos keep their own proportions */
.flip{flex:none;width:230px;padding:0;border:0;background:none;cursor:pointer;perspective:900px}
.flip-in{display:grid;transform-style:preserve-3d;transition:transform .6s var(--ease)}
.flip .face{grid-area:1/1;display:block;width:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.flip .back{transform:rotateY(180deg)}
.flip.flipped .flip-in{transform:rotateY(180deg)}
.cap2{display:block;text-align:center;font-family:var(--font-display);font-weight:600;font-size:.9rem;margin-top:2px;color:var(--ink)}
.flip:focus-visible{outline:none}
.flip:focus-visible .photo{outline:3px solid var(--accent);outline-offset:4px}
@media (prefers-reduced-motion:reduce){.flip-in{transition:none}}
@media (max-width:900px){.flip{width:200px}}

/* buddy themes: each buddy recolors the glow and the wallpaper. Pink always leads. */
:root{--tint:var(--accent)}
:root[data-buddy=brick]{--glow:linear-gradient(135deg,#FF8FBE 0%,#FFC76E 55%,#FFE08A 100%);--tint:#D99A1C}
:root[data-buddy=piece]{--glow:linear-gradient(135deg,#FF8FBE 0%,#9FE3C8 55%,#7FD8C4 100%);--tint:#3FA98C}
:root[data-buddy=pot]{--glow:linear-gradient(135deg,#FF8FBE 0%,#FFB38A 55%,#FF9E8A 100%);--tint:#E0764F}
:root[data-buddy=case]{--glow:linear-gradient(135deg,#FF8FBE 0%,#A9D2FF 55%,#7FB8FF 100%);--tint:#4C8EDB}
.wall{color:var(--tint);transition:color .4s}
.who .mate{box-shadow:inset 0 0 0 3px transparent;background-image:linear-gradient(var(--surface-2),var(--surface-2)),var(--glow);background-origin:border-box;background-clip:padding-box,border-box;border:3px solid transparent}
.gauge .fill,.boot .bar i{transition:background .4s}

/* buddy tip bubble */
.tip{position:fixed;top:70px;left:18px;z-index:59;max-width:min(320px,calc(100% - 36px));padding:8px 14px;border-radius:16px;background:var(--card);border:2px solid var(--edge);box-shadow:var(--soft);font-weight:700;font-size:.88rem;color:var(--ink)}
.tip[hidden]{display:none}
.tip::before{content:"";position:absolute;left:22px;top:-8px;width:12px;height:12px;background:var(--card);border-left:2px solid var(--edge);border-top:2px solid var(--edge);transform:rotate(45deg)}
.tip.in{animation:tip-in .35s var(--ease)}
@keyframes tip-in{from{opacity:0;transform:translateY(-8px) scale(.94)}}

/* tip bubble sits above the Up and Down buttons, with the buddy inside it, so it never covers the carousel */
.tip{top:auto;bottom:88px;left:14px;display:flex;align-items:center;gap:10px;max-width:270px;--cw:1.5px;--cl:1.2px}
.tip[hidden]{display:none}
.tip::before{display:none}
.tip .buddy{width:30px;flex:none}
@keyframes tip-in{from{opacity:0;transform:translateY(10px) scale(.94)}}
@media (max-width:900px){.tip{bottom:100px;left:10px;max-width:calc(100% - 20px)}}

/* card tags sit above the title on every card, so a long title never runs under a tag */
.job .plat{position:static;display:inline-block;margin-bottom:8px}
.job h3{padding-right:0}

/* ---- round 5 ------------------------------------------------------------ */
/* buddies never recolor the console */
.who .mate{padding:0;cursor:pointer;font:inherit}
.who .mate:hover{transform:rotate(-8deg) scale(1.08)}
.who .mate{transition:transform .18s var(--ease)}

/* the picked buddy floats beside the mouse */
.pal{position:fixed;left:0;top:0;z-index:9989;width:34px;pointer-events:none;opacity:0;transition:opacity .25s;--cw:1.6px;--cl:1.3px;will-change:transform}
.pal.on{opacity:1}
.pal .buddy{width:100%;filter:drop-shadow(0 3px 0 rgba(51,32,59,.18))}
.pal.hop .buddy{animation:boing .4s var(--ease)}

/* finance pieces and other switchers */
.js [data-pane][hidden]{display:none}
.js [data-pane]{animation:deal .35s var(--ease)}
.fin .tile h3{font-size:1.15rem}

/* next screen button at the end of each screen */
.nextup{display:flex;align-items:center;gap:10px;width:100%;margin-top:22px;padding:14px 18px;border-radius:20px;border:4px solid transparent;color:var(--ink);font-family:var(--font-display);font-weight:600;font-size:1.1rem;text-align:left;cursor:pointer;
  background-image:linear-gradient(var(--card),var(--card)),var(--glow);background-origin:border-box;background-clip:padding-box,border-box;box-shadow:var(--soft);transition:transform .18s var(--ease)}
.nextup small{font-family:var(--font-body);font-weight:800;font-size:.76rem;color:var(--ink-soft);text-transform:uppercase;letter-spacing:.06em}
.nextup .ic{margin-left:auto;width:24px;height:24px;color:var(--accent);transition:transform .2s var(--ease)}
.nextup:hover{transform:translateY(-3px)}
.nextup:hover .ic{transform:translateX(5px)}
@media (min-width:901px){.nextup{max-width:360px;margin-left:auto}}

/* a swipe slides the next screen in from the side it came from */
[data-dir=right].js .panel{animation-name:slide-r}
@keyframes slide-r{from{opacity:0;transform:translateX(-26px)}}

/* ---- round 6 ------------------------------------------------------------ */
/* background stars: half as strong */
:root{--star-opacity:.27}
:root[data-theme=dark]{--star-opacity:.055}

/* carousel tiles: springy hover, a sway while selected, and a pop on the icon when pressed */
.cart .art{transition:width .35s var(--spring),height .35s var(--spring),border-radius .3s var(--ease),transform .4s var(--spring)}
.cart:hover .art{transform:translateY(-5px) rotate(-4deg) scale(1.1)}
.cart:active .art{transform:translateY(1px) scale(.94)}
.cart .art>.ic,.cart .art>.panda{transition:transform .4s var(--spring)}
.cart:hover .art>.ic,.cart:hover .art>.panda{animation:wiggle .7s var(--ease)}
@keyframes wiggle{20%{transform:rotate(-12deg) scale(1.12)}45%{transform:rotate(9deg) scale(1.12)}70%{transform:rotate(-5deg) scale(1.06)}}
.cart[aria-selected=true] .art>.ic,.cart[aria-selected=true] .art>.panda{animation:idle 2.6s ease-in-out infinite}
@keyframes idle{0%,100%{transform:rotate(-4deg) translateY(0)}50%{transform:rotate(4deg) translateY(-4px)}}
.cart .art.boing>.ic,.cart .art.boing>.panda{animation:icon-pop .55s var(--spring)}
@keyframes icon-pop{0%{transform:scale(.5) rotate(-25deg)}55%{transform:scale(1.25) rotate(10deg)}100%{transform:scale(1) rotate(0)}}
@media (max-width:900px){
  .cart:hover .art{transform:translateY(-6px) scale(1.1)}
  .cart[aria-selected=true]:hover .art{transform:translateY(-12px) scale(1.14)}
}

/* every small control shares the same spring */
.round,.hbtn,.chip-btn,.tabs button,.viewsw button,.nextup,.media,a.bub,.who .mate,button.tile.ach{transition:transform .35s var(--spring),background .2s,box-shadow .2s}
.round:hover{transform:rotate(14deg) scale(1.12)}
.hbtn:hover{transform:translateY(-4px) scale(1.06)}
.hbtn:hover .ic,.chip-btn:hover .ic,.round:hover .ic{animation:wiggle .7s var(--ease)}
.hbtn:active,.chip-btn:active,.round:active,.tabs button:active{transform:scale(.92)}

/* crew stations */
.chip-btn .buddy{width:24px;--cw:1.4px;--cl:1.1px}
.toast .buddy{width:40px;--cw:1.8px;--cl:1.4px;animation:hop2 1s ease-in-out infinite}
.nextup .buddy{width:38px;flex:none;--cw:1.7px;--cl:1.4px;transition:transform .4s var(--spring)}
.nextup:hover .buddy{transform:translateY(-5px) rotate(-8deg)}
.toast{bottom:68px}

/* meet the crew */
.crew-list{display:grid;gap:10px}
.crew-list li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px 10px 10px;border-radius:18px;background:var(--surface-2)}
.crew-list .slot{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:var(--card);--cw:2px;--cl:1.6px}
.crew-list .slot .buddy{width:68%;transition:transform .4s var(--spring)}
.crew-list li:hover .slot .buddy{transform:translateY(-4px) rotate(-6deg)}
.crew-list b{display:block;font-family:var(--font-display);font-weight:600;font-size:1.08rem;line-height:1.2}
.crew-list small{display:block;font-weight:800;font-size:.8rem;color:var(--accent)}
.jobline{display:block;margin-top:3px;font-size:.86rem;font-weight:600;color:var(--ink-soft);line-height:1.4}
.jobline i{font-style:normal;display:inline-block;margin-right:6px;padding:0 8px;border-radius:999px;background:var(--cap);color:var(--card);font-family:var(--font-display);font-weight:600;font-size:.7rem;vertical-align:1px}
.pickbtn{min-height:38px;padding:4px 14px;border-radius:999px;border:2px solid var(--edge);background:var(--card);color:var(--ink);font-family:var(--font-display);font-weight:600;font-size:.84rem;white-space:nowrap;cursor:pointer;transition:transform .35s var(--spring)}
.pickbtn:hover{transform:translateY(-3px) scale(1.05)}
.pickbtn[aria-pressed=true]{background:var(--accent-fill);border-color:var(--accent-fill);color:#33203B}
/* the cursor helper only exists with a mouse, so the pick buttons hide on touch screens */
@media (hover:none){.pickbtn,.pick-note{display:none}}
@media (max-width:560px){.crew-list li{grid-template-columns:auto minmax(0,1fr)}.pickbtn{grid-column:2;justify-self:start}}

/* nudge */
.nudge{display:grid;gap:10px;background:var(--card);border:2px solid var(--edge)}
.nudge p{font-weight:700}
.nbtn{justify-self:start;min-height:44px;padding:6px 22px;border-radius:999px;border:0;background:var(--accent-fill);color:#33203B;font-family:var(--font-display);font-weight:600;font-size:1.02rem;cursor:pointer;box-shadow:0 4px 0 var(--pink-500);transition:transform .3s var(--spring),box-shadow .15s}
.nbtn:hover{transform:translateY(-3px) rotate(-2deg)}
.nbtn:active{transform:translateY(3px);box-shadow:0 1px 0 var(--pink-500)}
.nbtn:disabled{opacity:.7;cursor:default;transform:none}
.nudge form{display:grid;gap:8px}
.nudge form[hidden],.nbtn[hidden]{display:none}
.nudge label{display:grid;gap:2px;font-weight:800;font-size:.84rem}
.nudge input{min-height:42px;padding:6px 12px;border-radius:12px;border:2px solid var(--edge);background:var(--surface-2);color:var(--ink);font:inherit;font-weight:600;cursor:text}
.nudge input:focus-visible{outline:3px solid var(--accent);outline-offset:1px}
.nudge .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.nrow{display:flex;gap:10px;align-items:center}
.nskip{border:0;background:none;color:var(--ink-soft);font:inherit;font-weight:800;text-decoration:underline;cursor:pointer;min-height:44px;padding:0 8px}
.msg{align-items:flex-start}
.msg>.buddy{margin-top:6px}

/* the crew gets the full width under the photo, two columns when there is room */
.crew-tile{margin-top:20px}
@media (min-width:1180px){.crew-list{grid-template-columns:1fr 1fr}}

/* ---- round 7 ------------------------------------------------------------ */
/* glow: a warm strawberry to peach to apricot blend, in place of pink, purple, and blue */
:root{--glow:linear-gradient(135deg,#FF8FBE 0%,#FFA58F 55%,#FFD49A 100%)}

/* hover animations run from the "hov" class, which is only removed after they finish */
.cart:hover .art>.ic,.cart:hover .art>.panda,.hbtn:hover .ic,.chip-btn:hover .ic,.round:hover .ic{animation:none}
.cart.hov .art>.ic,.cart.hov .art>.panda,.hbtn.hov .ic,.chip-btn.hov .ic,.round.hov .ic,.crewbtn.hov .buddy,.nextup.hov .buddy,.who .mate.hov .buddy{animation:wiggle .7s var(--ease)}
.cart[aria-selected=true]:not(.hov) .art>.ic,.cart[aria-selected=true]:not(.hov) .art>.panda{animation:idle 2.6s ease-in-out infinite}
.cart .art.boing>.ic,.cart .art.boing>.panda{animation:icon-pop .55s var(--spring)!important}

/* helpers: one drawing for light, one for dark */
:root{
  --line-kit:#33203B;--line-brick:#33203B;--line-piece:#33203B;--line-pot:#33203B;--line-case:#33203B;--face:#33203B;
  --kit-1:#EEF2FB;--kit-2:#C9D6EE;--kit-v:#33203B;--kit-e:#FFFDF9;
  --brick-1:#FFE08A;--brick-2:#FFD76E;
  --piece-1:#BFEBD9;
  --pot-1:#FFCFB3;--pot-2:#FFBFA0;--pot-4:#FFE3D3;
  --case-1:#BFDCFB;
  --bud-3:#F8AFC8;--bud-cheek:#F8AFC8;
}
:root[data-theme=dark]{
  --line-kit:#B9C8F5;--line-brick:#FFD98A;--line-piece:#A5E8CF;--line-pot:#FFC2A6;--line-case:#B4D6FF;--face:#FFF6FA;
  --kit-1:#3A4468;--kit-2:#2B3352;--kit-v:#151022;--kit-e:#9FE8FF;
  --brick-1:#7C5D17;--brick-2:#65490F;
  --piece-1:#2A6553;
  --pot-1:#84472F;--pot-2:#6B3823;--pot-4:#9A573B;
  --case-1:#2C5285;
  --bud-3:#F08FB0;--bud-cheek:#E26C97;
}
#kit .o{stroke:var(--line-kit)}#brick .o{stroke:var(--line-brick)}#piece .o{stroke:var(--line-piece)}#pot .o{stroke:var(--line-pot)}#case .o{stroke:var(--line-case)}
#kit .b1{fill:var(--kit-1)}#kit .b2{fill:var(--kit-2)}#kit .v{fill:var(--kit-v)}#kit .e{fill:var(--kit-e)}
#brick .b1{fill:var(--brick-1)}#brick .b2{fill:var(--brick-2)}
#piece .b1{fill:var(--piece-1)}
#pot .b1{fill:var(--pot-1)}#pot .b2{fill:var(--pot-2)}#pot .b4{fill:var(--pot-4)}
#case .b1{fill:var(--case-1)}#case .w{fill:var(--line-case)}
.buddy .b3{fill:var(--bud-3)}
.buddy .f{fill:var(--face)}
.buddy .l{stroke:var(--face)}
.buddy .ck{fill:var(--bud-cheek)}
:root[data-theme=dark] .buddy{filter:drop-shadow(0 0 5px rgba(255,255,255,.12))}

/* About me: the crew sits beside the photo and fills the space */
.crewbox{padding:14px;border-radius:20px;background:var(--card);border:2px solid var(--edge);box-shadow:var(--soft)}
.crewbox .box-h{margin-bottom:10px}
.crewrow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.crewbtn{display:grid;justify-items:center;gap:2px;width:100%;padding:8px 2px 8px;border:3px solid transparent;border-radius:16px;background:var(--surface-2);color:var(--ink);font:inherit;cursor:pointer;transition:transform .35s var(--spring)}
.crewbtn .slot{display:grid;place-items:center;width:100%;height:50px;--cw:2px;--cl:1.6px}
.crewbtn .buddy{width:44px}
.crewbtn b{font-family:var(--font-display);font-weight:600;font-size:.95rem;line-height:1.2}
.crewbtn small{font-weight:800;font-size:.7rem;color:var(--ink-soft);line-height:1.2}
.crewbtn:hover{transform:translateY(-4px)}
.crewbtn:active{transform:scale(.94)}
.crewbtn[aria-pressed=true]{background-image:linear-gradient(var(--surface-2),var(--surface-2)),var(--glow);background-origin:border-box;background-clip:padding-box,border-box}
.crewbtn:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.crewsay{margin-top:10px;font-size:.92rem;font-weight:700;line-height:1.5;color:var(--ink)}
@media (max-width:520px){.crewrow{gap:5px}.crewbtn small{font-size:.62rem}.crewbtn .buddy{width:36px}}

/* bottom right: the label slides out beside the icon */
.hbtn.sq{width:auto;min-width:46px;padding:0 11px;gap:0}
.hbtn.sq .lbl{display:inline-block;max-width:0;opacity:0;overflow:hidden;white-space:nowrap;font-size:.9rem;transition:max-width .4s var(--spring),opacity .25s,margin .4s var(--spring)}
.hbtn.sq:hover .lbl,.hbtn.sq:focus-visible .lbl{max-width:90px;opacity:1;margin-left:8px}
.hbtn.sq:hover{transform:translateY(-3px)}

/* nudge lines pop when they change */
.nudge .pop{animation:got .45s var(--spring)}

/* ---- report pages ------------------------------------------------------- */
.report{padding-bottom:60px}
.sheetpage{width:min(100% - 28px,860px);margin-inline:auto;display:grid;gap:16px}
.sheetpage .caps{margin-top:0}
.sheetpage .lead{margin-top:4px;max-width:none}
.sheetpage .tile{display:grid;gap:12px}
.sheetpage .tile h2{font-size:1.35rem}
.sheetpage p{line-height:1.65}
.back{text-decoration:none;padding-right:18px;transition:transform .35s var(--spring)}
.back:hover{transform:translateX(-4px)}
.back .ic{color:var(--accent)}
.flipx{transform:scaleX(-1)}
.list{display:grid;gap:8px;padding-left:0}
.list li{position:relative;padding-left:22px;line-height:1.55}
ul.list li::before{content:"";position:absolute;left:2px;top:.62em;width:9px;height:9px;border-radius:50%;background:var(--accent-fill)}
ol.list{counter-reset:n}
ol.list li{padding-left:34px;counter-increment:n}
ol.list li::before{content:counter(n);position:absolute;left:0;top:.1em;display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:var(--surface-2);font-family:var(--font-display);font-weight:600;font-size:.78rem}
table.plain td,table.plain th{vertical-align:top}
table.plain td{text-align:left}
table.plain thead th{text-align:left}
.shot{padding:10px;border-radius:16px;background:#fff;border:2px solid var(--edge)}
.shot img{width:100%;height:auto;border-radius:8px}
.shot figcaption{margin-top:6px;font-size:.84rem;font-weight:700;color:#55405E;text-align:center}
.praise{display:block;font-weight:700}
.praise::before{display:none}
.report .nextup{max-width:none;margin-top:6px;text-decoration:none}
.more{display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding:6px 16px;border-radius:999px;background:var(--accent-fill);color:#33203B;font-family:var(--font-display);font-weight:600;font-size:.9rem;text-decoration:none;transition:transform .35s var(--spring)}
.more:hover{transform:translateY(-3px)}
.more .ic{width:18px;height:18px;transition:transform .35s var(--spring)}
.more:hover .ic{transform:translateX(4px)}
@media (max-width:900px){.report .top{position:sticky}.report{padding-top:0}.sheetpage{margin-top:14px}}

/* ---- round 8 ------------------------------------------------------------ */
/* every focus ring uses the one focus color */
.cart:focus-visible .art,.flip:focus-visible .photo{outline-color:var(--focus)}
.crewbtn:focus-visible,.nudge input:focus-visible{outline-color:var(--focus)}
button.tile.ach:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

/* wiggle reaches every tile icon the same way */
.cart.hov .art .ic,.cart.hov .art .panda{animation:wiggle .7s var(--ease)}

/* spacing inside the nudge bubble, and optical centering on the Next button */
.nudge{padding:16px 18px 18px;gap:14px}
.nextup{padding:14px 20px 14px 16px;gap:12px}
.nextup small{line-height:1;margin-top:3px;align-self:center}
.nextup>span:not(.ic){line-height:1;align-self:center;padding-top:1px}
.nextup .buddy{align-self:center;margin-block:-1px}
.hbtn,.more,.nbtn,.tabs button,.chip-btn,.recent-chip{line-height:1.1}
.hbtn .lbl{padding-top:1px}

/* contact screen: email and WhatsApp are already on the page, so the corner card keeps only the resume */
[data-screen=contact] .hint.r .hbtn:not(.main){display:none}

/* deck: a pile of slides to flip through */
.deck{margin-top:16px;display:grid;gap:12px}
.deck-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.deck-count{padding:2px 12px;border-radius:999px;background:var(--surface-2);font-family:var(--font-display);font-weight:600;font-size:.84rem;color:var(--ink-soft)}
.deck-view{position:relative;margin:4px 10px 10px 4px}
.deck-view::before,.deck-view::after{content:"";position:absolute;inset:0;border-radius:14px;background:var(--surface-2);border:2px solid var(--edge)}
.deck-view::before{transform:translate(10px,10px) rotate(1.2deg)}
.deck-view::after{transform:translate(5px,5px) rotate(.6deg)}
.deck-view img{position:relative;z-index:1;width:100%;height:auto;border-radius:14px;border:2px solid var(--edge);background:#fff}
.deck-view img.turn{animation:turn .45s var(--spring)}
@keyframes turn{from{transform:translate(18px,-8px) rotate(3deg);opacity:.4}}
.deck-bar{display:flex;align-items:center;gap:8px}
.deck-bar .more{margin:0 0 0 auto}
.deck-bar .round{width:42px;height:42px}

/* recently opened */
.recent{margin-top:20px}
.recent[hidden]{display:none}
.recent .box-h{justify-content:flex-start;gap:8px;color:var(--ink-soft);font-size:.95rem}
.recent .box-h .ic{vertical-align:-0.2em}
.recent-row{display:flex;flex-wrap:wrap;gap:8px}
.recent-chip{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:4px 16px 4px 12px;border-radius:999px;border:2px solid var(--edge);background:var(--card);color:var(--ink);font-family:var(--font-display);font-weight:600;font-size:.92rem;cursor:pointer;box-shadow:var(--soft);transition:transform .35s var(--spring)}
.recent-chip:hover{transform:translateY(-3px)}
.recent-chip .ic{width:20px;height:20px;color:var(--accent)}

/* placeholders */
.ph-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin-top:14px}
.ph-row [data-placeholder]{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-weight:700}
.ph-row [data-placeholder]::before{flex-basis:100%;margin-bottom:0}
.ph-row [data-placeholder] .ic{color:var(--accent)}

/* dark mode: clearer layers, so the eye can skim */
:root[data-theme=dark]{
  --page:#120D17; --dot:#1D1524; --card:#2E2238; --edge:#5B4669; --surface-2:#3D2E4B;
  --ink:#FFF4F8; --ink-soft:#E6D3DE; --ink-faint:#BFA9B8; --cap:#F7A8C4;
  --soft:0 2px 0 #09060C,0 12px 26px rgba(0,0,0,.55);
}
:root[data-theme=dark] .big{color:#FFFFFF;text-shadow:0 3px 0 #2E2238,0 8px 20px rgba(0,0,0,.5)}
:root[data-theme=dark] .eyebrow{color:#FF9EC2}
:root[data-theme=dark] .ach .num,:root[data-theme=dark] .job h3,:root[data-theme=dark] .sheetpage .tile h2,:root[data-theme=dark] caption,:root[data-theme=dark] .fin .tile h3{color:#FFC3D8}
:root[data-theme=dark] .job .role{color:#FF9EC2}
:root[data-theme=dark] .cap{background:#1B1422}
:root[data-theme=dark] .cap b{color:#2A1830}
:root[data-theme=dark] .tabs button[aria-pressed=true],:root[data-theme=dark] .viewsw button[aria-pressed=true]{color:#2A1830}
:root[data-theme=dark] .lead{color:#FFF4F8}
:root[data-theme=dark] tbody tr>*{background:#3D2E4B}
:root[data-theme=dark] tr.pick>*{background:#FFE08A;color:#2A1830}
:root[data-theme=dark] .pill,:root[data-theme=dark] .hint{background:#2E2238;border-color:#5B4669}
:root[data-theme=dark] .cart{color:#E6D3DE}
:root[data-theme=dark] .cart[aria-selected=true]{color:#FFFFFF}

/* the carousel scales with the window height, so it never runs into the Up and Down buttons on short screens */
@media (min-width:901px){
  .rack{--t:clamp(32px,calc((100vh - 336px) / 9.3),58px)}
  .cart .art{width:var(--t);height:var(--t);border-radius:calc(var(--t) * .25)}
  .cart[aria-selected=true] .art{width:calc(var(--t) * 2.05);height:calc(var(--t) * 2.05);border-radius:calc(var(--t) * .4)}
  /* the tip bubble sits beside the Up and Down buttons, clear of the carousel */
  .tip{left:14px;bottom:86px}
}

/* ---- round 9 ------------------------------------------------------------ */
/* helpers in dark mode: the light drawing, unchanged, with a cream sticker edge */
:root[data-theme=dark]{
  --line-kit:#33203B;--line-brick:#33203B;--line-piece:#33203B;--line-pot:#33203B;--line-case:#33203B;--face:#33203B;
  --kit-1:#EEF2FB;--kit-2:#C9D6EE;--kit-v:#33203B;--kit-e:#FFFDF9;
  --brick-1:#FFE08A;--brick-2:#FFD76E;
  --piece-1:#BFEBD9;
  --pot-1:#FFCFB3;--pot-2:#FFBFA0;--pot-4:#FFE3D3;
  --case-1:#BFDCFB;
  --bud-3:#F8AFC8;--bud-cheek:#F8AFC8;
}
:root[data-theme=dark] .buddy{--stk:2px;filter:drop-shadow(var(--stk) 0 0 #FFF6EE) drop-shadow(calc(var(--stk) * -1) 0 0 #FFF6EE) drop-shadow(0 var(--stk) 0 #FFF6EE) drop-shadow(0 calc(var(--stk) * -1) 0 #FFF6EE)}
:root[data-theme=dark] :is(.who .mate,.chip-btn,.msg,.tip,.nextup,.toast,.pal) .buddy{--stk:1.4px}

/* deck slides use the full width of the screen, centered with even space around them */
.fin .deck{grid-column:1 / -1}
.deck-view{width:min(100% - 20px,760px);margin:4px auto 18px}

/* the photo card has even space on every side */
.flip .photo{padding:10px 10px 8px}
.flip .cap2{margin-top:6px}

/* number groups: a clear label, and number cards without small tags */
.numhead{display:grid;gap:4px;margin-top:24px}
.numtitle{font-size:1.3rem}
.numhead .ic{width:18px;height:18px;margin-right:6px;color:var(--accent);animation:point 1.6s ease-in-out infinite}
@keyframes point{50%{transform:translateX(3px)}}
.numhead+.tabs{margin-top:12px}
button.tile.ach{grid-template-rows:auto auto;align-content:center}
button.tile.ach .badge{grid-row:1 / span 2}
button.tile.ach .num{grid-row:1;align-self:end}
button.tile.ach .desc{grid-row:2;align-self:start}
.ach .go{opacity:.85}

/* experience: everything on one screen */
.speedrun{display:flex;align-items:center;gap:10px;margin-top:14px;padding:10px 16px;border-radius:16px;font-family:var(--font-display);font-weight:600;color:#33203B;border:3px solid transparent;
  background-image:linear-gradient(#FFF3C7,#FFF3C7),var(--glow);background-origin:border-box;background-clip:padding-box,border-box;animation:got .5s var(--spring)}
.speedrun[hidden]{display:none}
.speedrun .ic{width:24px;height:24px;color:var(--pink-700)}
.grid.jobs{grid-template-areas:"n n" "b r" "b f"}
.j-n{grid-area:n}.j-b{grid-area:b}.j-r{grid-area:r}.j-f{grid-area:f}
.j-n .list{grid-template-columns:1fr 1fr;column-gap:28px}
.grid.jobs.list{grid-template-areas:"n" "b" "r" "f";grid-template-columns:1fr}
.job .list{margin-top:10px;font-size:.95rem;color:var(--ink-soft)}
.subhead{margin:28px 0 12px;font-size:1.3rem}
.edu{display:grid;gap:10px}
.edu-row{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px 14px}
.edu-row h4{margin:0;font-family:var(--font-display);font-weight:600;font-size:1.15rem}
.edu-row+.body+.body+.edu-row{margin-top:8px;padding-top:14px;border-top:2px dashed var(--edge)}
.edu .plat,.edu-row .plat{position:static}
.skills .skill-h{font-family:var(--font-display);font-weight:600;font-size:1rem;margin-top:4px}
.skills .chips{margin:8px 0 12px}
@media (max-width:900px){.grid.jobs{grid-template-areas:"n" "b" "r" "f";grid-template-columns:1fr}.j-n .list{grid-template-columns:1fr}}

/* contact: Pot pulls a ghost cursor over to the nudge button */
.guide{position:fixed;left:0;top:0;z-index:9995;width:92px;height:64px;pointer-events:none;opacity:0}
.guide .ghost{position:absolute;left:0;top:0;width:30px;height:30px}
.guide .ghost path{fill:#F8AFC8;stroke:#33203B;stroke-width:2.4;stroke-linejoin:round}
.guide .arms{position:absolute;inset:0;width:92px;height:64px}
.guide .arms path{fill:none;stroke:#33203B;stroke-width:2.6;stroke-linecap:round}
.guide .hand{position:absolute;width:11px;height:11px;border-radius:50%;background:#FFCFB3;border:2px solid #33203B}
.guide .h1{left:15px;top:19px}.guide .h2{left:19px;top:27px}
.guide .buddy{position:absolute;left:44px;top:16px;width:46px;--cw:1.8px;--cl:1.4px;animation:hop2 .5s ease-in-out infinite}
.guide-say{position:fixed;z-index:9996;max-width:250px;margin:0;padding:10px 16px;border-radius:18px;font-family:var(--font-display);font-weight:600;color:var(--ink);border:3px solid transparent;
  background-image:linear-gradient(var(--card),var(--card)),var(--glow);background-origin:border-box;background-clip:padding-box,border-box;box-shadow:var(--soft)}
.guide-say[hidden]{display:none}
.guide-say.in{animation:pop-in .35s var(--spring)}
.nbtn.tug{animation:tug .45s var(--spring) 2}
@keyframes tug{40%{transform:translateY(-4px) scale(1.08) rotate(-3deg)}}
.nfix{justify-self:start;padding:0;min-height:36px;text-align:left}
.nfix[hidden]{display:none}

/* sound settings */
.soundpanel{position:fixed;top:72px;right:14px;z-index:70;width:240px;display:grid;gap:8px;padding:12px;border-radius:20px;background:var(--card);border:2px solid var(--edge);box-shadow:var(--soft);animation:pop-in .25s var(--spring)}
.soundpanel[hidden]{display:none}
.soundpanel .box-h{margin:0 0 2px}
.sw{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:6px 10px;border:0;border-radius:14px;background:var(--surface-2);color:var(--ink);font-family:var(--font-display);font-weight:600;font-size:.95rem;line-height:1.1;cursor:pointer;text-align:left}
.sw .ic{width:20px;height:20px;color:var(--accent)}
.sw .knob{position:relative;flex:none;width:40px;height:24px;margin-left:auto;border-radius:999px;background:var(--edge);transition:background .2s}
.sw .knob::after{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .3s var(--spring)}
.sw[aria-pressed=true] .knob{background:var(--accent-fill)}
.sw[aria-pressed=true] .knob::after{transform:translateX(16px)}
.sw:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
@media (max-width:900px){.who{max-width:calc(100% - 216px)}.soundpanel{top:66px;right:10px}}

/* phones: the top-right pill keeps the trophy count but drops Brick, so the sound button fits */
@media (max-width:480px){.chip-btn .buddy{display:none}.sys .round{width:36px;height:36px}}
@media (max-width:480px){.top{gap:8px}.sys{gap:4px;padding:4px}.sys .round{width:34px;height:34px}.chip-btn{padding:2px 7px;gap:4px}}

/* ---- round 10: smooth icons ------------------------------------------------
   Why it felt choppy: the tile size change animated width and height, which redrew the whole carousel every frame.
   The selected icon sway was replaced by the hover wiggle and then restarted from its first frame, which made a jump.
   Several animations also fought over the same transform. Now size changes are instant with a scale pop,
   the sway and the wiggle run on separate properties so they stack, and each moving part has its own layer. */
.cart .art{transition:translate .35s var(--spring),rotate .35s var(--spring),scale .35s var(--spring),border-radius .3s var(--ease);will-change:transform;backface-visibility:hidden}
.cart .art,.cart:hover .art,.cart:active .art,.cart[aria-selected=true] .art,.cart[aria-selected=true]:hover .art{transform:none}
.cart:hover .art{translate:0 -5px;rotate:-4deg;scale:1.08}
.cart:active .art{translate:0 1px;rotate:0deg;scale:.95}
.cart[aria-selected=true] .art{animation:grow .42s var(--spring)}
.cart .art.regrow{animation:grow2 .42s var(--spring)}
@keyframes grow{from{transform:scale(.62)}}
@keyframes grow2{from{transform:scale(.82)}}
.cart .art>.ic,.cart .art>.panda{will-change:transform;backface-visibility:hidden}
.cart .art>.ic,.cart .art>.panda,.cart:hover .art>.ic,.cart:hover .art>.panda,.cart .art.boing>.ic,.cart .art.boing>.panda{animation:none!important}
.cart.hov .art>.ic,.cart.hov .art>.panda{animation:wiggle2 .7s var(--ease)!important}
.cart[aria-selected=true]:not(.hov) .art>.ic,.cart[aria-selected=true]:not(.hov) .art>.panda{animation:idle2 2.6s ease-in-out infinite!important}
.cart[aria-selected=true].hov .art>.ic,.cart[aria-selected=true].hov .art>.panda{animation:idle2 2.6s ease-in-out infinite,wiggle2 .7s var(--ease)!important}
@keyframes idle2{0%,100%{rotate:-4deg;translate:0 0}50%{rotate:4deg;translate:0 -4px}}
@keyframes wiggle2{20%{transform:rotate(-12deg) scale(1.12)}45%{transform:rotate(9deg) scale(1.12)}70%{transform:rotate(-5deg) scale(1.06)}}
@media (max-width:900px){
  .cart:hover .art{translate:0 -6px;rotate:0deg;scale:1.1}
  .cart[aria-selected=true] .art{translate:0 -10px;scale:1.12}
  .cart[aria-selected=true]:hover .art{translate:0 -12px;scale:1.14}
}
.hbtn .ic,.chip-btn .ic,.round .ic,.crewbtn .buddy,.nextup .buddy{will-change:transform}

/* hands the cursor buddy grabs the cursor with */
.phand{position:fixed;left:0;top:0;z-index:2147483001;width:11px;height:11px;border-radius:50%;background:#FFF6EE;border:2px solid #33203B;pointer-events:none;opacity:0;transition:opacity .2s}
.tugging .pal .buddy{animation:hop2 .35s ease-in-out infinite}

/* ---- round 11 ------------------------------------------------------------ */
/* tiles glide by script, so the size change itself has no animation of its own */
.cart[aria-selected=true] .art,.cart .art.regrow{animation:none}
.cart .art,.cart>span:last-child{transform-origin:0 0}

/* the helper beside the name is only the character, with no ring or background */
.who .mate{background:none!important;background-image:none!important;border:0!important;box-shadow:none!important;width:34px;height:34px}
.who .mate .buddy{width:32px}

/* number cards: the tag sits on the right side of the number */
button.tile.ach{grid-template-columns:auto minmax(0,1fr) auto}
button.tile.ach .plat{position:static;grid-column:3;grid-row:1;align-self:center;justify-self:end;margin:0 0 0 10px;white-space:nowrap}
button.tile.ach .num{grid-column:2}
button.tile.ach .desc{grid-column:2 / 4}

/* ---- round 12 ------------------------------------------------------------ */
/* arrow keys in charge: the tile under the resting mouse does not keep its hover tilt */
.kbnav .cart:hover .art{translate:0 0;rotate:0deg;scale:1}
.kbnav .cart.hov .art>.ic,.kbnav .cart.hov .art>.panda{animation:none!important}
.kbnav .cart[aria-selected=true].hov .art>.ic,.kbnav .cart[aria-selected=true].hov .art>.panda{animation:idle2 2.6s ease-in-out infinite!important}
@media (max-width:900px){.kbnav .cart:hover .art{translate:0 0;scale:1}.kbnav .cart[aria-selected=true]:hover .art{translate:0 -10px;scale:1.12}}

/* corner buttons: on hover they only turn 20 percent darker, smoothly, with no movement or zoom */
.hbtn,.hbtn:hover,.hbtn:active,.hbtn.sq:hover{transform:none!important}
.hbtn{transition:filter .25s ease,background .25s ease}
.hbtn:hover,.hbtn:focus-visible{filter:brightness(.8)}
.hbtn.hov .ic,.hbtn:hover .ic{animation:none!important}

/* tags show information, clickable pills invite a press: they now look different */
.tabs button,.recent-chip{background:var(--card);border:2px solid var(--accent-fill);color:var(--ink);box-shadow:var(--soft)}
.tabs button:hover,.recent-chip:hover{background:var(--surface-2)}
.tabs button[aria-pressed=true]{background:var(--accent-fill);border-color:var(--accent-fill);color:#33203B}
:root[data-theme=dark] .tabs button[aria-pressed=true]{background:var(--accent-fill);color:#2A1830}

/* the huge icon behind each screen is solid and very light, so the drifting stars never show through it */
.wall,.wall{opacity:1!important}
.wall .ic{color:#FBE4EC}
:root[data-theme=dark] .wall .ic{color:#1E1525}

/* finance table fits its card exactly, with even space on both sides */
.fin table th,.fin table td{padding-left:6px;padding-right:6px}
.fin table th:first-child,.fin table td:first-child{padding-left:10px}

/* experience: dates sit in the top right corner, bullets line up in even rows */
.job .plat{position:absolute!important;top:14px;right:14px;margin:0}
.job h3{padding-right:130px}
.j-n .list{grid-auto-rows:1fr;align-items:start}
.recent .box-h .buddy{width:24px;vertical-align:-6px;--cw:1.4px;--cl:1.1px}

/* the buddy's arms and hands, visible in both themes */
.parm{position:fixed;left:0;top:-2.5px;height:5px;border-radius:3px;background:#FFF6EE;border:1.5px solid #33203B;transform-origin:0 50%;pointer-events:none;opacity:0;transition:opacity .2s;z-index:2147483000}
:root[data-theme=dark] .parm,:root[data-theme=dark] .phand{border-color:#F7A8C4;background:#FFF6EE}

/* speech bubble tied to the buddy, with a tail */
.guide-say{background:var(--card)!important;background-image:none!important;border:3px solid var(--accent-fill)!important;z-index:2147482990}
.guide-say::after{content:"";position:absolute;left:var(--tail,50%);bottom:-10px;width:16px;height:16px;margin-left:-8px;background:var(--card);border-right:3px solid var(--accent-fill);border-bottom:3px solid var(--accent-fill);transform:rotate(45deg);border-radius:0 0 4px 0}
.guide-say.below::after{bottom:auto;top:-10px;transform:rotate(225deg)}

/* when a sheet is open, the drawn cursor and its buddy ride inside it, above everything */
html.curs-on body dialog.sheet[open],html.curs-on body dialog.sheet[open] *,html.curs-on body dialog.sheet[open] :is(a,button,[role=button]){cursor:none!important}
html.curs-on dialog.sheet::backdrop{cursor:none}

/* during the light and dark switch the cursor and its buddy stay visible */
.curs{view-transition-name:curs}
.pal{view-transition-name:pal}
::view-transition-group(curs),::view-transition-group(pal){animation:none}
::view-transition-old(curs),::view-transition-old(pal){display:none}
::view-transition-new(curs),::view-transition-new(pal){animation:none}

/* themed right-click menu */
.cmenu{position:fixed;z-index:2147482995;min-width:230px;padding:8px;border-radius:18px;background:var(--card);border:3px solid var(--accent-fill);box-shadow:var(--soft);display:grid;gap:2px}
.cmenu[hidden]{display:none}
.cmenu.in{animation:sheet-in .15s ease-out}
.cmenu-item{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:6px 12px;border:0;border-radius:12px;background:none;color:var(--ink);font-family:var(--font-display);font-weight:600;font-size:.95rem;line-height:1.1;text-align:left;cursor:pointer;transition:background .2s}
.cmenu-item .ic{width:20px;height:20px;color:var(--accent)}
.cmenu-item:hover,.cmenu-item:focus-visible{background:var(--surface-2);outline:none}
.cmenu-sep{display:block;height:2px;margin:4px 8px;border-radius:2px;background:var(--edge)}
.cmenu-hint{margin:6px 10px 2px;font-size:.74rem;font-weight:700;color:var(--ink-faint)}

/* wheel-click scroll anchor */
.anchor{position:fixed;z-index:2147482996;display:grid;place-items:center;width:38px;height:38px;margin:-19px 0 0 -19px;border-radius:50%;background:var(--card);border:3px solid var(--accent-fill);box-shadow:var(--soft);pointer-events:none}
.anchor[hidden]{display:none}
.anchor .ic{width:16px;height:16px;color:var(--ink-faint);margin:-3px 0}
.anchor.up .ic-caret-up,.anchor.down .ic-caret-down{color:var(--accent)}

/* ---- round 13: stacked photo prints in place of the flip card ---------------- */
.snaps{position:relative;display:grid;flex:none;width:250px;padding:0 20px 18px 0;border:0;background:none;cursor:pointer}
.snap{grid-area:1/1;display:block;padding:10px 10px 8px;border-radius:20px;background:var(--card);border:2px solid var(--edge);box-shadow:var(--soft);
  transition:transform .45s cubic-bezier(.34,1.4,.64,1);will-change:transform}
.snap img{display:block;width:100%;height:auto;border-radius:14px}
.snap .cap2{display:block;margin-top:6px;text-align:center;font-family:var(--font-display);font-weight:600;font-size:.9rem;color:var(--ink)}
.s-now{z-index:2;transform:rotate(-3deg)}
.s-then{z-index:1;transform:translate(20px,16px) rotate(6deg)}
.snaps.swap .s-now{z-index:1;transform:translate(20px,16px) rotate(6deg)}
.snaps.swap .s-then{z-index:2;transform:rotate(-3deg)}
.snap.lift{transform:translate(-70px,-12px) rotate(-14deg)!important}
.snaps:focus-visible{outline:none}
.snaps:focus-visible .snap{outline:3px solid var(--focus);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.snap{transition:none}}
@media (max-width:900px){.snaps{width:220px}}

/* ---- round 14: certificates ------------------------------------------------ */
.a-sage{background:linear-gradient(160deg,#EEF7E1,#CFE8B3)}
.cart[aria-selected=true] .a-sage{background-image:linear-gradient(160deg,#EEF7E1,#CFE8B3),var(--glow)}
@media (max-width:900px){.cart .art,.cart[aria-selected=true] .art{width:37px;height:37px}.rack{gap:3px}}

.grid.certs{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.cert{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.cert .plat{position:absolute;top:14px;right:14px;margin:0}
.cert .badge{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;color:#33203B;margin-bottom:4px}
.cert .badge .ic{width:32px;height:32px}
.cert h3{font-size:1.1rem;line-height:1.25}
.cert .role{font-weight:800;font-size:.88rem;color:var(--accent)}
.cert-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:10px}
.cert-links .more{margin:0}
.cert-links .more .ic{width:18px;height:18px}

/* coursework: rows that open the work they were used in look clickable, the rest are plain */
.courses{display:grid;gap:8px;margin:8px 0 6px}
.course{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;width:100%;padding:10px 14px;border-radius:14px;font:inherit;text-align:left;color:var(--ink)}
.course b{font-family:var(--font-display);font-weight:600;font-size:1rem}
.course span:not(.ic){font-size:.88rem;font-weight:700;color:var(--ink-soft)}
button.course{background:var(--card);border:2px solid var(--accent-fill);cursor:pointer;transition:background .2s}
button.course:hover{background:var(--surface-2)}
button.course .ic{margin-left:auto;width:20px;height:20px;color:var(--accent)}
.course.still{background:var(--surface-2);border:2px solid transparent}

/* About me: button to the certificates screen, styled like the other clickable pills */
.linkpill{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:6px 16px;border-radius:999px;background:var(--card);border:2px solid var(--accent-fill);color:var(--ink);font-family:var(--font-display);font-weight:600;font-size:.95rem;cursor:pointer;box-shadow:var(--soft);transition:background .2s}
.linkpill:hover{background:var(--surface-2)}
.linkpill .ic{width:20px;height:20px;color:var(--accent)}

/* the dashed line between the two schools, after the coursework list */
.edu .courses+.body+.edu-row{margin-top:8px;padding-top:14px;border-top:2px dashed var(--edge)}

/* ---- round 15: file viewer and the new close button ---------------------------- */
.closebtn{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 16px 6px 12px;border:0;border-radius:999px;background:var(--surface-2);color:var(--ink);
  font-family:var(--font-display);font-weight:600;font-size:.92rem;line-height:1.1;text-decoration:none;cursor:pointer;transition:filter .25s ease}
.closebtn:hover,.closebtn:focus-visible{filter:brightness(.9)}
.closebtn .ic{width:18px;height:18px;color:var(--accent)}
.sheet-top{gap:12px}
.viewer{width:min(94vw,1000px);height:min(90vh,1200px)}
.viewer[open]{display:flex;flex-direction:column}
.viewer .sheet-top h2{font-size:1.15rem;line-height:1.25;min-width:0}
.viewer-acts{display:flex;flex:none;gap:8px}
.viewer-body{flex:1;min-height:0;display:grid;place-items:center;overflow:auto;border-radius:16px;background:var(--surface-2)}
.viewer-body img{display:block;max-width:100%;max-height:calc(min(90vh,1200px) - 120px);height:auto;border-radius:10px}
.viewer-body iframe{width:100%;height:100%;border:0;border-radius:16px;background:#fff}
.viewer-note{max-width:34em;padding:24px;text-align:center;font-weight:700;color:var(--ink-soft)}
.in-frame .curs,.in-frame .pal,.in-frame .phand,.in-frame .parm{opacity:0!important}
@media (max-width:560px){.viewer .sheet-top{flex-wrap:wrap}.viewer-acts{width:100%;justify-content:flex-end}}
/* images in the viewer keep their own shape, never stretched to the sheet width */
.viewer .viewer-body img{width:auto!important;height:auto!important;max-width:100%;object-fit:contain}

/* close button on every sheet: only an x, no box, and it darkens a little on hover */
.xbtn{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:0;background:none;color:var(--accent);cursor:pointer;transition:filter .25s ease}
.xbtn .ic{width:28px;height:28px}
.xbtn:hover,.xbtn:focus-visible{filter:brightness(.8)}

/* ---- round 20: certificate pills sit evenly inside (the icon has its own empty edge) */
.cert-links .more{padding-left:14px}

/* ---- round 20: thin screens. One flat row of icons, no More below chip, and all eight icons always fit */
@media (max-width:900px){
  body{padding-bottom:84px}
  .rack{gap:3px;padding:7px 6px;align-items:center}
  .cart,.cart[aria-selected=true]{font-size:0;max-width:none}
  .cart .art,.cart[aria-selected=true] .art{width:min(41px,calc((100vw - 56px) / 8));height:min(41px,calc((100vw - 56px) / 8))}
  .cart[aria-selected=true] .art{transform:none;box-shadow:0 0 0 3px var(--accent-fill),0 0 12px 2px var(--accent-fill)}
  .morecue{display:none!important}
}
@media (max-width:900px){
  .cart[aria-selected=true] .art,.kbnav .cart[aria-selected=true]:hover .art{translate:0 0;scale:1}
  .cart[aria-selected=true]:hover .art{translate:0 -6px;scale:1.1}
}

/* ---- round 21 */
/* big headings shrink with their screen, so a long one like the bank tracker stays on one line where it fits */
.panel{container-type:inline-size}
.big{font-size:clamp(2.2rem,min(5.2vw,6.4cqi),3.6rem)}
/* arrow keys press the Up and Down buttons, with the same darker look as a mouse press */
.hbtn.keyed{filter:brightness(.8)}
/* tall phone screens: the tip sits at the top right, under the top bar. Wide screens keep it lower left. */
@media (max-width:900px) and (orientation:portrait){
  .tip{top:74px;bottom:auto;right:10px;left:auto;max-width:min(300px,calc(100% - 20px))}
  @keyframes tip-in{from{opacity:0;transform:translateY(-10px) scale(.94)}}
}
/* the smallest phones: the bank table tightens so it never runs past its card */
@media (max-width:360px){
  .fin table{font-size:.72rem}
  .fin table th,.fin table td{padding-left:3px;padding-right:3px}
  .fin table th:first-child,.fin table td:first-child{padding-left:6px}
  .fin .tile{padding-left:12px;padding-right:12px}
}
/* the shaking background icon never makes the page scroll sideways */
body{overflow-x:clip}

/* ---- round 22 */
/* name pill: never dots. Two lines when tight, the robot alone in a circle when tighter, and on the Profile */
.who .name{text-overflow:clip!important}
.who.two .name{white-space:normal;width:min-content;line-height:1.1}
.who.solo{width:48px;height:48px;min-height:48px;padding:0;gap:0;justify-content:center;flex:none}
.who.solo .name{display:none}
/* phones: smaller text and tighter cards so more fits. The top buttons and the bottom icon bar keep their size. */
@media (max-width:600px){
  html{font-size:14px}
  .tile{padding:14px;border-radius:18px}
  .grid{gap:12px;margin-top:16px}
  .ach{gap:3px 12px}
  .ach .badge{width:50px;height:50px;border-radius:14px}
  .ach .badge .ic{width:28px;height:28px}
  .cert .badge{width:46px;height:46px;border-radius:14px}
  .cert .badge .ic{width:26px;height:26px}
  .fin{gap:12px;margin-top:16px}
}

/* ---- round 23 */
/* coming back to a screen from a report: no outline around the whole screen */
.panel:focus,.panel:focus-visible{outline:none}
/* top bar: no center label, the buttons keep to the right */
.sys{margin-left:auto}
/* reports: the light and dark button is a plain pink circle */
.sys.bare{background:none;border:0;box-shadow:none;padding:0;min-height:0}
.sys.bare .round{width:46px;height:46px}
/* one section label: the carousel names the screen on wide screens, so the small label above the heading goes.
   The Profile keeps its job title. Phones keep the small label, since their carousel has no names. */
@media (min-width:901px){.panel:not(#profile)>.eyebrow{display:none}}
/* name tag: name over job title. Tight: the name on two lines. Tighter: hidden. */
.who{padding:5px 18px}
.who .name{display:flex;flex-direction:column;justify-content:center;line-height:1.12}
.on-profile .who .name{max-width:220px;opacity:1}
.who .nm{white-space:nowrap}
.who .role{white-space:nowrap;font-family:var(--font-body);font-weight:700;font-size:.72rem;color:var(--ink-soft)}
.who.norole .role,.who.two .role{display:none}
.who.two .nm{white-space:normal}
.who.solo{display:none}
/* tip bubble: press it for another tip */
.tip{cursor:pointer}
/* the follower: the panda, or the hobby the visitor picked */
.pal .panda{display:block;width:40px;height:36px;margin:-1px 0 0 -3px;filter:drop-shadow(0 3px 0 rgba(51,32,59,.18))}
.pal .buddy{display:none}
.pal.hobby .panda{display:none}
.pal.hobby .buddy{display:block}
.pal.hop .panda{animation:boing .4s var(--ease)}
.tugging .pal .panda{animation:hop2 .35s ease-in-out infinite}
.pal.fly .panda{animation:fly-spin .8s var(--ease)}
@keyframes fly-spin{0%{transform:scale(.6) rotate(-30deg)}60%{transform:scale(1.15) rotate(10deg)}100%{transform:none}}
/* panda arms: short, round, and black, with soft paws */
.parm{top:-3.5px;height:7px;border-radius:4px;background:#33203B;border:0}
.phand{width:14px;height:14px;border-radius:50%;background:#33203B;border:0;box-shadow:inset 0 -3px 0 #F8AFC8}
:root[data-theme=dark] .parm,:root[data-theme=dark] .phand{background:#33203B;border:1.5px solid #F7A8C4}
:root[data-theme=dark] .parm{top:-5px}

/* ---- round 24 */
/* follower panda: thinner lines, and a soft pink edge in dark mode so it shows on the dark page */
.pal{--cw:1.05px;--cl:.95px}
:root[data-theme=dark] .pal .panda{filter:drop-shadow(0 0 .8px #F7A8C4) drop-shadow(0 0 .8px #F7A8C4) drop-shadow(0 0 4px rgba(247,168,196,.45))}
/* panda arms: one shape from shoulder to paw, behind the panda */
.phand{display:none!important}
.parm{position:fixed;left:0;top:0;height:14px;overflow:visible;border:0;background:none;border-radius:0;transform-origin:2px 7px;z-index:9988;pointer-events:none;opacity:0;transition:opacity .2s}
.parm .limb{fill:#33203B}
.parm .pad{fill:#F8AFC8}
:root[data-theme=dark] .parm{top:0;border:0;background:none}
:root[data-theme=dark] .parm .limb{fill:#120C15;stroke:#F7A8C4;stroke-width:1.1;stroke-linejoin:round}
/* Earned and Locked are icons now */
.cheevo-list li::after,.cheevo-list li.got::after{content:none}
.cheevo-list .state{display:grid;place-items:center}
.cheevo-list .state .ic{width:24px;height:24px;color:var(--ink-faint)}
.cheevo-list li.got .state .ic{color:var(--accent)}
/* all ten: the trophy counter turns gold, a thank-you card shows, and the panda wears a crown */
.all-cheevos [data-cheevos-open]{background:linear-gradient(180deg,#FFF1C2,#FFD66B);color:#33203B}
.cheevo-done{display:flex;gap:12px;align-items:flex-start;margin:0 0 12px;padding:12px 14px;border-radius:16px;background:linear-gradient(180deg,#FFF6D9,#FFE7A3);color:#33203B}
.cheevo-done[hidden]{display:none}
.cheevo-done>.ic{width:30px;height:30px;color:#C98A00;flex:none}
.cheevo-done b{display:block;font-family:var(--font-display);font-weight:600;font-size:1.05rem}
.cheevo-done p{margin:2px 0 4px;font-weight:600;font-size:.9rem}
.cheevo-done small{font-weight:800;color:#8A5A00}
.pal .crown{display:none;position:absolute;left:9px;top:-9px;width:18px;height:12px;fill:#FFD66B;stroke:#33203B;stroke-width:1.2;stroke-linejoin:round;transform:rotate(-8deg)}
.all-cheevos .pal .crown{display:block}
.confetti{position:fixed;z-index:2147483002;pointer-events:none;width:20px;height:20px;color:#F08FB0}
.confetti:nth-child(3n){color:#FFD66B}
.confetti:nth-child(5n){color:#8FD3DE}
.confetti .ic{width:100%;height:100%}
.confetti.cp{width:26px;height:24px}
.confetti.cp .panda{width:100%;height:100%;--cw:1px;--cl:.9px}

/* ---- round 25 */
/* follower panda: a little thicker lines, and the arms match them */
.pal{--cw:1.45px;--cl:1.25px}
.parm{position:fixed;left:0;top:0;height:4.5px;border-radius:999px;background:#33203B;border:0;transform-origin:2.25px 2.25px;z-index:9988;pointer-events:none;opacity:0;transition:opacity .2s}
:root[data-theme=dark] .parm{top:0;background:#120C15;border:0;box-shadow:0 0 0 1.2px #F7A8C4,0 0 4px rgba(247,168,196,.45)}
/* the crown sits on top of the head, a little to the right */
.pal .crown{z-index:2;left:17px;top:-7px;transform:rotate(14deg)}
.pal .panda{position:relative;z-index:1}
/* letter sign-off */
.cheevo-done .sign{margin:6px 0 0;font-family:var(--font-display);font-weight:600;color:#8A5A00;line-height:1.3}
.cheevo-done .sign .ic{width:16px;height:16px;vertical-align:-0.15em;color:#E0607E}

/* ---- round 26 */
/* no arms: only two little paws hold the cursor while the panda pulls */
.parm{display:none!important}
.phand{display:block!important;position:fixed;left:0;top:0;width:12px;height:12px;border-radius:50%;border:0;z-index:2147483001;pointer-events:none;opacity:0;transition:opacity .2s;
  background:radial-gradient(circle at 50% 58%,#F8AFC8 0 2.6px,#33203B 2.9px);box-shadow:none}
:root[data-theme=dark] .phand{background:radial-gradient(circle at 50% 58%,#F8AFC8 0 2.6px,#120C15 2.9px);border:0;box-shadow:0 0 0 1.2px #F7A8C4}
.cheevo-done .sign .ic{color:#E0607E}

/* ---- round 27 */
/* hands: little cartoon hands with a thumb, dark with a pink palm */
.phand{width:15px;height:15px;background:none!important;border:0!important;box-shadow:none!important;border-radius:0;transform-origin:7px 7px}
.phand svg{display:block;width:15px;height:15px;overflow:visible}
.phand .hd{fill:#33203B;stroke:#33203B;stroke-width:.6;stroke-linejoin:round;stroke-linecap:round}
.phand .pd{fill:#F8AFC8}
:root[data-theme=dark] .phand .hd{fill:#120C15;stroke:#F7A8C4;stroke-width:1}
/* crown: centered on the head, a little to the right, just touching the right ear */
.pal .crown{left:12px;top:-6px;transform:rotate(7deg)}
/* key sword, held at the panda's side once all ten achievements are earned */
.pal .keysword{display:none;position:absolute;left:28px;top:4px;width:10px;height:28px;transform:rotate(205deg);transform-origin:50% 50%;z-index:2}
.all-cheevos .pal .keysword{display:block}
.keysword .kr,.keysword .kg,.keysword .kb,.keysword .kt{fill:#FFD66B;stroke:#33203B;stroke-width:.9;stroke-linejoin:round}
.keysword .kr{fill:#F8AFC8}
.keysword .kh{fill:#33203B}
.keysword .kb{fill:#E9EEF7}
/* About me: a plain hobbies box */
.hobbies .crewrow li{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.hobbies .slot{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--surface-2)}
.hobbies .slot .buddy{width:38px}
.hobbies b{font-family:var(--font-display);font-weight:600;font-size:.8rem;line-height:1.15}
/* the hidden friends: small, half tucked over a card corner */
.hid{position:absolute;z-index:3;width:30px;height:30px;padding:0;border:0;background:none;cursor:pointer;opacity:.92;--cw:1.3px;--cl:1.1px}
.hid .buddy{width:100%;height:100%;transition:transform .3s var(--spring)}
.hid:hover .buddy{transform:scale(1.15) rotate(-6deg)}
.hid-br{right:-11px;bottom:-12px;transform:rotate(-14deg)}
.hid-bl{left:-11px;bottom:-12px;transform:rotate(12deg)}
.hid-tr{right:-10px;top:-13px;transform:rotate(10deg)}
.hid.got{animation:hid-found .7s var(--ease) forwards}
@keyframes hid-found{30%{transform:translateY(-14px) scale(1.3)}100%{transform:translateY(-30px) scale(.4);opacity:0}}

/* small work in progress chips on cards */
.soon[data-placeholder]{border:0;padding:2px 12px;border-radius:999px;background:var(--surface-2);font-size:.74rem}
.soon[data-placeholder]::before{content:none}
