:root {
  color-scheme: light;
  --ink: #18191f;
  --muted: #62656f;
  --line: #d9dce5;
  --paper: #fbfbfd;
  --blue: #1f6bff;
  --red: #ff3833;
  --green: #148a68;
  --yellow: #f4b937;
  --violet: #7c66d4;
  --table: #f1f2f4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
select {
  font: inherit;
}

.snap-shell {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.panel {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  display: grid;
  align-items: center;
  padding: 72px clamp(20px, 5vw, 72px);
}

.hero {
  overflow: hidden;
  color: white;
  background: #050505;
}

.hero-mark {
  position: absolute;
  inset: auto -4vw -8vh -2vw;
  opacity: 0.64;
}

.hero-mark img {
  width: min(920px, 110vw);
  height: auto;
  display: block;
}

.intro-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 760px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .kicker {
  color: #75e0bc;
}

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

h1 {
  font-size: clamp(4rem, 13vw, 9.5rem);
}

h2 {
  max-width: 780px;
  font-size: clamp(2.4rem, 7vw, 6.5rem);
}

.subtitle,
.body-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.hero .subtitle {
  color: #d9dbe4;
}

.name-card {
  position: relative;
  z-index: 1;
  align-self: start;
  width: min(560px, 100%);
}

.name-card label {
  display: block;
  margin-bottom: 10px;
  color: #d7d9df;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 10px;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 54px;
  padding: 0 16px;
  background: white;
  color: var(--ink);
}

.icon-button {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: white;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.icon-button:disabled {
  cursor: default;
  opacity: 0.38;
  transform: none;
}

.matches {
  min-height: 42px;
  margin-top: 12px;
  color: #ebeef6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-chip {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.match-chip.active {
  background: white;
  color: #08090d;
}

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

.panel-nav .icon-button {
  position: absolute;
  left: 50%;
  pointer-events: auto;
}

.panel-nav .icon-button:first-child {
  top: 18px;
  transform: translateX(-50%);
}

.panel-nav .icon-button:last-child {
  bottom: 18px;
  transform: translateX(-50%);
}

.panel-nav .icon-button:first-child:hover {
  transform: translateX(-50%) translateY(-2px);
}

.panel-nav .icon-button:last-child:hover {
  transform: translateX(-50%) translateY(2px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: 100%;
}

.seat-stage,
.daily-wrap {
  width: 100%;
}

#seatSection .seat-stage {
  max-width: 760px;
  justify-self: center;
  transform: scale(0.86);
  transform-origin: center;
}

#seatSection .seat-map {
  gap: 26px 38px;
}

#seatSection .table-group {
  min-height: 176px;
}

#seatSection .table-core {
  min-height: 160px;
}

#seatSection .seat {
  min-height: 46px;
  font-size: 1rem;
}

.room-label {
  width: min(420px, 80%);
  min-height: 40px;
  border: 1px solid #7d828d;
  border-radius: 6px;
  display: grid;
  place-items: center;
  margin: 0 auto 38px;
  color: var(--muted);
  background: white;
}

.seat-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: clamp(30px, 5vw, 72px) clamp(42px, 6vw, 92px);
}

.table-group {
  display: grid;
  grid-template-columns: 58px minmax(120px, 1fr) 58px;
  align-items: center;
  gap: 8px;
  min-height: 204px;
}

.table-core {
  height: 100%;
  min-height: 188px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--table);
  color: var(--ink);
  font-weight: 800;
}

.seat-stack {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  align-self: stretch;
}

.seat {
  min-height: 54px;
  border: 1px solid var(--blue);
  background: white;
  color: var(--red);
  font-size: 1.18rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  position: relative;
}

.seat:first-child {
  border-radius: 6px 6px 0 0;
}

.seat:last-child {
  border-radius: 0 0 6px 6px;
}

.seat.is-favorite,
.seat.is-me {
  background: #fff0d0;
  border-color: var(--yellow);
  color: #9a5600;
  box-shadow: inset 0 0 0 2px var(--yellow);
}

