@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; }
main.game:not(.legal):not(.dg):not(.pt) { min-height: 100vh; min-height: 100svh; }
.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: 420px) { .games { gap: 12px; } .games a { font-size: 15.5px; } }
.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); }
.hard-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(20, 16, 14, .8); color: var(--text-2); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.hard-chip:hover { border-color: var(--gold-3); }
.hard-chip__fire { font-size: 20px; filter: grayscale(1) opacity(.55); transition: filter .15s; }
.hard-chip span:last-child { display: flex; flex-direction: column; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; }
.hard-chip b { font-family: var(--fancy); font-weight: 400; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--text); }
.hard-chip.is-on { border-color: #d0603a; background: linear-gradient(130deg, rgba(160, 52, 30, .45), rgba(20, 16, 14, .85)); }
.hard-chip.is-on .hard-chip__fire { filter: none; }
.hard-chip.is-on b { color: #f0a070; }
.hard-nudge { margin: 0; font-size: 15px; color: var(--text-2); }
.hard-nudge .link-btn { font-size: 13px; }
.hol__score em { font-style: normal; }
.hol__final b small { font-size: .42em; color: var(--muted); }
.hol__grid { display: grid; grid-template-columns: repeat(10, 22px); gap: 5px; justify-content: center; }
.hol__grid i { width: 22px; height: 22px; border-radius: 4px; }
.hol__grid i.is-right { background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3)); }
.hol__grid i.is-wrong { background: linear-gradient(160deg, #5c4b40, #3a2e27); }
.hol__grid i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; }
.hol__grid i.is-right::after { content: "✓"; color: var(--hit-ink); }
.hol__grid i.is-wrong::after { content: "✗"; color: #a8957a; }
.hol__next { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.hol__next span { color: var(--text-2); }
@media (max-width: 400px) { .hol__grid { grid-template-columns: repeat(10, 18px); gap: 4px; } .hol__grid i { width: 18px; height: 18px; } }
.quiz__box, .quiz__result { padding: 22px 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); }
.quiz__box { display: flex; flex-direction: column; gap: 14px; }
.quiz__box.is-in, .quiz__result.is-in { animation: quiz-in .3s ease-out; }
@keyframes quiz-in { from { opacity: 0; transform: translateY(10px); } }
.quiz__top { display: flex; justify-content: space-between; align-items: center; }
.quiz__bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.quiz__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); transition: width .3s; }
.quiz__q { margin: 4px 0 0; font-family: var(--fancy); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--gold); }
.quiz__answers { display: grid; gap: 8px; }
.quiz__a { min-height: 52px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(0, 0, 0, .3); color: var(--text); font-family: var(--fancy); font-size: 19px; line-height: 1.25; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.quiz__a:hover { border-color: var(--gold-3); background: rgba(214, 173, 79, .06); }
.quiz__a.is-on { border-color: var(--gold); background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); color: var(--hit-ink); }
.quiz__result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.quiz__mirror { display: flex; justify-content: center; }
.mirror--quiz { width: 150px; }
.quiz__res { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.quiz__song { margin: 0; font-family: var(--fancy); font-weight: 400; font-size: 46px; line-height: 1.02; color: var(--gold); overflow-wrap: anywhere; text-shadow: 0 0 22px rgba(214, 173, 79, .25); }
.quiz__meta { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.quiz__blurb { margin: 6px 0 0; font-family: var(--fancy); font-size: 21px; line-height: 1.35; color: var(--text); }
.quiz__crowd { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.quiz__crowd:empty { display: none; }
.quiz__res .result__fact { margin: 4px 0; text-align: left; }
@media (max-width: 560px) {
  .quiz__q { font-size: 26px; }
  .quiz__a { font-size: 17px; }
  .quiz__result { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; padding: 18px 14px; }
  .quiz__res { align-items: center; }
  .mirror--quiz { width: 112px; }
  .quiz__song { font-size: 38px; }
  .quiz__res .result__btns { justify-content: center; }
}
.ls-player { display: flex; align-items: center; gap: 16px; padding: 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); }
.ls-play { flex-shrink: 0; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); color: var(--hit-ink); cursor: pointer; box-shadow: 0 0 22px rgba(214, 173, 79, .3); transition: transform .12s; }
.ls-play:hover { transform: scale(1.05); }
.ls-play svg { fill: currentColor; }
.ls-play .ls-i-stop, .ls-play.is-playing .ls-i-play { display: none; }
.ls-play.is-playing .ls-i-stop { display: inline; }
.ls-track { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ls-bar { --open: 6.25%; position: relative; height: 14px; border-radius: 7px; background: linear-gradient(90deg, rgba(214, 173, 79, .22) var(--open), rgba(255, 255, 255, .05) var(--open)); overflow: hidden; }
.ls-bar b { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(10, 7, 8, .9); }
.ls-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); }
.ls-under { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ls-under span:first-child { color: var(--gold); }
.ls-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ls-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 14px 0 18px; border: 1px solid #33251e; border-radius: 8px; background: #140e0b; font-family: var(--fancy); font-size: 18px; color: var(--text); box-shadow: inset 4px 0 0 transparent; }
.ls-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-row em { flex-shrink: 0; font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.ls-row.is-next { border-color: var(--gold-3); }
.ls-row.is-skip { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; box-shadow: inset 4px 0 0 #5c4b40; }
.ls-row.is-miss { border-color: #33251e; box-shadow: inset 4px 0 0 #5c4b40; }
.ls-row.is-miss em { color: var(--muted); }
.ls-row.is-near { border-color: #5a2430; box-shadow: inset 4px 0 0 #b4434f; }
.ls-row.is-near em { color: #f0a3ad; }
.ls-row.is-hit { border-color: var(--gold-2); background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3)); color: var(--hit-ink); }
.ls-row.is-hit em { color: var(--hit-ink); }
.listen .guess { display: flex; gap: 8px; align-items: stretch; }
.listen .guess__box { flex: 1; }
.ls-skip { flex-shrink: 0; min-height: 48px; padding: 0 16px; font-size: 16px; }
.ls-result { gap: 14px; }
.ls-res__top { display: flex; align-items: center; gap: 18px; text-align: left; }
.ls-res__top img { width: 120px; height: 120px; border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .6); }
.ls-res__title { margin: 4px 0 2px; font-family: var(--fancy); font-weight: 400; font-size: 40px; line-height: 1.05; color: var(--gold); overflow-wrap: anywhere; }
.ls-res__meta { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ls-res__note { margin: 0; font-size: 14px; color: var(--text-2); }
.ls-res__crowd { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 520px) {
  .ls-player { padding: 14px; gap: 12px; }
  .ls-play { width: 56px; height: 56px; }
  .ls-skip { padding: 0 12px; font-size: 15px; }
  .ls-res__top img { width: 88px; height: 88px; }
  .ls-res__title { font-size: 32px; }
}
.hub__pair--play { justify-content: center; width: 92px; }
.hub__playdot { width: 68px; height: 68px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); color: var(--hit-ink); box-shadow: 0 0 22px rgba(214, 173, 79, .3); }
.hub__playdot svg { fill: currentColor; margin-left: 3px; }
@media (max-width: 520px) { .hub__pair--play { width: 58px; } .hub__playdot { width: 52px; height: 52px; } .hub__playdot svg { width: 26px; height: 26px; } }
.pv-chip { --p: 0; align-self: center; display: inline-flex; align-items: center; gap: 12px; margin-top: 4px; padding: 6px 16px 6px 6px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(0, 0, 0, .35); color: var(--text); cursor: pointer; transition: border-color .15s; }
.pv-chip:hover { border-color: var(--gold-3); }
.pv-chip__btn { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); color: var(--hit-ink); box-shadow: 0 0 14px rgba(214, 173, 79, .25); transition: transform .12s; }
.pv-chip:hover .pv-chip__btn { transform: scale(1.06); }
.pv-chip svg, .pv-dot svg { fill: currentColor; }
.pv-chip .pv-i-play { transform: translateX(1px); }
.pv-wave { display: flex; align-items: center; gap: 2px; width: 150px; height: 28px; }
.pv-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: rgba(241, 228, 200, .26); transition: background .12s; }
.pv-wave i.on { background: var(--gold); }
.pv-chip.is-playing { border-color: var(--gold-3); }
.pv-chip.is-playing .pv-wave i:not(.on) { background: rgba(241, 228, 200, .34); }
.pv-time { min-width: 30px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); text-align: right; }
.pv-chip.is-playing .pv-time { color: var(--gold); }
.pv-chip .pv-i-stop, .pv-chip.is-playing .pv-i-play, .pv-dot .pv-i-stop, .pv-dot.is-playing .pv-i-play { display: none; }
.pv-chip.is-playing .pv-i-stop, .pv-dot.is-playing .pv-i-stop { display: inline; }
.hol__art { position: relative; width: 100%; max-width: 230px; }
.hol__art .hol__cover { max-width: none; }
.pv-dot { --p: 0; position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--p) * 360deg), rgba(10, 7, 8, .85) 0); color: var(--text); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .6); }
.pv-dot::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: rgba(10, 7, 8, .9); }
.pv-dot svg { position: relative; }
.pv-dot:hover, .pv-dot.is-playing { color: var(--gold); }
.quiz__res .pv-chip { align-self: flex-start; }
.result .pv-chip { align-self: flex-start; margin: 8px 0 2px; }
@media (max-width: 400px) { .pv-wave { width: 110px; } }
@media (max-width: 560px) { .hol__art { width: 104px; flex-shrink: 0; } .pv-dot { width: 30px; height: 30px; right: 4px; bottom: 4px; } .pv-dot svg { width: 13px; height: 13px; } .quiz__res .pv-chip { align-self: center; } }
.next { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(110, 83, 64, .45); text-align: left; }
.next__today { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.next__lead { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.next__chips { display: flex; gap: 6px; }
.next__chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--fancy); font-size: 14px; color: var(--muted); }
.next__chip i { font-style: normal; font-family: var(--mono); font-size: 11px; }
.next__chip.is-done { border-color: var(--gold-3); color: var(--gold); }
.next__go { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 12px 16px; border: 1px solid var(--gold-3); border-radius: 10px; background: linear-gradient(130deg, rgba(151, 112, 30, .18), rgba(20, 16, 14, .6)); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.next__go:hover { border-color: var(--gold); transform: translateY(-1px); }
.next__k { grid-column: 1; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.next__go b { grid-column: 1; font-family: var(--fancy); font-weight: 400; font-size: 20px; line-height: 1.2; }
.next__arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 22px; color: var(--gold); }
#tier-next .next { border-top: 0; padding-top: 0; }
.hub__card.is-done { border-color: rgba(181, 138, 47, .5); }
.hub__card.is-done .hub__go { color: var(--muted); text-decoration-color: transparent; }
.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pick__k { margin-right: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.pick__b { min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(20, 16, 14, .8); color: var(--text-2); font-family: var(--fancy); font-size: 15px; cursor: pointer; }
.pick__b:hover { border-color: var(--gold-3); color: var(--text); }
.pick__b.is-on { border-color: var(--gold-2); background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); color: var(--hit-ink); }
.next__fire { font-weight: 400; color: #f0a070; letter-spacing: .06em; }
.next__app { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.next__app span { flex: 1; }
.next__app b { color: var(--text); font-weight: 600; }
.next__install { margin-left: 4px; padding: 4px 12px; border: 1px solid var(--gold-3); border-radius: 999px; background: none; color: var(--gold); font-family: var(--fancy); font-size: 15px; cursor: pointer; }
.next__x { flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.next__x:hover { color: var(--text); }
.fo { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 2px solid var(--gold-3); border-radius: 10px; background: rgba(15, 11, 9, .9); }
body[data-theme] .fo, body[data-theme] .fo__done { background: color-mix(in srgb, var(--panel-2) 92%, transparent); }
.fo__top { display: flex; justify-content: space-between; align-items: center; }
.fo__count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.fo__bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.fo__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); transition: width .25s; }
.fo__pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.fo__card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(0, 0, 0, .3); cursor: pointer; text-align: center; transition: border-color .15s, transform .12s; outline: none; }
.fo__card:hover, .fo__card:focus-visible { border-color: var(--gold); transform: translateY(-2px); }
.fo__art { position: relative; width: 100%; max-width: 220px; }
.fo__art img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 6px; box-shadow: 0 10px 26px rgba(0, 0, 0, .55); }
.fo__title { margin-top: 4px; font-family: var(--fancy); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--gold); overflow-wrap: anywhere; }
.fo__meta { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fo__keys { align-self: center; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.fo__or { align-self: center; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold-3); border-radius: 50%; font-family: var(--fancy); font-size: 18px; color: var(--gold); }
.fo__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fo__done { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 2px solid var(--gold-3); border-radius: 10px; background: rgba(15, 11, 9, .9); }
.fo__tiers { display: grid; gap: 6px; }
.fo__row { display: flex; gap: 12px; align-items: baseline; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .25); }
.fo__row b { min-width: 24px; font-family: var(--fancy); font-weight: 400; font-size: 24px; color: var(--gold); }
.fo__row span { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.fo__note { margin: 0; font-size: 13px; color: var(--muted); }
@media (hover: none) { .fo__keys { display: none; } }
@media (max-width: 560px) { .fo { padding: 12px; } .fo__pair { gap: 8px; } .fo__card { padding: 10px; } .fo__title { font-size: 19px; } .fo__or { width: 34px; height: 34px; font-size: 15px; } }
.fo-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; width: 100%; padding: 16px 20px; border: 2px solid var(--gold-2); border-radius: 12px; background: radial-gradient(80% 140% at 0% 50%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%), rgba(15, 11, 9, .92); box-shadow: 0 0 30px color-mix(in srgb, var(--gold) 20%, transparent), inset 0 0 0 4px rgba(0, 0, 0, .35); color: var(--text); text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.fo-hero:hover { transform: translateY(-2px); box-shadow: 0 0 40px color-mix(in srgb, var(--gold) 32%, transparent), inset 0 0 0 4px rgba(0, 0, 0, .35); }
body[data-theme] .fo-hero { background: radial-gradient(80% 140% at 0% 50%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%), color-mix(in srgb, var(--panel-2) 94%, transparent); }
.fo-hero__vs { display: flex; align-items: center; }
.fo-hero__vs img { width: 56px; height: 56px; border-radius: 6px; box-shadow: 0 6px 16px rgba(0, 0, 0, .6); }
.fo-hero__vs img:first-child { transform: rotate(-6deg); }
.fo-hero__vs img:last-child { transform: rotate(6deg); }
.fo-hero__vs i { position: relative; z-index: 1; width: 30px; height: 30px; margin: 0 -8px; 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: 13px; color: var(--gold); }
.fo-hero__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fo-hero__k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.fo-hero__text b { font-family: var(--fancy); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--text); }
.fo-hero__text span:last-child { font-size: 14px; line-height: 1.45; color: var(--text-2); }
.fo-hero__go { padding: 10px 16px; 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; white-space: nowrap; }
.view-btn--new { position: relative; }
.view-btn--new::after { content: ""; position: absolute; top: 6px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #e0555a; }
.view-btn--new.is-on::after { display: none; }
@media (max-width: 600px) { .fo-hero { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 14px; } .fo-hero__go { grid-column: 1 / -1; text-align: center; } .fo-hero__vs img { width: 44px; height: 44px; } .fo-hero__text b { font-size: 20px; } }
.mirror__mono { position: absolute; left: 22.3%; top: 40.4%; width: 56.5%; height: 45.7%; display: flex; align-items: center; justify-content: center; background: linear-gradient(#2a1a12, #0e0907); font-family: var(--fancy); font-size: 64px; line-height: 1; color: var(--gold); text-shadow: 0 0 18px rgba(214, 173, 79, .5); }
@media (max-width: 560px) { .mirror__mono { font-size: 48px; } }
.new-dot { margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #e0555a; color: #fff; font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
#quiz-tabs { margin-top: 6px; }
.badge-pop { position: fixed; left: 50%; bottom: 18px; z-index: 90; transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--gold-2); border-radius: 14px; background: linear-gradient(130deg, #3d2c12, #17100d 60%); box-shadow: 0 20px 50px rgba(0, 0, 0, .7), 0 0 30px rgba(214, 173, 79, .25); animation: badge-in .35s ease-out; }
.badge-pop.is-out { opacity: 0; transform: translate(-50%, 12px); transition: opacity .25s, transform .25s; }
@keyframes badge-in { from { opacity: 0; transform: translate(-50%, 20px) scale(.96); } }
.badge-pop__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.badge-pop__k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.badge-pop__text b { font-family: var(--fancy); font-weight: 400; font-size: 22px; line-height: 1.1; color: var(--text); }
.badge-pop__text > span:not(.badge-pop__k) { font-size: 13px; color: var(--text-2); }
.badge-pop__text a { margin-top: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.badge-pop__x { align-self: flex-start; flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.badges { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 20px; }
.badges__head { display: flex; align-items: baseline; justify-content: space-between; }
.badges__head h2 { margin: 0; font-family: var(--fancy); font-weight: 400; font-size: 30px; color: var(--gold); text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.badges__empty, .badges__note { margin: 0; font-size: 14px; color: var(--text-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.badges__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bdg { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border: 1px solid #2e2420; border-radius: 12px; background: rgba(15, 11, 9, .88); text-align: center; }
.bdg > b { font-family: var(--fancy); font-weight: 400; font-size: 17px; line-height: 1.15; color: var(--muted); }
.bdg > span:not(.coin) { font-size: 12px; line-height: 1.35; color: var(--faint); }
.bdg em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.bdg.is-on { border-color: var(--gold-3); background: linear-gradient(160deg, rgba(151, 112, 30, .25), rgba(15, 11, 9, .9) 60%); }
.bdg.is-on > b { color: var(--gold); }
.bdg.is-on > span:not(.coin) { color: var(--text-2); }
.bdg.is-on em { color: var(--gold); }
@media (max-width: 560px) { .badges__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.coin { flex-shrink: 0; position: relative; width: 58px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, #e4c15a, #c9a040 55%, #97701e); box-shadow: inset 0 0 0 2px #6e4f17, inset 0 0 0 6px rgba(255, 236, 170, .25), inset 0 0 0 7px rgba(28, 18, 6, .4), 0 6px 14px rgba(0, 0, 0, .5); color: #1c1206; }
.coin b { font-family: var(--fancy); font-weight: 400; font-size: 24px; line-height: 1; }
.coin i { margin-top: 2px; font-style: normal; font-family: var(--mono); font-size: 7.5px; letter-spacing: .08em; text-transform: uppercase; }
.coin.is-off { background: #1d1512; box-shadow: inset 0 0 0 2px #3a2a22, inset 0 0 0 7px #2e2420; color: #5b4a40; }
.games a.games__badges { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--gold); }
.games a.games__badges:hover { color: var(--text); }
.mini-coin { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: linear-gradient(135deg, #e4c15a, #c9a040 55%, #97701e); box-shadow: inset 0 0 0 1.5px #6e4f17; color: #1c1206; font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 1; }
@media (max-width: 420px) { .games__bl { display: none; } }
[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; }
}
.pt { gap: 14px; }
.pt-logo-em { font-style: normal; color: var(--text); }
.pt-round { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.pt-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(15, 11, 9, .9); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.pt-h { margin: 0; font-family: var(--fancy); font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--gold); }
.pt-h2 { margin: 0; font-family: var(--fancy); font-weight: 400; font-size: 21px; color: var(--text); }
.pt-msg p, .pt-how, .pt-wait p { margin: 0; color: var(--text-2); }
.pt-msg a { color: var(--gold); }
.pt-how b, .pt-wait b { color: var(--gold); font-weight: 600; }
.pt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pt-players { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pt-players li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.pt-players li.is-me { background: rgba(214, 173, 79, .1); box-shadow: inset 0 0 0 1px rgba(214, 173, 79, .35); }
.pt-players li.is-off { opacity: .45; }
.pt-rank { width: 18px; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pt-coin { flex-shrink: 0; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #1d1512; box-shadow: inset 0 0 0 2px #6e5340; font-family: var(--fancy); font-size: 18px; color: var(--text-2); }
.pt-coin.is-gold { background: linear-gradient(135deg, #e4c15a, #c9a040 55%, #97701e); box-shadow: inset 0 0 0 2px #6e4f17, 0 0 14px rgba(214, 173, 79, .35); color: #1c1206; }
.pt-coin--big { width: 74px; height: 74px; font-size: 38px; }
.pt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--fancy); font-size: 18px; }
.pt-name i { font-style: normal; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.pt-tag { flex-shrink: 0; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pt-tag.is-ok { color: var(--gold); }
.pt-tag.is-out { color: #c77b85; }
.pt-score { min-width: 44px; text-align: right; font-family: var(--mono); font-size: 15px; color: var(--text); }
.pt-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-opts .mode { min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); font-size: 16px; }
.pt-opts .mode.is-on { border-color: var(--gold); }
.pt-start { align-self: flex-start; margin-top: 4px; }
.pt-ok { color: var(--gold) !important; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pt-wait { align-items: flex-start; }
.pt-stagecard { align-items: center; text-align: center; border: 2px solid var(--gold-3); 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); }
.pt-stagebox { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pt-stagebox b { font-family: var(--fancy); font-weight: 400; font-size: 46px; line-height: 1.1; color: var(--gold); text-shadow: 0 0 22px rgba(214, 173, 79, .3); }
.pt-stagebox span:last-child { font-size: 14px; color: var(--text-2); }
.pt-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; width: 100%; }
.pt-steps li { padding: 6px 0; border-radius: 6px; background: rgba(255, 255, 255, .05); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pt-steps li.is-on { background: rgba(214, 173, 79, .22); color: var(--text); }
.pt-steps li.is-now { background: linear-gradient(130deg, var(--gold-1), var(--gold-2)); color: var(--hit-ink); }
.pt-sound { align-self: center; }
.pt-mine p { margin: 0; }
.pt-wrong { margin: 0 0 6px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pt-wrong li { padding: 3px 10px; border-radius: 999px; background: rgba(138, 44, 62, .35); font-size: 14px; color: var(--near-ink); text-decoration: line-through; }
.pt-got { font-family: var(--fancy); font-size: 24px; color: var(--gold); }
.pt-out { color: var(--text-2); }
.pt-left { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pt-reveal, .pt-win { flex-direction: row; align-items: center; gap: 18px; }
.pt-cover { flex-shrink: 0; width: 120px; height: 120px; border-radius: 6px; box-shadow: 0 10px 26px rgba(0, 0, 0, .6); }
.pt-title { margin: 2px 0 0; font-family: var(--fancy); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--text); }
.pt-meta { margin: 2px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pt-fast { margin: 8px 0 0; color: var(--text-2); }
.pt-fast b { color: var(--gold); }
.pt-songs { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.pt-songs li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.pt-songs img { border-radius: 3px; }
.pt-btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 520px) { .pt-card { padding: 14px; } .pt-h { font-size: 23px; } .pt-stagebox b { font-size: 38px; } .pt-cover { width: 88px; height: 88px; } .pt-title { font-size: 27px; } .pt-reveal, .pt-win { gap: 12px; } }
.pt-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pt-game { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255, 255, 255, .03); color: var(--text-2); text-align: left; font: inherit; cursor: pointer; }
.pt-game b { font-family: var(--fancy); font-weight: 400; font-size: 21px; color: var(--text); }
.pt-game span { font-size: 13.5px; line-height: 1.4; }
.pt-game:hover:not([disabled]) { border-color: var(--gold-3); }
.pt-game.is-on { border-color: var(--gold); background: linear-gradient(150deg, rgba(151, 112, 30, .3), rgba(15, 11, 9, .9) 70%); box-shadow: 0 0 18px rgba(214, 173, 79, .15); }
.pt-game.is-on b { color: var(--gold); }
.pt-game[disabled] { cursor: default; }
.pt-game[disabled]:not(.is-on) { opacity: .45; }
.pt-note { margin: 0; font-size: 13px; color: var(--muted); }
.pt-q { text-align: center; }
.pt-q b { color: var(--text); font-weight: 400; }
.pt-time { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.pt-time i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); transition: width .05s linear; }
.pt-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.pt-vs { font-family: var(--fancy); font-size: 24px; color: var(--muted); }
.pt-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border: 2px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, .03); color: var(--text); font: inherit; text-align: center; cursor: pointer; transition: border-color .15s, transform .1s; }
.pt-pick:hover { border-color: var(--gold-3); }
.pt-pick:active { transform: scale(.98); }
.pt-pick img { width: min(150px, 100%); height: auto; aspect-ratio: 1; border-radius: 6px; box-shadow: 0 8px 22px rgba(0, 0, 0, .6); }
.pt-pick b { font-family: var(--fancy); font-weight: 400; font-size: 21px; line-height: 1.15; }
.pt-pick span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pt-pick em { font-style: normal; font-family: var(--mono); font-size: 16px; color: var(--text-2); }
.pt-pick.is-mine { border-color: var(--gold); box-shadow: 0 0 20px rgba(214, 173, 79, .25); }
.pt-pick.is-right { border-color: var(--gold); background: linear-gradient(160deg, rgba(151, 112, 30, .35), rgba(15, 11, 9, .9) 70%); }
.pt-pick.is-right em { color: var(--gold); }
.pt-pick.is-wrong { opacity: .55; }
.pt-status { margin: 0; text-align: center; color: var(--text-2); }
.pt-votesong { display: flex; align-items: center; gap: 16px; }
.pt-votesong img { flex-shrink: 0; width: 110px; height: 110px; border-radius: 6px; box-shadow: 0 10px 26px rgba(0, 0, 0, .6); }
.pt-votesong .pt-sound { margin-top: 8px; min-height: 38px; font-size: 16px; }
.pt-tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pt-tierbtn { min-height: 58px; border: 2px solid #6e5340; border-radius: 10px; background: linear-gradient(#1f1612, #120c0a); color: var(--text-2); font-family: var(--fancy); font-size: 28px; cursor: pointer; box-shadow: inset 0 0 0 3px #120c0a, inset 0 0 0 4px rgba(205, 163, 69, .25); }
.pt-tierbtn:hover { border-color: var(--gold-3); color: var(--text); }
.pt-tierbtn.is-on { border-color: var(--gold); background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); color: var(--hit-ink); }
.pt-placed { margin: 6px 0 0; font-size: 18px; color: var(--text-2); }
.pt-placed b { font-family: var(--fancy); font-weight: 400; font-size: 34px; color: var(--gold); }
.pt-tierlist { display: flex; flex-direction: column; gap: 4px; }
.pt-tier { display: flex; align-items: stretch; gap: 6px; min-height: 44px; }
.pt-tierl { flex-shrink: 0; width: 44px; display: flex; align-items: center; justify-content: center; border: 2px solid #6e5340; border-radius: 6px; background: linear-gradient(#1f1612, #120c0a); font-family: var(--fancy); font-weight: 400; font-size: 22px; color: var(--gold); }
.pt-tierc { flex: 1; display: flex; flex-wrap: wrap; align-content: center; gap: 4px; padding: 4px; border-radius: 6px; background: rgba(255, 255, 255, .03); }
.pt-tierc img { width: 34px; height: 34px; border-radius: 3px; }
.pt-tierlist.is-small .pt-tier { min-height: 34px; }
.pt-tierlist.is-small .pt-tierl { width: 34px; font-size: 17px; }
.pt-tierlist.is-small .pt-tierc img { width: 26px; height: 26px; }
.pt-gh, .pt-grow { display: grid; grid-template-columns: minmax(90px, 1.3fr) repeat(6, minmax(0, 1fr)); gap: 4px; align-items: center; }
.pt-gh span { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.pt-grid { display: flex; flex-direction: column; gap: 4px; }
.pt-gtiles { display: contents; }
.pt-gname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--fancy); font-size: 16px; }
.pt-gtiles i { min-height: 34px; display: flex; align-items: center; justify-content: center; padding: 2px; border-radius: 5px; font-style: normal; font-size: 11.5px; line-height: 1.15; text-align: center; overflow: hidden; }
.pt-gtiles i.t-hit { background: var(--hit); color: var(--hit-ink); }
.pt-gtiles i.t-near { background: var(--near); color: var(--near-ink); }
.pt-gtiles i.t-miss { background: #241a16; color: var(--text-2); }
.pt-grid.is-mini .pt-grow { display: flex; gap: 3px; }
.pt-grid.is-mini .pt-gtiles i { width: 14px; min-height: 14px; height: 14px; padding: 0; border-radius: 3px; }
.pt-grid.is-mini { gap: 3px; }
.pt-others { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pt-other { display: flex; flex-direction: column; gap: 6px; }
.pt-other.is-off { opacity: .45; }
.pt-other .pt-row { justify-content: flex-start; }
.pt-other .pt-coin { width: 26px; height: 26px; font-size: 14px; }
.pt-other .pt-name { font-size: 16px; }
.pt-reveal + .pt-card + .pt-card .pt-others { grid-template-columns: 1fr; }
@media (max-width: 520px) { .pt-menu { grid-template-columns: 1fr; } .pt-pick b { font-size: 18px; } .pt-vs { font-size: 18px; } .pt-tierbtn { min-height: 50px; font-size: 24px; } .pt-gh, .pt-grow { grid-template-columns: minmax(64px, 1fr) repeat(6, minmax(0, 1fr)); } .pt-gtiles i { font-size: 10px; min-height: 30px; } .pt-votesong img { width: 84px; height: 84px; } }
.legal { gap: 12px; padding-bottom: 56px; }
.legal h1 { margin: 6px 0 0; font-family: var(--fancy); font-weight: 400; font-size: 40px; line-height: 1.1; color: var(--gold); text-shadow: 0 1px 14px rgba(0, 0, 0, .9); }
.legal h2 { margin: 18px 0 0; font-family: var(--fancy); font-weight: 400; font-size: 25px; color: var(--text); text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.legal p, .legal li { color: var(--text-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.legal p { margin: 0; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal b { color: var(--text); font-weight: 600; }
.legal a { color: var(--gold); text-underline-offset: 3px; }
.legal__date { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; }
.legal__other { margin-top: 12px !important; }
.legal { position: relative; }
.legal::before { content: ""; position: absolute; inset: 0 -8px; z-index: -1; border-radius: 14px; background: rgba(10, 7, 8, .72); }
.guide__lead { font-family: var(--fancy); font-size: 21px; line-height: 1.35; color: var(--text) !important; }
.guide h3 { margin: 0; font-family: var(--fancy); font-weight: 400; font-size: 22px; color: var(--gold); }
.guide code { padding: 1px 7px; border-radius: 5px; background: rgba(214, 173, 79, .14); font-family: var(--mono); font-size: 14px; color: var(--text); }
.guide__steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.guide__steps li { padding-left: 4px; }
.guide__cmds { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.guide__cmds div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.guide__cmds dd { margin: 0; color: var(--text-2); }
.guide__game { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(15, 11, 9, .7); }
.hub__card--discord .hub__dc { flex-shrink: 0; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; border-radius: 24px; background: linear-gradient(135deg, #e4c15a, #c9a040 55%, #97701e); color: #1c1206; font-family: var(--mono); font-size: 22px; font-weight: 600; box-shadow: inset 0 0 0 3px #6e4f17, 0 10px 26px rgba(0, 0, 0, .55); }
@media (max-width: 520px) { .guide__cmds div { grid-template-columns: 1fr; gap: 2px; } .hub__card--discord .hub__dc { width: 84px; height: 84px; font-size: 17px; border-radius: 18px; } }
.dg { max-width: 980px; gap: 26px; }
.dg-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 18px 26px; text-align: center; border: 2px solid var(--gold-3); border-radius: 16px; background: radial-gradient(120% 90% at 50% 0%, rgba(151, 112, 30, .35), rgba(15, 11, 9, .92) 60%); box-shadow: inset 0 0 0 4px #140d0a, inset 0 0 0 5px rgba(205, 163, 69, .35), 0 24px 60px rgba(0, 0, 0, .6); }
.dg-hero h1 { margin: 0; max-width: 720px; font-family: var(--fancy); font-weight: 400; font-size: clamp(32px, 6vw, 54px); line-height: 1.05; color: var(--gold); text-shadow: 0 0 30px rgba(214, 173, 79, .25); }
.dg-hero p { margin: 0; max-width: 600px; font-size: 17px; color: var(--text-2); }
.dg-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.dg-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold) !important; }
.dg-live i { width: 8px; height: 8px; border-radius: 50%; background: #5fbf6a; box-shadow: 0 0 10px #5fbf6a; }
.dg-game { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.dg-game--flip .dg-screen { order: 2; }
.dg-copy { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 14px; background: rgba(10, 7, 8, .8); text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.dg-copy h2 { margin: 0; font-family: var(--fancy); font-weight: 400; font-size: 38px; line-height: 1.05; color: var(--gold); }
.dg-cmd { align-self: flex-start; padding: 3px 10px; border-radius: 6px; background: rgba(214, 173, 79, .16); font-family: var(--mono); font-size: 14px; color: var(--text); }
.dg-pitch { margin: 0; font-family: var(--fancy); font-size: 22px; line-height: 1.3; color: var(--text); }
.dg-copy ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }
.dg-screen { position: relative; min-height: 330px; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 2px solid var(--gold-3); border-radius: 14px; background: linear-gradient(rgba(22, 16, 13, .97), rgba(12, 9, 8, .98)); box-shadow: inset 0 0 0 4px #140d0a, inset 0 0 0 5px rgba(205, 163, 69, .3), 0 22px 50px rgba(0, 0, 0, .6); overflow: hidden; }
.dg-block { padding: 22px 20px; border-radius: 14px; background: rgba(10, 7, 8, .78); }
.dgx-top { display: flex; justify-content: space-between; gap: 8px; }
.dgx-players { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.dgx-players li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; background: rgba(255, 255, 255, .03); transition: background .3s; }
.dgx-players li[data-p="you"] { box-shadow: inset 0 0 0 1px rgba(214, 173, 79, .35); }
.dgx-players .pt-coin { width: 26px; height: 26px; font-size: 14px; }
.dgx-name { flex: 1; font-family: var(--fancy); font-size: 16px; }
.dgx-score { min-width: 34px; text-align: right; font-family: var(--mono); font-size: 13px; }
.dgx-players li.is-flash { animation: dg-flash .9s ease-out; }
@keyframes dg-flash { 0% { background: rgba(214, 173, 79, .45); } 100% { background: rgba(255, 255, 255, .03); } }
.dgx-reveal { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--gold); border-radius: 12px; background: linear-gradient(150deg, rgba(151, 112, 30, .55), #17100d 70%); box-shadow: 0 -10px 30px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .35s; pointer-events: none; }
.dgx-reveal.is-on { opacity: 1; transform: none; }
.dgx-reveal img { border-radius: 6px; }
.dgx-reveal div { display: flex; flex-direction: column; }
.dgx-reveal b { font-family: var(--fancy); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--text); }
.dgx-reveal span:last-child { font-size: 13px; color: var(--text-2); }
.dgl-stage { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; }
.dgl-big { font-family: var(--fancy); font-weight: 400; font-size: 38px; line-height: 1.1; color: var(--gold); text-shadow: 0 0 22px rgba(214, 173, 79, .3); }
.dgl-pts { min-height: 18px; font-size: 13px; color: var(--text-2); }
.dgl-eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.dgl-eq i { width: 4px; height: 4px; border-radius: 2px; background: var(--gold-3); }
.dgl-eq.is-on i { animation: dg-eq .45s ease-in-out infinite alternate; background: var(--gold); }
.dgl-eq.is-on i:nth-child(2n) { animation-delay: .15s; }
.dgl-eq.is-on i:nth-child(3n) { animation-delay: .3s; }
@keyframes dg-eq { from { height: 4px; } to { height: 22px; } }
.dgl-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.dgl-steps li { padding: 4px 0; border-radius: 5px; background: rgba(255, 255, 255, .05); text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); transition: background .2s; }
.dgl-steps li.is-on { background: rgba(214, 173, 79, .22); color: var(--text); }
.dgl-steps li.is-now { background: linear-gradient(130deg, var(--gold-1), var(--gold-2)); color: var(--hit-ink); }
.dgh-q { text-align: center; font-family: var(--fancy); font-weight: 400; font-size: 22px; color: var(--gold); }
.dgh-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.dgh-card { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border: 2px solid var(--line-strong); border-radius: 12px; text-align: center; transition: border-color .25s, opacity .25s, background .25s; }
.dgh-card img { width: 86px; height: 86px; border-radius: 6px; box-shadow: 0 8px 20px rgba(0, 0, 0, .6); }
.dgh-card b { font-family: var(--fancy); font-weight: 400; font-size: 17px; line-height: 1.15; }
.dgh-card span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--muted); }
.dgh-card em { min-height: 18px; font-style: normal; font-family: var(--mono); font-size: 14px; color: var(--gold); }
.dgh-card.is-mine { border-color: var(--gold); }
.dgh-card.is-right { border-color: var(--gold); background: linear-gradient(160deg, rgba(151, 112, 30, .4), transparent 70%); }
.dgh-card.is-wrong { opacity: .5; }
.dgr-song { display: flex; align-items: center; gap: 12px; }
.dgr-song img { border-radius: 6px; box-shadow: 0 8px 20px rgba(0, 0, 0, .6); }
.dgr-song b { display: block; font-family: var(--fancy); font-weight: 400; font-size: 24px; line-height: 1.1; }
.dgr-say { font-size: 14px; color: var(--text-2); }
.dgr-say strong { font-family: var(--fancy); font-weight: 400; font-size: 24px; color: var(--gold); }
.dgr-tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.dgr-t { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border: 2px solid #6e5340; border-radius: 9px; background: linear-gradient(#1f1612, #120c0a); transition: background .25s, border-color .25s; }
.dgr-t > b { font-family: var(--fancy); font-weight: 400; font-size: 20px; color: var(--text-2); }
.dgr-t.is-on { border-color: var(--gold); background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); }
.dgr-t.is-on > b { color: var(--hit-ink); }
.dgr-votes { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; min-height: 18px; }
.pt-coin.is-mini { width: 18px; height: 18px; font-size: 10px; animation: dg-pop .25s ease-out; }
@keyframes dg-pop { from { transform: scale(0); } to { transform: scale(1); } }
.dgr-list { display: flex; flex-direction: column; gap: 3px; }
.dgr-row { display: flex; align-items: center; gap: 6px; min-height: 30px; }
.dgr-row b { width: 26px; text-align: center; font-family: var(--fancy); font-weight: 400; font-size: 16px; color: var(--gold); }
.dgr-row span { flex: 1; display: flex; gap: 3px; min-height: 30px; align-items: center; padding: 1px 4px; border-radius: 5px; background: rgba(255, 255, 255, .03); }
.dgr-row img { border-radius: 3px; animation: dg-pop .3s ease-out; }
.dgb-grids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dgb-p { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dgb-who { display: flex; align-items: center; gap: 6px; font-family: var(--fancy); font-size: 16px; }
.dgb-who .pt-coin { width: 24px; height: 24px; font-size: 13px; }
.dgb-grid { display: flex; flex-direction: column; gap: 4px; min-height: 150px; }
.dgb-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; animation: dg-pop .25s ease-out; }
.dgb-row i { width: 18px; height: 18px; border-radius: 4px; }
.dgb-row i.t-hit { background: var(--hit); }
.dgb-row i.t-near { background: var(--near); }
.dgb-row i.t-miss { background: #2a1f1a; }
@media (max-width: 760px) { .dg-game { grid-template-columns: 1fr; gap: 14px; } .dg-game--flip .dg-screen { order: 0; } .dg-copy h2 { font-size: 32px; } }
@media (max-width: 420px) { .dgb-row i { width: 13px; height: 13px; } .dgh-card img { width: 70px; height: 70px; } .dg-screen { padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .dgl-eq.is-on i, .dgx-players li.is-flash, .pt-coin.is-mini, .dgr-row img, .dgb-row { animation: none; } }
.dg-add { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 20px; text-align: center; border: 2px solid var(--gold); border-radius: 16px; background: radial-gradient(110% 80% at 50% 0%, rgba(151, 112, 30, .45), rgba(15, 11, 9, .94) 65%); box-shadow: inset 0 0 0 4px #140d0a, inset 0 0 0 5px rgba(205, 163, 69, .4), 0 0 40px rgba(214, 173, 79, .18), 0 24px 60px rgba(0, 0, 0, .6); }
.dg-add h2 { margin: 0; font-family: var(--fancy); font-weight: 400; font-size: clamp(32px, 5vw, 46px); line-height: 1.05; color: var(--gold); }
.dg-add-lead { margin: 0; font-family: var(--fancy); font-size: 21px; color: var(--text); }
.dg-add-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 760px; margin-top: 6px; }
.dg-add-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(10, 7, 8, .6); }
.dg-add-card h3 { margin: 0; font-family: var(--fancy); font-weight: 400; font-size: 24px; color: var(--text); }
.dg-add-card p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.dg-add-card code { padding: 1px 6px; border-radius: 5px; background: rgba(214, 173, 79, .14); font-family: var(--mono); font-size: 13px; color: var(--text); }
.dg-add-ico { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, #e4c15a, #c9a040 55%, #97701e); box-shadow: inset 0 0 0 2px #6e4f17, 0 6px 16px rgba(0, 0, 0, .5); font-family: var(--mono); font-size: 24px; font-weight: 600; color: #1c1206; }
.dg-add-btn { min-height: 56px; padding: 0 34px; font-size: 22px; margin-top: 8px; box-shadow: 0 0 30px rgba(214, 173, 79, .35); animation: dg-glow 2.6s ease-in-out infinite; }
@keyframes dg-glow { 0%, 100% { box-shadow: 0 0 18px rgba(214, 173, 79, .25); } 50% { box-shadow: 0 0 40px rgba(214, 173, 79, .55); } }
.dg-add-note { margin: 0; font-size: 13.5px; color: var(--muted); }
.dgf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: center; padding: 22px; border: 2px solid var(--gold-3); border-radius: 16px; background: radial-gradient(120% 90% at 0% 0%, rgba(151, 112, 30, .32), rgba(15, 11, 9, .93) 60%); box-shadow: inset 0 0 0 4px #140d0a, inset 0 0 0 5px rgba(205, 163, 69, .35), 0 22px 54px rgba(0, 0, 0, .6); }
.dgf-copy { display: flex; flex-direction: column; gap: 10px; }
.dgf-copy h2 { margin: 0; font-family: var(--fancy); font-weight: 400; font-size: 40px; line-height: 1.05; color: var(--gold); }
.dgf-copy p { margin: 0; color: var(--text-2); }
.dgf-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.dgf-tab { min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text-2); font-family: var(--fancy); font-size: 15px; cursor: pointer; }
.dgf-tab:hover { border-color: var(--gold-3); color: var(--text); }
.dgf-tab.is-on { border-color: var(--gold); background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); color: var(--hit-ink); }
.dgf .dg-cta { justify-content: flex-start; }
.dgf .dg-screen { min-height: 340px; }
@media (max-width: 760px) { .dgf { grid-template-columns: 1fr; padding: 16px; } .dgf-copy h2 { font-size: 34px; } .dg-add-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .dg-add-btn { animation: none; } }
.dg-sec { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.dg-sec > h2 { margin: 0; font-family: var(--fancy); font-weight: 400; font-size: clamp(30px, 5vw, 42px); line-height: 1.05; color: var(--gold); text-shadow: 0 1px 14px rgba(0, 0, 0, .9); }
.dg-sec > .mono-k { text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.dg-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 6px; }
.dg-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 14px 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(12, 9, 8, .9); }
.dg-step h3 { margin: 4px 0 0; font-family: var(--fancy); font-weight: 400; font-size: 22px; color: var(--text); }
.dg-step h3 code, .dg-tip b { font-family: var(--mono); font-size: .8em; padding: 1px 6px; border-radius: 5px; background: rgba(214, 173, 79, .14); }
.dg-step p { margin: 0; font-size: 14px; color: var(--text-2); }
.dg-num { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, #e4c15a, #c9a040 55%, #97701e); box-shadow: inset 0 0 0 2px #6e4f17, 0 6px 14px rgba(0, 0, 0, .5); font-family: var(--fancy); font-size: 19px; color: #1c1206; }
.dg-mock { position: relative; width: 100%; height: 148px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px; border-radius: 10px; background: #1e1f22; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); font-family: var(--sans); text-align: left; overflow: hidden; }
.dg-bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 8px; background: #383a40; color: #dbdee1; font-size: 14px; }
.dg-plus { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #b5bac1; color: #383a40; font-weight: 700; font-size: 14px; }
.dg-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; border-right: 2px solid #dbdee1; font-family: var(--mono); animation: dg-type 4.2s steps(5, end) infinite; }
@keyframes dg-type { 0% { width: 0; } 30%, 100% { width: 5ch; } }
.dg-pop { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #2b2d31; color: #dbdee1; font-size: 13px; opacity: 0; transform: translateY(6px); animation: dg-popin 4.2s ease-out infinite; }
.dg-pop img { border-radius: 5px; }
.dg-pop b { font-family: var(--mono); color: #fff; }
.dg-pop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b5bac1; }
@keyframes dg-popin { 0%, 34% { opacity: 0; transform: translateY(6px); } 42%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.dg-mock--auth { align-items: center; justify-content: center; gap: 4px; padding: 14px 10px; text-align: center; }
.dg-mock--auth img { border-radius: 10px; }
.dg-mock--auth b { color: #fff; font-size: 14px; }
.dg-mock--auth span { color: #b5bac1; font-size: 12px; }
.dg-authbtn { margin-top: 4px; padding: 5px 16px; border-radius: 6px; background: #5865f2; color: #fff; font-style: normal; font-size: 13px; font-weight: 600; animation: dg-press 3s ease-in-out infinite; }
@keyframes dg-press { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(.92); } 80% { transform: scale(1); } }
.dg-mock--menu { align-items: center; justify-content: center; gap: 8px; background: linear-gradient(#1f1612, #120c0a); }
.dg-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 100%; }
.dg-minis i { padding: 6px 4px; border: 1px solid #3a2a22; border-radius: 6px; font-style: normal; font-family: var(--fancy); font-size: 12px; color: var(--text-2); text-align: center; }
.dg-minis i.is-on { border-color: var(--gold); color: var(--gold); background: rgba(151, 112, 30, .25); }
.dg-join { padding: 4px 18px; border-radius: 6px; background: #248046; color: #fff; font-style: normal; font-family: var(--sans); font-size: 13px; font-weight: 600; animation: dg-joinglow 2s ease-in-out infinite; }
@keyframes dg-joinglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(36, 128, 70, .6); } 50% { box-shadow: 0 0 0 6px rgba(36, 128, 70, 0); } }
.dg-tip { margin: 0; max-width: 640px; font-size: 14.5px; color: var(--text-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.dg-slash { width: 100%; max-width: 720px; border-radius: 12px; background: #2b2d31; box-shadow: 0 18px 44px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; text-align: left; font-family: var(--sans); }
.dg-slash-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #232428; color: #dbdee1; font-size: 13px; font-weight: 600; }
.dg-slash-head img { border-radius: 4px; }
.dg-slash ul { margin: 0; padding: 6px; list-style: none; }
.dg-slash li { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 6px; }
.dg-slash li:hover { background: #35373c; }
.dg-slash li b { font-family: var(--mono); font-size: 15px; font-weight: 600; color: #f2f3f5; }
.dg-slash li span { font-size: 13px; color: #b5bac1; }
.dg-know { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 4px; }
.dg-know-t { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(12, 9, 8, .9); }
.dg-know-t h3 { margin: 2px 0 0; font-family: var(--fancy); font-weight: 400; font-size: 20px; color: var(--gold); }
.dg-know-t p { margin: 0; font-size: 14px; color: var(--text-2); }
.dg-know-t .coin b { font-size: 20px; }
.dg-foot { margin: 0; padding: 14px 18px; border-radius: 12px; background: rgba(10, 7, 8, .75); text-align: center; font-size: 14px; color: var(--text-2); }
.dg-foot a { color: var(--gold); }
@media (max-width: 760px) { .dg-steps { grid-template-columns: 1fr; gap: 24px; } .dg-know { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .dg-know { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .dg-type { animation: none; width: 5ch; } .dg-pop { animation: none; opacity: 1; transform: none; } .dg-authbtn, .dg-join { animation: none; } }
.fx-in { animation: fx-in .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes fx-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.fx-burst { position: fixed; z-index: 95; width: 0; height: 0; pointer-events: none; }
.fx-burst i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6dd86, #c9a040 55%, #8a6519); box-shadow: inset 0 0 0 1.5px #6e4f17, 0 2px 6px rgba(0, 0, 0, .4); opacity: 0; animation: fx-coin 1.5s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes fx-coin { 0% { opacity: 1; transform: translate(0, 0) scale(var(--s)) rotate(0deg); } 55% { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(var(--s)) rotate(calc(var(--r) * .6)); } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 140px)) scale(var(--s)) rotate(var(--r)); } }
.fx-streak { display: inline-flex; align-items: center; gap: 10px; margin-top: 2px; }
.fx-streak .coin { width: 46px; height: 46px; animation: fx-pop .5s .35s cubic-bezier(.2, 1.6, .4, 1) both; }
.fx-streak .coin b { font-size: 19px; }
.fx-streak .coin i { font-size: 6.5px; }
.fx-streak > span:last-child { font-family: var(--fancy); font-size: 17px; color: var(--gold); }
@keyframes fx-pop { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .fx-in, .fx-streak .coin { animation: none; } }
.hubx-grid { flex-shrink: 0; width: 120px; display: flex; flex-direction: column; gap: 4px; padding: 9px; border: 2px solid var(--gold-3); border-radius: 8px; background: #0f0b09; box-shadow: inset 0 0 0 2px #140d0a, 0 8px 18px rgba(0, 0, 0, .5); transition: box-shadow .3s; }
.hubx-grid.is-won { box-shadow: inset 0 0 0 2px #140d0a, 0 0 22px rgba(214, 173, 79, .45); }
.hubx-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.hubx-row i { aspect-ratio: 1; border-radius: 3px; background: #1d1512; transition: background .25s, transform .25s; }
.hubx-row.is-on i { transform: scale(1); }
.hubx-row.is-on i.t-hit { background: var(--hit); }
.hubx-row.is-on i.t-near { background: var(--near); }
.hubx-row.is-on i.t-miss { background: #3a2a22; }
.hubx-listen { flex-direction: column; gap: 10px; width: 120px; }
.hubx-listen .hub__playdot { position: relative; }
.hubx-listen .hub__playdot::before, .hubx-listen .hub__playdot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; }
.hubx-listen.is-playing .hub__playdot::before { animation: hubx-ring 1.4s ease-out infinite; }
.hubx-listen.is-playing .hub__playdot::after { animation: hubx-ring 1.4s .7s ease-out infinite; }
@keyframes hubx-ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
.hubx-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; width: 100%; }
.hubx-steps li { padding: 2px 0; border-radius: 4px; background: rgba(255, 255, 255, .06); font-family: var(--mono); font-size: 10px; text-align: center; color: var(--muted); transition: background .2s; }
.hubx-steps li.is-on { background: rgba(214, 173, 79, .25); color: var(--text); }
.hubx-steps li.is-now { background: linear-gradient(130deg, var(--gold-1), var(--gold-2)); color: var(--hit-ink); }
[data-hubx="pair"] img { transition: box-shadow .3s, opacity .25s, transform .25s, outline-color .3s; outline: 2px solid transparent; outline-offset: 2px; }
[data-hubx="pair"] img.is-win { outline-color: var(--gold); box-shadow: 0 0 20px rgba(214, 173, 79, .5); transform: translateY(-3px); }
[data-hubx="pair"] img.is-lose { opacity: .45; }
[data-hubx="pair"] img.is-swap, [data-hubx="mirror"] .mirror__cover.is-swap { opacity: 0; }
[data-hubx="mirror"] .mirror__cover { transition: opacity .3s; }
@media (max-width: 520px) { .hubx-grid, .hubx-listen { width: 92px; } .hubx-grid { padding: 7px; gap: 3px; } }
@media (prefers-reduced-motion: reduce) { .hubx-listen.is-playing .hub__playdot::before, .hubx-listen.is-playing .hub__playdot::after { animation: none; } }
.gh { display: flex; align-items: center; gap: 14px; padding: 8px 18px 8px 8px; border: 2px solid var(--gold-3); border-radius: 999px; background: linear-gradient(90deg, rgba(151, 112, 30, .32), rgba(15, 11, 9, .93) 50%); box-shadow: inset 0 0 0 3px #140d0a, inset 0 0 0 4px rgba(205, 163, 69, .3), 0 12px 30px rgba(0, 0, 0, .5); }
.gh .coin { width: 54px; height: 54px; }
.gh .coin b { font-size: 18px; }
.gh .coin i { font-size: 7px; }
.gh-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.gh-text > .mono-k { color: var(--gold); }
.gh .tiers__live, .gh .hol__live { margin: 0; font-size: 11px; color: var(--text); }
.gh .tiers__live i, .gh .hol__live i { background: #5fbf6a; box-shadow: 0 0 8px rgba(95, 191, 106, .8); animation: gh-pulse 1.8s ease-in-out infinite; }
@keyframes gh-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }
@media (max-width: 420px) { .gh { gap: 10px; padding-right: 12px; } .gh .coin { width: 46px; height: 46px; } .gh .tiers__live, .gh .hol__live { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .gh .tiers__live i, .gh .hol__live i { animation: none; } }
.gh-how { margin-left: auto; flex-shrink: 0; font-size: 13px; }
.howto { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 14px 16px 18px; border: 2px solid var(--gold-3); border-radius: 14px; background: rgba(12, 9, 8, .94); box-shadow: inset 0 0 0 4px #140d0a, inset 0 0 0 5px rgba(205, 163, 69, .3), 0 18px 44px rgba(0, 0, 0, .55); }
.howto__head { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.howto__head .mono-k { color: var(--gold); }
.howto .dg-step { background: rgba(255, 255, 255, .02); }
.howto .dg-step h3 { font-size: 21px; }
.howto__go { margin-top: -6px; }
.hw-mock { width: 100%; height: 156px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 16px; border-radius: 10px; background: linear-gradient(#1f1612, #120c0a); box-shadow: inset 0 0 0 1px rgba(205, 163, 69, .25); overflow: hidden; }
.hw-input { width: 100%; height: 36px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #17110e; }
.hw-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; border-right: 2px solid var(--gold); font-family: var(--fancy); font-size: 17px; color: var(--text); animation: hw-type 3.6s steps(var(--n), end) infinite; }
@keyframes hw-type { 0% { width: 0; } 40%, 100% { width: calc(var(--n) * .5em + 2px); } }
.hw-sug { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 6px 10px; border: 1px solid var(--gold-3); border-radius: 8px; background: rgba(138, 44, 62, .35); opacity: 0; animation: hw-show 3.6s infinite; }
.hw-sug img { border-radius: 3px; }
.hw-sug b { font-family: var(--fancy); font-weight: 400; font-size: 16px; color: var(--text); }
.hw-sug span { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--muted); }
.hw-sug b { flex-shrink: 0; }
@keyframes hw-show { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
.hw-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; width: 100%; }
.hw-t { min-height: 38px; display: flex; align-items: center; justify-content: center; padding: 2px; border-radius: 5px; background: #241a16; font-style: normal; font-size: 10.5px; line-height: 1.1; text-align: center; color: var(--text-2); animation: hw-flip 4s var(--d) infinite both; }
.hw-t.t-hit { background: var(--hit); color: var(--hit-ink); }
.hw-t.t-near { background: var(--near); color: var(--near-ink); }
.hw-t.t-miss { background: #2e221d; }
@keyframes hw-flip { 0% { transform: rotateX(90deg); opacity: 0; } 10%, 85% { transform: none; opacity: 1; } 100% { opacity: 1; } }
.hw-row--win { filter: drop-shadow(0 0 10px rgba(214, 173, 79, .35)); }
.hw-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 11px; color: var(--muted); }
.hw-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.hw-row--3 .hw-t { min-height: 30px; font-size: 12px; }
.hw-keys span { display: inline-flex; align-items: center; gap: 4px; }
.hw-keys i { width: 10px; height: 10px; border-radius: 2px; }
.hw-keys i.t-hit { background: var(--hit); }
.hw-keys i.t-near { background: var(--near); }
.hw-big { font-family: var(--fancy); font-weight: 400; font-size: 22px; color: var(--gold); }
.hw-gold { animation: hw-show 3.6s infinite; opacity: 0; }
.hw-note { font-size: 12px; color: var(--muted); }
.hw-play { position: relative; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); color: var(--hit-ink); }
.hw-play svg { fill: currentColor; margin-left: 3px; }
.hw-play::before, .hw-play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: hubx-ring 1.6s ease-out infinite; }
.hw-play::after { animation-delay: .8s; }
.hw-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; width: 100%; }
.hw-steps li { padding: 6px 0; border-radius: 5px; background: rgba(255, 255, 255, .06); font-family: var(--mono); font-size: 11px; text-align: center; color: var(--muted); animation: hw-step 3.6s var(--d) infinite; }
@keyframes hw-step { 0% { background: rgba(255, 255, 255, .06); color: var(--muted); } 8%, 70% { background: linear-gradient(130deg, var(--gold-1), var(--gold-2)); color: var(--hit-ink); } 100% { background: rgba(255, 255, 255, .06); color: var(--muted); } }
.hw-pair { display: flex; align-items: center; gap: 6px; }
.hw-pair img { border-radius: 5px; box-shadow: 0 6px 16px rgba(0, 0, 0, .6); }
.hw-pair i { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold-3); border-radius: 50%; font-family: var(--fancy); font-style: normal; font-size: 13px; color: var(--gold); }
.hw-btns { display: flex; gap: 8px; }
.hw-btn { white-space: nowrap; padding: 7px 11px; border-radius: 999px; background: linear-gradient(130deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3)); font-family: var(--fancy); font-size: 16px; color: var(--hit-ink); }
.hw-btn--press { animation: dg-press 2.4s ease-in-out infinite; }
.hw-ticks { display: flex; gap: 5px; }
.hw-ticks i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6dd86, #c9a040 55%, #8a6519); animation: hw-tick 3.4s var(--d) infinite both; }
@keyframes hw-tick { 0% { transform: scale(0); } 8%, 85% { transform: scale(1); } 100% { transform: scale(1); } }
@media (max-width: 760px) { .howto .dg-steps { gap: 26px; } }
@media (prefers-reduced-motion: reduce) { .hw-type { animation: none; width: calc(var(--n) * .5em + 2px); } .hw-sug, .hw-gold { animation: none; opacity: 1; } .hw-t, .hw-steps li, .hw-ticks i, .hw-btn--press, .hw-play::before, .hw-play::after { animation: none; } }
@media (max-width: 620px) {
  .howto { gap: 12px; padding: 12px 0 14px; }
  .howto__head { padding: 0 14px; }
  .howto .dg-steps { display: flex; gap: 12px; margin: 0; padding: 18px 14px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .howto .dg-steps::-webkit-scrollbar { display: none; }
  .howto .dg-step { flex: 0 0 82%; scroll-snap-align: center; gap: 6px; padding: 22px 12px 14px; }
  .howto .dg-step h3 { font-size: 19px; margin: 0; }
  .howto .dg-step p { font-size: 13px; }
  .howto .hw-mock { height: 116px; padding: 10px 12px; }
  .howto__go { display: none; }
  main:has(.howto:not([hidden])) .intro { display: none; }
  .gh { gap: 10px; padding: 6px 10px 6px 6px; }
  .gh-text:has(> p:not([hidden])) > .mono-k { display: none; }
  .gh .coin { width: 44px; height: 44px; }
  .gh .coin b { font-size: 15px; }
  .gh .tiers__live, .gh .hol__live { font-size: 11px; letter-spacing: .04em; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .gh .tiers__live[hidden], .gh .hol__live[hidden] { display: none; }
  .gh .tiers__live i, .gh .hol__live i { display: inline-block; margin-right: 6px; vertical-align: 1px; }
  .gh .hol__live b { font-size: 12px; line-height: 1; }
  .gh-how { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold-3); border-radius: 50%; text-decoration: none; font-family: var(--fancy); font-size: 18px; color: var(--gold); }
  .gh-how span { display: none; }
  .gh-how::before { content: "?"; }
}

html { scrollbar-color: var(--line-strong) transparent; }
* { scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: var(--line-strong) padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-3) padding-box; }

@media (pointer: coarse) { .pv-dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; } }

@media (min-width: 621px) {
  .howto { gap: 14px; padding: 12px 16px 14px; }
  .howto .dg-steps { margin-top: 10px; }
  .howto .dg-step { gap: 6px; padding: 22px 12px 12px; }
  .howto .dg-step h3 { font-size: 19px; margin: 0; }
  .howto .dg-step p { font-size: 13px; line-height: 1.45; }
  .howto .hw-mock { height: 118px; padding: 8px 14px; gap: 8px; }
  .howto__go { display: none; }
}
@media (min-width: 1000px) {
  body:has(main.hub) .top__inner { max-width: 1080px; }
  main.game.hub { max-width: 1080px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
  main.game.hub > :not(.hub__card) { grid-column: 1 / -1; }
}

.cv { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cv-stage { --z: 8; --fx: 50%; --fy: 50%; position: relative; width: min(100%, 440px); aspect-ratio: 1; border: 2px solid var(--gold-3); border-radius: 12px; overflow: hidden; background: #0d0907; box-shadow: inset 0 0 0 4px #140d0a, 0 18px 44px rgba(0, 0, 0, .6); }
.cv-stage img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: var(--fx) var(--fy); transform: scale(var(--z)); transition: transform .7s cubic-bezier(.2, .7, .2, 1); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.cv-zoom { position: absolute; left: 10px; top: 10px; padding: 5px 11px; border: 1px solid var(--gold-3); border-radius: 999px; background: rgba(10, 7, 8, .82); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.cv-stage.is-done { border-color: var(--gold); }
.cv-steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cv-steps li { min-width: 46px; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--mono); font-size: 12px; text-align: center; color: var(--muted); background: rgba(10, 7, 8, .7); }
.cv-steps li.is-past { color: var(--text-2); border-color: var(--line); opacity: .55; }
.cv-steps li.is-now { color: var(--hit-ink); background: var(--gold); border-color: var(--gold); }
@media (max-width: 420px) { .cv-steps { gap: 4px; } .cv-steps li { min-width: 0; padding: 4px 6px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .cv-stage img { transition: none; } }

.hub__cv { flex-shrink: 0; width: 120px; aspect-ratio: 1; overflow: hidden; border: 2px solid var(--gold-3); border-radius: 8px; box-shadow: 0 8px 18px rgba(0, 0, 0, .6); }
.hub__cv img { display: block; width: 100%; height: 100%; transform-origin: 42% 24%; animation: hub-cv 7s ease-in-out infinite alternate; }
@keyframes hub-cv { 0%, 15% { transform: scale(5); } 85%, 100% { transform: scale(1); } }
@media (max-width: 620px) { .hub__cv { width: 58px; } }
@media (prefers-reduced-motion: reduce) { .hub__cv img { animation: none; transform: scale(2); } }
@media (min-width: 1000px) { main.game.hub > a.hub__card:nth-of-type(5):last-of-type { grid-column: 1 / -1; } }

.hw-cv { width: 64px; height: 64px; overflow: hidden; border: 2px solid var(--gold-3); border-radius: 8px; }
.hw-cv img { display: block; width: 100%; height: 100%; transform-origin: 42% 24%; animation: hub-cv 6s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .hw-cv img { animation: none; transform: scale(3); } }
