:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-soft: #111419;
  --panel: rgba(255, 255, 255, 0.078);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --text: #fff8ed;
  --muted: #c8bbae;
  --red: #e32c3a;
  --red-dark: #951722;
  --green: #25c488;
  --cyan: #2dc7ff;
  --amber: #f0b35c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(45, 199, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 82% 0%, rgba(45, 199, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #08090b 0%, #121419 52%, #08090b 100%);
  background-size: 44px 44px, auto, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 10px clamp(18px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 950;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(227, 44, 58, 0.38));
}

.brand span {
  overflow-wrap: anywhere;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 850;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: rgba(37, 196, 136, 0.42);
  background: rgba(37, 196, 136, 0.12);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 6.5vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3.7vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.eyebrow,
.tile-kicker,
.price-volume,
.team-meta,
.hours-grid span,
.score-line span {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding: clamp(54px, 8vw, 112px) clamp(18px, 5vw, 76px) clamp(34px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.98) 0%, rgba(8, 9, 11, 0.78) 45%, rgba(8, 9, 11, 0.34) 100%),
    linear-gradient(0deg, rgba(8, 9, 11, 0.98), rgba(8, 9, 11, 0.12) 48%),
    url("assets/edart-machines-hero.png") right center / cover no-repeat;
}

.home-copy {
  max-width: 820px;
}

.home-copy p:not(.eyebrow),
.page-title-row p,
.home-band p,
.notice-band p,
.info-panel p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.06rem;
  font-weight: 640;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.tab:hover,
.feature-tile:hover {
  transform: translateY(-1px);
}

.button.primary,
.tab.active {
  background: linear-gradient(135deg, #f04450, var(--red-dark));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(227, 44, 58, 0.28);
}

.button.secondary {
  border-color: rgba(240, 179, 92, 0.42);
  background: rgba(240, 179, 92, 0.1);
}

.match-panel,
.info-panel,
.feature-tile,
.price-card,
.team-card,
.hours-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(37, 196, 136, 0.035)),
    #15171c;
  box-shadow: var(--shadow);
}

.match-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: rgba(8, 9, 11, 0.7);
  backdrop-filter: blur(16px);
}

.machine-face {
  width: 150px;
  height: 190px;
  display: grid;
  grid-template-rows: 1fr 34px 34px;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(45, 199, 255, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(45, 199, 255, 0.16), rgba(8, 9, 11, 0.92)),
    #0f1318;
  box-shadow: inset 0 0 34px rgba(45, 199, 255, 0.14), 0 0 28px rgba(37, 196, 136, 0.16);
}

.machine-face span {
  display: block;
  border-radius: 6px;
}

.machine-face span:first-child {
  border: 2px solid rgba(37, 196, 136, 0.7);
  background:
    linear-gradient(90deg, rgba(37, 196, 136, 0.9) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    #12171f;
  background-size: 16px 100%, auto, auto;
}

.machine-face span:nth-child(2) {
  background:
    linear-gradient(90deg, var(--red) 0 28%, transparent 28% 36%, var(--green) 36% 64%, transparent 64% 72%, var(--cyan) 72%),
    #10151b;
}

.machine-face span:nth-child(3) {
  background:
    linear-gradient(90deg, rgba(240, 179, 92, 0.85), rgba(227, 44, 58, 0.9)),
    #10151b;
}

.score-line strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 1.08rem;
}

.home-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 1px;
  padding: 1px clamp(18px, 5vw, 76px);
  background: var(--line);
}

.feature-tile {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 0;
  border-radius: 0;
  transition: transform 160ms ease, filter 160ms ease;
}

.feature-tile strong {
  max-width: 520px;
  color: #ffffff;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.12;
}

.feature-tile > span:last-child {
  color: var(--amber);
  font-weight: 950;
}

.hours-tile {
  background:
    linear-gradient(135deg, rgba(45, 199, 255, 0.16), rgba(37, 196, 136, 0.04)),
    #14161b;
}

