/* sidomino.com. Colors are the app's (Resources/Styles/Colors.xaml); the app and the site are dark only. */

@font-face {
  font-family: "Open Sans";
  src: url("/fonts/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/fonts/OpenSans-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --surface: #0B1020;
  --surface-raised: #141B2D;
  --hero-glow: #142D67;
  --blue: #2563EB;
  --blue-hover: #3B82F6;
  --blue-sky: #60A5FA;
  --green: #22C55E;
  --green-light: #86EFAC;
  --gold: #F59E0B;
  --gold-light: #FDE68A;
  --snow: #F9FAFB;
  --ink: #111827;
  --text-strong: #FFFFFF;
  --text-body: #CBD5E1;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --fill-subtle: rgba(255, 255, 255, 0.06);
  --fill-strong: rgba(255, 255, 255, 0.10);
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --tile-face: #F9FAFB;
  --tile-edge: #CBD5E1;
  --radius: 20px;
  --gutter: 16px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text-body);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--snow); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { color: var(--text-strong); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-left)); }
.narrow { max-width: 820px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* ── Tiles and the wordmark ─────────────────────────────── */

.tile-face { fill: var(--tile-face); stroke: var(--tile-edge); stroke-width: 1.5; }
.tile-line { fill: var(--green); }
.tile-pips { fill: var(--ink); }

/* The name as the app writes it: the ı's dot is a small 6|5 tile (Controls/Wordmark.cs). Line height = Open Sans's
   ascender + descender (1.069 + 0.293 em), so the box's top is the ascender line, as in the app. */
.wordmark { display: inline-flex; font-weight: 600; line-height: 1.362; white-space: nowrap; letter-spacing: -0.01em; }
.wm-si { color: var(--green); }
.wm-rest { color: var(--snow); }
.wm-i { position: relative; display: inline-block; }
.wm-tile {
  position: absolute;
  width: 0.2em;
  height: 0.4em;
  left: 50%;
  top: 0.07em;
  transform: translateX(calc(-50% + 0.08em)) rotate(22deg);
  filter: drop-shadow(0 0.02em 0.02em rgba(0, 0, 0, 0.35));
}
.wm-tile .tile-face { stroke-width: 2.5; }

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 8px; transition: transform 0.2s; }
.brand:hover img { transform: rotate(-6deg); }
.wm-header { font-size: 1.45rem; }

.nav-desktop { margin-left: auto; }
.nav-desktop ul, .nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop ul { display: flex; gap: 4px; }
.nav-desktop a, .nav-mobile a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-desktop a:hover, .nav-mobile a:hover { color: var(--snow); background: var(--fill-subtle); }

.header-end { display: flex; align-items: center; gap: 8px; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  color: var(--snow);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang:hover { background: var(--fill-strong); }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-content: center;
  gap: 5px;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--snow); transition: transform 0.2s, opacity 0.2s; }
