:root {
  color-scheme: dark;
  --bg: #090a10;
  --panel: rgba(18, 20, 31, 0.88);
  --panel-strong: #171927;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f7fb;
  --muted: #a8adbd;
  --cyan: #21d4fd;
  --lime: #58ff91;
  --red: #ff4d68;
  --gold: #ffd166;
  --violet: #a76dff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 77, 104, 0.18), transparent 22%, transparent 78%, rgba(255, 209, 102, 0.18)),
    radial-gradient(circle at 50% -10%, rgba(33, 212, 253, 0.22), transparent 30rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px),
    var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
  position: relative;
  font-weight: 900;
  overflow: hidden;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(33, 212, 253, 0.55);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 10px 24px rgba(33, 212, 253, 0.12);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.primary {
  border: 0;
  background:
    linear-gradient(135deg, var(--cyan), var(--violet)),
    #111;
  color: #070911;
  font-weight: 1000;
  box-shadow: 0 12px 30px rgba(33, 212, 253, 0.2);
}

.secondary-button {
  border-color: rgba(33, 212, 253, 0.28);
  background:
    linear-gradient(180deg, rgba(33, 212, 253, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.24);
  color: #dff8ff;
}

.danger-button-soft {
  border-color: rgba(255, 77, 104, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 77, 104, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.24);
  color: #ffd5dc;
}

.ghost-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(33, 212, 253, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(33, 212, 253, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.24);
  color: #dff8ff;
  font-size: 0.82rem;
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ghost-button:hover {
  transform: translateY(-1px);
  border-color: rgba(33, 212, 253, 0.55);
  background: rgba(255, 255, 255, 0.13);
}

.app-shell {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.site-topbar {
  width: min(1500px, calc(100% - 32px));
  min-height: 84px;
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin: 0 auto;
  padding: 20px 194px 20px 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 1000;
  line-height: 1;
  text-decoration: none;
}

.site-brand__mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(33, 212, 253, 0.5);
  background:
    linear-gradient(135deg, rgba(33, 212, 253, 0.95), rgba(167, 109, 255, 0.92)),
    #070911;
  color: #070911;
  font-size: 2rem;
  box-shadow: 0 0 28px rgba(33, 212, 253, 0.22);
}

.site-brand__accent {
  color: var(--gold);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.site-nav {
  justify-content: flex-start;
}

.site-actions {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(4, max-content);
  align-items: center;
  gap: 14px;
  justify-content: stretch;
  min-width: 0;
}

.site-actions .site-cta--kofi {
  justify-self: center;
}

.site-actions .site-cta:not(.site-cta--kofi):not(.site-cta--twitch) {
  justify-self: end;
}

.site-nav__link,
.site-nav__icon,
.site-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link {
  width: 136px;
  padding: 0 14px;
  border: 1px solid rgba(33, 212, 253, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(33, 212, 253, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(8, 9, 15, 0.7);
  color: #e7fbff;
  font-size: 0.84rem;
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.site-nav__link:hover {
  transform: translateY(-1px);
  border-color: rgba(33, 212, 253, 0.62);
  color: #fff;
  box-shadow: 0 14px 30px rgba(33, 212, 253, 0.14);
}

.site-nav__link--active {
  border-color: rgba(255, 209, 102, 0.58);
  color: #fff1bd;
}

.site-nav__link--button {
  cursor: pointer;
}

.site-nav__icon {
  width: 54px;
  color: #fff;
}

.site-nav__icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.site-cta {
  min-width: 0;
  gap: 8px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(33, 212, 253, 0.34);
  background:
    linear-gradient(180deg, rgba(33, 212, 253, 0.11), rgba(255, 255, 255, 0.025)),
    rgba(8, 9, 15, 0.78);
  color: #dff8ff;
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.site-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  border-color: rgba(33, 212, 253, 0.72);
  box-shadow: 0 18px 38px rgba(33, 212, 253, 0.18);
}

.site-cta--pro,
.site-cta--admin,
.site-cta--twitch {
  border-color: rgba(167, 109, 255, 0.52);
  background:
    linear-gradient(180deg, rgba(167, 109, 255, 0.14), rgba(255, 255, 255, 0.025)),
    rgba(8, 9, 15, 0.78);
  color: #d9c6ff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.site-cta--kofi {
  border-color: rgba(114, 164, 242, 0.58);
  background:
    linear-gradient(180deg, rgba(114, 164, 242, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(8, 9, 15, 0.78);
  color: #d8e8ff;
}

.site-cta--kofi span:first-child {
  color: #72a4f2;
  font-size: 1rem;
}

.site-cta--twitch {
  gap: 8px;
}

.site-cta--twitch {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 40;
  min-height: 40px;
}

.site-cta--twitch svg {
  width: 20px;
  height: 20px;
  fill: #a970ff;
}

.site-actions .site-cta[href="/submit"],
#submitClipLink {
  border-color: rgba(255, 209, 102, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 209, 102, 0.14), rgba(255, 255, 255, 0.025)),
    rgba(8, 9, 15, 0.78);
  color: #fff1bd;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.site-cta--active {
  border-color: rgba(255, 209, 102, 0.68);
  color: #fff7d8;
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.18), 0 14px 34px rgba(255, 209, 102, 0.16);
}

.site-cta--button {
  cursor: pointer;
}

.creator-link {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 20;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(167, 109, 255, 0.45);
  border-radius: 8px;
  background: rgba(8, 9, 15, 0.84);
  color: #d9c6ff;
  font-size: 0.78rem;
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
}

.kofi-link {
  position: fixed;
  top: 14px;
  right: 178px;
  z-index: 20;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(114, 164, 242, 0.55);
  border-radius: 8px;
  background: rgba(8, 9, 15, 0.84);
  color: #d8e8ff;
  font-size: 0.78rem;
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
}

.kofi-link:hover {
  transform: translateY(-1px);
  border-color: rgba(114, 164, 242, 0.95);
  color: #fff;
}

.kofi-link span:first-child {
  color: #72a4f2;
  font-size: 1rem;
  line-height: 1;
}

.tutorial-replay-button {
  position: fixed;
  top: 14px;
  left: 14px;
  bottom: auto;
  z-index: 40;
  min-height: 38px;
  padding: 0 12px;
  border-color: rgba(33, 212, 253, 0.5);
  background: rgba(8, 9, 15, 0.84);
  color: #b8f3ff;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
}

.tutorial-replay-button:hover {
  border-color: rgba(33, 212, 253, 0.95);
  color: #fff;
}

.creator-link svg {
  width: 20px;
  height: 20px;
  fill: #a970ff;
}

.creator-link:hover {
  border-color: rgba(167, 109, 255, 0.9);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: end;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(5, 6, 10, 0.96), rgba(9, 10, 16, 0.78)),
    repeating-linear-gradient(135deg, rgba(255, 77, 104, 0.2) 0 2px, transparent 2px 18px),
    linear-gradient(90deg, rgba(33, 212, 253, 0.2), rgba(255, 209, 102, 0.12));
  background-size: cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ranked-card {
  display: grid;
  grid-template-columns: 92px minmax(140px, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 280px;
  padding: 12px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  position: relative;
}

.ranked-card .win-streak-hud {
  grid-column: 1 / -1;
}

.ranked-card img {
  width: 92px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
}

.ranked-card p,
.ranked-card span {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ranked-card strong {
  display: block;
  margin: 2px 0;
  color: var(--text);
  font-size: 1rem;
  text-transform: uppercase;
}

.ranked-card .ranked-card__leaderboard {
  display: inline-block;
  grid-column: 1 / -1;
  margin-top: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(33, 212, 253, 0.28);
  border-radius: 8px;
  background: rgba(33, 212, 253, 0.08);
  color: #b8f3ff;
  font-size: 0.72rem;
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.4rem, 9vw, 8rem);
  line-height: 0.88;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 rgba(255, 77, 104, 0.38), -3px -2px 0 rgba(33, 212, 253, 0.2);
}

h2 {
  font-size: 1.35rem;
}

.subline {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
}

.nav-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(33, 212, 253, 0.58);
  color: #fff;
  box-shadow: 0 10px 24px rgba(33, 212, 253, 0.12);
}

.nav-link--active {
  border-color: rgba(255, 209, 102, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.22), rgba(255, 77, 104, 0.1)),
    rgba(0, 0, 0, 0.28);
  color: var(--gold);
}

.nav-link--admin {
  border-color: rgba(167, 109, 255, 0.42);
  color: #d9c6ff;
}

.nav-link--account {
  border-color: rgba(33, 212, 253, 0.35);
  color: #b8f3ff;
}

.hero__status {
  display: grid;
  gap: 10px;
  min-width: 180px;
  border-radius: 8px;
  position: relative;
}

.hero__status span,
.round-badge {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.arena {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.player-panel,
.clip-panel,
.guess-zone {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.player-panel {
  padding: 16px;
  scroll-margin-top: 18px;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.player-panel--highlight {
  border-color: rgba(33, 212, 253, 0.85);
  background:
    linear-gradient(135deg, rgba(33, 212, 253, 0.1), rgba(255, 209, 102, 0.08)),
    var(--panel);
  box-shadow: 0 0 0 2px rgba(33, 212, 253, 0.22), 0 0 38px rgba(33, 212, 253, 0.22), var(--shadow);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(33, 212, 253, 0.25);
  border-radius: 8px;
  background: #05060a;
}

.player-frame iframe {
  display: none;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.player-frame.has-video iframe {
  display: block;
}

.player-frame.has-video .empty-player {
  display: none;
}

.clip-region-overlay {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 5;
  min-width: 112px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 209, 102, 0.72);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.86);
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  box-shadow: 0 0 28px rgba(255, 209, 102, 0.28), 0 12px 28px rgba(0, 0, 0, 0.55);
}

.clip-region-overlay[hidden] {
  display: none;
}

.guess-player-overlay {
  position: absolute;
  left: 2.4%;
  bottom: 3.8%;
  z-index: 5;
  width: min(34%, 360px);
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.16)) drop-shadow(0 14px 22px rgba(0, 0, 0, 0.58));
}

.guess-player-overlay[hidden] {
  display: none;
}

.guess-player-overlay img {
  display: block;
  width: 100%;
  height: auto;
}

.win-streak-hud {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.65));
}

.win-streak-hud[hidden] {
  display: none;
}

.win-streak-hud img {
  width: min(104px, 18vw);
  height: auto;
  transform: translateY(2px);
}

.win-streak-hud span {
  color: #ffd98c;
  display: inline-block;
  min-width: 0.72em;
  font-size: clamp(2.5rem, 4.6vw, 4.35rem);
  font-style: italic;
  font-weight: 1000;
  line-height: 0.68;
  text-shadow: 2px 2px 0 #5e2b00, 0 0 12px rgba(255, 209, 102, 0.42);
  transform: translate(-6px, -9px) skewX(-7deg);
  -webkit-text-stroke: 1px rgba(92, 42, 0, 0.82);
}

.rank-mask {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.rank-mask[hidden] {
  display: none;
}

.mask-block {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(33, 212, 253, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #05060a, #11131f),
    repeating-linear-gradient(135deg, #122b38 0 1px, #05060a 1px 9px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.48);
  color: rgba(246, 247, 251, 0.78);
  font-size: clamp(0.5rem, 1vw, 0.76rem);
  font-weight: 1000;
  letter-spacing: 0.08em;
  overflow: hidden;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.mask-block--left-prowess,
.mask-block--right-prowess {
  top: 2.2%;
  width: 18.8%;
  height: 4.2%;
}

.mask-block--left-rank,
.mask-block--right-rank {
  top: 10.5%;
  width: 22.8%;
  height: 9.8%;
}

.mask-block--left-prowess {
  left: 9.3%;
}

.mask-block--right-prowess {
  right: 9.3%;
}

.mask-block--left-rank {
  left: 3.1%;
}

.mask-block--right-rank {
  right: 3.1%;
}

.watch-choice {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  align-content: center;
  place-items: center;
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(5, 6, 10, 0.9), rgba(12, 13, 21, 0.94)),
    repeating-linear-gradient(135deg, rgba(255, 77, 104, 0.14) 0 2px, transparent 2px 18px);
  text-align: center;
  backdrop-filter: blur(7px);
}

.watch-choice[hidden] {
  display: none;
}

.watch-choice h2 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 209, 102, 0.36);
}

.watch-choice span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.watch-choice__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(440px, 100%);
}

.clip-target-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 209, 102, 0.12), rgba(33, 212, 253, 0.08)),
    rgba(0, 0, 0, 0.32);
}

.clip-target-info[hidden] {
  display: none;
}

.clip-target-info span,
.clip-target-info strong {
  text-transform: uppercase;
}

.clip-target-info span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.clip-target-info strong {
  color: var(--gold);
  font-size: 1rem;
  text-align: right;
}

.empty-player {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  height: 100%;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.empty-player p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.empty-player__mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 3rem;
  font-weight: 900;
}

.lets-play-button {
  min-width: 180px;
  padding: 0 22px;
  text-transform: uppercase;
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.controls .primary,
.controls .secondary-button {
  min-height: 58px;
  width: 100%;
  justify-content: center;
  font-size: 1rem;
}

.player-controls {
  display: grid;
  grid-template-columns: 0.4fr 0.5fr 0.4fr 0.5fr minmax(180px, 1fr);
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  position: relative;
}

.control-button {
  min-height: 40px;
  border-color: rgba(33, 212, 253, 0.2);
  background:
    linear-gradient(180deg, rgba(33, 212, 253, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.26);
  color: #dff8ff;
  font-size: 0.82rem;
}

.control-button--main {
  border-color: rgba(255, 209, 102, 0.42);
  color: var(--gold);
}

.player-controls label {
  min-height: 40px;
  grid-template-columns: auto minmax(120px, 1fr);
  gap: 12px;
  align-items: center;
  justify-content: stretch;
  padding: 0 10px;
  border: 1px solid rgba(33, 212, 253, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(33, 212, 253, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.2);
}

.player-controls label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.player-controls input[type="range"] {
  min-height: 0;
  padding: 0;
}

.toggle-control {
  display: flex;
  min-height: 44px;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
}

.toggle-control input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--cyan);
}

input[type="range"] {
  accent-color: var(--cyan);
}

.clip-panel,
.guess-zone {
  padding: 16px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.clip-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(33, 212, 253, 0.16);
}

textarea {
  min-height: 96px;
  max-height: 240px;
  padding-top: 10px;
  line-height: 1.45;
  resize: vertical;
}

.clip-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  margin-top: 14px;
  padding-right: 4px;
}

.clip-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.clip-item strong,
.clip-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-item span {
  color: var(--muted);
  font-size: 0.8rem;
}

.delete-clip {
  min-width: 76px;
  min-height: 36px;
}

.guess-zone {
  margin-top: 18px;
  scroll-margin-top: 18px;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.guess-zone--highlight {
  border-color: rgba(255, 209, 102, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(33, 212, 253, 0.08)),
    var(--panel);
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.24), 0 0 38px rgba(255, 209, 102, 0.24), var(--shadow);
}

.guess-heading {
  align-items: end;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 12px;
}

.rank-button {
  position: relative;
  display: grid;
  min-height: 108px;
  place-items: center;
  padding: 10px;
  overflow: hidden;
  text-align: center;
}

.rank-button.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.22), 0 14px 34px rgba(255, 209, 102, 0.12);
}

