﻿:root {
  --bg: #050913;
  --bg-soft: #0b162a;
  --surface: rgba(14, 25, 45, 0.86);
  --surface-soft: rgba(17, 31, 56, 0.72);
  --line: rgba(122, 190, 255, 0.24);
  --line-strong: rgba(122, 190, 255, 0.56);
  --text: #eff6ff;
  --muted: #b5c8e5;
  --accent: #4eaaff;
  --accent-soft: #8cd2ff;
  --danger: #ff6b7d;
  --success: #64ffb7;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 16px 40px rgba(8, 74, 158, 0.22);
  --shadow-strong: 0 20px 56px rgba(7, 97, 214, 0.32);
  --container: min(1220px, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Bahnschrift", "Segoe UI Variable", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(78, 170, 255, 0.18), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(114, 205, 255, 0.14), transparent 36%),
    linear-gradient(162deg, #040811, #091427 44%, #04070f 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body.light-mode {
  --bg: #f4f8ff;
  --bg-soft: #eaf2ff;
  --surface: rgba(244, 248, 255, 0.9);
  --surface-soft: rgba(230, 240, 255, 0.78);
  --line: rgba(43, 107, 196, 0.24);
  --line-strong: rgba(43, 107, 196, 0.45);
  --text: #0d1d36;
  --muted: #30486f;
  background:
    radial-gradient(circle at 12% 10%, rgba(78, 170, 255, 0.16), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(114, 205, 255, 0.12), transparent 36%),
    linear-gradient(162deg, #f7fbff, #eef5ff 44%, #e8f1ff 100%);
}

body.font-large {
  font-size: 1.08rem;
}

body.inline-editor-open {
  overflow: auto;
}

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

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.page-shell {
  min-height: calc(100vh - 156px);
  padding-block: 1.6rem 2.4rem;
}

.page-header {
  margin-bottom: 1rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-soft);
  letter-spacing: 0.7px;
  font-size: 0.77rem;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.page-title {
  margin-top: 0.35rem;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1;
}

.page-subtitle {
  margin-top: 0.55rem;
  color: var(--muted);
  max-width: 72ch;
}

.grid {
  display: grid;
  gap: 0.85rem;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(168deg, rgba(14, 25, 45, 0.88), rgba(8, 16, 31, 0.92));
  box-shadow: var(--shadow);
  padding: 1.05rem;
  backdrop-filter: blur(8px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 0 1rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #041326;
  background: linear-gradient(132deg, var(--accent-soft), var(--accent));
  border-color: rgba(146, 220, 255, 0.62);
  box-shadow: 0 10px 30px rgba(76, 164, 255, 0.34);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(16, 30, 54, 0.82);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(17, 29, 52, 0.9);
}

.badge-live {
  border-color: rgba(100, 255, 183, 0.4);
  color: #c7ffe8;
  background: rgba(17, 44, 35, 0.78);
}

.badge-offline {
  border-color: rgba(255, 138, 155, 0.4);
  color: #ffd1d9;
  background: rgba(58, 23, 32, 0.76);
}

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 8px rgba(110, 192, 255, 0.35));
}

.icon-sm {
  width: 18px;
  height: 18px;
}

.icon-accent {
  filter: drop-shadow(0 0 10px rgba(110, 192, 255, 0.6));
}

[data-optional-wrap] {
  position: relative;
}

[data-optional-wrap] img[data-optional-img] {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-optional-wrap].has-image img[data-optional-img] {
  display: block;
}

[data-optional-wrap].has-image .placeholder-note {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(10px);
  background: rgba(6, 12, 24, 0.78);
  border-bottom: 1px solid rgba(122, 190, 255, 0.16);
}

.topbar-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: 0.35rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(17, 31, 56, 0.84);
  box-shadow: 0 8px 24px rgba(34, 118, 209, 0.28);
}

.brand-link img {
  width: 28px;
  height: 28px;
}

.menu-toggle {
  margin-left: auto;
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(14, 26, 46, 0.9);
  cursor: pointer;
  padding: 10px 8px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.35rem;
  max-width: none;
  overflow-x: visible;
}

.main-nav a,
.main-nav .nav-parent {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  font-weight: 700;
  padding: 0.4rem 0.62rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.main-nav a[data-page-link="forum"],
.main-nav a[data-page-link="admin"] {
  display: none;
}

.main-nav .nav-parent {
  gap: 0.35rem;
}

.main-nav .nav-parent::after {
  content: "▾";
  font-size: 0.65rem;
  opacity: 0.84;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav .nav-parent:hover,
.main-nav .nav-parent:focus-visible {
  color: var(--text);
  background: rgba(16, 32, 57, 0.74);
  border-color: rgba(122, 190, 255, 0.22);
}

.main-nav a.active,
.main-nav .nav-parent.active,
.main-nav .nav-group.has-active > .nav-parent {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(18, 36, 65, 0.9);
  box-shadow: 0 0 18px rgba(91, 175, 255, 0.22);
}

.nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-group-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  display: grid;
  gap: 0.24rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem;
  background: rgba(7, 14, 27, 0.98);
  box-shadow: 0 14px 34px rgba(5, 12, 24, 0.45);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 95;
}

.nav-group:hover > .nav-group-menu,
.nav-group:focus-within > .nav-group-menu,
.nav-group.is-open > .nav-group-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-group-menu .nav-sub-link {
  width: 100%;
  justify-content: flex-start;
}

.main-nav::-webkit-scrollbar {
  height: 6px;
}

.main-nav::-webkit-scrollbar-thumb {
  background: rgba(121, 188, 255, 0.38);
  border-radius: 99px;
}

.section-block {
  margin-top: 1.1rem;
}

.section-title {
  margin-bottom: 0.65rem;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0.9rem;
}

.hero-banner {
  position: relative;
  min-height: 330px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 18%, rgba(76, 171, 255, 0.26), transparent 42%),
    linear-gradient(160deg, rgba(11, 23, 43, 0.95), rgba(7, 15, 28, 0.95));
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-banner .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(4, 9, 18, 0.86), rgba(4, 9, 18, 0.15));
}

