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

:root {
  --bg: #f7f9fc;
  --bg2: #ffffff;
  --panel: #ffffff;
  --panel2: #f9fafb;
  --line: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --dim: #9ca3af;
  --violet: #2563eb;
  --violet2: #1d4ed8;
  --coral: #e11d48;
  --cyan: #0284c7;
  --yellow: #b45309;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(17, 24, 39, 0.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: #f7f9fc; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 15px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}
.brand::after {
  content: '';
  display: inline-block;
  width: 9px; height: 9px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.lang-switch { display: flex; gap: 8px; align-items: center; }
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 11px;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.lang-switch a:hover { color: var(--violet); border-color: var(--line); }
.lang-switch a[aria-current="page"] {
  color: var(--violet);
  background: rgba(37, 99, 235, 0.08);
  border-color: #bfdbfe;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 46px 24px 80px; }

.crumb { font-size: 12px; color: var(--dim); margin-bottom: 20px; letter-spacing: 0.02em; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--violet); }

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
h2 { font-size: 24px; font-weight: 700; margin: 40px 0 12px; }
h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
p { color: var(--muted); margin: 10px 0; font-size: 15px; }
a { color: var(--violet); }
strong { color: var(--text); }

.hero { padding: 26px 0 42px; max-width: 760px; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--violet);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 .grad {
  color: var(--text);
}
.hero p { font-size: 18px; max-width: 620px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: #f9fafb;
  color: var(--text);
  border-radius: 10px;
  padding: 11px 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); background: #f9fafb; border-color: var(--violet); }
.btn.primary {
  background: var(--violet);
  border-color: var(--violet);
}
.btn.primary:hover { background: var(--violet2); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.tile {
  display: block;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  min-height: 150px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.tile::before {
  content: '';
  position: absolute;
  inset: auto -40px -80px auto;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tile:hover {
  transform: translateY(-5px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
}
.tile:hover::before { opacity: 1; }
.tile strong { display: block; font-size: 19px; font-weight: 800; margin-bottom: 8px; position: relative; }
.tile span { font-size: 13px; color: var(--muted); position: relative; }

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.game-shell {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 26px;
  padding: 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
}
canvas#game {
  display: block;
  width: 100%;
  border-radius: 18px;
  background: #f8fafc;
  touch-action: none;
  cursor: crosshair;
}

.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; margin: 22px 0 8px; }
.controls .hint { color: var(--dim); font-size: 13px; margin-left: 8px; }

button {
  border: 1px solid var(--line);
  background: #f9fafb;
  color: var(--text);
  border-radius: 10px;
  padding: 9px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}
button:hover { transform: translateY(-2px); background: #f9fafb; border-color: var(--violet); }
button.primary {
  background: var(--violet);
  border-color: var(--violet);
}

.adslot {
  border: 1px dashed #dbe2ea;
  border-radius: 14px;
  text-align: center;
  padding: 18px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 28px 0;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; }
th { color: var(--violet); font-weight: 700; width: 170px; }
td { color: var(--muted); }

footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding-top: 24px;
  font-size: 12px;
  color: var(--dim);
}
footer a { color: var(--muted); margin-right: 18px; text-decoration: none; }
footer a:hover { color: var(--violet); }

@media (max-width: 720px) {
  .site-header { padding: 13px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .wrap { padding: 30px 16px 60px; }
  .card { padding: 20px; }
  th { width: 110px; }
}

/* ---- Long-form guide typography ---- */
.lead { margin: 16px 0 24px; }
.wrap > p, .wrap > ol, .wrap > div.faq { max-width: 760px; }
.wrap > p { font-size: 15.5px; line-height: 1.85; color: #4b5563; }
.wrap > h2 { margin-top: 46px; }
ol.tips, ol.mistakes { padding-left: 22px; color: #4b5563; font-size: 15px; line-height: 1.8; }
ol.tips li, ol.mistakes li { margin: 14px 0; padding-left: 6px; }
ol.tips strong, ol.mistakes strong { color: #111827; }
table.data th { width: 210px; color: #111827; font-weight: 600; }
table.data td { color: #4b5563; }
.faq { margin: 12px 0 24px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; margin: 8px 0; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; color: #111827; font-size: 15px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--violet); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 10px 0 0; font-size: 14.5px; color: #4b5563; }

/* ---- Tutorial + level controls ---- */
.game-shell { position: relative; }
.tutorial { display: none; position: absolute; inset: 0; z-index: 5; align-items: center; justify-content: center; border-radius: 26px; background: rgba(255,255,255,.86); backdrop-filter: blur(4px); }
.tutorial.show { display: flex; }
.tutorial-card { max-width: 420px; margin: 20px; padding: 30px 34px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 50px rgba(17,24,39,.12); text-align: center; }
.tutorial-card strong { display: block; font-size: 22px; margin-bottom: 10px; color: #111827; }
.tutorial-card p { font-size: 14.5px; color: #6b7280; line-height: 1.75; margin: 0 0 20px; }
.levelbar { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0 4px; }
.level-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.levels { display: flex; gap: 8px; }
.levels button { width: 38px; height: 38px; padding: 0; border-radius: 10px; font-size: 14px; font-weight: 700; background: #fff; color: #6b7280; border: 1px solid var(--line); }
.levels button:hover { border-color: var(--violet); color: var(--violet); }
.levels button.active { background: var(--violet); color: #fff; border-color: var(--violet); }
.hidden { display: none !important; }

/* ---- Home enhancements ---- */
.tile.featured { border-color: #bfdbfe; background: linear-gradient(150deg, #ffffff, #f8faff); }
.tile small, .tile.small { min-height: 120px; }
.tile em { display: inline-block; margin-top: 14px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--violet); position: relative; }
.tile.small strong { font-size: 16px; }
.note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px 18px; font-size: 13.5px; color: #92400e; margin: 22px 0; max-width: 760px; }

/* ---- Commercial game HUD ---- */
.game-shell { position: relative; aspect-ratio: 1280 / 760; container-type: inline-size; border-radius: 16px; overflow: hidden; border: 1px solid #dbe2ea; box-shadow: 0 6px 24px rgba(17,24,39,.055); background: #f8fbff; }
.game-shell canvas { display: block; width: 100%; height: 100%; }
.hud { position: absolute; pointer-events: none; z-index: 3; }
.hud a, .hud button { pointer-events: auto; }
.hud-kicker { display: block; font-size: 1.02cqw; font-weight: 700; letter-spacing: .12em; color: #9ca3af; line-height: 1.4; }

.hud-top { top: 3.4%; left: 3.1%; right: 3.1%; height: 10%; display: flex; align-items: center; gap: 2.2%; padding: 0 2%; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 12px rgba(17,24,39,.06); }
.hud-left { display: flex; align-items: center; gap: 1.2cqw; flex: 0 0 auto; }
.hud-back { font-size: 1.2cqw; color: #6b7280; text-decoration: none; }
.hud-back:hover { color: var(--violet); }
.lv-badge { display: inline-block; padding: .7cqw 1.4cqw; border-radius: .9cqw; background: var(--violet); color: #fff; font-size: 1.35cqw; font-weight: 700; white-space: nowrap; }
.hud-goal { flex: 1 1 auto; min-width: 0; }
.hud-goal strong { display: block; font-size: 1.45cqw; color: #111827; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-timer { flex: 0 0 auto; min-width: 7cqw; padding-right: 1.4cqw; border-right: 1px solid var(--line); }
.hud-timer strong { display: inline-block; font-size: 2.2cqw; line-height: 1.2; color: #111827; }
.hud-timer small { font-size: 1.15cqw; color: #9ca3af; }
.hud-timer.urgent strong { color: #e11d48; }
.goal-track { width: 100%; max-width: 18cqw; height: .95cqw; border-radius: .5cqw; background: #e5e7eb; margin-top: .45cqw; overflow: hidden; }
.goal-track i { display: block; height: 100%; width: 0; border-radius: .5cqw; background: var(--green); transition: width .35s ease; }
.hud-account { display: flex; align-items: center; gap: .8cqw; flex: 0 0 auto; }
.hearts { display: flex; gap: .15cqw; }
.hearts span { font-size: 1.9cqw; line-height: 1; color: #e5e7eb; }
.hearts span.on { color: #f43f5e; }
.coin-label { margin-left: .8cqw; }
.coin-val { font-size: 1.7cqw; color: #111827; display: inline-block; }
.coin-val.shake { animation: coinshake .4s ease; }
@keyframes coinshake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }

.hud-side { left: 3.1%; top: 16.5%; width: 22%; display: flex; flex-direction: column; gap: 1.1cqw; }
.hud-right { right: 3.1%; top: 16.5%; width: 22%; display: flex; flex-direction: column; gap: 1.1cqw; }
.stat-box, .reward-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1cqw 1.4cqw; }
.stat-box strong { display: block; font-size: 3cqw; font-weight: 700; color: #111827; line-height: 1.25; }
.stat-box strong.low { color: #e11d48; }
.stat-box small { font-size: 1.15cqw; color: #9ca3af; }
.combo-box { display: inline-block; align-self: flex-start; padding: .7cqw 1.2cqw; border-radius: .8cqw; background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; font-size: 1.5cqw; font-weight: 700; }
.spin-box { background: #fff; border: 1px solid #ddd6fe; border-radius: 14px; padding: 1.1cqw 1.4cqw; display: flex; flex-direction: column; gap: .3cqw; }
.spin-box strong { font-size: 2.6cqw; font-weight: 800; color: #6d28d9; line-height: 1.1; }
.spin-box small { font-size: 1.15cqw; color: #7c6ba3; }
.reward-box p { margin: .5cqw 0 0; font-size: 1.12cqw; color: #6b7280; line-height: 1.7; }
.reward-box p span:first-child { color: #059669; font-weight: 700; }
.energy-box { background: #fff; border: 1px solid #a7f3d0; border-radius: 12px; padding: 1.1cqw 1.4cqw; }
.energy-cells { display: flex; gap: .45cqw; margin: .8cqw 0; }
.energy-cells i { flex: 1; height: 1.1cqw; border-radius: 1cqw; background: #e8f5ef; border: 1px solid #d1fae5; transition: background .18s; }
.energy-cells i.on { background: #0d9488; border-color: #0f766e; }
.energy-release { width: 100%; padding: .7cqw; border: 0; border-radius: .8cqw; background: #0d9488; color: #fff; font-size: 1.15cqw; font-weight: 700; cursor: pointer; }
.energy-release:disabled { background: #e5e7eb; color: #9ca3af; cursor: default; }
.pu-block { margin-top: .4cqw; }
.pu-row { display: flex; gap: .9cqw; margin-top: .8cqw; }
.pu { position: relative; width: 4.8cqw; height: 4.8cqw; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .16s, border-color .16s; }
.pu:hover { transform: translateY(-2px); border-color: var(--violet); }
.pu.empty { opacity: .42; }
.pu.armed { border-color: var(--violet); box-shadow: 0 0 0 .32cqw rgba(37,99,235,.16); }
.pu-glyph { font-size: 2.3cqw; line-height: 1; }
.pu-glyph.bomb { color: #fb923c; }
.pu-glyph.rainbow { color: #a78bfa; }
.pu-glyph.swap { color: #0284c7; font-weight: 700; }
.pu i { position: absolute; right: -.35cqw; top: -.35cqw; min-width: 1.75cqw; height: 1.75cqw; border-radius: .9cqw; background: var(--violet); color: #fff; font-size: 1.05cqw; font-style: normal; font-weight: 700; display: grid; place-items: center; padding: 0 .3cqw; }

.tutorial { display: none; position: absolute; inset: 0; z-index: 12; align-items: center; justify-content: center; background: rgba(248,251,255,.9); }
.tutorial.show { display: flex; }
.tutorial-card { width: 40%; max-width: 420px; padding: 3cqw; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 50px rgba(17,24,39,.12); text-align: center; }
.tutorial-card strong { display: block; font-size: 2.3cqw; color: #111827; margin-bottom: 1cqw; }
.tutorial-card p { font-size: 1.4cqw; color: #6b7280; line-height: 1.7; margin: 0 0 2cqw; }
.tutorial-card button { font-size: 1.4cqw; padding: 1cqw 2cqw; }

.modal { display: none; position: absolute; inset: 0; z-index: 15; align-items: center; justify-content: center; background: rgba(248,251,255,.9); }
.modal.show { display: flex; }
.modal-card { width: 42%; max-width: 440px; padding: 3cqw; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 55px rgba(17,24,39,.14); text-align: center; }
.modal-title { font-size: 2.8cqw; font-weight: 700; color: #111827; letter-spacing: .02em; }
.result-stars { margin: 1.8cqw 0; }
.result-stars span { display: inline-block; font-size: 4cqw; line-height: 1; color: #e5e7eb; margin: 0 .5cqw; transition: transform .24s ease, color .24s ease; }
.result-stars span.earned { color: #f59e0b; transform: scale(1.18) rotate(-8deg); }
.result-data { display: flex; justify-content: center; gap: 4cqw; margin-bottom: 2cqw; }
.result-data div { text-align: center; }
.result-data span { display: block; font-size: 1.05cqw; letter-spacing: .1em; color: #9ca3af; font-weight: 700; }
.result-data strong { font-size: 2.2cqw; color: #111827; }
.lives-warn { font-size: 1.25cqw; color: #e11d48; margin: 0 0 1.5cqw; }
.modal-actions { display: flex; gap: 1cqw; justify-content: center; }
.modal-actions button { font-size: 1.4cqw; padding: 1cqw 2cqw; }

@media (max-width: 760px) {
  .hud-kicker { font-size: 1.35cqw; }
  .hud-goal strong { font-size: 1.6cqw; }
  .hud-back { font-size: 1.4cqw; }
  .lv-badge { font-size: 1.6cqw; }
}

/* ---- Homepage product preview ---- */
.hero-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4vw; align-items: center; }
.hero-copy { min-width: 0; }
.hero-shot { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 16px 46px rgba(17,24,39,.10); transition: transform .2s ease, box-shadow .2s ease; }
.hero-shot:hover { transform: translateY(-3px); box-shadow: 0 22px 60px rgba(17,24,39,.14); }
.hero-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; gap: 26px; } }

/* ---- Visible on-page SEO copy ---- */
.seo-copy { margin-top: 30px; padding: 4px 2px 10px; }
.seo-copy h2 { font-size: 21px; margin: 28px 0 10px; }
.seo-copy p, .seo-copy li { color: #374151; }
.seo-copy .quick-tips { padding-left: 20px; }
.seo-copy .quick-tips li { margin: 6px 0; }
.seo-copy .faq { margin-bottom: 4px; }
.seo-copy .grid { margin-top: 12px; }
@media (max-width: 760px) { .seo-copy h2 { font-size: 19px; } }

/* ---- Tower Siege · Sandstone theme ---- */
.game-shell.theme-tower { border-color: #e7d8c0; box-shadow: 0 6px 24px rgba(120,53,15,.07); background: #fbf8f2; }
.theme-tower .lv-badge { background: #b45309; }
.theme-tower .hud-back:hover { color: #b45309; }
.theme-tower .goal-track i { background: #0f766e; }
.theme-tower .pu.armed { border-color: #b45309; box-shadow: 0 0 0 .32cqw rgba(180,83,9,.14); }
.theme-tower .levels button.active { background: #b45309; border-color: #b45309; }
.floor-badge { display: inline-block; padding: .7cqw 1.1cqw; border-radius: .9cqw; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 1.2cqw; font-weight: 700; white-space: nowrap; }
.floor-badge b { font-weight: 700; letter-spacing: .06em; }
.core-box { background: #fffdf9; border: 1px solid #e7d8c0; border-radius: 12px; padding: 1.1cqw 1.4cqw; }
.core-box strong { display: block; font-size: 2.6cqw; font-weight: 800; color: #0f766e; line-height: 1.2; }
.core-box small { display: block; margin-top: .5cqw; font-size: 1.02cqw; font-weight: 700; letter-spacing: .1em; color: #b45309; }
.core-track { height: 1.1cqw; border-radius: .6cqw; background: #eee2ce; margin-top: .65cqw; overflow: hidden; }
.core-track i { display: block; height: 100%; width: 100%; border-radius: .6cqw; background: #0f766e; transition: width .3s ease; }

/* ---- Coil Serpent · Moss Serpent theme ---- */
.game-shell.theme-coil { border-color: #c7e6c4; box-shadow: 0 6px 24px rgba(21,128,61,.07); }
.theme-coil .lv-badge { background: #15803d; }
.theme-coil .goal-track i { background: #be123c; }
.theme-coil .pu.armed { border-color: #15803d; box-shadow: 0 0 0 .32cqw rgba(21,128,61,.14); }
.theme-coil .levels button.active { background: #15803d; border-color: #15803d; }
.snake-badge { display: inline-block; padding: .7cqw 1.1cqw; border-radius: .9cqw; background: #f0f9ed; border: 1px solid #c7e6c4; color: #14532d; font-size: 1.2cqw; font-weight: 700; white-space: nowrap; }
.snake-badge b { color: #be123c; letter-spacing: .06em; }
.snake-badge i { font-style: normal; }
.snake-box { background: #f7fcf5; border: 1px solid #c7e6c4; border-radius: 12px; padding: 1.1cqw 1.4cqw; }
.snake-box strong { display: block; font-size: 2.6cqw; font-weight: 800; color: #15803d; line-height: 1.2; }
.snake-box small { display: block; margin-top: .5cqw; font-size: 1.02cqw; font-weight: 700; color: #be123c; }
.snake-track { height: 1.1cqw; border-radius: .6cqw; background: #dcefd6; margin-top: .65cqw; overflow: hidden; }
.snake-track i { display: block; height: 100%; width: 100%; border-radius: .6cqw; background: #15803d; transition: width .3s ease; }

/* ---- Sweet Meter · Sugar Cream theme ---- */
.game-shell.theme-candy { border-color: #f7c9dc; box-shadow: 0 6px 24px rgba(219,39,119,.08); background: #fffdfd; }
.theme-candy .lv-badge { background: #db2777; }
.theme-candy .hud-back:hover { color: #db2777; }
.theme-candy .goal-track i { background: #0891b2; }
.theme-candy .pu.armed { border-color: #db2777; box-shadow: 0 0 0 .32cqw rgba(219,39,119,.14); }
.theme-candy .levels button.active { background: #db2777; border-color: #db2777; }
.sugar-badge { display: inline-block; padding: .7cqw 1.1cqw; border-radius: 1.2cqw; background: #fff1f6; border: 1px solid #f7c9dc; color: #9d174d; font-size: 1.2cqw; font-weight: 800; white-space: nowrap; }
.sugar-badge b { letter-spacing: .06em; }
.sugar-badge i { font-style: normal; color: #db2777; }
.meter-box { background: #fffafd; border: 1px solid #f7c9dc; border-radius: 1.6cqw; padding: 1.1cqw 1.4cqw; min-width: 18cqw; }
.meter-row { display: flex; align-items: center; gap: .7cqw; margin-top: .65cqw; font-size: 1.02cqw; font-weight: 800; }
.meter-row:first-of-type { margin-top: .85cqw; }
.meter-name { width: 5.4cqw; letter-spacing: .04em; }
.meter-track { flex: 1; height: .95cqw; border-radius: .5cqw; background: #fde8f0; overflow: hidden; }
.meter-track i { display: block; height: 100%; border-radius: .5cqw; transition: width .25s ease; }
.meter-row b { min-width: 4.4cqw; text-align: right; color: #9d174d; font-variant-numeric: tabular-nums; }
.storm-banner { margin-top: .9cqw; padding: .6cqw 1cqw; border-radius: 1cqw; background: #db2777; color: #fff; font-size: 1.1cqw; font-weight: 800; text-align: center; letter-spacing: .08em; animation: stormPulse .7s ease-in-out infinite alternate; }
@keyframes stormPulse { from { opacity: .78; } to { opacity: 1; } }

/* ---- Boss Guardian · Tactical Slate theme ---- */
.game-shell.theme-boss { border-color: #cbd5e1; background: #fff; box-shadow: 0 6px 24px rgba(30,58,138,.08); }
.theme-boss .lv-badge { background: #1e3a8a; }
.theme-boss .hud-back:hover { color: #1e3a8a; }
.theme-boss .goal-track i { background: #dc2626; }
.theme-boss .pu.armed { border-color: #1e3a8a; box-shadow: 0 0 0 .32cqw rgba(30,58,138,.14); }
.theme-boss .levels button.active { background: #1e3a8a; border-color: #1e3a8a; }
.boss-strip { display: flex; align-items: center; gap: .7cqw; min-width: 24cqw; }
.boss-strip strong { font-size: 1.8cqw; font-weight: 800; color: #dc2626; font-variant-numeric: tabular-nums; }
.window-chip { margin-left: auto; padding: .32cqw .8cqw; border-radius: .5cqw; background: #eef3f9; border: 1px solid #cbd5e1; color: #1e3a8a; font-size: .95cqw; font-weight: 800; letter-spacing: .1em; }
.window-chip.is-open { background: #dc2626; border-color: #dc2626; color: #fff; animation: windowPulse .8s ease-in-out infinite alternate; }
@keyframes windowPulse { from { opacity: .78; } to { opacity: 1; } }
.boss-track { height: .9cqw; border-radius: .45cqw; background: #e2e8f0; overflow: hidden; margin: .35cqw 0 .6cqw; }
.boss-track i { display: block; height: 100%; width: 100%; border-radius: .45cqw; background: #dc2626; transition: width .25s ease; }
.window-box { min-width: 13cqw; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: .9cqw; padding: 1.1cqw 1.4cqw; }
.window-box strong { display: block; font-size: 2.6cqw; font-weight: 800; color: #1e3a8a; line-height: 1.15; font-variant-numeric: tabular-nums; }
.window-box small { display: block; margin-top: .4cqw; font-size: 1.02cqw; font-weight: 700; color: #64748b; }
.window-box small i { font-style: normal; color: #1e3a8a; }
.window-box.is-open { border-color: #dc2626; background: #fff5f5; }
.window-box.is-open strong, .window-box.is-open small i { color: #dc2626; }

/* ---- Rescue Horizon · warm route theme ---- */
.game-shell.theme-rescue { border-color: #fed7aa; background: #fffdfb; box-shadow: 0 6px 24px rgba(249,115,22,.08); }
.theme-rescue .lv-badge { background: #1d4ed8; }
.theme-rescue .hud-back:hover { color: #1d4ed8; }
.theme-rescue .goal-track i { background: #f97316; }
.theme-rescue .pu.armed { border-color: #1d4ed8; box-shadow: 0 0 0 .32cqw rgba(29,78,216,.14); }
.theme-rescue .levels button.active { background: #1d4ed8; border-color: #1d4ed8; }
.rescue-badge { display: inline-block; padding: .7cqw 1.1cqw; border-radius: .9cqw; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 1.2cqw; font-weight: 700; white-space: nowrap; }
.rescue-badge b { color: #ea580c; letter-spacing: .06em; }
.rescue-badge i { font-style: normal; color: #1d4ed8; }
.rescue-box { min-width: 13cqw; background: #fffdfb; border: 1px solid #fed7aa; border-radius: .9cqw; padding: 1.1cqw 1.4cqw; }
.rescue-box strong { display: block; font-size: 2.6cqw; font-weight: 800; color: #1d4ed8; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rescue-box small { display: block; margin-top: .4cqw; font-size: 1.02cqw; font-weight: 700; color: #9a3412; }
.rescue-box small i { font-style: normal; color: #ea580c; }
.rescue-track { height: .9cqw; border-radius: .45cqw; background: #ffedd5; overflow: hidden; margin: .5cqw 0 .35cqw; }
.rescue-track i { display: block; height: 100%; width: 100%; border-radius: .45cqw; background: #f97316; transition: width .25s ease; }

/* ---- Daily Paper · newsprint theme ---- */
.game-shell.theme-daily { border-color: #d8d2c2; background: #fffefa; box-shadow: 0 2px 0 rgba(67,56,202,.07); }
.theme-daily .lv-badge { background: #4338ca; letter-spacing: .08em; }
.theme-daily .hud-back:hover { color: #4338ca; }
.theme-daily .goal-track i { background: #4338ca; }
.theme-daily .pu.armed { border-color: #4338ca; box-shadow: 0 0 0 .32cqw rgba(67,56,202,.14); }
.theme-daily .levels button.active { background: #4338ca; border-color: #4338ca; }
.daily-stamp { display: inline-block; padding: .6cqw 1cqw; border: 2px solid #4338ca; border-radius: 3px; color: #3730a3; background: #faf9f5; font: 700 1.25cqw Georgia, serif; letter-spacing: .09em; white-space: nowrap; transform: rotate(-2deg); }
.daily-diff { display: inline-flex; gap: .25cqw; margin-left: .5cqw; padding: .25cqw; border: 1px solid #d8d2c2; border-radius: 4px; background: #faf9f5; }
.daily-diff button { padding: .45cqw .8cqw; border: 0; border-radius: 3px; background: transparent; color: #78716c; font: 700 1.05cqw Georgia, serif; letter-spacing: .06em; cursor: pointer; }
.daily-diff button.active { background: #4338ca; color: #fffefa; }
.daily-diff button:hover:not(.active) { color: #4338ca; background: #f2f0e6; }
.daily-box { min-width: 14cqw; background: #fffefa; border: 1px solid #d8d2c2; border-radius: 4px; padding: 1cqw 1.3cqw; }
.daily-box .daily-seed { display: block; font: 700 1.05cqw Georgia, serif; color: #78716c; letter-spacing: .06em; }
.daily-box strong { display: block; font-size: 2.5cqw; font-weight: 700; color: #4338ca; line-height: 1.2; font-variant-numeric: tabular-nums; }
.daily-box .streak-seal { display: inline-block; margin-top: .35cqw; padding: .2cqw .7cqw; border: 1.5px solid #b45309; border-radius: 2px; color: #b45309; font: 700 1.1cqw Georgia, serif; transform: rotate(-2deg); }
.daily-box small { display: block; margin-top: .4cqw; font: 700 1.02cqw Georgia, serif; color: #78716c; }
.daily-box small i { font-style: normal; color: #4338ca; }
.daily-next { font: 700 1.05cqw Georgia, serif; color: #b45309; letter-spacing: .04em; }
.daily-share { border: 1px solid #4338ca; color: #4338ca; background: #fffefa; }
.daily-share:hover { background: #f2f0e6; }