.rank-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--rank-color), transparent 58%);
  opacity: 0.18;
}

.rank-button > * {
  position: relative;
}

.rank-emblem,
.result-rank-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rank-emblem {
  max-width: 112px;
  max-height: 82px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  transition: transform 160ms ease, filter 160ms ease;
}

.rank-button:hover .rank-emblem {
  transform: scale(1.08);
  filter: drop-shadow(0 12px 24px rgba(33, 212, 253, 0.28));
}

.rank-grid.locked .rank-button,
.rank-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.rank-button:disabled:hover .rank-emblem {
  transform: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.result-modal {
  width: min(920px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.result-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(7px);
}

.result-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(155deg, rgba(23, 25, 39, 0.98), rgba(7, 9, 17, 0.98));
  box-shadow: var(--shadow);
  text-align: center;
}

.result-card.correct {
  border-color: rgba(88, 255, 145, 0.72);
  box-shadow: 0 0 34px rgba(88, 255, 145, 0.24), var(--shadow);
}

.result-card.wrong {
  border-color: rgba(255, 77, 104, 0.78);
  box-shadow: 0 0 34px rgba(255, 77, 104, 0.26), var(--shadow);
}

.result-card.partial {
  border-color: rgba(255, 209, 102, 0.78);
  box-shadow: 0 0 34px rgba(255, 209, 102, 0.24), var(--shadow);
}

.result-verdict {
  margin: 0 0 6px;
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  font-weight: 1000;
  line-height: 0.9;
  text-transform: uppercase;
}

.result-card.correct .result-verdict {
  color: var(--lime);
  text-shadow: 0 0 16px rgba(88, 255, 145, 0.7), 0 0 34px rgba(88, 255, 145, 0.42);
  animation: verdictGlowCorrect 1.55s ease-in-out infinite alternate;
}

.result-card.wrong .result-verdict {
  color: var(--red);
  text-shadow: 0 0 16px rgba(255, 77, 104, 0.72), 0 0 34px rgba(255, 77, 104, 0.44);
  animation: verdictGlowWrong 1.55s ease-in-out infinite alternate;
}

.result-card.partial .result-verdict {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.72), 0 0 34px rgba(255, 209, 102, 0.42);
  animation: verdictGlowPartial 1.55s ease-in-out infinite alternate;
}

