/* OA Replica — faithful shells for the real 2026/27 OA games.
   Skins: .oar--bto  (light-grey page, white cards, purple SUBMIT — Beat The
   Odds / Number Logic) · .oar--pale (pale ice-blue page, slate-teal pills —
   Intervals / Likelihood List). */

.oar { min-height: 72vh; padding: 18px 12px 48px; }
.oar--bto  { background: #f0f0f0; color: #2b2b2b; }
.oar--pale { background: #edf3fb; color: #1f3a52; }
[data-theme="dark"] .oar--bto  { background: #17181c; color: #e6e6e6; }
[data-theme="dark"] .oar--pale { background: #131b26; color: #dbe6f2; }

.oar-err { max-width: 560px; margin: 60px auto; text-align: center; }

/* ---- welcome ---- */
.oar-welcome { max-width: 760px; margin: 0 auto; }
.oar-welcome__game { font-size: 30px; font-weight: 300; letter-spacing: .01em; opacity: .85; margin: 8px 2px 14px; }
.oar-welcome__card { background: #fff; border-radius: 14px; padding: 30px 34px; box-shadow: 0 2px 14px rgba(20,40,80,.08); }
[data-theme="dark"] .oar-welcome__card { background: #1d2430; }
.oar-welcome__title { font-size: 24px; margin: 0 0 14px; font-weight: 700; }
.oar-welcome__body { font-size: 14.5px; line-height: 1.65; }
.oar-welcome__body h3 { font-size: 15px; margin: 18px 0 6px; }
.oar-welcome__body ul { padding-left: 20px; }
.oar-welcome__body li { margin: 4px 0; }
.oar-welcome__cta { margin-top: 22px; text-align: right; }
.oar-replica-note { font-size: 12px; opacity: .65; margin-top: 14px; text-align: center; }

/* ---- buttons ---- */
.oar-btn { border: none; cursor: pointer; font-weight: 600; font-size: 13.5px; border-radius: 8px; padding: 10px 22px; transition: filter .12s ease, transform .12s ease; }
.oar-btn:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.oar-btn:disabled { opacity: .45; cursor: default; }
.oar-btn--teal { background: #2e6e73; color: #fff; }
.oar-btn--submit { background: #b565c4; color: #fff; text-transform: uppercase; letter-spacing: .05em; }
.oar-btn--primary { background: #40657f; color: #fff; }
.oar-btn--ghost { background: transparent; color: inherit; border: 1px solid rgba(120,140,160,.5); }
.oar-btn--pill { border-radius: 999px; padding: 10px 26px; }
.oar-chip { border: 1px solid rgba(120,140,160,.5); background: rgba(255,255,255,.7); border-radius: 999px; padding: 7px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: inherit; }
[data-theme="dark"] .oar-chip { background: rgba(255,255,255,.06); }
.oar-chip:disabled { opacity: .4; cursor: default; }

/* ---- question shell ---- */
.oar-examplelabel { max-width: 900px; margin: 0 auto 4px; font-size: 13px; font-weight: 700; opacity: .75; }
.oar-shell { max-width: 900px; margin: 0 auto; }
.oar-shell--dim { filter: blur(1.5px) brightness(.92); pointer-events: none; }
.oar-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 8px 4px; border-bottom: 1px solid rgba(120,140,160,.3); margin-bottom: 16px; }
.oar-head__timer b { font-variant-numeric: tabular-nums; }
.oar-head__timer { display: inline-flex; align-items: center; gap: 8px; }
.oar-timebar { width: 180px; height: 8px; border-radius: 999px; background: rgba(120,150,185,.25); overflow: hidden; display: inline-block; }
.oar-timebar i { display: block; height: 100%; width: 0%; background: #3a5670; border-radius: 999px; transition: width 1s linear; }
.oar-head__timer b.is-low { color: #d33; }
.oar-qcard { background: #fff; border-radius: 14px; padding: 26px 30px; box-shadow: 0 2px 14px rgba(20,40,80,.07); }
[data-theme="dark"] .oar-qcard { background: #1d2430; }
.oar-qcard--center { text-align: center; }
.oar-qtext { font-size: 15px; line-height: 1.6; }
.oar-qtext--post { margin-top: 10px; }
.oar-closest { font-size: 12.5px; opacity: .7; margin: 10px 0 2px; }

/* figures */
.oar-figure { position: relative; margin: 16px auto; background: #fff; border: 1px solid rgba(120,140,160,.25); border-radius: 12px; padding: 14px; max-width: 640px; overflow-x: auto; text-align: center; }
[data-theme="dark"] .oar-figure { background: #222b38; }
.oar-figure svg { max-width: 100%; height: auto; }
.oar-figure table { margin: 0 auto; border-collapse: collapse; font-size: 13px; }
.oar-figure th { font-weight: 700; padding: 4px 10px; }
.oar-figure td { padding: 4px 10px; }
.oar-figure .neg { color: #c22; }
.oar-figure .pronumeral { font-weight: 800; }
.oar-figure__zoom { position: absolute; bottom: 8px; right: 8px; border: none; background: rgba(240,244,250,.9); border-radius: 8px; padding: 4px 7px; cursor: pointer; font-size: 13px; }
.oar-figure--review { margin: 10px 0; }
.oar-zoombox { position: fixed; inset: 0; background: rgba(22,35,63,.92); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 26px; }
.oar-zoombox[hidden] { display: none; }
.oar-zoombox__panel { background: #fff; border-radius: 14px; padding: 22px; width: min(1100px, 94vw); max-height: 90vh; overflow: auto; }
.oar-zoombox__panel svg { width: 100%; min-width: 700px; height: auto; }
.oar-zoombox__panel table { margin: 0 auto; font-size: 15px; }
.oar-zoombox__close { position: absolute; top: 14px; right: 20px; border: none; background: none; color: #fff; font-size: 30px; cursor: pointer; }

/* ---- mcq6 (BTO) ---- */
.oar-optgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.oar-opt { background: #fff; border: 1.5px solid rgba(120,140,160,.35); border-radius: 8px; min-height: 58px; font-size: 15px; font-weight: 600; cursor: pointer; color: inherit; box-shadow: 0 1px 3px rgba(20,40,80,.06); }
[data-theme="dark"] .oar-opt { background: #26303f; }
.oar-opt:hover { border-color: rgba(80,110,150,.7); }
.oar-opt.is-sel { border-color: #3b5bdb; border-width: 2.5px; }
.oar-opt--skip { font-weight: 500; opacity: .85; }
.oar-actions { margin-top: 18px; display: flex; gap: 10px; }
.oar-actions--right { justify-content: flex-end; }
.oar-actions--between { justify-content: space-between; }

/* ---- mcqCards (Number Logic) ---- */
.oar-cardrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px; }
.oar-card { background: #fff; border: 1.5px solid rgba(120,140,160,.35); border-radius: 10px; min-height: 64px; font-size: 16px; font-weight: 700; cursor: pointer; color: inherit; box-shadow: 0 1px 4px rgba(20,40,80,.07); }
[data-theme="dark"] .oar-card { background: #26303f; }
.oar-card:hover { border-color: #2e6e73; }
.oar-card.is-sel { border-color: #2e6e73; border-width: 2.5px; background: rgba(46,110,115,.07); }
.oar-card p { margin: 0; }

/* sequence strip (figure for number logic) */
.oar-seqstrip { font-size: 22px; font-weight: 700; letter-spacing: .06em; padding: 12px 6px; font-variant-numeric: tabular-nums; }
.oar-seqstrip sup { font-size: .6em; }
.oar-seqstrip .frac { display: inline-flex; flex-direction: column; vertical-align: middle; font-size: .72em; line-height: 1.05; margin: 0 2px; }
.oar-seqstrip .frac span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 3px; }

/* ---- interval ---- */
.oar-intervalrow { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 18px; margin-top: 22px; }
.oar-stepper__label { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; text-align: center; }
.oar-stepper__pill { display: flex; align-items: center; border: 1.5px solid rgba(120,140,160,.4); border-radius: 999px; background: #fff; overflow: hidden; }
[data-theme="dark"] .oar-stepper__pill { background: #26303f; }
.oar-stepper__btn { border: none; background: none; width: 38px; height: 42px; font-size: 19px; cursor: pointer; color: inherit; }
.oar-stepper__btn:hover { background: rgba(100,130,160,.12); }
.oar-stepper__val { width: 84px; border: none; background: none; text-align: center; font-size: 17px; font-weight: 700; color: inherit; outline: none; }
.oar-interval__err { color: #c22; font-size: 12.5px; text-align: center; margin-top: 10px; }

/* ---- rank (Likelihood) ---- */
.oar-ranklabel { font-size: 10.5px; letter-spacing: .12em; font-weight: 700; opacity: .6; margin: 18px 0 6px; }
.oar-ranklist { display: flex; flex-direction: column; gap: 10px; }
.oar-rankrow { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid rgba(120,140,160,.35); border-radius: 999px; padding: 10px 16px; cursor: grab; box-shadow: 0 1px 4px rgba(20,40,80,.06); }
[data-theme="dark"] .oar-rankrow { background: #26303f; }
.oar-rankrow.is-dragging { opacity: .55; border-style: dashed; }
.oar-rankrow.is-over { border-color: #2e6e73; border-width: 2.5px; }
.oar-rankrow__handle { opacity: .45; font-size: 15px; cursor: grab; }
.oar-rankrow__text { flex: 1; font-size: 14px; line-height: 1.45; }
.oar-rankrow__text p { margin: 0; }
.oar-rankrow__chevs { display: flex; flex-direction: row; gap: 4px; }
.oar-rankrow__chev { border: none; background: rgba(100,130,160,.12); border-radius: 6px; width: 26px; height: 24px; font-size: 9px; cursor: pointer; color: inherit; }
.oar-rankrow__chev:disabled { opacity: .3; cursor: default; }

/* ---- orderbook ---- */
.oar-ob__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.oar-ob__cell { min-height: 150px; }
.oar-ob__cell--empty { background: rgba(150,175,205,.14); border: 1.5px dashed rgba(120,150,185,.35); border-radius: 12px; }
.oar-ob__card { position: relative; background: #fff; border-radius: 12px; box-shadow: 0 3px 10px rgba(20,40,80,.12); padding: 10px; }
[data-theme="dark"] .oar-ob__card { background: #26303f; }
.oar-ob__badge { position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%; background: #5c6672; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.oar-ob__badge.is-buy { background: #1b8a4b; }
.oar-ob__badge.is-sell { background: #c23a3a; }
.oar-ob__img { background: #ededed; border-radius: 8px; min-height: 62px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1px; padding: 5px; }
[data-theme="dark"] .oar-ob__img { background: #1a212c; }
.oar-ob__icon { width: 30px; height: 30px; }
.oar-ob__btns { display: flex; gap: 6px; margin-top: 8px; }
.oar-ob__btn { flex: 1; border: none; background: #c9dceb; color: #1e3a56; border-radius: 8px; font-size: 11px; line-height: 1.35; padding: 6px 4px; cursor: pointer; }
.oar-ob__btn:hover { filter: brightness(1.05); }
.oar-ob__btn b { font-size: 13px; }
.oar-ob__banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #dcebf7; border-radius: 12px; padding: 12px 16px; margin-top: 14px; font-size: 13.5px; }
[data-theme="dark"] .oar-ob__banner { background: #23405c; }

/* ---- tutorial modal ---- */
.oar-tut { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(30,40,60,.25); z-index: 200; padding: 18px; }
.oar-tut__card { background: #fff; color: #223; border-radius: 14px; width: 440px; max-width: 94vw; max-height: 84vh; overflow: auto; padding: 18px 22px; box-shadow: 0 10px 40px rgba(10,20,40,.35); }
[data-theme="dark"] .oar-tut__card { background: #232c3a; color: #e8eef6; }
.oar-tut__dashes { display: flex; gap: 5px; margin-bottom: 12px; }
.oar-tut__dash { height: 4px; flex: 1; border-radius: 2px; background: rgba(120,140,160,.3); }
.oar-tut__dash.is-done { background: #2e4a6b; }
[data-theme="dark"] .oar-tut__dash.is-done { background: #7ea6d9; }
.oar-tut__title { font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.oar-tut__body { font-size: 13.5px; line-height: 1.6; }
.oar-tut__btns { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 16px; }
.oar-tut__skip { margin-right: auto; border: none; background: none; color: inherit; opacity: .55; font-size: 12px; cursor: pointer; text-decoration: underline; padding: 4px 0; }
.oar-tut__skip:hover { opacity: .85; }

/* slim distraction-free top bar on the dedicated game page */
.oar-topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid rgba(120,140,160,.2); }
.oar-topbar__brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; text-decoration: none; color: inherit; }
.oar-topbar__brand img { width: 20px; height: 20px; }
.oar-topbar__back { font-size: 12.5px; text-decoration: none; color: inherit; opacity: .7; }
.oar-topbar__back:hover { opacity: 1; }

/* ---- practice result ---- */
.oar-practice { max-width: 620px; margin: 40px auto; }
.oar-practice__card { background: #fff; border-radius: 14px; padding: 26px 30px; box-shadow: 0 2px 14px rgba(20,40,80,.08); }
[data-theme="dark"] .oar-practice__card { background: #1d2430; }
.oar-practice__mark { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.oar-practice__mark.is-good { color: #1b8a4b; }
.oar-practice__mark.is-bad { color: #c23a3a; }
.oar-practice__explain { font-size: 14px; line-height: 1.6; }

/* ---- done / review ---- */
.oar-done { max-width: 860px; margin: 0 auto; }
.oar-done__card { background: #fff; border-radius: 14px; padding: 30px; text-align: center; box-shadow: 0 2px 14px rgba(20,40,80,.08); }
[data-theme="dark"] .oar-done__card { background: #1d2430; }
.oar-done__score { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; }
.oar-done__sub { font-size: 14px; opacity: .8; margin-top: 6px; }
.oar-done__ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.oar-review__h { font-size: 18px; margin: 30px 4px 12px; }
.oar-rev { background: #fff; border: 1px solid rgba(120,140,160,.25); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
[data-theme="dark"] .oar-rev { background: #1d2430; }
.oar-rev summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; font-size: 13.5px; list-style: none; }
.oar-rev summary::-webkit-details-marker { display: none; }
.oar-rev__n { font-weight: 800; opacity: .7; min-width: 34px; }
.oar-rev__mark { font-weight: 800; min-width: 16px; }
.oar-rev--good .oar-rev__mark { color: #1b8a4b; }
.oar-rev--bad .oar-rev__mark { color: #c23a3a; }
.oar-rev__snippet { flex: 1; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oar-rev__score { font-weight: 700; font-variant-numeric: tabular-nums; }
.oar-rev__body { padding: 4px 16px 16px; font-size: 14px; line-height: 1.6; border-top: 1px dashed rgba(120,140,160,.3); }
.oar-rev__explain { background: rgba(100,140,190,.08); border-left: 3px solid #40657f; border-radius: 6px; padding: 10px 14px; margin-top: 8px; }

/* ---- exam skipped-question chips ---- */
.oar-examchips { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; font-size: 12px; }
.oar-examchips__lbl { opacity: .65; font-weight: 600; }
.oar-examchips__chip { border: 1.5px solid rgba(120,140,160,.5); background: #fff; border-radius: 8px; min-width: 32px; padding: 4px 8px; font-weight: 700; cursor: pointer; color: inherit; }
[data-theme="dark"] .oar-examchips__chip { background: #26303f; }
.oar-examchips__chip:hover { border-color: #2e6e73; }
.oar-examchips__chip.is-current { border-color: #2e6e73; background: rgba(46,110,115,.1); }

/* ---- SEO landing pages (optiver-<game>.html) ---- */
.oar-doc__head { max-width: 900px; margin: 26px auto 10px; padding: 0 14px; }
.oar-doc__crumb { font-size: 12px; opacity: .7; margin-bottom: 10px; }
.oar-doc__crumb a { color: inherit; }
.oar-doc__head h1 { font-size: 27px; line-height: 1.25; margin: 0 0 10px; }
.oar-doc__lede { font-size: 15px; line-height: 1.65; color: var(--text-secondary); margin: 0 0 14px; }
.oar-doc__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.oar-doc__chips span { font-size: 12px; font-weight: 600; border: 1px solid var(--border-color); border-radius: 999px; padding: 4px 12px; color: var(--text-secondary); }
.oar-doc__sets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.oar-doc__set { font-size: 13px; font-weight: 700; border-radius: 8px; padding: 8px 16px; text-decoration: none; border: 1.5px solid #40657f; color: #40657f; }
[data-theme="dark"] .oar-doc__set { color: #9cc0dc; border-color: #9cc0dc; }
.oar-doc__set--sample { background: #40657f; color: #fff !important; }
.oar-doc__set:hover { filter: brightness(1.12); }
.oar-doc__set--primary { background: #2e6e73; border-color: #2e6e73; color: #fff !important; font-size: 14px; padding: 10px 22px; }
.oar-doc__set--quiet { border-style: dashed; opacity: .75; font-weight: 500; }
.oar-doc__freefine { font-size: 12.5px; opacity: .7; margin: 8px 0 0; }

.oar-doc { max-width: 900px; margin: 30px auto 60px; padding: 0 14px; font-size: 15px; line-height: 1.7; }
.oar-doc h2 { font-size: 20px; margin: 28px 0 10px; }
.oar-doc h3 { font-size: 15.5px; margin: 18px 0 6px; }
.oar-doc p { margin: 8px 0; color: var(--text-secondary); }
.oar-doc__note { font-size: 12.5px; opacity: .75; border-left: 3px solid var(--border-color); padding-left: 12px; }
.oar-doc__rels { display: flex; flex-wrap: wrap; gap: 8px; }
.oar-doc__rel { font-size: 13px; border: 1px solid var(--border-color); border-radius: 8px; padding: 7px 14px; text-decoration: none; color: inherit; }
.oar-doc__rel:hover { border-color: #40657f; }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .oar-optgrid { grid-template-columns: repeat(2, 1fr); }
  .oar-cardrow { grid-template-columns: repeat(2, 1fr); }
  .oar-qcard { padding: 18px; }
  .oar-intervalrow { gap: 12px; }
}
