/* Tottori Dunes palette for the Called It web UI. */
:root {
  --bg: #F2E9DC;
  --paper: #F2E9DC;
  --card: #FFF9F0;
  --soft: #EDE1D1;
  --soft-2: #DDD2C2;
  --ink: #182842;
  --ink-soft: #4B5763;
  --ink-faint: #606870;
  --accent: #182842;
  --accent-press: #2D4564;
  --blue: #476285;
  --blue-deep: #334C6B;
  --blue-tint: #E4EBF2;
  --red: #DC2626;
  --red-tint: #FEF2F2;
  --green: #217446;
  --green-tint: #ECFDF3;
  --amber: #805126;
  --amber-tint: #F3E4D0;
  --quote-orange: #FF641F;
  --dune-stone: #B2B4AF;
  --dune-sand: #CCA371;
  --dune-ochre: #A9733F;
  --rule: rgba(24, 40, 66, .08);
  --hair: rgba(24, 40, 66, .09);
  --shadow: 0 10px 30px rgba(24, 40, 66, .055), 0 1px 3px rgba(24, 40, 66, .04);
  --shadow-lg: 0 22px 50px rgba(24, 40, 66, .16), 0 2px 8px rgba(24, 40, 66, .06);
  --ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  --label: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --sports-display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --stencil: var(--display);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body.ci {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at top left, rgba(71, 98, 133, .17), transparent 65%),
    linear-gradient(155deg, var(--dune-stone), var(--bg) 52%, var(--dune-sand));
  background-attachment: fixed;
  color: var(--ink);
  font: 400 16px/1.45 var(--ui);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
.ci a { color: var(--blue); }
.ci :focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.ci [hidden] { display: none !important; }
body.sheet-open { overflow: hidden; }

/* ---------- top frame ---------- */
.ci-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 460px;
  margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top)) 20px 6px;
}
.ci-trophy-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 2px 8px rgba(24, 40, 66, .06);
  border: 1px solid var(--hair);
}
.ci-trophy-logo img { display: block; width: 26px; height: 26px; object-fit: contain; }
.ci-logo {
  color: var(--ink) !important;
  text-decoration: none;
  font: 700 20px/1 var(--display);
  letter-spacing: -.03em;
}
.ci-menu {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(24, 40, 66, .05);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.ci-menu:active { transform: scale(.94); background: var(--soft); }
.ci-main { max-width: 460px; margin: 0 auto; padding: 4px 20px 44px; }
.ci-foot {
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 20px calc(32px + env(safe-area-inset-bottom));
  color: var(--ink-faint);
  font-size: 12.5px;
  text-align: center;
}
.ci-foot p { margin: 0 auto; max-width: 42ch; }

/* ---------- type ---------- */
.ci h1, .ci h2, .ci h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12;
}
.ci h2.sec {
  margin: 26px 0 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.label {
  font: 600 12px/1.25 var(--label);
  letter-spacing: .02em;
  color: var(--ink-soft);
}
.ci-lede { margin: 10px 0 0; max-width: 38ch; font-size: 16.5px; line-height: 1.45; color: var(--ink-soft); }
.ci-note { margin: 10px 0 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.45; }
.ci-error { margin: 10px 0 0; color: var(--red); font-weight: 600; font-size: 14px; }
.ci-error:empty { display: none; }

/* ---------- buttons and fields ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font: 600 15.5px/1 var(--ui);
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(24, 40, 66, .14);
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); background: var(--accent-press); }
.btn[disabled] { opacity: .4; cursor: default; box-shadow: none; }
.btn.wide { width: 100%; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; box-shadow: 0 2px 8px rgba(24, 40, 66, .1); }
.btn.ghost {
  background: var(--card);
  color: var(--ink) !important;
  border: 1px solid var(--hair);
  box-shadow: 0 1px 3px rgba(24, 40, 66, .04);
}
.btn.ghost:active { background: var(--soft); }
.link {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: 600 13.5px var(--ui);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.field { display: block; margin-top: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px var(--ui);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus { outline: none; border-color: var(--ink); background: var(--card); }
.form .btn.wide { margin-top: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- pills, stamps & avatars ---------- */
.stamp {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green);
  font: 600 12px/1 var(--ui);
  white-space: nowrap;
}
.stamp.miss { background: var(--soft); color: var(--ink-soft); }
.stamp.back { background: var(--blue-tint); color: var(--blue); }
.who li b.back, .dn-row b.back { color: var(--blue); font-size: 12px; }
.sc-row.out .sc-val { color: var(--blue); font-size: 12px; }
.result-main .back-note { display: block; margin-top: 2px; color: var(--blue); }
.pts-stamp {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hair);
  color: var(--ink);
  font: 650 13px/1 var(--ui);
  box-shadow: 0 1px 3px rgba(24, 40, 66, .04);
  white-space: nowrap;
}
.face {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font: 700 13px/1 var(--ui);
}
.faces { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

/* ---------- landing & demo ---------- */
.ci-landing .ci-top { display: flex; }
.ci-landing .ci-foot { display: none; }
.hero { padding-top: 14px; }
.ci-landing .hero h1 { text-align: center; }
.hero-sub { margin: 10px 0 0; text-align: center; color: var(--ink-soft); font-size: 15.5px; }
.hero .btn { margin-top: 16px; }
.ci-signin { display: none; }
:is(.ci-landing, .ci-setup-route) .ci-menu { display: none; }
:is(.ci-landing, .ci-setup-route) .ci-signin {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 600 13.5px var(--ui);
  box-shadow: 0 1px 4px rgba(24, 40, 66, .05);
  cursor: pointer;
}
.ci-signin:disabled { opacity: .5; }

.poll-demo { margin: 24px auto 0; width: min(100%, 306px); text-align: center; }
.demo-phone { padding: 8px; border: 1px solid var(--dune-ochre); border-radius: 38px; background: var(--ink); box-shadow: 0 20px 44px rgba(24, 40, 66, .18); }
.demo-screen { position: relative; overflow: hidden; border-radius: 30px; background: var(--card); text-align: left; font: 500 14.5px/1.3 var(--ui); }
.demo-screen::after { content: ''; display: block; width: 84px; height: 4px; margin: 12px auto 8px; border-radius: 4px; background: rgba(24, 40, 66, .2); }
.demo-chat-title { display: flex; align-items: center; gap: 9px; padding: 16px 14px 10px; border-bottom: 1px solid var(--hair); background: var(--soft); }
.demo-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; }
.demo-thread { display: grid; gap: 6px; padding: 12px 13px 0; }
.demo-added { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--ink-soft); font-size: 11.5px; }
.demo-added img { width: 18px; height: 18px; border-radius: 50%; }
.demo-setup, .demo-welcome { padding: 6px 10px; border-radius: 14px; font-size: 12px; }
.demo-setup { justify-self: end; color: #fff; background: var(--blue); }
.demo-welcome { justify-self: start; background: var(--soft); }
.demo-welcome p { margin: 7px 0 0; }
.demo-sender { color: var(--ink-soft); font-size: 11.5px; padding-left: 8px; }
.demo-poll { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--hair); border-radius: 16px 16px 16px 4px; background: var(--bg); }
.demo-option { display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 8px; border-radius: 8px; background: #fff; font-size: 12.5px; }
.demo-pick { position: relative; background: var(--blue-tint); }
.demo-radio { flex: 0 0 13px; height: 13px; border: 1.5px solid var(--ink-faint); border-radius: 50%; }
.demo-pick .demo-radio { border: 4px solid var(--blue); background: #fff; }
.demo-lock, .demo-points { color: var(--ink-soft); font-size: 11.5px; }
.demo-points { margin-left: auto; white-space: nowrap; }
.demo-result { display: grid; gap: 2px; justify-self: start; margin-top: 4px; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--green-tint); }
.demo-result span, .demo-result small { font-size: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .demo-playing { --demo-duration: 18s; }
  .demo-playing .demo-added { animation: demo-add var(--demo-duration) infinite; }
  .demo-playing .demo-setup { animation: demo-setup var(--demo-duration) infinite; }
  .demo-playing .demo-sender, .demo-playing .demo-welcome { animation: demo-welcome var(--demo-duration) infinite; }
  .demo-playing .demo-poll { animation: demo-arrive var(--demo-duration) infinite; }
  .demo-playing .demo-pick { animation: demo-select var(--demo-duration) infinite; }
  .demo-playing .demo-pick .demo-radio { animation: demo-check var(--demo-duration) infinite; }
  .demo-playing .demo-pick::after { content: ''; position: absolute; left: 4px; top: calc(50% - 10px); width: 20px; height: 20px; border: 2px solid var(--blue); border-radius: 50%; opacity: 0; animation: demo-tap var(--demo-duration) infinite; }
  .demo-playing .demo-result { animation: demo-reveal var(--demo-duration) infinite; }
  @keyframes demo-add { 0%, 4% { opacity: 0; transform: translateY(4px); } 8%, 100% { opacity: 1; transform: translateY(0); } }
  @keyframes demo-setup { 0%, 16% { opacity: 0; transform: translateY(4px); } 20%, 100% { opacity: 1; transform: translateY(0); } }
  @keyframes demo-welcome { 0%, 22% { opacity: 0; transform: translateY(4px); } 25%, 100% { opacity: 1; transform: translateY(0); } }
  @keyframes demo-arrive { 0%, 49% { opacity: 0; transform: translateY(6px); } 53%, 100% { opacity: 1; transform: translateY(0); } }
  @keyframes demo-select { 0%, 61% { background: var(--card); } 64%, 100% { background: var(--blue-tint); } }
  @keyframes demo-check { 0%, 61% { border: 1.5px solid var(--ink-faint); } 64%, 100% { border: 4px solid var(--blue); } }
  @keyframes demo-tap { 0%, 59% { opacity: 0; transform: scale(.7); } 60% { opacity: .85; transform: scale(.7); } 66%, 100% { opacity: 0; transform: scale(1.6); } }
  @keyframes demo-reveal { 0%, 75% { opacity: 0; transform: translateY(6px); } 80%, 100% { opacity: 1; transform: translateY(0); } }
}

/* ---------- setup flow ---------- */
.setup { padding-top: 12px; }
.setup h1 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.setup .form { margin-top: 16px; padding: 18px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.steps { margin: 18px 0 0; padding: 6px 18px; list-style: none; counter-reset: step; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.steps li { counter-increment: step; position: relative; padding: 16px 0 16px 40px; border-top: 1px solid var(--hair); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 15px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); font: 700 13px/1 var(--ui); color: var(--ink); }
.steps b { display: block; font-size: 16px; font-weight: 700; }
.steps p { margin: 4px 0 10px; color: var(--ink-soft); font-size: 14px; }
.number { display: block; margin: 6px 0 10px; font: 700 22px/1.1 var(--display); letter-spacing: -.02em; }
.setup-msg { display: inline-block; margin: 4px 0 10px; padding: 8px 14px; border-radius: 16px; background: var(--blue-tint); color: var(--blue); font-weight: 600; font-size: 14.5px; }
.waiting { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 18px; background: var(--card); }
.waiting::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none; }
@media (prefers-reduced-motion: no-preference) { .waiting::before { animation: blink 1.2s ease-in-out infinite; } @keyframes blink { 50% { opacity: .25; } } }
.setup-settings { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair); }
.setup-settings > p { margin: 0 0 4px; }
.setup-settings summary { padding: 6px 0; color: var(--ink); font-weight: 600; font-size: 14.5px; cursor: pointer; }

