/* DailyStreak website. Tokens come from the iOS app: Core/Theme/AppTheme.swift and Core/UI/DesignKit.swift. */
:root {
  /* Layout idea: the page opens at night, on the app's dark theme, with a playable phone and a
     live board. Scrolling walks out into the light theme, section by section, like the week. */
  --brand: #6C5CE7;        /* AppTheme.primary (light), hsl(250 77% 60%) */
  --brand-night: #846FEC;  /* AppTheme.primary (dark), hsl(250 77% 68%) */
  --brand-wash: #8673DC;   /* app icon ground / splash */
  --ink: #16141F;
  --ink-soft: #5E5B6E;
  --paper: #FFFFFF;
  --mist: #F3F2F8;
  --line: #E4E2EE;
  --night: #18181B;        /* AppTheme.background (dark) */
  --night-card: #242427;   /* AppTheme.card (dark) */
  --night-line: rgba(255, 255, 255, .08);
  --night-soft: rgba(235, 235, 245, .62);
  --combo: #F29107;        /* AppTheme.combo */
  --live: #E5584A;         /* AppTheme.live */
  --win: #30B95C;
  --gold: #FFE02E;         /* DSPrizeCoin.gold */
  --display: "Milker", "Arial Black", "Helvetica Neue", Impact, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}
@font-face { font-family: "Milker"; src: url("milker.woff2") format("woff2"); font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
button { font: inherit; color: inherit; }
h1, h2, .milker { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .98; letter-spacing: .005em; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.8vw, 3.5rem); }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.night :focus-visible, .on-brand :focus-visible { outline-color: #fff; }

/* Capsule buttons (the app's CTA shape) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0; font: 700 1.02rem/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .12s ease; }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-paper { background: #fff; color: var(--ink); }
.btn-brand { background: var(--brand); color: #fff; }
.btn small { display: block; font-weight: 500; font-size: .72rem; opacity: .7; margin-bottom: 3px; }
.btn span { text-align: left; }
/* Official store badges: shown automatically once the badge files are in assets/ */
.store.has-badge { background: none; padding: 0; min-height: 0; border-radius: 0; box-shadow: none; }
.store.has-badge img { height: 54px; width: auto; max-width: none; }
.store.has-badge img[src$="badge-google-play.png"] { height: 80px; margin: -13px; } /* Google's PNG carries its own clear space; this lines the artwork up with Apple's at 54px */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
html[data-os="ios"] .only-android, html[data-os="android"] .only-ios { display: none; }

.tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 3px 8px; border-radius: 999px; font: 800 .68rem/1.2 var(--body); letter-spacing: .03em; color: #fff; background: var(--brand); text-transform: none; }
.tag.combo { background: var(--combo); }

/* ================= NIGHT: hero + playable week ================= */
.night { position: relative; background: var(--night); color: #fff; overflow: hidden; isolation: isolate; color-scheme: dark; }
#dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.night::before { /* stadium glow behind the phone */
  content: ""; position: absolute; z-index: -1; right: -10%; top: 6%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(132, 111, 236, .55), rgba(132, 111, 236, .16) 55%, transparent 72%); pointer-events: none; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: .95rem; }

