@import url("themes.css");

/* Cleave Creators — professional shell (palette via html[data-formal-palette]) */
:root {
  --bg: #fbfaf8;
  --bg-elevated: #ffffff;
  --text: #1a1f24;
  --text-muted: #5c6670;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-soft: #ccfbf1;
  --coral: #c2410c;
  --coral-soft: #ffedd5;
  --border: #e8e4df;
  --shadow: 0 1px 2px rgba(26, 31, 36, 0.06), 0 8px 24px rgba(26, 31, 36, 0.06);
  --dock-fade-top: rgba(251, 250, 248, 0.98);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.theme-picker select {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 2rem 0.4rem 0.65rem;
  cursor: pointer;
  max-width: min(260px, 72vw);
}

.site-logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.site-logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.site-logo span {
  color: var(--coral);
}

.site-logo.site-logo--games span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav .nav-cta {
  background: var(--text);
  color: var(--bg-elevated);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}
.site-nav .nav-cta:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.footer-min {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-dark {
  background: var(--text);
  color: #fff;
}
.btn-dark:hover {
  background: #2d3748;
  color: #fff;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

/* Hero / home */
.hero {
  padding: 3rem 0 2rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero .lede {
  font-size: 1.1875rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.pill-note {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section {
  margin-top: 4rem;
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-align: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}
.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Games hub */
.hub-head {
  margin-bottom: 2rem;
}
.hub-head h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
}
.hub-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 560px;
}

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

.game-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.game-tile h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.game-tile p {
  flex: 1;
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.game-tile .btn {
  align-self: flex-start;
}

/* Demo Games — Cedar & Linen (palette 8, fixed on the root element) */
.demo-landing {
  padding-top: 0.5rem;
  padding-bottom: 8rem;
}

.demo-landing__hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.demo-landing__hero h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--text);
}

.demo-landing__lede {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.demo-landing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.demo-landing__copy.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-landing__h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}

.demo-landing__steps {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.demo-landing__steps li {
  margin-bottom: 0.45rem;
}

.demo-landing__muted {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.demo-landing__footnote {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.55;
}

.screenshot-slot--hero {
  margin: 0;
  max-width: none;
  min-height: 260px;
}

@media (max-width: 900px) {
  .demo-landing__grid {
    grid-template-columns: 1fr;
  }
}

/* Game hub — dark floor (real catalog) — base */
body.page-catalog {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

body.page-catalog[data-hub-palette="1"] {
  --bg: #0a0908;
  --bg-elevated: #161311;
  --text: #f0ebe5;
  --text-muted: #9e958b;
  --accent: #5eead4;
  --accent-hover: #7dd3fc;
  --accent-soft: rgba(94, 234, 212, 0.14);
  --coral: #c4a574;
  --coral-soft: rgba(196, 165, 116, 0.12);
  --border: #2c221c;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

body.page-catalog[data-hub-palette="2"] {
  --bg: #0d0a08;
  --bg-elevated: #1a1410;
  --text: #faf6f0;
  --text-muted: #b5a99a;
  --accent: #fbbf24;
  --accent-hover: #fcd34d;
  --accent-soft: rgba(251, 191, 36, 0.12);
  --coral: #f97316;
  --coral-soft: rgba(249, 115, 22, 0.1);
  --border: #3d3026;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

body.page-catalog[data-hub-palette="3"] {
  --bg: #0c0614;
  --bg-elevated: #171022;
  --text: #f5f3ff;
  --text-muted: #b8a8d8;
  --accent: #c084fc;
  --accent-hover: #d8b4fe;
  --accent-soft: rgba(192, 132, 252, 0.12);
  --coral: #f472b6;
  --coral-soft: rgba(244, 114, 182, 0.1);
  --border: #4c1d6e;
  --shadow: 0 16px 48px rgba(76, 29, 110, 0.35);
}

body.page-catalog[data-hub-palette="4"] {
  --bg: #0f0c0a;
  --bg-elevated: #1c1612;
  --text: #fef3e8;
  --text-muted: #b89b82;
  --accent: #ea8c55;
  --accent-hover: #fdba74;
  --accent-soft: rgba(234, 140, 85, 0.12);
  --coral: #d97706;
  --coral-soft: rgba(217, 119, 6, 0.1);
  --border: #5c4030;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

body.page-catalog[data-hub-palette="5"] {
  --bg: #080c10;
  --bg-elevated: #111820;
  --text: #e8f1f8;
  --text-muted: #8da4b5;
  --accent: #7dd3fc;
  --accent-hover: #bae6fd;
  --accent-soft: rgba(125, 211, 252, 0.12);
  --coral: #34d399;
  --coral-soft: rgba(52, 211, 153, 0.1);
  --border: #1e3a4f;
  --shadow: 0 16px 48px rgba(8, 17, 24, 0.6);
}

body.page-catalog[data-hub-palette="6"] {
  --bg: #120808;
  --bg-elevated: #1f0f0c;
  --text: #fff1f0;
  --text-muted: #d4a59a;
  --accent: #fb7185;
  --accent-hover: #fda4af;
  --accent-soft: rgba(251, 113, 133, 0.12);
  --coral: #fbbf24;
  --coral-soft: rgba(251, 191, 36, 0.1);
  --border: #5c2020;
  --shadow: 0 16px 48px rgba(70, 10, 10, 0.4);
}

body.page-catalog[data-hub-palette="7"] {
  --bg: #070a12;
  --bg-elevated: #0f1522;
  --text: #e8eef7;
  --text-muted: #8b9bb8;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-soft: rgba(96, 165, 250, 0.12);
  --coral: #a78bfa;
  --coral-soft: rgba(167, 139, 250, 0.1);
  --border: #1e3a5f;
  --shadow: 0 16px 48px rgba(0, 20, 40, 0.5);
}

body.page-catalog[data-hub-palette="8"] {
  --bg: #060f0a;
  --bg-elevated: #0f1f14;
  --text: #ecfdf5;
  --text-muted: #86b89a;
  --accent: #4ade80;
  --accent-hover: #86efac;
  --accent-soft: rgba(74, 222, 128, 0.12);
  --coral: #a3e635;
  --coral-soft: rgba(163, 230, 53, 0.1);
  --border: #166534;
  --shadow: 0 16px 48px rgba(6, 40, 20, 0.45);
}

body.page-catalog[data-hub-palette="9"] {
  --bg: #0c0808;
  --bg-elevated: #181010;
  --text: #fdf2f8;
  --text-muted: #c4a8b0;
  --accent: #e879a8;
  --accent-hover: #f9a8d4;
  --accent-soft: rgba(232, 121, 168, 0.12);
  --coral: #facc15;
  --coral-soft: rgba(250, 204, 21, 0.1);
  --border: #5c2236;
  --shadow: 0 16px 48px rgba(40, 5, 20, 0.45);
}

body.page-catalog[data-hub-palette="10"] {
  --bg: #050a0a;
  --bg-elevated: #0c1414;
  --text: #ecfccb;
  --text-muted: #98b3a8;
  --accent: #5eead4;
  --accent-hover: #99f6e4;
  --accent-soft: rgba(94, 234, 212, 0.14);
  --coral: #4ade80;
  --coral-soft: rgba(74, 222, 128, 0.1);
  --border: #134e4a;
  --shadow: 0 16px 48px rgba(0, 40, 35, 0.45);
}

body.page-catalog[data-hub-palette="11"] {
  --bg: #1a1410;
  --bg-elevated: #252018;
  --text: #faf6f1;
  --text-muted: #a89888;
  --accent: #ea8c55;
  --accent-hover: #fdba74;
  --accent-soft: rgba(234, 140, 85, 0.15);
  --coral: #c47a4a;
  --coral-soft: rgba(196, 122, 74, 0.12);
  --border: #3d3429;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  font-family: "Barlow", system-ui, sans-serif;
}

body.page-catalog[data-hub-palette="11"] .hub-brand-logo,
body.page-catalog[data-hub-palette="11"] .hub-head--dark h1,
body.page-catalog[data-hub-palette="11"] .hub-eyebrow {
  font-family: "Fraunces", "Times New Roman", serif;
}

body.page-catalog[data-hub-palette="12"] {
  --bg: #0f1419;
  --bg-elevated: #181f28;
  --text: #e8eef4;
  --text-muted: #8fa3b0;
  --accent: #7eb8da;
  --accent-hover: #b8d4ea;
  --accent-soft: rgba(126, 184, 218, 0.14);
  --coral: #c9b99a;
  --coral-soft: rgba(201, 185, 154, 0.12);
  --border: #2a3a48;
  --shadow: 0 18px 44px rgba(10, 20, 30, 0.5);
  font-family: "Sora", system-ui, sans-serif;
}

body.page-catalog[data-hub-palette="12"] .hub-brand-logo,
body.page-catalog[data-hub-palette="12"] .hub-head--dark h1,
body.page-catalog[data-hub-palette="12"] .hub-eyebrow {
  font-family: "Syne", system-ui, sans-serif;
}

body.page-catalog[data-hub-palette="13"] {
  --bg: #121015;
  --bg-elevated: #1c1824;
  --text: #f4f1f8;
  --text-muted: #a99fb8;
  --accent: #c4a5ff;
  --accent-hover: #ddd0ff;
  --accent-soft: rgba(196, 165, 255, 0.14);
  --coral: #f0abfc;
  --coral-soft: rgba(240, 171, 252, 0.1);
  --border: #3b3150;
  --shadow: 0 20px 48px rgba(30, 15, 50, 0.45);
  font-family: "Nunito", system-ui, sans-serif;
}

body.page-catalog[data-hub-palette="13"] .hub-brand-logo,
body.page-catalog[data-hub-palette="13"] .hub-head--dark h1,
body.page-catalog[data-hub-palette="13"] .hub-eyebrow {
  font-family: "Playfair Display", Georgia, serif;
}

body.page-catalog[data-hub-palette="14"] {
  --bg: #0a100c;
  --bg-elevated: #121a14;
  --text: #ecfdf3;
  --text-muted: #8db39a;
  --accent: #86efac;
  --accent-hover: #bbf7d0;
  --accent-soft: rgba(134, 239, 172, 0.12);
  --coral: #fde047;
  --coral-soft: rgba(253, 224, 71, 0.1);
  --border: #234836;
  --shadow: 0 18px 46px rgba(5, 30, 15, 0.48);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

body.page-catalog[data-hub-palette="14"] .hub-brand-logo,
body.page-catalog[data-hub-palette="14"] .hub-head--dark h1,
body.page-catalog[data-hub-palette="14"] .hub-eyebrow {
  font-family: "Crimson Pro", Georgia, serif;
}

body.page-catalog[data-hub-palette="15"] {
  --bg: #15121a;
  --bg-elevated: #1f1b26;
  --text: #f8f5ff;
  --text-muted: #aea8bc;
  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --accent-soft: rgba(129, 140, 248, 0.14);
  --coral: #fb7185;
  --coral-soft: rgba(251, 113, 133, 0.1);
  --border: #3d3554;
  --shadow: 0 20px 50px rgba(20, 10, 40, 0.45);
  font-family: "Quicksand", system-ui, sans-serif;
}

body.page-catalog[data-hub-palette="15"] .hub-brand-logo,
body.page-catalog[data-hub-palette="15"] .hub-head--dark h1,
body.page-catalog[data-hub-palette="15"] .hub-eyebrow {
  font-family: "Literata", Georgia, serif;
}

body.page-catalog h1,
body.page-catalog h2,
body.page-catalog .hub-eyebrow {
  font-family: "Outfit", system-ui, sans-serif;
}

.hub-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.hub-head--dark h1 {
  letter-spacing: -0.02em;
}

body.page-catalog .hub-head p {
  max-width: 42rem;
  line-height: 1.65;
}

/* Catalog controls: readable type on every palette theme */
body.page-catalog .btn,
body.page-catalog .btn-primary,
body.page-catalog .btn-dark,
body.page-catalog .btn-hub,
body.page-catalog .btn-welcome-catalog,
body.page-catalog .save-me-btn,
body.page-catalog .hub-settings-btn,
body.page-catalog .hub-palette-dd__btn,
body.page-catalog .hub-palette-dd__option,
body.page-catalog .hub-msg-bubble,
body.page-catalog .settings-toggle,
body.page-catalog .settings-toggle span,
body.page-catalog .hub-feedback__form label,
body.page-catalog .hub-announcements__title,
body.page-catalog #req-submit-btn {
  font-family: "DM Sans", "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.page-catalog .btn-hub,
body.page-catalog .save-me-btn,
body.page-catalog .btn-primary {
  font-weight: 700;
}

body.page-catalog .hub-palette-dd__btn {
  font-size: 0.8125rem;
}

body.page-catalog .hub-palette-dd__option {
  font-size: 0.84375rem;
}

body.page-catalog input[type="text"],
body.page-catalog input[type="search"],
body.page-catalog input[type="email"],
body.page-catalog textarea,
body.page-catalog select {
  font-family: "DM Sans", "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
}

body.page-catalog.hub-pref-large-tap .btn-hub,
body.page-catalog.hub-pref-large-tap .save-me-btn--in-bar {
  padding: 0.65rem 1.15rem;
  font-size: 0.9375rem;
  min-height: 44px;
  box-sizing: border-box;
}

body.page-catalog.hub-pref-large-tap .hub-settings-btn,
body.page-catalog.hub-pref-large-tap .hub-msg-bubble {
  width: 46px;
  height: 46px;
}

body.page-catalog.hub-pref-large-tap .hub-palette-dd__btn {
  padding: 0.45rem 0.75rem 0.45rem 0.5rem;
  font-size: 0.875rem;
}

body.page-catalog.hub-pref-wide-chat .aim-im-window {
  width: min(960px, 98vw);
}

body.page-catalog.hub-pref-wide-chat .aim-messenger:not(.aim-messenger--name-gate) {
  width: min(1040px, 98vw);
  height: min(680px, 92vh);
}

body.page-catalog.hub-pref-chat-times .aim-im-line__time {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}

body.page-catalog.hub-pref-reduce-motion *,
body.page-catalog.hub-pref-reduce-motion *::before,
body.page-catalog.hub-pref-reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  body.page-catalog *,
  body.page-catalog *::before,
  body.page-catalog *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body.page-catalog .hub-settings-btn:focus-visible,
body.page-catalog .hub-msg-bubble:focus-visible,
body.page-catalog .hub-palette-dd__btn:focus-visible,
body.page-catalog .save-me-btn:focus-visible,
body.page-catalog .btn-hub:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

body.page-catalog .site-header,
.site-header--hub {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom-color: var(--border);
}

body.page-catalog .site-logo,
body.page-catalog .site-nav a {
  color: var(--text);
}

body.page-catalog .site-logo:hover {
  color: var(--accent);
  text-decoration: none;
}

body.page-catalog .site-logo.site-logo--games span {
  color: var(--accent);
}

body.page-catalog .site-nav .nav-cta {
  background: var(--accent);
  color: #0a0908;
}

body.page-catalog .site-nav .nav-cta:hover {
  background: var(--accent-hover);
  color: #0a0908;
  text-decoration: none;
}

.game-grid--dark {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1040px;
  margin-inline: auto;
}

@media (max-width: 720px) {
  .game-grid--dark {
    grid-template-columns: 1fr;
  }
}

.game-tile--dark h2 {
  font-size: 1.35rem;
  font-weight: 600;
}

.game-tile--dark .btn-hub {
  align-self: flex-start;
  border-radius: 10px;
  font-weight: 600;
}

.game-tile__media {
  margin: -1.5rem -1.5rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a0908;
}

.game-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-catalog .game-tile p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.page-catalog .game-tile p a:hover {
  color: var(--accent-hover);
}

.header-tools--play {
  gap: 0.65rem 1rem;
}

.btn-fullscreen {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e8eef2;
  cursor: pointer;
  white-space: nowrap;
}

.btn-fullscreen:hover {
  background: #334155;
  color: #fff;
}

.theme-picker--play select {
  max-width: min(240px, 55vw);
}

.page-creators-mint {
  background: var(--bg);
}

.save-me-btn {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  padding: 0.45rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: "DM Sans", system-ui, sans-serif;
  background: linear-gradient(135deg, #5eead4, #34d399);
  color: #0f172a;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.save-me-btn:hover {
  filter: brightness(1.06);
}

body.page-catalog .site-header__inner--hub,
body.page-play .site-header__inner--play {
  padding-left: 1.25rem;
}

.site-logo--static {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.site-logo--static span {
  color: var(--accent);
}

.theme-picker--hub select {
  max-width: min(280px, 72vw);
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}

.cleave-shell__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.cleave-shell__top .cleave-shell__badge {
  margin-bottom: 0;
}

.btn-fullscreen--shell {
  border-color: color-mix(in srgb, var(--accent) 50%, #334155);
  background: rgba(15, 20, 25, 0.92);
  color: var(--accent);
}

.btn-fullscreen--shell:hover {
  background: rgba(30, 41, 59, 0.95);
  color: var(--accent-hover);
}

.site-header--playbar {
  background: rgba(15, 20, 25, 0.96);
}

.site-header__inner--play {
  justify-content: space-between;
}

.game-stage:fullscreen,
.game-stage:-webkit-full-screen {
  background: #000;
  padding: 0 !important;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
}

.game-stage:fullscreen .cleave-shell,
.game-stage:-webkit-full-screen .cleave-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  padding: 0.25rem;
  box-sizing: border-box;
}

.game-stage:fullscreen .cleave-shell__top,
.game-stage:-webkit-full-screen .cleave-shell__top {
  flex-shrink: 0;
  justify-content: flex-end;
  margin-bottom: 0.25rem;
}

.game-stage:fullscreen .cleave-shell__badge,
.game-stage:-webkit-full-screen .cleave-shell__badge {
  display: none;
}

.game-stage:fullscreen .frame-wrap,
.game-stage:-webkit-full-screen .frame-wrap {
  flex: 1;
  min-height: 0 !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-stage:fullscreen .frame-wrap iframe,
.game-stage:-webkit-full-screen .frame-wrap iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-height: 0 !important;
  border: 0;
}

.game-stage:fullscreen
  .frame-wrap:not(.frame-wrap--escaperoad):not(.frame-wrap--geometrylite):not(.frame-wrap--drivemad)
  iframe,
.game-stage:-webkit-full-screen
  .frame-wrap:not(.frame-wrap--escaperoad):not(.frame-wrap--geometrylite):not(.frame-wrap--drivemad)
  iframe {
  width: min(100vw, 100%);
  height: min(100vh, 100%);
  max-width: 100%;
  max-height: 100%;
}

/* Escape Road fullscreen: centered square viewport, enlarged game (not top-aligned) */
.game-stage:fullscreen:has(.frame-wrap--escaperoad),
.game-stage:-webkit-full-screen:has(.frame-wrap--escaperoad) {
  align-items: center;
  justify-content: center;
}

.game-stage:fullscreen .cleave-shell:has(.frame-wrap--escaperoad),
.game-stage:-webkit-full-screen .cleave-shell:has(.frame-wrap--escaperoad) {
  flex: 0 0 auto;
  width: auto;
  max-width: 100vw;
  max-height: 100vh;
  margin: auto;
}

.game-stage:fullscreen .frame-wrap--escaperoad,
.game-stage:-webkit-full-screen .frame-wrap--escaperoad {
  width: min(100vw, 100vh) !important;
  height: min(100vw, 100vh) !important;
  min-width: 0;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  max-width: min(100vw, 100vh);
  max-height: min(100vw, 100vh);
}

.game-stage:fullscreen .frame-wrap--escaperoad iframe,
.game-stage:-webkit-full-screen .frame-wrap--escaperoad iframe {
  width: 300%;
  max-width: none;
  height: 175%;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
}

.game-stage:fullscreen .frame-wrap--geometrylite iframe,
.game-stage:-webkit-full-screen .frame-wrap--geometrylite iframe {
  width: min(118vw, 100vw);
  height: min(118vh, 100vh);
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
}

.game-stage:fullscreen .frame-wrap--drivemad iframe,
.game-stage:-webkit-full-screen .frame-wrap--drivemad iframe {
  width: 290%;
  max-width: none;
  height: 182%;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
}

.game-stage:fullscreen .frame-wrap--arcadrome iframe,
.game-stage:-webkit-full-screen .frame-wrap--arcadrome iframe {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
}

@media (max-width: 720px) {
  .game-stage:fullscreen .frame-wrap--escaperoad,
  .game-stage:-webkit-full-screen .frame-wrap--escaperoad {
    width: min(100vw, 100vh) !important;
    height: min(100vw, 100vh) !important;
  }

  .game-stage:fullscreen .frame-wrap--escaperoad iframe,
  .game-stage:-webkit-full-screen .frame-wrap--escaperoad iframe {
    width: 280%;
    height: 168%;
  }
}

.footer-min--hub {
  border-top-color: var(--border);
  color: var(--text-muted);
}

.demo-intro {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.demo-intro.hub-head p {
  margin-left: auto;
  margin-right: auto;
}

.demo-footnote {
  text-align: center;
  color: var(--text-muted);
  max-width: 480px;
  margin: 2rem auto 0;
  font-size: 0.9375rem;
}

.screenshot-slot code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.9em;
}

.screenshot-slot {
  max-width: 880px;
  margin: 2rem auto 0;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #eef2f3 0%, #e2e8f0 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.screenshot-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

.screenshot-slot .placeholder-copy {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 320px;
  line-height: 1.5;
}
.screenshot-slot .placeholder-copy strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
}

/* Unskippable Sign In bar */
.signin-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  background: linear-gradient(
    to top,
    var(--dock-fade-top, rgba(251, 250, 248, 0.98)) 60%,
    transparent
  );
  pointer-events: none;
}

.signin-dock-inner {
  max-width: 560px;
  margin: 0 auto;
  pointer-events: auto;
}

.signin-dock .btn-signin {
  width: 100%;
  justify-content: center;
  padding: 1.125rem 1.75rem;
  font-size: 1.1875rem;
  box-shadow: 0 -4px 24px rgba(26, 31, 36, 0.12), 0 12px 40px rgba(15, 118, 110, 0.25);
  border: 3px solid var(--bg-elevated);
}

.signin-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(26, 31, 36, 0.35);
  pointer-events: none;
}

/* Demo Games — terminal / 90s shell */
.page-demo {
  margin: 0;
  font-family: var(--demo-font, ui-monospace, monospace);
  background: var(--demo-bg);
  color: var(--demo-fg);
  line-height: 1.5;
}

.page-demo .site-header {
  background: color-mix(in srgb, var(--demo-bg) 88%, #000000 12%);
  border-bottom-color: var(--demo-border);
}

.page-demo .site-logo {
  color: var(--demo-fg);
}

.page-demo .site-logo:hover {
  color: var(--demo-accent);
}

.page-demo .site-logo span {
  color: var(--demo-accent);
}

.page-demo .site-nav a {
  color: var(--demo-fg);
}

.page-demo .site-nav a:hover {
  color: var(--demo-accent);
}

.page-demo .site-nav .nav-cta {
  background: transparent;
  color: var(--demo-bg);
  background-color: var(--demo-accent);
  border: 1px solid var(--demo-border);
}

.page-demo .site-nav .nav-cta:hover {
  filter: brightness(1.08);
  color: var(--demo-bg);
}

.page-demo .theme-picker label {
  color: var(--demo-dim);
}

.page-demo .theme-picker select {
  font-family: var(--demo-font);
  font-size: 0.875rem;
  color: var(--demo-fg);
  background: var(--demo-slot-inner);
  border: 1px solid var(--demo-border);
  max-width: min(340px, 85vw);
}

.page-demo main {
  color: var(--demo-fg);
}

.page-demo .hub-head h1 {
  color: var(--demo-fg);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
}

.page-demo .hub-head p {
  color: var(--demo-dim);
}

.page-demo .demo-prompt-bar {
  max-width: 880px;
  margin: 1.5rem auto 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  color: var(--demo-accent);
  border: 1px solid var(--demo-border);
  background: color-mix(in srgb, var(--demo-slot-inner) 85%, transparent);
}

.page-demo .demo-prompt-bar kbd {
  background: color-mix(in srgb, var(--demo-accent) 12%, transparent);
  border: 1px solid var(--demo-border);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  font-family: inherit;
}

.page-demo .screenshot-slot {
  background: var(--demo-slot-inner);
  border-style: solid;
  border-width: 1px;
  border-color: var(--demo-border);
  box-shadow: var(--demo-phosphor-glow, none);
  color: var(--demo-fg);
}

.page-demo .screenshot-slot .placeholder-copy {
  color: var(--demo-dim);
}

.page-demo .screenshot-slot .placeholder-copy strong {
  color: var(--demo-fg);
}

.page-demo .demo-footnote {
  color: var(--demo-dim);
}

.page-demo code {
  color: var(--demo-accent);
  font-family: inherit;
}

.page-demo .footer-min {
  border-top-color: var(--demo-border);
  color: var(--demo-dim);
}

.page-demo .signin-overlay {
  background: rgba(0, 0, 0, 0.55);
}

.page-demo .signin-dock {
  background: linear-gradient(to top, var(--demo-bg) 92%, transparent);
}

.page-demo .signin-dock .btn-signin {
  font-family: var(--demo-font);
  border-radius: 0;
  background: var(--demo-accent);
  color: var(--demo-bg);
  border: 2px solid var(--demo-fg);
  box-shadow: var(--demo-phosphor-glow, 0 0 24px rgba(0, 255, 153, 0.25));
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.page-demo[data-demo-theme="4"] .signin-dock .btn-signin {
  border-radius: 0;
  background: silver;
  color: black;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-shadow: none;
}

body.page-demo[data-demo-theme="8"] .signin-dock .btn-signin {
  border-radius: 2px;
  background: var(--demo-accent);
  color: white;
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Cleave Games player frame */
.page-play {
  background: #0f1419;
  color: #e8eef2;
}

.page-play .site-header {
  background: rgba(15, 20, 25, 0.95);
  border-bottom-color: #2a3441;
}

.page-play .site-logo,
.page-play .site-nav a {
  color: #e8eef2;
}
.page-play .site-logo:hover {
  color: var(--accent-hover);
}

.page-play .site-nav .nav-cta {
  background: var(--accent);
  color: #fff;
}

.page-play .theme-picker {
  color: #94a3b8;
}

.page-play .theme-picker select {
  background: #1e293b;
  color: #e8eef2;
  border-color: #334155;
}

.page-play main {
  max-width: min(1200px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 4.25rem 1rem 3rem;
}

.cleave-shell {
  margin-top: 0;
  padding: 1rem;
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(204, 251, 241, 0.06);
  box-shadow: 0 0 0 1px rgba(204, 251, 241, 0.15), var(--shadow);
}

.cleave-shell__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.cleave-shell .frame-wrap {
  width: 100%;
  min-height: min(72vh, 640px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #12121c;
  border: 1px solid #2a3441;
}

.cleave-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(72vh, 640px);
  border: 0;
}

/* Crop host chrome (scaled iframe, overflow hidden) */
.cleave-shell .frame-wrap--escape {
  position: relative;
  height: min(72vh, 640px);
  min-height: min(72vh, 640px);
}

.cleave-shell .frame-wrap--escape iframe {
  position: absolute;
  left: -18%;
  top: -6%;
  width: 135%;
  max-width: none;
  height: 112%;
  min-height: 0 !important;
}

.cleave-shell .frame-wrap--escaperoad {
  position: relative;
  height: min(72vh, 640px);
  min-height: min(72vh, 640px);
}

.cleave-shell .frame-wrap--escaperoad iframe {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  /* escaperoad2d.io wrapper: emphasize center iframe column */
  width: 268%;
  max-width: none;
  height: 156%;
  min-height: 0 !important;
}

.cleave-shell .frame-wrap--geometrylite {
  position: relative;
  height: min(72vh, 640px);
  min-height: min(72vh, 640px);
}

.cleave-shell .frame-wrap--geometrylite iframe {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  /* geometrydashlite host: crop side banners & top chrome */
  width: 124%;
  max-width: none;
  height: 122%;
  min-height: 0 !important;
}

.cleave-shell .frame-wrap--drivemad {
  position: relative;
  height: min(72vh, 640px);
  min-height: min(72vh, 640px);
}

.cleave-shell .frame-wrap--drivemad iframe {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: 305%;
  max-width: none;
  height: 178%;
  min-height: 0 !important;
}

.cleave-shell .frame-wrap--arcadrome {
  position: relative;
  height: min(72vh, 640px);
  min-height: min(72vh, 640px);
}

.cleave-shell .frame-wrap--arcadrome iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
}

@media (max-width: 720px) {
  .cleave-shell .frame-wrap--escape iframe {
    left: -8%;
    top: -4%;
    width: 120%;
    height: 108%;
  }

  .cleave-shell .frame-wrap--escaperoad iframe {
    width: 258%;
    height: 154%;
    top: 56%;
  }

  .cleave-shell .frame-wrap--drivemad iframe {
    width: 280%;
    height: 168%;
    top: 58%;
  }
}

.play-meta {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 1rem;
}
.play-meta a {
  color: #7dd3fc;
}

/* —— Creators home: abstract field —— */
.page-creators-abstract {
  position: relative;
  isolation: isolate;
}

.page-creators-abstract::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 10% -10%, color-mix(in srgb, var(--accent) 28%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 92% 18%, color-mix(in srgb, var(--coral) 22%, transparent) 0%, transparent 52%),
    radial-gradient(circle at 50% 105%, color-mix(in srgb, var(--accent-soft) 65%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 78% 72%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 38%);
  opacity: 0.95;
}

.page-creators-abstract::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='%2334d39944' d='M0 60h60v60H0zm60-60h60v60H60z'/%3E%3C/svg%3E");
  opacity: 0.42;
  mix-blend-mode: multiply;
}

.creators-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.creators-ambient__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--coral) 14%, transparent) 0%, transparent 35%),
    radial-gradient(ellipse 50% 40% at 60% 80%, color-mix(in srgb, var(--accent-soft) 40%, transparent) 0%, transparent 55%);
  filter: blur(40px);
  opacity: 0.85;
}

.creators-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.55;
}

.creators-ambient__orb--a {
  width: min(340px, 48vw);
  height: min(340px, 48vw);
  left: -6%;
  top: 18%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 45%, transparent),
    transparent 68%
  );
}

.creators-ambient__orb--b {
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  right: -4%;
  top: 42%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--coral) 40%, transparent),
    transparent 70%
  );
}

.creators-ambient__orb--c {
  width: min(220px, 30vw);
  height: min(220px, 30vw);
  left: 38%;
  bottom: -5%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent-hover) 35%, transparent),
    transparent 72%
  );
}

