/* WCKit — shared shell styles for WiseChecker daily games. Everything is scoped under .wck. */
.wck, .wck * { box-sizing: border-box; }
.wck [hidden] { display: none !important; }
.wck {
  --bg1: #2a5be0; --bg2: #5b2bc4; --ink: #1b2233; --muted: #5b6478; --line: #dfe3ee; --paper: #fff;
  --ok: #15803d; --okbg: #e3f6e9; --bad: #dc2626; --badbg: #fde8e8; --gold: #ffd84a;
  position: relative; max-width: 980px; margin: 0 auto 28px; padding: 14px 16px 18px; overflow: hidden;
  border-radius: 18px; background: linear-gradient(135deg, var(--bg1), var(--bg2));
  font: 14px/1.3 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; color: #fff; text-align: left;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.wck[data-layout="narrow"] { padding: 10px 10px 14px; border-radius: 14px; }
.wck [role="button"] { cursor: pointer; }
.wck [role="button"]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wck svg { display: block; width: 100%; height: 100%; }

.wck-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.wck-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.wck-day { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.wck-date { font-size: 14px; opacity: 0.88; }
.wck-dots { display: inline-flex; gap: 3px; align-self: center; }
.wck-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.wck-dots i.on { background: var(--gold); }
.wck-skip { align-self: center; font-size: 12.5px; font-weight: 600; padding: 3px 11px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.75); white-space: nowrap; }
.wck-skip:hover { background: rgba(255, 255, 255, 0.18); }
.wck-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.wck-time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; margin-right: 4px; }
.wck-ib { position: relative; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.17); color: #fff; flex: none; transition: background 0.15s; }
.wck-ib::after { content: ""; position: absolute; inset: -5px; }
.wck-ib:hover { background: rgba(255, 255, 255, 0.3); }
.wck-ib.wck-dis { opacity: 0.38; pointer-events: none; }
.wck[data-layout="narrow"] .wck-day { font-size: 18px; }
.wck[data-layout="narrow"] .wck-ib { width: 32px; height: 32px; padding: 7px; }
.wck[data-layout="narrow"] .wck-tools { gap: 9px; }
.wck-sub { margin-top: 10px; padding: 9px 13px; border-radius: 12px; background: rgba(13, 18, 60, 0.32); font-size: 14.5px; line-height: 1.42; min-height: 39px; }
.wck-sub b { font-weight: 700; }
.wck-gt { display: block; font-size: 16.5px; font-weight: 700; margin-bottom: 2px; }
.wck-gt:empty { display: none; }
.wck[data-layout="narrow"] .wck-sub { font-size: 14px; min-height: 58px; padding: 8px 11px; }
.wck[data-kind="lesson"] .wck-sub { min-height: 0; }

.wck-main { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 16px; margin-top: 16px; align-items: start; }
.wck[data-layout="narrow"] .wck-main { display: block; margin-top: 14px; }
.wck-board { position: relative; min-width: 0; }
.wck-side { min-width: 0; }
.wck[data-layout="narrow"] .wck-side { margin-top: 12px; }
.wck-label { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.92; min-height: 16px; margin-bottom: 7px; }
.wck-key { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 12.5px; }
.wck-key span { display: inline-flex; align-items: center; gap: 5px; }
.wck-key i { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 4px; flex: none; font-style: normal; }

