:root {
  --bg: #12071f;
  --bg-2: #22103a;
  --surface: rgba(35, 15, 54, 0.9);
  --surface-strong: #2b1740;
  --surface-soft: rgba(53, 25, 79, 0.58);
  --primary: #7d4dff;
  --primary-strong: #6a3ee6;
  --accent: #ff8b32;
  --accent-2: #48b7ff;
  --text: #fff9ff;
  --muted: #d6bfdc;
  --line: rgba(181, 126, 255, 0.3);
  --line-strong: rgba(255, 198, 136, 0.35);
  --shadow: 0 12px 0 rgba(58, 28, 92, 0.34), 0 24px 50px rgba(8, 1, 17, 0.43), inset 0 1px rgba(255, 255, 255, 0.08);
  --soft-shadow: 0 10px 24px rgba(13, 3, 24, 0.22);
  --radius: 16px;
  --radius-lg: 20px;
  --radius-sm: 12px;
  --gap: 14px;
  --header-bg: rgba(43, 23, 64, 0.92);
  --page-bg:
    radial-gradient(1200px 640px at 0% -10%, rgba(109, 67, 255, 0.22), transparent 56%),
    radial-gradient(900px 540px at 110% 5%, rgba(255, 139, 50, 0.17), transparent 56%),
    linear-gradient(180deg, #12071f 0%, #1b0d2e 42%, #12071f 100%);
}

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

html {
  min-height: 100%;
  overflow-x: hidden;
  background: #12071f;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font: 14px/1.6 "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--page-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 171, 94, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 14%, rgba(129, 82, 255, 0.14) 0 2px, transparent 3px),
    linear-gradient(90deg, rgba(135, 85, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(135, 85, 255, 0.06) 1px, transparent 1px);
  background-size: 92px 92px, 120px 120px, 34px 34px, 34px 34px;
  opacity: 0.24;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

#app {
  min-height: 100vh;
}

.ng-theme-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(59, 15, 89, 0.12), rgba(17, 6, 31, 0.08)),
    radial-gradient(1200px 520px at 50% -8%, rgba(123, 77, 255, 0.16), transparent 62%);
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.page-shell[data-theme="original"] {
  --bg: #0f172a;
  --bg-2: #1e293b;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --text: #0f172a;
  --muted: #64748b;
  --header-bg: rgba(255, 255, 255, 0.92);
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --soft-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  --line: rgba(37, 99, 235, 0.18);
  --line-strong: rgba(249, 115, 22, 0.18);
  --page-bg:
    radial-gradient(900px 540px at 0% -10%, rgba(47, 123, 255, 0.14), transparent 54%),
    radial-gradient(780px 440px at 108% 0%, rgba(84, 193, 255, 0.14), transparent 56%),
    linear-gradient(180deg, #f7f9fc 0%, #f3f6fa 100%);
}

.page-shell[data-theme="cosmic"] {
  --primary: #3b82f6;
  --primary-strong: #2563eb;
  --accent: #22d3ee;
  --accent-2: #8b5cf6;
}

.page-shell[data-theme="aurora"] {
  --primary: #22c55e;
  --primary-strong: #16a34a;
  --accent: #06b6d4;
  --accent-2: #38bdf8;
}

.page-shell[data-theme="gold"] {
  --primary: #d97706;
  --primary-strong: #b45309;
  --accent: #f59e0b;
  --accent-2: #ef4444;
}

/* The reference light state changes the whole surface system, including
   floating controls and data panels, instead of only swapping the page color. */
html[data-display-mode="light"],
html[data-display-mode="light"] body {
  color: #34203d;
  background: var(--page-bg);
}

html[data-display-mode="light"] body::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 171, 94, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 14%, rgba(129, 82, 255, 0.14) 0 2px, transparent 3px),
    linear-gradient(90deg, rgba(135, 85, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(135, 85, 255, 0.08) 1px, transparent 1px);
  opacity: 0.42;
}

html[data-display-mode="light"] .ng-theme-scene {
  opacity: 0.16;
  background:
    linear-gradient(180deg, rgba(255, 249, 253, 0.7), rgba(242, 233, 255, 0.9)),
    url('./reference-assets/background-640.webp') center top / cover no-repeat;
}

html[data-display-mode="light"] .panel,
html[data-display-mode="light"] .item-card,
html[data-display-mode="light"] .tool-card,
html[data-display-mode="light"] .lottery-card,
html[data-display-mode="light"] .promo-card,
html[data-display-mode="light"] .admin-card,
html[data-display-mode="light"] .subsite-card,
html[data-display-mode="light"] .activity-item,
html[data-display-mode="light"] .detail-row,
html[data-display-mode="light"] .player-frame,
html[data-display-mode="light"] .empty-state {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

html[data-display-mode="light"] .tab-button,
html[data-display-mode="light"] .sidebar-item,
html[data-display-mode="light"] .mobile-category-button,
html[data-display-mode="light"] .nav-quick-btn,
html[data-display-mode="light"] .btn--ghost,
html[data-display-mode="light"] .btn--soft {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(237, 229, 250, 0.92);
  box-shadow: 0 6px 0 rgba(133, 92, 202, 0.08), 0 12px 24px rgba(92, 53, 121, 0.08), inset 0 1px rgba(255, 255, 255, 0.75);
}

html[data-display-mode="light"] .btn--accent,
html[data-display-mode="light"] .mobile-category-button.is-active,
html[data-display-mode="light"] .item-cta {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(125deg, #6b3fe9, #8e50ff 48%, #ff8137);
  box-shadow: 0 6px 0 rgba(69, 30, 116, 0.22), 0 14px 27px rgba(80, 36, 130, 0.18), inset 0 1px rgba(255, 255, 255, 0.28);
}

html[data-display-mode="light"] .notice-bar {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 0 rgba(133, 92, 202, 0.08), 0 18px 38px rgba(92, 53, 121, 0.1), inset 0 1px rgba(255, 255, 255, 0.82);
}

html[data-display-mode="light"] .notice-marquee span,
html[data-display-mode="light"] .section-title,
html[data-display-mode="light"] .item-title,
html[data-display-mode="light"] .item-score,
html[data-display-mode="light"] .item-stars,
html[data-display-mode="light"] .admin-panel h2,
html[data-display-mode="light"] .admin-panel h3 {
  color: var(--text);
}

html[data-display-mode="light"] .modal-backdrop,
html[data-display-mode="light"] .home-promo-backdrop {
  background: rgba(42, 28, 61, 0.24);
}

.mobile-header-art,
.site-share-gift {
  display: none;
}

.launch-overlay {
  --launch-scene-rgb: 4, 7, 14;
  --launch-surface-rgb: 8, 14, 25;
  --launch-ink-rgb: 246, 247, 250;
  --launch-muted-rgb: 171, 181, 199;
  --launch-accent-rgb: 112, 102, 220;
  --launch-accent-2-rgb: 116, 204, 232;
  --launch-gold-rgb: 221, 187, 121;
  --launch-film-x: 0px;
  --launch-film-y: 0px;
  --launch-haze-x: 0px;
  --launch-haze-y: 0px;
  --launch-ui-x: 0px;
  --launch-ui-y: 0px;
  --launch-pointer-x: 50%;
  --launch-pointer-y: 50%;
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  overflow: hidden;
  color: rgb(var(--launch-ink-rgb));
  background: rgb(var(--launch-scene-rgb));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overscroll-behavior: none;
}

html.launch-active {
  overflow: hidden !important;
  scrollbar-gutter: auto !important;
}

html.launch-active .ng-action-hub-toggle,
html.launch-active .ng-scroll-top,
html.launch-active .theme-mode-toggle,
html.launch-active .activity-hall-toggle,
html.launch-active .service-float-btn,
html.launch-active .display-mode-float,
html.launch-active .ng-record-float,
html.launch-active .mobile-reference-floats {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.launch-overlay p,
.launch-overlay small,
.launch-overlay strong,
.launch-overlay button {
  line-height: normal;
}

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

.launch-world,
.launch-world::before,
.launch-world::after,
.launch-color-field,
.launch-haze,
.launch-particles,
.launch-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.launch-world {
  z-index: 0;
  overflow: hidden;
  background: rgb(var(--launch-scene-rgb)) var(--launch-fallback) 50% 50% / cover no-repeat;
}

.launch-film {
  position: absolute;
  z-index: 1;
  inset: -12px;
  display: block;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  filter: saturate(1.06) contrast(1.08) brightness(0.8);
  transform: translate3d(var(--launch-film-x), var(--launch-film-y), 0) scale(1.018);
  transition: opacity 700ms cubic-bezier(.22, 1, .36, 1), filter 700ms ease;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.launch-film.is-active {
  opacity: 1;
}

.launch-color-field {
  z-index: 2;
  opacity: 0.18;
  background:
    radial-gradient(ellipse at 62% 40%, rgba(var(--launch-accent-2-rgb), .34), transparent 44%),
    linear-gradient(124deg, rgba(var(--launch-scene-rgb), .72), rgba(var(--launch-accent-rgb), .2) 58%, rgba(var(--launch-gold-rgb), .12));
  mix-blend-mode: color;
}

.launch-world::before {
  z-index: 2;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 5, 12, .55) 0%, rgba(2, 5, 12, .16) 43%, rgba(2, 5, 12, .05) 68%, rgba(2, 5, 12, .24) 100%),
    linear-gradient(180deg, rgba(2, 5, 12, .2), transparent 24% 70%, rgba(2, 5, 12, .5));
}

.launch-world::after {
  z-index: 2;
  content: "";
  opacity: .38;
  background: radial-gradient(circle at var(--launch-pointer-x) var(--launch-pointer-y), rgba(var(--launch-gold-rgb), .14), transparent 32%);
  animation: launch-atmosphere-breathe 9s ease-in-out infinite alternate;
}

.launch-haze {
  z-index: 2;
  background:
    radial-gradient(ellipse at 18% 54%, rgba(var(--launch-scene-rgb), .08), transparent 42%),
    radial-gradient(ellipse at 78% 70%, rgba(var(--launch-accent-rgb), .09), transparent 38%);
  transform: translate3d(var(--launch-haze-x), var(--launch-haze-y), 0) scale(1.04);
  transition: transform .65s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.launch-particles {
  z-index: 3;
  overflow: hidden;
}

.launch-particles i {
  position: absolute;
  left: var(--launch-x);
  top: var(--launch-y);
  width: var(--launch-size);
  height: var(--launch-size);
  border-radius: 50%;
  opacity: 0;
  background: rgba(var(--launch-accent-2-rgb), .82);
  box-shadow: 0 0 14px rgba(var(--launch-accent-2-rgb), .55);
  animation: launch-particle-depth var(--launch-duration) var(--launch-delay) ease-in-out infinite;
}

.launch-vignette {
  z-index: 4;
  box-shadow: inset 0 0 10vmax rgba(0, 0, 0, .32);
}

.launch-transition {
  position: absolute;
  z-index: 9;
  inset: -8%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--launch-gold-rgb), .26), transparent 25%),
    radial-gradient(circle at 50% 50%, rgba(var(--launch-accent-2-rgb), .24), transparent 48%),
    rgb(var(--launch-scene-rgb));
  filter: blur(20px);
  transform: scale(1.16);
  transition: opacity .82s ease, filter .82s ease, transform .82s cubic-bezier(.22, 1, .36, 1);
}

.launch-stage {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1480px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    max(40px, calc(env(safe-area-inset-top) + 24px))
    max(48px, calc(env(safe-area-inset-right) + 30px))
    max(46px, calc(env(safe-area-inset-bottom) + 28px))
    max(48px, calc(env(safe-area-inset-left) + 30px));
  transform: translate3d(var(--launch-ui-x), var(--launch-ui-y), 0);
  transition: filter .7s ease, opacity .7s ease, transform .65s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.launch-overlay .launch-brand-signature {
  grid-column: 1;
  grid-row: 1;
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  width: fit-content;
  height: auto;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgb(var(--launch-ink-rgb));
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
  opacity: 0;
  transform: translateY(-12px);
  animation: launch-signature-in 1.25s .65s cubic-bezier(.22, 1, .36, 1) forwards;
}

.launch-brand-emblem {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(var(--launch-gold-rgb), .54);
  border-radius: 50%;
  background: rgba(var(--launch-surface-rgb), .28);
  box-shadow: inset 0 0 0 5px rgba(var(--launch-ink-rgb), .025), 0 12px 38px rgba(0, 0, 0, .16);
  backdrop-filter: blur(18px) saturate(1.2);
}

.launch-brand-emblem img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.launch-brand-signature-copy {
  display: grid;
  width: 121px;
  gap: 4px;
  overflow: visible;
}

.launch-brand-signature-copy strong {
  width: max-content;
  color: rgb(var(--launch-ink-rgb));
  font-size: 14px;
  font-weight: 680;
  letter-spacing: 0;
  transform: scaleX(1.2);
  transform-origin: left center;
}

.launch-brand-signature-copy small {
  width: max-content;
  color: rgba(var(--launch-muted-rgb), .7);
  font-size: 8px;
  font-weight: 680;
  letter-spacing: 0;
  transform: scaleX(1.6);
  transform-origin: left center;
}

.launch-brand-story {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  justify-self: start;
  width: min(780px, 100%);
  margin: 4vh 0 0 38px;
  text-align: left;
  perspective: 1000px;
}

.launch-cinema-kicker {
  display: block;
  width: max-content;
  margin: 0 0 18px;
  color: rgba(var(--launch-gold-rgb), .82);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0;
  opacity: 0;
  transform: scaleX(1.8);
  transform-origin: left center;
  animation: launch-focus-in 1.35s 1.25s ease forwards;
}

.launch-brand-title {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  color: rgb(var(--launch-ink-rgb));
  font-size: 95px;
  font-weight: 690;
  letter-spacing: 0;
  line-height: .98;
  white-space: nowrap;
  isolation: isolate;
}

.launch-brand-title span {
  position: relative;
  z-index: 2;
  display: inline-block;
  color: transparent;
  background: linear-gradient(105deg, rgb(var(--launch-ink-rgb)) 0 34%, rgb(var(--launch-gold-rgb)) 46%, rgb(var(--launch-ink-rgb)) 58% 100%);
  background-position: 0 50%;
  background-size: 230% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  filter: blur(20px);
  clip-path: inset(0 100% 0 0);
  text-shadow: 1px 1px rgba(var(--launch-accent-2-rgb), .2), -1px -1px rgba(var(--launch-gold-rgb), .18);
  transform: scaleX(1.1);
  transform-origin: left center;
  animation: launch-brand-construct 2.8s 1.1s cubic-bezier(.16, 1, .3, 1) forwards, launch-brand-film-light 8.6s 4.2s ease-in-out infinite;
}

.launch-brand-title i {
  position: absolute;
  z-index: 1;
  inset: 0 auto auto 0;
  color: transparent;
  font: inherit;
  font-style: normal;
  letter-spacing: 0;
  -webkit-text-stroke: 1px rgba(var(--launch-accent-2-rgb), .72);
  opacity: 0;
  filter: blur(1px);
  transform: translate3d(0, 0, -28px) scaleX(1.1);
  transform-origin: left center;
  animation: launch-title-wireframe 3.2s .75s ease forwards, launch-wireframe-breathe 7s 4s ease-in-out infinite;
}

.launch-brand-title::after {
  position: absolute;
  z-index: 4;
  inset: -20% auto -20% -14%;
  width: 4%;
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .46), rgba(var(--launch-accent-2-rgb), .3), transparent);
  filter: blur(6px);
  transform: skewX(-18deg);
  animation: launch-title-sweep 7.8s 3.45s cubic-bezier(.22, 1, .36, 1) infinite;
}