.hero-copy h1 {
  margin-top: 0.45rem;
  font-size: clamp(2.1rem, 6.6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0.8px;
  text-shadow: 0 0 24px rgba(83, 169, 255, 0.34);
}

.hero-copy .subtitle {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-copy .intro {
  margin-top: 0.8rem;
  color: var(--muted);
  max-width: 64ch;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.live-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.live-card {
  display: grid;
  gap: 0.55rem;
}

.live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.live-platform {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.live-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-link-card h3,
.latest-card h3 {
  font-size: 1.05rem;
}

.quick-link-card p,
.latest-card p {
  margin-top: 0.3rem;
  color: var(--muted);
}

.quick-link-card .btn,
.latest-card .btn {
  margin-top: 0.7rem;
}

.accordion {
  display: grid;
  gap: 0.75rem;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.accordion-trigger {
  width: 100%;
  border: 0;
  padding: 0.9rem;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  cursor: pointer;
  text-align: left;
}

.accordion-trigger:hover,
.accordion-trigger:focus-visible {
  background: rgba(22, 40, 68, 0.6);
}

.accordion-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.accordion-body {
  padding: 0 0.9rem 0.9rem;
  border-top: 1px solid rgba(122, 190, 255, 0.16);
}

.accordion-body[hidden] {
  display: none;
}

.accordion-body p,
.accordion-body li {
  color: var(--muted);
}

.accordion-body ul {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
}

.accordion-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 0.25rem 0.62rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.timeline {
  margin: 0;
  padding-left: 1rem;
}

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

.timeline li + li {
  margin-top: 0.35rem;
}

.cta-row {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.news-list {
  display: grid;
  gap: 0.75rem;
}

.news-meta {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.news-excerpt {
  margin-top: 0.4rem;
  color: var(--muted);
}

.news-detail-content {
  margin-top: 0.75rem;
  color: var(--muted);
  white-space: pre-line;
}

.login-wrap {
  max-width: 480px;
}

.form-grid {
  display: grid;
  gap: 0.7rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  color: var(--muted);
  font-size: 0.9rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(9, 18, 34, 0.95);
  color: var(--text);
  padding: 0.62rem 0.68rem;
}

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

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0.8rem;
}

.admin-layout > .card {
  min-height: 68vh;
}

.admin-layout > .card.admin-nav {
  min-height: auto;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-content: flex-start;
  gap: 0.45rem;
}

.admin-nav button {
  width: 100%;
}

.admin-nav .admin-tab-btn {
  min-height: 38px;
  max-height: 42px;
  padding: 0.34rem 0.66rem;
  justify-content: center;
  border-radius: 10px;
  box-shadow: none;
  line-height: 1.2;
  font-size: 0.98rem;
}

.admin-nav .admin-tab-btn:hover,
.admin-nav .admin-tab-btn:focus-visible {
  transform: none;
}

.admin-nav .admin-tab-btn.is-active {
  color: var(--text);
  background: rgba(35, 82, 130, 0.55);
  border-color: rgba(122, 190, 255, 0.62);
  box-shadow: 0 0 14px rgba(91, 175, 255, 0.24);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
  animation: admin-panel-fade 0.2s ease;
}

.game-settings-switcher {
  display: grid;
  gap: 0.5rem;
}

.game-settings-switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.game-settings-btn {
  min-height: 36px;
  padding: 0 0.8rem;
}

.game-settings-btn.is-active {
  color: var(--text);
  background: rgba(35, 82, 130, 0.55);
  border-color: rgba(122, 190, 255, 0.62);
  box-shadow: 0 0 14px rgba(91, 175, 255, 0.24);
}

.game-settings-panel {
  display: grid;
  gap: 0.55rem;
}

.game-settings-panel[hidden] {
  display: none !important;
}

@keyframes admin-panel-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.table-like {
  display: grid;
  gap: 0.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55rem;
  background: rgba(14, 25, 45, 0.75);
}

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

.admin-logo-preview {
  width: min(240px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(10, 21, 38, 0.9);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.admin-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.7rem;
}

.admin-logo-preview-banner {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
}

.admin-logo-preview-portrait {
  width: min(280px, 100%);
  aspect-ratio: 4 / 5;
}

.admin-logo-preview-banner img,
.admin-logo-preview-portrait img {
  object-fit: cover;
  padding: 0;
}

.admin-media-row {
  align-items: center;
}

.admin-media-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.admin-media-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 20, 36, 0.9);
  object-fit: cover;
  flex: 0 0 auto;
}

.admin-media-meta {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.admin-media-meta strong,
.admin-media-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-brand-card {
  display: grid;
  gap: 0.45rem;
}

.admin-brand-card h4 {
  margin: 0;
  font-size: 0.98rem;
}

.db-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.db-status-card {
  display: grid;
  gap: 0.35rem;
}

.db-status-card .section-text {
  margin: 0;
}

.db-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.db-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 0.56rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 30, 54, 0.8);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.db-pill-online {
  border-color: rgba(100, 255, 183, 0.42);
  background: rgba(19, 52, 41, 0.68);
  color: #c7ffe8;
}

.db-pill-offline {
  border-color: rgba(255, 138, 155, 0.44);
  background: rgba(53, 22, 31, 0.68);
  color: #ffd7df;
}

.db-pill-muted {
  border-color: rgba(122, 190, 255, 0.28);
  background: rgba(15, 29, 52, 0.74);
  color: var(--muted);
}

.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 8, 16, 0.82);
  backdrop-filter: blur(4px);
  padding: 1rem;
}

.crop-modal.open {
  display: flex;
}

.crop-dialog {
  width: min(1000px, 96vw);
  max-height: 92vh;
  overflow: auto;
}

.crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.crop-workarea {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  background: rgba(7, 16, 30, 0.9);
}

.crop-stage {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  user-select: none;
}

.crop-stage img {
  display: block;
  max-width: min(90vw, 900px);
  max-height: 68vh;
  width: auto;
  height: auto;
  border-radius: 10px;
}

.crop-box {
  position: absolute;
  border: 2px solid var(--accent-soft);
  box-shadow: 0 0 0 9999px rgba(5, 9, 18, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  cursor: move;
  min-width: 40px;
  min-height: 40px;
  touch-action: none;
}

.crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.crop-handle.nw {
  top: -8px;
  left: -8px;
  cursor: nwse-resize;
}

.crop-handle.ne {
  top: -8px;
  right: -8px;
  cursor: nesw-resize;
}

.crop-handle.sw {
  bottom: -8px;
  left: -8px;
  cursor: nesw-resize;
}

.crop-handle.se {
  bottom: -8px;
  right: -8px;
  cursor: nwse-resize;
}

.footer {
  border-top: 1px solid rgba(122, 190, 255, 0.16);
  padding-block: 1rem 1.4rem;
  margin-top: 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

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

.footer-links {
  display: flex;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  max-width: 320px;
  min-width: 130px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 19, 36, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 0.68rem 0.82rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.notice {
  margin-top: 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(16, 30, 54, 0.75);
  padding: 0.6rem;
  color: var(--muted);
}

.notice.success {
  border-color: rgba(109, 248, 185, 0.46);
  color: #cdffe9;
}

.notice.danger {
  border-color: rgba(255, 115, 139, 0.46);
  color: #ffd7df;
}

.rich-inline-image {
  display: block;
  max-width: min(540px, 100%);
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-top: 0.5rem;
}

.rich-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 38, 66, 0.78);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.rich-token-sm {
  min-height: 28px;
}

.rich-token-md {
  min-height: 34px;
  font-size: 0.88rem;
}

.rich-token-lg {
  min-height: 42px;
  font-size: 0.95rem;
  padding-inline: 0.82rem;
}

.rich-chart {
  display: grid;
  gap: 0.45rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.7rem;
  background: rgba(10, 22, 40, 0.88);
}

.rich-chart-row {
  display: grid;
  grid-template-columns: minmax(90px, 150px) minmax(120px, 1fr) 52px;
  align-items: center;
  gap: 0.5rem;
}

.rich-chart-label,
.rich-chart-value {
  color: var(--muted);
  font-size: 0.84rem;
}

.rich-chart-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(122, 190, 255, 0.2);
  background: rgba(14, 30, 52, 0.7);
  overflow: hidden;
}

.rich-chart-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(132deg, var(--accent-soft), var(--accent));
  box-shadow: 0 0 18px rgba(91, 175, 255, 0.35);
}

.rich-todo-list {
  list-style: none;
  margin: 0.4rem 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.rich-todo-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
}

.rich-todo-list input[type="checkbox"] {
  accent-color: var(--accent);
}

.rich-preview {
  margin-top: 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(9, 19, 34, 0.86);
  padding: 0.65rem;
}

.rich-preview:empty::before {
  content: "Vorschau erscheint hier";
  color: var(--muted);
}

.calendar-shell {
  display: grid;
  gap: 0.7rem;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.calendar-head h3 {
  margin: 0;
  font-size: 1rem;
}

.calendar-timezone {
  flex: 1 1 100%;
  margin-top: -0.1rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
}

.calendar-cell {
  border-radius: 10px;
  border: 1px solid var(--line);
  min-height: 70px;
  padding: 0.3rem;
  background: rgba(12, 25, 44, 0.76);
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.calendar-cell.header {
  min-height: auto;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  padding: 0.35rem;
}

.calendar-cell .day {
  font-size: 0.76rem;
  color: var(--muted);
}

.calendar-day-btn {
  position: relative;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}

.calendar-day-btn .day,
.calendar-day-btn small {
  position: relative;
  z-index: 2;
}

.calendar-day-btn small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.calendar-day-btn .calendar-day-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.calendar-day-btn .calendar-day-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.calendar-day-btn.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(6, 12, 24, 0.72), rgba(6, 12, 24, 0.2));
}

.calendar-day-btn.has-image .day,
.calendar-day-btn.has-image small {
  color: #eff6ff;
  text-shadow: 0 1px 4px rgba(3, 7, 13, 0.7);
}

.calendar-dot {
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(91, 175, 255, 0.52);
}

.calendar-event-list {
  display: grid;
  gap: 0.4rem;
}

.admin-calendar-list-main {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.admin-calendar-list-main > div {
  min-width: 0;
}

.admin-calendar-list-thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 22, 40, 0.9);
  object-fit: cover;
  flex: 0 0 auto;
}

.admin-calendar-list-thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
  padding: 0.35rem;
}

.calendar-image-preview {
  width: min(280px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 16%, rgba(75, 167, 255, 0.2), transparent 44%),
    linear-gradient(160deg, rgba(14, 26, 48, 0.92), rgba(7, 14, 27, 0.95));
  overflow: hidden;
}

.calendar-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.calendar-image-preview.has-image img {
  display: block;
}

.calendar-image-preview.has-image .placeholder-note {
  display: none;
}

.calendar-image-preview .placeholder-note {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
}

.calendar-day-modal {
  position: fixed;
  inset: 0;
  z-index: 255;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 8, 16, 0.8);
  backdrop-filter: blur(4px);
  padding: 1rem;
}

