@font-face { font-family: Pretendard; src: url('fonts/pretendard.woff2') format('woff2'); font-weight: 45 920; font-display: swap; }
:root { color-scheme: light; --paper: #faf9f6; --ink: #252535; --muted: #83818e; --purple: #6955e8; --line: #e9e6df; --focus: #e58a46; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Pretendard, 'Malgun Gothic', sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
button:disabled { cursor: default; }
.site-header { height: 86px; max-width: 1440px; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 0 46px; }
.header-actions { display: flex; align-items: center; gap: 25px; min-width: 0; }
.site-header .acct__login { min-height: 38px; padding: 7px 13px; font-size: 11px; }
.site-header .acct__me { min-height: 38px; padding: 3px 10px 3px 3px; font-size: 11px; }
.site-header .acct__avatar { width: 28px; height: 28px; font-size: 12px; }
.site-header .acct__name { max-width: 9ch; }
.site-header .acct__menu { z-index: 40; }
.site-header .acct__menu .acct__avatar--lg { width: 44px; height: 44px; font-size: 18px; }
.brand { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 850; letter-spacing: -.8px; }
.brand span { color: #8c8997; font-weight: 450; }
.brand i { color: var(--purple); font-size: 23px; margin-left: 3px; font-style: normal; }
.back-link { font-size: 12px; color: #686571; display: flex; gap: 18px; }
.game-layout { max-width: 1290px; margin: 20px auto 0; padding: 0 38px; display: grid; grid-template-columns: minmax(210px, 1fr) minmax(360px, 432px) minmax(210px, .86fr); gap: clamp(24px, 4vw, 66px); align-items: center; line-height: normal; letter-spacing: normal; }
.game-intro { align-self: start; padding-top: 53px; }
.eyebrow { margin: 0 0 24px; color: var(--purple); font-size: 9px; font-weight: 700; letter-spacing: 1.7px; line-height: 1.7; display: flex; align-items: center; gap: 7px; }
.eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: var(--purple); }
h1 { margin: 0; position: relative; font-size: clamp(68px, 6.6vw, 94px); line-height: 1.02; font-weight: 850; letter-spacing: -7px; }
.title-star { position: absolute; font-size: 42px; color: #b3a8ed; margin: 14px 0 0 14px; letter-spacing: 0; }
.intro-copy { font-size: 22px; line-height: 1.65; font-weight: 650; margin: 27px 0 12px; letter-spacing: -1px; }
.intro-detail { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 0; }
.game-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 22px; }
.game-tags span { padding: 6px 9px; border: 1px solid var(--line); color: #8b8794; border-radius: 6px; font-size: 10px; }
.orbit-stamp { margin: 56px 0 0 7px; border: 1px solid #ddd8ef; width: 118px; height: 118px; border-radius: 50%; display: grid; place-content: center; text-align: center; transform: rotate(-13deg); color: #b2a6da; }
.orbit-stamp span { font-size: 7px; letter-spacing: 1.3px; }
.orbit-stamp b { font-size: 45px; font-weight: 400; line-height: 1.3; }
.orbit-stamp small { font-size: 6px; letter-spacing: .7px; }
.game-board { min-width: 0; background: #16192f; border-radius: 29px; padding: 8px; box-shadow: 0 20px 55px #3b2a7521, 0 1px 0 #fff inset; position: relative; border: 1px solid #35374c; }
/* 하늘 그림이 밝은 맵(솜사탕·노을·벚꽃)에서도 글자가 읽히게: 글자에 어두운 번짐, 판은 반투명 밤색 */
.playfield { --hud-shade: 0 1px 2px #15182fcc, 0 0 10px #15182f99; --hud-glass: #1a1d3c66; height: 550px; position: relative; border-radius: 22px 22px 14px 14px; background: #1a1d3c; overflow: hidden; isolation: isolate; }
canvas { width: 100%; height: 100%; display: block; }
.game-hud { position: absolute; top: 22px; left: 21px; right: 17px; display: flex; justify-content: space-between; color: #fff; pointer-events: none; text-shadow: var(--hud-shade); }
.score-block { display: grid; gap: 5px; }
.score-block > span { color: #ece8ff; font-size: 11px; font-weight: 600; letter-spacing: -.1px; }
.score-block strong { font-size: 43px; line-height: 1; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -2px; }
.score-block small { font-size: 13px; color: #ece8ff; font-weight: 500; letter-spacing: 0; margin-left: 5px; }
.hud-right { display: grid; justify-items: end; gap: 11px; }
.best-pill { background: var(--hud-glass); border: 1px solid #ffffff24; padding: 6px 9px; border-radius: 20px; font-size: 10px; color: #f1edff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.best-pill b { color: #f6e2ab; font-weight: 650; margin-left: 4px; font-variant-numeric: tabular-nums; }
.utility-buttons { display: flex; gap: 5px; pointer-events: auto; }
.icon-button { width: 34px; height: 34px; border: 1px solid #ffffff24; border-radius: 11px; background: var(--hud-glass); color: #f1edff; display: grid; place-items: center; font-size: 17px; text-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.icon-button:hover { background: #1a1d3c99; }
.icon-button:disabled { opacity: .35; }
.energy-hud { position: absolute; top: 119px; left: 21px; width: 134px; }
.energy-hud > div { display: flex; justify-content: space-between; color: #ece8ff; font-size: 10px; font-weight: 600; margin-bottom: 6px; letter-spacing: .2px; text-shadow: var(--hud-shade); }
progress { display: block; width: 100%; height: 5px; appearance: none; border: none; border-radius: 10px; overflow: hidden; background: #15182f66; color: #b5f0df; }
progress::-webkit-progress-bar { background: #15182f66; border-radius: 10px; }
progress::-webkit-progress-value { background: #b5f0df; border-radius: 10px; }
progress::-moz-progress-bar { background: #b5f0df; border-radius: 10px; }
.energy-hud[data-low="true"] progress { color: #ff9a93; }
.energy-hud[data-low="true"] progress::-webkit-progress-value { background: #ff9a93; }
.energy-hud[data-low="true"] progress::-moz-progress-bar { background: #ff9a93; }
.direction-hint { position: absolute; bottom: 18px; width: 100%; margin: 0; text-align: center; font-size: 11px; font-weight: 600; color: #f1edff; text-shadow: var(--hud-shade); pointer-events: none; }
.milestone { position: absolute; top: 30%; width: 100%; text-align: center; font-size: 21px; font-weight: 750; color: #ffe0a1; letter-spacing: -.5px; pointer-events: none; transition: opacity .25s; opacity: 0; }
.milestone.is-visible { opacity: 1; }
.game-overlay { position: absolute; inset: 0; background: #15172e35; display: flex; justify-content: center; align-items: center; padding: 23px; }
.overlay-card { width: 100%; padding: 28px 24px 22px; border: 1px solid #e0d6ff28; border-radius: 21px; background: #242642ef; color: #fff; text-align: center; box-shadow: 0 12px 50px #08091f28; backdrop-filter: blur(14px); }
.overlay-eyebrow { color: #c2afea; font-size: 8px; letter-spacing: 2.4px; }
.overlay-card h2 { margin: 13px 0 10px; font-size: 27px; font-weight: 750; letter-spacing: -1.1px; }
.overlay-card > p { margin: 0; color: #bdb8d5; font-size: 11px; line-height: 1.9; }
.start-button { margin-top: 24px; width: 100%; min-height: 49px; border: 1px solid #c7b5ff; border-radius: 13px; padding: 13px 18px; background: #c4b2f4; color: #292140; font-size: 13px; font-weight: 750; display: flex; justify-content: center; gap: 26px; transition: background .15s, transform .1s; }
.start-button:hover { background: #d4c5ff; }
.start-button:active { transform: scale(.98); }
.overlay-tip { display: block; margin-top: 16px; color: #9891b2; font-size: 8px; line-height: 1.7; }
.round-score { font-size: 59px; font-weight: 750; display: block; margin: 12px 0 5px; letter-spacing: -2px; }
.round-score small { font-size: 15px; letter-spacing: 0; margin-left: 5px; color: #aaa3c7; }
.overlay-card .round-note { font-size: 11px; color: #efd89f; }
.restart-button { color: #c0b7dd; background: none; border: 0; font-size: 11px; padding: 13px; margin: 4px auto -7px; }
.local-button { display: block; margin: 6px auto 0; padding: 9px; min-height: 36px; color: #dbd3ec; background: transparent; border: 0; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.overlay-card .ranked-disclosure { margin: 12px 0 0; color: #aea4c6; font-size: 8px; line-height: 1.8; word-break: keep-all; }
.game-overlay:not([data-mode="ready"]) .ranked-disclosure { display: none; }
.game-controls { padding: 11px 5px 0; display: grid; grid-template-columns: 1fr 1.18fr; gap: 9px; }
.control { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 77px; border: 1px solid #4a4764; border-radius: 16px; color: #e0d7f5; background: #33314d; box-shadow: 0 4px 0 #101223; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform .08s, background .08s; }
.control--climb { background: #bfafe9; border-color: #d5c5fa; color: #29203e; box-shadow: 0 4px 0 #6f609e; }
.control > span:last-child { display: grid; gap: 5px; }
.control b { font-size: 13px; letter-spacing: -.2px; }
.control small { font-size: 8px; font-weight: 500; opacity: .57; letter-spacing: .5px; }
.control-icon { font-size: 32px; font-weight: 400; }
.control:active:not(:disabled), .control.is-pressed { transform: translateY(3px); box-shadow: none; }
.control:disabled { opacity: .48; }
.board-footnote { margin: 13px 0 5px; text-align: center; color: #79768f; font-size: 8px; }
.board-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; min-height: 13px; margin: 11px 5px 5px; color: #a39bb5; font-size: 8px; line-height: 1.55; }
.board-meta > p { margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.board-meta button { flex: none; padding: 0; min-height: 17px; background: none; border: 0; color: #c6b5ef; font-size: 8px; line-height: 1.55; }
.board-meta__retry { text-decoration: underline; text-underline-offset: 3px; }
.board-meta button:hover { color: #eee5ff; }
#online-status[data-state="saved"], #online-status[data-state="ranked"] { color: #b2d9c9; }
#online-status[data-state="error"] { color: #f0c9a3; }
.game-guide { align-self: start; padding-top: 68px; }
.game-guide .eyebrow { font-size: 8px; margin-bottom: 16px; letter-spacing: 1.3px; color: #aaa4bb; }
.game-guide h2 { margin: 0; font-size: 20px; line-height: 1.7; font-weight: 650; letter-spacing: -.8px; }
.game-guide ol { padding: 0; list-style: none; display: grid; gap: 26px; margin: 31px 0; }
.game-guide li { display: flex; gap: 13px; }
.game-guide li > span { color: #aaa1c5; font-size: 10px; padding-top: 3px; }
.game-guide li b { font-size: 11px; font-weight: 650; }
.game-guide li p { margin: 6px 0 0; font-size: 10px; line-height: 1.85; color: #97929f; word-break: keep-all; }
.personal-best { padding: 21px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.personal-best > span:first-child { font-size: 8px; letter-spacing: 1.4px; color: #a89fbc; }
.personal-best p { margin: 12px 0 8px; }
.personal-best strong { font-size: 33px; font-weight: 650; color: #6f5b97; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.personal-best small { margin-left: 5px; font-size: 11px; color: #9c93ac; }
#save-note { font-size: 9px; line-height: 1.7; color: #a8a1b2; display: block; }
.guide-fine { margin: 22px 0 0; font-size: 9px; color: #a59cac; line-height: 2; }
kbd { font-family: inherit; font-size: 8px; background: #eeebf4; padding: 2px 5px; border-radius: 3px; }
.site-footer { max-width: 1290px; display: flex; justify-content: space-between; margin: 34px auto 0; padding: 20px 38px 25px; color: #aaa5b1; font-size: 9px; }
.site-footer a { color: #797181; }
.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; }
.leaderboard { grid-column: 1 / -1; min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #ffffffb0; scroll-margin-top: 20px; }
.leaderboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.leaderboard-heading .eyebrow { margin-bottom: 10px; font-size: 8px; letter-spacing: 1.6px; }
.leaderboard-heading h2 { margin: 0; font-size: 26px; font-weight: 720; letter-spacing: -1px; line-height: 1.45; }
.leaderboard-heading > div > p:last-child { margin-top: 8px; color: #9a93a4; font-size: 11px; line-height: 1.8; }
.rank-button { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 40px; padding: 8px 13px; border: 1px solid #e5dfed; border-radius: 11px; background: #fbf9fe; color: #8e7fa8; font-size: 10px; font-weight: 550; }
.rank-button:hover { border-color: #cfc0e2; background: #f4effb; }
.rank-button:disabled { opacity: .55; }
.leaderboard-body { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.7fr); gap: 44px; padding-top: 27px; }
.account-record { min-width: 0; padding: 23px; border-radius: 18px; background: #f3f0f8; align-self: start; }
.account-record__label { margin: 0 0 10px; color: #a294b8; font-size: 8px; font-weight: 600; letter-spacing: 1.4px; }
.account-record h3 { margin: 0; color: #6e5b87; font-size: 15px; font-weight: 650; letter-spacing: -.3px; }
.account-record__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 24px 0 20px; }
.account-record__metrics dt { margin-bottom: 10px; color: #a298b0; font-size: 9px; }
.account-record__metrics dd { margin: 0; display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.account-record__metrics strong { color: #71588e; font-size: 30px; font-weight: 650; letter-spacing: -1.5px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.account-record__metrics small { color: #9f90af; font-size: 10px; }
.account-record__help { margin: 0; color: #a398af; font-size: 10px; line-height: 1.85; word-break: keep-all; }
.rank-login { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 42px; margin-top: 16px; padding: 10px 12px; border: 1px solid #e2d8ee; border-radius: 10px; background: #fdfbff; color: #8f77ac; font-size: 10px; font-weight: 600; }
.rank-login:hover { border-color: #cbb6e0; }
.leaderboard-disclosure { margin: 17px 0 0; padding-top: 15px; border-top: 1px solid #e3ddeb; color: #a59bb1; font-size: 9px; line-height: 1.9; word-break: keep-all; }
.leaderboard-results { min-width: 0; }
.leaderboard-results__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 18px; }
.leaderboard-results__head h3 { font-size: 13px; font-weight: 650; letter-spacing: -.3px; }
.leaderboard-results__head h3 > span { display: inline-block; margin-left: 7px; color: #aa9cbb; font-size: 8px; font-weight: 500; letter-spacing: .8px; }
#leaderboard-count { color: #aaa0b3; font-size: 9px; }
.leaderboard-columns, .leaderboard-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 83px; align-items: center; gap: 10px; }
.leaderboard-columns { padding: 10px 13px; border-bottom: 1px solid var(--line); color: #aaa2b2; font-size: 9px; }
.leaderboard-columns > :last-child { text-align: right; }
.leaderboard-list { list-style: none; margin: 0; padding: 0; }
.leaderboard-row { min-height: 55px; padding: 12px 13px; border-bottom: 1px solid #efebf3; border-radius: 9px; color: #82718f; }
.leaderboard-row--me, .leaderboard-row[data-me="true"] { background: #f3effb; }
.rank-position { color: #ad9ac3; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-player { min-width: 0; color: #7f718c; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.rank-player small, .rank-me { margin-left: 6px; padding: 2px 5px; border-radius: 4px; background: #e7dff3; color: #9d87b6; font-size: 8px; white-space: nowrap; }
.rank-score { text-align: right; color: #826995; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.rank-score small { color: #afa3b8; font-size: 9px; font-weight: 400; margin-left: 4px; }
.leaderboard-empty { padding: 40px 15px; color: #a89db5; font-size: 11px; text-align: center; line-height: 1.9; }
.leaderboard-empty b { display: block; margin-bottom: 5px; color: #90809e; font-size: 13px; font-weight: 600; }
.leaderboard-empty span { display: block; }
.leaderboard-notice { margin: 0 0 14px; padding: 10px 13px; border-radius: 9px; background: #faf2e8; color: #b38e65; font-size: 10px; line-height: 1.8; }
.leaderboard-fine { margin-top: 14px; color: #b0a7b9; font-size: 9px; line-height: 1.8; }
@media (max-width: 1100px) {
  .game-layout { grid-template-columns: minmax(200px, 1fr) minmax(350px, 432px); max-width: 880px; gap: 35px; }
  .game-guide { display: none; }
  .leaderboard-body { grid-template-columns: minmax(190px, .9fr) minmax(0, 1.5fr); gap: 25px; }
}
@media (max-width: 650px) {
  .site-header { height: 53px; padding: 0 19px; }
  .brand { font-size: 13px; gap: 4px; }
  .brand i { font-size: 18px; }
  .back-link { font-size: 10px; gap: 10px; }
  .header-actions { gap: 12px; }
  .site-header .acct__login { min-height: 32px; padding: 6px 10px; font-size: 10px; }
  .site-header .acct__login svg { width: 14px; height: 14px; }
  .site-header .acct__me { min-height: 32px; padding: 2px; }
  .site-header .acct__name { display: none; }
  .site-header .acct__avatar { width: 26px; height: 26px; }
  .game-layout { display: block; margin: 0 auto; padding: 0 10px 9px; max-width: 460px; }
  .game-intro { padding: 0 8px 10px; display: flex; align-items: center; justify-content: space-between; }
  .game-intro h1 { font-size: 20px; letter-spacing: -1px; line-height: 1.3; }
  .game-intro h1 br { display: none; }
  .title-star { position: static; margin: 0 0 0 6px; font-size: 15px; }
  .game-intro .eyebrow, .intro-copy, .intro-detail, .orbit-stamp { display: none; }
  .game-tags { margin: 0; gap: 4px; }
  .game-tags span { font-size: 8px; padding: 4px 6px; border-radius: 4px; }
  .game-tags span:nth-child(2) { display: none; }
  .game-board { border-radius: 23px; padding: 6px; }
  .playfield { height: clamp(310px, calc(100svh - 224px), 590px); border-radius: 17px 17px 10px 10px; }
  .game-hud { top: 19px; left: 18px; right: 15px; }
  .score-block strong { font-size: 36px; }
  .energy-hud { top: 105px; left: 18px; width: 118px; }
  .game-controls { gap: 8px; padding: 9px 2px 0; }
  .control { min-height: 68px; border-radius: 13px; }
  .control-icon { font-size: 29px; }
  .control b { font-size: 13px; }
  .board-footnote { font-size: 8px; margin: 12px 0 5px; }
  .board-meta { margin: 10px 3px 5px; gap: 4px 8px; }
  .game-overlay { padding: 24px; }
  .overlay-card { padding: 24px 19px 19px; }
  .overlay-card h2 { font-size: 24px; }
  .site-footer { margin: 0; padding: 0 18px max(14px, env(safe-area-inset-bottom)); font-size: 8px; justify-content: center; }
  .site-footer > span { display: none; }
  .leaderboard { margin-top: 23px; padding: 20px 16px; border-radius: 20px; scroll-margin-top: 12px; }
  .leaderboard-heading { gap: 12px; flex-wrap: wrap; padding-bottom: 20px; }
  .leaderboard-heading h2 { font-size: 22px; letter-spacing: -.7px; }
  .leaderboard-heading > div > p:last-child { font-size: 10px; }
  .rank-button { min-height: 40px; padding: 8px 11px; font-size: 9px; }
  .leaderboard-body { display: block; padding-top: 20px; }
  .account-record { padding: 20px; }
  .account-record__metrics { margin: 20px 0 15px; }
  .account-record__metrics strong { font-size: 29px; }
  .leaderboard-results { margin-top: 26px; }
  .leaderboard-columns, .leaderboard-row { grid-template-columns: 32px minmax(0, 1fr) 73px; gap: 8px; }
  .leaderboard-columns { padding: 9px; }
  .leaderboard-row { padding: 11px 9px; }
  .leaderboard-list .rank-player { font-size: 11px; }
  .rank-score { font-size: 16px; }
}
@media (max-width: 380px) { .game-tags { display: none; } .game-overlay { padding: 18px; } .overlay-card { padding: 20px 16px 15px; } .overlay-card h2 { font-size: 22px; } }
@media (max-height: 520px) and (max-width: 1000px) {
  .site-header { height: 42px; padding: 0 22px; }
  .brand { font-size: 13px; }
  .game-layout { display: block; max-width: 780px; margin: 0 auto; padding: 0 12px 10px; }
  .game-intro, .game-guide, .board-footnote, .site-footer { display: none; }
  .game-board { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; padding: 6px; border-radius: 22px; }
  .playfield { height: calc(100svh - 66px); min-height: 235px; border-radius: 16px; }
  .game-controls { display: flex; flex-direction: column; padding: 13px 5px 13px 0; gap: 12px; }
  .control { flex: 1; min-height: 80px; }
  .game-overlay { padding: 14px 60px; }
  .overlay-card { padding: 15px; }
  .overlay-card h2 { font-size: 20px; margin: 8px 0; }
  .overlay-tip { display: none; }
  .start-button { min-height: 40px; margin-top: 12px; padding: 8px; }
  .round-score { font-size: 34px; margin: 4px 0; }
  .board-meta { grid-column: 1 / -1; margin: 0 5px 4px; min-height: 12px; }
  .playfield { height: calc(100svh - 92px); }
  .header-actions { gap: 16px; }
  .leaderboard { margin-top: 20px; }
  .overlay-card .ranked-disclosure { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Play, collect, return: mode selection and a personal space crew. */
.game-layout { align-items: start; row-gap: 42px; --arcade-ink: #3d3157; --arcade-muted: #6c6378; --arcade-purple: #62408c; --arcade-price: #805917; }
.game-intro { padding-top: 13px; }
.game-intro .eyebrow { margin-bottom: 17px; font-size: 8px; }
.game-intro h1 { font-size: clamp(55px, 5.6vw, 76px); letter-spacing: -4.8px; }
.game-intro .title-star { margin: 11px 0 0 13px; font-size: 31px; }
.intro-copy { margin: 19px 0 21px; font-size: 17px; line-height: 1.7; letter-spacing: -.55px; }
.star-wallet { display: flex; align-items: center; gap: 11px; padding: 14px 15px; border: 1px solid #e7dfed; border-radius: 15px; background: #f4eff9; }
.star-wallet__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: #b78a3d; background: #f9e9c6; font-size: 22px; }
.star-wallet > div { display: grid; gap: 3px; min-width: 0; }
.star-wallet > div > span { color: var(--arcade-muted); font-size: 11px; }
.star-wallet strong { color: var(--arcade-ink); font-size: 23px; font-weight: 720; font-variant-numeric: tabular-nums; letter-spacing: -.7px; overflow-wrap: anywhere; }
.star-wallet > small { margin-left: auto; color: var(--arcade-muted); font-size: 10px; line-height: 1.6; }
.mode-picker { display: grid; gap: 7px; margin-top: 24px; }
.mode-picker h2 { margin: 0 0 3px; color: var(--arcade-ink); font-size: 12px; font-weight: 650; letter-spacing: -.2px; }
.mode-option { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 11px 12px; border: 1px solid #ddd4e8; border-radius: 13px; background: #ffffffc9; color: var(--arcade-muted); text-align: left; transition: background .15s, border-color .15s; }
.mode-option__icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; color: #775497; background: #eee7f8; }
.mode-option__icon svg { width: 21px; height: 21px; }
.mode-option > span:nth-child(2) { display: grid; min-width: 0; gap: 5px; }
.mode-option b { color: var(--arcade-ink); font-size: 14px; font-weight: 650; letter-spacing: -.25px; }
.mode-option small { font-size: 11px; line-height: 1.5; word-break: keep-all; }
.mode-option i { flex: none; width: 6px; height: 6px; margin-left: auto; border: 1px solid #d8cede; border-radius: 50%; }
.mode-option:hover { border-color: #cbbce0; }
.mode-option[aria-pressed="true"] { border-color: #9972c2; background: #eee4fa; box-shadow: inset 0 0 0 1px #9972c233; }
.mode-option[aria-pressed="true"] b { color: var(--arcade-purple); }
.mode-option[aria-pressed="true"] .mode-option__icon { color: #68428c; background: #dfcef4; }
.mode-option[aria-pressed="true"] i { border-color: #7d51ac; background: #7d51ac; }
.mode-option:disabled { opacity: .55; }
.mode-option:disabled[aria-pressed="true"] { opacity: .85; }
.mode-description { min-height: 3.5em; margin: 13px 0 0; color: var(--arcade-muted); font-size: 12px; line-height: 1.7; word-break: keep-all; }
.mode-best { margin: 10px 0 0; color: var(--arcade-muted); font-size: 12px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.mode-best b { color: var(--arcade-purple); font-weight: 650; }
.collection-open { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 41px; margin-top: 17px; padding: 10px 12px; border: 1px solid #d2c2e5; border-radius: 11px; background: #f3ecfc; color: var(--arcade-purple); font-size: 12px; font-weight: 600; text-align: left; }
.collection-open:hover { background: #f0e9f8; border-color: #ccbadd; }
.collection-save { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; color: var(--arcade-muted); font-size: 11px; line-height: 1.6; }
.collection-save p { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.collection-save button { flex: none; min-height: 24px; padding: 0; border: 0; background: none; color: var(--arcade-purple); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.run-identity { position: absolute; z-index: 1; top: 15px; left: 21px; right: 17px; display: flex; align-items: center; gap: 8px; pointer-events: none; font-size: 10px; font-weight: 600; color: #ece8ff; text-shadow: var(--hud-shade); }
.run-identity > span:first-child { color: #f6e2ab; }
.run-identity > span + span::before { content: '·'; margin-right: 8px; color: #ece8ffaa; }
.game-hud { top: 43px; }
.energy-hud { top: 139px; }
.power-status { position: absolute; z-index: 1; top: 163px; left: 21px; max-width: calc(100% - 42px); margin: 0; padding: 6px 9px; border: 1px solid #c3e4db24; border-radius: 7px; background: #202840b0; color: #c9f0e6; font-size: 10px; line-height: 1.6; pointer-events: none; }
.game-overlay { z-index: 3; }
.overlay-card { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.overlay-card .round-reward { margin: 12px 0 0; padding: 9px 12px; border: 1px solid #d3b27024; border-radius: 9px; background: #e8bd6a0c; color: #efd18d; font-size: 13px; font-weight: 650; }
.overlay-card .round-missions { margin: 7px 0 0; color: #aee0cb; font-size: 9px; line-height: 1.7; }
.game-guide { padding-top: 19px; }
.game-guide .eyebrow { color: var(--arcade-muted); font-size: 10px; letter-spacing: 1.1px; margin-bottom: 10px; }
.game-guide h2 { color: var(--arcade-ink); font-size: 18px; }
.mission-intro { margin: 7px 0 0; color: var(--arcade-muted); font-size: 11px; line-height: 1.7; }
.game-guide .daily-missions { display: grid; gap: 9px; padding: 0; margin: 19px 0 10px; }
.game-guide .daily-mission { display: block; padding: 12px; border: 1px solid #e9e2ee; border-radius: 12px; background: #fffafeb3; }
.daily-mission__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; margin-bottom: 11px; }
.game-guide .daily-mission__head b { color: var(--arcade-ink); font-size: 12px; font-weight: 600; line-height: 1.6; }
.daily-mission__head > span { color: var(--arcade-muted); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.game-guide .daily-mission__reward { display: block; margin-top: 8px; padding-top: 0; color: var(--arcade-price); font-size: 11px; white-space: nowrap; line-height: 1.6; }
.daily-mission progress { height: 5px; background: #ece6f2; color: #9973c1; }
.daily-mission progress::-webkit-progress-bar { background: #ece6f2; }
.daily-mission progress::-webkit-progress-value { background: #9973c1; }
.daily-mission progress::-moz-progress-bar { background: #9973c1; }
.daily-mission small, .daily-mission__progress { display: block; margin-top: 7px; color: var(--arcade-muted); font-size: 10px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.daily-mission.is-complete, .daily-mission[data-complete="true"] { border-color: #ceded4; background: #f4f9f5; }
.daily-mission.is-complete .daily-mission__reward, .daily-mission[data-complete="true"] .daily-mission__reward { color: #47715b; }
.mission-reset-note { margin: 0 0 22px; color: var(--arcade-muted); font-size: 10px; line-height: 1.7; }
.personal-best { padding: 16px 0; }
.personal-best > span:first-child { color: var(--arcade-muted); font-size: 10px; }
.personal-best #save-note { color: var(--arcade-muted); font-size: 10px; }
.personal-best p { margin: 9px 0 5px; }
.personal-best strong { font-size: 28px; }
.quick-guide { margin-top: 17px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.quick-guide summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--arcade-ink); font-size: 11px; line-height: 1.8; cursor: pointer; list-style: none; }
.quick-guide summary::-webkit-details-marker { display: none; }
.quick-guide summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 3px; }
.game-guide .quick-guide ol { display: grid; gap: 13px; margin: 18px 0 2px; padding: 0; }
.game-guide .quick-guide li { display: block; }
.game-guide .quick-guide li b { font-size: 11px; color: var(--arcade-ink); }
.game-guide .quick-guide li p { margin-top: 4px; color: var(--arcade-muted); font-size: 11px; line-height: 1.8; }
.game-guide .guide-fine { margin-top: 14px; color: var(--arcade-muted); font-size: 10px; line-height: 1.7; }
.collection { grid-column: 1 / -1; min-width: 0; padding: 30px; border: 1px solid #e7e1ec; border-radius: 24px; background: #ffffffb0; scroll-margin-top: 24px; }
.collection-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.collection-heading .eyebrow { margin-bottom: 9px; color: var(--arcade-muted); font-size: 10px; }
.collection-heading h2 { margin: 0; color: var(--arcade-ink); font-size: 27px; font-weight: 720; letter-spacing: -1px; line-height: 1.5; }
.collection-heading > div > p:last-child { margin-top: 8px; color: var(--arcade-muted); font-size: 12px; line-height: 1.8; word-break: keep-all; }
.collection-heading__note { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 8px 11px; border: 1px solid #e7ddf1; border-radius: 8px; background: #f9f5fe; color: var(--arcade-muted); font-size: 11px; }
.collection-heading__note > span { color: var(--arcade-price); font-size: 14px; }
.collection-group { margin-top: 27px; }
.collection-group + .collection-group { margin-top: 30px; }
.collection-group__heading { display: flex; align-items: baseline; gap: 15px; margin-bottom: 15px; }
.collection-group__heading h3 { margin: 0; color: var(--arcade-ink); font-size: 14px; font-weight: 650; letter-spacing: -.35px; }
.collection-group__heading p { margin: 0; color: var(--arcade-muted); font-size: 11px; line-height: 1.7; }
.character-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.collection-card { position: relative; display: grid; align-content: start; min-width: 0; padding: 0; border: 1px solid #ded4e9; border-radius: 16px; overflow: hidden; background: #faf8fc; color: var(--arcade-ink); text-align: left; font: inherit; transition: border-color .15s, background .15s; }
.collection-card:hover { border-color: #b394d2; }
.collection-card[aria-pressed="true"], .collection-card.is-selected, .collection-card[data-selected="true"] { border-color: #9972c2; background: #f2eafb; box-shadow: inset 0 0 0 1px #9972c24d; }
.collection-card[aria-pressed="true"]::after, .collection-card.is-selected::after, .collection-card[data-selected="true"]::after { content: '선택 중'; position: absolute; right: 9px; top: 9px; padding: 4px 7px; border-radius: 5px; background: #e3d5f3; color: #573578; font-size: 10px; font-weight: 650; }
.collection-card[data-locked="true"] .collection-card__action { color: var(--arcade-price); background: #f9f0da; border-color: #e7d3a6; }
.collection-card:disabled, .collection-card .collection-card__action:disabled { cursor: default; }
.collection-card:disabled { opacity: 1; }
.collection-card__art { display: grid; place-items: center; height: 145px; padding: 18px 20px 8px; background: radial-gradient(ellipse at 50% 70%, #ddcfef 0, #f0e9f8 52%, #faf8fc 78%); }
.collection-preview { display: block; max-width: 100%; width: 140px; height: 120px; }
.collection-preview svg, svg.collection-preview, .collection-card__art > svg { display: block; width: 100%; max-width: 160px; height: 120px; overflow: visible; }
.collection-card__art > canvas { width: 100%; max-width: 160px; height: 120px; }
.collection-card__hero { display: block; width: auto; max-width: 100%; height: 120px; object-fit: contain; filter: drop-shadow(0 6px 6px #4b3f8f33); }
.collection-card__body { display: grid; min-width: 0; gap: 6px; padding: 14px; }
.collection-card__name { display: block; margin: 0; color: var(--arcade-ink); font-size: 14px; font-weight: 700; letter-spacing: -.3px; line-height: 1.6; }
.collection-card__description { display: block; margin: 0; color: var(--arcade-muted); font-size: 11px; line-height: 1.7; word-break: keep-all; }
.collection-card__action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; justify-self: stretch; min-height: 34px; margin: 4px 0 0; padding: 7px 10px; border: 1px solid #d3c1e7; border-radius: 8px; background: #e9ddf8; color: var(--arcade-purple); font-size: 12px; font-weight: 650; line-height: 1.5; }
.collection-card > .collection-card__action { margin: 0 14px 14px; }
.collection-card[aria-pressed="true"] .collection-card__action { background: #deccf2; color: #573578; }
.collection-card--item .collection-card__art { height: 94px; padding: 13px; }
.collection-card--item .collection-card__art > svg { height: 68px; }
.collection-card__category { color: var(--arcade-muted); font-size: 10px; letter-spacing: .5px; }
.collection-feedback { min-height: 1.8em; margin: 21px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--arcade-muted); font-size: 12px; line-height: 1.8; }
.collection-loading { grid-column: 1 / -1; margin: 0; padding: 30px; border: 1px dashed #d7c8e5; border-radius: 13px; color: var(--arcade-muted); font-size: 12px; text-align: center; }

@media (max-width: 1100px) and (min-width: 651px) {
  .game-layout { row-gap: 30px; }
  .game-guide { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr); gap: 0 30px; padding-top: 0; }
  .game-guide > .eyebrow, .game-guide > h2, .mission-intro, .game-guide .daily-missions, .mission-reset-note { grid-column: 1; }
  .game-guide .daily-missions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-guide .personal-best { grid-column: 2; grid-row: 1 / 6; align-self: center; }
  .game-guide .quick-guide { grid-column: 1; margin-top: 0; }
  .game-guide .guide-fine { grid-column: 2; }
  .collection { padding: 25px; }
  .character-grid { gap: 10px; }
  .collection-card__body { padding: 12px; }
  .collection-card__art { height: 130px; padding-inline: 10px; }
}
@media (max-width: 650px) {
  .game-layout { padding: 0 10px 12px; }
  .game-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 4px 8px 13px; }
  .game-intro h1 { grid-column: 1; grid-row: 1; font-size: 22px; letter-spacing: -1.3px; }
  .game-intro .title-star { position: static; margin: 0 0 0 6px; font-size: 16px; }
  .star-wallet { grid-column: 2; grid-row: 1; gap: 6px; padding: 5px 9px; border-radius: 10px; }
  .star-wallet__icon { width: 22px; height: 22px; font-size: 16px; }
  .star-wallet > div { display: flex; align-items: center; gap: 7px; }
  .star-wallet > div > span { font-size: 10px; }
  .star-wallet strong { font-size: 16px; }
  .star-wallet > small { display: none; }
  .mode-picker { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 3px; }
  .mode-picker h2 { grid-column: 1 / -1; margin-bottom: 0; color: var(--arcade-muted); font-size: 10px; }
  .mode-option { gap: 5px; min-height: 46px; padding: 8px 7px; border-radius: 10px; }
  .mode-option__icon { width: 23px; height: 25px; border-radius: 7px; }
  .mode-option__icon svg { width: 18px; height: 18px; }
  .mode-option b { font-size: 12px; white-space: nowrap; letter-spacing: -.3px; }
  .mode-option small, .mode-option i { display: none; }
  .mode-description { grid-column: 1 / -1; min-height: 0; margin: 0; font-size: 10px; line-height: 1.5; }
  .mode-best { grid-column: 1; align-self: center; margin: 0; font-size: 11px; line-height: 1.5; }
  .collection-open { grid-column: 2; width: auto; gap: 9px; min-height: 29px; margin: 0; padding: 5px 8px; border-radius: 7px; font-size: 10px; }
  .collection-save { grid-column: 1 / -1; margin: -2px 0 0; font-size: 10px; line-height: 1.5; }
  .collection-save button { min-height: 20px; font-size: 10px; }
  .playfield { height: clamp(310px, calc(100svh - 370px), 570px); }
  .run-identity { top: 13px; left: 18px; right: 15px; font-size: 10px; }
  .game-hud { top: 39px; }
  .energy-hud { top: 124px; }
  .power-status { top: 148px; left: 18px; padding: 5px 7px; font-size: 9px; }
  .game-overlay { padding: 17px 22px; }
  .overlay-card { padding: 21px 18px 17px; }
  .overlay-card h2 { margin: 10px 0 8px; }
  .overlay-card .round-reward { margin-top: 9px; padding: 7px 10px; font-size: 12px; }
  .overlay-card .round-missions { font-size: 8px; }
  .game-guide { display: block; padding: 23px 10px 0; }
  .game-guide h2 { font-size: 20px; }
  .game-guide .daily-missions { gap: 8px; margin-top: 15px; }
  .game-guide .daily-mission { padding: 13px 14px; }
  .game-guide .daily-mission__head b { font-size: 12px; }
  .game-guide .daily-mission__reward { font-size: 11px; }
  .daily-mission small { font-size: 10px; }
  .mission-reset-note { margin-bottom: 17px; font-size: 10px; }
  .personal-best { display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 16px; padding: 14px 0; }
  .personal-best p { grid-column: 2; grid-row: 1 / 3; justify-self: end; margin: 0; }
  .personal-best strong { font-size: 28px; }
  .personal-best #save-note { grid-column: 1; font-size: 10px; }
  .quick-guide { margin-top: 15px; padding-bottom: 13px; }
  .quick-guide summary { min-height: 26px; font-size: 12px; }
  .game-guide .guide-fine { font-size: 10px; margin-bottom: 0; }
  .collection { margin-top: 25px; padding: 21px 16px; border-radius: 20px; scroll-margin-top: 12px; }
  .collection-heading { display: grid; gap: 14px; padding-bottom: 18px; }
  .collection-heading h2 { font-size: 23px; letter-spacing: -.8px; }
  .collection-heading > div > p:last-child { margin-top: 6px; font-size: 11px; }
  .collection-heading__note { justify-self: start; padding: 5px 8px; font-size: 10px; }
  .collection-group { margin-top: 23px; }
  .collection-group__heading { display: block; margin-bottom: 13px; }
  .collection-group__heading h3 { font-size: 13px; }
  .collection-group__heading p { margin-top: 4px; font-size: 11px; }
  .character-grid, .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .collection-card { border-radius: 13px; }
  .collection-card__art { height: 118px; padding: 15px 10px 3px; }
  .collection-preview, .collection-preview svg, svg.collection-preview, .collection-card__art > svg, .collection-card__art > canvas { width: 100%; max-width: 130px; height: 105px; }
  .collection-card__body { gap: 5px; padding: 11px; }
  .collection-card__name { font-size: 13px; }
  .collection-card__description { font-size: 11px; }
  .collection-card__action { min-height: 32px; padding: 6px 7px; font-size: 11px; }
  .collection-card > .collection-card__action { margin: 0 11px 11px; }
  .collection-card--item .collection-card__art { height: 80px; padding: 10px; }
  .collection-card--item .collection-card__art > svg { height: 60px; }
  .collection-card[aria-pressed="true"]::after, .collection-card.is-selected::after, .collection-card[data-selected="true"]::after { top: 7px; right: 7px; padding: 3px 5px; font-size: 9px; }
  .collection-feedback { margin-top: 16px; padding-top: 13px; font-size: 11px; }
}
@media (max-width: 380px) {
  .game-intro { gap: 7px 8px; padding-inline: 5px; }
  .mode-option { padding: 7px 5px; gap: 4px; }
  .mode-option__icon { width: 20px; }
  .mode-option b { font-size: 11px; }
  .mode-description { font-size: 10px; }
  .collection-open { font-size: 10px; padding-inline: 6px; }
}
@media (max-height: 520px) and (max-width: 1000px) {
  .game-intro { display: block; padding: 0 4px 9px; }
  .game-intro > :not(.mode-picker) { display: none; }
  .game-intro .mode-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; }
  .mode-picker h2, .mode-option small, .mode-option i { display: none; }
  .mode-option { min-height: 35px; padding: 5px 12px; justify-content: center; gap: 9px; border-radius: 9px; }
  .mode-option__icon { width: 24px; height: 24px; }
  .mode-option__icon svg { width: 18px; height: 18px; }
  .mode-option b { font-size: 12px; }
  .game-guide { display: none; }
  .game-board .playfield { height: calc(100svh - 142px); min-height: 220px; }
  .run-identity { top: 11px; font-size: 9px; }
  .game-hud { top: 31px; }
  .score-block strong { font-size: 31px; }
  .energy-hud { top: 105px; }
  .power-status { top: 128px; }
  .game-overlay { padding: 10px 55px; }
  .overlay-card { padding: 12px 15px; }
  .overlay-card h2 { font-size: 19px; }
  .overlay-card > p { font-size: 9px; line-height: 1.7; }
  .game-overlay[data-mode="over"] #overlay-description { display: none; }
  .overlay-card .round-reward { padding: 5px 9px; margin-top: 6px; font-size: 11px; }
  .overlay-card .round-missions { margin-top: 4px; font-size: 8px; }
  .game-controls { padding-top: 8px; padding-bottom: 8px; gap: 10px; }
  .collection { margin-top: 25px; padding: 23px; }
  .collection-heading h2 { font-size: 22px; }
  .collection-card__art { height: 112px; }
  .collection-card__art > svg { height: 95px; }
}

/* 터치 기기: 키보드 안내는 숨기고, 도전 중에는 판과 버튼에서 화면이 밀리거나 확대되지 않게 */
.season-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin: 24px 0 10px; }
.season-modes { display: flex; flex-wrap: wrap; gap: 7px; }
.season-modes button { min-height: 44px; padding: 9px 16px; border: 1px solid #ded5ed; border-radius: 12px; color: #655776; background: #faf7ff; font-size: 12px; }
.season-modes button[aria-pressed="true"] { background: #6955a4; color: #fff; border-color: #6955a4; }
.season-select-label { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #736782; }
.season-select-label select { max-width: 270px; min-height: 44px; padding: 9px; border: 1px solid #ded5ed; border-radius: 9px; background: #fff; color: #514263; font: inherit; }
.season-window { font-size: 12px; line-height: 1.8; color: #74638f; margin: 15px 0 25px; }
.season-board-layout { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1fr); gap: 30px; }
.season-summary { padding: 22px; border-radius: 18px; background: #f4effa; }
.season-summary h3 { margin: 0 0 12px; font-size: 14px; }
.season-summary > p { font-size: 14px; line-height: 1.8; }
.medal-cabinet { margin-top: 25px; border-top: 1px solid #ddd3ea; padding-top: 20px; }
.medal-cabinet > p { font-size: 20px; }
.medal-cabinet ul { list-style: none; padding: 0; display: grid; gap: 9px; font-size: 11px; line-height: 1.7; color: #74638f; }
.season-results { min-width: 0; }
.season-rules { margin: 22px 0; font-size: 11px; line-height: 1.9; color: #74638f; }
.legacy-leaderboard { margin-top: 26px; border-top: 1px solid #e9e2ee; padding-top: 22px; }
.legacy-leaderboard > summary { min-height: 44px; cursor: pointer; font-size: 12px; color: #6955a4; }
.legacy-leaderboard > .leaderboard-results__head { margin-block: 15px; }
@media (max-width: 650px) {
  .season-board-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .season-controls, .season-modes { width: 100%; }
  .season-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-select-label { width: 100%; }
  .season-select-label select { min-width: 0; flex: 1; max-width: none; }
  .season-summary { padding: 18px; }
}
.daily-challenge-button { width: 100%; display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 12px; border: 1px solid #cfc5ee; border-radius: 12px; background: #eee9fa; color: #59459a; text-align: left; }
.daily-challenge-button > span:nth-child(2) { flex: 1; display: grid; gap: 4px; }
.daily-challenge-button b { font-size: 12px; }
.daily-challenge-button small { font-size: 10px; }
.daily-challenge-button[aria-pressed="true"] { border-color: #6955e8; box-shadow: 0 0 0 2px #6955e826; }
.daily-challenge-button:disabled { opacity: .55; }
.goal-section { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.game-guide .goal-record { margin: 10px 0; font-size: 11px; line-height: 1.7; color: #6955a4; font-weight: 650; }
.game-guide .goal-section .daily-missions { margin: 12px 0; }
.game-guide .challenge-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.game-guide .challenge-tiers .daily-mission { min-width: 0; padding: 9px 6px; }
.game-guide .challenge-tiers .daily-mission__head { display: grid; gap: 5px; grid-template-columns: minmax(0, 1fr); }
.game-guide .challenge-tiers .daily-mission__head b, .game-guide .challenge-tiers .daily-mission__reward { font-size: 10px; }
.goal-complete { border-color: #c3d8ca; }
.journey-details summary { padding: 8px 0; cursor: pointer; font-size: 11px; color: #74638f; }
body:not(.app) .game-layout > .game-board { align-self: start; }
@media (min-width: 651px) and (max-width: 1000px) {
  .game-guide > .goal-section { grid-column: 1 / -1; }
  .game-guide .personal-best { grid-row: auto; }
}
.app .daily-challenge-button { margin: 8px 0; padding: 9px 12px; border-color: #c4b2f466; background: #c4b2f418; color: #e0d2ff; }
.app .game-overlay { align-items: flex-start; overflow-y: auto; }
.app .overlay-card { margin-block: auto; }
.game-overlay[data-mode="paused"] [data-daily] { display: none; }
.app .game-guide .daily-challenge-button { color: #59459a; background: #eee9fa; border-color: #cfc5ee; }
.app .game-guide .goal-record, .app .journey-details summary { color: #6955a4; }
.app .goal-complete { border-color: #8ed4b188; }
@media (max-height: 600px) {
  .app .daily-challenge-button { padding-block: 6px; }
}
@media (max-height: 520px) and (max-width: 1000px) {
  .game-intro > .daily-challenge-button { display: flex; max-width: 280px; margin: 8px auto; }
}
/* 일부 안드로이드 브라우저는 (pointer: coarse) 를 알리지 않아 화면 폭으로도 판단한다 */
@media (pointer: coarse), (max-width: 760px) {
  .control small, .overlay-tip { display: none; }
}
.stairway-immersive .playfield, .stairway-immersive .game-controls { touch-action: none; }
/* 휴대폰 웹에서 도전하는 동안(stairway.js immersive): 게임판이 화면을 꽉 채우고 버튼은 엄지 자리인 맨 아래에 크게 */
@media (max-width: 760px), (max-width: 1000px) and (max-height: 520px) {
  .stairway-immersive body:not(.app) { overflow: hidden; overscroll-behavior: none; }
  .stairway-immersive body:not(.app) .game-board { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 40; align-self: stretch; justify-self: stretch; display: flex; flex-direction: column; margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: calc(env(safe-area-inset-top, 0px) + 8px) 8px calc(env(safe-area-inset-bottom, 0px) + 12px); }
  .stairway-immersive body:not(.app) .playfield { flex: 1; height: auto; min-height: 0; border-radius: 16px; }
  .stairway-immersive body:not(.app) .game-controls { flex: none; gap: 12px; padding: 12px 0 0; }
  .stairway-immersive body:not(.app) .control { min-height: 104px; border-radius: 20px; }
  .stairway-immersive body:not(.app) .control b { font-size: 16px; }
  .stairway-immersive body:not(.app) .board-meta { display: none; }
}

/* 시즌 보상: 메달 탐험가·TOP 10 꼬리 카드는 금속빛 테두리, 순위표 이름 옆 누적 메달 */
.collection-card[data-reward="gold"] { border-color: #e2b84d; box-shadow: 0 0 0 1px #e2b84d55 inset; }
.collection-card[data-reward="silver"] { border-color: #aab2c6; box-shadow: 0 0 0 1px #aab2c655 inset; }
.collection-card[data-reward="bronze"] { border-color: #c98a5c; box-shadow: 0 0 0 1px #c98a5c55 inset; }
.collection-card[data-reward="top10"] { border-color: #e9c76a; }
.collection-card[data-reward][data-locked="true"] .collection-card__art { filter: saturate(.55); }
.rank-trophy { margin-left: 4px; font-size: 10px; white-space: nowrap; }
/* 휴대폰 가로: 게임판은 왼쪽을 채우고 버튼은 오른쪽에 세로로 */
@media (max-width: 1000px) and (max-height: 520px) {
  .stairway-immersive body:not(.app) .game-board { flex-direction: row; gap: 8px; padding: 8px calc(env(safe-area-inset-right, 0px) + 8px) 8px calc(env(safe-area-inset-left, 0px) + 8px); }
  .stairway-immersive body:not(.app) .game-controls { display: flex; flex-direction: column; width: 160px; padding: 0; gap: 10px; }
  .stairway-immersive body:not(.app) .control { flex: 1; min-height: 0; }
}
/* 사파리 확대 막기: 빠르게 두 번 탭해도 확대되지 않게(두 손가락 확대·스크롤은 그대로), 입력칸을 눌러도 확대되지 않게(16px 이상) */
/* stairway.css 는 별빛 계단 페이지에서만 읽으므로 페이지 전체에 건다 */
html, body { touch-action: manipulation; }
@media (pointer: coarse), (max-width: 760px) {
  .leaderboard select, .leaderboard input, .collection select, .collection input { font-size: 16px; }
}
/* 웹 결과 카드가 게임판보다 길면(Safari 주소창 때문에 화면이 낮을 때) 카드 안이 스크롤된다. 그때도 시작 단추는 카드 아래에 붙어 늘 보이게 */
body:not(.app) .overlay-card #overlay-start { position: sticky; bottom: 0; z-index: 1; box-shadow: 0 -14px 14px 2px #242642, 0 18px 0 0 #242642; }
