:root {
  --theme-name: "game";
  --page-bg: #030817;
  --paper: rgba(8, 18, 34, 0.88);
  --ink: #eef9ff;
  --muted: #9bb4c8;
  --rule: rgba(83, 215, 255, 0.42);
  --rule-dark: #1d9ad4;
  --header: #020611;
  --header-soft: rgba(11, 28, 50, 0.92);
  --panel-head: rgba(19, 54, 91, 0.92);
  --panel-soft: rgba(10, 25, 45, 0.88);
  --focus: #53d7ff;
  --legal-bg: rgba(22, 107, 74, 0.45);
  --legal-border: #42e49b;
  --illegal-bg: rgba(110, 21, 49, 0.42);
  --illegal-border: #ff5d8d;
  --game-cyan: #53d7ff;
  --game-blue: #2d7dff;
  --game-violet: #8a6dff;
  --game-pink: #ff5dba;
  --game-green: #42e49b;
  --theme-glow: 0 0 28px rgba(83, 215, 255, 0.34), 0 0 64px rgba(138, 109, 255, 0.18);
  --theme-glow-soft: 0 0 18px rgba(83, 215, 255, 0.2);
  --panel-gradient: linear-gradient(145deg, rgba(13, 32, 58, 0.86), rgba(9, 14, 35, 0.92));
  --card-frame: #050914;
  --card-hover-glow: 0 0 18px rgba(83, 215, 255, 0.46), 0 0 32px rgba(138, 109, 255, 0.24);
  --button-gradient: linear-gradient(135deg, #0dbff2, #2d7dff 46%, #8a6dff);
}

html:has(body.theme-game) {
  color-scheme: dark;
}

body.theme-game {
  background:
    radial-gradient(circle at 16% 8%, rgba(45, 125, 255, 0.35), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(138, 109, 255, 0.28), transparent 30%),
    radial-gradient(circle at 45% 95%, rgba(0, 230, 209, 0.16), transparent 38%),
    radial-gradient(circle at 92% 82%, rgba(255, 93, 186, 0.14), transparent 28%),
    linear-gradient(135deg, #020611 0%, #071426 42%, #0b0e27 72%, #160a28 100%);
  background-attachment: fixed;
}

body.theme-game::before {
  background:
    linear-gradient(90deg, rgba(83, 215, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(83, 215, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(138, 109, 255, 0.045) 49% 51%, transparent 52% 100%);
  background-size: 42px 42px, 42px 42px, 84px 84px;
  content: "";
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.theme-game .site-header {
  background:
    linear-gradient(90deg, rgba(3, 8, 19, 0.94), rgba(7, 29, 58, 0.9) 48%, rgba(21, 13, 49, 0.94)),
    radial-gradient(circle at 78% 0%, rgba(83, 215, 255, 0.22), transparent 30%);
  border-bottom-color: var(--game-cyan);
  box-shadow: 0 0 0 1px rgba(83, 215, 255, 0.22), 0 0 34px rgba(0, 190, 255, 0.32);
}

.theme-game .site-footer {
  color: #a5c4d8;
}

.theme-game .brand-title {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(83, 215, 255, 0.56), 0 0 26px rgba(138, 109, 255, 0.2);
}

.theme-game .brand-kicker,
.theme-game .theme-switcher span {
  color: #8bdcf5;
}

.theme-game .db-nav,
.theme-game .db-nav a,
.theme-game .db-nav button,
.theme-game .theme-switcher a {
  border-color: rgba(83, 215, 255, 0.34);
}

.theme-game .db-nav a,
.theme-game .db-nav button,
.theme-game .theme-switcher a {
  background: linear-gradient(180deg, rgba(12, 31, 57, 0.92), rgba(4, 11, 24, 0.96));
  color: #eaf6ff;
}

.theme-game .db-nav a:hover,
.theme-game .db-nav a[aria-current="page"],
.theme-game .db-nav button:hover,
.theme-game .theme-switcher a:hover,
.theme-game .theme-switcher a[aria-current="true"] {
  background: var(--button-gradient);
  border-color: #8ce7ff;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 18px rgba(83, 215, 255, 0.42);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.theme-game .db-panel,
.theme-game .deck-gallery-panel,
.theme-game .card-image-card,
.theme-game .deck-gallery-card,
.theme-game .my-deck-card,
.theme-game .archive-table-row,
.theme-game .deck-builder-search,
.theme-game .builder-detail-search,
.theme-game .builder-quick-filter-panel,
.theme-game .deck-builder-legality,
.theme-game .deck-gallery-info {
  background:
    linear-gradient(145deg, rgba(10, 26, 48, 0.86), rgba(8, 13, 32, 0.92)),
    radial-gradient(circle at 0% 0%, rgba(83, 215, 255, 0.12), transparent 36%);
  backdrop-filter: blur(12px);
  border-color: rgba(83, 215, 255, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 0 0 1px rgba(83, 215, 255, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(45, 125, 255, 0.12);
  color: #eef9ff;
}

.theme-game .db-panel-head,
.theme-game .db-subhead,
.theme-game .deck-gallery-panel-head,
.theme-game .compact-list-title {
  background:
    linear-gradient(90deg, rgba(17, 65, 105, 0.98), rgba(25, 42, 99, 0.98) 58%, rgba(72, 35, 113, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent);
  border-color: rgba(83, 215, 255, 0.38);
  color: #f3fbff;
  text-shadow: 0 0 12px rgba(83, 215, 255, 0.24);
}

.theme-game .section-title,
.theme-game .field-label,
.theme-game .compact-list-title,
.theme-game .deck-gallery-panel-head h2 {
  color: #dff7ff;
}

.theme-game .section-note,
.theme-game .meta-label,
.theme-game .mobile-meta,
.theme-game .deck-source-note,
.theme-game .form-action-note,
.theme-game .status-reason-compact,
.theme-game .deck-colors {
  color: #9eb6c9;
}

.theme-game .db-input,
.theme-game .db-select,
.theme-game .db-textarea,
.theme-game .auth-panel input {
  background: rgba(3, 10, 22, 0.88);
  border-color: rgba(83, 215, 255, 0.38);
  color: #f3fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.theme-game .db-input::placeholder,
.theme-game .db-textarea::placeholder {
  color: #748da3;
}

.theme-game .db-input:focus,
.theme-game .db-select:focus,
.theme-game .db-textarea:focus {
  border-color: #7be7ff;
  box-shadow: 0 0 0 2px rgba(83, 215, 255, 0.22), 0 0 22px rgba(83, 215, 255, 0.18);
}

.theme-game .quick-tabs,
.theme-game .active-filter-chip {
  background: rgba(6, 16, 32, 0.72);
  border-color: rgba(83, 215, 255, 0.28);
}

.theme-game .db-button-primary,
.theme-game .quick-tab-active,
.theme-game .segmented-button-active,
.theme-game .builder-quick-filter.is-active,
.theme-game .pagination-current {
  background: var(--button-gradient);
  border-color: #8ce7ff;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(83, 215, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.42);
}

.theme-game .db-button-secondary,
.theme-game .quick-tab,
.theme-game .segmented-button,
.theme-game .builder-quick-filter,
.theme-game .pagination-link,
.theme-game .builder-menu-link,
.theme-game .builder-mini-button {
  background: linear-gradient(180deg, rgba(12, 34, 62, 0.94), rgba(5, 14, 29, 0.96));
  border-color: rgba(83, 215, 255, 0.42);
  color: #eaf6ff;
}

.theme-game .db-button-secondary:hover,
.theme-game .quick-tab:hover,
.theme-game .segmented-button:hover,
.theme-game .builder-quick-filter:hover,
.theme-game .pagination-link:hover,
.theme-game .builder-menu-link:hover,
.theme-game .builder-mini-button:hover {
  background: linear-gradient(135deg, rgba(20, 191, 255, 0.95), rgba(120, 92, 255, 0.95));
  border-color: #9eeaff;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(83, 215, 255, 0.38);
}

.theme-game .status-legal,
.theme-game .status-badge.status-legal {
  background: rgba(31, 192, 126, 0.28);
  border-color: #42e49b;
  color: #d8fff0;
}

.theme-game .status-warning,
.theme-game .deck-builder-warning {
  background: rgba(206, 155, 37, 0.24);
  border-color: #ffd45a;
  color: #fff3c7;
}

.theme-game .status-illegal,
.theme-game .status-banned {
  background: rgba(255, 93, 141, 0.22);
  border-color: #ff5d8d;
  color: #ffe7ef;
}

.theme-game .card-image-grid,
.theme-game .deck-builder-results,
.theme-game .deck-builder-grid,
.theme-game .deck-grid-body {
  background:
    linear-gradient(90deg, rgba(83, 215, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(83, 215, 255, 0.03) 1px, transparent 1px),
    rgba(4, 11, 25, 0.46);
  background-size: 28px 28px, 28px 28px, auto;
}

.theme-game .card-image-link,
.theme-game .deck-card-art-link,
.theme-game .builder-card-art,
.theme-game .builder-deck-art,
.theme-game .deck-gallery-mini-card,
.theme-game .deck-hero-card-art,
.theme-game .deck-hero-card {
  border-color: var(--card-frame);
  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(83, 215, 255, 0.24),
    0 0 18px rgba(83, 215, 255, 0.12);
}

.theme-game .card-image-link:hover,
.theme-game .deck-card-art-link:hover,
.theme-game .builder-card-art:hover,
.theme-game .builder-deck-art:hover,
.theme-game .deck-gallery-mini-card:hover {
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(136, 234, 255, 0.68),
    var(--card-hover-glow);
}

.theme-game .card-image-link .card-thumb-placeholder,
.theme-game .deck-card-placeholder {
  background:
    radial-gradient(circle at 50% 32%, rgba(83, 215, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #091429, #102f56);
  color: #bdefff;
}

.theme-game .deck-gallery-card {
  background:
    linear-gradient(180deg, rgba(9, 20, 41, 0.32), rgba(3, 7, 18, 0.96)),
    #050914;
  border-color: rgba(83, 215, 255, 0.42);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48), var(--theme-glow-soft);
}

.theme-game .deck-gallery-card::after {
  background: linear-gradient(90deg, #53d7ff, #2d7dff, #8a6dff, #ff5dba);
  height: 4px;
  box-shadow: 0 0 16px rgba(83, 215, 255, 0.4);
}

.theme-game .deck-gallery-card-art::before {
  background-image:
    linear-gradient(180deg, rgba(3, 8, 20, 0.28), rgba(2, 5, 14, 0.94)),
    radial-gradient(circle at 80% 14%, rgba(83, 215, 255, 0.18), transparent 30%),
    var(--deck-list-bg);
  opacity: 0.82;
}

.theme-game .deck-gallery-card-title .card-link,
.theme-game .deck-gallery-card-title,
.theme-game .deck-card-edit-link {
  color: #ffffff;
}

.theme-game .deck-gallery-card-meta span,
.theme-game .deck-summary-strip span,
.theme-game .deck-details-summary span,
.theme-game .deck-hero-meta-gallery span {
  background: rgba(83, 215, 255, 0.11);
  border-color: rgba(83, 215, 255, 0.34);
  color: #ddf8ff;
}

.theme-game .deck-hero,
.theme-game .deck-hero-gallery {
  background:
    radial-gradient(circle at 70% 32%, rgba(83, 215, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #020611, #09203c 48%, #160c31);
  border-color: rgba(83, 215, 255, 0.48);
  box-shadow:
    inset 0 0 0 1px rgba(83, 215, 255, 0.14),
    inset 0 0 48px rgba(83, 215, 255, 0.06),
    0 22px 50px rgba(0, 0, 0, 0.48),
    var(--theme-glow-soft);
}

.theme-game .deck-hero-gallery::after {
  background:
    linear-gradient(90deg, rgba(2, 6, 17, 0.94) 0%, rgba(7, 19, 43, 0.78) 42%, rgba(20, 11, 45, 0.68) 100%),
    radial-gradient(circle at 78% 16%, rgba(83, 215, 255, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(45, 125, 255, 0.2), rgba(138, 109, 255, 0.16));
}

.theme-game .deck-hero h1,
.theme-game .deck-gallery-card-title {
  text-shadow: 0 0 16px rgba(83, 215, 255, 0.34), 0 2px 0 rgba(0, 0, 0, 0.8);
}

.theme-game .deck-mana-curve {
  background: rgba(3, 10, 22, 0.78);
  border-color: rgba(83, 215, 255, 0.42);
  box-shadow: inset 0 0 18px rgba(83, 215, 255, 0.08), 0 0 20px rgba(83, 215, 255, 0.14);
}

.theme-game .deck-curve-bar {
  background: linear-gradient(180deg, #a9f4ff, #2d7dff 54%, #8a6dff);
  box-shadow: 0 0 10px rgba(83, 215, 255, 0.46);
}

.theme-game .deck-gallery-panel {
  background: linear-gradient(145deg, rgba(8, 22, 42, 0.86), rgba(5, 9, 24, 0.92));
  border-color: rgba(83, 215, 255, 0.52);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.44), 0 0 28px rgba(83, 215, 255, 0.12);
}

.theme-game .deck-inline-type-label {
  color: #98dff4;
}

.theme-game .deck-quantity-badge {
  background: linear-gradient(180deg, #12294e, #020611);
  border-color: #9aefff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 12px rgba(83, 215, 255, 0.5);
}

.theme-game .builder-card-menu {
  background: rgba(4, 13, 29, 0.98);
  border-color: rgba(83, 215, 255, 0.6);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52), 0 0 28px rgba(83, 215, 255, 0.18);
}

.theme-game .source-text-block,
.theme-game .deck-source-example {
  background: rgba(3, 10, 22, 0.94);
  border-color: rgba(83, 215, 255, 0.28);
  color: #eaf6ff;
}

.theme-game .quick-filter-button-color,
.theme-game .builder-quick-filter-color {
  background: transparent;
  border-color: transparent;
}

.theme-game .quick-filter-button-color:hover,
.theme-game .quick-filter-button-color.quick-filter-button-active,
.theme-game .builder-quick-filter-color:hover,
.theme-game .builder-quick-filter-color.is-active {
  background: transparent;
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(83, 215, 255, 0.82), 0 0 18px rgba(83, 215, 255, 0.38);
}

.theme-game .quick-filter-button-type,
.theme-game .builder-quick-filter-type {
  background: linear-gradient(180deg, rgba(12, 34, 62, 0.94), rgba(5, 14, 29, 0.96));
  border-color: rgba(83, 215, 255, 0.42);
  color: #dff7ff;
}

.theme-game .quick-filter-button-type:hover,
.theme-game .quick-filter-button-type.quick-filter-button-active,
.theme-game .builder-quick-filter-type:hover,
.theme-game .builder-quick-filter-type.is-active {
  background: linear-gradient(135deg, rgba(20, 191, 255, 0.95), rgba(120, 92, 255, 0.95));
  border-color: #9eeaff;
  color: #fff;
}

.theme-game .mana-pip {
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.58),
    inset 0 -2px 3px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(83, 215, 255, 0.26),
    0 0 11px rgba(83, 215, 255, 0.2);
}

.theme-game .type-filter-icon {
  filter: drop-shadow(0 0 5px rgba(83, 215, 255, 0.35));
}

/* Premium pass: cohesive modern deck-editor HUD. */
:root {
  --theme-bg: #020611;
  --theme-bg-layer:
    radial-gradient(circle at 14% 7%, rgba(45, 125, 255, 0.38), transparent 26%),
    radial-gradient(circle at 76% 10%, rgba(83, 215, 255, 0.22), transparent 27%),
    radial-gradient(circle at 92% 74%, rgba(138, 109, 255, 0.26), transparent 31%),
    radial-gradient(circle at 18% 92%, rgba(0, 230, 209, 0.14), transparent 35%);
  --theme-surface: rgba(7, 18, 36, 0.86);
  --theme-surface-strong: rgba(9, 27, 55, 0.92);
  --theme-surface-soft: rgba(10, 25, 45, 0.88);
  --theme-border: rgba(96, 221, 255, 0.5);
  --theme-border-strong: rgba(142, 238, 255, 0.86);
  --theme-accent: #53d7ff;
  --theme-accent-2: #2d7dff;
  --theme-accent-3: #8a6dff;
  --theme-text: #eef9ff;
  --theme-muted: #9bb4c8;
  --theme-glow: 0 0 18px rgba(83, 215, 255, 0.35), 0 0 38px rgba(138, 109, 255, 0.2);
  --theme-glow-soft: 0 0 14px rgba(83, 215, 255, 0.22);
  --theme-card-frame: #02050d;
  --theme-card-shadow: 0 7px 16px rgba(0, 0, 0, 0.48), 0 0 18px rgba(83, 215, 255, 0.12);
  --theme-button-bg: linear-gradient(135deg, rgba(8, 42, 78, 0.92), rgba(6, 17, 39, 0.96));
  --theme-button-border: rgba(83, 215, 255, 0.46);
  --theme-button-hover: linear-gradient(135deg, rgba(19, 187, 255, 0.94), rgba(45, 125, 255, 0.9) 52%, rgba(138, 109, 255, 0.86));
  --theme-warning-bg: rgba(56, 37, 8, 0.78);
  --theme-success-bg: rgba(9, 68, 55, 0.72);
  --theme-danger-bg: rgba(84, 17, 48, 0.72);
  --theme-input-bg: rgba(5, 15, 33, 0.96);
  --theme-input-border: rgba(83, 215, 255, 0.38);
  --game-premium-glass:
    linear-gradient(145deg, rgba(12, 35, 68, 0.78), rgba(5, 10, 28, 0.9)),
    radial-gradient(circle at 20% 0%, rgba(83, 215, 255, 0.12), transparent 34%),
    radial-gradient(circle at 92% 100%, rgba(138, 109, 255, 0.12), transparent 34%);
}

body.theme-game {
  background:
    var(--theme-bg-layer),
    linear-gradient(135deg, #01040d 0%, #061426 38%, #090d2c 70%, #16091f 100%);
}

body.theme-game::after {
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(83, 215, 255, 0.055) 50%, transparent 51% 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 50% 0%, rgba(83, 215, 255, 0.09), transparent 45%);
  background-size: 96px 96px, 100% 5px, 100% 100%;
  content: "";
  inset: 0;
  opacity: 0.66;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.theme-game .site-header {
  backdrop-filter: blur(14px);
  background:
    linear-gradient(90deg, rgba(3, 8, 19, 0.92), rgba(8, 32, 64, 0.82) 48%, rgba(26, 13, 58, 0.9)),
    radial-gradient(circle at 30% 0%, rgba(83, 215, 255, 0.22), transparent 36%);
  border-bottom: 1px solid var(--theme-border);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(83, 215, 255, 0.12),
    0 0 42px rgba(0, 190, 255, 0.3);
}

.theme-game .db-nav a,
.theme-game .db-nav button,
.theme-game .theme-switcher a {
  background: linear-gradient(180deg, rgba(12, 42, 76, 0.72), rgba(3, 9, 24, 0.88));
  border-color: rgba(83, 215, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.theme-game .db-nav a:hover,
.theme-game .db-nav a[aria-current="page"],
.theme-game .db-nav button:hover,
.theme-game .theme-switcher a:hover,
.theme-game .theme-switcher a[aria-current="true"] {
  background: var(--theme-button-hover);
  border-color: var(--theme-border-strong);
  color: #ffffff;
  box-shadow: var(--theme-glow);
}

.theme-game .db-panel,
.theme-game .card-search-panel,
.theme-game .quick-filter-panel,
.theme-game .detail-panel,
.theme-game .deck-gallery-panel,
.theme-game .deck-detail-actions-panel,
.theme-game .deck-builder-search,
.theme-game .builder-quick-filter-panel,
.theme-game .builder-detail-search,
.theme-game .deck-builder-legality,
.theme-game .deck-builder-import-panel,
.theme-game .deck-description-panel,
.theme-game .deck-builder-section,
.theme-game .archive-table-row,
.theme-game .my-deck-card {
  backdrop-filter: blur(12px);
  background: var(--game-premium-glass);
  border-color: rgba(83, 215, 255, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 28px rgba(83, 215, 255, 0.04),
    0 18px 46px rgba(0, 0, 0, 0.38),
    0 0 30px rgba(83, 215, 255, 0.09);
}

.theme-game .db-panel-head,
.theme-game .deck-gallery-panel-head,
.theme-game .detail-summary,
.theme-game .builder-detail-search .detail-summary,
.theme-game .db-subhead {
  background:
    linear-gradient(90deg, rgba(14, 55, 96, 0.9), rgba(10, 20, 48, 0.95)),
    radial-gradient(circle at 18% 0%, rgba(83, 215, 255, 0.2), transparent 40%);
  border-color: rgba(83, 215, 255, 0.36);
  color: #effbff;
  text-shadow: 0 0 12px rgba(83, 215, 255, 0.34);
}

.theme-game .db-input,
.theme-game .db-select,
.theme-game select.db-input,
.theme-game textarea.db-input,
.theme-game .deck-copy-fallback,
.theme-game .pagination-page-input {
  background: linear-gradient(180deg, rgba(5, 15, 33, 0.96), rgba(9, 27, 55, 0.92));
  border-color: var(--theme-input-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 16px rgba(83, 215, 255, 0.06);
  color: var(--theme-text);
}

.theme-game .db-input:focus,
.theme-game .db-select:focus,
.theme-game textarea.db-input:focus {
  border-color: var(--theme-border-strong);
  box-shadow: 0 0 0 2px rgba(83, 215, 255, 0.24), inset 0 0 16px rgba(83, 215, 255, 0.08);
}

.theme-game .quick-tabs,
.theme-game .active-filter-bar {
  background:
    linear-gradient(90deg, rgba(9, 38, 74, 0.9), rgba(8, 14, 38, 0.9)),
    radial-gradient(circle at 85% 0%, rgba(138, 109, 255, 0.14), transparent 36%);
  border-color: rgba(83, 215, 255, 0.3);
}

.theme-game .quick-tab,
.theme-game .segmented-button,
.theme-game .view-toggle-link,
.theme-game .pagination-link,
.theme-game .pagination-current,
.theme-game .db-button,
.theme-game .db-button-secondary,
.theme-game .active-filter-chip,
.theme-game .active-filter-reset,
.theme-game .deck-builder-search-actions .db-button {
  background: var(--theme-button-bg);
  border-color: var(--theme-button-border);
  color: #dff7ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(83, 215, 255, 0.05);
}

.theme-game .quick-tab:hover,
.theme-game .quick-tab-active,
.theme-game .segmented-button:hover,
.theme-game .segmented-button-active,
.theme-game .view-toggle-link:hover,
.theme-game .view-toggle-link[aria-current="true"],
.theme-game .pagination-current,
.theme-game .db-button:hover,
.theme-game .db-button-secondary:hover,
.theme-game .active-filter-reset:hover {
  background: var(--theme-button-hover);
  border-color: var(--theme-border-strong);
  color: #ffffff;
  box-shadow: var(--theme-glow);
}

.theme-game .quick-filter-panel,
.theme-game .builder-quick-filter-panel {
  background:
    linear-gradient(145deg, rgba(5, 14, 32, 0.86), rgba(10, 28, 55, 0.74)),
    radial-gradient(circle at 24% 0%, rgba(83, 215, 255, 0.11), transparent 38%);
}

.theme-game .quick-filter-button-color .mana-pip,
.theme-game .builder-quick-filter-color .mana-pip {
  border-color: rgba(160, 240, 255, 0.54);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.55),
    inset 0 -3px 5px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(83, 215, 255, 0.3),
    0 0 12px rgba(83, 215, 255, 0.22);
}

.theme-game .quick-filter-button-color:hover .mana-pip,
.theme-game .quick-filter-button-color.quick-filter-button-active .mana-pip,
.theme-game .builder-quick-filter-color:hover .mana-pip,
.theme-game .builder-quick-filter-color.is-active .mana-pip {
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.62),
    inset 0 -3px 5px rgba(0, 0, 0, 0.36),
    0 0 0 2px rgba(190, 250, 255, 0.9),
    0 0 18px rgba(83, 215, 255, 0.54),
    0 0 28px rgba(138, 109, 255, 0.28);
}

.theme-game .quick-filter-button-type,
.theme-game .builder-quick-filter-type {
  background: linear-gradient(180deg, rgba(11, 38, 68, 0.88), rgba(5, 13, 31, 0.96));
  border-color: rgba(83, 215, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 16px rgba(83, 215, 255, 0.04);
}

.theme-game .quick-filter-button-type:hover,
.theme-game .quick-filter-button-type.quick-filter-button-active,
.theme-game .builder-quick-filter-type:hover,
.theme-game .builder-quick-filter-type.is-active {
  background: var(--theme-button-hover);
  border-color: var(--theme-border-strong);
  box-shadow: var(--theme-glow);
}

.theme-game .card-image-link,
.theme-game .deck-card-art-link,
.theme-game .builder-card-art,
.theme-game .builder-deck-art,
.theme-game .deck-gallery-mini-card,
.theme-game .deck-hero-card {
  border-color: var(--theme-card-frame);
  box-shadow: var(--theme-card-shadow);
}

.theme-game .card-image-card:hover .card-image-link,
.theme-game .deck-image-card-gallery:hover .deck-card-art-link,
.theme-game .builder-card-result:hover .builder-card-art,
.theme-game .builder-deck-card:hover .builder-deck-art,
.theme-game .deck-gallery-mini-card:hover {
  box-shadow:
    0 0 0 1px rgba(160, 240, 255, 0.7),
    0 0 20px rgba(83, 215, 255, 0.46),
    0 0 34px rgba(138, 109, 255, 0.28),
    0 10px 22px rgba(0, 0, 0, 0.56);
}

.theme-game .card-image-grid,
.theme-game .deck-grid-body,
.theme-game .deck-builder-grid,
.theme-game .deck-builder-results {
  background:
    radial-gradient(circle at 16% 10%, rgba(83, 215, 255, 0.1), transparent 24%),
    radial-gradient(circle at 90% 86%, rgba(138, 109, 255, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(4, 12, 29, 0.9), rgba(8, 24, 48, 0.74)),
    linear-gradient(90deg, rgba(83, 215, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(83, 215, 255, 0.028) 1px, transparent 1px);
  background-size: auto, auto, auto, 30px 30px, 30px 30px;
  box-shadow:
    inset 0 0 0 1px rgba(83, 215, 255, 0.12),
    inset 0 0 44px rgba(83, 215, 255, 0.05);
}

.theme-game .deck-hero-gallery,
.theme-game .deck-gallery-card {
  background:
    radial-gradient(circle at 78% 10%, rgba(83, 215, 255, 0.2), transparent 34%),
    radial-gradient(circle at 8% 100%, rgba(138, 109, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(4, 12, 29, 0.94), rgba(9, 30, 60, 0.86));
  border-color: rgba(83, 215, 255, 0.52);
}

.theme-game .deck-mana-curve {
  background: linear-gradient(180deg, rgba(7, 23, 47, 0.92), rgba(3, 8, 21, 0.95));
  border-color: rgba(83, 215, 255, 0.45);
}

.theme-game .deck-curve-bar {
  background: linear-gradient(180deg, #ccfbff, #41d6ff 45%, #2d7dff 72%, #8a6dff);
  box-shadow:
    0 0 10px rgba(83, 215, 255, 0.62),
    0 0 18px rgba(138, 109, 255, 0.24);
}

.theme-game .deck-quantity-badge {
  background: linear-gradient(180deg, #153a6b, #020611);
  border-color: rgba(190, 250, 255, 0.94);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 0 12px rgba(83, 215, 255, 0.62);
}

.theme-game .builder-card-menu {
  background: linear-gradient(145deg, rgba(7, 21, 46, 0.98), rgba(3, 8, 24, 0.98));
  border-color: rgba(83, 215, 255, 0.68);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.56),
    0 0 32px rgba(83, 215, 255, 0.24);
}

.theme-game .builder-menu-link,
.theme-game .builder-mini-button {
  background: linear-gradient(180deg, rgba(13, 51, 90, 0.94), rgba(5, 15, 35, 0.98));
  border-color: rgba(83, 215, 255, 0.42);
  color: #e8fbff;
}

.theme-game .builder-menu-link:hover,
.theme-game .builder-mini-button:hover {
  background: var(--theme-button-hover);
  border-color: var(--theme-border-strong);
  color: #ffffff;
}

.theme-game .deck-gallery-alert,
.theme-game .deck-builder-warning,
.theme-game .form-errors,
.theme-game .errorlist,
.theme-game .messages,
.theme-game .message {
  background:
    linear-gradient(145deg, rgba(56, 37, 8, 0.78), rgba(78, 26, 56, 0.62)),
    radial-gradient(circle at 10% 0%, rgba(255, 202, 83, 0.18), transparent 30%);
  border-color: rgba(255, 203, 93, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 26px rgba(255, 203, 93, 0.08);
  color: #fff4d6;
}

.theme-game .deck-copy-feedback {
  color: #8ff5ff;
  text-shadow: 0 0 10px rgba(83, 215, 255, 0.35);
}

@media (max-width: 700px) {
  .theme-game .db-panel,
  .theme-game .deck-gallery-panel,
  .theme-game .deck-builder-search,
  .theme-game .deck-builder-section {
    backdrop-filter: none;
  }
}
