:root { color-scheme: dark; --ground:#0b0d0c; --paper:#e9ece6; --muted:#aeb5ae; --rule:#3b423d; --panel:#121614; --turn:#287952; --fixed:#17442f; --pulse:#d9f99d; --fault:#e8796e; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ground); }
body { color: var(--paper); font: 500 16px/1.4 Arial, Helvetica, sans-serif; overflow-x: hidden; }
button { font: inherit; color: inherit; }
.app { min-height: 100dvh; max-width: 480px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.topline { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 6px; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.badge { color: #bbff9d; }
.corner { display: flex; gap: 4px; }
.small-button, .undo { border: 1px solid #344039; background: #151a18; min-height: 44px; border-radius: 22px; padding: 0 14px; cursor: pointer; }
.small-button { min-width: 44px; padding: 0 10px; font-size: 13px; }
.lex-button { font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.motion-button { font-size: 18px; }
.small-button:active, .undo:active { background: #263127; }
.stage { flex: 1; min-height: 0; display: grid; place-items: center; position: relative; }
.board-wrap { width: min(100%, 366px); aspect-ratio: .98; position: relative; }
#board { width: 100%; height: 100%; display: block; overflow: visible; }
.help { position: absolute; inset: auto 13% 8% 13%; text-align: center; font-size: 13px; color: #d9e7d5; pointer-events: none; text-shadow: 0 1px 8px #0b0d10; }
.bottom { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 2px; }
.status { min-width: 0; font-size: 14px; color: #c9d4c7; }
.status strong { color: #baff9d; font-weight: 700; }
.status.error { color: #ff8b82; }
.score { margin-top: 4px; color: #8fa68f; font-size: 13px; letter-spacing: .05em; }
.undo { min-width: 92px; font-weight: 700; }
.undo:disabled { opacity: .38; cursor: default; }
.tile { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transform-box: fill-box; transform-origin: center; }
#board > g[aria-hidden="true"] { pointer-events: none; }
.tile polygon { stroke: #0b0d10; stroke-width: 1.5; }
.tile:focus-visible polygon { stroke: #fff; stroke-width: 3; }
.tile.locked { cursor: default; }
.tile.recent polygon { fill: #2b8e63 !important; stroke: #baff9d; stroke-width: 2.4; }
.tile.selected polygon { fill: #287354 !important; stroke: #f4ffdc; stroke-width: 3; filter: drop-shadow(0 0 7px rgba(186,255,157,.5)); }
.print { fill: none; stroke: #d5e4d7; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; opacity: .58; }
.path { fill: none; stroke: #eaffde; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 4px #b7ff98); }
.entry-exit { stroke: #baff9d; stroke-width: 5; stroke-linecap: round; }
.star { fill: #fff; filter: drop-shadow(0 0 4px #baff9d); }
.lock { fill: #0b0d10; stroke: #a7b5a3; stroke-width: 1.3; }
.spark { stroke: #ff695f; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px #ff5148); }
.fault-badge { fill: #ff695f; stroke: #0b0d10; stroke-width: 2; filter: drop-shadow(0 0 5px #ff5148); }
.fault-badge-label { fill: #0b0d10; font: 800 12px/1 ui-rounded, system-ui, sans-serif; pointer-events: none; }
.fork-print { stroke-width: 3.6; }
.orientation-ghosts { pointer-events: none; }
.orientation-print { fill: none; stroke-width: 3.2; stroke-linecap: round; opacity: .72; }
.orientation-route { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 3 5; opacity: .42; }
.option-0 { stroke: #d7f7ff; }
.option-1 { stroke: #baff9d; }
.option-2 { stroke: #f1c6ff; }
.pulse-traveler { fill: #fff; filter: drop-shadow(0 0 5px #baff9d); pointer-events: none; }
.level-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 2px 0 0; }
.level-dot { min-width: 44px; min-height: 44px; padding: 0; border: 1px solid #344039; border-radius: 14px; background: #151a18; color: #c9d4c7; cursor: pointer; font-size: 14px; font-weight: 700; }
.level-dot.active { background: #245c43; border-color: #baff9d; color: #f8fff6; box-shadow: 0 0 12px rgba(186,255,157,.15); }
.level-dot.cleared::after { content: '•'; color: #baff9d; margin-left: 2px; }
.level-dot:active { background: #263127; }
.lab-link { align-self: center; min-width: 84px; min-height: 44px; display: inline-grid; place-items: center; margin-top: 8px; border: 1px solid #344039; border-radius: 22px; color: #c9d4c7; background: #151a18; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.lab-link:active { background: #263127; }
.tile.turning { animation: turn .19s cubic-bezier(.2,.8,.25,1); }
.solved .tile polygon { stroke: #baff9d; }
.panel { position: fixed; z-index: 5; inset: 0; min-height: 100dvh; padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); background: #0b0d10; display: flex; flex-direction: column; transform: translateY(0); transition: transform .2s ease, visibility 0s; }
.panel[aria-hidden="true"] { visibility: hidden; pointer-events: none; transform: translateY(12px); transition: transform .2s ease, visibility 0s linear .2s; }
.panel-head { min-height: 56px; display: flex; align-items: flex-start; justify-content: space-between; }
.eyebrow { margin: 2px 0 2px; color: #8fa68f; font-size: 13px; font-weight: 700; letter-spacing: .13em; }
h1 { margin: 0; font-size: 25px; line-height: 1; letter-spacing: .04em; }
.close-button { width: 48px; min-height: 48px; border: 1px solid #344039; border-radius: 50%; background: #151a18; font-size: 28px; line-height: 1; cursor: pointer; }
.panel-note { margin: 20px 0 18px; max-width: 26ch; color: #c9d4c7; font-size: 15px; }
.glyph-rail { display: flex; flex: 1; align-items: center; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 12px 4px 24px; margin: 0 -4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.glyph-rail::-webkit-scrollbar { display: none; }
.glyph-card { flex: 0 0 112px; height: 152px; border: 1px solid #344039; border-radius: 18px; background: #15513f; padding: 10px; scroll-snap-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.glyph-card.empty { background: #111714; border-style: dashed; }
.glyph-card svg, .hero-glyph svg { width: 100%; height: 100%; display: block; }
.glyph-card-label { color: #f8fff6; font-size: 13px; letter-spacing: .08em; }
.glyph-card-state { color: #baff9d; font-size: 13px; }
.solve-panel { background: var(--ground); align-items: center; justify-content: center; padding: 20px; }
.solve-card-inner { width: min(100%, 360px); min-height: 565px; padding: 28px 22px 22px; border: 1px solid #52725b; border-radius: 28px; background: #123c30; box-shadow: 0 0 48px rgba(186,255,157,.12); display: flex; flex-direction: column; align-items: center; text-align: center; }
.solve-card-inner .eyebrow { color: #c2f5ae; }
.hero-glyph { width: 260px; height: 270px; margin: 14px 0 8px; }
.solve-card-inner h1 { font-size: 22px; }
.solve-score { margin: 10px 0 0; color: #d9e7d5; font-size: 15px; }
.solve-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.share-button, .continue-button { min-height: 52px; border-radius: 26px; cursor: pointer; font-weight: 800; font-size: 14px; letter-spacing: .06em; }
.share-button { color: #f8fff6; border: 1px solid #baff9d; background: transparent; }
.continue-button { color: #102017; border: 1px solid #baff9d; background: #baff9d; }
.glyph-line { fill: none; stroke: #f8fff6; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(248,255,246,.45)); }
.glyph-entry { stroke: #baff9d; stroke-width: 7; stroke-linecap: round; }
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@keyframes turn { from { transform: rotate(-120deg) scale(.94); } to { transform: rotate(0) scale(1); } }
@media (max-height: 700px) { .board-wrap { width: min(76vw, 290px); } .help { display: none; } .bottom { min-height: 60px; } .solve-card-inner { min-height: 470px; padding-top: 20px; } .hero-glyph { width: 220px; height: 210px; } }

/* Step 14: flat, printed board surfaces. The final rules override earlier prototype styling. */
.topline { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform:none; }
.badge { color:var(--pulse); }.small-button,.undo,.level-dot,.lab-link { border-color:var(--rule); border-radius:3px; background:var(--panel); }.small-button { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }.help { bottom:-38px; color:var(--paper); text-shadow:none; font-size:14px; }.bottom { border-top:1px solid var(--rule); }.status { color:var(--muted); font-size:16px; }.status strong { color:var(--pulse); }.status.error { color:var(--fault); }.score { color:var(--muted); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }.tile.recent polygon { fill:#31935f!important; stroke:var(--paper); }.tile.selected polygon { fill:#26734e!important; stroke:var(--pulse); filter:none; }.print { stroke:var(--paper); }.path,.entry-exit { stroke:var(--pulse); filter:none; }.star { fill:var(--pulse); filter:none; }.spark { stroke:var(--fault); filter:none; }.fault-badge { fill:var(--fault); filter:none; }.orientation-print { stroke:var(--paper); }.orientation-route { stroke:var(--pulse); }.option-0,.option-1,.option-2 { stroke:var(--paper); }.pulse-traveler { fill:var(--pulse); filter:none; }.level-dot.active { color:var(--ground); border-color:var(--pulse); background:var(--pulse); box-shadow:none; }.solved .tile polygon { stroke:var(--pulse); }.panel { background:var(--ground); transition:none; }.panel[aria-hidden="true"] { transform:none; }.panel-head { border-bottom:1px solid var(--rule); }.eyebrow { color:var(--muted); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }.panel h1 { font-family:Georgia,'Times New Roman',serif; font-weight:600; letter-spacing:-.02em; }.close-button { border-color:var(--rule); border-radius:50%; background:var(--panel); }.panel-note { color:var(--muted); font-size:16px; }.glyph-rail { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; padding:1px 0 0; margin:0; overflow:visible; background:var(--rule); }.glyph-card { flex:auto; height:134px; min-height:134px; border:0; border-radius:0; background:#163b2b; }.glyph-card.empty { border:0; background:var(--panel); }.glyph-card-state { color:var(--muted); }.glyph-line { stroke:var(--pulse); filter:none; }.glyph-entry { stroke:var(--pulse); }
.solve-panel { min-height:0; margin:0; padding:0; border:1px solid var(--rule); background:var(--ground); }.solve-panel[aria-hidden="true"] { display:none; }.solve-card-inner { width:auto; min-height:64px; padding:8px 8px 8px 14px; border:0; border-radius:0; background:transparent; box-shadow:none; display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:12px; text-align:left; }.solve-score { margin:0; color:var(--paper); font-size:16px; }.solve-actions { width:auto; display:flex; gap:4px; margin:0; }.continue-button,.share-button { min-height:48px; border-radius:3px; font-size:14px; letter-spacing:0; }.continue-button { padding:0 13px; color:var(--ground); border-color:var(--pulse); background:var(--pulse); }.share-button { padding:0 8px; color:var(--paper); border:0; background:transparent; text-decoration:underline; }.hero-glyph,.solve-card-inner h1,.solve-card-inner .eyebrow { display:none; }.app.is-solved .help { display:none; }
@media (max-width:360px) { .solve-card-inner { align-items:flex-start; flex-direction:column; }.solve-actions { align-self:stretch; }.continue-button { flex:1; } }
.lab-page { min-height: 100dvh; max-width: 480px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.lab-back { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 20px; min-width: 88px; min-height: 44px; display: inline-grid; place-items: center; border: 1px solid #344039; border-radius: 22px; color: #c9d4c7; background: #151a18; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-decoration: none; }
.lab-mark { width: min(68vw, 260px); margin-bottom: 22px; }
.lab-mark svg { display: block; width: 100%; height: auto; }
.lab-mark path:first-child { fill: #195f48; stroke: #baff9d; stroke-width: 2; }
.lab-mark path:last-child { fill: #0b0d10; stroke: #f8fff6; stroke-width: 4; stroke-linejoin: round; }
.lab-page h1 { font-size: 32px; }
.lab-copy { max-width: 24ch; margin: 12px 0 0; color: #c9d4c7; font-size: 15px; }

.credit { align-self: center; max-width: 30em; margin: 6px 16px 10px; text-align: center; font-size: 12px; line-height: 1.45; color: var(--muted, #9aa79a); }

/* Prism notebook skin */
:root { --ground:#07101b; --paper:#edf5ff; --muted:#9eb3c8; --rule:#29435a; --panel:#0d1a29; --pulse:#e9f7ff; --fault:#ed786f; }
.app { background:radial-gradient(circle at 50% 34%, #163650 0, var(--ground) 61%); }
.topline { min-height:54px; }.brand { appearance:none; border:0; padding:0; background:transparent; color:var(--paper); display:flex; align-items:center; gap:7px; text-align:left; font:700 13px/1.02 Georgia,serif; letter-spacing:.04em; cursor:pointer; }.brand-mark { color:#d8f6ff; font:900 30px/1 Georgia,serif; text-shadow:0 0 14px #79d4f4; }.reading { display:flex; justify-content:space-between; margin:7px 1px 0; color:var(--muted); font:700 12px/1 ui-monospace,SFMono-Regular,monospace; letter-spacing:.08em; }.corner { margin-left:auto; }.small-button { border-color:var(--rule); color:var(--paper); background:#0b1724; font-size:11px; letter-spacing:.04em; }.board-wrap { filter:drop-shadow(0 20px 28px rgba(0,0,0,.28)); }.tile polygon { stroke:#07101b; stroke-width:2; }.tile.prism polygon { fill:#183f56; }.tile.locked polygon { fill:#101e28; stroke:#1d3245; }.tile.recent polygon { fill:#245a78!important; stroke:#e9f7ff; }.print { stroke:#d9f1ff; stroke-width:3.5; opacity:.82; }.prism-print { stroke:#f8fdff; }.split-red { stroke:#ff7c80; }.split-blue { stroke:#76b8ff; stroke-dasharray:7 4; }.mirror-edge { stroke:#e7eff7; stroke-width:5; stroke-dasharray:2 2; }.filter-dot { stroke:#f3fbff; stroke-width:1.5; }.filter-red { fill:#df5962; }.filter-blue { fill:#538fdc; }.path { stroke-width:5.5; filter:none; }.beam-white { stroke:#f2fbff; fill:#f2fbff; }.beam-red { stroke:#ff6e76; fill:#ff6e76; stroke-dasharray:none; }.beam-blue { stroke:#79b8ff; fill:#79b8ff; stroke-dasharray:8 4; }.entry-exit { stroke:#d8f6ff; }.star { stroke:#f6fbff; stroke-width:1.4; }.star-white { fill:#f7fbff; }.star-red { fill:#ff6972; }.star-blue { fill:#78b7ff; stroke-dasharray:2 1; }.orientation-ghosts { opacity:.34; }.orientation-ghosts .print { stroke:#fff; stroke-width:6; }.pulse-traveler { filter:drop-shadow(0 0 4px currentColor); }.tile.turning { animation:turn .12s cubic-bezier(.2,.8,.25,1); }.help { color:#d8e8f6; }.bottom { border-color:var(--rule); }.status { font-size:15px; }.score { color:var(--muted); }.undo { border-color:var(--rule); background:#0b1724; text-transform:none; }.level-dot { border-color:var(--rule); background:#0b1724; }.level-dot.active { background:#d8f6ff; border-color:#d8f6ff; color:#07101b; }.level-dot.cleared::after { color:#77d7ff; }.panel { background:#07101b; }.glyph-rail { background:#29435a; }.glyph-card { background:#0d2032; }.glyph-card.empty { background:#0a1420; }.glyph-card-label { font:600 11px/1.25 ui-monospace,SFMono-Regular,monospace; color:#d7e8f7; }.glyph-line { stroke-width:7; }.solve-panel { background:rgba(7,16,27,.95); border-color:#29435a; }.solve-card-inner { background:transparent; }.continue-button { background:#d8f6ff; border-color:#d8f6ff; color:#07101b; }.share-button { color:#d8f6ff; }.credit { color:#9eb3c8; }
@media (max-height:700px) { .reading { margin-top:0; }.brand { font-size:12px; }.board-wrap { width:min(78vw,292px); } .credit { display:none; } }

/* First-visit card: a small drawn prism before the two lines of level-one copy. */
.brand-logo { width:30px; height:30px; flex:0 0 30px; filter:drop-shadow(0 0 7px #79d4f4); }.brand-logo path:first-child { fill:#d8f6ff; }.brand-logo path:last-child { fill:#0d2133; }
.howto-backdrop { position:fixed; z-index:20; inset:0; display:grid; place-items:center; padding:20px; background:rgba(3,9,16,.78); }.howto-backdrop[aria-hidden="true"] { display:none; }.howto-card { width:min(100%,360px); padding:16px; border:1px solid #527791; background:#0d1a29; box-shadow:0 22px 70px rgba(0,0,0,.55); }.howto-pictures { height:138px; margin:-2px -2px 14px; overflow:hidden; background:#10283b; }.howto-pictures svg { display:none; }.howto-image { display:block; width:100%; height:100%; }.howto-glass { fill:#204c66; stroke:#d6f4ff; stroke-width:2; }.howto-beam { fill:none; stroke-width:6; stroke-linecap:round; }.howto-white { stroke:#f3fcff; }.howto-blue { stroke:#79b8ff; stroke-dasharray:8 4; }.howto-star { fill:#f1fbff; stroke:#79b8ff; stroke-width:1; }.howto-card h1 { margin:0 0 8px; font:600 24px/1 Georgia,serif; }.howto-card ul { margin:0; padding:0; list-style:none; color:#e4eff7; font-size:16px; line-height:1.35; }.howto-card li + li { margin-top:6px; }.howto-actions { display:flex; justify-content:flex-end; margin-top:18px; }.howto-actions .continue-button { min-width:106px; }
.notebook-button { align-self:center; min-height:44px; margin:10px 0 0; padding:0 14px; border:1px solid var(--rule); background:#0b1724; color:var(--paper); cursor:pointer; font-size:13px; }
.daily-button { align-self:center; min-height:44px; margin:10px 0 0; padding:0 14px; border:1px solid var(--rule); background:transparent; color:var(--muted); cursor:pointer; font-size:13px; }
.board-wrap { margin-bottom:34px; }.help { bottom:-30px; }
@media (max-height:700px) { .board-wrap { margin-bottom:0; } }

/* One screen (P2FS51): the 12 level dots sit in two rows of six. Targets keep 44 px. */
.level-strip { grid-template-columns: repeat(6, 1fr); }
@media (max-height: 700px) { .daily-button, .notebook-button { margin-top: 2px; } .level-strip { gap: 2px; } }

/* P2NF119: one screen at 320x568, every word at least 18 px. The level grid, Today, the notebook and the credit sit behind
   LEVELS and ?; the goal sits above the board; par and best sit under it. Nothing shrinks to fit. */
html, body { height: 100%; }
.app { height: 100dvh; min-height: 0; padding: max(6px, env(safe-area-inset-top)) 14px max(8px, env(safe-area-inset-bottom)); }
.topline { min-height: 58px; gap: 6px; font-size: 20px; }
.brand { font: 600 28px/1 Georgia, 'Times New Roman', serif; letter-spacing: 0; gap: 7px; }
.brand-logo { width: 30px; height: 30px; flex: 0 0 30px; }
.corner { gap: 6px; }
.small-button { min-height: 44px; min-width: 44px; padding: 0 12px; font-size: 20px; letter-spacing: 0; font-family: Arial, Helvetica, sans-serif; }
.reading { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 2px 0; font: 600 18px/1.3 Arial, Helvetica, sans-serif; letter-spacing: 0; color: var(--muted); }
.badge { font: 700 24px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--pulse); letter-spacing: 0; }
.goal { margin: 4px 2px 0; font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--paper); }
html[lang^="zh"] .goal { font-size: 24px; line-height: 1.45; }
.stage { flex: 1 1 0; min-height: 150px; display: grid; place-items: center; position: relative; padding: 2px 0; }
.stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); container-type: size; }
.app .board-wrap { width: auto; height: 100%; max-width: 100%; aspect-ratio: .98; margin: 0; position: relative; }
@supports (width: 1cqw) { .app .board-wrap { width: min(100cqw, 98cqh); height: min(100cqh, 102cqw); max-width: none; aspect-ratio: auto; } }
.app #board { position: absolute; inset: 0; width: 100%; height: 100%; }
.under { flex: 0 0 auto; min-height: 142px; display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; border-top: 1px solid var(--rule); padding-top: 4px; }
.score { margin: 0; font: 600 18px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--paper); }
.under-play { display: flex; flex-direction: column; gap: 2px; }
.app .help { position: static; inset: auto; display: block; min-height: 52px; margin: 0; padding: 0; text-align: left; font-size: 20px; line-height: 1.3; color: #d8e8f6; pointer-events: none; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.app .status { min-width: 0; font-size: 18px; line-height: 1.3; }
.undo { min-width: 88px; min-height: 48px; font-size: 20px; }
.under.is-solved .under-play { display: none; }
.app .solve-panel { margin: 0; border: 0; background: transparent; }
.app .solve-card-inner { padding: 0; min-height: 0; flex-direction: column; align-items: stretch; gap: 6px; }
.app .solve-score { font-size: 20px; line-height: 1.3; color: var(--paper); }
.app .solve-actions { display: flex; gap: 8px; align-self: stretch; }
.app .continue-button, .app .share-button { min-height: 48px; font-size: 20px; letter-spacing: 0; font-weight: 700; }
.app .continue-button { flex: 1 1 auto; padding: 0 14px; }
.app .share-button { flex: 0 0 auto; min-width: 88px; padding: 0 12px; border: 1px solid var(--rule); text-decoration: none; }
.level-dot, .level-strip .level-dot { font-size: 20px; min-height: 48px; }
.level-strip { gap: 6px; }
.panel { overflow-y: auto; }
.panel-head h1 { font-size: 28px; line-height: 1.1; }
.eyebrow { font-size: 18px; }
.panel-note { font-size: 20px; max-width: none; margin: 14px 0 12px; }
.levels-body { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; }
.levels-body .daily-button, .levels-body .notebook-button { align-self: stretch; margin: 0; min-height: 52px; font-size: 20px; padding: 0 14px; }
.levels-body .daily-button { background: var(--pulse); color: var(--ground); border-color: var(--pulse); font-weight: 700; }
.glyph-card { height: auto; min-height: 134px; }
.glyph-card-label { font: 600 18px/1.2 Arial, Helvetica, sans-serif; letter-spacing: 0; }
.howto-card { max-height: 100%; overflow-y: auto; }
.howto-card h1 { font-size: 28px; }
.howto-card ul { font-size: 20px; line-height: 1.4; }
.howto-credit { margin: 10px 0 0; color: var(--muted); font-size: 18px; line-height: 1.4; }
.howto-actions .continue-button { min-height: 48px; font-size: 20px; }
@media (max-height: 700px) { .app .board-wrap { margin: 0; } .app .help { display: block; } .credit { display: none; } .reading { margin-top: 2px; } }
.howto-card, .why-exists-card { font-size: 20px; }
.why-exists-layer .why-exists-close { font-size: 20px; }
/* The Levels sheet leaves the top bar (name, Levels, ?) in view and in reach. */
#levels-screen { top: calc(max(6px, env(safe-area-inset-top)) + 58px); min-height: 0; border-top: 1px solid var(--rule); padding-top: 10px; }
#levels-screen .panel-head { min-height: 48px; border-bottom: 0; }
#levels-screen .panel-head h1 { font-size: 28px; }
.goal, .app .solve-score, .app .help { text-wrap: balance; }

/* P2NF129: say what the game is, show where the light comes from and goes, and crop the board to the triangle. */
.tagline { margin: 0 2px; font: 600 18px/1.25 Arial, Helvetica, sans-serif; letter-spacing: 0; color: var(--paper); }
html[lang^="zh"] .tagline { font-size: 18px; line-height: 1.3; }
.lamp-disc { fill: #fff6c8; filter: drop-shadow(0 0 6px #ffe98a); }
.lamp-ray { stroke: #ffe98a; stroke-width: 3; stroke-linecap: round; }
.exit-ring { fill: none; stroke: var(--paper); stroke-width: 3.5; }
.exit-ring.reached { fill: #fff; stroke: #fff; filter: drop-shadow(0 0 6px #b7ff98); }
.app .board-wrap { width: auto; height: 100%; aspect-ratio: 312 / 330; }
@supports (width: 1cqw) { .app .board-wrap { width: min(100cqw, 94.5cqh); height: auto; aspect-ratio: 312 / 330; } }
@media (max-height: 700px) { .under { min-height: 132px; } .badge { font-size: 20px; line-height: 1.2; } }
