/* EternalWolf Studios — Static splash styles (shared by PHP + static) */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --bg: #030508;
  --surface: #0d131f;
  --text: #ffffff;
  --muted: #8892b0;
  --line: rgba(255, 255, 255, 0.1);
  --font-display: "Clash Display", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-logo: "Cinzel", serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

::selection { background: #fff; color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* Background */
.ew-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.ew-bg-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.9) contrast(1.1) saturate(1.1);
}
.ew-bg-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(3,5,8,.3) 0%, rgba(3,5,8,.65) 50%, rgba(3,5,8,1) 100%);
}
.ew-bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.08), transparent 65%);
}
.ew-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  background-size: 180px 180px; opacity: .5; pointer-events: none;
}

/* Nav */
.ew-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ew-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ew-brand { display: flex; align-items: center; gap: 12px; }
.ew-brand-icon {
  width: 24px; height: 24px; color: #fff;
  stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ew-brand-icon-sm { width: 16px; height: 16px; color: rgba(255,255,255,.6); }
.ew-brand-text {
  font-family: var(--font-logo);
  font-size: 15px; font-weight: 600;
  letter-spacing: .25em;
}
.ew-nav-status {
  display: none; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .35em;
  color: rgba(255,255,255,.6);
}
@media (min-width: 640px) { .ew-nav-status { display: flex; } }
.ew-dot { width: 6px; height: 6px; border-radius: 999px; background: #fff; animation: ew-dot-pulse 2s ease-in-out infinite; }
@keyframes ew-dot-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.ew-socials { display: flex; gap: 8px; }
.ew-social {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  transition: all .3s ease;
}
.ew-social:hover { border-color: rgba(255,255,255,.4); background: #fff; color: #000; }
.ew-icon { width: 16px; height: 16px; }

/* Hero */
.ew-hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 128px 24px 64px;
}
.ew-hero-inner { width: 100%; max-width: 1152px; text-align: center; }
.ew-overline {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 32px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5em;
  color: rgba(255,255,255,.6);
}
.ew-overline-sm { margin-bottom: 24px; }
.ew-line { width: 40px; height: 1px; background: rgba(255,255,255,.3); }

.ew-title {
  font-family: var(--font-display); font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.02em; line-height: .9;
  font-size: clamp(3rem, 9vw, 9rem); margin: 0;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.ew-title span { display: block; }
.ew-title-italic { font-style: italic; font-weight: 300; color: rgba(255,255,255,.8); }

.ew-tagline {
  max-width: 640px; margin: 40px auto 0;
  color: rgba(255,255,255,.5); font-size: 15px; line-height: 1.7;
}

/* Countdown */
.ew-countdown-wrap { width: 100%; max-width: 1024px; margin-top: 80px; }
.ew-countdown { display: flex; align-items: flex-end; justify-content: center; gap: 16px; }
.ew-seg { display: flex; flex-direction: column; align-items: center; }
.ew-seg-value {
  font-family: var(--font-mono); font-weight: 300; font-variant-numeric: tabular-nums;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: .12em; line-height: 1;
  color: #fff; user-select: none;
  text-shadow: 0 0 40px rgba(255,255,255,.15);
}
.ew-seg-label {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4em;
  color: rgba(255,255,255,.4);
}
.ew-seg-divider { display: flex; flex-direction: column; gap: 8px; padding-bottom: 28px; }
.ew-seg-divider i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.3); }
@media (min-width: 640px)  { .ew-countdown { gap: 32px; } }
@media (min-width: 1024px) { .ew-countdown { gap: 48px; } }

/* Scroll hint */
.ew-scroll-hint {
  margin-top: 80px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: rgba(255,255,255,.4);
}
.ew-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5em;
}
.ew-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: ew-scroll-pulse 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes ew-scroll-pulse {
  0%,100% { opacity: .3; transform: scaleY(.8); }
  50%     { opacity: 1;  transform: scaleY(1); }
}