.hero--creators-decor {
  position: relative;
  z-index: 1;
}

.hero--creators-decor::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.5rem;
  transform: translateX(-50%);
  width: min(520px, 88%);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 55%, transparent) 20%,
    color-mix(in srgb, var(--coral) 45%, transparent) 80%,
    transparent
  );
  opacity: 0.85;
}

.section--creators-decor {
  position: relative;
  padding-top: 0.5rem;
  z-index: 1;
}

.section--creators-decor::before {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  background: linear-gradient(
    90deg,
    var(--accent),
    color-mix(in srgb, var(--coral) 70%, var(--accent))
  );
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}

.page-creators-abstract .feature-card {
  position: relative;
  overflow: hidden;
}

.page-creators-abstract .feature-card::after {
  content: "";
  position: absolute;
  right: -30%;
  top: -40%;
  width: 140px;
  height: 140px;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 22%, transparent),
    transparent 70%
  );
  pointer-events: none;
}

.page-creators-abstract .feature-card > * {
  position: relative;
  z-index: 1;
}

.page-creators-mint .site-logo span {
  color: var(--accent);
}

.page-creators-mint .site-logo:hover {
  color: var(--accent-hover);
}

.page-creators-mint .site-logo:hover span {
  color: var(--accent);
}

.site-nav__bubble {
  position: relative;
  padding: 0.35rem 1.15rem !important;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--bg-elevated));
  border: 2px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent),
    0 10px 28px color-mix(in srgb, var(--accent) 18%, transparent);
  animation: demo-nav-bubble 2.8s ease-in-out infinite;
}