.result-card h2 {
  margin-top: 8px;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  text-transform: uppercase;
}

.result-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.result-rank-panel {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.result-rank-panel p,
.result-rank-panel span {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.result-rank-panel .result-player-name {
  color: var(--gold);
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 6px;
  background: rgba(255, 209, 102, 0.08);
  font-size: clamp(1rem, 2.5vw, 1.28rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.32);
}

.result-rank-panel .result-player-name[hidden] {
  display: none;
}

.correct-panel {
  border-color: rgba(255, 209, 102, 0.36);
}

.guess-panel {
  border-color: rgba(33, 212, 253, 0.28);
}

.result-rank-art {
  display: grid;
  width: min(220px, 38vw);
  height: 96px;
  place-items: center;
  margin: 8px auto 0;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 1000;
}

.result-meta,
.result-player-names,
.result-details {
  color: var(--muted);
}

.result-player-names {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 1000;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(33, 212, 253, 0.24);
}

.dashboard-shell .hero {
  min-height: 190px;
}

.error-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.error-hero {
  width: min(900px, 100%);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  margin-top: 18px;
}

.review-layout {
  margin-top: 18px;
}

.dashboard-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dashboard-actions > * {
  min-width: 92px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.import-button {
  position: relative;
  cursor: pointer;
}

.import-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rank-picker-heading {
  margin-top: 4px;
}

.rank-grid--dashboard {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.dashboard-list {
  max-height: 720px;
}

.dashboard-clip {
  grid-template-columns: 92px minmax(0, 1fr) auto;
}

.clip-actions {
  display: grid;
  gap: 8px;
  align-content: center;
  min-width: 86px;
}

.dashboard-clip--editing {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.edit-clip-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.edit-rank-picker {
  display: grid;
  gap: 10px;
}

.rank-grid--edit {
  max-height: 260px;
}

.review-clip {
  align-items: stretch;
}

.review-actions {
  display: grid;
  gap: 8px;
  align-content: center;
  min-width: 110px;
}

.preview-link {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  text-decoration: none;
}

.submit-panel {
  width: 100%;
  margin: 18px auto 0;
  padding: 22px;
}

.submission-rules {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 209, 102, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(33, 212, 253, 0.06)),
    rgba(0, 0, 0, 0.26);
}

.submission-rules h2,
.submission-rules p {
  margin: 0;
}

.submission-rules ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.submit-panel .rank-grid--dashboard {
  max-height: 440px;
}

.auth-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-shell .dashboard-panel {
  align-content: start;
}

.twitch-login-button {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(167, 109, 255, 0.7);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(145, 70, 255, 0.92), rgba(33, 212, 253, 0.5)),
    rgba(0, 0, 0, 0.24);
  color: #fff;
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.twitch-login-button:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 109, 255, 0.95);
  box-shadow: 0 10px 24px rgba(167, 109, 255, 0.18);
}

.leaderboard-panel {
  margin-top: 18px;
}

.rank-distribution-panel {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
}

.rank-distribution-chart {
  display: grid;
  grid-template-columns: repeat(38, minmax(34px, 1fr));
  gap: 7px;
  align-items: end;
  min-height: 360px;
  overflow-x: auto;
  padding: 24px 8px 8px;
}

.distribution-bar {
  position: relative;
  display: grid;
  grid-template-rows: 28px minmax(140px, 1fr) 42px;
  gap: 6px;
  align-items: end;
  min-width: 34px;
  height: 100%;
  justify-items: center;
}

.distribution-bar:hover {
  z-index: 8;
}

.distribution-bar span {
  color: var(--bar-color);
  font-size: 0.72rem;
  font-weight: 1000;
  text-align: center;
  white-space: nowrap;
}

.distribution-bar i {
  display: block;
  width: 100%;
  height: var(--bar-height);
  min-height: 5px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bar-color), #fff 16%), var(--bar-color));
  box-shadow: 0 0 18px color-mix(in srgb, var(--bar-color), transparent 68%);
}

.distribution-bar img {
  width: 42px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 7px 9px rgba(0, 0, 0, 0.58));
}

