/* IsReillyPlayingLeagueOfLegends.com — single stylesheet, token based, dark-first. */
:root {
  color-scheme: dark;
  --bg: #0f1114;
  --surface: #1a1a19;
  --surface-2: #232426;
  --line: #2f3033;
  --text: #f4f4f1;
  --text-2: #c3c2b7;
  --muted: #8a8a83;
  --yes: #1baf7a;
  --no: #e66767;
  --maybe: #c98500;
  --accent: #3987e5;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --seq-1: #cde2fb; --seq-2: #86b6ef; --seq-3: #3987e5; --seq-4: #1c5cab; --seq-5: #0d366b;
  --radius: 10px;
  /* art tokens (overridden per realm below, and inline by the realm context processor) */
  --gold: #d9b566;
  --glow: #3987e5;
  --ornament: url("../art/ornaments/corner-gold.b98c697c886c.svg");
  --scene: none;
  --display: "Cinzel", "Times New Roman", serif;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.45; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
main { flex: 1; position: relative; z-index: 1; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 16px 0 48px; }

.topbar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line)); background: color-mix(in srgb, var(--bg) 58%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.brand span { color: var(--accent); }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { padding: 6px 12px; border-radius: 999px; color: var(--text-2); }
.topbar nav a.on, .topbar nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }

.foot { position: relative; z-index: 1; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- hero (main page) ---------- */
.hero-main { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; min-height: calc(100vh - 120px); }
.hero { max-width: 1100px; width: 100%; }
.answer { font-family: var(--display); font-size: clamp(88px, 24vw, 300px); font-weight: 900; line-height: 0.95; letter-spacing: 0.02em; margin: 0; text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 60px color-mix(in srgb, currentColor 45%, transparent), 0 24px 80px rgba(0,0,0,.6); }
.answer.yes { color: var(--yes); }
.answer.no { color: var(--no); }
.answer.maybe { color: var(--maybe); }
.sub { font-size: clamp(18px, 3vw, 30px); color: var(--text-2); margin: 20px 0 0; }
.sub strong { color: var(--text); }
.sub .champ { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; }
.sub .champ img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent), 0 0 22px color-mix(in srgb, var(--glow) 60%, transparent); }
.hero .meta { margin-top: 28px; color: var(--muted); font-size: 14px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero .cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn.discord { display: inline-flex; align-items: center; gap: 8px; background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.discord:hover { filter: brightness(1.08); border-color: #7983f5; text-decoration: none; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.pulse { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--yes); margin-right: 8px; box-shadow: 0 0 0 0 rgba(27,175,122,.6); animation: pulse 1.6s infinite; vertical-align: middle; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(27,175,122,.6);} 70% { box-shadow: 0 0 0 14px rgba(27,175,122,0);} 100% { box-shadow: 0 0 0 0 rgba(27,175,122,0);} }

/* ---------- stats layout ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 20px; }
.subnav a { position: relative; overflow: hidden; isolation: isolate; padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line)); color: var(--text); background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 14px; }
.subnav a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../art/ornaments/hex-tile.0cacf36d31d4.svg") center / 22px auto repeat; opacity: .07; pointer-events: none; }
.subnav a:hover { border-color: var(--gold); text-decoration: none; }
.subnav a.on { background: color-mix(in srgb, var(--accent) 78%, #000); border-color: var(--accent); color: #fff; box-shadow: 0 0 18px color-mix(in srgb, var(--glow) 40%, transparent); }
h1 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin: 0 0 6px; letter-spacing: 0.01em; text-shadow: 0 2px 24px rgba(0,0,0,.7); }
h2 { font-size: 18px; margin: 28px 0 12px; color: var(--text); display: flex; align-items: center; gap: 14px; }
h2::after { content: ""; flex: 1; height: 16px; min-width: 60px; background: url("../art/ornaments/divider.c98b963dfb68.svg") center / auto 16px no-repeat; opacity: .75; }
.lead { color: var(--text-2); margin: 0 0 16px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tile { position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--accent)) 0%, var(--surface) 100%); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); border-radius: var(--radius); padding: 14px 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 30px rgba(0,0,0,.25); }
.tile .v { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.tile .d { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.tile.big .v { font-size: 40px; }
.card { position: relative; background: color-mix(in srgb, var(--surface) 96%, var(--accent)); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); border-radius: var(--radius); padding: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 30px rgba(0,0,0,.25); }
.card h3 { margin: 0 0 4px; font-size: 15px; }
.card .hint { color: var(--muted); font-size: 12px; margin: 0 0 10px; }
.chart { position: relative; height: 280px; }
.chart.tall { height: 360px; }
.chart.short { height: 200px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.t th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr:hover td { background: var(--surface-2); }
.tscroll { overflow-x: auto; }
.champ-cell { display: flex; align-items: center; gap: 8px; }
.champ-cell img { width: 28px; height: 28px; border-radius: 50%; }
.win { color: var(--yes); font-weight: 600; }
.loss { color: var(--no); font-weight: 600; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--surface-2); color: var(--text-2); }
.badge.aram { background: color-mix(in oklab, var(--s7) 25%, transparent); color: var(--text); }
.badge.ranked { background: color-mix(in oklab, var(--s4) 25%, transparent); color: var(--text); }
.muted { color: var(--muted); }
.note { background: var(--surface-2); border-left: 3px solid var(--maybe); padding: 10px 14px; border-radius: 6px; color: var(--text-2); font-size: 14px; }

/* tooltip: <span class="tip" tabindex="0" data-tip="...">?</span> */
.tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 5px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); background: var(--surface-2); font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: none; vertical-align: middle; cursor: help; user-select: none; }
.tip:hover, .tip:focus, .tip:active { border-color: var(--text); color: var(--text); outline: none; }
.tip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 260px; padding: 6px 9px; border-radius: 6px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-align: left; text-transform: none; white-space: normal; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 5; }
.tip:hover::after, .tip:focus::after, .tip:focus-visible::after, .tip:active::after { opacity: 1; }
.wl { display: flex; gap: 3px; }
.wl span { width: 14px; height: 22px; border-radius: 3px; background: var(--no); }
.wl span.w { background: var(--yes); }

