/* Yorkville Poker — night game, felt, cream chips, bourbon */

:root {
  --felt-deep: #071510;
  --felt: #0e3a28;
  --felt-lit: #165536;
  --felt-line: #1f6b44;
  --cream: #f3e6c4;
  --cream-dim: #d4c49a;
  --amber: #d4923a;
  --bourbon: #b56e22;
  --whiskey: #8a4e14;
  --card-red: #c41e3a;
  --card-black: #121212;
  --wood: #2a180c;
  --wood-lit: #4a2e18;
  --ink: #0b0a08;
  --fog: #c8bba0;
  --line: rgba(243, 230, 196, 0.14);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--cream);
  background: var(--felt-deep);
}

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

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 80;
  padding: 0.5rem 0.8rem;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* Header — dark wood rail */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background:
    linear-gradient(180deg, #3d2414 0%, #2a180c 55%, #1c1008 100%);
  border-bottom: 3px solid #6b4224;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand img {
  width: min(220px, 56vw);
  height: auto;
}

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.nav-list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-list a:hover,
.nav-list a[aria-current="true"] {
  color: var(--amber);
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: none;
    position: absolute;
    right: 1rem;
    top: 4.1rem;
    flex-direction: column;
    gap: 0;
    background: var(--wood);
    border: 1px solid #6b4224;
    min-width: 10rem;
    padding: 0.4rem 0;
  }
  .nav.is-open .nav-list { display: flex; }
  .nav-list a { display: block; padding: 0.65rem 1rem; }
}

/* Hero — bright table, drink and chips as the centerpiece */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #1d4a2e;
}

.hero-stage {
  position: relative;
  min-height: calc(100svh - 4.25rem);
}

.hero-scene {
  display: block;
  width: 100%;
  height: calc(100svh - 4.25rem);
  min-height: 32rem;
  object-fit: cover;
  object-position: 18% 55%;
  filter: brightness(1.04) saturate(1.02);
}

.hero-copy {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  left: auto;
  z-index: 4;
  max-width: min(28rem, calc(100% - 2.5rem));
  padding: 1.15rem 1.25rem 1.3rem;
  background: rgba(10, 28, 18, 0.55);
  border: 1px solid rgba(243, 230, 196, 0.22);
  backdrop-filter: blur(8px);
}

.hero-copy .lede { color: #efe6cc; }

.glass-motion {
  pointer-events: none;
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  border-radius: 48% 48% 46% 46% / 40% 40% 52% 52%;
  clip-path: ellipse(48% 42% at 50% 42%);
}

.ice-bowl {
  position: absolute;
  inset: 16% 18% 24% 18%;
  animation: drink-swirl 12s linear infinite;
  transform-origin: 50% 48%;
}

.glass-motion .swirl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 40deg, transparent 0 62%, rgba(255,236,200,0.18) 74%, transparent 90%);
  mix-blend-mode: soft-light;
}

.ice {
  position: absolute;
  display: block;
  background: linear-gradient(145deg, rgba(255,255,255,0.55), rgba(180,210,230,0.16));
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 0 7px rgba(255,255,255,0.3);
  border-radius: 42%;
  mix-blend-mode: screen;
  opacity: 0.65;
  animation: ice-tumble 5.5s ease-in-out infinite;
}

.ice.i1 { width: 38%; height: 34%; left: 16%; top: 22%; }
.ice.i2 { width: 32%; height: 30%; left: 46%; top: 40%; animation-duration: 4.8s; animation-direction: reverse; }

@keyframes drink-swirl {
  to { transform: rotate(360deg); }
}

@keyframes ice-tumble {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(50deg); }
}

@media (max-width: 720px) {
  .hero-copy {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
  }
  .hero-copy h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero-copy .lede { font-size: 0.95rem; }
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

h3 { margin: 0 0 0.55rem; font-size: 1.25rem; }

.lede {
  margin: 0 0 1rem;
  color: var(--fog);
  max-width: 38rem;
}

.lede.tight { margin-bottom: 1.6rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--amber);
  background: var(--amber);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 0 #6e4210;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 0 #6e4210;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #6e4210;
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--cream);
  background: rgba(243, 230, 196, 0.06);
  box-shadow: none;
}

.host-chip:hover {
  transform: translateY(-8px) rotate(16deg);
}

