:root {
  --font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

:root {
  color-scheme: dark;
  --navy: #050d18;
  --navy-deep: #020713;
  --panel: #111827;
  --panel-2: #172033;
  --gold: #d8b35a;
  --cyan: #23d9ff;
  --magenta: #ff3db7;
  --text: #f8fafc;
  --muted: #aeb9c9;
  --danger: #f87171;
  --border: rgba(255, 255, 255, 0.12);
  --glow-cyan: rgba(35, 217, 255, 0.34);
  --glow-gold: rgba(216, 179, 90, 0.35);
  --glow-magenta: rgba(255, 61, 183, 0.22);
  --glass-border: rgba(255, 255, 255, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--font-body);
}

html {
  background: var(--navy-deep);
}

body {
  position: relative;
  background: transparent;
  overflow-x: hidden;
}

#storm-bg,
#rain-texture,
#rain-drips,
#lightning-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#storm-bg {
  z-index: -4;
  overflow: hidden;
  background: var(--navy-deep);
  opacity: 1;
  transition: opacity 0.25s ease;
}

.storm-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.02) brightness(0.72) contrast(1.08);
  transition: opacity 1.6s ease;
}

.storm-video.active {
  opacity: 1;
}

#storm-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(12, 54, 63, 0.22), rgba(5, 18, 24, 0.78) 70%),
    linear-gradient(180deg, rgba(6, 26, 30, 0.42) 0%, rgba(6, 20, 24, 0.16) 40%, rgba(4, 14, 18, 0.72) 100%),
    linear-gradient(115deg, rgba(80, 220, 210, 0.15), transparent 45%);
}

#rain-texture {
  z-index: -3;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.rain-tex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 2s ease;
}

.rain-tex.active {
  opacity: 0.18;
}

#rain-drips {
  z-index: -2;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.drip {
  position: absolute;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.48), rgba(255,255,255,0));
  opacity: 0;
  animation: dripFall linear infinite;
}

@keyframes dripFall {
  0% { opacity: 0; transform: translateY(-10px); }
  12% { opacity: 0.48; }
  82% { opacity: 0.34; }
  100% { opacity: 0; transform: translateY(76px); }
}

#lightning-flash {
  z-index: 8;
  background: #eef6ff;
  opacity: 0;
}

#lightning-flash.flash {
  animation: flash 900ms ease-out;
}

@keyframes flash {
  0% { opacity: 0; }
  6% { opacity: 0.72; }
  12% { opacity: 0.08; }
  18% { opacity: 0.46; }
  30% { opacity: 0; }
  100% { opacity: 0; }
}

body.storm-glass-quiet #storm-bg,
body.storm-glass-quiet #rain-texture,
body.storm-glass-quiet #rain-drips {
  opacity: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(180deg, rgba(35, 217, 255, 0.08), transparent 38%, rgba(216, 179, 90, 0.06));
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
button,
.role-button,
.landing-eyebrow,
.landing-experience-tile span,
.landing-brand-tile span,
.landing-game-preview span {
  font-family: var(--font-display);
}

button {
  position: relative;
  overflow: hidden;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px;
  padding: 0 20px;
  color: var(--text);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.1)),
    linear-gradient(160deg, rgba(0, 0, 0, 0.5), rgba(4, 12, 24, 0.46));
  backdrop-filter: blur(30px) saturate(1.22);
  -webkit-backdrop-filter: blur(30px) saturate(1.22);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(35, 217, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -8px 14px -8px rgba(0, 0, 0, 0.68);
  transform: translateY(0) scale(1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 32%, rgba(255, 255, 255, 0.35) 45%, transparent 58% 100%);
  transform: translateX(-125%);
  transition: transform 0.62s ease;
}

button:hover,
button:focus-visible {
  transform: translateY(-2px) scale(1.012);
  border-color: rgba(112, 205, 255, 0.92);
  color: #06101e;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(226, 241, 255, 0.74)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(70, 184, 255, 0.48),
    0 0 18px rgba(70, 184, 255, 0.46),
    0 0 38px rgba(70, 184, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -6px 12px -8px rgba(0, 0, 0, 0.55);
}

button:hover::before,
button:focus-visible::before {
  transform: translateX(125%);
}

button:active {
  transform: translateY(0) scale(0.992);
}

button.secondary {
  color: var(--text);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.09)),
    linear-gradient(160deg, rgba(0, 0, 0, 0.5), rgba(4, 12, 24, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.4);
}