.distribution-tooltip {
  position: absolute;
  left: 50%;
  bottom: 70px;
  z-index: 12;
  display: grid;
  gap: 4px;
  min-width: 174px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(13, 17, 28, 0.98);
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 140ms ease, transform 140ms ease;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

.distribution-bar:hover .distribution-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.distribution-tooltip__rank {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.distribution-floating-tooltip {
  position: absolute;
  z-index: 30;
  display: grid;
  gap: 4px;
  min-width: 190px;
  max-width: 240px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(13, 17, 28, 0.98);
  color: var(--text);
  pointer-events: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
}

.distribution-floating-tooltip[hidden] {
  display: none;
}

.distribution-floating-tooltip .distribution-tooltip__rank {
  margin-bottom: 4px;
}

.distribution-floating-tooltip strong,
.distribution-floating-tooltip b {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 1000;
  text-align: left;
  text-transform: none;
}

.distribution-floating-tooltip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
  text-transform: none;
}

.distribution-tooltip__rank img {
  width: 54px;
  height: 36px;
}

.distribution-tooltip strong,
.distribution-tooltip b {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 1000;
  text-align: left;
  text-transform: none;
}

.distribution-tooltip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
  text-transform: none;
}

.leaderboard-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 130px auto;
  gap: 10px;
  align-items: end;
}