.site-nav__bubble:hover {
  color: var(--accent-hover) !important;
  border-color: color-mix(in srgb, var(--accent-hover) 50%, var(--border));
}

@keyframes demo-nav-bubble {
  0%,
  100% {
    box-shadow:
      0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent),
      0 10px 28px color-mix(in srgb, var(--accent) 16%, transparent);
  }
  50% {
    box-shadow:
      0 0 0 8px color-mix(in srgb, var(--accent) 10%, transparent),
      0 12px 32px color-mix(in srgb, var(--accent) 28%, transparent);
  }
}

.btn--demo-bubble {
  border-radius: 999px !important;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent),
    0 12px 32px color-mix(in srgb, var(--accent) 22%, transparent) !important;
  animation: demo-nav-bubble 2.8s ease-in-out infinite;
}

.page-creators-abstract .site-header,
.page-creators-abstract main,
.page-creators-abstract .footer-min {
  position: relative;
  z-index: 1;
}

/* —— Hub: top bar + settings —— */
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  z-index: 5000;
  padding: 0.5rem 1rem;
  background: var(--accent, #5eead4);
  color: #0f172a;
  font-weight: 700;
  font-family: "DM Sans", system-ui, sans-serif;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

.hub-top-tools {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 3100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.hub-top-tools__left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  flex-wrap: wrap;
  pointer-events: auto;
}

.hub-top-tools__grow {
  flex: 1;
  min-width: 0;
  pointer-events: none;
}

.hub-brand-logo {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}

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

.hub-top-spacer {
  height: 52px;
}

.hub-palette-dd {
  position: relative;
}

.hub-palette-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem 0.35rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  max-width: min(210px, 40vw);
  font-family: inherit;
}

