@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Noto+Sans+SC:wght@500;700;900&display=swap');

.root { color-scheme: dark; }
:root { color-scheme: dark; font-family: "Noto Sans SC", system-ui, sans-serif; background: #060a1a; color: #f7fbff; }
* { box-sizing: border-box; } body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(ellipse at 50% -20%, #326bc6 0, #142f68 37%, #060a1a 78%); }
button { font: inherit; cursor: pointer; } .shell { width: min(1440px, 100%); padding: 14px 18px 18px; margin: auto; }
.masthead { text-align: center; margin: 0 auto 12px; } .eyebrow, .panel-kicker { color: #b7ddff; font-size: 10px; letter-spacing: .2em; font-weight: 900; } h1, h2 { font-family: Fredoka, "Noto Sans SC", sans-serif; margin: 3px 0; letter-spacing: .02em; } h1 { font-size: clamp(29px, 3.4vw, 46px); line-height: 1; text-shadow: 0 4px 0 #17326e, 0 8px 22px #06122e; } .masthead p { margin: 5px 0 0; color: #d4e9ff; font-size: 13px; }
.game-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid #c0eaff; border-radius: 16px; background: #142a58; box-shadow: 0 0 0 2px #1b4d90, 0 20px 56px #000a, inset 0 0 40px #b9ecff36; } canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.hud { position: absolute; display: flex; top: 16px; left: 16px; right: 16px; align-items: center; gap: 8px; pointer-events: none; } .hud-card { background: #101f43df; border: 1px solid #a9d2ff80; border-radius: 10px; padding: 6px 10px; min-width: 118px; box-shadow: 0 3px 0 #07132f88; } .hud-card span { display: block; color: #a9c9ec; font-size: 10px; line-height: 1; } .hud-card strong { font-size: 14px; white-space: nowrap; } .compact { min-width: 65px; } #life-count { color: #ff8a99; letter-spacing: 1px; } .help-button { margin-left: auto; pointer-events: auto; border: 1px solid #b7d8ff; color: #f8fbff; background: #203e7f; border-radius: 10px; padding: 8px 10px; font-size: 12px; font-weight: 900; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: linear-gradient(180deg, #07163921 40%, #05133180); } .overlay:has(.modal-panel:not([hidden])) { background: #06102aa8; } .panel { position: relative; max-width: 590px; text-align: center; padding: 25px 31px; border: 1px solid #d6efff; border-radius: 18px; background: linear-gradient(145deg, #133e78eF, #0c214feF); box-shadow: 0 10px 0 #071636b8, 0 28px 55px #000a, inset 0 1px #ffffff40; backdrop-filter: blur(8px); } .panel h2 { font-size: clamp(28px, 4vw, 42px); } .panel p { color: #e2f1ff; line-height: 1.7; font-size: 14px; } .start-panel { max-width: 590px; } .keys-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin: 18px 0; } .keys-grid > div { display: flex; gap: 4px; justify-content: center; align-items: center; flex-wrap: wrap; background: #061b41b8; border: 1px solid #8ac8ff2e; border-radius: 10px; min-height: 61px; padding: 6px; } small { width: 100%; color: #d4ebff; font-size: 10px; } .key { display: inline-grid; place-items: center; min-width: 27px; height: 27px; padding: 0 6px; background: #f1f9ff; color: #173166; border-radius: 5px; box-shadow: inset 0 -3px #aac6e7, 0 2px #071331; font-size: 12px; font-weight: 900; vertical-align: middle; } .key.wide { min-width: 50px; }
.primary, .secondary { border: 0; border-radius: 11px; padding: 12px 20px; font-weight: 900; } .primary { background: #ffcf50; color: #542d00; box-shadow: 0 4px 0 #b6780d; } .primary:hover { transform: translateY(-1px); background: #ffe18b; } .primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #b6780d; } .primary span { font-size: 20px; vertical-align: -1px; } .secondary { background: #5d78ad; color: white; box-shadow: 0 4px #293d70; } .button-row { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }.modal-panel { min-width: min(460px, 100%); } .close { position: absolute; top: 10px; right: 12px; color: #dceaff; background: transparent; border: 0; font-size: 28px; } .control-list { text-align: left; background: #0b1a42a8; border-radius: 12px; padding: 8px 16px; } .control-list p { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; margin: 9px 0; } .control-list b { color: #f9fcff; font-size: 13px; }.tip { color: #ffe498 !important; }.shortcut { margin-top: 17px; }.footer-note { color: #9cb2d6; font-size: 12px; text-align: center; margin: 15px 0 0; }
[hidden] { display: none !important; } @media (max-width: 600px) { .shell { padding: 18px 10px; } .game-frame { border-radius: 13px; border-width: 2px; } .masthead { margin-bottom: 14px; } .hud { top: 6px; left: 6px; right: 6px; gap: 3px; } .hud-card { padding: 4px 5px; min-width: 0; } .hud-card strong { font-size: 10px; } .hud-card span { font-size: 8px; } .help-button { padding: 6px; font-size: 9px; } .panel { padding: 20px 16px; max-height: 96%; overflow: auto; } .panel p { font-size: 12px; } .keys-grid { gap: 5px; margin: 14px 0; } .keys-grid > div { min-height: 52px; } }
.touch-controls { position: absolute; inset: auto 16px 14px; display: flex; align-items: end; justify-content: space-between; pointer-events: none; }
.touch-cluster { pointer-events: auto; }
.touch-button { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid #d9f3ff99; border-radius: 16px; background: #0b2d60cc; color: #fff; font-size: 19px; font-weight: 900; box-shadow: 0 3px 0 #061634; touch-action: none; }
.touch-movement { display: grid; grid-template-columns: repeat(2, 58px); gap: 10px; }
.touch-move { width: 58px; height: 58px; border-radius: 20px; background: #0b376fcc; font-size: 21px; }
.touch-actions { display: grid; grid-template-columns: 54px 72px; grid-template-rows: 54px 72px; align-items: end; gap: 8px; }
.touch-actions .touch-button { width: 54px; height: 54px; border-radius: 17px; background: #304a91dd; font-size: 15px; }
.touch-shoot { grid-column: 1; grid-row: 1; background: #1b7398e8 !important; }
.touch-dash { grid-column: 2; grid-row: 1; justify-self: end; background: #526cc2e8 !important; }
.touch-ultimate { grid-column: 1; grid-row: 2; align-self: end; background: #7d4fc7e8 !important; }
.touch-jump { grid-column: 2; grid-row: 2; width: 72px !important; height: 72px !important; align-self: end; justify-self: end; border-radius: 24px !important; background: #e6a934ed !important; color: #18325f; font-size: 22px !important; box-shadow: 0 4px 0 #9e630b !important; }
@media (pointer: fine) { .touch-controls { display: none !important; } }

html.android-client,
html.android-client body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.android-client .shell {
  width: 100%;
  height: 100%;
  padding: 0;
}

.android-client .masthead,
.android-client .footer-note {
  display: none;
}

.android-client .game-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.android-client .touch-controls {
  left: max(20px, env(safe-area-inset-left));
  right: max(20px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
}

.android-client .touch-movement {
  grid-template-columns: repeat(2, 72px);
  gap: 12px;
}

.android-client .touch-move {
  width: 72px;
  height: 72px;
  border-radius: 24px;
}

.android-client .touch-actions {
  grid-template-columns: 64px 88px;
  grid-template-rows: 64px 88px;
  gap: 10px;
}

.android-client .touch-actions .touch-button {
  width: 64px;
  height: 64px;
  border-radius: 21px;
}

.android-client .touch-jump {
  width: 88px !important;
  height: 88px !important;
  border-radius: 29px !important;
  font-size: 26px !important;
}
