/* Over Under page (the shared look is styles.css and board.css). Owner defaults (D-732, M-495): cyan band, green ▲ Over /
   red ▼ Under, a small flash when a pick is sent, a sticky Send bar on phones, dark mode the same colours a bit darker.
   Every colour is a variable below, so a taste change is one line. */
.ou {
  --ou-band: linear-gradient(135deg, #3CCBF0 0%, #4CC9FF 55%, #7FB2FF 100%);
  --ou-band-ink: #0B2530;
  --ou-accent: #3CCBF0;
  --ou-over: #12704F;  --ou-over-soft: #DDF1E6;
  --ou-under: #A63A27; --ou-under-soft: #F8E2DA;
  --ou-pill: #FBE9C8;  --ou-pill-ink: #5A3B00;
  --ou-hot: #A63A27;   --ou-hot-ink: #FFFFFF;
  --ou-flash: #3CCBF0;
  --ou-picked-ink: #FFFFFF;                          /* text on a picked Over/Under button (R3-17 F-1) */
  --ou-chip-bg: rgba(255, 255, 255, .55); --ou-tag-bg: rgba(255, 255, 255, .75);
  --ou-step-num-ink: #FFFFFF;
  --ou-bar-shadow: 0 -8px 20px -14px rgba(20, 22, 31, .45);
  --ou-tabbar-h: 66px;                               /* the bottom menu's height on phones (R3-17 F-3) */
  max-width: 760px; margin: 0 auto; padding: 16px 14px 96px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ou {
    --ou-band: linear-gradient(135deg, #1FA6C9 0%, #2C9FD9 55%, #5C8FE0 100%);
    --ou-over: #3FAF7F; --ou-over-soft: #173528; --ou-under: #E5846F; --ou-under-soft: #3B231D; --ou-picked-ink: #111216;
    --ou-pill: #4A3A12; --ou-pill-ink: #FBE9C8; --ou-hot: #D9705A; --ou-hot-ink: #111216; --ou-accent: #1FA6C9;
  }
}
:root[data-theme="dark"] .ou {
  --ou-band: linear-gradient(135deg, #1FA6C9 0%, #2C9FD9 55%, #5C8FE0 100%);
  --ou-over: #3FAF7F; --ou-over-soft: #173528; --ou-under: #E5846F; --ou-under-soft: #3B231D; --ou-picked-ink: #111216;
  --ou-pill: #4A3A12; --ou-pill-ink: #FBE9C8; --ou-hot: #D9705A; --ou-hot-ink: #111216; --ou-accent: #1FA6C9;
}

/* ── the header band, the one box (D-730), the three steps ── */
.ou-hero { background: var(--ou-band); color: var(--ou-band-ink); border-radius: var(--r-lg, 20px); padding: 18px 16px 16px; margin: 4px 0 12px; }
.ou-hero a { color: var(--ou-band-ink); font-weight: 700; }
.ou-kicker { margin: 0; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; opacity: .8; }
.ou-hero h1 { margin: 4px 0 10px; font-size: clamp(30px, 8vw, 44px); line-height: 1.05; font-weight: 800; }
.ou-tag { display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--ou-tag-bg); color: var(--ou-band-ink); }
.ou-links { margin: 0; font-size: 14px; }
.ou-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 0; }
.ou-steps li { display: flex; align-items: center; gap: 6px; background: var(--ou-chip-bg); border-radius: 999px; padding: 5px 10px 5px 5px; font-size: 13px; font-weight: 600; }
.ou-steps b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ou-band-ink); color: var(--ou-step-num-ink); font-size: 12px; }