.hub-palette-dd__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hub-palette-dd__swatch {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--text) 18%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

#hub-palette-dd-swatch[data-palette-dd-swatch-collapsed] {
  width: 0;
  height: 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  border-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.hub-palette-dd__caret {
  font-size: 0.6rem;
  opacity: 0.75;
  margin-left: 0.05rem;
}

.hub-palette-dd__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 230px;
  max-width: min(92vw, 300px);
  max-height: min(70vh, 440px);
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  z-index: 3200;
}

.hub-palette-dd__menu[hidden] {
  display: none !important;
}

.hub-palette-dd__item {
  margin: 0;
  padding: 0;
}

.hub-palette-dd__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.55rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.hub-palette-dd__option:hover,
.hub-palette-dd__option--active {
  background: var(--accent-soft);
  color: var(--accent);
}

.hub-palette-dd__icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.hub-palette-dd__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.hub-palette-dd__name {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.save-me-btn--in-bar {
  position: static;
}

.hub-settings-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.hub-settings-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.site-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(15, 20, 30, 0.45);
}

.site-dialog {
  position: fixed;
  z-index: 4010;
  max-width: min(420px, 92vw);
  width: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow);
}

.site-dialog[hidden] {
  display: none !important;
}

.site-dialog__inner {
  padding: 1.5rem;
}

