/* House of Badges · section: trophy_case · every rule is scoped under #trophy-case (and #trophy-case-fx, the body-level
   drag/burst layer this section creates). Keyframes are prefixed hobtc-. Royal Glass tokens from combined base.css. */
#trophy-case{
  --hobtc-gold:var(--gold,#e0bf5a);--hobtc-gold-l:var(--gold-l,#ffe9a8);--hobtc-ivory:var(--ivory,#faf3e6);--hobtc-mut:var(--muted,#d8ccb0);
  --hobtc-fd:var(--fd,"Cinzel",Georgia,serif);--hobtc-fb:var(--fb,"Source Sans 3","Segoe UI",system-ui,sans-serif);
  --hobtc-out:var(--ease-out,cubic-bezier(.16,1,.3,1));--hobtc-spring:var(--ease-spring,cubic-bezier(.34,1.56,.64,1));
  --hobtc-glass:rgba(72,66,118,.42);--hobtc-edge:rgba(255,233,168,.16);--hobtc-hot:var(--hot,#ff6b4a);
  display:block;position:relative;container:hobtc / inline-size;color:var(--hobtc-ivory);font-family:var(--hobtc-fb);padding:clamp(40px,6cqw,88px) 0}
#trophy-case *,#trophy-case *::before,#trophy-case *::after{box-sizing:border-box}
#trophy-case .hobtc{position:relative;isolation:isolate}
#trophy-case .hobtc::before{content:"";position:absolute;inset:-10% 0 -6%;z-index:-1;pointer-events:none;
  background:radial-gradient(40% 50% at 18% 30%,rgba(91,47,184,.30),transparent 70%),radial-gradient(34% 44% at 86% 64%,rgba(31,111,138,.22),transparent 70%),radial-gradient(30% 30% at 56% 96%,rgba(138,106,31,.16),transparent 70%)}