.drinks-tile {
  background:
    linear-gradient(135deg, rgba(240, 179, 92, 0.17), rgba(227, 44, 58, 0.06)),
    #14161b;
}

.teams-tile {
  background:
    linear-gradient(135deg, rgba(37, 196, 136, 0.16), rgba(45, 199, 255, 0.09)),
    #14161b;
}

.home-band,
.notice-band,
.page-title-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding: clamp(48px, 7vw, 82px) clamp(18px, 5vw, 76px);
}

.page-shell {
  min-height: calc(100vh - 72px);
}

.page-hero {
  padding: clamp(56px, 9vw, 116px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.98), rgba(8, 9, 11, 0.64)),
    url("assets/edart-machines-hero.png") center / cover no-repeat;
}

.compact-hero {
  min-height: 360px;
  display: grid;
  align-items: end;
}

.compact-hero > div {
  max-width: 820px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
  padding: clamp(42px, 6vw, 76px) clamp(18px, 5vw, 76px);
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hours-grid div {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
}

.hours-grid strong {
  color: #ffffff;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.info-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  position: sticky;
  top: 92px;
}

.info-panel .button {
  width: fit-content;
  margin-top: 8px;
}

.muted {
  color: var(--muted);
}

.page-title-row {
  padding-bottom: 28px;
}

.page-title-row h1 {
  max-width: 900px;
  font-size: clamp(2.6rem, 5.4vw, 5.5rem);
}

.menu-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 clamp(18px, 5vw, 76px) 24px;
}

.tab {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(18px, 5vw, 76px) clamp(52px, 7vw, 86px);
}

.price-card {
  min-height: 235px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 18px;
}

.price-list {
  display: grid;
  gap: 6px;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-name {
  min-width: 0;
  color: #ffffff;
  font-weight: 830;
}

.price-volume {
  margin-top: 2px;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.price-price {
  color: #ffffff;
  font-weight: 930;
  white-space: nowrap;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(18px, 5vw, 76px) clamp(46px, 6vw, 74px);
}

.team-card {
  min-height: 248px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
}

.team-card p {
  color: var(--muted);
}

.team-badge {
  width: 74px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(45, 199, 255, 0.55);
  border-radius: 6px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 950;
  letter-spacing: 0.08em;
  background:
    linear-gradient(180deg, rgba(45, 199, 255, 0.18), rgba(8, 9, 11, 0.92)),
    #0d1117;
  box-shadow: inset 0 0 18px rgba(37, 196, 136, 0.16), 0 0 20px rgba(45, 199, 255, 0.1);
}

.team-badge::before {
  content: "P";
  color: var(--cyan);
  margin-right: 2px;
}

.notice-band {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(240, 179, 92, 0.12), rgba(37, 196, 136, 0.045)),
    #111419;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 720;
}

@media (max-width: 1020px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-wrap: wrap;
    padding-top: 4px;
  }

  .site-nav.open {
    display: flex;
  }

  .home-hero,
  .home-band,
  .notice-band,
  .page-title-row,
  .two-column {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(8, 9, 11, 0.42), rgba(8, 9, 11, 0.98) 70%),
      url("assets/edart-machines-hero.png") center top / cover no-repeat;
  }

  .home-grid,
  .price-grid,
  .team-grid,
  .hours-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .brand span {
    max-width: 220px;
    font-size: 0.95rem;
  }

  .site-nav a,
  .button,
  .tab,
  .info-panel .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4rem);
    line-height: 0.96;
  }

  .home-grid,
  .price-grid,
  .team-grid,
  .hours-grid {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .page-hero,
  .home-band,
  .notice-band,
  .page-title-row,
  .two-column {
    padding-inline: 18px;
  }

  .match-panel,
  .info-panel,
  .price-card,
  .team-card {
    padding: 16px;
  }

  .price-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .price-price {
    white-space: normal;
  }

  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }
}
