:root {
  --bg-0: #05060f;
  --bg-1: #0b1026;
  --bg-2: #131a3a;
  --cyan: #2ff3d0;
  --cyan-d: #12c9a8;
  --magenta: #ff3d81;
  --violet: #8b5cff;
  --gold: #ffd34d;
  --text: #eaf2ff;
  --text-dim: #8fa0c4;
  --glass: rgba(20, 28, 58, 0.72);
  --stroke: rgba(120, 170, 255, 0.18);
  --radius: 18px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  --font-display: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  overscroll-behavior: none;
}

#app { position: fixed; inset: 0; }

#game {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  background:
    radial-gradient(120% 90% at 50% 0%, #101a3d 0%, var(--bg-0) 70%);
}

.hidden { display: none !important; }

/* ================= SCREENS ================= */
.screen {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  z-index: 20;
  padding: max(14px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: radial-gradient(120% 80% at 50% 0%, #0e1636 0%, var(--bg-0) 72%);
}
.screen.active { display: flex; animation: screenIn .32s cubic-bezier(.2,.9,.3,1.2); }
.screen.overlay { background: rgba(4, 6, 16, 0.78); backdrop-filter: blur(10px); justify-content: center; align-items: center; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* ================= ANIMATED BACKGROUND ================= */
.bg-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.bg-orbs::before, .bg-orbs::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(70px); opacity: .32;
}
.bg-orbs::before { background: radial-gradient(circle, var(--cyan), transparent 62%); top: -18vmax; left: -20vmax; animation: float1 14s ease-in-out infinite; }
.bg-orbs::after  { background: radial-gradient(circle, var(--violet), transparent 62%); bottom: -22vmax; right: -18vmax; animation: float2 17s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(12vmax, 9vmax) scale(1.15); } }
@keyframes float2 { 50% { transform: translate(-10vmax, -8vmax) scale(1.2); } }

/* ================= MENU ================= */
#screen-menu { justify-content: center; align-items: center; }
.menu-inner { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 22px; }

.logo-wrap { text-align: center; position: relative; }
.logo {
  font-family: var(--font-display);
  font-size: clamp(44px, 14vw, 74px);
  font-weight: 900; letter-spacing: 2px; line-height: .95;
  background: linear-gradient(180deg, #fff 0%, var(--cyan) 55%, var(--cyan-d) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(47,243,208,.45));
  animation: logoPulse 3.2s ease-in-out infinite;
}
.logo span { display: block; color: transparent;
  background: linear-gradient(180deg, #fff 0%, var(--magenta) 60%, #b0225c 100%);
  -webkit-background-clip: text; background-clip: text; }
@keyframes logoPulse { 50% { filter: drop-shadow(0 0 34px rgba(47,243,208,.7)); } }
.logo-tail {
  position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 16px var(--cyan);
  animation: orbit 4.5s linear infinite;
}
@keyframes orbit {
  0%   { transform: translate(-50%,-50%) rotate(0deg) translateX(120px) scale(.6); opacity:.4; }
  50%  { opacity: 1; }
  100% { transform: translate(-50%,-50%) rotate(360deg) translateX(120px) scale(.6); opacity:.4; }
}
.tagline { color: var(--text-dim); font-size: 14px; letter-spacing: .5px; margin-top: 6px; }

.coin-bar {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--stroke);
  font-weight: 700; font-size: 17px; color: var(--gold);
  box-shadow: 0 6px 24px rgba(0,0,0,.35), inset 0 0 20px rgba(255,211,77,.06);
}
.coin-bar.small { padding: 5px 12px; font-size: 14px; }
.coin-ico { font-size: .85em; filter: drop-shadow(0 0 6px var(--gold)); }

.menu-btns { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.menu-foot { color: #4b5a7d; font-size: 12px; letter-spacing: .4px; }

/* ================= BUTTONS ================= */
.btn {
  position: relative; width: 100%;
  padding: 16px 20px; border: 1px solid var(--stroke); border-radius: 14px;
  background: linear-gradient(180deg, rgba(30,40,80,.9), rgba(16,22,48,.9));
  color: var(--text); font-size: 17px; font-weight: 700; letter-spacing: 1.5px;
  font-family: var(--font); cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease, background .2s;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.btn:active { transform: scale(.965); }
.btn-primary {
  background: linear-gradient(180deg, var(--cyan) 0%, var(--cyan-d) 100%);
  color: #04231d; border-color: rgba(255,255,255,.25);
  box-shadow: 0 8px 26px rgba(47,243,208,.35), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-primary:active { box-shadow: 0 4px 14px rgba(47,243,208,.5); }
.btn-danger { background: linear-gradient(180deg, #ff5b7a, #c11f45); color: #fff; border-color: rgba(255,255,255,.2); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.locked { opacity: .5; }

.icon-btn {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 12px; border: 1px solid var(--stroke);
  background: var(--glass); color: var(--text);
  font-size: 26px; line-height: 1; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s ease;
}
.icon-btn:active { transform: scale(.9); }

/* ================= TOP BAR ================= */
.top-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 4px 2px 14px;
}
.top-bar h2 { font-size: 18px; font-weight: 800; letter-spacing: .5px; text-align: center; flex: 1; }

/* ================= LEVELS ================= */
.world-tabs { display: flex; gap: 8px; padding: 0 0 14px; overflow-x: auto; }
.world-tab {
  flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--stroke); background: var(--glass); color: var(--text-dim); cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.world-tab.active { color: #04231d; background: linear-gradient(180deg, var(--cyan), var(--cyan-d)); border-color: transparent; box-shadow: 0 4px 16px rgba(47,243,208,.35); }

.level-grid {
  flex: 1; overflow-y: auto; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px; padding: 4px 2px 30px; align-content: start;
}
.level-card {
  position: relative; aspect-ratio: 1 / 1.05; border-radius: var(--radius);
  border: 1px solid var(--stroke); background: linear-gradient(180deg, rgba(28,38,78,.85), rgba(12,17,40,.9));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; overflow: hidden; transition: transform .14s ease, box-shadow .2s, border-color .2s;
}
.level-card:active { transform: scale(.95); }
.level-card .num { font-size: 26px; font-weight: 900; font-family: var(--font-display); }
.level-card .stars { display: flex; gap: 2px; font-size: 13px; }
.level-card .star { color: #2c3760; }
.level-card .star.on { color: var(--gold); text-shadow: 0 0 8px rgba(255,211,77,.7); }
.level-card.locked { opacity: .55; }
.level-card.locked .num { color: #3a4570; }
.level-card.locked::after {
  content: "🔒"; position: absolute; font-size: 22px; opacity: .8;
}
.level-card.locked .num, .level-card.locked .stars { visibility: hidden; }
.level-card.current { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 8px 26px rgba(47,243,208,.28); animation: cardPulse 2s ease-in-out infinite; }
@keyframes cardPulse { 50% { box-shadow: 0 0 0 1px var(--cyan), 0 8px 34px rgba(47,243,208,.5); } }
.level-card .mod { position: absolute; top: 6px; right: 7px; font-size: 11px; opacity: .92; letter-spacing: -1px; }

/* ================= SKINS ================= */
.skin-grid {
  flex: 1; overflow-y: auto; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px; padding: 4px 2px 30px; align-content: start;
}
.skin-card {
  position: relative; border-radius: var(--radius); padding: 16px 12px 14px;
  border: 1px solid var(--stroke); background: linear-gradient(180deg, rgba(28,38,78,.8), rgba(12,17,40,.9));
  display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer;
  transition: transform .14s ease, box-shadow .2s, border-color .2s;
}
.skin-card:active { transform: scale(.96); }
.skin-card.selected { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 8px 26px rgba(47,243,208,.25); }
.skin-preview { width: 132px; height: 132px; position: relative; display: flex; align-items: center; justify-content: center; }
.species-canvas { display: block; }
.skin-name { font-size: 14px; font-weight: 700; text-align: center; }
.skin-latin { font-size: 11px; color: var(--text-dim); font-style: italic; margin-top: -6px; }
.skin-ability {
  font-size: 11px; color: var(--accent, #8fbf5a); margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: rgba(143, 191, 90, 0.12); border-radius: 10px;
  padding: 2px 8px; align-self: center;
}
.skin-card { display: flex; flex-direction: column; align-items: center; }
.skin-price { font-size: 13px; color: var(--gold); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.skin-price.owned { color: var(--cyan); }
.skin-badge { position: absolute; top: 8px; right: 8px; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(47,243,208,.16); color: var(--cyan); font-weight: 700; }

/* ================= SETTINGS ================= */
.settings-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.setting-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--glass);
}
.setting-row .label { font-size: 15px; font-weight: 600; }
.setting-row .sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.switch { width: 52px; height: 30px; border-radius: 999px; background: #26304f; position: relative; cursor: pointer; transition: background .2s; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.3,1.4,.5,1); }
.switch.on { background: linear-gradient(90deg, var(--cyan-d), var(--cyan)); }
.switch.on::after { transform: translateX(22px); }
.choice { padding: 7px 14px; border-radius: 999px; background: rgba(47,243,208,.14); border: 1px solid rgba(47,243,208,.5);
  color: var(--cyan); font-size: 13px; font-weight: 700; white-space: nowrap; flex: 0 0 auto; }
.settings-actions { padding: 14px 2px 4px; }

/* ================= HUD ================= */
#hud { position: absolute; inset: 0; z-index: 15; pointer-events: none; }
#hud::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 230px;
  background: linear-gradient(180deg, rgba(5,6,15,.9) 0%, rgba(5,6,15,.55) 45%, rgba(5,6,15,0) 100%);
}
.hud-sub { display: flex; align-items: center; gap: 10px; }
.hud-top {
  position: absolute; top: max(8px, env(safe-area-inset-top)); left: 0; right: 0;
  display: flex; justify-content: center; padding: 0 64px;
}
.hud-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hud-label { font-size: 11px; letter-spacing: 2px; color: var(--text-dim); font-weight: 700; }
.hud-scoreline { display: flex; align-items: center; gap: 10px; }
.hud-score { font-size: 32px; font-weight: 900; font-family: var(--font-display); line-height: 1; }
.hud-score.p { color: var(--cyan); text-shadow: 0 0 16px rgba(47,243,208,.6); }
.hud-score.a { color: var(--magenta); text-shadow: 0 0 16px rgba(255,61,129,.6); }
.hud-sep { font-size: 22px; font-weight: 900; color: var(--text-dim); }
.hud-level { font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.hud-env { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #cfe0ff; opacity: .9; margin-top: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.hud-tail { font-size: 12px; color: var(--text-dim); }
.hud-tail b { color: var(--cyan); font-size: 14px; }
.hud-lives { display: flex; gap: 5px; margin-top: 2px; }
.hud-lives .life { width: 10px; height: 10px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 8px var(--magenta); transition: transform .2s, background .2s; }
.hud-lives .life.off { background: #2a3352; box-shadow: none; transform: scale(.75); }
.pause-btn { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 14px; pointer-events: auto; font-size: 16px; }

.hud-banner {
  position: absolute; top: 30%; left: 0; right: 0; text-align: center;
  font-family: var(--font-display); font-size: 46px; font-weight: 900; letter-spacing: 3px;
  opacity: 0; transform: scale(.6); pointer-events: none;
}
.hud-banner.show { animation: bannerPop 1.1s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes bannerPop {
  0% { opacity: 0; transform: scale(.5); }
  25% { opacity: 1; transform: scale(1.08); }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}
.hud-combo {
  position: absolute; top: 45%; left: 0; right: 0; text-align: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 900;
  color: var(--gold); text-shadow: 0 0 16px rgba(255,211,77,.8);
  opacity: 0; pointer-events: none;
}
.hud-combo.show { animation: comboPop .8s ease-out forwards; }
@keyframes comboPop { 0% { opacity:0; transform: translateY(14px) scale(.7);} 30%{opacity:1;transform:none;} 100%{opacity:0; transform: translateY(-18px) scale(1.05);} }

/* ================= LEVEL INTRO ================= */
#level-intro {
  position: absolute; inset: 0; z-index: 17; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; pointer-events: none;
  animation: introFade 1.6s ease forwards;
}
@keyframes introFade {
  0% { opacity: 0; transform: scale(.9); }
  18% { opacity: 1; transform: none; }
  78% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.04); }
}
.li-world { font-size: 14px; letter-spacing: 4px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; }
.li-name { font-family: var(--font-display); font-size: 42px; font-weight: 900; letter-spacing: 1px; text-align: center;
  background: linear-gradient(180deg,#fff,var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 20px rgba(47,243,208,.5)); padding: 0 20px; }
.li-mods { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 86%; margin-top: 4px; }
.li-mods .chip { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: rgba(139,92,255,.16); border: 1px solid rgba(139,92,255,.4); color: #cbb8ff; }
.li-mods .chip.boss { background: rgba(255,61,129,.18); border-color: rgba(255,61,129,.5); color: #ff9ec0; }

/* ================= COUNTDOWN ================= */
#countdown {
  position: absolute; inset: 0; z-index: 18; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
#countdown-num {
  font-family: var(--font-display); font-size: 130px; font-weight: 900; color: #fff;
  text-shadow: 0 0 40px var(--cyan), 0 0 80px rgba(47,243,208,.6);
}
#countdown-num.go { color: var(--cyan); }
#countdown-num.anim { animation: countPop .85s cubic-bezier(.2,1.3,.4,1); }
@keyframes countPop { 0% { opacity: 0; transform: scale(2.2); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.75); } }

/* ================= MODALS ================= */
.modal {
  width: min(92vw, 400px); display: flex; flex-direction: column; gap: 12px;
  padding: 26px 22px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, rgba(24,32,66,.96), rgba(10,14,34,.98));
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 70px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
  animation: modalIn .34s cubic-bezier(.2,1.3,.4,1);
}
@keyframes modalIn { from { opacity: 0; transform: scale(.88) translateY(20px); } to { opacity: 1; transform: none; } }
.modal h2 { font-family: var(--font-display); font-size: 30px; letter-spacing: 2px; margin-bottom: 4px; }
.result-modal h2.win { color: var(--cyan); text-shadow: 0 0 24px rgba(47,243,208,.6); }
.result-modal h2.lose { color: var(--magenta); text-shadow: 0 0 24px rgba(255,61,129,.6); }
.stars { display: flex; justify-content: center; gap: 10px; margin: 6px 0; }
.stars .star { font-size: 44px; color: #2c3760; transition: all .3s; }
.stars .star.on { color: var(--gold); text-shadow: 0 0 22px rgba(255,211,77,.85); animation: starPop .5s cubic-bezier(.2,1.6,.4,1) backwards; }
.stars .star.on:nth-child(1) { animation-delay: .15s; }
.stars .star.on:nth-child(2) { animation-delay: .35s; }
.stars .star.on:nth-child(3) { animation-delay: .55s; }
@keyframes starPop { 0% { transform: scale(0) rotate(-90deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.result-stats { color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.result-stats b { color: var(--text); }
.result-coins { color: var(--gold); font-weight: 800; font-size: 18px; margin: 4px 0 6px; }

/* ================= LOADING ================= */
#loading {
  position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  background: var(--bg-0); transition: opacity .5s; color: var(--text-dim);
}
#loading.done { opacity: 0; pointer-events: none; }
.loader-snake { display: flex; gap: 8px; }
.loader-snake span {
  width: 14px; height: 14px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan); animation: loaderBounce 1s ease-in-out infinite;
}
.loader-snake span:nth-child(2) { animation-delay: .12s; }
.loader-snake span:nth-child(3) { animation-delay: .24s; }
.loader-snake span:nth-child(4) { animation-delay: .36s; }
@keyframes loaderBounce { 0%,100% { transform: translateY(0); opacity:.5;} 50% { transform: translateY(-16px); opacity:1; } }

/* toast */
.toast {
  position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%);
  padding: 12px 22px; border-radius: 999px; background: rgba(10,16,36,.95);
  border: 1px solid var(--stroke); font-size: 14px; font-weight: 600; z-index: 60;
  animation: toastIn .3s ease, toastOut .3s ease 1.6s forwards; white-space: nowrap;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 14px); } }

::-webkit-scrollbar { width: 0; height: 0; }

/* шкала яда */
.venom-bar { width: 92px; height: 5px; margin: 4px auto 0; border-radius: 999px;
  background: rgba(255,255,255,.14); overflow: hidden; opacity: .95; }
.venom-bar i { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #5ad02a, #b6ff4a); transition: width .12s linear; }
.venom-bar.full i { background: linear-gradient(90deg, #b6ff4a, #ffffff); box-shadow: 0 0 10px rgba(182,255,74,.8); }
.bricks-bar { font-size: 11px; font-weight: 700; color: #e8c39a; margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,.8); letter-spacing: .5px; }

/* ============================================================
   TELEGRAM
   ============================================================ */
/* Внутри Telegram интерфейс подстраивается под тему мессенджера:
   Telegram сам выдаёт переменные --tg-theme-* в :root.
   Игровой canvas остаётся неоновым — цвета берутся из config.js. */
html[data-tg-scheme] {
  --bg-0: var(--tg-theme-bg-color, #05060f);
  --bg-1: var(--tg-theme-bg-color, #0b1026);
  --glass: color-mix(in srgb, var(--tg-theme-secondary-bg-color, #131a3a) 82%, transparent);
  --stroke: color-mix(in srgb, var(--tg-theme-text-color, #9db4ff) 20%, transparent);
  --text: var(--tg-theme-text-color, #eaf2ff);
  --text-dim: var(--tg-theme-hint-color, #8fa0c4);
}
/* в светлой теме мессенджера неон читается плохо — усиливаем подложки */
html[data-tg-scheme="light"] .coin-bar,
html[data-tg-scheme="light"] .setting-row,
html[data-tg-scheme="light"] .tg-user { background: color-mix(in srgb, var(--tg-theme-secondary-bg-color, #fff) 92%, transparent); }

/* карточка игрока в меню */
.tg-user {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--stroke);
  font-size: 13px; font-weight: 700; color: var(--text);
  max-width: 90%;
}
.tg-user img { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px; background: var(--bg-2, #131a3a); }
.tg-user .tg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-user .tg-handle { color: var(--text-dim); font-weight: 600; }

/* высота, которую Telegram реально отдал под контент */
#app { height: var(--tg-vh, 100%); }
.screen { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
/* в развёрнутом приложении сверху нет шапки чата — убираем отступ */
html[data-tg-fullscreen] .screen { padding-top: max(10px, env(safe-area-inset-top)); }
.settings-note { margin-top: 10px; font-size: 11px; line-height: 1.5; color: var(--text-dim); text-align: center; }