.site-dialog__inner h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.settings-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
  cursor: pointer;
}

.settings-toggle input {
  margin-top: 0.2rem;
}

.settings-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
  line-height: 1.45;
}

.site-dialog__actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.site-dialog--welcome .site-dialog__inner p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-muted);
}

/* —— Hub feedback form —— */
.hub-feedback {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.hub-feedback h2 {
  margin: 0 0 0.5rem;
}

.hub-feedback__lede {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hub-feedback__form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.75rem 0 0.35rem;
}

.hub-feedback__form input,
.hub-feedback__form textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}

.hub-feedback__form button {
  margin-top: 1rem;
}

.hub-feedback__status {
  font-size: 0.875rem;
  color: var(--accent);
  margin: 0.75rem 0 0;
  min-height: 1.25em;
}

.game-tile__media--placeholder {
  min-height: 200px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
}

.game-tile__media--geometry {
  background: linear-gradient(135deg, #4c1d95, #0ea5e9, #a78bfa);
}

.game-tile__media--subway {
  background: linear-gradient(135deg, #ea580c, #facc15, #0369a1);
}

/* —— Play pages: Save me + hub link —— */
.play-nav-cluster {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.play-nav-cluster .save-me-btn {
  position: static;
}

.hub-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: "DM Sans", system-ui, sans-serif;
  background: linear-gradient(135deg, #93c5fd, #a78bfa);
  color: #0f172a;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hub-back-btn:hover {
  filter: brightness(1.06);
  text-decoration: none;
  color: #0f172a;
}

/* —— Admin requests —— */
.page-admin-panel .admin-panel-main,
.page-admin-requests .admin-requests-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-admin-panel .admin-panel__lede {
  color: var(--text-muted);
  max-width: 42rem;
  line-height: 1.6;
}

.page-admin-panel .admin-gate,
.page-admin-requests .admin-gate {
  padding: 1.25rem;
  max-width: 420px;
  margin-bottom: 2rem;
}

.page-admin-panel .admin-gate label,
.page-admin-requests .admin-gate label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.page-admin-panel .admin-gate input,
.page-admin-requests .admin-gate input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font: inherit;
}

.page-admin-panel .admin-gate__err,
.page-admin-requests .admin-gate__err {
  color: #b91c1c;
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
}

.admin-request-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-request-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--bg-elevated);
}

.admin-request-item time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0.5rem;
}

.admin-request-item p {
  margin: 0;
  white-space: pre-wrap;
}

.admin-request-empty {
  color: var(--text-muted);
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.hub-maintenance {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 18%, var(--bg-elevated));
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.site-dialog.site-dialog--wide {
  max-width: min(520px, 94vw);
}

.welcome-readout {
  margin: 0;
  line-height: 1.65;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.welcome-readout--sub {
  margin: 0.95rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--bg-elevated));
  color: var(--text);
}

.site-dialog__actions--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.site-dialog__actions--stack .btn {
  width: 100%;
  justify-content: center;
}

.settings-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.settings-hint--strong {
  font-weight: 600;
  color: var(--text);
}

.admin-settings-block {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.hub-feedback__fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 0.25rem;
  margin: 0 0 1rem;
}

.hub-feedback__fieldset legend {
  padding: 0 0.35rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.settings-toggle--radio {
  margin: 0 0 0.65rem;
}

.hub-feedback__disabled {
  padding: 1rem;
  background: color-mix(in srgb, var(--coral-soft) 50%, var(--bg-elevated));
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.admin-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.35rem;
}

.admin-badge--bug {
  background: rgba(220, 38, 38, 0.15);
  color: #b91c1c;
}

.admin-badge--game {
  background: rgba(5, 150, 105, 0.18);
  color: var(--accent);
}

.admin-badge--other {
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
}

.admin-badge--pending {
  background: rgba(217, 119, 6, 0.22);
  color: #b45309;
}

.admin-badge--accepted {
  background: rgba(5, 150, 105, 0.2);
  color: #047857;
}

.admin-badge--denied {
  background: rgba(220, 38, 38, 0.18);
  color: #b91c1c;
}

.admin-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.65rem 0 0.25rem;
}

