* { box-sizing: border-box; }
:root { font: 17px/1.43 "Trebuchet MS",system-ui,sans-serif; background: #e8f5ed; color: #163b35; }
body { margin: 0; min-height: 100svh; background: radial-gradient(ellipse at 90% 0%,#ffe5a7,transparent 48%),linear-gradient(135deg,#e5f6ec,#dff1f9); }
main { width: min(1100px,100%); margin: auto; padding: clamp(15px,4vw,44px); }
header { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin-bottom: 20px; }
header p, h1, h2 { margin: 0; }
h1 { font-size: clamp(1.8rem,5.7vw,3.7rem); line-height: 1.05; letter-spacing: -.045em; }
header p { margin-top: 7px; }
.series { font-weight: 850; color: #175d51; }
button { font: inherit; font-weight: 800; color: inherit; cursor: pointer; border: 1px solid #a7c3b6; border-radius: 12px; padding: 9px 14px; background: #f5fcf4; }
button:focus-visible { outline: 3px solid #1463ac; outline-offset: 3px; }
button:disabled { cursor: default; }
button:disabled:not(.choice) { opacity: .55; }
.work { display: grid; grid-template-columns: minmax(160px,220px) minmax(0,1fr); gap: 13px; align-items: start; }
nav { display: grid; gap: 8px; }
nav button { text-align: start; background: #fff9e6; }
nav button[aria-current] { background: #185e51; color: #fff; border-color: #185e51; }
.paper { padding: clamp(13px,4vw,27px); background: #fffdf5; border: 2px solid #fff; border-radius: 23px; box-shadow: 0 12px 35px #1b4f4c24; text-align: center; }
.progress { display: flex; justify-content: space-between; gap: 7px; color: #366359; font-size: .87rem; }
progress { width: 100%; accent-color: #218365; height: 11px; margin-bottom: 10px; }
h2 { font-size: clamp(1.25rem,4vw,2rem); }
.instruction { margin: 4px 0 11px; }
.clue { display: grid; place-items: center; gap: 4px; min-height: 78px; }
.clue img { width: min(132px,48%); height: 110px; object-fit: contain; border-radius: 15px; mix-blend-mode: multiply; }
.clue p { margin: 0; font-weight: 850; }
.large { font-size: clamp(1.85rem,7vw,3.8rem); }
.options { display: grid; grid-auto-columns: minmax(0,1fr); grid-auto-flow: column; gap: 9px; margin-top: 14px; }
.choice { min-height: 65px; background: #eef9ed; font-size: clamp(1.1rem,4vw,1.8rem); padding: 5px; }
.choice img { display: block; width: 100%; height: clamp(58px,14vw,120px); object-fit: contain; mix-blend-mode: multiply; }
.choice.correct { background: #d8f4bf; border-color: #39834a; }
.choice.retry { background: #ffead7; border-color: #ca8757; }
#feedback { min-height: 1.5em; margin: 12px 0; font-weight: 800; }
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.primary { border-color: #b88628; background: #ffd679; color: #3b2e13; }
#worksheet { display: none; }
@media(max-width:660px) { header { align-items: flex-start; flex-direction: column; } .work { grid-template-columns: 1fr; } nav { grid-template-columns: 1fr 1fr; } nav button { padding: 7px; font-size: .8rem; } }
@media print {
  :root,body { background: #fff; color: #000; font: 11pt/1.25 system-ui,sans-serif; }
  main { display: none; }
  #worksheet { display: block; }
  #worksheet h1 { font-size: 22pt; }
  #worksheet h2 { font-size: 15pt; margin-top: 12pt; break-after: avoid; }
  #worksheet p { margin: 4pt 0; }
  .print-questions { padding-left: 24pt; }
  .print-questions li { break-inside: avoid; margin-bottom: 6pt; }
  .print-options { display: inline-flex; gap: 12pt; align-items: center; margin-left: 12pt; }
  #worksheet img { width: 32pt; height: 32pt; object-fit: contain; vertical-align: middle; }
}

.word-gap { display: inline-grid; place-items: center; min-width: 1.1em; border: 2px dashed #358374; border-radius: .22em; margin-right: .05em; color: #17634f; }
.word-gap.over { background: #dcf4be; }
@media screen {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'DM Sans', "Segoe UI", system-ui, sans-serif;
    color: #163b35;
    background: #7cc9f7 url("assets/treehouse-bg.webp?v=th4") center bottom / cover no-repeat fixed;
  }
  main {
    width: min(1260px, 100%);
    margin: 0 auto;
    padding: clamp(12px, 2vh, 22px) clamp(12px, 2.2vw, 28px) clamp(24px, 4vh, 40px);
  }

  /* --- Header: Top-Left Purple 3D Back Button + Center Wooden/Crimson Signboard --- */
  header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0;
    margin-bottom: clamp(14px, 2vh, 20px);
    text-shadow: none;
  }
  .header-back-btn {
    grid-column: 1;
    justify-self: start;
    position: relative;
    inset: auto;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #9b3cf8 0%, #731de0 58%, #5711b5 100%);
    border: 1.5px solid #bc85ff;
    border-bottom: 4.5px solid #3c0982;
    color: #ffffff;
    text-decoration: none;
    font: 700 14px/1 'Fredoka', 'Manrope', sans-serif;
    letter-spacing: 0.2px;
    white-space: nowrap;
    cursor: pointer;
    text-shadow: 0 1.5px 2px rgba(0, 0, 0, 0.28);
    box-shadow: 0 7px 15px rgba(72, 14, 145, 0.32), inset 0 2px 3px rgba(255, 255, 255, 0.34);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  }
  .header-back-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    color: #ffffff;
  }
  .header-center {
    grid-column: 2;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
  }
  header h1 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px 7px;
    border-radius: 999px;
    background:
      repeating-linear-gradient(
        180deg,
        rgba(255, 232, 188, 0.14) 0px,
        rgba(255, 232, 188, 0.14) 3px,
        rgba(142, 72, 18, 0.08) 3px,
        rgba(142, 72, 18, 0.08) 6px
      ),
      linear-gradient(180deg, #f2b76e 0%, #d9873b 50%, #b46120 100%);
    border: 2px solid #9c4f16;
    border-bottom: 5px solid #78390c;
    box-shadow: inset 0 2px 2px rgba(255, 243, 214, 0.72), 0 10px 22px rgba(64, 30, 6, 0.24);
    font-size: 1rem;
    letter-spacing: 0;
  }
  header h1 span {
    position: relative;
    display: inline-block;
    padding: 6px 32px 7px;
    border-radius: 999px;
    background: linear-gradient(180deg, #df1923 0%, #bc1019 56%, #910a11 100%);
    border: 2px solid #7d080e;
    box-shadow: inset 0 2px 4px rgba(255, 160, 160, 0.28), inset 0 -2.5px 0 rgba(78, 4, 9, 0.55);
    font: 700 clamp(1.18rem, 1.85vw, 1.58rem)/1.18 'Fredoka', 'Manrope', sans-serif;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 0 2px 3px rgba(72, 5, 8, 0.42);
  }
  header h1 span::before {
    content: "";
    position: absolute;
    inset: 3.5px;
    border-radius: 999px;
    border: 1.5px dashed rgba(253, 224, 115, 0.8);
    pointer-events: none;
  }
  header p {
    margin: 0;
    display: inline-block;
    padding: 4px 18px 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #fff6e5 100%);
    border: 1.5px solid #ead0b5;
    border-bottom: 3px solid #dfb492;
    box-shadow: 0 4px 12px rgba(84, 38, 10, 0.12), inset 0 1px 2px #ffffff;
    font: 700 clamp(0.76rem, 0.98vw, 0.88rem)/1.25 'Manrope', sans-serif;
    color: #5c2d10;
  }

  /* --- Main Two-Column Practice Workspace --- */
  .work {
    display: grid;
    grid-template-columns: minmax(245px, 290px) minmax(0, 1fr);
    gap: clamp(14px, 1.6vw, 20px);
    align-items: start;
  }
  .sidebar,
  .paper {
    min-width: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border: 2.5px solid #f4c86a;
    border-bottom: 6px solid #df9f36;
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(60, 35, 8, 0.18), inset 0 2px 4px #ffffff;
    padding: clamp(13px, 1.5vw, 18px);
  }
  .sidebar {
    position: sticky;
    top: 14px;
    max-height: calc(100svh - 28px);
    overflow-y: auto;
  }
  .cover {
    display: grid;
    min-height: 82px;
    align-content: center;
    border-radius: 16px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #0d6e57 0%, #159976 100%);
    border: 1.5px solid #34d399;
    border-bottom: 4px solid #064e3b;
    color: #fff6cf;
    box-shadow: 0 8px 18px rgba(6, 78, 59, 0.2), inset 0 1.5px 2px rgba(255, 255, 255, 0.25);
  }
  .cover strong {
    font: 700 clamp(1.35rem, 1.8vw, 1.65rem)/1.1 'Fredoka', sans-serif;
    letter-spacing: .12em;
    color: #fde68a;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.22);
  }
  .cover span {
    font-size: .8rem;
    font-weight: 700;
    color: #ecfdf5;
    margin-top: 2px;
  }
  .sidebar h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 12px 2px 9px;
  }
  #stations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #stations button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 9px 12px;
    font: 700 .85rem/1.25 'DM Sans', sans-serif;
    color: #1e293b;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
    border: 1.5px solid #e7d8b9;
    border-bottom: 3.5px solid #d4bc8e;
    border-radius: 14px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  }
  #stations button:hover:not([aria-current]) {
    transform: translateY(-1.5px);
    border-color: #93c5fd;
    background: #f8fbff;
  }
  #stations small {
    flex-shrink: 0;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    font-weight: 800;
    font-size: .75rem;
  }
  #stations button[aria-current] {
    background: linear-gradient(180deg, #2b9bf9 0%, #0d74e7 58%, #0758bd 100%);
    border: 1.5px solid #7ec5ff;
    border-bottom: 4px solid #053d87;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
    box-shadow: 0 6px 14px rgba(8, 72, 160, 0.25), inset 0 1.5px 2px rgba(255, 255, 255, 0.34);
  }
  #stations button[aria-current] small {
    background: rgba(255, 255, 255, 0.95);
    color: #0758bd;
  }
  .score {
    margin: 12px 0 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid #bbf7d0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 9px;
  }
  .score strong {
    font: 800 .98rem/1 'Manrope', sans-serif;
    color: #14532d;
  }
  .score span {
    font-size: .8rem;
    font-weight: 700;
    color: #166534;
  }
  .score progress {
    margin: 2px 0 0;
    width: 100%;
    height: 9px;
    border-radius: 999px;
    accent-color: #16a34a;
  }
  #check {
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 58%, #15803d 100%);
    border: 1.5px solid #86efac;
    border-bottom: 4px solid #0f5328;
    color: #ffffff;
    font: 700 .9rem/1 'Fredoka', 'Manrope', sans-serif;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    box-shadow: 0 6px 14px rgba(21, 128, 61, 0.24), inset 0 1.5px 2px rgba(255, 255, 255, 0.34);
    transition: transform 0.16s ease, filter 0.16s ease;
  }
  #check:hover { transform: translateY(-1.5px); filter: brightness(1.05); }
  .tools {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 7px;
    margin: 8px 0;
  }
  .tools button {
    min-width: 0;
    min-height: 39px;
    padding: 7px 10px;
    border-radius: 999px;
    font: 700 .8rem/1.1 'DM Sans', sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border: 1.5px solid #cbd5e1;
    border-bottom: 3.5px solid #94a3b8;
    color: #1e293b;
    white-space: nowrap;
    transition: transform 0.16s ease, background 0.16s ease;
  }
  .tools button:hover { transform: translateY(-1px); background: #f8fafc; }
  .tools button[aria-pressed="true"] {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #60a5fa;
    border-bottom-color: #2563eb;
    color: #1d4ed8;
  }
  #print {
    width: 100%;
    min-height: 42px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fc9526 0%, #e4690c 58%, #bf4e06 100%);
    border: 1.5px solid #fdbe72;
    border-bottom: 4px solid #8c3503;
    color: #ffffff;
    font: 700 .86rem/1 'Fredoka', 'Manrope', sans-serif;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    box-shadow: 0 6px 14px rgba(155, 58, 4, 0.22), inset 0 1.5px 2px rgba(255, 255, 255, 0.34);
    transition: transform 0.16s ease, filter 0.16s ease;
  }
  #print:hover { transform: translateY(-1.5px); filter: brightness(1.05); }

  /* --- Right Worksheet Paper & Question Cards --- */
  .paper { text-align: start; }
  .section-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: clamp(13px, 1.8vw, 17px) clamp(14px, 2vw, 20px);
    min-height: 96px;
    border-radius: 18px;
    background:
      linear-gradient(115deg, rgba(13, 92, 72, 0.94) 0%, rgba(21, 138, 106, 0.88) 100%),
      url("assets/forest.png") center 40% / cover;
    border: 1.5px solid rgba(52, 211, 153, 0.55);
    border-bottom: 4.5px solid #064e3b;
    box-shadow: 0 8px 20px rgba(6, 78, 59, 0.16);
    color: white;
  }
  #section-count {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: .74rem;
    font-weight: 800;
    color: #fde68a;
  }
  .section-banner h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 4px 0 2px;
  }
  .section-banner p {
    margin: 0;
    font-size: clamp(.8rem, 1.05vw, .89rem);
    color: #ecfdf5;
  }
  .arrows {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    grid-template-columns: none;
  }
  .arrows button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-bottom: 3px solid rgba(0, 0, 0, 0.25);
    font-size: 1rem;
    text-align: center;
    transition: transform 0.16s ease, background 0.16s ease;
  }
  .arrows button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
  }
  .notice {
    margin: 12px 0;
    padding: 9px 14px;
    border-radius: 12px;
    border: 1.5px solid #bae6fd;
    border-left: 4.5px solid #0284c7;
    background: linear-gradient(90deg, #f0f9ff 0%, #f8fafc 100%);
    color: #0c4a6e;
    font-size: .86rem;
    font-weight: 700;
  }
  #challenge { display: grid; gap: 11px; }
  .question {
    padding: clamp(11px, 1.5vw, 15px) clamp(12px, 1.8vw, 17px);
    border: 1.5px solid #e2ece9;
    border-bottom: 4px solid #cbdcd6;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
  }
  .question:hover {
    border-color: #bae6fd;
    box-shadow: 0 8px 18px rgba(14, 116, 144, 0.08);
  }
  .question-number {
    display: inline-block;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: .73rem;
    font-weight: 800;
  }
  .task {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 8px 0 11px;
  }
  .task h3 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(.94rem, 1.35vw, 1.08rem);
    font-weight: 800;
    line-height: 1.32;
    color: #0f172a;
    margin: 0;
    flex: 1;
    min-width: 0;
  }
  .task img {
    width: clamp(56px, 5.2vw, 68px);
    height: clamp(56px, 5.2vw, 68px);
    padding: 6px;
    border-radius: 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.05);
    flex-shrink: 0;
    object-fit: contain;
  }
  .hear {
    flex-shrink: 0;
    font: 700 .78rem/1 'DM Sans', sans-serif;
    padding: 7px 12px 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 1.5px solid #93c5fd;
    border-bottom: 3px solid #3b82f6;
    color: #1e40af;
    transition: transform 0.15s ease, filter 0.15s ease;
  }
  .hear::before {
    content: "🔊 ";
  }
  .hear:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
  }
  .choices {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
  }
  .choice {
    min-height: 44px;
    min-width: 76px;
    padding: 7px 16px 8px;
    font: 700 1.02rem/1.1 'Fredoka', 'Manrope', sans-serif;
    color: #0f172a;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    border: 1.5px solid #cbd5e1;
    border-bottom: 4px solid #94a3b8;
    border-radius: 14px;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  }
  .choice:hover {
    transform: translateY(-2px);
    border-color: #60a5fa;
    background: #ffffff;
  }
  .choice img {
    width: clamp(48px, 7vw, 76px);
    height: clamp(46px, 6.2vw, 64px);
    margin: 0 auto;
  }
  .choice[aria-pressed=true] {
    border-color: #3b82f6;
    border-bottom-color: #1d4ed8;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
  }
  .choice.correct {
    border-color: #22c55e;
    border-bottom-color: #15803d;
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    color: #14532d;
  }
  .choice.wrong {
    border-color: #f43f5e;
    border-bottom-color: #be123c;
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
    color: #881337;
  }
  .answer-note {
    margin: 7px 0 0;
    font-size: .82rem;
    font-weight: 800;
    color: #0f5328;
  }
  .answer-note.wrong-note {
    color: #be123c;
  }
  .answer-note:empty { display: none; }
  .gap {
    display: inline-grid;
    width: 1.45em;
    min-height: 1.35em;
    place-items: center;
    border: 2px dashed #0d9488;
    background: #f0fdfa;
    color: #0f766e;
    border-radius: 6px;
    margin-right: 3px;
  }
}

/* Large Desktop Screens (1600px+) */
@media screen and (min-width: 1600px) {
  main {
    width: min(1360px, 92vw);
  }
  .work {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
  }
}

/* Standard Laptops (992px - 1199.98px) */
@media screen and (min-width: 992px) and (max-width: 1199.98px) {
  main {
    padding: 12px 16px 26px;
  }
  .work {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 14px;
  }
}

/* Tablets & Compact Laptops (<= 991.98px) */
@media screen and (max-width: 991.98px) {
  html, body {
    background-attachment: scroll;
  }
  main {
    width: 100%;
    padding: 12px 14px 28px;
  }
  header {
    padding: 0;
  }
  .work {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .cover {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  #stations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* All Mobile Phones (<= 640px) */
@media screen and (max-width: 640px) {
  main {
    padding: 10px 10px 24px;
  }
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin-bottom: 12px;
    gap: 8px;
  }
  .header-back-btn {
    position: static;
    align-self: flex-start;
    padding: 7px 15px 8px;
    font-size: 13px;
    border-bottom-width: 3.5px;
  }
  header h1 {
    padding: 5px 10px 6px;
  }
  header h1 span {
    padding: 5px 22px 6px;
    font-size: clamp(1.02rem, 4.6vw, 1.25rem);
  }
  header p {
    font-size: .76rem;
    padding: 4px 14px;
  }
  .sidebar,
  .paper {
    border-width: 2px;
    border-bottom-width: 5px;
    border-radius: 20px;
    padding: 12px;
  }
  .cover {
    padding: 10px 12px;
    min-height: 54px;
  }
  .cover strong {
    font-size: 1.25rem;
  }
  #stations {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  #stations button {
    padding: 9px 11px;
    font-size: .85rem;
  }
  .tools button {
    white-space: normal;
    text-align: center;
  }
  .section-banner {
    min-height: 0;
    padding: 12px;
    align-items: center;
  }
  .arrows button {
    width: 36px;
    height: 36px;
  }
  .task {
    flex-wrap: wrap;
    gap: 9px;
  }
  .task img {
    width: 54px;
    height: 54px;
  }
  .task h3 {
    flex: 1 1 calc(100% - 68px);
    font-size: .95rem;
  }
  .hear {
    margin-left: auto;
  }
  .choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: 8px;
  }
  .choice {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 7px 8px 8px;
    font-size: 1rem;
  }
  .choice img {
    width: 54px;
    height: 48px;
  }
}

/* Extra-Small Phones (320px - 374px) */
@media screen and (max-width: 374px) {
  main {
    padding: 8px 8px 20px;
  }
  .sidebar,
  .paper {
    padding: 10px;
    border-radius: 16px;
  }
  header h1 span {
    padding: 5px 16px 6px;
    font-size: .96rem;
  }
  .tools {
    grid-template-columns: 1fr;
  }
  .choices {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 6px;
  }
  .choice img {
    width: 48px;
    height: 44px;
  }
}

/* Mobile Landscape Viewports */
@media screen and (max-height: 540px) and (orientation: landscape) {
  #stations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}