600;700;800&display=swap");

:root {
  --bg-0: #03060f;
  --bg-1: #07111f;
  --ink: #f4f7ff;
  --muted: #a9b9d4;
  --line: rgba(126, 178, 255, 0.28);
  --accent: #f0c14b;
  --accent-2: #5ec8ff;
  --danger: #ff6b7a;
  --panel: rgba(7, 14, 28, 0.88);
  --font: "Cairo", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg-0);
}

body.page-home {
  overflow-x: hidden;
  background: #02040a;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }

/* —— Atmosphere —— */
.space-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #02040a;
}

.hero-art {
  position: absolute;
  inset: 0;
  background:
    url("/img/home-hero.jpg?v=hq") center 32% / cover no-repeat;
  transform: translateZ(0);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 14, 0.18) 0%, rgba(2, 6, 14, 0.08) 28%, transparent 48%, rgba(2, 6, 14, 0.22) 78%, rgba(2, 6, 14, 0.55) 100%),
    linear-gradient(180deg, rgba(2, 6, 14, 0.42) 0%, transparent 22%, transparent 52%, rgba(2, 6, 14, 0.72) 82%, #02040a 100%);
}

.stars {
  position: absolute;
  inset: -20%;
  background-repeat: repeat;
  opacity: 0.28;
  mix-blend-mode: screen;
  animation: drift 90s linear infinite;
}

.stars-a {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 80px 120px, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 160px 70px, #fff, transparent),
    radial-gradient(1px 1px at 240px 180px, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 320px 40px, #fff, transparent);
  background-size: 360px 220px;
}

.stars-b {
  opacity: 0.18;
  animation-duration: 140s;
  animation-direction: reverse;
  background-image:
    radial-gradient(1px 1px at 50px 90px, #9fd5ff, transparent),
    radial-gradient(1px 1px at 200px 40px, #fff, transparent),
    radial-gradient(2px 2px at 280px 150px, rgba(255,220,140,.9), transparent);
  background-size: 400px 260px;
}

.ship-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.space-ship {
  position: absolute;
  width: min(460px, 48vw);
  top: 7%;
  left: -28%;
  overflow: visible;
  opacity: 0.96;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(94, 200, 255, 0.35));
  animation: ship-fly 18s linear infinite;
}

.engine-bloom {
  animation: trail-pulse 1.8s ease-in-out infinite;
}

.engine-core {
  animation: trail-pulse 1.1s ease-in-out infinite;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-80px, 40px, 0); }
}

@keyframes ship-fly {
  0% { transform: translate3d(0, 8vh, 0) rotate(-8deg); opacity: 0; }
  8% { opacity: 0.95; }
  52% { transform: translate3d(58vw, 2vh, 0) rotate(-4deg); opacity: 1; }
  88% { opacity: 0.9; }
  100% { transform: translate3d(118vw, -6vh, 0) rotate(-1deg); opacity: 0; }
}

@keyframes trail-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes pulse {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Chrome —— */
.hero-plane,
.world,
.site-foot,
.auth,
.wrap {
  position: relative;
  z-index: 1;
}

.site-nav {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, rgba(2, 6, 14, 0.55), transparent);
  overflow: visible;
}

.brand-mark {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  font-size: 1.05rem;
}

.brand-mark em {
  font-style: normal;
  color: var(--accent);
}

.nav-quiet {
  color: var(--muted);
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
}

.nav-quiet:hover {
  color: #fff;
  border-bottom-color: var(--line);
}

.laser-bolt {
  opacity: 0;
  transform-origin: left center;
}

.laser-bolt.on {
  opacity: 1;
  filter: drop-shadow(0 0 6px #5ef0ff);
}

.user-menu {
  position: relative;
  z-index: 41;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: min(72vw, 28rem);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 32, 0.65);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.user-chip-icon,
.user-chip-caret {
  flex: 0 0 auto;
  color: var(--accent-2);
}

.user-chip-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.user-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.92rem;
}

.user-chip-caret {
  width: 0.7rem;
  height: 0.7rem;
  border: 0;
}

.user-chip:hover {
  border-color: rgba(94, 200, 255, 0.55);
  transform: none;
  color: #fff;
  background: rgba(12, 22, 42, 0.9);
}