/* Divisions */
.ew-divisions { padding: 0 24px 96px; }
.ew-divisions-inner { max-width: 1280px; margin: 0 auto; }
.ew-divisions-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
@media (min-width: 640px) { .ew-divisions-head { flex-direction: row; justify-content: space-between; align-items: flex-end; } }
.ew-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5em;
  color: rgba(255,255,255,.5); margin: 0 0 12px;
}
.ew-heading-2 {
  font-family: var(--font-display); font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.05; margin: 0;
}
.ew-heading-2 span { color: rgba(255,255,255,.4); }
.ew-divisions-copy { max-width: 380px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.5); }

.ew-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .ew-grid { grid-template-columns: repeat(3, 1fr); } }

.ew-card {
  position: relative; overflow: hidden; height: 420px;
  border: 1px solid rgba(255,255,255,.1); background: var(--surface);
  transition: transform .5s ease, border-color .5s ease;
}
.ew-card:hover { border-color: rgba(255,255,255,.3); transform: translateY(-8px); }
.ew-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.ew-card:hover .ew-card-bg { transform: scale(1.1); }
.ew-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,.7) 50%, rgba(0,0,0,.95) 100%);
  transition: background .5s ease;
}
.ew-card:hover .ew-card-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.9) 100%);
}
.ew-grain-card { position: absolute; mix-blend-mode: overlay; opacity: .3; }
.ew-card-body {
  position: relative; height: 100%; padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ew-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .4em; color: rgba(255,255,255,.5);
}
.ew-card-rule {
  height: 1px; width: 48px; background: rgba(255,255,255,.3);
  margin-bottom: 16px; transition: width .5s ease, background .5s ease;
}
.ew-card:hover .ew-card-rule { width: 96px; background: #fff; }
.ew-card-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900; text-transform: uppercase; letter-spacing: -.02em;
  line-height: .95; color: #fff; margin: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
}
.ew-card-desc {
  margin-top: 16px; max-width: 360px;
  font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.6);
}