button.secondary:hover,
button.secondary:focus-visible {
  color: #06101e;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(226, 241, 255, 0.74)),
    rgba(255, 255, 255, 0.78);
  border-color: rgba(112, 205, 255, 0.92);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(70, 184, 255, 0.48),
    0 0 18px rgba(70, 184, 255, 0.46),
    0 0 38px rgba(70, 184, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -6px 12px -8px rgba(0, 0, 0, 0.55);
}

button.ghost {
  min-height: 42px;
  color: var(--text);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    linear-gradient(160deg, rgba(4, 12, 24, 0.34), rgba(4, 12, 24, 0.34));
  border: 1px solid var(--border);
}

button.logout-button {
  color: #08111f;
  background:
    linear-gradient(160deg, rgba(216, 179, 90, 0.96), rgba(216, 179, 90, 0.72)),
    var(--gold);
  border-color: rgba(255, 230, 155, 0.68);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.38),
    0 0 18px rgba(216, 179, 90, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -6px 12px -8px rgba(0, 0, 0, 0.5);
}

button.logout-button:hover,
button.logout-button:focus-visible {
  color: var(--text);
  background:
    linear-gradient(160deg, rgba(4, 12, 24, 0.92), rgba(0, 0, 0, 0.76)),
    rgba(0, 0, 0, 0.72);
  border-color: rgba(216, 179, 90, 0.76);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    0 0 26px var(--glow-gold),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -6px 12px -8px rgba(0, 0, 0, 0.55);
}

button.danger-button {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.32);
  border: 1px solid rgba(248, 113, 113, 0.55);
}

