:root {
  --bg: #000000;
  --card: #121316;
  --card-hi: #1b1c20;
  --ink: #f6f5f1;
  --soft: rgba(246, 245, 241, 0.52);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #f0b35a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 12px 16px;
}

.tb {
  width: min(348px, 100%);
  padding: 16px 16px 14px;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px var(--line),
    0 34px 70px -34px color-mix(in srgb, var(--accent) 34%, transparent);
}
.tb__head { display: flex; align-items: baseline; justify-content: space-between; }
.tb__title { font-size: 15px; font-weight: 660; font-stretch: 106%; letter-spacing: -0.008em; }
.tb__free { font-size: 12px; font-weight: 480; color: var(--soft); }
.tb__free b { display: inline-block; font-weight: 680; color: var(--ink); }

.tb__stage { position: relative; margin: 4px 0 2px; }
.tb__stage svg { display: block; width: 100%; height: auto; max-height: 48vh; overflow: visible; }
.tb__shadow { fill: rgba(0, 0, 0, 0.5); filter: blur(6px); }
.tb__table { fill: url(#tb-wood); stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.tb__rim { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.tb__name { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 13px; font-weight: 640; text-align: center; white-space: nowrap; pointer-events: none; }
.tb__name i { display: block; margin-top: 1px; font-style: normal; font-size: 11px; font-weight: 460; color: var(--soft); }

.seat { cursor: pointer; outline: none; }
.seat__ring { fill: #1e2025; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.4; transition: fill 0.35s ease, stroke 0.35s ease; }
.seat__plus { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.6; stroke-linecap: round; transition: opacity 0.25s ease; }
.seat__text { font-size: 10.500px; font-weight: 680; letter-spacing: 0.02em; fill: rgba(246, 245, 241, 0.82); text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill 0.35s ease; }
.seat.is-taken { cursor: default; }
.seat.is-taken .seat__ring { fill: #2a2c33; stroke: rgba(255, 255, 255, 0.1); }
.seat.is-taken .seat__plus, .seat.is-you .seat__plus { opacity: 0; }
.seat.is-near .seat__ring { stroke: var(--accent); }
.seat.is-near .seat__text { fill: var(--accent); }
.seat.is-you .seat__ring { fill: var(--accent); stroke: var(--accent); }
.seat.is-you .seat__text { fill: #1d1608; }
.seat:focus-visible .seat__ring { stroke: #ffffff; stroke-width: 2; }
.link { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; opacity: 0; }

.tb__say { height: 19px; overflow: hidden; font-size: 13.500px; line-height: 19px; font-weight: 520; text-align: center; }
.tb__say span { display: block; white-space: nowrap; }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #ffffff;
  stroke: #14151a;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (hover: hover) {
  .seat:not(.is-taken):not(.is-you):hover .seat__ring { stroke: rgba(255, 255, 255, 0.6); }
}