.seat.is-occupied {
  background: #eaf5ff;
  color: #1d4d8f;
}

.seat.is-top-1 {
  background: #fff1a6;
  border-color: #e7ae00;
  color: #7d5600;
  box-shadow: inset 0 0 0 2px #e7ae00;
}

.seat.is-top-2 {
  background: #edf1f7;
  border-color: #a8b2c2;
  color: #4e5a6d;
  box-shadow: inset 0 0 0 2px #a8b2c2;
}

.seat.is-top-3 {
  background: #f7dcc4;
  border-color: #b87838;
  color: #724018;
  box-shadow: inset 0 0 0 2px #b87838;
}

.seat small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
  color: inherit;
  font-size: 0.64rem;
  font-weight: 700;
}

.ranking {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.ranking.compact {
  gap: 8px;
}

.ranking.compact li {
  min-height: 54px;
  padding: 8px 14px;
}

.ranking li.is-me-row {
  border-color: var(--yellow);
  background: #fff8e8;
}

.ranking li.rank-gap {
  min-height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 900;
}

.ranking strong small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.rank-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.podium {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  max-width: 420px;
}

.podium li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 900;
}

.podium span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.16);
}

.podium em {
  font-style: normal;
}

.podium-1 {
  background: #fff1a6;
  color: #6e4b00;
}

.podium-2 {
  background: #edf1f7;
  color: #4e5a6d;
}

.podium-3 {
  background: #f7dcc4;
  color: #724018;
}

.time-card {
  justify-self: center;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 24px;
}

.clock-face {
  position: relative;
  width: min(360px, 76vw);
  aspect-ratio: 1;
  border: 10px solid var(--ink);
  border-radius: 50%;
  background: white;
}

.clock-face span {
  position: absolute;
  font-weight: 900;
}

.clock-face span:nth-of-type(1) {
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.clock-face span:nth-of-type(2) {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.clock-face span:nth-of-type(3) {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.clock-face span:nth-of-type(4) {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.clock-hand {
  position: absolute;
  border-radius: 999px;
  transform-origin: 50% 100%;
  transform: rotate(0deg);
}

.hour-hand {
  width: 9px;
  height: 28%;
  left: calc(50% - 4.5px);
  top: 22%;
  background: var(--ink);
}

.minute-hand {
  width: 5px;
  height: 38%;
  left: calc(50% - 2.5px);
  top: 12%;
  background: var(--red);
}

.clock-face::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: calc(50% - 8px);
  top: calc(50% - 8px);
  background: var(--ink);
}

.layout-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 480px);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.layout-controls {
  width: min(480px, 100%);
  display: grid;
  gap: 10px;
}

.slot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 16px;
}

.date-arrow {
  align-self: center;
}

.date-control {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.slot-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: white;
  cursor: pointer;
}

.slot-tabs button.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.daily-wrap .seat-map {
  max-width: 920px;
  margin: 0 auto;
}

.today-layouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.daily-wrap h3 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.today-layouts .seat-map {
  grid-template-columns: 1fr;
  gap: 26px;
}

.stat-copy .clock-face {
  margin-top: 24px;
  width: min(260px, 64vw);
}

@media (max-width: 900px) {
  .section-grid,
  .seat-map,
  .today-layouts {
    grid-template-columns: 1fr;
  }

  .layout-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .layout-controls {
    grid-column: auto;
  }

  h2 {
    font-size: clamp(2.1rem, 12vw, 4.2rem);
  }
}

@media (max-width: 520px) {
  .panel {
    padding: 78px 16px 36px;
  }

  .panel-nav {
    inset: 0;
  }

  .table-group {
    grid-template-columns: 48px minmax(86px, 1fr) 48px;
    min-height: 174px;
  }

  .seat {
    min-height: 46px;
    font-size: 0.98rem;
  }

  .ranking li {
    grid-template-columns: 38px 1fr;
  }

  .ranking strong:last-child {
    grid-column: 2;
  }
}
