@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Nunito:wght@700;800;900&display=swap');

:root {
  --ink: #283449;
  --muted: #707c91;
  --cream: #fbf7f0;
  --paper: #fffdf9;
  --line: #e8e3da;
  --coral: #ef735f;
  --coral-dark: #db5b4a;
  --blue: #5174d8;
  --blue-soft: #edf2ff;
  --green: #62ae87;
  --green-soft: #e9f6ed;
  --yellow: #f8cb61;
  --peach: #fff0ea;
  --shadow: 0 20px 50px rgba(58, 64, 80, .08);
}

* { box-sizing: border-box; }

html { width: 100%; min-height: 100%; overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; touch-action: pan-y; }

body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 4px solid rgba(81, 116, 216, .28); outline-offset: 3px; }

.app-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 26px 0 28px; }

.topbar { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.brand em { color: var(--coral); font-style: normal; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: white; background: var(--coral); font-family: Nunito, sans-serif; font-size: 24px; font-weight: 900; transform: rotate(-7deg); }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.session-note { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sparkle { color: var(--yellow); margin-right: 5px; font-size: 17px; }
.session-button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border: 1px solid transparent; border-radius: 30px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 800; transition: border .2s, background .2s; }.session-button:hover { border-color: var(--line); background: var(--paper); }.session-mini-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #ad7831; background: #fff1cf; font-size: 17px; }
.subject-button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border: 1px solid transparent; border-radius: 30px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 800; transition: border .2s, background .2s; }
.subject-button:hover { border-color: var(--line); background: var(--paper); }
.subject-mini-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #3b815d; background: var(--green-soft); font-family: Nunito, sans-serif; font-size: 19px; font-weight: 900; }
.name-button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 5px; border: 1px solid transparent; border-radius: 30px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 800; transition: border .2s, background .2s; }
.name-button:hover { border-color: var(--line); background: var(--paper); }
.name-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #4962bd; background: var(--blue-soft); font-family: Nunito, sans-serif; font-size: 14px; font-weight: 900; }
.name-edit { color: #9aa2af; font-size: 13px; }
.icon-button { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); box-shadow: 0 3px 10px rgba(60, 62, 75, .04); font-size: 18px; transition: transform .2s ease, box-shadow .2s ease; }
.icon-button:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(60, 62, 75, .1); }