#trophy-case .hobtc-wrap{width:min(1340px,100% - 56px);margin-inline:auto}
#trophy-case .hobtc-glass{position:relative;background:linear-gradient(180deg,var(--hobtc-glass),rgba(40,36,74,.5));border:1px solid var(--hobtc-edge);border-radius:24px;backdrop-filter:blur(18px) saturate(130%);-webkit-backdrop-filter:blur(18px) saturate(130%);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 30px 60px -34px rgba(0,0,0,.7)}
#trophy-case .hobtc-k{font:700 12.5px/1 var(--hobtc-fb);letter-spacing:.2em;text-transform:uppercase;color:var(--hobtc-gold)}
/* lead */
#trophy-case .hobtc-lead{display:flex;align-items:flex-end;gap:40px;margin:0 0 26px}
#trophy-case .hobtc-lead>div{flex:1}
#trophy-case .hobtc-lead>p{max-width:470px;margin:0 0 6px;color:#e7dfcb;font-size:17.5px;line-height:1.55}
#trophy-case .hobtc-h2{margin:14px 0 0;font:800 clamp(40px,4.6cqw,68px)/1 var(--hobtc-fd);letter-spacing:.01em;color:var(--hobtc-ivory);text-wrap:balance}
#trophy-case .hobtc-h2 em{font-style:normal;background:linear-gradient(180deg,#fff3c9,#e0bf5a 60%,#b98f2e);-webkit-background-clip:text;background-clip:text;color:transparent;padding-bottom:.06em}
#trophy-case .hobtc-grid{display:grid;grid-template-columns:360px 1fr;gap:26px;align-items:start}
/* collector card */
#trophy-case .hobtc-card{padding:22px}
#trophy-case .hobtc-pc-top{display:flex;align-items:center;gap:14px}
#trophy-case .hobtc-avatar{flex:none;width:60px;height:60px;border-radius:18px;background:#0b0916;display:grid;place-items:center;box-shadow:0 0 0 2px var(--hobtc-gold),0 10px 24px -10px #000;overflow:hidden}
#trophy-case .hobtc-avatar img{width:38px}
#trophy-case .hobtc-pc-top b{display:block;font:800 21px/1.1 var(--hobtc-fd);color:var(--hobtc-ivory)}
#trophy-case .hobtc-pc-top span{font-size:15px;color:var(--hobtc-mut)}
#trophy-case .hobtc-pc-top .btn{margin-left:auto}
#trophy-case .hobtc-rank{margin:18px 0 0;padding:16px;border-radius:18px;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.06)}
#trophy-case .hobtc-rank-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
#trophy-case .hobtc-rank-row b{font:800 26px/1 var(--hobtc-fd);color:var(--hobtc-gold-l)}
#trophy-case .hobtc-rank-row span{font-size:15px;color:var(--hobtc-mut);white-space:nowrap}
#trophy-case .hobtc-xp{height:10px;border-radius:10px;background:rgba(255,255,255,.08);margin:12px 0 8px;overflow:hidden}
#trophy-case .hobtc-xp i{display:block;height:100%;width:calc(var(--x,0)*100%);border-radius:inherit;background:linear-gradient(90deg,#c9a443,#ffe9a8);box-shadow:0 0 16px rgba(224,191,90,.6);transition:width 1s var(--hobtc-out)}
#trophy-case .hobtc-rank small{font-size:14.5px;color:var(--hobtc-mut)}
#trophy-case .hobtc-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
#trophy-case .hobtc-stats div{padding:12px;border-radius:16px;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.05)}
#trophy-case .hobtc-stats b{display:block;font:800 26px/1 var(--hobtc-fd);color:var(--hobtc-ivory);font-variant-numeric:tabular-nums}
#trophy-case .hobtc-stats span{display:block;margin-top:6px;font:700 11.5px/1.2 var(--hobtc-fb);letter-spacing:.12em;text-transform:uppercase;color:var(--hobtc-mut)}
#trophy-case .hobtc-stats .is-fl b{color:#ffb15c}
#trophy-case .hobtc-rar{margin-top:14px;display:grid;gap:7px}
#trophy-case .hobtc-rar div{display:grid;grid-template-columns:92px 1fr 48px;gap:10px;align-items:center;font-size:14.5px}
#trophy-case .hobtc-rar span{font-weight:700;color:var(--rc)}
#trophy-case .hobtc-rar i{position:relative;height:7px;border-radius:7px;background:rgba(255,255,255,.07);overflow:hidden}
#trophy-case .hobtc-rar i::after{content:"";position:absolute;inset:0;width:calc(var(--v,0)*100%);background:var(--rc);border-radius:inherit;transition:width 1s var(--hobtc-out)}
#trophy-case .hobtc-rar em{font-style:normal;text-align:right;color:var(--hobtc-mut);font-variant-numeric:tabular-nums}
#trophy-case .hobtc-medals{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
#trophy-case .hobtc-medal{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border-radius:999px;font:700 13px/1 var(--hobtc-fb);color:#b3aa94;background:rgba(0,0,0,.2);border:1px dashed rgba(255,255,255,.16);transition:background .5s var(--hobtc-out),color .5s,box-shadow .5s}
#trophy-case .hobtc-medal.is-on{color:#1d1505;background:linear-gradient(180deg,#ffe9a8,#e0bf5a);border:1px solid transparent;box-shadow:0 6px 16px -8px rgba(224,191,90,.9)}
#trophy-case .hobtc-pc-acts{display:flex;gap:8px;margin-top:16px}
#trophy-case .hobtc-pc-acts .btn{flex:1}
/* cabinet */
#trophy-case .hobtc-cab{padding:22px 22px 18px}
#trophy-case .hobtc-cab-head{display:flex;align-items:center;gap:14px;margin-bottom:16px}
#trophy-case .hobtc-cab-head h3{margin:0;font:800 22px/1.1 var(--hobtc-fd);letter-spacing:.04em;color:var(--hobtc-ivory)}
#trophy-case .hobtc-cab-head p{margin:2px 0 0;font-size:15px;color:var(--hobtc-mut)}
#trophy-case .hobtc-tools{display:flex;gap:6px;margin-left:auto}
#trophy-case .hobtc-count{margin-left:8px;white-space:nowrap;font:800 18px/1 var(--hobtc-fd);color:var(--hobtc-gold-l);font-variant-numeric:tabular-nums}
#trophy-case .hobtc-count>span{color:var(--hobtc-mut);font-size:15px}
#trophy-case .hobtc-chip{height:36px;padding:0 13px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.2);color:#e9e2cf;font:700 14px/1 var(--hobtc-fb);cursor:pointer;transition:border-color .25s var(--hobtc-out),color .25s,background .25s}
#trophy-case .hobtc-chip:hover{border-color:var(--hobtc-gold);color:var(--hobtc-gold-l)}
#trophy-case .hobtc-chip[aria-pressed=true]{background:var(--hobtc-gold);color:#1d1505;border-color:var(--hobtc-gold)}
#trophy-case .hobtc-chip[data-arm]{border-color:var(--hobtc-hot);color:#ffb19d}
#trophy-case .hobtc-body{display:grid;grid-template-columns:1fr 280px;gap:16px;align-items:stretch}
#trophy-case .hobtc-slots{display:grid;grid-template-columns:repeat(7,1fr);gap:12px;perspective:1000px;align-content:start}
#trophy-case .hobtc-slot{position:relative;aspect-ratio:1;border-radius:18px;border:0;padding:0;cursor:pointer;color:inherit;font:inherit;
  background:linear-gradient(180deg,rgba(10,8,22,.55),rgba(30,26,56,.55));box-shadow:inset 0 2px 10px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,233,168,.14);transform-style:preserve-3d;transition:transform .5s var(--hobtc-out),box-shadow .5s,opacity .4s}