.user-menu.open .user-chip-caret {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 0.4rem;
  background: rgba(6, 12, 24, 0.96);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 2px;
  z-index: 50;
}

.user-dropdown[hidden] {
  display: none;
}

.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  text-align: start;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(94, 200, 255, 0.12);
  color: #fff;
  transform: none;
}

.account-page {
  padding: 36px 0 80px;
  max-width: 920px;
}

.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.account-hero h1 {
  margin: 0.15rem 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.account-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.account-grid h2,
.account-grid h3 {
  margin-top: 0;
}

.info-list {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.info-list > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(126, 178, 255, 0.12);
}

.info-list dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.info-list dd {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 860px) {
  .account-grid { grid-template-columns: 1fr; }
  .info-list > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .space-ship { top: 8%; width: 72vw; }
}

/* —— Home hero (one composition) —— */
.hero-plane {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.4rem, 4vh, 3rem) clamp(1.2rem, 6vw, 5rem);
}

.hero-copy {
  max-width: 34rem;
  width: min(34rem, 100%);
  text-align: center;
  margin-inline: auto;
  padding: 1rem 1.25rem 1.15rem;
  border: 1px solid rgba(240, 193, 75, 0.38);
  border-radius: 12px;
  background: rgba(3, 7, 16, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  animation: rise 0.9s ease-out both;
}

.kicker {
  margin: 0 0 0.55rem;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-hero {
  margin: 0 0 0.45rem;
  font-family: var(--font);
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 0 48px rgba(240, 193, 75, 0.28);
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
}

.lede {
  margin: 0 auto;
  color: #d5e0f2;
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 36ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
  animation: rise 1.1s ease-out 0.15s both;
}

.btn-primary,
.btn-ghost,
.btn,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0.72rem 1.35rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary,
.btn,
button,
input[type="submit"] {
  color: #120e05;
  background: linear-gradient(180deg, #f0d060, var(--accent));
}

.btn-primary:hover,
.btn:hover,
button:hover {
  transform: translateY(-1px);
  color: #120e05;
}

.btn-ghost,
.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover,
.ghost:hover {
  border-color: rgba(62, 182, 255, 0.55);
  color: #fff;
}

.user-chip,
.user-chip:hover,
.user-dropdown button,
.user-dropdown button:hover {
  color: var(--ink);
  background: rgba(8, 16, 32, 0.65);
  transform: none;
}

.user-dropdown button,
.user-dropdown button:hover {
  background: transparent;
  color: var(--ink);
}

.btn.google {
  background: #fff;
  color: #3c4043;
  border-color: #dadce0;
  gap: 8px;
  font-weight: 600;
}

/* —— World section —— */
.world {
  padding: clamp(3rem, 8vh, 5rem) clamp(1.2rem, 6vw, 5rem) clamp(4rem, 10vh, 6rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(2, 6, 14, 0.2), rgba(2, 6, 14, 0.92));
}

.world h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.world-lede {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 40ch;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 3vw, 1.8rem);
}

.world-card {
  padding: 1.2rem 1.15rem 1.25rem;
  border: 1px solid rgba(126, 178, 255, 0.22);
  border-radius: 10px;
  background: rgba(8, 16, 32, 0.62);
  backdrop-filter: blur(8px);
}

.world-grid h3 {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 1.05rem;
}

.world-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-foot {
  padding: 1.25rem clamp(1.2rem, 5vw, 3.5rem) 2rem;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}

/* —— Auth / account shells —— */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(1.2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 16, 0.55);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
}

.brand span { color: var(--accent); }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.store-page {
  padding: 28px 0 80px;
  max-width: 1080px;
}

.store-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.store-hero h1 { margin: 0.2rem 0 0.35rem; }

.store-commander {
  min-width: 220px;
}

.store-section { margin: 1.5rem 0; }
.store-section h2 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.offer-card {
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 16, 32, 0.72);
  display: grid;
  gap: 0.45rem;
}

.offer-card.featured {
  border-color: rgba(240, 193, 75, 0.65);
  box-shadow: 0 0 0 1px rgba(240, 193, 75, 0.25);
}

