:root {
  color-scheme: dark;
  --navy-950: #030b1b;
  --navy-900: #07162f;
  --navy-800: #0b2856;
  --navy-700: #123f7f;
  --cyan: #3edcff;
  --blue: #1677ff;
  --yellow: #ffd34e;
  --orange: #ff8a2c;
  --green: #32de83;
  --red: #ff4d68;
  --muted: #9eb5d5;
  --panel: rgba(7, 22, 47, 0.92);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--navy-950);
  overscroll-behavior: none; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}

button { font: inherit; color: inherit; border: 0; cursor: pointer; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

#app {
  position: relative; width: 100%; height: 100%; height: 100dvh; max-width: 520px; margin: 0 auto;
  overflow: hidden; background: var(--navy-900); isolation: isolate;
}

@media (min-width: 600px) {
  body { background: radial-gradient(circle at 50% 20%, #183d77, #020715 70%); }
  #app { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 100px #000; }
}

.screen { position: absolute; inset: 0; display: none; overflow: hidden; }
.screen.active { display: block; animation: screen-in .22s ease-out; }
@keyframes screen-in { from { opacity: 0; transform: scale(.99); } to { opacity: 1; transform: scale(1); } }

.boot-screen {
  place-items: center; align-content: center; text-align: center; padding: calc(28px + var(--safe-top)) 28px calc(24px + var(--safe-bottom));
  background:
    radial-gradient(circle at 50% 25%, rgba(62,220,255,.26), transparent 28%),
    linear-gradient(155deg, rgba(25,91,188,.42), transparent 50%),
    var(--navy-950);
}
.boot-screen.active { display: grid; }
.boot-screen::before, .menu-screen::before {
  content: ""; position: absolute; inset: -20%; opacity: .2; pointer-events: none;
  background-image: linear-gradient(30deg, #2b66a5 12%, transparent 12.5%, transparent 87%, #2b66a5 87.5%), linear-gradient(150deg, #2b66a5 12%, transparent 12.5%, transparent 87%, #2b66a5 87.5%);
  background-size: 44px 76px; transform: rotate(-8deg);
}
.boot-glow { position: absolute; width: 250px; height: 250px; top: 12%; border-radius: 50%; background: #157bff; filter: blur(90px); opacity: .32; }
.app-mark { position: relative; width: min(48vw, 220px); border-radius: 24%; filter: drop-shadow(0 20px 28px rgba(0,0,0,.6)); animation: float 3.2s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-9px) rotate(1deg); } }
.game-logo { position: relative; margin-top: 20px; line-height: .78; transform: skew(-5deg); text-shadow: 0 5px 0 #061533, 0 9px 22px #000; }
.game-logo span { display: block; font-size: clamp(42px, 12vw, 68px); letter-spacing: -1px; color: var(--yellow); -webkit-text-stroke: 2px #40260e; }
.game-logo strong { display: block; font-size: clamp(48px, 14vw, 76px); letter-spacing: -2px; color: #fff; -webkit-text-stroke: 3px #0750aa; }
.eyebrow { margin: 0; color: var(--cyan); font-family: system-ui, sans-serif; font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.boot-screen > .eyebrow { position: relative; margin: 17px 0 24px; }
.boot-note { position: relative; margin: 18px 0 0; color: #6f86a8; font: 600 11px system-ui, sans-serif; }

.primary-button, .small-button, .battle-button, .upgrade-button, .modal-action {
  position: relative; border-radius: 18px; background: linear-gradient(#ffd85e, #ff8b21); color: #142140;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.5), inset 0 -4px 0 rgba(142,57,8,.3), 0 7px 0 #913b12, 0 12px 22px rgba(0,0,0,.35);
  text-shadow: 0 1px 0 rgba(255,255,255,.65); font-weight: 950; letter-spacing: .045em;
}
.primary-button { min-width: 220px; padding: 17px 30px; font-size: 18px; }
.primary-button:active, .battle-button:active, .modal-action:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 3px 0 #913b12; }
.pulse { animation: button-pulse 1.7s ease-in-out infinite; }
@keyframes button-pulse { 50% { filter: brightness(1.12); box-shadow: inset 0 3px 0 rgba(255,255,255,.5), inset 0 -4px 0 rgba(142,57,8,.3), 0 7px 0 #913b12, 0 0 32px rgba(255,181,45,.45); } }

.home-screen { background: #153365 url("./public/assets/city-arena.png") center / cover no-repeat; }
.home-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(3,11,27,.16), rgba(3,11,27,.12) 38%, #06172e 88%); }
.home-sky { position: absolute; inset: 0; background: radial-gradient(circle at 82% 18%, rgba(255,211,78,.28), transparent 20%); }

.resource-bar {
  position: relative; z-index: 3; min-height: calc(60px + var(--safe-top)); padding: calc(10px + var(--safe-top)) 12px 8px;
  display: grid; grid-template-columns: 42px 1fr 1fr 42px; gap: 8px; align-items: center;
  background: linear-gradient(rgba(3,11,27,.85), rgba(3,11,27,.22));
}
.profile-badge { width: 39px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; border: 2px solid var(--cyan); background: #0d3269; box-shadow: inset 0 0 12px #06152e, 0 3px 10px #0007; }
.profile-badge span { color: #fff; font-size: 17px; }
.resource-pill { min-width: 88px; height: 34px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255,255,255,.17); border-radius: 11px; background: rgba(1,9,24,.75); box-shadow: inset 0 2px 5px #000; font-family: system-ui, sans-serif; }
.resource-pill.compact { min-width: 75px; padding: 0 10px; }
.coin-icon { color: #ffbf2e; text-shadow: 0 0 7px #ff9b00; }
.gem-icon { color: #e457ff; text-shadow: 0 0 8px #ff2ee8; transform: rotate(45deg); }
.icon-button { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(#1a67bb, #0a316c); box-shadow: inset 0 2px 0 #ffffff35, 0 4px 0 #041737; font-size: 18px; }

.home-content { position: relative; z-index: 2; height: calc(100% - 126px - var(--safe-top) - var(--safe-bottom)); padding: 12px 18px 0; display: flex; flex-direction: column; }
.brand-lockup p { margin: 0; color: #d9efff; font: 800 10px system-ui, sans-serif; letter-spacing: .15em; }
.brand-lockup h1 { margin: 2px 0 0; color: #fff; font-size: clamp(29px, 9vw, 42px); letter-spacing: -1px; line-height: 1; text-shadow: 0 4px 0 #052f6e, 0 8px 20px #001; transform: skew(-4deg); }
.brand-lockup h1 span { color: var(--yellow); }

.hero-platform { position: relative; margin-top: auto; height: 185px; display: flex; align-items: flex-end; padding-bottom: 18px; }
.hero-platform::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 4px; height: 42px; border-radius: 50%; background: radial-gradient(ellipse, #54d8ff 0, #2266ba 42%, #07162f 68%); box-shadow: 0 0 45px #3edcffaa; transform: perspective(160px) rotateX(62deg); }
.hero-beacon { position: absolute; left: 16%; bottom: 13px; width: 130px; height: 160px; background: linear-gradient(transparent, rgba(62,220,255,.2)); clip-path: polygon(34% 0, 66% 0, 100% 100%, 0 100%); filter: blur(3px); }
.hero-avatar { --hero: #24d58a; --hero-dark: #0a7b66; position: relative; width: 76px; height: 94px; filter: drop-shadow(0 7px 3px #0019); }
.hero-avatar::before { content: ""; position: absolute; left: 14px; top: 0; width: 48px; height: 48px; border-radius: 48% 48% 42% 42%; background: radial-gradient(circle at 58% 47%, #b7f4ff 0 4%, #08182d 5% 30%, transparent 31%), linear-gradient(150deg, #8bf5ff 0 8%, var(--hero) 9% 60%, var(--hero-dark) 61%); border: 4px solid #061633; box-shadow: inset -6px -7px 0 rgba(0,0,0,.17); }
.hero-avatar::after { content: ""; position: absolute; left: 18px; top: 44px; width: 42px; height: 39px; border-radius: 13px 13px 18px 18px; background: linear-gradient(100deg, var(--hero-dark), var(--hero)); border: 4px solid #061633; box-shadow: -12px 14px 0 -7px var(--hero-dark), 12px 14px 0 -7px var(--hero-dark); }
.hero-avatar i { position: absolute; display: block; z-index: 3; font-style: normal; }
.hero-avatar .avatar-gun { left: 40px; top: 52px; width: 43px; height: 10px; border: 3px solid #061633; border-radius: 5px 9px 9px 4px; background: linear-gradient(#394d68 0 42%, #101c30 43%); transform: rotate(-8deg); transform-origin: left center; box-shadow: inset 11px 0 var(--hero); }
.hero-avatar .avatar-gun::after { content: ""; position: absolute; left: 13px; top: 6px; width: 8px; height: 13px; border-radius: 2px 2px 5px 5px; background: #15233a; transform: rotate(-14deg); }
.hero-avatar .avatar-arm { left: 33px; top: 54px; width: 24px; height: 13px; border: 3px solid #061633; border-radius: 9px; background: var(--hero); transform: rotate(-10deg); }
.hero-avatar .avatar-legs { left: 20px; top: 79px; width: 15px; height: 11px; border-radius: 0 0 7px 7px; background: #061633; box-shadow: 22px 0 #061633; }
.hero-avatar .avatar-badge { left: 32px; top: 5px; color: #ffe56a; font: 900 10px system-ui, sans-serif; text-shadow: 0 1px #061633; }
.hero-avatar-large { z-index: 3; width: 104px; height: 132px; margin-left: 18px; transform: scale(1.25); transform-origin: bottom center; }
.hero-avatar-large::before { left: 26px; }
.hero-avatar-large::after { left: 30px; }
.hero-platform-copy { z-index: 4; display: grid; margin: 0 0 4px 20px; text-shadow: 0 2px 5px #000; }
.hero-platform-copy span { color: var(--cyan); font: 900 9px system-ui, sans-serif; letter-spacing: .15em; }
.hero-platform-copy strong { font-size: 25px; text-transform: uppercase; }
.hero-platform-copy small { color: #bcd3ef; font: 700 11px system-ui, sans-serif; }
.small-button { z-index: 4; margin: 0 4px 3px auto; padding: 8px 10px; border-radius: 9px; font-size: 10px; box-shadow: inset 0 2px 0 #fff7, 0 3px 0 #913b12; }

.mission-card { min-height: 88px; display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; border: 1px solid #68cfff55; border-radius: 18px; background: linear-gradient(120deg, rgba(4,18,42,.95), rgba(15,55,101,.91)); box-shadow: inset 0 1px 0 #ffffff22, 0 10px 24px #0018; }
.mission-card h2 { margin: 3px 0; font-size: 25px; line-height: 1; }
.mission-card p { margin: 0; color: #a8bdd9; font: 600 10px system-ui, sans-serif; }
.stage-selector { display: grid; grid-template-columns: 25px 46px 25px; align-items: center; height: 49px; border-radius: 13px; background: #020b1d99; border: 1px solid #ffffff1b; overflow: hidden; }
.stage-selector button { height: 100%; background: #0d3b78; font-size: 26px; }
.stage-selector strong { text-align: center; color: var(--yellow); font-size: 22px; }

.battle-button { width: 100%; min-height: 67px; margin: 12px 0 10px; display: flex; align-items: center; justify-content: center; gap: 13px; border-radius: 18px; }
.battle-button-icon { display: grid; place-items: center; width: 38px; height: 38px; padding-left: 3px; border-radius: 50%; color: #fff; background: #ee541f; box-shadow: inset 0 2px 0 #fff7, 0 3px 0 #9a2d16; text-shadow: 0 2px #731a0a; }
.battle-button b, .battle-button small { display: block; }
.battle-button b { font-size: 20px; }
.battle-button small { margin-top: 1px; color: #77350d; font: 800 9px system-ui, sans-serif; letter-spacing: .03em; }
.quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-card { min-height: 54px; display: grid; grid-template-columns: 32px 1fr; grid-template-rows: 1fr 1fr; align-items: center; text-align: left; padding: 7px 10px; border: 1px solid #ffffff1e; border-radius: 13px; background: rgba(7,24,54,.88); box-shadow: inset 0 1px #ffffff21; }
.quick-card > span { grid-row: 1 / 3; color: var(--yellow); font-size: 22px; }
.quick-card b { font-size: 11px; }
.quick-card small { color: var(--green); font: 700 9px system-ui, sans-serif; }

.bottom-nav { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: calc(66px + var(--safe-bottom)); padding: 6px 9px var(--safe-bottom); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: linear-gradient(#071b3c, #030b1b); border-top: 1px solid #3b7ccb66; box-shadow: 0 -8px 30px #0019; }
.nav-button { display: grid; place-items: center; align-content: center; gap: 2px; color: #6683aa; background: transparent; border-radius: 12px; }
.nav-button span { font-size: 22px; line-height: 1; }
.nav-button b { font: 900 9px system-ui, sans-serif; letter-spacing: .05em; }
.nav-button.active { color: var(--cyan); background: linear-gradient(#174d88aa, #0b2a59aa); box-shadow: inset 0 2px #60dfff66; }

.menu-screen { padding-bottom: calc(66px + var(--safe-bottom)); background: linear-gradient(155deg, #113f7c, #07162f 55%, #030b1b); overflow-y: auto; overscroll-behavior: contain; }
.menu-header { position: sticky; z-index: 5; top: 0; min-height: calc(76px + var(--safe-top)); padding: calc(12px + var(--safe-top)) 14px 10px; display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; background: linear-gradient(#06152eea, #092552e8); border-bottom: 1px solid #4ba8e755; backdrop-filter: blur(12px); }
.menu-header h2 { margin: 1px 0 0; font-size: 27px; font-style: italic; }
.back-button { width: 43px; height: 43px; border-radius: 13px; color: #fff; background: linear-gradient(#236fc0, #0d3979); box-shadow: inset 0 2px #ffffff3d, 0 4px #041736; font-size: 32px; line-height: 1; }

.hero-grid { position: relative; z-index: 1; padding: 17px 14px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-card { position: relative; min-height: 220px; padding: 12px; overflow: hidden; border: 2px solid color-mix(in srgb, var(--hero) 65%, #fff 10%); border-radius: 19px; background: linear-gradient(155deg, color-mix(in srgb, var(--hero) 35%, #123 65%), #06152e 54%); box-shadow: inset 0 1px #ffffff3b, 0 10px 20px #0018; }
.hero-card.locked { filter: grayscale(.8); opacity: .66; }
.hero-card.selected { box-shadow: 0 0 0 3px var(--yellow), 0 0 26px color-mix(in srgb, var(--hero) 65%, transparent); }
.hero-card .hero-avatar { margin: 4px auto 7px; transform: scale(1.12); }
.hero-card h3 { margin: 2px 0 0; font-size: 21px; text-transform: uppercase; }
.hero-card .role { color: var(--hero); font: 800 9px system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.hero-card .level { position: absolute; top: 9px; right: 9px; padding: 5px 7px; border-radius: 8px; background: #020b1dcc; font: 900 9px system-ui, sans-serif; }
.hero-card .hero-stats { margin: 8px 0; display: flex; gap: 8px; color: #c8ddf7; font: 800 10px system-ui, sans-serif; }
.hero-card button { width: 100%; padding: 9px; border-radius: 10px; color: #09203e; background: var(--hero); font-size: 11px; box-shadow: inset 0 2px #ffffff66, 0 3px color-mix(in srgb, var(--hero) 55%, #000); }

.workshop-intro { position: relative; z-index: 1; margin: 18px 14px 8px; padding: 14px; display: flex; gap: 13px; align-items: center; border-radius: 16px; border: 1px solid #54ccff4b; background: #06172fdc; }
.workshop-intro p { margin: 0; color: #b9cde7; font: 600 12px/1.45 system-ui, sans-serif; }
.workshop-bot { display: grid; place-items: center; flex: 0 0 50px; height: 50px; border-radius: 15px; color: var(--yellow); background: linear-gradient(#1978c9, #0b386f); font-size: 27px; box-shadow: inset 0 2px #ffffff41; }
.workshop-list { position: relative; z-index: 1; padding: 5px 14px 30px; display: grid; gap: 11px; }
.workshop-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 11px; align-items: center; min-height: 90px; padding: 12px; border: 1px solid #ffffff1e; border-radius: 17px; background: linear-gradient(110deg, #0d3365e8, #06142de8); box-shadow: inset 0 1px #ffffff26, 0 7px 15px #0018; }
.workshop-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: var(--yellow); background: radial-gradient(circle, #2b75bd, #0a2c60); border: 2px solid #4aa9e5; font-size: 27px; }
.workshop-item h3 { margin: 0 0 3px; font-size: 17px; }
.workshop-item p { margin: 0; color: #9db5d4; font: 600 10px/1.3 system-ui, sans-serif; }
.level-pips { display: flex; gap: 3px; margin-top: 8px; }
.level-pips i { width: 9px; height: 4px; border-radius: 3px; background: #19385f; }
.level-pips i.on { background: var(--green); box-shadow: 0 0 5px #32de83; }
.upgrade-button { min-width: 72px; padding: 10px 8px; border-radius: 10px; font-size: 10px; box-shadow: inset 0 2px #fff7, 0 3px #913b12; }
.upgrade-button:disabled { filter: grayscale(1); opacity: .5; }

.intel-content { position: relative; z-index: 1; padding: 18px 14px 30px; display: grid; gap: 13px; }
.intel-card { padding: 16px; border-radius: 17px; border: 1px solid #ffffff20; background: rgba(5,19,43,.88); box-shadow: inset 0 1px #ffffff1d; }
.intel-card h3 { margin: 0 0 7px; color: var(--yellow); font-size: 18px; }
.intel-card p, .intel-card li { color: #b8cbe5; font: 600 12px/1.5 system-ui, sans-serif; }
.intel-card ul { margin: 8px 0 0; padding-left: 18px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-box { padding: 12px; border-radius: 12px; text-align: center; background: #0d3264; }
.stat-box b, .stat-box small { display: block; }
.stat-box b { color: var(--cyan); font-size: 25px; }
.stat-box small { color: #9fb5d1; font: 700 9px system-ui, sans-serif; }

.game-screen { background: #08162d; touch-action: none; }
#game-canvas { display: block; width: 100%; height: 100%; object-fit: fill; }
.pause-button { position: absolute; z-index: 4; left: 12px; top: calc(12px + var(--safe-top)); width: 39px; height: 39px; border-radius: 11px; color: #d9ecff; background: #07172dcf; border: 1px solid #ffffff2f; box-shadow: inset 0 2px #ffffff1c; font-size: 15px; backdrop-filter: blur(6px); }
.combo-toast { position: absolute; z-index: 4; top: 150px; left: 50%; padding: 7px 13px; border-radius: 10px; background: #07162fd9; color: var(--yellow); font-size: 18px; opacity: 0; transform: translate(-50%, 8px) scale(.8); transition: .2s; pointer-events: none; }
.combo-toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

.modal-shell { position: absolute; z-index: 30; inset: 0; display: none; place-items: center; padding: calc(18px + var(--safe-top)) 14px calc(18px + var(--safe-bottom)); background: rgba(1,6,17,.78); backdrop-filter: blur(8px); }
.modal-shell.open { display: grid; animation: fade-in .18s ease-out; }
@keyframes fade-in { from { opacity: 0; } }
.modal-panel { width: 100%; max-height: 94%; overflow-y: auto; padding: 18px 14px; border: 1px solid #5ba9ef55; border-radius: 23px; background: linear-gradient(155deg, #113c77f5, #07162ff8 52%, #030b1b); box-shadow: inset 0 2px #ffffff20, 0 25px 80px #000; text-align: center; }
.modal-panel h2 { margin: 3px 0 4px; color: #fff; font-size: clamp(28px, 9vw, 40px); font-style: italic; text-shadow: 0 4px #052451; }
.modal-panel > p { margin: 0 0 16px; color: #a9c0de; font: 650 12px system-ui, sans-serif; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px -2px 6px; }
.choice-card { --choice: #2eb9ff; position: relative; min-height: 205px; padding: 10px 7px 9px; display: flex; flex-direction: column; align-items: center; overflow: hidden; border: 2px solid color-mix(in srgb, var(--choice) 70%, white); border-radius: 17px; color: #fff; background: linear-gradient(160deg, color-mix(in srgb, var(--choice) 55%, #162044), #07152d 54%); box-shadow: inset 0 2px #ffffff30, 0 6px 14px #0019; }
.choice-card::before { content: ""; position: absolute; inset: 0; opacity: .18; background: repeating-linear-gradient(130deg, transparent 0 15px, #fff 16px 17px); }
.choice-card:active { transform: scale(.97); }
.choice-icon { position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin: 7px 0 10px; border-radius: 16px; color: var(--choice); background: #031027; border: 2px solid var(--choice); font-size: 31px; box-shadow: 0 0 18px color-mix(in srgb, var(--choice) 65%, transparent); }
.choice-card h3 { position: relative; margin: 0; font-size: 14px; line-height: 1.05; }
.choice-card p { position: relative; margin: 7px 0; color: #c8d9ee; font: 650 10px/1.3 system-ui, sans-serif; }
.choice-card small { position: relative; margin-top: auto; color: var(--choice); font: 900 8px system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.choice-card .hero-avatar { transform: scale(.75); margin: -4px 0 -5px; }
.choice-card.locked-choice { opacity: .5; filter: grayscale(1); }
.modal-action { min-width: 180px; margin-top: 14px; padding: 14px 22px; }
.modal-action.secondary { color: #d7e8ff; text-shadow: none; background: linear-gradient(#1e5b9e, #0c326f); box-shadow: inset 0 2px #ffffff33, 0 5px #041632; }
.reward-row { display: flex; justify-content: center; gap: 12px; margin: 18px 0; }
.reward { min-width: 92px; padding: 12px; border-radius: 14px; background: #020c20bb; border: 1px solid #ffffff20; }
.reward span, .reward b { display: block; }
.reward span { font-size: 24px; }
.reward b { margin-top: 4px; font: 900 16px system-ui, sans-serif; }
.result-stars { color: var(--yellow); font-size: 36px; letter-spacing: 5px; text-shadow: 0 3px #9b5717; }
.tutorial-steps { display: grid; gap: 10px; margin: 16px 0; text-align: left; }
.tutorial-step { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: #061a38; }
.tutorial-step > span { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: var(--yellow); background: #104e91; font-size: 21px; }
.tutorial-step b { display: block; font-size: 13px; }
.tutorial-step small { color: #9fb5d1; font: 600 10px/1.3 system-ui, sans-serif; }

.toast { position: absolute; z-index: 50; left: 50%; bottom: calc(82px + var(--safe-bottom)); max-width: 88%; padding: 11px 15px; border-radius: 12px; color: #fff; background: #07162fee; border: 1px solid #68d6ff63; box-shadow: 0 8px 25px #0008; font: 750 12px system-ui, sans-serif; opacity: 0; transform: translate(-50%, 12px); transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-height: 700px) {
  .hero-platform { height: 137px; }
  .hero-avatar-large { transform: scale(.98); }
  .hero-platform-copy { margin-left: 5px; }
  .mission-card { min-height: 74px; }
  .battle-button { min-height: 57px; margin: 8px 0; }
  .quick-card { min-height: 46px; }
}

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