/* TriCity Tycoon: achievement celebrations + Trophy Case. Phone first (390 x 844). Reduced motion: opacity only. */

/* --- tiered banner (bronze / silver / gold for others) reuses .ach-banner from style.css --- */
.ach-banner.tier-bronze { --abRim: #e3a06a; }
.ach-banner.tier-silver { --abRim: #dfe6ee; }
.ach-banner.tier-gold { --abRim: #ffd34d; box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 2px #ffd34d, 0 0 26px rgba(255,211,77,.45); }
.ach-banner.tier-bronze, .ach-banner.tier-silver { box-shadow: 0 10px 26px rgba(0,0,0,.45), 0 0 0 2px var(--abRim); }
.ach-banner .ab-ic .achpin img, .ach-banner .ab-ic .cel-piece { width: 44px; height: 44px; object-fit: contain; }
.ach-banner .ab-ic .achcard { width: 36px; font-size: 5px; }
/* tier tag: a cut-corner metal tag, not a rounded pill (Anton 08:00 ET 2026-11-27 "no rounded text pills"); Nunito so the L-V pair in SILVER is kerned (Fredoka left a gap: "SIL VER") */
.ach-banner .ab-tier { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 0; clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 50%, calc(100% - 4px) 100%, 4px 100%, 0 50%);
  font: 900 10px/1.3 Nunito, sans-serif; letter-spacing: .08em; font-kerning: normal; vertical-align: 1px; color: #2a1a05;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 55%), var(--abRim, #ffd34d); }

/* --- badges, pins, cards --- */
.achb, .achp { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.achpin { display: inline-flex; align-items: center; justify-content: center; }
.achpin img { object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.achcard { position: relative; width: 104px; aspect-ratio: 5 / 7; border-radius: 9px; padding: 5px; box-sizing: border-box; display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(145deg, #f1f4f8, #8b9bad 55%, #3d4a59); box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.5); color: #1b1f24; overflow: hidden; }
.achcard.ct-bronze { background: linear-gradient(145deg, #ffd8b0, #c0702f 55%, #5e2d0f); }
.achcard.ct-silver { background: linear-gradient(145deg, #ffffff, #b9c3cd 55%, #4f5963); }
.achcard.ct-gold { background: linear-gradient(145deg, #fff3b0, #e3a521 50%, #6e4205); box-shadow: 0 6px 18px rgba(0,0,0,.5), 0 0 14px rgba(255,205,60,.55), inset 0 0 0 1px rgba(255,255,255,.6); }
.achcard.foil-holo::after, .achcard.foil-blackgold::after, .achcard.ct-gold::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, rgba(255,240,180,.35) 50%, transparent 62%); mix-blend-mode: overlay; }
.achcard.foil-holo::after { background: linear-gradient(115deg, rgba(255,0,128,.25), rgba(0,255,200,.25), rgba(255,230,0,.25), rgba(80,120,255,.25)); }
.achcard.foil-blackgold { background: linear-gradient(145deg, #3a3020, #0d0b08 55%, #c9a227); color: #f5d77a; }
.achcard .ac-art { flex: 1; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 0;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--hue) 55%, #fff) 0%, var(--hue) 55%, color-mix(in srgb, var(--hue) 45%, #000) 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.achcard .ac-art img { width: 100%; height: 100%; object-fit: cover; }
.achcard .ac-emblem { opacity: .95; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
/* designed fallback face (no painted art yet): sunburst ground, gilt inner frame, gilt medallion + emblem, rivets. No blank cards. */
.achcard .ac-art.ac-fb { position: relative; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--hue) 50%, #fff3c4) 0%, var(--hue) 48%, color-mix(in srgb, var(--hue) 38%, #000) 100%); }
.achcard .ac-fb-rays { position: absolute; inset: -20%; background: repeating-conic-gradient(from 0deg at 50% 46%, rgba(255,240,200,.16) 0deg 9deg, transparent 9deg 22.5deg); }
.achcard .ac-fb-frame { position: absolute; inset: 6%; border: 2px solid #e9c25a; outline: 1px solid rgba(110,66,5,.75); outline-offset: 1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 0 14px rgba(0,0,0,.28);
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px); }
.achcard .ac-fb-medal { position: relative; width: 64%; aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 50%, var(--hue) 0 60%, #fff1a8 62%, #e3a521 69%, #8a5608 76%, #f6d56a 79%, #6e4205 82%, transparent 84%); filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
.achcard .ac-fb-medal .ac-emblem { width: 58%; display: flex; } .achcard .ac-fb-medal .ac-emblem svg { width: 100%; height: auto; }
.achcard .ac-fb-rv { position: absolute; width: 5%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6cc, #c9921c 60%, #5e3a04); }
.achcard .ac-fb-rv.r1 { left: 9%; top: 7.5%; } .achcard .ac-fb-rv.r2 { right: 9%; top: 7.5%; } .achcard .ac-fb-rv.r3 { left: 9%; bottom: 7.5%; } .achcard .ac-fb-rv.r4 { right: 9%; bottom: 7.5%; }
.achcard .ac-name { font: 800 9.5px/1.1 system-ui, sans-serif; text-align: center; padding: 2px 5px; border-radius: 0; clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 50%, calc(100% - 4px) 100%, 4px 100%, 0 50%); background: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.achcard.foil-blackgold .ac-name { background: rgba(0,0,0,.5); }
.achcard .ac-tier { font: 900 7.5px/1 system-ui, sans-serif; letter-spacing: .12em; text-align: center; opacity: .85; }

/* --- gold reveal (earner): half-screen, never takes a tap --- */
.ach-gold { position: fixed; left: 0; right: 0; top: 0; height: min(54vh, 470px); z-index: 7400; pointer-events: none; overflow: hidden; display: flex; align-items: center; justify-content: center;
  border-bottom: 3px solid #ffd34d; box-shadow: 0 14px 40px rgba(0,0,0,.6); animation: agIn .35s ease-out both; }
.ach-gold .ag-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.38) saturate(1.05); }
.ach-gold .ag-body { position: relative; text-align: center; color: #fff; padding: 12px 18px; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ach-gold .ag-kick { font: 900 12px/1 system-ui, sans-serif; letter-spacing: .22em; color: #ffd34d; text-shadow: 0 1px 2px #000; }
.ach-gold .ag-item { perspective: 600px; }
.ach-gold .ag-item.flip .achcard { animation: agFlip .9s .2s ease-out both; width: 112px; }
.ach-gold .ag-title { font: 900 22px/1.15 system-ui, sans-serif; text-shadow: 0 2px 4px rgba(0,0,0,.7); }
.ach-gold .ag-sub, .ach-gold .ag-items { font: 600 13px/1.3 system-ui, sans-serif; text-shadow: 0 1px 2px #000; }
.ach-gold .ag-items { color: #ffe9a6; }
.ach-gold .ag-bix { display: flex; align-items: center; gap: 6px; font: 700 12px/1.2 system-ui, sans-serif; background: rgba(0,0,0,.45); padding: 4px 10px 4px 4px; border-radius: 999px; }
.ach-gold .ag-bix img { width: 26px; height: 26px; }
.ach-gold .ag-confetti { position: absolute; inset: 0; background-image: radial-gradient(#ffd34d 2px, transparent 2.5px), radial-gradient(#ff8fab 2px, transparent 2.5px), radial-gradient(#8ce99a 2px, transparent 2.5px);
  background-size: 60px 70px, 80px 90px, 70px 60px; animation: agConf 4s linear both; opacity: .9; }
.ach-gold.out { animation: agOut .28s ease-in both; }
.ach-gold.reduced, .ach-gold.reduced * { animation: none !important; transition: opacity .2s !important; }
.ach-gold.reduced.out { opacity: 0; }
@keyframes agIn { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes agOut { to { transform: translateY(-100%); opacity: 0; } }
@keyframes agFlip { from { transform: rotateY(180deg) scale(.7); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes agConf { from { background-position: 0 -100px, 0 -160px, 0 -80px; } to { background-position: 20px 400px, -30px 460px, 10px 380px; } }

/* --- legendary takeover: full screen on every screen, skippable after 2 s --- */
.ach-legend { position: fixed; inset: 0; z-index: 7600; display: flex; align-items: center; justify-content: center; overflow: hidden; animation: alIn .4s ease-out both; }
.ach-legend .al-bg { position: absolute; inset: -4%; background-size: cover; background-position: center; animation: alSwoop 7s ease-out both; }
.ach-legend .al-dim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(10,6,30,.25), rgba(6,4,20,.82) 75%); }
.ach-legend .al-body { position: relative; text-align: center; color: #fff; max-width: 400px; padding: 0 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ach-legend .al-kick { font: 900 14px/1 system-ui, sans-serif; letter-spacing: .3em; padding: 6px 14px; border-radius: 999px; background: linear-gradient(90deg, #9b5de5, #f15bb5, #fee440); color: #1a0b2e; box-shadow: 0 0 24px rgba(241,91,181,.6); }
.ach-legend .al-bix { display: flex; align-items: center; gap: 8px; font: 800 14px/1.25 system-ui, sans-serif; background: rgba(0,0,0,.5); padding: 4px 12px 4px 4px; border-radius: 999px; }
.ach-legend .al-bix img { width: 34px; height: 34px; }
.ach-legend .al-item { margin: 6px 0; animation: alRise 1.4s 1.2s cubic-bezier(.2,.9,.3,1.2) both; }
.ach-legend .al-item .achcard { width: 150px; animation: agFlip 1s 2.8s ease-out both; }
.ach-legend .al-item .cel-piece { width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.6)) drop-shadow(0 0 22px rgba(255,220,120,.6)); }
.ach-legend .al-title { font: 900 26px/1.12 system-ui, sans-serif; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
.ach-legend .al-sub { font: 600 14px/1.35 system-ui, sans-serif; text-shadow: 0 1px 3px #000; }
.ach-legend .al-items { font: 700 13px/1.3 system-ui, sans-serif; color: #ffe9a6; text-shadow: 0 1px 2px #000; }
.ach-legend .al-saved { font: 800 13px/1 system-ui, sans-serif; color: #b2f2bb; opacity: 0; transition: opacity .4s; min-height: 14px; }
.ach-legend .al-saved.on { opacity: 1; }
.ach-legend .al-skip { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; opacity: .35; }
.ach-legend .al-skip.ready { opacity: 1; }
.ach-legend .al-fireworks i { position: absolute; left: calc(8% + var(--i) * 13%); top: calc(12% + (var(--i) * 37 % 30) * 1%); width: 120px; height: 120px; margin: -60px; border-radius: 50%;
  background: radial-gradient(circle, transparent 30%, rgba(255,235,140,.9) 31%, transparent 34%), conic-gradient(from 0deg, #f15bb5, #fee440, #00bbf9, #00f5d4, #9b5de5, #f15bb5);
  -webkit-mask: radial-gradient(circle, transparent 42%, #000 44%, #000 48%, transparent 50%); mask: radial-gradient(circle, transparent 42%, #000 44%, #000 48%, transparent 50%);
  opacity: 0; animation: alBoom 1.6s calc(1.2s + var(--i) * .55s) ease-out both; }
.ach-legend.out { animation: alOut .32s ease-in both; }
.ach-legend.reduced, .ach-legend.reduced * { animation: none !important; transition: opacity .25s !important; }
.ach-legend.reduced.out { opacity: 0; }
@keyframes alIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes alOut { to { opacity: 0; } }
@keyframes alSwoop { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes alRise { from { transform: translateY(40px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes alBoom { 0% { transform: scale(.2); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* --- Trophy Case --- */
body.tc-open { overflow: hidden; }
.tcase { position: fixed; inset: 0; z-index: 5900; display: flex; justify-content: center; background: #120c08; }
.tcase .tc-shelf { position: absolute; inset: 0; background-size: cover; background-position: center top; filter: brightness(.35) blur(1px); }
.tcase .tc-panel { position: relative; width: 100%; max-width: 560px; height: 100%; display: flex; flex-direction: column; color: #fdf6e3; }
.tc-head { display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 14px 6px; }
.tc-head h2 { margin: 0; font: 900 24px/1 Georgia, 'Times New Roman', serif; color: #ffd34d; text-shadow: 0 2px 4px rgba(0,0,0,.7); letter-spacing: .02em; }
.tc-close { min-width: 44px; min-height: 44px; font-size: 18px; }
.tc-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 12px max(16px, env(safe-area-inset-bottom)); }
.tc-loading, .tc-empty { padding: 18px 10px; text-align: center; opacity: .85; font: 600 14px/1.4 system-ui, sans-serif; }
.tc-sum { background: rgba(20,12,6,.72); border: 1px solid rgba(255,211,77,.35); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.tc-count { font: 600 14px/1.2 system-ui, sans-serif; } .tc-count b { font-size: 20px; color: #ffd34d; }
.tc-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); margin: 6px 0; overflow: hidden; } .tc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c0702f, #ffd34d); }
.tc-chips { display: flex; flex-wrap: wrap; gap: 4px; } .tc-chips span { font: 700 11px/1 system-ui, sans-serif; padding: 4px 7px; border-radius: 99px; background: rgba(255,255,255,.1); }
.tc-note { margin-top: 6px; font: 500 12px/1.35 system-ui, sans-serif; color: #ffe9a6; }
.tc-tabs { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; padding: 6px 0; background: linear-gradient(#120c08 70%, rgba(18,12,8,0)); }
.tc-tab { min-height: 38px; padding: 0 2px; border-radius: 9px; border: 1px solid rgba(255,211,77,.35); background: rgba(255,255,255,.06); color: #fdf6e3; font: 800 11px/1 system-ui, sans-serif; cursor: pointer; }
.tc-tab.on { background: linear-gradient(#ffd34d, #e3a521); color: #2a1a05; border-color: #ffd34d; }
.tc-cats { display: flex; gap: 5px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; } .tc-cats::-webkit-scrollbar { display: none; }
.tc-cat { flex: none; min-height: 32px; padding: 0 10px; border-radius: 99px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: #fdf6e3; font: 700 12px/1 system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.tc-cat.on { background: #fdf6e3; color: #2a1a05; }
.tc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.tl-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 10px; background: rgba(20,12,6,.7); border: 1px solid rgba(255,255,255,.08); }
.tl-row.earned { border-color: rgba(255,211,77,.45); background: rgba(48,30,10,.78); }
.tl-ic.locked { filter: grayscale(.9) brightness(.55); }
.tl-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tl-txt b { font: 800 14px/1.15 system-ui, sans-serif; } .tl-txt small { font: 500 12px/1.3 system-ui, sans-serif; opacity: .82; }
.tl-meta { font: 600 11px/1.2 system-ui, sans-serif; color: #ffe9a6; opacity: .85; }
.tl-prog { position: relative; display: block; height: 14px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin: 2px 0; }
.tl-prog i { display: block; height: 100%; background: linear-gradient(90deg, #4dabf7, #8ce99a); } .tl-prog em { position: absolute; inset: 0; font: 800 10px/14px system-ui, sans-serif; text-align: center; font-style: normal; color: #fff; text-shadow: 0 1px 1px #000; }
/* rarity label (Bronze / Silver / Gold / Legendary / Secret): a chamfered plate with a bevel, never a capsule (no-pill rule, lockedtitle-1127) */
.tl-tier { font: 900 10px/1 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 0; white-space: nowrap;
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1.5px 0 rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(0, 0, 0, .18); }
.tl-tier.t-bronze { background: #c0702f; color: #fff; } .tl-tier.t-silver { background: #cfd6de; color: #222; } .tl-tier.t-gold { background: #ffd34d; color: #2a1a05; }
.tl-tier.t-legendary { background: linear-gradient(90deg, #9b5de5, #f15bb5); color: #fff; } .tl-tier.t-secret { background: #495057; color: #fff; }
.tc-hint { font: 500 12px/1.4 system-ui, sans-serif; opacity: .85; margin: 2px 2px 8px; }
.tc-h3 { font: 800 15px/1 Georgia, serif; color: #ffd34d; margin: 12px 2px 6px; }
.tc-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.tc-grid.cards { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); justify-items: center; }
.tg-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; background: rgba(20,12,6,.7); text-align: center; }
.tg-item small { font: 700 11px/1.2 system-ui, sans-serif; }
.tg-card { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.tg-pips { display: flex; gap: 3px; } .pip { min-width: 20px; height: 18px; border-radius: 5px; font: 900 10px/18px system-ui, sans-serif; text-align: center; background: rgba(255,255,255,.1); color: rgba(255,255,255,.45); }
.pip.on.p-regular { background: #93a3b5; color: #111; } .pip.on.p-bronze { background: #c0702f; color: #fff; } .pip.on.p-silver { background: #dfe6ee; color: #111; } .pip.on.p-gold { background: #ffd34d; color: #2a1a05; }
.tg-piece { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 12px; background: rgba(20,12,6,.72); border: 1px solid rgba(255,255,255,.08); text-align: center; }
.tg-piece img { width: 84px; height: 84px; object-fit: contain; }
.tg-piece.locked img { filter: grayscale(1) brightness(.3) contrast(1.2); opacity: .75; }
.tg-piece.owned { border-color: rgba(255,211,77,.5); } .tg-piece.sel { box-shadow: 0 0 0 2px #ffd34d, 0 0 16px rgba(255,211,77,.5); }
.tg-piece b { font: 800 12px/1.15 system-ui, sans-serif; } .tg-piece small { font: 600 10.5px/1.2 system-ui, sans-serif; opacity: .8; }
.tg-piece .btn { margin-top: 3px; font-size: 11px; padding: 6px 8px; min-height: 32px; }
.sh-vis img { width: 64px; height: 64px; object-fit: contain; }
.nameplate-brass { display: inline-block; padding: 6px 10px; border-radius: 6px; background: linear-gradient(#ffe9a6, #c89040 60%, #8a5a18); color: #2a1a05; font: 900 12px/1.1 Georgia, serif; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 4px rgba(0,0,0,.5); }
.tg-item.nameplate { background: transparent; }

/* --- game-over recap --- */
.es-trophies { margin: 8px auto 4px; max-width: 360px; padding: 8px 10px; border-radius: 12px; background: rgba(20,12,6,.6); border: 1px solid rgba(255,211,77,.4); text-align: left; }
.es-trophies .est-title { font: 900 12px/1 system-ui, sans-serif; letter-spacing: .14em; color: #ffd34d; text-transform: uppercase; margin-bottom: 5px; }
.es-trophies .est-row { font: 600 12px/1.35 system-ui, sans-serif; } .es-trophies .est-row b { margin-right: 6px; }

/* home: Trophy Case button */
.home-foot #trophyBtn { display: inline-flex; align-items: center; gap: 6px; }
.home-foot #trophyBtn svg { width: 18px; height: 18px; }
.rare-section .comm-title { color: #ffd34d; }
.piece-opt.rare .pc-name::after { content: 'Rare'; display: block; font: 900 9px/1 system-ui, sans-serif; letter-spacing: .1em; color: #ffd34d; margin-top: 2px; }

/* ===================================================================== Trophy Case cabinet (2026-11-25)
   Concept: ach_trophy_shelf2 (walnut cabinet, glass doors with gold trim, warm LED strip under each shelf, trophies on top,
   rare pieces on plinths with brass nameplates in the middle, fanned cards + pin cushion + coin stack on navy velvet, brass
   plaque). Built in CSS/SVG: walnut grain is SVG noise, no new art. Fits 390x844 and 430x932 with no scroll. */
.tcase { z-index: 6200;
  --wood-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.11' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.07 0 0 0 0 0.03 1.5 0 0 0 -0.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%236b3a20'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E");
--wood-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.11 0.004' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.13 0 0 0 0 0.06 0 0 0 0 0.025 1.5 0 0 0 -0.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%235e321b'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E");
--wood-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.05' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.08 0 0 0 0 0.035 1.2 0 0 0 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%23683a22'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E");
--velvet-n: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .6 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");

  --brass-a: #fff0b8; --brass-b: #d9a441; --brass-c: #7c5214; --led: #ffe7b8; }
.tcase .tc-room { position: absolute; inset: 0; background:
  radial-gradient(120% 70% at 50% 38%, rgba(255,170,90,.16), transparent 60%),
  linear-gradient(rgba(10,6,3,.55), rgba(10,6,3,.78)), var(--wood-v); background-size: auto, auto, 360px 360px; }
.tcase .tc-panel { max-width: 520px; }
.tc-head { gap: 8px; }
.tc-head h2 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 22px; }
.tc-back { min-height: 40px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
.tcase[data-mode="cab"] .tc-body { overflow: hidden; display: flex; flex-direction: column; padding-bottom: max(10px, env(safe-area-inset-bottom)); }

.cab { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; animation: cabIn .45s ease-out both; }
@keyframes cabIn { from { opacity: 0; } to { opacity: 1; } }
.cab-crown { height: 16px; margin: 0 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#8a5530, #4a2611 70%, #2a1408), var(--wood-h);
  background-blend-mode: multiply; box-shadow: 0 3px 0 #c9953a, 0 5px 8px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,220,170,.35); position: relative; z-index: 3; }
.cab-frame { position: relative; flex: 1; min-height: 0; margin: 4px 6px 0; padding: 8px 9px 0; border-radius: 3px; perspective: 1100px;
  background: linear-gradient(90deg, rgba(0,0,0,.35), transparent 6%, transparent 94%, rgba(0,0,0,.35)), var(--wood-v); background-size: auto, 300px 300px;
  box-shadow: 0 12px 30px rgba(0,0,0,.7), inset 0 0 0 1px rgba(0,0,0,.6); }
.cab-inner { position: relative; height: 100%; display: flex; flex-direction: column; gap: 0; border-radius: 2px; overflow: hidden;
  background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.22) 16%, rgba(0,0,0,.22) 84%, rgba(0,0,0,.6)), var(--wood-back);
  background-size: auto, 340px 340px; box-shadow: inset 0 0 0 2px #b8862f, inset 0 0 0 3px rgba(0,0,0,.6), inset 0 10px 24px rgba(0,0,0,.6); }
.cab-shelf { position: relative; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.cab-shelf.s-velvet { flex-grow: 1.08; }
/* the LED strip sits under the shelf above (top of each compartment) and throws a warm cone down the back panel */
.cab-led { position: absolute; left: 6px; right: 6px; top: 0; height: 3px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,231,184,.4), var(--led) 12%, #fffaf0 50%, var(--led) 88%, rgba(255,231,184,.4));
  box-shadow: 0 0 6px 1px rgba(255,214,150,.95), 0 0 18px 4px rgba(255,180,90,.45); z-index: 2; }
.cab-led::after { content: ''; position: absolute; left: -6px; right: -6px; top: 2px; height: 190px; pointer-events: none;
  background: radial-gradient(62% 100% at 50% 0, rgba(255,214,150,.42), rgba(255,170,90,.14) 45%, transparent 78%); }
.cab-shelf::after { content: ''; position: absolute; left: 0; right: 0; bottom: 13px; height: 26px; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.28)); }
.cab-shelf.s-velvet::after { display: none; }
.cab-lip { position: relative; height: 13px; flex: none; z-index: 2; margin: 0 -1px;
  background: linear-gradient(#e9c06a, #b8862f 30%, #6e4612 32%, #4a2a12 60%, #2a170a), var(--wood-h); background-blend-mode: normal, multiply;
  box-shadow: 0 1px 0 rgba(255,236,180,.5) inset, 0 6px 10px rgba(0,0,0,.55); }
.cab-tag { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); padding: 0 8px; height: 10px; border-radius: 2px; white-space: nowrap;
  font: 800 7.5px/10px Georgia, 'Times New Roman', serif; letter-spacing: .12em; text-transform: uppercase; color: #3b2306;
  background: linear-gradient(var(--brass-a), var(--brass-b) 60%, #a8741f); box-shadow: 0 1px 1px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.6); }
/* each shelf shows exactly 4 whole items (fits 390 and 430 wide with nothing clipped); more slide in by whole items,
   with brass ‹ › arrows on the shelf lip saying there is more (2026-11-25 fix: the 4th slot used to be cut by the frame) */
.cab-row { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; align-items: flex-end; gap: 2px; margin: 0 6px; padding: 12px 0 0; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.cab-row::-webkit-scrollbar { display: none; }
.cab-nav { all: unset; position: absolute; bottom: 0; z-index: 3; width: 26px; height: 13px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  font: 900 12px/1 Georgia, serif; color: #3b2306; background: linear-gradient(var(--brass-a), var(--brass-b) 60%, #a8741f); border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.6);
  transition: opacity .2s; -webkit-tap-highlight-color: transparent; }
.cab-nav::before { content: ''; position: absolute; inset: -14px -8px -8px; }
.cab-nav.prev { left: 6px; } .cab-nav.next { right: 6px; }
.cab-nav[hidden] { display: flex; opacity: 0; pointer-events: none; }
.cab-nav:focus-visible { outline: 2px solid #ffd34d; outline-offset: 2px; }
.cab-item { all: unset; box-sizing: border-box; position: relative; flex: none; cursor: pointer; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  -webkit-tap-highlight-color: transparent; }
.cab-item:focus-visible { outline: 2px solid #ffd34d; outline-offset: 2px; border-radius: 8px; }
.cab-row > .cab-item { width: calc((100% - 6px) / 4); height: 100%; }
.ci-vis { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; flex: 1; min-height: 0; }
.ci-vis > * { max-height: 100%; }
.ci-vis .ci-svg { display: flex; height: 100%; max-height: 140px; align-items: flex-end; }
.ci-vis .ci-svg svg { height: 100%; width: auto; max-width: calc(100% - 4px); filter: drop-shadow(0 6px 5px rgba(0,0,0,.55)) drop-shadow(0 -1px 6px rgba(255,200,130,.25)); }
.ci-vis .ci-img { height: 100%; max-height: 140px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,0,0,.6)); }
.ci-plate { flex: none; margin: 4px 0 3px; max-width: calc(100% - 4px); padding: 1px 5px; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 800 8px/11px Georgia, serif; color: #3b2306; background: linear-gradient(var(--brass-a), var(--brass-b) 60%, #a8741f); box-shadow: 0 1px 2px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.6); }
.cab-item.locked .ci-plate { filter: saturate(.25) brightness(.62); }
.cab-item.locked .ci-img { filter: brightness(0) drop-shadow(0 0 1px rgba(255,220,160,.35)); opacity: .55; }
/* legendary: a slow aura behind the item */
.cab-item.legend .ci-vis::before { content: ''; position: absolute; left: 50%; bottom: 12%; width: 86px; height: 86px; margin-left: -43px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255,236,160,.75), rgba(200,120,255,.45) 40%, transparent 70%); animation: cabAura 2.6s ease-in-out infinite; }
@keyframes cabAura { 0%, 100% { opacity: .65; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
.cab-item.earned:active .ci-vis { transform: translateY(-2px) scale(1.04); }
/* rare pieces on walnut plinths with a brass band; locked = dark silhouette, secret = "?" plinth */
.k-piece .ci-vis { padding-bottom: 0; }
.k-piece .ci-vis .ci-img { max-height: 118px; max-width: 96%; }
.ci-plinth { position: absolute; left: 50%; bottom: 19px; width: 70px; height: 15px; margin-left: -35px; border-radius: 50% / 40%;
  background: linear-gradient(90deg, #2c160a, #7a4526 35%, #9a5a32 50%, #5a2f17 70%, #24120a); box-shadow: 0 5px 6px rgba(0,0,0,.6); }
.ci-plinth::before { content: ''; position: absolute; left: 0; right: 0; top: -5px; height: 10px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #b0703f, #6b3a1e 70%); box-shadow: inset 0 1px 0 rgba(255,220,170,.35); }
.ci-plinth::after { content: ''; position: absolute; left: 3px; right: 3px; bottom: 3px; height: 3px; background: linear-gradient(90deg, #7c5214, var(--brass-a) 50%, #7c5214); opacity: .9; }
.k-piece .ci-vis > * { position: relative; z-index: 1; margin-bottom: -7px; }
.k-piece .ci-vis .ci-q { margin-bottom: 14px !important; }
.ci-q { display: flex; align-items: center; justify-content: center; width: 40px; height: 48px; margin-bottom: 8px !important; font: 900 30px/1 Georgia, serif; color: rgba(255,220,160,.38); text-shadow: 0 0 10px rgba(255,190,110,.35); }
/* velvet bottom shelf */
.s-velvet .cab-row.velvet { margin: 0; overflow: visible; -webkit-mask: none; mask: none; display: grid; grid-template-columns: 1.25fr 1fr .62fr; align-items: end; gap: 4px; padding: 10px 6px 0; }
.s-velvet::before { content: ''; position: absolute; left: 0; right: 0; bottom: 13px; height: 44%; z-index: 0;
  background: var(--velvet-n), linear-gradient(#1b2350, #121838 45%, #0a0e24); background-size: 160px 160px, auto; box-shadow: inset 0 8px 12px rgba(0,0,0,.55); border-top: 1px solid rgba(140,160,255,.15); }
.cab-fan { position: relative; height: 100%; min-height: 0; }
.cab-card { position: absolute; left: 50%; bottom: 14%; width: 66px; height: 93px; margin-left: -33px; transform-origin: 50% 92%; transform: rotate(var(--a)); }
.cab-card .achcard { width: 66px; padding: 3px; gap: 2px; border-radius: 7px; }
.cab-card .achcard .ac-name { font-size: 7px; padding: 1px 2px; } .cab-card .achcard .ac-tier { font-size: 5px; }
.cab-card.ghost { display: flex; align-items: center; justify-content: center; box-sizing: border-box; border-radius: 7px; border: 1px solid rgba(255,220,160,.22); background: linear-gradient(160deg, rgba(60,40,22,.9), rgba(22,13,6,.92)); box-shadow: 0 4px 8px rgba(0,0,0,.5), inset 0 0 0 4px rgba(0,0,0,.25); color: rgba(255,220,160,.32); font: 900 24px Georgia, serif; }
.cab-acrylic { position: absolute; left: 50%; bottom: 3%; width: 84%; margin-left: -42%; height: 18px; border-radius: 3px; z-index: 20; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.38), rgba(200,230,255,.14) 40%, rgba(255,255,255,.22)); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 6px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.35); }
.cab-cushion { position: relative; height: 100%; min-height: 0; }
.cc-pillow { position: absolute; left: 0; right: 0; bottom: 8%; height: 36%; max-height: 66px; border-radius: 38% / 50%;
  background: radial-gradient(120% 90% at 40% 30%, #3b4aa0, #1b2560 55%, #0d1336); box-shadow: inset 0 -6px 10px rgba(0,0,0,.5), 0 6px 8px rgba(0,0,0,.55), inset 0 0 0 1.5px rgba(217,164,65,.7); }
.cc-pillow::before, .cc-pillow::after { content: ''; position: absolute; bottom: -6px; width: 6px; height: 12px; border-radius: 0 0 3px 3px; background: linear-gradient(#f3d27c, #b07a22); }
.cc-pillow::before { left: 4px; bottom: 2px; transform: rotate(38deg); } .cc-pillow::after { right: 4px; bottom: 2px; transform: rotate(-38deg); }
.cc-pins { position: absolute; left: 5%; right: 5%; bottom: calc(8% + 4px); height: calc(34% - 4px); max-height: 58px; display: grid; grid-template-columns: repeat(4, 1fr); align-content: center; align-items: center; justify-items: center; row-gap: 0; }
.cab-pin { width: 25px; height: 25px; justify-content: center; } .cab-pin .achpin img, .cab-pin svg { width: 25px; height: 25px; }
.cab-cushion.empty .cc-pins::after { content: 'no pins yet'; grid-column: 1 / -1; align-self: center; font: 700 9px Georgia, serif; color: rgba(255,230,180,.45); letter-spacing: .08em; }
.cc-more { position: absolute; right: 4%; top: 18%; font: 900 10px system-ui, sans-serif; color: #ffe9a6; background: rgba(0,0,0,.5); border-radius: 99px; padding: 2px 6px; }
.cab-coins { height: 100%; justify-content: flex-end; padding-bottom: 10%; gap: 2px; }
.cn-stack { position: relative; display: block; width: 34px; height: calc(12px + var(--n, 6) * 5px); }
.cn-stack i { position: absolute; left: 0; bottom: calc(var(--i) * 5px); width: 34px; height: 11px; border-radius: 50%;
  background: linear-gradient(#fff1a8, #e3a521 45%, #8a5a10); box-shadow: 0 1px 0 #5c3a08, inset 0 1px 0 rgba(255,255,255,.7); }
.cab-coins .cn-stack { height: 52px; width: 40px; } .cab-coins .cn-stack i { width: 40px; height: 13px; bottom: calc(var(--i) * 6px); }
.cab-coins.locked .cn-stack i { background: linear-gradient(#3a2a12, #1a1208); box-shadow: 0 1px 0 #000, inset 0 0 0 1px rgba(255,220,160,.18); opacity: .8; }
.cn-n { font: 900 11px/1 Georgia, serif; color: #ffe9a6; text-shadow: 0 1px 2px #000; }
.cn-stack.big { width: 60px; height: 64px; } .cn-stack.big i { width: 60px; height: 18px; bottom: calc(var(--i) * 9px); }
/* glass doors: gold trim, reflections; swing open on entry (hinged on the outer edges), then stay ajar at the sides */
.cab-door { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 5; pointer-events: none; box-sizing: border-box;
  border: 5px solid transparent; border-image: linear-gradient(160deg, #fff0b8, #c99a3a 30%, #7c5214 60%, #e9c06a) 1;
  background: linear-gradient(115deg, rgba(255,255,255,.18), rgba(255,255,255,.03) 30%, rgba(255,255,255,0) 55%, rgba(255,255,255,.10) 70%, rgba(255,255,255,.02)), rgba(160,190,220,.06);
  backface-visibility: visible; transition: none; }
.cab-door i { position: absolute; top: 46%; width: 4px; height: 26px; border-radius: 2px; background: linear-gradient(90deg, #7c5214, #fff0b8, #b8862f); }
.cab-door.l { left: 0; transform-origin: 0 50%; transform: rotateY(-104deg); animation: doorL 1.05s .12s cubic-bezier(.3,.7,.2,1) both; } .cab-door.l i { right: 5px; }
.cab-door.r { right: 0; transform-origin: 100% 50%; transform: rotateY(104deg); animation: doorR 1.05s .12s cubic-bezier(.3,.7,.2,1) both; } .cab-door.r i { left: 5px; }
@keyframes doorL { from { transform: rotateY(0); } to { transform: rotateY(-104deg); } }
@keyframes doorR { from { transform: rotateY(0); } to { transform: rotateY(104deg); } }
/* reduced motion: no swing, no aura pulse; the cabinet fades in with its doors already ajar */
.tcase.reduced .cab-door, .cab.reduced .cab-door { animation: none; }
.tcase.reduced .cab-item.legend .ci-vis::before, .cab.reduced .cab-item.legend .ci-vis::before { animation: none; opacity: .9; }
.tcase.reduced .cab, .cab.reduced { animation: cabIn .3s ease-out both; }
.cab-base { flex: none; margin: 0 2px; padding: 8px 10px 9px; display: flex; justify-content: center; position: relative; z-index: 3;
  background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.55)), var(--wood-h); background-size: auto, 300px 300px; border-top: 3px solid #b8862f; border-radius: 0 0 4px 4px; box-shadow: 0 10px 20px rgba(0,0,0,.6); }
.cab-plaque { min-width: 62%; max-width: 92%; padding: 5px 16px 6px; border-radius: 4px; text-align: center; color: #3b2306;
  background: linear-gradient(170deg, #fff6cf, #e2b552 38%, #b8862f 62%, #f0cf7a); box-shadow: 0 2px 4px rgba(0,0,0,.6), inset 0 0 0 1px rgba(124,82,20,.7), inset 0 0 0 3px rgba(255,240,190,.45), inset 0 0 0 4px rgba(124,82,20,.5); }
.cab-plaque b { display: block; font: 900 13px/1.15 Georgia, 'Times New Roman', serif; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(255,250,220,.6); }
.cab-plaque small { display: block; font: 700 10px/1.2 Georgia, serif; letter-spacing: .06em; opacity: .85; }
.cab-actions { flex: none; display: flex; justify-content: center; padding: 10px 0 0; }
.cab-actions .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
.cab-emptynote { position: absolute; left: 12%; right: 12%; top: 38%; z-index: 4; text-align: center; padding: 8px 10px; border-radius: 10px; background: rgba(12,7,3,.78); border: 1px solid rgba(255,211,77,.4); font: 600 13px/1.35 system-ui, sans-serif; color: #fdf6e3; }
.cab-gate { margin: auto; padding: 18px; max-width: 280px; text-align: center; color: #fdf6e3; font: 600 14px/1.45 system-ui, sans-serif; }
.cab-gate img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.cab.gated .cab-inner { display: flex; align-items: center; justify-content: center; }
/* detail card */
.cab-detail { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(8,5,2,.72); animation: cabIn .2s ease-out both; }
.cd-card { position: relative; width: 100%; max-width: 330px; padding: 18px 16px 14px; border-radius: 16px; text-align: center; color: #fdf6e3;
  background: radial-gradient(100% 60% at 50% 0, rgba(255,200,120,.22), transparent 70%), linear-gradient(#2a180b, #160d06); border: 1.5px solid #c99a3a; box-shadow: 0 20px 50px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,236,180,.15); }
.cd-card.legend { border-color: #c07bff; box-shadow: 0 20px 50px rgba(0,0,0,.7), 0 0 30px rgba(190,120,255,.45); }
.cd-vis { height: 150px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 8px; }
.cd-vis .ci-img { max-height: 150px; max-width: 170px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0,0,0,.6)); }
.cd-vis .ci-svg svg { height: 140px; width: auto; filter: drop-shadow(0 10px 10px rgba(0,0,0,.6)); }
.cd-vis .achcard { width: 104px; } .cd-vis .achpin img, .cd-vis .achpin svg { width: 110px; height: 110px; }
.cd-vis .ci-q { font-size: 70px; height: 120px; width: 90px; }
.cd-card.locked .cd-vis .ci-img { filter: brightness(0) drop-shadow(0 0 2px rgba(255,220,160,.5)); opacity: .6; }
.cd-kind { font: 800 10px/1 system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #ffd34d; opacity: .9; }
.cd-name { margin: 6px 0 6px; font: 900 21px/1.15 Georgia, 'Times New Roman', serif; color: #fff3cf; }
.cd-ach { margin-top: 8px; font: 700 12px/1.3 system-ui, sans-serif; color: #ffe9a6; }
.cd-how { margin: 6px 0; font: 500 13.5px/1.4 system-ui, sans-serif; opacity: .9; }
.cd-when { font: 800 12px/1.2 system-ui, sans-serif; color: #b2f2bb; }
.cd-card.locked .cd-when { color: rgba(253,246,227,.6); }
.cd-close { margin-top: 12px; min-height: 42px; }
/* player lists: tap a human to look at their case */
.has-case { cursor: pointer; }
.case-ic { display: inline-flex; vertical-align: -2px; margin-left: 4px; color: #c99a3a; opacity: .9; }
#players .nm.has-case { text-decoration: underline dotted rgba(201,154,58,.7); text-underline-offset: 3px; }
.es-plate.has-case { cursor: pointer; }

.k-trophy .ci-img[src*="first_win_cup"] { -webkit-mask: radial-gradient(ellipse 52% 50% at 50% 53%, #000 58%, transparent 76%); mask: radial-gradient(ellipse 52% 50% at 50% 53%, #000 58%, transparent 76%); }
.cd-vis .ci-img[src*="first_win_cup"] { -webkit-mask: radial-gradient(ellipse 52% 50% at 50% 53%, #000 58%, transparent 76%); mask: radial-gradient(ellipse 52% 50% at 50% 53%, #000 58%, transparent 76%); }

/* No-pill sweep (lockedtitle-1127): Trophy Case counters, category filters, the LEGENDARY kicker and the +N badge are chamfered plates */
.tc-chips span, .tc-cat, .ach-legend .al-kick, .cc-more { border-radius: 0;
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); }
.tc-cat { border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.ach-legend .al-kick { clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%, 9px 50%); padding-left: 20px; padding-right: 20px; }

/* celebrate-1129: struck-brass & enamel symbol faces (art/sym/*_v1129.svg) on the category filters and the game-over trophy recap.
   The filters grow to a 44 px tap target; the recap lists each trophy as symbol + name. */
.tc-cat { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px 0 8px; }
.tc-cat[data-cat="all"] { padding: 0 14px; }
.tc-cat .tc-sym { width: 22px; height: 22px; flex: none; border-radius: 50%; }
.es-trophies .est-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.es-trophies .est-list { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.es-trophies .est-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.es-trophies .est-sym { width: 20px; height: 20px; flex: none; border-radius: 50%; align-self: center; }
