/* Approved paper design: no enclosing frame, one-layer buttons, stacked answer note. */
body.paper-exercises { --ep-ink:#164761; --ep-soft:#526e79; --ep-paper:#f8f3e9; --ep-grain:url('../assets/game/paper-grain.svg'); --ink:var(--ep-ink); --ink-soft:var(--ep-soft); color:var(--ep-ink); background:var(--ep-grain),#e5eff1; overflow-x:clip; }
.paper-exercises :focus-visible { outline:3px solid #276780; outline-offset:5px; }
.paper-exercises .pr-top,.paper-exercises .qk-top,.paper-exercises .ws-tools { background:transparent; color:var(--ep-ink); position:relative; }
.paper-exercises .pr-back,.paper-exercises .qk-back,.paper-exercises .ws-back { color:var(--ep-ink); }
.paper-exercises .pr-stars { color:var(--ep-soft); }
.paper-exercises .pr-main { max-width:1200px; }
.paper-exercises .pr-hero { margin-bottom:28px; }
.paper-exercises.is-pr-playing .pr-hero { display:none; }
.paper-exercises .pr-type-name { text-align:center; color:var(--ep-ink); font-size:clamp(25px,3vw,38px); margin:22px 0; }
.paper-exercises .pr-question { max-width:960px; margin:0 auto 36px; padding:0; text-align:center; background:none; border:0; font-size:clamp(21px,2.3vw,29px); }
.paper-workspace { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr); align-items:center; gap:44px; padding:12px 8px 32px; }
.paper-note,.paper-exercises .ex-q,.paper-exercises .ex-mock-item,.paper-exercises #qk-paper,.paper-exercises.sr .task { position:relative; min-width:0; padding:38px 28px; border:1px solid #ffffffc9; border-radius:30px; background:var(--ep-grain),var(--ep-paper); box-shadow:0 2px 0 #d9d4c8,0 5px 0 #f7f2e8,0 6px 0 #d9d4c8,0 9px 0 #f7f2e8,0 10px 0 #d9d4c8,0 18px 26px #27475618; }
.paper-exercises .pr-answer { justify-content:center; gap:16px 10px; }
.paper-exercises .pr-answer input { width:140px; min-width:0; flex:0 1 180px; text-align:center; background:transparent; border:1.5px solid #b5b7aa; box-shadow:inset 0 2px 3px #605a4610; font-size:clamp(30px,4vw,45px); font-weight:700; color:var(--ep-ink); }
.paper-exercises .pr-answer input::placeholder { font-size:18px; font-weight:400; }
.paper-exercises .pr-answer input:disabled { background:transparent; opacity:1; }
.paper-equation { text-align:center; font-size:clamp(25px,3.4vw,42px); line-height:1.3; font-weight:750; margin:0 0 28px; overflow-wrap:anywhere; }
.paper-exercises :is(.pr-main-btn,.pr-quiet,.num-btn,.step-btn,.big-btn,.qk-choice,.qk-btn,.ws-btn,.lc-next,.lc-listen,.lc-ask-teacher,.lc-options button,.tool,.btn,.tb-btn) { color:var(--ep-ink); background:var(--ep-grain),var(--ep-paper); border:1px solid #fff9; border-radius:22px; box-shadow:0 1px 0 #d5cfc2,0 6px 9px #4c54451a; font-weight:600; text-shadow:none; }
.paper-exercises :is(.pr-main-btn,.pr-quiet,.num-btn,.step-btn,.big-btn,.qk-choice,.qk-btn,.ws-btn,.lc-next,.lc-options button,.tool,.btn):hover:not(:disabled) { background-color:#fffcf4; transform:translateY(-1px); }
.paper-exercises :is(.pr-main-btn,.pr-quiet,.qk-btn,.ws-btn,.lc-next) { font-size:17px; min-height:48px; }
.paper-exercises :is(.pr-main-btn,.pr-quiet,.num-btn,.qk-choice):disabled { opacity:.55; }
.paper-exercises .pr-answer > button { flex-basis:100%; margin-top:14px; }
.paper-exercises .pr-verdict,.paper-exercises .pr-verdict.is-wrong { border:0; background:none; padding:20px 0 0; margin:0; }
.paper-exercises .pr-verdict-line { font-family:inherit; font-size:18px; font-weight:600; color:#526e57; text-align:center; }
.paper-exercises .pr-actions { justify-content:center; margin-top:18px; }
.paper-exercises .pr-steps { font-size:16px; }
.paper-exercises :is(.pr-place,.pr-book-item,.pr-type,.ex-card,.ex-stage,.ex-count,.qk-mode) { background:var(--ep-grain),#f8f5ed; border-color:#ccd7d5; box-shadow:0 3px 9px #29495108; }
.paper-exercises .pr-chip[aria-pressed=true] { background:#d3e4e7; color:var(--ep-ink); border-color:#8faeb5; }
.paper-exercises .ex-q { margin:28px 0; }
.paper-exercises .ex-problem { font-size:22px; }
.paper-exercises .ex-verdict { font-size:17px; }
.paper-exercises .ex-mock-item { margin-bottom:24px; }
.paper-exercises .ex-mock-item .pr-answer input { font-size:28px; }
.paper-exercises #qk-paper { max-width:680px; margin:36px auto; padding:40px; }
.paper-exercises .qk-question { background:none; box-shadow:none; font-size:clamp(38px,7vw,66px); }
.paper-exercises .qk-choice { font-size:30px; }
.paper-exercises .qk-choice.right,.paper-exercises .num-btn.right { background-color:#e2ebdf; color:#3b6745; outline:2px solid #6b9674; }
.paper-exercises .qk-choice.wrong { background-color:#f2e2da; color:#9a5039; }
.paper-exercises .play-body { max-width:1200px; }
.paper-exercises #screen-play .coach { background:none; border:0; box-shadow:none; justify-content:center; }
.paper-exercises #screen-play .mascot { display:none; }
.paper-exercises #screen-play .question { color:var(--ep-ink); background:none; box-shadow:none; font-size:clamp(23px,3vw,34px); }
.paper-exercises #screen-play .stage { background:none; border:0; box-shadow:none; }
.paper-exercises .paper-game-note { display:flex; flex-direction:column; align-items:center; gap:20px; max-width:520px; margin:30px auto; }
.paper-exercises .paper-game-note .num-row { margin:0; }
.paper-exercises .paper-game-note .play-actions { margin:0; padding:0; min-height:0; width:100%; }
.paper-exercises .paper-game-note .verdict { position:static; font-size:20px; color:#526e57; box-shadow:none; background:none; animation:none; width:auto; margin:0 0 14px; }
.paper-exercises .paper-game-note .verdict.try,.paper-exercises .paper-game-note .verdict.show { color:#975338; }
.paper-exercises .paper-game-note .big-btn { min-height:48px; font-size:18px; padding:10px 28px; }
.paper-exercises .groups { gap:28px; }
.paper-exercises .tray:not(.array) { border:1px solid #fff; border-bottom:5px solid #dfdbd1; border-radius:50%; background:var(--ep-grain),radial-gradient(ellipse at 50% 35%,#ece9e1 55%,#fffdf6 70%); box-shadow:inset 0 4px 9px #72695118,0 12px 15px #304e5525; padding:18px 20px 24px; }
.paper-exercises .tray .mi { filter:drop-shadow(0 4px 2px #82643820); }
.paper-exercises .confetti { display:none; }
.paper-exercises .lc-quiz { background:var(--ep-grain),var(--ep-paper); border:0; border-radius:24px; padding:24px; }
.paper-exercises .lc-q { font-size:25px; color:var(--ep-ink); }
.paper-exercises.sr .task .phase { color:var(--ep-soft); font-size:13px; }
.paper-exercises.sr .task-text { color:var(--ep-ink); }
.paper-exercises.sr .task { padding:18px 20px; border-radius:22px; }
.paper-flying { overflow:hidden; contain:layout paint; user-select:none; }
.paper-visual { min-width:0; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:26px; min-height:300px; }
.paper-visual svg { width:100%; height:auto; max-height:370px; fill:none; stroke:none; overflow:visible; }
.paper-visual svg text { fill:#244f60; stroke:none; font-family:'Segoe UI',sans-serif; }
.paper-data { display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }
.paper-datum { padding:20px 26px; border-radius:14px; background:var(--ep-grain),#f6f2e7; box-shadow:0 3px 0 #d7d2c5,0 10px 14px #344c5214; text-align:center; }
.paper-datum strong { display:block; font-size:28px; }
.paper-datum span { display:block; font-size:15px; color:var(--ep-soft); }
.paper-plates { display:flex; flex-wrap:wrap; justify-content:center; align-items:end; gap:28px; width:100%; }
.paper-plate-group { text-align:center; flex:0 1 190px; }
.paper-plate { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:center; justify-items:center; padding:12px 18px 25px; border-radius:50%; border:2px solid #fffaf0; border-bottom:5px solid #d8d4ca; background:var(--ep-grain),radial-gradient(ellipse at 50% 35%,#e8e2d6 35%,#fffdf6 72%); box-shadow:inset 0 4px 8px #72695118,0 13px 15px #304e5525; }
.paper-plate img { width:100%; max-width:76px; height:auto; object-fit:contain; margin-bottom:-5px; }
.paper-plate-group p { font-size:17px; margin:15px 0 0; }
.paper-visual-note { width:100%; text-align:center; font-size:15px; color:var(--ep-soft); }
.paper-exercises .paper-workspace:has(>.paper-visual[hidden]) { display:block; max-width:620px; margin-inline:auto; }
.paper-exercises .ex-q { border:0; border-radius:0; box-shadow:none; background:none; padding:18px 0 36px; }
.paper-exercises .qk-choice:nth-child(n) { color:var(--ep-ink); background:var(--ep-grain),var(--ep-paper); box-shadow:0 1px 0 #d5cfc2,0 6px 9px #4c54451a; border:1px solid #fff9; }
.paper-exercises .qk-choice::before { display:none; }
.paper-exercises .qk-choice.right { background-color:#e1ebde; }
.paper-exercises #screen-play .stage.locked .paper-game-note { pointer-events:auto; }
.paper-exercises #screen-play .stage.enter > * { animation:none; }
.paper-exercises .num-row { gap:12px; }
.paper-exercises .paper-game-note .num-btn { min-width:58px; min-height:58px; font-size:27px; }
.paper-exercises .sign-btn,.paper-exercises .pick-card { background:var(--ep-grain),var(--ep-paper); color:var(--ep-ink); box-shadow:0 1px 0 #d5cfc2,0 6px 9px #4c54451a; }
.paper-finale { text-align:center; padding:16px 20px 40px; }
.paper-exercises .paper-finale .qk-lead,.paper-exercises .paper-finale .pr-lead { margin:14px auto 28px; max-width:36em; }
.paper-exercises .paper-finale .qk-actions { justify-content:center; }
.paper-exercises .paper-finale .qk-result-title { font-size:clamp(26px,4vw,38px); color:#255e73; }
.paper-celebrate { position:relative; isolation:isolate; display:grid; place-items:center; min-height:350px; max-width:600px; margin:0 auto 16px; }
.paper-medal { display:flex; flex-direction:column; justify-content:center; width:270px; height:270px; border-radius:50%; background:var(--ep-grain),radial-gradient(circle at 35% 25%,#fff5c8,#f3ce79); border:9px solid #ffe6a5; box-shadow:0 4px 0 #cca351,0 9px 0 #f1d491,0 18px 28px #80714725,inset 0 0 0 2px #d8b966; }
.paper-medal strong { display:block; font:800 clamp(86px,13vw,126px)/1 'Segoe UI',sans-serif; color:#204e65; letter-spacing:-5px; }
.paper-medal span { font-size:17px; font-weight:750; letter-spacing:2px; margin-top:8px; color:#655028; }
.paper-medal small { font-size:14px; margin-top:6px; color:#73603c; }
.paper-prize-star { position:absolute; font-size:67px; color:#e5b654; text-shadow:0 3px 0 #bb9144,0 8px 10px #7a664025; line-height:1; }
.paper-prize-star.star-0 { left:9%; top:26%; transform:rotate(-16deg); }
.paper-prize-star.star-1 { right:8%; top:20%; transform:rotate(13deg); font-size:82px; }
.paper-prize-star.star-2 { right:15%; bottom:12%; font-size:40px; transform:rotate(20deg); }
.paper-confetti { position:absolute; top:0; width:9px; height:17px; border-radius:2px; box-shadow:1px 2px 1px #0001; pointer-events:none; opacity:0; }
.paper-exercises .paper-finale .result-mascot { display:none; }
.paper-exercises #screen-result .paper-finale.result-card { margin-top:0; width:min(680px,100%); background:transparent; box-shadow:none; }
@media(max-width:560px) { .paper-celebrate { min-height:290px; } .paper-medal { width:220px; height:220px; } .paper-prize-star.star-0 { left:0; font-size:44px; } .paper-prize-star.star-1 { right:0; font-size:56px; } .paper-prize-star.star-2 { right:3%; } }
@media(min-width:1000px) { .paper-exercises #screen-play .stage:has(.paper-game-note) { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr); align-items:center; gap:32px; } .paper-exercises #screen-play .stage:has(.paper-game-note) > .paper-game-note { width:100%; } .paper-exercises #screen-play .stage:has(.paper-game-note) > .paper-game-note:only-child { grid-column:1/-1; } }
@media(max-width:760px) { .paper-workspace { grid-template-columns:1fr; gap:24px; padding:0 0 28px; } .paper-note { padding:28px 20px; } .paper-visual { min-height:180px; } .paper-plate-group { flex-basis:135px; } .paper-plates { gap:20px 12px; } .paper-plate { padding:10px 12px 20px; } .paper-exercises .pr-question { margin-bottom:24px; } .paper-exercises .pr-main { padding-inline:18px; } .paper-exercises #qk-paper { padding:24px 18px; } .paper-exercises .paper-game-note { padding:26px 16px; } }
@media(prefers-reduced-motion:reduce) { .paper-exercises *, .paper-exercises *::before,.paper-exercises *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
@media print { body.paper-exercises { background:#fff; color:#111; } .paper-exercises .ws-page { background:#fff; box-shadow:none; } .paper-flying { display:none!important; } }

/* Trò đồng hồ (đọc giờ, tính thời gian): đáp án đứng sát bên đồng hồ, không khung giấy lớn */
.paper-exercises #screen-play .stage.clock-row { display:flex; flex-direction:row; flex-wrap:wrap; justify-content:center; align-items:center; gap:24px 56px; }
.paper-exercises #screen-play .stage.clock-row > .paper-game-note.bare { width:auto; max-width:420px; margin:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
.paper-exercises #screen-play .stage > .paper-game-note.bare { padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