.stage { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(20px, 4vw, 48px) clamp(56px, 8vw, 104px); }
.stage-copy { display: grid; gap: 26px; justify-items: start; }
.stage h1 { font-size: clamp(1.9rem, 8.2vw, 4.4rem); }
.stage h1 span { display: block; white-space: nowrap; }
.stage h1 span:nth-child(2) { color: var(--brand-night); }
.stage .lede { color: var(--night-soft); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.qr { display: none; align-items: center; gap: 12px; background: #fff; color: var(--ink); padding: 8px 14px 8px 8px; border-radius: 16px; font-size: .84rem; font-weight: 600; line-height: 1.3; }
.qr svg { width: 72px; height: 72px; display: block; }
@media (min-width: 900px) and (hover: hover) { html:not([data-os="ios"]):not([data-os="android"]) .qr { display: flex; } }

/* Real clocks: tonight's reset and Sunday's close, in Central time */
.clocks { display: flex; flex-wrap: wrap; gap: 10px; }
.clock { display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: var(--night-card); box-shadow: inset 0 0 0 1px var(--night-line); min-width: 190px; }
.clock span { font-size: .8rem; color: var(--night-soft); }
.clock b { font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: .01em; font-variant-numeric: tabular-nums; }

/* The phone: real screens from the app */
.play { display: grid; gap: 14px; justify-items: center; }
.play-note { font-size: .84rem; color: var(--night-soft); text-align: center; max-width: 30em; }
.device { width: 372px; max-width: 100%; background: #0B0A10; border-radius: 54px; padding: 11px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 40px 90px -30px rgba(108, 92, 231, .8); }
.shots { position: relative; border-radius: 44px; overflow: hidden; aspect-ratio: 1320 / 2868; background: #fff; }
.shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .28s; }
.shots img.on { opacity: 1; }
.hot { position: absolute; border: 0; background: transparent; cursor: pointer; border-radius: 18px; padding: 0; }
.hot.tab { top: 91.2%; width: 16.4%; height: 6.6%; border-radius: 999px; }
.hot:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.shots:not([data-on="home"]) .only-home, .shots:not([data-on="game"]) .only-game { display: none; }
.shot-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.shot-tabs button { /* DSPillStyle on the dark theme */ height: 34px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .62); font-size: .9rem; font-weight: 500; }
.shot-tabs button[aria-pressed="true"] { background: #1C1C1E; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 0 0 2.25px rgba(255, 255, 255, .10); }

/* ================= The real week ================= */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.how { padding-block: clamp(48px, 6vw, 80px); }
.how h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 24px; }
.nums { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nums li { background: var(--mist); border-radius: 16px; padding: 20px 20px 22px; display: grid; gap: 4px; align-content: start; }
.nums b { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: 1; color: var(--brand); margin-bottom: 8px; }
.nums b.combo { color: var(--combo); }
.nums h3 { font-size: 1.05rem; }
.nums p { color: var(--ink-soft); font-size: .93rem; }
.how-foot { margin-top: 20px; color: var(--ink-soft); max-width: 46em; }

/* ================= Inside the app: pinned phone ================= */
.tint { background: var(--mist); }
.tour { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 8vw, 120px); align-items: start; }
.tour-steps { display: grid; }
.tour-step { min-height: 78vh; display: grid; align-content: center; gap: 14px; opacity: .3; transition: opacity .35s; }
.tour-step.on { opacity: 1; }
.tour-step h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1; }
.tour-step p { color: var(--ink-soft); max-width: 30em; font-size: 1.08rem; }
.tour-step .phone { display: none; }
.tour-pin { position: sticky; top: calc(50vh - 326px); }
.phone { background: #0D0C12; border-radius: 15.5% / 7.2%; padding: 3.2%; box-shadow: 0 24px 48px -24px rgba(22, 20, 31, .45); }
.phone img { width: 100%; border-radius: 13% / 6%; aspect-ratio: 1320 / 2868; object-fit: cover; background: #fff; }
.tour-pin .phone { position: relative; }
.tour-pin img + img, .tour-pin img + img + img { position: absolute; left: 3.2%; top: 1.48%; width: 93.6%; }
.tour-pin img { opacity: 0; transition: opacity .4s; }
.tour-pin img.on { opacity: 1; }
.extras { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.extras li { padding: 20px 20px 0 0; font-weight: 600; }
.extras small { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }

/* ================= Sports ================= */
.sports { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.sport-list { margin: 0; display: grid; }
.sport-list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 16px; align-items: baseline; padding-block: 14px; border-top: 1px solid var(--line); }
.sport-list dt { font-weight: 700; }
.sport-list dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sport-list dd span { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; background: #F5F5F7; color: #6B7280; font-size: .9rem; font-weight: 500; white-space: nowrap; } /* DSPillStyle, idle */

/* ================= Friends + prizes (DSHeroCard) ================= */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel { position: relative; isolation: isolate; background: var(--mist); border-radius: 22px; padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 14px; align-content: start; overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle, rgba(22, 20, 31, .07) 1px, transparent 1.2px) 0 0 / 14px 14px; }
.panel h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.panel p { color: var(--ink-soft); max-width: 30em; }
.panel img { margin-top: 12px; justify-self: center; width: min(420px, 100%); }
.panel .fine { font-size: .82rem; }
.panel.brand-panel { background: var(--brand-wash); color: #fff; }
.panel.brand-panel::before { background-image: radial-gradient(circle, rgba(255, 255, 255, .13) 1px, transparent 1.2px); }
.panel.brand-panel p { color: rgba(255, 255, 255, .92); }
.panel.brand-panel img { margin-bottom: calc(-1 * clamp(24px, 3.4vw, 44px)); width: min(460px, 110%); max-width: none; }

/* ================= Close + footer ================= */
.close { background: var(--brand); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.close::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand-wash); clip-path: polygon(0 0, 100% 0, 100% 30%, 0 72%); }
.close::after { content: ""; position: absolute; z-index: -1; right: -40px; top: 50%; width: min(420px, 60%); aspect-ratio: 390 / 520; background: url("bolt-white.png") center / contain no-repeat; opacity: .12; transform: translateY(-50%) rotate(-12deg); }
.close .wrap { display: grid; gap: 28px; justify-items: start; padding-block: clamp(64px, 9vw, 120px); }
.close h2 { font-size: clamp(2.2rem, 6.4vw, 4.8rem); max-width: 11em; }
.close p { font-size: 1.15rem; max-width: 32em; color: rgba(255, 255, 255, .92); }
.foot { padding-block: 40px 56px; font-size: .92rem; color: var(--ink-soft); }
.foot .wrap { display: grid; gap: 22px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.foot .brand { color: var(--ink); font-size: 1.1rem; }
.foot .brand img { width: 32px; height: 32px; border-radius: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { font-weight: 600; color: var(--ink); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot small { font-size: .82rem; line-height: 1.55; max-width: 70em; }

/* ================= Small pages: /get, /join, legal ================= */
.solo { min-height: 100%; display: grid; place-items: center; padding: 40px 20px; background: var(--brand-wash); color: #fff; }
.solo-card { width: min(460px, 100%); display: grid; gap: 20px; justify-items: center; text-align: center; }
.solo-card img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 30px rgba(40, 24, 120, .4); }
.solo-card h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
.solo-card p { color: rgba(255, 255, 255, .92); }
.solo-card .btn { width: 100%; }
.code { font: 800 1.6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; background: #fff; color: var(--ink); padding: 14px 22px; border-radius: 14px; }
.legal-top .nav { padding-block: 16px; }
.legal { width: min(760px, 100% - 40px); margin: 0 auto; padding-block: 56px 72px; }
.legal h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 28px; }
.legal h2 { font-family: var(--body); text-transform: none; font-weight: 700; font-size: 1.3rem; line-height: 1.3; letter-spacing: -.01em; margin: 40px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p { margin: 0 0 12px; color: #2c2a38; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; color: #2c2a38; }
.legal a { color: var(--brand); font-weight: 600; }

@media (min-width: 981px) and (max-width: 1180px) { .stage h1 { font-size: 4.4vw; } }
@media (max-width: 980px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .clocks { width: 100%; }
  .stage-copy { display: contents; }
  .stage-copy > * { order: 1; }
  .play { position: static; order: 2; justify-self: center; }
  .night::before { width: 140%; right: -20%; top: 30%; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour { grid-template-columns: 1fr; }
  .tour-pin { display: none; }
  .tour-step { min-height: 0; opacity: 1; padding-block: 28px; justify-items: start; }
  .tour-step .phone { display: block; width: min(280px, 100%); margin-top: 10px; }
  .sports, .duo { grid-template-columns: 1fr; }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .extras li { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn-row .btn { flex: 1 1 100%; }
  .clock { flex: 1 1 100%; }
  .sport-list div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .tour-step, .tour-pin img, .shots img { transition: none; }
}
