/* Game room: shared chrome, with each game's mechanics and board geometry intact. */
.lp-game-detail { background: #fff9f0; color: #14213d; }
.play-shell { --play-ink: #14213d; --play-muted: #506079; --play-line: #cbd4df; max-width: 1320px; margin: 0 auto; padding: 0 28px 40px; }
.play-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px 24px; min-height: 230px; }
.play-intro-copy { min-width: 0; }
.play-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; margin-bottom: 12px; }
.play-breadcrumb a { color: #40516b; text-decoration: underline; text-underline-offset: 3px; }
.play-intro h1 { font-family: 'Outfit', sans-serif; font-size: clamp(36px, 4.5vw, 64px); font-weight: 850; letter-spacing: -.045em; line-height: 1.05; margin: 0 0 10px; color: #14213d; }
.play-hook { font-family: 'Outfit', sans-serif; font-size: clamp(20px, 2vw, 26px); font-weight: 750; line-height: 1.25; margin: 0 0 8px; }
.play-description { font-size: 15px; line-height: 1.6; color: #40516b; margin: 0; max-width: 570px; }
.play-intro-art { width: 220px; height: 210px; flex: 0 0 220px; position: relative; display: grid; place-items: center; }
.play-intro-art::before { content: ''; position: absolute; inset: 10px; background: var(--play-tint); border-radius: 50%; }
.play-intro-art img { position: relative; width: 220px; height: 220px; object-fit: contain; transform: rotate(4deg); }
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 24px; }
.play-stage { min-width: 0; background: #fff; border: 1px solid #9aa9ba; border-radius: 14px; box-shadow: 0 5px 0 #14213d0a; scroll-margin-top: 18px; }
.play-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--play-tint); padding: 12px 22px; border-bottom: 1px solid #9aa9ba; border-radius: 13px 13px 0 0; }
.play-toolbar > span { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 750; }
.play-focus { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; border: 1px solid #53677d; border-radius: 7px; background: #fff; color: #14213d; padding: 7px 12px; font: 650 13px 'Inter', sans-serif; cursor: pointer; white-space: nowrap; }
.play-focus[hidden] { display: none; }
.play-focus:hover { background: #14213d; color: #fff; }
.play-shell :is(a, button, [role='button'], input):focus-visible { outline: 3px solid #2479b8; outline-offset: 4px; }
.lp-game-detail .game-page { max-width: none; padding: 22px; margin: 0; }
.lp-game-detail .play-stage > .container { max-width: none !important; padding: 22px !important; margin: 0 !important; }
.lp-game-detail .setup-panel { padding: 0; margin: 0; box-shadow: none; border-radius: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 22px; background: transparent; }
.play-setup-controls { min-width: 0; }
.lp-game-detail .setup-panel h2 { font-family: 'Outfit', sans-serif; font-size: 21px; font-weight: 750; margin-bottom: 16px; color: #14213d; }
.lp-game-detail .diff-grid { grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; }
.lp-game-detail .diff-card { position: relative; border: 1px solid #c4ced9; background: #fff; border-radius: 9px; padding: 12px 14px 12px 40px; text-align: left; }
.lp-game-detail .diff-card::before { content: ''; position: absolute; left: 14px; top: 17px; width: 15px; height: 15px; border: 1px solid #607087; border-radius: 50%; background: #fff; }
.lp-game-detail .diff-card.active { background: var(--play-tint); border-color: #476d67; box-shadow: 0 0 0 1px #476d67; }
.lp-game-detail .diff-card.active::before { background: #14213d; box-shadow: inset 0 0 0 3px #fff; }
.lp-game-detail .diff-card .diff-name, .lp-game-detail .diff-card.active .diff-name { color: #14213d; font-size: 15px; font-weight: 750; }
.lp-game-detail .diff-card .diff-detail { color: #506079; font-size: 12px; line-height: 1.4; }
.lp-game-detail .how-box { color: #233452; background: #eaf3fa; border: 1px solid #c5ddeb; font-size: 13px; line-height: 1.65; padding: 14px 16px; border-radius: 9px; margin-bottom: 16px; }
.lp-game-detail :is(.btn-play, .btn-again, .btn-next, .ts-start-btn) { background: #db493e; color: #fff; border-radius: 9px; font: 750 16px 'Inter', sans-serif; min-height: 48px; box-shadow: 0 3px 0 #14213d; }
.lp-game-detail :is(.btn-play, .btn-again, .btn-next, .ts-start-btn):hover { background: #bf392f; }
.play-preview { min-height: 300px; align-self: stretch; border-radius: 11px; border: 6px solid #203653; background: #14213d; color: #fff9f0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 25px 14px; text-align: center; box-shadow: inset 0 0 0 1px #5b718d; }
.play-preview strong { font-family: 'Outfit', sans-serif; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.03em; line-height: 1.15; }
.play-preview img { width: 100%; max-width: 310px; height: auto; margin: 24px 0; }
.play-preview > span { font-size: 11px; letter-spacing: .08em; color: #c2d7e7; }
.play-discovery { background: #fffdf9; border: 1px solid #b3bfcb; border-radius: 14px; padding: 22px 18px; }
.play-discovery h2 { font: 750 25px 'Outfit', sans-serif; letter-spacing: -.03em; margin: 0 0 6px; }
.play-discovery > p { color: #506079; font-size: 12px; line-height: 1.5; margin: 0 0 14px; }
.play-next { display: grid; grid-template-columns: 74px minmax(0, 1fr) 16px; gap: 12px; align-items: center; padding: 18px 0; color: #14213d; border-bottom: 1px solid #e1e3df; }
.play-next-art { display: grid; place-items: center; border-radius: 12px; width: 74px; height: 86px; overflow: hidden; }
.play-next img { width: 78px; height: 82px; object-fit: contain; transition: transform .2s; }
.play-next strong { display: block; font: 750 17px/1.2 'Outfit', sans-serif; margin-bottom: 7px; }
.play-next small { display: block; font-size: 12px; line-height: 1.5; color: #506079; }
.play-next > svg { width: 16px; }
.play-next:hover strong { color: #bf392f; text-decoration: underline; }
.play-next:hover img { transform: rotate(-5deg) scale(1.06); }
.play-all-link { display: flex; gap: 8px; align-items: center; justify-content: flex-end; font-size: 13px; font-weight: 750; color: #16598a; margin-top: 24px; }
.play-laugh-break { background: #ffe38b; border: 1px solid #e1b742; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 38px; margin-top: 28px; overflow: hidden; position: relative; }
.play-laugh-break h2 { font: 800 clamp(25px, 2.5vw, 36px)/1.1 'Outfit', sans-serif; letter-spacing: -.04em; margin: 0 0 9px; }
.play-laugh-break p { font-size: 15px; margin-bottom: 18px; }
.play-break-links { display: flex; flex-wrap: wrap; gap: 12px; }
.play-break-links a { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff9f0; color: #14213d; border: 1px solid #14213d; box-shadow: 0 2px 0 #14213d; border-radius: 8px; padding: 11px 18px; font-weight: 750; font-size: 14px; min-height: 44px; }
.play-break-links a:first-child { color: #fff; background: #ce4036; }
.play-break-links a:hover { transform: translateY(-2px); }
.play-laugh-break > img { width: 190px; height: 180px; object-fit: contain; margin-block: -28px; transform: rotate(6deg); }
/* Clearer HUDs and controls without changing a game's visibility or state. */
.lp-game-detail :is(.stats-bar, .ws-stats, .ts-stats, .sudoku-info, .bj-status-bar) { background: #f3f6f8; border: 1px solid #dbe2e8; box-shadow: none; border-radius: 10px; }
.lp-game-detail :is(.stat-label, .ts-stat-label, .bj-stat-label, .ctrl-label) { color: #506079; font-size: 11px; }
.lp-game-detail :is(.game-btns button, .modal-btns button, .action-btn) { min-height: 44px; font-family: 'Inter', sans-serif; }
.lp-game-detail :is(.btn-see-score, .btn-pause) { background: #203653; color: #fff; }
.lp-game-detail :is(.btn-change-diff, .btn-home) { background: #e9edf2; color: #233452; }
.lp-game-detail .canvas-wrap canvas { max-width: 100%; height: auto; }
.lp-game-detail :is(.modal, .sudoku-modal, .ws-complete-card, .ts-complete-card) { border: 1px solid #aebcca; }
.lp-game-detail .modal-header { background: #203653; color: #fff; }
.lp-game-detail .modal-score { color: #ffda64; }
.lp-game-detail :is(.bj-menu, .fir-menu) { background: #fff; border: 0; box-shadow: none; padding: 10px; }
.lp-game-detail :is(.bj-menu h2, .fir-menu h2) { font: 750 24px 'Outfit', sans-serif; color: #14213d; }
.lp-game-detail :is(.bj-diff-btn, .fir-diff-btn) { border: 1px solid #aebcca; background: var(--play-tint); color: #14213d; min-height: 58px; box-shadow: 0 3px 0 #14213d16; }
.lp-game-detail :is(.bj-diff-btn, .fir-diff-btn):hover { background: #203653; color: #fff; }
.lp-game-detail .sudoku-page { max-width: 620px; margin: 0 auto; padding: 22px; }
.lp-game-detail :is(.ws-instructions, .ts-instructions) { background: #eaf3fa; color: #233452; border: 1px solid #c5ddeb; border-radius: 10px; }
.lp-game-detail :is(.ws-diff-btn, .ts-diff-btn, .ctrl-btn) { min-height: 44px; }
.lp-game-detail :is(.ws-diff-btn.active, .ts-diff-btn.active, .ctrl-btn.active) { background: #203653; color: #fff; border-color: #203653; }
/* Hangman keeps the drawing and guesses visible together on wide screens. */
.lp-game-detail .hangman-board { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 20px; padding: 20px; background: #fffaf0; border: 1px solid #e4d8bc; box-shadow: none; }
.lp-game-detail .hangman-board .canvas-wrap { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
.lp-game-detail .hangman-board canvas { background: #fff3d2; border: 1px solid #dfc883; }
.lp-game-detail .hangman-board :is(.word-display, .keyboard) { grid-column: 2; margin: 0; padding: 0; }
.lp-game-detail .hangman-board :is(.round-result, .btn-next) { grid-column: 1 / -1; }
.lp-game-detail .key-btn { width: 38px; height: 44px; border-color: #bdc8d3; box-shadow: 0 2px 0 #14213d19; }
.lp-game-detail .word-letter { border-color: #14213d; }
.lp-game-detail .key-btn.used { opacity: 1; }
.lp-game-detail .key-btn.wrong { color: #a52626; background: #ffe4e4; border-color: #d27b7b; }
.lp-game-detail .key-btn.correct { color: #145638; background: #d7f2e1; border-color: #559970; }
.play-focused :is(.site-header, .site-footer, .play-intro, .play-discovery, .play-laugh-break, .lp-ad-slot) { display: none; }
.play-focused .play-shell { max-width: 1080px; padding-top: 18px; }
.play-focused .play-layout { grid-template-columns: minmax(0, 1fr); }
.lp-game-detail:not(.play-focused) .play-stage { scroll-margin-top: 100px; }
@media (max-width: 1100px) {
    .play-layout { grid-template-columns: minmax(0, 1fr) 255px; gap: 18px; }
    .lp-game-detail .setup-panel { grid-template-columns: 1fr; }
    .play-preview { min-height: 140px; flex-direction: row; gap: 16px; padding: 14px; }
    .play-preview img { width: 130px; margin: 0; }
    .play-preview > span { display: none; }
    .lp-game-detail .diff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-game-detail .diff-card { padding-left: 12px; }
    .lp-game-detail .diff-card::before { display: none; }
    .lp-game-detail .hangman-board { grid-template-columns: 1fr; }
    .lp-game-detail .hangman-board .canvas-wrap { grid-row: auto; }
    .lp-game-detail .hangman-board :is(.word-display, .keyboard) { grid-column: 1; }
}
@media (max-width: 850px) {
    .play-shell { padding: 0 18px 28px; }
    .play-layout { grid-template-columns: minmax(0, 1fr); }
    .play-intro { padding: 20px 6px 24px; min-height: 0; }
    .play-intro-art { flex-basis: 155px; width: 155px; height: 165px; }
    .play-intro-art img { width: 165px; height: 165px; }
    .play-next-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .play-next { grid-template-columns: 60px minmax(0, 1fr); }
    .play-next > svg { display: none; }
    .play-next-art { width: 60px; height: 76px; }
    .play-discovery { padding: 22px; }
    .play-laugh-break { padding: 25px; }
    .play-laugh-break > img { width: 140px; }
}
@media (max-width: 540px) {
    .play-shell { padding-inline: 12px; }
    .play-intro { gap: 6px; position: relative; padding-top: 10px; }
    .play-intro-copy { position: relative; z-index: 1; }
    .play-intro h1 { max-width: calc(100% - 65px); font-size: 38px; margin-block: 18px 12px; }
    .play-hook { font-size: 20px; max-width: 290px; }
    .play-description { font-size: 14px; }
    .play-intro-art { position: absolute; right: -3px; top: 24px; width: 85px; height: 90px; }
    .play-intro-art img { width: 90px; height: 90px; }
    .play-toolbar { padding: 10px 14px; }
    .play-toolbar > span { font-size: 17px; }
    .play-focus { font-size: 12px; padding: 7px 9px; }
    .lp-game-detail .game-page, .lp-game-detail .sudoku-page { padding: 16px 12px; }
    .lp-game-detail .play-stage > .container { padding: 16px 12px !important; }
    .lp-game-detail .setup-panel { gap: 18px; }
    .lp-game-detail .setup-panel h2 { font-size: 21px; }
    .lp-game-detail .diff-card { padding: 10px 8px; }
    .lp-game-detail .diff-card .diff-detail { font-size: 11px; }
    .play-preview { min-height: 115px; }
    .play-preview strong { font-size: 25px; }
    .play-preview img { width: 115px; }
    .play-next-list { grid-template-columns: 1fr; gap: 0; }
    .play-next { grid-template-columns: 70px minmax(0, 1fr) 18px; padding-block: 14px; }
    .play-next > svg { display: block; }
    .play-next strong { font-size: 20px; }
    .play-next small { font-size: 13px; }
    .play-laugh-break { padding: 24px 20px; }
    .play-laugh-break > img { display: none; }
    .play-laugh-break h2 { font-size: 29px; }
    .play-break-links { display: grid; grid-template-columns: 1fr; }
    .lp-game-detail .hangman-board { gap: 16px; padding: 14px 8px; }
    .lp-game-detail .hangman-board canvas { width: 160px; }
    .lp-game-detail .key-btn { width: 34px; height: 44px; font-size: 14px; }
    .lp-game-detail .stats-bar { padding: 12px 8px; }
    .lp-game-detail .stat-label { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .play-shell *, .play-shell *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Preserve whole gameplay captures at every breakpoint. */
.lp-game-detail .play-preview { flex-direction: column; padding: 18px 12px; gap: 12px; }
.lp-game-detail .play-preview img { width: 100%; max-width: 460px; height: 250px; object-fit: contain; margin: 0; border-radius: 5px; }
.lp-game-detail .play-preview > span { display: block; }
@media (max-width: 500px) { .lp-game-detail .play-preview img { height: 210px; } }