/* heatmap (css grid, no lib) */
.heat { display: grid; grid-template-columns: 44px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 11px; }
.heat .hl { color: var(--muted); text-align: center; }
.heat .wd { color: var(--muted); align-self: center; }
.heat .c { aspect-ratio: 1; border-radius: 3px; background: var(--surface-2); position: relative; }
.heat .c:hover::after { content: attr(data-t); position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 3px 6px; border-radius: 4px; white-space: nowrap; z-index: 2; font-size: 11px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.filters select, .filters input { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 16px 0; }

/* match rows */
.match { display: grid; grid-template-columns: 6px 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line)); border-radius: var(--radius); background: var(--surface); margin-bottom: 8px; }
.match .bar { width: 6px; height: 100%; min-height: 48px; border-radius: 3px; background: var(--no); }
.match.w .bar { background: var(--yes); }
.match.n .bar { background: var(--line); }
.match img { width: 48px; height: 48px; border-radius: 50%; }
.match .k { font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 700; }
.match .m { color: var(--text-2); font-size: 13px; }
.match details { grid-column: 1 / -1; }
.match summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.match .roster { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; font-size: 13px; }
.match .roster div.me { font-weight: 700; }

@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .heat { grid-template-columns: 32px repeat(24, minmax(0, 1fr)); font-size: 9px; }
  .heat .hl { overflow: hidden; }
  .match { grid-template-columns: 6px 40px 1fr; }
  .match img { width: 40px; height: 40px; }
  .match .right { grid-column: 3; }
}

/* ---------- survey ---------- */
.survey { width: min(640px, 100% - 32px); margin: 0 auto; padding: 24px 0 48px; }
.survey h1 { font-size: 32px; }
.survey .card { display: flex; flex-direction: column; gap: 22px; }
.survey fieldset { border: 0; padding: 0; margin: 0; }
.survey legend { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.survey .radios, .survey .checks { display: flex; flex-direction: column; gap: 8px; }
.survey .opt { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text-2); }
.survey .opt:hover { color: var(--text); }
.survey .opt input { width: 16px; height: 16px; accent-color: var(--accent); }
.survey .opt.strong { color: var(--text); font-weight: 600; }
.survey textarea { width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; resize: vertical; }
.survey textarea:focus { outline: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; align-self: flex-start; cursor: pointer; font: inherit; }
.btn.primary:hover { filter: brightness(1.08); }

/* ============================================================================
   Realm art layer: procedural scenes from static/art (scripts/gen_art.py)
   ========================================================================== */
