:root {
  --bg: #06131d;
  --bg-elevated: rgba(10, 27, 40, 0.84);
  --panel: rgba(7, 22, 34, 0.82);
  --panel-strong: rgba(10, 30, 44, 0.94);
  --line: rgba(150, 222, 227, 0.16);
  --line-strong: rgba(255, 196, 110, 0.38);
  --text: #eff8fb;
  --muted: #9ebbc4;
  --accent: #f2b55f;
  --accent-2: #59d0c9;
  --danger: #ff8a7a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: "Segoe UI Variable Display", "Bahnschrift SemiBold", "Trebuchet MS", sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(89, 208, 201, 0.22), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(255, 181, 95, 0.18), transparent 24%),
    linear-gradient(180deg, #08141f 0%, #061019 48%, #041018 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 95%);
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.26) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0 0.8px, transparent 1px);
  background-size: 20px 20px, 32px 32px;
  pointer-events: none;
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar,
.hero-grid,
.feature-band,
.ops-layout,
.campaign-panel {
  animation: rise-in 0.72s ease both;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 18, 28, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 196, 110, 0.94), rgba(89, 208, 201, 0.94));
  position: relative;
  box-shadow: inset 0 1px 10px rgba(255, 255, 255, 0.28), 0 14px 32px rgba(9, 26, 36, 0.34);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 2px solid rgba(6, 19, 29, 0.72);
}

.brand-mark::after {
  inset: 16px;
  border-radius: 9px;
  border-width: 3px;
}