.hero { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; min-height: 310px; padding: 56px 44px 38px; }
.eyebrow, .section-kicker { margin: 0 0 14px; color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--green); }
h1, h2 { font-family: Nunito, 'DM Sans', sans-serif; letter-spacing: -.045em; }
h1 { margin: 0; font-size: clamp(42px, 5vw, 66px); line-height: .98; font-weight: 900; }
h1 span { color: var(--coral); }
h1 .name-highlight { color: var(--blue); }
.hero-copy > p { max-width: 390px; margin: 19px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-badges span { padding: 8px 12px; border: 1px solid #eee8df; border-radius: 30px; color: #667186; background: rgba(255, 253, 249, .7); font-size: 12px; font-weight: 700; }
.hero-illustration { position: relative; width: min(100%, 380px); height: 230px; margin: 0 auto; }
.shape { position: absolute; display: grid; place-items: center; border-radius: 22px; font-family: Nunito, sans-serif; font-weight: 900; box-shadow: 0 13px 25px rgba(54, 70, 92, .12); }
.shape-a { top: 33px; left: 31px; width: 105px; height: 105px; color: #fff; background: var(--coral); font-size: 58px; transform: rotate(-10deg); }
.shape-b { top: 8px; right: 47px; width: 88px; height: 88px; color: #fff; background: var(--blue); border-radius: 50%; font-size: 50px; transform: rotate(12deg); }
.shape-c { bottom: 18px; left: 113px; width: 82px; height: 82px; color: #5c4d29; background: var(--yellow); font-size: 42px; transform: rotate(8deg); }
.shape-d { right: 4px; bottom: 23px; width: 93px; height: 93px; color: #255c46; background: #9ad2ad; font-size: 47px; transform: rotate(-9deg); }
.shape-e { top: 95px; left: 181px; width: 67px; height: 67px; color: #4e4d8b; background: #b5b5f0; border-radius: 18px; font-size: 36px; transform: rotate(5deg); z-index: 2; }
.orbit { position: absolute; border: 2px dashed #d7d2c5; border-radius: 50%; }
.orbit-one { top: 22px; left: 10px; width: 300px; height: 190px; transform: rotate(-17deg); }
.orbit-two { top: 27px; left: 61px; width: 260px; height: 160px; transform: rotate(37deg); border-color: #e2dfd5; }

.practice-card { padding: 34px 38px 0; overflow: hidden; border: 1px solid #ebe5dc; border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.practice-header, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
h2 { margin: 0; font-size: 28px; line-height: 1.1; }
.today-name { color: var(--blue); }
.round-settings { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-top: 1px; }
.round-settings label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.round-settings label small { color: #a6adba; font-size: 9px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.length-control { display: flex; align-items: center; gap: 6px; }
.length-control input { width: 61px; height: 37px; padding: 0 5px; border: 1px solid #dfe4f5; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-family: Nunito, sans-serif; font-size: 20px; font-weight: 900; text-align: center; }
.length-control input::-webkit-inner-spin-button, .length-control input::-webkit-outer-spin-button { opacity: 1; }
.length-apply { height: 37px; padding: 0 11px; border: 1px solid #dfe4f5; border-radius: 10px; color: var(--blue); background: #fff; font-size: 11px; font-weight: 800; transition: background .15s, transform .15s; }
.length-apply:hover { background: var(--blue-soft); transform: translateY(-1px); }
.round-settings.is-error label small { color: var(--coral-dark); }
.round-settings.is-confirmed label small { color: var(--green); }
.mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 27px; }
.mode-tab { display: grid; grid-template-columns: 42px 1fr 20px; align-items: center; gap: 10px; min-height: 73px; padding: 12px 15px; border: 1.5px solid #ece8e0; border-radius: 15px; color: var(--ink); background: #fff; text-align: left; transition: border .2s, background .2s, transform .2s; }
.mode-tab:hover { transform: translateY(-2px); border-color: #c9d3f2; }
.mode-tab.is-active { border-color: var(--blue); background: var(--blue-soft); }
.tab-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; font-family: Nunito, sans-serif; font-size: 27px; font-weight: 900; }
.multiply-icon { color: #b74f41; background: #ffd7d1; }
.divide-icon { color: #4962bd; background: #d7e0ff; }
.mixed-icon { color: #4e8c6c; background: #d8f0dc; font-size: 21px; }
.mode-tab strong { display: block; font-size: 14px; }
.mode-tab small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 500; }
.tab-check { display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid #d8dce4; border-radius: 50%; color: transparent; font-size: 12px; font-weight: 900; }
.mode-tab.is-active .tab-check { border-color: var(--blue); color: #fff; background: var(--blue); }

.practice-area { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; max-width: 850px; margin: 31px auto 27px; }
.question-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: #8b94a4; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.streak-label { color: #c4862f; letter-spacing: .02em; text-transform: none; }
.flame { color: #f3ad47; font-size: 15px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 10px; background: #f0eee9; }
.progress-fill { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #758ee2, #9bb0fa); transition: width .35s ease; }
.question-box { min-height: 218px; margin-top: 21px; padding: 31px 24px 24px; border-radius: 21px; background: #f8f7f3; text-align: center; }
.operation { font-family: Nunito, sans-serif; font-size: clamp(45px, 6vw, 65px); font-weight: 900; letter-spacing: -.03em; }
.answer-row { margin-top: 11px; }
.answer-row input { width: 115px; padding: 0 4px 4px; border: 0; border-bottom: 4px solid #bac7f4; outline: 0; color: var(--blue); background: transparent; font-family: Nunito, sans-serif; font-size: 48px; font-weight: 900; line-height: 1; text-align: center; }
.answer-row input[readonly] { pointer-events: none; cursor: default; }
.answer-row input:focus { border-bottom-color: var(--blue); }
.answer-hint { margin: 15px 0 0; color: #9199a7; font-size: 11px; }
.feedback { margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; text-align: center; }
.feedback.correct { color: #2f8158; background: var(--green-soft); }
.feedback.try-again { color: #a56539; background: #fff3df; }
.feedback[hidden] { display: none; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; max-width: 265px; margin: 0 auto; }
.keypad button { min-height: 54px; border: 1px solid #e6e4df; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 2px 3px rgba(40, 52, 73, .025); font-family: Nunito, sans-serif; font-size: 21px; font-weight: 800; touch-action: manipulation; transition: transform .12s ease, background .12s ease; }
.keypad button:hover { background: #f7f9ff; transform: translateY(-2px); }
.keypad button:active { transform: translateY(1px) scale(.98); }
.keypad .keypad-action { color: #768198; background: #f5f4f0; font-family: 'DM Sans', sans-serif; font-size: 22px; }
.keypad .submit-key { color: white; border-color: var(--blue); background: var(--blue); font-size: 26px; }
.tip-strip { display: flex; align-items: center; gap: 12px; margin: 0 -38px; padding: 16px 38px; color: #6e737e; background: #fcf4dd; font-size: 12px; line-height: 1.45; }
.tip-icon { font-size: 22px; }
.tip-strip strong { color: #b27031; }
.subject-panel[hidden] { display: none; }

.geo-mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 27px; }
.geo-mode-tab { display: grid; grid-template-columns: 42px 1fr 20px; align-items: center; gap: 10px; min-height: 73px; padding: 12px 15px; border: 1.5px solid #ece8e0; border-radius: 15px; color: var(--ink); background: #fff; text-align: left; transition: border .2s, background .2s, transform .2s; }
.geo-mode-tab:hover { transform: translateY(-2px); border-color: #c9d3f2; }
.geo-mode-tab.is-active { border-color: var(--green); background: var(--green-soft); }
.geo-tab-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #3f8d61; background: #ccebd6; font-family: Nunito, sans-serif; font-size: 19px; font-weight: 900; }
.hard-tab-icon { color: #5d65b8; background: #e0e1ff; font-size: 22px; }
.geo-mode-tab strong { display: block; font-size: 14px; }.geo-mode-tab small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 500; }
.geo-mode-tab.is-active .tab-check { border-color: var(--green); color: #fff; background: var(--green); }
.geo-practice-area { display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px; align-items: center; max-width: 850px; margin: 31px auto 27px; }
.geo-question-column { min-width: 0; }.geo-question-box { margin-top: 21px; padding: 28px 18px 24px; border-radius: 21px; background: #f5faf5; text-align: center; }.geo-operation { font-family: Nunito, sans-serif; font-size: clamp(27px, 3vw, 38px); font-weight: 900; letter-spacing: -.035em; }.geo-question-box p { margin: 12px auto 0; color: #819087; font-size: 11px; line-height: 1.45; }
.compass-wrap { display: flex; flex-direction: column; align-items: center; }.compass-rose { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 9px; width: min(100%, 350px); aspect-ratio: 1; padding: 13px; border: 1px solid #e4eee4; border-radius: 50%; background: radial-gradient(circle at center, #fbfdfb 0 23%, #f0f8f0 24% 67%, #e6f2e7 68% 100%); box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .62), 0 9px 20px rgba(64, 112, 76, .08); }
.direction-button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 0; padding: 5px; border: 1px solid #dfe8df; border-radius: 17px; color: #315743; background: rgba(255, 255, 255, .9); box-shadow: 0 3px 6px rgba(49, 87, 67, .07); font-weight: 800; touch-action: manipulation; transition: transform .15s, border .15s, background .15s, box-shadow .15s; }.direction-button:hover { transform: translateY(-2px); border-color: #79b38b; background: #fff; box-shadow: 0 6px 12px rgba(49, 87, 67, .12); }.direction-button:active { transform: scale(.96); }.direction-button.is-correct { border: 3px solid var(--green); color: #28764b; background: #dff5e5; box-shadow: 0 0 0 4px rgba(98, 174, 135, .18); }.direction-button.is-wrong { border-color: var(--coral); color: #bd5a4c; background: #fff0ec; }
.direction-arrow { font-size: clamp(27px, 4vw, 36px); line-height: .9; }.direction-label { margin-top: 5px; font-family: Nunito, sans-serif; font-size: 12px; font-weight: 900; letter-spacing: .03em; }.compass-rose.is-hard-mode .direction-label { visibility: hidden; }.compass-center { display: grid; grid-area: 2 / 2; place-items: center; width: 64px; height: 64px; align-self: center; justify-self: center; border: 7px solid rgba(255, 255, 255, .8); border-radius: 50%; color: #efaa42; background: var(--yellow); box-shadow: 0 3px 10px rgba(117, 93, 37, .14); font-size: 24px; }
.direction-n { grid-area: 1 / 2; }.direction-ne { grid-area: 1 / 3; }.direction-e { grid-area: 2 / 3; }.direction-se { grid-area: 3 / 3; }.direction-s { grid-area: 3 / 2; }.direction-sw { grid-area: 3 / 1; }.direction-w { grid-area: 2 / 1; }.direction-nw { grid-area: 1 / 1; }.compass-help { margin: 13px 0 0; color: #83928a; font-size: 11px; text-align: center; }

.today-section { padding: 45px 38px 0; }
.calendar-badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #7087d8; background: var(--blue-soft); font-size: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 21px; }
.stat-card { display: flex; align-items: center; gap: 13px; min-height: 79px; padding: 14px 17px; border-radius: 16px; }
.blue-stat { background: var(--blue-soft); }.peach-stat { background: var(--peach); }.green-stat { background: var(--green-soft); }
.stat-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; font-size: 19px; font-weight: 900; }
.blue-stat .stat-icon { color: var(--blue); background: #dbe4ff; }.peach-stat .stat-icon { color: #dc7959; background: #ffd9cc; }.green-stat .stat-icon { color: #3c9566; background: #ccebd6; }
.stat-card strong { display: block; font-family: Nunito, sans-serif; font-size: 26px; line-height: 1; }.stat-card span:not(.stat-icon) { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
.footer-note { margin: 41px 0 0; color: #9299a5; font-size: 11px; text-align: center; }.footer-note span { margin-right: 5px; color: var(--yellow); font-size: 16px; }

.challenge-status { display: flex; align-items: center; justify-content: center; gap: 18px; width: fit-content; margin: 4px auto -7px; padding: 7px 12px; border: 1px solid #f1e3bd; border-radius: 30px; color: #8d7a51; background: #fff9e9; font-size: 11px; font-weight: 700; }.challenge-status strong { color: #bb7d27; font-family: Nunito, sans-serif; font-size: 14px; }.challenge-status[hidden] { display: none; }

.subject-overlay, .welcome-overlay, .pause-overlay, .completion-overlay { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(39, 47, 64, .32); backdrop-filter: blur(4px); }.subject-overlay[hidden], .welcome-overlay[hidden], .pause-overlay[hidden], .completion-overlay[hidden] { display: none; }
.subject-overlay, .session-overlay, .welcome-overlay, .pause-overlay, .completion-overlay { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(39, 47, 64, .32); backdrop-filter: blur(4px); }
.subject-overlay[hidden], .session-overlay[hidden], .welcome-overlay[hidden], .pause-overlay[hidden], .completion-overlay[hidden] { display: none; }
.subject-card, .session-card, .welcome-card, .pause-card, .completion-card { position: relative; width: min(100%, 470px); padding: 44px 42px 38px; border: 1px solid #eae4da; border-radius: 25px; background: var(--paper); box-shadow: 0 24px 70px rgba(35, 42, 59, .2); text-align: center; animation: pop .22s ease-out; }
.subject-emoji { margin-bottom: 13px; font-size: 44px; }.subject-card h2 { font-size: 33px; }.subject-card > p:not(.section-kicker) { max-width: 335px; margin: 13px auto 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }.subject-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.subject-option { display: grid; grid-template-columns: 40px 1fr 17px; align-items: center; gap: 9px; min-height: 76px; padding: 10px; border: 1.5px solid #e7e4dd; border-radius: 15px; color: var(--ink); background: #fff; text-align: left; transition: transform .15s, border .15s, background .15s; }.subject-option:hover { transform: translateY(-2px); border-color: #aab9ed; background: #fbfcff; }.subject-option-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-family: Nunito, sans-serif; font-size: 25px; font-weight: 900; }.math-option .subject-option-icon { color: #b74f41; background: #ffd7d1; }.geography-option .subject-option-icon { color: #3d8b60; background: #d8f0dc; font-size: 21px; }.subject-option strong { display: block; font-size: 13px; }.subject-option small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.25; }.subject-arrow { color: #9ba4b2; font-size: 18px; }
.session-card > p:not(.section-kicker) { max-width: 340px; margin: 13px auto 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }.session-emoji { margin-bottom: 13px; font-size: 44px; }.session-card h2 { font-size: 33px; }.session-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.session-option { display: grid; grid-template-columns: 40px 1fr 17px; align-items: center; gap: 9px; min-height: 76px; padding: 10px; border: 1.5px solid #e7e4dd; border-radius: 15px; color: var(--ink); background: #fff; text-align: left; transition: transform .15s, border .15s, background .15s; }.session-option:hover { transform: translateY(-2px); border-color: #e5bf76; background: #fffdf7; }.session-option-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff1cf; font-size: 21px; }.session-option strong { display: block; font-size: 13px; }.session-option small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.25; }
.back-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin-top: 18px; padding: 8px 12px; border: 0; border-radius: 11px; color: #75809a; background: transparent; font-size: 12px; font-weight: 800; transition: color .15s, background .15s; }.back-button:hover { color: var(--blue); background: #f3f6ff; }.back-button[hidden] { display: none; }
.welcome-emoji { margin-bottom: 13px; font-size: 44px; }.welcome-card h2 { font-size: 33px; }.welcome-card > p:not(.section-kicker):not(.name-error) { max-width: 335px; margin: 13px auto 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.name-label { display: block; margin: 0 0 7px; color: var(--ink); font-size: 11px; font-weight: 800; text-align: left; }.name-input { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid #dfe4f5; border-radius: 12px; color: var(--ink); background: #fbfcff; font-size: 16px; text-align: left; }.name-input::placeholder { color: #b3bac7; }.name-input:focus { border-color: var(--blue); outline: 4px solid rgba(81, 116, 216, .15); }.name-error { margin: 8px 0 0; color: var(--coral-dark); font-size: 11px; font-weight: 700; text-align: left; }.welcome-card .primary-button { width: 100%; margin-top: 20px; }
.pause-card, .completion-card { position: relative; width: min(100%, 470px); padding: 44px 42px 38px; border: 1px solid #eae4da; border-radius: 25px; background: var(--paper); box-shadow: 0 24px 70px rgba(35, 42, 59, .2); text-align: center; animation: pop .22s ease-out; }
.close-button { position: absolute; top: 15px; right: 17px; width: 31px; height: 31px; border: 0; border-radius: 50%; color: #8690a0; background: #f4f2ee; font-size: 22px; line-height: 1; }.close-button:hover { color: var(--ink); }
.pause-emoji, .completion-emoji { margin-bottom: 15px; font-size: 44px; }.pause-card h2, .completion-card h2 { font-size: 33px; }.pause-card p:not(.section-kicker), .completion-card p:not(.section-kicker) { margin: 14px auto 24px; max-width: 335px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.primary-button, .secondary-button { min-height: 45px; padding: 0 20px; border-radius: 12px; font-size: 13px; font-weight: 800; transition: transform .15s, box-shadow .15s; }.primary-button { border: 0; color: #fff; background: var(--coral); box-shadow: 0 8px 14px rgba(239, 115, 95, .2); }.primary-button:hover { background: var(--coral-dark); transform: translateY(-2px); }.secondary-button { border: 1px solid #e1ddd4; color: var(--ink); background: #fff; }.secondary-button:hover { background: #faf8f4; }
.confetti { margin-bottom: -5px; color: var(--yellow); font-size: 22px; }.completion-score { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 27px; padding: 9px 14px; border-radius: 12px; background: #f7f4ee; }.completion-score strong { color: var(--blue); font-family: Nunito, sans-serif; font-size: 25px; }.completion-score span { color: var(--muted); font-size: 11px; font-weight: 700; }.completion-actions { display: flex; justify-content: center; gap: 9px; }.completion-actions .primary-button, .completion-actions .secondary-button { flex: 1; }
.challenge-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: -11px auto 25px; max-width: 360px; }.challenge-summary[hidden] { display: none; }.challenge-summary > div { padding: 9px 5px; border-radius: 11px; background: #fff8e7; }.challenge-summary strong { display: block; color: #bd7d27; font-family: Nunito, sans-serif; font-size: 20px; }.challenge-summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 700; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 800px) {
  .app-shell { width: min(100% - 28px, 650px); padding-top: 18px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 44px 12px 30px; }.hero-illustration { height: 190px; margin-top: 20px; transform: scale(.86); }
  .practice-card { padding: 27px 20px 0; border-radius: 22px; }.mode-tabs { grid-template-columns: 1fr; gap: 8px; }.mode-tab { min-height: 63px; grid-template-columns: 39px 1fr 20px; }.tab-icon { width: 39px; height: 39px; }.round-settings { align-items: flex-start; }.round-settings label { flex-direction: column; align-items: flex-start; gap: 2px; }
  .practice-area, .geo-practice-area { grid-template-columns: 1fr; gap: 24px; margin-top: 25px; }.question-box { min-height: 190px; }.keypad { width: 100%; max-width: 300px; }.keypad button { min-height: 56px; }.compass-rose { width: min(100%, 335px); }
  .tip-strip { margin: 0 -20px; padding: 15px 20px; }.today-section { padding: 36px 0 0; }.stats-grid { grid-template-columns: 1fr; gap: 9px; }.stat-card { min-height: 67px; }.footer-note { margin-top: 31px; }
}

@media (max-width: 430px) {
  .session-note { display: none; }.session-button, .subject-button { padding-right: 4px; }.session-button #sessionName, .subject-button #subjectName { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.name-button { padding-right: 4px; }.name-button #headerName { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.hero { padding-top: 38px; }.hero-illustration { margin-left: -7px; }.hero-copy > p { font-size: 14px; }.practice-header h2 { font-size: 25px; }.round-settings label small { display: none; }.subject-options, .session-options { grid-template-columns: 1fr; }.subject-card, .session-card, .completion-card, .pause-card, .welcome-card { padding: 36px 22px 27px; }.challenge-status { gap: 10px; font-size: 10px; }.challenge-status strong { font-size: 12px; }.completion-actions { flex-direction: column-reverse; }.completion-actions button { width: 100%; }.back-button { width: 100%; }
}

@media (hover: none) {
  .keypad button:hover, .direction-button:hover { transform: none; box-shadow: 0 2px 3px rgba(40, 52, 73, .025); }
  .keypad button:active, .direction-button:active { transform: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