.calendar-day-modal.open {
  display: flex;
}

.calendar-day-dialog {
  width: min(700px, 96vw);
  max-height: 88vh;
  overflow: auto;
}

.calendar-day-list {
  display: grid;
  gap: 0.55rem;
}

.admin-calendar-day {
  width: 100%;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-calendar-day small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.admin-calendar-day:hover,
.admin-calendar-day:focus-visible {
  border-color: rgba(122, 190, 255, 0.62);
  box-shadow: 0 0 0 1px rgba(122, 190, 255, 0.26);
  transform: translateY(-1px);
}

.admin-calendar-day.is-selected {
  border-color: rgba(122, 190, 255, 0.82);
  box-shadow: 0 0 0 1px rgba(122, 190, 255, 0.36), 0 10px 24px rgba(7, 97, 214, 0.2);
}

.admin-calendar-day.is-today .day {
  color: var(--accent-soft);
  font-weight: 700;
}

.admin-calendar-day.is-empty {
  pointer-events: none;
  opacity: 0.35;
}

.admin-calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 8, 16, 0.82);
  backdrop-filter: blur(4px);
  padding: 1rem;
}

.admin-calendar-modal.open {
  display: flex;
}

.admin-calendar-dialog {
  width: min(780px, 96vw);
  max-height: 92vh;
  overflow: auto;
}