.leaderboard-list {
  display: grid;
  gap: 10px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 56px 54px minmax(0, 1fr) 92px minmax(180px, 0.7fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.leaderboard-row--current {
  border-color: rgba(255, 209, 102, 0.64);
  background:
    linear-gradient(90deg, rgba(255, 209, 102, 0.12), rgba(33, 212, 253, 0.06)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 28px rgba(255, 209, 102, 0.14);
}

.leaderboard-current {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 209, 102, 0.26);
}

.leaderboard-current[hidden] {
  display: none;
}

.leaderboard-current .leaderboard-row {
  margin-top: 0;
}

.leaderboard-pagination {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.leaderboard-pagination span {
  color: var(--muted);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.leaderboard-place,
.leaderboard-player strong,
.leaderboard-stats strong {
  text-transform: uppercase;
}

.leaderboard-place {
  color: var(--gold);
  font-size: 1.1rem;
}

.leaderboard-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(33, 212, 253, 0.32);
  border-radius: 8px;
  background: rgba(33, 212, 253, 0.08);
  color: var(--cyan);
  font-weight: 1000;
  object-fit: cover;
}

.leaderboard-rank {
  width: 88px;
  height: 58px;
  object-fit: contain;
}

.leaderboard-player,
.leaderboard-stats {
  display: grid;
  gap: 4px;
}

.leaderboard-player span,
.leaderboard-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-place-panel {
  margin-top: 18px;
}

.account-place-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(33, 212, 253, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 212, 253, 0.12), rgba(255, 209, 102, 0.08)),
    rgba(0, 0, 0, 0.24);
}

.account-place-card strong {
  color: var(--cyan);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-style: italic;
  font-weight: 1000;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 35, 50, 0.85), 0 0 18px rgba(33, 212, 253, 0.42);
}