/* ---------- pickers & chips ---------- */
.pickers { margin: 16px 0 0; padding: 0; border: 0; }
.pickers legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.chips, .segs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .seg { position: relative; cursor: pointer; }
.chip input, .seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span, .seg span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: 600 14px/1 var(--ui);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip svg { width: 17px; height: 17px; }
.seg span { min-width: 48px; }
.chip input:checked + span, .seg input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg span.seg-two { flex-direction: column; gap: 2px; padding: 7px 14px; border-radius: 16px; line-height: 1.1; }
.seg span.seg-two small { font: 500 11px/1.1 var(--ui); opacity: .75; }
.ci-custom { display: block; margin-top: 10px; }
.ci-dollar { display: flex; align-items: center; gap: 8px; }
.ci-dollar b { font: 700 20px/1 var(--display); }
.ci-dollar input { max-width: 150px; }

/* ---------- group page ---------- */
body.ci-group {
  --field-green: #124438;
}
.ci-group .ci-top, .ci-group .ci-main, .ci-group .ci-foot { max-width: 540px; }
.g-head { padding: 20px 0 12px; }
.g-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ci-group .g-title h1, .ci-group h2.sec, .next-drop strong {
  font-family: var(--sports-display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.ci-group .g-title h1 { min-width: 0; font-size: clamp(31px, 10.5vw, 56px); line-height: .94; overflow-wrap: anywhere; }
.ci-group .pts-stamp {
  flex: none;
  padding: 8px 10px;
  border: 1px solid var(--field-green);
  border-radius: 8px;
  color: var(--field-green);
  font: italic 900 clamp(18px, 5vw, 26px)/1 var(--sports-display);
  text-transform: uppercase;
}
.g-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; font-size: 13px; }
.chat-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.chat-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.chat-status.off::before { background: var(--ink-faint); }
.g-season { padding-inline-start: 12px; border-inline-start: 1px solid var(--hair); color: var(--ink-soft); }

.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
.tab-pill {
  min-width: 0;
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--ink-soft);
  font: 500 15px/1 var(--ui);
  cursor: pointer;
}
.tab-pill[aria-selected="true"] { border-bottom-color: var(--field-green); color: var(--ink); font-weight: 750; }
.ci-group h2.sec { font-size: clamp(27px, 7vw, 36px); line-height: 1; }