.offer-badge {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.offer-card h3 { margin: 0; font-size: 1.05rem; }

.offer-items {
  margin: 0;
  padding-inline-start: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.offer-card button { width: 100%; margin-top: 0.35rem; }
.offer-card button:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.auth,
.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.auth {
  max-width: 440px;
  padding: 48px 0 80px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
}

form { display: grid; gap: 12px; }
label { font-size: 13px; color: var(--muted); }

input, select {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #07101d;
  color: var(--ink);
  font: inherit;
}

.err { color: var(--danger); min-height: 1.2em; font-size: 14px; }
.ok { color: #7dffb3; }

hr.or {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.hint { color: var(--muted); font-size: 13px; }

.auth.create-page { max-width: 720px; }

.faction-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.faction-card {
  display: grid;
  gap: 4px;
  position: relative;
  cursor: pointer;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #07101d;
  color: var(--ink);
}

.faction-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.faction-card strong { color: #fff; font-size: 15px; }
.faction-card span { color: var(--muted); font-size: 13px; line-height: 1.45; }

.faction-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

@media (min-width: 640px) {
  .faction-grid { grid-template-columns: repeat(3, 1fr); }
}

.chars { display: grid; gap: 12px; }

.char {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
}

footer {
  padding: 24px 7vw 40px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

/* —— Store / offers —— */
.page-store .hero-art.store-art {
  background:
    linear-gradient(180deg, rgba(2, 6, 14, 0.35), rgba(2, 6, 14, 0.72)),
    url("/asset/map/2/load_a_01.jpg") center 40% / cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
}

.page-store .space-ship { display: none; }

.store-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 1.2rem 0 4.5rem;
}

.store-hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 1.35rem 1.4rem 1.4rem;
  border: 1px solid rgba(240, 193, 75, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(8, 18, 36, 0.82), rgba(8, 18, 36, 0.55)),
    url("/img/home-hero.jpg?v=hq") 70% 35% / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.store-hero-panel h1 {
  margin: 0.25rem 0 0.45rem;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  max-width: 18ch;
}

.store-hero-panel .hint { max-width: 48ch; }

.store-commander {
  min-width: 240px;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(4, 10, 22, 0.78);
}

.store-status { min-height: 1.4rem; margin: 0.7rem 0 0.4rem; }

.store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.4rem 0 1.3rem;
}

.store-tabs button {
  color: var(--muted);
  background: rgba(8, 16, 32, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  transform: none;
}

.store-tabs button:hover {
  color: #fff;
  transform: none;
  border-color: rgba(94, 200, 255, 0.45);
}

.store-tabs button.is-on {
  color: #120e05;
  background: linear-gradient(180deg, #f0d060, var(--accent));
  border-color: transparent;
}

.store-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.offer-spotlight {
  display: grid;
  gap: 1rem;
}

.offer-card {
  overflow: hidden;
  border: 1px solid rgba(126, 178, 255, 0.22);
  border-radius: 14px;
  background: rgba(8, 16, 32, 0.78);
  backdrop-filter: blur(10px);
  display: grid;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 200, 255, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.offer-card.featured {
  border-color: rgba(240, 193, 75, 0.55);
  box-shadow: 0 0 0 1px rgba(240, 193, 75, 0.18), 0 18px 40px rgba(0, 0, 0, 0.32);
}

.offer-card.spotlight {
  grid-template-columns: minmax(180px, 0.42fr) 1fr;
}

.offer-card.owned { opacity: 0.72; }

.offer-art {
  position: relative;
  min-height: 132px;
  background:
    radial-gradient(circle at 30% 20%, rgba(94, 200, 255, 0.18), transparent 55%),
    linear-gradient(160deg, #132238, #071018);
}

.offer-face {
  position: absolute;
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45));
  animation: rise 0.6s ease both;
}

.offer-face.f0 { top: 28%; right: 18%; width: 86px; height: 86px; }
.offer-face.f1 { top: 18%; left: 16%; width: 58px; height: 58px; animation-delay: 0.08s; }
.offer-face.f2 { bottom: 12%; left: 38%; width: 48px; height: 48px; animation-delay: 0.16s; }
.offer-face.f3 { top: 12%; right: 46%; width: 40px; height: 40px; animation-delay: 0.22s; }

.offer-body {
  padding: 1rem 1.05rem 1.1rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.offer-badge {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.offer-badge.dim { color: var(--accent-2); font-weight: 700; }

.offer-card h3 { margin: 0; font-size: 1.12rem; }

.offer-loot {
  list-style: none;
  margin: 0.2rem 0 0.35rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  max-height: 9.5rem;
  overflow: auto;
}

.offer-loot li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.offer-loot img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.offer-buy { width: 100%; margin-top: 0.25rem; }
.offer-buy:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.store-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 14, 0.72);
  padding: 1.2rem;
}

.store-modal[hidden] { display: none; }

.store-modal-card {
  width: min(440px, 100%);
  padding: 1.2rem 1.25rem 1.3rem;
  border-radius: 14px;
  border: 1px solid rgba(240, 193, 75, 0.4);
  background: #0a1424;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.store-modal-card h2 { margin: 0.2rem 0 0.4rem; font-size: 1.2rem; }

.store-modal-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.store-modal-actions button { flex: 1; }

@media (max-width: 760px) {
  .offer-card.spotlight { grid-template-columns: 1fr; }
  .offer-art { min-height: 110px; }
}

@media (max-width: 860px) {
  .world-grid { grid-template-columns: 1fr; }
  .hero-plane {
    min-height: calc(100vh - 3.8rem);
    align-items: center;
    padding-bottom: 2.4rem;
  }
  .hero-copy { max-width: 100%; }
  @keyframes ship-fly {
    0% { transform: translate3d(0, 4vh, 0) rotate(-8deg); opacity: 0; }
    12% { opacity: 0.85; }
    100% { transform: translate3d(130vw, -4vh, 0) rotate(-2deg); opacity: 0; }
  }
}

/* Portal phone/tablet layout; desktop rules above remain intact. */
@media (max-width: 860px) {
  .site-nav, .nav { flex-wrap: wrap; gap: 12px; padding: 12px 4vw; }
  .brand, .brand-mark { max-width: 100%; overflow-wrap: anywhere; }
  .nav-tools { flex-wrap: wrap; min-width: 0; max-width: 100%; gap: 10px; }
  #nav-auth, .user-menu { min-width: 0; max-width: 100%; }
  .user-chip { max-width: min(100%, 84vw); min-height: 44px; }
  .user-dropdown { min-width: min(180px, 84vw); max-width: 84vw; }
  .nav-quiet { display: inline-flex; align-items: center; min-height: 44px; }
  .auth { padding: 24px 0 40px; }
  .panel { padding: clamp(14px, 4vw, 22px); }
  .panel, .hero-copy, .offer-body, .store-hero-panel > *, .account-grid > *, .char > div { min-width: 0; overflow-wrap: anywhere; }
  input, select, textarea { min-width: 0; max-width: 100%; font-size: 16px; }
  button, .btn, .btn-primary, .btn-ghost { min-height: 44px; touch-action: manipulation; }
  .hero-plane { min-height: calc(100svh - 100px); padding: 24px 4vw; }
  .hero-copy { padding: 18px 14px; }
  .lede { font-size: 1rem; }
  .store-hero-panel { padding: 16px; }
  .store-commander { min-width: 0; width: 100%; }
  .offer-grid { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
  .offer-card.spotlight { grid-template-columns: minmax(0, 1fr); }
  .store-modal { overflow-y: auto; padding: 12px; }
  .store-modal-card { max-height: calc(100dvh - 24px); overflow-y: auto; }
  .char { gap: 12px; flex-wrap: wrap; }
  .char button { flex-shrink: 0; }
  .info-list dd { overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .site-nav, .nav { align-items: flex-start; }
  .nav-tools, .nav > #nav-auth { width: 100%; }
  .cta-row { flex-direction: column; }
  .cta-row > a { width: 100%; }
  .brand-hero { font-size: 1.8rem; }
  .panel h1 { font-size: 1.6rem; }
  .store-modal-actions { flex-wrap: wrap; }
  .store-modal-actions button { flex-basis: 100%; }
}
@media (max-height: 500px) and (max-width: 960px) {
  .hero-plane { min-height: 0; padding-top: 16px; padding-bottom: 24px; }
  .auth { padding-top: 16px; }
}