.admin-request-from {
  font-size: 0.875rem;
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.admin-request-reply {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.admin-request-reply__input {
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font: inherit;
  resize: vertical;
}

.admin-block-checks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.admin-tool-card--wide {
  grid-column: 1 / -1;
}

.admin-table-wrap--spaced {
  margin-top: 1rem;
}

.admin-announce-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-announce-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
}

.admin-announce-item button {
  margin-top: 0.5rem;
}

.hub-top-tools__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  pointer-events: auto;
  flex-wrap: wrap;
}

.hub-inbox-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.hub-inbox-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@keyframes hub-inbox-throb {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.5);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(248, 113, 113, 0);
  }
}

.hub-inbox-btn--alert {
  animation: hub-inbox-throb 1.25s ease-in-out infinite;
  color: #fecaca;
  border-color: #ef4444;
  background: rgba(127, 29, 29, 0.35);
}

.hub-inbox-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: min(50vh, 360px);
  overflow-y: auto;
  margin: 0.75rem 0 0;
}

.hub-inbox-item {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.9375rem;
}

.hub-inbox-item__meta time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hub-inbox-item__orig,
.hub-inbox-item__reply {
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

.hub-announcements {
  margin-top: 2rem;
}

.hub-announcements__title {
  margin: 0 0 0.35rem;
}

.hub-announcements__sub {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.hub-announcements__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hub-announcements__empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.hub-announcement-item {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.45);
}

.hub-announcement-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.hub-announcement-item__time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hub-announcement-item p {
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
}

.game-tile__blocked-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.82);
  border-radius: var(--radius-sm);
  gap: 0.25rem;
}

.game-tile--blocked .game-tile__blocked-overlay {
  display: flex;
}

.game-tile__blocked-x {
  font-size: 3rem;
  font-weight: 800;
  color: #ef4444;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.game-tile__blocked-label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fca5a5;
}

.btn-hub--blocked {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background: #475569 !important;
  border-color: #64748b !important;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem;
}

.admin-tab {
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
}

.admin-tab--active {
  background: var(--text);
  color: var(--bg-elevated);
  border-color: var(--text);
}

/* Admin console — relaxed “Fog City” tab rail (menu strip only) */
.page-admin-panel .admin-nav-sf {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  margin: 2rem 0 1.35rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(
    152deg,
    rgba(252, 251, 248, 0.98) 0%,
    rgba(234, 242, 237, 0.94) 42%,
    rgba(241, 236, 247, 0.9) 100%
  );
  border: 1px solid rgba(72, 90, 82, 0.18);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 14px 36px rgba(40, 55, 48, 0.09);
  backdrop-filter: blur(10px);
}

.page-admin-panel .admin-nav-sf .admin-tab {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  padding: 0.52rem 1.12rem;
  border-radius: 999px;
  border: 1px solid rgba(78, 92, 86, 0.2);
  background: rgba(255, 255, 255, 0.62);
  color: #354239;
  box-shadow: 0 2px 10px rgba(45, 62, 54, 0.06);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.page-admin-panel .admin-nav-sf .admin-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 148, 136, 0.38);
  color: #0f766e;
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.12);
}

.page-admin-panel .admin-nav-sf .admin-tab--active {
  background: linear-gradient(130deg, #115e59 0%, #0d9488 50%, #2dd4bf 100%);
  color: #fafaf9;
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 28px rgba(13, 148, 136, 0.3);
}

.page-admin-panel .admin-nav-sf .admin-tab--active:hover {
  color: #fff;
}

.admin-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-account-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}

.admin-account-card > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) minmax(8rem, 1.4fr) minmax(5rem, 1fr) auto auto;
  gap: 0.65rem 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
}

.admin-account-card > summary::-webkit-details-marker {
  display: none;
}

.admin-account-card__messenger {
  font-weight: 700;
  color: var(--text);
}

.admin-account-card__email {
  color: var(--text-muted);
  word-break: break-all;
}

.admin-account-card__pass {
  font-size: 0.78rem;
}

.admin-account-card__status {
  justify-self: end;
}

.admin-account-card__actions {
  justify-self: end;
}

.admin-account-card__body {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, var(--bg-elevated));
  font-size: 0.875rem;
}

.admin-account-card__body dl {
  margin: 0;
  display: grid;
  gap: 0.35rem 1rem;
}

