:root {
  --bg: #12151c;
  --bg-2: #1b202b;
  --card: #232a38;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f7f4ee;
  --muted: #a7adba;
  --gold: #e2b657;
  --ink: #1a1408;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(700px 280px at 90% -10%, rgba(226, 182, 87, 0.16), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, p { margin: 0; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(180px, 420px) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 22px;
  background: rgba(18, 21, 28, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
}
.brand strong { display: block; font-family: var(--display); font-size: 1.25rem; }
.brand small { color: var(--muted); }
.search {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
}
.account { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.btn { border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700; }
.btn-solid { background: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--text); }
.pill {
  margin: 0;
  justify-self: end;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(226, 182, 87, 0.14);
  color: var(--gold);
  font-size: 0.78rem;
}
.balance {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 6px;
}
.balance select {
  max-width: 8.5rem;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.intro {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 8px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
.intro h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 620;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.intro p { max-width: 46ch; margin-top: 8px; color: var(--muted); }
.studio { display: grid; gap: 6px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.studio select, .more, .close {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
}
.studio select { height: 46px; min-width: 220px; padding: 0 12px; }
.sport-band {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.sport-band h2 { margin: 0; font-family: var(--display); font-size: 1.6rem; }
.sport-band p { margin: 4px 0 0; color: var(--muted); }
.status {
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto;
  color: var(--muted);
}
#auth { width: min(420px, calc(100% - 24px)); height: auto; padding: 18px; }
#auth form { display: grid; gap: 12px; }
#auth h2 { margin: 0; font-family: var(--display); }
#auth label { display: grid; gap: 6px; color: var(--muted); font-size: 0.85rem; }
#auth input { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 0 12px; }
.grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.art {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(160deg, rgba(226, 182, 87, 0.25), transparent 55%),
    var(--card);
}
.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card h2 {
  margin: 10px 12px 0;
  font-size: 0.98rem;
  font-weight: 600;
}
.card .who { margin: 2px 12px 0; color: var(--muted); font-size: 0.8rem; }
.play {
  margin: 10px 12px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  padding: 9px 12px;
}
.play:disabled { opacity: 0.55; cursor: wait; }
.empty {
  grid-column: 1 / -1;
  padding: 36px 16px;
  text-align: center;
  color: var(--muted);
  background: var(--bg-2);
  border-radius: 16px;
}
.more-row { display: flex; justify-content: center; margin: 22px 0; }
.more { padding: 12px 18px; font-weight: 700; }
.foot {
  width: min(1180px, calc(100% - 32px));
  margin: 10px auto 32px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}
dialog {
  width: min(1100px, calc(100% - 16px));
  height: min(860px, calc(100% - 16px));
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0d1016;
  color: var(--text);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.table-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.table-bar p { color: var(--muted); font-size: 0.85rem; }
.close { padding: 8px 12px; }
.table-note { padding: 16px; color: var(--muted); }
#table-frame { width: 100%; height: calc(100% - 64px); border: 0; background: #000; }
@media (max-width: 800px) {
  .top, .intro, .foot { grid-template-columns: 1fr; display: grid; }
  .pill { justify-self: start; }
  .intro, .sport-band { align-items: stretch; }
  .account { justify-content: flex-start; }
  .studio select { width: 100%; }
  dialog { width: 100%; height: 100%; border-radius: 0; }
}