.account-place-card span {
  color: var(--text);
  font-weight: 900;
  text-transform: uppercase;
}

.nav-link--button {
  width: auto;
  min-height: 40px;
  margin-top: 0;
  padding: 0 13px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.account-shell {
  width: min(1500px, calc(100% - 32px));
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 18px;
  margin-top: 18px;
}

.account-card {
  overflow: hidden;
}

.account-summary-card {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  align-items: center;
  background:
    linear-gradient(125deg, rgba(33, 212, 253, 0.12), rgba(255, 209, 102, 0.08)),
    var(--panel);
}

.account-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.account-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(33, 212, 253, 0.42);
  border-radius: 8px;
  background: rgba(33, 212, 253, 0.1);
  color: var(--cyan);
  font-size: 2rem;
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(33, 212, 253, 0.14);
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-identity h2,
.account-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
}

.account-identity span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-rank-readout {
  display: grid;
  grid-template-columns: 112px minmax(120px, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 280px;
  padding: 12px;
  border: 1px solid rgba(255, 209, 102, 0.36);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
}

@media (max-width: 1180px) {
  .account-summary-card {
    grid-template-columns: 1fr;
  }

  .account-rank-readout {
    width: min(520px, 100%);
  }
}

.account-rank-readout img {
  width: 112px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}

.account-rank-readout span,
.account-rank-readout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-rank-readout strong {
  display: block;
  margin: 4px 0;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.account-form {
  display: grid;
  gap: 12px;
}

.account-stats-panel {
  margin-top: 18px;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-stat {
  display: grid;
  gap: 6px;
  min-height: 132px;
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(33, 212, 253, 0.035)),
    rgba(0, 0, 0, 0.18);
}

.account-stat span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.account-stat strong {
  color: var(--text);
  font-size: clamp(1.55rem, 3.5vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.account-stat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.4;
}

.daily-streak-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(255, 77, 104, 0.08)),
    rgba(0, 0, 0, 0.24);
  box-shadow: 0 0 28px rgba(255, 209, 102, 0.12);
}

.daily-streak-card strong {
  color: var(--gold);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-style: italic;
  font-weight: 1000;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(92, 42, 0, 0.8), 0 0 16px rgba(255, 209, 102, 0.4);
}

.daily-streak-card span {
  color: var(--text);
  font-weight: 900;
  text-transform: uppercase;
}

.account-mini-stats {
  display: grid;
  gap: 8px;
}

.account-mini-stats span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-danger-card {
  border-color: rgba(255, 77, 104, 0.28);
}

.account-danger-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.danger-button {
  border-color: rgba(255, 77, 104, 0.58);
  background: rgba(255, 77, 104, 0.12);
  color: #ffd5dc;
  font-weight: 1000;
  text-transform: uppercase;
}

.danger-button:hover {
  border-color: rgba(255, 77, 104, 0.95);
  background: rgba(255, 77, 104, 0.22);
}

.admin-users-panel {
  margin-top: 18px;
}

.compact-select {
  min-width: 220px;
}

.admin-user-list {
  display: grid;
  gap: 10px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-user-row--editing {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.admin-user-row strong,
.admin-user-row span {
  display: block;
}

.admin-user-row strong {
  text-transform: uppercase;
}

.admin-user-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.clip-rank-art {
  width: 82px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--gold);
  font-weight: 800;
}

.debug-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 8px;
  background: rgba(5, 6, 10, 0.9);
  box-shadow: var(--shadow);
}

.debug-panel[hidden] {
  display: none;
}

.debug-panel pre {
  max-height: 520px;
  margin: 0;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #05060a;
  color: #d7e8ff;
  font: 0.82rem/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.low-gain {
  color: var(--gold);
}

.positive-gain {
  color: var(--lime);
}

.negative-gain {
  color: var(--red);
}

@keyframes verdictGlowCorrect {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.28);
  }
}

