:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d6980;
  --card: rgba(255, 255, 255, 0.9);
  --edge: rgba(23, 32, 51, 0.14);
  --blue: #2f80ed;
  --yellow: #f2c94c;
  --red: #eb5757;
  --green: #27ae60;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47,128,237,.25), transparent 35rem),
    linear-gradient(145deg, #dceaff 0%, #f8fbff 48%, #fff4d2 100%);
}

.shell { width: min(980px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0 42px; }
.top-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.top-nav a, button {
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(36, 58, 102, .08);
}
button { cursor: pointer; font: inherit; }
button:hover, .top-nav a:hover { transform: translateY(-1px); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.hero { margin-bottom: 18px; }
.eyebrow, .label { text-transform: uppercase; letter-spacing: .11em; font-size: .74rem; color: var(--muted); font-weight: 900; }
h1 { font-size: clamp(2.35rem, 9vw, 5.4rem); line-height: .92; margin: 6px 0 10px; }
.lede { max-width: 720px; font-size: clamp(1.05rem, 2.5vw, 1.32rem); color: #364159; margin: 0; }

.game-card, .rules {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(47, 74, 122, .15);
  padding: clamp(16px, 4vw, 28px);
  backdrop-filter: blur(10px);
}
.status-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.status-row > div, .request-card, .next-box, .log {
  border: 1px solid var(--edge);
  border-radius: 20px;
  background: rgba(255,255,255,.66);
  padding: 14px;
}
.status-row strong { display: block; font-size: 1.5rem; margin-top: 3px; }
.request-card strong { display: block; font-size: clamp(1.35rem, 4vw, 2rem); margin-top: 6px; }
.request-card p { margin: 6px 0 0; color: var(--muted); }

.rack {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.slot {
  min-height: 188px;
  border: 2px solid transparent;
  border-radius: 24px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(244,248,255,.76));
  box-shadow: inset 0 -14px 30px rgba(42,78,130,.06), 0 10px 24px rgba(34,55,95,.08);
  text-align: center;
}
.slot:hover { border-color: rgba(47,128,237,.55); }
.slot.match { outline: 3px solid rgba(39,174,96,.25); }
.slot.miss { outline: 3px solid rgba(235,87,87,.25); }
.slot-name { font-weight: 950; color: var(--muted); margin-bottom: 10px; }

.umbrella { display: grid; place-items: center; gap: 7px; }
.canopy { width: 92px; height: 48px; border-radius: 92px 92px 12px 12px; border: 3px solid rgba(23,32,51,.18); position: relative; overflow: hidden; }
.canopy.spots::after { content:""; position:absolute; inset: 7px 12px; background: radial-gradient(circle, rgba(255,255,255,.85) 0 18%, transparent 20%) 0 0/18px 18px; }
.canopy.stripes::after { content:""; position:absolute; inset:0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.65) 0 10px, transparent 10px 20px); }
.handle { width: 8px; height: 54px; background: #3b465f; border-radius: 8px; position: relative; }
.handle::after { content:""; position:absolute; bottom:-8px; left:0; width:25px; height:18px; border: 6px solid #3b465f; border-top:0; border-left:0; border-radius:0 0 22px 0; }
.attrs { font-weight: 900; }
.note { color: var(--muted); font-size: .92rem; }
.blue { background: var(--blue); } .yellow { background: var(--yellow); } .red { background: var(--red); } .green { background: var(--green); }
.large .canopy { width: 104px; height: 55px; } .small .canopy { width: 78px; height: 42px; }

.next-box { display: inline-flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.mini-umbrella .umbrella { display: flex; align-items: center; gap: 8px; }
.mini-umbrella .canopy { width: 48px; height: 26px; }
.mini-umbrella .handle { height: 26px; width: 5px; }
.mini-umbrella .handle::after { width: 14px; height: 10px; border-width: 4px; bottom: -5px; }
.log { min-height: 52px; color: #2d3952; font-weight: 800; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.rules { margin-top: 18px; }
.rules h2 { margin-top: 0; }
.rules li { margin: 8px 0; color: #3d475c; }

@media (max-width: 720px) {
  .status-row { grid-template-columns: 1fr 1fr 1fr; }
  .rack { grid-template-columns: 1fr 1fr; }
  .slot { min-height: 165px; }
}

@media (max-width: 430px) {
  .shell { width: min(100% - 18px, 980px); padding-top: 12px; }
  .status-row { grid-template-columns: 1fr; }
  .rack { grid-template-columns: 1fr; }
}