.launch-brand-english {
  display: block;
  width: max-content;
  margin: 16px 0 0;
  color: rgba(var(--launch-muted-rgb), .75);
  font-size: 11px;
  font-weight: 580;
  letter-spacing: 0;
  opacity: 0;
  transform: scaleX(1.75);
  transform-origin: left center;
  animation: launch-focus-in 1.4s 3.1s ease forwards;
}

.launch-brand-lightline {
  position: relative;
  display: block;
  width: min(260px, 42vw);
  height: 1px;
  margin: 30px 0;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(var(--launch-gold-rgb), .65), rgba(var(--launch-muted-rgb), .12), transparent);
  opacity: 0;
  animation: launch-line-reveal 1.45s 3.35s ease forwards;
}

.launch-brand-lightline::after {
  position: absolute;
  inset: -1px auto -1px -35%;
  width: 24%;
  content: "";
  background: linear-gradient(90deg, transparent, rgb(var(--launch-ink-rgb)), transparent);
  animation: launch-line-glide 7s 4s ease-in-out infinite;
}

.launch-brand-story h2 {
  margin: 0;
  color: rgb(var(--launch-ink-rgb));
  font-size: 38px;
  font-weight: 430;
  letter-spacing: 0;
  line-height: 1.25;
  opacity: 0;
  filter: blur(13px);
  transform: translateY(12px) scaleX(1.2);
  transform-origin: left center;
  animation: launch-slogan-focus 2s 4.2s cubic-bezier(.16, 1, .3, 1) forwards;
}

.launch-brand-note {
  display: block;
  width: max-content;
  margin: 16px 0 0;
  color: rgba(var(--launch-muted-rgb), .72);
  font-size: 12px;
  letter-spacing: 0;
  opacity: 0;
  transform: scaleX(1.15);
  transform-origin: left center;
  animation: launch-focus-in 1.35s 5.45s ease forwards;
}

.launch-entry-console {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  display: grid;
  width: min(420px, 100%);
  justify-items: stretch;
  opacity: 0;
  transform: translateY(18px);
  animation: launch-console-in .62s .58s cubic-bezier(.22, 1, .36, 1) forwards;
}

.launch-connection-state {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  margin: 0 0 14px 22px;
  color: rgba(var(--launch-muted-rgb), .9);
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0;
}

.launch-state-orb {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--launch-accent-2-rgb));
  box-shadow: 0 0 0 6px rgba(var(--launch-accent-2-rgb), .08), 0 0 18px rgba(var(--launch-accent-2-rgb), .62);
  animation: launch-state-pulse 1.5s ease-in-out infinite;
}

.launch-connection-state.is-ready {
  color: rgba(var(--launch-ink-rgb), .92);
}

.launch-connection-state.is-ready .launch-state-orb {
  background: rgb(var(--launch-gold-rgb));
  box-shadow: 0 0 0 6px rgba(var(--launch-gold-rgb), .08), 0 0 18px rgba(var(--launch-gold-rgb), .58);
}