@keyframes verdictGlowWrong {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.22);
  }
}

@keyframes verdictGlowPartial {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.24);
  }
}

.result-details {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.guess-heatmap {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(33, 212, 253, 0.2);
  border-radius: 8px;
  background: rgba(5, 6, 10, 0.42);
}

.guess-heatmap[hidden] {
  display: none;
}

.heatmap-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.heatmap-heading p,
.heatmap-heading span,
.heatmap-heading strong {
  margin: 0;
  text-transform: uppercase;
}

.heatmap-heading p,
.heatmap-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.heatmap-heading strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.heatmap-bars {
  display: grid;
  gap: 8px;
}

.heatmap-toggle {
  justify-self: center;
  min-width: 190px;
  margin-top: 2px;
  text-transform: uppercase;
}

.heatmap-toggle[hidden] {
  display: none;
}

.heatmap-empty {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.heatmap-row {
  display: grid;
  grid-template-columns: 52px minmax(96px, 0.7fr) minmax(120px, 1fr) 52px minmax(96px, 0.6fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.heatmap-row.correct {
  border-color: rgba(255, 209, 102, 0.34);
}

.heatmap-row.picked {
  box-shadow: inset 0 0 0 1px rgba(33, 212, 253, 0.34);
}

.heatmap-row img {
  width: 48px;
  height: 34px;
  object-fit: contain;
}

.heatmap-row strong,
.heatmap-row em,
.heatmap-row small {
  font-style: normal;
  font-weight: 900;
}

.heatmap-row strong {
  text-transform: uppercase;
}

.heatmap-row em {
  color: var(--gold);
  text-align: right;
}

.heatmap-row small {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.heatmap-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.heatmap-track span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.32);
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.result-action-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.08);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.result-action-note[hidden] {
  display: none;
}

.tour-active {
  overflow-x: hidden;
}

.tour-layer {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  pointer-events: none;
  isolation: isolate;
}

.tour-layer[hidden] {
  display: none;
}

.tour-shade {
  position: fixed;
  z-index: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
}

.tour-layer::before {
  content: none;
}

.tour-card {
  position: fixed;
  z-index: 2;
  width: min(360px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid rgba(255, 209, 102, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgb(20, 22, 34), rgb(7, 9, 17)),
    repeating-linear-gradient(135deg, rgba(255, 77, 104, 0.16) 0 2px, transparent 2px 18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58), 0 0 34px rgba(255, 209, 102, 0.14);
  pointer-events: auto;
}

.tour-card h2 {
  margin: 0;
  text-transform: uppercase;
}

.tour-card p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.tour-actions {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.tour-highlight {
  border-color: rgba(255, 209, 102, 0.9) !important;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.32), 0 0 42px rgba(33, 212, 253, 0.26), var(--shadow) !important;
}

.tour-example {
  margin-top: 8px;
}

.tour-example[hidden] {
  display: none;
}

.tour-heatmap-demo {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(33, 212, 253, 0.22);
  border-radius: 8px;
  background: rgba(5, 6, 10, 0.62);
}

.tour-reveal-demo {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(33, 212, 253, 0.22);
  border-radius: 8px;
  background: rgba(5, 6, 10, 0.62);
}

.tour-reveal-ranks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.tour-reveal-ranks section,
.tour-reveal-details {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.tour-reveal-ranks section.correct {
  border-color: rgba(255, 209, 102, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.16);
}

.tour-reveal-demo span,
.tour-reveal-demo small,
.tour-reveal-demo p,
.tour-heatmap-demo span,
.tour-heatmap-demo small,
.tour-heatmap-demo p {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tour-reveal-demo strong,
.tour-reveal-demo b,
.tour-heatmap-demo strong,
.tour-heatmap-demo b {
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.tour-reveal-ranks section.correct strong,
.tour-reveal-details b:last-child {
  color: var(--gold);
}

.tour-reveal-demo p,
.tour-heatmap-demo p {
  margin: 4px 0 0;
  line-height: 1.35;
}

.tour-demo-row {
  display: grid;
  grid-template-columns: 70px 1fr minmax(88px, auto);
  gap: 6px;
  align-items: center;
}

.tour-demo-row i {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.tour-demo-row em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.tour-demo-row.correct b {
  color: var(--gold);
}

@media (max-width: 1320px) {
  .site-topbar {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: start;
    min-height: 128px;
  }

  .site-brand,
  .site-nav,
  .site-actions {
    justify-content: flex-start;
  }

  .site-nav,
  .site-actions {
    width: 100%;
  }

  .site-actions {
    display: inline-flex;
    flex-wrap: wrap;
  }

  .site-actions .site-cta--kofi,
  .site-actions .site-cta:not(.site-cta--kofi):not(.site-cta--twitch) {
    justify-self: auto;
  }
}

@media (max-width: 980px) {
  .site-topbar {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: stretch;
  }

  .site-brand,
  .site-nav,
  .site-actions {
    justify-content: center;
  }

  .site-nav,
  .site-actions {
    flex-wrap: wrap;
  }

  .hero,
  .arena,
  .dashboard-layout,
  .form-grid,
  .account-grid,
  .account-summary-card,
  .account-stat-grid {
    grid-template-columns: 1fr;
  }

  .hero__status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-topbar {
    width: min(100% - 20px, 1500px);
    min-height: 0;
    padding: 58px 0 6px;
  }

  .site-brand {
    gap: 10px;
    font-size: 1.55rem;
  }

  .site-brand__mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.55rem;
  }

  .site-nav,
  .site-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .site-nav__link,
  .site-nav__icon,
  .site-cta {
    width: 100%;
    min-height: 46px;
  }

  .site-nav__icon {
    grid-column: span 2;
  }

  .site-cta--twitch {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 10px;
    width: auto;
    min-height: 40px;
  }

  .app-shell {
    width: min(100% - 20px, 1500px);
    padding-top: 10px;
  }

  .hero {
    min-height: 260px;
    padding: 18px;
  }

  .creator-link,
  .kofi-link {
    position: static;
    margin: 8px 0 0 10px;
  }

  .kofi-link {
    margin-left: 8px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions .nav-link {
    width: 100%;
  }

  .hero__status,
  .controls,
  .edit-clip-fields,
  .auth-layout,
  .leaderboard-row,
  .leaderboard-toolbar,
  .leaderboard-pagination,
  .player-controls,
  .result-comparison,
  .result-actions,
  .watch-choice__actions {
    grid-template-columns: 1fr;
  }

  .account-rank-readout {
    grid-template-columns: 86px minmax(0, 1fr);
    min-width: 0;
  }

  .account-rank-readout img {
    width: 86px;
  }

  .heatmap-heading,
  .heatmap-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .heatmap-row em {
    text-align: left;
  }

  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .round-badge {
    text-align: left;
  }
}
