/* 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);
  overflow: visible;
}
.ew-nav-inner {
  position: relative;
  width: 100%;
  margin: 0;
  height: 60px;
  min-height: 60px;
  padding: 0 16px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.ew-brand { display: flex; align-items: center; gap: 0; min-width: 0; }
.ew-brand-sigil {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 60px;
  flex: 0 0 104px;
  margin: 0;
  isolation: isolate;
  overflow: visible;
}
.ew-brand-sigil::before {
  content: "";
  position: absolute;
  inset: -26px;
  z-index: -2;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(118,218,255,.42) 0%, rgba(48,130,255,.22) 35%, rgba(255,255,255,0) 70%);
  filter: blur(16px);
  opacity: .86;
  animation: ew-brand-aura 3.4s ease-in-out infinite;
}
.ew-brand-sigil::after {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 28%, rgba(255,255,255,.95) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 8%, rgba(117,219,255,.95) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 18%, rgba(198,242,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 52%, rgba(78,183,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 88%, rgba(255,255,255,.82) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 82%, rgba(96,202,255,.84) 0 1px, transparent 2px);
  opacity: .72;
  transform-origin: center;
  animation: ew-brand-field 2.8s steps(4, end) infinite;
}
.ew-brand-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: 128px;
  height: 128px;
  object-fit: contain;
  transform: translateY(-4px);
  filter: drop-shadow(0 0 12px rgba(166,232,255,.72)) drop-shadow(0 0 32px rgba(48,148,255,.42));
}
.ew-brand-sparkle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: var(--s, 4px);
  height: var(--s, 4px);
  border-radius: 999px;
  color: var(--spark-edge, #78d8ff);
  background: radial-gradient(circle, var(--spark-core, #fff) 0 24%, var(--spark-edge, #78d8ff) 48%, rgba(120,216,255,0) 72%);
  box-shadow: 0 0 8px 2px currentColor, 0 0 18px rgba(255,255,255,.22);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation: ew-brand-particle var(--d, 2.8s) cubic-bezier(.34,.02,.16,1) infinite;
  animation-delay: var(--delay, 0s);
}
.ew-brand-sparkle:nth-child(1) { --s: 3px; --d: 2.4s; --delay: -.1s; --spark-core: #fff; --spark-edge: #83dcff; --x1: 7px; --y1: -11px; --x2: 34px; --y2: -30px; --x3: 20px; --y3: -50px; --x4: 54px; --y4: -76px; --spin: 110deg; }
.ew-brand-sparkle:nth-child(2) { --s: 5px; --d: 3.1s; --delay: -.9s; --spark-core: #c8f3ff; --spark-edge: #4cbcff; --x1: -10px; --y1: -9px; --x2: -36px; --y2: -23px; --x3: -26px; --y3: -54px; --x4: -64px; --y4: -66px; --spin: -130deg; }
.ew-brand-sparkle:nth-child(3) { --s: 4px; --d: 2.7s; --delay: -1.7s; --spark-core: #fff; --spark-edge: #6cd8ff; --x1: 11px; --y1: 6px; --x2: 42px; --y2: 20px; --x3: 34px; --y3: 43px; --x4: 78px; --y4: 52px; --spin: 160deg; }
.ew-brand-sparkle:nth-child(4) { --s: 2px; --d: 2.2s; --delay: -1.2s; --spark-core: #d9f8ff; --spark-edge: #2aa7ff; --x1: -8px; --y1: 7px; --x2: -38px; --y2: 28px; --x3: -26px; --y3: 44px; --x4: -76px; --y4: 62px; --spin: -95deg; }
.ew-brand-sparkle:nth-child(5) { --s: 4px; --d: 3.4s; --delay: -2.4s; --spark-core: #fff; --spark-edge: #9ee8ff; --x1: 2px; --y1: -14px; --x2: -10px; --y2: -48px; --x3: 11px; --y3: -70px; --x4: -6px; --y4: -104px; --spin: 220deg; }
.ew-brand-sparkle:nth-child(6) { --s: 3px; --d: 2.6s; --delay: -2s; --spark-core: #bdf0ff; --spark-edge: #5bc9ff; --x1: 12px; --y1: -3px; --x2: 58px; --y2: -6px; --x3: 70px; --y3: -34px; --x4: 104px; --y4: -22px; --spin: 80deg; }
.ew-brand-sparkle:nth-child(7) { --s: 5px; --d: 3s; --delay: -.45s; --spark-core: #fff; --spark-edge: #66cfff; --x1: -13px; --y1: -1px; --x2: -58px; --y2: -8px; --x3: -72px; --y3: 16px; --x4: -104px; --y4: 4px; --spin: -180deg; }
.ew-brand-sparkle:nth-child(8) { --s: 2px; --d: 2.35s; --delay: -1.45s; --spark-core: #edfaff; --spark-edge: #228fff; --x1: 9px; --y1: 10px; --x2: 23px; --y2: 50px; --x3: 52px; --y3: 62px; --x4: 66px; --y4: 102px; --spin: 140deg; }
.ew-brand-sparkle:nth-child(9) { --s: 4px; --d: 3.25s; --delay: -2.7s; --spark-core: #fff; --spark-edge: #78dfff; --x1: -6px; --y1: 12px; --x2: -16px; --y2: 48px; --x3: -44px; --y3: 62px; --x4: -54px; --y4: 104px; --spin: -150deg; }
.ew-brand-sparkle:nth-child(10) { --s: 3px; --d: 2.85s; --delay: -.75s; --spark-core: #d6f7ff; --spark-edge: #36b6ff; --x1: 14px; --y1: -10px; --x2: 60px; --y2: -38px; --x3: 78px; --y3: -18px; --x4: 112px; --y4: -58px; --spin: 190deg; }
.ew-brand-sparkle:nth-child(11) { --s: 2px; --d: 2.15s; --delay: -1.9s; --spark-core: #fff; --spark-edge: #91e4ff; --x1: -15px; --y1: -11px; --x2: -54px; --y2: -42px; --x3: -78px; --y3: -28px; --x4: -112px; --y4: -56px; --spin: -220deg; }
.ew-brand-sparkle:nth-child(12) { --s: 4px; --d: 3.6s; --delay: -3.05s; --spark-core: #eefcff; --spark-edge: #57c7ff; --x1: 0px; --y1: 14px; --x2: 10px; --y2: 58px; --x3: -8px; --y3: 80px; --x4: 14px; --y4: 118px; --spin: 130deg; }
.ew-brand-sparkle:nth-child(13) { --s: 3px; --d: 2.55s; --delay: -2.25s; --spark-core: #fff; --spark-edge: #73d4ff; --x1: 13px; --y1: 2px; --x2: 42px; --y2: -2px; --x3: 88px; --y3: 22px; --x4: 126px; --y4: 8px; --spin: 260deg; }
.ew-brand-sparkle:nth-child(14) { --s: 2px; --d: 2.95s; --delay: -1.05s; --spark-core: #ccf5ff; --spark-edge: #299fff; --x1: -13px; --y1: 4px; --x2: -42px; --y2: 2px; --x3: -86px; --y3: 26px; --x4: -126px; --y4: 12px; --spin: -260deg; }
.ew-brand-sparkle:nth-child(15) { --s: 5px; --d: 3.45s; --delay: -2.85s; --spark-core: #fff; --spark-edge: #a7edff; --x1: 4px; --y1: -14px; --x2: 22px; --y2: -54px; --x3: 50px; --y3: -78px; --x4: 32px; --y4: -122px; --spin: 210deg; }
.ew-brand-sparkle:nth-child(16) { --s: 3px; --d: 2.7s; --delay: -1.6s; --spark-core: #e8fbff; --spark-edge: #44bfff; --x1: -5px; --y1: -14px; --x2: -24px; --y2: -54px; --x3: -54px; --y3: -72px; --x4: -34px; --y4: -120px; --spin: -210deg; }
.ew-brand-mark-sm {
  width: 22px;
  height: 22px;
  opacity: .75;
  transform: none;
  filter: drop-shadow(0 0 10px rgba(236,160,83,.18));
}
.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; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); 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);
  white-space: nowrap;
  pointer-events: none;
}
@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-nav-links {
  margin-left: auto;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 18px;
}
.ew-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
  transition: color .2s ease;
}
.ew-nav-link:hover { color: #fff; }

.ew-socials { align-self: center; display: flex; align-items: center; 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; }

.ew-menu-details {
  position: fixed;
  top: 66px;
  right: 24px;
  z-index: 65;
}
.ew-menu-details summary {
  list-style: none;
}
.ew-menu-details summary::-webkit-details-marker { display: none; }
.ew-menu-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(3,5,8,.78);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.ew-menu-toggle:hover {
  border-color: rgba(255,255,255,.42);
  background: rgba(12,20,32,.9);
  transform: translateY(-1px);
}
.ew-menu-toggle-lines,
.ew-menu-toggle-lines::before,
.ew-menu-toggle-lines::after {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform .28s ease, opacity .2s ease;
}
.ew-menu-toggle-lines {
  position: relative;
}
.ew-menu-toggle-lines::before,
.ew-menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}
.ew-menu-toggle-lines::before { transform: translateY(-6px); }
.ew-menu-toggle-lines::after { transform: translateY(6px); }
.ew-menu-details[open] .ew-menu-toggle-lines { transform: rotate(45deg); }
.ew-menu-details[open] .ew-menu-toggle-lines::before { opacity: 0; transform: translateY(0); }
.ew-menu-details[open] .ew-menu-toggle-lines::after { transform: rotate(-90deg); }
.ew-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(260px, calc(100vw - 32px));
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(3,5,8,.92);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.ew-menu-details[open] .ew-menu-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ew-menu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  border: 1px solid transparent;
}
.ew-menu-panel a:hover {
  color: #fff;
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
@keyframes ew-brand-aura {
  0%, 100% { opacity: .58; transform: scale(.94); }
  50% { opacity: .92; transform: scale(1.08); }
}
@keyframes ew-brand-field {
  0%, 100% { opacity: .34; transform: rotate(0deg) scale(.94); }
  25% { opacity: .82; transform: rotate(-5deg) scale(1.05); }
  55% { opacity: .48; transform: rotate(7deg) scale(.98); }
  75% { opacity: .9; transform: rotate(-2deg) scale(1.08); }
}
@keyframes ew-brand-particle {
  0% { opacity: 0; transform: translate(-50%, -50%) translate(0, 0) scale(.1) rotate(0deg); filter: blur(.5px); }
  7% { opacity: .98; transform: translate(-50%, -50%) translate(var(--x1), var(--y1)) scale(1.35) rotate(22deg); filter: blur(0); }
  16% { opacity: .52; transform: translate(-50%, -50%) translate(var(--x2), var(--y2)) scale(.55) rotate(-18deg); }
  32% { opacity: 1; transform: translate(-50%, -50%) translate(var(--x3), var(--y3)) scale(1.1) rotate(48deg); }
  58% { opacity: .5; transform: translate(-50%, -50%) translate(var(--x2), var(--y2)) scale(.74) rotate(-36deg); }
  84% { opacity: .28; transform: translate(-50%, -50%) translate(var(--x4), var(--y4)) scale(.42) rotate(var(--spin)); }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--x4), var(--y4)) scale(.05) rotate(var(--spin)); filter: blur(1px); }
}
@media (prefers-reduced-motion: reduce) {
  .ew-brand-sigil::before,
  .ew-brand-sigil::after,
  .ew-brand-sparkle {
    animation: none;
  }
  .ew-brand-sparkle { display: none; }
}
@media (max-width: 720px) {
  .ew-nav-inner { height: 60px; min-height: 60px; padding: 0 16px; gap: 12px; align-items: flex-start; }
  .ew-brand-sigil { width: 104px; height: 60px; flex-basis: 104px; margin: 0; }
  .ew-brand-mark { width: 112px; height: 112px; transform: translateY(4px); }
  .ew-nav-status { display: none; }
  .ew-nav-links {
    position: absolute;
    right: 92px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    margin-left: 0;
    gap: 0;
  }
  .ew-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    font-size: 9px;
    letter-spacing: .18em;
    color: rgba(255,255,255,.76);
  }
  .ew-nav-game-link { display: none; }
  .ew-nav-software-link { display: none; }
  .ew-socials {
    position: absolute;
    right: 16px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    display: flex;
  }
  .ew-social {
    width: 30px;
    height: 30px;
    background: rgba(3,5,8,.4);
  }
  .ew-icon { width: 14px; height: 14px; }
  .ew-menu-details { top: 66px; right: 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: 10px;
  flex-wrap: nowrap;
}
.ew-seg { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ew-seg-value {
  font-family: var(--font-mono); font-weight: 300; font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 6vw, 4.5rem);
  letter-spacing: .08em; line-height: 1;
  color: #fff; user-select: none;
  text-shadow: 0 0 40px rgba(255,255,255,.15);
}
.ew-seg-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .22em;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
}
.ew-seg-divider { display: flex; flex-direction: column; gap: 6px; padding-bottom: 22px; }
.ew-seg-divider i { width: 5px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.3); }
@media (min-width: 640px)  {
  .ew-countdown { gap: 32px; }
  .ew-seg-value { letter-spacing: .12em; }
  .ew-seg-label { font-size: 11px; letter-spacing: .4em; margin-top: 16px; }
  .ew-seg-divider { gap: 8px; padding-bottom: 28px; }
  .ew-seg-divider i { width: 6px; height: 6px; }
}
@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: 720px) { .ew-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .ew-grid { grid-template-columns: repeat(4, 1fr); } }

.ew-card {
  display: block;
  position: relative; overflow: hidden; height: 420px;
  border: 1px solid rgba(255,255,255,.1); background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform .5s ease, border-color .5s ease;
}
.ew-card:hover { border-color: rgba(255,255,255,.3); transform: translateY(-8px); }
.ew-card-link:focus-visible {
  outline: none;
  border-color: rgba(127,212,255,.78);
  box-shadow: 0 0 0 2px rgba(127,212,255,.18), 0 0 34px rgba(127,212,255,.18);
}
.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);
}
.ew-card-cta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 18px;
  padding: 0 11px;
  border: 1px solid rgba(127,212,255,.32);
  color: rgba(255,255,255,.82);
  background: rgba(3,7,14,.42);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}
.ew-card-link:hover .ew-card-cta,
.ew-card-link:focus-visible .ew-card-cta,
.ew-card-cta-link:hover,
.ew-card-cta-link:focus-visible {
  border-color: rgba(255,255,255,.62);
  color: #fff;
  background: rgba(127,212,255,.12);
  box-shadow: 0 0 20px rgba(127,212,255,.16);
}
.ew-card-cta-link {
  text-decoration: none;
}
.ew-card-service {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.ew-card-service p {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.55;
}
.ew-card-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ew-card-service-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.86);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.ew-card-service-actions a:hover,
.ew-card-service-actions a:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #030508;
}

/* 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-lite-section .ew-game-fullscreen-launch-row,
.ew-game-lite-section .ew-game-layout {
  display: none !important;
}
.ew-game-promo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .ew-game-promo {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  }
}
.ew-game-preview {
  position: relative;
  display: block;
  min-height: 260px;
  border: 1px solid rgba(127,212,255,.26);
  background: #04070c;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 26px 60px rgba(0,0,0,.34);
  isolation: isolate;
}
.ew-game-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3,7,14,0) 46%, rgba(3,7,14,.82) 100%),
    radial-gradient(circle at 50% 42%, rgba(127,212,255,.16), rgba(127,212,255,0) 42%);
  pointer-events: none;
  z-index: 1;
}
.ew-game-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform .28s ease, filter .28s ease;
}
.ew-game-preview:hover img,
.ew-game-preview:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1.08);
}
.ew-game-preview-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.58);
  background: rgba(3,7,14,.52);
  color: #fff;
  box-shadow: 0 0 34px rgba(127,212,255,.34), inset 0 0 18px rgba(255,255,255,.08);
  backdrop-filter: blur(5px);
}
.ew-game-preview-play svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  margin-left: 4px;
}
.ew-game-promo-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 20% 0%, rgba(127,212,255,.13), rgba(127,212,255,0) 36%),
    linear-gradient(180deg, rgba(9,18,30,.9), rgba(4,7,12,.94));
}
.ew-game-promo-panel .ew-mono-xs {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(127,212,255,.78);
}
.ew-game-promo-panel h3 {
  margin: 0;
  font-family: "Clash Display", "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .95;
  letter-spacing: 0;
  text-transform: uppercase;
}
.ew-game-promo-panel p {
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
}
.ew-game-promo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ew-game-promo-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.62);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ew-game-home-shell[hidden] {
  display: none !important;
}
.ew-game-home-shell {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #030508;
}
.ew-game-home-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #030508;
}
.ew-game-home-close {
  position: absolute;
  right: calc(12px + env(safe-area-inset-right, 0px));
  top: calc(12px + env(safe-area-inset-top, 0px));
  z-index: 3;
  min-width: 76px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(3,5,8,.72);
  color: #fff;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.ew-game-home-close:hover,
.ew-game-home-close:focus-visible {
  border-color: rgba(127,212,255,.7);
  box-shadow: 0 0 24px rgba(127,212,255,.22);
}
.ew-game-fullscreen-launch-row {
  display: flex;
  justify-content: center;
  margin: -12px 0 24px;
}
.ew-game-fullscreen-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid rgba(127,212,255,.42);
  background: linear-gradient(180deg, rgba(10,20,34,.92), rgba(3,7,15,.86));
  color: #f4fbff;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(127,212,255,.18), inset 0 0 18px rgba(127,212,255,.08);
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.ew-game-fullscreen-launch svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.ew-game-fullscreen-launch:hover,
.ew-game-fullscreen-launch:focus-visible {
  border-color: rgba(255,255,255,.72);
  background: linear-gradient(180deg, rgba(15,33,54,.96), rgba(5,10,20,.92));
  box-shadow: 0 0 34px rgba(127,212,255,.28), inset 0 0 22px rgba(127,212,255,.1);
  transform: translateY(-1px);
}
.ew-game-fullscreen-launch:active {
  transform: translateY(0);
  background: rgba(255,255,255,.1);
}
@media (min-width: 640px) {
  .ew-game-fullscreen-launch-row {
    justify-content: flex-end;
    margin-top: -18px;
  }
}
@media (max-width: 640px) {
  .ew-game-fullscreen-launch-row {
    margin: -6px 0 18px;
  }
  .ew-game-fullscreen-launch {
    width: 100%;
    min-height: 48px;
    letter-spacing: .18em;
  }
}

.ew-game-frame {
  position: relative;
  border: 1px solid rgba(255,255,255,.12);
  background: #04070c;
  overflow: hidden;
}
body.ew-game-fullscreen-lock {
  overflow: hidden;
  touch-action: none;
}
body.ew-game-fullscreen-lock .ew-nav,
body.ew-game-fullscreen-lock .ew-public-nav,
body.ew-game-fullscreen-lock .ew-fg-bar,
body.ew-mobile-game-active .ew-nav,
body.ew-game-landscape-forced .ew-nav,
body.ew-game-landscape-forced .ew-public-nav,
body.ew-game-landscape-forced .ew-fg-bar {
  display: none !important;
}
.ew-game-frame:fullscreen,
.ew-game-frame:-webkit-full-screen,
.ew-game-frame.ew-game-frame-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 10000;
  border: 0;
  border-radius: 0;
  background: #04070c;
}
.ew-game-frame:fullscreen #ew-game-canvas,
.ew-game-frame:-webkit-full-screen #ew-game-canvas,
.ew-game-frame.ew-game-frame-fullscreen #ew-game-canvas {
  width: 100% !important;
  height: 100% !important;
}

.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;
  pointer-events: auto;
  /* 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; }

/* "Enter the Arena" primary CTA — glow treatment (desktop + mobile) */
#ew-game-btn-start {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #e8f3ff 100%);
  color: #03060a;
  border: 1px solid rgba(127,212,255,.8);
  padding: 16px 34px;
  font-size: 12px;
  letter-spacing: .4em;
  animation: ewGlowPulse 2.6s ease-in-out infinite;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
}
#ew-game-btn-start:hover {
  background: linear-gradient(180deg, #ffffff 0%, #d0e8ff 100%);
  color: #03060a;
  transform: translateY(-1px);
}
#ew-game-btn-start:active {
  transform: scale(.98);
  animation-play-state: paused;
}
#ew-game-btn-start::after {
  /* racing sheen across the button */
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(127,212,255,.6) 50%,
    rgba(255,255,255,0) 100%);
  filter: blur(3px);
  animation: ewGlowSheen 4.2s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
}