button.danger-button:hover {
  background: rgba(153, 27, 27, 0.52);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

input {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  padding: 0 14px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

textarea,
select {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(35, 217, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(35, 217, 255, 0.16), 0 0 24px rgba(35, 217, 255, 0.14);
  background: rgba(0, 0, 0, 0.3);
}

input::placeholder {
  color: var(--muted);
}

textarea {
  width: 100%;
  min-height: 96px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  padding: 14px;
  font: inherit;
  resize: vertical;
}

textarea::placeholder {
  color: var(--muted);
}

select {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  padding: 0 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark;
}

select option {
  background: var(--panel);
  color: var(--text);
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  animation: pageEnter 0.42s ease both;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 36px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(22px) saturate(1.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.topbar img {
  width: min(210px, 46vw);
  height: auto;
  cursor: pointer;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.18));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.topbar img:hover {
  transform: translateY(-1px) scale(1.025);
  filter: drop-shadow(0 0 20px rgba(35, 217, 255, 0.28));
}

.account {
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.account:hover,
.account:focus {
  background: rgba(0, 0, 0, 0.36);
  border-color: rgba(112, 205, 255, 0.76);
  box-shadow:
    0 0 0 1px rgba(70, 184, 255, 0.42),
    0 0 18px rgba(70, 184, 255, 0.26);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.header-menu-toggle {
  display: none;
  width: 44px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
  place-items: center;
  gap: 4px;
}

.header-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.header-logout {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
}

.header-action-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
}

.screen {
  width: min(980px, 100%);
  margin: 0 auto;
  flex: 1;
  padding: 14px 16px 118px;
}

.home-shell .screen {
  flex: 0 0 auto;
  padding-bottom: 18px;
}

.shell-footer {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 8px 16px calc(env(safe-area-inset-bottom) + 28px);
}

.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 22px;
  animation: pageEnter 0.42s ease both;
}

.auth-panel {
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
}

.auth-logo {
  width: min(300px, 72vw);
  margin: 0 auto 22px;
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.2));
  animation: logoFloat 5.4s ease-in-out infinite;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row > * {
  flex: 1;
}

.phone-grid {
  display: grid;
  grid-template-columns: 0.7fr 0.9fr 1.4fr;
  gap: 10px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.field-wrap {
  display: grid;
  gap: 7px;
  color: var(--text);
}

.field-label {
  font-size: 13px;
  font-weight: 900;
}

.field-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.play-link {
  display: block;
  text-align: center;
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
  padding: 8px;
}

.play-link:hover {
  text-decoration: underline;
}

.privacy-link {
  font-size: 14px;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-links .play-link {
  display: inline-block;
}

.legal-page {
  width: min(900px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 36px 0 60px;
  color: var(--text);
  line-height: 1.6;
}

.legal-logo {
  display: block;
  width: min(280px, 70vw);
  height: auto;
  margin: 0 auto 28px;
}

.legal-page h1,
.legal-page h2 {
  color: var(--text);
}

.legal-page h1 {
  font-size: 34px;
  margin: 0 0 12px;
}

.legal-page h2 {
  font-size: 20px;
  margin: 28px 0 8px;
}

.legal-page a {
  color: var(--gold);
  font-weight: 800;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(900px, 100%);
  margin: 26px auto 0;
  padding-bottom: 24px;
}

.menu-grid > * {
  animation: menuItemEnter 0.5s ease both;
}

.menu-grid > *:nth-child(1) { animation-delay: 0.02s; }
.menu-grid > *:nth-child(2) { animation-delay: 0.06s; }
.menu-grid > *:nth-child(3) { animation-delay: 0.1s; }
.menu-grid > *:nth-child(4) { animation-delay: 0.14s; }
.menu-grid > *:nth-child(5) { animation-delay: 0.18s; }
.menu-grid > *:nth-child(6) { animation-delay: 0.22s; }
.menu-grid > *:nth-child(7) { animation-delay: 0.26s; }
.menu-grid > *:nth-child(8) { animation-delay: 0.3s; }
.menu-grid > *:nth-child(9) { animation-delay: 0.34s; }
.menu-grid > *:nth-child(10) { animation-delay: 0.38s; }

.menu-grid button.secondary {
  min-height: 118px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
    linear-gradient(160deg, rgba(0, 0, 0, 0.62), rgba(4, 12, 24, 0.58));
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -8px 14px -8px rgba(0, 0, 0, 0.72);
}

.menu-grid button.secondary:hover,
.menu-grid button.secondary:focus-visible {
  color: #06101e;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(226, 241, 255, 0.74)),
    rgba(255, 255, 255, 0.78);
  border-color: rgba(112, 205, 255, 0.92);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(70, 184, 255, 0.48),
    0 0 18px rgba(70, 184, 255, 0.46),
    0 0 38px rgba(70, 184, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -6px 12px -8px rgba(0, 0, 0, 0.55);
}

.landing-shell .screen {
  width: min(1200px, 100%);
  padding-top: 18px;
  padding-bottom: 28px;
}

.landing-page {
  display: grid;
  gap: 18px;
  padding-bottom: 22px;
}

.landing-hero {
  min-height: clamp(430px, 72vh, 620px);
  display: grid;
  grid-template-columns: minmax(240px, 0.76fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
  padding: clamp(28px, 5vw, 58px) clamp(10px, 2vw, 24px);
}

.landing-hero-brand {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.landing-hero-logo {
  width: min(420px, 100%);
  height: auto;
  filter:
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.22))
    drop-shadow(0 22px 34px rgba(0, 0, 0, 0.48));
}

.landing-hero-copy {
  display: grid;
  gap: 18px;
  max-width: 650px;
}

.landing-hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.landing-lede,
.landing-section-heading > p:not(.landing-eyebrow),
.landing-join-section .landing-section-heading > p:not(.landing-eyebrow) {
  margin: 0;
  color: #c9d3df;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.35;
}

.landing-eyebrow {
  margin: 0;
  color: #f0c95b;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.landing-centered {
  text-align: center;
}

.landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button.landing-primary-action,
button.landing-secondary-action {
  min-height: 58px;
  border-radius: 13px;
  padding: 0 24px;
}

button.landing-primary-action {
  color: #06101e;
  background:
    linear-gradient(160deg, rgba(255, 232, 139, 0.96), rgba(216, 179, 90, 0.92)),
    var(--gold);
  border-color: rgba(255, 237, 169, 0.78);
}

button.landing-primary-action:hover,
button.landing-primary-action:focus-visible {
  color: var(--text);
  background:
    linear-gradient(160deg, rgba(4, 12, 24, 0.94), rgba(0, 0, 0, 0.82)),
    rgba(0, 0, 0, 0.78);
}

.landing-choice-grid,
.landing-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

button.landing-experience-tile {
  min-height: 132px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  text-align: left;
}

.landing-experience-tile span,
.landing-brand-tile span,
.landing-game-preview span {
  color: #f0c95b;
  font-size: 16px;
  font-weight: 700;
}

.landing-experience-tile strong,
.landing-brand-tile strong {
  font-weight: 600;
  font-size: 19px;
  line-height: 1.22;
}

.landing-section,
.landing-join-section {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  padding: clamp(20px, 3vw, 32px);
}

.landing-section-heading {
  display: grid;
  gap: 10px;
}

.landing-section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  align-items: stretch;
}

.landing-feature {
  display: grid;
  gap: 16px;
  align-content: space-between;
  min-height: 230px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.landing-feature-large {
  grid-row: span 2;
}

.landing-feature p {
  margin: 0;
  color: #dce6ef;
  font-weight: 600;
}

.landing-feature h3 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}

.landing-feature-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.landing-feature-media video,
.landing-feature-media img,
.landing-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.landing-video-frame video {
  background: #000;
  object-fit: contain;
}

.landing-feature-media img {
  object-fit: contain;
  padding: 24px;
}

.landing-youtube-feature {
  overflow: hidden;
}

.landing-latest-video {
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 16px;
}

.landing-latest-video h3 {
  font-size: clamp(20px, 2.2vw, 26px);
}

.landing-latest-video span {
  color: #dce6ef;
  font-weight: 600;
}

.landing-latest-video .landing-youtube-frame {
  width: min(100%, 420px);
  max-height: 190px;
  justify-self: center;
}

.landing-latest-video .landing-youtube-frame iframe {
  object-fit: cover;
}

.landing-latest-media-column,
.landing-latest-feature-column {
  display: grid;
  gap: 14px;
  align-content: stretch;
  height: 100%;
}

.landing-latest-book {
  align-content: start;
}

.landing-book-cover {
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #05070c;
}

.landing-book-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.landing-book-cover-fallback {
  padding: 18px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 22%, rgba(216, 179, 90, 0.28), transparent 34%),
    linear-gradient(140deg, rgba(10, 18, 30, 0.95), rgba(0, 0, 0, 0.96));
}

.landing-book-cover-fallback span,
.landing-book-cover-fallback strong {
  font-family: var(--font-display);
}

.landing-book-cover-fallback span {
  color: #f0c95b;
  font-size: 18px;
  font-weight: 700;
}

.landing-book-cover-fallback strong {
  color: var(--text);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 0.95;
}

.landing-latest-book span {
  color: #c9d3df;
  line-height: 1.4;
}

.landing-latest-bolt {
  height: clamp(218px, 22vw, 250px);
  align-content: start;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.landing-bolt-title,
.landing-bolt-meta {
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.landing-latest-bolt.is-transitioning .landing-bolt-title,
.landing-latest-bolt.is-transitioning .landing-bolt-meta {
  transform: translateY(8px);
  opacity: 0;
}

.landing-bolt-title {
  align-self: center;
  overflow: hidden;
  display: -webkit-box;
  font-weight: 600;
  font-size: var(--bolt-title-size, 25px);
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.landing-latest-bolt span {
  color: #c9d3df;
  line-height: 1.4;
}

.landing-book-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.landing-book-actions button {
  min-height: 48px;
  padding: 0 14px;
}

.landing-youtube-frame,
.landing-youtube-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.landing-youtube-frame iframe,
.landing-youtube-frame video,
.landing-youtube-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.landing-news-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.landing-news-list {
  align-content: start;
}

.landing-news-list-items {
  display: grid;
  gap: 12px;
}

.landing-news-card:hover,
.landing-news-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(112, 205, 255, 0.84);
  box-shadow:
    0 0 0 1px rgba(112, 205, 255, 0.28),
    0 0 22px rgba(35, 149, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.landing-news-card p {
  color: #f0c95b;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.landing-news-card strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.1;
}

.landing-news-card span {
  color: #c9d3df;
  line-height: 1.45;
}

.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
}

.landing-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.landing-video-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--text);
  font-weight: 900;
  text-align: center;
  background: rgba(0, 0, 0, 0.22);
}

.landing-video-status.hidden {
  display: none;
}

.landing-destination-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-destination-grid .landing-section-heading {
  grid-column: 1 / -1;
}

.landing-brand-tile {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  color: var(--text);
  text-decoration: none;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    rgba(0, 0, 0, 0.3);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.landing-brand-tile:hover,
.landing-brand-tile:focus-visible {
  color: #06101e;
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.42),
    0 0 0 2px rgba(70, 184, 255, 0.48),
    0 0 34px rgba(70, 184, 255, 0.34);
}

.landing-image-tile {
  place-items: center;
  background: rgba(0, 0, 0, 0.56);
}

.landing-casicomo-tile {
  background: rgba(255, 255, 255, 0.9);
}

.landing-games-tile {
  position: relative;
  gap: 0;
}

.landing-games-tile .landing-games-logo {
  max-width: min(260px, 88%);
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.landing-games-tile strong {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 22px;
  margin-top: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.landing-games-tile:hover strong,
.landing-games-tile:focus-visible strong {
  color: #06101e;
}

.landing-image-tile img {
  max-width: min(300px, 88%);
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.landing-game-preview {
  min-height: 300px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(22px, 4vw, 44px);
  border-radius: 18px;
  background:
    radial-gradient(circle at 65% 24%, rgba(35, 217, 255, 0.2), transparent 34%),
    radial-gradient(circle at 25% 70%, rgba(216, 179, 90, 0.15), transparent 36%),
    rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.landing-game-preview p {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 600;
}

.landing-featured-book-preview {
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 0.58fr);
  align-items: center;
  align-content: center;
}

.landing-featured-book-preview .landing-book-cover {
  width: min(190px, 100%);
  max-height: 260px;
  justify-self: center;
}

.landing-featured-book-preview p {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.landing-featured-book-preview button {
  grid-column: 2;
}

.landing-mini-grid {
  margin-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-mini-grid button {
  min-height: 82px;
}

.landing-join-section {
  display: grid;
  gap: 18px;
}

.landing-join-section .landing-section-heading h2 {
  max-width: 820px;
}

.channel-page {
  display: grid;
  gap: 26px;
  padding-bottom: 108px;
}

.channel-hero {
  display: grid;
  gap: 8px;
  padding: 8px 0;
}

.channel-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
}

.channel-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.channel-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.channel-page .channel-actions button.secondary {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.channel-page .channel-actions button.secondary:hover,
.channel-page .channel-actions button.secondary:focus-visible {
  color: #06101e;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(226, 241, 255, 0.74)),
    rgba(255, 255, 255, 0.78);
  border-color: rgba(112, 205, 255, 0.92);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(70, 184, 255, 0.48),
    0 0 18px rgba(70, 184, 255, 0.46),
    0 0 38px rgba(70, 184, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -6px 12px -8px rgba(0, 0, 0, 0.55);
}

.admin-control-group {
  display: grid;
  gap: 12px;
}

.admin-control-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px;
  align-items: center;
  padding: 0 2px;
}

.admin-control-heading h2 {
  margin: 0;
  color: var(--gold);
  font-size: 18px;
  line-height: 1.2;
}

.admin-control-heading p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.admin-toggle {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.admin-control-group:not(.open) > .channel-actions {
  display: none;
}

.admin-content-picker {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.hidden {
  display: none !important;
}

.admin-upload-host {
  display: grid;
  gap: 14px;
}

.channel-section {
  display: grid;
  gap: 16px;
}

.channel-section h2 {
  margin: 4px 0 2px;
  font-size: 22px;
  line-height: 1.15;
}

.channel-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-channel-page .channel-list {
  grid-template-columns: 1fr;
}

.admin-panel,
.admin-edit-card {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: clamp(16px, 3vw, 22px);
}

.admin-panel h2 {
  margin: 0 0 2px;
  font-size: 22px;
}

.admin-panel input,
.admin-panel textarea,
.admin-panel select,
.admin-edit-card input,
.admin-edit-card textarea,
.admin-edit-card select,
.admin-toolbar input,
.admin-toolbar select {
  min-height: 54px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.3);
}

.admin-panel textarea,
.admin-edit-card textarea {
  min-height: 126px;
  width: 100%;
  display: block;
}

.admin-panel input[type="file"] {
  min-height: 58px;
  padding: 14px;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.3);
}

.admin-panel button {
  justify-self: start;
  min-width: 170px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(140px, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.rotation-admin-toolbar {
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  color: var(--text);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 800;
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

.admin-pager,
.admin-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-media-card {
  gap: 14px;
}

.admin-media-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 230px);
  gap: 16px;
  align-items: start;
}

.admin-media-content {
  display: grid;
  gap: 8px;
}

.admin-media-content h3 {
  margin: 0;
  color: #67e8f9;
  font-size: 17px;
  line-height: 1.25;
}

.admin-media-details {
  color: var(--text);
  font-size: 14px;
}

.admin-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  color: #031017;
  background: #22c55e;
  font-size: 11px;
  font-weight: 900;
}

.admin-card-actions {
  justify-content: flex-end;
}

.admin-card-actions button {
  width: 100%;
}

.admin-replace-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
}

.upload-progress {
  display: grid;
  gap: 8px;
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.upload-progress-track {
  overflow: hidden;
  height: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.upload-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, var(--gold), #8b5cf6);
  transition: width 0.18s ease;
}

.admin-pager button {
  width: 46px;
  min-height: 44px;
  padding: 0;
}

.admin-go-pager .admin-page-input {
  width: 74px;
  min-height: 44px;
  padding: 0 10px;
  text-align: center;
}

.admin-inline-preview,
.admin-preview {
  display: grid;
  gap: 8px;
}

.admin-inline-preview:empty {
  display: none;
}

.admin-inline-preview:not(:empty),
.admin-preview:not(:empty) {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.3);
  padding: 14px;
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

.admin-preview-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-inline-preview video,
.admin-inline-preview audio,
.admin-inline-preview img,
.admin-preview video,
.admin-preview audio,
.admin-preview img {
  width: 100%;
  max-height: 360px;
  border-radius: 12px;
  background: #000;
  object-fit: contain;
}

.admin-inline-preview video,
.admin-inline-preview img {
  max-height: 300px;
}

.admin-edit-details {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.admin-edit-details summary {
  cursor: pointer;
  color: #c084fc;
  font-weight: 900;
}

.article-editor textarea {
  min-height: 160px;
}

.article-block-form {
  margin: 12px 0;
}

.article-block-list {
  display: grid;
  gap: 12px;
}

.article-block-row {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.comment-composer {
  border-color: rgba(226, 185, 90, 0.42);
}

.comment-composer textarea {
  min-height: 110px;
}

.admin-edit-details[open] {
  gap: 14px;
}

.admin-edit-details[open] summary {
  margin-bottom: 2px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.admin-card-meta {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.channel-card,
.channel-placeholder {
  min-height: 84px;
  text-align: left;
  color: var(--text);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 14px;
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.channel-card-title,
.channel-card-meta {
  display: block;
}

.channel-card-title {
  font-weight: 900;
  margin-bottom: 6px;
}

.channel-card-meta,
.channel-placeholder {
  color: var(--muted);
}

.jatanium-menu-button {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 118px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 58%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -8px 14px -8px rgba(0, 0, 0, 0.72);
}

.jatanium-menu-button img {
  display: block;
  width: min(220px, 78%);
  max-height: 62px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.18))
    drop-shadow(0 0 18px rgba(70, 184, 255, 0.12));
}

.casicomo-menu-button img {
  width: min(220px, 68%);
}

.casicomo-menu-button {
  background: #fff;
}

.jatanium-menu-button:hover,
.jatanium-menu-button:focus-visible {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(226, 241, 255, 0.74)),
    rgba(255, 255, 255, 0.78);
  border-color: rgba(112, 205, 255, 0.92);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(70, 184, 255, 0.48),
    0 0 18px rgba(70, 184, 255, 0.46),
    0 0 38px rgba(70, 184, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -6px 12px -8px rgba(0, 0, 0, 0.55);
}

.casicomo-menu-button:hover,
.casicomo-menu-button:focus-visible {
  background:
    linear-gradient(160deg, rgba(4, 12, 24, 0.92), rgba(0, 0, 0, 0.76)),
    rgba(0, 0, 0, 0.72);
}

.notice {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px;
  color: var(--muted);
}

.trial-media-notice {
  margin: 0 0 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.3);
  color: var(--text);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.subscription-gate {
  display: grid;
  gap: 18px;
}

.subscription-gate button {
  justify-self: start;
}

.error {
  color: var(--danger);
  min-height: 24px;
}

.toolbar {
  display: grid;
  gap: 12px;
  margin: 8px 0 18px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.media-status {
  margin-bottom: 14px;
}

.media-list,
.book-list,
.bolt-list {
  display: grid;
  gap: 10px;
}

.bolt-card {
  width: 100%;
  color: var(--text);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.bolt-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.bolt-body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
  font-size: 16px;
}

.item-button {
  width: 100%;
  min-height: 68px;
  text-align: left;
  display: block;
  color: var(--text);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.item-title {
  display: block;
  font-size: 17px;
  font-weight: 800;
}

.item-meta {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.status-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 56px;
  align-items: center;
  gap: 8px;
  margin: 18px 0 12px;
}

.status-pager .message {
  margin: 0;
}

.status-pager .button {
  min-height: 48px;
  padding: 0;
}

.ad-slot {
  width: min(720px, calc(100vw - 32px));
  min-height: 90px;
  margin: 12px auto;
  display: grid;
  place-items: center;
  overflow: visible;
}

.video-ad-slot {
  width: min(420px, calc(100vw - 32px));
  min-height: 260px;
  margin: 14px auto 18px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.radio-box {
  width: min(720px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.3);
  padding: 18px;
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.radio-title {
  font-size: 22px;
  font-weight: 900;
}

.radio-box audio {
  width: 100%;
}

.radio-ad-slot {
  width: min(300px, calc(100vw - 32px));
  min-height: 300px;
  margin: 26px auto 0;
  display: grid;
  place-items: center;
  overflow: visible;
}

.broadcast-ad-slot {
  width: min(300px, calc(100vw - 32px));
  min-height: 300px;
  margin: 26px auto 0;
  display: grid;
  place-items: center;
  overflow: visible;
}

.media-playback-ad-slot {
  width: min(300px, calc(100vw - 32px));
  min-height: 300px;
  margin: 34px auto 0;
  display: grid;
  place-items: center;
  overflow: visible;
}

.book-ad-slot {
  width: min(300px, calc(100vw - 32px));
  min-height: 300px;
  margin: 4px auto 18px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.player-page {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-box {
  position: relative;
  flex: 1;
  width: min(1180px, 100%);
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 150px);
  min-height: 260px;
  margin: 0 auto;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(35, 217, 255, 0.14), transparent 58%),
    #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 26px 58px rgba(0, 0, 0, 0.58),
    0 0 28px rgba(35, 217, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.player-box video,
.player-box img,
.player-box audio {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-box.broadcast video {
  object-fit: contain;
}

.player-box.audio-player {
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(35, 217, 255, 0.16), transparent 60%),
    #000;
}

.audio-stage {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: center;
  justify-items: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 58px);
  background: #000;
}

.audio-stage-logo {
  width: min(520px, 82%);
  max-height: 52%;
  object-fit: contain;
  opacity: 0.82;
}

.audio-stage-title,
.media-track-title {
  color: var(--text);
  text-align: center;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.audio-stage-title {
  width: min(820px, 100%);
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.2;
}

.audio-stage audio {
  width: min(760px, 100%);
  height: 54px;
}

.media-track-title {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  z-index: 2;
  padding: 0 64px;
  font-size: clamp(15px, 2vw, 22px);
  pointer-events: none;
}

.overlay-logo {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  width: min(160px, 38vw);
  min-height: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(5, 13, 24, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.overlay-logo.visible,
.overlay-logo:hover {
  opacity: 0.78;
  pointer-events: auto;
}

.overlay-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.overlay-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 6;
}

.overlay-controls .button,
.overlay-controls button {
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
  padding: 10px 14px;
  font-size: clamp(13px, 3vw, 16px);
  line-height: 1.1;
  white-space: nowrap;
}

.overlay-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 7;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 999px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    rgba(5, 13, 24, 0.68);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  font-size: 24px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.overlay-close.visible,
.overlay-close:hover {
  opacity: 1;
  pointer-events: auto;
}

.overlay-controls.visible {
  opacity: 1;
  pointer-events: auto;
}

.loading-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
}

.loading-screen {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--text);
  text-align: center;
  font-weight: 900;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.24);
  border-top-color: var(--gold);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.reader-page {
  min-height: calc(100dvh - 82px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.reader-shell .screen {
  width: min(1400px, 100%);
}

.reader-header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.reader-header-controls button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}

.reader-header-controls input {
  width: 82px;
  min-height: 38px;
  border-radius: 999px;
  text-align: center;
  padding: 0 10px;
  flex: 0 0 auto;
}

.reader-frame {
  flex: 1;
  min-height: calc(100dvh - 132px);
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

.control-toggle {
  position: fixed;
  z-index: 20;
  top: 12px;
  right: 12px;
}

.site-ad {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 32px));
  min-height: 90px;
  display: grid;
  place-items: center;
  pointer-events: auto;
  overflow: visible;
}

.home-shell .site-ad {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  margin: 8px auto 0;
}

.ad-slot [data-sorpentor-ad-slot],
.site-ad [data-sorpentor-ad-slot],
.video-ad-slot [data-sorpentor-ad-slot],
.radio-ad-slot [data-sorpentor-ad-slot],
.broadcast-ad-slot [data-sorpentor-ad-slot],
.media-playback-ad-slot [data-sorpentor-ad-slot],
.book-ad-slot [data-sorpentor-ad-slot] {
  overflow: visible;
}

.ad-slot a[href*="marketing.jastorm.com"],
.site-ad a[href*="marketing.jastorm.com"],
.video-ad-slot a[href*="marketing.jastorm.com"],
.radio-ad-slot a[href*="marketing.jastorm.com"],
.broadcast-ad-slot a[href*="marketing.jastorm.com"],
.media-playback-ad-slot a[href*="marketing.jastorm.com"],
.book-ad-slot a[href*="marketing.jastorm.com"] {
  top: -20px !important;
  right: 0 !important;
  z-index: 5 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.media-playback-ad-slot a[href*="marketing.jastorm.com"] {
  left: auto !important;
  transform: none !important;
}

.controlled-ad-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.controlled-ad-frame video {
  display: block;
  width: min(420px, calc(100vw - 32px));
  height: auto;
  max-height: 260px;
  object-fit: contain;
  background: #000;
}

.jastorm-ads-link {
  position: absolute;
  top: -20px;
  right: 0;
  z-index: 5;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  font: 11px Arial, sans-serif;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.fullscreen:not(.reader-fullscreen) .topbar,
.fullscreen .site-ad,
.fullscreen .broadcast-ad-slot,
.fullscreen .radio-ad-slot,
.fullscreen .media-playback-ad-slot,
.fullscreen .book-ad-slot {
  display: none;
}

.fullscreen .screen {
  width: 100%;
  padding: 0;
}

.fullscreen .player-page,
.fullscreen .reader-page {
  min-height: 100dvh;
}

.fullscreen .player-box,
.fullscreen:not(.reader-fullscreen) .reader-frame {
  height: 100dvh;
  min-height: 100dvh;
  width: 100%;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
}

.player-box:fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  min-height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
}

@media (orientation: landscape) {
  .fullscreen .media-player,
  .fullscreen .player-box.broadcast {
    height: 100dvh;
    min-height: 100dvh;
    width: 100vw;
  }

  .fullscreen .media-player video,
  .fullscreen .player-box.broadcast video {
    width: 100vw;
    height: 100dvh;
    object-fit: contain;
  }

  .fullscreen .overlay-controls {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .site-ad {
    bottom: 12px;
    height: auto;
    aspect-ratio: 8 / 1;
    min-height: 0;
    max-height: 90px;
  }

  .radio-ad-slot {
    width: min(720px, calc(100vw - 32px));
    min-height: 0;
    aspect-ratio: 8 / 1;
  }

  .broadcast-ad-slot {
    width: min(720px, calc(100vw - 32px));
    min-height: 0;
    aspect-ratio: 8 / 1;
  }

  .media-playback-ad-slot {
    width: min(720px, calc(100vw - 32px));
    min-height: 0;
    aspect-ratio: 8 / 1;
    max-height: 90px;
  }

  .book-ad-slot {
    width: min(720px, calc(100vw - 32px));
    min-height: 0;
    aspect-ratio: 8 / 1;
  }

  .screen {
    padding-bottom: 88px;
  }

  .media-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .topbar {
    min-height: 70px;
  }

  .row,
  .pager {
    flex-direction: column;
  }

  .reader-controls.visible {
    grid-template-columns: 1fr;
  }

  .phone-grid {
    grid-template-columns: 1fr;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .channel-hero,
  .channel-actions,
  .admin-toolbar,
  .channel-list {
    grid-template-columns: 1fr;
  }

  .channel-page {
    gap: 30px;
  }

  .admin-panel,
  .admin-edit-card,
  .admin-toolbar {
    padding: 16px;
  }

  .admin-list-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-media-summary {
    grid-template-columns: 1fr;
  }

  .admin-pager {
    justify-content: flex-end;
  }

  .admin-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-panel button,
  .admin-card-actions button {
    width: 100%;
  }
}

.account-page {
  display: grid;
  gap: 18px;
  width: min(680px, 100%);
  margin: 0 auto;
}

.account-title h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 7vw, 52px);
}

.account-title p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.35;
}

.account-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.82);
}

.account-status-grid {
  display: grid;
  gap: 10px;
}

.account-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.account-status-row:last-child {
  border-bottom: 0;
}

.account-status-row span {
  color: var(--muted);
}

.account-status-row strong {
  text-align: right;
}

.account-actions {
  display: grid;
  gap: 12px;
}

.auth-status:empty {
  display: none;
}

.security-list {
  display: grid;
  gap: 10px;
}

.security-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.security-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.security-row strong {
  overflow-wrap: anywhere;
}

.security-row span {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.security-row button {
  min-height: 44px;
}

.device-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .security-row {
    grid-template-columns: 1fr;
  }

  .device-actions {
    grid-template-columns: 1fr;
  }
}

/* Desktop/web book reader fullscreen */
.reader-fullscreen .app-shell {
  min-height: 100dvh;
}

.reader-fullscreen .topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 150;
  min-height: 70px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.42);
}

.reader-fullscreen .screen {
  width: 100vw;
  height: 100dvh;
  padding: 0;
}

.reader-fullscreen .reader-page {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.3);
}

.reader-fullscreen .reader-frame {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  border-radius: 0;
}

@keyframes jastormBackdropShift {
  from {
    background-position: 0% 12%, 100% 20%, 0% 0%, 0 0;
  }

  to {
    background-position: 100% 28%, 0% 40%, 100% 0%, 0 0;
  }
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menuItemEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 640px) {
  button:hover,
  button:focus-visible,
  .jatanium-menu-button:hover,
  .jatanium-menu-button:focus-visible {
    transform: none;
  }

  .bolts-page .bolt-list {
    padding-bottom: 132px;
  }

  .menu-grid button.secondary {
    min-height: 96px;
  }
}

@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .header-menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .header-actions {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
      rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .header-actions.open {
    display: flex;
  }

  .header-actions > *,
  .header-actions button {
    width: 100%;
  }

  .header-actions .account {
    min-height: 40px;
    display: grid;
    place-items: center;
    text-align: center;
  }

  .reader-header-controls {
    width: 100%;
    flex-wrap: wrap;
    justify-content: stretch;
    overflow-x: visible;
  }

  .reader-header-controls button {
    flex: 1 1 90px;
  }

  .reader-header-controls input {
    flex: 1 1 100px;
    width: auto;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(620px, 100%);
  }

  .landing-shell .screen {
    padding-top: 10px;
  }

  .landing-page {
    gap: 14px;
  }

  .landing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
    padding: 24px 0 18px;
  }

  .landing-hero-copy {
    justify-items: center;
    max-width: none;
  }

  .landing-hero-copy h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .landing-lede {
    max-width: 560px;
  }

  .landing-actions {
    width: 100%;
    justify-content: center;
  }

  .landing-actions button {
    flex: 1 1 220px;
  }

  .landing-choice-grid,
  .landing-feature-grid,
  .landing-split,
  .landing-destination-grid,
  .landing-mini-grid {
    grid-template-columns: 1fr;
  }

  .landing-feature-large {
    grid-row: auto;
  }

  .landing-section,
  .landing-join-section {
    padding: 18px;
  }

  .landing-section-heading h2 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .landing-brand-tile {
    min-height: 112px;
  }
}

@media (max-width: 520px) {
  .menu-grid {
    grid-template-columns: 1fr;
    width: min(420px, 100%);
  }

  .menu-grid button.secondary,
  .jatanium-menu-button {
    min-height: 74px;
  }

  .landing-hero-logo {
    width: min(300px, 86vw);
  }

  .landing-eyebrow {
    font-size: 14px;
  }

  button.landing-primary-action,
  button.landing-secondary-action {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
  }

  button.landing-experience-tile {
    min-height: 108px;
  }

  .landing-feature {
    min-height: 190px;
    padding: 16px;
  }

  .landing-latest-bolt {
    height: 244px;
    min-height: 0;
    gap: 12px;
  }

  .landing-bolt-title {
    -webkit-line-clamp: 3;
  }

  .landing-game-preview {
    min-height: 220px;
  }

  .landing-featured-book-preview {
    grid-template-columns: 1fr;
  }

  .landing-featured-book-preview .landing-book-cover {
    width: min(220px, 100%);
    max-height: 300px;
  }

  .landing-featured-book-preview button {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