.launch-status-text {
  display: inline-block;
  transform: scaleX(1.12);
  transform-origin: left center;
}

.launch-overlay .launch-enter-button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  height: 64px;
  min-height: 64px !important;
  padding: 0 27px 0 32px;
  overflow: hidden;
  border: 1px solid rgba(var(--launch-ink-rgb), .24);
  border-radius: 999px;
  color: rgb(var(--launch-ink-rgb));
  background: linear-gradient(112deg, rgba(var(--launch-surface-rgb), .46), rgba(var(--launch-surface-rgb), .22));
  box-shadow: inset 0 1px rgba(255, 255, 255, .18), 0 20px 60px rgba(0, 0, 0, .2);
  backdrop-filter: blur(28px) saturate(1.28);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(8px);
  transition: border-color .35s ease, box-shadow .35s ease, transform .42s cubic-bezier(.22, 1, .36, 1), opacity .32s ease, visibility 0s linear .32s;
}

.launch-enter-button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .2) 48%, transparent 69%);
  transform: translateX(-130%);
}

.launch-enter-button::after {
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(var(--launch-gold-rgb), .1);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.launch-overlay.is-ready .launch-enter-button {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.launch-enter-button:not(:disabled)::before {
  animation: launch-button-glide 5.2s 1s ease-in-out infinite;
}

.launch-enter-button:disabled {
  opacity: .58;
  cursor: wait;
}

.launch-enter-button:not(:disabled):hover {
  border-color: rgba(var(--launch-gold-rgb), .52);
  box-shadow: inset 0 1px rgba(255, 255, 255, .25), 0 24px 70px rgba(0, 0, 0, .28), 0 0 35px rgba(var(--launch-gold-rgb), .08);
  transform: translateY(-2px);
}

.launch-enter-button:not(:disabled):active {
  transform: scale(.988);
}

.launch-enter-button > span:not(.launch-enter-button-glow) {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
}

.launch-enter-label {
  width: max-content;
  justify-self: center;
  transform: scaleX(1.24);
}

.launch-enter-button svg {
  position: relative;
  z-index: 1;
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s ease;
}

.launch-enter-button:not(:disabled):hover svg {
  transform: translateX(3px);
}

.launch-enter-button-glow {
  position: absolute;
  right: 12%;
  bottom: -35px;
  width: 115px;
  height: 58px;
  border-radius: 50%;
  background: rgba(var(--launch-accent-2-rgb), .22);
  filter: blur(27px);
}

.launch-film-timeline {
  width: calc(100% - 34px);
  height: 1px;
  margin: 17px auto 0;
  overflow: hidden;
  background: rgba(var(--launch-muted-rgb), .2);
}

.launch-film-progress {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(var(--launch-accent-2-rgb), .74), rgb(var(--launch-gold-rgb)));
  box-shadow: 0 0 9px rgba(var(--launch-gold-rgb), .42);
}

.launch-auto-hint {
  margin: 9px 0 0;
  color: rgba(var(--launch-muted-rgb), .58);
  font-size: 8px;
  letter-spacing: 0;
  text-align: center;
  transform: scaleX(1.15);
}

.launch-music {
  display: none;
}

.launch-overlay.has-title-impact .launch-stage {
  animation: launch-camera-impact .55s cubic-bezier(.2, .8, .2, 1);
}

.launch-overlay.is-ready .launch-brand-title span {
  text-shadow: 0 0 62px rgba(var(--launch-accent-2-rgb), .12);
}

.launch-overlay.is-ready .launch-entry-console {
  animation: launch-console-in .48s cubic-bezier(.22, 1, .36, 1) forwards;
}

.launch-overlay.is-leaving .launch-stage {
  opacity: 0;
  filter: blur(18px);
  transform: translate3d(var(--launch-ui-x), var(--launch-ui-y), 0) scale(1.055);
}

.launch-overlay.is-leaving .launch-world {
  animation: launch-world-exit .72s ease forwards;
}

.launch-overlay.is-leaving .launch-transition {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

@keyframes launch-atmosphere-breathe {
  to { opacity: .72; transform: scale(1.06) translate3d(-1%, 1%, 0); }
}

@keyframes launch-signature-in {
  to { opacity: 1; transform: none; }
}

@keyframes launch-focus-in {
  from { opacity: 0; filter: blur(7px); }
  to { opacity: 1; filter: none; }
}

@keyframes launch-brand-construct {
  0% { opacity: 0; filter: blur(20px); clip-path: inset(0 100% 0 0); }
  34% { opacity: .5; filter: blur(8px); clip-path: inset(0 48% 0 0); }
  68% { opacity: 1; filter: blur(1px); clip-path: inset(0); }
  100% { opacity: 1; filter: none; clip-path: inset(0); }
}

@keyframes launch-title-wireframe {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); }
  42% { opacity: .92; clip-path: inset(0); }
  100% { opacity: .18; }
}

@keyframes launch-wireframe-breathe {
  50% { opacity: .34; filter: blur(.35px); }
}

@keyframes launch-title-sweep {
  0%, 47% { left: -14%; opacity: 0; }
  51% { opacity: .95; }
  61%, 100% { left: 106%; opacity: 0; }
}

@keyframes launch-particle-depth {
  0%, 100% { opacity: 0; transform: translate3d(0, 24px, 0) scale(.42); }
  28% { opacity: .75; }
  72% { opacity: .22; transform: translate3d(var(--launch-drift), -34px, 0) scale(1.2); }
}

@keyframes launch-camera-impact {
  0%, 100% { transform: translate3d(var(--launch-ui-x), var(--launch-ui-y), 0); }
  28% { transform: translate3d(calc(var(--launch-ui-x) + 1px), calc(var(--launch-ui-y) - 1px), 0) scale(1.002); }
  48% { transform: translate3d(calc(var(--launch-ui-x) - 1px), calc(var(--launch-ui-y) + .6px), 0); }
}

@keyframes launch-brand-film-light {
  0%, 24% { background-position: 0 50%; }
  60%, 100% { background-position: 100% 50%; }
}

@keyframes launch-slogan-focus {
  to { opacity: 1; filter: none; transform: scaleX(1.2); }
}

@keyframes launch-line-reveal {
  to { opacity: 1; }
}

@keyframes launch-line-glide {
  0%, 18% { transform: translateX(0); opacity: 0; }
  42%, 68% { opacity: 1; }
  88%, 100% { transform: translateX(650%); opacity: 0; }
}

@keyframes launch-console-in {
  to { opacity: 1; transform: none; }
}

@keyframes launch-state-pulse {
  50% { opacity: .42; transform: scale(.72); }
}

@keyframes launch-button-glide {
  0%, 19% { transform: translateX(-130%); }
  52%, 100% { transform: translateX(150%); }
}

@keyframes launch-world-exit {
  to { filter: brightness(1.28) blur(3px); transform: scale(1.065); }
}

@media (max-width: 820px) {
  .launch-world::before {
    background:
      linear-gradient(180deg, rgba(2, 5, 12, .24), transparent 22% 62%, rgba(2, 5, 12, .54)),
      radial-gradient(ellipse at 50% 48%, transparent 18%, rgba(2, 5, 12, .18) 68%, rgba(2, 5, 12, .34));
  }

  .launch-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding:
      max(22px, calc(env(safe-area-inset-top) + 15px))
      max(18px, calc(env(safe-area-inset-right) + 16px))
      max(28px, calc(env(safe-area-inset-bottom) + 18px))
      max(18px, calc(env(safe-area-inset-left) + 16px));
  }

  .launch-brand-signature { grid-column: 1; grid-row: 1; gap: 11px; }
  .launch-brand-emblem { width: 44px; height: 44px; }
  .launch-brand-emblem img { width: 35px; height: 35px; }
  .launch-brand-signature-copy strong { font-size: 12px; }
  .launch-brand-signature-copy small { font-size: 7px; }

  .launch-brand-story {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    justify-self: center;
    width: 100%;
    margin: 1vh 0 0;
    text-align: center;
  }

  .launch-cinema-kicker {
    margin: 0 auto 15px;
    font-size: 8px;
    transform: scaleX(1.48);
    transform-origin: center;
  }

  .launch-brand-title {
    width: max-content;
    max-width: calc(100vw - max(36px, calc(env(safe-area-inset-left) + env(safe-area-inset-right) + 32px)));
    margin-right: auto;
    margin-left: auto;
    font-size: 52px;
  }

  .launch-brand-title span,
  .launch-brand-title i {
    transform: scaleX(1.05);
    transform-origin: center;
  }

  .launch-brand-english {
    margin: 12px auto 0;
    font-size: 8px;
    transform: scaleX(1.56);
    transform-origin: center;
  }

  .launch-brand-lightline {
    width: min(190px, 52vw);
    margin: 23px auto;
    background: linear-gradient(90deg, transparent, rgba(var(--launch-gold-rgb), .64), transparent);
  }

  .launch-brand-story h2 {
    font-size: 26px;
    transform-origin: center;
  }

  .launch-brand-note {
    margin: 14px auto 0;
    font-size: 9px;
    transform-origin: center;
  }

  .launch-entry-console {
    grid-column: 1;
    grid-row: 3;
    width: min(350px, 100%);
    justify-self: center;
  }

  .launch-connection-state { justify-self: center; margin-left: 0; }
  .launch-overlay .launch-enter-button { height: 58px; min-height: 58px !important; padding-right: 24px; padding-left: 28px; }
}

