:root {
  color-scheme: dark;
  --gold: #f4c75d;
  --gold-light: #ffe7a0;
  --cream: #fff5d6;
  --ink: #120b08;
  --panel: #21120c;
  --green: #245c35;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(115, 53, 19, 0.45), transparent 42rem),
    linear-gradient(180deg, #160d09 0%, #090706 100%);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.header-cta,
.secondary-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 199, 93, 0.72);
  border-radius: 999px;
  padding: 0 21px;
  background: rgba(32, 18, 12, 0.72);
  color: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.header-cta:hover,
.secondary-cta:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

.hero {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(770px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.wordmark {
  display: block;
  width: min(560px, 92vw);
  height: auto;
  margin: -42px auto -54px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

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

h1 {
  margin-bottom: 12px;
  color: #fff9e8;
  font-size: clamp(2rem, 5vw, 4.3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-shadow: 0 7px 28px rgba(0, 0, 0, 0.5);
}

.hero-summary {
  width: min(650px, 100%);
  margin: 0 auto;
  color: #e8d9c0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}

.mode-list {
  display: flex;
  margin: 20px auto 22px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.mode-list span {
  border: 1px solid rgba(244, 199, 93, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #e8d9c0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.app-store-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 12px;
  padding: 7px 18px 8px;
  background: #050505;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.app-store-button:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.app-store-button small {
  display: block;
  margin-bottom: 3px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.platform-note {
  margin: 10px 0 0;
  color: #a99b89;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
}

.table-showcase {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 740;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid rgba(244, 199, 93, 0.45);
  border-radius: clamp(16px, 3vw, 32px);
  background: #29150a;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.62),
    0 0 70px rgba(175, 75, 23, 0.14);
}

.room-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.table-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 4, 1, 0.12), transparent 35%, rgba(10, 4, 1, 0.36)),
    radial-gradient(ellipse at center, transparent 48%, rgba(6, 2, 1, 0.42) 100%);
  pointer-events: none;
}

.deal-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 1040px;
  pointer-events: none;
}

.dealt-cards {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.deal-card {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(44 / 926 * 100%);
  aspect-ratio: 2 / 3;
  border: clamp(1px, 0.15vw, 2px) solid #e3c476;
  border-radius: clamp(2px, 0.45vw, 6px);
  background: #142b71 url("/assets/card-back.webp") center / cover no-repeat;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.62);
  transform-origin: center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.sound-toggle {
  position: absolute;
  left: clamp(10px, 2vw, 22px);
  bottom: clamp(10px, 2vw, 22px);
  z-index: 1300;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 231, 160, 0.66);
  border-radius: 999px;
  padding: 0 15px;
  background: rgba(18, 11, 8, 0.82);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.4);
  color: #fff4cc;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  backdrop-filter: blur(8px);
}

.sound-toggle:hover {
  background: rgba(62, 33, 18, 0.94);
}

.sound-toggle[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(36, 92, 53, 0.9);
}

.sound-toggle strong {
  font-size: clamp(0.7rem, 1.4vw, 0.82rem);
  letter-spacing: 0.025em;
}

.deal-audio {
  display: none;
}

.room-label {
  position: absolute;
  right: clamp(12px, 2vw, 26px);
  bottom: clamp(10px, 2vw, 22px);
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  text-align: right;
  text-shadow: 0 2px 12px #000;
}

.room-label span {
  color: #efdcae;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.52rem, 1.25vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.room-label strong {
  color: #fff4cc;
  font-size: clamp(0.85rem, 2vw, 1.35rem);
}

.download-panel {
  display: grid;
  width: min(960px, calc(100% - 32px));
  margin: 72px auto;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(244, 199, 93, 0.26);
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(56, 28, 15, 0.92), rgba(22, 13, 10, 0.94));
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
}

.download-panel img {
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
}

.download-panel h2 {
  margin-bottom: 5px;
  color: #fff7dd;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.download-panel p:not(.eyebrow) {
  margin-bottom: 0;
  color: #cdbda7;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  border-top: 1px solid rgba(244, 199, 93, 0.16);
  padding: 28px 0 34px;
  color: #8f8275;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer a:hover {
  color: var(--gold-light);
}

.legal-main {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto 72px;
}

.legal-card {
  border: 1px solid rgba(244, 199, 93, 0.3);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 52px);
  background: linear-gradient(145deg, rgba(48, 25, 14, 0.96), rgba(20, 12, 9, 0.98));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38);
}

.legal-card h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 6vw, 3.7rem);
  line-height: 1.05;
}

.legal-updated,
.legal-card p,
.legal-card li {
  color: #e8d9c0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-updated {
  margin-bottom: 28px;
  color: #bba98f;
  font-size: 0.86rem;
}

.legal-card h2 {
  margin: 32px 0 10px;
  color: var(--gold-light);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.legal-card a {
  color: var(--gold-light);
}

.legal-card a:hover {
  color: #fff9e8;
}

.web-notice {
  flex-basis: 100%;
  text-align: center;
}

a:focus-visible {
  outline: 3px solid #75d6ff;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .site-header {
    width: min(100% - 28px, 1180px);
    min-height: 72px;
  }

  .brand span {
    display: none;
  }

  .header-cta {
    padding: 0 17px;
  }

  .hero {
    margin-top: 20px;
  }

  .wordmark {
    margin-top: -30px;
    margin-bottom: -38px;
  }

  .table-showcase {
    width: calc(100% + 32px);
    margin-left: -16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .download-panel {
    grid-template-columns: auto 1fr;
    margin-top: 48px;
  }

  .download-panel img {
    width: 72px;
    height: 72px;
  }

  .download-panel .secondary-cta {
    grid-column: 1 / -1;
  }

  footer {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sound-toggle {
    display: none;
  }

  .header-cta,
  .secondary-cta,
  .app-store-button {
    transition: none;
  }
}
