/* BetsPapa Screens — full site UI (not a portal overlay) */
:root {
  --pink: #f6c6d8;
  --pink-deep: #efadc4;
  --cream: #fff7f4;
  --ink: #111111;
  --ink-soft: #5c5c5c;
  --papa: #e11d2e;
  --cta: #ff4a1a;
  --cta-ink: #1a0500;
  --tone-pink: #f4b6ce;
  --tone-blue: #7eb6f0;
  --tone-mint: #9ee8bc;
  --tone-gold: #f0c94a;
  --tone-lilac: #c4b4f5;
  --tone-peach: #ffb38a;
  --tone-sky: #9fd6f2;
  --shadow-card: 0 10px 28px -12px rgb(17 17 17 / 0.22);
  --shadow-phone: 0 30px 70px -20px rgb(17 17 17 / 0.4);
  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-sans: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--pink); color: var(--ink); }
html { -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); }
button:not(:disabled), [role="button"]:not(:disabled), a { cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input { font: inherit; color: inherit; border: 0; background: transparent; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }

.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 0.82;
  font-weight: 400;
  text-transform: uppercase;
}
.font-cond { font-family: var(--font-cond); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.tone-pink { background: var(--tone-pink); color: var(--ink); }
.tone-blue { background: var(--tone-blue); color: var(--ink); }
.tone-mint { background: var(--tone-mint); color: var(--ink); }
.tone-gold { background: var(--tone-gold); color: var(--ink); }
.tone-lilac { background: var(--tone-lilac); color: var(--ink); }
.tone-peach { background: var(--tone-peach); color: var(--ink); }
.tone-sky { background: var(--tone-sky); color: var(--ink); }

.app-root {
  position: relative;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--pink);
}

.wallpaper { display: none; pointer-events: none; }
.wallpaper-type {
  position: absolute;
  font-family: var(--font-display);
  line-height: 0.78;
  letter-spacing: -0.03em;
  color: rgb(17 17 17 / 0.07);
  text-transform: uppercase;
  user-select: none;
}

.stage {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  min-height: 100dvh;
  max-width: 1100px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
}

.phone {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--cream);
}
.phone-list { display: none; }

.view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.view-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.view-pink { background: var(--pink); }
.view-cream { background: var(--cream); }
.view-ink { background: var(--ink); color: var(--cream); }

.pad { padding: 20px 20px 0; }
.pad-x { padding-left: 16px; padding-right: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px calc(var(--nav-h) + 16px); }

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand-left { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  outline: 2px solid color-mix(in srgb, var(--pink-deep) 40%, transparent);
  background: var(--cream);
}
.eyebrow {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--pink);
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}

.display {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.82;
  letter-spacing: 0.02em;
  margin-top: 20px;
  text-transform: uppercase;
}
.display.ghost { color: color-mix(in srgb, var(--ink) 30%, transparent); }
.lede {
  margin-top: 8px;
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--pink);
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tab.on { background: var(--ink); color: var(--cream); }

.card {
  display: block;
  border-radius: 28px;
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  color: var(--ink);
}
.card-top, .card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.card-top { align-items: flex-start; }
.card-bottom { margin-top: 12px; }
.card-time {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.card-names { min-width: 0; text-align: right; padding-bottom: 4px; }
.card-names p {
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}
.card-names p + p { color: color-mix(in srgb, var(--ink) 55%, transparent); }
.card-date {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  white-space: nowrap;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.banker-chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-cond);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.day-block { display: flex; flex-direction: column; gap: 16px; }
.day-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.day-title {
  font-size: 32px;
  margin-top: 0;
  line-height: 1;
}
.day-count {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--ink) 40%, transparent);
}
.market-block { display: flex; flex-direction: column; gap: 12px; }
.market-head {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 50%, transparent);
}
.time-block { display: flex; flex-direction: column; gap: 10px; }
.time-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.time-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.time-count {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--ink) 40%, transparent);
}
.view-ink .day-title { color: var(--cream); }
.view-ink .day-count,
.view-ink .market-head,
.view-ink .time-count { color: rgb(255 247 244 / 0.45); }
.view-ink .time-title { color: var(--cream); }
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--papa);
  margin-right: 6px;
  box-shadow: 0 0 0 4px rgb(225 29 46 / 0.18);
}

.badges { display: flex; align-items: center; gap: 6px; }
.badge {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cream);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.7);
  background: var(--ink);
}
.badge.lg { width: 56px; height: 56px; font-size: 14px; }
.badge.sm { width: 32px; height: 32px; }
.badge img { width: 100%; height: 100%; object-fit: cover; }
.badge-stripe {
  position: absolute;
  inset: auto 0 0;
  height: 33%;
  opacity: 0.9;
}

.pressable { transition: transform 150ms ease-out; }
.pressable:active { transform: scale(0.96); }

.cta, .btn-ink, .btn-cream {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cta { background: var(--cta); color: var(--cta-ink); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--ink); }
.cta:disabled, .btn-ink:disabled { opacity: 0.4; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgb(255 247 244 / 0.7);
}
.icon-btn svg, .kill svg { width: 20px; height: 20px; }

.nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  pointer-events: none;
  padding: 0 16px max(12px, env(safe-area-inset-bottom));
}
.nav-bar {
  pointer-events: auto;
  height: 64px;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-radius: 28px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-phone);
  padding: 0 8px;
}
.nav-item {
  position: relative;
  min-width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 16px;
  opacity: 0.55;
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.nav-item.on { opacity: 1; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item img { width: 24px; height: 24px; border-radius: 50%; outline: 1px solid rgb(255 247 244 / 0.4); }
.nav-count {
  position: absolute;
  top: 2px; right: 8px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  font-size: 9px;
  font-weight: 700;
}

.prob { margin-top: 16px; }
.prob-track {
  display: flex;
  height: 36px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(17 17 17 / 0.1);
}
.prob-h { background: var(--ink); }
.prob-d { background: rgb(17 17 17 / 0.3); }
.prob-a { background: var(--cream); }
.prob-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; margin-top: 8px; }
.prob-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}
.prob-stats span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}

.form-row { display: flex; align-items: center; gap: 8px; }
.form-lab {
  width: 40px;
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--ink) 50%, transparent);
}
.dot {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 4px;
  font-family: var(--font-cond);
  font-size: 8px;
  font-weight: 700;
}
.dot.W { background: var(--ink); color: var(--cream); }
.dot.D { background: rgb(17 17 17 / 0.2); color: var(--ink); }
.dot.L { background: var(--cream); color: var(--ink); }

.match-sheet {
  margin-top: 20px;
  border-radius: 28px;
  background: var(--cream);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.match-kick {
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.chooser {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.choice {
  border-radius: 16px;
  padding: 10px 6px;
  text-align: center;
  background: var(--cream);
  color: var(--ink);
}
.choice.on { background: var(--ink); color: var(--cream); }
.choice small {
  display: block;
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.choice b {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
}

.sticky-cta {
  padding: 8px 16px calc(var(--nav-h) + 4px);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.metric {
  border-radius: 12px;
  background: rgb(255 247 244 / 0.5);
  padding: 6px 4px;
  text-align: center;
}
.metric b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}
.metric span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-cond);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--ink) 50%, transparent);
}

.empty {
  border-radius: 28px;
  background: var(--pink);
  padding: 40px 24px;
  text-align: center;
}
.empty h2 { font-family: var(--font-display); font-size: 40px; line-height: 0.9; }
.empty p { margin-top: 12px; font-size: 14px; color: color-mix(in srgb, var(--ink) 65%, transparent); }

.slip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 22px;
  background: var(--pink);
  padding: 12px 16px;
}
.slip-row .odd {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}
.kill {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream);
}

.stake-box, .sum-box {
  border-radius: 22px;
  padding: 12px 16px;
}
.stake-box { background: var(--pink); }
.stake-box input {
  width: 100%;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
}
.sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sum-box.ink { background: var(--ink); color: var(--cream); }
.sum-box.cta { background: var(--cta); color: var(--cta-ink); }
.sum-box span {
  font-family: var(--font-cond);
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0.65;
}
.sum-box b {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}

.papa-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--papa);
  flex-shrink: 0;
}
.papa-hero img.cover {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.papa-hero .fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 96px;
  background: linear-gradient(to top, var(--ink), transparent);
}
.papa-hero .brand-left {
  position: absolute;
  top: 20px; left: 20px;
  color: var(--cream);
}
.rule {
  display: flex;
  gap: 12px;
  border-radius: 22px;
  background: rgb(255 247 244 / 0.1);
  padding: 12px 16px;
}
.rule b {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--papa);
}
.hub a, .hub button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 22px;
  background: rgb(255 247 244 / 0.1);
  padding: 14px 16px;
  text-align: left;
  color: var(--cream);
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hub .cta {
  justify-content: center;
  background: var(--cta);
  color: var(--cta-ink);
  height: 56px;
  border-radius: 999px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.view-ink .metric { color: var(--cream); }
.view-ink .metric span { color: rgb(255 247 244 / 0.55); }

.toast {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: var(--ink);
  color: var(--cream);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 13px;
  box-shadow: var(--shadow-phone);
  max-width: 320px;
}
.skel {
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(90deg, rgb(17 17 17 / 0.06), rgb(17 17 17 / 0.12), rgb(17 17 17 / 0.06));
  background-size: 200% 100%;
  animation: shine 1.2s ease-in-out infinite;
}
@keyframes shine {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
.stagger > * { animation: rise 480ms var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: 40ms; }
.stagger > *:nth-child(2) { animation-delay: 90ms; }
.stagger > *:nth-child(3) { animation-delay: 140ms; }
.stagger > *:nth-child(4) { animation-delay: 190ms; }
.stagger > *:nth-child(5) { animation-delay: 240ms; }
.stagger > *:nth-child(6) { animation-delay: 290ms; }
.stagger > *:nth-child(7) { animation-delay: 340ms; }
.stagger > *:nth-child(8) { animation-delay: 390ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .stagger > *, .skel { animation: none; }
}

@media (min-width: 900px) {
  .wallpaper { display: block; position: absolute; inset: 0; overflow: hidden; }
  .stage { align-items: center; padding: 12px 20px; }
  .phone {
    width: 400px;
    min-height: 0;
    height: min(844px, calc(100dvh - 24px));
    flex-shrink: 0;
    border-radius: 40px;
    border: 10px solid var(--ink);
    box-shadow: var(--shadow-phone);
  }
  .phone-list { display: flex; }
}