.brand-kicker,
.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.brand-lockup h1,
.hero-panel h2,
.catalog-header h2,
.modal-card h2,
.ops-card h3,
.spotlight-card h3,
.mini-card h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.brand-lockup h1 {
  font-size: 24px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.topnav a,
.secondary-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.topnav a {
  padding: 10px 14px;
  border-radius: 999px;
}

.topnav a:hover,
.secondary-link:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.topnav a.is-active {
  color: #07131e;
  background: linear-gradient(135deg, var(--accent), #ffcf7e);
  box-shadow: 0 8px 20px rgba(242, 181, 95, 0.2);
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.top-actions {
  display: flex;
  gap: 10px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.primary-button,
.ghost-button,
.game-button,
.demo-user-button {
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-button:hover,
.ghost-button:hover,
.game-button:hover,
.demo-user-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  padding: 12px 18px;
  color: #07131e;
  background: linear-gradient(135deg, var(--accent), #ffcf7e);
  box-shadow: 0 12px 28px rgba(242, 181, 95, 0.28);
  font-weight: 700;
}

.ghost-button {
  padding: 12px 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.secondary-link {
  padding: 11px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.hero-panel,
.card,
.mini-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  isolation: isolate;
  min-height: 480px;
  padding: 34px;
  background:
    linear-gradient(130deg, rgba(7, 25, 37, 0.96), rgba(9, 35, 48, 0.7)),
    radial-gradient(circle at 100% 0%, rgba(255, 181, 95, 0.22), transparent 32%);
}

.hero-panel > *:not(.hero-visual) {
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 0;
  width: 47%;
  height: 250px;
  overflow: hidden;
  border: 1px solid rgba(150, 222, 227, 0.22);
  border-radius: 24px;
  background: rgba(5, 17, 27, 0.52);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
  transform: rotate(1.5deg);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 24%, rgba(4, 15, 24, 0.84) 100%);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.hero-visual-label {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.hero-visual-label span {
  color: var(--accent-2);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.hero-visual-label strong {
  font-family: var(--font-display);
  font-size: 22px;
}

.hero-panel::after,
.card::after,
.mini-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -50px auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(89, 208, 201, 0.18), transparent 72%);
  pointer-events: none;
}

.hero-panel h2 {
  max-width: 720px;
  margin-top: 10px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.94;
}

.hero-copy {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 380px;
  margin-top: 28px;
}

.stat-tile {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.stat-tile:hover {
  border-color: rgba(255, 196, 110, 0.34);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-2px);
}

.stat-tile:focus-visible,
.library-summary-item:focus-visible {
  outline: 3px solid rgba(89, 208, 201, 0.48);
  outline-offset: 3px;
}

.stat-arrow {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--accent);
  font-size: 16px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
}

.stat-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.hero-stack {
  display: grid;
  gap: 18px;
}

.card {
  padding: 24px;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 0 rgba(89, 208, 201, 0.42);
}

.status-dot.online {
  background: var(--accent-2);
  box-shadow: 0 0 0 8px rgba(89, 208, 201, 0.1);
}

.tiny-pill,
.chip-button,
.game-tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.tiny-pill,
.status-pill {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12px;
}

.member-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.member-name {
  margin: 0 0 6px;
  font-size: 30px;
  font-family: var(--font-display);
}

.member-avatar,
.profile-avatar,
.avatar-swatch {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 22px;
  color: #07131e;
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.member-avatar {
  width: 62px;
  height: 62px;
  font-size: 26px;
}

.avatar-tone-mint {
  background: linear-gradient(135deg, #8fe3d7, #c8f2bb);
}

.avatar-tone-amber {
  background: linear-gradient(135deg, #ffc267, #ffe39d);
}

.avatar-tone-ocean {
  background: linear-gradient(135deg, #7fc6ff, #c2e9ff);
}

.avatar-tone-coral {
  background: linear-gradient(135deg, #ff9e83, #ffd0a7);
}

.avatar-tone-violet {
  background: linear-gradient(135deg, #c9b2ff, #f0d7ff);
}

.avatar-tone-jade {
  background: linear-gradient(135deg, #8bd6a4, #d1f2ad);
}

.member-meta,
.member-hint,
.spotlight-card p,
.mini-card p,
.ops-card li,
.game-meta,
.game-copy,
.search-shell span,
.inline-tip,
.modal-copy {
  color: var(--muted);
}

.member-wallet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.wallet-cell {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-cell strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  color: var(--text);
}

.spotlight-points,
.bullet-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.spotlight-points li,
.bullet-list li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.mini-card {
  padding: 22px;
}

.quick-entry-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-entry-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 106px;
  padding: 14px 18px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quick-entry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 196, 110, 0.4);
  background: rgba(10, 34, 47, 0.94);
}

.quick-entry-art {
  display: grid;
  place-items: center;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.quick-entry-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-entry-art-member img,
.quick-entry-art-games img {
  object-fit: contain;
  padding: 10px;
}

.quick-entry-art-member {
  background: linear-gradient(140deg, rgba(255, 196, 110, 0.28), rgba(89, 208, 201, 0.18));
}

.quick-entry-art-gift {
  background: linear-gradient(140deg, rgba(89, 208, 201, 0.22), rgba(89, 136, 255, 0.18));
}

.quick-entry-art-gift img {
  opacity: 0.72;
}

.quick-entry-art-games {
  background: linear-gradient(140deg, rgba(106, 172, 255, 0.26), rgba(89, 208, 201, 0.14));
}

.quick-entry-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.quick-entry-copy strong {
  font-family: var(--font-display);
  font-size: 21px;
}

.quick-entry-copy small {
  color: var(--muted);
  font-size: 13px;
}

.quick-entry-arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: 22px;
  transition: transform 0.2s ease;
}

.quick-entry-card:hover .quick-entry-arrow {
  transform: translate(2px, -2px);
}

.spotlight-cta,
.campaign-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.spotlight-cta {
  margin-top: 8px;
}

.spotlight-cta:hover,
.campaign-link:hover {
  color: #ffda98;
}

.catalog-panel {
  margin-bottom: 18px;
}

.campaign-panel {
  margin-bottom: 18px;
  padding: 28px;
}

.campaign-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.campaign-heading h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.campaign-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.campaign-card {
  display: grid;
  grid-template-rows: 164px 1fr;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.campaign-card:hover {
  transform: translateY(-4px);
  border-color: rgba(89, 208, 201, 0.45);
  background: rgba(12, 42, 53, 0.86);
}

.campaign-art {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #173f52, #0c1e2d);
}

.campaign-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 26%, rgba(3, 12, 21, 0.72) 100%);
}

.campaign-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.campaign-card:hover .campaign-art img {
  transform: scale(1.05);
}

.campaign-art-small img {
  object-fit: contain;
  padding: 28px;
}

.campaign-art-ocean {
  background: linear-gradient(140deg, #143755, #0c2438);
}

.campaign-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px;
}

.campaign-kicker {
  color: var(--accent-2);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.campaign-content h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.campaign-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.campaign-link {
  margin-top: auto;
  font-size: 14px;
}

.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-button {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.chip-button.is-active {
  background: linear-gradient(135deg, rgba(89, 208, 201, 0.18), rgba(255, 181, 95, 0.16));
  color: var(--text);
  border-color: rgba(255, 196, 110, 0.34);
}

.search-shell {
  display: grid;
  gap: 6px;
}

.search-shell input,
.login-form input {
  min-width: 240px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.search-shell input:focus,
.login-form input:focus {
  border-color: rgba(255, 196, 110, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 196, 110, 0.08);
}

.game-grid,
.ops-layout {
  display: grid;
  gap: 18px;
}

.game-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(9, 24, 36, 0.98), rgba(7, 22, 32, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.game-card:target,
.game-card.is-focused {
  border-color: rgba(255, 196, 110, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 196, 110, 0.12), var(--shadow);
}

.game-card.is-focused {
  animation: game-focus 2.2s ease both;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, var(--card-accent), transparent 46%);
  opacity: 0.18;
  pointer-events: none;
}

.game-card-header,
.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-art {
  position: relative;
  height: 190px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.game-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.game-card:hover .game-art img {
  transform: scale(1.045);
}

.game-art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 14, 23, 0.04), rgba(3, 14, 23, 0.64));
}

.game-art-status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
}

.game-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 26px;
}

.game-title {
  margin: 0;
  font-size: 24px;
  font-family: var(--font-display);
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.game-button {
  padding: 12px 16px;
  color: #07131e;
  background: linear-gradient(135deg, var(--accent-2), #83e5df);
  font-weight: 700;
}

.game-button.is-secondary {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.game-button[disabled] {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.section-page {
  display: grid;
  gap: 18px;
}

.section-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  min-height: 340px;
  padding: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background-image:
    linear-gradient(90deg, rgba(6, 20, 31, 0.98) 0%, rgba(7, 25, 37, 0.94) 45%, rgba(7, 25, 37, 0.58) 100%),
    url("./assets/hero-lobby.svg");
  background-position: center, right center;
  background-repeat: no-repeat;
  background-size: cover, 52% auto;
  box-shadow: var(--shadow);
}

.section-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  bottom: -220px;
  border: 1px solid rgba(89, 208, 201, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(89, 208, 201, 0.035), 0 0 0 96px rgba(89, 208, 201, 0.025);
}

.section-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.section-hero h2 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-hero-copy > p:not(.eyebrow),
.section-subcopy,
.info-panel p,
.collection-tile > p:last-child {
  color: var(--muted);
  line-height: 1.75;
}

.section-hero-copy > p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  font-size: 17px;
}

.section-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.library-summary {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 12px;
}

.library-summary-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.library-summary-item:hover {
  border-color: rgba(255, 196, 110, 0.34);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-2px);
}

.library-summary strong {
  font-family: var(--font-display);
  font-size: 34px;
}

.library-summary span {
  color: var(--muted);
}

.library-summary-item b {
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
}

.collection-strip,
.library-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.collection-tile {
  position: relative;
  min-height: 180px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(13, 37, 50, 0.92), rgba(7, 23, 34, 0.88));
}

.collection-tile-featured {
  border-color: rgba(242, 181, 95, 0.28);
  background: linear-gradient(145deg, rgba(60, 43, 23, 0.7), rgba(10, 29, 39, 0.94));
}

.collection-index {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: 52px;
}

.collection-tile h3,
.info-panel h3 {
  margin: 12px 0 6px;
  font-family: var(--font-display);
  font-size: 24px;
}

.collection-tile > p:last-child,
.info-panel p {
  margin: 0;
  font-size: 14px;
}

.section-subcopy {
  margin: 8px 0 0;
}

.game-art-contain img {
  object-fit: contain;
  padding: 26px;
}

.game-art-ocean {
  background: linear-gradient(145deg, rgba(26, 73, 99, 0.72), rgba(9, 30, 47, 0.92));
}

.online-note,
.release-note {
  color: var(--muted);
  font-size: 12px;
}

.online-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9ee8d2;
}

.online-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #59d0a5;
  box-shadow: 0 0 0 5px rgba(89, 208, 165, 0.1);
}

.info-panel {
  padding: 26px;
}

.status-badge {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.status-badge.online {
  color: #9ee8d2;
  background: rgba(89, 208, 165, 0.1);
}

.text-button {
  padding: 0;
  background: transparent;
}

.member-card-action {
  margin-top: 16px;
}

.home-page {
  display: grid;
  gap: 18px;
}

.lobby-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
  gap: 18px;
}

.lobby-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  min-height: 420px;
  padding: 0;
  overflow: hidden;
}

.lobby-feature-art {
  min-height: 100%;
  background: linear-gradient(145deg, #153b4c, #081b2a);
}

.lobby-feature-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lobby-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
}

.lobby-feature-copy h2,
.calendar-panel h2,
.benefit-story h2,
.rules-panel h2,
.member-guest h2,
.member-overview h2,
.profile-editor h2,
.account-panel h2,
.recent-section h2 {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.lobby-feature-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.lobby-feature-actions,
.guest-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.lobby-side-stack {
  display: grid;
  gap: 18px;
}

.notice-card,
.recent-card {
  padding: 26px;
}

.notice-list {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.notice-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.notice-list li:last-child {
  border-bottom: 0;
}

.notice-list time {
  color: var(--accent-2);
  font-size: 12px;
}

.notice-list strong,
.notice-list span {
  display: block;
}

.notice-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.recent-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.recent-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.recent-item img {
  width: 46px;
  height: 46px;
  padding: 6px;
  object-fit: contain;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
}

.recent-item strong,
.recent-item span {
  display: block;
}

.recent-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.recent-item button {
  padding: 8px 11px;
  border-radius: 999px;
  color: #07131e;
  background: var(--accent-2);
  font-weight: 700;
}

.compact-empty {
  padding: 18px;
  font-size: 13px;
}

.lobby-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.lobby-trust-bar div {
  display: grid;
  gap: 4px;
  padding: 22px;
  background: rgba(8, 24, 35, 0.96);
}

.lobby-trust-bar span {
  color: var(--accent);
  font-size: 11px;
}

.lobby-trust-bar small {
  color: var(--muted);
}

.benefit-hero {
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 196, 110, 0.3), transparent 24%),
    radial-gradient(circle at 70% 90%, rgba(89, 208, 201, 0.15), transparent 28%),
    linear-gradient(135deg, rgba(8, 30, 43, 0.98), rgba(6, 19, 30, 0.94));
}

.benefit-member-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  align-self: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 196, 110, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
}

.benefit-member-card span,
.benefit-member-card strong,
.benefit-member-card small {
  display: block;
}

.benefit-member-card span,
.benefit-member-card small {
  color: var(--muted);
}

.benefit-member-card strong {
  margin: 5px 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.benefit-lock {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 20px;
  color: #07131e;
  background: linear-gradient(135deg, var(--accent), #ffdf99);
  font-size: 32px;
}

.benefit-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(260px, 0.8fr));
  gap: 18px;
}

.benefit-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(12, 34, 46, 0.95), rgba(7, 23, 34, 0.9));
}

.benefit-card-main {
  grid-row: span 2;
  background:
    radial-gradient(circle at 85% 15%, rgba(242, 181, 95, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(14, 48, 60, 0.94), rgba(8, 28, 39, 0.98));
}

.benefit-card-head,
.benefit-note,
.mission-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.benefit-card h2,
.benefit-card h3 {
  margin: 10px 0;
  font-family: var(--font-display);
}

.benefit-card h2 {
  font-size: 32px;
}

.benefit-card h3 {
  font-size: 24px;
}

.benefit-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.benefit-badge {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(242, 181, 95, 0.1);
  font-size: 12px;
}

.checkin-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.checkin-track div {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 86px;
  padding: 10px 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.checkin-track div.is-done {
  color: #9ee8d2;
  background: rgba(89, 208, 165, 0.08);
}

.checkin-track div.is-today {
  color: #07131e;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #ffcf7e);
}

.checkin-track span {
  font-size: 11px;
}

.benefit-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.benefit-note strong {
  color: var(--text);
}

.mission-progress {
  height: 8px;
  margin: 22px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.mission-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), #9ee8d2);
}

.accent-gold .mission-progress span {
  background: linear-gradient(90deg, var(--accent), #ffe1a1);
}

.mission-meta {
  color: var(--muted);
  font-size: 12px;
}

.mission-meta strong {
  color: var(--text);
}

.benefit-card .campaign-link {
  margin-top: 22px;
}

.calendar-panel {
  padding: 30px;
}

.benefit-calendar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.benefit-calendar article {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.benefit-calendar article.is-featured {
  border-color: rgba(242, 181, 95, 0.32);
  background: linear-gradient(145deg, rgba(242, 181, 95, 0.12), rgba(89, 208, 201, 0.06));
}

.benefit-calendar time,
.calendar-icon {
  color: var(--accent-2);
  font-size: 12px;
}

.calendar-icon {
  display: block;
  margin: 18px 0 8px;
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--font-display);
  font-size: 40px;
}

.benefit-calendar h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
}

.benefit-calendar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.benefit-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.benefit-story {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 26px;
  padding: 26px;
}

.benefit-story-art {
  display: grid;
  place-items: center;
  height: 180px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(89, 208, 201, 0.18), rgba(100, 171, 255, 0.1));
}

.benefit-story-art img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.benefit-story p:not(.eyebrow),
.rules-panel li {
  color: var(--muted);
  line-height: 1.7;
}

.rules-panel {
  padding: 28px;
}

.rules-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.member-guest {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px;
  text-align: center;
}

.guest-symbol {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 28px;
  color: #07131e;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 46px;
}

.member-guest p:not(.eyebrow) {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
}

.guest-actions {
  justify-content: center;
}

.member-dashboard {
  display: grid;
  gap: 18px;
}

.member-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
}

.member-identity,
.member-overview-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.member-identity h2 {
  margin-bottom: 4px;
}

.member-identity p:last-child {
  margin: 0;
  color: var(--muted);
}

.member-avatar-large {
  width: 82px;
  height: 82px;
  font-size: 32px;
}

.member-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(9, 28, 40, 0.9);
}

