.play-page { padding-bottom: 45px; }
.play-page-hero { padding-bottom: 42px; }
.play-page-hero h1 { max-width: 620px; }
.play-section { padding: 48px 0 36px; }
.play-layout { display: grid; grid-template-columns: minmax(0, 640px) minmax(260px, 1fr); align-items: start; gap: 35px; }
.game-frame { overflow: hidden; border: 1px solid rgba(244, 240, 231, 0.16); border-radius: 25px; background: #0c1012; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28); }
.game-frame-bar { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; color: #7f8795; background: #171c20; font-size: 0.66rem; font-weight: 850; letter-spacing: 0.14em; }
.game-frame-bar span { display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(201, 247, 111, 0.12); }
.game-frame-bar button { padding: 6px 9px; border: 1px solid rgba(244, 240, 231, 0.16); border-radius: 8px; color: var(--paper-muted); background: transparent; font-size: 0.66rem; font-weight: 750; letter-spacing: 0.04em; }
.game-frame-bar button:hover { border-color: var(--lime); color: var(--lime); }
.game-stage { position: relative; width: min(100%, 540px); margin: 0 auto; overflow: hidden; background: #718f66; aspect-ratio: 9 / 16; }
.game-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.game-hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.game-score { position: absolute; top: 24px; left: 50%; display: grid; gap: 1px; min-width: 150px; transform: translateX(-50%); text-align: center; text-shadow: 0 2px 3px rgba(15, 18, 20, 0.55); }
.game-score span { color: #ffe78b; font-size: 0.7rem; font-weight: 850; letter-spacing: 0.12em; }
.game-score strong { color: #fff6c9; font-size: 1.6rem; line-height: 1; }
.game-wave { position: absolute; top: 76px; right: 23px; left: 23px; display: grid; grid-template-columns: 38px auto; align-items: center; gap: 7px 9px; color: #fff9de; text-shadow: 0 2px 3px rgba(15, 18, 20, 0.62); }
.game-wave strong { font-size: 0.82rem; }
.wave-badge { display: grid; width: 38px; height: 38px; place-items: center; border: 2px solid rgba(33, 33, 26, 0.88); border-radius: 50%; color: #fff8d9; background: #5d3523; font-size: 1rem; font-weight: 900; }
.wave-track { grid-column: 1 / -1; height: 9px; overflow: hidden; border: 2px solid rgba(24, 28, 22, 0.9); border-radius: 99px; background: rgba(23, 28, 22, 0.72); }
.wave-track i { display: block; width: 7%; height: 100%; border-radius: inherit; background: #ffe989; transition: width 180ms ease; }
.game-boss { position: absolute; top: 117px; right: 23px; left: 23px; display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid rgba(255, 128, 111, 0.58); border-radius: 11px; background: rgba(62, 23, 35, 0.72); text-shadow: 0 2px 3px rgba(15, 18, 20, 0.62); }
.game-boss[hidden] { display: none; }
.boss-avatar { display: grid; width: 30px; height: 30px; place-items: center; border: 2px solid #ff806f; border-radius: 50%; color: #ffd2a5; background: #5d1f42; font-size: 0.86rem; }
.boss-copy { display: grid; flex: 1; gap: 3px; min-width: 0; }
.boss-copy > span { color: #ff9c8e; font-size: 0.55rem; font-weight: 850; letter-spacing: 0.13em; }
.boss-copy strong { overflow: hidden; color: #fff1df; font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.boss-track { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(8, 9, 12, 0.72); }
.boss-track i { display: block; width: 100%; height: 100%; background: #ff806f; transition: width 160ms ease; }
.game-vitals { position: absolute; top: 175px; left: 23px; display: grid; gap: 5px; width: 132px; }
.vital-row { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 6px; color: #fff9de; font-size: 0.55rem; font-weight: 800; text-shadow: 0 2px 3px rgba(15, 18, 20, 0.62); }
.vital-track { height: 7px; overflow: hidden; border: 1px solid rgba(25, 29, 22, 0.85); border-radius: 99px; background: rgba(22, 29, 23, 0.72); }
.vital-track i { display: block; width: 100%; height: 100%; border-radius: inherit; transition: width 180ms ease; }
.vital-track.hp i { background: #77dc69; }
.vital-track.energy i { background: #f9a454; }
.game-level { position: absolute; top: 173px; right: 23px; padding: 5px 8px; border: 1px solid rgba(255, 250, 211, 0.36); border-radius: 7px; color: #fff6c9; background: rgba(25, 34, 27, 0.54); font-size: 0.64rem; font-weight: 900; }
.game-quest { position: absolute; top: 216px; right: 23px; left: 23px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(159, 225, 188, 0.2); border-radius: 10px; background: linear-gradient(100deg, rgba(15, 39, 37, 0.68), rgba(17, 28, 29, 0.38)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); text-shadow: 0 2px 4px rgba(5, 17, 16, 0.72); }
.quest-mark { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border: 1px solid rgba(255, 226, 151, 0.66); border-radius: 8px; color: #ffe29a; background: rgba(255, 188, 88, 0.12); font-size: 0.78rem; box-shadow: 0 0 12px rgba(255, 188, 88, 0.2); }
.game-quest div { display: grid; gap: 2px; min-width: 0; }
.game-quest small { color: rgba(203, 242, 219, 0.48); font-size: 0.49rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.game-quest strong { overflow: hidden; color: #f4f6c8; font-family: "Avenir Next Condensed", "DIN Alternate", "Arial Narrow", system-ui, sans-serif; font-size: 0.68rem; font-weight: 850; letter-spacing: 0.02em; text-overflow: ellipsis; white-space: nowrap; }
.game-toast { position: absolute; top: 205px; left: 50%; z-index: 3; min-width: 160px; padding: 7px 11px; border-radius: 999px; color: #fff7cb; background: rgba(22, 26, 21, 0.78); font-size: 0.66rem; font-weight: 800; opacity: 0; transform: translate(-50%, -6px); transition: opacity 180ms ease, transform 180ms ease; text-align: center; }
.game-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.game-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 32px; background: linear-gradient(180deg, rgba(14, 22, 17, 0.32), rgba(10, 16, 16, 0.68)); }
.game-overlay:not(.is-open) { display: none; }
.game-panel { display: none; width: min(100%, 320px); gap: 11px; padding: 25px 23px 23px; border: 1px solid rgba(255, 250, 211, 0.24); border-radius: 20px; color: #fff7db; background: rgba(24, 35, 29, 0.89); box-shadow: 0 18px 45px rgba(12, 18, 16, 0.3); text-align: center; }
.game-panel.is-active { display: grid; }
.story-panel { width: min(100%, 354px); gap: 9px; padding: 18px 19px 17px; border-color: rgba(255, 225, 145, 0.28); background: linear-gradient(145deg, rgba(20, 39, 36, 0.97), rgba(14, 25, 29, 0.96)); box-shadow: 0 20px 65px rgba(4, 12, 15, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.1); text-align: left; }
.story-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #f5d581; font-family: "Avenir Next Condensed", "DIN Alternate", "Arial Narrow", system-ui, sans-serif; font-size: 0.57rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.story-topline span:last-child { color: rgba(255, 247, 219, 0.42); }
.story-portrait { position: relative; width: 88px; height: 88px; margin: 6px auto 0; overflow: hidden; border: 2px solid rgba(255, 222, 141, 0.68); border-radius: 50%; background-color: rgba(8, 24, 24, 0.72); background-position: 0% 0%; background-repeat: no-repeat; background-size: 400% 400%; box-shadow: 0 0 0 5px rgba(255, 222, 141, 0.08), 0 0 30px rgba(132, 243, 209, 0.18); }
.story-portrait::after { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: inherit; content: ""; }
.story-portrait[data-portrait="boss"] { border-color: rgba(255, 128, 111, 0.85); box-shadow: 0 0 0 5px rgba(255, 83, 104, 0.1), 0 0 34px rgba(255, 60, 86, 0.22); background-position: 100% 0%; }
.story-speaker { margin: 1px 0 -2px !important; color: #9fe8cb !important; font-family: "Avenir Next Condensed", "DIN Alternate", "Arial Narrow", system-ui, sans-serif; font-size: 0.62rem !important; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.story-panel h2 { margin: 0; font-size: clamp(1.7rem, 7vw, 2.35rem); letter-spacing: -0.08em; line-height: 0.98; }
.story-copy { min-height: 77px; color: rgba(255, 247, 219, 0.8) !important; font-size: 0.79rem !important; line-height: 1.72 !important; }
.story-progress { height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255, 247, 219, 0.1); }
.story-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #91e7ca, #ffe398); transition: width 90ms linear; }
.story-panel .game-primary { width: 100%; margin-top: 2px; }
.story-panel > small { text-align: center; }
.gameover-panel { width: min(100%, 350px); max-height: calc(100% - 18px); overflow: auto; padding: 19px 18px 17px; }
.game-eyebrow { margin: 0; color: #c9f76f; font-size: 0.63rem; font-weight: 900; letter-spacing: 0.16em; }
.game-panel h2 { margin: 2px 0 0; color: #fff6ce; font-size: clamp(2.2rem, 8vw, 3.5rem); letter-spacing: -0.09em; line-height: 0.86; }
.game-panel h2 em { color: #ff9a67; font-style: normal; }
.game-panel p { margin: 0; color: rgba(255, 247, 219, 0.75); font-size: 0.76rem; line-height: 1.55; }
.game-panel small { color: rgba(255, 247, 219, 0.5); font-size: 0.63rem; }
.game-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 5px; padding: 12px 15px; border: 0; border-radius: 11px; color: #182119; background: #c9f76f; font-size: 0.77rem; font-weight: 900; }
.game-primary:hover { background: #e4ffa4; transform: translateY(-1px); }
.game-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 5px; padding: 11px 14px; border: 1px solid rgba(255, 250, 211, 0.24); border-radius: 11px; color: #fff6ce; background: rgba(255, 255, 255, 0.07); font-size: 0.74rem; font-weight: 850; }
.game-secondary:hover { border-color: #c9f76f; color: #c9f76f; background: rgba(201, 247, 111, 0.1); }
.run-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 1px 0 2px; }
.run-summary > div { display: grid; gap: 3px; padding: 8px 5px; border: 1px solid rgba(255, 250, 211, 0.12); border-radius: 10px; background: rgba(255, 255, 255, 0.045); }
.run-summary span { color: rgba(255, 247, 219, 0.55); font-size: 0.56rem; }
.run-summary strong { color: #fff6c9; font-size: 0.88rem; }
.run-ending { min-height: 30px; color: rgba(255, 247, 219, 0.7) !important; font-size: 0.68rem !important; line-height: 1.45 !important; }
.leaderboard-mini { display: grid; gap: 7px; padding: 10px; border: 1px solid rgba(201, 247, 111, 0.2); border-radius: 12px; background: rgba(8, 20, 16, 0.34); text-align: left; }
.leaderboard-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.leaderboard-heading strong { color: #e4ffa4; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.leaderboard-heading span { color: rgba(255, 247, 219, 0.58); font-size: 0.54rem; white-space: nowrap; }
.leaderboard-columns { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto auto; gap: 7px; padding: 0 6px; color: rgba(255, 247, 219, 0.38); font-size: 0.5rem; letter-spacing: 0.06em; text-transform: uppercase; }
.leaderboard-columns span:nth-child(n + 3) { text-align: right; }
.leaderboard-mini ol { display: grid; gap: 5px; min-height: 47px; margin: 0; padding: 0; list-style: none; }
.leaderboard-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto auto; gap: 7px; align-items: center; padding: 5px 6px; border-radius: 7px; background: rgba(255, 255, 255, 0.045); font-size: 0.62rem; }
.leaderboard-row b { color: #ffca72; font-size: 0.66rem; }
.leaderboard-row strong { overflow: hidden; color: #fff6ce; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-row span { color: rgba(255, 247, 219, 0.68); white-space: nowrap; }
.leaderboard-empty { display: grid; place-items: center; min-height: 42px; color: rgba(255, 247, 219, 0.58); font-size: 0.65rem; line-height: 1.45; text-align: center; }
.leaderboard-empty small { color: rgba(255, 247, 219, 0.42); font-size: 0.58rem; }
.leaderboard-status { min-height: 17px; color: #b8e9ac !important; font-size: 0.63rem !important; }
.gameover-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.game-auth-modal { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 24px; background: rgba(8, 17, 14, 0.66); backdrop-filter: blur(8px); }
.game-auth-modal[hidden] { display: none; }
.game-auth-card { position: relative; width: min(100%, 310px); display: grid; gap: 10px; padding: 24px 21px 21px; border: 1px solid rgba(255, 250, 211, 0.24); border-radius: 18px; color: #fff7db; background: rgba(24, 35, 29, 0.97); box-shadow: 0 20px 55px rgba(4, 11, 8, 0.42); }
.game-auth-card h3 { margin: 0; color: #fff6ce; font-size: 1.65rem; letter-spacing: -0.07em; }
.game-auth-card p { margin: 0; color: rgba(255, 247, 219, 0.72); font-size: 0.74rem; line-height: 1.55; }
.google-auth-button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 12px; border: 1px solid rgba(255, 250, 211, 0.22); border-radius: 9px; color: #1a211d; background: #fffaf0; font-size: 0.76rem; font-weight: 850; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.google-auth-button:hover { border-color: #c9f76f; background: #fff; transform: translateY(-1px); }
.google-g { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #4285f4; background: #fff; font-family: Arial, sans-serif; font-size: 0.9rem; font-weight: 900; }
.game-auth-card form { display: grid; gap: 7px; margin-top: 4px; }
.game-auth-card label { color: #d9e9c7; font-size: 0.62rem; font-weight: 800; }
.game-auth-card input { min-height: 42px; padding: 0 11px; border: 1px solid rgba(255, 250, 211, 0.22); border-radius: 9px; outline: none; color: #fff7db; background: rgba(255, 255, 255, 0.08); font: inherit; font-size: 0.78rem; }
.game-auth-card input:focus { border-color: #c9f76f; box-shadow: 0 0 0 3px rgba(201, 247, 111, 0.12); }
.game-auth-card .game-primary { margin-top: 3px; }
.game-auth-card small { line-height: 1.45; }
.game-auth-close { position: absolute; top: 9px; right: 10px; display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(255, 250, 211, 0.15); border-radius: 50%; color: rgba(255, 247, 219, 0.78); background: transparent; font-size: 1.1rem; line-height: 1; }
.game-auth-close:hover { color: #c9f76f; border-color: #c9f76f; }
.upgrade-key-hint { display: block; margin-top: 4px; color: rgba(255, 247, 219, 0.48); font-size: 0.58rem; letter-spacing: 0.04em; }
.upgrade-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.upgrade-choice { position: relative; display: grid; grid-template-columns: 53px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 78px; padding: 7px 8px; border: 1px solid rgba(255, 250, 211, 0.18); border-radius: 13px; color: #fff6ce; background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); text-align: left; overflow: hidden; }
.upgrade-choice::after { position: absolute; top: -20px; right: -20px; width: 58px; height: 58px; border-radius: 50%; background: rgba(160, 235, 255, 0.1); content: ""; filter: blur(8px); }
.upgrade-choice:hover, .upgrade-choice:focus-visible { border-color: #c9f76f; background: linear-gradient(145deg, rgba(201, 247, 111, 0.17), rgba(255, 255, 255, 0.07)); box-shadow: 0 0 0 2px rgba(201, 247, 111, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.skill-choice-icon { position: relative; z-index: 1; display: grid; width: 53px; height: 53px; place-items: center; overflow: hidden; border: 1px solid rgba(255, 250, 211, 0.28); border-radius: 12px; background: radial-gradient(circle, rgba(125, 232, 255, 0.24), rgba(11, 24, 24, 0.62)); box-shadow: inset 0 0 14px rgba(113, 236, 255, 0.18), 0 4px 13px rgba(5, 14, 12, 0.28); }
.skill-choice-icon img { display: block; width: 64px; height: 64px; max-width: none; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35)); }
.skill-choice-copy { position: relative; z-index: 1; display: grid; gap: 3px; min-width: 0; align-content: center; }
.skill-choice-copy strong { display: block; color: #fff8d9; font-size: 0.8rem; }
.skill-choice-copy small { display: block; margin-top: 0; color: rgba(255, 247, 219, 0.62); font-size: 0.6rem; line-height: 1.3; }
.skill-choice > b { position: absolute; right: 7px; bottom: 6px; z-index: 1; color: rgba(255, 226, 151, 0.75); font-size: 0.48rem; letter-spacing: 0.08em; }
.game-controls { position: absolute; right: 20px; bottom: 19px; left: 20px; z-index: 4; display: flex; align-items: end; justify-content: space-between; pointer-events: none; }
.joystick { position: relative; width: 124px; height: 124px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; background: rgba(28, 37, 31, 0.55); box-shadow: inset 0 0 0 20px rgba(255, 255, 255, 0.035); pointer-events: auto; touch-action: none; }
.joystick::before { position: absolute; inset: 24px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; content: ""; }
.joystick::after { position: absolute; top: 50%; left: 50%; color: rgba(255, 255, 255, 0.22); content: "✦"; font-size: 1.1rem; transform: translate(-50%, -50%); }
.joystick span { position: absolute; top: 50%; left: 50%; z-index: 1; width: 58px; height: 58px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; background: rgba(155, 206, 190, 0.48); box-shadow: 0 6px 16px rgba(7, 14, 12, 0.24); transform: translate(-50%, -50%); transition: transform 80ms ease; }
.skill-button { position: relative; display: grid; width: 76px; height: 76px; place-items: center; align-content: center; gap: 1px; overflow: hidden; border: 2px solid rgba(255, 247, 205, 0.72); border-radius: 50%; color: #fff5c7; background: #2f777c; box-shadow: 0 7px 22px rgba(9, 24, 24, 0.35); pointer-events: auto; touch-action: manipulation; }
.skill-button::before { position: absolute; inset: 5px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: inherit; content: ""; }
.skill-button span, .skill-button small { position: relative; z-index: 1; }
.skill-button-icon { display: grid; width: 38px; height: 38px; place-items: center; }
.skill-button-icon img { display: block; width: 48px; height: 48px; max-width: none; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35)); }
.skill-button small { font-size: 0.57rem; font-weight: 850; }
.skill-button i { position: absolute; inset: 0; border-radius: inherit; background: conic-gradient(rgba(13, 25, 28, 0.6) var(--skill-progress, 0%), transparent 0); pointer-events: none; }
.skill-button.is-disabled { filter: saturate(0.55); }
.play-info { display: grid; gap: 13px; }
.play-info-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.045); }
.play-info-card h2 { margin: 8px 0 9px; color: var(--paper); font-size: 2rem; letter-spacing: -0.07em; line-height: 0.98; }
.play-info-card h3 { margin: 0 0 8px; color: var(--paper); font-size: 1rem; letter-spacing: -0.03em; }
.play-info-card > p:not(.section-kicker) { margin: 0; color: var(--ink-muted); font-size: 0.8rem; }
.play-info-card.muted { background: linear-gradient(135deg, rgba(188, 169, 255, 0.13), rgba(255, 255, 255, 0.04)); }
.story-lore-card { background: radial-gradient(circle at 92% 0%, rgba(255, 214, 126, 0.11), transparent 38%), linear-gradient(145deg, rgba(67, 73, 57, 0.7), rgba(255, 255, 255, 0.04)); }
.story-lore-card h2 { color: #fff0ba; }
.story-timeline { display: grid; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.story-timeline li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 9px; border: 1px solid transparent; border-radius: 11px; opacity: 0.52; transition: opacity 180ms ease, border-color 180ms ease, background 180ms ease; }
.story-timeline li.is-active { border-color: rgba(255, 218, 128, 0.23); background: rgba(255, 226, 151, 0.08); opacity: 1; }
.story-timeline li > span { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(255, 231, 158, 0.3); border-radius: 9px; color: #ffe6a1; font-family: "Avenir Next Condensed", "DIN Alternate", "Arial Narrow", system-ui, sans-serif; font-size: 0.63rem; font-weight: 900; }
.story-timeline li > div { display: grid; gap: 2px; }
.story-timeline strong { color: var(--paper); font-size: 0.75rem; }
.story-timeline small { color: var(--ink-muted); font-size: 0.67rem; line-height: 1.35; }
.control-list { display: grid; gap: 12px; margin-top: 25px; }
.control-list > div { display: grid; grid-template-columns: 32px 1fr; column-gap: 9px; align-items: center; }
.control-key { display: grid; grid-row: span 2; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: #1b221d; background: var(--lime); font-size: 0.64rem; font-weight: 900; }
.control-list strong { color: var(--paper); font-size: 0.78rem; }
.control-list small { color: var(--ink-muted); font-size: 0.68rem; }

@media (max-width: 900px) {
  .play-layout { grid-template-columns: minmax(0, 540px); justify-content: center; }
  .play-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .play-section { padding-top: 25px; }
  .game-frame { border-radius: 18px; }
  .game-frame-bar { padding: 11px 13px; }
  .game-controls { right: 14px; bottom: 14px; left: 14px; }
  .game-quest { right: 14px; left: 14px; }
  .joystick { width: 104px; height: 104px; }
  .joystick span { width: 50px; height: 50px; }
  .skill-button { width: 67px; height: 67px; }
  .upgrade-choices { grid-template-columns: 1fr; max-height: 382px; overflow-y: auto; padding-right: 2px; }
  .upgrade-choice { min-height: 66px; }
  .play-info { grid-template-columns: 1fr; }
  .gameover-panel { padding-right: 14px; padding-left: 14px; }
  .gameover-actions { grid-template-columns: 1fr; }
  .story-panel { padding-right: 15px; padding-left: 15px; }
}

@media (max-width: 380px) {
  .game-overlay { padding: 18px; }
  .game-frame-bar span { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .story-copy { min-height: 88px; }
}
