.practice-page { min-height: 100vh; background: #f7f2e7; }
.practice-page [hidden] { display: none !important; }
.practice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(20, 34, 59, .14);
}
.practice-header-actions { display: flex; align-items: center; gap: 14px; }
.practice-target,
.practice-exit {
  padding: 8px 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.practice-target { background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.practice-exit:hover { background: var(--blue-pale); }
.lab-menu {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 76px;
}
.category-select-intro { max-width:720px; margin:0 0 34px; }
.category-select-intro h1 { margin:0; font-size:clamp(44px,7vw,72px); line-height:.94; letter-spacing:-.06em; }
.category-select-intro > p:last-child { max-width:620px; margin:18px 0 0; color:var(--ink-soft); font-size:16px; line-height:1.55; }
.category-list { display:grid; gap:13px; }
.verb-category { overflow:hidden; border:2px solid var(--ink); border-radius:22px; background:#fff; box-shadow:6px 6px 0 var(--ink); transition:transform .18s ease; }
.verb-category.is-open { transform:translate(-2px,-2px); }
.verb-category-toggle { display:grid; grid-template-columns:48px minmax(0,1fr) auto 22px; gap:16px; align-items:center; width:100%; min-height:88px; padding:15px 20px; border:0; background:#fff; color:var(--ink); text-align:left; cursor:pointer; }
.verb-category.is-open .verb-category-toggle { background:var(--blue-pale); }
.category-index { display:grid; place-items:center; width:42px; height:42px; border:2px solid var(--ink); border-radius:50%; background:var(--lime); font-size:11px; font-weight:900; }
.category-name,.category-total { display:grid; }
.category-name strong { font-family:var(--font-display); font-size:24px; letter-spacing:-.025em; }
.category-name small,.category-total small { color:var(--ink-soft); font-size:10px; font-weight:800; }
.category-total { min-width:70px; text-align:right; }
.category-total strong { color:var(--blue); font-family:var(--font-display); font-size:23px; }
.category-chevron { font-size:23px; transition:transform .18s ease; }
.verb-category.is-open .category-chevron { transform:rotate(180deg); }
.cefr-levels { display:grid; gap:8px; padding:12px 18px 18px 82px; border-top:1px solid rgba(20,34,59,.12); background:#fffdf8; }
.cefr-level { display:grid; grid-template-columns:54px minmax(0,1fr) 24px; gap:14px; align-items:center; min-height:62px; padding:10px 14px; border:1px solid #cbd2de; border-radius:14px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; }
.cefr-level:hover:not(:disabled) { border-color:var(--blue); background:var(--blue-pale); transform:translateX(3px); }
.cefr-level:disabled { cursor:default; opacity:.48; }
.cefr-code { font-family:var(--font-display); font-size:22px; }
.cefr-progress { display:grid; gap:5px; }
.cefr-progress > span { height:7px; overflow:hidden; border-radius:99px; background:#e1e5ed; }
.cefr-progress i { display:block; height:100%; border-radius:inherit; background:var(--lime); }
.cefr-progress small { color:var(--ink-soft); font-size:10px; font-weight:800; }
.cefr-arrow { color:var(--blue); font-size:19px; font-weight:900; }
.lab-menu-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr);
  min-height: 330px;
  margin-bottom: 52px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 30px;
  background: var(--blue-pale);
  box-shadow: 12px 12px 0 var(--ink);
}
.lab-menu-heading::before { content:""; position:absolute; inset:0; background-image:radial-gradient(rgba(49,91,203,.2) 1.2px,transparent 1.2px); background-size:14px 14px; opacity:.45; pointer-events:none; }
.comic-menu-copy { position:relative; z-index:2; align-self:center; padding:36px 20px 36px 42px; }
.lab-menu-heading h1 { max-width:600px; margin:0; font-size:clamp(46px,5.8vw,70px); line-height:.92; letter-spacing:-.065em; }
.comic-menu-copy > p:last-child { max-width:530px; margin:22px 0 0; color:var(--ink-soft); font-size:17px; }
.comic-menu-scene { position:relative; z-index:1; min-height:330px; overflow:hidden; background:linear-gradient(145deg,rgba(201,240,91,.48),rgba(241,138,50,.25)); }
.comic-menu-scene::after { content:""; position:absolute; left:-25%; right:-10%; bottom:-42%; height:70%; border-radius:50%; background:var(--orange); transform:rotate(-8deg); }
.comic-menu-scene img { position:absolute; z-index:2; right:-28%; bottom:-4%; width:145%; max-width:none; height:auto; filter:drop-shadow(0 18px 18px rgba(20,34,59,.2)); }
.comic-bubble { position:absolute; z-index:4; top:28px; left:20px; display:grid; max-width:235px; padding:16px 18px; border:2px solid var(--ink); border-radius:22px; background:#fff; box-shadow:5px 5px 0 var(--ink); transform:rotate(-2deg); }
.comic-bubble::after { content:""; position:absolute; right:30px; bottom:-14px; width:22px; height:22px; border-right:2px solid var(--ink); border-bottom:2px solid var(--ink); background:#fff; transform:rotate(45deg); }
.comic-bubble strong { font-family:var(--font-display); font-size:24px; line-height:1; }
.comic-bubble span { margin-top:5px; color:var(--ink-soft); font-size:12px; line-height:1.35; }
.comic-burst { position:absolute; z-index:5; right:18px; bottom:24px; padding:10px 13px; border:2px solid var(--ink); background:var(--lime); box-shadow:4px 4px 0 var(--ink); font-size:11px; font-weight:900; letter-spacing:.08em; transform:rotate(5deg); }
.progress-dashboard { display:grid; grid-template-columns:minmax(180px,.6fr) minmax(0,2fr); gap:24px; align-items:center; margin:0 0 34px; padding:22px 24px; border:2px solid var(--ink); border-radius:22px; background:#fff; box-shadow:7px 7px 0 var(--ink); }
.progress-dashboard-heading .practice-kicker { margin-bottom:5px; }
.progress-dashboard-heading h2 { margin:0; font-size:25px; letter-spacing:-.04em; }
.progress-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.progress-metrics article { position:relative; display:grid; align-content:center; min-height:96px; padding:13px 14px; overflow:hidden; border:1px solid #c9d0dc; border-radius:15px; background:#f8f9fc; }
.progress-metrics article:nth-child(2) { background:#fff0df; }
.progress-metrics article:nth-child(3) { background:#f1f9d8; }
.progress-metrics article:nth-child(4) { background:#edf2ff; }
.progress-metrics span { color:var(--ink-soft); font-size:9px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.progress-metrics strong { margin:2px 0 1px; color:var(--ink); font-family:var(--font-display); font-size:30px; line-height:1; }
.progress-metrics small { overflow:hidden; color:var(--ink-soft); font-size:10px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.progress-metrics .badge-metric::after { content:"★"; position:absolute; right:9px; top:7px; color:var(--orange); font-size:18px; transform:rotate(8deg); }
.menu-section { padding: 28px 0; border-top: 1px solid rgba(20,34,59,.15); }
.mode-section { position:relative; isolation:isolate; margin:8px 0 12px; padding:30px 24px 34px; overflow:hidden; border:2px solid var(--ink); border-radius:24px; background:#fffdf7; box-shadow:7px 7px 0 var(--ink); }
.mode-section::before { content:""; position:absolute; z-index:-1; left:-4%; right:8%; top:82px; height:23px; border-radius:60% 20% 50% 30%; background:var(--orange); opacity:.74; transform:rotate(-2.4deg); }
.mode-section::after { content:""; position:absolute; z-index:-1; left:18%; right:-7%; bottom:32px; height:19px; border-radius:30% 70% 30% 60%; background:var(--lime); opacity:.72; transform:rotate(2deg); }
.menu-section-heading { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; margin-bottom: 22px; }
.menu-section-heading > span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; background: var(--lime); font-size: 12px; font-weight: 900; }
.menu-section-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.menu-section-heading p { margin: 2px 0 0; color: var(--ink-soft); font-size: 13px; }
.category-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.category-option { display: grid; gap: 1px; min-width: 135px; padding: 13px 16px; border: 1px solid #bfc7d5; border-radius: 13px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.category-option strong { font-size: 14px; }
.category-option span { color: #788193; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.category-option.is-selected { border: 2px solid var(--ink); background: var(--blue-pale); box-shadow: 4px 4px 0 var(--ink); }
.category-option:disabled { cursor: default; opacity: .48; }
.game-mode-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
.game-mode-option { position:relative; display:grid; align-content:start; min-height:168px; padding:18px; overflow:hidden; border:2px solid var(--ink); border-radius:18px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; box-shadow:4px 4px 0 rgba(20,34,59,.3); transition:transform .18s ease,box-shadow .18s ease; }
.game-mode-option:nth-child(1){background:#edf2ff}.game-mode-option:nth-child(2){background:#fff0df}.game-mode-option:nth-child(3){background:#f1f9d8}.game-mode-option:nth-child(4){background:#f5ecff}
.game-mode-option::before { content:attr(data-step); position:absolute; right:14px; top:8px; color:rgba(20,34,59,.13); font:900 48px var(--font-display); transform:rotate(5deg); }
.game-mode-option::after { content:""; position:absolute; left:-12px; right:22px; top:62px; height:16px; border-radius:70% 30% 60% 40%; background:currentColor; opacity:.08; transform:rotate(-7deg); }
.game-mode-option:hover { transform: translateY(-2px); border-color: var(--blue); }
.game-mode-option.is-selected { border-color:var(--ink); box-shadow:6px 6px 0 var(--ink); transform:translate(-2px,-2px) rotate(-.5deg); }
.game-mode-icon { position:relative; z-index:1; display:grid; place-items:center; width:48px; height:48px; margin-bottom:20px; border:2px solid var(--ink); border-radius:50%; background:var(--lime); box-shadow:3px 3px 0 var(--ink); font-family:var(--font-display); font-size:15px; font-weight:900; transform:rotate(-4deg); }
.game-mode-option strong { font-family: var(--font-display); font-size: 19px; }
.game-mode-option small { margin-top: 7px; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.menu-start-row { position: sticky; z-index: 10; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 26px; padding: 18px 20px; border: 2px solid var(--ink); border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 8px 8px 0 var(--ink); backdrop-filter: blur(12px); }
.menu-start-row > div { display: grid; }
.menu-start-row strong { font-family: var(--font-display); font-size: 16px; }
.menu-start-row span { color: var(--ink-soft); font-size: 12px; }
.menu-start-row .button { flex: 0 0 auto; }
.practice-shell {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 680px);
  gap: clamp(30px, 6vw, 84px);
  align-items: center;
  justify-content: center;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 44px 0;
}
.practice-rail { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.practice-kicker { margin: 0 0 12px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.practice-rail h1 { max-width: 330px; margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: .96; letter-spacing: -.06em; }
.practice-rail > p:not(.practice-kicker) { max-width: 320px; margin: 20px 0 0; color: var(--ink-soft); }
.practice-score { display: flex; align-items: baseline; gap: 8px; margin-top: 28px; }
.practice-score strong { color: var(--blue); font-family: var(--font-display); font-size: 40px; }
.practice-score span { color: var(--ink-soft); font-size: 13px; font-weight: 800; }
.back-to-menu { align-self: flex-start; margin-bottom: 34px; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 900; cursor: pointer; }
.exercise-card {
  position: relative;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 13px 13px 0 var(--ink);
}
.exercise-progress { height: 8px; overflow: hidden; border-radius: 99px; background: #e3e7ef; }
.exercise-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--lime); transition: width .3s ease; }
.exercise-meta { display: flex; justify-content: space-between; margin-top: 12px; color: #737c8d; font-size: 12px; font-weight: 900; }
.exercise-tools { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-top:18px; }
.live-mode-switch { display:flex; align-items:center; gap:7px; padding:5px 8px 5px 10px; border:1px solid #cdd3df; border-radius:999px; background:#fff; color:var(--ink-soft); font-size:10px; font-weight:900; }
.live-mode-switch select { max-width:115px; border:0; background:transparent; color:var(--blue); font-size:10px; font-weight:900; cursor:pointer; }
.swap-direction { padding: 8px 12px; border: 1px solid #cdd3df; border-radius: 999px; background: var(--white); color: var(--blue); font-size: 11px; font-weight: 900; cursor: pointer; }
.swap-direction:hover { background: var(--blue-pale); }
.exercise-eyebrow { margin: 52px 0 4px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.exercise-verb { margin: 0 0 36px; font-family: var(--font-display); font-size: clamp(50px, 8vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.answer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.answer-option {
  min-height: 64px;
  padding: 12px 16px;
  border: 2px solid #cdd3df;
  border-radius: 15px;
  background: #f8f9fc;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.answer-option:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-pale); transform: translateY(-2px); }
.answer-option.is-correct { border-color: #4d7b16; background: #eaf7c7; }
.answer-option.is-wrong { border-color: #b83737; background: #ffe2df; }
.write-activity { display: grid; gap: 8px; }
.write-activity label { color: var(--ink-soft); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.write-activity > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.write-activity input { min-width: 0; min-height: 60px; padding: 12px 16px; border: 2px solid #cdd3df; border-radius: 14px; color: var(--ink); font: 800 20px var(--font-display); }
.write-activity input.is-correct { border-color: #4d7b16; background: #eaf7c7; }
.write-activity input.is-wrong { border-color: #b83737; background: #ffe2df; }
.flashcard-activity { display: grid; gap: 14px; }
.reveal-answer { min-height: 110px; border: 2px dashed #9ca7bb; border-radius: 18px; background: #f7f8fb; color: var(--blue); font-weight: 900; cursor: pointer; }
.revealed-answer { display: grid; place-items: center; min-height: 110px; border-radius: 18px; background: var(--blue-pale); }
.revealed-answer span { color: var(--ink-soft); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.revealed-answer strong { font-family: var(--font-display); font-size: 34px; }
.card-rating { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-rating button { min-height: 52px; border: 2px solid #cdd3df; border-radius: 13px; background: #fff; color: var(--ink); font-weight: 900; cursor: pointer; }
.card-rating button:last-child { border-color: #4d7b16; background: #eaf7c7; }
.verb-match-board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.verb-match-column { display: grid; gap: 10px; }
.verb-match-column button { min-height: 52px; padding: 9px; border: 2px solid #cdd3df; border-radius: 13px; background: #f8f9fc; color: var(--ink); font-weight: 900; cursor: pointer; }
.verb-match-column button.is-selected { border-color: var(--blue); background: var(--blue-pale); }
.verb-match-column button.is-matched { border-color: #4d7b16; background: #eaf7c7; opacity: .62; }
.verb-match-column button.is-wrong { border-color: #b83737; background: #ffe2df; }
.exercise-feedback { min-height: 30px; margin-top: 18px; font-weight: 900; }
.exercise-feedback.is-good { color: #3e6d0e; }
.exercise-feedback.is-bad { color: #a42c2c; }
.next-button { width: 100%; margin-top: 16px; }
.next-button[hidden] { display: none; }
.exercise-card.is-finished .answer-grid { display: none; }
.exercise-card.is-finished .exercise-verb { font-size: clamp(42px, 6vw, 64px); }

@media (max-width: 760px) {
  .practice-header { width: min(100% - 28px, 1180px); min-height: 70px; }
  .practice-header .brand small { display: none; }
  .practice-target { display: none; }
  .lab-menu { width: min(100% - 28px,680px); padding: 34px 0 54px; }
  .category-select-intro { margin-bottom:26px; }
  .category-select-intro h1 { font-size:clamp(40px,12vw,56px); }
  .category-select-intro > p:last-child { font-size:14px; }
  .verb-category-toggle { grid-template-columns:42px minmax(0,1fr) auto 16px; gap:10px; min-height:78px; padding:12px; }
  .category-index { width:38px; height:38px; }
  .category-name strong { font-size:20px; }
  .category-total { min-width:58px; }
  .category-total strong { font-size:20px; }
  .cefr-levels { padding:10px 12px 14px 54px; }
  .lab-menu-heading { grid-template-columns:1fr; min-height:0; margin-bottom:34px; border-radius:24px; box-shadow:7px 7px 0 var(--ink); }
  .comic-menu-copy { padding:28px 24px 24px; }
  .lab-menu-heading h1 { font-size:46px; }
  .comic-menu-copy > p:last-child { margin-top:16px; font-size:14px; }
  .comic-menu-scene { min-height:235px; }
  .comic-menu-scene img { right:-13%; bottom:-8%; width:118%; }
  .comic-bubble { top:22px; left:22px; max-width:210px; }
  .progress-dashboard { grid-template-columns:1fr; gap:14px; padding:18px; }
  .progress-dashboard-heading { display:flex; align-items:end; justify-content:space-between; gap:12px; }
  .progress-dashboard-heading h2 { font-size:21px; }
  .progress-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .category-grid { flex-wrap:nowrap; overflow-x:auto; padding:2px 2px 9px; scroll-snap-type:x proximity; scrollbar-width:none; }
  .category-grid::-webkit-scrollbar { display:none; }
  .category-option { flex:0 0 142px; scroll-snap-align:start; }
  .game-mode-grid { grid-template-columns: repeat(2,1fr); }
  .menu-start-row { position:static; align-items: stretch; flex-direction: column; gap: 13px; }
  .menu-start-row .button { width: 100%; }
  .practice-shell { grid-template-columns: 1fr; align-items: start; width: min(100% - 28px, 680px); min-height: auto; gap: 10px; padding: 14px 0 34px; }
  .practice-rail {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "back back" "kicker score" "title score";
    gap: 2px 14px;
    align-items: center;
    min-height: 0;
    overflow: visible;
  }
  .back-to-menu { grid-area: back; width: max-content; margin: 0 0 4px; padding: 5px 9px; font-size: 11px; }
  .practice-rail .practice-kicker { grid-area: kicker; margin: 0; font-size: 9px; line-height: 1.2; }
  .practice-rail h1 { grid-area: title; max-width: none; margin: 0; font-size: clamp(25px,7vw,32px); line-height: 1; white-space: nowrap; }
  .practice-rail > p:not(.practice-kicker) { display: none; }
  .practice-score { grid-area: score; display: grid; justify-items: end; gap: 0; margin: 0; }
  .practice-score strong { font-size: 29px; line-height: 1; }
  .practice-score span { font-size: 10px; }
  .exercise-card { min-height: calc(100svh - 180px); padding: 20px 18px; border-radius: 22px; box-shadow: 7px 7px 0 var(--ink); }
  .exercise-meta { margin-top: 8px; }
  .exercise-tools { margin-top:10px; }
  .live-mode-switch { padding:4px 7px; }
  .swap-direction { padding: 6px 9px; font-size: 10px; }
  .exercise-eyebrow { clear: both; margin-top: 24px; font-size: 10px; }
  .exercise-verb { margin-bottom: 24px; font-size: clamp(46px,15vw,68px); }
  .answer-option { min-height: 54px; }
  .exercise-feedback { min-height: 22px; margin-top: 12px; }
  .answer-grid { grid-template-columns: 1fr; }
  .write-activity > div { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .practice-header .brand > span:last-child { display: none; }
  .practice-header { min-height: 62px; }
  .practice-shell { padding-top: 10px; }
  .practice-rail h1 { font-size: 24px; }
  .exercise-card { min-height: calc(100svh - 162px); padding: 17px 15px; }
  .game-mode-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .game-mode-option { min-height:155px; padding:16px 14px; }
  .game-mode-option small { font-size:11px; }
  .mode-section { padding:28px 16px 34px; }
  .lab-menu-heading h1 { font-size:38px; }
  .comic-menu-scene { min-height:210px; }
  .comic-menu-scene img { right:-22%; width:128%; }
  .comic-bubble { max-width:180px; padding:13px 15px; }
  .comic-bubble strong { font-size:20px; }
  .progress-dashboard { margin-bottom:28px; padding:15px; }
  .progress-dashboard-heading { display:block; }
  .progress-dashboard-heading h2 { font-size:19px; }
  .progress-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .progress-metrics article { min-height:88px; }
}