.nav-mobile[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile[open] summary span:nth-child(2) { opacity: 0; }
.nav-mobile[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile nav {
  position: absolute;
  right: 0;
  top: 52px;
  min-width: 220px;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface-raised);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.nav-mobile a { padding: 12px 14px; font-size: 1rem; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .header-end { margin-left: auto; }
  .nav-mobile { display: block; }
}

/* ── Hero ───────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; padding: 72px 0 96px; isolation: isolate; }
.glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 30% 20%, rgba(37, 99, 235, 0.38), transparent 70%),
    radial-gradient(45% 50% at 80% 30%, var(--hero-glow), transparent 75%),
    radial-gradient(40% 40% at 95% 100%, rgba(34, 197, 94, 0.12), transparent 70%);
}
.decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.decor .tile { position: absolute; width: 58px; height: 116px; opacity: 0.16; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)); }
.decor .d1 { left: 3%; top: 12%; transform: rotate(-28deg); }
.decor .d2 { left: 44%; top: 4%; width: 40px; height: 80px; transform: rotate(64deg); opacity: 0.1; }
.decor .d3 { right: 3%; bottom: 8%; transform: rotate(32deg); }
.decor .d4 { left: 46%; bottom: 3%; width: 44px; height: 88px; transform: rotate(78deg); opacity: 0.12; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-logo { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 18px 50px rgba(37, 99, 235, 0.45); margin-bottom: 28px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: var(--snow);
  font-size: 0.9rem;
  font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); }
.hero h1 { font-size: clamp(2.7rem, 7vw, 4.6rem); margin: 22px 0 20px; letter-spacing: -0.025em; line-height: 1.05; }
.accent { display: block; color: var(--blue-sky); }
.lead { font-size: 1.15rem; color: var(--text-body); max-width: 34em; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: var(--fill-subtle);
  border: 1px solid var(--hairline-strong);
  color: var(--snow);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
}
.store svg { width: 26px; height: 26px; fill: var(--snow); flex: none; }
.store small { display: block; font-size: 0.72rem; font-weight: 400; color: var(--text-secondary); letter-spacing: 0.02em; }
.note { margin-top: 18px; color: var(--text-secondary); font-size: 0.95rem; }

.hero-shots { position: relative; height: 620px; }
.phone {
  margin: 0;
  padding: 7px;
  border-radius: 40px;
  background: linear-gradient(160deg, #2A3347, #121826);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.6) inset;
}
.phone img { border-radius: 33px; width: 100%; height: auto; aspect-ratio: 600 / 1304; object-fit: cover; }
.hero-shots .phone { position: absolute; width: 270px; }
.phone-front { right: 8%; top: 0; transform: rotate(4deg); z-index: 2; }
.phone-back { left: 4%; top: 64px; transform: rotate(-7deg); opacity: 0.92; }

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-shots { height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-shots .phone { width: 232px; }
  .phone-front { right: 2%; }
  .phone-back { left: 2%; top: 48px; }
}
@media (max-width: 420px) {
  .hero-shots { height: 420px; }
  .hero-shots .phone { width: 188px; }
  .hero-logo { width: 72px; height: 72px; border-radius: 17px; }
}

/* ── Sections ───────────────────────────────────────────── */

.section { padding: 88px 0; border-top: 1px solid var(--hairline); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child:not(.eyebrow) { margin-top: 14px; color: var(--text-secondary); font-size: 1.08rem; }
.eyebrow { color: var(--green); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; }
@media (max-width: 600px) { .section { padding: 64px 0; } .section-head { margin-bottom: 36px; } }

.card {
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; fill: none; color: currentColor; }
.card-icon.small { width: 42px; height: 42px; border-radius: 12px; margin: 0; flex: none; }
.card-icon.small svg { width: 22px; height: 22px; }
.blue { background: rgba(37, 99, 235, 0.18); color: var(--blue-sky); }
.green { background: rgba(34, 197, 94, 0.15); color: var(--green-light); }
.gold { background: rgba(245, 158, 11, 0.15); color: var(--gold-light); }
.sky { background: rgba(96, 165, 250, 0.14); color: #BFDBFE; }

.play-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.play-card { padding: 28px 24px; transition: transform 0.2s, border-color 0.2s; }
.play-card:hover { transform: translateY(-3px); border-color: var(--hairline-strong); }
.play-card h3 { margin-bottom: 8px; }
.play-card p { color: var(--text-secondary); font-size: 0.98rem; }
@media (max-width: 1000px) { .play-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .play-grid { grid-template-columns: 1fr; } }

.split-section { overflow: hidden; }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.split-reverse .split-shot { order: 2; }
.split-shot { width: 100%; max-width: 300px; justify-self: center; }
.split-text h2 { margin-bottom: 18px; }
.split-text > p:not(.eyebrow) { font-size: 1.08rem; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-body); }
.points svg { width: 24px; height: 24px; flex: none; color: var(--green); padding: 3px; border-radius: 50%; background: rgba(34, 197, 94, 0.15); margin-top: 1px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split-shot { order: 0; }
  .split-shot { max-width: 260px; }
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--fill-subtle); border: 1px solid var(--hairline); }
.feature h3 { margin-bottom: 6px; font-size: 1.05rem; }
.feature p { color: var(--text-secondary); font-size: 0.96rem; }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

/* ── Modes ──────────────────────────────────────────────── */

.modes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mode { padding: 22px 22px 24px; border-radius: var(--radius); background: var(--surface-raised); border: 1px solid var(--hairline); }
.mode.planned { background: transparent; border-style: dashed; border-color: var(--hairline-strong); }
.mode-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mode-players { color: var(--blue-sky); font-size: 0.85rem; font-weight: 600; margin: 4px 0 10px; }
.mode p:last-child { color: var(--text-secondary); font-size: 0.96rem; }
.chip { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.chip-ready { background: rgba(34, 197, 94, 0.15); color: var(--green-light); }
.chip-planned { background: var(--fill-strong); color: var(--text-secondary); }
@media (max-width: 1000px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .modes { grid-template-columns: 1fr; } }

/* ── Roadmap ────────────────────────────────────────────── */

.roadmap { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.phase { display: flex; gap: 16px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--hairline); background: var(--fill-subtle); }
.phase h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.phase p { color: var(--text-secondary); font-size: 0.94rem; }
.phase-label { font-size: 0.76rem !important; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted) !important; }
.phase-dot { flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--text-muted); }
.phase-done .phase-dot { background: var(--green); border-color: var(--green); }
.phase-done .phase-label span { color: var(--green-light); }
.phase-next { border-color: rgba(96, 165, 250, 0.45); background: rgba(37, 99, 235, 0.12); }
.phase-next .phase-dot { border-color: var(--blue-sky); box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2); }
.phase-next .phase-label span { color: var(--blue-sky); }
@media (max-width: 760px) { .roadmap { grid-template-columns: 1fr; } }

