@font-face {
  font-family: 'Macondo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/macondo-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-sans-normal-400-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-normal-500-latin.woff2') format('woff2');
}

:root {
  --bg: #0a0708;
  --line: #3a2a22;
  --line-strong: #6e5340;
  --text: #f1e4c8;
  --text-2: #d3c2a2;
  --muted: #a8957a;
  --gold-1: #97701e;
  --gold-2: #cda345;
  --gold-3: #b58a2f;
  --gold: #d6ad4f;
  --velvet: #6b1d2c;
  --hit: #d6ad4f;
  --hit-ink: #1c1206;
  --near: #8a2c3e;
  --near-ink: #fbe9e4;
  --miss: #1a1311;
  --fancy: 'Macondo', 'Palatino Linotype', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; position: relative;
  background:
    radial-gradient(70% 45% at 50% 105%, rgba(255, 170, 70, .13), rgba(255, 140, 50, .04) 45%, transparent 75%),
    radial-gradient(60% 40% at 15% 30%, rgba(90, 110, 70, .05), transparent 60%),
    radial-gradient(50% 35% at 85% 55%, rgba(80, 120, 140, .05), transparent 60%),
    linear-gradient(rgba(10, 7, 8, .42), rgba(10, 7, 8, .58) 50%, rgba(10, 7, 8, .82)),
    url("assets/map.webp") center top / cover no-repeat fixed,
    var(--bg);
  color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(80% 70% at 50% 45%, transparent 45%, rgba(10, 7, 8, .35) 78%, rgba(10, 7, 8, .7) 100%);
}
body > * { position: relative; z-index: 1; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }

.curtain {
  height: 12px; position: relative; z-index: 2;
  background: linear-gradient(180deg, #e4c15a, #c9a040 55%, #a97f2a);
  box-shadow: inset 0 -1px 0 rgba(255, 230, 160, .25);
}
.curtain::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 17px;
  background: radial-gradient(circle at 20px 0, #c9a040 0 12.5px, #c4572a 12.5px 15px, rgba(18, 9, 5, .75) 15px 16px, transparent 16.5px) 0 0 / 40px 17px repeat-x;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
}

.top__inner { max-width: 720px; margin: 0 auto; padding: 24px 16px 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: auto; height: 46px; flex-shrink: 0; filter: drop-shadow(0 0 12px rgba(214, 173, 79, .3)); }
.logo span { font-family: var(--fancy); font-size: 34px; line-height: 1; color: var(--gold); text-shadow: 0 0 18px rgba(214, 173, 79, .25); }
.top__actions { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(20, 16, 14, .7); cursor: pointer; font-family: var(--fancy); font-size: 20px; color: var(--gold); }
.icon-btn:hover { border-color: var(--gold); }

.game { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 14px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.modes { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; align-self: flex-start; background: rgba(20, 16, 14, .7); }
.mode { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-family: var(--fancy); font-size: 17px; color: var(--text-2); }
.mode.is-on { background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); color: var(--hit-ink); }
.mode span { font-family: var(--mono); font-size: 12px; }
.intro { margin: 0; color: var(--text); text-shadow: 0 1px 12px rgba(0, 0, 0, .9); font-family: var(--fancy); font-size: 21px; line-height: 1.3; }

.guess { display: flex; align-items: center; gap: 12px; position: relative; z-index: 5; }
.guess__box { flex: 1; position: relative; }
.guess input { width: 100%; height: 54px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 10px; background: linear-gradient(rgba(24, 19, 16, .96), rgba(16, 12, 10, .98)); color: var(--text); font: inherit; font-size: 17px; outline: none; box-shadow: inset 0 1px 0 rgba(255, 220, 160, .05); }
.guess input::placeholder { color: var(--muted); }
.guess input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 173, 79, .15); }
.guess__count { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto; background: #1a120f; border: 1px solid var(--gold-3); border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .7); }
.suggest li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: rgba(138, 44, 62, .45); }
.suggest img { width: 36px; height: 36px; border-radius: 3px; flex-shrink: 0; }
.suggest .s__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--fancy); font-size: 18px; }
.suggest .s__r { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; padding-left: 8px; }
.suggest .s__m { color: var(--gold); }
.suggest .s__none { color: var(--muted); cursor: default; }

.hint { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px dashed var(--gold-3); border-radius: 10px; background: rgba(20, 16, 14, .7); color: var(--text-2); font-size: 15px; }
.hint b { font-family: var(--fancy); font-weight: 400; font-size: 26px; line-height: 1; color: var(--gold); min-width: 22px; text-align: center; }

