/* Trophyz
   A trophy room at night: crimson velvet on the walls, a dark wooden cabinet, gold that catches one spotlight.
   Type is chunky and outlined like the games it serves; the words underneath are plain and readable. The three
   arenas sit on one shelf as engraved plaques, each with its own enamel colour. */
@font-face { font-family: 'Lilita One'; src: url('/fonts/lilita-one.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --velvet-0: #1c060b; --velvet-1: #2b0a12; --velvet-2: #46101d; --velvet-3: #6a1a2a;
  --wood-0: #2a1407; --wood-1: #4a2510; --wood-2: #6e3b19; --wood-3: #93562a;
  --gold-0: #7a4a08; --gold-1: #c98612; --gold-2: #f6c443; --gold-3: #ffe59a;
  --cream: #fff3dc; --cream-dim: #d9c2b0; --outline: #1a0904;
  --royale: #8b3fe0; --brawl: #1f8bff; --clans: #e0503c;
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --velvet-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75 .18' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 0 0 0 0 0 .02 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
  --wood-grain: repeating-linear-gradient(91deg, rgba(255, 210, 150, 0) 0 9px, rgba(255, 210, 150, .07) 9px 11px, rgba(0, 0, 0, .09) 11px 23px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; color: var(--cream); font: 700 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  background: var(--velvet-grain), radial-gradient(120% 80% at 70% 0%, var(--velvet-3) 0, var(--velvet-2) 30%, var(--velvet-1) 62%, var(--velvet-0) 100%) fixed; }
h1, h2, h3, p, ol, dl, dd { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
::selection { background: var(--gold-2); color: var(--outline); }
.outlined { paint-order: stroke fill; -webkit-text-stroke: 0; }

/* top bar: a strip of the cabinet's dark wood with a brass edge */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; min-height: 68px; padding: 0 max(20px, calc((100vw - 1180px) / 2));
  background: var(--wood-grain), linear-gradient(var(--wood-1), var(--wood-0)); border-bottom: 3px solid var(--outline); box-shadow: inset 0 -2px 0 var(--gold-1), 0 10px 24px -14px #000; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 400 30px/1 var(--display); letter-spacing: .01em; color: var(--cream);
  text-shadow: 0 3px 0 var(--outline), 2px 0 0 var(--outline), -2px 0 0 var(--outline), 0 -2px 0 var(--outline); }
.logo b { font-weight: 400; color: var(--gold-2); }
.logo-cup { width: 30px; height: 38px; }
.nav { display: flex; gap: 22px; }
.nav a { font: 800 15px var(--sans); text-decoration: none; color: var(--cream-dim); }
.nav a:hover { color: var(--cream); text-decoration: underline; text-decoration-color: var(--gold-2); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* the coin: an engraved brass name plate */
.coin { display: flex; align-items: stretch; margin-left: auto; border: 2.5px solid var(--outline); border-radius: 8px; overflow: hidden;
  background: linear-gradient(var(--gold-3), var(--gold-2) 45%, var(--gold-1)); box-shadow: 0 3px 0 var(--outline); color: var(--outline); }
.coin > * { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; background: none; color: inherit; font: 900 14px var(--sans); text-decoration: none; }
.coin > * + * { border-left: 2px solid rgba(26, 9, 4, .35); }
.coin-tk { font: 400 18px var(--display); letter-spacing: .02em; }
.coin-ca { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 13px; cursor: pointer; }
.coin > *:hover { background: rgba(255, 255, 255, .3); }

/* buttons: gold with a thick outline and a hard drop, pressed in on click */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 3px solid var(--outline); border-radius: 12px; text-decoration: none;
  font: 400 21px/1 var(--display); letter-spacing: .02em; color: var(--outline);
  background: linear-gradient(var(--gold-3), var(--gold-2) 48%, var(--gold-1) 52%, #e0a020); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 5px 0 var(--outline);
  transition: transform .08s, box-shadow .08s; }
.btn:hover { background: linear-gradient(#fff0bf, #ffd25e 48%, #dc961a 52%, #eeb02a); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 1px 0 var(--outline); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; max-width: 1180px; margin: 0 auto; padding: 72px 20px 40px; }
h1 { font: 400 clamp(44px, 6.2vw, 84px)/.98 var(--display); letter-spacing: .005em; color: var(--cream);
  text-shadow: 0 6px 0 var(--outline), 3px 0 0 var(--outline), -3px 0 0 var(--outline), 0 -3px 0 var(--outline), 3px 3px 0 var(--outline), -3px 3px 0 var(--outline); }
h1 span { color: var(--gold-2); }
.lede { max-width: 34em; margin: 26px 0 32px; font-size: 19px; color: var(--cream-dim); }
.stage { position: relative; height: 470px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.spot { position: absolute; inset: -80px 10% 20px; background: radial-gradient(42% 60% at 50% 58%, rgba(255, 228, 170, .26), rgba(255, 228, 170, 0) 70%),
  conic-gradient(from 168deg at 50% -10%, transparent 0deg, rgba(255, 236, 196, .13) 10deg, rgba(255, 236, 196, .13) 14deg, transparent 24deg); pointer-events: none; }
.big-cup { position: relative; z-index: 1; width: 300px; height: 375px; margin-bottom: -16px; filter: drop-shadow(0 28px 22px rgba(0, 0, 0, .55)); animation: turn 7s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes turn { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@media (prefers-reduced-motion: reduce) { .big-cup { animation: none; } }
.pedestal { width: 380px; height: 56px; border: 3px solid var(--outline); border-radius: 6px 6px 0 0;
  background: var(--wood-grain), linear-gradient(var(--wood-3), var(--wood-1) 40%, var(--wood-0)); box-shadow: inset 0 3px 0 rgba(255, 220, 170, .25), 0 20px 40px -10px #000; }

/* the cabinet: three plaques on one shelf */
.cabinet { max-width: 1180px; margin: 0 auto; padding: 56px 20px 24px; }
h2 { font: 400 clamp(32px, 3.6vw, 46px)/1 var(--display); color: var(--cream); margin-bottom: 30px;
  text-shadow: 0 4px 0 var(--outline), 2px 0 0 var(--outline), -2px 0 0 var(--outline), 0 -2px 0 var(--outline); }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; position: relative; z-index: 1; }
.plaque { --enamel: var(--royale); position: relative; display: flex; flex-direction: column; padding: 70px 24px 24px; margin-top: 46px; border: 3px solid var(--outline); border-radius: 18px 18px 6px 6px;
  background: var(--wood-grain), linear-gradient(170deg, var(--wood-3), var(--wood-2) 30%, var(--wood-1)); box-shadow: inset 0 3px 0 rgba(255, 220, 170, .22), inset 0 -4px 0 rgba(0, 0, 0, .25), 0 8px 0 var(--outline); }
.plaque.brawl { --enamel: var(--brawl); } .plaque.clans { --enamel: var(--clans); }
.plaque::before { /* the enamel band behind the emblem */ content: ""; position: absolute; left: 18px; right: 18px; top: 18px; height: 34px; border: 3px solid var(--outline); border-radius: 8px;
  background: linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 55%), var(--enamel); }
.emblem { position: absolute; left: 50%; top: -40px; width: 96px; height: 96px; translate: -50% 0; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .35)); }
.plaque h3 { font: 400 30px/1 var(--display); color: var(--cream); text-shadow: 0 3px 0 var(--outline), 2px 0 0 var(--outline), -2px 0 0 var(--outline), 0 -2px 0 var(--outline); }
.arena { margin-top: 6px; font: 900 14px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 20px 0 22px; padding: 14px 16px; border-radius: 8px; border: 2px solid rgba(26, 9, 4, .7);
  background: linear-gradient(var(--gold-3), var(--gold-2) 60%, #e0a428); color: var(--outline); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55); }
.facts dt { font: 900 12px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.facts dd { font: 800 15px/1.4 var(--sans); }
.play { margin-top: auto; font-size: 19px; }
.plank { position: relative; height: 40px; margin: -4px -14px 0; border: 3px solid var(--outline); border-radius: 4px;
  background: var(--wood-grain), linear-gradient(var(--wood-3), var(--wood-2) 25%, var(--wood-1) 60%, var(--wood-0)); box-shadow: inset 0 3px 0 rgba(255, 220, 170, .25), 0 22px 30px -12px #000; }
.tally { margin-top: 18px; text-align: center; color: var(--cream-dim); }

/* how it works */
.how { max-width: 1180px; margin: 0 auto; padding: 70px 20px 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 26px 24px 26px 92px; border-radius: 14px; border: 2px solid rgba(255, 220, 170, .14); background: rgba(20, 4, 8, .45); }
.steps b { position: absolute; left: 22px; top: 22px; width: 52px; height: 52px; display: grid; place-items: center; border: 3px solid var(--outline); border-radius: 50%;
  font: 400 28px/1 var(--display); color: var(--outline); background: radial-gradient(circle at 35% 30%, var(--gold-3), var(--gold-2) 55%, var(--gold-1)); box-shadow: 0 4px 0 var(--outline); }
.steps h3 { font: 400 24px/1.1 var(--display); color: var(--gold-2); margin-bottom: 8px; letter-spacing: .01em; }
.steps p { color: var(--cream-dim); font-size: 16px; }

.foot { max-width: 1180px; margin: 30px auto 0; padding: 26px 20px 46px; border-top: 2px solid rgba(255, 220, 170, .12); color: #a88f84; font-size: 13.5px; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 30; padding: 12px 18px; border: 3px solid var(--outline); border-radius: 10px;
  background: linear-gradient(var(--gold-3), var(--gold-2)); color: var(--outline); font: 900 15px var(--sans); box-shadow: 0 4px 0 var(--outline); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .stage { height: 340px; order: -1; } .big-cup { width: 210px; height: 262px; } .pedestal { width: 270px; height: 44px; }
  .shelf, .steps { grid-template-columns: 1fr; gap: 62px; }
  .steps { gap: 16px; }
  .plank { display: none; }
  .plaque { margin-top: 30px; }
}
@media (max-width: 640px) {
  .top { flex-wrap: wrap; gap: 10px 18px; padding-top: 10px; padding-bottom: 10px; }
  .nav { gap: 16px; }
  .coin { margin-left: 0; width: 100%; } .coin > * { flex: 1; justify-content: center; }
  .lede { font-size: 17px; }
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