body[data-realm="abyss"]       { --accent: #6fd3ff; --glow: #4fb8ff; --gold: #bfe6f5; --ornament: url("../art/ornaments/corner-teal.859f7ea46660.svg"); }
body[data-realm="rift"]        { --accent: #6fcf9a; --glow: #d6a648; --gold: #d9b566; --ornament: url("../art/ornaments/corner-gold.b98c697c886c.svg"); }
body[data-realm="ascension"]   { --accent: #f0b95a; --glow: #ffcf70; --gold: #f0c97a; --ornament: url("../art/ornaments/corner-gold.b98c697c886c.svg"); }
body[data-realm="cartography"] { --accent: #4fc9b3; --glow: #3fb6a4; --gold: #c9b077; --ornament: url("../art/ornaments/corner-teal.859f7ea46660.svg"); }
body[data-realm="vault"]       { --accent: #ffb14d; --glow: #ff9a2e; --gold: #e0b060; --ornament: url("../art/ornaments/corner-gold.b98c697c886c.svg"); }
body[data-realm="tavern"]      { --accent: #ffb650; --glow: #ff9d3c; --gold: #d9a966; --ornament: url("../art/ornaments/corner-gold.b98c697c886c.svg"); }
body[data-realm="void"]        { --accent: #d48cff; --glow: #ff56e5; --gold: #c9a3e8; --ornament: url("../art/ornaments/corner-violet.42b631c1c67c.svg"); }
body[data-realm="dreamscape"]  { --accent: #e0a3ff; --glow: #ff9fcf; --gold: #e6c3ef; --ornament: url("../art/ornaments/corner-violet.42b631c1c67c.svg"); }
body[data-realm="battle"]      { --accent: #ff7a5a; --glow: #ff5a3c; --gold: #e0a860; --ornament: url("../art/ornaments/corner-gold.b98c697c886c.svg"); }
body[data-realm="quiet"]       { --accent: #8fb0e0; --glow: #a9c3ec; --gold: #b9c6dd; --ornament: url("../art/ornaments/corner-teal.859f7ea46660.svg"); }
body[data-realm="gates"]       { --accent: #ffcf6a; --glow: #ffc35a; --gold: #f0d080; --ornament: url("../art/ornaments/corner-gold.b98c697c886c.svg"); }

body { position: relative; isolation: isolate; overflow-x: hidden; }

/* the scene: a banner behind the page head on stats pages... */
.scene { position: absolute; left: 0; right: 0; top: 0; height: 400px; z-index: 0; pointer-events: none; overflow: hidden;
  background: var(--scene) center 40% / cover no-repeat, var(--bg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }
.scene::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0,0,0,.55) 100%),
  linear-gradient(180deg, rgba(15,17,20,.28) 0%, rgba(15,17,20,.08) 35%, var(--bg) 100%); }
.scene::after { content: ""; position: absolute; inset: -20px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 45%, transparent 55%, #000 100%); mask-image: radial-gradient(80% 80% at 50% 45%, transparent 55%, #000 100%); }

/* ...and a full-bleed, fixed backdrop on the main page. */
.hero-page .scene { position: fixed; inset: 0; height: auto; -webkit-mask-image: none; mask-image: none; background-position: center; }
.hero-page .scene::before { background:
  radial-gradient(60% 55% at 50% 50%, rgba(8,9,12,.62) 0%, rgba(8,9,12,.35) 55%, transparent 100%),
  radial-gradient(130% 100% at 50% 50%, transparent 45%, rgba(0,0,0,.72) 100%),
  linear-gradient(180deg, rgba(8,9,12,.45) 0%, transparent 25%, transparent 70%, rgba(8,9,12,.75) 100%); }
.hero-page .scene::after { display: none; }
.hero-page .topbar { border-bottom-color: transparent; background: linear-gradient(180deg, rgba(8,9,12,.55), transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
.hero-page .foot { border-top-color: transparent; background: linear-gradient(0deg, rgba(8,9,12,.6), transparent); }

/* drifting motes (CSS only) */
.mote { position: absolute; bottom: -4vh; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); opacity: 0;
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--glow) 70%, transparent); filter: blur(.4px);
  animation: drift var(--dur, 18s) linear infinite; animation-delay: var(--delay, 0s); left: var(--x, 50%); }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  10%  { opacity: .85; }
  50%  { transform: translate3d(var(--sway, 30px), -55vh, 0) scale(1); }
  90%  { opacity: .5; }
  100% { transform: translate3d(calc(var(--sway, 30px) * -.6), -110vh, 0) scale(.5); opacity: 0; }
}
.mote:nth-child(1)  { --x: 6%;  --dur: 21s; --delay: -3s;  --sway: 40px; }
.mote:nth-child(2)  { --x: 14%; --dur: 17s; --delay: -9s;  --sway: -30px; width: 4px; height: 4px; }
.mote:nth-child(3)  { --x: 22%; --dur: 25s; --delay: -14s; --sway: 60px; }
.mote:nth-child(4)  { --x: 29%; --dur: 19s; --delay: -1s;  --sway: -50px; width: 3px; height: 3px; }
.mote:nth-child(5)  { --x: 36%; --dur: 23s; --delay: -7s;  --sway: 20px; }
.mote:nth-child(6)  { --x: 43%; --dur: 16s; --delay: -12s; --sway: -40px; width: 5px; height: 5px; }
.mote:nth-child(7)  { --x: 50%; --dur: 27s; --delay: -5s;  --sway: 70px; width: 3px; height: 3px; }
.mote:nth-child(8)  { --x: 57%; --dur: 18s; --delay: -16s; --sway: -20px; }
.mote:nth-child(9)  { --x: 64%; --dur: 22s; --delay: -2s;  --sway: 50px; width: 4px; height: 4px; }
.mote:nth-child(10) { --x: 71%; --dur: 20s; --delay: -11s; --sway: -60px; }
.mote:nth-child(11) { --x: 78%; --dur: 24s; --delay: -8s;  --sway: 30px; width: 3px; height: 3px; }
.mote:nth-child(12) { --x: 85%; --dur: 17s; --delay: -15s; --sway: -35px; }
.mote:nth-child(13) { --x: 92%; --dur: 26s; --delay: -4s;  --sway: 45px; width: 5px; height: 5px; }
.mote:nth-child(14) { --x: 10%; --dur: 20s; --delay: -18s; --sway: -25px; width: 3px; height: 3px; }
.mote:nth-child(15) { --x: 47%; --dur: 15s; --delay: -6s;  --sway: 35px; width: 4px; height: 4px; }
.mote:nth-child(16) { --x: 88%; --dur: 23s; --delay: -13s; --sway: -45px; width: 3px; height: 3px; }
@media (prefers-reduced-motion: reduce) {
  .mote { animation: none; opacity: .35; bottom: auto; top: 20%; }
  .mote:nth-child(2n) { top: 45%; }
  .mote:nth-child(3n) { top: 70%; }
  .pulse { animation: none; }
}

/* hero: cinematic answer block */
.hero-page .hero-main { min-height: calc(100vh - 128px); }
.hero .sub { position: relative; padding-top: 22px; }
.hero .sub::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(320px, 60%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 60%, transparent); }
.hero .sub, .hero .meta { text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 2px 18px rgba(0,0,0,.7); }
.hero .meta { color: var(--text-2); }
.hero .meta .muted { color: color-mix(in srgb, var(--text-2) 80%, var(--muted)); }
.hero .btn { background: color-mix(in srgb, var(--surface) 70%, transparent); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.hero .btn:hover { border-color: var(--gold); box-shadow: 0 0 22px color-mix(in srgb, var(--gold) 35%, transparent); }
.answer.yes { color: #34d39a; }
.answer.no { color: #ff7b7b; }
.answer.maybe { color: #ffc14d; }
.hero-page .answer::before { content: ""; display: block; width: min(420px, 70%); height: 1px; margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 70%, transparent), transparent); }

/* stats page head sits over the banner */
.stats-page .wrap { padding-top: 18px; }
.stats-page .lead { color: var(--text); text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 2px 16px rgba(0,0,0,.7); }
.stats-page h1 { color: #fff; }

/* cards, tiles and match rows: gold hairline + corner filigree via masks */
.card::before, .card::after, .tile::before, .tile::after { content: ""; position: absolute; top: -1px; width: 30px; height: 30px; pointer-events: none;
  background: var(--gold); opacity: .55; -webkit-mask: var(--ornament) no-repeat center / contain; mask: var(--ornament) no-repeat center / contain; }
.card::before, .tile::before { left: -1px; }
.card::after, .tile::after { right: -1px; transform: scaleX(-1); }
.tile::before, .tile::after { width: 22px; height: 22px; opacity: .45; }
.card:hover::before, .card:hover::after { opacity: .9; }
.tile .v { color: #fff; }
.tile.big { border-color: color-mix(in srgb, var(--gold) 48%, var(--line)); }
.tile.big .v { background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--gold) 70%, #fff) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
table.t th { color: color-mix(in srgb, var(--gold) 55%, var(--muted)); }
.note { border-left-color: var(--gold); }

@media (max-width: 640px) {
  .scene { height: 300px; }
  .hero-page .answer::before { margin-bottom: 10px; }
  .answer { font-size: clamp(72px, 26vw, 140px); }
  .card::before, .card::after { width: 24px; height: 24px; }
}