.inline-hidden {
  display: none !important;
}

.inline-custom-section {
  display: grid;
  gap: 0.75rem;
}

.inline-block-grid {
  display: grid;
  gap: 0.8rem;
}

.inline-block-card {
  width: min(100%, var(--inline-width, 100%));
}

.inline-align-left {
  justify-self: start;
}

.inline-align-center {
  justify-self: center;
}

.inline-align-right {
  justify-self: end;
}

.inline-media-frame {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(9, 18, 34, 0.95);
}

.inline-media-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.inline-embed-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(9, 18, 34, 0.95);
}

.inline-embed-frame iframe,
.inline-embed-frame video {
  width: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

.inline-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  pointer-events: none;
}

.inline-editor-modal.open {
  display: block;
}

.inline-editor-backdrop {
  display: none;
}

.inline-editor-shell {
  position: fixed;
  inset: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  pointer-events: none;
}

.inline-editor-topbar {
  width: min(1360px, 96vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  position: relative;
  z-index: 3;
  background: linear-gradient(168deg, rgba(15, 29, 52, 0.95), rgba(8, 17, 33, 0.98));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0.95rem;
  box-shadow: 0 18px 40px rgba(4, 9, 18, 0.55);
  pointer-events: auto;
}

.inline-editor-topbar h3 {
  margin: 0;
  font-size: 1.15rem;
}

.inline-editor-top-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.inline-editor-page-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 190, 255, 0.45);
  background: rgba(18, 41, 70, 0.85);
  color: var(--text);
  font-weight: 700;
}

.inline-editor-body {
  width: min(1360px, 96vw);
  margin-inline: auto;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(320px, 430px);
  justify-content: space-between;
  align-content: start;
  gap: 0.7rem;
  padding: 0;
  pointer-events: none;
}

.inline-editor-left,
.inline-editor-right {
  min-height: 0;
  max-height: calc(100vh - 122px);
  overflow: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
}

.inline-editor-left h4,
.inline-editor-right h4 {
  margin: 0 0 0.45rem;
}

.inline-editor-center {
  display: none;
}

.inline-editor-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.inline-editor-quick-btn {
  min-height: 36px;
  padding: 0 0.58rem;
  font-size: 0.84rem;
}

.inline-editor-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 0.6rem;
}

.inline-editor-tools select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(9, 18, 34, 0.95);
  color: var(--text);
  padding: 0.52rem 0.6rem;
}

.inline-editor-list {
  display: grid;
  gap: 0.5rem;
}

.inline-editor-block {
  display: grid;
  gap: 0.45rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 22, 40, 0.92);
  padding: 0.6rem;
  cursor: grab;
}

.inline-editor-block.dragging {
  opacity: 0.65;
}

.inline-editor-block-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.inline-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.inline-editor-field-full {
  grid-column: 1 / -1;
}

.inline-editor-block-head small {
  color: var(--muted);
}

.inline-editor-block.inline-selected {
  border-color: rgba(122, 190, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(122, 190, 255, 0.35);
}

[data-inline-live-card].inline-selected {
  border-color: rgba(122, 190, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(122, 190, 255, 0.3), 0 14px 34px rgba(7, 97, 214, 0.22);
}

.inline-live-editable {
  border-radius: 8px;
  outline: 1px dashed rgba(122, 190, 255, 0.45);
  outline-offset: 2px;
  background: rgba(13, 24, 43, 0.42);
  cursor: text;
}

.inline-live-editable:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.inline-editor-open [data-inline-page-root] a:not([data-inline-live-field]),
body.inline-editor-open [data-inline-page-root] iframe,
body.inline-editor-open [data-inline-page-root] video {
  pointer-events: none;
}

.calendar-event-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 16%, rgba(75, 167, 255, 0.2), transparent 44%),
    linear-gradient(160deg, rgba(14, 26, 48, 0.92), rgba(7, 14, 27, 0.95));
  margin-bottom: 0.55rem;
}

