:root { color-scheme: light; --ink: #103b79; --white: #f6fcff; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; color: var(--white); background: #174e98; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible, .scene:focus-visible { outline: 3px solid #ffdd78; outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; background: white; color: var(--ink); padding: 15px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.nav { position: relative; z-index: 40; min-height: 76px; padding: 12px 3%; display: flex; align-items: center; gap: 28px; background: #103b79; border-bottom: 1px solid #72b8e56b; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 750; white-space: nowrap; }
.brand small { display: block; margin-top: 4px; font-size: 10px; font-weight: 400; letter-spacing: 1px; }
.brand-mark { display: block; flex: none; width: 44px; height: 44px; border-radius: 50%; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-word { display: block; height: 32px; width: auto; }
.nav nav { display: flex; flex: 1; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 700; }
.nav nav a { padding: 12px 0; }
.nav nav a:hover, .nav nav a[aria-current] { color: #ffe59b; }
.start-link { border-radius: 24px; padding: 13px 20px; background: #fff4ce; color: #17447d; font-size: 15px; font-weight: 800; white-space: nowrap; }
.start-link span { margin-left: 12px; }
.universe { isolation: isolate; position: relative; max-width: 1920px; margin: auto; min-height: 780px; overflow: hidden; background: radial-gradient(ellipse at 58% 55%, #5db7e9 0, #2775bd 50%, #123d80 100%); }
.sky { position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(circle, #dcf5ff 1px, transparent 2px), radial-gradient(circle, #b0d6ff 1px, transparent 2px); background-size: 117px 97px, 173px 151px; background-position: 24px 8px, 70px 49px; }
.sky::after { content: ""; position: absolute; inset: 0; opacity: 1; background: url("../assets/image%20for%20Web%20Ui/08_Background.png") center bottom / 100% auto no-repeat; }
.intro { position: absolute; left: 2%; top: 14px; width: 26%; z-index: 25; pointer-events: none; }
h1 { margin: 0; }
.logo-art { display: block; width: 100%; height: auto; margin-top: -8%; margin-bottom: -12%; }
/* Cụm câu giới thiệu: nằm giữa khoảng trời phía trên, font Comfortaa Bold như các tiêu đề khác */
.intro-tag { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 25; pointer-events: none; text-align: center; width: clamp(300px, 40vw, 820px); }
/* Ảnh chữ "Học vui - Khám phá nhiều" (có viền trong suốt quanh chữ nên kéo bù lề), canh giữa */
.tagline-art { display: block; width: 100%; height: auto; margin: -9% 0; filter: drop-shadow(0 6px 10px #11407a55); }
.tagline { margin: 0; font-family: "Comfortaa", "Baloo 2", "Segoe UI", system-ui, sans-serif; font-weight: 700; font-size: clamp(24px, 2.9vw, 44px); line-height: 1.3; text-shadow: 0 2px 8px #113b78; }
.intro-note { margin: 12px 0 0; font-family: "Comfortaa", "Baloo 2", "Segoe UI", system-ui, sans-serif; font-weight: 700; font-size: 18px; color: #e2f5ff; text-shadow: 0 2px 8px #113b78; }
.map-area { position: relative; width: 80%; margin-left: 19%; padding-top: 24px; }
.scene { position: relative; width: 100%; aspect-ratio: 1.48; min-height: 580px; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; border-radius: 50%; isolation: isolate; }
.scene.is-ready { cursor: grab; }
.scene.is-dragging, .scene.is-dragging a { cursor: grabbing; }
.island.is-entering { visibility: hidden; }
.flight { position: fixed; inset: 0; z-index: 2147483647; pointer-events: all; overflow: hidden; }
.flight-ship { position: absolute; max-width: none; transform-origin: 50% 50%; will-change: transform; backface-visibility: hidden; }
.flight-veil { position: absolute; inset: 0; background: #174e98; opacity: 0; will-change: opacity; }
.bridges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bridge-glow { fill: none; stroke: #a7dbff; stroke-width: 17; }
.bridge-core { fill: none; stroke: #e8faff; stroke-width: 7; }
.island { position: absolute; left: var(--x); top: var(--y); width: 26%; z-index: var(--depth); transform: translate(-50%, -65%) scale(var(--scale, 1)); transform-origin: 50% 65%; -webkit-user-drag: none; }
.island img { width: 100%; height: auto; display: block; pointer-events: none; }
.island-label { position: absolute; left: 50%; top: 8%; transform: translate(-50%, -65%) rotate(-4deg); width: max-content; max-width: 115%; padding: 4px 10px; border: 0; border-radius: 12px; color: #fff; background: #0b2a5c4d; text-align: center; font-size: clamp(13px, 1.13vw, 18px); font-weight: 800; line-height: 1.2; text-shadow: 0 1px 2px #0b2a5cee, 0 0 8px #0b2a5cbb; transition: color .2s, background-color .2s, text-shadow .2s; }
.island-label small { position: absolute; bottom: calc(100% - 2px); left: 50%; transform: translateX(-50%); width: max-content; padding: 0 6px; background: transparent; color: var(--accent, #91dfff); font-size: .72em; font-weight: 700; text-shadow: 0 1px 2px #0b2a5cee, 0 0 8px #0b2a5cbb; }
.island-label > span { display: block; margin-top: 5px; font-size: .75em; font-weight: 500; }
/* Khung bỏ đi cho thoáng; rê chuột / bàn phím chỉ đổi màu rất nhẹ (chữ ngả vàng kem, nền mờ) để biết chỗ đó bấm được */
.island:hover .island-label, .island:focus-visible .island-label { color: #fff0b8; background: #0b2a5c80; }
.island:focus-visible .island-label { outline: 2px solid #ffffff80; outline-offset: 2px; }
.island:focus-visible { z-index: 150 !important; border-radius: 40%; }
.island-center { width: 43%; }
.island-center .island-label { top: 66%; --accent: #a4dfff; }
.island-center img { clip-path: none; }
.island-learn img { clip-path: none; }
.island-learn .island-label { top: 15%; }
.island-studio { --accent: #ffc499; }
.island-studio img { clip-path: none; }
.island-studio .island-label { top: 14%; }
.island-lab { --accent: #bdb1ff; }
.island-lab img { clip-path: none; }
.island-lab .island-label { top: 22%; }
.island-profile { --accent: #9cdec0; }
.island-profile img { clip-path: none; }
.island-profile .island-label { top: 10%; }
.island-mission { --accent: #ffabd0; }
.island-mission img { clip-path: none; }
.island-mission .island-label { top: 12%; }
.scene-controls { position: relative; z-index: 30; text-align: center; margin: 4px auto 20px; }
.scene-controls p, .no-script { font-size: 12px; text-shadow: 0 1px 5px #123c80; }
.control-buttons { display: inline-flex; gap: 6px; padding: 5px; background: #103b7966; border: 0; border-radius: 30px; }
.control-buttons button { min-width: 44px; min-height: 44px; padding: 8px 15px; border: 0; border-radius: 24px; color: #fff; background: transparent; cursor: pointer; font-size: 12px; }
.control-buttons button:hover { background: #ffffff1c; }
.me-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 6px; border: 0; border-radius: 26px; background: #164d9666; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .2s; }
.me-chip:hover { background: #ffffff1f; }
.me-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e9f8ff; font-size: 20px; }
.me-name { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-stars { color: #ffe59b; }
.today { padding: 22px max(4%, calc((100% - 1320px) / 2)) 26px; background: #eff9ff; color: var(--ink); }
.today-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.today-head h2 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); }
.today-head p { margin: 0; font-size: 15px; color: #3b6796; }
.today-grid { display: grid; grid-template-columns: 1.3fr 1.3fr .8fr 1.5fr; gap: 16px; }
.tcard { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 172px; padding: 18px; border-radius: 22px; background: #fff; border: 2px solid #c6e3f4; box-shadow: 0 6px 18px #174e9818; }
.tcard-label { font-size: 13px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #3b6796; }
.tcard-label b { margin-left: 6px; padding: 2px 8px; border-radius: 10px; background: #ffe59b; color: #5b4300; letter-spacing: 0; }
.tcard strong { font-size: 19px; line-height: 1.3; }
.tcard-sub { font-size: 15px; line-height: 1.5; color: #35597f; }
.tcard-continue { background: #fff4ce; border-color: #ffd36b; transition: transform .15s ease, box-shadow .15s ease; }
.tcard-continue:hover { transform: translateY(-3px); box-shadow: 0 12px 26px #b7841c33; }
.tcard-go { margin-top: auto; align-self: flex-start; padding: 10px 18px; border-radius: 22px; background: #1762d1; color: #fff; font-size: 15px; font-weight: 800; }
.big-number { font-size: 44px !important; line-height: 1; color: #e29a00; }
.tcard-stars { background: #fffbe9; }
.mission-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mission { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 14px; background: #eff9ff; font-size: 15px; }
.mission-check { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #86b9dc; background: #fff; color: #fff; font-weight: 800; }
.mission.is-done { background: #dff7e6; }
.mission.is-done .mission-check { background: #2fb45a; border-color: #2fb45a; }
.mission.is-done .mission-text { text-decoration: line-through; color: #4c7d5c; }
.mission-text { flex: 1; }
a.mission-text:hover { text-decoration: underline; }
.mission-reward { font-weight: 800; color: #e29a00; }
.tcard-teacher { flex-direction: row; align-items: flex-end; gap: 6px; padding: 0 16px 0 8px; overflow: hidden; background: #ffeef6; border-color: #ffc4dc; }
.teacher-art { width: 34%; max-width: 110px; align-self: flex-end; height: auto; }
.teacher-say { align-self: center; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: #fff; font-size: 16px; line-height: 1.5; box-shadow: 0 4px 14px #d9558b22; }
.teacher-say p { margin: 0; }
.say-btn { margin-top: 10px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 22px; background: #d9558b; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
.grownups { padding: 40px max(5%, calc((100% - 1320px) / 2)) 44px; background: #123d80; color: #e6f3ff; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: 2px; font-weight: 800; color: #a9d4ff; }
.grownups h2 { margin: 8px 0 0; font-size: clamp(24px, 2.5vw, 34px); letter-spacing: -.5px; color: #fff; }
.section-heading > p { margin: 0; font-size: 16px; line-height: 1.7; color: #cfe6ff; }
.grown-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 22px; }
.gcard { display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 20px; border-radius: 20px; background: #1b4d94; border: 2px solid #3f78c4; transition: transform .15s ease, background .15s ease; }
.gcard:hover { transform: translateY(-3px); background: #235ba8; }
.gcard-tag { align-self: flex-start; padding: 4px 12px; border-radius: 12px; background: #dcefff; color: #14417f; font-size: 13px; font-weight: 800; }
.gcard strong { font-size: 20px; color: #fff; }
.gcard p { margin: 0; font-size: 15px; line-height: 1.5; color: #cfe6ff; }
.sheet { width: min(520px, calc(100% - 32px)); padding: 24px; border: 0; border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 24px 70px #0a2a5c88; }
.sheet::backdrop { background: #0a2a5ca8; }
.sheet h2 { margin: 0 0 14px; font-size: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; font-size: 16px; font-weight: 700; }
.field input[type="text"] { min-height: 48px; padding: 8px 14px; border: 2px solid #9fcbe8; border-radius: 14px; font: inherit; font-size: 18px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-face { display: grid; place-items: center; min-width: 56px; min-height: 48px; padding: 6px 14px; border: 2px solid #b7d8eb; border-radius: 14px; background: #f3faff; font-size: 16px; font-weight: 800; }
.choice-avatar { font-size: 28px; }
.choice input:checked + .choice-face { border-color: #1762d1; background: #dcebff; box-shadow: 0 0 0 3px #1762d133; }
.choice input:focus-visible + .choice-face { outline: 3px solid #ffb400; outline-offset: 2px; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-main, .btn-quiet { min-height: 48px; padding: 10px 22px; border-radius: 24px; border: 0; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.btn-main { background: #1762d1; color: #fff; }
.btn-quiet { background: #e6f1fa; color: #1a4f94; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
.panel-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #e6f1fa; color: #1a4f94; font-size: 18px; cursor: pointer; }
.panel-who { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; font-size: 20px; font-weight: 800; }
.panel-avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e9f8ff; font-size: 32px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 16px; background: #fffbe9; border: 2px solid #ffe08a; text-align: center; }
.stat strong { font-size: 26px; color: #e29a00; }
.stat span { font-size: 14px; color: #5b4300; }
.panel-note { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: #35597f; }
[hidden] { display: none !important; }
.tcard-review { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-height: 0; padding: 14px 18px; background: #ffece0; border-color: #ffb98a; }
.tcard-review .tcard-label { flex-basis: 100%; }
.tcard-review .tcard-sub { flex: 1 1 240px; }
.tcard-review .tcard-go { margin: 0 0 0 auto; padding: 10px 18px; border-radius: 22px; background: #d9702a; color: #fff; font-size: 15px; font-weight: 800; }
.say-listen { margin-left: 0; background: #1762d1; }
.say-note { margin: 8px 0 0 !important; font-size: 14px; color: #8a4b12; }
.say-note[hidden] { display: none; }
.promises { display: flex; flex-wrap: wrap; gap: 8px 12px; list-style: none; margin: 22px 0 0; padding: 0; }
.promises li { padding: 8px 14px; border-radius: 16px; background: #1b4d94; border: 1px solid #3f78c4; font-size: 14px; font-weight: 700; color: #dff0ff; }
.promises li::before { content: "✓ "; color: #7be0a0; }
.sheet-wide { width: min(640px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; }
select#ob-textbook { min-height: 48px; padding: 8px 12px; border: 2px solid #9fcbe8; border-radius: 14px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.gate-error { margin: 0 0 12px; color: #c0392b; font-weight: 700; }
.report-title { margin: 8px 0 12px; font-size: 20px; }
.report-sub { margin: 20px 0 8px; font-size: 16px; color: #3b6796; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 8px; height: 150px; margin-top: 14px; padding: 8px 4px 0; }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.bar { width: 70%; max-width: 36px; border-radius: 8px 8px 0 0; background: #4d9be0; }
.bar-num { font-size: 13px; font-weight: 800; color: #1a4f94; }
.bar-day { font-size: 13px; color: #3b6796; }
.topic-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.topic { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 12px; background: #eff9ff; font-size: 15px; }
.topic-name { flex: 1; font-weight: 700; }
.topic-count { color: #3b6796; }
.topic-chip { padding: 3px 10px; border-radius: 10px; background: #dff7e6; color: #1f7a3d; font-size: 13px; font-weight: 800; }
.topic-chip.is-weak { background: #ffe1d6; color: #b3441a; }
.report-tip { padding: 12px 14px; border-radius: 14px; background: #fffbe9; border: 2px solid #ffe08a; margin-top: 0; }
.panel-fine { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: #5b7a99; }
@media (min-width: 1600px) { .scene { min-height: 780px; } }
@media (max-width: 1050px) {
  .nav { flex-wrap: wrap; gap: 12px; justify-content: space-between; }
  .nav nav { order: 3; flex-basis: 100%; justify-content: space-between; }
  .universe { min-height: 710px; }
  .map-area { width: 86%; margin-left: 13%; padding-top: 90px; }
  .scene { min-height: 510px; }
  .intro { width: 27%; }
  .intro-note { display: none; }
  .island-label { padding: 6px 8px; }
  .today-grid { grid-template-columns: 1fr 1fr; }
  .grown-cards { grid-template-columns: 1fr 1fr; }
  .me-name { display: none; }
}
@media (min-width: 681px) {
  .universe { max-width: none; height: calc(100svh - 76px); min-height: 620px; max-height: 1000px; }
  .map-area { position: absolute; inset: 0; width: auto; margin: 0; padding: 0; }
  .scene { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; border-radius: 0; }
  .island { width: min(27%, 47svh); }
  .island-center { width: min(40%, 76svh); }
  .scene-controls { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); margin: 0; }
  .sky::after { background-size: cover; background-position: center bottom; }
}
@media (max-width: 680px) {
  .nav { padding: 12px 16px; }
  .brand { font-size: 12px; }
  .brand small { font-size: 9px; letter-spacing: 0; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-word { height: 28px; }
  .nav { min-height: 0; gap: 4px 12px; }
  .start-link { display: none; }
  .nav nav { gap: 0 12px; font-size: 13px; justify-content: center; }
  .nav nav a { padding: 10px 0; }
  .today { padding: 18px 16px 22px; }
  .today-head { flex-direction: column; gap: 2px; }
  .today-grid { grid-template-columns: 1fr; }
  .tcard { min-height: 0; }
  .tcard-teacher { min-height: 150px; }
  .universe { min-height: 0; }
  .intro { position: relative; display: flex; align-items: center; width: 100%; left: 0; top: 0; padding: 8px 12px 0; }
  .intro h1 { width: 54%; }
  .intro-tag { position: relative; left: auto; top: auto; transform: none; width: min(92%, 460px); max-width: none; margin: 0 auto; padding: 0; }
  .tagline { font-size: clamp(17px, 4vw, 24px); }
  .map-area { width: 100%; margin: 0; padding-top: 8px; }
  .scene { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; align-items: start; aspect-ratio: auto; min-height: 0; padding: 20px 16px 24px; border-radius: 0; touch-action: pan-y pinch-zoom; cursor: default; }
  .scene.is-ready { cursor: default; }
  .bridges { display: none; }
  .island { position: static; width: auto; transform: none; display: flex; flex-direction: column; align-items: center; min-height: 48px; }
  .island-center { grid-column: 1 / -1; width: 62%; justify-self: center; }
  .island img { max-width: 100%; }
  .island-label, .island-center .island-label { position: static; transform: none; width: auto; max-width: 100%; margin-top: -10px; font-size: 15px; padding: 8px 10px; border-radius: 12px; border-width: 2px; }
  .island-label small { position: static; transform: none; display: block; margin: 0 auto 4px; padding: 2px 8px; border-radius: 6px; font-size: 12px; }
  .island-label > span { display: none; }
  .scene-controls { display: none; }
  .sky::after { inset: 0; background-size: cover; background-position: center bottom; }
  .universe { background: #9fd8f5; }
  .section-heading { display: block; }
  .grown-cards { grid-template-columns: 1fr; }
  .grownups { padding: 28px 16px 32px; }
  .tcard-review .tcard-go { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Font tiêu đề: Comfortaa Bold */
.today-head h2, .grownups h2, .sheet h2, .panel-head h2, .tcard strong, .gcard strong, .island-label { font-family: "Comfortaa", "Segoe UI", Arial, sans-serif; font-weight: 700; }
.island-label small, .island-label > span { font-family: "Segoe UI", Arial, sans-serif; }

/* Thoáng: bỏ khung bao quanh các khối, ngăn cách bằng khoảng trắng. Chỗ bấm được chỉ đổi màu nền rất nhẹ khi rê chuột. */
.tcard, .tcard-continue, .tcard-stars, .tcard-teacher, .tcard-review { background: transparent; border: 0; box-shadow: none; border-radius: 16px; }
.tcard { min-height: 0; padding: 14px 16px; }
.tcard-continue, .gcard, .mission, .topic { transition: background-color .18s; }
.tcard-continue:hover { transform: none; box-shadow: none; background: #1762d10f; }
.today-grid { gap: 8px 28px; }
.tcard-review { padding: 10px 16px; }
.mission { background: transparent; padding: 4px 0; min-height: 40px; }
.mission.is-done { background: transparent; }
.teacher-say { background: transparent; box-shadow: none; padding: 6px 4px; border-radius: 0; }
.grown-cards { gap: 8px 28px; }
.gcard { background: transparent; border: 0; min-height: 0; padding: 14px 16px; border-radius: 16px; }
.gcard:hover { transform: none; background: #ffffff14; }
.gcard-tag { padding: 0; background: transparent; color: #a9d4ff; border-radius: 0; }
.promises li { background: transparent; border: 0; padding: 4px 6px; }
.stat, .report-tip { background: transparent; border: 0; }
.field input[type="text"], .choice-face, select#ob-textbook { border-width: 1.5px; }

/* Menu trên cùng: cùng font tiêu đề "Hôm nay của em" (Comfortaa Bold) */
.nav nav { font: 700 15px "Comfortaa", "Baloo 2", "Segoe UI", sans-serif; letter-spacing: .02em; }
.me-chip, .start-link { font-family: "Comfortaa", "Baloo 2", "Segoe UI", sans-serif; font-weight: 700; }
/* Bỏ ngày trong tuần và nút "Ôn cùng cô" (cả khối gợi ý ôn tập vẫn bấm được, rê chuột sáng nhẹ) */
#today-date, .tcard-review .tcard-go { display: none; }
.tcard-review { transition: background-color .18s; }
.tcard-review:hover { background: #1762d10f; }
/* Ngày trong tuần: chữ trơn nằm ngay dưới nút "Vào Lớp Nào", không khung */
.nav-date { position: absolute; right: 3%; top: calc(100% + 14px); width: 98px; margin: 0; display: grid; grid-template-rows: auto auto auto; border: 3px solid #f7edd5; border-radius: 12px 12px 11px 13px; isolation: isolate; overflow: visible; background: #fffcf4; box-shadow: 0 3px 0 #d8ccb0, 0 5px 0 #f3e8cd, 0 7px 0 #bfb595, 0 12px 18px #2746572b; text-align: center; font-family: "Comfortaa", "Baloo 2", sans-serif; pointer-events: none; }
.nav-date::before { content: ''; position: absolute; z-index: 3; top: -10px; left: 18px; width: 7px; height: 18px; border: 1px solid #e4c991; border-radius: 4px; background: #bc9556; box-shadow: inset 2px 0 #f7dda5, 49px 0 0 -1px #bc9556, 49px 0 0 0 #e4c991; }
.nav-date::after { content: ''; position: absolute; z-index: 1; inset: 0; border-radius: inherit; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23grain)' opacity='.6' d='M0 0h128v128H0z'/%3E%3C/svg%3E"); pointer-events: none; }
.cal-head { display: block; position: relative; padding: 9px 4px 6px; border-radius: 8px 8px 0 0; background: #cf7159; color: #fffaf0; box-shadow: 0 2px 0 #a8513d; font-weight: 700; font-size: 12px; line-height: 1.1; }
.cal-day { display: block; position: relative; z-index: 2; padding: 8px 0 1px; color: #315b56; font-weight: 700; font-size: 40px; line-height: 1.05; text-shadow: 0 1px #fff; }
.cal-month { display: block; position: relative; z-index: 2; margin: 0 10px; padding: 4px 0 8px; border-top: 1px solid #e8dfc8; color: #5d746b; font-weight: 700; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 680px) { .nav-date { display: none; } }
/* Nút chọn lớp và bạn đồng hành trong màn làm quen: cùng font "Hôm nay của em" */
.choice-face { font-family: "Comfortaa", "Baloo 2", "Segoe UI", sans-serif; font-weight: 700; }
/* Chọn lớp (màn làm quen): bỏ khung, chữ đậm và to hơn; đang chọn thì gạch chân xanh */
.choice-face { border: 0; background: transparent; box-shadow: none; min-height: 0; padding: 6px 12px; font-size: 22px; font-weight: 700; color: #1f3a66; transition: background-color .15s; }
.choice-face:hover { background: #ffffff66; }
.choice input:checked + .choice-face { border: 0; background: transparent; box-shadow: none; color: #1762d1; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.choice input:focus-visible + .choice-face { outline: 3px solid #ffb400; outline-offset: 2px; }
/* Bảng Khen Thưởng: tên em và các số liệu dùng Comfortaa Bold */
.panel-who, .stat strong, .stat span { font-family: "Comfortaa", "Baloo 2", "Segoe UI", sans-serif; }
.panel-who { font-weight: 700; }
.stat strong { font-weight: 700; }

/* Keep a rotatable map on phones; vertical swipes remain native page scrolling. */
@media (max-width: 680px) {
  .scene { display: block; height: clamp(380px, 115vw, 620px); min-height: 0; padding: 0; }
  .island { position: absolute; width: 28%; min-height: 0; transform: translate(-50%, -65%) scale(var(--scale, 1)); }
  .island-center { width: 42%; }
  .island-label, .island-center .island-label { position: absolute; left: 50%; transform: translate(-50%, -65%); width: max-content; max-width: 150%; margin: 0; padding: 4px 5px; font-size: 12px; }
  .island-label small { display: none; }
}

/* ===== Giới thiệu tính năng: một bên hình, một bên mô tả (cuộn xuống dưới vũ trụ) ===== */
.features { padding: 72px max(5%, calc((100% - 1200px) / 2)) 48px; background: #fbf7ea; color: var(--ink); display: grid; gap: 84px; }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.feat-flip .feat-text { order: 2; }
.feat-eyebrow { margin: 0 0 10px; font: 700 16px/1.3 "Comfortaa", "Segoe UI", sans-serif; color: #4a6a99; }
.feat h2 { margin: 0 0 16px; font: 700 clamp(28px, 3.2vw, 42px)/1.15 "Comfortaa", "Segoe UI", sans-serif; color: #103b79; }
.feat-lead { margin: 0 0 18px; font-size: 17px; line-height: 1.7; color: #2d4a73; max-width: 34em; }
.feat-list { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 12px; }
.feat-list li { position: relative; padding-left: 36px; font-size: 16px; line-height: 1.5; color: #2d4a73; }
.feat-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #86bd7a; }
.feat-list li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 6px; height: 10px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(40deg) scale(.8); }
/* Nút chỉ có viền, không nền màu (người dùng chọn 11-07) */
.feat-btn { display: inline-block; padding: 11px 24px; border: 2px solid #1b5fc4; border-radius: 14px; background: transparent; color: #1b5fc4; text-decoration: none; font-size: 17px; transition: background-color .15s; }
.feat-btn:hover, .feat-btn:focus-visible { background: #1b5fc414; }
.feat-btn:focus-visible { outline: 4px solid #b67744; outline-offset: 4px; }.feat-art { display: block; justify-self: center; width: 100%; max-width: 560px; }
.feat-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 22px #4c453433); transition: transform .3s ease; animation: feat-bob 5s ease-in-out infinite; }
.feat-art:hover img { transform: translateY(-6px) rotate(-1deg); }
@keyframes feat-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .feat-art img { animation: none; transition: none; } .feat-art:hover img { transform: none; } }
@media (max-width: 860px) {
  .features { padding: 44px 20px 32px; gap: 56px; }
  .feat { grid-template-columns: 1fr; gap: 20px; }
  .feat-art { order: -1; max-width: 420px; }
  .feat-flip .feat-text { order: 0; }
}

/* Ảnh đại diện tự tải lên + nút "Ảnh của em" */
.me-avatar, .panel-avatar, .choice-avatar { overflow: hidden; }
.me-avatar img, .panel-avatar img, .choice-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.choice-custom .choice-face { padding: 0; width: 44px; height: 44px; min-width: 44px; border-radius: 50%; overflow: hidden; }
.choice-photo { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 6px 12px; border: 0; border-radius: 12px; background: transparent; color: #1f3a66; font: 700 18px "Comfortaa", "Segoe UI", sans-serif; cursor: pointer; transition: background-color .15s; }
.choice-photo:hover { background: #ffffff66; }
.choice-photo:focus-visible { outline: 3px solid #ffb400; outline-offset: 2px; }
.choice-photo svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.choice-note { margin: 6px 0 0; color: #b3422f; font-size: 14px; }
#ob-avatars { align-items: center; }

/* Chữ của mỗi đảo nằm dưới hình, canh giữa, không đè lên đảo */
.island-label, .island-center .island-label, .island-learn .island-label, .island-studio .island-label,
.island-lab .island-label, .island-profile .island-label, .island-mission .island-label {
  top: 93%; left: 50%; transform: translateX(-50%); width: max-content; max-width: none; margin: 0;
  padding: 2px 6px; background: transparent;
  text-shadow: 0 1px 2px #0b2a5c, 0 0 6px #0b2a5ccc, 0 0 14px #0b2a5c99;
}
.island:hover .island-label, .island:focus-visible .island-label { background: transparent; }
.island-label small { position: static; display: block; transform: none; width: auto; margin: 0 auto 2px; padding: 0; }
@media (max-width: 680px) { .island-label small { display: none; } }

/* Layered paper companion portraits; personal photos keep their own crop. */
.me-avatar img.paper-avatar, .panel-avatar img.paper-avatar, .choice-avatar img.paper-avatar { object-fit: contain; border-radius: 0; }
.choice-avatar:has(.paper-avatar) { display: grid; place-items: center; width: 48px; height: 48px; padding: 4px; }
.choice-photo .paper-camera { width: 28px; height: 28px; object-fit: contain; }

/* Minimal onboarding, scoped so other sheets keep their layout. */
#onboard { box-sizing: border-box; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 32px; border-radius: 24px; color: #263d50; background: #fffefa; box-shadow: 0 24px 80px #122c4540; }
#onboard::backdrop { background: #152e4866; backdrop-filter: blur(5px); }
#onboard h2 { margin: 0 0 28px; font-size: 23px; line-height: 1.45; letter-spacing: -.5px; color: #243e53; }
#onboard .field { gap: 10px; margin: 0 0 24px; font-size: 14px; font-weight: 600; }
#onboard legend { margin-bottom: 10px; }
#onboard input[type="text"] { box-sizing: border-box; width: 100%; height: 48px; border: 1px solid #dce3e7; border-radius: 12px; background: #fff; color: #263d50; font-size: 17px; font-weight: 500; box-shadow: none; }
#onboard input[type="text"]::placeholder { color: #929da5; }
#onboard input[type="text"]:focus { border-color: #4f827c; outline: 3px solid #4f827c18; }
#ob-grades { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
#onboard .choice-face { box-sizing: border-box; min-width: 0; min-height: 44px; padding: 10px 4px; border: 1px solid #e5e9e8; border-radius: 10px; background: #fff; font-size: 15px; color: #51616c; text-decoration: none; }
#onboard .choice input:checked + .choice-face { border: 1px solid #54877d; background: #eaf3ef; box-shadow: none; color: #285b50; text-decoration: none; }
#onboard .choice input:focus-visible + .choice-face { outline: 2px solid #54877d; outline-offset: 3px; }
#ob-avatars { gap: 10px; align-items: center; }
#onboard .choice-avatar { width: 54px; height: 54px; padding: 7px; border-radius: 14px; }
#onboard .choice-photo { margin: 2px 0 0; padding: 8px 0; flex-basis: 100%; min-height: 40px; justify-content: flex-start; font-size: 14px; font-weight: 500; color: #657781; }
#onboard .choice-photo .paper-camera { width: 22px; height: 22px; }
#onboard .sheet-actions { padding-top: 20px; border-top: 1px solid #edf0ed; align-items: center; justify-content: space-between; gap: 12px; }
#onboard .btn-main, #onboard .btn-quiet { min-height: 46px; padding: 10px 20px; border-radius: 12px; font-size: 15px; }
#onboard .btn-main { background: #316b60; color: #fff; }
#onboard .btn-main:hover { background: #25564d; }
#onboard .btn-quiet { background: transparent; color: #77858e; padding-left: 0; }
@media (max-width: 420px) { #onboard { padding: 24px 20px; } #onboard h2 { font-size: 21px; margin-bottom: 24px; } #ob-grades { gap: 5px; } #ob-avatars { gap: 7px; } #onboard .choice-avatar { width: 48px; height: 48px; } }

/* Tên khu theo tục ngữ dài hơn tên cũ: cho xuống dòng trong thẻ, không tràn ra ngoài */
.gcard { min-width: 0; }
.gcard strong { white-space: normal; text-wrap: balance; line-height: 1.3; }
.gcard strong * { white-space: normal; }

/* Readable island nameplates, independent of the island's perspective scale. */
#knowledge-scene .island .island-label {
  top: 94%; transform: translateX(-50%) scale(calc(1 / var(--scale, 1))); transform-origin: 50% 0;
  box-sizing: border-box; width: max-content; max-width: 260px; padding: 10px 16px;
  border: 1px solid #fff9; border-radius: 14px; background: #fffaf0f5;
  color: #233f55; font-size: 18px; line-height: 1.35; text-shadow: none;
  box-shadow: 0 4px 14px #24485c18;
}
#knowledge-scene .island-label small { display: block; font-size: 11px; font-weight: 500; color: #6b7d86; text-shadow: none; margin-bottom: 3px; }
#knowledge-scene .island-label > span { display: block; font-size: 12px; color: #526a78; margin-top: 4px; text-shadow: none; }
#knowledge-scene .island:hover .island-label, #knowledge-scene .island:focus-visible .island-label { background: #fff; color: #185f58; box-shadow: 0 6px 20px #24485c25; }
#knowledge-scene .island:focus-visible .island-label { outline: 2px solid #467e74; outline-offset: 3px; }
@media (max-width: 680px) {
  #knowledge-scene .island .island-label { max-width: 150px; padding: 7px 10px; border-radius: 10px; font-size: 13px; }
  #knowledge-scene .island-label small, #knowledge-scene .island-label > span { display: none; }
}
@media (max-width: 680px) {
  #knowledge-scene .island .island-label { max-width: 126px; padding: 7px 6px; font-size: 11px; }
}

/* Layered paper signboard with a real kraft-paper stake. */
#knowledge-scene .island .island-label {
  top: 93%; width: 250px; max-width: none; height: 108px; padding: 17px 14px 38px;
  transform: translateX(-50%) scale(calc(1 / var(--scale, 1))) translateY(-35%);
  border: 0; border-radius: 0; background: url('../assets/game/island-stake-paper.webp') center / 100% 100% no-repeat;
  box-shadow: none; font-size: 17px; color: #304e43; line-height: 1.3;
  filter: drop-shadow(0 3px 2px #24453420);
}
#knowledge-scene .island-label small { display: none; }
#knowledge-scene .island-label > span { font-size: 11px; margin-top: 5px; color: #637269; }
#knowledge-scene .island:hover .island-label, #knowledge-scene .island:focus-visible .island-label {
  background: url('../assets/game/island-stake-paper.webp') center / 100% 100% no-repeat;
  box-shadow: none; color: #185f4b; filter: drop-shadow(0 5px 4px #24453435);
}
@media (max-width: 680px) {
  #knowledge-scene .island .island-label { width: 126px; height: 62px; padding: 10px 7px 24px; font-size: 11px; }
  #knowledge-scene .island-label > span { display: none; }
}

/* The sign belongs behind its own island: long stake is occluded by the artwork. */
#knowledge-scene .island { isolation: isolate; }
#knowledge-scene .island > img { position: relative; z-index: 2; }
#knowledge-scene .island .island-label {
  top: 5%; z-index: 1;
  transform: translateX(-50%) scale(calc(1 / var(--scale, 1))) translateY(-100%);
}
#knowledge-scene .island .island-label::after {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 62%;
  width: 13px; height: 200px; transform: translateX(-50%);
  background: linear-gradient(90deg, #b88c4e 0 12%, #e0b878 12% 70%, #cc9e5c 70% 100%);
  border-radius: 1px 1px 4px 4px; box-shadow: 2px 0 2px #60401c18;
  pointer-events: none;
}
@media (max-width: 680px) {
  #knowledge-scene .island .island-label::after { width: 7px; height: 100px; }
}
#knowledge-scene .island .island-label::after { height: calc(170px * var(--scale, 1)); }
@media (max-width: 680px) { #knowledge-scene .island .island-label::after { height: calc(85px * var(--scale, 1)); } }

/* Center island: sign sits above the left wing, clear of the page title. */
#knowledge-scene .island.island-center .island-label { left: 22%; top: 20%; }

/* Bring these two nameplates closer to their islands. */
#knowledge-scene .island.island-learn .island-label {
  transform: translateX(-50%) scale(calc(1 / var(--scale, 1))) translateY(-55%);
}
#knowledge-scene .island.island-lab .island-label {
  transform: translateX(-50%) scale(calc(1 / var(--scale, 1))) translateY(-75%);
}

/* Chữ trên bảng to thêm 25% (17→21.25px, 11→13.75px). */
#knowledge-scene .island .island-label { font-size: 21.25px; }
#knowledge-scene .island-label > span { font-size: 13.75px; margin-top: 0; }
@media (max-width: 680px) { #knowledge-scene .island .island-label { font-size: 13.75px; } }

/* Hồ sơ của em: tiêu đề phụ trước danh sách thử thách */
.panel-sub { margin: 18px 0 8px; font: 700 17px/1.3 "Comfortaa", "Segoe UI", Arial, sans-serif; color: #1a4f94; }

/* Bỏ bảng cắm: chữ bay lơ lửng, bám trên đảo, không nền, không cọc. */
#knowledge-scene .island .island-label,
#knowledge-scene .island.island-learn .island-label,
#knowledge-scene .island.island-lab .island-label,
#knowledge-scene .island:hover .island-label,
#knowledge-scene .island:focus-visible .island-label {
  z-index: 3; top: 4%; width: max-content; max-width: 280px; height: auto; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; filter: none; color: #1f4a5e;
  text-shadow: 0 0 3px #fff, 0 0 6px #fffc, 0 0 10px #fffa;
  transform: translateX(-50%) scale(calc(1 / var(--scale, 1))) translateY(-100%);
}
#knowledge-scene .island .island-label::after { display: none; }
#knowledge-scene .island:hover .island-label, #knowledge-scene .island:focus-visible .island-label { color: #0f5b4a; }
#knowledge-scene .island-label > span { font-size: 13.75px; margin-top: 0; color: #2c5b6e; }
/* Đảo giữa: chữ nằm cao hơn ngọn cây và mái nhà, không bị tranh đảo che. */
#knowledge-scene .island.island-center .island-label,
#knowledge-scene .island.island-center:hover .island-label { left: 24%; top: 10%; }
/* CHIỀU CAO CHỮ TỪNG ĐẢO (máy tính): chỉ sửa số `top`. Số lớn = chữ thấp xuống (về phía đảo), số nhỏ = chữ cao lên. Đảo giữa ở dòng 472. */
#knowledge-scene .island.island-profile .island-label, #knowledge-scene .island.island-profile:hover .island-label { top: 2%; }   /* Kiến Tha Lâu Đầy Tổ */
#knowledge-scene .island.island-mission .island-label, #knowledge-scene .island.island-mission:hover .island-label { top: 2%; }   /* Mài Sắt Nên Kim */
#knowledge-scene .island.island-learn .island-label, #knowledge-scene .island.island-learn:hover .island-label { top: 8%; }   /* Học Một Biết Mười */
#knowledge-scene .island.island-lab .island-label, #knowledge-scene .island.island-lab:hover .island-label { top: 4%; }   /* Nhìn Xa Trông Rộng */
@media (max-width: 680px) {
  #knowledge-scene .island .island-label,
  #knowledge-scene .island.island-learn .island-label,
  #knowledge-scene .island.island-lab .island-label { width: max-content; height: auto; padding: 0; font-size: 13.75px; }
  #knowledge-scene .island.island-center .island-label { left: 50%; top: 4%; }
  #knowledge-scene.scene { height: clamp(430px, 138vw, 660px); }
  #knowledge-scene .island { width: 42%; }
  #knowledge-scene .island.island-mission, #knowledge-scene .island.island-profile { width: 52%; }
  #knowledge-scene .island.island-center { width: 54%; --y: 52% !important; }
  #knowledge-scene .island.island-lab { --x: 21% !important; --y: 76% !important; }
  #knowledge-scene .island.island-learn { --x: 78% !important; --y: 86% !important; }
  #knowledge-scene .island.island-mission { --x: 24% !important; --y: 25% !important; }
  #knowledge-scene .island.island-profile { --x: 77% !important; --y: 28% !important; }
  #knowledge-scene .island .island-label,
  #knowledge-scene .island.island-learn .island-label,
  #knowledge-scene .island.island-lab .island-label { width: max-content; max-width: 120px; white-space: normal; text-wrap: balance; line-height: 1.2; }
  #knowledge-scene .island.island-center .island-label { max-width: 160px; }
}

/* Sao lưu, khôi phục tiến độ trong báo cáo phụ huynh */
.backup-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.backup-row .btn-quiet { min-height: 44px; padding: 8px 16px; border: 1.5px solid #9db3d6; border-radius: 14px; }
.backup-note:empty { display: none; }

/* Ô đồng ý của phụ huynh khi làm quen */
#onboard .consent { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 4px; font-size: 14px; line-height: 1.5; color: #3d4b45; }
#onboard .consent input { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; }
#onboard .consent a { color: inherit; text-decoration: underline; }
.promises a { color: inherit; text-decoration: underline; }

/* In báo cáo tuần: chỉ in nội dung báo cáo trong hộp "Dạy Con Từ Thuở Còn Thơ" */
@media print {
  body.printing-report > *:not(#parent) { display: none !important; }
  body.printing-report #parent { position: static; display: block; width: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; box-shadow: none; overflow: visible; background: #fff; color: #000; }
  body.printing-report #parent::backdrop { background: none; }
  body.printing-report #parent .panel-close, body.printing-report #parent .backup-row, body.printing-report #parent .backup-note,
  body.printing-report #parent #gate { display: none !important; }
}

/* Yêu cầu cần đạt trong báo cáo phụ huynh */
.yccd-item { flex-wrap: wrap; }
.yccd-item .topic-name { flex: 1 1 260px; }
.topic-chip.yccd-dat { background: #dff7e6; color: #1f7a3d; }
.topic-chip.yccd-dang { background: #fff1cc; color: #8a5a00; }
.topic-chip.yccd-chua { background: #eef1f6; color: #5b6a86; }
.yccd-go { padding: 3px 12px; border-radius: 10px; border: 1.5px solid #9db3d6; color: #1b5fc4; font-size: 13px; font-weight: 800; text-decoration: none; }
.yccd-go:hover { background: #e8eefa; }
.yccd-sheet { display: inline-flex; align-items: center; min-height: 44px; margin: 10px 0 2px; padding: 8px 16px; border-radius: 14px; background: #fff3d6; border: 1.5px solid #ecd9a8; color: #6b4a12; font-weight: 800; text-decoration: none; }
.yccd-sheet:hover { background: #ffeabb; }

/* Thư tuần của cô: chữ để đọc, nút để nghe; đoạn cô đang đọc được tô nhẹ */
.letter { margin: 6px 0 18px; padding: 16px 18px; border-radius: 16px; background: #fffaf0; border: 1.5px solid #f0deb0; }
.letter .letter-title { margin-top: 0; }
.letter-actions { align-items: center; }
.letter-actions .btn-main { min-height: 44px; }
.letter-state { font-size: 14px; color: #6b5a2a; }
.letter-body p { margin: 0 0 10px; font-size: 16px; line-height: 1.7; color: #2f3b57; border-radius: 8px; padding: 2px 6px; transition: background-color .2s; }
.letter-body p.is-reading { background: #ffeeb8; }
.letter-body .letter-sign { text-align: right; font-weight: 700; color: #8a5a00; }
@media print { .letter-actions { display: none !important; } .letter-body p.is-reading { background: none; } }

/* Mục tiêu phút học hôm nay (trang chủ) và phần ba mẹ đặt giờ màn hình (báo cáo) — src/screen-time.js */
.st-goal { display: block; margin-top: 8px; padding-bottom: 8px; font-weight: 700;
  background: linear-gradient(90deg, #f0a400 calc(var(--st-p, 0) * 100%), #f4e3b8 0) bottom / 100% 6px no-repeat; }
.st-goal.is-done { color: #2f7d32; }
.st-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin: 8px 0; }
.st-field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 700; color: #35597f; }
.st-field select { min-height: 44px; min-width: 160px; padding: 0 10px; border: 1.5px solid #9db3d6; border-radius: 12px; background: #fff; font: inherit; font-weight: 600; color: #2f3b57; }
.st-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; color: #2f3b57; }
.st-check input { width: 22px; height: 22px; accent-color: #1b5fc4; }
.st-extra .btn-quiet { min-height: 44px; padding: 8px 16px; border: 1.5px solid #9db3d6; border-radius: 14px; }
.st-saved:empty { display: none; }
@media print { .st-form, .st-extra .btn-quiet { display: none !important; } }

/* Tên thương hiệu viết bằng chữ "Trò Giỏi" (thay hình chữ cũ) */
.brand-text { height: auto; padding: 4px 0 2px; font-family: "Comfortaa", "Baloo 2", "Segoe UI", sans-serif; font-size: 26px; font-weight: 800; line-height: 1.3; letter-spacing: .01em; white-space: nowrap; color: #fff; }
@media (max-width: 680px) { .brand-text { font-size: 21px; height: auto; } }

.copyright { margin: 0; padding: 18px 3% 24px; text-align: center; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.72); }

.brand small.release-beta { display: inline-block; align-self: center; margin: 0; padding: 3px 6px; border-radius: 5px; background: #ffe19a; color: #503916; font: 750 10px/1.2 system-ui, sans-serif; letter-spacing: .07em; }
