@font-face {
  font-family: "Cinzel Lobby";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/Cinzel-Bold.ttf") format("truetype");
}

: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;
}

.lobby-showcase {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  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);
}

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

.lobby-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 3, 1, 0.18), transparent 32%, rgba(8, 3, 1, 0.32)),
    radial-gradient(ellipse at center, transparent 45%, rgba(6, 2, 1, 0.34) 100%);
  pointer-events: none;
}

.lobby-atmosphere::before {
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -46%;
  width: 24%;
  background: linear-gradient(
    108deg,
    transparent 0%,
    rgba(255, 222, 139, 0.02) 25%,
    rgba(255, 239, 190, 0.19) 50%,
    rgba(255, 191, 79, 0.04) 72%,
    transparent 100%
  );
  content: "";
  filter: blur(12px);
  transform: skewX(-13deg);
  animation: lobby-light-sweep 8.4s ease-in-out infinite;
}

.lobby-atmosphere::after {
  position: absolute;
  right: -18%;
  bottom: -34%;
  width: 72%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 197, 76, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 24px rgba(255, 173, 51, 0.18),
    inset 0 0 28px rgba(255, 206, 105, 0.1);
  content: "";
  opacity: 0;
  transform: scale(0.5);
  animation: lobby-light-wave 6.4s ease-out infinite 1.3s;
}

.lobby-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.lobby-particles i {
  --duration: 5s;
  --left: 50%;
  --size: 3px;
  --top: 70%;
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #ffd15c;
  box-shadow: 0 0 7px 2px rgba(255, 179, 0, 0.68);
  opacity: 0;
  animation: lobby-particle-rise var(--duration) linear infinite;
}

.lobby-particles i:nth-child(1) { --left: 23%; --top: 68%; --size: 3px; --duration: 4.4s; }
.lobby-particles i:nth-child(2) { --left: 30%; --top: 74%; --size: 4px; --duration: 5.3s; animation-delay: -1.1s; }
.lobby-particles i:nth-child(3) { --left: 38%; --top: 66%; --size: 2px; --duration: 6.1s; animation-delay: -2.7s; }
.lobby-particles i:nth-child(4) { --left: 46%; --top: 79%; --size: 3px; --duration: 5.7s; animation-delay: -3.8s; }
.lobby-particles i:nth-child(5) { --left: 54%; --top: 72%; --size: 3px; --duration: 6.8s; animation-delay: -0.8s; }
.lobby-particles i:nth-child(6) { --left: 62%; --top: 69%; --size: 4px; --duration: 5.2s; animation-delay: -4.2s; }
.lobby-particles i:nth-child(7) { --left: 70%; --top: 77%; --size: 2px; --duration: 4.7s; animation-delay: -2.2s; }
.lobby-particles i:nth-child(8) { --left: 78%; --top: 73%; --size: 3px; --duration: 6.4s; animation-delay: -5s; }
.lobby-particles i:nth-child(9) { --left: 34%; --top: 83%; --size: 2px; --duration: 5.9s; animation-delay: -3.1s; }

.lobby-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 1200px;
  z-index: 4;
  pointer-events: none;
}

.lobby-card {
  position: absolute;
  left: 50%;
  top: 51%;
  width: var(--card-width, 200px);
  height: var(--card-height, 300px);
  margin: 0;
  opacity: var(--opacity, 0);
  transform:
    translate(-50%, -50%)
    translate3d(var(--x, 0), var(--y, 0), 0)
    rotateY(var(--rotate-y, 0deg))
    scale(var(--scale, 1));
  transition:
    transform 620ms cubic-bezier(0.22, 0.8, 0.3, 1),
    opacity 420ms ease,
    filter 420ms ease;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.lobby-card::before {
  position: absolute;
  z-index: -1;
  right: 7%;
  bottom: -4%;
  left: 7%;
  height: 8%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.66);
  content: "";
  filter: blur(7px);
  transform: scaleX(0.86);
}

.lobby-card-art {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 5.5%;
  background: #100704;
  box-shadow: 0 0 10px rgba(173, 104, 19, 0.3);
}

.lobby-card-art::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("/assets/jokers-ornate-frame.webp") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

.lobby-card[data-title="Lightning Round"] .lobby-card-art::before {
  display: none;
}

.lobby-card-art::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 5.5%;
  background: linear-gradient(
    112deg,
    transparent 32%,
    rgba(255, 255, 255, 0.04) 42%,
    rgba(255, 248, 220, 0.58) 50%,
    rgba(255, 255, 255, 0.04) 58%,
    transparent 68%
  );
  content: "";
  opacity: 0;
  transform: translateX(135%);
  pointer-events: none;
}

.lobby-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.62));
}