.admin-account-card__body dt {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-account-card__body dd {
  margin: 0;
}

.admin-account-card__plays {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

@media (max-width: 900px) {
  .admin-account-card > summary {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .admin-account-card__status,
  .admin-account-card__actions {
    justify-self: start;
  }
}

.admin-tab-panel {
  margin-bottom: 2rem;
}

.admin-toolbar {
  margin-bottom: 1rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table th {
  background: var(--bg);
  font-weight: 600;
}

.admin-table code {
  font-size: 0.8125rem;
  word-break: break-all;
}

.admin-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}

.admin-details ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.admin-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.admin-tool-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.admin-tool-card p {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.admin-tool-card textarea {
  width: 100%;
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}

.admin-tool-card input[type="text"] {
  width: 100%;
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  box-sizing: border-box;
}

.admin-tool-card label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
}

.admin-tool-card--danger {
  border-color: #fecaca;
  background: color-mix(in srgb, #fee2e2 35%, var(--bg-elevated));
}

.admin-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.admin-stats li {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}

.admin-stats li:last-child {
  border-bottom: none;
}

.admin-audit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.admin-audit-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.admin-muted {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.admin-request-item .admin-badge {
  margin-right: 0.35rem;
}

body.page-catalog .hub-feedback.card,
.page-catalog .hub-feedback {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.hub-feedback__hero-title {
  font-family: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.15;
  color: var(--text);
}

.hub-feedback__subhead {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.hub-feedback__lede {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.hub-feedback__legend {
  font-size: 1.05rem;
  font-weight: 700;
}

.hub-feedback__form input,
.hub-feedback__form textarea {
  max-width: 100%;
  box-sizing: border-box;
}

.settings-toggle--large {
  align-items: center;
  padding: 0.65rem 0.85rem;
  margin: 0 0 0.65rem !important;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg) 80%, var(--accent-soft));
  border: 1px solid var(--border);
}

.settings-toggle--large span {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
}

.settings-toggle--large input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0 !important;
}

.btn-welcome-catalog {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.btn-welcome-catalog:hover {
  background: #fff !important;
  filter: none;
}

.btn-hub-logout {
  background: linear-gradient(180deg, #475569, #334155) !important;
  color: #f8fafc !important;
  border: 2px solid #94a3b8 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-hub-logout:hover {
  filter: brightness(1.12);
}

.admin-status {
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-status--ok {
  color: #059669;
}

.admin-status--bad {
  color: #b91c1c;
}

.btn--sm {
  padding: 0.35rem 0.65rem !important;
  font-size: 0.8125rem !important;
}

body.page-catalog .welcome-readout {
  color: #cbd5e1;
}

body.page-catalog #welcome-title {
  color: #f8fafc;
}

/* —— Hub: speech-bubble messenger launcher —— */
.hub-msg-bubble {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #eef6ff, #dbeafe);
  color: #1e3a5f;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  padding: 0;
}

.hub-msg-bubble:hover {
  border-color: #7dd3fc;
  filter: brightness(1.03);
}

.hub-msg-bubble__icon {
  width: 22px;
  height: 18px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid #2563eb;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hub-msg-bubble__icon::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -5px;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top-color: #2563eb;
  transform: rotate(-25deg);
}

.hub-msg-bubble__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  font-family: "DM Sans", system-ui, sans-serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.hub-messenger-backdrop--name {
  z-index: 4991;
}

/* —— AIM / ICQ inspired messenger —— */
.aim-messenger {
  position: fixed;
  z-index: 4990;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, 96vw);
  height: min(640px, 92vh);
  max-height: 92vh;
  border-radius: 8px;
  border: 2px solid #1e40af;
  box-shadow:
    0 0 0 1px #93c5fd,
    0 24px 60px rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 8%, #e0f2fe 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Tahoma", "Segoe UI", sans-serif;
  font-size: 13px;
  color: #0f172a;
}

.aim-messenger[hidden] {
  display: none !important;
}

.aim-messenger--name-gate {
  z-index: 4992;
  width: min(440px, 94vw);
  height: auto;
  max-height: min(520px, 90vh);
}

.aim-panel--name-gate {
  margin: 0;
  max-width: none;
}

.aim-messenger__chrome {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.aim-messenger__titlebar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: linear-gradient(90deg, #1d4ed8, #2563eb 40%, #3b82f6);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid #1e3a8a;
}

.aim-messenger__close {
  width: 28px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.aim-messenger__close:hover {
  background: rgba(220, 38, 38, 0.85);
  border-color: #fecaca;
}

.aim-messenger__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.aim-panel--setup {
  max-width: 380px;
  margin: 2rem auto;
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 #fff;
}

.aim-panel__h {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #1e3a8a;
}

.aim-panel__lede {
  margin: 0 0 1rem;
  line-height: 1.5;
  color: #475569;
}

.aim-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  font: inherit;
  box-sizing: border-box;
  margin-bottom: 0.35rem;
}

.aim-hint {
  font-size: 11px;
  color: #64748b;
  margin: 0 0 0.75rem;
}

#aim-search-hint {
  margin: -0.25rem 0 0.5rem;
  line-height: 1.4;
}

.aim-btn {
  font: inherit;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #64748b;
  background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
}

.aim-btn--primary {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  border-color: #1e40af;
  font-weight: 600;
}

.aim-btn--im {
  background: linear-gradient(180deg, #fcd34d, #fbbf24);
  border-color: #b45309;
  font-weight: 700;
  margin-top: 0.75rem;
}

.aim-main {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
  height: 100%;
  min-height: 480px;
}

@media (max-width: 720px) {
  .aim-main {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

.aim-buddy-pane {
  background: #f1f5f9;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.aim-buddy-pane__head {
  padding: 6px 8px;
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #94a3b8;
}

.aim-buddy-pane__icq {
  color: #16a34a;
  margin-right: 4px;
}

.aim-buddy-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  flex: 1;
}

.aim-buddy-list__empty {
  padding: 12px 8px;
  color: #64748b;
  font-size: 12px;
}

.aim-buddy-list__item {
  padding: 0;
  border-radius: 4px;
  cursor: default;
  border: 1px solid transparent;
}

.aim-buddy-list__item:hover {
  border-color: #7dd3fc;
}

.aim-buddy-list__row {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.aim-buddy-list__open {
  flex: 1;
  min-width: 0;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 8px;
  border-radius: 4px;
}

.aim-buddy-list__open:hover {
  background: #e0f2fe;
}

.aim-peer-schedule-btn {
  flex-shrink: 0;
  width: 38px;
  margin: 4px 4px 4px 0;
  border: 1px solid #94a3b8;
  background: #f1f5f9;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  align-self: center;
}

.aim-peer-schedule-btn:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
}

.aim-buddy-list__item--unread .aim-buddy-list__name {
  color: #1d4ed8;
}

.aim-buddy-list__dot {
  color: #2563eb;
  font-size: 10px;
  vertical-align: middle;
}

.aim-buddy-list__name {
  display: block;
  font-weight: 700;
  color: #0f172a;
}

.aim-buddy-list__preview {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aim-center-pane {
  background: #f8fafc;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  padding: 12px;
  overflow-y: auto;
}

.aim-you-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #cbd5e1;
  font-size: 12px;
}

.aim-link-btn {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
  padding: 0;
}

.aim-link-btn--warn {
  color: #b45309;
}

.aim-profile-editor {
  background: #fff;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

.aim-profile-editor__h {
  margin: 0 0 8px;
  font-size: 14px;
}

.aim-profile-editor__hint {
  margin-top: 0;
}

.aim-profile-name-change {
  padding: 10px 12px;
  margin: 0 0 12px;
  border-radius: 8px;
  border: 1px dashed #94a3b8;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
}

.aim-profile-name-change__lede {
  margin: 0 0 8px;
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
}

.aim-btn--ghost {
  background: #fff;
  border: 1px solid #0ea5e9;
  color: #0369a1;
  font-weight: 600;
}

.aim-btn--ghost:hover {
  background: #e0f2fe;
}

.aim-profile-status {
  min-height: 1.25em;
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #047857;
}

.aim-profile-editor__avatar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.aim-profile-editor__avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, #93c5fd, #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}

.aim-profile-editor__avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aim-profile-file {
  font-size: 12px;
  margin-top: 4px;
}

.aim-profile-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.aim-schedule-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.aim-schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.aim-schedule-row {
  display: grid;
  grid-template-columns: minmax(108px, 1fr) minmax(0, 2fr);
  gap: 10px;
  align-items: center;
}

@media (max-width: 520px) {
  .aim-schedule-row {
    grid-template-columns: 1fr;
  }
}

.aim-schedule-row__label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

.aim-schedule-select {
  width: 100%;
  margin-bottom: 0;
}

.aim-input--textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.35;
}

.page-admin-panel .admin-mono {
  font-weight: 400;
}

.aim-profile-card__avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #1e40af;
  flex-shrink: 0;
}

.aim-label {
  display: block;
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 4px;
  color: #334155;
}

.aim-find-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.aim-find-row .aim-input {
  flex: 1;
  margin-bottom: 0;
}

.aim-profile-card {
  padding: 12px;
  background: linear-gradient(145deg, #fff 0%, #f1f5f9 100%);
  border: 1px solid #64748b;
  border-radius: 6px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.aim-profile-card--empty {
  background: #fff7ed;
  border-color: #fdba74;
}

.aim-profile-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, #93c5fd, #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
  border: 2px solid #1e40af;
}

.aim-profile-card__meta h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: #1e3a8a;
}

.aim-profile-card__sub {
  margin: 0 0 4px;
  font-size: 11px;
  color: #475569;
}

.aim-profile-card__note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #b45309;
}

.aim-profile-card__motto {
  margin: 8px 0 0;
  font-style: italic;
  color: #334155;
}

.aim-im-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5070;
  background: rgba(15, 23, 42, 0.4);
}

.aim-im-window {
  position: fixed;
  z-index: 5080;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 94vw);
  height: min(82vh, 780px);
  max-height: 90vh;
  background: #f8fafc;
  border: 2px solid #1e40af;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px #93c5fd,
    0 28px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Tahoma", "Segoe UI", sans-serif;
  font-size: 13px;
}

.aim-im-window[hidden] {
  display: none !important;
}

.aim-im-titlebar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: linear-gradient(90deg, #0f766e, #14b8a6 50%, #2dd4bf);
  color: #042f2e;
  font-weight: 700;
  border-bottom: 1px solid #0d9488;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.aim-im-titlebar__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aim-im-schedule-btn {
  flex-shrink: 0;
  width: 30px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.aim-im-schedule-btn:hover {
  background: #fff;
}

.aim-im-close {
  width: 28px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.aim-im-close:hover {
  background: #fecaca;
}

.aim-im-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  background: repeating-linear-gradient(
    0deg,
    #ffffff,
    #ffffff 24px,
    #f8fafc 24px,
    #f8fafc 25px
  );
  border-bottom: 1px solid #cbd5e1;
}

.aim-im-line {
  margin-bottom: 10px;
  line-height: 1.45;
}

.aim-im-line--mine {
  text-align: right;
}

.aim-im-line__who {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #075985;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aim-im-line--mine .aim-im-line__who {
  color: #0f766e;
}

.aim-im-line__text {
  display: inline-block;
  max-width: 85%;
  padding: 6px 10px;
  border-radius: 8px;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  text-align: left;
  color: #0f172a;
  font-weight: 500;
}

.aim-im-line--mine .aim-im-line__text {
  background: #d1fae5;
  border-color: #34d399;
  color: #14532d;
}

.aim-im-line__time {
  display: block;
  font-size: 10px;
  color: #475569;
  margin-top: 2px;
}

.aim-im-compose {
  flex-shrink: 0;
  padding: 8px;
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
  border-top: 1px solid #94a3b8;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.aim-im-input {
  flex: 1;
  font: inherit;
  padding: 8px;
  border: 1px solid #64748b;
  border-radius: 4px;
  resize: none;
  min-height: 52px;
}

.aim-btn--send {
  font-weight: 700;
  background: linear-gradient(180deg, #34d399, #10b981);
  border-color: #047857;
  color: #042f2e;
}

.aim-peer-schedule-backdrop {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(15, 23, 42, 0.45);
}

.aim-peer-schedule-backdrop[hidden] {
  display: none !important;
}

.aim-peer-schedule-pop {
  position: fixed;
  z-index: 6010;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(400px, 92vw);
  max-height: 85vh;
  overflow: auto;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid #1e40af;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-family: Tahoma, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #0f172a;
}

.aim-peer-schedule-pop[hidden] {
  display: none !important;
}

.aim-peer-schedule-pop__inner {
  padding: 14px 16px 16px;
}

.aim-peer-schedule-pop__title {
  margin: 0 0 12px;
  font-size: 15px;
  color: #0f172a;
}

.aim-peer-schedule-pop__list {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.aim-peer-schedule-pop__list li {
  margin-bottom: 8px;
  line-height: 1.45;
}

.aim-peer-schedule-pop__empty {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 12px;
}

/* —— Admin: chat transcript —— */
.admin-chats-root {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-chat-thread {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  background: var(--bg-elevated);
}

.admin-chat-thread summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
}

.admin-chat-msgs {
  margin-top: 0.5rem;
  max-height: 240px;
  overflow-y: auto;
  font-size: 0.8125rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.5rem;
}

.admin-chat-msg {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}

.admin-chat-msg:last-child {
  border-bottom: none;
}

.admin-chat-msg time {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-right: 0.35rem;
}

.admin-chat-msg__from {
  color: var(--accent);
}

/* —— Hub catalog: wide side rails + embedded quick play —— */
.hub-catalog-grid-wrap {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) minmax(200px, 240px);
  gap: 1rem 1.35rem;
  align-items: start;
  max-width: min(1680px, 100%);
  margin: 0 auto;
  padding: 0 0.5rem;
}

.hub-catalog-grid-wrap__center {
  min-width: 0;
}

.hub-catalog-grid-wrap__center .game-grid {
  margin: 0;
}

.hub-side-rail {
  position: sticky;
  top: clamp(72px, 12vh, 120px);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 0 0 0.5rem;
}

.hub-side-rail::-webkit-scrollbar {
  width: 5px;
}

.hub-side-rail::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
}

.hub-side-rail__title {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-muted) 85%, var(--accent));
}

.hub-side-rail__sub {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.hub-embed-dock {
  margin: 0 0 1.25rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.hub-embed-dock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-elevated));
  border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}

.hub-embed-dock__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.hub-embed-dock__close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
}

.hub-embed-dock__close:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}