.board { position: relative; padding: 18px 16px 20px; border-radius: 6px; background: linear-gradient(rgba(20, 16, 14, .85), rgba(15, 12, 10, .95)); border: 2px solid var(--gold-3); box-shadow: inset 0 0 0 5px #1b1310, inset 0 0 0 6px rgba(205, 163, 69, .45), 0 18px 50px rgba(0, 0, 0, .55); }
.board::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 4px; opacity: .28;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cg fill='%23cda345'%3E%3Cpath d='M14 8l1.4 3.6 3.6 1.4-3.6 1.4L14 18l-1.4-3.6L9 13l3.6-1.4z'/%3E%3Cpath d='M66 52l1 2.6 2.6 1-2.6 1-1 2.6-1-2.6-2.6-1 2.6-1z'/%3E%3Ccircle cx='48' cy='20' r='1.1'/%3E%3Ccircle cx='25' cy='70' r='1.1'/%3E%3Ccircle cx='80' cy='14' r='.9'/%3E%3Ccircle cx='8' cy='44' r='.9'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 90px 90px;
  padding: 10px; -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.board--empty { display: none; }
.board__head, .tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.board__head { padding-bottom: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 14px; }
.row { display: flex; flex-direction: column; gap: 6px; }
.row__song { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row__song img { width: 28px; height: 28px; border-radius: 3px; flex-shrink: 0; }
.row__song span { font-family: var(--fancy); font-size: 21px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row--win .row__song span { color: var(--gold); text-shadow: 0 0 14px rgba(214, 173, 79, .4); }
.tile { min-height: 58px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 6px; background: var(--miss); border: 1px solid var(--line); text-align: center; font-size: 13px; font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; color: var(--text-2); }
.tile--hit { background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3)); border-color: var(--gold-2); color: var(--hit-ink); font-weight: 600; }
.tile--near { background: linear-gradient(160deg, #a23649, var(--near) 55%, #6b1d2c); border-color: #a23649; color: var(--near-ink); }
.tile .arr { font-size: 15px; line-height: 1; }
.tile__img { width: 30px; height: 30px; border-radius: 3px; }
.tile__name { font-size: 11px; }
.row--new .tile { animation: flip .5s ease both; }
.row--new .tile:nth-child(2) { animation-delay: .08s; }
.row--new .tile:nth-child(3) { animation-delay: .16s; }
.row--new .tile:nth-child(4) { animation-delay: .24s; }
.row--new .tile:nth-child(5) { animation-delay: .32s; }
.row--new .tile:nth-child(6) { animation-delay: .4s; }
@keyframes flip { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }

.result { padding: 20px; border-radius: 6px; background: linear-gradient(rgba(24, 19, 16, .96), rgba(16, 12, 10, .98)); border: 2px solid var(--gold-3); box-shadow: inset 0 0 0 5px #1b1310, inset 0 0 0 6px rgba(205, 163, 69, .45); display: flex; flex-direction: column; gap: 16px; }
.result__top { display: flex; gap: 16px; align-items: center; }
.mirror { position: relative; flex-shrink: 0; width: 104px; aspect-ratio: 488 / 1000; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.mirror__cover { position: absolute; left: 22.3%; top: 40.4%; width: 56.5%; height: 45.7%; object-fit: cover; }
.mirror::after { content: ""; position: absolute; left: 22.3%; top: 40.4%; width: 56.5%; height: 45.7%; background: linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 38%, transparent 70%, rgba(255, 255, 255, .06)); pointer-events: none; }
.mirror__frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.result__label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.result__title { font-family: var(--fancy); font-weight: 400; font-size: 34px; line-height: 1.05; margin: 4px 0; overflow-wrap: anywhere; color: var(--gold); }
.result__meta { color: var(--text-2); font-size: 14px; }
.result__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.result__next { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; font-family: var(--fancy); font-size: 18px; text-decoration: none; cursor: pointer; }
.btn--gold { background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); color: var(--hit-ink); box-shadow: 0 0 18px rgba(214, 173, 79, .2); }
.btn--gold:hover { filter: brightness(1.08); }
.btn--velvet { background: linear-gradient(160deg, #a23649, var(--velvet)); color: var(--text); }
.btn--velvet:hover { filter: brightness(1.12); }
.btn--ghost { border: 1px solid var(--line-strong); background: transparent; color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); }

.foot { border-top: 1px solid var(--line); background: rgba(10, 7, 8, .78); }
.foot p { max-width: 720px; margin: 0 auto; padding: 20px 16px 28px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--text-2); text-underline-offset: 3px; }
.foot p.foot__art { padding-top: 0; margin-top: -16px; font-size: 12px; color: var(--muted); opacity: .85; }

.modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 2px solid var(--gold-3); border-radius: 8px; background: linear-gradient(#1a130f, #120d0b); color: var(--text); box-shadow: inset 0 0 0 5px #1b1310, inset 0 0 0 6px rgba(205, 163, 69, .4), 0 30px 80px rgba(0, 0, 0, .8); }
.modal::backdrop { background: rgba(5, 3, 3, .78); }
.modal__inner { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; }
.modal h2 { margin: 0; font-family: var(--fancy); font-weight: 400; font-size: 32px; color: var(--gold); }
.modal p { margin: 0; color: var(--text-2); }
.modal .btn { align-self: flex-start; }
.legend { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: 15px; }
.legend li { display: grid; grid-template-columns: 76px 1fr; gap: 8px; align-items: baseline; }
.legend b { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.keys { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 6px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.keys span { display: flex; align-items: center; gap: 10px; }
.sw { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; border: 1px solid var(--line); }
.sw--hit { background: var(--hit); }
.sw--near { background: var(--near); }
.sw--miss { background: var(--miss); }
.arrow { width: 18px; flex-shrink: 0; font-size: 13px; color: var(--text); white-space: nowrap; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.nums div { display: flex; flex-direction: column; gap: 2px; }
.nums b { font-family: var(--fancy); font-weight: 400; font-size: 36px; line-height: 1; color: var(--gold); }
.nums span { font-size: 12px; color: var(--muted); }
.dist { display: flex; flex-direction: column; gap: 4px; }
.dist div { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; }
.dist i { display: block; min-width: 26px; padding: 2px 8px; border-radius: 3px; background: var(--miss); border: 1px solid var(--line); font-style: normal; text-align: right; }
.dist i.is-today { background: var(--hit); border-color: var(--gold-2); color: var(--hit-ink); }
.small { font-size: 13px; }
.modal--share { width: min(560px, calc(100vw - 24px)); }
.share__img { display: flex; justify-content: center; min-height: 200px; border-radius: 6px; background: rgba(0, 0, 0, .35); }
.share__img img { display: block; width: auto; max-width: 100%; max-height: 46vh; border-radius: 6px; }
.share__img img:not([src]) { visibility: hidden; }
.share__text { margin: 0; padding: 12px 14px; border-radius: 6px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); font-family: var(--mono); font-size: 14px; line-height: 1.35; color: var(--text-2); white-space: pre-wrap; }
.share__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share__btns .btn { width: 100%; }

.toast { position: fixed; left: 50%; top: 90px; transform: translateX(-50%); padding: 10px 20px; border-radius: 999px; background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); color: var(--hit-ink); font-family: var(--fancy); font-size: 17px; z-index: 70; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.result__fact { margin: 0; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 15px; line-height: 1.55; color: var(--text-2); }
.result__fact span { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.crowd { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.crowd__label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.crowd__line { margin: 0; font-size: 15px; color: var(--text-2); }
.crowd__line b { font-family: var(--fancy); font-weight: 400; font-size: 20px; color: var(--text); }
.crowd__bars { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; height: 74px; align-items: end; }
.crowd__bars span { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; height: 100%; }
.crowd__bars i { display: block; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--gold) 38%, var(--miss)); }
.crowd__bars span:last-child i { background: color-mix(in srgb, var(--near) 55%, var(--miss)); }
.crowd__bars span.is-you i { background: linear-gradient(var(--gold-2), var(--gold-1)); box-shadow: 0 0 12px rgba(214, 173, 79, .35); }
.crowd__bars span:last-child.is-you i { background: var(--near); box-shadow: none; }
.crowd__bars b { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--muted); text-align: center; }
.crowd__bars span.is-you b { color: var(--gold); }
.opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 6px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); cursor: pointer; }
.opt input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); flex-shrink: 0; }
.opt b { color: var(--gold); font-family: var(--fancy); font-weight: 400; font-size: 17px; }
.tile { position: relative; }
.cb .tile--hit::after, .cb .tile--near::after { position: absolute; top: 3px; right: 5px; font-size: 11px; font-weight: 700; line-height: 1; }
.cb .tile--hit::after { content: "✓"; }
.cb .tile--near::after { content: "~"; font-size: 14px; }
.past__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.past__day { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(20, 16, 14, .85); cursor: pointer; text-align: left; }
.past__day:hover { border-color: var(--gold); }
.past__day b { font-family: var(--fancy); font-weight: 400; font-size: 24px; line-height: 1; color: var(--gold); }
.past__date { font-size: 13px; color: var(--text-2); }
.past__tag { font-family: var(--fancy); font-size: 14px; line-height: 1; color: var(--gold); }
.past__st { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.past__st--won { color: var(--gold); }
.past__st--lost { color: #e07a8a; }
.past__none { margin: 0; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 8px; background: rgba(20, 16, 14, .8); color: var(--text-2); }
.past__back { align-self: flex-start; padding: 8px 0; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.past__back:hover { color: var(--text); }
.guess__count.is-hard::after { content: " 🔥"; }
.mode { padding: 0 16px; }
@media (max-width: 400px) { .mode { padding: 0 12px; font-size: 16px; } }
.games { max-width: 720px; margin: 0 auto; padding: 4px 16px 0; display: flex; gap: 22px; border-bottom: 1px solid rgba(110, 83, 64, .45); }
.games a { position: relative; padding: 10px 0 12px; font-family: var(--fancy); font-size: 18px; color: var(--text-2); text-decoration: none; }
.games a:hover { color: var(--text); }
.games a[aria-current="page"] { color: var(--gold); }
.games a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); }

.conn__head { display: flex; flex-direction: column; gap: 6px; }
.conn__title { margin: 0; font-family: var(--fancy); font-weight: 400; font-size: 40px; line-height: 1; color: var(--gold); text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.conn__title span { font-family: var(--mono); font-size: 14px; color: var(--muted); vertical-align: middle; }
.conn__solved { display: flex; flex-direction: column; gap: 8px; }
.conn__solved:empty { display: none; }
.conn__group { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 12px 14px; border-radius: 8px; text-align: center; animation: conn-in .35s ease both; }
.conn__group b { font-family: var(--fancy); font-weight: 400; font-size: 21px; line-height: 1.1; }
.conn__group span { font-size: 13.5px; line-height: 1.35; opacity: .92; }
.conn__group--l1, .sw--l1 { background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3)); color: #1c1206; }
.conn__group--l2, .sw--l2 { background: linear-gradient(130deg, #a7461f, #c4572a 60%, #b34d24); color: #fff3e6; }
.conn__group--l3, .sw--l3 { background: linear-gradient(130deg, #2f6660, #3f7f78 60%, #356f68); color: #ecfbf8; }
.conn__group--l4, .sw--l4 { background: linear-gradient(130deg, #a23649, #8a2c3e 55%, #6b1d2c); color: #fbe9e4; }
@keyframes conn-in { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.conn__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.conn__tile { min-height: 76px; padding: 8px 6px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(26, 19, 17, .92); color: var(--text); cursor: pointer; font-family: var(--fancy); font-size: 17px; line-height: 1.15; text-align: center; transition: background .12s, transform .12s, border-color .12s; -webkit-tap-highlight-color: transparent; }
.conn__tile span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; hyphens: auto; }
.conn__tile:hover { border-color: var(--gold-3); }
.conn__tile.is-on { background: linear-gradient(160deg, #e6cfa0, #cfb27a); border-color: #f1e4c8; color: #1c1206; transform: translateY(-1px); }
.conn__grid.shake { animation: shake .35s; }
.conn__bar { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.conn__mistakes { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.conn__mistakes span[aria-hidden] { display: inline-flex; gap: 6px; }
.conn__mistakes i { width: 12px; height: 12px; border-radius: 50%; background: var(--miss); border: 1px solid var(--line-strong); }
.conn__mistakes i.on { background: var(--gold); border-color: var(--gold); }
.conn__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn:disabled { opacity: .45; cursor: default; }
#conn-result .share__text { font-size: 18px; line-height: 1.2; }

.tiers__pools { display: flex; flex-wrap: wrap; gap: 6px; }
.tiers__pools .mode { min-height: 36px; border: 1px solid var(--line-strong); background: rgba(20, 16, 14, .75); font-size: 16px; }
.tiers__pools .mode.is-on { background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); border-color: var(--gold-2); color: var(--hit-ink); }
.tiers__board { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 2px solid var(--gold-3); border-radius: 6px; background: rgba(15, 11, 9, .9); box-shadow: inset 0 0 0 5px #1b1310, inset 0 0 0 6px rgba(205, 163, 69, .4); }
.tier { display: flex; gap: 6px; min-height: 64px; }
.tier__label { flex: 0 0 60px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold-3); border-radius: 6px; background: linear-gradient(#24170f, #140d0a); box-shadow: inset 0 0 0 3px #140d0a, inset 0 0 0 4px rgba(205, 163, 69, .4); color: var(--gold); font-family: var(--fancy); font-size: 32px; text-shadow: 0 0 14px rgba(214, 173, 79, .45); cursor: pointer; }
.tier__label:hover { border-color: var(--gold); }
.tier__zone { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-height: 64px; padding: 6px; border-radius: 6px; background: rgba(0, 0, 0, .3); transition: background .12s, box-shadow .12s; }
.tier__zone.is-over, .tiers__tray.is-over, .tier__label.is-over { box-shadow: inset 0 0 0 2px var(--gold); background: rgba(214, 173, 79, .1); }
.tiers__tray-wrap { display: flex; flex-direction: column; gap: 8px; }
.tiers__tray-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.tiers__tray { display: flex; flex-wrap: wrap; gap: 6px; min-height: 64px; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 8px; background: rgba(15, 11, 9, .85); }
.tiers__done { margin: 0; align-self: center; color: var(--gold); font-family: var(--fancy); font-size: 18px; }
.ttile { display: inline-flex; align-items: center; gap: 8px; max-width: 200px; padding: 4px 10px 4px 4px; border: 1px solid var(--line-strong); border-radius: 6px; background: #1d1512; color: var(--text); cursor: grab; font-family: var(--fancy); font-size: 15px; line-height: 1.1; text-align: left; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ttile img { width: 40px; height: 40px; border-radius: 3px; flex-shrink: 0; pointer-events: none; }
.ttile span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ttile:hover { border-color: var(--gold-3); }
.ttile.is-on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.ttile.is-dragging { opacity: .3; }
.ttile--ghost { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; cursor: grabbing; box-shadow: 0 14px 30px rgba(0, 0, 0, .6); border-color: var(--gold); }
.tiers__mover { position: fixed; left: 50%; bottom: 18px; z-index: 75; transform: translateX(-50%); width: min(520px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 2px solid var(--gold-3); border-radius: 12px; background: #17100d; box-shadow: 0 18px 40px rgba(0, 0, 0, .7); }
.tiers__mover > span { font-family: var(--fancy); font-size: 17px; color: var(--gold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiers__mover div { display: flex; gap: 6px; }
.tiers__mover button { flex: 1; min-height: 44px; border: 1px solid var(--gold-3); border-radius: 8px; background: linear-gradient(#24170f, #140d0a); color: var(--gold); font-family: var(--fancy); font-size: 22px; cursor: pointer; }
.tiers__mover button:hover { border-color: var(--gold); }
.tiers__mover .tiers__mover-off { flex: 1.6; background: var(--miss); color: var(--text-2); font-size: 15px; border-color: var(--line-strong); }
.tiers__mover .tiers__mover-x { flex: 0 0 44px; background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }

@media (max-width: 520px) {
  .games { gap: 16px; }
  .games a { font-size: 16px; }
  .conn__grid { gap: 6px; }
  .conn__tile { min-height: 70px; font-size: 14px; padding: 6px 4px; }
  .conn__group b { font-size: 18px; }
  .conn__group span { font-size: 12.5px; }
  .tier__label { flex-basis: 46px; font-size: 26px; }
  .tier, .tier__zone { min-height: 50px; }
  .tier__zone { padding: 4px; gap: 4px; }
  .ttile { max-width: 160px; font-size: 13.5px; }
  .ttile img { width: 32px; height: 32px; }
}
.backdrop { position: fixed !important; inset: -60px; z-index: 0 !important; pointer-events: none; background: center / cover no-repeat; filter: blur(30px) saturate(1.15); opacity: 0; transform: scale(1.08); transition: opacity .4s; }
body[data-theme] { background: var(--bg); }
body[data-theme] .backdrop { opacity: .42; }
body[data-theme] .curtain { background: linear-gradient(180deg, var(--gold), var(--gold-3)); }
body[data-theme] .curtain::after { background: radial-gradient(circle at 20px 0, var(--gold-3) 0 12.5px, var(--rim) 12.5px 15px, rgba(0, 0, 0, .6) 15px 16px, transparent 16.5px) 0 0 / 40px 17px repeat-x; }
body[data-theme] .tiers__board { background: color-mix(in srgb, var(--panel-2) 90%, transparent); box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 6px color-mix(in srgb, var(--gold) 40%, transparent); }
body[data-theme] .tier__label, body[data-theme] .tiers__mover button { background: linear-gradient(var(--panel), var(--panel-2)); box-shadow: inset 0 0 0 3px var(--panel-2), inset 0 0 0 4px color-mix(in srgb, var(--gold) 40%, transparent); text-shadow: 0 0 14px color-mix(in srgb, var(--gold) 45%, transparent); }
body[data-theme] .tiers__mover .tiers__mover-off, body[data-theme] .tiers__mover .tiers__mover-x { background: var(--tile); box-shadow: none; text-shadow: none; }
body[data-theme] .ttile { background: var(--tile); }
body[data-theme] .tiers__tray, body[data-theme] .tiers__mover, body[data-theme] .modal, body[data-theme] .tiers__pools .mode:not(.is-on) { background: color-mix(in srgb, var(--panel-2) 92%, transparent); }
body[data-theme] .foot { background: color-mix(in srgb, var(--bg) 85%, transparent); }
.tiers__name { display: flex; flex-direction: column; gap: 6px; }
.tiers__name span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.tiers__name input { height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(15, 11, 9, .9); color: var(--gold); font-family: var(--fancy); font-size: 22px; outline: none; }
.tiers__name input::placeholder { color: color-mix(in srgb, var(--gold) 55%, transparent); }
.tiers__name input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
body[data-theme] .tiers__name input { background: color-mix(in srgb, var(--panel-2) 92%, transparent); }
.tiers__live { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.tiers__live i { width: 7px; height: 7px; border-radius: 50%; background: #e0555a; animation: live-pulse 2s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(224, 85, 90, .6); } 70% { box-shadow: 0 0 0 8px rgba(224, 85, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 85, 90, 0); } }
.veil { position: fixed !important; inset: 0; z-index: 0 !important; pointer-events: none; -webkit-backdrop-filter: blur(6px) saturate(.85); backdrop-filter: blur(6px) saturate(.85); background: linear-gradient(90deg, transparent, rgba(10, 7, 8, .6) 26%, rgba(10, 7, 8, .68) 50%, rgba(10, 7, 8, .6) 74%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent); mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent); }
@media (max-width: 760px) { .veil { -webkit-mask-image: none; mask-image: none; background: rgba(10, 7, 8, .55); } }
.board { border: 1px solid rgba(181, 138, 47, .55); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); background: linear-gradient(rgba(20, 16, 14, .9), rgba(15, 12, 10, .96)); }
.board::before { display: none; }
.modal { border-width: 1px; box-shadow: 0 30px 80px rgba(0, 0, 0, .8); }
.tile--hit { background: linear-gradient(130deg, #7d5d1c, #a8833a 60%, #93712c); border-color: #a8833a; color: #1a1206; font-weight: 600; }
.row--win .tile--hit { background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3)); border-color: var(--gold-2); }
.sw--hit { background: #a8833a; }
.result { align-items: stretch; gap: 16px; padding: 20px 22px 18px; text-align: left; border: 1px solid rgba(181, 138, 47, .55); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); background: linear-gradient(rgba(22, 16, 13, .95), rgba(14, 10, 9, .97)); }
.res__hero { display: flex; align-items: center; gap: 20px; }
.res__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.res__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid rgba(110, 83, 64, .45); }
.mirror--big { width: 112px; }
.result .result__title { font-size: 36px; margin: 2px 0; }
.result .result__fact { max-width: 52ch; margin-top: 8px; padding-top: 0; border-top: 0; font-size: 14px; }
.result .crowd { width: 100%; padding-top: 0; border-top: 0; }
.result .crowd__bars { height: 56px; }
.result .crowd__bars { width: 100%; }
.res__mini { display: flex; align-items: center; gap: 12px; }
.mini { display: flex; flex-direction: column; gap: 3px; }
.mini span { display: flex; gap: 3px; }
.mini i { width: 11px; height: 11px; border-radius: 3px; background: var(--miss); border: 1px solid var(--line); }
.mini i.m-hit { background: #a8833a; border-color: #a8833a; }
.mini i.m-near { background: var(--near); border-color: var(--near); }
.link-btn { padding: 4px 0; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(214, 173, 79, .4); }
.link-btn:hover { color: var(--text); }
.result .result__btns { justify-content: flex-end; }
.result .result__btns .btn { min-height: 42px; padding: 0 18px; font-size: 17px; }
.result .result__next { text-align: right; margin-top: -6px; font-size: 12px; }
@media (max-width: 520px) { .mirror--big { width: 84px; } .res__hero { gap: 14px; align-items: flex-start; } .result .result__title { font-size: 28px; } .result .result__fact { font-size: 13.5px; } .result { padding: 16px 14px; } .res__foot { flex-direction: column; align-items: stretch; } .res__mini { justify-content: center; } .result .result__btns { justify-content: stretch; } .result .result__btns .btn { flex: 1 1 auto; } .result .result__next { text-align: center; margin-top: 0; } }
.tier__more { flex: 0 0 30px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.tier__more:hover { color: var(--gold); background: rgba(0, 0, 0, .25); }
.tiers__board.has-long .tier__label { flex-basis: 96px; }
.tier__label.is-long { font-size: 17px; line-height: 1.1; padding: 4px 6px; overflow-wrap: anywhere; text-align: center; }
.tiers__add { align-self: flex-start; padding: 8px 14px; border: 1px dashed var(--line-strong); border-radius: 6px; background: none; color: var(--gold); font-family: var(--fancy); font-size: 16px; cursor: pointer; }
.tiers__add:hover { border-color: var(--gold); }
.tiers__pop { position: absolute; z-index: 85; width: 240px; display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--gold-3); border-radius: 10px; background: #17100d; box-shadow: 0 18px 40px rgba(0, 0, 0, .7); }
body[data-theme] .tiers__pop { background: var(--panel-2); }
.tiers__pop label { display: flex; flex-direction: column; gap: 5px; }
.tiers__pop label span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.tiers__pop input { height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(0, 0, 0, .35); color: var(--gold); font-family: var(--fancy); font-size: 19px; outline: none; }
.tiers__pop input:focus { border-color: var(--gold); }
.tiers__pop-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tiers__pop-btns button { min-height: 36px; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(0, 0, 0, .25); color: var(--text); font-family: var(--fancy); font-size: 15px; cursor: pointer; }
.tiers__pop-btns button:hover:not(:disabled) { border-color: var(--gold); }
.tiers__pop-btns button:disabled { opacity: .4; cursor: default; }
.tiers__pop-btns .is-danger { color: #e8909c; }
.tiers__mover button { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
@media (max-width: 520px) { .tiers__board.has-long .tier__label { flex-basis: 70px; } .tier__label.is-long { font-size: 14px; } .tier__more { flex-basis: 24px; } }
.tiers__views { display: inline-flex; align-self: flex-start; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(15, 11, 9, .85); }
.view-btn { min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font-family: var(--fancy); font-size: 16px; cursor: pointer; }
.view-btn:hover { color: var(--gold); }
.view-btn.is-on { background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); color: var(--hit-ink); }
.tiers__banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--gold-3); border-radius: 8px; background: rgba(15, 11, 9, .9); }
.tiers__banner > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.tiers__banner b { font-family: var(--fancy); font-weight: 400; font-size: 20px; color: var(--gold); }
.tiers__banner-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.mono-k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.tiers__tray-btns { display: inline-flex; gap: 14px; }
.tiers__tray-btns button:disabled { opacity: .35; cursor: default; }
.ttile--static { cursor: default; }
.ttile--static:hover { border-color: var(--line-strong); }
.is-readonly .tier__label { cursor: default; }
.tiers__format { display: inline-flex; align-self: center; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.tiers__format button { min-height: 32px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font-family: var(--fancy); font-size: 16px; cursor: pointer; }
.tiers__format button.is-on { background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); color: var(--hit-ink); }
#tier-preview-img.is-story { max-height: 56vh; width: auto; margin: 0 auto; }
.tiers__compare { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(0, 0, 0, .25); text-align: left; }
.tiers__compare p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.tiers__compare b { font-family: var(--fancy); font-weight: 400; color: var(--gold); }
body[data-theme] .tiers__banner, body[data-theme] .tiers__views { background: color-mix(in srgb, var(--panel-2) 92%, transparent); }
.hol__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hol__score { margin: 0; display: flex; gap: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.hol__score span { display: inline-flex; align-items: baseline; gap: 8px; }
.hol__score b { font-family: var(--fancy); font-weight: 400; font-size: 28px; letter-spacing: 0; color: var(--gold); }
.hol__stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 10px; }
.hol__card { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; padding: 16px 14px 18px; border: 2px solid var(--gold-3); border-radius: 10px; background: linear-gradient(rgba(22, 16, 13, .95), rgba(14, 10, 9, .97)); box-shadow: inset 0 0 0 4px #140d0a, inset 0 0 0 5px rgba(205, 163, 69, .35), 0 18px 44px rgba(0, 0, 0, .55); text-align: center; transition: border-color .2s, box-shadow .2s; }
.hol__cover { display: block; width: 100%; max-width: 230px; height: auto; aspect-ratio: 1; border-radius: 6px; box-shadow: 0 10px 26px rgba(0, 0, 0, .6); }
.hol__text { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; width: 100%; }
.hol__title { margin: 0; font-family: var(--fancy); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--gold); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hol__meta { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hol__has { font-family: var(--fancy); font-size: 17px; color: var(--text-2); }
.hol__num { min-height: 44px; font-family: var(--fancy); font-weight: 400; font-size: 38px; line-height: 1.1; color: var(--text); }
.hol__unit { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.hol__btns { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 220px; margin: 4px 0; }
.hol__btns .btn { gap: 10px; width: 100%; }
.hol__btns .btn i { font-style: normal; font-size: 12px; }
.hol__btns .btn[data-dir="down"] { background: linear-gradient(160deg, #a23649, var(--velvet)); color: var(--text); box-shadow: none; }
.hol__vs { align-self: center; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold-3); border-radius: 50%; background: #17100d; box-shadow: 0 0 0 4px rgba(10, 7, 8, .8); font-family: var(--fancy); font-size: 20px; color: var(--gold); }
.hol__card.is-right { border-color: var(--gold); box-shadow: inset 0 0 0 4px #140d0a, inset 0 0 0 5px rgba(214, 173, 79, .6), 0 0 34px rgba(214, 173, 79, .35); }
.hol__card.is-right .hol__num { color: var(--gold); }
.hol__card.is-wrong { border-color: #b4434f; box-shadow: inset 0 0 0 4px #140d0a, inset 0 0 0 5px rgba(180, 67, 79, .5), 0 0 34px rgba(180, 67, 79, .3); }
.hol__card.is-wrong .hol__num { color: #e8909c; }
.hol__stage.is-in .hol__card:first-child { animation: hol-left .35s ease-out; }
.hol__stage.is-in .hol__card.is-guess { animation: hol-right .35s ease-out; }
@keyframes hol-left { from { opacity: .5; transform: translateX(30px); } }
@keyframes hol-right { from { opacity: 0; transform: translateX(30px); } }
.hol__over { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 18px; border: 1px solid rgba(181, 138, 47, .55); border-radius: 10px; background: linear-gradient(rgba(22, 16, 13, .95), rgba(14, 10, 9, .97)); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); text-align: center; }
.hol__final { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hol__final b { font-family: var(--fancy); font-weight: 400; font-size: 72px; line-height: 1; color: var(--gold); text-shadow: 0 0 24px rgba(214, 173, 79, .35); }
.hol__final p { margin: 4px 0 0; font-family: var(--fancy); font-size: 21px; color: var(--text); }
.hol__why { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.hol__why b { font-family: var(--fancy); font-weight: 400; color: var(--gold); }
.hol__over .result__btns { justify-content: center; }
.hol__src { margin: 0; font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--muted); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
@media (max-width: 560px) {
  .hol__stage { grid-template-columns: 1fr; gap: 0; }
  .hol__card { flex-direction: row; align-items: center; gap: 14px; padding: 12px; text-align: left; }
  .hol__cover { width: 104px; flex-shrink: 0; }
  .hol__text { align-items: flex-start; }
  .hol__title { font-size: 22px; }
  .hol__meta { margin-bottom: 2px; }
  .hol__num { font-size: 30px; min-height: 34px; }
  .hol__btns { flex-direction: row; max-width: none; }
  .hol__btns .btn { min-height: 42px; padding: 0 10px; font-size: 16px; gap: 6px; }
  .hol__vs { width: 40px; height: 40px; margin: -8px auto; position: relative; z-index: 1; font-size: 17px; }
  .hol__final b { font-size: 60px; }
}
@media (max-width: 400px) { .games { gap: 14px; } .games a { font-size: 16px; } }
.hub__card { display: flex; align-items: center; gap: 22px; padding: 18px 20px; border: 2px solid var(--gold-3); border-radius: 10px; background: linear-gradient(rgba(22, 16, 13, .95), rgba(14, 10, 9, .97)); box-shadow: inset 0 0 0 4px #140d0a, inset 0 0 0 5px rgba(205, 163, 69, .35), 0 18px 44px rgba(0, 0, 0, .55); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.hub__card:hover { border-color: var(--gold); transform: translateY(-2px); }
.hub__card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hub__card .mirror { width: 92px; }
.hub__pair { flex-shrink: 0; display: flex; align-items: center; width: 160px; }
.hub__pair img { width: 70px; height: 70px; border-radius: 5px; box-shadow: 0 8px 18px rgba(0, 0, 0, .6); }
.hub__pair i { flex-shrink: 0; width: 30px; height: 30px; margin: 0 -4px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold-3); border-radius: 50%; background: #17100d; font-family: var(--fancy); font-style: normal; font-size: 14px; color: var(--gold); }
.hub__text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.hub__text h2 { margin: 0; font-family: var(--fancy); font-weight: 400; font-size: 38px; line-height: 1; color: var(--gold); }
.hub__text p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.hub__live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.hub__live i { width: 7px; height: 7px; border-radius: 50%; background: #e0555a; animation: live-pulse 2s infinite; }
.hub__go { margin-top: 4px; font-family: var(--fancy); font-size: 18px; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(214, 173, 79, .4); }
.hub__more { margin: 4px 0 0; font-family: var(--fancy); font-size: 18px; color: var(--text-2); text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.hub__more a { color: var(--gold); text-underline-offset: 4px; }
@media (max-width: 520px) {
  .hub__card { align-items: flex-start; gap: 14px; padding: 14px; }
  .hub__card .mirror { width: 58px; }
  .hub__pair { flex-direction: column; width: 58px; }
  .hub__pair img { width: 52px; height: 52px; }
  .hub__pair i { width: 26px; height: 26px; margin: -6px 0; font-size: 12px; }
  .hub__text h2 { font-size: 30px; }
  .hub__text p { font-size: 14px; }
}
.hol__live { margin: -6px 0 0; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.hol__live i { width: 7px; height: 7px; border-radius: 50%; background: #e0555a; animation: live-pulse 2s infinite; }
.hol__live b { font-family: var(--fancy); font-weight: 400; font-size: 18px; letter-spacing: 0; color: var(--gold); }
.hol__final .hol__crowd { margin: 2px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
[hidden] { display: none !important; }

@media (max-width: 520px) {
  .curtain { height: 9px; }
  .logo span { font-size: 30px; }
  .logo img { height: 38px; }
  .intro { font-size: 19px; }
  .board { padding: 14px 10px 16px; }
  .tile { min-height: 52px; font-size: 11.5px; padding: 4px 2px; border-radius: 5px; }
  .tile__name { display: none; }
  .tile__img { width: 34px; height: 34px; }
  .board__head { font-size: 9px; letter-spacing: .02em; }
  .board__head, .tiles { gap: 4px; }
  .result__title { font-size: 28px; }
  .mirror { width: 84px; }
  .result__btns .btn { flex: 1 1 auto; }
  .nums b { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .row--new .tile, .shake { animation: none; }
}