#trophy-case .hobtc-slot .hobtc-art{position:absolute;inset:16%;border-radius:10px;overflow:hidden;transition:filter .7s,opacity .7s,transform .7s var(--hobtc-spring)}
#trophy-case .hobtc-slot .hobtc-art img{display:block;width:100%;height:100%;object-fit:contain}
#trophy-case .hobtc-slot.noart .hobtc-art{inset:10%}#trophy-case .hobtc-slot.noart .hobtc-art img{object-fit:cover}
#trophy-case .hobtc-slot:not(.is-lit) .hobtc-art{filter:grayscale(1) brightness(.55) contrast(.9);opacity:.38;transform:scale(.86)}
#trophy-case .hobtc-slot:not(.is-lit):hover .hobtc-art{opacity:.62;filter:grayscale(.6) brightness(.8)}
#trophy-case .hobtc-lbl{position:absolute;left:6px;right:6px;bottom:5px;font:700 11.5px/1.1 var(--hobtc-fb);letter-spacing:.04em;text-align:center;color:#d3c9b2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .3s;pointer-events:none}
#trophy-case .hobtc-slot:hover .hobtc-lbl,#trophy-case .hobtc-slot:focus-visible .hobtc-lbl{opacity:1}
#trophy-case .hobtc-slot:focus-visible{outline:2px solid var(--hobtc-gold-l);outline-offset:3px}
#trophy-case .hobtc-slot.is-lit{background:linear-gradient(160deg,rgba(255,255,255,.18),rgba(255,255,255,.03) 40%,rgba(0,0,0,.25)),linear-gradient(180deg,#2a2550,#17142f);
  box-shadow:inset 0 0 0 2px #e0bf5a,inset 0 1px 0 rgba(255,255,255,.4),0 0 0 1px rgba(0,0,0,.4),0 14px 30px -14px rgba(0,0,0,.9),0 0 26px -6px rgba(224,191,90,.55)}