/* Footer */
.ew-footer { border-top: 1px solid rgba(255,255,255,.05); padding: 40px 24px; }
.ew-footer-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
@media (min-width: 640px) { .ew-footer-inner { flex-direction: row; justify-content: space-between; } }
.ew-footer-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .4em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.ew-footer-links { display: flex; gap: 24px; }
.ew-footer-links a {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .4em; text-transform: uppercase;
  color: rgba(255,255,255,.4); transition: color .2s ease;
}
.ew-footer-links a:hover { color: #fff; }

/* Audio toggle */
.ew-audio-toggle {
  position: fixed; bottom: 24px; left: 24px; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: all .3s ease;
}
.ew-audio-toggle:hover { border-color: rgba(255,255,255,.4); background: rgba(0,0,0,.6); }
.ew-audio-toggle:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.ew-audio-icon { width: 16px; height: 16px; color: rgba(255,255,255,.8); }
.ew-audio-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3em;
  color: rgba(255,255,255,.7);
}
.ew-audio-toggle:hover .ew-audio-label,
.ew-audio-toggle:hover .ew-audio-icon { color: #fff; }
.ew-audio-pulse { position: relative; display: inline-flex; width: 8px; height: 8px; }
.ew-audio-pulse i {
  position: relative; width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.4); transition: background .3s ease;
}
.ew-audio-toggle.playing .ew-audio-pulse i { background: #fff; }
.ew-audio-toggle.playing .ew-audio-pulse::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: rgba(255,255,255,.6);
  animation: ew-ping 1.2s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ew-ping { 75%,100% { transform: scale(2.2); opacity: 0; } }

.ew-audio-skip {
  position: fixed; bottom: 24px; left: calc(24px + 180px); z-index: 50;
  width: 36px; height: 36px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.4);
  color: rgba(255,255,255,.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: all .3s ease;
}
.ew-audio-skip:hover { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(0,0,0,.6); }

.ew-fade-in { animation: ew-fade-in 1.4s ease-out both; }
@keyframes ew-fade-in { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }

/* ============================================================
   Mini-game: Moonlit Hunt
   ============================================================ */
.ew-game-section {
  padding: 0 24px 120px;
  position: relative;
}
.ew-game-inner { max-width: 1280px; margin: 0 auto; }
.ew-game-head {
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px;
}
@media (min-width: 640px) {
  .ew-game-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

.ew-game-frame {
  position: relative;
  border: 1px solid rgba(255,255,255,.12);
  background: #04070c;
  overflow: hidden;
}

.ew-game-hud {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none;
}
.ew-game-hud-col {
  display: flex; flex-direction: column; gap: 4px;
  font-family: "JetBrains Mono", monospace;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.ew-game-hud-col .ew-mono-xs { font-size: 9px; font-weight: 700; letter-spacing: .4em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.ew-game-score, .ew-game-best {
  font-size: 20px; font-weight: 300; letter-spacing: .1em; font-variant-numeric: tabular-nums;
}
.ew-game-lives { display: flex; gap: 4px; padding-top: 4px; }
.ew-life {
  display: inline-block; width: 10px; height: 10px; border-radius: 999px;
  background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.4);
}
.ew-life-dead { background: rgba(255,255,255,.15); box-shadow: none; }

#ew-game-canvas {
  display: block; width: 100%; height: auto;
  cursor: pointer;
  /* lock scroll/zoom gestures on canvas so drag-to-move works on mobile */
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ew-game-overlay {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  background: rgba(3,5,8,.82);
  backdrop-filter: blur(6px);
  text-align: center;
  padding: 24px;
  /* allow scroll on short mobile canvases so level-up / game-over content never clips */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ew-game-overlay .ew-mono-xs {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5em;
  color: rgba(255,255,255,.6);
}
.ew-game-tagline {
  font-family: "Clash Display", "Manrope", sans-serif;
  font-weight: 900; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0;
}
.ew-game-btn {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  padding: 12px 22px;
  background: #fff; color: #000;
  border: 1px solid #fff; cursor: pointer;
  transition: all .2s ease;
}
.ew-game-btn:hover { background: transparent; color: #fff; }
.ew-game-hint { margin-top: 6px; }

.ew-game-mobile-btn { display: none; }

/* Layout: game + leaderboard side-by-side */
.ew-game-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 960px) {
  .ew-game-layout { grid-template-columns: 1fr 280px; }
}

/* Leaderboard */
.ew-leaderboard {
  border: 1px solid rgba(255,255,255,.08);
  background: #04070c;
  padding: 20px;
  display: grid; gap: 16px; align-content: start;
  min-height: 200px;
}
.ew-lb-head .ew-mono-xs {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; font-weight: 700; letter-spacing: .4em;
  color: rgba(255,255,255,.4); margin: 0 0 4px;
  text-transform: uppercase;
}
.ew-lb-title {
  font-family: "Clash Display", "Manrope", sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: -.01em;
  font-size: 22px; margin: 0;
}
.ew-lb-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 4px;
  counter-reset: lbrow;
}
.ew-lb-row {
  display: grid; grid-template-columns: 28px 1fr auto;
  gap: 10px; padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.05);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  transition: border-color .2s ease, background .2s ease;
}
.ew-lb-row:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.02); }
.ew-lb-rank { color: rgba(255,255,255,.4); letter-spacing: .1em; }
.ew-lb-name { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ew-lb-score { color: #fff; font-variant-numeric: tabular-nums; font-weight: 600; }
.ew-lb-loading, .ew-lb-empty {
  list-style: none; padding: 12px; color: rgba(255,255,255,.4);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  text-align: center;
}

/* Leaderboard submission form (inside game-over overlay) */
.ew-lb-form { display: grid; gap: 10px; width: 100%; max-width: 340px; }
.ew-lb-form label { color: rgba(255,255,255,.6); letter-spacing: .3em; text-transform: uppercase; }
.ew-lb-form input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 16px; letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
}
.ew-lb-form input:focus { outline: none; border-color: #fff; }
.ew-game-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.ew-game-btn-ghost:hover { background: #fff; color: #000; }
#ew-lb-msg { color: rgba(255,255,255,.65); }
.ew-btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Level-up overlay ---------- */
.ew-levelup { padding: 24px; }
.ew-lu-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  max-width: 780px;
  margin-top: 12px;
}
@media (min-width: 640px) { .ew-lu-cards { grid-template-columns: repeat(3, 1fr); } }

.ew-lu-card {
  display: grid; gap: 8px;
  padding: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
  font-family: "Manrope", sans-serif;
}
.ew-lu-card:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-2px);
}
.ew-lu-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: .35em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.ew-lu-title {
  font-family: "Clash Display", "Manrope", sans-serif;
  font-size: 22px; font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.ew-lu-desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.75);
}
.ew-lu-weapon-new .ew-lu-tag { color: #7fd4ff; }
.ew-lu-weapon-up  .ew-lu-tag { color: #ffd98a; }
.ew-lu-stat       .ew-lu-tag { color: #6bd38a; }


/* ============================================================
   Mini-game: mobile pause button (visible only on touch screens)
   ============================================================ */
.ew-game-pause {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  padding: 0;
  background: rgba(3,5,8,.7);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; font-weight: 700;
  letter-spacing: .1em;
}
.ew-game-pause:active { background: rgba(255,255,255,.12); }
/* show the on-screen pause control on touch-capable devices */
@media (hover: none) and (pointer: coarse) {
  .ew-game-pause { display: flex; }
}

/* ============================================================
   Mini-game: mobile tightening (<= 640px)
   ============================================================ */
@media (max-width: 640px) {
  .ew-game-section { padding: 0 16px 80px; }
  .ew-game-head { margin-bottom: 20px; gap: 12px; }

  /* HUD: smaller so it doesn't dominate the tiny canvas */
  .ew-game-hud { top: 8px; left: 8px; right: 8px; }
  .ew-game-hud-col { gap: 2px; }
  .ew-game-hud-col .ew-mono-xs { font-size: 8px; letter-spacing: .3em; }
  .ew-game-score, .ew-game-best { font-size: 14px; }
  .ew-life { width: 7px; height: 7px; }
  .ew-game-lives { gap: 3px; padding-top: 2px; }

  /* Overlays: smaller text, less padding so content fits */
  .ew-game-overlay { padding: 14px; gap: 10px; }
  .ew-game-overlay .ew-mono-xs { font-size: 9px; letter-spacing: .35em; }
  .ew-game-tagline { font-size: 1.25rem; }
  .ew-game-btn { padding: 10px 18px; font-size: 10px; letter-spacing: .25em; }
  .ew-game-hint { font-size: 8px; letter-spacing: .3em; }

  /* Level-up cards: compact so 3 stacked cards fit on screen */
  .ew-levelup { padding: 14px; }
  .ew-lu-cards { gap: 8px; margin-top: 8px; }
  .ew-lu-card  { padding: 10px 12px; gap: 4px; }
  .ew-lu-title { font-size: 16px; }
  .ew-lu-desc  { font-size: 11px; line-height: 1.4; }
  .ew-lu-tag   { font-size: 8px; letter-spacing: .3em; }

  /* Leaderboard: tighter on mobile */
  .ew-leaderboard { padding: 14px; }
  .ew-lb-title { font-size: 18px; }

  /* Game-over form: prevent iOS auto-zoom by keeping input >= 16px */
  .ew-lb-form input { font-size: 16px; padding: 10px 12px; }
  .ew-btn-row { gap: 8px; }
}