.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 CTA (swap embedded game for fullscreen page link)
   ============================================================ */
.ew-game-mobile-cta { display: none !important; }
.ew-game-mobile-cta-icon svg { width: 18px; height: 18px; color: #fff; }

@keyframes ewGlowPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,.35) inset,
      0 0 18px rgba(127,212,255,.45),
      0 0 40px rgba(127,212,255,.25),
      0 0 0 transparent;
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,.7) inset,
      0 0 32px rgba(127,212,255,.75),
      0 0 70px rgba(127,212,255,.45),
      0 0 0 transparent;
  }
}
@keyframes ewGlowTextPulse {
  0%, 100% { text-shadow: 0 0 14px rgba(255,255,255,.55), 0 0 28px rgba(127,212,255,.45); }
  50%      { text-shadow: 0 0 22px rgba(255,255,255,.95), 0 0 48px rgba(127,212,255,.8); }
}
@keyframes ewGlowSheen {
  0%   { transform: translateX(-120%) skewX(-18deg); }
  60%  { transform: translateX(220%)  skewX(-18deg); }
  100% { transform: translateX(220%)  skewX(-18deg); }
}

@media (max-width: 640px) {
  .ew-game-layout .ew-game-frame { display: block; }

  .ew-game-mobile-cta {
    position: relative;
    display: none !important;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 12px;
    padding: 36px 24px;
    text-align: center;
    background:
      radial-gradient(120% 180% at 50% 0%, rgba(127,212,255,.12) 0%, rgba(127,212,255,0) 55%),
      linear-gradient(180deg, #0a1220 0%, #05070c 100%);
    border: 1px solid rgba(127,212,255,.35);
    border-radius: 2px;
    color: #fff;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    isolation: isolate;
    animation: ewGlowPulse 2.6s ease-in-out infinite;
    transition: transform .15s ease;
  }
  .ew-game-mobile-cta::before {
    /* corner clip marks */
    content: "";
    position: absolute; inset: 6px;
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
  }
  .ew-game-mobile-cta::after {
    /* diagonal sheen that races across every ~4s */
    content: "";
    position: absolute; top: 0; bottom: 0;
    width: 35%;
    background: linear-gradient(90deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.22) 50%,
      rgba(255,255,255,0) 100%);
    filter: blur(2px);
    animation: ewGlowSheen 4.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
  }
  .ew-game-mobile-cta:active {
    transform: scale(.98);
    animation-play-state: paused;
    box-shadow:
      0 0 0 1px rgba(127,212,255,.9) inset,
      0 0 40px rgba(127,212,255,.9),
      0 0 80px rgba(127,212,255,.55);
  }

  .ew-game-mobile-cta > * { position: relative; z-index: 3; }

  .ew-game-mobile-cta .ew-mono-xs {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px; font-weight: 700; letter-spacing: .5em; text-transform: uppercase;
    color: rgba(127,212,255,.85);
    text-shadow: 0 0 10px rgba(127,212,255,.5);
  }
  .ew-game-mobile-cta-title {
    font-family: "Clash Display", "Manrope", sans-serif;
    font-weight: 900; text-transform: uppercase; letter-spacing: -.02em;
    font-size: 2.4rem; line-height: 1;
    color: #fff;
    animation: ewGlowTextPulse 2.6s ease-in-out infinite;
  }
  /* Small play-glyph pill above the title */
  .ew-game-mobile-cta-icon {
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    background: radial-gradient(circle at 40% 40%, rgba(127,212,255,.35), rgba(127,212,255,.05) 70%);
    border: 1px solid rgba(127,212,255,.5);
    box-shadow: 0 0 18px rgba(127,212,255,.55), inset 0 0 10px rgba(127,212,255,.25);
    color: #fff;
  }
  .ew-game-mobile-cta-icon svg {
    width: 18px; height: 18px;
    fill: #fff;
    filter: drop-shadow(0 0 6px rgba(255,255,255,.6));
    margin-left: 3px; /* optical center the triangle */
  }
}