.lobby-card[data-active="true"] .lobby-card-art {
  filter:
    drop-shadow(0 15px 18px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 15px rgba(255, 218, 116, 0.36));
  animation: lobby-card-bob 4s ease-in-out infinite;
}

.lobby-card[data-active="true"] .lobby-card-art::after {
  animation: lobby-card-shimmer 8s ease-in-out infinite 95ms;
}

.lobby-quick-play {
  position: absolute;
  left: 50%;
  bottom: 6.1%;
  z-index: 90;
  display: flex;
  width: clamp(116px, 20.45%, 242px);
  height: clamp(30px, 8.3%, 59px);
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 231, 142, 0.82);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff1ad 0%, #9a681d 24%, #f0c65e 53%, #63400d 100%);
  box-shadow:
    0 2px 1px rgba(0, 0, 0, 0.62),
    0 5px 13px rgba(0, 0, 0, 0.46),
    0 0 14px rgba(236, 181, 66, 0.2);
  color: #e2cb7c;
  font-family: "Cinzel Lobby", Georgia, serif;
  line-height: 1;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.84);
  transform: translateX(-50%);
}

.lobby-quick-play::before {
  position: absolute;
  inset: clamp(2px, 0.26vw, 4px);
  z-index: 1;
  border: 1px solid rgba(255, 226, 129, 0.24);
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 236, 154, 0.08) 0%, transparent 42%),
    linear-gradient(135deg, #073a19 0%, #095523 48%, #052d14 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 247, 198, 0.16),
    inset 0 -2px 4px rgba(0, 0, 0, 0.58);
  content: "";
}

.lobby-quick-play::after {
  position: absolute;
  top: -55%;
  bottom: -55%;
  left: -45%;
  z-index: 4;
  width: 28%;
  background: linear-gradient(100deg, transparent, rgba(255, 239, 178, 0.24), transparent);
  content: "";
  transform: skewX(-16deg);
  animation: quick-play-gloss 4.8s ease-in-out infinite 1.2s;
}

.lobby-quick-play strong {
  position: relative;
  z-index: 3;
  color: #f3d477;
  font-size: clamp(9px, 1.5vw, 18px);
  letter-spacing: 0.06em;
  text-shadow:
    0 1px 0 #4b2d07,
    0 2px 3px rgba(0, 0, 0, 0.9),
    0 0 7px rgba(255, 206, 91, 0.18);
}

.lobby-quick-play span {
  position: relative;
  z-index: 3;
  margin-top: clamp(1px, 0.25vw, 3px);
  color: #d1b75f;
  font-family: "Cinzel Lobby", Georgia, serif;
  font-size: clamp(7px, 0.82vw, 11px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.82);
}

.music-toggle {
  position: absolute;
  left: clamp(10px, 2vw, 22px);
  top: 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);
}

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

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

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

.music-toggle-icon {
  width: 1em;
  color: var(--gold-light);
  font-size: 1.1rem;
  line-height: 1;
  text-align: center;
}

.lobby-music {
  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);
}

@keyframes lobby-light-sweep {
  0%, 16% { opacity: 0; transform: translateX(0) skewX(-13deg); }
  28% { opacity: 0.7; }
  54% { opacity: 0.32; }
  70%, 100% { opacity: 0; transform: translateX(610%) skewX(-13deg); }
}

@keyframes lobby-light-wave {
  0% { opacity: 0; transform: scale(0.42); }
  18% { opacity: 0.58; }
  72%, 100% { opacity: 0; transform: scale(1.34); }
}

@keyframes lobby-particle-rise {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  22% { opacity: 0.82; }
  72% { opacity: 0.42; }
  100% { opacity: 0; transform: translateY(-190px) scale(0.5); }
}

@keyframes lobby-card-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes lobby-card-shimmer {
  0%, 73% { opacity: 0; transform: translateX(135%); }
  78% { opacity: 0.58; }
  85% { opacity: 0.16; transform: translateX(-135%); }
  100% { opacity: 0; transform: translateX(-135%); }
}

@keyframes quick-play-gloss {
  0%, 64% { opacity: 0; transform: translateX(0) skewX(-16deg); }
  72% { opacity: 0.9; }
  88%, 100% { opacity: 0; transform: translateX(620%) skewX(-16deg); }
}

.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;
  }

  .lobby-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;
  }

  .lobby-card {
    transition: none;
  }

  .lobby-atmosphere::before,
  .lobby-atmosphere::after,
  .lobby-particles i,
  .lobby-card[data-active="true"] .lobby-card-art,
  .lobby-card[data-active="true"] .lobby-card-art::after,
  .lobby-quick-play::after {
    animation: none;
  }

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