.wck-result { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 14px 14px 12px; box-shadow: 0 10px 24px rgba(12, 12, 60, 0.28); }
.wck-result.wck-fresh { animation: wck-rise 0.45s 0.35s ease-out both; }
@keyframes wck-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wck-rh { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.wck-ok { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--ok); color: #fff; flex: none; }
.wck-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.wck-stats span { display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.wck-stats b { font-size: 21px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.wck-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.wck-wd { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
.wck-wd i { width: 24px; height: 24px; padding: 5px; border-radius: 50%; border: 2px solid var(--line); color: #fff; }
.wck-wd.done i { background: var(--ok); border-color: var(--ok); }
.wck-wd.today i { border-color: #e0a800; }
.wck-wd.today.done i { box-shadow: 0 0 0 2px #e0a800; border-color: var(--ok); }
.wck-wd.cur span { color: var(--ink); }
.wck-wd.future { opacity: 0.4; }
.wck-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wck-btn { flex: 1 1 auto; text-align: center; padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 2px solid var(--ink); color: var(--ink); white-space: nowrap; }
.wck-btn.wck-primary { background: var(--ink); color: #fff; }
.wck-btn:hover { opacity: 0.88; }
.wck-result [role="button"]:focus-visible, .wck-box [role="button"]:focus-visible { outline-color: var(--bg1); }
.wck-next { margin-top: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }

.wck-toast { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; z-index: 60; transition: opacity 0.18s, transform 0.18s; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wck-toast.on { opacity: 1; transform: translate(-50%, 0); }
.wck-hand { position: absolute; left: 0; top: 0; width: 44px; height: 44px; z-index: 70; pointer-events: none; opacity: 0; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); }
.wck-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; border-radius: 16px; }
.wck-confetti i { position: absolute; top: -14px; width: 8px; height: 12px; border-radius: 2px; animation: wck-fall 1.4s ease-in both; }
@keyframes wck-fall { to { transform: translateY(520px) rotate(540deg); opacity: 0.2; } }
.wck-pop { animation: wck-pop 0.22s ease-out; }
.wck-shake { animation: wck-shake 0.32s; }
@keyframes wck-pop { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes wck-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

.wck-modal { position: absolute; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(14, 18, 46, 0.6); }
.wck-box { width: 100%; max-width: 440px; max-height: 100%; overflow: auto; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 14px 16px 16px; }
.wck-mh { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.wck-x { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #eef0f6; font-size: 20px; line-height: 1; }
.wck-hr { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.wck-demo { flex: none; width: 110px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.wck-ht { font-size: 13.5px; line-height: 1.4; }
.wck-box .wck-dots i { background: #cfd6e6; }
.wck-box .wck-dots i.on { background: #e0a800; }
.wck-aw { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 6px; justify-items: center; }
.wck-ah { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.wck-ad { position: relative; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--line); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wck-ad.done { background: var(--okbg); border-color: var(--ok); color: var(--ok); }
.wck-ad.done i { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: var(--ok); color: #fff; }
.wck-ad.today { border-color: #e0a800; box-shadow: 0 0 0 2px rgba(224, 168, 0, 0.3); }
.wck-ad.future { opacity: 0.32; }
.wck-ad small { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 0 3px; background: var(--paper); font-size: 9.5px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.wck-ad[role="button"]:hover { background: #eef0f6; }
@media (prefers-reduced-motion: reduce) { .wck-pop, .wck-shake, .wck-result.wck-fresh { animation: none; } }
/* dragging (K.drag): the piece in the air, the place it came from, and the places it may land */
.wck-ghost { position: absolute !important; z-index: 60; margin: 0 !important; pointer-events: none; opacity: 0.97; transform: scale(1.1) rotate(-3deg); filter: drop-shadow(0 10px 12px rgba(10, 10, 40, 0.42)); animation: none !important; transition: none !important; }
.wck-lift { opacity: 0.28; }
.wck .wck-drop { outline: 3px dashed var(--gold); outline-offset: -3px; }
.wck .wck-drop.wck-over { outline: 4px solid var(--gold); }
.wck-dragging, .wck-dragging * { cursor: grabbing !important; }

/* Ballpark — game styles (the shell comes from kit.css). */
.bp { --bg1: #e11d48; --bg2: #c2410c; }
.bp .p100 { --pt: #15803d; } .bp .p80 { --pt: #4d9a1a; } .bp .p60 { --pt: #b7791f; } .bp .p40 { --pt: #c2570c; } .bp .p20 { --pt: #c2410c; } .bp .p0 { --pt: #6b7280; }

/* five pips: the points of the questions that are done, and the one on screen */
.bp-pips { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.bp-pips i { width: 34px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); }
.bp-pips i.now { background: var(--gold); }
.bp-pips i.p100, .bp-pips i.p80 { background: #86efac; }
.bp-pips i.p60, .bp-pips i.p40 { background: #fde68a; }
.bp-pips i.p20, .bp-pips i.p0 { background: #fecaca; }

.bp-stage { max-width: 580px; margin: 0 auto; display: grid; gap: 10px; }
.bp-card { padding: 16px 18px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 8px 20px rgba(80, 15, 10, 0.3); }
.bp-q p { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.35; }
.bp-q p b { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bp-dots { display: block; width: 100%; height: auto !important; margin-top: 12px; border-radius: 10px; background: #f4f1ea; }
.bp-dots circle { fill: #1b2233; }
.bp-bar { height: 34px; margin-top: 14px; border-radius: 10px; background: #e7e9f0; overflow: hidden; box-shadow: inset 0 0 0 2px #cfd4e2; }
.bp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2f6fed, #5b8dff); }
.bp-nums { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; }
.bp-nums b { padding: 5px 11px; border-radius: 10px; background: #eef2fb; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bp-nums em { font-style: normal; font-weight: 700; color: var(--muted); }

/* the guess */
.bp-val { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bp-val span { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.bp-val b { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bp-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 40px; margin: 6px 0 0; padding: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.bp-range::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: linear-gradient(90deg, #fecdd3, #fdba74); box-shadow: inset 0 0 0 1.500px rgba(120, 30, 20, 0.2); }
.bp-range::-moz-range-track { height: 12px; border-radius: 999px; background: linear-gradient(90deg, #fecdd3, #fdba74); box-shadow: inset 0 0 0 1.500px rgba(120, 30, 20, 0.2); }
.bp-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 34px; height: 34px; margin-top: -11px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; box-shadow: 0 3px 8px rgba(40, 10, 10, 0.45); }
.bp-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; box-shadow: 0 3px 8px rgba(40, 10, 10, 0.45); }
.bp-range:focus-visible { outline: 2px solid var(--bg1); outline-offset: 4px; border-radius: 8px; }
.bp-ends { display: flex; justify-content: space-between; font-size: 12.500px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.bp-go { display: block; margin-top: 12px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16.500px; font-weight: 800; text-align: center; }
.bp-go:hover { opacity: 0.9; }
.bp-go:focus-visible { outline-color: var(--bg1) !important; }

/* after the guess is locked in: the answer on the same line */
.bp-grade { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bp-grade b { font-size: 24px; font-weight: 800; color: var(--pt); }
.bp-grade em { font-style: normal; font-size: 24px; font-weight: 800; color: var(--pt); font-variant-numeric: tabular-nums; }
.bp-track { position: relative; height: 12px; margin: 54px 18px 8px; border-radius: 999px; background: #e7e9f0; }
.bp-track i { position: absolute; top: -5px; width: 6px; height: 22px; margin-left: -3px; border-radius: 3px; background: var(--ink); }
.bp-track i.ans { background: #16a34a; }
.bp-track i u { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); text-decoration: none; text-align: center; white-space: nowrap; font-style: normal; font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.bp-track i.ans u { bottom: auto; top: 26px; color: #15803d; }
.bp-track { margin-bottom: 44px; }

/* the day at a glance */
.bp-recap { padding: 12px 16px; }
.bp-total { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; }
.bp-total span { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.bp-total b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bp-total em, .bp-stars { display: inline-flex; gap: 3px; margin-left: auto; font-style: normal; }
.bp-total em i, .bp-stars i { width: 24px; height: 24px; color: #d5d9e4; }
.bp-total em i.on, .bp-stars i.on { color: #f5b301; }
.bp-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 44px; align-items: center; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.500px; line-height: 1.35; }
.bp-row em { grid-row: span 2; font-style: normal; font-weight: 700; color: var(--muted); text-align: right; }
.bp-row u { grid-column: 2; text-decoration: none; font-size: 12.500px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bp-row > b { grid-column: 3; grid-row: 1 / span 2; justify-self: end; min-width: 40px; padding: 3px 0; border-radius: 999px; background: var(--pt); color: #fff; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }

/* question number and points */
.bp-stats { display: grid; gap: 8px; }
.bp-stat { padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.16); }
.bp-stat > span { display: block; font-size: 11.500px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold); }
.bp-stat > p { margin: 2px 0 0; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; }
.bp-stat > p b { font-size: 26px; font-weight: 800; }
.bp[data-layout="narrow"] .bp-stats { grid-template-columns: 1fr 1fr; }
.bp[data-layout="narrow"] .bp-stat { padding: 7px 12px; }
.bp[data-layout="narrow"] .bp-stat > p b { font-size: 21px; }
.bp[data-layout="narrow"] .bp-card { padding: 13px 14px; }
.bp[data-layout="narrow"] .bp-q p { font-size: 18px; }
.bp[data-layout="narrow"] .bp-val b { font-size: 30px; }
.bp[data-layout="narrow"] .bp-nums b { font-size: 19px; padding: 4px 9px; }

/* small pictures in the help */
.bp-mslide { flex: none; position: relative; width: 84px; height: 8px; border-radius: 999px; background: #fdba74; }
.bp-mslide i { position: absolute; left: 58%; top: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.bp-mtrack { flex: none; position: relative; width: 84px; height: 8px; border-radius: 999px; background: #e7e9f0; }
.bp-mtrack i { position: absolute; top: -5px; width: 5px; height: 18px; border-radius: 3px; background: var(--ink); left: 40%; }
.bp-mtrack i.ans { background: #16a34a; left: 55%; }
.bp-chip { padding: 3px 9px; border-radius: 999px; background: var(--pt, #eef2fb); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.bp-chip:not(.p100):not(.p60):not(.p20) { color: var(--ink); }
.bp-bulb { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--bg1); color: #fff; }
.bp-stars i { width: 18px; height: 18px; }