.calendar-event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calendar-event-media .placeholder-note {
  padding: 0.75rem;
}

[data-ui-bar],
.ui-bar {
  display: none !important;
}

.forum-layout {
  display: grid;
  gap: 0.85rem;
}

.forum-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.forum-profile-banner {
  width: 100%;
  aspect-ratio: 16 / 5;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(23, 48, 85, 0.72), rgba(9, 20, 36, 0.92));
  object-fit: cover;
}

.forum-profile-row {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.forum-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
  background: rgba(11, 24, 42, 0.86);
}

.forum-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.forum-post-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.forum-post-body {
  margin-top: 0.55rem;
}

.forum-replies {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.4rem;
}

.forum-reply-row {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(11, 23, 40, 0.75);
  padding: 0.5rem;
}

.dodge-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 0.85rem;
}

.dodge-card {
  display: grid;
  gap: 0.75rem;
}

.dodge-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  gap: 0.55rem;
  align-items: end;
}

.dodge-settings-wrap {
  display: grid;
  gap: 0.5rem;
}

.dodge-settings-toggle {
  min-height: 36px;
  width: fit-content;
  padding: 0 0.72rem;
}

.dodge-settings-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 22, 40, 0.9);
  padding: 0.65rem;
  display: grid;
  gap: 0.6rem;
}

.dodge-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.dodge-bind-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.dodge-bind-grid .btn,
.dodge-settings-grid .btn {
  min-height: 38px;
}

.dodge-settings-grid small {
  color: var(--muted);
}

.dodge-alias {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.dodge-alias select,
.dodge-alias input[type="text"] {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(7, 18, 35, 0.92);
  color: var(--text);
  padding: 0 0.8rem;
}

.dodge-stage {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(74, 168, 255, 0.24), transparent 42%),
    linear-gradient(170deg, rgba(7, 16, 31, 0.98), rgba(4, 10, 20, 0.98));
}

.dodge-stage canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 420;
  display: block;
}

.dodge-overlay {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 194, 255, 0.34);
  background: rgba(7, 16, 30, 0.84);
  padding: 0.65rem 0.75rem;
  backdrop-filter: blur(4px);
}

.dodge-overlay h3 {
  font-size: 1.06rem;
  margin-bottom: 0.2rem;
}

.discord-module-row {
  align-items: flex-start;
}

.discord-module-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.discord-env-toolbar {
  align-items: center;
}

.discord-env-row {
  align-items: flex-end;
}

.discord-env-field {
  flex: 1 1 260px;
  min-width: 220px;
  margin: 0;
}

.discord-env-row .cta-row {
  margin-left: auto;
}

.dodge-overlay p {
  color: var(--muted);
  font-size: 0.92rem;
}

.dodge-overlay.hidden {
  display: none;
}

.dodge-hud {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}

.dodge-hud p {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 21, 40, 0.8);
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
}

.dodge-side {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.dodge-side h3 {
  font-size: 1.22rem;
}

.dodge-leaderboard {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.dodge-leaderboard li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(122, 190, 255, 0.16);
}

.dodge-leaderboard li:last-child {
  border-bottom: 0;
}

.dodge-leaderboard small {
  display: block;
  color: var(--muted);
}

.slots-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 0.85rem;
}

.slots-card {
  display: grid;
  gap: 0.75rem;
}

.slots-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) auto auto auto auto;
  gap: 0.55rem;
  align-items: end;
}

.slots-toolbar .field {
  margin: 0;
}

.slots-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.slots-buy-btn {
  min-height: 42px;
  padding-inline: 0.75rem;
  white-space: nowrap;
}

.slots-buy-super {
  border-color: rgba(255, 192, 115, 0.45);
  background: linear-gradient(140deg, rgba(58, 38, 14, 0.9), rgba(34, 22, 8, 0.92));
  color: #ffe9c7;
}

.slots-mini-btn {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.slots-close-btn {
  min-height: 34px;
  padding: 0 0.75rem;
}

.slots-toolbar .field span {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.slots-toolbar select {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(7, 18, 35, 0.92);
  color: var(--text);
  padding: 0 0.7rem;
}

.slots-settings-panel {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(9, 20, 38, 0.92);
  padding: 0.6rem;
  display: grid;
  gap: 0.6rem;
}

.slots-settings-panel[hidden] {
  display: none !important;
}

.slots-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.slots-settings-head strong {
  font-size: 1rem;
}

.slots-settings-panel .field {
  margin: 0;
}

.slots-settings-panel input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.slots-settings-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.slots-settings-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 700;
}

.slots-hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.slots-hud p {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 21, 40, 0.8);
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
}

.slots-feature-banner {
  border-radius: 10px;
  border: 1px solid rgba(122, 195, 255, 0.5);
  background:
    linear-gradient(120deg, rgba(10, 29, 56, 0.95), rgba(8, 22, 44, 0.95)),
    radial-gradient(circle at 18% 20%, rgba(124, 202, 255, 0.2), transparent 42%);
  box-shadow: 0 0 20px rgba(112, 188, 255, 0.18), inset 0 0 0 1px rgba(164, 223, 255, 0.22);
  padding: 0.5rem 0.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: center;
}

