/* /trophies "Check my trophies". Scoped under .tro. Light values first; html.dark has the night ones,
   as on the rest of the site. Brand: PSNSaves navy, accent #D4774E on one word, blue→orange rule.
   Motion (owner's rules): arrivals ease out long (expo.out), exits shorter (power3.in), no loops or bounce. */
.tro{--bg:#f4f3f0;--ink:#0f172a;--muted:#475569;--surface:#fff;--surface2:#f1f2f4;--line:#d9dce2;--brand:#A3502A;--on-brand:#fff;--blue:#2563eb;--focus:#1260a8;
  --p:#5b9bd5;--g:#c99a1d;--s:#8a93a0;--b:#a8683c;--expo:cubic-bezier(.16,1,.3,1);--p4o:cubic-bezier(.165,.84,.44,1);--p3i:cubic-bezier(.55,.055,.675,.19)}
html.dark .tro{--bg:#0a0f1a;--ink:#f1f5f9;--muted:#94a3b8;--surface:#121a29;--surface2:#18223a;--line:rgba(255,255,255,.1);--brand:#D4774E;--on-brand:#1a0d06;--blue:#3b82f6;--focus:#ffc3a5;
  --p:#9fd3ff;--g:#e3b341;--s:#c0c7d1;--b:#c98a5a}
.tro{color:var(--ink);max-inline-size:1100px;margin-inline:auto;padding:12px 0 120px;font-size:16px;line-height:1.5}
.tro *{box-sizing:border-box;min-width:0}
.tro h1,.tro h2,.tro p{margin:0}
.tro button,.tro input,.tro select{font:inherit}
.tro :focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.tro-sr{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.tro-head{margin-block-end:20px}
/* The hero: the offer before anything is asked. The brand ground in both themes (navy, blue light top-left,
   orange light bottom-right, faint 64 px grid); the accent on one word. */
.tro-hero{position:relative;overflow:hidden;isolation:isolate;border-radius:20px;padding:clamp(22px,4vw,40px);color:#f1f5f9;
  background:radial-gradient(ellipse 60% 90% at 0% 0%,rgba(30,90,170,.5),transparent 70%),radial-gradient(ellipse 55% 85% at 100% 100%,rgba(212,119,78,.28),transparent 70%),#0a0f1a}
.tro-hero::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:64px 64px}
.tro-hero .tro-kicker{color:#f1f5f9}
.tro-hero .tro-kicker span{color:#aab6c8}
.tro-hero .tro-kicker b{font-family:'Exo 2',system-ui,sans-serif;font-weight:600;letter-spacing:0;color:#cbd5e1;margin-inline-start:10px;padding-inline-start:10px;border-inline-start:2px solid rgba(255,255,255,.18)}
.tro-hero h1 em{color:#D4774E}
.tro-hero .tro-lede{color:#cbd5e1}
.tro-cta{display:flex;gap:10px;flex-wrap:wrap;margin-block-start:18px}
.tro-hero .tro-btn{--brand:#D4774E;--on-brand:#1a0d06}
.tro-hero .tro-btn-quiet{color:#f4c9b3;border-color:#D4774E}
.tro-steps{list-style:none;counter-reset:s;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0 0;padding:0}
.tro-steps li{counter-increment:s;position:relative;padding:12px 14px 12px 46px;border-radius:14px;background:rgba(22,27,34,.7);border:1px solid rgba(255,255,255,.08);font-size:14px;color:#cbd5e1}
.tro-steps li::before{content:counter(s);position:absolute;inset-inline-start:14px;top:12px;font-family:'Exo 2',system-ui,sans-serif;font-weight:700;color:#D4774E}
.tro-steps b{color:#f1f5f9}
[dir=rtl] .tro-steps li{padding:12px 46px 12px 14px}
.tro-trust{font-size:13px;color:#94a3b8;margin-block-start:14px}
@media (max-width:760px){.tro-steps{grid-template-columns:1fr;gap:6px;margin-block-start:16px}.tro-cta .tro-btn{flex:1 1 100%}}
/* Phones: the steps shrink to their headlines, so the two buttons and the search stay near the top. */
@media (max-width:640px){.tro-steps li{padding-block:8px}.tro-steps li span{display:none}
  .tro-pick-bar{padding:8px 8px 8px 14px}.tro-pick-bar p{font-size:14px;line-height:1.3}.tro-pick-bar p span{display:none}
  .tro-pick-bar .tro-btn{flex:none;padding:0 14px}}
.tro-kicker{font-family:Orbitron,sans-serif;font-weight:700;font-size:15px;letter-spacing:.02em;margin-block-end:10px}
.tro-kicker span{font-weight:400;color:var(--muted);letter-spacing:.2em;margin-inline-start:2px}
.tro h1{font-family:'Exo 2',system-ui,sans-serif;font-size:clamp(32px,5vw,48px);line-height:1.05;letter-spacing:-.02em}
.tro h1 em{font-style:normal;color:var(--brand)}
html[lang=ar] .tro h1,html[lang=ar] .tro-h2{font-family:Cairo,system-ui,sans-serif;letter-spacing:0}
.tro-lede{color:var(--muted);margin-block-start:8px;max-inline-size:62ch}
.tro-tabs{display:flex;gap:4px;border-block-end:1px solid var(--line);margin-block-end:16px}
.tro-tabs button{position:relative;border:0;background:none;color:var(--muted);font-weight:700;font-size:17px;padding:12px 16px;min-block-size:48px;cursor:pointer}
.tro-tabs button[aria-selected=true]{color:var(--ink)}
.tro-tabs button[aria-selected=true]::after{content:"";position:absolute;inset-inline:12px;inset-block-end:-1px;block-size:3px;border-radius:3px;background:linear-gradient(90deg,var(--blue),var(--brand))}
.tro-lib{margin-block-start:0}
#lib-q{flex:1 1 220px;min-block-size:48px;border-radius:12px;border:1px solid var(--line);background:var(--surface2);color:var(--ink);padding:0 14px;font-size:16px}
.tro-card,.tro-result{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:clamp(16px,2.4vw,24px)}
.tro-card{position:relative;overflow:hidden}
.tro-card::before{content:"";position:absolute;inset:0 0 auto;block-size:3px;background:linear-gradient(90deg,var(--blue),var(--brand))}
[dir=rtl] .tro-card::before{background:linear-gradient(270deg,var(--blue),var(--brand))}
.tro-h2{font-family:'Exo 2',system-ui,sans-serif;font-size:22px;line-height:1.15}
.tro-note{color:var(--muted);font-size:14px}
.tro-help{color:var(--muted);font-size:13px;margin-block-start:10px}
.tro-warn{color:var(--brand);font-weight:700;margin-block-start:10px}
.tro-form{display:flex;gap:10px;flex-wrap:wrap;margin-block-start:14px}
.tro-form input,#tro-q{flex:1 1 220px;min-block-size:48px;border-radius:12px;border:1px solid var(--line);background:var(--surface2);color:var(--ink);padding:0 14px;font-size:16px}
.tro [hidden]{display:none!important}   /* hidden wins over .tro-btn's display */
.tro-btn{min-block-size:48px;border:0;border-radius:12px;background:var(--brand);color:var(--on-brand);font-weight:700;padding:0 20px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.tro-btn:disabled{opacity:.5;cursor:not-allowed}
.tro-btn-quiet{background:none;border:1px solid var(--brand);color:var(--brand)}
html.dark .tro-btn-quiet{color:#f4c9b3}
.tro-link{background:none;border:0;color:var(--muted);font-weight:600;cursor:pointer;min-block-size:44px;padding:0 6px}
.tro-err{color:#c2410c;font-weight:600;margin-block-start:10px}
html.dark .tro-err{color:#ffb4a1}
.tro-result{margin-block-start:18px;scroll-margin-block-start:96px}   /* clear of the sticky site header */
.tro-profile{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.tro-profile img{inline-size:64px;block-size:64px;border-radius:50%;background:var(--surface2);flex:none;object-fit:cover}
.tro-who{flex:1}
.tro-name{font-family:'Exo 2',system-ui,sans-serif;font-size:22px;font-weight:700;line-height:1.1}
.tro-counts{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:14px;margin-block-start:4px}
.tro-region{color:var(--muted);font-weight:500;font-size:.85em;white-space:nowrap}
.tro-summary{display:flex;gap:6px 14px;flex-wrap:wrap;font-size:14px;font-weight:600;margin-block-start:6px}
.tro-summary span+span::before{content:"·";color:var(--muted);margin-inline-end:14px;font-weight:400}
.tro-sum-p{display:inline-flex;align-items:center;gap:6px}
.tro-sum-p::after{content:"";order:-1;inline-size:9px;block-size:9px;border-radius:50%;background:var(--p)}
/* A platinumed list says so in words, not only as a dot at 1/1. */
.tro-platdone{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--ink);border:1px solid color-mix(in srgb,var(--p) 60%,transparent);background:color-mix(in srgb,var(--p) 14%,transparent);border-radius:99px;padding:2px 9px 2px 7px;white-space:nowrap}
.tro-platdone::before{content:"";inline-size:9px;block-size:9px;border-radius:50%;background:var(--p)}
.tro-game.plat{border-color:color-mix(in srgb,var(--p) 35%,var(--line))}
.tro-miss{color:var(--brand);font-weight:700}
.tro-end{display:flex;align-items:center;gap:10px}
.tro-platimg{block-size:40px;inline-size:auto;filter:drop-shadow(0 3px 6px rgba(0,0,0,.45))}
@media (max-width:640px){.tro-platimg{block-size:30px}}
.tro-chev{inline-size:9px;block-size:9px;border-inline-end:2px solid var(--muted);border-block-end:2px solid var(--muted);transform:rotate(45deg) translate(-2px,-2px);transition:transform .26s cubic-bezier(.16,1,.3,1)}
.tro-game.open .tro-chev{transform:rotate(225deg) translate(-2px,-2px)}
/* Stacks: the same game's lists (regions, PS4/PS5) together under one line. */
.tro-stack{display:grid;gap:8px;padding:10px;border:1px dashed var(--line);border-radius:14px}
.tro-stack-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding-inline:4px}
.tro-stack-head p{font-size:14px;min-inline-size:0}
.tro-stack-head span{color:var(--muted)}
.tro-sub{font-size:13px;font-weight:700;color:var(--muted);padding-block:6px 2px}
.tro-earned{border-top:1px solid var(--line);margin-block-start:4px}
.tro-earned summary{cursor:pointer;min-block-size:44px;display:flex;align-items:center;font-size:14px;font-weight:700;color:var(--muted)}
.tro-earned summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:6px}
.tro-cnt{display:inline-flex;gap:9px;flex-wrap:wrap}
.tro-counts i,.tro-cnt i{font-style:normal;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-variant-numeric:tabular-nums}
.tro-counts i::before,.tro-cnt i::before,.tro-g::before{content:"";inline-size:13px;block-size:13px;background:var(--c);flex:none;
  -webkit-mask:var(--cup) center/contain no-repeat;mask:var(--cup) center/contain no-repeat}
/* A trophy cup, as on the console's trophy list: the grade's colour fills it. */
.tro{--cup:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10v2h3.5v2.5A4.5 4.5 0 0 1 16.3 11 5 5 0 0 1 13 13.8V17h3.5v2.2h-9V17H11v-3.2A5 5 0 0 1 7.7 11 4.5 4.5 0 0 1 3.5 6.5V4H7zm0 4H5.5v.5A2.5 2.5 0 0 0 7 8.8zm10 0v2.8a2.5 2.5 0 0 0 1.5-2.3V6zM6 20.5h12V22H6z'/%3E%3C/svg%3E")}
.tro-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-block:16px 8px}
.tro-plat{display:flex;gap:6px;flex-wrap:wrap}
.tro-plat button{min-block-size:44px;border:1px solid var(--line);background:var(--surface2);color:var(--ink);border-radius:99px;padding:0 14px;font-weight:600;cursor:pointer}
.tro-plat .pf-tag{font-size:15px;pointer-events:none}
.tro-selects{display:flex;gap:10px;flex-wrap:wrap}
.tro-meta .pf-tag{font-size:13px}
.tro-plat button[aria-pressed=true]{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 16%,var(--surface2))}
.tro-sort{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px}
.tro-sort select{min-block-size:44px;border-radius:10px;border:1px solid var(--line);background:var(--surface2);color:var(--ink);padding:0 10px}
/* Library filters: a Filters button beside Sort opens a panel; active filters show as removable chips below. */
.tro-fbtn{min-block-size:44px;border:1px solid var(--line);background:var(--surface2);color:var(--ink);border-radius:10px;padding:0 14px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.tro-fbtn[aria-expanded=true]{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 12%,var(--surface2))}
.tro-fbtn span:empty{display:none}
.tro-fbtn span{color:var(--brand);font-variant-numeric:tabular-nums}
.tro-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;padding:16px;margin-block:4px 10px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.tro-pk{display:grid;gap:6px;align-content:start;min-inline-size:0}
.tro-flabel{font-size:13px;font-weight:700;color:var(--muted)}
.tro-pk-box{position:relative}
.tro-pk input,.tro-fsel{inline-size:100%;min-block-size:44px;border-radius:10px;border:1px solid var(--line);background:var(--surface2);color:var(--ink);padding:0 12px;font-size:16px}
.tro-fsel:disabled{opacity:.55;cursor:not-allowed}
.tro-pk-list{position:absolute;z-index:20;inset-inline:0;inset-block-start:calc(100% + 4px);max-block-size:300px;overflow:auto;margin:0;padding:4px;list-style:none;
  border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 12px 32px rgba(0,0,0,.18)}
.tro-pk-list [role=option]{display:flex;justify-content:space-between;align-items:center;gap:10px;min-block-size:44px;padding:0 10px;border-radius:8px;cursor:pointer}
.tro-pk-list [role=option] small{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.tro-pk-list [role=option]:hover,.tro-pk-list [role=option].on{background:color-mix(in srgb,var(--brand) 14%,var(--surface2))}
.tro-pk-list [aria-selected=true] span{font-weight:700;color:var(--brand)}
.tro-pk-none{padding:10px;color:var(--muted)}
.tro-pk .tro-help{margin:0;font-size:13px}
.tro-fnote{grid-column:1/-1;margin:0;font-size:13px;color:var(--muted)}
.tro-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-block:2px 6px}
.tro-fchip{display:inline-flex;align-items:center;gap:8px;min-block-size:36px;padding:0 8px 0 12px;border-radius:99px;border:1px solid color-mix(in srgb,var(--brand) 55%,var(--line));
  background:color-mix(in srgb,var(--brand) 12%,var(--surface2));color:var(--ink);font-weight:600;font-size:14px;cursor:pointer}
.tro-fchip span{display:grid;place-items:center;inline-size:22px;block-size:22px;border-radius:50%;font-size:16px;line-height:1;color:var(--muted)}
.tro-fchip:hover span{background:color-mix(in srgb,var(--ink) 10%,transparent);color:var(--ink)}
.tro-fbtn:focus-visible,.tro-fchip:focus-visible,.tro-pk input:focus-visible,.tro-fsel:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
@media (max-width:640px){.tro-filters{grid-template-columns:1fr;padding:12px}.tro-selects .tro-fbtn{flex:1;justify-content:center}}
.tro-list{display:grid;gap:8px;margin-block-start:10px}
/* A list's base game and DLC packs, each under its own head; DLC packs set off by a brand edge. */
.tro-grp{margin-block-start:12px}
.tro-grp+.tro-grp{border-top:1px solid var(--line);padding-block-start:12px}
.tro-grp.dlc{border-inline-start:3px solid color-mix(in srgb,var(--brand) 70%,transparent);padding-inline-start:12px}
.tro-grp-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-block-end:6px}
.tro-grp-head img,.tro-grp-head .tro-noimg{border-radius:6px;flex:none}
/* Sony's group art is a wide banner (320×176): a small cropped thumbnail beside the section name. */
.tro-grp-head img{inline-size:64px;block-size:36px;object-fit:cover;border:1px solid var(--line);background:var(--surface)}
.tro-grp-head p{margin:0;flex:1 1 180px}
.tro-grp-head span{color:var(--muted);font-variant-numeric:tabular-nums;margin-inline-start:6px}
.tro-dlctag{display:inline-block;font-size:12px;font-weight:700;color:var(--brand);border:1px solid color-mix(in srgb,var(--brand) 55%,transparent);border-radius:99px;padding:0 7px;margin-inline-start:4px}
.tro-pknote:empty{display:none}
.tro-rv-part{display:block}
.tro-game{border:1px solid var(--line);border-radius:12px;background:var(--surface2);overflow:hidden}
.tro-game.open{border-color:color-mix(in srgb,var(--brand) 55%,var(--line))}
.tro-row{all:unset;box-sizing:border-box;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;inline-size:100%;padding:10px 12px;cursor:pointer}
.tro-row:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
.tro-art{display:block;inline-size:72px;block-size:72px;border-radius:6px;overflow:hidden;background:#0b0f17;flex:none;box-shadow:0 2px 8px rgba(0,0,0,.35)}
/* One frame for every game so names line up: PS3, PS4 and Vita art is wide (320×176) and fills it;
   PS5 art is square and sits centred, whole. Nothing is cropped. */
.tro-art img{display:block;inline-size:100%;block-size:100%;object-fit:contain}
.tro-art.wide img{object-fit:contain}
.tro-art .tro-noimg{inline-size:100%!important;block-size:100%!important;border-radius:0}
.tro-gname{display:block;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tro-meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:13px;color:var(--muted)}
.tro-chip{font-size:11px;font-weight:700;border:1px solid color-mix(in srgb,var(--blue) 55%,transparent);color:var(--blue);border-radius:6px;padding:1px 6px}
html.dark .tro-chip{color:#c6dbff}
.tro-bar{display:block;block-size:5px;border-radius:3px;background:var(--line);margin-block-start:7px;overflow:hidden}
.tro-bar span{display:block;block-size:100%;background:linear-gradient(90deg,var(--blue),var(--brand));transform-origin:0 50%}
[dir=rtl] .tro-bar span{transform-origin:100% 50%}
.tro-noimg{display:block;border-radius:8px;background:linear-gradient(140deg,var(--surface),var(--line))}
.tro-pct{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.tro-body{padding:0 12px 12px}
.tro-acts{display:flex;gap:8px;flex-wrap:wrap;padding-block:4px 8px}
.tro-acts .tro-btn{min-block-size:44px;font-size:14px;padding:0 14px}
.tro-t{display:grid;grid-template-columns:24px 40px minmax(0,1fr);gap:10px;align-items:center;padding-block:8px;border-top:1px solid var(--line);cursor:pointer}
.tro-t input{inline-size:20px;block-size:20px;accent-color:var(--brand)}
.tro-t img{inline-size:40px;block-size:40px;border-radius:6px;background:var(--surface)}
.tro-t.done{cursor:default;opacity:.6}
.tro-t.off{cursor:default;opacity:.45}
.tro-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;margin-block-end:8px;border-radius:12px;border:1px solid color-mix(in srgb,var(--brand) 45%,var(--line));background:color-mix(in srgb,var(--brand) 8%,var(--surface))}
.tro-confirm p{flex:1 1 100%;font-weight:600;font-size:14px}
.tro-confirm .tro-btn{min-block-size:44px;font-size:14px;padding:0 14px}
/* One way to order a list: the Platinum or picked trophies. */
.tro-seg{display:inline-flex;padding:3px;border-radius:12px;border:1px solid var(--line);background:var(--surface)}
.tro-seg button{min-block-size:40px;border:0;border-radius:9px;background:none;color:var(--muted);font-weight:700;font-size:14px;padding:0 14px;cursor:pointer;transition:background-color .2s var(--expo),color .2s var(--expo)}
.tro-seg button[aria-pressed=true]{background:var(--brand);color:var(--on-brand)}
.tro-acts .tro-note{align-self:center}
.tro-t b{display:flex;gap:6px;align-items:center;font-weight:700}
.tro-g{display:inline-flex}
.tro-t small{display:block;color:var(--muted);font-size:13px}
.tro-skel{block-size:56px;border-radius:12px;background:var(--surface2)}
/* Above the phone tab bar (--tabbar-space, as the save page's bar does). */
.tro-pick{position:fixed;inset-inline:0;inset-block-end:calc(var(--tabbar-space,0px) + 10px);z-index:40;padding:0 max(4vw,16px) env(safe-area-inset-bottom,0px);pointer-events:none}
.tro-pick>*{pointer-events:auto;max-inline-size:1100px;margin-inline:auto}
.tro-pick-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:10px 12px 10px 18px;box-shadow:0 10px 30px -12px rgba(0,0,0,.45)}
.tro-pick-bar p{font-size:15px}
.tro-pick-bar span{color:var(--muted)}
.tro-handoff{margin:8px 0 4px;padding-inline-start:20px;display:grid;gap:2px;font-size:14px;color:var(--muted)}
.tro-copytext{inline-size:100%;margin-block:6px;border-radius:10px;border:1px solid var(--line);background:var(--surface2);color:var(--ink);padding:10px;font:13px/1.45 ui-monospace,monospace}
.tro-pick-sheet{transform-origin:50% 100%;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px 18px;margin-block-end:8px;max-block-size:60svh;overflow:auto}
.tro-pick-sheet ul{margin:10px 0;padding:0;list-style:none;font-size:14px}
.tro-pick-for{font-weight:700;margin-block-start:10px}
.tro-pick-for:empty{display:none}
/* The review: one line per list, which stack it is, what's ordered, and Remove. */
.tro-rv{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;padding-block:10px;border-top:1px solid var(--line)}
.tro-rv>div{display:grid;gap:4px}
.tro-rv .tro-meta [dir=ltr]{font-variant-numeric:tabular-nums}
.tro-rv-what{color:var(--muted)}
.tro-rv-what b{color:var(--ink)}
.tro-pick-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
@media (max-width:640px){
  /* The name and Change ID share a line with a small avatar; the summary gets the full width under it. */
  .tro-profile{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:4px 10px}
  .tro-profile img{inline-size:40px;block-size:40px}
  .tro-who{display:contents}
  .tro-name{grid-column:2;align-self:center;font-size:19px}
  .tro-change,#tro-change{grid-column:3;grid-row:1}
  .tro-counts,.tro-summary{grid-column:1/-1}
  /* Game rows: smaller art, names on up to two lines, the percentage stays at the end. */
  .tro-row{gap:10px;padding:10px}
  .tro-art{inline-size:56px;block-size:56px}
  .tro-gname{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .tro-meta{gap:6px 8px}
}
@media (max-width:640px){.tro-sort span{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.tro-selects{inline-size:100%}.tro-selects .tro-sort{flex:1}.tro-selects select{inline-size:100%}}
@media (prefers-reduced-motion:reduce){.tro *{transition:none!important;animation:none!important}}

/* The trophy shop in the request sheet: console, method, price, contact, terms, Buy / Request a quote. */
.tro-shop{border-block-start:1px solid var(--line);margin-block-start:12px;padding-block-start:12px;display:grid;gap:12px}
.tro-shop-row{display:flex;gap:10px;flex-wrap:wrap}
.tro-field{display:grid;gap:4px;flex:1 1 200px;font-size:13px;font-weight:600;color:var(--muted)}
.tro-field input,.tro-field select{min-block-size:48px;border-radius:12px;border:1px solid var(--line);background:var(--surface2);color:var(--ink);padding:0 12px;font-size:16px;font-weight:400}
.tro-methods{border:0;margin:0;padding:0;display:grid;gap:6px}
.tro-methods legend{font-size:13px;font-weight:600;color:var(--muted);padding:0;margin-block-end:6px}
#tro-method-list{display:grid;gap:8px}
.tro-method{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:10px 12px;cursor:pointer;background:var(--surface2)}
.tro-method:has(input:checked){border-color:var(--brand)}
.tro-method input{margin-block-start:4px;accent-color:var(--brand);inline-size:18px;block-size:18px;flex:none}
.tro-method > span{display:grid;gap:2px;font-size:14px}
.tro-mtag{font-style:normal;font-size:12px;font-weight:700;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:0 8px;justify-self:start}
.tro-mtag.buy{color:var(--brand);border-color:var(--brand)}
.tro-mprice{font-weight:700}
.tro-mdetail{color:var(--muted);font-size:13px}
.tro-price .tro-total{font-size:16px}
.tro-price .tro-help{margin-block-start:4px}
.tro-terms{display:grid;gap:8px;font-size:13px;color:var(--muted)}
.tro-terms label{display:flex;gap:10px;align-items:flex-start;cursor:pointer}
.tro-terms input{margin-block-start:2px;accent-color:var(--brand);inline-size:18px;block-size:18px;flex:none}
.tro-done{border:1px solid var(--brand);border-radius:12px;padding:12px 14px;display:grid;gap:8px}
.tro-done:focus{outline:2px solid var(--focus);outline-offset:2px}
.tro-done-ref{font-size:15px}
.tro-done-ref strong{font-family:'Exo 2',system-ui,sans-serif;font-size:20px;letter-spacing:.04em;margin-inline-start:6px}
.tro-link-inline{min-block-size:0;padding:0;text-decoration:underline}

/* /trophies/orders/{id}: the buyer's order page. */
.tro-order{max-inline-size:720px;padding-block-end:48px}
.tro-order .tro-card{display:grid;gap:14px}
.tro-back{display:inline-flex;gap:6px;align-items:center;margin-block-end:8px;padding:0}
.tro-ostatus{border-inline-start:3px solid var(--brand);padding-inline-start:12px}
.tro-ostatus-t{font-family:'Exo 2',system-ui,sans-serif;font-size:20px;font-weight:700}
.tro-ostatus .tro-help{margin-block-start:4px;font-size:15px}
.tro-osteps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none;font-size:12px;font-weight:600;color:var(--muted);line-height:1.25}
.tro-osteps li{border-block-start:3px solid var(--line);padding-block-start:6px}
.tro-osteps li.done{border-color:var(--brand)}
.tro-osteps li.now{border-color:var(--brand);color:var(--ink)}
.tro-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:0}
.tro-facts div{background:var(--surface2);border-radius:10px;padding:8px 10px}
.tro-facts dt{font-size:12px;color:var(--muted);font-weight:600}
.tro-facts dd{margin:0;font-weight:700}
.tro-olines{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tro-olines li{border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.tro-olines details summary{cursor:pointer;font-size:13px;color:var(--muted);margin-block-start:4px}
.tro-oprice{font-weight:700;margin-block-start:4px}
.tro-quote{border-block-start:1px solid var(--line);padding-block-start:12px;display:grid;gap:10px}
.tro-payform{display:grid;gap:12px}
.tro-payform .tro-btn{justify-self:start}
.tro-oactions{margin-block-start:4px}
@media (max-width:640px){.tro-osteps{font-size:11px}.tro-payform .tro-btn{justify-self:stretch}}

/* Buy or ask: two cards side by side; Buy greys out with its reason when this basket can't be bought now. */
.tro-route-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.tro-method.off{opacity:.6;cursor:default}
.tro-method[hidden]{display:none}

/* Bundles: one card per fixed package; its short form sits under it. */
.tro-bundles{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-block-start:14px}
.tro-bundle{border:1px solid var(--line);border-radius:14px;background:var(--surface2);padding:14px;display:grid;gap:8px;align-content:start}
.tro-bundle h3{font-family:'Exo 2',system-ui,sans-serif;font-size:18px;line-height:1.2;margin:0}
.tro-bundle-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
/* The owner's photo for a bundle (admin, /admin/trophy-shop): a wide picture across the top of the card. */
.tro-bundle-img{display:block;inline-size:calc(100% + 28px);margin:-14px -14px 4px;aspect-ratio:16/9;object-fit:cover;border-radius:13px 13px 0 0;background:var(--surface2)}
.tro-bprice{font-family:'Exo 2',system-ui,sans-serif;font-size:22px;font-weight:800}
.tro-bundle .tro-mtag{justify-self:start;margin:0}
.tro-bform{display:grid;gap:10px;border-block-start:1px solid var(--line);padding-block-start:10px}
.tro-bform .tro-btn{justify-self:stretch}
/* A list's "what's left after your picks" line, and a stack's one-tap buttons. */
.tro-left{border-inline-start:3px solid var(--brand);padding:6px 0 6px 12px;margin:4px 0 10px;font-size:14px;display:grid;gap:2px}
.tro-left b{font-weight:700}
.tro-stack-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tro-stack-btn{min-block-size:40px;font-size:14px;padding:0 14px}

/* ── Cards (Codex's design): an opened game is a summary card, a Platinum card and a card per pack. ── */
.tro-cards .tro-card,.tro-stack .tro-card,.tro-checkout .tro-card,.tro-bundles .tro-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px;display:grid;gap:10px;min-inline-size:0;transition:border-color .16s var(--expo),background-color .16s var(--expo)}
.tro-cards .tro-card::before,.tro-stack .tro-card::before,.tro-checkout .tro-card::before,.tro-bundles .tro-card::before{display:none}
.tro-cards{display:grid;gap:12px;padding-block:4px 2px}
.tro-card h4{font-family:'Exo 2',system-ui,sans-serif;font-size:18px;line-height:22px;font-weight:700;margin:0;overflow-wrap:anywhere}
.tro-meta2{color:var(--muted);font-size:13px;line-height:18px;margin:2px 0 0}
.tro-card-head,.tro-pack-head{display:flex;align-items:center;gap:12px;min-inline-size:0}
.tro-card-head>div,.tro-pack-head>div{min-inline-size:0;flex:1}
.tro-pack-art,.tro-plat-art{flex:none;display:grid;place-items:center;inline-size:64px;block-size:40px;border-radius:8px;background:var(--surface2);overflow:hidden}
.tro-plat-art{inline-size:48px;block-size:48px}
.tro-pack-art img,.tro-plat-art img{inline-size:100%;block-size:100%;object-fit:contain;border-radius:8px}
.tro-plat-art img[src$="platinum.png"]{inline-size:30px;block-size:48px}
.tro-wide{inline-size:100%;min-block-size:48px;border-radius:12px;font-size:14px;line-height:20px;font-weight:700}
.tro-btn-quiet.tro-wide{border-color:var(--line);color:var(--ink)}
.tro-btn-quiet.tro-wide:hover{border-color:var(--brand)}
.tro-btn-quiet.on{border-color:var(--brand);color:var(--brand)}
.tro-state{min-block-size:48px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:var(--surface2);color:var(--muted);font-size:14px;font-weight:700;margin:0}
.tro-state.done{color:var(--ink)}
.tro-card .tro-btn:focus-visible,.tro-choose:focus-visible,.tro-trophy:focus-within{outline:3px solid var(--focus);outline-offset:2px}
.tro-platinum.picked,.tro-pack:has(.tro-trophy input:checked){border-color:var(--brand)}
.tro-pack.dlc{border-inline-start:3px solid color-mix(in srgb,var(--brand) 70%,var(--line))}
.tro-pack-progress{display:block;block-size:5px;border-radius:5px;background:var(--surface2);overflow:hidden}
.tro-pack-progress span{display:block;block-size:100%;background:linear-gradient(90deg,var(--blue),var(--brand));border-radius:5px}
.tro-choose{background:none;border:0;color:var(--muted);font-weight:700;font-size:14px;min-block-size:40px;cursor:pointer;justify-self:center;text-decoration:underline;text-underline-offset:3px}
.tro-choose[aria-expanded=true]{color:var(--ink)}
.tro-pack-items{display:grid;gap:6px}
.tro-trophy{display:grid;grid-template-columns:32px minmax(0,1fr) 20px;gap:8px;align-items:center;padding:8px;min-block-size:52px;border-radius:12px;background:var(--surface2);border:1px solid transparent;cursor:pointer;transition:border-color .16s var(--expo),background-color .16s var(--expo)}
.tro-trophy:hover{border-color:var(--brand)}
.tro-trophy:has(input:checked):not(.done){border-color:var(--brand);background:color-mix(in srgb,var(--brand) 12%,var(--surface2))}
.tro-trophy.done,.tro-trophy.off{cursor:default;opacity:.62}
.tro-trophy.done:hover,.tro-trophy.off:hover{border-color:transparent}
.tro-trophy-art img,.tro-trophy-art .tro-noimg{inline-size:32px;block-size:32px;border-radius:8px;object-fit:contain;display:block}
.tro-trophy-text{min-inline-size:0}
.tro-trophy b{display:flex;gap:6px;align-items:center;font-size:14px;line-height:20px;font-weight:700;overflow-wrap:anywhere}
.tro-trophy small{display:block;color:var(--muted);font-size:13px;line-height:18px}
.tro-trophy input{inline-size:20px;block-size:20px;accent-color:var(--brand);margin:0}
.tro-pack-items .tro-earned{border:0;margin:0}
.tro-pack-items .tro-earned>.tro-trophy{margin-block-start:6px}
.tro-left h4{font-size:16px}
.tro-left-rows{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.tro-left-rows li{display:flex;justify-content:space-between;gap:12px;font-size:14px;line-height:20px;padding:6px 10px;border-radius:10px;background:var(--surface2)}
.tro-left-rows li span{min-inline-size:0;overflow-wrap:anywhere}
.tro-left-rows li b{flex:none;color:var(--brand)}
.tro-left-rows li b.ok{color:var(--ink)}
.tro-confirm.tro-card{border-color:var(--brand)}
.tro-confirm-acts{display:flex;gap:8px;flex-wrap:wrap}
/* Stacks: a header card, then the lists 8 px apart. */
.tro-stack{display:grid;gap:8px;padding:0;border:0}
.tro-stack-head.tro-card{display:grid;gap:10px;padding:12px}
.tro-stack-lists{display:grid;gap:8px}
.tro-stack-links{display:flex;gap:12px;flex-wrap:wrap;margin:0}
.tro-stack-links:empty{display:none}
@media (prefers-reduced-motion:reduce){.tro-cards .tro-card,.tro-trophy{transition:none}}

/* ── The checkout step (Codex): one column up to 640 px, cards, and a fixed footer with the one action. ── */
.tro-checkout{max-inline-size:640px;margin-inline:auto;display:grid;gap:12px;padding-block:8px calc(96px + env(safe-area-inset-bottom,0px))}
.tro-checkout .tro-back{justify-self:start;padding:0;min-block-size:40px;display:inline-flex;gap:6px;align-items:center}
.tro-co-h{font-family:'Exo 2',system-ui,sans-serif;font-size:28px;line-height:32px;font-weight:800;letter-spacing:-.01em;margin:0}
.tro-co-h:focus{outline:none}
.tro-co-h em{font-style:normal;color:#D4774E}
.tro-rule{display:block;inline-size:180px;block-size:5px;border-radius:5px;background:linear-gradient(90deg,var(--blue),var(--brand))}
.tro-order{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tro-order-game{grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px}
.tro-order-game p{margin:0}
.tro-order-game .tro-rv-what{font-size:14px;color:var(--muted);margin-block-start:4px}
.tro-order-game .tro-link{min-block-size:32px;padding:0}
.tro-checkout .tro-methods{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px;display:grid;gap:8px}
.tro-checkout .tro-methods legend{float:inline-start;inline-size:100%;font-family:'Exo 2',system-ui,sans-serif;font-size:18px;line-height:22px;font-weight:700;color:var(--ink);margin:0 0 4px}
.tro-checkout .tro-method:hover{border-color:var(--brand)}
.tro-checkout .tro-method:has(input:checked){background:color-mix(in srgb,var(--brand) 12%,var(--surface2))}
.tro-fields{gap:12px}
.tro-checkout .tro-price:empty{display:none}
.tro-checkout .tro-price{padding-inline:4px}
.tro-checkout-foot{position:fixed;inset-inline:0;inset-block-end:0;z-index:45;display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:var(--surface);border-block-start:1px solid var(--line);padding:12px max(16px,calc((100vw - 640px) / 2)) calc(12px + env(safe-area-inset-bottom,0px))}
.tro-checkout-foot[hidden]{display:none}
.tro-foot-total{margin:0;display:grid;font-size:13px;line-height:18px;color:var(--muted)}
.tro-foot-total b{font-family:'Exo 2',system-ui,sans-serif;font-size:24px;line-height:28px;font-weight:800;color:var(--ink)}
.tro-checkout-foot .tro-btn{min-block-size:48px;flex:1 1 auto;max-inline-size:360px}
body.tro-co-open #tabbar,body.tro-co-open .tro-pick{display:none}
/* Bundles as cards: two columns from 720 px. */
.tro-bundles{grid-template-columns:1fr}
@media (min-width:720px){.tro-bundles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tro-bundle.tro-card{background:var(--surface);gap:10px}
.tro-bundle-tile{display:grid;place-items:center;inline-size:48px;block-size:48px;border-radius:12px;background:var(--surface2)}
.tro-bundle-copy p{margin:0;font-size:14px;line-height:20px}
.tro-bprice{font-size:24px;line-height:28px}

/* A mixed order: one method section per console. */
.tro-mgroup{display:grid;gap:8px}
.tro-mgroup+.tro-mgroup{border-block-start:1px solid var(--line);padding-block-start:12px;margin-block-start:4px}
.tro-mgroup-h{display:flex;align-items:center;gap:10px;margin:0;font-size:14px;font-weight:700;color:var(--muted)}

/* The terms as one line above Buy / Pay (no tick boxes). */
.tro-terms-note{font-size:12px;line-height:17px;color:var(--muted);margin:0}
