:root { color-scheme: light; --paper: #f8f7f2; --ink: #242a2e; --muted: #7b817e; --lime: #d9f975; --coral: #ff967e; --board: #171e26; --line: #e4e5dc; --focus: #df7555; --bg: #f8f7f2; --surface: #fffefa; --text: #242a2e; --text-muted: #646e67; --text-subtle: #7b817e; --brand: #536940; --brand-subtle: #eaf0e0; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 15px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; line-height: normal; letter-spacing: normal; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
.site-header { max-width: 1420px; height: 84px; margin: auto; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 850; letter-spacing: -.8px; }
.brand span { color: #8a8f87; font-weight: 450; }
.brand i { margin-left: 4px; color: #748657; font-size: 23px; font-style: normal; }
.header-actions { display: flex; align-items: center; gap: 26px; }
.back-link { font-size: 11px; color: #72796f; display: flex; gap: 16px; }
.site-header .acct__login { min-height: 36px; padding: 6px 12px; font-size: 11px; }
.site-header .acct__me { min-height: 36px; padding: 3px 10px 3px 3px; font-size: 11px; }
.site-header .acct__avatar { width: 28px; height: 28px; font-size: 12px; }
.site-header .acct__menu { z-index: 40; }
.turnfall-layout { max-width: 1240px; padding: 0 38px; margin: 20px auto 0; display: grid; grid-template-columns: minmax(190px, .92fr) minmax(360px, 510px) minmax(175px, .82fr); align-items: start; gap: clamp(25px, 3.7vw, 57px); }
.game-intro { padding-top: 24px; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 22px; color: #829067; font-size: 8px; font-weight: 650; letter-spacing: 1.6px; line-height: 1.7; }
.eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: #8eaa56; }
.intro-heading h1 { position: relative; width: max-content; margin: 0; font-size: clamp(62px, 6.15vw, 84px); line-height: .91; font-weight: 880; letter-spacing: -6px; }
.title-arrow { position: absolute; bottom: -2px; right: -43px; color: #afc578; font-size: 75px; line-height: 1; font-weight: 500; }
.korean-title { margin-top: 16px; color: #8c937d; font-size: 11px; letter-spacing: 4px; }
.intro-copy { margin: 30px 0 14px; font-size: 23px; line-height: 1.55; font-weight: 700; letter-spacing: -1.2px; }
.intro-copy em { font-style: normal; color: #738950; }
.intro-detail { margin: 0; color: #8a9085; font-size: 11px; line-height: 1.9; }
.mode-picker { display: grid; gap: 7px; margin-top: 27px; }
.mode-picker > button { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 61px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; text-align: left; background: transparent; color: #7c8474; transition: border-color .15s, background .15s; }
.mode-picker > button[aria-pressed="true"] { background: #eff2e6; border-color: #cbd5b8; color: #4e6336; }
.mode-picker > button:hover { border-color: #acb893; }
.mode-dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid #a8b09f; flex: none; }
[aria-pressed="true"] > .mode-dot { background: #7b934f; border-color: #7b934f; box-shadow: 0 0 0 3px #7b934f13; }
.mode-picker > button > span:nth-child(2) { display: grid; gap: 5px; flex: 1; }
.mode-picker b { font-size: 11px; font-weight: 650; }
.mode-picker small { color: #8e9784; font-size: 8px; font-weight: 400; }
.mode-arrow { font-size: 15px; color: #9aa88c; }
.mode-description { min-height: 43px; margin-top: 12px; font-size: 9px; line-height: 1.8; color: #939889; }
.quick-guide { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.quick-guide summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; color: #747e68; font-size: 10px; min-height: 25px; }
.quick-guide summary::-webkit-details-marker { display: none; }
.quick-guide summary span { color: #95a083; font-size: 15px; }
.quick-guide[open] summary span { transform: rotate(45deg); }
.quick-guide ol { list-style: decimal-leading-zero; margin: 18px 0 0; padding-left: 19px; color: #98a18b; font-size: 9px; }
.quick-guide li + li { margin-top: 16px; }
.quick-guide b { color: #6c7761; font-size: 10px; font-weight: 650; }
.quick-guide p { margin-top: 7px; color: #8f9787; font-size: 9px; line-height: 1.9; }
kbd { font-family: inherit; font-size: 8px; background: #e9ece2; border-radius: 3px; padding: 2px 4px; margin-right: 3px; }
.game-stage { min-width: 0; }
.game-console { overflow: hidden; background: var(--board); border: 1px solid #333c43; border-radius: 23px; padding: 7px; box-shadow: 0 18px 45px #24351b18, 0 1px 0 #ffffff15 inset; }
.console-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px 15px; color: #f7f9e8; }
.score-group { display: grid; gap: 4px; }
.score-group > span { color: #969f9b; font-size: 8px; letter-spacing: 1.8px; }
.score-group strong { color: #e8f0de; font-size: 33px; font-weight: 700; line-height: 1; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.console-best { display: flex; align-items: center; gap: 17px; }
.console-best > span { font-size: 8px; letter-spacing: .8px; color: #939e93; }
.console-best > span b { color: #d3dea9; font-size: 12px; font-weight: 600; letter-spacing: 0; margin-left: 4px; font-variant-numeric: tabular-nums; }
.utility-buttons { display: flex; gap: 5px; }
.icon-button { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #ffffff13; border-radius: 9px; color: #c1cbba; background: #ffffff05; font-size: 17px; }
.icon-button:hover { background: #ffffff12; }
.icon-button:disabled { opacity: .35; }
.board-wrap { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1; border: 1px solid #333c41; border-radius: 12px; background: #111820; isolation: isolate; }
#turnfall-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.combo-toast { pointer-events: none; position: absolute; inset: 32% 5% auto; text-align: center; color: var(--lime); font-size: clamp(26px, 4vw, 46px); font-weight: 850; letter-spacing: -1.5px; text-shadow: 0 4px 20px #111b1d; opacity: 0; transition: opacity .2s, transform .2s; transform: translateY(8px); }
.combo-toast.is-visible, .combo-toast:not([hidden]) { opacity: 1; transform: translateY(0); }
.game-overlay { position: absolute; inset: 0; padding: 24px; display: grid; place-items: center; background: #10171fc7; backdrop-filter: blur(4px); }
.overlay-card { width: 100%; max-width: 340px; padding: 16px 12px 10px; color: #f0f3df; text-align: center; }
.overlay-eyebrow { color: #9ba891; font-size: 7px; letter-spacing: 2.1px; }
.overlay-symbol { position: relative; width: 84px; height: 70px; margin: 21px auto 17px; transform: rotate(-12deg); }
.overlay-symbol > span { position: absolute; width: 21px; height: 21px; background: var(--lime); border: 1px solid #efffb1; border-radius: 4px; box-shadow: 0 4px 0 #91b744; }
.overlay-symbol > span:nth-child(1) { left: 4px; top: 17px; }.overlay-symbol > span:nth-child(2) { left: 28px; top: 17px; }.overlay-symbol > span:nth-child(3) { left: 28px; top: 41px; }.overlay-symbol > span:nth-child(4) { left: 52px; top: 41px; background: var(--coral); border-color: #ffc8b4; box-shadow: 0 4px 0 #ba6755; }
.overlay-symbol b { position: absolute; color: #95a489; top: -16px; right: -9px; font-size: 46px; line-height: 1; font-weight: 400; }
.overlay-card h2 { margin: 14px 0 12px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 750; line-height: 1.3; letter-spacing: -1.3px; }
.overlay-card > p { margin: 0; color: #a8b19f; font-size: 11px; line-height: 1.9; }
.overlay-card .overlay-note { margin-top: 15px; color: #a4b88c; font-size: 9px; }
.overlay-score { display: block; margin: 11px 0; color: var(--lime); font-size: 56px; line-height: 1.2; font-weight: 750; letter-spacing: -2px; }
.start-button { display: flex; align-items: center; justify-content: center; gap: 30px; width: 100%; min-height: 48px; margin-top: 22px; padding: 12px 18px; border: 1px solid #e5ff9e; border-radius: 11px; background: var(--lime); color: #273419; font-size: 13px; font-weight: 750; box-shadow: 0 3px 0 #93b34b; transition: background .15s, transform .1s; }
.start-button:hover { background: #e8ff9f; }
.start-button:active { transform: translateY(2px); box-shadow: none; }
.restart-button { padding: 10px 14px; margin-top: 7px; border: 0; background: transparent; color: #a4b198; font-size: 10px; }
.overlay-tip { display: block; margin-top: 16px; color: #74836e; font-size: 8px; letter-spacing: .2px; }
.game-overlay[data-state="paused"] .overlay-symbol, .game-overlay[data-state="over"] .overlay-symbol { display: none; }
.console-footer { min-height: 71px; padding: 13px 14px 8px; display: flex; align-items: center; gap: 20px; }
.charge-indicator { flex: 1; max-width: 175px; min-width: 100px; }
.charge-heading { display: flex; justify-content: space-between; align-items: center; color: #8d9b83; gap: 8px; font-size: 7px; letter-spacing: .8px; }
.charge-heading b { color: #c8df9e; font-size: 9px; font-weight: 600; letter-spacing: 0; }
.charge-pips { display: flex; gap: 5px; margin: 7px 0 5px; }
.charge-pips > span { display: block; flex: 1; height: 7px; border-radius: 2px; background: #344034; }
.charge-pips > .is-full { background: var(--lime); box-shadow: 0 0 8px #d9f97513; }
#turn-progress { display: block; width: 100%; height: 2px; appearance: none; border: 0; background: #29352e; overflow: hidden; color: #809c59; }
#turn-progress::-webkit-progress-bar { background: #29352e; }#turn-progress::-webkit-progress-value { background: #809c59; }#turn-progress::-moz-progress-bar { background: #809c59; }
.piece-preview { flex: 1; max-width: 110px; }
.piece-preview > span, .hold-button > span { display: block; color: #879481; font-size: 7px; letter-spacing: 1px; }
#next-canvas { display: block; width: 90px; height: 35px; max-width: 100%; }
.hold-button { width: 57px; flex: none; padding: 3px 6px 0; border: 1px solid #ffffff0b; border-radius: 7px; background: #ffffff03; text-align: left; }
.hold-button > span { display: flex; justify-content: space-between; gap: 5px; }
.hold-button small { color: #66755f; font-size: 7px; }
.hold-button:hover:not(:disabled) { background: #ffffff0a; border-color: #ffffff22; }
.hold-button:disabled { opacity: .45; }
#hold-canvas { display: block; width: 45px; height: 35px; }
.game-controls { margin-top: 10px; }
.turn-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.turn-control { display: flex; align-items: center; gap: 12px; min-height: 63px; padding: 11px 14px; border: 1px solid #c7d6a6; border-radius: 12px; background: #e9f0d9; color: #596d37; text-align: left; touch-action: manipulation; -webkit-user-select: none; user-select: none; transition: transform .1s, background .15s; }
.turn-control:hover:not(:disabled) { background: #e0ebc5; }
.turn-icon { flex: none; color: #718e42; font-size: 30px; line-height: 1; }
.turn-control > span:nth-child(2) { flex: 1; display: grid; gap: 5px; }
.turn-control b { font-size: 11px; font-weight: 700; }
.turn-control small { color: #91a279; font-size: 8px; }
.turn-control kbd { color: #8e9e79; font-size: 9px; background: #dce7c7; margin: 0; }
.turn-control:disabled { opacity: .45; }
.turn-control[data-chain="true"] { border-color: #acc669; background: #e1eebf; }.turn-control[data-chain="true"] small { color: #6f8c3d; font-weight: 650; }
.block-controls { display: grid; grid-template-columns: .8fr .8fr .8fr 1.5fr; gap: 7px; margin-top: 8px; }
.block-control { min-height: 58px; padding: 8px 9px; border: 1px solid #dce0d2; border-radius: 11px; background: #eeefe8; color: #6a7460; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; touch-action: none; -webkit-user-select: none; user-select: none; transition: transform .08s, background .15s; }
.block-control > b { font-size: 22px; line-height: 1; font-weight: 400; }.block-control > small { font-size: 7px; color: #9ba38f; }
.block-control:hover:not(:disabled) { background: #e3e8d9; }.block-control:disabled { opacity: .45; }
.block-control--drop { background: #edab93; border-color: #dfa188; color: #784c37; flex-direction: row; gap: 11px; }.block-control--drop > b { font-size: 25px; }.block-control--drop > span { display: grid; gap: 4px; font-size: 11px; font-weight: 700; }.block-control--drop small { color: #ab755c; font-size: 7px; letter-spacing: 1px; font-weight: 500; }
.block-control--drop:hover:not(:disabled) { background: #e9b29c; }
.turn-control:active:not(:disabled), .block-control:active:not(:disabled), .block-control.is-pressed, .turn-control.is-pressed { transform: translateY(2px); }
.game-status { margin: 11px 0 0; text-align: center; font-size: 8px; color: #9aa18f; min-height: 13px; line-height: 1.6; }
.game-sidebar { min-width: 0; padding-top: 40px; }
.game-sidebar > .eyebrow { font-size: 7px; letter-spacing: 1.1px; margin-bottom: 17px; color: #9ca28f; }
.game-sidebar h2 { font-size: 23px; line-height: 1.55; font-weight: 650; letter-spacing: -.8px; color: #5a6650; }
.session-metrics { display: grid; gap: 0; margin: 29px 0 0; border-top: 1px solid var(--line); }
.session-metrics > div { display: flex; align-items: center; justify-content: space-between; min-height: 51px; border-bottom: 1px solid var(--line); gap: 10px; }.session-metrics dt { color: #8b9481; font-size: 10px; }.session-metrics dd { display: flex; align-items: baseline; gap: 5px; margin: 0; font-size: 22px; color: #6b7b59; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }.session-metrics small { color: #a1ac91; font-size: 6px; letter-spacing: .4px; font-weight: 500; }
.turn-explainer { padding: 29px 0 22px; border-bottom: 1px solid var(--line); }
.explainer-number { display: block; color: #b6c68f; font-size: 60px; line-height: 1; font-weight: 550; letter-spacing: -5px; }
.turn-explainer > p { margin-top: 14px; font-size: 10px; color: #989f8d; line-height: 1.9; }.turn-explainer b { font-size: 12px; color: #7b8968; font-weight: 600; }
.explainer-chain { display: flex; align-items: center; gap: 7px; margin-top: 19px; color: #9daa8d; font-size: 7px; letter-spacing: .5px; }.explainer-chain i { color: #bec6b2; font-size: 11px; font-style: normal; }.explainer-chain span:last-child { color: #bf8c70; }
.save-panel { padding-top: 23px; }.save-panel > span { color: #a5ac99; font-size: 7px; letter-spacing: 1.4px; }.save-panel p { margin-top: 9px; color: #929c83; font-size: 9px; line-height: 1.8; }.save-panel button { margin-top: 8px; border: 0; padding: 4px 0; background: transparent; color: #6e8350; font-size: 9px; }.guide-fine { margin-top: 22px; font-size: 8px; line-height: 1.9; color: #a7af9b; }
.site-footer { display: flex; justify-content: space-between; max-width: 1240px; margin: 28px auto 0; padding: 21px 38px 25px; color: #a8ae9f; font-size: 9px; }.site-footer a { color: #939f84; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }.noscript { grid-column: 1 / -1; padding: 20px; text-align: center; }
@media (max-width: 1080px) { .turnfall-layout { max-width: 890px; grid-template-columns: minmax(190px, 1fr) minmax(360px, 510px); gap: 40px; }.game-sidebar { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; padding-top: 0; }.game-sidebar > .eyebrow, .game-sidebar > h2, .turn-explainer, .game-sidebar .guide-fine { display: none; }.session-metrics { margin: 0; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); gap: 12px; }.session-metrics > div { border: 0; flex-direction: column; justify-content: center; align-items: start; gap: 5px; padding: 10px 0; }.session-metrics dd { font-size: 22px; }.save-panel { padding-top: 0; align-self: center; } }
@media (max-width: 650px) {
  .site-header { height: 50px; padding: 0 19px; }.brand { font-size: 12px; gap: 4px; }.brand i { font-size: 18px; margin-left: 1px; }.header-actions { gap: 12px; }.back-link { font-size: 9px; gap: 8px; }.site-header .acct__login { font-size: 10px; min-height: 30px; padding: 5px 9px; }.site-header .acct__login svg { width: 13px; height: 13px; }.site-header .acct__me { min-height: 30px; padding: 2px; }.site-header .acct__name { display: none; }.site-header .acct__avatar { width: 25px; height: 25px; }
  .turnfall-layout { display: block; max-width: 440px; margin: 0 auto; padding: 0 12px; }.game-intro { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 3px 6px 12px; }.intro-heading h1 { font-size: 27px; line-height: 1; letter-spacing: -1.5px; white-space: nowrap; }.intro-heading h1 br { display: none; }.title-arrow { position: static; margin-left: 6px; font-size: 30px; line-height: .8; vertical-align: bottom; }.korean-title, .intro-heading .eyebrow, .intro-copy, .intro-detail, .mode-description, .quick-guide { display: none; }.mode-picker { display: flex; gap: 5px; margin-top: 0; }.mode-picker > button { min-height: 32px; width: auto; gap: 6px; padding: 7px 9px; border-radius: 8px; }.mode-picker b { font-size: 9px; }.mode-picker small, .mode-arrow { display: none; }.mode-picker > button > span:nth-child(2) { gap: 0; }.mode-dot { width: 5px; height: 5px; }
  .game-console { padding: 6px; border-radius: 18px; }.console-header { padding: 7px 11px 12px; }.score-group { gap: 4px; }.score-group > span { font-size: 7px; letter-spacing: 1.6px; }.score-group strong { font-size: 28px; }.console-best { gap: 13px; }.console-best > span { font-size: 7px; }.console-best > span b { font-size: 11px; }.icon-button { width: 29px; height: 29px; border-radius: 8px; font-size: 15px; }.board-wrap { border-radius: 10px; }.console-footer { min-height: 62px; padding: 10px 11px 5px; gap: 18px; }.charge-indicator { max-width: 165px; }.charge-heading { font-size: 6px; }.charge-heading b { font-size: 8px; }.charge-pips { margin: 6px 0 4px; gap: 4px; }.charge-pips > span { height: 6px; }.piece-preview { max-width: 82px; }#next-canvas { width: 77px; height: 30px; }.hold-button { width: 50px; padding: 3px 5px 0; }#hold-canvas { width: 40px; height: 30px; }
  .game-controls { margin-top: 8px; }.turn-controls { gap: 7px; }.turn-control { min-height: 55px; padding: 9px 13px; gap: 11px; border-radius: 11px; }.turn-icon { font-size: 26px; }.turn-control b { font-size: 11px; }.turn-control small { font-size: 7px; }.turn-control kbd { display: none; }.block-controls { gap: 6px; margin-top: 7px; }.block-control { min-height: 55px; padding: 7px; border-radius: 10px; }.block-control > b { font-size: 22px; }.block-control--drop > span { font-size: 10px; }.game-status { margin-top: 9px; font-size: 7px; min-height: 12px; }
  .game-overlay { padding: 22px; }.overlay-card { padding: 4px 12px; max-width: 290px; }.overlay-eyebrow { font-size: 6px; letter-spacing: 1.8px; }.overlay-symbol { margin-top: 15px; margin-bottom: 14px; transform: scale(.85) rotate(-12deg); height: 58px; }.overlay-card h2 { margin-top: 10px; margin-bottom: 10px; font-size: 24px; }.overlay-card > p { font-size: 10px; }.overlay-card .overlay-note { margin-top: 12px; font-size: 8px; }.start-button { min-height: 44px; margin-top: 18px; font-size: 12px; }.overlay-tip { font-size: 7px; margin-top: 13px; }.overlay-score { font-size: 49px; }
  .game-sidebar { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 24px 7px 0; padding-top: 0; }.session-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.session-metrics > div { align-items: center; gap: 8px; min-height: 72px; padding: 10px 0; }.session-metrics dt { font-size: 9px; }.session-metrics dd { font-size: 23px; }.save-panel { display: flex; gap: 15px; align-items: baseline; flex-wrap: wrap; }.save-panel > span { flex: none; font-size: 6px; letter-spacing: 1px; }.save-panel p { margin: 0; font-size: 8px; flex: 1; }.save-panel button { margin-top: 0; }.site-footer { max-width: 440px; margin-top: 16px; padding: 18px 19px 24px; font-size: 7px; }
}
@media (max-width: 370px) { .game-intro { gap: 8px; padding-inline: 4px; }.intro-heading h1 { font-size: 23px; }.title-arrow { font-size: 25px; margin-left: 3px; }.mode-picker > button { padding: 6px 7px; }.mode-picker b { font-size: 8px; }.console-footer { gap: 12px; padding-inline: 9px; }.overlay-symbol { margin-top: 7px; margin-bottom: 5px; height: 51px; }.overlay-card h2 { font-size: 22px; }.overlay-card .overlay-note { margin-top: 8px; }.start-button { margin-top: 12px; min-height: 41px; }.overlay-tip { margin-top: 11px; } }
@media (max-height: 540px) and (min-width: 651px) and (max-width: 1000px) {
  .site-header { height: 43px; padding: 0 25px; }.brand { font-size: 12px; }.brand i { font-size: 17px; }.header-actions { gap: 16px; }.back-link { font-size: 9px; }.site-header .acct__login { min-height: 28px; font-size: 9px; padding: 5px 9px; }.site-header .acct__avatar { width: 22px; height: 22px; }.site-header .acct__me { min-height: 28px; }.turnfall-layout { max-width: 900px; display: grid; grid-template-columns: 140px minmax(0, 1fr); margin: 2px auto 0; gap: 23px; padding: 0 25px; }.game-intro { padding-top: 18px; }.intro-heading h1 { font-size: 47px; letter-spacing: -3.5px; }.title-arrow { font-size: 42px; right: -28px; }.intro-heading .eyebrow, .korean-title, .intro-copy, .intro-detail, .mode-description, .quick-guide { display: none; }.mode-picker { margin-top: 20px; gap: 5px; }.mode-picker > button { padding: 8px 9px; min-height: 41px; gap: 7px; border-radius: 9px; }.mode-picker b { font-size: 9px; }.mode-picker small, .mode-arrow { display: none; }.game-stage { display: grid; grid-template-columns: minmax(200px, 285px) minmax(145px, 1fr); gap: 14px; align-items: center; }.game-console { border-radius: 15px; padding: 5px; }.console-header { padding: 3px 8px 8px; }.score-group { gap: 2px; }.score-group > span { font-size: 6px; }.score-group strong { font-size: 22px; }.console-best { gap: 8px; }.console-best > span { font-size: 6px; }.console-best > span b { font-size: 9px; }.icon-button { width: 24px; height: 24px; font-size: 13px; border-radius: 7px; }.board-wrap { width: min(100%, calc(100dvh - 162px)); margin: auto; border-radius: 7px; }.console-footer { padding: 7px 8px 3px; min-height: 45px; gap: 10px; }.charge-indicator { min-width: 80px; }.charge-heading { font-size: 5px; }.charge-heading b { font-size: 7px; }.charge-pips { margin: 4px 0 3px; }.charge-pips > span { height: 4px; }.piece-preview { max-width: 57px; }.piece-preview > span, .hold-button > span { font-size: 5px; }#next-canvas { width: 55px; height: 21px; }.hold-button { width: 36px; padding: 2px 4px 0; }.hold-button small { font-size: 5px; }#hold-canvas { width: 27px; height: 21px; }.game-controls { margin: 0; }.turn-controls { grid-template-columns: 1fr; gap: 7px; }.turn-control { min-height: 49px; padding: 9px 12px; gap: 10px; }.turn-icon { font-size: 25px; }.turn-control b { font-size: 10px; }.turn-control small { font-size: 7px; }.turn-control kbd { display: none; }.block-controls { grid-template-columns: repeat(3, 1fr); gap: 5px; }.block-control { min-height: 43px; padding: 5px; border-radius: 8px; }.block-control > b { font-size: 18px; }.block-control > small { font-size: 6px; }.block-control--drop { grid-column: 1 / -1; min-height: 43px; }.block-control--drop > span { display: flex; align-items: center; font-size: 10px; gap: 12px; }.block-control--drop small { font-size: 6px; }.game-status { grid-column: 1 / -1; margin-top: -6px; font-size: 6px; }.game-sidebar, .site-footer { display: none; }.game-overlay { padding: 12px; }.overlay-card { padding: 4px; }.overlay-eyebrow { font-size: 5px; }.overlay-symbol, .overlay-tip, .overlay-note { display: none; }.overlay-card h2 { font-size: 19px; margin: 10px 0 8px; }.overlay-card > p { font-size: 8px; }.start-button { margin-top: 15px; min-height: 37px; padding: 8px; border-radius: 8px; font-size: 10px; }.overlay-score { font-size: 34px; }.restart-button { font-size: 8px; padding: 8px; }
}
@media (min-width: 651px) and (min-height: 541px) and (max-height: 800px) {
  .site-header { height: 61px; padding-inline: 30px; }
  .turnfall-layout { max-width: 1000px; margin-top: 8px; padding-inline: 25px; gap: 25px; grid-template-columns: 165px minmax(0, 1fr); }
  .game-intro { padding-top: 12px; }
  .intro-heading .eyebrow { margin-bottom: 17px; font-size: 7px; }
  .intro-heading h1 { font-size: 62px; letter-spacing: -4.5px; }
  .title-arrow { font-size: 54px; right: -32px; }
  .korean-title { margin-top: 12px; font-size: 10px; }
  .intro-copy { margin-top: 20px; margin-bottom: 10px; font-size: 21px; }
  .intro-detail { display: none; }
  .mode-picker { margin-top: 21px; gap: 6px; }
  .mode-picker > button { min-height: 58px; padding-inline: 10px; gap: 8px; }
  .mode-picker .mode-arrow { display: none; }
  .mode-description { margin-top: 10px; }
  .quick-guide { margin-top: 14px; padding-top: 12px; }
  .game-stage { display: grid; grid-template-columns: minmax(260px, 1fr) 145px; gap: 12px; align-items: center; }
  .game-console { padding: 6px; border-radius: 19px; }
  .console-header { padding: 9px 11px 12px; }
  .board-wrap { width: min(100%, calc(100dvh - 229px)); margin-inline: auto; border-radius: 10px; }
  .console-footer { padding: 10px 10px 5px; min-height: 60px; gap: 13px; }
  .charge-indicator { min-width: 87px; }
  .piece-preview { max-width: 85px; }
  .game-controls { margin: 0; }
  .turn-controls { grid-template-columns: 1fr; gap: 9px; }
  .turn-control { min-height: 65px; padding: 11px 12px; gap: 9px; }
  .turn-control kbd { display: none; }
  .turn-icon { font-size: 25px; }
  .turn-control > span:nth-child(2) { gap: 6px; }
  .block-controls { grid-template-columns: repeat(3, 1fr); margin-top: 14px; gap: 5px; }
  .block-control { min-height: 54px; padding: 7px 4px; }
  .block-control--drop { grid-column: 1 / -1; min-height: 53px; margin-top: 3px; }
  .game-status { grid-column: 1 / -1; margin-top: 0; }
  .game-sidebar { grid-column: 1 / -1; margin-top: 8px; }
  .site-footer { margin-top: 18px; }
}
@media (min-width: 1081px) and (min-height: 541px) and (max-height: 800px) {
  .turnfall-layout { max-width: 1340px; grid-template-columns: minmax(170px, .72fr) minmax(500px, 2.1fr) minmax(170px, .72fr); gap: 30px; padding-inline: 30px; }
  .game-sidebar { grid-column: auto; padding-top: 15px; margin-top: 0; }
  .game-sidebar h2 { font-size: 21px; }
  .turn-explainer { padding-block: 23px 20px; }
  .explainer-number { font-size: 52px; }
  .save-panel { padding-top: 18px; }
  .guide-fine { margin-top: 15px; }
}
/* Keep gameplay instructions readable; the small English labels are decorative. */
.intro-detail { font-size: 12px; }
.mode-picker b { font-size: 12px; }
.mode-picker small { font-size: 10px; }
.mode-description { font-size: 11px; }
.quick-guide summary, .quick-guide b, .quick-guide p { font-size: 11px; }
.quick-guide kbd { font-size: 10px; }
.overlay-card h2, .overlay-card > p { white-space: pre-line; }
.overlay-card > p { font-size: 12px; }
.overlay-card .overlay-note { font-size: 10px; }
.turn-control b { font-size: 12px; }
.turn-control small { font-size: 10px; }
.block-control > small { font-size: 10px; }
.block-control--drop > span { font-size: 12px; }
.game-status { font-size: 10px; }
.session-metrics dt { font-size: 11px; }
.turn-explainer > p { font-size: 11px; }
.turn-explainer b { font-size: 13px; }
.save-panel p, .save-panel button { font-size: 11px; }
.guide-fine { font-size: 10px; }
@media (max-width: 650px) {
  .overlay-eyebrow, .overlay-symbol, .overlay-tip { display: none; }
  .game-overlay { padding: 17px; }
  .overlay-card { padding: 4px 9px; }
  .overlay-card h2 { line-height: 1.25; }
  .icon-button { width: 44px; height: 44px; }
  .console-best { gap: 10px; }
  .mode-picker > button { min-height: 44px; padding: 8px 10px; }
  .mode-picker b { font-size: 11px; }
  .game-intro { padding-bottom: 9px; }
  .turn-control { min-height: 59px; }
  .turn-control b { font-size: 12px; }
  .turn-control small { font-size: 10px; }
  .block-control > small { font-size: 9px; }
  .block-control--drop > span { font-size: 12px; }
  .overlay-card > p { font-size: 12px; }
  .overlay-card .overlay-note { font-size: 10px; }
  .game-status { font-size: 10px; }
  .session-metrics dt { font-size: 11px; }
  .save-panel { display: block; }
  .save-panel > span { display: block; margin-bottom: 6px; }
  .save-panel p, .save-panel button { font-size: 11px; }
  .save-panel button { min-height: 44px; }
}
@media (max-width: 370px) { .mode-picker > button { padding-inline: 7px; }.mode-picker b { font-size: 10px; }.turn-control { padding-inline: 9px; gap: 8px; }.turn-control small { font-size: 9px; }.overlay-card > p { font-size: 11px; }.overlay-card .overlay-note { font-size: 9px; }.start-button { min-height: 44px; } }
@media (max-height: 540px) and (min-width: 651px) and (max-width: 1000px) {
  .mode-picker > button { min-height: 44px; }.mode-picker b { font-size: 11px; }.turn-control b { font-size: 11px; }.turn-control small { font-size: 9px; }.game-status { font-size: 9px; }.overlay-card > p { font-size: 10px; }.block-control--drop > span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }.game-overlay { backdrop-filter: none; } }
