:root {
  color: #171511;
  background: #f4efe5;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: clamp(20px, 4vw, 48px);
  background:
    radial-gradient(
      circle at 80% 18%,
      rgba(45, 105, 93, 0.22),
      transparent 26rem
    ),
    radial-gradient(
      circle at 10% 78%,
      rgba(174, 63, 48, 0.18),
      transparent 24rem
    ), linear-gradient(135deg, #f7f1e6 0%, #e8dcc8 52%, #cad8d5 100%);
}

.hero-panel {
  display: grid;
  min-height: min(76vh, 780px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.eyebrow,
.stage-pill,
.status-card span {
  margin: 0;
  color: #6c3129;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #1f1712;
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
}

.lede {
  max-width: 34rem;
  margin: 0;
  color: #463a2f;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-action,
.stage-pill {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
}

.primary-action {
  background: #1c3f39;
  color: #fffaf1;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(28, 63, 57, 0.22);
}

.stage-pill {
  border: 1px solid rgba(31, 23, 18, 0.18);
  background: rgba(255, 250, 241, 0.7);
}

.tabletop {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(31, 23, 18, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 250, 241, 0.78), rgba(255, 250, 241, 0.78)),
    repeating-linear-gradient(
      0deg,
      transparent 0 47px,
      rgba(31, 23, 18, 0.08) 48px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 47px,
      rgba(31, 23, 18, 0.08) 48px
    ), #d7c19f;
  box-shadow: 0 28px 70px rgba(31, 23, 18, 0.18);
}

.map-grid {
  position: absolute;
  inset: 42px;
}

.room,
.route,
.token,
.dice {
  position: absolute;
}

.room {
  border: 2px solid #7d4d38;
  background: rgba(174, 63, 48, 0.12);
}

.room-a {
  top: 8%;
  left: 8%;
  width: 34%;
  height: 26%;
}

.room-b {
  top: 35%;
  right: 7%;
  width: 36%;
  height: 38%;
}

.room-c {
  right: 35%;
  bottom: 7%;
  width: 24%;
  height: 22%;
}

.route {
  height: 10px;
  background: #8f7655;
}

.route-a {
  top: 34%;
  left: 35%;
  width: 30%;
  transform: rotate(18deg);
}

.route-b {
  right: 30%;
  bottom: 31%;
  width: 23%;
  transform: rotate(-28deg);
}

.dice {
  right: 34px;
  bottom: 32px;
  display: grid;
  width: 86px;
  height: 86px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  border: 1px solid rgba(31, 23, 18, 0.16);
  border-radius: 8px;
  padding: 15px;
  background: #fffaf1;
  box-shadow: 0 14px 26px rgba(31, 23, 18, 0.16);
  transform: rotate(8deg);
}

.dice span {
  border-radius: 999px;
  background: #1f1712;
}

.dice span:nth-child(2) {
  grid-column: 3;
}

.dice span:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.dice span:nth-child(4) {
  grid-row: 3;
}

.dice span:nth-child(5) {
  grid-column: 3;
  grid-row: 3;
}

.token {
  width: 34px;
  height: 34px;
  border: 3px solid #fffaf1;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(31, 23, 18, 0.22);
}

.token-one {
  top: 102px;
  left: 122px;
  background: #2d695d;
}

.token-two {
  right: 148px;
  bottom: 142px;
  background: #ae3f30;
}

.status-row {
  display: grid;
  max-width: 1180px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px auto 0;
}

.status-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(31, 23, 18, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 250, 241, 0.62);
}

.status-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #1f1712;
  font-size: 1.15rem;
}

@media (max-width: 820px) {
  .hero-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tabletop {
    min-height: 340px;
  }

  .status-row {
    grid-template-columns: 1fr;
  }
}