.slots-feature-banner[hidden] {
  display: none !important;
}

.slots-feature-mode,
.slots-feature-symbol,
.slots-feature-extra {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(113, 185, 255, 0.35);
  background: rgba(8, 20, 38, 0.78);
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #dceeff;
}

.slots-feature-mode {
  color: #8fd4ff;
}

.slots-stage {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0.7rem 2.15rem;
  background:
    radial-gradient(circle at 22% 16%, rgba(74, 168, 255, 0.18), transparent 44%),
    linear-gradient(170deg, rgba(7, 16, 31, 0.98), rgba(4, 10, 20, 0.98));
  position: relative;
  overflow: hidden;
}

.slots-line-markers {
  position: absolute;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 1.45rem;
  pointer-events: none;
  z-index: 3;
}

.slots-line-markers-left {
  left: 0.35rem;
}

.slots-line-markers-right {
  right: 0.35rem;
}

.slots-line-marker {
  position: absolute;
  left: 0;
  width: 1.45rem;
  min-height: 1.05rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(6, 16, 31, 0.62);
  color: #081729;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.slots-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 200, 110, 0.18), rgba(255, 94, 171, 0.06) 46%, transparent 72%);
  transition: opacity 0.2s ease;
}

.slots-stage.is-anticipation {
  border-color: rgba(255, 194, 130, 0.72);
  box-shadow: 0 0 26px rgba(255, 145, 187, 0.28), 0 0 48px rgba(96, 183, 255, 0.22);
  animation: slotAnticipationPulse 0.55s ease-in-out infinite alternate;
}

.slots-stage.is-anticipation::after {
  opacity: 1;
}

@keyframes slotAnticipationPulse {
  from {
    transform: scale(1);
    filter: saturate(1);
  }
  to {
    transform: scale(1.005);
    filter: saturate(1.18);
  }
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.slots-payline-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.slots-payline-path {
  fill: none;
  stroke: var(--line-color, #8cd4ff);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(123, 201, 255, 0.7));
  opacity: 0;
  stroke-dasharray: var(--dash-length, 1);
  stroke-dashoffset: var(--dash-length, 1);
  animation: slotPaylineDraw 0.32s ease forwards, slotPaylinePulse 0.58s ease-in-out infinite alternate 0.34s;
}

.slots-payline-value {
  position: absolute;
  min-width: 52px;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 212, 255, 0.78);
  background: rgba(6, 20, 40, 0.9);
  color: #e9f6ff;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px rgba(111, 190, 255, 0.34), inset 0 0 0 1px rgba(180, 228, 255, 0.28);
  z-index: 6;
  pointer-events: none;
  animation: slotPaylineValueBlink 0.32s ease;
}

.slots-feature-intro {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.slots-feature-intro.is-visible {
  opacity: 1;
}

.slots-feature-intro-card {
  min-width: 220px;
  max-width: min(92%, 380px);
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(157, 221, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(13, 28, 52, 0.9), rgba(7, 16, 32, 0.9)),
    radial-gradient(circle at 50% 0%, rgba(129, 210, 255, 0.2), rgba(7, 16, 32, 0) 68%);
  box-shadow:
    0 0 28px rgba(111, 191, 255, 0.32),
    inset 0 0 0 1px rgba(189, 235, 255, 0.24);
}

.slots-feature-intro-card strong {
  color: #e9f7ff;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.slots-feature-intro-card span {
  color: #bbdaff;
  font-size: 0.85rem;
  font-weight: 700;
}

.slots-feature-intro-card em {
  color: #f4d58f;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.slots-feature-intro-card img {
  width: min(56px, 40vw);
  height: min(56px, 40vw);
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(162, 223, 255, 0.56);
  box-shadow: 0 0 14px rgba(114, 198, 255, 0.32);
}

.slot-reel {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(10, 22, 41, 0.96), rgba(5, 12, 24, 0.96));
  overflow: hidden;
  aspect-ratio: 1 / 3;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.08);
}

.slot-reel.is-horus-expand {
  border-color: rgba(165, 223, 255, 0.9);
  box-shadow:
    0 0 26px rgba(126, 200, 255, 0.36),
    inset 0 0 0 1px rgba(173, 231, 255, 0.4);
}

.slot-reel-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slot-reel-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  will-change: transform;
}

.slot-reel-expand-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--expand-top, 0%);
  height: var(--expand-height, 100%);
  z-index: 6;
  border-radius: 0;
  border-top: 1px solid rgba(188, 230, 255, 0.45);
  border-bottom: 1px solid rgba(188, 230, 255, 0.45);
  background:
    linear-gradient(180deg, rgba(6, 16, 31, 0.18), rgba(6, 16, 31, 0.05)),
    radial-gradient(circle at 50% 8%, rgba(155, 221, 255, 0.22), rgba(12, 26, 45, 0) 66%);
  box-shadow:
    0 0 20px rgba(130, 206, 255, 0.22),
    inset 0 0 0 1px rgba(190, 233, 255, 0.3);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    top 0.38s cubic-bezier(0.2, 0.68, 0.12, 1),
    height 0.38s cubic-bezier(0.2, 0.68, 0.12, 1),
    opacity 0.18s ease;
}

.slot-reel-expand-layer.is-visible {
  opacity: 1;
}

.slot-reel-expand-layer.is-expanding .slot-reel-expand-image {
  animation: slotHorusExpandImagePan 0.5s ease both;
}

.slot-reel-expand-layer.is-fading {
  opacity: 0;
}