.hub-embed-dock__body {
  position: relative;
  min-height: 220px;
}

.hub-embed-dock__empty {
  margin: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 48ch;
}

.hub-embed-dock__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  background: #0a0f14;
}

.hub-embed-dock__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.hub-side-rail__pick {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
  background: var(--bg-elevated);
  text-decoration: none;
  color: var(--text);
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 8px 20px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

.hub-side-rail__pick:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 12px 28px rgba(0, 0, 0, 0.18);
}

.hub-side-rail__pick:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hub-side-rail__pick.is-active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.hub-side-rail__thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  object-fit: cover;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
  background: color-mix(in srgb, var(--text-muted) 25%, transparent);
}

.hub-side-rail__cap {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  line-height: 1.2;
}

.hub-side-rail__cap strong {
  font-size: 0.7rem;
  font-weight: 700;
}

.hub-side-rail__cap small {
  font-size: 0.61rem;
  color: var(--text-muted);
  display: block;
}

.hub-side-rail__foot {
  margin: 0.5rem 0 0;
  font-size: 0.62rem;
  line-height: 1.35;
}

.hub-side-rail__foot a {
  color: var(--accent);
}

@media (max-width: 1180px) {
  .hub-catalog-grid-wrap {
    grid-template-columns: minmax(160px, 200px) minmax(0, 1fr) minmax(160px, 200px);
    gap: 0.85rem;
  }

  .hub-side-rail__thumb {
    width: 44px;
    height: 44px;
  }

  .hub-side-rail__cap strong {
    font-size: 0.68rem;
  }
}

@media (max-width: 980px) {
  .hub-catalog-grid-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-catalog-grid-wrap .hub-side-rail {
    display: none;
  }
}

.hub-tip-line {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--accent) 55%, var(--text-muted));
  max-width: 640px;
  line-height: 1.55;
}

.hub-play-tag {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hub-keys-hint {
  position: fixed;
  z-index: 4000;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  max-width: min(560px, 94vw);
  padding: 0.65rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  font-size: 0.8125rem;
  color: var(--text);
}

.hub-keys-hint kbd {
  padding: 0.12rem 0.42rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.75rem;
}

body.hub-first-visit-spark::before {
  content: "";
  position: fixed;
  inset: auto 12% -8% 12%;
  height: min(280px, 38vh);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 100%,
      color-mix(in srgb, var(--accent-soft) 45%, transparent) 0%,
      transparent 70%
    );
  animation: hub-spark-soft 14s ease-in-out infinite alternate;
}

@keyframes hub-spark-soft {
  from {
    opacity: 0.35;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0.55;
    transform: translateY(-12px) scale(1.04);
  }
}

/* —— Admin console polish (ribbon, sticky toolbar, density, mono cells) —— */
.page-admin-panel .admin-console-ribbon {
  height: 4px;
  border-radius: 999px;
  margin: -0.5rem 0 1.25rem;
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853, #4285f4);
  background-size: 200% 100%;
  animation: admin-ribbon-pan 12s linear infinite;
}

@keyframes admin-ribbon-pan {
  from {
    background-position: 0% center;
  }
  to {
    background-position: 200% center;
  }
}

.page-admin-panel .admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
}

.page-admin-panel .admin-breadcrumb kbd {
  padding: 0.1rem 0.42rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.72rem;
}

.page-admin-panel .admin-toolbar--sticky {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.95rem;
  margin: -0.25rem 0 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 96%, transparent);
  backdrop-filter: blur(12px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 12px 32px rgba(0, 0, 0, 0.06);
}

.page-admin-panel .admin-inline-search {
  flex: 1 1 min(340px, 100%);
  min-width: 0;
  padding: 0.45rem 0.72rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.875rem;
}

.page-admin-panel .admin-inline-search:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 1px;
}

.page-admin-panel .admin-filter-label {
  font-size: 0.75rem;
}

.page-admin-panel .admin-density-toggle {
  align-self: center;
  margin-left: auto;
  flex: 0 0 auto;
  padding: 0.45rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(78, 92, 86, 0.22);
  background: rgba(255, 255, 255, 0.7);
  color: #0f766e;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.73rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(45, 62, 54, 0.06);
}

.page-admin-panel .admin-density-toggle:hover {
  border-color: rgba(13, 148, 136, 0.45);
}

.page-admin-panel .admin-tools-grid article.admin-tool-card {
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease;
}

.page-admin-panel .admin-tools-grid article.admin-tool-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 18px 40px rgba(40, 55, 48, 0.1);
}

.page-admin-panel .admin-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.page-admin-panel .admin-console-footer {
  margin-top: 3rem;
  padding: 1rem 0;
  border-top: 1px dashed var(--border);
  font-size: 0.8125rem;
}

body.admin-density-compact .admin-request-item {
  padding: 0.55rem 0.65rem;
}

body.admin-density-compact .admin-request-item h3 {
  font-size: 0.95rem;
}

body.admin-density-compact .admin-request-actions {
  gap: 0.35rem;
}

body.admin-density-compact .admin-tab-panel .card {
  padding: 0.85rem 1rem;
}

body.admin-density-compact .admin-table th,
body.admin-density-compact .admin-table td {
  padding: 0.42rem 0.55rem;
}