/* ── status strip ── */
.ou-strip { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--r-sm, 10px); background: var(--ou-pill); color: var(--ou-pill-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── game cards ── */
.ou-sheet h2 { margin: 6px 0 2px; }
.ou-games { display: grid; gap: 12px; margin: 10px 0; }
.ou-g { background: var(--surface, #fff); border: 1px solid var(--line, #E2E4EA); border-top: 4px solid var(--ou-accent); border-radius: var(--r-md, 14px); padding: 10px 12px 12px; box-shadow: var(--shadow, none); transition: box-shadow .2s ease; }
.ou-g.on { box-shadow: 0 0 0 2px var(--ou-accent), var(--shadow, none); }
.ou-g-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.ou-g-when { color: var(--muted, #4B4766); font-weight: 600; }
.ou-g-lock { padding: 3px 9px; border-radius: 999px; background: var(--ou-pill); color: var(--ou-pill-ink); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ou-g-lock.hot { background: var(--ou-hot); color: var(--ou-hot-ink); }
.ou-g-who { margin: 8px 0 2px; font-size: 18px; }
.ou-form { color: var(--muted, #4B4766); font-size: 14px; }
.ou-g-line { margin: 4px 0; color: var(--muted, #4B4766); }
.ou-g-line .ou-num { display: block; color: var(--ink, #15122B); font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ou-g-line .ou-num small { font-size: 15px; font-weight: 700; color: var(--muted, #4B4766); }

/* ── Over / Under ── */
.ou-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 2px; }
.ou-btns button { min-height: 52px; border-radius: 12px; border: 2px solid currentColor; background: transparent; font: 800 17px/1.1 var(--body, system-ui); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: transform .1s ease, background-color .15s ease, opacity .15s ease; }
.ou-btns button span { font-size: 12px; font-weight: 600; }
.ou-btns button.ou-o { color: var(--ou-over); background: var(--ou-over-soft); }
.ou-btns button.ou-u { color: var(--ou-under); background: var(--ou-under-soft); }
.ou-btns button:active { transform: translateY(1px); }
.ou-btns button[aria-pressed="true"].ou-o { background: var(--ou-over); border-color: var(--ou-over); color: var(--ou-picked-ink); }
.ou-btns button[aria-pressed="true"].ou-u { background: var(--ou-under); border-color: var(--ou-under); color: var(--ou-picked-ink); }
.ou-btns:has(button[aria-pressed="true"]) button[aria-pressed="false"] { opacity: .45; }
.ou-btns button[disabled] { cursor: default; }
.ou-btns button[disabled][aria-pressed="false"] { opacity: .45; }

/* the small flash when a pick is sent (owner default); none for people who ask for less motion */
@keyframes ou-flash { 0% { box-shadow: 0 0 0 0 var(--ou-flash); } 50% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ou-g.sent { animation: ou-flash .9s ease-out 2; }
@media (prefers-reduced-motion: reduce) { .ou-g.sent { animation: none; } .ou-btns button { transition: none; } }

.ou-none { padding: 6px 0; color: var(--muted, #4B4766); }
.ou-check { min-height: 1.4em; margin: 10px 0 6px; }
.ou-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.ou-actions .btn { min-height: 48px; padding: 12px 22px; font-size: 1rem; }
/* phones: the Send bar sticks to the bottom once a pick is chosen (owner default) */
@media (max-width: 720px) {
  .ou-actions.ready { position: fixed; left: 0; right: 0; bottom: calc(var(--ou-tabbar-h) + env(safe-area-inset-bottom, 0px)); z-index: 5; margin: 0; padding: 10px 14px; background: var(--surface, #fff); box-shadow: var(--ou-bar-shadow); }
  main { padding-bottom: calc(var(--ou-tabbar-h) + 84px); }
  .ou-actions.ready .btn { flex: 1; }
}
.ou-small { font-size: 12px; color: var(--muted, #4B4766); margin: 4px 0; }
.ou-pop { border: 1px solid var(--line, #E2E4EA); border-radius: var(--r-md, 14px); padding: 10px 12px; margin: 10px 0; background: var(--surface, #fff); }
.ou-pop h3 { margin: 0 0 6px; }
.ou-board { margin-top: 28px; }
.ou-help { margin-top: 24px; }
.ou-help summary { cursor: pointer; font-weight: 700; }

/* D-1094 card mode (page-only): one card at a time, progress dots, a calm enter (none with reduced motion) */
.ou-progress { margin: 0 0 4px; font-weight: 700; color: var(--muted, #4B4766); font-size: 14px; }
.ou-dots { display: flex; gap: 6px; margin: 0 0 10px; }
.ou-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line, #E2E4EA); }
.ou-dots i.on { background: var(--ou-accent); }
.ou-skip { margin: 8px 0 0; text-align: center; }
.ou-done { background: var(--surface, #fff); border: 1px solid var(--line, #E2E4EA); border-radius: var(--r-md, 14px); padding: 16px; text-align: center; }
.ou-done h3 { margin: 0 0 4px; }
.ou-answers { margin-top: 12px; }
.ou-answers ul { list-style: none; padding: 0; margin: 6px 0 0; }
.ou-answers li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line, #E2E4EA); }
@keyframes ou-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.ou-enter { animation: ou-in .22s ease-out; }
@media (prefers-reduced-motion: reduce) { .ou-enter { animation: none; } }
