@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    color-scheme: dark;
    --ink: #080b14;
    --panel: #101522;
    --panel-raised: #141a29;
    --line: rgba(159, 177, 220, 0.12);
    --muted: #78839a;
    --text: #eef1fa;
    --cyan: #62ddff;
    --violet: #9c79ff;
    --gold: #ffd76b;
    --mono: 'DM Mono', 'Courier New', monospace;
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    background: var(--ink);
    color: var(--text);
}

@property --mine-atmosphere {
    syntax: '<color>';
    inherits: true;
    initial-value: rgba(68, 197, 194, .15);
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
    background:
        radial-gradient(ellipse at 48% 42%, rgba(39, 61, 110, 0.21), transparent 40%),
        radial-gradient(ellipse at 92% 10%, rgba(93, 49, 157, 0.13), transparent 32%),
        radial-gradient(rgba(196, 209, 255, 0.33) 0.7px, transparent 0.8px) 0 0 / 47px 47px,
        radial-gradient(rgba(133, 157, 221, 0.2) 0.6px, transparent 0.8px) 19px 24px / 71px 71px,
        var(--ink);
}

button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.app-shell { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.page-screen[hidden] { display: none !important; }
.page-screen.is-active { animation: screen-enter .22s ease both; }
.page-container { min-height: 58vh; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(98, 221, 255, .45); border-radius: 50%; box-shadow: inset 0 0 15px rgba(98, 221, 255, .1), 0 0 18px rgba(98, 221, 255, .09); }
.brand-mark span { width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 12px var(--cyan); }
.brand-name { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; }
.brand-name strong { color: var(--cyan); font-weight: 700; }
.status-pill, .eyebrow, .shop-count, .stat-label, .stat-index, .upgrade-level, .upgrade-effect > span, .buy-button, .ad-button, .footer, .tap-hint { font-family: var(--mono); }
.status-pill { display: flex; align-items: center; gap: 9px; color: #a4afc4; font-size: 10px; letter-spacing: .08em; }
.status-dot, .live-dot { width: 6px; height: 6px; border-radius: 50%; background: #71e9ae; box-shadow: 0 0 9px rgba(113, 233, 174, .75); }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.daily-entry { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid rgba(255, 215, 107, .24); border-radius: 4px; background: rgba(255, 215, 107, .055); color: #ddcb9c; font: 8px var(--mono); letter-spacing: .07em; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; }
.daily-entry:hover, .daily-entry:focus-visible { border-color: rgba(255, 215, 107, .6); background: rgba(255, 215, 107, .11); }
.daily-entry.has-reward { border-color: rgba(255, 215, 107, .55); color: #ffe6a1; box-shadow: 0 0 17px rgba(255, 201, 88, .1); }
.daily-entry-icon { color: var(--gold); font-size: 13px; }
.daily-entry-state { padding: 3px 4px; border-radius: 2px; background: rgba(255, 215, 107, .12); color: #ffe6a1; font-size: 7px; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .9fr); gap: 22px; padding: 32px 0 28px; align-items: stretch; }
.mining-column { min-width: 0; }
.balance-panel { min-height: 117px; padding: 4px 4px 20px; }
.eyebrow { color: #8a95ac; font-size: 10px; letter-spacing: .13em; }
.balance-line { display: flex; align-items: center; gap: 11px; margin-top: 6px; font-size: clamp(32px, 4vw, 43px); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.coin-glyph { color: var(--gold); font-size: 23px; text-shadow: 0 0 15px rgba(255, 215, 107, .45); }
.balance-caption { display: flex; align-items: center; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.balance-caption .live-dot { width: 5px; height: 5px; }

.mine-panel, .shop-panel { border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(145deg, rgba(20, 26, 41, .96), rgba(13, 18, 30, .98)); box-shadow: 0 16px 55px rgba(0, 0, 0, .18); }
.mine-panel { position: relative; overflow: hidden; --mine-atmosphere: rgba(68, 197, 194, .15); transition: --mine-atmosphere .8s ease; }
.mine-panel::after { content: ''; position: absolute; z-index: 0; inset: -18%; background: radial-gradient(ellipse at 55% 43%, var(--mine-atmosphere), transparent 66%); filter: blur(20px); opacity: .9; pointer-events: none; transition: opacity .2s ease; }
.mine-panel > * { position: relative; z-index: 1; }
.mine-panel.is-switching::after { opacity: 0; }
.mine-panel[data-planet-theme="mars"] { --mine-atmosphere: rgba(245, 91, 56, .19); }
.mine-panel[data-planet-theme="cryos"] { --mine-atmosphere: rgba(102, 213, 244, .19); }
.mine-panel[data-planet-theme="zenith"] { --mine-atmosphere: rgba(240, 190, 104, .18); }
.mine-heading { display: flex; justify-content: space-between; align-items: flex-start; padding: 21px 24px 0; }
.zone-number { margin-left: 7px; color: #59667e; }
.mine-heading h1 { margin: 8px 0 0; font-size: 21px; font-weight: 500; letter-spacing: 0; }
.rate-chip { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid rgba(113, 233, 174, .16); border-radius: 4px; color: #83e6b5; font: 10px var(--mono); white-space: nowrap; }
.rate-chip > span:first-child { font-size: 13px; }
.coin-stage { height: 315px; display: grid; place-items: center; position: relative; overflow: hidden; }
.coin-stage::before { content: ''; position: absolute; width: 260px; height: 170px; left: 50%; top: 50%; transform: translate(-50%, -40%); background: radial-gradient(ellipse, rgba(95, 106, 255, .16), transparent 70%); filter: blur(7px); }
.orbit { position: absolute; left: 50%; top: 48%; border: 1px solid rgba(131, 146, 211, .13); border-radius: 50%; transform: translate(-50%, -50%) rotate(-18deg); pointer-events: none; }
.orbit-one { width: 235px; height: 235px; }
.orbit-two { width: 283px; height: 176px; transform: translate(-50%, -50%) rotate(31deg); border-color: rgba(98, 221, 255, .13); }
.stage-star { position: absolute; color: #bdc9ff; opacity: .8; text-shadow: 0 0 10px rgba(189, 201, 255, .8); }
.star-one { top: 24%; left: 25%; font-size: 12px; }
.star-two { right: 24%; bottom: 25%; font-size: 25px; }
.mine-button { position: relative; z-index: 1; width: 173px; height: 173px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
.mine-button:hover { transform: scale(1.035); }
.mine-button:active { transform: scale(.94); }
.coin-outer { width: 154px; height: 154px; display: grid; place-items: center; border: 1px solid #fff0ae; border-radius: 50%; background: linear-gradient(140deg, #fff4bd 0%, #ffc94d 24%, #dd9225 53%, #fff0a5 77%, #f6b933 100%); box-shadow: 0 0 12px rgba(255, 211, 94, .9), 0 0 37px rgba(255, 191, 55, .4), 0 0 92px rgba(235, 174, 53, .2), inset 0 0 7px rgba(255, 255, 231, .88); animation: coin-hover 3.8s ease-in-out infinite; }
.coin-inner { width: 132px; height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid rgba(255, 243, 181, .7); border-radius: 50%; background: radial-gradient(circle at 34% 26%, #ffeb94, #dd962a 64%, #bd7523); box-shadow: inset 0 0 20px rgba(255, 238, 156, .46), inset 0 0 0 5px rgba(112, 63, 24, .12); color: #fff3bb; text-shadow: 0 1px 3px rgba(89, 46, 13, .45); }
.coin-emblem { font-size: 42px; line-height: 1; }
.coin-word { font: 9px var(--mono); letter-spacing: .18em; }
.tap-hint { position: absolute; z-index: 2; top: calc(50% + 100px); color: #929db3; font-size: 9px; letter-spacing: .16em; pointer-events: none; }
.coin-stage.is-empty .mine-button { opacity: .65; }

.energy-block { padding: 14px 24px 18px; border-top: 1px solid var(--line); background: rgba(8, 12, 21, .35); }
.energy-label-row, .energy-footer { display: flex; align-items: center; justify-content: space-between; }
.energy-label { display: flex; align-items: center; gap: 7px; color: #aab4c8; font: 10px var(--mono); letter-spacing: .1em; }
.bolt { color: var(--cyan); font-size: 16px; }
.energy-numbers { color: var(--muted); font: 10px var(--mono); }
.energy-numbers strong { color: var(--text); font-weight: 500; }
.energy-track { height: 6px; margin-top: 11px; overflow: hidden; border-radius: 5px; background: #242d40; }
.energy-track span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6578ff, #61d9fa); box-shadow: 0 0 12px rgba(98, 221, 255, .45); transition: width .25s ease; }
.energy-footer { margin-top: 12px; color: var(--muted); font: 9px var(--mono); }
.energy-footer strong { color: #b6c1d6; font-weight: 400; }
.ad-button { display: flex; align-items: center; gap: 6px; min-height: 29px; padding: 0 8px; border: 1px solid rgba(156, 121, 255, .3); border-radius: 4px; background: rgba(156, 121, 255, .07); color: #c8b7ff; font-size: 9px; cursor: pointer; transition: background .2s, border-color .2s; }
.ad-button:hover { border-color: rgba(156, 121, 255, .65); background: rgba(156, 121, 255, .14); }
.ad-button > span:first-child { font-size: 8px; }
.ad-tag { color: #907bd1; font-size: 8px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.stat-card { min-height: 73px; display: flex; align-items: center; gap: 11px; padding: 12px 14px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: rgba(16, 21, 34, .82); }
.stat-card::after { content: ''; position: absolute; right: -15px; bottom: -34px; width: 74px; height: 74px; border: 1px solid rgba(98, 221, 255, .1); border-radius: 50%; }
.stat-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 5px; background: rgba(98, 221, 255, .09); color: var(--cyan); font-size: 16px; }
.auto-icon { background: rgba(156, 121, 255, .1); color: #b39aff; }
.stat-copy { display: grid; gap: 5px; }
.stat-label { color: var(--muted); font-size: 8px; letter-spacing: .08em; white-space: nowrap; }
.stat-copy strong { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat-copy small { color: var(--muted); font-size: 9px; font-weight: 400; }
.stat-index { align-self: flex-start; margin: 1px 0 0 auto; color: #59657b; font-size: 8px; }
.player-level-card, .combo-card { grid-column: 1 / -1; }
.player-level-card { display: block; }
.player-card-heading { display: flex; align-items: center; gap: 11px; }
.level-icon { background: rgba(255, 215, 107, .1); color: var(--gold); }
.experience-block { position: relative; z-index: 1; margin-top: 12px; }
.experience-label-row { display: flex; justify-content: space-between; gap: 8px; color: #77839a; font: 8px var(--mono); letter-spacing: .06em; }
.experience-label-row strong { color: #c9d4e8; font-weight: 400; white-space: nowrap; }
.experience-track { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 5px; background: #252d40; }
.experience-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9b79ff, #65deff); box-shadow: 0 0 11px rgba(139, 131, 255, .48); transition: width .45s cubic-bezier(.2, .75, .2, 1); }
.experience-next { margin-top: 6px; color: #77839a; font: 8px var(--mono); text-align: right; }
.combo-card { transition: border-color .25s, background .25s, box-shadow .25s; }
.combo-card.is-active { border-color: rgba(98, 221, 255, .35); background: linear-gradient(100deg, rgba(23, 45, 63, .85), rgba(20, 26, 41, .9)); box-shadow: inset 3px 0 rgba(98, 221, 255, .65); }
.combo-icon { background: rgba(98, 221, 255, .08); color: var(--cyan); }
.combo-card.is-active .combo-icon { animation: combo-pulse .8s ease-in-out infinite alternate; }
.combo-details { display: grid; gap: 4px; margin-left: auto; text-align: right; }
.combo-details strong { color: var(--cyan); font: 10px var(--mono); }
.combo-details span { color: var(--muted); font: 8px var(--mono); }

.planet-section { padding: 27px 0 36px; border-top: 1px solid var(--line); }
.planet-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.planet-section-heading h2 { margin: 6px 0 0; font-size: 19px; font-weight: 500; }
.planet-section-heading p { margin: 0 0 2px; color: var(--muted); font-size: 10px; }
.planet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mission-section { padding: 27px 0 36px; border-top: 1px solid var(--line); }
.mission-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.mission-section-heading h2 { margin: 6px 0 0; font-size: 19px; font-weight: 500; }
.mission-section-heading p { margin: 0 0 2px; color: var(--muted); font-size: 10px; }
.mission-planet-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0 14px; }
.mission-planet-tab { min-width: 0; min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: rgba(15, 20, 32, .72); color: #a4afc4; font: 9px var(--mono); letter-spacing: .06em; cursor: pointer; transition: border-color .2s, color .2s, background .2s, box-shadow .2s; }
.mission-planet-tab:hover { border-color: rgba(98, 221, 255, .4); color: #d7eff8; }
.mission-planet-tab.is-selected { border-color: rgba(98, 221, 255, .56); background: rgba(98, 221, 255, .09); color: #d9f7ff; box-shadow: inset 0 -2px rgba(98, 221, 255, .48); }
.mission-planet-tab small { color: #7de4ae; font: 7px var(--mono); }
.mission-planet-tab.is-locked small { color: #77839a; }
.mission-locked-message { margin: 0; padding: 22px 18px; border: 1px dashed rgba(159, 177, 220, .2); border-radius: 5px; background: rgba(12, 17, 28, .65); color: #a0aac0; font-size: 12px; text-align: center; }
.mission-locked-message[hidden], .mission-grid[hidden] { display: none; }
.mission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.mission-card { min-width: 0; display: flex; flex-direction: column; position: relative; overflow: hidden; padding: 13px 12px 12px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(150deg, rgba(20, 26, 41, .94), rgba(11, 16, 27, .96)); transition: border-color .25s, background .25s, box-shadow .25s, transform .25s; }
.mission-card::before { content: ''; position: absolute; top: -45px; right: -40px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(98, 221, 255, .09), transparent 70%); pointer-events: none; }
.mission-card.is-completed { border-color: rgba(255, 215, 107, .34); box-shadow: inset 0 0 25px rgba(255, 215, 107, .035); }
.mission-card.is-claimed { border-color: rgba(113, 233, 174, .18); background: linear-gradient(150deg, rgba(18, 35, 33, .85), rgba(11, 16, 27, .96)); }
.mission-card.is-claiming { animation: daily-claim 850ms cubic-bezier(.2, .75, .2, 1) both; }
.mission-card-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.mission-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(98, 221, 255, .2); border-radius: 4px; background: rgba(98, 221, 255, .07); color: var(--cyan); font-size: 14px; }
.mission-card:nth-child(2) .mission-icon { color: #ff9a76; border-color: rgba(255, 154, 118, .22); background: rgba(255, 154, 118, .07); }
.mission-card:nth-child(3) .mission-icon { color: #b6a0ff; border-color: rgba(182, 160, 255, .22); background: rgba(182, 160, 255, .07); }
.mission-card:nth-child(4) .mission-icon { color: #9ce8d2; border-color: rgba(156, 232, 210, .22); background: rgba(156, 232, 210, .07); }
.mission-card:nth-child(5) .mission-icon { color: var(--gold); border-color: rgba(255, 215, 107, .22); background: rgba(255, 215, 107, .07); }
.mission-status { color: #78849a; font: 7px var(--mono); letter-spacing: .045em; text-align: right; }
.mission-card.is-completed .mission-status { color: #f0d48c; }
.mission-card.is-claimed .mission-status { color: #83e6b5; }
.mission-card h3 { margin: 12px 0 5px; color: #edf1fa; font-size: 12px; font-weight: 600; }
.mission-card p { min-height: 31px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.mission-progress-copy { display: flex; justify-content: space-between; gap: 5px; margin-top: 13px; color: #8390a7; font: 7px var(--mono); letter-spacing: .04em; }
.mission-progress-copy strong { color: #cdd7e8; font-weight: 400; white-space: nowrap; }
.mission-progress { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 4px; background: #262e40; }
.mission-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5fc9e7, #8b8bff); box-shadow: 0 0 10px rgba(98, 221, 255, .3); transition: width .4s cubic-bezier(.2, .75, .2, 1); }
.mission-card.is-completed .mission-progress span { background: linear-gradient(90deg, #dba94a, #ffe091); box-shadow: 0 0 10px rgba(255, 215, 107, .35); }
.mission-card.is-claimed .mission-progress span { background: linear-gradient(90deg, #4baa83, #83e6b5); box-shadow: 0 0 10px rgba(113, 233, 174, .3); }
.mission-reward { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px; margin-top: 13px; color: #7a869c; font: 7px var(--mono); }
.mission-reward strong { color: #e6cc88; font-weight: 400; white-space: nowrap; }
.mission-action { width: 100%; min-height: 38px; margin-top: 11px; border: 1px solid rgba(98, 221, 255, .24); border-radius: 4px; background: rgba(98, 221, 255, .055); color: #b8eefa; font: 8px var(--mono); letter-spacing: .07em; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s, color .2s, opacity .2s; }
.mission-card.is-completed .mission-action { border-color: rgba(255, 215, 107, .54); background: rgba(255, 215, 107, .1); color: #ffe6a1; box-shadow: 0 0 16px rgba(255, 198, 77, .08); }
.mission-card.is-completed .mission-action:hover:not(:disabled) { border-color: #ffe29a; background: rgba(255, 215, 107, .2); box-shadow: 0 0 20px rgba(255, 198, 77, .17); }
.mission-action:disabled { border-color: rgba(159, 177, 220, .1); background: rgba(159, 177, 220, .025); color: #748097; cursor: default; box-shadow: none; }
.mission-card.is-claimed .mission-action { border-color: rgba(113, 233, 174, .15); color: #83cba5; }
.planet-card { min-width: 0; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: rgba(15, 20, 32, .94); transition: border-color .28s, transform .28s cubic-bezier(.2, .75, .2, 1), opacity .2s, box-shadow .28s, filter .28s; }
.planet-card:hover, .planet-card:focus-within { z-index: 2; transform: scale(1.018); border-color: rgba(142, 194, 237, .42); box-shadow: 0 12px 32px rgba(0, 0, 0, .28), 0 0 24px var(--card-glow, rgba(98, 221, 255, .13)); }
.planet-card.is-active { border-color: rgba(98, 221, 255, .8); box-shadow: 0 0 27px var(--card-glow, rgba(98, 221, 255, .21)), inset 0 0 24px rgba(98, 221, 255, .055); }
.planet-card.is-active::after { content: ''; position: absolute; z-index: 2; inset: auto 15px 0; height: 2px; background: linear-gradient(90deg, transparent, var(--card-highlight, #62ddff), transparent); box-shadow: 0 0 12px var(--card-highlight, #62ddff); }
.planet-card.is-locked { border-color: rgba(159, 177, 220, .09); }
.planet-art { height: 132px; display: grid; place-items: center; position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 50% 120%, rgba(81, 185, 218, .24), transparent 70%), linear-gradient(130deg, #10243a, #111a2b 60%, #172234); }
.planet-art::before, .planet-art::after { content: ''; position: absolute; z-index: -1; width: 180px; height: 1px; background: rgba(164, 200, 239, .14); transform: rotate(-24deg); }
.planet-art::after { transform: rotate(28deg); opacity: .6; }
.planet-orb { width: 98px; height: 98px; position: relative; overflow: hidden; border: 1px solid rgba(226, 247, 255, .58); border-radius: 50%; background: radial-gradient(ellipse at 37% 48%, #82c37d 0 10%, transparent 11%), radial-gradient(ellipse at 64% 64%, #92be76 0 9%, transparent 10%), radial-gradient(circle at 32% 28%, #a9eddb 0 3%, #3b9c9b 38%, #20547d 72%, #132947 100%); box-shadow: inset -13px -11px 20px rgba(1, 13, 35, .54), 0 0 16px rgba(83, 207, 204, .3), 0 0 35px var(--card-glow, rgba(83, 207, 204, .22)); animation: planet-float 7s ease-in-out infinite; }
.planet-orb::before { content: ''; position: absolute; inset: -12%; border-radius: inherit; background: repeating-linear-gradient(157deg, transparent 0 13px, rgba(231, 251, 255, .15) 14px 16px, transparent 17px 29px); opacity: .42; mix-blend-mode: screen; transform: rotate(-11deg); }
.planet-orb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 29% 21%, rgba(255, 255, 255, .48), transparent 17%), radial-gradient(ellipse at 76% 82%, rgba(0, 0, 0, .5), transparent 57%); box-shadow: inset -11px -9px 18px rgba(2, 13, 31, .48); }
.planet-earth { --card-glow: rgba(77, 211, 199, .2); --card-highlight: #67e1d0; }
.planet-mars { --card-glow: rgba(255, 105, 66, .22); --card-highlight: #ff916b; }
.planet-cryos { --card-glow: rgba(116, 224, 248, .23); --card-highlight: #9af0ff; }
.planet-zenith { --card-glow: rgba(255, 203, 111, .22); --card-highlight: #ffda8b; }
.planet-mars .planet-art { background: radial-gradient(ellipse at 50% 120%, rgba(242, 103, 55, .34), transparent 70%), linear-gradient(130deg, #49231f, #20191d 60%, #332127); }
.planet-mars .planet-orb { background: radial-gradient(ellipse at 39% 43%, #df8d56 0 7%, transparent 8%), radial-gradient(ellipse at 62% 62%, #a74030 0 12%, transparent 13%), radial-gradient(circle at 34% 26%, #ffcc9a, #c95335 45%, #783026 75%, #391f26); box-shadow: inset -13px -11px 20px rgba(42, 12, 14, .55), 0 0 18px rgba(239, 97, 60, .34), 0 0 37px var(--card-glow); animation-delay: 1.2s; }
.planet-mars .planet-orb::before { background: repeating-linear-gradient(164deg, transparent 0 9px, rgba(255, 205, 161, .18) 10px 12px, transparent 13px 23px); opacity: .48; }
.planet-cryos .planet-art { background: radial-gradient(ellipse at 50% 120%, rgba(104, 221, 255, .32), transparent 70%), linear-gradient(130deg, #193b4a, #15212e 60%, #1b3444); }
.planet-cryos .planet-orb { background: radial-gradient(ellipse at 38% 41%, rgba(239, 255, 255, .84) 0 7%, transparent 8%), radial-gradient(ellipse at 63% 63%, rgba(199, 250, 255, .78) 0 12%, transparent 13%), radial-gradient(circle at 30% 26%, #f3ffff, #a4e9ef 35%, #4f9bac 69%, #28526b); box-shadow: inset -13px -11px 20px rgba(12, 38, 58, .48), 0 0 18px rgba(116, 225, 238, .36), 0 0 38px var(--card-glow); animation-delay: 2.4s; }
.planet-cryos .planet-orb::before { background: repeating-linear-gradient(145deg, transparent 0 13px, rgba(236, 255, 255, .29) 14px 16px, transparent 17px 29px); opacity: .58; }
.planet-zenith .planet-art { background: radial-gradient(ellipse at 50% 120%, rgba(255, 201, 108, .3), transparent 70%), linear-gradient(130deg, #3c3028, #1d202d 60%, #332b36); }
.planet-zenith .planet-orb { background: radial-gradient(ellipse at 39% 44%, #dfc477 0 9%, transparent 10%), radial-gradient(ellipse at 66% 63%, #9e735b 0 13%, transparent 14%), radial-gradient(circle at 31% 25%, #fff1bd, #d9a746 34%, #88644f 63%, #3a3554); box-shadow: inset -13px -11px 20px rgba(26, 19, 38, .56), 0 0 18px rgba(245, 194, 103, .35), 0 0 38px var(--card-glow); animation-delay: 3.2s; }
.planet-zenith .planet-orb::before { inset: 31% -25%; border: 1px solid rgba(255, 236, 177, .42); background: transparent; transform: rotate(-21deg); opacity: .85; }
.planet-art-label { position: absolute; right: 9px; bottom: 8px; color: rgba(217, 229, 244, .6); font: 7px var(--mono); letter-spacing: .1em; }
.planet-card-content { padding: 13px 13px 12px; }
.planet-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.planet-card-heading h3 { margin: 4px 0 0; font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.planet-status { padding: 4px 5px; border: 1px solid rgba(113, 233, 174, .24); border-radius: 3px; color: #83e6b5; font: 7px var(--mono); letter-spacing: .06em; transition: color .45s, background .45s, border-color .45s, box-shadow .45s; }
.is-locked .planet-status { border-color: rgba(159, 177, 220, .17); color: #8a95ac; }
.planet-card.is-opening { animation: planet-unlock .95s cubic-bezier(.2, .75, .2, 1) both; }
.planet-card.is-opening .planet-status { background: rgba(113, 233, 174, .15); box-shadow: 0 0 14px rgba(113, 233, 174, .35); animation: status-unlock .8s ease both; }
.planet-label-in { animation: planet-label-in .42s ease both; }
.planet-resource { min-height: 15px; margin: 7px 0 10px; color: #a4afc4; font-size: 10px; }
.planet-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.planet-metrics > div { min-width: 0; display: grid; gap: 4px; }
.planet-metrics span { color: #768199; font: 7px var(--mono); letter-spacing: .08em; }
.planet-metrics strong { overflow: hidden; color: #e5eafa; font: 10px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.planet-cost { min-height: 26px; display: flex; align-items: center; margin: 8px 0 5px; color: #d7bb79; font: 7px var(--mono); letter-spacing: .025em; }
.planet-cost[hidden] { display: none; }
.planet-action { width: 100%; min-height: 40px; margin-top: 12px; padding: 0 8px; border: 1px solid rgba(98, 221, 255, .34); border-radius: 4px; background: rgba(98, 221, 255, .08); color: #c9f4ff; font: 9px var(--mono); letter-spacing: .06em; cursor: pointer; transition: background .2s, border-color .2s, opacity .2s, transform .2s, box-shadow .2s; }
.planet-action:hover:not(:disabled) { border-color: var(--cyan); background: rgba(98, 221, 255, .17); }
.planet-action:active:not(:disabled) { transform: scale(.98); }
.planet-action:disabled { border-color: rgba(159, 177, 220, .12); background: rgba(159, 177, 220, .035); color: #748097; cursor: default; }
.planet-card.is-locked .planet-action { border-color: rgba(255, 215, 107, .38); background: linear-gradient(105deg, rgba(137, 96, 35, .25), rgba(92, 68, 35, .19)); color: #ffe2a0; box-shadow: inset 0 0 14px rgba(255, 215, 107, .04); }
.planet-card.is-locked .planet-action:hover:not(:disabled) { border-color: rgba(255, 215, 107, .78); background: linear-gradient(105deg, rgba(169, 116, 41, .34), rgba(116, 79, 37, .28)); box-shadow: 0 0 17px rgba(255, 195, 91, .16); }
.planet-card.is-locked .planet-action:disabled { border-color: rgba(159, 177, 220, .12); background: rgba(159, 177, 220, .035); color: #748097; }

.shop-panel { padding: 23px 20px 16px; }
.shop-heading { display: flex; align-items: flex-end; justify-content: space-between; }
.shop-heading h2 { margin: 7px 0 0; font-size: 22px; font-weight: 500; letter-spacing: 0; }
.shop-count { padding: 5px 6px; border: 1px solid var(--line); border-radius: 3px; color: #8591a9; font-size: 8px; }
.shop-intro { max-width: 270px; margin: 11px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.upgrade-item { padding: 15px 13px 12px; border: 1px solid rgba(159, 177, 220, .12); border-radius: 5px; background: rgba(7, 11, 19, .45); }
.upgrade-item + .upgrade-item { margin-top: 12px; }
.upgrade-topline { display: flex; align-items: center; justify-content: space-between; }
.upgrade-icon { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid rgba(98, 221, 255, .18); border-radius: 5px; background: rgba(98, 221, 255, .08); color: var(--cyan); font-size: 15px; }
.auto-upgrade-icon { border-color: rgba(156, 121, 255, .2); background: rgba(156, 121, 255, .08); color: #b39aff; }
.upgrade-level { color: #7f8ba3; font-size: 8px; letter-spacing: .08em; }
.upgrade-item h3 { margin: 12px 0 5px; font-size: 13px; font-weight: 600; }
.upgrade-item p { min-height: 32px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.upgrade-effect { display: flex; align-items: center; justify-content: space-between; margin: 13px 0 10px; padding-top: 10px; border-top: 1px solid rgba(159, 177, 220, .1); }
.upgrade-effect > span { color: #758199; font-size: 8px; letter-spacing: .08em; }
.upgrade-effect strong { color: #d3ddf2; font: 10px var(--mono); }
.buy-button { width: 100%; min-height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border: 1px solid rgba(98, 221, 255, .36); border-radius: 4px; background: linear-gradient(100deg, rgba(47, 105, 154, .27), rgba(57, 57, 123, .24)); color: #d9f7ff; font-size: 9px; letter-spacing: .04em; cursor: pointer; transition: border-color .2s, background .2s, opacity .2s; }
.buy-button:hover:not(:disabled) { border-color: var(--cyan); background: linear-gradient(100deg, rgba(47, 125, 174, .4), rgba(71, 66, 150, .35)); }
.buy-button:disabled { opacity: .42; cursor: not-allowed; }
.button-price { color: var(--gold); font-size: 10px; letter-spacing: 0; }
.button-price span:first-child { font-size: 9px; }
.shop-footnote { display: flex; align-items: center; gap: 8px; margin-top: 15px; color: #737f95; font-size: 9px; line-height: 1.4; }
.footnote-mark { width: 13px; height: 13px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #69768d; border-radius: 50%; font: 9px var(--mono); }

.footer { min-height: 50px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #606b80; font-size: 8px; letter-spacing: .08em; }
.footer-separator { margin: 0 5px; color: #384258; }
.bottom-nav { position: fixed; z-index: 15; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); width: min(820px, calc(100vw - 32px)); min-height: 66px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px; transform: translateX(-50%); border: 1px solid rgba(152, 174, 218, .18); border-radius: 9px; background: rgba(11, 16, 28, .94); box-shadow: 0 12px 42px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .035); backdrop-filter: blur(16px); }
.nav-tab { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #808ba1; font: 10px 'Space Grotesk', 'Segoe UI', sans-serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; -webkit-tap-highlight-color: transparent; }
.nav-tab:hover { background: rgba(98, 221, 255, .055); color: #c5d5e8; }
.nav-tab.is-active { border-color: rgba(98, 221, 255, .17); background: linear-gradient(180deg, rgba(98, 221, 255, .12), rgba(98, 221, 255, .045)); color: #a4efff; }
.nav-tab:active { transform: scale(.96); }
.nav-icon { font-size: 18px; line-height: 1; filter: saturate(.72); }
.nav-tab.is-active .nav-icon { filter: saturate(1.2) drop-shadow(0 0 5px rgba(98, 221, 255, .35)); }
.info-screen { width: min(860px, 100%); min-height: 62vh; margin: 0 auto; padding: 48px 0 34px; }
.info-screen-heading { margin-bottom: 24px; }
.info-screen-heading h1 { margin: 7px 0 5px; font-size: 27px; font-weight: 600; }
.info-screen-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.empty-state-panel { min-height: 310px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; border: 1px solid var(--line); border-radius: 7px; background: radial-gradient(ellipse at 50% 0, rgba(98, 221, 255, .08), transparent 55%), linear-gradient(145deg, rgba(20, 26, 41, .96), rgba(13, 18, 30, .98)); text-align: center; }
.empty-state-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(98, 221, 255, .24); border-radius: 50%; background: rgba(98, 221, 255, .06); color: var(--cyan); font-size: 28px; box-shadow: 0 0 28px rgba(98, 221, 255, .1); }
.empty-state-status { margin-top: 18px; color: #7e8ba2; font: 8px var(--mono); letter-spacing: .12em; }
.empty-state-panel h2 { margin: 8px 0; font-size: 19px; font-weight: 500; }
.empty-state-panel p { max-width: 420px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.server-required-button { min-height: 40px; margin-top: 22px; padding: 0 15px; border: 1px solid rgba(159, 177, 220, .12); border-radius: 4px; background: rgba(159, 177, 220, .04); color: #79859a; font: 8px var(--mono); letter-spacing: .08em; cursor: not-allowed; }
.profile-overview { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 15px; padding: 20px; border: 1px solid rgba(255, 215, 107, .2); border-radius: 7px; background: radial-gradient(ellipse at 0 0, rgba(255, 215, 107, .1), transparent 55%), linear-gradient(145deg, rgba(20, 26, 41, .96), rgba(13, 18, 30, .98)); }
.profile-level-mark { width: 54px; height: 54px; display: grid; place-items: center; grid-row: span 2; border: 1px solid rgba(255, 215, 107, .3); border-radius: 50%; background: rgba(255, 215, 107, .08); color: var(--gold); font-size: 24px; }
.profile-level-copy { display: grid; gap: 4px; }
.profile-level-copy strong { font-size: 19px; font-weight: 600; }
.profile-level-copy > span:last-child { color: #aeb9cc; font: 9px var(--mono); }
.profile-experience-track { grid-column: 2; height: 6px; overflow: hidden; border-radius: 4px; background: #252d40; }
.profile-experience-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a18aff, #65deff); transition: width .4s ease; }
.profile-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.profile-stat { min-width: 0; min-height: 75px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; background: rgba(16, 21, 34, .82); }
.profile-stat span { color: #79869d; font: 8px var(--mono); letter-spacing: .07em; }
.profile-stat strong { overflow: hidden; color: #e7edf7; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.profile-balances { margin-top: 25px; padding-top: 17px; border-top: 1px solid var(--line); }
.profile-balance-list { margin-top: 10px; border: 1px solid var(--line); border-radius: 5px; background: rgba(16, 21, 34, .68); }
.profile-balance-row { min-height: 47px; display: grid; grid-template-columns: minmax(80px, .7fr) minmax(100px, 1fr) minmax(70px, .6fr); align-items: center; gap: 12px; padding: 0 14px; }
.profile-balance-row + .profile-balance-row { border-top: 1px solid rgba(159, 177, 220, .08); }
.profile-balance-name { color: #e0e7f2; font-size: 11px; }
.profile-balance-state { color: #7d899e; font: 8px var(--mono); }
.profile-balance-amount { color: var(--gold); font: 10px var(--mono); text-align: right; }
.profile-balance-row.is-locked .profile-balance-amount { color: #6f7a8e; }
.daily-open { overflow: hidden; }
.daily-overlay { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(4, 7, 14, .78); backdrop-filter: blur(9px); animation: daily-overlay-in .2s ease both; }
.daily-overlay[hidden] { display: none; }
.daily-dialog { width: min(760px, 100%); max-height: min(720px, calc(100dvh - 40px)); overflow-y: auto; padding: 25px; border: 1px solid rgba(255, 215, 107, .2); border-radius: 8px; background: radial-gradient(ellipse at 50% -20%, rgba(114, 94, 58, .22), transparent 56%), linear-gradient(145deg, #151a27, #0d111c 75%); box-shadow: 0 25px 90px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .035); animation: daily-dialog-in .3s cubic-bezier(.2, .75, .2, 1) both; }
.daily-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.daily-dialog-header h2 { margin: 6px 0 0; color: #f5eedb; font-size: 22px; font-weight: 600; }
.daily-close { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, .025); color: #aab4c8; font-size: 22px; line-height: 1; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.daily-close:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .07); color: #fff; }
.daily-description { margin: 9px 0 19px; color: #919bb0; font-size: 11px; line-height: 1.5; }
.daily-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.daily-day { min-width: 0; min-height: 143px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 12px 5px 10px; border: 1px solid rgba(159, 177, 220, .1); border-radius: 5px; background: rgba(7, 11, 19, .45); color: #8d98ad; transition: border-color .25s, background .25s, color .25s, transform .25s, box-shadow .25s; }
.daily-day-label, .daily-unit, .daily-day-status { font-family: var(--mono); }
.daily-day-label { color: #8b96ab; font-size: 8px; letter-spacing: .08em; }
.daily-coin { margin: 10px 0 3px; color: #a78d55; font-size: 19px; text-shadow: 0 0 12px rgba(255, 215, 107, .18); }
.daily-amount { color: #c3c9d6; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.daily-unit { margin-top: 3px; color: #69758b; font-size: 7px; letter-spacing: .08em; }
.daily-day-status { position: absolute; top: 6px; right: 5px; color: #7de4ae; font-size: 6px; letter-spacing: .04em; }
.daily-day.is-available { transform: translateY(-2px); border-color: rgba(255, 215, 107, .7); background: linear-gradient(160deg, rgba(110, 82, 34, .27), rgba(22, 23, 30, .7)); color: #ffe5a0; box-shadow: 0 0 22px rgba(255, 196, 74, .13), inset 0 0 20px rgba(255, 215, 107, .045); }
.daily-day.is-available .daily-day-label, .daily-day.is-available .daily-amount { color: #fff0c1; }
.daily-day.is-available .daily-coin { color: #ffda7c; text-shadow: 0 0 17px rgba(255, 197, 67, .6); }
.daily-day.is-claimed { border-color: rgba(113, 233, 174, .2); background: rgba(27, 62, 54, .24); }
.daily-day.is-claimed .daily-coin { color: #77d8a8; text-shadow: 0 0 12px rgba(113, 233, 174, .34); }
.daily-day.is-claimed .daily-amount { color: #a7d7bd; }
.daily-day.is-claimed .daily-day-status { color: #7de4ae; }
.daily-day.is-claiming { animation: daily-claim 850ms cubic-bezier(.2, .75, .2, 1) both; }
.daily-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; }
.daily-countdown { display: flex; align-items: center; gap: 8px; color: #a9b2c4; font: 9px var(--mono); letter-spacing: .04em; }
.countdown-dot { width: 6px; height: 6px; border-radius: 50%; background: #ffd76b; box-shadow: 0 0 9px rgba(255, 215, 107, .7); }
.claim-reward { min-width: 162px; min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 13px; border: 1px solid rgba(255, 215, 107, .56); border-radius: 4px; background: linear-gradient(110deg, rgba(133, 95, 34, .5), rgba(87, 67, 39, .38)); color: #fff0c0; font: 9px var(--mono); letter-spacing: .06em; cursor: pointer; box-shadow: inset 0 0 15px rgba(255, 215, 107, .06); transition: border-color .2s, background .2s, box-shadow .2s, transform .2s, opacity .2s; }
.claim-reward:hover:not(:disabled) { transform: translateY(-1px); border-color: #ffe29a; background: linear-gradient(110deg, rgba(163, 116, 41, .65), rgba(107, 78, 40, .52)); box-shadow: 0 0 22px rgba(255, 195, 72, .17); }
.claim-reward:not(:disabled)::after { content: '↗'; }
.claim-reward:disabled { border-color: rgba(159, 177, 220, .13); background: rgba(159, 177, 220, .04); color: #7c879c; cursor: default; box-shadow: none; }
.daily-history { min-height: 11px; margin-top: 13px; color: #69758b; font: 8px var(--mono); letter-spacing: .04em; }
.toast { position: fixed; z-index: 5; left: 50%; bottom: 28px; max-width: calc(100% - 32px); padding: 11px 15px; transform: translate(-50%, 12px); border: 1px solid rgba(156, 121, 255, .35); border-radius: 5px; background: #171b2a; color: #e8e2ff; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 10px 35px rgba(0, 0, 0, .35); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.float-credit { position: absolute; z-index: 3; color: #fff1b1; font: 600 18px 'Space Grotesk', sans-serif; text-shadow: 0 1px 10px rgba(255, 193, 47, .8); pointer-events: none; animation: float-up .75s ease-out forwards; }
.float-credit.is-critical { color: #fff7cc; font-size: 22px; text-shadow: 0 0 18px rgba(255, 192, 63, .9), 0 1px 4px rgba(90, 43, 0, .8); }
.critical-feedback { position: absolute; z-index: 4; left: 50%; top: 17%; transform: translate(-50%, 10px) scale(.8); color: #ffe28a; font: 600 13px var(--mono); letter-spacing: .08em; text-align: center; white-space: nowrap; opacity: 0; pointer-events: none; text-shadow: 0 0 8px rgba(255, 184, 48, .9), 0 0 25px rgba(255, 136, 34, .6); }
.critical-feedback.is-visible { animation: critical-pop .95s cubic-bezier(.18, .8, .25, 1) both; }
.level-up-banner { position: fixed; z-index: 10; top: 19%; left: 50%; display: grid; gap: 5px; min-width: 180px; padding: 13px 22px; transform: translate(-50%, -12px) scale(.88); border: 1px solid rgba(255, 215, 107, .42); border-radius: 5px; background: rgba(19, 21, 31, .94); color: #fff0b0; text-align: center; opacity: 0; pointer-events: none; box-shadow: 0 0 35px rgba(255, 197, 71, .17), inset 0 0 20px rgba(255, 205, 87, .06); }
.level-up-banner.is-visible { animation: level-up-enter 1.8s ease both; }
.level-up-banner span { font: 600 16px 'Space Grotesk', 'Segoe UI', sans-serif; }
.level-up-banner strong { color: #94e8ff; font: 9px var(--mono); letter-spacing: .14em; }

@keyframes coin-hover { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(4deg); } }
@keyframes float-up { 0% { opacity: 0; transform: translate(-50%, 0) scale(.8); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -66px) scale(1.08); } }
@keyframes critical-pop { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); } 18% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 78% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -14px) scale(1); } }
@keyframes level-up-enter { 0% { opacity: 0; transform: translate(-50%, -12px) scale(.88); } 15%, 78% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -6px) scale(.98); } }
@keyframes combo-pulse { from { box-shadow: 0 0 0 rgba(98, 221, 255, 0); } to { box-shadow: 0 0 13px rgba(98, 221, 255, .3); } }
@keyframes planet-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes planet-unlock { 0% { filter: brightness(.76); transform: scale(.97); } 38% { filter: brightness(1.28); transform: scale(1.025); box-shadow: 0 0 34px var(--card-glow); } 100% { filter: brightness(1); transform: scale(1); } }
@keyframes status-unlock { 0% { transform: scale(.82); color: #c2cbd8; } 45% { transform: scale(1.12); } 100% { transform: scale(1); color: #83e6b5; } }
@keyframes planet-label-in { 0% { opacity: .45; transform: translateY(4px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes daily-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes daily-dialog-in { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes daily-claim { 0% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 215, 107, 0); } 32% { transform: scale(1.055); border-color: #ffe39a; box-shadow: 0 0 42px rgba(255, 198, 77, .44), inset 0 0 28px rgba(255, 221, 130, .2); } 100% { transform: scale(1); } }
@keyframes screen-enter { from { opacity: .7; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
    .planet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .app-shell { width: min(100% - 32px, 560px); }
    .topbar { height: 67px; }
    .game-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 21px; }
    .balance-panel { min-height: 102px; }
    .mine-heading { padding-right: 17px; padding-left: 17px; }
    .coin-stage { height: 286px; }
    .energy-block { padding-right: 17px; padding-left: 17px; }
    .shop-panel { padding: 20px 17px 15px; }
    .shop-intro { margin-bottom: 15px; }
    .upgrade-item { padding: 13px 12px 11px; }
    .planet-section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
    .mission-section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
    .planet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mission-planet-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .footer { gap: 12px; font-size: 7px; }
    .info-screen { min-height: 60vh; padding: 31px 0 24px; }
    .info-screen-heading { margin-bottom: 18px; }
    .profile-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bottom-nav { bottom: 0; width: 100%; min-height: calc(66px + env(safe-area-inset-bottom)); padding: 5px 5px calc(5px + env(safe-area-inset-bottom)); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 10px 10px 0 0; }
    .daily-dialog { padding: 21px; }
    .daily-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
    .app-shell { width: calc(100% - 24px); }
    .brand-name { font-size: 11px; }
    .status-pill { font-size: 8px; }
    .stat-card { gap: 8px; padding-right: 9px; padding-left: 9px; }
    .stat-label { font-size: 7px; }
    .experience-label-row { font-size: 7px; }
    .experience-label-row strong { font-size: 7px; }
    .combo-details strong { font-size: 9px; }
    .combo-details span { font-size: 7px; }
    .planet-grid { gap: 8px; }
    .planet-card-content { padding: 11px 9px 10px; }
    .planet-art { height: 116px; }
    .planet-orb { width: 84px; height: 84px; }
    .planet-card-heading h3 { font-size: 13px; }
    .planet-metrics { gap: 4px; }
    .planet-metrics strong { font-size: 9px; }
    .planet-cost { font-size: 6px; }
    .planet-action { min-height: 44px; font-size: 8px; }
    .mission-grid { gap: 8px; }
    .mission-grid { grid-template-columns: 1fr; }
    .mission-planet-tab { min-height: 44px; padding: 0 9px; font-size: 8px; }
    .mission-card { padding: 11px 9px 10px; }
    .mission-card h3 { font-size: 10px; }
    .mission-card p { min-height: 39px; font-size: 8px; }
    .mission-reward { font-size: 6px; }
    .mission-reward strong { font-size: 6px; }
    .mission-action { min-height: 42px; }
    .energy-footer { font-size: 8px; }
    .ad-button { gap: 4px; padding: 0 6px; font-size: 8px; }
    .ad-tag { font-size: 7px; }
    .footer { font-size: 6px; }
    body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .bottom-nav { min-height: calc(64px + env(safe-area-inset-bottom)); }
    .nav-tab { gap: 2px; font-size: 9px; }
    .nav-icon { font-size: 17px; }
    .info-screen { padding-top: 23px; }
    .info-screen-heading h1 { font-size: 23px; }
    .empty-state-panel { min-height: 270px; padding: 23px 17px; }
    .profile-overview { padding: 15px; }
    .profile-stat-grid { gap: 8px; }
    .profile-stat { min-height: 69px; padding: 10px; }
    .profile-stat strong { font-size: 12px; }
    .profile-balance-row { grid-template-columns: minmax(60px, .7fr) minmax(75px, 1fr) minmax(62px, .7fr); gap: 7px; padding: 0 10px; }
    .topbar-actions { gap: 9px; }
    .daily-entry { min-height: 32px; gap: 5px; padding: 0 7px; font-size: 7px; }
    .daily-entry > span:nth-child(2) { display: none; }
    .daily-entry-state { font-size: 6px; }
    .daily-overlay { align-items: start; padding: 10px; }
    .daily-dialog { max-height: calc(100dvh - 20px); padding: 17px 13px 13px; }
    .daily-dialog-header h2 { font-size: 19px; }
    .daily-description { margin: 8px 0 14px; font-size: 10px; }
    .daily-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .daily-day { min-height: 117px; padding: 12px 3px 8px; }
    .daily-day-label { font-size: 7px; }
    .daily-coin { margin-top: 7px; font-size: 17px; }
    .daily-amount { font-size: 11px; }
    .daily-day-status { top: 5px; right: 3px; font-size: 5px; }
    .daily-dialog-footer { align-items: stretch; flex-direction: column; gap: 12px; }
    .daily-countdown { min-height: 18px; font-size: 8px; }
    .claim-reward { width: 100%; min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}