/* wareelaktunbut.com v2.1: Play and Lab. Loads after /v2.css on Play, Lab and Home only.
 Ported from the Claude Design canvas "wareelaktunbut.com v2" (site-v2.css rules held out of v2.css, keyflow-retro.css, the wallpaper board). Site additions are at the end. */

/* ---------- Lab hub ---------- */
.lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.lab-card { display: flex; flex-direction: column; gap: var(--space-4); padding: 18px; }
.lab-card .thumb { height: 240px; border: var(--border-hair) solid var(--ink); border-radius: var(--radius-sm); background: var(--hc); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lab-card h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.05; }
.lab-card p { margin: 0; color: var(--ink-2); }

/* ---------- /play share view ---------- */
.play-share { display: flex; flex-direction: column; gap: var(--space-10); }
.share-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 20px 0; border-bottom: var(--border-hair) solid var(--ink); }

/* Play on a dark band: game sits on a cream plate */
.band-dark .game { background-color: var(--card); background-image: var(--grain); color: var(--ink); padding: 24px; box-sizing: border-box; border: var(--border-strong) solid var(--ink); box-shadow: 6px 6px 0 var(--yellow); }
.band-dark .game .label { color: var(--muted); }
.band-dark .game a { color: var(--ink); }

/* ---------- Lab hub: puzzle-magazine look ---------- */
.mag-head { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: end; border-top: 6px solid var(--ink); border-bottom: var(--border-strong) solid var(--ink); padding: 10px 0; font: 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.mag-head span:nth-child(2) { text-align: center; }
.lab-grid { gap: 36px 32px; }
.lab-card { padding: 20px; background-color: var(--hc); transform: rotate(var(--tilt, 0deg)); box-shadow: 6px 6px 0 var(--ink); }
.lab-card:nth-child(1) { --tilt: -1.2deg; } .lab-card:nth-child(2) { --tilt: .8deg; } .lab-card:nth-child(3) { --tilt: -.6deg; }
.lab-card .thumb { border: var(--border-strong) dashed var(--ink); border-radius: 0; background: var(--card); }
.lab-card .label { color: var(--ink); }
.lab-card p { color: var(--ink); }
.lab-card h2 { font-size: 40px; text-transform: uppercase; letter-spacing: -.01em; }
.lab-card .card-foot { border-top: var(--border-strong) solid var(--ink); }
@media (max-width: 600px) { .lab-card { transform: none; } }

/* ---------- Newspaper frame ---------- */
.news { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-8); background-color: var(--card); background-image: var(--grain-soft); border: var(--border-heavy) solid var(--ink); box-shadow: var(--hard); }
.news-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-4); align-items: end; padding-bottom: 8px; border-bottom: var(--border-hair) solid var(--ink); font: 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.news-top span:nth-child(2) { text-align: center; } .news-top span:nth-child(3) { text-align: right; }
.news-title { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 900; font-stretch: 70%; font-size: clamp(56px, 9vw, 132px); line-height: .86; letter-spacing: -.01em; text-transform: uppercase; }
.news-date { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px var(--space-4); padding: 8px 0; border-top: 5px double var(--ink); border-bottom: var(--border-hair) solid var(--ink); font: 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.news-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; }
.news-cols > * { padding: 0 var(--space-6); }
.news-cols > * + * { border-left: var(--border-hair) solid var(--ink); }
.news-cols > :first-child { padding-left: 0; } .news-cols > :last-child { padding-right: 0; }
.news-kicker { font: 600 12px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.news-head { margin: 0; font-family: var(--font-display); font-weight: 900; font-stretch: 75%; font-size: 40px; line-height: .95; text-transform: uppercase; }
.news-dek { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.news-cap { font: 12px/1.45 var(--font-mono); color: var(--muted); border-top: var(--border-hair) solid var(--ink); padding-top: 6px; }
.play-news { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); }
.news .play-aside { gap: var(--space-4); }
@media (max-width: 760px) { .news { padding: var(--space-5); } .news-cols { grid-template-columns: minmax(0, 1fr); } .news-cols > * { padding: 0; } .news-cols > * + * { border-left: 0; border-top: var(--border-hair) solid var(--ink); padding-top: var(--space-5); margin-top: var(--space-5); } .news-top { grid-template-columns: 1fr; } .news-top span { text-align: left !important; } }

/* Lab hub as a front page: articles in ruled columns */
.lab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.lab-card, .lab-card:nth-child(n) { transform: none; box-shadow: none; border: 0; border-radius: 0; background: none; padding: 0 var(--space-6); }
.lab-card:first-child { padding-left: 0; } .lab-card:last-child { padding-right: 0; }
.lab-card + .lab-card { border-left: var(--border-hair) solid var(--ink); }
.lab-card h2 { font-size: 36px; }
.lab-card .thumb { border: var(--border-strong) solid var(--ink); background-color: var(--hc); background-image: var(--grain); }
.lab-card .card-foot { border-top: var(--border-hair) solid var(--ink); }
@media (max-width: 900px) { .lab-grid { grid-template-columns: minmax(0, 1fr); } .lab-card, .lab-card:nth-child(n) { padding: var(--space-5) 0; } .lab-card + .lab-card { border-left: 0; border-top: var(--border-hair) solid var(--ink); } }

/* Puzzle Sheet Press board */
.pz-wrap { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.pz-panel { display: flex; flex-direction: column; gap: var(--space-4); }
.pz-panel fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.pz-panel legend { margin-bottom: 8px; font: 600 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.pz-types { display: flex; flex-wrap: wrap; gap: 6px; }
.pz-types button, .pz-seg button { min-height: 44px; padding: 0 12px; border: var(--border-strong) solid var(--ink); background: var(--card); font: 500 14px var(--font-sans); color: var(--ink); cursor: pointer; }
.pz-types button[aria-pressed="true"], .pz-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pz-seg { display: flex; } .pz-seg button + button { border-left: 0; }
.pz-sheet { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); background: #fff; border: var(--border-strong) solid var(--ink); box-shadow: var(--hard); }
.pz-sheet-head { display: flex; justify-content: space-between; align-items: end; border-bottom: 5px double var(--ink); padding-bottom: 8px; }
.pz-sheet-head b { font-family: var(--font-display); font-weight: 900; font-stretch: 75%; font-size: 34px; line-height: 1; text-transform: uppercase; }
.pz-grids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.pz-grid { display: grid; grid-template-columns: repeat(9, 1fr); aspect-ratio: 1; border: 2.5px solid var(--ink); }
.pz-grid span { display: flex; align-items: center; justify-content: center; border: 1px solid rgba(31,29,27,.35); font: 600 clamp(12px, 1.3vw, 18px)/1 var(--font-sans); }
.pz-grid span:nth-child(9n+3), .pz-grid span:nth-child(9n+6) { border-right: 2px solid var(--ink); }
.pz-grid span:nth-child(n+19):nth-child(-n+27), .pz-grid span:nth-child(n+46):nth-child(-n+54) { border-bottom: 2px solid var(--ink); }
.pz-fig { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) { .pz-wrap, .pz-grids { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Play + skills on the dark band ---------- */
.play-skills { display: flex; flex-direction: column; gap: var(--space-8); }
.play-skills .news { box-shadow: 8px 8px 0 var(--yellow); color: var(--ink); }
.wt-ground .play-skills .news a { color: var(--ink); }
.play-skills .news .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.wt-ground .play-skills .news a.btn { color: var(--paper); }
.wt-ground .play-skills .news a.btn-line { background: transparent; color: var(--ink); }
.play-skills .news .label { color: var(--muted); }
.play-skills .news .prose, .play-skills .news .g-lede { color: var(--ink-2); }

/* ---------- Lab hub on a dark ground (token swap) ---------- */
.ground-dark { --ink: #f1ece1; --ink-2: rgba(241,236,225,.88); --muted: rgba(241,236,225,.75); --paper: #2b2a28; --card: #232221; --line-soft: rgba(241,236,225,.2); --grid: rgba(241,236,225,.04); --hard: 6px 6px 0 var(--yellow); }
.ground-dark .news { box-shadow: 8px 8px 0 var(--yellow); }
.ground-dark .lab-card .thumb { border-color: var(--ink); }
.ground-dark .btn { color: #2b2a28; }

/* v2.4 (23 Nov 2026, post-it round): game as steps, realistic app screens, results only after Ship it; Lab + game pages: dark ground, white header, white newspaper */
:root { --white: #fffdf9; }

/* Dark ground only: header and newspaper stay light */
.wt-ground.ground-dark { --ink: #1f1d1b; --ink-2: #3b3834; --muted: #5d5952; --paper: #f1ece1; --card: #faf6ee; --line-soft: #16161a26; --grid: #16161a0a; --hard: 5px 5px 0 #1f1d1b; background-color: var(--charcoal); background-image: none; }
.ground-dark .site-header { position: relative; isolation: isolate; border-bottom: 0; }
.ground-dark .site-header::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: var(--white); border-bottom: var(--border-hair) solid var(--ink); }
.ground-dark .news { background-color: var(--white); box-shadow: 8px 8px 0 var(--yellow); }
.ground-dark .site-footer { color: rgba(241,236,225,.82); border-color: rgba(241,236,225,.4); }
.wt-ground.ground-dark .site-footer a { color: #f1ece1; }

/* Title + info button */
.news-title-row { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: var(--space-4); }
.info-wrap { position: relative; }
.info-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: 8px; padding: 0; border: var(--border-strong) solid var(--ink); background: var(--yellow); color: var(--ink); cursor: pointer; }
.info-btn .material-symbols-sharp { font-size: 26px; }
.info-pop { position: absolute; top: 60px; right: 0; z-index: 3; width: 320px; display: flex; flex-direction: column; gap: 8px; padding: var(--space-4); background: var(--white); border: var(--border-strong) solid var(--ink); box-shadow: var(--hard); text-align: left; }
.info-pop p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* Game, stepped */
.game.g4 { max-width: none; width: 100%; display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-6); box-sizing: border-box; background: var(--card); border: var(--border-strong) solid var(--ink); }
.g-steps { margin: 0; padding: 0 0 var(--space-4); list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; border-bottom: var(--border-hair) solid var(--ink); font: 13px/1.3 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.g-steps li { display: inline-flex; align-items: center; gap: 8px; }
.g-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: var(--border-strong) solid currentColor; font-weight: 600; }
.g-steps li.done { color: var(--ink-2); } .g-steps li.done span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.g-steps li.now { color: var(--ink); font-weight: 600; } .g-steps li.now span { background: var(--yellow); border-color: var(--ink); }
.g-body { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--space-10); align-items: start; }
.g-left, .g-right { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.g-apps { display: flex; flex-wrap: wrap; }
.g-apps button { min-height: 44px; padding: 0 12px; border: var(--border-strong) solid var(--ink); background: var(--white); font: 500 13px var(--font-sans); color: var(--ink); cursor: pointer; }
.g-apps button + button { border-left: 0; }
.g-apps button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.g-hint { margin: 0; font-size: 15px; color: var(--ink-2); }
.g4 .added li { justify-content: space-between; }
.g4 .ship { justify-content: space-between; }
.ship-r { display: flex; align-items: center; gap: var(--space-4); }
.g-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: var(--space-4); border-top: var(--border-hair) solid var(--line-soft); }
.g-links .label { flex-basis: 100%; }
.g-result .meters { gap: 14px; }
.g-result .meter-track { height: 16px; }

/* Realistic app screen (Roomly checkout) */
.app-phone { width: 100%; max-width: 360px; border: var(--border-heavy) solid var(--ink); border-radius: 30px; background: #fff; padding: 10px 16px 18px; display: flex; flex-direction: column; gap: 12px; font: 13px/1.4 var(--font-sans); color: #1f1d1b; box-sizing: border-box; }
.ap-status { display: flex; justify-content: space-between; font: 600 12px var(--font-sans); padding: 2px 6px; }
.ap-bar { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; text-align: center; font-size: 16px; }
.ap-bar b { font-size: 16px; }
.ap-progress ol { margin: 0 0 6px; padding: 0; list-style: none; display: flex; justify-content: space-between; font-size: 11px; color: #6b675f; }
.ap-progress li.done { color: #3a7d52; } .ap-progress li.now { color: #1f1d1b; font-weight: 600; }
.ap-track { height: 4px; background: #ebe6dc; } .ap-track i { display: block; height: 100%; background: #1f1d1b; }
.ap-hotel { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid #e3ddd1; border-radius: 12px; }
.ap-hotel > div:last-child { display: flex; flex-direction: column; gap: 2px; }
.ap-hotel b { font-size: 15px; } .ap-hotel span { font-size: 12px; color: #5d5952; }
.ap-hotel .ap-ok { color: #3a7d52; font-weight: 600; }
.ap-thumb { flex: none; width: 56px; height: 56px; border-radius: 8px; background-color: var(--light-blue); background-image: var(--grain); }
.ap-alert { padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.ap-form { display: flex; flex-direction: column; gap: 6px; }
.ap-label { font-size: 12px; font-weight: 600; }
.ap-field { padding: 10px 12px; border: 1px solid #d8d2c6; border-radius: 10px; color: #8a857c; font-size: 13px; }
.ap-sum { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid #e3ddd1; }
.ap-sum div { display: flex; justify-content: space-between; font-size: 13px; color: #3b3834; }
.ap-sum .tot { font-weight: 700; font-size: 15px; color: #1f1d1b; }
.ap-cta { padding: 12px; border-radius: 12px; background: #1f1d1b; color: #fff; text-align: center; font-weight: 600; }
/* mechanic markers on the screen */
.mech { position: relative; outline: 2px dashed var(--green-ink); outline-offset: 4px; }
.mech.bad { outline-color: #c2412b; background: #fbe3dc; }
.mtag { position: absolute; top: -14px; right: -4px; padding: 1px 6px; background: var(--green-ink); color: #fff; font: 600 10px/1.5 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.mtag.bad { background: #c2412b; }
.mech.ap-progress { padding-top: 4px; }
@media (max-width: 860px) { .g-body { grid-template-columns: minmax(0, 1fr); } .info-pop { right: auto; left: -280px; } }

/* game: app picker tabs share one width; how-to line under the headline */
.g-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-apps button { padding: 0 6px; text-align: center; }
.news-how { margin: -8px auto 0; max-width: 56ch; text-align: center; font-size: 17px; line-height: 1.5; color: var(--ink-2); }

/* final check: three realistic app screens */
.apps-final { display: flex; flex-direction: column; gap: var(--space-6); padding-bottom: var(--space-10); border-bottom: var(--border-strong) solid var(--ink); }
.apps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); align-items: start; }
.app-fig { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.app-fig figcaption { font: 12px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.app-fig figcaption b { color: var(--ink); }
.ap-eta { display: flex; flex-direction: column; gap: 2px; }
.ap-eta span { font-size: 12px; color: #5d5952; }
.ap-eta b { font-size: 30px; line-height: 1; }
.ap-map { border-radius: 12px; overflow: hidden; background-color: #dfeee4; background-image: var(--grain); }
.ap-map svg { display: block; }
.ap-courier { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e3ddd1; border-radius: 12px; }
.ap-courier > div { flex: 1; display: flex; flex-direction: column; }
.ap-courier span { font-size: 12px; color: #5d5952; }
.ap-av { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); font-weight: 700; color: #1f1d1b !important; font-size: 14px !important; }
.ap-call { padding: 6px 12px; border: 1.5px solid #1f1d1b; border-radius: 999px; font-weight: 600; color: #1f1d1b !important; }
.ap-goal { display: flex; gap: 12px; align-items: center; }
.ap-goal > div:last-child { display: flex; flex-direction: column; } .ap-goal b { font-size: 16px; } .ap-goal span { font-size: 12px; color: #5d5952; }
.ap-goal .ap-thumb { background-color: var(--pink); }
.ap-amount { display: flex; flex-direction: column; gap: 6px; }
.ap-amount b { font-size: 28px; line-height: 1; } .ap-amount > span { font-size: 12px; color: #5d5952; }
.ap-amount .ap-ok { color: #3a7d52; font-weight: 600; }
.ap-track.big { height: 10px; border-radius: 5px; overflow: hidden; } .ap-track.big i { background: #3a7d52; }
.ap-streak { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: #f4f1ea; }
.ap-streak b { font-size: 14px; } .ap-streak > span:last-child { font-size: 12px; color: #5d5952; }
.ap-dots { display: flex; gap: 6px; } .ap-dots i { width: 14px; height: 14px; border-radius: 50%; background: #3a7d52; } .ap-dots i.off { background: #ddd6c8; }
.ap-toggle { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.ap-switch { position: relative; width: 40px; height: 24px; border-radius: 12px; background: #ddd6c8; }
.ap-switch.on { background: #3a7d52; } .ap-switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; } .ap-switch.on i { left: 19px; }
@media (max-width: 960px) { .apps-row { grid-template-columns: minmax(0, 1fr); } }

/* game screens board */
.flow { display: flex; flex-direction: column; gap: var(--space-6); }
.scr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; align-items: start; }
.scr { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.scr-panel { padding: var(--space-5); gap: var(--space-4); }
.scr-phone { display: flex; justify-content: center; }
.scr-phone .app-phone { max-width: 320px; }
.g-steps.mini { gap: 6px 12px; font-size: 10.5px; padding-bottom: 10px; }
.g-steps.mini li span { width: 20px; height: 20px; }
.pick.is-picked { background: var(--yellow); }
.ship-sum { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ship-sum li { display: flex; flex-direction: column; padding: 10px 12px; border: var(--border-hair) solid var(--ink); background: var(--white); }
.ship-sum span { font-size: 14px; color: var(--ink-2); }
.scr .pr { margin: 0; display: grid; gap: 6px; } .scr .pr div { display: flex; gap: 8px; font-size: 14px; } .scr .pr dt { font-weight: 600; } .scr .pr dd { margin: 0; color: var(--ink-2); }
.scr .cta { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1100px) { .scr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .scr-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 24 Nov: Lab notes (white footer, full-width deks, turn the page, Enigma, real Puzzle Sheet Press) ---------- */
.ground-dark .site-footer { position: relative; isolation: isolate; color: var(--ink); border-top: 0; }
.ground-dark .site-footer::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: var(--white); border-top: var(--border-hair) solid var(--ink); }
.wt-ground.ground-dark .site-footer a { color: var(--ink); }
.news-dek.news-dek-full { max-width: none; }
.news-turn { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-4); margin-top: var(--space-4); padding: 18px 64px 18px 20px; border: var(--border-strong) solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; }
.news-turn::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 44px; height: 44px; background: linear-gradient(135deg, var(--yellow) 0 50%, var(--charcoal, #2b2a28) 50%); border-left: var(--border-strong) solid var(--ink); border-top: var(--border-strong) solid var(--ink); }
.news-turn:hover::after { width: 56px; height: 56px; }
.nt-kick, .nt-page { font: 600 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.news-turn b { font-family: var(--font-display); font-weight: 900; font-stretch: 75%; font-size: clamp(22px, 2.6vw, 34px); line-height: 1; text-transform: uppercase; }
@media (max-width: 600px) { .news-turn { grid-template-columns: 1fr; gap: 6px; } }
/* Lab hub: Enigma as the feature card */
.lab-grid .lab-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); padding: var(--space-6) 0 0 !important; border-left: 0 !important; border-top: 5px double var(--ink); }
.lab-feature .lf-body { display: flex; flex-direction: column; gap: var(--space-4); justify-content: center; }
.lab-feature h2 { font-size: 56px; }
@media (max-width: 900px) { .lab-grid .lab-feature { grid-template-columns: minmax(0, 1fr); } }
/* Puzzle Sheet Press: landscape sheet of 8 cards */
.pz-land .pz-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px dashed var(--ink); }
.pz-card { aspect-ratio: 74 / 105; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-right: 1px dashed var(--ink); border-bottom: 1px dashed var(--ink); box-sizing: border-box; overflow: hidden; }
.pz-card:nth-child(4n) { border-right: 0; } .pz-card:nth-child(n+5) { border-bottom: 0; }
.pz-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.pz-card-h b { font: 800 15px/1 var(--font-display); font-stretch: 80%; text-transform: uppercase; }
.pz-card-h span { font: 10px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pz-card .mini { display: grid; aspect-ratio: 1; border: 2px solid var(--ink); }
.pz-card .mini span { display: flex; align-items: center; justify-content: center; border: 1px solid rgba(31,29,27,.3); font: 600 12px/1 var(--font-mono); }
.pz-card .mini.g4 { grid-template-columns: repeat(4, 1fr); } .pz-card .mini.g4 span { font-size: 15px; }
.pz-card .mini.ws { grid-template-columns: repeat(6, 1fr); } .pz-card .mini.ws span { border: 0; font-size: 11px; }
.pz-card .mini.sb, .pz-card .mini.ng { grid-template-columns: repeat(5, 1fr); }
.pz-card .mini.sb .st { font-size: 14px; } .pz-card .mini.ng .f { background: var(--ink); }
.pz-card .mini.kk { grid-template-columns: repeat(3, 1fr); } .pz-card .mini.kk .x { background: var(--ink); } .pz-card .mini.kk .cl { background: #d9d4c7; font-size: 10px; }
.mini-code { margin: 0; font: 600 13px/1.6 var(--font-mono); letter-spacing: .12em; }
.mini-code.sym { font-size: 18px; letter-spacing: .2em; }
.mini-hint { margin: 0; font: 10px/1.4 var(--font-mono); color: var(--muted); }
.mini-lad { margin: 0; font: 600 15px/1.8 var(--font-mono); letter-spacing: .2em; text-align: center; }
@media (max-width: 900px) { .pz-land .pz-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pz-card:nth-child(n) { border-right: 1px dashed var(--ink); border-bottom: 1px dashed var(--ink); } }
/* Enigma */
.en-cols { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.en-play, .en-side { display: flex; flex-direction: column; gap: var(--space-4); }
.en-board { display: flex; flex-wrap: wrap; gap: 8px; padding: var(--space-5); border: var(--border-strong) solid var(--ink); background: var(--paper); }
.en-board .tile { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 48px; }
.en-board .tile i { font-style: normal; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: var(--border-strong) solid var(--ink); background: #fff; font-size: 22px; }
.en-board .tile b { height: 22px; min-width: 32px; text-align: center; border-bottom: 2px solid var(--ink); font: 700 18px/22px var(--font-mono); }
.en-board .gap { width: 20px; }
.en-guess { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
.en-field { display: flex; flex-direction: column; gap: 6px; font: 600 13px var(--font-mono); letter-spacing: .04em; }
.en-field input { min-height: 44px; width: 72px; padding: 0 12px; border: var(--border-strong) solid var(--ink); background: #fff; font: 700 20px var(--font-mono); text-transform: uppercase; color: var(--ink); }
.en-field.wide input { width: 100%; box-sizing: border-box; font-size: 16px; text-transform: none; font-weight: 500; }
.en-locks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: var(--border-hair) solid var(--ink); }
.lk { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: var(--border-hair) solid var(--ink); }
.lk-n { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: var(--border-strong) solid var(--ink); font: 700 14px var(--font-mono); }
.lk-t { display: flex; flex-direction: column; } .lk-t b { font-size: 16px; } .lk-t small { font-size: 13px; color: var(--ink-2); }
.lk-s { font: 600 11px var(--font-mono); letter-spacing: .08em; }
.lk.done .lk-n { background: var(--green); } .lk.done .lk-t b { text-decoration: line-through; text-decoration-thickness: 2px; }
.lk.now { background: color-mix(in srgb, var(--yellow) 45%, transparent); } .lk.now .lk-n { background: var(--yellow); }
.lk.locked { color: var(--muted); } .lk.locked .lk-n { border-style: dashed; }
.en-mach { display: flex; flex-direction: column; gap: 12px; padding: var(--space-5); background: var(--charcoal, #2b2a28); border: var(--border-strong) solid var(--ink); color: #f1ece1; }
.en-mach .news-cap { color: rgba(241,236,225,.82); }
.en-rotors { display: flex; gap: 10px; justify-content: center; }
.en-rotors span { display: flex; align-items: center; justify-content: center; width: 52px; height: 56px; background: #f1ece1; color: #1f1d1b; border: 2px solid #f1ece1; font: 700 26px var(--font-mono); }
.en-lamps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.en-lamps span { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(241,236,225,.6); font: 600 12px var(--font-mono); }
.en-lamps .lit { background: var(--yellow); color: #1f1d1b; border-color: var(--yellow); box-shadow: 0 0 14px var(--yellow); }
.en-send { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); padding-top: var(--space-6); border-top: 5px double var(--ink); }
.en-send-txt { display: flex; flex-direction: column; gap: var(--space-3); }
.en-send-box { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border: var(--border-strong) solid var(--ink); background: var(--paper); }
.en-out { display: flex; flex-direction: column; gap: 4px; } .en-out code { padding: 10px 12px; background: #fff; border: var(--border-hair) solid var(--ink); font: 600 15px/1.4 var(--font-mono); letter-spacing: .08em; word-break: break-word; }
.en-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) { .en-cols, .en-send { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 24 Nov (2): Keyflow modes, subtle game steps, Lab footer to the bottom ---------- */
.kf-modes { display: flex; flex-direction: column; gap: var(--space-5); }
.kf-modes-head { display: flex; flex-direction: column; gap: 6px; }
.kf-modes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.kf-mode { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border: var(--border-heavy, 2px) solid var(--ink); background: var(--card); }
.kf-mode.on { box-shadow: 6px 6px 0 var(--yellow); }
.kf-mode-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kf-mode-top b { font: 700 18px/1 "Silkscreen", var(--font-mono); }
.kf-mode-top span { font: 11px var(--font-mono); letter-spacing: .06em; color: var(--ink-2); text-transform: uppercase; }
.kf-mini { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 190px; padding: 14px; border: 2px solid var(--ink); background-color: var(--paper); background-image: radial-gradient(var(--line-soft) 1px, transparent 1px); background-size: 14px 14px; }
.kf-mini-stats { display: flex; gap: 6px; } .kf-mini-stats span { padding: 2px 8px; border: 2px solid var(--ink); background: var(--card); font: 700 12px "Silkscreen", var(--font-mono); }
.kf-passage { margin: 0; font: 500 16px/1.7 var(--font-mono); color: var(--muted); }
.kf-passage .ok { color: var(--ink); } .kf-passage .bad { color: #fff; background: var(--red); }
.kf-passage .cur { display: inline-block; width: 10px; height: 20px; vertical-align: -4px; background: var(--green); }
.kf-badge { position: absolute; right: 10px; bottom: 10px; padding: 2px 6px; background: var(--ink); color: var(--paper); font: 700 10px "Silkscreen", var(--font-mono); }
.kf-sprint { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; }
.kf-now { font: 700 36px/1 "Silkscreen", var(--font-mono); }
.kf-next { font: 13px var(--font-mono); color: var(--muted); }
.kf-mini-input { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--ink); color: var(--paper); font: 500 16px var(--font-mono); }
.kf-mini-input .kf-caret { width: 9px; height: 18px; }
.kf-raid-mini { position: relative; flex: 1; min-height: 110px; }
.kf-raid-mini .w { position: absolute; padding: 2px 8px; border: 2px solid var(--ink); background: var(--card); font: 500 14px var(--font-mono); }
.kf-raid-mini .w:nth-child(1) { left: 6%; top: 10%; } .kf-raid-mini .w:nth-child(2) { left: 40%; top: 46%; border-style: dashed; border-color: var(--red); background: #fde7ea; } .kf-raid-mini .w:nth-child(3) { left: 12%; top: 72%; background: var(--yellow); }
.kf-raid-mini .w i { font-style: normal; color: var(--muted); }
.kf-raid-mini .boss { position: absolute; right: 8%; top: 8%; font-size: 40px; line-height: 1; }
.kf-mode-txt { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 900px) { .kf-modes-grid { grid-template-columns: minmax(0, 1fr); } }

/* Game steps: minimal progress bars; the labels stay for screen readers */
.g-steps, .g-steps.mini { display: flex; flex-wrap: nowrap; gap: 4px; width: 120px; padding: 0 0 2px; border-bottom: 0; }
.g-steps li, .g-steps.mini li { flex: 1; height: 3px; padding: 0; overflow: hidden; font-size: 0; color: transparent; background: var(--line-soft); }
.g-steps li span, .g-steps.mini li span { display: none; }
.g-steps li.done { background: var(--ink); }
.g-steps li.now { background: color-mix(in srgb, var(--ink) 45%, transparent); }

/* Lab: the white footer runs to the bottom of the page */
.wt-ground.ground-dark .page { padding-bottom: 0; }
.ground-dark .site-footer { padding-bottom: var(--space-12, 48px); margin-top: var(--space-10, 40px); }
.ground-dark .site-footer::before { bottom: -1px; }

/* Keyflow: the mode cards are the mode picker */
.kf-mode { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.kf-mode > span { display: block; }
.kf-mode .kf-mode-top, .kf-mode .kf-mini-stats { display: flex; }
.kf-mode .kf-mini, .kf-mode .kf-sprint { display: flex; }
.kf-mode .kf-mini-input { display: flex; }
.kf-mode[aria-pressed="true"] { box-shadow: 6px 6px 0 var(--yellow); outline: 3px solid var(--ink); outline-offset: -1px; }
.kf-mode[aria-pressed="false"]:hover { box-shadow: 4px 4px 0 var(--ink); }
.kf-mode-pick { font: 700 11px "Silkscreen", var(--font-mono); letter-spacing: .04em; }
.kf-mode[aria-pressed="true"] .kf-mode-pick { color: var(--ink); background: var(--yellow); align-self: flex-start; padding: 2px 6px; }
.kf-modes { margin-bottom: calc(var(--space-2) * -1); }
.kf-top { justify-content: flex-end; }

/* Keyflow, newspaper look (23 Nov 2026): site tokens, Archivo condensed + Plex Mono. */
.kf-hero { display: flex; flex-direction: column; gap: var(--space-4); margin-top: calc(var(--space-10) * -1); }
.kf-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 10vw, 144px); line-height: .9; letter-spacing: .02em; }
.kf-game { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); background: var(--card); border: var(--border-heavy) solid var(--ink); border-radius: 0; box-shadow: 8px 8px 0 var(--ink); }
.kf-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }
.kf-seg { display: inline-flex; border: var(--border-heavy) solid var(--ink); }
.kf-seg button { min-height: 44px; padding: 0 16px; border: 0; border-right: var(--border-heavy) solid var(--ink); background: var(--card); font: 400 14px/1 var(--font-display); letter-spacing: .04em; color: var(--ink); cursor: pointer; }
.kf-seg button:last-child { border-right: 0; }
.kf-seg button[aria-selected="true"], .kf-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.kf-th { font-family: "IBM Plex Sans Thai", var(--font-sans) !important; font-size: 15px !important; }
.kf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.kf-stats li { display: flex; flex-direction: column; gap: 6px; padding: var(--space-3) var(--space-4); border: var(--border-heavy) solid var(--ink); background: var(--paper); }
.kf-stats small { font: 12px var(--font-mono); letter-spacing: .08em; color: var(--ink-2); }
.kf-stats b { font: 700 30px/1 var(--font-display); }
.kf-hearts { display: flex; gap: 6px; padding-top: 4px; }
.kf-stage { position: relative; height: 560px; border: var(--border-heavy) solid var(--ink); background-color: var(--paper); background-image: radial-gradient(var(--line-soft) 1px, transparent 1px); background-size: 16px 16px; overflow: hidden; }
.kf-boss { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: var(--space-5); }
.kf-bossinfo { display: flex; flex-direction: column; gap: 6px; }
.kf-bossname { font: 700 22px/1 var(--font-display); }
.kf-bosstag { font: 12px var(--font-mono); color: var(--ink-2); }
.kf-hp { display: flex; gap: 3px; padding: 3px; border: var(--border-heavy) solid var(--ink); background: var(--card); align-self: flex-start; }
.kf-hp i { width: 16px; height: 14px; background: var(--red); }
.kf-hp i.off { background: var(--card); outline: 1px dashed var(--line-soft); outline-offset: -1px; }
.kf-pop { align-self: flex-start; padding: 2px 8px; background: var(--yellow); border: var(--border-heavy) solid var(--ink); font: 700 13px var(--font-display); }
.kf-word { position: absolute; padding: 4px 10px; font: 500 18px/1.2 var(--font-mono); color: var(--ink); }
.kf-ok { color: #3c7a1f; font-weight: 600; }
.kf-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; border-top: var(--border-heavy) solid var(--ink); background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px); opacity: .18; }
.kf-input { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-3) var(--space-4); border: var(--border-heavy) solid var(--ink); background: var(--ink); color: var(--paper); }
.kf-prompt { font: 700 22px var(--font-display); color: var(--green); }
.kf-typed { display: inline-flex; align-items: center; min-width: 240px; font: 500 22px var(--font-mono); }
.kf-caret { display: inline-block; width: 12px; height: 24px; margin-left: 2px; background: var(--green); }
.kf-hint { margin-left: auto; font: 12px var(--font-mono); color: var(--grey); }
.kbd-r { padding: 1px 6px; border: 1px solid var(--grey); font-size: 11px; }
.kf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.kf-result { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); background: var(--yellow); border: var(--border-heavy) solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.kf-ko { font: 700 72px/.9 var(--font-display); }
.kf-res-line { margin: 0; font-size: 18px; }
.kf-res-stats { display: flex; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.kf-res-stats li { display: flex; flex-direction: column; gap: 4px; }
.kf-res-stats b { font: 700 32px/1 var(--font-display); }
.kf-res-stats small, .kf-best { font: 12px var(--font-mono); letter-spacing: .06em; margin: 0; }
.kf-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.kf-btn { min-height: 48px; padding: 0 20px; border: var(--border-heavy) solid var(--ink); background: var(--ink); color: var(--paper); font: 700 15px var(--font-display); cursor: pointer; box-shadow: 4px 4px 0 var(--ink); }
.kf-btn.ghost { background: var(--card); color: var(--ink); }
.kf-roster { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); background: var(--card); border: var(--border-heavy) solid var(--ink); }
.kf-roster ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.kf-roster li { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: var(--space-4); border: var(--border-heavy) solid var(--ink); background: var(--paper); }
.kf-roster b { font: 700 15px var(--font-display); }
.kf-roster small { font: 12px var(--font-mono); color: var(--ink-2); }
.kf-note { margin: 0; font: 12px/1.5 var(--font-mono); color: var(--ink-2); }
@media (max-width: 720px) {
  .kf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kf-row { grid-template-columns: minmax(0, 1fr); }
  .kf-stage { height: 460px; }
  .kf-hint { margin-left: 0; }
}


/* ---- newspaper restyle (v2.2) ---- */
.kf-game, .kf-row { font-stretch: 78%; }
.kf-game { background-color: var(--card); background-image: var(--grain-soft); border-width: var(--border-heavy); box-shadow: var(--hard); }
.kf-seg button, .kf-btn { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.kf-stats li { background: var(--card); border-width: var(--border-strong); }
.kf-stats b { font-weight: 900; font-size: 40px; }
.kf-stage { background-image: repeating-linear-gradient(transparent 0 31px, rgba(31,29,27,.08) 31px 32px); border-top: 5px double var(--ink); }
.kf-bossname { font-weight: 900; font-size: 30px; text-transform: uppercase; }
.kf-word { font-family: var(--font-mono); font-stretch: 100%; }
.kf-typed { font-family: var(--font-mono); font-stretch: 100%; }
.kf-ko { font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.kf-ko { font-size: 72px; line-height: .9; }
.kf-result, .kf-roster { background-color: var(--card); background-image: var(--grain-soft); }

/* Mutelu wallpaper, ported from handoff/mutelu-wallpaper.html. Every rule is scoped to .mw so nothing leaks into the page. */
.mw {
  --paper: #F2EFE8;
  --paper-2: #EAE6DC;
  --ink: #1A1A17;
  --ink-2: #55534C;
  --rule: rgba(26, 26, 23, .18);
  --lucky: #7DBA5C;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.55;
}
.mw *, .mw *::before, .mw *::after { box-sizing: border-box; }
.mw [hidden] { display: none !important; }
.mw-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; border-bottom: 2px solid var(--ink); padding-bottom: 18px; }
.mw .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.mw .mw-title { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 7vw, 84px); line-height: .92; letter-spacing: -.02em; margin: 0; text-wrap: balance; text-transform: uppercase; }
.mw .mw-title span { display: inline-block; background: var(--lucky); padding: 0 .12em; transition: background .4s; }
.mw .lede { max-width: none; margin: 0; color: var(--ink-2); }

.mw .grid { display: grid; grid-template-columns: 290px minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 1040px) { .mw .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .mw .notes { grid-column: 1 / -1; } }
@media (max-width: 680px) { .mw .grid { grid-template-columns: minmax(0, 1fr); } }

.mw .panel-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  display: flex; justify-content: space-between; border-bottom: 1px solid var(--ink); padding-bottom: 6px; margin-bottom: 16px; }

.mw form { display: flex; flex-direction: column; gap: 18px; }
.mw .field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.mw label, .mw legend { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 0; }
.mw legend { margin-bottom: 6px; }
.mw label small, .mw legend small { font-family: var(--body); text-transform: none; letter-spacing: 0; color: var(--ink-2); font-size: 12px; }
.mw input[type=date], .mw input[type=time], .mw input[type=text] { font: inherit; font-size: 16px; color: var(--ink); background: #FBFAF6; border: 1.5px solid var(--ink); border-radius: 0; padding: 10px 12px; min-width: 0; width: 100%; }
.mw input:focus-visible, .mw button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.mw .seg { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); }
.mw .seg3 { grid-template-columns: 1fr 1fr 1fr; }
.mw .seg input { position: absolute; opacity: 0; pointer-events: none; }
.mw .seg label { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; cursor: pointer; background: #FBFAF6; text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 14px; font-weight: 500; }
.mw .seg label + input + label { border-left: 1.5px solid var(--ink); }
.mw .seg label span { font-family: var(--mono); font-size: 11px; color: var(--ink-2); font-weight: 400; }
.mw .seg input:checked + label { background: var(--ink); color: var(--paper); }
.mw .seg input:checked + label span { color: var(--paper); opacity: .8; }
.mw .seg input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.mw .hint { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.mw .example { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 1px dashed var(--ink-2); padding: 6px 8px; color: var(--ink-2); margin: 0; }
.mw .err { font-size: 13px; color: #9E1B2E; margin: 0; min-height: 1em; }
.mw .mw-btn { font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink); padding: 14px 16px; cursor: pointer; text-align: center;
  box-shadow: 6px 6px 0 var(--lucky); transition: transform .15s, box-shadow .15s; }
.mw .mw-btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--lucky); }
.mw .mw-btn:disabled { opacity: .55; cursor: default; transform: none; }
.mw .status { font-family: var(--mono); font-size: 12px; color: var(--ink-2); min-height: 1.2em; margin: 0; }
.mw .privacy { font-size: 12.5px; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 12px; margin: 0; }

.mw .stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mw .phone { position: relative; width: min(100%, 360px); aspect-ratio: 1170 / 2532; border: 2px solid var(--ink); border-radius: 46px; overflow: hidden; background: var(--paper-2); max-width: 100%;
  box-shadow: 10px 10px 0 rgba(26, 26, 23, .12); }
.mw .phone canvas { display: block; width: 100%; height: 100%; }
.mw .spinzone { position: absolute; left: 14.7%; width: 70.6%; top: 36.4%; height: 32.6%; border-radius: 50%; cursor: grab; touch-action: none; }
.mw .spinzone:active { cursor: grabbing; }
.mw .spinzone:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; }
.mw .spinbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.mw .mini { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: #FBFAF6; color: var(--ink); border: 1.5px solid var(--ink); padding: 8px 12px; cursor: pointer; }
.mw .mini[aria-pressed=true] { background: var(--ink); color: var(--paper); }
.mw #shuffleBtn { align-self: flex-start; }
.mw .spinhint { font-size: 12.5px; color: var(--ink-2); margin: 0; text-align: center; max-width: 36ch; }
.mw .quotes { display: flex; flex-direction: column; border: 1.5px solid var(--ink); background: #FBFAF6; }
.mw .quotes label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 14px; cursor: pointer; border-top: 1px solid var(--rule); }
.mw .quotes label:first-child { border-top: 0; }
.mw .quotes input[type=radio] { margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.mw .quotes label:has(input:checked) { background: var(--paper); }
.mw #ownQuote { margin-top: 6px; }
.mw .count { font-family: var(--mono); font-size: 11px; color: var(--ink-2); text-align: right; margin: 0; }
.mw .clock { position: absolute; left: 0; right: 0; top: 9.5%; text-align: center; color: var(--ink); pointer-events: none; }
.mw .clock .d { font-family: var(--body); font-weight: 500; font-size: clamp(11px, 3.6vw, 15px); }
.mw .clock .t { font-family: var(--body); font-weight: 600; font-size: clamp(52px, 20vw, 82px); line-height: 1; letter-spacing: -.02em; }
.mw .toggle { display: flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--ink-2); text-transform: none; letter-spacing: 0; cursor: pointer; }
.mw .toggle input { width: 16px; height: 16px; accent-color: var(--ink); }
.mw .dims { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-2); text-transform: uppercase; }

.mw .notes { display: flex; flex-direction: column; }
.mw .note { border-top: 1px solid var(--ink); padding: 14px 0 16px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; }
.mw .note:last-of-type { border-bottom: 1px solid var(--ink); }
.mw .note .k { font-family: var(--mono); font-size: 12px; color: var(--ink-2); padding-top: 2px; }
.mw .note h3 { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0; font-weight: 600; }
.mw .note p, .mw .note ul { margin: 4px 0 0; grid-column: 2; font-size: 14.5px; max-width: 60ch; }
.mw .note ul { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.mw .swatch { display: inline-block; width: .95em; height: .95em; border: 1.5px solid var(--ink); vertical-align: -2px; margin-right: 6px; background: var(--lucky); }
.mw .big { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.mw code.mycode { font-family: var(--mono); font-size: 14px; word-break: break-all; background: #FBFAF6; border: 1px solid var(--rule); padding: 1px 5px; }
.mw .custom { margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.mw table.days { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; grid-column: 2; }
.mw table.days td { padding: 4px 6px 4px 0; border-bottom: 1px dotted var(--rule); font-variant-numeric: tabular-nums; }
.mw table.days td:first-child { width: 18px; }
.mw table.days tr.me td { font-weight: 600; }
.mw table.days .chip { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .mw * { transition: none !important; }
  .mw #spinBtn { display: none; }
}

/* ---------- site layer (v2.1) ---------- */
.g-apps button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.g4 .pr { margin: 0; display: grid; gap: 6px; }
.g4 .pr div { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; }
.g4 .pr dt { font: 600 12px/1.6 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.g4 .pr dd { margin: 0; color: var(--ink-2); }
.g4 .cta { display: flex; flex-wrap: wrap; gap: 8px; }
.g4 .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.g4 .g-h2:focus { outline: none; }
.g4 .g-h2:focus-visible { outline: var(--border-heavy) solid var(--ink); outline-offset: 3px; }
.g4 .pick[aria-pressed="true"] { background: var(--yellow); }
.g4 .ship { flex-wrap: wrap; }
.g4 .ship-r { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .g4 .ship-r { width: 100%; justify-content: space-between; } }
.mw .phone canvas { position: absolute; inset: 0; }
.kf-result[hidden] + .kf-roster { grid-column: 1 / -1; }
/* Enigma: live locks */
.en-board button.tile { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.en-board .tile[aria-pressed="true"] i { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.en-board .tile.ok i { background: var(--ok-tint); }
.en-board .tile:hover i { background: var(--yellow); }
.en-msg { margin: 0; min-height: 1.5em; font: 500 14px/1.5 var(--font-mono); }
.lk:has(.lk-btn) { display: block; padding: 0; }
.lk-btn { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; width: 100%; min-height: 44px; padding: 10px 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.lk-btn[aria-current="true"] .lk-t b { text-decoration-color: currentColor; }
.lk.viewing { box-shadow: inset 4px 0 0 var(--ink); }
.lk.viewing .lk-btn { padding-left: 10px; }
.en-live .en-rotors { gap: 16px; }
.en-rot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.en-rot > span { display: flex; align-items: center; justify-content: center; width: 52px; height: 56px; background: #f1ece1; color: #1f1d1b; border: 2px solid #f1ece1; font: 700 26px var(--font-mono); }
.en-rb { width: 44px; height: 32px; border: 1.5px solid rgba(241,236,225,.6); background: transparent; color: #f1ece1; cursor: pointer; font-size: 14px; }
.en-rb:focus-visible { outline: 3px solid var(--yellow) !important; outline-offset: 2px; }
.en-live .en-lamps { flex-direction: column; align-items: center; }
.en-row { display: flex; gap: 6px; }
.en-note { margin: 0; padding: var(--space-5); border: var(--border-strong) solid var(--ink); background: var(--paper); font: 600 18px/1.8 var(--font-mono); letter-spacing: .08em; }
.en-note p { margin: 0; }
.en-recv { display: flex; flex-direction: column; gap: var(--space-3); padding-bottom: var(--space-4); margin-bottom: var(--space-2); border-bottom: 5px double var(--ink); }
.en-recv[hidden] { display: none; }
.en-out code { overflow-wrap: anywhere; }
.en-board { gap: 14px 24px; }
.en-word { display: flex; gap: 8px; }
@media (max-width: 600px) { .en-board { padding: var(--space-3); gap: 12px 16px; } .en-word { gap: 4px; } .en-board .tile, .en-board .tile i { width: 36px; } .en-board .tile i { height: 44px; font-size: 18px; } .en-board .tile b { min-width: 24px; } }
/* Keyflow: live game */
.kf-seg[hidden] { display: none; }
.kf-top { gap: var(--space-3); }
.kf-stage .kf-word { left: 0; top: 0; border: 2px solid var(--ink); background: #fbfaf6; white-space: nowrap; will-change: transform; }
.kf-stage .kf-word.atk { border: 2px dashed #c2412b; background: #fde7ea; }
.kf-stage .kf-word.on { background: #f8e354; }
.kf-stage .kf-word.atk.on { background: #f8e354; }
.kf-overlay { position: absolute; inset: auto 0 0 0; top: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); padding: var(--space-6); text-align: center; }
.kf-raid .kf-overlay { top: 190px; }
.kf-overlay p { margin: 0; max-width: 36ch; font: 500 18px/1.5 var(--font-sans); }
.kf-input .kf-prompt { cursor: text; }
.kf-in { flex: 1; min-width: 160px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--paper); caret-color: var(--green); outline: none; }
.kf-in:focus-visible { box-shadow: 0 2px 0 var(--green); }
.kf-in:disabled { opacity: 1; }
.kf-in:lang(th), .kf-stage [lang="th"] { font-family: "IBM Plex Sans Thai", var(--font-mono); }
.kf-passage-box { position: absolute; inset: 0 0 18px; padding: var(--space-6); overflow: hidden; }
.kf-passage.kf-big { font-size: clamp(18px, 2.4vw, 26px); line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.kf-passage.kf-big .cur { width: auto; min-width: 12px; height: auto; vertical-align: baseline; color: var(--paper); background: var(--ink); }
.kf-sprint-big { position: absolute; inset: 0 0 18px; justify-content: center; gap: var(--space-4); }
.kf-sprint-big .kf-now { font-size: clamp(40px, 8vw, 80px); overflow-wrap: anywhere; text-align: center; padding: 0 var(--space-4); }
.kf-sprint-big .kf-next { font-size: 16px; }
.kf-pop:empty { visibility: hidden; }
.kf-pop.on { animation: kf-pop .5s ease-out; }
@keyframes kf-pop { 0% { transform: scale(1.4); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .kf-pop.on { animation: none; } }
.kf-btn:focus-visible, .kf-seg button:focus-visible, .kf-mode:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 720px) { .kf-boss { left: 16px; transform: none; gap: var(--space-3); } .kf-sprite svg { width: 96px; height: 80px; } .kf-raid .kf-overlay { top: 130px; } .kf-bossname { font-size: 22px; } }
.kf-result[hidden] { display: none; }
/* Puzzle Sheet Press: live sheet and Play */
.pz-out { min-width: 0; }
.pz-card { min-width: 0; background: #fff; }
.pz-card .pz-svg { display: block; width: 100%; height: auto; }
.pz-wait { background: repeating-linear-gradient(45deg, transparent 0 8px, var(--line-soft) 8px 9px); }
.pz-msg { margin: 0; min-height: 1.4em; font: 500 13px/1.5 var(--font-mono); }
.pz-panel .btn[aria-disabled="true"] { opacity: .5; cursor: progress; }
.pz-play { display: flex; flex-direction: column; gap: var(--space-4); }
.pz-play[hidden], .pz-fig[hidden] { display: none; }
.pz-play-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.pz-time { font: 700 22px var(--font-mono); }
.pz-play-board { max-width: 520px; width: 100%; margin: 0 auto; }
.pz-board { position: relative; border: var(--border-strong) solid var(--ink); background: #fff; }
.pz-board .pz-svg { display: block; width: 100%; height: auto; }
.pz-over { position: absolute; inset: 0; }
.pz-hit { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; }
.pz-hit:hover { background: rgba(243, 189, 69, .25); }
.pz-hit.sel { background: rgba(243, 189, 69, .4); }
.pz-hit:focus-visible { outline: 3px solid #2b6f9e; outline-offset: -2px; }
.pz-hit.edge:hover { background: rgba(43, 111, 158, .2); }
.pz-pad { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pz-pad[hidden], .pz-text[hidden] { display: none; }
.pz-pad button { min-width: 44px; min-height: 44px; border: var(--border-strong) solid var(--ink); background: var(--card); font: 700 18px var(--font-mono); color: var(--ink); cursor: pointer; }
.pz-text { display: flex; flex-direction: column; gap: 8px; }
.pz-line { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; font: 600 14px var(--font-mono); letter-spacing: .08em; }
.pz-line input { min-height: 44px; padding: 0 12px; border: var(--border-strong) solid var(--ink); border-radius: 0; background: #fff; font: 600 18px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); min-width: 0; }
.pz-line.wide { grid-template-columns: 1fr; }
@media (max-width: 600px) { .pz-line { grid-template-columns: 1fr; gap: 4px; } }
.news > .game.g4 { flex: none; }
.build-head .label { white-space: nowrap; }
.wt-ground.ground-dark .btn:not(.btn-line) { color: #faf6ee; }
.wt-ground.ground-dark .btn.btn-line { color: var(--ink); }
@media (max-width: 720px) { .kf-boss { right: 16px; } .kf-bossinfo { min-width: 0; } .kf-bossname { overflow-wrap: anywhere; } .kf-hp i { width: 9px; height: 12px; } .kf-hearts svg { width: 16px; height: 16px; } }
.kf-passage .bad { background: #b3321f; color: #fff; }