/* ── FAQ ────────────────────────────────────────────────── */

.faq { display: grid; gap: 10px; }
.faq-item { border-radius: 16px; background: var(--surface-raised); border: 1px solid var(--hairline); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  position: relative;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 1.04rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item p { padding: 0 22px 20px; color: var(--text-body); }

/* ── Contact: the form, the address and the social links ─ */

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  padding: 44px;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(50% 60% at 100% 100%, rgba(34, 197, 94, 0.08), transparent 70%),
    var(--surface-raised);
}
.contact h2 { margin-bottom: 10px; }
.contact-side { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.contact-label { color: var(--text-strong); font-weight: 600; font-size: 0.95rem; }
.contact-label + * { margin-top: 6px; }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 24px; }
.contact-mail svg { width: 20px; height: 20px; }
.contact-follow { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 14px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 32px; padding: 28px 20px; } }

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fill-subtle);
  border: 1px solid var(--hairline-strong);
  color: var(--text-body);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.social svg { width: 21px; height: 21px; }
.footer-brand .social, .site-footer .social { display: flex; margin-top: 20px; }

.contact-form { display: grid; gap: 16px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field span { font-size: 0.88rem; font-weight: 600; color: var(--text-body); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--snow);
  background: rgba(11, 16, 32, 0.7);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 132px; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field select option { background: var(--surface-raised); color: var(--snow); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-sky);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-end .button { cursor: pointer; border: 0; font: inherit; font-weight: 600; }
.form-end .button:disabled { opacity: 0.7; cursor: progress; }
.form-status { font-size: 0.95rem; flex: 1 1 220px; }
.form-status.ok { color: var(--green-light); }
.form-status.error { color: #FCA5A5; }
.form-note { font-size: 0.85rem; color: var(--text-muted); }

/* ── The scorekeeper, played by site.js ─────────────────── */
/* Sized in container units, so the drawing scales with its phone; colors are the Score tab's Midnight theme. */

.sk-phone { container-type: inline-size; }
.sk {
  --sk-us: #60A5FA;
  --sk-them: #F59E0B;
  position: relative;
  aspect-ratio: 600 / 1304;
  overflow: hidden;
  border-radius: 33px;
  padding: 0 5cqi;
  background: linear-gradient(180deg, #1C3A8A 0%, #11214F 30%, #0B1020 70%);
  color: var(--snow);
  font-size: 4cqi;
  line-height: 1.3;
  transition: opacity 0.6s;
}
.sk.sk-fade { opacity: 0; }
.sk p { margin: 0; }
.sk .us { color: var(--sk-us); }
.sk .them { color: var(--sk-them); }
.sk-status { display: flex; justify-content: space-between; align-items: center; height: 13cqi; padding: 0 6cqi; font-weight: 600; font-size: 4.4cqi; }
.sk-signal { display: inline-flex; gap: 0.7cqi; align-items: flex-end; }
.sk-signal i { width: 1cqi; background: var(--snow); border-radius: 0.4cqi; }
.sk-signal i:nth-child(1) { height: 1.4cqi; } .sk-signal i:nth-child(2) { height: 2cqi; }
.sk-signal i:nth-child(3) { height: 2.6cqi; } .sk-signal i:nth-child(4) { height: 3.2cqi; }
.sk-eyebrow { color: var(--sk-us); font-size: 2.8cqi; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2cqi !important; }
.sk-head { display: flex; justify-content: space-between; align-items: center; }
.sk-title { font-size: 7.4cqi; font-weight: 600; }
.sk-pill { font-size: 4cqi; padding: 1cqi 3.5cqi; border-radius: 99px; background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }
.sk-sub { color: var(--text-secondary); font-size: 3.3cqi; margin-bottom: 3cqi !important; }
.sk-card { background: rgba(20, 27, 45, 0.85); border: 0.3cqi solid rgba(255, 255, 255, 0.12); border-radius: 4cqi; }
.sk-wins { padding: 2.6cqi 3.5cqi 3cqi; }
.sk-wins-top { display: flex; justify-content: space-between; font-size: 2.8cqi; color: var(--text-secondary); }
.sk-wins-top span:first-child { color: var(--sk-us); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.sk-wins-row { display: grid; grid-template-columns: 1fr 1fr; text-align: center; }
.sk-wins-row b { display: block; font-size: 9cqi; font-weight: 400; line-height: 1.1; transition: transform 0.3s; }
.sk-wins-row span { font-size: 2.8cqi; color: var(--text-secondary); }
.sk-won .sk-wins-row b.us { animation: sk-bump 0.6s ease-out; }
.sk-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqi; margin: 3cqi 0; }
.sk-team { position: relative; padding: 3.2cqi 3.5cqi 3cqi; transition: border-color 0.4s, box-shadow 0.4s; }
.sk-team.lead.us { border-color: var(--sk-us); box-shadow: 0 0 0 0.3cqi var(--sk-us), 0 0 6cqi rgba(96, 165, 250, 0.25); }
.sk-team.lead.them { border-color: var(--sk-them); box-shadow: 0 0 0 0.3cqi var(--sk-them), 0 0 6cqi rgba(245, 158, 11, 0.25); }
.sk-name { display: flex; align-items: center; gap: 1.6cqi; font-weight: 600; font-size: 4.2cqi; color: var(--snow); }
.sk-name i { width: 2.4cqi; height: 2.4cqi; border-radius: 50%; background: currentColor; }
.sk-team.us .sk-name i { background: var(--sk-us); }
.sk-team.them .sk-name i { background: var(--sk-them); }
.sk-total { display: block; font-size: 15cqi; font-weight: 400; line-height: 1.15; font-variant-numeric: tabular-nums; }
.sk-team.us .sk-total { color: var(--sk-us); }
.sk-team.them .sk-total { color: var(--sk-them); }
.sk-bar { display: block; height: 1.8cqi; border-radius: 1cqi; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin: 1.5cqi 0 1.6cqi; }
.sk-bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sk-team.us .sk-bar i { background: var(--sk-us); }
.sk-team.them .sk-bar i { background: var(--sk-them); }
.sk-togo { font-size: 2.9cqi; color: var(--text-secondary); }
.sk-plus {
  position: absolute;
  right: 3cqi;
  top: 2.4cqi;
  padding: 0.6cqi 2.2cqi;
  border-radius: 99px;
  font-size: 3.6cqi;
  font-weight: 600;
  color: #fff;
  opacity: 0;
}
.sk-team.us .sk-plus { background: var(--blue); }
.sk-team.them .sk-plus { background: #B45309; }
.sk-plus.show { animation: sk-pop 1.2s ease-out; }
.sk-add { display: grid; place-items: center; height: 11cqi; border-radius: 6cqi; background: var(--blue); font-weight: 600; font-size: 4.4cqi; }
.sk-add.press { animation: sk-press 0.35s ease-out; }
.sk-hands-title { margin: 4cqi 0 1.6cqi !important; font-size: 2.8cqi; letter-spacing: 0.16em; color: var(--text-secondary); text-transform: uppercase; font-weight: 600; }
.sk-sheet { padding: 0 3.5cqi; background: rgba(15, 23, 42, 0.9); }
.sk-sheet-head, .sk-sheet li { display: grid; grid-template-columns: 0.4fr 1fr 1fr; text-align: center; align-items: center; }
.sk-sheet-head { padding: 2.4cqi 0; font-size: 3.2cqi; border-bottom: 0.3cqi solid rgba(255, 255, 255, 0.1); }
.sk-sheet-head span:first-child, .sk-sheet li > span:first-child { text-align: left; color: var(--text-muted); }
.sk-sheet ol { list-style: none; margin: 0; padding: 0; }
.sk-sheet li { padding: 1.8cqi 0; border-bottom: 0.3cqi solid rgba(255, 255, 255, 0.06); font-size: 3.2cqi; min-height: 11cqi; }
.sk-sheet li b { display: block; font-size: 4.4cqi; font-weight: 600; }
.sk-sheet li small { display: block; color: var(--text-secondary); font-size: 2.8cqi; }
.sk-sheet li.sk-new { animation: sk-row 0.6s ease-out; }
.sk-sheet li.sk-new b { animation: sk-flash 1.2s ease-out; }

.sk-win {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(11, 16, 32, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.sk-won .sk-win { opacity: 1; }
.sk-win-card {
  width: 74%;
  padding: 6cqi 5cqi;
  text-align: center;
  border-radius: 5cqi;
  background: linear-gradient(160deg, #1E3A8A, #141B2D);
  border: 0.4cqi solid var(--sk-us);
  box-shadow: 0 6cqi 16cqi rgba(0, 0, 0, 0.6), 0 0 10cqi rgba(96, 165, 250, 0.35);
  transform: scale(0.6);
  transition: transform 0.55s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.sk-won .sk-win-card { transform: scale(1); }
.sk-trophy { display: block; font-size: 12cqi; line-height: 1.2; }
.sk-won .sk-trophy { animation: sk-trophy 1.2s ease-in-out infinite alternate; }
.sk-win-eyebrow { color: var(--gold-light); font-size: 3.2cqi; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.sk-win-name { font-size: 9cqi; font-weight: 600; color: var(--sk-us); }
.sk-win-detail { font-size: 3.2cqi; color: var(--text-body); margin-top: 1.5cqi !important; }
.sk-confetti { position: absolute; inset: 0; overflow: hidden; }
.sk-confetti i {
  position: absolute;
  top: -4cqi;
  width: 2cqi;
  height: 3.4cqi;
  border-radius: 0.5cqi;
  opacity: 0;
}
.sk-won .sk-confetti i { animation: sk-confetti 2.6s ease-in forwards; }
.sk-confetti i:nth-child(4n+1) { background: var(--sk-us); }
.sk-confetti i:nth-child(4n+2) { background: var(--gold); }
.sk-confetti i:nth-child(4n+3) { background: var(--green); }
.sk-confetti i:nth-child(4n) { background: var(--snow); }
.sk-confetti i:nth-child(1) { left: 6%; animation-delay: 0s; }
.sk-confetti i:nth-child(2) { left: 14%; animation-delay: 0.25s; }
.sk-confetti i:nth-child(3) { left: 22%; animation-delay: 0.1s; }
.sk-confetti i:nth-child(4) { left: 30%; animation-delay: 0.4s; }
.sk-confetti i:nth-child(5) { left: 38%; animation-delay: 0.05s; }
.sk-confetti i:nth-child(6) { left: 46%; animation-delay: 0.3s; }
.sk-confetti i:nth-child(7) { left: 54%; animation-delay: 0.15s; }
.sk-confetti i:nth-child(8) { left: 62%; animation-delay: 0.45s; }
.sk-confetti i:nth-child(9) { left: 70%; animation-delay: 0.2s; }
.sk-confetti i:nth-child(10) { left: 78%; animation-delay: 0.35s; }
.sk-confetti i:nth-child(11) { left: 86%; animation-delay: 0.08s; }
.sk-confetti i:nth-child(12) { left: 94%; animation-delay: 0.28s; }
.sk-confetti i:nth-child(13) { left: 10%; animation-delay: 0.6s; }
.sk-confetti i:nth-child(14) { left: 34%; animation-delay: 0.7s; }
.sk-confetti i:nth-child(15) { left: 50%; animation-delay: 0.55s; }
.sk-confetti i:nth-child(16) { left: 66%; animation-delay: 0.75s; }
.sk-confetti i:nth-child(17) { left: 82%; animation-delay: 0.65s; }
.sk-confetti i:nth-child(18) { left: 90%; animation-delay: 0.5s; }

@keyframes sk-pop {
  0% { opacity: 0; transform: translateY(2cqi) scale(0.6); }
  18% { opacity: 1; transform: translateY(0) scale(1.1); }
  30% { transform: scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-3cqi); }
}
@keyframes sk-press { 0% { transform: scale(1); } 40% { transform: scale(0.96); filter: brightness(1.2); } 100% { transform: scale(1); } }
@keyframes sk-row { from { opacity: 0; transform: translateY(-4cqi); background: rgba(96, 165, 250, 0.18); } to { opacity: 1; transform: none; background: transparent; } }
@keyframes sk-flash { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes sk-bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes sk-trophy { from { transform: rotate(-8deg) scale(1); } to { transform: rotate(8deg) scale(1.08); } }
@keyframes sk-confetti {
  0% { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0.9; transform: translateY(240cqi) rotate(720deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sk *, .sk { animation: none !important; transition: none !important; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.button:hover { background: var(--blue-hover); color: #fff; }
.button svg { width: 20px; height: 20px; flex: none; }
.button-quiet { background: var(--fill-strong); border: 1px solid var(--hairline-strong); }
.button-quiet:hover { background: rgba(255, 255, 255, 0.16); }

/* ── Footer ─────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--hairline); background: rgba(0, 0, 0, 0.22); padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { margin-top: 14px; color: var(--text-secondary); }
.site-footer h2 { font-size: 0.9rem; letter-spacing: 0.02em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer nav a { color: var(--text-body); text-decoration: none; font-size: 0.95rem; overflow-wrap: anywhere; }
.site-footer nav a:hover { color: var(--snow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; background: linear-gradient(var(--hairline), var(--hairline)) center top / calc(100% - 2 * max(var(--gutter), env(safe-area-inset-left))) 1px no-repeat; color: var(--text-muted); font-size: 0.9rem; }
.lang-foot { color: var(--text-secondary); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; } }

/* ── 404 ────────────────────────────────────────────────── */

.not-found { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 30%, rgba(37, 99, 235, 0.25), transparent 70%), var(--surface); }
.lost { text-align: center; padding-top: 48px; padding-bottom: 48px; }
.lost-tiles .tile { width: 56px; height: 112px; margin: 0 auto 24px; transform: rotate(-12deg); filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.5)); }
.wm-lost { font-size: 2rem; margin-bottom: 20px; }
.lost h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 14px; }
.lost .lead { margin: 6px auto 0; }
.lost .lead[lang="es"] { color: var(--text-secondary); }
.lost-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