.next-drop {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--field-green), #0B352C);
  color: var(--card);
}
.next-drop > span {
  display: inline-block;
  padding: 3px 9px 4px;
  background: var(--dune-sand);
  color: var(--ink);
  font: italic 900 18px/1 var(--sports-display);
  text-transform: uppercase;
}
.next-drop strong { display: block; margin-top: 8px; font-size: clamp(44px, 13vw, 70px); line-height: .95; }
.next-drop p { margin: 10px 0 0; }
.add-who { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 14px; }
.add-who > span:first-child { font-size: 22px; }
/* banners */
.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.banner p { flex: 1 1 220px; margin: 0; font-size: 14px; line-height: 1.4; }
.banner input { flex: 1 1 150px; min-height: 42px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 12px; background: var(--bg); font: 500 15px var(--ui); }
.banner .number { margin: 0; font-size: 22px; }
.buyin-banner { flex-direction: column; align-items: stretch; gap: 10px; }
.buyin-banner.locked { border-color: rgba(220, 38, 38, .25); background: var(--red-tint); }
.buyin-banner.commish-banner { border-color: rgba(71, 98, 133, .22); background: var(--blue-tint); }
.buyin-acts { align-items: center; margin-top: 2px; }

/* ---------- Today: focused step-pill hero deck (inspired by iOS card deck) ---------- */
.ci-step-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 14px;
}
.ci-step-pills {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}
.ci-step-pills::-webkit-scrollbar { display: none; }
.ci-step-pill {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 600 13px/1 var(--ui);
  box-shadow: 0 1px 4px rgba(24, 40, 66, .05);
  cursor: pointer;
  transition: all .2s cubic-bezier(.22, 1, .36, 1);
}
.ci-step-pill .ci-step-lbl { display: none; }
.ci-step-pill[aria-selected="true"] {
  padding: 0 14px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(24, 40, 66, .16);
}
.ci-step-pill[aria-selected="true"] .ci-step-lbl { display: inline; }
.ci-step-ico { font-size: 14px; line-height: 1; }
.ci-step-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: none; }
.ci-step-pill[aria-selected="true"]:not(.done) .ci-step-dot { display: inline-block; }
.ci-step-check {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.ci-step-pill[aria-selected="false"] .ci-step-check {
  position: absolute;
  top: -3px;
  right: -3px;
  border: 2px solid var(--bg);
}
.ci-step-count { font: 500 12.5px/1 var(--ui); color: var(--ink-faint); white-space: nowrap; }

.dk {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 0 -20px;
  padding: 4px 20px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.dk::-webkit-scrollbar { display: none; }
.ci-call-deck { padding: 4px 24px 12px; scroll-padding: 0 24px; }
.dk-slide {
  flex: none;
  width: calc(100% - 16px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: transform .25s ease, opacity .25s ease;
}
.ci-call-deck .dk-slide:not(.is-active) { transform: scale(.96); opacity: .7; }
.dk-slide:only-child { width: 100%; transform: none !important; opacity: 1 !important; }

.ci-hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 18px 18px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow);
  text-align: center;
}
.ci-preview-tile {
  width: 100%;
  max-width: 284px;
  padding: 14px 14px 12px;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: var(--bg);
  color: var(--ink);
  text-align: left;
  font: inherit;
  box-shadow: 0 8px 22px rgba(24, 40, 66, .06);
  cursor: pointer;
  transition: transform .16s ease;
}
.ci-preview-tile:active { transform: scale(.98); }
.ci-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font: 600 11.5px/1 var(--ui);
  color: var(--ink-soft);
}
.ci-tile-rows { display: grid; gap: 6px; }
.ci-tile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 12px;
  background: var(--card);
  font-size: 13.5px;
  font-weight: 600;
}
.ci-tile-row b { font-size: 13px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.ci-tile-row.mine { background: var(--accent); color: #fff; }
.ci-tile-row.mine b { color: #86EFAC; }
.ci-tile-more { margin: 7px 0 0; text-align: center; font-size: 11.5px; color: var(--ink-faint); font-weight: 500; }

.ci-hero-copy { margin-top: 18px; }
.ci-hero-copy h3 { font-size: 20px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.ci-hero-sub { margin: 5px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.ci-hero-meta {
  display: grid;
  gap: 7px;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-soft);
}
.ci-hero-meta li { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.ci-hero-cta { min-height: 52px; font-size: 15px; }
.ci-hero-cta.is-picked { background: var(--accent-press); }

/* fallback/coming-up calls & /calledit-swipe */
.dk-tabs { display: flex; gap: 6px; margin: 2px -20px 8px; padding: 4px 20px; overflow-x: auto; scrollbar-width: none; }
.dk-tabs::-webkit-scrollbar { display: none; }
.dk-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border: 1px solid var(--hair); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 13px/1 var(--ui); white-space: nowrap; cursor: pointer; }
.dk-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.dk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.dk-dot.live { background: var(--red); } .dk-dot.final { background: var(--ink-soft); } .dk-dot.mine { background: var(--green); }
.dk-hint { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--ink-faint); }

.call {
  margin-top: 12px;
  padding: 16px 16px 0;
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.call > .label:first-child { margin: 0; }
.call-title { font-size: 22px; margin: 6px 0 12px; }
.call-q { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; }
.call-q svg { flex: none; width: 26px; height: 26px; }
.call-q h3 { font-size: 18px; line-height: 1.2; }
.panels { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.panel { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 16px; background: var(--bg); text-align: center; }
.panel.s1 { background: var(--bg); }
.panel .faces { min-height: 32px; }
.panel small { color: var(--ink-soft); font-size: 12.5px; }
.panel-side { font-size: 14px; font-weight: 700; color: var(--ink); }
.panel-count { color: var(--ink-soft); font-size: 12px; }
.picks-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 50px;
  padding: 9px 10px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font: 600 15px/1.15 var(--ui);
  cursor: pointer;
}
.pick small { font: 500 12px/1 var(--ui); opacity: .8; }
.pick.mine { background: var(--green-tint); color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.pick[disabled] { background: var(--soft); color: var(--ink-faint); cursor: default; }
.orows { margin-top: 8px; border-top: 1px solid var(--hair); }
.orow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid var(--hair); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.orow:last-child { border-bottom: 0; }
.orow.shut { cursor: default; }
.or-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.or-who b { font-size: 15px; font-weight: 650; }
.or-who small { font-size: 12.5px; color: var(--ink-soft); }
.or-live { font-weight: 600; color: var(--ink); }
.or-live i { display: inline-block; width: 7px; height: 7px; margin: 0 5px 1px 0; border-radius: 50%; background: var(--red); vertical-align: middle; }
.or-bar { display: flex; align-items: center; gap: 7px; margin-top: 3px; }
.or-bar > span { flex: none; width: 110px; height: 4px; border-radius: 999px; background: var(--soft-2); overflow: hidden; }
.or-bar i { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.or-bar small { font: 600 11px/1 var(--ui); color: var(--ink-soft); }
.or-bar.prog i { background: var(--ink); } .or-bar.hit i { background: var(--green); } .or-bar.miss i { background: var(--ink-faint); }
.or-faces { display: flex; padding-left: 6px; }
.or-faces .face { width: 24px; height: 24px; margin-left: -6px; font-size: 10px; box-shadow: 0 0 0 2px var(--card); }
.or-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font: 700 14px/1 var(--ui);
  white-space: nowrap;
}
.or-pill small { margin-top: 2px; font: 500 10px/1 var(--ui); opacity: .75; }
.orow.mine .or-pill { background: var(--accent); color: #fff; }
.orow.shut .or-pill { color: var(--ink-faint); }
.or-pill.gone { text-decoration: line-through; opacity: .5; }
.opt-rule { margin: 10px 0 0; font-size: 13px; }
.call-foot-pad { height: 14px; }
.call-foot { display: block; width: calc(100% + 32px); margin: 12px -16px 0; padding: 12px 16px; border: 0; border-top: 1px solid var(--hair); background: none; color: var(--ink-soft); text-align: center; font-size: 13px; font-weight: 600; }
button.call-foot { cursor: pointer; }
.who { margin: 0; padding: 0 0 12px; list-style: none; }
.who li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.who li span:not(.face) { flex: 1; font-weight: 500; }
.who li span small { color: var(--ink-soft); font-weight: 400; }
.who li b { font-weight: 700; }
.who li b.up { color: var(--green); } .who li b.down { color: var(--red); }

.empty {
  margin-top: 14px;
  padding: 26px 20px;
  border: 1px solid var(--hair);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}
.empty h2 { font-size: 20px; }
.empty p { margin: 8px auto 0; max-width: 32ch; color: var(--ink-soft); font-size: 14.5px; }
.empty .btn { margin-top: 16px; }

/* ---------- live scorecards, your picks & done today ---------- */
.live-dot { color: var(--red); font-weight: 700; }
.live-dot::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 5px 1px 0; border-radius: 50%; background: var(--red); animation: ci-live 1.4s ease-in-out infinite; }
@keyframes ci-live { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-dot::before { animation: none; } }

.yp-list, .scard, .done-list {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.yp-list { overflow: hidden; }
.yp { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 13px 16px; border: 0; border-top: 1px solid var(--hair); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.yp:first-child { border-top: 0; }
.yp > .live-dot, .yp-ok, .yp-no, .yp-time { justify-self: center; font: 700 12px/1 var(--ui); }
.yp > .live-dot::before { margin: 0; width: 8px; height: 8px; }
.yp-ok { color: var(--green); font-size: 16px; } .yp-no { color: var(--red); font-size: 15px; } .yp-time { color: var(--ink-soft); font-size: 11px; white-space: nowrap; }
.yp-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.yp-what { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yp-what b { font-weight: 700; }
.yp-track { display: flex; align-items: center; gap: 8px; }
.yp-track .yp-bar { flex: 1; }
.yp-track small { font: 600 11.5px/1 var(--ui); color: var(--ink-soft); }
.yp-bar, .sc-bar { display: block; height: 5px; border-radius: 999px; background: var(--soft-2); overflow: hidden; }
.yp-bar i, .sc-bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.yp.ok .yp-bar i { background: var(--green); } .yp.no .yp-bar i { background: var(--ink-faint); }
.yp-side { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.yp-side b { font: 700 16px/1 var(--display); }
.yp-side small { font: 500 11.5px/1 var(--ui); color: var(--ink-soft); }
.yp.no .yp-side b { color: var(--ink-soft); }

.scard { padding: 16px; margin-bottom: 12px; }
.sc-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.sc-head h3 { flex: 1; min-width: 0; margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.2; }
.sc-tag { flex: none; font: 700 11.5px/1 var(--ui); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.sc-unit { flex: none; font: 600 11px/1 var(--ui); color: var(--ink-faint); text-transform: uppercase; }
.sc-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px 58px; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hair); }
.sc-name { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-val { text-align: right; font: 700 14.5px/1 var(--ui); }
.sc-val small { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.sc-name .cats { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; }
.sc-name .cats b { color: var(--green); font-weight: 700; }
.sc-row.hit .sc-bar i { background: var(--green); } .sc-row.hit .sc-val { color: var(--green); }
.sc-row.miss { color: var(--ink-soft); } .sc-row.miss .sc-bar i { background: var(--ink-faint); }
.sc-row.wait .sc-val { font: 600 12px/1 var(--ui); color: var(--ink-soft); }
.sc-row.me { margin: 0 -10px; padding: 8px 10px; border-radius: 12px; background: var(--soft); border-top-color: transparent; }
.sc-row.me .sc-name { font-weight: 700; }
.sc-one { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0 10px; font-size: 14.5px; }
.sc-one b { font: 700 18px/1 var(--display); }
.sc-ranges { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-ranges span { padding: 6px 10px; border-radius: 999px; font: 600 12.5px/1 var(--ui); color: var(--ink-soft); background: var(--soft); }
.sc-ranges .in { background: var(--accent); color: #fff; }
.sc-ranges .me { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.sc-ranges .in.me { color: #fff; background: var(--blue); box-shadow: none; }
.sc-range-choice { display: grid; align-content: start; min-width: 0; }
.sc-voters { display: block; margin-top: 3px; color: var(--ink-soft); font: 500 12px/1.3 var(--ui); overflow-wrap: anywhere; white-space: normal; }
.sc-you { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); }
.sc-you b { color: var(--ink); }
.sc-you.none { font-style: italic; }
.scard > .call-foot { margin-top: 12px; }
.scard > .call-foot:last-child { margin-bottom: -16px; }
.scard .who { padding-bottom: 0; }

.done-toggle { display: flex; align-items: center; gap: 8px; width: 100%; margin: 24px 0 10px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; }
.done-toggle span { font: 700 18px/1 var(--display); letter-spacing: -.02em; }
.done-toggle b { font: 600 12.5px/1 var(--ui); padding: 4px 9px; border-radius: 999px; background: var(--soft); color: var(--ink-soft); }
.done-toggle i { margin-left: auto; font-style: normal; font: 600 20px/1 var(--ui); color: var(--ink-soft); }
.dn { border-top: 1px solid var(--hair); } .dn:first-child { border-top: 0; }
.dn-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.dn-row:disabled { cursor: default; }
.dn .who { padding: 0 16px 12px; }
.dn-none { font: 600 12px/1 var(--ui); color: var(--ink-faint); }
.dn-q { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; }
.dn-q small { display: block; margin-top: 3px; font: 600 12px/1.25 var(--ui); color: var(--green); }
.dn-q small span { color: var(--ink-soft); font-weight: 500; }
.dn-row b { font: 700 16px/1 var(--display); } .dn-row b.up { color: var(--green); } .dn-row b.down { color: var(--red); }
.dn-board { padding: 0 16px 10px; }
.dn-board .sc-row { grid-template-columns: minmax(0, 1fr) 56px auto; }
.dn-board .sc-val { min-width: 58px; white-space: nowrap; }
.dn-unit { margin: 0 0 4px; font: 600 11px/1 var(--ui); color: var(--ink-faint); text-align: right; text-transform: uppercase; }
.dn-more { flex: none; font: 500 18px/1 var(--ui); font-style: normal; color: var(--ink-faint); }
.trk-sum { margin: 8px 0 10px; padding: 9px 12px; border-radius: 12px; background: var(--soft); color: var(--ink); font-size: 13.5px; }

/* ---------- standings, pot card, paid league & creator rewards ---------- */
.pot {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--hair);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.pot-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pot-hero { display: grid; gap: 3px; }
.pot-hero b { font: 700 38px/1 var(--display); letter-spacing: -.04em; color: var(--ink); }
.pot-sub { font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }
.pot-rows { display: grid; gap: 6px; }
.pot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border-radius: 14px; background: var(--bg); font-size: 13px; color: var(--ink-soft); }
.pot-row b { font-size: 13px; font-weight: 600; color: var(--ink); text-align: right; }

.board {
  margin: 0;
  padding: 4px 16px;
  list-style: none;
  border: 1px solid var(--hair);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.board li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.board li:last-child { border-bottom: 0; }
.board .rank { flex: none; width: 22px; font: 700 15px/1 var(--ui); color: var(--ink-faint); text-align: center; }
.board li:first-child .rank { color: var(--ink); }
.board .nm { flex: 1; min-width: 0; font: 600 16px/1.2 var(--ui); }
.board .nm small { display: block; margin-top: 2px; }
.board .sc { flex: none; font: 700 19px/1 var(--display); text-align: right; }
.board .sc small { display: block; margin-top: 3px; font: 500 11.5px/1 var(--ui); color: var(--ink-soft); white-space: nowrap; }
.board li.out .nm, .board li.out .sc { opacity: .55; }
.up { color: var(--green); }
.down { color: var(--red); }

.nm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.ci-pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font: 600 11.5px/1.1 var(--ui); white-space: nowrap; }
.ci-pill.paid { background: var(--green-tint); color: var(--green); }
.ci-pill.free { background: var(--blue-tint); color: var(--blue); }
.ci-pill.pending { background: var(--amber-tint); color: var(--amber); }
.ci-pill.unpaid { background: var(--red-tint); color: var(--red); }

.ci-mark {
  padding: 4px 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: 600 11.5px/1.1 var(--ui);
  cursor: pointer;
}
.ci-mark.on { background: var(--green); border-color: var(--green); color: #fff; }
.ci-mark:disabled { opacity: .45; cursor: default; }

.cr-card {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--hair);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.cr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cr-head h3 { margin-top: 3px; font-size: 20px; font-weight: 700; }
.cr-bar { height: 7px; margin: 14px 0 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.cr-bar b { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .3s ease; }
.cr-next { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.cr-next b { color: var(--ink); }
.cr-sub { margin: 6px 0 0; font-size: 13px; color: var(--blue); }
.cr-tiers { margin: 14px 0 16px; padding: 0; list-style: none; }
.cr-tiers li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hair); opacity: .62; }
.cr-tiers li.unlocked { opacity: 1; }
.cr-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); font-size: 16px; flex: none; }
.cr-meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cr-meta b { font: 600 14.5px/1.2 var(--ui); }
.cr-meta small { color: var(--ink-soft); font-size: 12.5px; }
.cr-claim { min-height: 34px; padding: 0 14px; font-size: 13px; }
.cr-need { color: var(--ink-faint); white-space: nowrap; font-size: 12px; font-weight: 600; }

.past { margin: 0; padding: 4px 16px; list-style: none; border: 1px solid var(--hair); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.past li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.past li:last-child { border-bottom: 0; }
.past li span:last-child { font-weight: 600; text-align: right; }
.past-r { display: grid; justify-items: end; gap: 4px; }
.past-copy { font-size: 12px; }

.result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.result .ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--soft); }
.result .ico svg { width: 22px; height: 22px; display: block; }
.result-main { flex: 1; min-width: 0; }
.result-main b { display: block; font: 600 15px/1.25 var(--ui); }
.result-main small { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 13px; }

.ci-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 16px; background: var(--bg); cursor: pointer; }
.ci-check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.ci-check span { display: grid; gap: 2px; }
.ci-check b { font: 600 14.5px/1.2 var(--ui); }
.ci-check small { color: var(--ink-soft); font-size: 12.5px; line-height: 1.35; }
.ci-sub { margin-top: 10px; }
.ci-sub > .label { display: block; margin-bottom: 6px; }

/* ---------- floating inset bottom sheets (exact iOS reference geometry) ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(24, 40, 66, .24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sheet {
  width: 100%;
  max-width: 436px;
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: 12px 20px 20px;
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: rise .28s cubic-bezier(.22, 1, .36, 1); }
  @keyframes rise { from { transform: translateY(28px) scale(.98); opacity: 0; } }
}
.grabber { width: 38px; height: 4px; margin: 0 auto 12px; border-radius: 999px; background: rgba(24, 40, 66, .14); }
.sheet h2 { font-size: 21px; font-weight: 700; text-align: left; padding-bottom: 10px; }
.sheet [hidden] { display: none !important; }
.sheet .ci-error { text-align: center; }
.sheet-alt { display: block; margin: 12px auto 0; }

.ci-sheet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.ci-sheet-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font: 600 13.5px/1 var(--ui);
}
button.ci-sheet-chip { cursor: pointer; }
button.ci-sheet-chip:active { background: var(--soft-2); }
.ci-sheet-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font: 500 21px/1 var(--ui);
  cursor: pointer;
}
.ci-sheet-close:active { background: var(--soft-2); }

.ci-choice-sheet h2 { margin: 0 0 14px; padding: 0; font-size: 20px; line-height: 1.25; text-align: center; }
.ci-choice-list { display: grid; gap: 6px; }
.ci-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: 500 15px/1.3 var(--ui);
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.ci-choice:hover:not(:disabled), .ci-choice.is-selected { background: var(--soft); }
.ci-choice:active:not(:disabled) { transform: scale(.985); background: var(--soft-2); }
.ci-choice strong { display: block; font-weight: 650; font-size: 16px; }
.ci-choice small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 13px; }
.ci-choice-win { flex: none; font: 700 14px/1 var(--ui); color: var(--blue); }
.ci-choice.is-selected .ci-choice-win { color: var(--green); }
.ci-choice:disabled { opacity: .45; cursor: default; }

.sheet-call { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--bg); }
.sheet-call svg { flex: none; width: 28px; height: 28px; }
.sheet-call b { display: block; font: 700 16.5px/1.2 var(--display); }
.sheet-call small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 13px; }
.stake-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.stake-box { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--hair); border-radius: 14px; background: var(--bg); }
.stake-box input { width: 3.4ch; border: 0; background: none; color: var(--ink); font: 700 22px/1 var(--display); text-align: right; padding: 0; }
.stake-box input:focus { outline: none; }
.stake-box span { font: 600 15px/1 var(--ui); color: var(--ink-soft); }
.pcts { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 6px; margin-top: 10px; }
.pcts button { min-height: 38px; padding: 0 8px; border: 1px solid var(--hair); border-radius: 999px; background: var(--bg); color: var(--ink); font: 600 13.5px/1 var(--ui); cursor: pointer; }
.pcts button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sheet-note { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--ink-soft); }
.outcome { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 16px; text-align: center; }
.outcome > div { padding: 12px 10px; border-radius: 16px; background: var(--bg); }
.outcome b { display: block; margin-top: 4px; font: 700 22px/1 var(--display); }
.ci-confirm { min-height: 52px; font-size: 15px; }

.menu-list { margin: 0; padding: 0; list-style: none; }
.menu-list li { border-top: 1px solid var(--hair); }
.menu-list li:first-child { border-top: 0; }
.menu-list a, .menu-list button {
  display: block;
  width: 100%;
  padding: 14px 4px;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font: 600 16px/1.2 var(--ui);
  cursor: pointer;
}
.menu-list small { display: block; margin-top: 3px; color: var(--ink-soft); font: 400 13px var(--ui); }

/* ---------- bonus call builder & GIF reel ---------- */
.add-call { margin-top: 16px; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 20px; }
.add-call small { display: block; font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }
.add-search { width: 100%; margin: 12px 0 6px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 14px; font: inherit; background: var(--bg); color: var(--ink); }
.add-game { margin-top: 14px; }
.add-game h3 { margin: 0 0 6px; font-size: 15px; }
.add-player { border-top: 1px solid var(--hair); }
.add-player summary { padding: 11px 2px; font-weight: 600; cursor: pointer; }
.add-bet { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 0 6px; border: 1px solid var(--hair); border-radius: 14px; background: var(--bg); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.add-bet small { white-space: nowrap; color: var(--ink-soft); }
.add-bet[disabled] { opacity: .4; cursor: default; }
.b-modes { display: flex; gap: 6px; margin: 4px 0 12px; }
.b-modes button { flex: 1; padding: 9px 8px; border: 1px solid var(--hair); border-radius: 999px; background: var(--bg); color: var(--ink); font: 600 13.5px var(--ui); cursor: pointer; }
.b-modes button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.b-back { border: 0; background: none; padding: 4px 0; color: var(--ink-soft); font: 600 14px var(--ui); cursor: pointer; }
.b-step { margin: 8px 0; }
.b-cards, .b-list { display: grid; gap: 8px; }
.b-cards button, .b-list button { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; width: 100%; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 16px; background: var(--bg); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.b-cards button b, .b-list button b { font-size: 15.5px; }
.b-cards button small, .b-list button small { grid-column: 1; color: var(--ink-soft); font-size: 13px; }
.b-list button em { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.b-list button[hidden] { display: none; }
.b-pick button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.b-pick button[aria-pressed="true"] small, .b-pick button[aria-pressed="true"] em { color: rgba(255, 255, 255, .75); }
.b-cards button[disabled] { opacity: .45; cursor: default; }
.b-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.b-chips button { padding: 8px 14px; border: 1px solid var(--hair); border-radius: 999px; background: var(--bg); color: var(--ink); font: 600 13.5px var(--ui); cursor: pointer; }
.b-step-num { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 10px; margin: 10px 0 14px; text-align: center; }
.b-step-num .btn { min-height: 48px; padding: 0; font-size: 22px; }
.b-step-num b { display: block; font-size: 20px; }
.b-step-num small { color: var(--ink-soft); font-size: 13px; }
.b-preview { margin: 8px 0 14px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 16px; background: var(--bg); }
.b-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 10px; }
.b-or { margin-top: 16px; }
.b-ranges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.b-ranges span { display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border-radius: 12px; background: var(--soft); }
.b-ranges b { font: 700 13px/1 var(--ui); }
.b-ranges small { font: 600 11px/1 var(--ui); color: var(--ink-soft); }
.b-list em.down { color: var(--red); }
.b-choose button small { white-space: normal; }
.ck-icon { font-size: 28px; line-height: 1; }
.callout select, .note-field input { width: 100%; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 14px; font: inherit; background: var(--bg); color: var(--ink); }
.note-field { margin-top: 10px; }
.gif-call { margin: 2px 0 6px; font-weight: 700; font-size: 17px; }
.loot-title { margin: 16px 0 10px; text-align: center; font-size: 22px; }
.loot-reel { position: relative; height: 112px; margin: 0 -20px; overflow: hidden; background: var(--ink); }
.loot-strip { position: relative; left: 50%; display: flex; width: max-content; height: 100%; will-change: transform; }
.loot-strip img { flex: none; width: 104px; height: 96px; margin: 8px 4px; object-fit: cover; border-radius: 12px; background: var(--accent-press); }
.loot-pin { position: absolute; top: 0; bottom: 0; left: 50%; width: 112px; margin-left: -56px; border: 3px solid #fff; border-radius: 14px; box-shadow: 0 0 0 200px rgba(24, 40, 66, .45); pointer-events: none; }
.loot-prize { margin: 14px auto 0; min-height: 160px; }
.loot-prize img { display: block; max-width: 100%; max-height: 200px; margin: 0 auto; border-radius: 18px; box-shadow: var(--shadow); }
.loot-acts { margin-top: 14px; }
.loot-more { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.gif-find { display: flex; gap: 8px; margin: 12px 0; }
.gif-find input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--hair); border-radius: 999px; font: inherit; background: var(--bg); color: var(--ink); }
.gif-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 42vh; overflow: auto; }
.gif-grid .ci-note { grid-column: 1 / -1; }
.gif-grid button { padding: 0; border: 2px solid transparent; border-radius: 14px; background: none; aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.gif-grid button:hover, .gif-grid button:focus-visible { border-color: var(--accent); }
.gif-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gif-by { font-size: 11px; text-align: right; margin: 6px 0 0; color: var(--ink-faint); }
.linkish { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--ink-soft); text-decoration: underline; font: 500 14px var(--ui); cursor: pointer; }

.menu-list .ci-account-group { display: flex; align-items: center; gap: 8px; }
.ci-account-group a { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ci-account-group button[data-leave-index] { width: auto; min-height: 44px; padding: 8px 12px; color: var(--red); }

.ci-group-menu { margin: 0 -2px; }
.ci-menu-section + .ci-menu-section { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hair); }
.sheet .ci-menu-section h3 {
  margin: 0 0 2px;
  padding: 0 4px;
  color: var(--ink-soft);
  font: 650 13px/1.35 var(--ui);
  overflow-wrap: anywhere;
}
.ci-menu-section .menu-list li { border-top: 0; }
.ci-menu-section .menu-list a, .ci-menu-section .menu-list button { min-height: 44px; padding: 8px 4px; }
.ci-menu-section .menu-list a { display: flex; align-items: center; }
.ci-menu-section .menu-list .ci-menu-value { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ci-menu-value small { margin: 0; white-space: nowrap; }

/* Group identity and quote cards */
body.ci-group { --field-green: #191817; }
body:is(.ci-group, .ci-landing, .ci-setup-route) {
  --ink: #191817;
  --ink-soft: #504943;
}
.ci a.ci-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  text-decoration: none;
  font: 850 29px/1 var(--ui);
  letter-spacing: -.065em;
}
.ci-quote { display: block; color: var(--quote-orange); font: 900 48px/.67 Georgia, serif; }
.ci-wordmark .ci-quote { font-size: 40px; align-self: end; }
.ci-group .ci-menu { background: transparent; border-color: transparent; box-shadow: none; }
.ci-landing .hero h1, .ci-setup-route .setup h1,
.ci-group .g-title h1, .ci-group h2.sec, .ci-group .pts-stamp, .ci-group .next-drop strong {
  font-family: var(--ui);
  font-style: normal;
  text-transform: none;
  letter-spacing: -.045em;
}
.ci-group .g-title h1 { font-size: clamp(26px, 7vw, 38px); line-height: 1.05; font-weight: 850; }
.ci-group h2.sec { font-size: clamp(22px, 6vw, 29px); line-height: 1.1; }
.ci-group .pts-stamp { font-size: 14px; letter-spacing: 0; }
.ci-group .next-drop { background: var(--field-green); }
.ci-group .next-drop strong { font-size: clamp(32px, 9vw, 46px); }
.ci-group .next-drop > span { background: var(--quote-orange); font: 750 13px/1 var(--ui); }
.ci-group .ci-hero-card { align-items: stretch; text-align: left; border-radius: 18px; background: var(--field-green); color: var(--card); }
.ci-group .ci-hero-copy { margin-top: 4px; }
.ci-group .ci-hero-copy h3 { font-size: clamp(23px, 6.5vw, 32px); line-height: 1.06; font-weight: 800; }
.ci-group .ci-hero-sub { color: #F1DCC8; margin: 0 0 6px; }
.ci-group .ci-hero-meta { gap: 4px; margin: 10px 0 14px; color: #F4E8DD; }
.ci-group .ci-hero-meta li { justify-content: flex-start; }
.ci-group .ci-preview-tile { max-width: none; border-radius: 12px; box-shadow: none; }
.ci-agree { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ci-agree .btn { min-height: 44px; padding: 0 8px; border: 1px solid var(--card); background: transparent; }
.ci-group .ci-confirm { background: var(--quote-orange); color: #191817 !important; }
.ci-group .sheet-call .ci-quote { font-size: 36px; }
.ci-result-feature { padding: 20px; border-radius: 18px; background: var(--quote-orange); color: #191817; margin-bottom: 12px; }
.ci-result-feature .ci-quote { color: inherit; }
.ci-result-feature h3 { font-size: clamp(24px, 7vw, 34px); font-weight: 850; }
.ci-result-feature p { margin: 6px 0 12px; }
.ci-result-score { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 0; border-top: 1px solid currentColor; }
.ci-result-score strong { font-size: 26px; letter-spacing: -.05em; }
.ci-result-feature small { display: block; }
.ci-result-feature .btn { background: #191817; margin-top: 12px; }
.ci-remaining { display: flex; justify-content: space-between; gap: 8px; margin: 10px 0; padding-top: 10px; border-top: 1px solid var(--hair); font-size: 13px; }


/* Solid cream canvas for landing, setup, and signed-in groups. */
body:is(.ci-landing, .ci-setup-route, .ci-group) {
  background: #F7F3EC;
}
body:is(.ci-landing, .ci-setup-route) {
  --bg: #F7F3EC;
  --card: #FFFCF6;
  --soft: #EEE8DE;
  --soft-2: #E5DDD1;
  --accent: var(--ink);
  --accent-press: #35302D;
  --blue: #623018;
  --blue-deep: #482314;
  --blue-tint: #F8E3D4;
}
.ci-landing .hero h1, .ci-setup-route .setup h1 {
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 850;
  line-height: 1.06;
  text-wrap: balance;
}
:is(.ci-landing, .ci-setup-route) :is(.hero, .setup) .btn.wide:not(.ghost) {
  background: var(--quote-orange);
  color: var(--ink) !important;
}
:is(.ci-landing, .ci-setup-route) :is(.hero, .setup) .btn.wide:not(.ghost):active {
  background: #EB5417;
}


.today-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin: 26px 0 12px; }
.ci-group .today-heading h2.sec { margin: 0; }
.today-points { display: grid; gap: 2px; font-size: 14px; }
.today-points small { color: var(--ink-soft); }
@media (min-width: 360px) { .today-points { text-align: right; } }

.pilot-share { margin-top: 16px; padding: 14px; border: 1px solid var(--hair); border-radius: 16px; background: var(--card); }
.ci .pilot-share h3 { font-size: 16px; }
.pilot-share-row, .pilot-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pilot-call .pilot-actions [aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.ci-player-name { padding: 5px 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: underline; text-decoration-color: var(--ink-faint); text-underline-offset: 3px; overflow-wrap: anywhere; cursor: pointer; }
.ci-player-card { position: relative; padding: 22px; border-radius: 18px; background: #191817; color: #fff9f0; }
.ci-player-card .ci-sheet-close { position: absolute; top: 12px; right: 12px; }
.ci .ci-player-card h2 { margin: 8px 34px 16px 0; font-size: 25px; overflow-wrap: anywhere; }
.ci-player-score { display: grid; gap: 3px; color: var(--quote-orange); }
.ci-player-score strong { font: 850 clamp(56px, 18vw, 92px)/.95 var(--ui); letter-spacing: -.07em; }
.ci-player-score span { font-size: 20px; font-weight: 750; }
.ci-player-card p { font-size: 13px; }
.ci-player-groups { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid #6d625b; margin-top: 16px; padding-top: 12px; }
.ci-player-groups strong { color: var(--quote-orange); }

.ci-notice-bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-inline-start: auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.ci-notice-bell small { position: absolute; top: 2px; right: 0; min-width: 17px; padding: 2px 4px; border-radius: 999px; background: var(--quote-orange); color: #191817; font: 750 10px/1 var(--ui); }
.ci-notice-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ci .ci-notice-head h2 { padding-bottom: 0; }
.ci-notice-list { list-style: none; margin: 10px 0 0; padding: 0; }
.ci-notice-list li + li { border-top: 1px solid var(--hair); }
.ci-notice-list button { display: grid; gap: 3px; width: 100%; min-height: 44px; padding: 10px 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ci-notice-list button > span { color: var(--ink-soft); font-size: 14px; }
.ci-notice-dot { display: inline-block; width: 7px; height: 7px; margin-inline-start: 6px; border-radius: 50%; background: var(--quote-orange); vertical-align: middle; }

.ci-matchup-card { padding: 15px 17px; margin-top: 12px; border-radius: 17px; background: #191817; color: #fff9f0; }
.ci-matchup-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ci .ci-matchup-head h3 { font-size: clamp(20px, 5.7vw, 27px); font-weight: 850; }
.ci-matchup-head button { flex: none; min-height: 44px; padding: 0 8px; border: 1px solid #77706a; border-radius: 9px; background: transparent; color: inherit; font: 650 13px var(--ui); cursor: pointer; }
.ci-matchup-score { display: flex; flex-wrap: wrap; gap: 1px; margin: 12px 0 0; padding: 0; list-style: none; border-radius: 10px; overflow: hidden; }
.ci-matchup-score li { display: grid; flex: 1 1 85px; gap: 4px; padding: 9px; background: #2c2825; text-align: center; overflow-wrap: anywhere; }
.ci-matchup-score li strong { color: var(--quote-orange); font-size: clamp(28px, 8vw, 42px); line-height: 1; }
.ci-matchup-score li small { color: #eed3bf; }
.ci-matchup-card p { margin: 10px 0 0; font-size: 13px; }
.ci-matchup-list .ci-matchup-card:first-child { margin-top: 0; }
.ci-matchup-done { margin-top: 14px; }

.ci-matchup-score .ci-player-name { color: inherit; text-decoration-color: #eed3bf; }

.ci-player-h2h { margin-top: 16px; padding-top: 12px; border-top: 1px solid #6d625b; }
.ci .ci-player-h2h h3 { font-size: 15px; }
.ci-player-record { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 9px 0 0; }
.ci-player-record > div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 7px; border-radius: 8px; background: #2c2825; text-align: center; }
.ci-player-record dt { font-size: 12px; }
.ci-player-record dd { margin: 0; color: var(--quote-orange); font-size: 22px; font-weight: 800; }