.slot-reel-expand-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 0%;
  filter: saturate(1.08) drop-shadow(0 0 10px rgba(140, 211, 255, 0.32));
  transform: scale(1.01);
}

.slot-reel-expand-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.2rem;
  text-align: center;
  color: #e6f7ff;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(153, 223, 255, 0.38);
}

.slot-cell {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 31, 57, 0.95), rgba(8, 17, 31, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.08);
}

.slot-reel-cell {
  aspect-ratio: auto;
  min-height: var(--reel-row-height, 90px);
  height: var(--reel-row-height, 90px);
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 1px solid rgba(120, 182, 255, 0.13);
  border-bottom: 1px solid rgba(120, 182, 255, 0.13);
}

.slot-reel-cell.spinning {
  animation: none;
}

.slot-cell img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.slot-cell span {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.slot-glyph {
  width: 60%;
  height: 60%;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 25%, rgba(162, 219, 255, 0.9), rgba(120, 180, 255, 0.08) 60%),
    linear-gradient(145deg, rgba(94, 200, 255, 0.28), rgba(131, 149, 255, 0.1));
  box-shadow:
    0 0 12px rgba(121, 204, 255, 0.35),
    inset 0 0 0 1px rgba(177, 228, 255, 0.45);
}

.slot-cell.wild {
  border-color: rgba(255, 160, 230, 0.6);
  box-shadow: 0 0 18px rgba(255, 155, 224, 0.26), inset 0 0 0 1px rgba(255, 155, 224, 0.3);
}

.slot-cell.scatter {
  border-color: rgba(255, 214, 150, 0.62);
  box-shadow: 0 0 18px rgba(255, 210, 120, 0.24), inset 0 0 0 1px rgba(255, 210, 120, 0.32);
}

.slot-cell.scatter-potential {
  border-color: rgba(255, 196, 112, 0.92);
  box-shadow:
    0 0 20px rgba(255, 182, 89, 0.5),
    0 0 36px rgba(255, 112, 192, 0.25),
    inset 0 0 0 1px rgba(255, 228, 165, 0.85);
  animation: slotScatterPotentialPulse 0.45s ease-in-out infinite alternate;
}

.slot-reel.scatter-next-reel {
  border-color: rgba(255, 207, 131, 0.9);
  box-shadow:
    0 0 22px rgba(255, 188, 120, 0.4),
    inset 0 0 0 1px rgba(255, 226, 172, 0.4);
}

.slot-cell.payline-hit {
  border-color: rgba(135, 211, 255, 0.92);
  box-shadow:
    0 0 22px rgba(113, 206, 255, 0.42),
    0 0 38px rgba(112, 146, 255, 0.24),
    inset 0 0 0 1px rgba(173, 230, 255, 0.75);
  transform: translateY(-1px);
}

.slot-cell.spinning {
  animation: slotPulse 0.35s ease-in-out infinite alternate;
}

@keyframes slotPulse {
  from { transform: translateY(0); opacity: 0.9; }
  to { transform: translateY(-2px); opacity: 1; }
}

@keyframes slotPaylineDraw {
  0% {
    opacity: 0;
    stroke-dashoffset: var(--dash-length, 1);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes slotPaylinePulse {
  from {
    stroke-width: 7;
    filter: drop-shadow(0 0 8px rgba(123, 201, 255, 0.58));
  }
  to {
    stroke-width: 8;
    filter: drop-shadow(0 0 14px rgba(123, 201, 255, 0.88));
  }
}

@keyframes slotPaylineValueBlink {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.84);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes slotScatterPotentialPulse {
  from {
    transform: translateY(0);
    filter: saturate(1);
  }
  to {
    transform: translateY(-1px);
    filter: saturate(1.18);
  }
}

@keyframes slotHorusExpandImagePan {
  0% {
    object-position: 50% 0%;
    transform: scale(1.045);
    filter: saturate(1.2) brightness(1.05) drop-shadow(0 0 12px rgba(140, 210, 255, 0.42));
  }
  100% {
    object-position: 50% 100%;
    transform: scale(1.01);
    filter: saturate(1.08) brightness(1) drop-shadow(0 0 10px rgba(140, 210, 255, 0.28));
  }
}

.slots-side {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.slots-side h3 {
  font-size: 1.22rem;
}

.slots-linewin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 21, 40, 0.8);
  padding: 0.4rem 0.55rem;
}

.slots-linewin-row.is-active {
  border-color: rgba(120, 204, 255, 0.84);
  box-shadow: 0 0 16px rgba(92, 170, 255, 0.3);
  background: rgba(18, 36, 66, 0.92);
}

.slots-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.slots-info-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 10, 20, 0.65);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.slots-info-modal[hidden] {
  display: none !important;
}

.slots-info-dialog {
  width: min(520px, 96vw);
  display: grid;
  gap: 0.75rem;
  position: relative;
}

.slots-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.slots-info-head .slots-close-btn {
  margin-left: auto;
}

[data-slots-game].is-fullscreen {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(74, 166, 255, 0.22), transparent 40%),
    linear-gradient(165deg, rgba(5, 12, 23, 0.98), rgba(3, 8, 16, 0.98));
  padding: 0.8rem;
}

[data-slots-game].is-fullscreen .slots-layout {
  grid-template-columns: 1fr;
}

[data-slots-game].is-fullscreen .slots-card {
  min-height: calc(100vh - 1.6rem);
}

.game-config-row {
  align-items: flex-end;
}

.game-config-row .field {
  min-width: 110px;
}