/* ============================================================
   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); }
.ew-game-exit-fullscreen {
  position: absolute;
  right: calc(10px + env(safe-area-inset-right, 0px));
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 36px;
  padding: 0 12px;
  background: rgba(3,5,8,.72);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ew-game-exit-fullscreen:active { background: rgba(255,255,255,.12); }
.ew-game-frame:fullscreen .ew-game-exit-fullscreen,
.ew-game-frame:-webkit-full-screen .ew-game-exit-fullscreen,
.ew-game-frame.ew-game-frame-fullscreen .ew-game-exit-fullscreen {
  display: flex;
}
/* 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; }
}

/* Phone game entry: show launcher first, then open the menu in a fullscreen shell. */
@media (max-width: 640px) {
  .ew-game-layout {
    display: block;
  }
  .ew-game-layout .ew-game-frame,
  .ew-game-layout .ew-leaderboard {
    display: none;
  }
  .ew-game-mobile-cta {
    display: flex !important;
    width: 100%;
    min-height: 220px;
    border: 1px solid rgba(127,212,255,.35);
  }
  .ew-game-mobile-cta .ew-mono-xs:last-child:not(.ew-game-mobile-orientation) {
    display: none;
  }
  body.ew-mobile-game-active .ew-game-mobile-cta {
    display: none !important;
  }
  body.ew-mobile-game-active .ew-game-layout .ew-game-frame,
  .ew-game-layout .ew-game-frame.ew-game-frame-fullscreen {
    display: block;
  }
  .ew-game-frame.ew-mobile-game-fullscreen .ewm-overlay {
    min-height: 100%;
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .ew-game-frame.ew-mobile-game-fullscreen::after {
    content: "Flip phone to landscape";
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 90;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 360px;
    padding: 8px 10px;
    border: 1px solid rgba(127,212,255,.45);
    background: rgba(3,5,8,.86);
    color: rgba(255,255,255,.9);
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .24em;
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
    box-shadow: 0 0 24px rgba(127,212,255,.25);
  }
  .ew-game-frame.ew-mobile-game-fullscreen .ewm-header {
    padding-top: 48px;
  }
}

/* ============================================================
   Subtle mailing-list opt-in (game-over overlay)
   ============================================================ */
.ew-sub-wrap {
  margin-top: 18px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.ew-sub-toggle {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.4);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 8px;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
.ew-sub-toggle:hover { color: rgba(127,212,255,.9); }
.ew-sub-chev {
  display: inline-block;
  width: 12px;
  color: rgba(127,212,255,.7);
  font-weight: 700;
  transition: transform .2s;
}
.ew-sub-toggle.is-open .ew-sub-chev { transform: rotate(45deg); }
.ew-sub-panel {
  margin-top: 10px;
  padding: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  animation: ewSubIn .2s ease;
}
@keyframes ewSubIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
#ew-sub-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
#ew-sub-form input {
  padding: 10px 12px;
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: .05em;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  outline: none;
  transition: border-color .2s, background .2s;
}
#ew-sub-form input::placeholder { color: rgba(255,255,255,.3); letter-spacing: .05em; }
#ew-sub-form input:focus {
  border-color: rgba(127,212,255,.6);
  background: rgba(0,0,0,.5);
}
.ew-sub-msg {
  margin: 8px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(127,212,255,.85);
  min-height: 14px;
}
.ew-sub-msg.is-error { color: #ff8a9c; }
@media (max-width: 640px) {
  .ew-sub-wrap { margin-top: 14px; }
  .ew-sub-toggle { font-size: 9px; letter-spacing: .25em; }
  #ew-sub-form input { font-size: 16px; }  /* prevent iOS zoom */
}


/* ============ Character Select (shared by index.php + game.php) ============ */
.ew-char-select { padding: 16px !important; }
.ew-char-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 820px;
  margin: 14px 0 10px;
}
@media (max-width: 720px) {
  .ew-char-cards { grid-template-columns: 1fr; max-width: 340px; }
}
.ew-char-card {
  background: rgba(3, 5, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--ew-char-color, #7fd4ff);
  padding: 14px 12px;
  cursor: pointer;
  text-align: left;
  color: #fff;
  font-family: inherit;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  -webkit-tap-highlight-color: transparent;
  display: flex; flex-direction: column; gap: 6px;
}
.ew-char-card:hover, .ew-char-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ew-char-color, #7fd4ff);
  background: rgba(127, 212, 255, 0.07);
  outline: none;
}
.ew-char-portrait {
  width: 100%; height: 96px;
  background: radial-gradient(ellipse at 50% 70%, rgba(127,212,255,.15), transparent 65%);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  padding-bottom: 6px;
}
.ew-char-portrait canvas { display: block; image-rendering: pixelated; }
.ew-char-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--ew-char-color, #7fd4ff);
  margin: 2px 0 0;
}
.ew-char-perk {
  font-size: 12px; line-height: 1.45;
  color: rgba(255,255,255,.85);
  margin: 0 0 4px;
  min-height: 34px;
}
.ew-char-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.ew-char-stats .ew-stat-bar {
  display: inline-block;
  width: 56px; height: 4px; background: rgba(255,255,255,.08);
  vertical-align: middle; margin-left: 4px; position: relative;
}
.ew-char-stats .ew-stat-bar span {
  position: absolute; inset: 0 auto 0 0;
  background: var(--ew-char-color, #7fd4ff);
}
.ew-char-stats b { color: #fff; font-weight: 700; }
.ew-char-back { margin-top: 8px; }

/* ============ Foreground contrast lift ============ */
:root {
  --muted: #b9c3d8;
  --line: rgba(255, 255, 255, 0.22);
}
.ew-nav {
  border-bottom-color: rgba(255,255,255,.16);
  background: rgba(3,5,8,.58);
}
.ew-nav-link,
.ew-public-menu a,
.ew-menu-panel a,
.ew-footer-links a,
.ew-footer-brand {
  color: rgba(255,255,255,.82);
}
.ew-brand-icon-sm,
.ew-tagline,
.ew-overline,
.ew-seg-label,
.ew-scroll-hint,
.ew-eyebrow,
.ew-heading-2 span,
.ew-divisions-copy,
.ew-card-top,
.ew-card-desc,
.ew-card-service p,
.ew-footer-brand,
.ew-footer-links a,
.ew-audio-label,
.ew-game-promo-panel p,
.ew-game-promo-meta span {
  color: rgba(255,255,255,.78);
}
.ew-card,
.ew-social,
.ew-cta-secondary,
.ew-audio-toggle,
.ew-audio-skip,
.ew-game-preview,
.ew-game-promo-panel,
.ew-game-frame,
.ew-leaderboard,
.ew-sub-panel,
.ew-char-card {
  border-color: rgba(255,255,255,.24);
}
.ew-card-cta,
.ew-card-service-actions a,
.ew-game-fullscreen-launch,
.ew-game-btn-ghost {
  border-color: rgba(127,212,255,.58);
  color: rgba(255,255,255,.94);
}
.ew-game-hud-col {
  color: rgba(255,255,255,.94);
}
.ew-game-hud-col .ew-mono-xs,
.ew-game-overlay .ew-mono-xs,
.ew-lb-head .ew-mono-xs,
.ew-lb-rank,
.ew-lb-loading,
.ew-lb-empty,
.ew-lb-form label,
.ew-lu-tag,
.ew-char-stats {
  color: rgba(255,255,255,.72);
}
.ew-lb-row {
  border-color: rgba(255,255,255,.18);
}
.ew-lu-card {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.28);
}
.ew-lu-desc,
#ew-lb-msg,
.ew-char-perk {
  color: rgba(255,255,255,.86);
}
#ew-sub-form input {
  border-color: rgba(255,255,255,.28);
}
#ew-sub-form input::placeholder {
  color: rgba(255,255,255,.56);
}
