:root {
  --view-scale: 1;
  --bg: #08090b;
  --panel: rgba(22, 24, 28, 0.72);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f1ec;
  --muted: #9a9892;
  --accent: #16e879;
  --accent-warm: #8affbd;
  --danger: #d46a6a;
  --ok: #7dba8a;
  --apple-font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: var(--apple-font);
  --sans: var(--apple-font);
  color-scheme: dark;
}
body.draw-mode .preview-play.is-playing {
  animation: music-pulse-drawn 1.05s ease-in-out infinite;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 42%, rgba(35, 107, 70, .18), transparent 34%),
    linear-gradient(180deg, #07100c 0%, #09140f 52%, #050b08 100%);
  color: var(--text);
  font-family: var(--apple-font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
  overflow-x: hidden;
}
body[data-difficulty="easy"] { --mode-color: #16e879; --mode-bg: #06130c; }
body[data-difficulty="medium"] { --mode-color: #f2c94c; --mode-bg: #171306; }
body[data-difficulty="hard"] { --mode-color: #ff8b32; --mode-bg: #1b0d05; }
body[data-difficulty="expert"] { --mode-color: #ef5555; --mode-bg: #190708; }
body[data-difficulty="impossible"] { --mode-color: #a855f7; --mode-bg: #100719; }
body[data-difficulty] {
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--mode-color) 10%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--mode-bg) 82%, #07100c), #050b08);
  transition: background .5s ease;
}
button, input, select {
  font-family: var(--apple-font);
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  font-synthesis: none;
}
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.menu-toggle {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  background: #241d13;
  display: grid;
  place-content: center;
  gap: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: transform 180ms ease, background 180ms ease;
}
.menu-toggle:hover { transform: scale(1.06); background: #342817; }
.menu-toggle span { display: block; width: 16px; height: 1px; background: #d8d0c2; }
.settings-menu {
  position: fixed;
  top: 0;
  left: max(0px, calc(50% - 340px));
  z-index: 59;
  width: 310px;
  height: 100vh;
  overflow: auto;
  padding: 18px 26px 30px;
  border-right: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(145deg, rgba(52, 39, 29, .88), rgba(24, 17, 12, .82));
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  box-shadow: 18px 0 50px rgba(0,0,0,.38);
  animation: menu-in 180ms ease both;
}
.settings-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.menu-brand { color: #a99a8a; font-style: italic; font-size: 20px; letter-spacing: -.04em; }
.settings-close { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; }
.menu-section { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid rgba(221,183,140,.14); }
.menu-section h2 { margin: 0 0 10px; color: #aa9987; font-size: 10px; letter-spacing: .16em; }
.menu-language { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.menu-language button {
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #a99a8a;
  font-size: 11px;
  font-weight: 500;
}
.menu-language button.is-active {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.16);
  color: #fff7ee;
}
.menu-difficulties { display: grid; gap: 7px; }
.menu-difficulties button, .menu-wide-option, .clip-options button {
  border: 1px solid rgba(255,190,117,.24);
  border-radius: 14px;
  min-height: 42px;
  color: #e8b27f;
  background: #3b2718;
  box-shadow: 0 4px 0 #120c08;
  font-weight: 700;
  text-align: left;
  padding: 0 15px;
}
.menu-difficulties button { display: flex; justify-content: space-between; align-items: center; }
.menu-difficulties button i { color: #9c7858; font-style: normal; letter-spacing: 2px; font-size: 10px; }
.menu-difficulties button.is-active, .menu-wide-option.is-active, .clip-options button.is-active { color: #1b0d04; background: #ff6d14; border-color: #ff9953; }
.menu-difficulties button:hover, .menu-wide-option:hover, .clip-options button:hover { filter: brightness(1.12); }
.menu-action, .menu-help { border: 0; background: none; color: #9f9185; padding: 4px 14px 22px; display: flex; gap: 12px; align-items: center; font-weight: 700; }
.menu-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.menu-auth-actions button { min-height: 38px; }
.menu-user { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #fff7ee; font-size: 12px; }
.menu-user .ghost { padding: 0; }
.menu-wide-option { width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.menu-wide-option b { font-size: 12px; }
.menu-wide-option span:last-child { margin-left: auto; }
.is-disabled { opacity: .35; }
.menu-switch { justify-content: space-between; }
.switch-dot { width: 27px; height: 16px; border-radius: 99px; background: #6e6257; position: relative; }
.switch-dot::after { content: ""; width: 12px; height: 12px; position: absolute; top: 2px; left: 2px; border-radius: 50%; background: white; }
.clip-options { display: flex; flex-wrap: wrap; gap: 6px; }
.clip-options button { min-width: 72px; min-height: 36px; text-align: center; padding: 0 8px; font-size: 11px; }
.volume-section input { width: 100%; accent-color: #ff6d14; }
.ui-option { margin-top: 2px; }
.ui-option em { background: #ff6d14; color: #281205; border-radius: 10px; padding: 2px 6px; font-size: 8px; font-style: normal; }
.menu-help { padding: 20px 0 0; }
.view-size-controls { display: grid; grid-template-columns: 42px 1fr 42px; gap: 8px; align-items: center; }
.view-size-controls button {
  height: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #f0d3b5;
  font-size: 20px;
  line-height: 1;
}
.view-size-controls button:hover { background: rgba(255,255,255,.16); }
.view-size-controls span { color: #b9a797; text-align: center; font-size: 12px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes home-enter {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.draw-mode .reference-home {
  max-width: 420px;
  padding: 150px 24px 80px;
  background: linear-gradient(155deg, rgba(44, 34, 25, .94), rgba(20, 16, 12, .9));
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  border: 0;
  filter: saturate(.92);
}
body.draw-mode .reference-home::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(226,169,92,.32);
  border-radius: 4% 7% 5% 6%;
  pointer-events: none;
  transform: rotate(-.5deg);
}
body.draw-mode .wordmark { color: rgba(255,226,175,.12); text-shadow: 2px 2px 0 rgba(211,136,54,.12); font-size: 40px; margin-bottom: 26px; }
body.draw-mode .era-tabs { gap: 18px; margin-bottom: 14px; }
body.draw-mode .era-tabs button { color: #8e8174; font-size: 11px; }
body.draw-mode .era-tabs button.is-active { color: #d5c7b9; }
body.draw-mode .difficulty-pills { gap: 5px; margin-bottom: 20px; }
body.draw-mode .difficulty-pills button {
  min-width: 55px;
  padding: 6px 8px;
  color: #bb9a7b;
  background: linear-gradient(180deg, rgba(86, 62, 40, .76), rgba(40, 28, 19, .72));
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 2px solid #4d3725;
  box-shadow: 0 4px 0 #120b07;
  font-size: 10px;
}
body.draw-mode .difficulty-pills button.is-active {
  background: linear-gradient(180deg, #ff8b3d, #f35b0a);
  border-color: #ff9a55;
  color: #1d0c03;
  box-shadow: 0 5px 0 #71300b;
}
body.draw-mode .clip-progress {
  width: 100%;
  height: 25px;
  margin-bottom: 76px;
  gap: 1px;
  background: #ffad7a;
  border: 2px solid #70482f;
  box-shadow: 0 3px 0 #25150d;
}
body.draw-mode .clip-progress span,
body.draw-mode .clip-progress i { background: #ffad7a; }
body.draw-mode .clip-progress .is-filled { background: #ffad7a; box-shadow: none; }
body.draw-mode .clip-progress.is-playing::after { background: #ff7a2d; box-shadow: 0 0 14px rgba(255,122,45,.55); }
body.draw-mode .clip-progress b {
  left: 50%;
  right: auto;
  top: 32px;
  color: #ff7b2b;
  transform: translateX(-50%);
}
body.draw-mode .preview-play {
  width: 124px;
  height: 124px;
  background: linear-gradient(145deg, #ff9a4f, #f35c0b);
  color: #1d0c03;
  border: 2px solid #ff9a55;
  box-shadow: 0 8px 0 #71300b, 0 0 0 3px #24150c;
}
body.draw-mode .preview-play strong { color: #ff8a3d; left: calc(100% + 14px); }
body.draw-mode .preview-play .play-tri { border-left-color: #190a02; }
body.draw-mode .search-row { width: 100%; margin-top: 30px; grid-template-columns: minmax(0, 1fr) 105px; gap: 6px; }
body.draw-mode .preview-guess,
body.draw-mode .skip-button {
  min-height: 42px;
  color: #d7a57c;
  background: linear-gradient(145deg, rgba(91, 61, 37, .72), rgba(45, 29, 19, .72));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 2px solid #614329;
  box-shadow: 0 4px 0 #130b07;
}
body.draw-mode .preview-guess input { font-size: 12px; color: #e1b08a; }
body.draw-mode .skip-button { color: #e1b08a; font-size: 12px; }
body.draw-mode .search-icon { color: #d58b4e; }
body.draw-mode .difficulty-pills button,
body.draw-mode .preview-guess,
body.draw-mode .skip-button { border-radius: 10px 13px 9px 12px; transform: rotate(-.6deg); }
body.draw-mode .preview-play { border-radius: 46% 54% 49% 51%; }
body.draw-mode .clip-progress { transform: rotate(.5deg); }

.topbar {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}
.topbar .nav { position: static; transform: none; justify-self: center; }
.topbar .top-actions { justify-self: end; }
.logo {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.03em;
}
.nav { display: flex; gap: 4px; }
.nav button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}
.nav button:hover,
.nav button.is-current { color: var(--text); }
.nav button.is-current { background: rgba(255, 255, 255, 0.08); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }

.lang {
  display: flex;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.lang button {
  background: transparent;
  border: 0;
  width: 42px;
  height: 32px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.lang button.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #15151a;
}

.solid, .line, .ghost {
  border: 1px solid transparent;
  min-height: 36px;
  padding: 0 14px;
  background: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  border-radius: 999px;
}
.solid {
  background: linear-gradient(135deg, #22ef86 0%, #0fc965 100%);
  color: #04150b;
  border-color: rgba(126, 255, 187, .72);
  box-shadow: 0 8px 24px rgba(22, 232, 121, .22), inset 0 1px 0 rgba(255,255,255,.34);
  font-weight: 700;
}
.solid:hover {
  background: linear-gradient(135deg, #54ff9e 0%, #16e879 100%);
  color: #031108;
  box-shadow: 0 10px 28px rgba(22, 232, 121, .32), inset 0 1px 0 rgba(255,255,255,.42);
}
.line { border-color: var(--line); }
.line:hover { border-color: var(--text); }
.ghost { color: var(--muted); }
.ghost:hover { color: var(--text); }
.solid:hover, .line:hover { transform: translateY(-1px); }
.large { min-height: 48px; padding: 0 20px; }

main { width: 100%; margin: 0 auto; padding: 0; }
.view { display: grid; gap: 40px; }
.view[data-view="auth"], .view[data-view="play"] {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: auto;
  padding: 108px 20px 40px;
  background: rgba(8, 9, 11, .94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.view[data-view="multi"] {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  align-content: center;
  overflow: auto;
  padding: 104px 20px 42px;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(34px) scale(.94);
  visibility: hidden;
  display: block;
  transition: opacity 420ms cubic-bezier(.2,.8,.2,1), transform 420ms cubic-bezier(.2,.8,.2,1), visibility 420ms;
}
body.multi-open .view[data-view="multi"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}
body.multi-open .reference-home { opacity: 0; transform: scale(.97); pointer-events: none; }
.reference-home { transition: opacity 360ms ease, transform 420ms cubic-bezier(.2,.8,.2,1); }
.reference-home .hero { animation: home-enter .7s cubic-bezier(.22,1,.36,1) both; }
.reference-home .game-preview {
  box-sizing: border-box;
  justify-self: center;
  margin-inline: auto;
  transform: scale(var(--view-scale));
  transform-origin: top center;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.reference-home .hero { transition: transform .35s cubic-bezier(.22, 1, .36, 1), filter .45s ease; }
.difficulty-pills button:active,
.skip-button:active,
.preview-guess:active { transform: scale(.96); }
.era-tabs button,
.difficulty-pills button,
.skip-button,
.preview-guess,
.result-button,
.menu-wide-option { will-change: transform; }
.view[data-view="multi"]::before {
  display: none;
}
.multi-close { display: none; }
#view-home { grid-template-columns: 1fr; align-items: start; }
.reference-home {
  width: 100%;
  max-width: 820px;
  box-sizing: border-box;
  min-height: 100vh;
  margin: 0 auto;
  padding: 224px 24px 80px;
  text-align: center;
  display: grid;
  place-items: center;
  align-content: center;
  background: transparent;
  clip-path: none;
}
.reference-home .hero {
  width: min(680px, 100%);
  max-width: 680px;
  min-width: 0;
  margin-inline: auto;
  position: relative;
  top: -84px;
  transform: none;
  transform-origin: top center;
  justify-items: center;
}
.reference-home .kicker { display: none; }
.reference-home .wordmark { display: block; }
.reference-home .hero { display: grid; justify-items: center; }
.reference-home .kicker { color: rgba(255,255,255,.5); margin-bottom: 10px; }
.wordmark { font-family: var(--sans); font-size: clamp(52px, 10vw, 92px); font-weight: 800; font-style: italic; letter-spacing: -0.09em; color: rgba(255,255,255,.88); text-shadow: 0 0 38px rgba(22,232,121,.12); }
.reference-subtitle { display: none; }
.reference-home .lede { display: none; }
.reference-home .hero-panel { display: none; }
.game-preview {
  width: 100%;
  margin: 32px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: grid;
  justify-items: center;
}
.era-tabs { display: flex; justify-content: center; align-items: center; gap: clamp(12px, 4vw, 28px); margin-bottom: 22px; flex-wrap: wrap; }
.era-tabs button, .difficulty-pills button { border: 0; background: none; color: rgba(255,255,255,.35); font-size: 13px; font-weight: 600; padding: 7px 10px; transition: color .2s ease, transform .2s ease; }
.era-tabs button:hover { color: rgba(255,255,255,.75); transform: translateY(-1px); }
.era-tabs button.is-active { color: rgba(255,255,255,.9); }
.era-spinner { width: 13px; height: 13px; border: 1.5px solid rgba(255,255,255,.2); border-top-color: var(--accent); border-radius: 50%; opacity: 0; transition: opacity .2s ease; }
.era-tabs.is-loading .era-spinner { opacity: 1; animation: spin .8s linear infinite; }
.difficulty-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(6px, 1.8vw, 10px); margin-bottom: 30px; }
.difficulty-pills button {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.035));
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 8px 18px rgba(0,0,0,.12);
  transition:
    transform .42s cubic-bezier(.22, 1, .36, 1),
    border-color .42s ease,
    color .42s ease,
    box-shadow .42s ease,
    filter .42s ease;
  will-change: transform, background, box-shadow;
}
.difficulty-pills button.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,.18);
  opacity: .3;
  pointer-events: none;
  animation: glass-active-in .5s cubic-bezier(.22, 1, .36, 1) both;
}
.difficulty-pills button::before {
  content: "";
  position: absolute;
  inset: 1px 14% auto;
  height: 1px;
  background: rgba(255,255,255,.38);
  opacity: .45;
  pointer-events: none;
  transition: opacity .42s ease;
}
.difficulty-pills button:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }
.difficulty-pills button.is-active { background: linear-gradient(180deg, rgba(74,255,157,.94), rgba(18,216,110,.68)); border-color: rgba(126,255,187,.9); color: #04150b; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 24px rgba(18,216,110,.35); transform: translateY(-1px); }
.difficulty-pills button:nth-child(2).is-active { background: linear-gradient(180deg, rgba(255,229,112,.94), rgba(242,201,76,.7)); border-color: rgba(255,239,153,.9); color: #241d00; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 24px rgba(242,201,76,.35); }
.difficulty-pills button:nth-child(3).is-active { background: linear-gradient(180deg, rgba(255,172,91,.96), rgba(242,140,40,.72)); border-color: rgba(255,202,143,.92); color: #2a1200; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 24px rgba(242,140,40,.35); }
.difficulty-pills button:nth-child(4).is-active { background: linear-gradient(180deg, rgba(255,116,116,.95), rgba(239,68,68,.7)); border-color: rgba(255,165,165,.9); color: #260606; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 24px rgba(239,68,68,.4); }
.difficulty-pills button:nth-child(5).is-active { background: linear-gradient(135deg, rgba(177,126,255,.95), rgba(22,18,31,.76)); border-color: rgba(192,153,255,.95); color: #f3eaff; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 28px rgba(139,92,246,.4); }
.clip-progress {
  height: 28px;
  position: relative;
  width: min(420px, 100%);
  margin: 0 auto 34px;
  border: 1px solid rgba(134, 178, 154, .42);
  border-radius: 999px;
  overflow: hidden;
  background: #1b2420;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    inset 0 -2px 4px rgba(0,0,0,.25),
    0 3px 12px rgba(70, 170, 112, .12);
}
.clip-progress::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: auto;
  bottom: 3px;
  left: max(6px, min(calc(100% - 6px), var(--playhead-position, 0%)));
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--mode-color, var(--accent));
  background: transparent;
  box-shadow: 0 0 8px color-mix(in srgb, var(--mode-color, var(--accent)) 65%, transparent);
  opacity: .95;
  transform: translateX(-50%);
  will-change: left;
  transition: left .2s linear;
  pointer-events: none;
}
.clip-progress.is-playing::before {
  animation: progress-playhead-pulse .8s ease-in-out infinite;
}
.clip-progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--playback-fill, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--mode-color, var(--accent));
  box-shadow: 0 0 12px color-mix(in srgb, var(--mode-color, var(--accent)) 45%, transparent);
  will-change: width;
  pointer-events: none;
  transition: width .2s linear;
}
.clip-progress span,
.clip-progress i {
  display: block;
  position: absolute;
  z-index: 2;
  top: 2px;
  bottom: 0;
  width: 1px;
  margin: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.7);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
}
.clip-progress span { left: 0.67%; }
.clip-progress i:nth-of-type(1) { left: 3.33%; }
.clip-progress i:nth-of-type(2) { left: 13.33%; }
.clip-progress i:nth-of-type(3) { left: 53.33%; }
.clip-progress i:nth-of-type(4) { right: 0.67%; }
.clip-progress span.is-filled,
.clip-progress i.is-filled {
  width: 4px;
  margin-left: -1px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 14px rgba(255,255,255,.8);
  opacity: 1;
}
.clip-progress-labels {
  position: relative;
  z-index: 4;
  min-height: 15px;
}
.clip-progress-labels span { opacity: 0; }
.clip-progress-labels span.is-active { opacity: 1; }
@keyframes progress-glass-sheen {
  from { opacity: .55; }
  to { opacity: 1; }
}
@keyframes progress-playhead-pulse {
  0%, 100% { box-shadow: 0 0 7px rgba(255,255,255,.75); }
  50% { box-shadow: 0 0 14px rgba(255,255,255,1); }
}
.clip-progress b {
  position: absolute;
  left: var(--target-position, 0%);
  top: calc(100% + 8px);
  z-index: 3;
  color: var(--mode-color, #12d86e);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
  text-shadow: 0 0 10px color-mix(in srgb, var(--mode-color, #12d86e) 55%, transparent);
}
@keyframes progress-segment-in {
  from { opacity: .35; transform: scaleX(.7); }
  to { opacity: 1; transform: scaleX(1); }
}
.preview-controls { width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.reference-home .preview-controls { width: 100%; min-width: 0; }
.reference-home .preview-play { justify-self: center; }
.reference-home .clip-progress,
.reference-home .search-row,
.reference-home .quick-results { width: 100%; max-width: 520px; }
.reference-home .clip-progress {
  width: min(600px, 100%);
  height: 28px;
  margin-bottom: 10px;
}
.clip-progress-labels {
  width: min(600px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 auto 34px;
  color: rgba(255,255,255,.38);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.clip-progress-labels span:first-child { text-align: left; }
.clip-progress-labels span:last-child { text-align: right; }
.clip-progress-labels span.is-active {
  color: var(--mode-color, var(--accent));
  text-shadow: 0 0 12px color-mix(in srgb, var(--mode-color, var(--accent)) 55%, transparent);
}
.reference-home .search-row,
.reference-home .quick-results { max-width: 620px; }
.preview-play {
  width: 188px;
  height: 188px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: linear-gradient(145deg, #28f28a 0%, #0fc965 58%, #087540 100%);
  border-color: rgba(151,255,198,.82);
  color: #f4fff8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.18),
    inset 0 -10px 20px rgba(0,0,0,.5),
    0 0 0 8px rgba(255,255,255,.06),
    0 14px 34px rgba(0,0,0,.28),
    0 0 38px rgba(22,232,121,.3);
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease, filter .28s ease;
}
.preview-play:not(.is-playing) { transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease, background .28s ease; }
.preview-play.is-playing {
  animation: music-pulse 2s ease-in-out infinite;
}
.preview-play.is-playing::before,
.preview-play.is-playing::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: .35;
  pointer-events: none;
  animation: music-ring 3s ease-out infinite;
}
.preview-play.is-playing::after { animation-delay: 1.5s; }
.preview-play:hover {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.08) saturate(1.05);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.24),
    0 0 0 12px rgba(255,255,255,.08),
    0 18px 42px rgba(0,0,0,.42),
    0 0 58px rgba(0,0,0,.5);
}
.preview-play:active { transform: translateY(1px) scale(.96); }
.preview-play .play-tri {
  margin-left: 6px;
  border-left-color: #032411;
  border-top-width: 15px;
  border-bottom-width: 15px;
  border-left-width: 23px;
  filter: drop-shadow(0 2px 2px rgba(255,255,255,.18));
}
.preview-play strong { color: var(--mode-color, #10ed78); position: absolute; left: calc(100% + 14px); font-size: 14px; white-space: nowrap; }
.mini-skip { min-height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.7); font-size: 11px; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.mini-skip:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.1); transform: translateY(-1px); }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 8px; width: min(500px, 100%); margin: 32px auto 0; align-items: stretch; }
.search-row .preview-guess,
.search-row .skip-button { min-width: 0; }
.search-row > * { min-width: 0; }
.preview-guess { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; min-height: 50px; padding: 0 15px; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; color: rgba(255,255,255,.4); text-align: left; background: rgba(255,255,255,.045); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 22px rgba(0,0,0,.12); cursor: text; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.preview-guess:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(22,232,121,.08); }
.preview-guess input,
.preview-guess input:focus {
  min-width: 0;
  min-height: 36px;
  padding: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}
.search-icon { position: relative; width: 15px; height: 15px; border: 1.8px solid currentColor; border-radius: 50%; color: rgba(255,255,255,.65); cursor: text; }
.search-icon { pointer-events: auto; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.8px; right: -5px; bottom: -2px; transform: rotate(45deg); transform-origin: left center; border-radius: 2px; background: currentColor; }
.search-spinner { width: 15px; height: 15px; border: 1.5px solid rgba(255,255,255,.15); border-top-color: var(--accent); border-radius: 50%; opacity: 0; }
.preview-guess.is-loading .search-spinner { opacity: 1; animation: spin .7s linear infinite; }
.skip-button {
  min-height: 50px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.86);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.skip-button:hover { border-color: rgba(255,255,255,.52); background: rgba(255,255,255,.1); transform: translateY(-1px); }
.skip-icon {
  display: inline-block;
  position: relative;
  width: 15px;
  height: 13px;
  flex: 0 0 15px;
}
.skip-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid currentColor;
}
.skip-icon::after {
  content: "";
  position: absolute;
  right: 0;
  top: 1px;
  width: 2px;
  height: 11px;
  border-radius: 2px;
  background: currentColor;
}
.quick-results { width: min(400px, 100%); margin: 8px auto 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(18,20,23,.96); box-shadow: 0 18px 40px rgba(0,0,0,.35); text-align: left; }
.track-loading { min-height: 18px; margin: 12px 0 0; color: rgba(255,255,255,.48); font-size: 12px; }
.streak-display {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 18px auto 0;
  padding: 5px 10px 5px 7px;
  border: 1px solid color-mix(in srgb, var(--mode-color, #16e879) 30%, rgba(255,255,255,.12));
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 5px 16px rgba(0,0,0,.14);
  text-align: left;
}
.streak-fire {
  display: inline-block;
  width: 18px;
  height: 18px;
  font-size: 15px;
  line-height: 1;
  text-shadow: 0 0 9px rgba(255,155,56,.75);
}
.streak-display strong { color: #fff; font-size: 15px; line-height: 1; }
.streak-display small { color: rgba(255,255,255,.5); font-size: 10px; }
.game-preview.is-loading .preview-play { opacity: .55; pointer-events: none; }
.round-result { width: min(340px, 100%); margin: 10px auto 0; text-align: center; animation: result-in .4s ease both; }
.result-cover-wrap { width: 146px; height: 146px; margin: 0 auto 20px; overflow: hidden; border-radius: 15px; background: rgba(255,255,255,.08); box-shadow: 0 12px 30px rgba(0,0,0,.38); }
.result-cover { width: 100%; height: 100%; display: block; object-fit: cover; }
.result-eyebrow { color: #ff4d43; font-size: 11px; letter-spacing: .35em; font-weight: 800; }
.round-result h2 { margin: 8px 0 0; color: #fff8ef; font-size: 28px; line-height: 1.1; }
.round-result p { margin: 6px 0 14px; color: #a99b8c; font-size: 13px; }
.result-state { display: inline-block; padding: 7px 16px; border: 2px solid #ff4d43; border-radius: 999px; color: #ff4d43; font-size: 15px; transform: rotate(-5deg); }
.result-state.is-won { color: #ff9a3d; border-color: #ff8a2b; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.result-button { min-height: 40px; border: 2px solid #5d402a; border-radius: 13px; background: rgba(75,48,29,.72); color: #e9a36d; box-shadow: 0 4px 0 #170d08; font-weight: 700; font-size: 12px; }
.result-button:hover { filter: brightness(1.15); transform: translateY(-1px); }
.share-button { grid-column: 1 / -1; }
.next-button { background: linear-gradient(180deg, #ff8140, #ee5b16); color: #241006; border-color: #ff9a55; }
@keyframes result-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes glass-active-in {
  from { opacity: 0; transform: scale(.82); }
  to { opacity: .3; transform: scale(1); }
}
.quick-result { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 0; border-bottom: 1px solid rgba(255,255,255,.07); background: transparent; color: var(--text); text-align: left; }
.quick-result:last-child { border-bottom: 0; }
.quick-result:hover { background: rgba(22,232,121,.12); }
.quick-result { transition: background .2s ease, transform .2s ease; }
.quick-result:active { transform: scale(.985); }
.quick-result span { color: var(--muted); font-size: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes music-pulse {
  0%, 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--mode-color, #0fc965) 10%, transparent), 0 0 45px color-mix(in srgb, var(--mode-color, #0fc965) 35%, transparent); }
  50% { box-shadow: 0 0 0 15px color-mix(in srgb, var(--mode-color, #0fc965) 14%, transparent), 0 0 62px color-mix(in srgb, var(--mode-color, #0fc965) 48%, transparent); }
}
@keyframes music-pulse-drawn {
  0%, 100% { box-shadow: 0 0 0 3px #24150c, 0 8px 0 #71300b; }
  50% { box-shadow: 0 0 0 6px #24150c, 0 8px 0 #71300b; }
}
@keyframes music-ring {
  0% { transform: scale(.88); opacity: .42; }
  100% { transform: scale(1.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reference-home .hero,
  .preview-play.is-playing,
  .preview-play.is-playing::before,
  .preview-play.is-playing::after { animation: none; }
}
.preview-guess button { min-height: 36px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: rgba(255,255,255,.72); border-radius: 9px; padding: 0 12px; }
.reference-home .cta-row { margin-top: 28px; }
.reference-home .stats { display: none; }
.reference-home .cta-row, .reference-home .discover-row { display: none; }
.reference-home .wordmark { margin: 0 0 30px; color: rgba(255,255,255,.08); font-size: clamp(42px, 8vw, 60px); }
.topbar { display: none; }
.preview-play { width: 188px; height: 188px; }
.search-row { width: min(620px, 100%); grid-template-columns: minmax(0, 1fr) 104px; }
.skip-button { min-height: 42px; font-size: 12px; }
.preview-guess { min-height: 42px; }
.discover-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(700px, 100%); margin: 24px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.06); text-align: left; }
.discover-row article { min-height: 78px; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); }
.discover-row strong, .discover-row span { display: block; }
.discover-row strong { font-size: 15px; font-style: italic; color: rgba(255,255,255,.82); }
.discover-row span { margin-top: 4px; font-size: 10px; color: rgba(255,255,255,.35); }

.kicker {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(40px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
.lede { max-width: 46ch; color: var(--muted); margin: 20px 0 0; }
.hero { animation: rise-in 700ms cubic-bezier(.2,.8,.2,1) both; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats {
  list-style: none;
  padding: 28px 0 0;
  margin: 28px 0 0;
  display: flex;
  gap: 28px;
  border-top: 1px solid var(--line);
}
.stats li { display: grid; gap: 4px; }
.stats strong { font-family: var(--serif); font-size: 28px; }
.stats span { color: var(--muted); font-size: 12px; }

.hero-panel, .score-card, .auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hero-panel { overflow: hidden; position: relative; }
.hero-art { min-height: 210px; margin: -28px -28px 26px; position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 45% 45%, rgba(184,160,255,.28), transparent 8rem), linear-gradient(135deg, rgba(255,179,138,.14), rgba(184,160,255,.1)); }
.hero-art-orb, .hero-art-ring { position: absolute; border-radius: 50%; }
.hero-art-orb { width: 118px; height: 118px; background: linear-gradient(145deg, var(--accent-warm), var(--accent)); box-shadow: 0 0 70px rgba(184,160,255,.5); animation: float 5s ease-in-out infinite; }
.hero-art-ring { width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.32); animation: breathe 4s ease-in-out infinite; }
.waveform { position: relative; z-index: 1; display: flex; align-items: center; gap: 5px; }
.waveform i { width: 3px; height: 24px; border-radius: 4px; background: rgba(255,255,255,.82); animation: equalize 1.2s ease-in-out infinite alternate; }
.waveform i:nth-child(2n) { animation-delay: -.4s; }
.waveform i:nth-child(3n) { height: 42px; animation-delay: -.8s; }
.waveform i:nth-child(4n) { height: 62px; animation-delay: -.2s; }
.hero-art-caption { position: absolute; bottom: 16px; left: 18px; color: rgba(255,255,255,.55); font-size: 9px; letter-spacing: .2em; }
.panel-label {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-panel ol, .rules { margin: 0; padding-left: 18px; color: var(--muted); }
.hero-panel li, .rules li { margin: 10px 0; }

.auth-card { max-width: 440px; margin: 20px auto; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.google-auth-button { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text); font-weight: 700; transition: background .2s ease, transform .2s ease; }
.google-auth-button:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.google-auth-button:disabled { opacity: .7; cursor: wait; transform: none; }
.google-auth-button.is-loading .google-mark { animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.google-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #4285f4; font-weight: 800; font-family: Arial, sans-serif; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: -28px -28px 24px; border-bottom: 1px solid var(--line); }
.auth-tabs button {
  background: none;
  border: 0;
  min-height: 48px;
  color: var(--muted);
}
.auth-tabs button.is-active {
  color: var(--text);
  box-shadow: inset 0 -1px 0 var(--accent);
}
form h2 { margin-bottom: 20px; }
label { display: grid; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
input, select {
  background: rgba(9, 25, 16, .86);
  border: 1px solid var(--line);
  min-height: 44px;
  padding: 0 12px;
  width: 100%;
}
input:focus, select:focus { outline: 1px solid var(--accent); }
input::placeholder { color: #66645f; }
.auth-card, .hero-panel, .score-card, .player { border-radius: 2px; }
.form-error { color: var(--danger); font-size: 13px; }

.play-layout, .multi-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; position: relative; z-index: 1; }
.multi-layout { display: block; }
.multi-layout .players-stage { margin: auto; }
.lobby-actions { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin: 24px auto 0; }
.lobby-actions .solid, .lobby-actions .line { min-height: 42px; }
.lobby-actions .join-row { margin: 0; }
.multiplayer-core { position: absolute; inset: 50% auto auto 50%; width: min(250px, 58%); transform: translate(-50%, -50%); text-align: center; }
.multiplayer-core .kicker { margin: 0 0 10px; color: var(--accent); font-size: 10px; letter-spacing: .22em; }
.multiplayer-core h2 { margin: 0; font-family: var(--sans); font-size: clamp(28px, 5vw, 46px); font-weight: 700; letter-spacing: -.06em; }
.multiplayer-core p:last-child { margin: 12px auto 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 32px; }
.disc {
  width: min(280px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  place-content: center;
  background:
    radial-gradient(circle at 50% 50%, #272332 0 14%, transparent 15%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.07) 0 1px, transparent 1px 8px),
    linear-gradient(145deg, #24202e, #0f1015 65%, #2d2437);
  box-shadow: 0 22px 70px rgba(0,0,0,.38), inset 0 0 0 10px rgba(255,255,255,.025);
  position: relative;
  animation: disc-float 6s ease-in-out infinite;
}
.disc-glow { position: absolute; inset: 20%; border-radius: 50%; background: rgba(184,160,255,.2); filter: blur(24px); }
.disc.compact { width: 180px; margin-bottom: 20px; }
#play-clip, #mp-play-clip {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  background: linear-gradient(145deg, rgba(55,255,151,.24), rgba(8,112,59,.56));
  box-shadow: 0 0 28px rgba(22,232,121,.18), inset 0 1px 0 rgba(255,255,255,.24);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  transition: transform 180ms ease, background 180ms ease;
}
#play-clip:hover, #mp-play-clip:hover { transform: scale(1.06); background: linear-gradient(145deg, rgba(91,255,169,.38), rgba(11,151,77,.7)); }
.play-tri {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid var(--accent);
  margin-left: 4px;
}
.clip-meta { margin: 16px 0 0; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; }
.guess-form { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; }
.guess-form input { min-width: 0; }
.feedback { min-height: 24px; margin: 14px 0 0; font-size: 14px; }
.feedback.ok { color: var(--ok); }
.feedback.bad { color: var(--danger); }
.score-card dl { margin: 0; display: grid; gap: 14px; }
.score-card dl div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.score-card dt { color: var(--muted); }
.score-card dd { margin: 0; font-family: var(--serif); font-size: 24px; }
.hint { color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.need-login { color: var(--danger); }
.join-row { display: flex; gap: 8px; margin-top: 12px; }
#join-code { text-transform: uppercase; letter-spacing: 0.2em; max-width: 140px; }
.room-actions { margin-top: 28px; }
.players-stage {
  position: relative;
  width: min(520px, 88vw);
  height: min(520px, 88vw);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.035), transparent 58%);
}
.plus-avatar { position: absolute; width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(8,9,11,.55); color: rgba(255,255,255,.72); font-size: 34px; font-weight: 300; cursor: pointer; transition: transform 220ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, color 220ms ease, box-shadow 220ms ease; }
.plus-avatar:hover { transform: scale(1.12); border-color: var(--accent); color: #fff; }
.plus-one { top: 8%; left: 50%; transform: translateX(-50%); }
.plus-two { right: 8%; top: 50%; transform: translateY(-50%); }
.plus-three { bottom: 8%; left: 50%; transform: translateX(-50%); }
.plus-four { left: 8%; top: 50%; transform: translateY(-50%); }
.plus-one:hover, .plus-three:hover { transform: translateX(-50%) scale(1.12); }
.plus-two:hover, .plus-four:hover { transform: translateY(-50%) scale(1.12); }
.party-panel {
  position: fixed;
  z-index: 40;
  top: 24px;
  right: 24px;
  width: min(360px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: rgba(18, 29, 24, .94);
  box-shadow: -18px 22px 70px rgba(0,0,0,.35), 0 0 35px rgba(22,232,121,.1);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  animation: party-panel-in .35s cubic-bezier(.22,1,.36,1) both;
}
.party-panel[hidden] { display: none; }
.party-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.party-panel h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.05em; }
.party-panel .panel-label { color: var(--mode-color, var(--accent)); font-size: 10px; letter-spacing: .18em; }
.party-panel-close { font-size: 24px; padding: 0 6px; }
.party-code { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.06); }
.party-code span, .party-add label, .party-list-title { color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.party-code strong { font-size: 24px; letter-spacing: .12em; color: var(--mode-color, var(--accent)); }
.party-code button, .invite-friend { border: 0; background: none; color: var(--mode-color, var(--accent)); font-size: 11px; font-weight: 700; cursor: pointer; }
.party-start { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 4px; }
.party-start div { display: grid; gap: 4px; }
.party-start span { color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.party-start strong { font-size: 18px; }
.party-start .solid { min-height: 40px; padding: 0 18px; }
.party-add { margin: 22px 0; }
.party-add label { display: block; margin-bottom: 8px; }
.party-add > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.party-add input { min-width: 0; }
.party-add .solid { min-height: 40px; padding: 0 14px; }
.party-list { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.party-list + .party-list { margin-top: 18px; }
.party-list-title { display: flex; justify-content: space-between; margin-bottom: 10px; }
.party-list-title b { color: var(--mode-color, var(--accent)); }
.party-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.party-list li { display: flex; align-items: center; gap: 9px; min-height: 30px; color: rgba(255,255,255,.82); font-size: 13px; }
.party-list li small { margin-left: auto; color: var(--muted); font-size: 11px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mode-color, var(--accent)); box-shadow: 0 0 10px var(--mode-color, var(--accent)); }
.invite-friend { margin-left: auto; padding: 4px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; }
@keyframes party-panel-in { from { opacity: 0; transform: translateX(36px) scale(.97); } to { opacity: 1; transform: none; } }

.match-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.player {
  border: 1px solid var(--line);
  padding: 16px 18px;
  display: grid;
  gap: 4px;
}
.player span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.player b { font-family: var(--serif); font-size: 32px; font-weight: 400; }
.log { list-style: none; padding: 0; margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.log li { padding: 6px 0; border-top: 1px solid var(--line); }

.foot {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.foot p { margin: 0; font-family: var(--serif); color: var(--text); font-size: 20px; }

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(10px, -8px) scale(1.04); } }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .45; } 50% { transform: scale(1.08); opacity: .9; } }
@keyframes equalize { from { transform: scaleY(.55); } to { transform: scaleY(1.25); } }
@keyframes disc-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px 16px;
  font-size: 13px;
}

@media (max-width: 860px) {
  .topbar { height: auto; min-height: 76px; padding: 12px 0; }
  .nav { order: 3; width: 100%; justify-content: flex-start; }
  #view-home, .play-layout, .multi-layout { grid-template-columns: 1fr; }
  .guess-form { grid-template-columns: 1fr 1fr; }
  .guess-form input { grid-column: 1 / -1; }
  .foot { flex-direction: column; }
  .discover-row { grid-template-columns: 1fr; }
  .reference-home { width: 100%; max-width: 820px; }
  .search-row { grid-template-columns: minmax(0, 1fr) 104px; }
}
@media (max-width: 560px) {
  .reference-home { padding: 72px 12px; clip-path: none; }
  .reference-home .hero { top: -38px; }
  .game-preview { padding: 0; border-radius: 0; }
  .reference-home .wordmark { font-size: clamp(42px, 15vw, 60px); }
  .era-tabs { gap: 4px; margin-bottom: 14px; }
  .era-tabs button { padding-inline: 6px; font-size: 12px; }
  .difficulty-pills { gap: 4px; }
  .difficulty-pills button { padding: 6px 8px; font-size: 11px; }
  .clip-progress { width: min(100%, 420px); }
  .preview-play { width: 148px; height: 148px; }
  .search-row { grid-template-columns: minmax(0, 1fr) 92px; gap: 6px; }
  .skip-button { padding: 0 7px; font-size: 12px; }
}