.slot-symbol-preview-field {
  flex: 0 1 120px;
}

.slot-symbol-preview {
  height: 72px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 17, 31, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slot-symbol-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slot-symbol-preview span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .live-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

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

  .forum-top-grid,
  .forum-category-grid {
    grid-template-columns: 1fr;
  }

  .dodge-layout {
    grid-template-columns: 1fr;
  }

  .slots-layout {
    grid-template-columns: 1fr;
  }

  .db-status-grid {
    grid-template-columns: 1fr;
  }

  .inline-editor-modal {
    pointer-events: auto;
  }

  .inline-editor-shell {
    position: absolute;
    inset: 8px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: rgba(6, 13, 25, 0.96);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    pointer-events: auto;
    gap: 0;
  }

  .inline-editor-backdrop {
    position: absolute;
    inset: 0;
    display: block;
    background: rgba(2, 7, 15, 0.76);
    backdrop-filter: blur(5px);
  }

  .inline-editor-topbar,
  .inline-editor-body {
    width: 100%;
    margin-inline: 0;
  }

  .inline-editor-body {
    grid-template-columns: 1fr;
    justify-content: stretch;
    pointer-events: auto;
    padding: 0.7rem;
  }

  .inline-editor-left,
  .inline-editor-right {
    max-height: none;
  }
}

@media (max-width: 960px) {
  .container {
    width: min(100%, 94vw);
  }

  .topbar-inner {
    min-height: 72px;
    gap: 0.55rem;
    padding-block: 0.45rem;
  }

  .brand-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .brand-link img {
    width: 24px;
    height: 24px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    padding: 9px 7px;
  }

  .page-shell {
    min-height: auto;
    padding-block: 1rem 1.7rem;
  }

  .page-header {
    margin-bottom: 0.8rem;
  }

  .page-subtitle {
    max-width: 100%;
    font-size: 0.98rem;
  }

  .section-block {
    margin-top: 0.82rem;
  }

  .card {
    padding: 0.88rem;
    border-radius: 16px;
  }

  .row {
    align-items: flex-start;
    gap: 0.58rem;
  }

  .row > div {
    min-width: 0;
  }

  .form-grid {
    gap: 0.62rem;
  }

  .field textarea {
    min-height: 110px;
  }

  .admin-layout > .card {
    min-height: auto;
  }

  .admin-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 0.42rem;
  }

  .admin-nav .admin-tab-btn {
    min-height: 36px;
    max-height: none;
    padding: 0.38rem 0.55rem;
    line-height: 1.25;
    font-size: 0.92rem;
  }

  .db-status-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 4vw;
    right: 4vw;
    max-width: none;
    overflow: visible;
    display: grid;
    gap: 0.25rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(7, 14, 27, 0.97);
    padding: 0.5rem;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a,
  .main-nav .nav-parent {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-group {
    display: grid;
    gap: 0.2rem;
  }

  .nav-group-menu {
    position: static;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0.2rem 0.55rem;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-group.is-open > .nav-group-menu {
    display: grid;
  }

  .nav-group:hover > .nav-group-menu,
  .nav-group:focus-within > .nav-group-menu {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-group-menu .nav-sub-link {
    padding-left: 0.75rem;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100%, 95vw);
  }

  .page-title {
    font-size: clamp(1.65rem, 9vw, 2.2rem);
  }

  .section-title {
    font-size: clamp(1.15rem, 6vw, 1.45rem);
  }

  .hero-copy h1 {
    line-height: 1;
  }

  .hero-banner {
    min-height: 220px;
  }

  .hero-actions .btn,
  .accordion-actions .btn,
  .login-wrap .btn,
  .form-grid .btn {
    width: 100%;
  }

  .row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-calendar-list-main {
    flex-direction: column;
  }

  .admin-calendar-list-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .calendar-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.1rem;
  }

  .calendar-head,
  .calendar-grid {
    min-width: 560px;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(68px, 1fr));
  }

  .calendar-cell.header {
    display: grid;
    min-height: auto;
  }

  .calendar-cell {
    min-height: 62px;
  }

  .inline-editor-shell {
    inset: 0;
    border-radius: 0;
  }

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

  .dodge-hud {
    grid-template-columns: 1fr;
  }

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

  .slots-toolbar-actions {
    justify-content: flex-start;
  }

  .slots-stage {
    padding: 0.62rem 1.8rem;
  }

  .slots-line-markers {
    width: 1.2rem;
  }

  .slots-line-marker {
    width: 1.2rem;
    min-height: 0.95rem;
    font-size: 0.63rem;
  }

  .slots-hud {
    grid-template-columns: 1fr;
  }

  .slots-feature-banner {
    grid-template-columns: 1fr;
  }

  .slots-info-dialog {
    width: min(96vw, 96vw);
  }

  .dodge-settings-grid,
  .dodge-bind-grid {
    grid-template-columns: 1fr;
  }

  .inline-editor-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-editor-type-grid,
  .inline-editor-grid,
  .inline-editor-tools {
    grid-template-columns: 1fr;
  }

  .calendar-day-dialog {
    width: min(96vw, 96vw);
    max-height: 86vh;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .topbar-inner {
    min-height: 68px;
  }

  .main-nav {
    left: 2vw;
    right: 2vw;
  }

  .main-nav,
  .main-nav.open {
    border-radius: 10px;
  }

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

  .admin-nav .admin-tab-btn {
    font-size: 0.9rem;
  }

  .hero-banner {
    min-height: 200px;
  }

  .calendar-head,
  .calendar-grid {
    min-width: 520px;
  }
}