/* Ticker */
.ticker {
  overflow: hidden;
  background: var(--ink);
  border-block: 1px solid var(--line);
  color: var(--cream-dim);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 36s linear infinite;
}

.ticker-track span {
  padding: 0.7rem 1.4rem;
  white-space: nowrap;
}

.ticker-track span::after {
  content: " · ";
  color: var(--amber);
  margin-left: 1.4rem;
}

/* Sections */
.section {
  padding: 4rem 0;
  background: var(--felt-deep);
}

.section-wood {
  background:
    linear-gradient(180deg, rgba(42, 24, 12, 0.92), rgba(14, 58, 40, 0.55)),
    var(--wood);
  border-block: 1px solid #6b4224;
}

.section-lead {
  max-width: 40rem;
  color: var(--fog);
  margin: 0 0 1.6rem;
}

.rule-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .rule-grid { grid-template-columns: 1fr 1fr; }
}

.rule-card {
  padding: 1.25rem 1.3rem 1.35rem;
  background: rgba(14, 58, 40, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.rule-card p { margin: 0 0 0.7rem; color: var(--fog); }
.rule-card p:last-child { margin-bottom: 0; }

.when-box {
  margin-top: 1.5rem;
  padding: 1.2rem 1.3rem;
  border-left: 4px solid var(--amber);
  background: rgba(212, 146, 58, 0.08);
}

.when-box p { margin: 0 0 0.6rem; }
.when-box .note {
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.host-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .host-list { grid-template-columns: 1fr 1fr; }
}

.host-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: rgba(7, 21, 16, 0.45);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.host-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.host-list span { color: var(--fog); font-size: 0.95rem; }

.host-chip {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3), inset 0 0 0 5px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s ease;
}

.host-chip.cream {
  background: repeating-conic-gradient(#f3e6c4 0 14deg, #c41e3a 14deg 20deg, #f3e6c4 20deg 32deg);
}
.host-chip.burgundy {
  background: repeating-conic-gradient(#6b1d2a 0 14deg, #f3e6c4 14deg 20deg, #6b1d2a 20deg 34deg);
}
.host-chip.black {
  background: repeating-conic-gradient(#1a1a1a 0 14deg, #d4923a 14deg 20deg, #1a1a1a 20deg 34deg);
}

.host-note { color: var(--cream-dim); }

.apply-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .apply-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.form-panel {
  padding: 1.4rem 1.3rem 1.5rem;
  background: rgba(14, 58, 40, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.field { margin: 0 0 1rem; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.opt { font-weight: 400; color: var(--cream-dim); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(243, 230, 196, 0.28);
  border-radius: 8px;
  background: #071510;
  color: var(--cream);
  font: inherit;
}

.field textarea { resize: vertical; min-height: 5rem; }

.field.check label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}

.field.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--amber); }

.form-fallback {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--fog);
}

.form-success h3 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 2rem 0 5.5rem;
  background: #050a08;
  color: var(--cream-dim);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}

.site-footer p { margin: 0 0 0.4rem; }
.foot-meta { opacity: 0.75; }

.thanks-box { padding: 2rem 0 4rem; max-width: 36rem; }

/* Mute */
.mute-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  border: 1px solid var(--amber);
  background: rgba(7, 21, 16, 0.92);
  color: var(--cream);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.mute-btn:hover { background: var(--felt); }

/* Motion */
@keyframes ken-burns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ice, .glass-motion .swirl { animation: none !important; }

  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-photo {
    animation: none !important;
    transform: none;
  }
  .mute-btn { display: none; }
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--card-red);
}


/* Season calendar */
.season-board {
  list-style: none;
  margin: 1.5rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
@media (min-width: 720px) {
  .season-board { grid-template-columns: 1fr 1fr; }
}
.season-board .game {
  margin: 0;
  padding: 1rem 1.1rem;
  background: rgba(14, 58, 40, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-left: 4px solid var(--cream-dim);
}
.season-board .game.locked {
  border-left-color: var(--amber);
  background: rgba(180, 110, 34, 0.16);
}
.season-board time {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  color: var(--amber);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.season-board strong {
  display: block;
  font-size: 1.2rem;
  font-family: var(--font-display);
}
.season-board .game span {
  display: block;
  color: var(--fog);
  margin-top: 0.3rem;
  font-size: 0.95rem;
}
.cal-note { color: var(--cream-dim); max-width: 40rem; }