@media (max-height: 680px) {
  .launch-stage { padding-top: max(18px, calc(env(safe-area-inset-top) + 10px)); padding-bottom: max(18px, calc(env(safe-area-inset-bottom) + 11px)); }
  .launch-brand-emblem { width: 38px; height: 38px; }
  .launch-brand-emblem img { width: 30px; height: 30px; }
  .launch-brand-story { margin-top: 0; }
  .launch-brand-title { font-size: 64px; }
  .launch-cinema-kicker { margin-bottom: 8px; }
  .launch-brand-english { margin-top: 7px; }
  .launch-brand-lightline { margin-top: 12px; margin-bottom: 12px; }
  .launch-brand-note { margin-top: 9px; }
  .launch-connection-state { margin-bottom: 8px; }
  .launch-overlay .launch-enter-button { height: 52px; min-height: 52px !important; }
  .launch-film-timeline { margin-top: 10px; }
}

@media (max-width: 820px) and (max-height: 680px) {
  .launch-brand-title { font-size: 46px; }
  .launch-brand-story h2 { font-size: 23px; }
  .launch-entry-console { width: min(330px, 100%); }
}

@media (max-width: 360px) {
  .launch-brand-title { font-size: 43px; }
  .launch-brand-story h2 { font-size: 20px; }
  .launch-brand-note { max-width: 270px; margin-right: auto; margin-left: auto; }
  .launch-entry-console { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-brand-signature,
  .launch-cinema-kicker,
  .launch-brand-title span,
  .launch-brand-title i,
  .launch-brand-title::after,
  .launch-brand-english,
  .launch-brand-lightline,
  .launch-brand-story h2,
  .launch-brand-note,
  .launch-entry-console {
    animation-delay: 0s !important;
    animation-duration: .25s !important;
    animation-iteration-count: 1 !important;
  }
}

.shell-frame {
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px) saturate(1.1);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: var(--header-bg);
  box-shadow: var(--soft-shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  flex: none;
  width: 236px;
  max-width: 38vw;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-subtitle {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn,
.chip,
.tab-button,
.icon-button,
.action-link,
.inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(123, 77, 255, 0.92), rgba(104, 174, 255, 0.82));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 10px 20px rgba(47, 91, 205, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.btn:hover,
.chip:hover,
.tab-button:hover,
.icon-button:hover,
.action-link:hover,
.inline-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn:active,
.chip:active,
.tab-button:active,
.icon-button:active,
.action-link:active,
.inline-action:active {
  transform: translateY(0);
}

.btn--ghost,
.chip--ghost,
.tab-button--ghost,
.action-link--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.btn--soft,
.icon-button,
.inline-action {
  background: rgba(255, 255, 255, 0.1);
}

.btn--accent,
.tab-button.is-active,
.chip.is-active {
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  border-color: rgba(255, 255, 255, 0.2);
}

.btn .icon,
.chip .icon,
.tab-button .icon,
.icon-button .icon,
.inline-action .icon {
  width: 15px;
  height: 15px;
}

.site-body {
  display: grid;
  gap: 14px;
}

.hero-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-track {
  display: flex;
  transition: transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  background: linear-gradient(135deg, #29123f, #12071f);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 5, 17, 0.1), transparent 24% 76%, rgba(8, 5, 17, 0.2)),
    linear-gradient(180deg, rgba(9, 3, 19, 0.08), rgba(9, 3, 19, 0.36));
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.hero-slide-copy {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 28px;
}

.hero-badge {
  width: max-content;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  color: #190a29;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd36f, #ff9c42);
  box-shadow: 0 8px 18px rgba(255, 158, 66, 0.24);
}

.hero-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.06;
  letter-spacing: 0;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.hero-text {
  max-width: 60ch;
  color: rgba(255, 249, 255, 0.88);
  font-size: 14px;
}

.hero-controls {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(123, 77, 255, 0.9), rgba(72, 183, 255, 0.8));
  box-shadow: var(--soft-shadow);
}

.notice-label {
  flex: none;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.notice-marquee {
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.notice-marquee span {
  display: inline-block;
  padding-left: 100%;
  white-space: nowrap;
  animation: marqueeMove 16s linear infinite;
}

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.nav-stack {
  display: grid;
  gap: 10px;
}

.nav-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nav-quick-btn {
  min-height: 48px;
  border-radius: 14px;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.nav-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tab-button {
  min-height: 40px;
  padding: 8px 10px;
  font-weight: 800;
  border: 1px solid rgba(181, 126, 255, 0.24);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.tab-button.is-active {
  color: #fff;
}

.section-band {
  display: grid;
  gap: 12px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-inner {
  padding: 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 18px;
}

.panel-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.stat-card strong {
  display: block;
  font-size: 20px;
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.item-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas:
    "avatar meta"
    "cta cta";
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
}

.item-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 0 64%, rgba(255, 255, 255, 0.04) 100%);
}

.item-avatar {
  grid-area: avatar;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(10, 6, 19, 0.22);
}

.item-meta {
  grid-area: meta;
  min-width: 0;
}

.item-title {
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.item-desc {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.item-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #f7c548;
  font-size: 12px;
  font-weight: 800;
}

.item-stars {
  letter-spacing: 1px;
}

.item-score {
  color: var(--muted);
  font-weight: 700;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.badge--hot {
  background: linear-gradient(135deg, #ff5631, #ffb042);
}

.badge--official {
  background: linear-gradient(135deg, #13b883, #37c7d6);
}

.badge--premium {
  background: linear-gradient(135deg, #7d4dff, #48b7ff);
}

.item-cta {
  grid-area: cta;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  justify-content: center;
}

.item-cta .icon {
  width: 14px;
  height: 14px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.category-rail {
  display: flex;
  gap: 8px;
  overflow: auto hidden;
  padding-bottom: 2px;
}

.category-rail::-webkit-scrollbar {
  height: 8px;
}

.category-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.chip {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.chip.is-active {
  color: #fff;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.select option,
.select optgroup {
  color: #26162f;
  background: #ffffff;
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(214, 191, 220, 0.6);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(126, 198, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(72, 183, 255, 0.12);
}

.catalog-layout {
  display: grid;
  gap: 14px;
}

.catalog-featured,
.catalog-grid,
.tool-grid,
.lottery-grid,
.promo-grid,
.admin-grid,
.subsite-grid {
  display: grid;
  gap: 12px;
}

.catalog-featured,
.catalog-grid,
.tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-card,
.tool-card,
.lottery-card,
.promo-card,
.admin-card,
.subsite-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.tool-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas:
    "mark meta"
    "action action";
  gap: 10px;
}

.tool-mark {
  grid-area: mark;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.tool-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-meta {
  grid-area: meta;
  min-width: 0;
}

.tool-name {
  font-weight: 800;
  line-height: 1.2;
}

.tool-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.tool-action {
  grid-area: action;
  width: 100%;
  min-height: 34px;
  margin-top: 2px;
}

.lottery-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
}

.lottery-list,
.trend-table {
  display: grid;
  gap: 10px;
}

.lottery-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.lottery-issue {
  font-weight: 800;
}

.lottery-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lottery-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.lottery-meta {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.trend-bars {
  display: grid;
  gap: 10px;
}

.trend-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
}

.trend-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.trend-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.promo-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.share-box {
  display: grid;
  gap: 10px;
}

.share-preview {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(123, 77, 255, 0.14), rgba(72, 183, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-preview img {
  width: 82px;
  height: 82px;
  border-radius: 16px;
  object-fit: cover;
}

.share-copy {
  display: grid;
  gap: 8px;
}

.share-copy strong {
  font-size: 18px;
}

.share-copy p {
  margin: 0;
  color: var(--muted);
}

.copy-field {
  display: grid;
  gap: 6px;
}

.copy-field input {
  min-height: 40px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.invite-progress {
  display: grid;
  gap: 6px;
}

.invite-progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.invite-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #ffb042, #7d4dff);
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-card-image {
  display: block;
  width: 100%;
  max-height: 240px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 10px;
}

.admin-custom-copy-head {
  margin-top: 8px;
  margin-bottom: 0;
}

.admin-custom-editor-list {
  gap: 12px;
}

.admin-custom-editor-item {
  padding: 14px;
}

.admin-image-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.admin-image-upload-button {
  position: relative;
  min-width: 112px;
  min-height: 40px;
  cursor: pointer;
  white-space: nowrap;
}

.admin-image-upload-button.is-uploading {
  cursor: wait;
  opacity: 0.72;
  pointer-events: none;
}

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

.admin-image-status {
  display: block;
  min-height: 16px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.activity-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.activity-head strong {
  display: block;
  font-size: 15px;
}

.activity-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.activity-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.service-float,
.promotion-float,
.scroll-top {
  position: fixed;
  right: 18px;
  z-index: 70;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
}

.service-float {
  bottom: 126px;
}

.promotion-float {
  bottom: 62px;
}

.scroll-top {
  bottom: 190px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.sidebar-item {
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.sidebar-item.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
}

.admin-main {
  display: grid;
  gap: 14px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
}

.admin-panel {
  padding: 16px;
}

.admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-card {
  display: grid;
  gap: 10px;
}

.admin-card h4,
.admin-card h3 {
  margin: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field > label {
  color: var(--muted);
  font-size: 12px;
}

.field .input,
.field .textarea,
.field .select {
  width: 100%;
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.small-btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 10px;
}

.edit-box {
  display: grid;
  gap: 10px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.json-editor {
  min-height: 400px;
  font-family: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
}

.site-switcher {
  min-width: 220px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 5, 20, 0.62);
  backdrop-filter: blur(8px);
}

.modal {
  width: min(1080px, 100%);
  max-height: min(90vh, 960px);
  overflow: hidden auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: var(--surface-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: inherit;
}

.modal-head strong {
  font-size: 18px;
}

.modal-body {
  padding: 16px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.detail-row span {
  color: var(--muted);
  font-size: 12px;
}

.episode-grid,
.line-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.episode-btn,
.line-btn {
  min-height: 36px;
  padding: 0 10px;
  justify-content: center;
  border-radius: 12px;
}

.player-shell {
  display: grid;
  gap: 10px;
}

.player-frame {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(123, 77, 255, 0.14), rgba(72, 183, 255, 0.1)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
}

.player-frame strong {
  display: block;
  margin-top: 10px;
}

.empty-state {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 16px;
}

.toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
}

.toast {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(16, 9, 29, 0.9);
  box-shadow: var(--soft-shadow);
}

.toast strong {
  display: block;
  margin-bottom: 2px;
}

.toast p {
  margin: 0;
  color: rgba(214, 191, 220, 0.86);
  font-size: 12px;
}

.site-footer {
  padding: 4px 0 10px;
  color: var(--muted);
  text-align: center;
}

.footer-brand {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 10px 0;
  font-size: 12px;
}

.footer-brand strong {
  color: var(--text);
  font-size: 13px;
}

.noscript-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .card-grid,
  .catalog-featured,
  .catalog-grid,
  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .lottery-grid,
  .promo-grid,
  .modal-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .stats-strip,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar,
  .admin-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell-frame {
    width: min(100% - 16px, 1180px);
    margin-top: 8px;
    margin-bottom: 16px;
  }

  .site-header-inner {
    align-items: start;
    padding: 10px 12px;
  }

  .brand {
    align-items: start;
  }

  .brand-logo {
    width: 136px;
    height: 32px;
  }

  .brand-name {
    font-size: 16px;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .hero-slide {
    aspect-ratio: 16 / 10.5;
  }

  .hero-slide-copy {
    padding: 18px;
  }

  .nav-grid,
  .stats-strip,
  .card-grid,
  .catalog-featured,
  .catalog-grid,
  .tool-grid,
  .admin-grid,
  .episode-grid,
  .line-grid,
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-title {
    font-size: 22px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .item-card,
  .tool-card,
  .lottery-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .lottery-row {
    gap: 10px;
  }

  .lottery-meta {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .shell-frame {
    width: calc(100% - 12px);
  }

  .site-header-inner {
    border-radius: 16px;
  }

  .nav-grid,
  .stats-strip,
  .card-grid,
  .catalog-featured,
  .catalog-grid,
  .tool-grid,
  .admin-grid,
  .episode-grid,
  .line-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .admin-image-control {
    grid-template-columns: minmax(0, 1fr) 108px;
  }

  .nav-quick {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 20px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-text {
    font-size: 13px;
  }

  .notice-bar {
    gap: 8px;
    padding-inline: 10px;
  }

  .site-body {
    gap: 12px;
  }

  .service-float,
  .promotion-float,
  .scroll-top {
    right: 12px;
    width: 48px;
    height: 48px;
  }

  .promotion-float {
    bottom: 56px;
  }

  .service-float {
    bottom: 116px;
  }

  .scroll-top {
    bottom: 176px;
  }
}

/* Mobile home follows the compact three-column composition used by the
   reference site. Keep the richer desktop shell available above this mode. */
.mobile-nav-section,
.mobile-audio-float,
.mobile-action-hub-toggle,
.mobile-hub-actions {
  display: none;
}

@media (max-width: 600px) {
  html,
  body {
    min-width: 320px;
    background: #11071d;
  }

  body {
    font-size: 16px;
  }

  .page-shell,
  .site-body,
  .hero-shell,
  .hero-carousel,
  .hero-track,
  .hero-slide,
  .section-band,
  .panel,
  .panel-inner,
  .card-grid {
    min-width: 0;
  }

  .ng-theme-scene {
    height: 430px;
    opacity: 0.28;
    background:
      linear-gradient(180deg, rgba(17, 7, 29, 0.08), rgba(17, 7, 29, 0.66)),
      url('./reference-assets/background-640.webp') center top / cover no-repeat;
  }

  .site-header {
    position: relative;
    top: auto;
    width: 100%;
    height: 57px;
    margin: 0 0 8px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(35, 15, 54, 0.86);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    backdrop-filter: none;
  }

  .site-header-inner {
    width: 100%;
    max-width: none;
    height: 57px;
    min-height: 57px;
    margin: 0;
    padding: 6px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-logo {
    width: min(189px, calc(100vw - 70px));
    max-width: 189px;
    height: 36px;
    object-fit: contain;
    object-position: left center;
  }

  .brand-copy,
  .header-actions .btn:not(.site-share-action),
  .header-actions .site-switcher {
    display: none;
  }

  .header-actions {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: auto;
  }

  .header-actions .site-share-action {
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #7d4dff, #b65dff);
    box-shadow: 0 9px 20px rgba(125, 77, 255, 0.32), inset 0 1px rgba(255, 255, 255, 0.24);
  }

  .header-actions .site-share-action .icon {
    width: 26px;
    height: 26px;
  }

  .header-actions .site-share-action > span:not(.icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .site-body {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .hero-shell {
    width: calc(100% - 20px);
    height: 165px;
    margin: 0 10px 11px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.17);
    box-shadow: 0 12px 26px rgba(5, 0, 13, 0.28);
  }

  .hero-carousel,
  .hero-track,
  .hero-slide {
    width: 100%;
    height: 164px;
  }

  .hero-track {
    min-width: 0;
  }

  .hero-slide {
    min-width: 100%;
    aspect-ratio: auto;
    background: #2b1740;
  }

  .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-controls {
    display: none;
  }

  .notice-bar {
    position: relative;
    width: calc(100% - 16px);
    height: 42px;
    min-height: 42px;
    margin: 0 8px 6px;
    padding: 6px 11px 6px 38px;
    overflow: hidden;
    border-radius: 14px;
    border-color: rgba(181, 126, 255, 0.22);
    background: rgba(35, 15, 54, 0.86);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 8px 18px rgba(5, 0, 13, 0.14);
  }

  .notice-bar::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(125, 77, 255, 0.11), 0 0 12px rgba(125, 77, 255, 0.18);
    transform: translateY(-50%);
  }

  .notice-bar::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 11px;
    bottom: 11px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(181, 126, 255, 0.5), transparent);
  }

  .notice-label {
    display: none;
  }

  .notice-marquee {
    width: 100%;
    height: 22px;
    min-width: 0;
  }

  .notice-marquee span {
    color: var(--text);
    font-size: 13px;
    line-height: 22px;
  }

  .desktop-nav-stack {
    display: none;
  }

  .mobile-nav-section {
    position: sticky;
    top: 0;
    z-index: 30;
    display: block;
    width: 100%;
    height: 115px;
    margin: 0;
    padding: 8px;
    background: rgba(17, 7, 29, 0.9);
    box-shadow: 0 10px 22px rgba(5, 0, 13, 0.13);
    backdrop-filter: blur(14px);
  }

  .mobile-category-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    height: 99px;
  }

  .mobile-category-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 4px;
    overflow: hidden;
    color: var(--text);
    border: 1px solid rgba(181, 126, 255, 0.24);
    border-radius: 14px;
    background: rgba(35, 15, 54, 0.86);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 6px 16px rgba(13, 3, 24, 0.13);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  .mobile-category-button--wide {
    grid-column: span 2;
    height: 46px;
    min-height: 46px;
    font-size: 15px;
  }

  .mobile-category-button.is-active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 8px 20px rgba(125, 77, 255, 0.28), inset 0 1px rgba(255, 255, 255, 0.2);
  }

  .mobile-category-button .icon {
    width: 15px;
    height: 15px;
  }

  .recommendations-section {
    display: block;
    width: 100%;
    margin: 10px 0 0;
  }

  .recommendations-section > .section-head {
    display: block;
    height: 64px;
    margin: 0 20px 14px;
    padding-top: 20px;
  }

  .recommendations-section > .section-head .section-subtitle,
  .recommendations-section > .section-head .action-row,
  .recommendations-section > .stats-strip,
  .recommendations-section .panel-head {
    display: none;
  }

  .recommendations-section > .section-head .section-title {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding-left: 14px;
    font-size: 23px;
    line-height: 1.2;
  }

  .recommendations-section > .section-head .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--primary));
    box-shadow: 0 0 12px rgba(255, 139, 50, 0.45);
  }

  .recommendations-section > .panel {
    width: calc(100% - 40px);
    margin: 0 20px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .recommendations-section > .panel > .panel-inner {
    padding: 0;
  }

  .recommendations-section .card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin: 0;
  }

  .recommendations-section .item-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'avatar' 'meta' 'cta';
    justify-items: center;
    gap: 5px;
    min-width: 0;
    min-height: 124px;
    height: 124px;
    padding: 8px 5px 6px;
    border-color: rgba(181, 126, 255, 0.27);
    border-radius: 12px;
    background: rgba(35, 15, 54, 0.86);
    box-shadow: 0 7px 18px rgba(5, 0, 13, 0.2), inset 0 1px rgba(255, 255, 255, 0.08);
  }

  .recommendations-section .item-avatar {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(125, 77, 255, 0.06), 0 5px 12px rgba(5, 0, 13, 0.22);
  }

  .recommendations-section .item-meta {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .recommendations-section .item-title {
    width: 100%;
    color: var(--text);
    font-size: 13px;
    line-height: 15px;
    text-align: center;
  }

  .recommendations-section .item-desc,
  .recommendations-section .item-rating {
    display: none;
  }

  .recommendations-section .item-tags {
    position: absolute;
    top: 6px;
    right: 4px;
    display: flex;
    gap: 2px;
    margin: 0;
  }

  .recommendations-section .item-tags .pill {
    display: none;
  }

  .recommendations-section .item-cta {
    width: 100%;
    min-height: 28px;
    height: 28px;
    margin: 0;
    padding: 3px;
    border-radius: 8px;
    font-size: 10px;
    background: linear-gradient(125deg, #6b3fe9, #8e50ff 48%, #ff8137);
  }

  .recommendations-section .item-cta .icon {
    display: none;
  }

  .recommendations-section .badge {
    min-width: 36px;
    height: 16px;
    min-height: 16px;
    padding: 1px 4px;
    font-size: 8px;
    border-radius: 4px 8px 4px 8px;
  }

  .recommendations-section .item-card::after {
    border-radius: inherit;
  }

  .recommendations-section .item-cta::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffe174;
    box-shadow: 0 0 8px rgba(255, 225, 116, 0.7);
  }

  .desktop-floats {
    display: none;
  }

  .mobile-audio-float,
  .mobile-action-hub-toggle {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    z-index: 80;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, rgba(125, 77, 255, 0.84), rgba(255, 139, 50, 0.78));
    box-shadow: 0 10px 24px rgba(125, 77, 255, 0.28), inset 0 1px rgba(255, 255, 255, 0.24);
  }

  .mobile-audio-float {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-action-hub-toggle {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px;
  }

  .mobile-audio-float > span:not(.icon),
  .mobile-action-hub-toggle > span:not(.icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .mobile-audio-float .icon,
  .mobile-action-hub-toggle .icon {
    width: 22px;
    height: 22px;
  }

  .mobile-hub-actions {
    display: none;
  }

  .mobile-hub-open .mobile-hub-actions {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 79;
    display: grid;
    gap: 8px;
  }

  .mobile-hub-action {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 16px;
  }

  .mobile-hub-action > span:not(.icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .home-promo-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    overflow: auto;
    background: rgba(2, 8, 22, 0.68);
    backdrop-filter: blur(8px) saturate(112%);
  }

  .home-promo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 min(354px, calc(100vw - 20px));
    width: min(354px, calc(100vw - 20px));
    height: 441px;
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border: 1px solid rgba(181, 126, 255, 0.38);
    border-radius: 22px;
    background: rgba(35, 15, 54, 0.86);
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(125, 77, 255, 0.1);
    transform: translateY(-1px);
  }

  .home-promo-close {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 13px;
    background: #2867ef;
    box-shadow: 0 7px 18px rgba(40, 103, 239, 0.32), inset 0 1px rgba(255, 255, 255, 0.2);
    font-size: 34px;
    line-height: 0;
  }

  .home-promo-media {
    flex: 0 0 197px;
    width: calc(100% - 2px);
    height: 197px;
    margin: 1px 1px 0;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #edf3ff;
  }

  .home-promo-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home-promo-body {
    flex: 0 0 240px;
    min-height: 0;
    align-self: flex-start;
    width: calc(100% - 2px);
    height: 240px;
    margin: 0 1px;
    padding: 22px 18px 20px;
    background: #2b1740;
  }

  .home-promo-body h2 {
    margin: 0;
    padding: 0 12px 13px;
    color: var(--text);
    font-size: 22px;
    line-height: 28.8px;
    width: calc(100% - 15px);
  }

  .home-promo-body p {
    height: 143px;
    margin: 0;
    padding: 13px 14px;
    overflow: hidden;
    color: var(--text);
    border: 1px solid rgba(181, 126, 255, 0.2);
    border-radius: 12px;
    background: rgba(53, 25, 79, 0.85);
    font-size: 14px;
    line-height: 23.1px;
    white-space: pre-line;
    width: calc(100% - 15px);
  }

  .site-footer {
    padding: 12px 10px 26px;
  }

  .lottery-grid,
  .promo-grid,
  .admin-shell,
  .modal-grid,
  .admin-toolbar,
  .toolbar {
    min-width: 0;
  }

  .panel-inner,
  .admin-panel,
  .catalog-card,
  .tool-card,
  .lottery-card,
  .promo-card,
  .admin-card,
  .subsite-card {
    min-width: 0;
  }

  .action-row > * {
    max-width: 100%;
  }

  .lottery-row {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .lottery-issue {
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .lottery-row > div:first-child .muted {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .lottery-numbers {
    gap: 4px;
  }

  .lottery-ball {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .lottery-meta {
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
  }
}

/* Reference public pages: compact navigation-shell composition. Keep these
   rules scoped to public routes so the existing station console remains unchanged. */
.is-public .desktop-nav-stack {
  gap: 10px;
}

.is-public .notice-bar {
  contain: paint;
}

.is-public .notice-marquee {
  contain: paint;
}

.is-public .toasts {
  width: min(360px, calc(100% - 24px));
}

.is-public .nav-quick {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.is-public .nav-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.is-public .nav-quick-btn.is-active,
.is-public .tab-button.is-active {
  color: #fff;
}

.is-public .recommendations-section {
  gap: 14px;
}

.is-public .recommendations-section .card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.is-public .recommendations-section .item-card {
  min-height: 112px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(35, 15, 54, 0.86);
  box-shadow: 0 10px 24px rgba(5, 0, 13, 0.18), inset 0 1px rgba(255, 255, 255, 0.08);
}

.is-public .recommendations-section .item-avatar {
  width: 54px;
  height: 54px;
}

.is-public .recommendations-section .item-cta {
  min-height: 34px;
}

.home-legal-note {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.catalog-page,
.trial-page,
.service-page,
.lottery-page {
  padding-bottom: 14px;
}

.catalog-toolbar {
  display: grid;
  gap: 12px;
  padding: 10px 0 2px;
}

.catalog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.catalog-search .btn {
  min-width: 78px;
}

.catalog-grid--posters {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.catalog-poster-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.catalog-poster-button {
  display: grid;
  width: 100%;
  padding: 0;
  color: var(--text);
  border: 0;
  background: transparent;
  text-align: left;
}

.catalog-poster-image {
  position: relative;
  display: block;
  aspect-ratio: 0.74;
  overflow: hidden;
  background: #27143a;
}

.catalog-poster-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.catalog-poster-button:hover .catalog-poster-image img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.catalog-update {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  color: #fff;
  border-radius: 6px;
  background: rgba(40, 20, 67, 0.82);
  font-size: 11px;
  font-weight: 800;
}

.catalog-poster-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 10px 12px;
}

.catalog-poster-meta strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-poster-meta span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
}

.trial-app-shell,
.lottery-app-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.trial-provider-rail,
.lottery-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px 8px;
  scrollbar-width: thin;
}

.trial-provider,
.lottery-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.trial-provider.is-active,
.lottery-tab.is-active {
  color: #fff;
}

.trial-search {
  max-width: 460px;
  justify-self: end;
}

.trial-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.trial-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.trial-image {
  position: relative;
  aspect-ratio: 1.45;
  overflow: hidden;
  border-radius: 10px;
  background: #251438;
}

.trial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trial-image span {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 2px 6px;
  color: #fff;
  border-radius: 5px;
  background: rgba(18, 7, 31, 0.76);
  font-size: 10px;
}

.trial-card > strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trial-play {
  width: 100%;
  min-height: 32px;
}

.trial-more {
  justify-self: center;
  min-width: 140px;
}

.service-groups {
  display: grid;
  gap: 16px;
}

.service-group {
  display: grid;
  gap: 10px;
}

.service-group-head,
.lottery-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-group-head h3,
.lottery-section-head h3 {
  margin: 0;
  font-size: 18px;
}

.service-group-head span,
.lottery-section-head span {
  color: var(--muted);
  font-size: 12px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.service-grid .tool-card {
  min-height: 136px;
  border-radius: 16px;
}

.service-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.service-note .icon {
  color: var(--accent-2);
}

.lottery-app-shell {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(35, 15, 54, 0.72);
}

.lottery-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lottery-app-content {
  display: grid;
  gap: 14px;
  min-height: 440px;
  padding: 4px;
}

.lottery-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.82fr));
  gap: 12px;
}

.lottery-feature-card,
.lottery-stat-card,
.lottery-chart-panel,
.lottery-tool-page {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.lottery-feature-card {
  background: linear-gradient(135deg, rgba(125, 77, 255, 0.4), rgba(72, 183, 255, 0.12));
}

.lottery-stat-card--gold {
  background: linear-gradient(135deg, rgba(255, 139, 50, 0.22), rgba(255, 255, 255, 0.045));
}

.lottery-card-kicker {
  color: var(--muted);
  font-size: 12px;
}

.lottery-issue-big {
  display: block;
  margin-top: 7px;
  font-size: 17px;
}

.lottery-stat-number {
  display: block;
  margin-top: 9px;
  font-size: 28px;
}

.lottery-stat-card p {
  min-height: 44px;
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.lottery-numbers--large {
  gap: 10px;
  margin: 18px 0;
}

.lottery-numbers i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.lottery-numbers--large i {
  width: 46px;
  height: 46px;
  font-size: 15px;
}

.lottery-countdown,
.lottery-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.lottery-countdown strong {
  color: #fff;
  font-size: 18px;
}

.lottery-status-line i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #27d98c;
  box-shadow: 0 0 10px rgba(39, 217, 140, 0.7);
}

.lottery-data-table {
  display: grid;
  gap: 7px;
}

.lottery-data-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr 0.7fr;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 12px;
}

.lottery-data-row strong {
  color: var(--text);
}

.lottery-result-text {
  text-align: right;
}

.lottery-tool-page {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.lottery-tool-page h3 {
  margin: 0;
  font-size: 20px;
}

.lottery-tool-page p {
  margin: 0;
  color: var(--muted);
}

.lottery-empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 26px;
}

.prediction-grid,
.omission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(680px, 100%);
  gap: 10px;
  margin-top: 12px;
}

.prediction-grid div,
.omission-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.prediction-grid span,
.omission-grid span {
  color: var(--muted);
  font-size: 12px;
}

.lottery-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 270px;
  padding: 18px 20px 28px;
  border-radius: 12px;
  background: repeating-linear-gradient(to top, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 48px), rgba(255, 255, 255, 0.035);
}

.lottery-chart i {
  position: relative;
  flex: 1;
  min-width: 12px;
  max-width: 44px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.lottery-chart b {
  position: absolute;
  top: calc(100% + 7px);
  width: 100%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

.dragon-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.dragon-line span,
.dragon-line strong {
  padding: 8px 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
}

.mobile-reference-floats {
  display: none;
}

.ng-record-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(268px + env(safe-area-inset-bottom, 0px));
  z-index: 85;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  perspective: 560px;
  perspective-origin: 50% 50%;
}

.ng-record-float::before {
  display: none;
  position: absolute;
  top: -65%;
  bottom: -65%;
  left: -28%;
  z-index: 2;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  content: '';
  opacity: 0;
  pointer-events: none;
  transform: translateX(-250%) skewX(-18deg);
}

.ng-record-float:hover {
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.02);
}

.ng-record-float:active {
  transform: translateY(0) scale(0.96);
}

.ng-record-float:focus-visible {
  outline: 3px solid rgba(111, 67, 220, 0.38);
  outline-offset: 3px;
}

.ng-record-disc {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
  perspective: 360px;
  transform-style: preserve-3d;
  transform-origin: center;
}

.ng-record-disc-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotateX(12deg) rotateY(-12deg) translateZ(0);
  transform-style: preserve-3d;
  will-change: transform;
}

.ng-record-disc-stage::before,
.ng-record-disc-stage::after {
  display: none;
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.ng-record-disc-stage::before {
  z-index: -1;
  background: radial-gradient(circle, rgba(219, 117, 255, 0.34), rgba(116, 67, 220, 0.09) 56%, transparent 72%);
  filter: blur(4px);
  transform: translateZ(-12px);
}

.ng-record-disc-stage::after {
  z-index: 5;
  border: 0;
  box-shadow: 0 0 10px rgba(221, 126, 255, 0.5);
  transform: translateZ(7px);
}

.ng-record-disc-stage img,
.ng-record-disc-glow,
.ng-record-disc-hole {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
}

.ng-record-disc-art {
  z-index: 1;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.1) contrast(1.04) drop-shadow(0 3px 3px rgba(12, 7, 24, 0.45));
  transform: translateZ(0);
}

.ng-record-disc-base {
  z-index: 2;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateZ(2px);
}

.ng-record-disc-metal {
  z-index: 3;
  object-fit: cover;
  mix-blend-mode: soft-light;
  opacity: 0;
  transform: translateZ(4px);
}

.ng-record-disc-noise {
  z-index: 4;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.13;
  transform: translateZ(5px);
}

.ng-record-disc-glow {
  display: none;
  z-index: 4;
  background: conic-gradient(from 205deg, transparent 0deg 26deg, rgba(255, 255, 255, 0.72) 44deg, transparent 60deg 162deg, rgba(255, 76, 195, 0.38) 190deg, transparent 214deg 360deg);
  mix-blend-mode: screen;
  opacity: 0.62;
  transform: translateZ(6px);
}

.ng-record-disc-hole {
  display: none;
  z-index: 6;
  inset: 39%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: radial-gradient(circle at 40% 34%, #242027 0 24%, #050407 25% 72%, #72677c 74% 78%, #111016 80% 100%);
  box-shadow: 0 0 0 1px rgba(15, 7, 25, 0.86), 0 1px 4px rgba(255, 255, 255, 0.24);
  transform: translateZ(8px);
}

.ng-record-disc img {
  display: block;
  width: 100%;
  height: 100%;
}

.ng-record-disc i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 50%;
  background: rgba(25, 20, 34, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16), 0 1px 3px rgba(15, 8, 26, 0.62);
  transform: translate(-50%, -50%);
}

.ng-record-state {
  display: none;
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 3;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #aeb6c4;
  box-shadow: 0 1px 4px rgba(17, 10, 31, 0.45);
}

.ng-record-float.is-playing {
  box-shadow: none;
}

.ng-record-float.is-playing::before {
  animation: ng-record-sheen 5.8s ease-in-out infinite;
}

.ng-record-float.is-playing .ng-record-disc {
  animation: ng-record-float 4.8s ease-in-out infinite;
}

.ng-record-float.is-playing .ng-record-disc-stage {
  animation: ng-record-spin-3d 4.8s linear infinite;
}

.ng-record-float.is-playing .ng-record-disc-glow {
  animation: ng-record-glow 2.4s ease-in-out infinite;
}

.ng-record-float.is-playing .ng-record-state {
  background: #5be1af;
  box-shadow: 0 0 0 3px rgba(91, 225, 175, 0.16), 0 0 10px rgba(91, 225, 175, 0.72);
}

/* Keep the music shortcut in the same fixed stack before its lazy stylesheet loads. */
.ng-music-global-player .ng-music-float-toggle {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: calc(204px + env(safe-area-inset-bottom, 0px));
  z-index: 84;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #6f43dc, #ef7528);
  box-shadow: 0 12px 28px rgba(111, 67, 220, 0.3), inset 0 1px rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.ng-music-global-player .ng-music-float-icon {
  display: flex;
  height: 25px;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.ng-music-global-player .ng-music-float-icon i {
  display: block;
  width: 3px;
  height: 10px;
  border-radius: 99px;
  background: currentColor;
}

.ng-music-global-player .ng-music-float-icon i:nth-child(2) { height: 20px; }
.ng-music-global-player .ng-music-float-icon i:nth-child(3) { height: 15px; }
.ng-music-global-player .ng-music-float-icon i:nth-child(4) { height: 7px; }

.ng-music-global-player .ng-music-float-toggle.is-playing .ng-music-float-icon i {
  animation: ng-record-equalizer 0.82s ease-in-out infinite alternate;
}

.ng-music-global-player .ng-music-float-toggle.is-playing .ng-music-float-icon i:nth-child(2) { animation-delay: -0.54s; }
.ng-music-global-player .ng-music-float-toggle.is-playing .ng-music-float-icon i:nth-child(3) { animation-delay: -0.28s; }
.ng-music-global-player .ng-music-float-toggle.is-playing .ng-music-float-icon i:nth-child(4) { animation-delay: -0.68s; }

@keyframes ng-record-equalizer {
  from { transform: scaleY(0.42); }
  to { transform: scaleY(1); }
}

@keyframes ng-record-spin {
  to { transform: rotate(360deg); }
}

@keyframes ng-record-float {
  0%, 100% { transform: translateY(0) rotateZ(-1deg); }
  50% { transform: translateY(-1px) rotateZ(1deg); }
}

@keyframes ng-record-spin-3d {
  0% { transform: rotateX(12deg) rotateY(-12deg) rotateZ(0deg) translateZ(0); }
  24% { transform: rotateX(18deg) rotateY(8deg) rotateZ(86deg) translateZ(2px); }
  50% { transform: rotateX(9deg) rotateY(18deg) rotateZ(180deg) translateZ(0); }
  74% { transform: rotateX(16deg) rotateY(-5deg) rotateZ(274deg) translateZ(2px); }
  100% { transform: rotateX(12deg) rotateY(-12deg) rotateZ(360deg) translateZ(0); }
}

@keyframes ng-record-glow {
  0%, 100% { opacity: 0.3; filter: brightness(0.9); }
  50% { opacity: 0.82; filter: brightness(1.3); }
}

@keyframes ng-record-sheen {
  0%, 18% { opacity: 0; transform: translateX(-250%) skewX(-18deg); }
  32% { opacity: 0.72; }
  56% { opacity: 0.42; }
  74%, 100% { opacity: 0; transform: translateX(720%) skewX(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ng-record-float.is-playing::before,
  .ng-record-float.is-playing .ng-record-disc,
  .ng-record-float.is-playing .ng-record-disc-stage,
  .ng-record-float.is-playing .ng-record-disc-glow {
    animation: none;
  }
}

.movie-detail-modal {
  width: min(920px, 100%);
  background: #20102f;
}

.movie-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.movie-detail-head > span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.movie-detail-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr);
  gap: 18px;
  padding: 18px;
}

.movie-player-column,
.movie-info-column {
  min-width: 0;
}

.movie-player {
  display: grid;
  gap: 7px;
  height: 100%;
  min-height: 420px;
  padding: 10px;
  border-radius: 14px;
  background: #0d0816;
}

.movie-player-screen {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 360px;
  padding: 20px;
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(125, 77, 255, 0.18), rgba(72, 183, 255, 0.04)),
    radial-gradient(circle at 50% 45%, rgba(125, 77, 255, 0.18), transparent 33%),
    #130c20;
  color: #fff;
  text-align: center;
}

.movie-player-screen strong {
  max-width: 32ch;
}

.movie-player-screen span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.movie-play-symbol {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(125, 77, 255, 0.55);
  box-shadow: 0 0 30px rgba(125, 77, 255, 0.36);
}

.movie-player-controls {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 3px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.movie-info-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.movie-detail-cover {
  width: 112px;
  aspect-ratio: 0.74;
  overflow: hidden;
  border-radius: 9px;
  object-fit: cover;
}

.movie-info-column h3,
.movie-info-column h4 {
  margin: 0;
}

.movie-info-column h3 {
  font-size: 20px;
  line-height: 1.3;
}

.movie-info-column h4 {
  margin-top: 8px;
  font-size: 14px;
}

.movie-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.movie-meta-chips span {
  padding: 3px 7px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 11px;
}

.movie-info-list {
  display: grid;
  gap: 8px;
}

.movie-info-list div {
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
}

.movie-info-list span {
  color: var(--muted);
  font-size: 11px;
}

.movie-info-list p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.episode-btn--all {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
}

.dragon-line strong {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

@media (max-width: 900px) {
  .catalog-grid--posters,
  .trial-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lottery-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lottery-feature-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .is-public .recommendations-section .card-grid,
  .catalog-grid--posters,
  .trial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .is-public .recommendations-section .item-card {
    min-height: 124px;
    padding: 8px 5px 6px;
  }

  .home-legal-note {
    flex-direction: column;
    gap: 2px;
    padding: 4px 18px 8px;
  }

  .catalog-page,
  .trial-page,
  .service-page,
  .lottery-page {
    padding-inline: 10px;
  }

  .catalog-search,
  .trial-search {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .catalog-poster-meta {
    padding: 8px 7px 10px;
  }

  .catalog-poster-meta strong {
    font-size: 12px;
  }

  .catalog-poster-meta span {
    font-size: 10px;
  }

  .catalog-update {
    right: 5px;
    bottom: 5px;
    padding: 2px 4px;
    font-size: 9px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .service-grid .tool-card {
    min-height: 128px;
    padding: 10px;
  }

  .lottery-app-shell {
    padding: 7px;
  }

  .lottery-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .lottery-feature-card {
    grid-column: auto;
  }

  .lottery-data-row {
    grid-template-columns: 1fr 1fr;
    gap: 5px 8px;
    padding: 9px 10px;
  }

  .lottery-data-row .lottery-numbers {
    grid-column: 1;
  }

  .lottery-result-text {
    grid-column: 2;
    text-align: right;
  }

  .prediction-grid,
  .omission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lottery-chart {
    gap: 6px;
    height: 220px;
    padding-inline: 10px;
  }

  .dragon-line {
    flex-wrap: wrap;
    justify-content: center;
  }

  .movie-detail-head {
    grid-template-columns: 1fr auto;
  }

  .movie-detail-head > span {
    display: none;
  }

  .movie-detail-body {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }

  .movie-player {
    min-height: 230px;
  }

  .movie-player-screen {
    min-height: 200px;
  }

  .movie-detail-cover {
    width: 96px;
  }

  .ng-record-float {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(266px + env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    padding: 0;
  }

  .ng-record-disc {
    width: 56px;
    height: 56px;
  }

  .mobile-action-hub-toggle,
  .mobile-hub-actions {
    display: none !important;
  }

  .mobile-reference-floats {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    display: grid;
    gap: 9px;
  }

  .mobile-reference-float {
    position: relative;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    padding: 0;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, rgba(125, 77, 255, 0.88), rgba(239, 117, 40, 0.9));
    box-shadow: 0 9px 20px rgba(125, 77, 255, 0.28), inset 0 1px rgba(255, 255, 255, 0.3);
  }

  .mobile-reference-float .icon {
    width: 23px;
    height: 23px;
  }

  .mobile-reference-float > span:not(.icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .mobile-reference-float img {
    width: 31px;
    height: 31px;
    object-fit: cover;
    border-radius: 9px;
  }

  .mobile-reference-float b {
    position: absolute;
    top: -4px;
    right: -3px;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    color: #fff;
    border: 2px solid #26103a;
    border-radius: 50%;
    background: #ef4d68;
    font-size: 9px;
    line-height: 1;
  }
}

@media (max-width: 600px) {
  .site-header-inner {
    padding: 0;
  }

  .site-header .brand {
    width: 100%;
    height: 57px;
  }

  .site-header .brand-logo {
    display: block;
    width: min(189px, calc(100vw - 70px));
    height: 36px;
  }

  .mobile-header-art {
    display: none;
  }

  .site-share-gift {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 8px;
  }

  .site-header .header-actions {
    position: absolute;
    right: 12px;
    top: 6px;
  }

  html[data-display-mode="light"] .site-header {
    background: transparent;
    box-shadow: none;
  }

  html[data-display-mode="light"] .site-header .brand-logo {
    display: none;
  }

  html[data-display-mode="light"] .site-header .brand {
    display: block;
    width: 100%;
  }

  html[data-display-mode="light"] .mobile-header-art {
    display: block;
    width: 100%;
    height: 57px;
    max-width: none;
    object-fit: cover;
    object-position: center;
  }

  html[data-display-mode="light"] .site-header .header-actions {
    display: none;
  }

  html[data-display-mode="light"] body {
    background: var(--page-bg);
  }

  html[data-display-mode="light"] .ng-theme-scene {
    opacity: 0.1;
    background:
      linear-gradient(180deg, rgba(255, 249, 253, 0.84), rgba(242, 233, 255, 0.93)),
      url('./reference-assets/background-640.webp') center top / cover no-repeat;
  }

  html[data-display-mode="light"] .mobile-nav-section {
    background: rgba(255, 249, 253, 0.86);
    box-shadow: 0 10px 22px rgba(92, 53, 121, 0.1);
    backdrop-filter: blur(14px);
  }

  html[data-display-mode="light"] .mobile-category-button {
    color: #816d88;
    border-color: rgba(121, 72, 218, 0.25);
    background: rgba(237, 229, 250, 0.92);
    box-shadow: 0 6px 0 rgba(133, 92, 202, 0.08), 0 12px 24px rgba(92, 53, 121, 0.08), inset 0 1px rgba(255, 255, 255, 0.75);
  }

  html[data-display-mode="light"] .mobile-category-button.is-active {
    color: #fff;
    background: linear-gradient(125deg, #6b3fe9, #8e50ff 48%, #ff8137);
    box-shadow: 0 6px 0 rgba(69, 30, 116, 0.4), 0 14px 27px rgba(80, 36, 130, 0.3), inset 0 1px rgba(255, 255, 255, 0.28);
  }

  html[data-display-mode="light"] .hero-shell {
    border-color: rgba(121, 72, 218, 0.25);
    box-shadow: 0 8px 0 rgba(133, 92, 202, 0.08), 0 20px 44px rgba(92, 53, 121, 0.12);
  }

  html[data-display-mode="light"] .recommendations-section .item-card {
    border-radius: 22px;
    border-color: rgba(121, 72, 218, 0.25);
    background: rgba(255, 255, 255, 0.91);
    box-shadow: 0 8px 0 rgba(133, 92, 202, 0.08), 0 20px 44px rgba(92, 53, 121, 0.12);
  }

  html[data-display-mode="light"] .recommendations-section .item-avatar {
    box-shadow: 0 0 0 3px rgba(111, 67, 220, 0.08), 0 5px 12px rgba(92, 53, 121, 0.12);
  }

  html[data-display-mode="light"] .recommendations-section .item-cta {
    background: linear-gradient(125deg, #6b3fe9, #8e50ff 48%, #ff8137);
  }

  .display-mode-float {
    bottom: 62px;
  }

  .mobile-action-hub-toggle {
    border-radius: 50%;
    background: linear-gradient(135deg, #6f43dc, #ef7528);
  }

  .mobile-hub-action--service {
    overflow: hidden;
    background: linear-gradient(135deg, #6b3fe9, #8e50ff 48%, #ff8137);
  }

  .mobile-hub-action--service img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-hub-action--service > span:not(.icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  html[data-display-mode="light"] .mobile-action-hub-toggle,
  html[data-display-mode="light"] .mobile-hub-action,
  html[data-display-mode="light"] .display-mode-float {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 19px rgba(111, 67, 220, 0.24), inset 0 1px rgba(255, 255, 255, 0.22);
  }

}
.collector-video-shell .collector-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #030712;
}

.collector-player-status {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  color: #dbeafe;
  border: 1px solid rgba(147, 197, 253, 0.3);
  border-radius: 6px;
  background: rgba(3, 7, 18, 0.82);
  font-size: 13px;
  font-family: inherit;
  text-align: center;
  transform: translate(-50%, -50%);
}

.collector-player-status:disabled {
  cursor: wait;
  opacity: 1;
}

.collector-player-status.is-actionable {
  cursor: pointer;
}
