@import url('/fonts.css');
.registration-panel {
  max-width: 560px;
}
:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #232326;
  background: #f6f5f0;
  font-synthesis: none;
  --purple: #6e4ee8;
  --muted: #737378;
  --line: #e4e3de;
  --lime: #ddf297;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #aa91ff;
  outline-offset: 3px;
}
a {
  color: var(--purple);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 20;
  background: #fff;
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
.shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 32px 22px;
  background: #eeede7;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #232326;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -1px;
}
.brand img {
  width: 37px;
  height: 37px;
}
.brand small {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 650;
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.nav {
  display: grid;
  gap: 8px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 12px;
  color: #66666b;
  font-weight: 600;
  font-size: 14px;
}
.nav a.active {
  background: white;
  color: var(--purple);
  box-shadow: 0 2px 5px #00000004;
}
.nav a:hover {
  text-decoration: none;
  background: #ffffff88;
}
.nav svg {
  width: 20px;
  height: 20px;
}
.side-bottom {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid #dcdcd5;
  min-width: 0;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dcd4fa;
  color: #5035a9;
  display: inline-grid;
  place-items: center;
  font-weight: 750;
  flex-shrink: 0;
}
.profile strong {
  color: #333;
  display: block;
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.content {
  min-width: 0;
  padding: 0 48px 60px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 87px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
  font-size: 13px;
}
.topbar .crumb {
  color: var(--muted);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #89a93c;
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.page-head {
  padding: 36px 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--purple);
  margin: 0 0 10px;
}
h1 {
  font-size: clamp(30px, 3.1vw, 44px);
  letter-spacing: -1.8px;
  line-height: 1.12;
  margin: 0 0 10px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.7px;
  margin: 0 0 12px;
}
h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  min-height: 44px;
  background: var(--purple);
  color: white;
  font-weight: 650;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn:hover {
  filter: brightness(0.95);
  text-decoration: none;
}
.btn.secondary {
  color: #37343e;
  background: white;
  border: 1px solid var(--line);
}
.btn.dark {
  background: #27272a;
}
.btn.lime {
  background: var(--lime);
  color: #2c361b;
}
.btn.danger {
  background: #fbe7e5;
  color: #a72f27;
}
.btn.small {
  padding: 9px 12px;
  font-size: 12px;
  min-height: 38px;
}
.linkbtn {
  background: none;
  border: 0;
  color: var(--purple);
  padding: 10px 0;
  font-size: 13px;
  min-height: 40px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 310px;
  background: #e8e1fa;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  margin-bottom: 25px;
}
.hero-copy {
  padding: 40px;
  z-index: 1;
}
.hero h2 {
  font-size: clamp(32px, 3.4vw, 49px);
  line-height: 1.06;
  letter-spacing: -2px;
  max-width: 460px;
  margin: 14px 0 17px;
}
.hero p {
  color: #655e79;
  max-width: 340px;
  font-size: 14px;
}
.record-wrap {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.record {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #252429 0 2px, #333139 3px 4px);
  box-shadow: 13px 17px 0 #b7a4e048;
  display: grid;
  place-items: center;
  transform: rotate(-18deg);
}
.record-center {
  height: 105px;
  width: 105px;
  border-radius: 50%;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  border: 2px solid #24222b;
}
.record-center:after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #252429;
  margin-top: 12px;
}
.record-note {
  position: absolute;
  bottom: 25px;
  right: 25px;
  background: #fff9;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 11px;
  transform: rotate(-4deg);
  letter-spacing: 1px;
}
.step-no {
  color: var(--purple);
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 14px;
}
.step p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 30px 0 17px;
}
.section-head h2 {
  margin: 0;
}
.join-row {
  display: flex;
  gap: 10px;
  align-items: end;
}
.join-row label {
  flex: 1;
}
.form {
  display: grid;
  gap: 17px;
}
.field,
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
}
input:not([type='checkbox']),
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dcdce0;
  border-radius: 9px;
  background: #fff;
  padding: 11px 12px;
  color: #252529;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
  flex-shrink: 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  min-height: 35px;
}
.help {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}
.form-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.mode-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
}
.mode-card:has(input:checked) {
  border-color: var(--purple);
  background: #f5f1ff;
}
.mode-card p {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin: 6px 0 0;
}
.room-code {
  font-family: ui-monospace, monospace;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 7px;
}
.lobby-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
}
.invite {
  text-align: center;
  background: #eeebfb;
}
.invite img {
  width: 160px;
  height: 160px;
  background: white;
  padding: 8px;
  border-radius: 12px;
  margin: 20px auto;
  display: block;
}
.player-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.player-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f8f8f5;
  border-radius: 12px;
}
.player-row .name {
  flex: 1;
  overflow-wrap: anywhere;
}
.pill {
  padding: 5px 8px;
  border-radius: 6px;
  background: #eeebf7;
  font-size: 11px;
  color: #665388;
  font-weight: 700;
}
.pill.green {
  background: #ebf3da;
  color: #506928;
}
.pill.red {
  background: #fbe8e7;
  color: #a33e3b;
}
.room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 22px;
}
.now-playing {
  background: #29272f;
  color: white;
  border-radius: 18px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.now-playing .eyebrow {
  color: #c4b3ff;
}
.now-playing h2 {
  font-size: 29px;
  letter-spacing: -1px;
}
.now-playing .sub {
  color: #bcb7c7;
}
.wave {
  height: 45px;
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 23px 0;
}
.wave i {
  height: 18px;
  width: 5px;
  background: #bda6ff;
  border-radius: 8px;
}
.wave i:nth-child(3n) {
  height: 38px;
}
.wave i:nth-child(2n) {
  height: 28px;
}
.playing .wave i {
  animation: pulse 1s ease-in-out infinite alternate;
}
.playing .wave i:nth-child(2n) {
  animation-delay: -0.4s;
}
@keyframes pulse {
  to {
    transform: scaleY(0.35);
  }
}
.play-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.timeline-shell {
  margin-top: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.timeline {
  display: flex;
  overflow-x: auto;
  gap: 7px;
  align-items: center;
  padding: 16px 0 22px;
  min-height: 160px;
  scrollbar-width: thin;
}
.song {
  flex: 0 0 142px;
  min-height: 156px;
  background: #f1efdf;
  border-radius: 12px;
  padding: 17px 14px;
  border: 1px solid #e8e4ce;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.song:nth-of-type(3n) {
  background: #e7ebf5;
  border-color: #dce2ef;
}
.song strong {
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.song small {
  font-size: 11px;
  color: #767267;
  overflow-wrap: anywhere;
}
.song .year {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 8px;
}
.gap {
  border: 1px dashed #c9c1de;
  background: #f9f6ff;
  color: var(--purple);
  border-radius: 10px;
  min-width: 44px;
  height: 120px;
  font-size: 22px;
}
.gap.selected {
  background: var(--purple);
  color: white;
  border-style: solid;
}
.gap.marked {
  border: 3px solid #d78c33;
}
.unknown {
  border: 2px dashed #bfaee9;
  padding: 15px;
  border-radius: 10px;
  background: #f7f3ff;
  cursor: grab;
  font-size: 13px;
  font-weight: 650;
  display: inline-block;
}
.guess-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 15px 0;
}
.score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #efeeeb;
  padding: 15px 0;
}
.score-row:last-child {
  border: 0;
}
.score-row .name {
  flex: 1;
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.score-row .score {
  font-size: 22px;
  font-weight: 750;
}
.score-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.score-row.active .avatar {
  background: var(--lime);
  color: #46591f;
}
.reveal {
  background: #e9f1d6;
  border: 1px solid #dbe6be;
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 22px;
}
.reveal .big-year {
  font-size: 56px;
  font-weight: 850;
  letter-spacing: -3px;
}
.banner {
  background: #fff0cd;
  border: 1px solid #eadcb6;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 13px;
  margin: 15px 0;
  line-height: 1.5;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
  font-size: 14px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.toolbar input {
  flex: 1;
  min-width: 180px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 13px 10px;
  border-bottom: 1px solid #efeeea;
  max-width: 360px;
  overflow-wrap: anywhere;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
td:first-child,
th:first-child {
  width: 40px;
}
td input[type='checkbox'] {
  margin: 0;
}
.tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 0 15px;
}
.tabs button {
  background: none;
  border: 1px solid var(--line);
  padding: 11px 17px;
  min-height: 44px;
  border-radius: 9px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
}
.tabs button.active {
  background: #29272f;
  color: white;
  border-color: #29272f;
}
.selection-box {
  max-height: 250px;
  overflow: auto;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 9px;
}
.selection-box label {
  font-size: 12px;
}
.stats {
  display: flex;
  gap: 24px;
  margin: 10px 0 22px;
  font-size: 12px;
  color: var(--muted);
}
.stats strong {
  display: block;
  font-size: 27px;
  color: #29272f;
  letter-spacing: -1px;
}
.stack {
  display: grid;
  gap: 20px;
}
.wide {
  grid-column: 1/-1;
}
.hidden {
  display: none !important;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: #29272f;
  color: white;
  border-radius: 12px;
  box-shadow: 0 5px 30px #0002;
  z-index: 100;
  max-width: calc(100vw - 30px);
  font-size: 14px;
  display: none;
}
#toast.show {
  display: block;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(540px, calc(100% - 30px));
  max-height: 90vh;
  padding: 28px;
  background: #faf9f5;
}
dialog::backdrop {
  background: #15122188;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-head h2 {
  margin: 0;
}
.close {
  border: 0;
  background: none;
  font-size: 25px;
  min-width: 44px;
  min-height: 44px;
}
.error {
  color: #b33d38;
  font-size: 13px;
}
.success {
  color: #426727;
}
.rules {
  line-height: 1.8;
  font-size: 14px;
}
.rules li {
  margin: 10px 0;
}
.footnote {
  font-size: 11px;
  color: #949299;
  margin-top: 30px;
}
.mobile-brand {
  display: none;
}
@media (min-width: 1500px) {
  .content {
    padding-left: 65px;
    padding-right: 65px;
  }
  .hero {
    min-height: 340px;
  }
  .record {
    width: 310px;
    height: 310px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 15px;
  }
  .content {
    padding: 0 26px 45px;
  }
  .hero-copy {
    padding: 30px;
  }
  .record {
    width: 220px;
    height: 220px;
  }
  .room-layout {
    grid-template-columns: 1fr;
  }
  .scoreboard {
    display: flex;
    gap: 18px;
    overflow-x: auto;
  }
  .scoreboard .score-row {
    min-width: 145px;
    border: 0;
  }
  .lobby-layout {
    grid-template-columns: 1fr 270px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 15px 18px;
    gap: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 22px;
  }
  .brand small {
    display: none;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .side-bottom {
    display: none;
  }
  .nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
  }
  .nav a {
    padding: 10px 13px;
    white-space: nowrap;
    font-size: 12px;
    min-height: 44px;
  }
  .nav svg {
    width: 16px;
    height: 16px;
  }
  .content {
    padding: 0 18px 35px;
  }
  .topbar {
    height: 58px;
    font-size: 12px;
  }
  .topbar .tag {
    font-size: 9px;
  }
  .page-head {
    padding: 25px 0 20px;
    align-items: flex-start;
  }
  h1 {
    font-size: 32px;
    letter-spacing: -1.3px;
  }
  .hero {
    grid-template-columns: 1fr 0.65fr;
    min-height: 260px;
    margin-bottom: 20px;
  }
  .hero-copy {
    padding: 25px 20px;
  }
  .hero h2 {
    font-size: 33px;
    letter-spacing: -1.4px;
  }
  .hero p {
    font-size: 12px;
  }
  .record {
    width: 190px;
    height: 190px;
    margin-right: -70px;
  }
  .record-center {
    width: 75px;
    height: 75px;
    font-size: 8px;
  }
  .record-note {
    display: none;
  }
  .grid2,
  .grid3,
  .lobby-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .panel {
    padding: 20px;
    border-radius: 15px;
  }
  .step {
    display: flex;
    gap: 20px;
    align-items: start;
  }
  .step-no {
    margin-top: 3px;
  }
  .step p {
    margin-top: 3px;
  }
  .section-head {
    margin-top: 24px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .invite img {
    width: 140px;
    height: 140px;
    margin: 15px auto;
  }
  .invite .room-code {
    font-size: 27px;
  }
  .timeline-shell {
    padding: 19px 14px;
  }
  .song {
    flex-basis: 120px;
    padding: 14px 11px;
    min-height: 148px;
  }
  .song .year {
    font-size: 26px;
  }
  .gap {
    min-width: 44px;
  }
  .now-playing {
    padding: 22px;
  }
  .guess-fields {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 17px;
  }
  .stats strong {
    font-size: 23px;
  }
  .btn {
    padding: 12px 15px;
  }
  .form-footer .btn {
    flex: 1;
  }
  .join-row {
    flex-wrap: wrap;
  }
  .join-row label {
    min-width: 130px;
  }
  .room-code {
    font-size: 25px;
    letter-spacing: 4px;
  }
  .page-head .room-code {
    font-size: 20px;
  }
  .tabs {
    margin-left: -2px;
    margin-right: -2px;
  }
  .toolbar .btn {
    flex: 1;
  }
  td,
  th {
    padding: 12px 8px;
  }
  .table-wrap {
    margin: 0 -7px;
  }
  .top-actions .btn {
    font-size: 12px;
  }
  .reveal {
    padding: 22px;
  }
  .reveal .big-year {
    font-size: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.room-layout {
  align-items: start;
}
.timeline-shell .section-head {
  margin: 0 0 8px;
}
@media (max-width: 760px) {
  .in-game .sidebar {
    padding: 10px 18px;
    gap: 8px;
  }
  .in-game .brand {
    font-size: 18px;
  }
  .in-game .brand img {
    width: 24px;
    height: 24px;
  }
  .in-game .nav a {
    padding: 7px 10px;
    min-height: 38px;
  }
  .in-game .topbar {
    height: 48px;
  }
  .in-game .page-head {
    padding: 18px 0;
  }
  .in-game h1 {
    font-size: 27px;
  }
  .in-game .now-playing {
    padding: 18px;
  }
  .in-game .now-playing h2 {
    font-size: 24px;
    margin-bottom: 4px;
  }
  .in-game .now-playing .wave {
    height: 24px;
    margin: 12px 0;
  }
  .in-game .now-playing .wave i {
    max-height: 24px;
  }
  .in-game .now-playing .help {
    margin-bottom: 0;
  }
  .in-game .now-playing .sub {
    display: none;
  }
}