#trophy-case .hobtc-slot.is-lit::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(115deg,transparent 30%,rgba(255,250,220,.45) 48%,transparent 62%);background-size:250% 100%;background-position:120% 0;mix-blend-mode:screen;pointer-events:none;opacity:0}
#trophy-case .hobtc-slot.is-pop::before{animation:hobtc-sweep 1.1s var(--hobtc-out) forwards}
#trophy-case .hobtc-slot.is-pop{animation:hobtc-pop .7s var(--hobtc-spring)}
@keyframes hobtc-sweep{0%{opacity:1;background-position:120% 0}100%{opacity:0;background-position:-60% 0}}
@keyframes hobtc-pop{0%{transform:scale(.88)}60%{transform:scale(1.08)}100%{transform:scale(1)}}
#trophy-case .hobtc-slot.is-lit .hobtc-art{transform:translateZ(22px)}
#trophy-case .hobtc-rd{position:absolute;top:6px;right:6px;width:8px;height:8px;border-radius:50%;background:var(--rc);box-shadow:0 0 8px var(--rc);opacity:.85}
#trophy-case .hobtc-slot:not(.is-lit) .hobtc-rd{opacity:.35;box-shadow:none}
#trophy-case .hobtc-slot.is-hot::after{content:"";position:absolute;top:6px;left:6px;width:8px;height:8px;border-radius:50%;background:var(--hobtc-hot);box-shadow:0 0 8px var(--hobtc-hot)}
#trophy-case .hobtc-slot.is-target{box-shadow:inset 0 0 0 2px var(--hobtc-gold-l),0 0 30px -4px rgba(255,233,168,.8);transform:scale(1.06)}
#trophy-case .hobtc-slot.is-dim{opacity:.32}
/* tray */
#trophy-case .hobtc-tray{position:relative;min-height:220px;border-radius:20px;background:linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.15));box-shadow:inset 0 6px 20px rgba(0,0,0,.6),inset 0 0 0 1px rgba(255,233,168,.1);overflow:hidden}
#trophy-case .hobtc-tray canvas{position:absolute;inset:52px 0 0 0;width:100%;height:calc(100% - 52px);touch-action:none;cursor:grab;display:block}
#trophy-case .hobtc-tray canvas.is-grab{cursor:grabbing}
#trophy-case .hobtc-tray-hint{position:absolute;left:16px;top:17px;z-index:2;display:flex;align-items:center;gap:10px;font:700 14px/1 var(--hobtc-fb);letter-spacing:.06em;color:var(--hobtc-mut);pointer-events:none}
#trophy-case .hobtc-tray-hint svg{color:var(--hobtc-gold)}
#trophy-case .hobtc-tray-acts{position:absolute;right:10px;top:10px;z-index:2;display:flex;gap:6px}
#trophy-case .hobtc-tray-empty{position:absolute;inset:0;display:grid;place-content:center;text-align:center;gap:6px;padding:20px;color:var(--hobtc-mut);opacity:0;pointer-events:none;transition:opacity .6s}
#trophy-case .hobtc-tray-empty b{font:800 22px/1 var(--hobtc-fd);color:var(--hobtc-gold-l)}
#trophy-case .hobtc-tray.is-empty .hobtc-tray-empty{opacity:1}
#trophy-case .hobtc-tray-static{position:absolute;inset:52px 12px 12px;display:none;flex-wrap:wrap;gap:8px;overflow:auto;align-content:flex-start}
#trophy-case .hobtc-tray-static button{width:54px;height:54px;border-radius:12px;border:1px solid rgba(224,191,90,.5);background:linear-gradient(180deg,#332d60,#161330);padding:6px;cursor:pointer;transition:transform .3s var(--hobtc-out),border-color .25s}
#trophy-case .hobtc-tray-static button:hover{transform:translateY(-2px);border-color:var(--hobtc-gold-l)}
#trophy-case .hobtc-tray-static img{display:block;width:100%;height:100%;object-fit:contain}
#trophy-case .hobtc-tray.is-static canvas{display:none}#trophy-case .hobtc-tray.is-static .hobtc-tray-static{display:flex}
/* responsive (container widths, so it fits any slot) */
@container hobtc (max-width:1180px){
  #trophy-case .hobtc-lead{display:block}#trophy-case .hobtc-lead>p{margin-top:14px}
  #trophy-case .hobtc-grid{grid-template-columns:1fr}#trophy-case .hobtc-cab{order:1}#trophy-case .hobtc-card{order:2}
  #trophy-case .hobtc-body{grid-template-columns:1fr}#trophy-case .hobtc-tray{height:240px}
}
@container hobtc (max-width:760px){
  #trophy-case .hobtc-wrap{width:calc(100% - 28px)}
  #trophy-case .hobtc-slots{grid-template-columns:repeat(5,1fr);gap:9px}
  #trophy-case .hobtc-cab{padding:16px 14px}#trophy-case .hobtc-tools{display:none}#trophy-case .hobtc-count{margin-left:auto}
  #trophy-case .hobtc-tray{height:260px}#trophy-case .hobtc-lbl{display:none}#trophy-case .hobtc-slot{border-radius:14px}
  #trophy-case .hobtc-lead>p{font-size:17px}
}
@container hobtc (max-width:400px){#trophy-case .hobtc-rar div{grid-template-columns:84px 1fr 44px}#trophy-case .hobtc-card{padding:18px}}
#trophy-case .is-still *,#trophy-case .is-still *::before,#trophy-case .is-still *::after{transition-duration:.001ms!important;animation-duration:.001ms!important;animation-delay:0s!important}
/* body-level layer for the lifted tile and the gold burst (outside every transformed/blurred ancestor) */
#trophy-case-fx{position:fixed;inset:0;z-index:2147483000;pointer-events:none;contain:strict}
#trophy-case-fx .hobtc-ghost{position:absolute;left:0;top:0;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:16px;padding:12px;will-change:transform;
  background:linear-gradient(180deg,#2a2550,#17142f);box-shadow:inset 0 0 0 2px #e0bf5a,0 24px 40px -12px rgba(0,0,0,.8),0 0 30px -4px rgba(224,191,90,.6)}
#trophy-case-fx .hobtc-ghost[hidden]{display:none}
#trophy-case-fx .hobtc-ghost img{display:block;width:100%;height:100%;object-fit:contain}
#trophy-case-fx canvas{position:absolute;inset:0;width:100%;height:100%}
/* Inside a host .wrap (combined index: section.sec > .wrap > #trophy-case) the page already provides gutters + section padding. */
#trophy-case:where(.wrap>*){padding-block:0 8px}
#trophy-case:where(.wrap>*) .hobtc-wrap{width:100%}
