:root {
  --paper: #f6f1eb;
  --paper-deep: #ebe2d9;
  --ink: #292421;
  --muted: #756d67;
  --wine: #8c2f3d;
  --wine-dark: #63202d;
  --gold: #c39a5a;
  --line: rgba(63, 48, 40, 0.13);
  --white: #fffdf9;
  --shadow: 0 22px 60px rgba(62, 42, 34, 0.12);
  --serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

button, a { -webkit-tap-highlight-color: transparent; }

.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.lobby-page { min-height: 100vh; overflow-x: hidden; position: relative; }

.ambient {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(4px);
  opacity: .5;
  z-index: -1;
}

.ambient-one {
  width: 520px;
  height: 520px;
  right: -200px;
  top: 90px;
  background: radial-gradient(circle, rgba(140, 47, 61, .18), transparent 68%);
}

.ambient-two {
  width: 400px;
  height: 400px;
  left: -180px;
  top: 580px;
  background: radial-gradient(circle, rgba(195, 154, 90, .16), transparent 70%);
}

.site-header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--white);
  background: var(--wine);
  font-family: var(--serif);
  font-size: 20px;
  box-shadow: 0 8px 22px rgba(140, 47, 61, .2);
}

.phase-badge {
  padding: 8px 13px;
  color: var(--wine-dark);
  border: 1px solid rgba(140, 47, 61, .24);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .06em;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: center;
  min-height: 630px;
  padding-block: 70px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--wine);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .2em;
}

.hero h1 {
  margin: 0;
  max-width: 610px;
  font-family: var(--serif);
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.hero-lead {
  max-width: 560px;
  margin: 28px 0 32px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  min-width: 172px;
  padding: 15px 20px;
  color: var(--white);
  background: var(--wine);
  border-radius: 5px;
  font-weight: 650;
  transition: transform .2s ease, background .2s ease;
}

.primary-button:hover { transform: translateY(-2px); background: var(--wine-dark); }

.featured-game {
  min-height: 510px;
  padding: 27px;
  background: rgba(255, 253, 249, .82);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 7px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform .25s ease, box-shadow .25s ease;
}

.featured-game:hover { transform: translateY(-5px); box-shadow: 0 30px 72px rgba(62, 42, 34, .17); }

.featured-topline, .featured-title, .section-heading, .notice, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-index { color: #978d85; font-family: var(--serif); font-size: 13px; }

.game-status { color: #655d57; font-size: 12px; }
.game-status i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; background: #729063; border-radius: 50%; }

.mini-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  aspect-ratio: 1;
  margin: 22px 0 27px;
  padding: 10px;
  background: #a79b91;
  border-radius: 6px;
}

.mini-board span {
  display: grid;
  place-items: center;
  min-width: 0;
  color: #655c55;
  background: #d9cfc5;
  border-radius: 4px;
  font: 700 clamp(14px, 2vw, 23px)/1 var(--sans);
}

.mini-board span:empty { color: transparent; background: rgba(246, 241, 235, .32); }
.mini-board .gold { color: white; background: var(--gold); font-size: clamp(12px, 1.8vw, 20px); }

.featured-title p { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.featured-title h2 { margin: 0; font: 500 26px/1.2 var(--serif); }

.round-arrow {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  color: var(--wine);
  border: 1px solid rgba(140, 47, 61, .22);
  border-radius: 50%;
}

.collection { padding-block: 95px 105px; border-top: 1px solid var(--line); }
.section-heading { align-items: flex-end; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font: 500 38px/1.2 var(--serif); }
.section-heading > p { max-width: 330px; margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }

.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 24px;
  background: rgba(255, 253, 249, .7);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.game-card.available { transition: transform .2s ease, border-color .2s ease; }
.game-card.available:hover { transform: translateY(-4px); border-color: rgba(140,47,61,.4); }
.card-number { color: #9a9089; font-size: 12px; }

.card-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 38px 0 32px;
  color: var(--wine);
  background: #eee3dc;
  border-radius: 50%;
  font: 500 30px/1 var(--serif);
}

.tile-icon { color: white; background: var(--wine); border-radius: 15px; font: 750 20px/1 var(--sans); transform: rotate(-3deg); }
.game-card h3 { margin: 0 0 11px; font: 500 24px/1.3 var(--serif); }
.game-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.card-link { margin-top: auto; padding-top: 24px; color: var(--wine); font-size: 13px; font-weight: 700; }
.card-link b { margin-left: 6px; }
.upcoming { opacity: .65; }
.upcoming .card-link { color: var(--muted); }

.notice {
  gap: 25px;
  margin-bottom: 88px;
  padding: 27px 30px;
  background: var(--paper-deep);
  border-left: 3px solid var(--wine);
}

.notice-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--wine);
  border: 1px solid rgba(140,47,61,.25);
  border-radius: 50%;
  font-family: var(--serif);
}

.notice div { flex: 1; }
.notice h2 { margin: 0 0 7px; font: 500 18px/1.3 var(--serif); }
.notice p { max-width: 700px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.notice a { flex: 0 0 auto; color: var(--wine); font-size: 13px; font-weight: 650; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 2fr) 1fr;
  gap: 24px;
  min-height: 100px;
  color: #8e837b;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.suggestion-link {
  width: max-content;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 650;
  transition: opacity .2s ease;
}

.suggestion-link:hover { opacity: .68; }
.footer-disclaimer { justify-self: center; text-align: center; line-height: 1.7; }
.footer-year { justify-self: end; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 400px; gap: 36px; }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .game-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 560px); }
  .site-header { height: 72px; }
  .brand { font-size: 13px; }
  .brand-mark { width: 34px; height: 34px; }
  .phase-badge { display: none; }
  .hero { display: flex; flex-direction: column; min-height: 0; padding-block: 55px 65px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(39px, 12vw, 56px); }
  .hero-lead { margin-block: 22px 28px; font-size: 15px; }
  .featured-game { width: 100%; min-height: 0; padding: 19px; }
  .mini-board { margin-block: 18px 22px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card, .game-card:last-child { grid-column: auto; min-height: 300px; }
  .collection { padding-block: 70px; }
  .notice { align-items: flex-start; flex-wrap: wrap; margin-bottom: 55px; padding: 22px; }
  .notice div { flex-basis: calc(100% - 72px); }
  .notice a { margin-left: 67px; }
  .site-footer { display: grid; grid-template-columns: 1fr; gap: 10px; padding-block: 24px; line-height: 1.7; }
  .site-footer p { margin: 3px 0; }
  .footer-disclaimer, .footer-year { justify-self: start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; }
}