.metric-card-wallet {
  border-color: rgba(242, 181, 95, 0.28);
  background: linear-gradient(145deg, rgba(242, 181, 95, 0.12), rgba(9, 28, 40, 0.94));
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 24px;
  text-overflow: ellipsis;
}

.member-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.profile-editor,
.account-panel,
.recent-section {
  padding: 30px;
}

.profile-form-page {
  display: grid;
  gap: 22px;
}

.profile-form-page label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.profile-form-page input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.avatar-options-page {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.profile-page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-preview .profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  font-size: 24px;
}

.account-panel {
  display: flex;
  flex-direction: column;
}

.account-row {
  display: grid;
  gap: 5px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.account-row span {
  color: var(--muted);
  font-size: 12px;
}

.danger-button {
  margin-top: auto;
  padding: 13px 16px;
  border: 1px solid rgba(255, 138, 122, 0.28);
  border-radius: 999px;
  color: #ffc0b8;
  background: rgba(255, 138, 122, 0.08);
}

.recent-list-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hub-feedback {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(115, 224, 216, 0.34);
  border-radius: 16px;
  color: var(--text);
  background: rgba(9, 28, 39, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hub-feedback.is-error {
  border-color: rgba(255, 132, 132, 0.42);
  color: #ffd1d1;
  background: rgba(52, 19, 28, 0.97);
}

.hub-feedback.hidden {
  display: none;
}

.ops-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 11, 18, 0.68);
  backdrop-filter: blur(12px);
  z-index: 40;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: 30px;
  border-radius: 28px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.profile-card {
  width: min(560px, 100%);
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 36px;
}

.profile-heading h2 {
  margin: 4px 0 6px;
}

.profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 26px;
  font-size: 32px;
}

.profile-email {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.profile-form {
  margin-top: 24px;
}

.avatar-picker {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.avatar-picker legend {
  padding: 0 6px;
  color: var(--text);
  font-size: 14px;
}

.avatar-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.avatar-option {
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
}

.avatar-option:hover,
.avatar-option.is-active {
  border-color: rgba(255, 196, 110, 0.8);
  background: rgba(255, 196, 110, 0.12);
}

.avatar-swatch {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 18px;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.profile-actions .wide-button {
  margin-top: 0;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
}

.auth-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.tab-button {
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tab-button:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.tab-button.is-active {
  color: #07131e;
  border-color: rgba(255, 196, 110, 0.44);
  background: linear-gradient(135deg, var(--accent), #ffcf7e);
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.login-form label {
  display: grid;
  gap: 7px;
}

.wide-button {
  width: 100%;
  margin-top: 8px;
}

.wide-button[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.inline-tip {
  margin-top: 16px;
  font-size: 13px;
}

.inline-tip.is-error {
  color: var(--danger);
}

.demo-user-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hidden-field {
  display: none;
}

.demo-user-button {
  padding: 10px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.auth-page {
  display: grid;
  min-height: 100vh;
  align-items: center;
}

.auth-page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.auth-header .brand-lockup {
  color: var(--text);
  text-decoration: none;
}

.auth-back-link {
  color: var(--muted);
  text-decoration: none;
}

.auth-back-link:hover {
  color: var(--text);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(7, 22, 34, 0.84);
  box-shadow: var(--shadow);
}

.auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 590px;
  padding: 48px;
  background:
    radial-gradient(circle at 20% 15%, rgba(89, 208, 201, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(10, 42, 54, 0.96), rgba(7, 21, 33, 0.98));
}

.auth-intro h1 {
  max-width: 420px;
  margin: 16px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.auth-intro-copy,
.auth-feature-list {
  color: var(--muted);
  line-height: 1.75;
}

.auth-feature-list {
  display: grid;
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.auth-feature-list li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--accent-2);
}

.auth-security-note {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.auth-card {
  display: flex;
  min-height: 590px;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  background: var(--panel-strong);
}

.auth-card h2 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: -0.035em;
}

.auth-card .modal-copy {
  margin-bottom: 0;
}

.auth-card .tab-button {
  display: block;
  text-align: center;
  text-decoration: none;
}

.auth-feedback {
  min-height: 22px;
}

.auth-footer-copy {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.empty-state {
  padding: 28px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes game-focus {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(255, 196, 110, 0.12), var(--shadow);
  }
  35% {
    box-shadow: 0 0 0 7px rgba(255, 196, 110, 0.24), var(--shadow);
  }
}

@media (max-width: 1080px) {
  .topbar,
  .catalog-header {
    border-radius: 28px;
  }

  .topbar,
  .catalog-header,
  .catalog-toolbar {
    display: grid;
  }

  .hero-grid,
  .feature-band,
  .ops-layout,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .campaign-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campaign-card-main {
    grid-column: 1 / -1;
  }

  .auth-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(390px, 1.2fr);
  }

  .auth-intro,
  .auth-card {
    padding: 36px;
  }

  .section-hero,
  .lobby-content-grid,
  .benefit-feature-grid,
  .benefit-bottom-grid,
  .member-content-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card-main {
    grid-row: auto;
  }

  .collection-strip,
  .library-footer-grid,
  .member-help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lobby-trust-bar,
  .member-metric-grid,
  .benefit-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 16px;
  }

  .topbar,
  .hero-panel,
  .card,
  .mini-card,
  .modal-card {
    padding: 20px;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 220px;
    margin-top: 24px;
    transform: none;
  }

  .hero-panel h2 {
    font-size: 40px;
  }

  .hero-actions,
  .hero-stats,
  .member-wallet {
    grid-template-columns: 1fr;
    display: grid;
  }

  .top-actions {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .campaign-panel {
    padding: 20px;
  }

  .campaign-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .campaign-grid {
    grid-template-columns: 1fr;
  }

  .campaign-card-main {
    grid-column: auto;
  }

  .search-shell input,
  .login-form input {
    min-width: 0;
    width: 100%;
  }

  .profile-actions {
    grid-template-columns: 1fr;
  }

  .hub-feedback {
    right: 16px;
    bottom: 16px;
  }

  .auth-page {
    display: block;
  }

  .auth-page-shell {
    width: min(100% - 20px, 100%);
    padding: 18px 0;
  }

  .auth-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    min-height: auto;
    padding: 28px 24px;
  }

  .auth-intro h1 {
    font-size: 42px;
  }

  .auth-feature-list,
  .auth-security-note {
    display: none;
  }

  .auth-card {
    min-height: auto;
    padding: 30px 24px;
  }

  .section-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 30px 22px;
  }

  .section-hero h2 {
    font-size: 42px;
  }

  .section-hero-actions,
  .lobby-feature-actions,
  .guest-actions,
  .member-overview,
  .member-identity,
  .member-overview-actions,
  .profile-page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .collection-strip,
  .library-footer-grid,
  .lobby-trust-bar,
  .benefit-feature-grid,
  .benefit-calendar,
  .benefit-bottom-grid,
  .member-metric-grid,
  .member-content-grid,
  .member-help-grid,
  .recent-list-wide {
    grid-template-columns: 1fr;
  }

  .lobby-feature,
  .benefit-story {
    grid-template-columns: 1fr;
  }

  .lobby-feature-art {
    min-height: 240px;
  }

  .lobby-feature-copy,
  .member-guest,
  .profile-editor,
  .account-panel,
  .recent-section,
  .calendar-panel {
    padding: 24px 20px;
  }

  .checkin-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .benefit-card-head,
  .benefit-note,
  .mission-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .benefit-member-card {
    align-self: stretch;
  }

  .benefit-story-art {
    height: 220px;
  }

  .avatar-options-page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recent-item {
    grid-template-columns: 42px 1fr auto;
  }
}

/* Responsive visual polish for narrow phones and small tablets. */
@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 24px), 1280px);
    padding-bottom: 28px;
  }

  .topbar {
    gap: 14px;
    padding: 16px;
    border-radius: 26px;
  }

  .brand-lockup {
    gap: 11px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .brand-lockup h1 {
    font-size: 21px;
  }

  .brand-kicker,
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .topnav {
    width: 100%;
    gap: 4px;
    padding: 5px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .topnav a {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .top-actions > * {
    min-width: 0;
    width: 100%;
    white-space: nowrap;
  }

  .section-hero {
    display: flex !important;
    flex-direction: column;
    gap: 22px;
    min-height: 0;
    padding: 28px 22px;
    background-image:
      linear-gradient(180deg, rgba(6, 20, 31, 0.98) 0%, rgba(7, 25, 37, 0.92) 58%, rgba(7, 25, 37, 0.78) 100%),
      url("./assets/hero-lobby.svg");
    background-position: center, 120% 100%;
    background-size: cover, 94% auto;
  }

  .section-hero-copy {
    width: 100%;
    min-width: 0;
  }

  .section-hero h2 {
    max-width: none;
    margin-top: 11px;
    font-size: clamp(36px, 11vw, 52px);
    line-height: 1.02;
  }

  .section-hero-copy > p:not(.eyebrow) {
    max-width: none;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.6;
  }

  .section-hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
  }

  .section-hero-actions .primary-button {
    flex: 1 1 190px;
    text-align: center;
  }

  .library-summary {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .library-summary div {
    display: grid;
    align-content: center;
    justify-content: stretch;
    gap: 4px;
    min-width: 0;
    padding: 14px 12px;
    border-radius: 16px;
  }

  .library-summary strong {
    font-size: 28px;
  }

  .library-summary span {
    font-size: 12px;
    line-height: 1.35;
  }

  .collection-strip,
  .library-footer-grid {
    grid-template-columns: 1fr;
  }

  .collection-tile {
    min-height: 132px;
    padding: 22px;
  }

  .collection-index {
    font-size: 42px;
  }

  .catalog-panel {
    padding: 20px;
  }

  .catalog-header {
    gap: 16px;
    margin-bottom: 18px;
  }

  .catalog-toolbar {
    width: 100%;
    gap: 12px;
  }

  .chip-row {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .chip-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .search-shell,
  .search-shell input {
    width: 100%;
    min-width: 0;
  }

  .game-card {
    padding: 18px;
  }

  .game-art {
    height: 170px;
  }

  .hero-stats {
    width: 100%;
    max-width: 380px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lobby-feature-copy,
  .benefit-story,
  .member-guest,
  .profile-editor,
  .account-panel,
  .recent-section,
  .calendar-panel {
    padding: 24px 20px;
  }
}
