/* The Trophy Case (docs/adr/0088): medals, trophies and their shelves, on
   the account page, each game's shelf page and its landing row
   (awards/templates/awards/, each of which links this sheet). The layout
   and ink are the look's own tokens, like the house kit's; the awards' own
   palette is declared here once and is the same in every game: the metals
   (awards/art.py draws them), the New red, the wooden shelves and the box. */
:root {
  --tc-new: #c2302b;
  --tc-gold: #d9a935;
  --tc-gold-pale: #fbe7a1;
  --tc-gold-ink: #3b2a00;
  --tc-glow: rgba(255, 214, 120, .85);
  --tc-wood: #a77d52;
  --tc-wood-dark: #7d5634;
  --tc-wood-shade: rgba(40, 30, 10, .6);
  --tc-case-shade: rgba(60, 48, 20, .55);
  --tc-near: #fff7e0;
  --tc-near-edge: #ecd9a2;
  --tc-near-ink: #22262b;
  --tc-near-ring: rgba(217, 169, 53, .25);
  --tc-box-paper: #fffaf0;
  --tc-box-paper-2: #efe6d2;
  --tc-box-ink: #22262b;
  --tc-box-soft: #5b5f66;
  --tc-box: #7a4a26;
  --tc-box-glow: rgba(255, 226, 140, .95);
  --tc-box-paper-3: #e3d7bd;
  /* the walnut case (day one) */
  --tc-walnut-1: #3b2414;
  --tc-walnut-2: #5a361d;
  --tc-walnut-3: #7a4a26;
  --tc-walnut-hi: #9b6236;
  --tc-brass-1: #8a6417;
  --tc-brass-2: #c9982e;
  --tc-brass-3: #f3d57a;
  --tc-brass-ink: #3d2b06;
  --tc-brass-line: rgba(243, 213, 122, .45);
  --tc-felt: #1d4a3c;
  --tc-felt-2: #163b30;
  --tc-wc-shadow: rgba(40, 22, 8, .55);
  --tc-wc-ray-0: rgba(255, 214, 130, 0);
  --tc-wc-ray: rgba(255, 214, 130, .45);
  --tc-wc-ray-dim: rgba(255, 214, 130, .15);
  --tc-spot-light: rgba(70, 52, 12, .72);
  --tc-spot-dark: rgba(10, 12, 16, .92);
}
:where(.tc, .aw-sheet, .aw-tip) {
  --tc-ink: var(--house-ink, var(--ink));
  --tc-soft: var(--house-soft, var(--soft));
  --tc-panel: var(--panel, var(--house-surface, color-mix(in srgb, var(--tc-ink) 4%, transparent)));
  --tc-edge: var(--house-line, color-mix(in srgb, var(--tc-ink) 16%, transparent));
}
.tc { color: var(--tc-ink); }
.tc .lead a, .tc-head a, .tc-gname, .tc .kicker a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.tc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1, 4px) var(--s3, 16px); margin: 0 0 var(--s2, 8px); }
.tc-head h2 { margin: 0; }
.tc-head > a { margin-left: auto; font-size: var(--t-note, 14px); }
.tc-count { color: var(--tc-soft); font-weight: 600; }
.tc-new { background: var(--tc-new); color: #fff; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }

/* one award: its picture and one short caption, in its own equal slot */
.aw { position: relative; display: grid; justify-items: center; align-content: end; gap: 4px; min-width: 44px; padding: 6px 4px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.aw:focus-visible { outline: 3px solid var(--house-focus, var(--focus, #e2a12f)); outline-offset: 2px; }
.aw-art { display: block; overflow: visible; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.aw:hover .aw-art, .aw.aw-on .aw-art { transform: translateY(-3px) rotate(-2deg); }
.aw-out { color: var(--tc-soft); }
.aw-cap { font-size: 12px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.aw-sub { font-size: 11.5px; line-height: 1.25; opacity: .8; max-width: 15ch; }
.aw-tag { position: absolute; top: 0; right: -2px; z-index: 2; padding: 2px 6px; border-radius: 999px; background: var(--tc-new); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.aw-dot { position: absolute; top: 2px; right: 0; z-index: 2; width: 9px; height: 9px; border-radius: 50%; background: var(--tc-new); box-shadow: 0 0 0 2px #fff; }
.aw-new .aw-art { filter: drop-shadow(0 0 10px var(--tc-glow)); }
.aw-shine { transform: translateX(-90px); transform-box: view-box; }
.aw-new .aw-shine { animation: aw-shine 2.8s ease-in-out infinite; }
.aw-rare .aw-shine { animation: aw-shine 4s ease-in-out infinite; }
@keyframes aw-shine { 0%, 60% { transform: translateX(-90px); } 100% { transform: translateX(110px); } }

/* the case: a cabinet of shelves, lit from above; each shelf a grid of equal slots */
.tc-case { padding: 4px 22px 16px; border-radius: 14px; background: var(--tc-panel); box-shadow: inset 0 0 0 1px var(--tc-edge), 0 12px 26px -18px var(--tc-case-shade); }
/* (each ledge at least room for three awards side by side: fewer ledges to a row where it's narrow) */
.tc-ledges { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 26px; }
.tc-wide { grid-column: 1 / -1; }
.tc-ledge { display: grid; gap: 6px; padding-top: 16px; min-width: 0; }
.tc-ledge-name { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent, var(--tc-soft)); }
.tc-row { position: relative; display: grid; grid-template-columns: repeat(max(var(--n, 3), 3), minmax(0, 1fr)); gap: 4px 8px; justify-items: center; align-items: end; padding: 8px 0 14px; }
.tc-wide .tc-row { grid-template-columns: repeat(max(var(--n, 3), 3), minmax(0, 120px)); justify-content: start; column-gap: 26px; }
.tc-row::after { content: ""; position: absolute; left: -8px; right: -8px; bottom: 0; height: 9px; border-radius: 3px; background: linear-gradient(var(--tc-wood), var(--tc-wood-dark)); box-shadow: 0 6px 10px -6px var(--tc-wood-shade); }
.tc-row.tc-site { grid-template-columns: repeat(max(var(--n, 6), 6), minmax(0, 1fr)); }

/* a game's shelf page: the case, and the back of the card beside it */
.tc-shelf { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; margin-top: var(--s3, 16px); }
.tc-side:empty { display: none; }

/* the back of a card */
.aw-back { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: var(--house-surface, var(--sheet, var(--paper-2, #fff))); color: var(--house-ink, var(--ink)); box-shadow: inset 0 0 0 1px var(--tc-edge), 0 14px 28px -20px var(--tc-case-shade); text-align: left; }
.aw-sheet .aw-back { padding: 0; box-shadow: none; background: none; }
/* The hover card: the house's tooltip (tip.js, .house-tip in house.css) is
   the panel, so the back inside it is only its words and picture, small
   and still. */
.house-tip.aw-tip { width: min(280px, calc(100vw - 16px)); }
.aw-tip .aw-back { padding: 4px 2px; box-shadow: none; background: none; border-radius: 0; }
.aw-tip .aw-back-top > .aw-art { animation: none; transform: scale(.8); margin: -6px 0; }
/* its picture big and centered over its name (playtest 1), arriving with a small pop */
.aw-back-top { display: grid; justify-items: center; gap: 8px; color: var(--tc-soft); text-align: center; }
.aw-back-top > .aw-art { filter: drop-shadow(0 10px 14px var(--tc-case-shade)); animation: tc-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.aw-back-top h3 { text-wrap: balance; }
.tc-stage-back .aw-back-top > .aw-art { display: none; } /* (the stage draws it big already) */
.aw-back h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; color: var(--house-ink, var(--ink)); }
.aw-kind { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.aw-back dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 14px; }
.aw-back dt { color: var(--tc-soft); font-weight: 600; }
.aw-back dd { margin: 0; }
.aw-back > p { margin: 0; }
.aw-rarity { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.aw-meter { flex: 1; height: 6px; overflow: hidden; border-radius: 99px; background: color-mix(in srgb, var(--tc-ink) 12%, transparent); }
.aw-meter i { display: block; height: 100%; background: var(--tc-gold); }
.aw-progress .aw-meter i { background: var(--tc-soft); }
.aw-rare-chip { padding: 2px 7px; border-radius: 999px; background: linear-gradient(90deg, var(--tc-gold-pale), var(--tc-gold)); color: var(--tc-gold-ink); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

/* the account page: almost there, and a row for every game played */
.tc-account { margin: 0 0 var(--s5, 40px); }
.tc-near { display: flex; align-items: center; gap: 10px; margin: var(--s3, 16px) 0 0; padding: 10px 14px; border: 1px solid var(--tc-near-edge); border-radius: 10px; background: var(--tc-near); color: var(--tc-near-ink); font-weight: 600; }
.tc-near-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--tc-gold); box-shadow: 0 0 0 4px var(--tc-near-ring); }
.tc-by { margin: var(--s4, 24px) 0 var(--s2, 8px); }
/* each game's shelf in the case (playtest 1): a ledge each, two to a row where there's room, any number of games */
.tc-case .tc-by { margin: 22px 0 6px; padding-top: 14px; border-top: 1px solid var(--tc-edge); }
.tc-shelves { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px 26px; }
.tc-gshelf { display: grid; gap: 6px; min-width: 0; }
.tc-ghead { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.tc-gname { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 800; text-decoration: none; }
.tc-gname:hover span:last-child, .tc-gname:focus-visible span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.tc-tile { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--tile); color: #fff; font-family: var(--house-display, var(--display)); font-size: 17px; }
.tc-gcount { margin-left: auto; color: var(--tc-soft); font-size: 13px; font-weight: 600; }
.tc-gledge { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 14px; padding: 4px 4px 14px; }
.tc-gledge::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; border-radius: 3px; background: linear-gradient(var(--tc-wood), var(--tc-wood-dark)); box-shadow: 0 6px 10px -6px var(--tc-wood-shade); }
.tc-group { display: flex; align-items: flex-end; gap: 0; }
.tc-group .aw { padding: 4px 2px; }
.tc-minis { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px; min-width: 0; }
.tc-minis .aw { min-width: 30px; padding: 2px; }

/* a game's landing row */
/* the row is the way in to the game's shelf (playtest 1): one link, lifting a little to the pointer, with a chevron */
.tc-row-link { position: relative; display: grid; gap: 8px; padding: 2px 40px 2px 0; color: inherit; text-decoration: none; border-radius: 10px; }
/* (the card draws the ring, just inside its own edge: round the link inside it, the card's uneven padding left it off the card's border; David, 2026-11-21, #36) */
.tc-row-link:focus-visible { outline: none; }
.tc-landing:has(.tc-row-link:focus-visible) { outline: 3px solid var(--house-focus, var(--focus, currentColor)); outline-offset: -3px; }
.tc-row-go { position: absolute; right: 0; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--tc-soft); transition: translate .2s ease, color .2s ease; }
.tc-landing { transition: transform .2s ease, box-shadow .2s ease; }
.tc-landing:hover, .tc-landing:has(.tc-row-link:focus-visible) { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--tc-edge), 0 12px 24px -16px var(--tc-case-shade); }
.tc-landing:hover .tc-row-go { translate: 4px -50%; color: var(--tc-ink); }
.tc-landing:hover .aw-art { transform: translateY(-3px) rotate(-2deg); }
.tc-landing { display: grid; gap: 8px; width: 100%; margin: var(--s4, 24px) 0 0; padding: 14px 16px; border-radius: 14px; background: var(--tc-panel); box-shadow: inset 0 0 0 1px var(--tc-edge); text-align: left; }
.tc-landing .tc-head { margin: 0; }
/* (a section of the start screen, as the About band under it is: the Heading role, in the look's display face) */
.tc-landing .tc-head h2 { font-family: var(--house-display, var(--display)); font-weight: var(--house-display-weight, var(--display-weight, 400)); font-size: var(--t-heading, 20px); line-height: var(--lh-heading, 1.25); color: inherit; letter-spacing: 0; text-transform: none; }
.tc-items { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 16px; }
.tc-next { display: flex; align-items: center; gap: 10px; margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--tc-edge); font-size: 13.5px; font-weight: 600; }
.tc-first { margin: 0; color: var(--tc-soft); font-size: var(--t-note, 14px); }
.house-start-more { width: 100%; }

/* a player's public page (call 9) */
.tc-own-note { margin: 0 0 var(--s3, 16px); padding: 10px 14px; border-radius: 10px; background: var(--tc-panel); box-shadow: inset 0 0 0 1px var(--tc-edge); font-size: var(--t-note, 14px); }
.tc-prof { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: var(--s4, 24px); }
.tc-prof h1 { margin: 0; }
.tc-prof .lead { margin: 0; }
.tc-avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tc-box); color: #fff; font-family: var(--house-display, var(--display)); font-size: 30px; }
.tc-public h2 { margin: var(--s4, 24px) 0 var(--s2, 8px); }
.tc-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tc-showcase li { display: grid; justify-items: center; gap: 4px; padding: 14px 10px; border-radius: 14px; background: var(--tc-panel); box-shadow: inset 0 0 0 1px var(--tc-edge); text-align: center; }
.tc-showcase .aw-cap { font-size: 14px; white-space: normal; }
.tc-show-rare { color: var(--tc-soft); font-size: 12.5px; font-weight: 600; }
.tc-byg { display: grid; margin: 0; padding: 0; list-style: none; }
.tc-byg li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--tc-edge); }
.tc-rats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tc-rats li { padding: 4px 12px; border-radius: 999px; background: var(--tc-panel); box-shadow: inset 0 0 0 1px var(--tc-edge); font-weight: 600; font-size: 14px; }

/* day one: the walnut case opens (David's pick, playtest 1). A presentation
   case in walnut with a brass inlay and name plate, lined in green felt: the
   clasp flips, the lid swings back in depth, light fans up, and the awards
   rise one at a time onto a lit walnut shelf. About seven seconds; the
   whole screen composed, with real room above the title. trophies.js
   (openBox) runs the timeline; under reduced motion it's the last frame. */
.tc-unbox { position: fixed; inset: 0; z-index: 60; display: grid; overflow-y: auto; background: radial-gradient(ellipse 80% 70% at 50% 62%, var(--tc-box-paper), var(--tc-box-paper-2) 60%, var(--tc-box-paper-3) 100%); color: var(--tc-box-ink);
  padding: calc(56px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); }
.tc-unbox[hidden] { display: none; }
.tc-unboxing { overflow: hidden; }
.tc-unbox-in { display: grid; grid-template-rows: auto minmax(300px, 1fr) auto; justify-items: center; gap: 24px; width: min(880px, 100%); min-height: 100%; margin: 0 auto; text-align: center; }
.tc-unbox-words { display: grid; gap: 10px; justify-items: center; }
.tc-unbox h3 { margin: 0; max-width: 16ch; font-family: var(--house-display, var(--display, Georgia, serif)); font-weight: 400; font-size: 42px; line-height: 1.08; text-wrap: balance; }
.tc-unbox p { max-width: 40ch; margin: 0; color: var(--tc-box-soft); font-size: 17px; }
.tc-unbox p b { color: var(--tc-box-ink); font-variant-numeric: tabular-nums; }
.tc-unbox-go { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.tc-unbox-go.tc-in { opacity: 1; transform: none; }
.tc-unbox-go .btn { min-height: 48px; padding-inline: 26px; font-size: 16px; }

/* the scene: the shelf above, the case below it, light between */
.tc-wc { position: relative; align-self: center; width: 100%; height: 300px; perspective: 900px; perspective-origin: 50% 0%; }
.tc-wc-floor { position: absolute; left: 50%; bottom: -8px; width: 440px; max-width: 90%; height: 40px; translate: -50% 0; background: radial-gradient(ellipse at center, var(--tc-wc-shadow), transparent 70%); filter: blur(4px); }
.tc-wc-box { position: absolute; left: 50%; bottom: 10px; width: 380px; height: 128px; translate: -50% 0; transform-style: preserve-3d; }
.tc-wc-front { position: absolute; inset: 0; border-radius: 6px 6px 12px 12px;
  background:
    repeating-linear-gradient(92deg, rgba(255, 255, 255, .035) 0 3px, transparent 3px 11px),
    repeating-linear-gradient(88deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, var(--tc-walnut-hi) 0%, var(--tc-walnut-3) 18%, var(--tc-walnut-2) 60%, var(--tc-walnut-1) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), inset 0 -10px 18px rgba(0, 0, 0, .35), 0 26px 40px -18px var(--tc-wc-shadow); }
.tc-wc-front::after { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; bottom: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--tc-brass-line), inset 0 0 0 4px rgba(0, 0, 0, .12); }
.tc-wc-plate { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; max-width: 86%; overflow: hidden; text-overflow: ellipsis; padding: 7px 18px; border-radius: 3px; background: linear-gradient(180deg, var(--tc-brass-3), var(--tc-brass-2) 55%, var(--tc-brass-1)); color: var(--tc-brass-ink); font: 400 16px var(--house-display, var(--display, Georgia, serif)); letter-spacing: .02em; white-space: nowrap; box-shadow: 0 2px 3px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.tc-wc-inside { position: absolute; left: 10px; right: 10px; top: -46px; height: 56px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--tc-felt-2), var(--tc-felt)); transform: rotateX(62deg); transform-origin: 50% 100%; box-shadow: inset 0 10px 18px rgba(0, 0, 0, .55); }
.tc-wc-lid { position: absolute; left: -6px; right: -6px; bottom: 100%; height: 50px; transform-origin: 50% 100%; transform: rotateX(78deg); border-radius: 8px 8px 3px 3px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 4px, transparent 4px 13px), linear-gradient(180deg, var(--tc-walnut-hi), var(--tc-walnut-3) 40%, var(--tc-walnut-2));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 -2px 0 rgba(0, 0, 0, .25); }
.tc-wc-lid::after { content: ""; position: absolute; inset: 9px 18px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--tc-brass-line); }
.tc-wc-clasp { position: absolute; left: 50%; top: -9px; z-index: 3; width: 34px; height: 22px; translate: -50% 0; border-radius: 4px; background: linear-gradient(180deg, var(--tc-brass-3), var(--tc-brass-2) 60%, var(--tc-brass-1)); box-shadow: 0 2px 3px rgba(0, 0, 0, .4); transform-origin: 50% 0; }
.tc-wc-clasp::after { content: ""; position: absolute; left: 13px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--tc-brass-ink); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5); }
.tc-wc-light { position: absolute; left: 50%; bottom: 128px; width: 520px; max-width: 120%; height: 300px; translate: -50% 0; opacity: 0; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 100%, transparent 0deg 140deg, var(--tc-wc-ray-0) 140deg, var(--tc-wc-ray) 162deg, var(--tc-wc-ray-dim) 172deg, var(--tc-wc-ray) 180deg, var(--tc-wc-ray-dim) 188deg, var(--tc-wc-ray) 198deg, transparent 220deg 360deg);
  -webkit-mask: linear-gradient(to top, #000 0%, transparent 92%); mask: linear-gradient(to top, #000 0%, transparent 92%); filter: blur(6px); }
.tc-wc-halo { position: absolute; left: 50%; bottom: 104px; width: 360px; max-width: 80%; height: 90px; translate: -50% 0; border-radius: 50%; background: radial-gradient(var(--tc-box-glow), transparent 70%); opacity: 0; filter: blur(8px); }
.tc-wc-shelf { position: absolute; left: 50%; top: 0; translate: -50% 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 8px 4px; width: 100%; padding: 0 4px 14px; }
.tc-wc-shelf::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 0; height: 9px; border-radius: 3px; background: linear-gradient(var(--tc-walnut-hi), var(--tc-walnut-2)); box-shadow: 0 8px 12px -8px var(--tc-wc-shadow); opacity: 0; transition: opacity .6s ease; }
.tc-wc-shelf.tc-in::after { opacity: 1; }
.tc-wc-aw { display: block; opacity: 0; }
.tc-wc-aw > svg { display: block; }
.tc-wc-more { align-self: center; padding: 0 6px; color: var(--tc-box-soft); font-size: 14px; font-weight: 700; }

/* the timeline (openBox adds .tc-play; each award's delay is set as it's dealt) */
.tc-play .tc-wc-box { animation: tc-wc-arrive 1s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes tc-wc-arrive { from { transform: translateY(40px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.tc-play .tc-wc-clasp { animation: tc-wc-clasp .5s 1.3s cubic-bezier(.4, 1.8, .5, 1) both; }
@keyframes tc-wc-clasp { to { transform: rotateX(-160deg); } }
.tc-play .tc-wc-lid { animation: tc-wc-lid 1.6s 1.8s cubic-bezier(.25, 1.1, .35, 1) both; }
@keyframes tc-wc-lid { 0% { transform: rotateX(78deg); } 12% { transform: rotateX(72deg); } 100% { transform: rotateX(-14deg); } }
.tc-play .tc-wc-light { animation: tc-wc-light 2.2s 2.1s ease-out both; }
@keyframes tc-wc-light { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: .8; } }
.tc-play .tc-wc-halo { animation: tc-wc-halo 1.6s 2s ease-out both; }
@keyframes tc-wc-halo { to { opacity: .95; } }
.tc-play .tc-wc-aw { animation: tc-wc-rise 1s cubic-bezier(.2, 1.25, .4, 1) both; }
@keyframes tc-wc-rise { 0% { opacity: 0; transform: translateY(190px) scale(.5); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }
/* the last frame: open, lit, everything on the shelf */
.tc-still .tc-wc-clasp { transform: rotateX(-160deg); }
.tc-still .tc-wc-lid { transform: rotateX(-14deg); }
.tc-still .tc-wc-light { opacity: .8; }
.tc-still .tc-wc-halo { opacity: .95; }
.tc-still .tc-wc-aw { opacity: 1; }

@media (max-width: 560px) {
  .tc-unbox { padding-top: calc(48px + env(safe-area-inset-top, 0px)); padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
  .tc-unbox-in { grid-template-rows: auto minmax(360px, 1fr) auto; gap: 18px; }
  .tc-unbox h3 { font-size: 32px; }
  .tc-unbox p { font-size: 15px; }
  .tc-wc { height: 360px; }
  .tc-wc-box { width: 270px; height: 112px; }
  .tc-wc-lid { height: 44px; }
  .tc-wc-inside { top: -34px; height: 42px; }
  .tc-wc-plate { font-size: 13px; bottom: 22px; padding: 5px 12px; }
  .tc-wc-light { bottom: 112px; width: 360px; height: 260px; }
  .tc-wc-halo { bottom: 92px; width: 240px; }
  .tc-wc-shelf { gap: 6px 2px; }
  .tc-wc-aw > svg { width: 36px; height: auto; }
  .tc-unbox-go, .tc-unbox-go .btn { width: 100%; }
}
.tc-pop-in { animation: tc-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes tc-pop { from { transform: translateY(30px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* winning one: the stage over the result sheet (call 13), the spotlight, the award dropping in on its ribbon or rising onto its plinth */
/* (taller than the screen, it scrolls inside: its words start at the top, centered only while they fit
   (margin: auto, not place-items), and the spotlight stays on the screen, not on its first screenful,
   so the result sheet under it never shows through; David's small iPhone, 2026-11-21) */
.tc-stage { position: fixed; inset: 0; z-index: 72; display: grid; overflow-y: auto; overscroll-behavior: contain; padding: 16px; color: #fff; }
.tc-spot { position: fixed; inset: 0; background: radial-gradient(ellipse 46% 52% at 50% 38%, var(--tc-spot-light), var(--tc-spot-dark) 70%); }
.tc-stage .house-cheer { z-index: 1; }
/* (its ✕, as a sheet's: the stage's corner, over the spotlight, in the stage's white) */
.tc-stage-x { position: fixed; top: max(12px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); z-index: 3; color: #fff; }
.tc-stage-in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; width: min(640px, 100%); margin: auto; padding: 20px; text-align: center; }
.tc-stage-h { margin: 0; font-family: var(--house-display, var(--display, Georgia, serif)); font-weight: 400; font-size: 34px; line-height: 1.1; text-wrap: balance; text-shadow: 0 2px 14px var(--tc-spot-dark); color: #fff; }
.tc-says, .tc-hint { max-width: 46ch; margin: 0; font-size: 16px; opacity: .92; }
.tc-hint { font-size: 14px; }
.tc-stage-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.tc-stage-in > .tc-stage-acts > a, .tc-stage-in > .tc-stage-acts > button, .tc-stage-more > .tc-stage-acts > a, .tc-stage-more > .tc-stage-acts > button { min-height: 44px; border: 1.5px solid #fff; background: transparent; color: #fff; }
.tc-stage-in > .tc-stage-acts > [data-weight="primary"], .tc-stage-more > .tc-stage-acts > [data-weight="primary"] { background: #fff; color: var(--tc-box-ink); }
.tc-fan { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 6px; }
.tc-fan .aw { color: #fff; }
.tc-fan .aw.aw-on { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .65); }
.tc-stage-back { width: min(460px, 100%); }
.tc-stage-backs { display: grid; width: min(460px, 100%); }
.tc-stage-backs > .tc-stage-back { grid-area: 1 / 1; width: 100%; align-self: start; }
.tc-stage-backs > .tc-ghost { visibility: hidden; }
.tc-stage-back .aw-back, .tc-stage-back .aw-back h3 { color: var(--tc-box-ink); background: var(--tc-box-paper); }
.tc-stage-back .aw-back h3 { background: none; }
.tc-stage-more { display: grid; justify-items: center; gap: 14px; width: 100%; }
.tc-invite { display: grid; gap: 8px; width: min(480px, 100%); padding: 16px 18px; border-radius: 16px; background: var(--tc-box-paper); color: var(--tc-box-ink); text-align: left; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .7); }
.tc-invite b { font-size: 17px; }
.tc-invite p { margin: 0; font-size: 14.5px; color: var(--tc-box-soft); }
.tc-invite .tc-stage-acts { justify-content: flex-start; }
/* (on the invite's paper, its buttons in the paper's own ink, whatever the game's felt dresses its buttons in;
   the focus ring is the house's, inside, in that ink) */
.tc-invite .tc-stage-acts > :is(a, button) { min-height: 44px; border: 1.5px solid var(--tc-box-ink); background: transparent; color: var(--tc-box-ink); }
.tc-invite .tc-stage-acts > [data-weight="primary"] { background: var(--tc-box-ink); color: var(--tc-box-paper); }
.tc-invite .tc-stage-acts > :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.tc-drop { animation: tc-drop 1.15s cubic-bezier(.25, 1.5, .45, 1) both; transform-origin: 50% 0; }
@keyframes tc-drop { 0% { transform: translateY(-260px) rotate(-14deg); opacity: 0; } 45% { opacity: 1; } 62% { transform: translateY(10px) rotate(7deg); } 80% { transform: translateY(-3px) rotate(-3deg); } 100% { transform: none; } }
.tc-rise { animation: tc-rise 1s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes tc-rise { 0% { transform: translateY(120px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes tc-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 760px) {
  .tc-shelf { grid-template-columns: minmax(0, 1fr); }
  .tc-shelf .tc-side { display: none; }
  .tc-ledges { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tc-case { padding: 4px 12px 14px; }
  .tc-row.tc-site { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .tc-head > a { margin-left: 0; }
  .tc-showcase { gap: 6px; }
  .tc-showcase li { padding: 10px 4px; }
  .tc-byg li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  /* (a game's row: its name and count over a full row of medals, its shelf under them) */
  .tc-next { width: 100%; margin-left: 0; padding-left: 0; border-left: 0; }
  .tc-stage-h { font-size: 27px; }
  .tc-says { font-size: 15px; }
  .tc-stage-acts { display: grid; width: 100%; }
}
/* A phone (or one on its side): several awards won at once in one row of four, smaller, so the stage,
   its back and its buttons fit a small iPhone's screen (four in two rows ran 720px tall). */
@media (max-width: 560px), (max-height: 560px) {
  .tc-stage { padding: 12px; }
  .tc-stage-in { gap: 10px; padding: 12px 4px; }
  .tc-fan { gap: 2px; }
  .tc-fan .aw { padding: 4px 2px; }
  .tc-fan .aw-art { width: 58px; height: auto; }
  .tc-fan .aw-cap { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .aw-art, .tc-landing, .tc-row-go { transition: none; }
  .tc-landing:hover { transform: none; }
  .aw-new .aw-shine, .aw-rare .aw-shine, .tc-pop-in { animation: none; }
  .tc-drop, .tc-rise, .aw-back-top > .aw-art { animation: tc-fade 150ms ease-out both; }
}
/* guide:end trophy-case */
