/*
Theme Name: MTG Rocks
Theme URI: https://mtgrocks.com
Author: Gfinity / MTG Rocks
Author URI: https://mtgrocks.com
Description: Standalone MTG Rocks editorial and deckbuilder-hub WordPress theme featuring light & dark fantasy modes, interactive hero slider, live spoilers marquee, tournament deck cards, relic sidebar widgets, Mediavine-ready ad zones, and a high-readability article layout.
Version: 3.0.10
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mtgrocks
Tags: dark, light, news, magazine, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, theme-options
*/

/* ==========================================================================
   ALISTER MOCKUP SPEC (exact tokens from Views 01–04)
   Dark: #0F172A / #2563EB / #8B5CF6 / #EF4444
   Light: #FFFFFF / #F5F6FC / #0F172A / #2B52F6 / #E74444
   ========================================================================== */
:root {
  --mr-bg: #0f172a;
  --mr-surface: rgba(15, 23, 42, 0.92);
  --mr-surface-2: rgba(30, 41, 59, 0.88);
  --mr-text: #f8fafc;
  --mr-muted: #94a3b8;
  --mr-blue: #2563eb;
  --mr-purple: #8b5cf6;
  --mr-red: #ef4444;
  --mr-radius: 18px;
  --mr-shadow: 0 16px 40px rgba(0,0,0,0.35);
  --font-sans: 'Inter', system-ui, 'Segoe UI', sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-display: 'Cinzel', 'Lora', Georgia, serif;
  --mr-gold: #c9a227;
  --mr-gold-soft: rgba(201, 162, 39, 0.55);
}
body.light-mode {
  --mr-bg: #f5f6fc;
  --mr-surface: #ffffff;
  --mr-surface-2: #f5f6fc;
  --mr-text: #0f172a;
  --mr-muted: #64748b;
  --mr-blue: #2b52f6;
  --mr-purple: #8b5cf6;
  --mr-red: #e74444;
  --mr-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}
body {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  background-color: #0b1220;
  color: var(--mr-text);
  /* Dark overlay on top of JPG — higher alpha = dimmer, more readable BG */
  background-image:
    linear-gradient(
      to bottom,
      rgba(2, 6, 23, 0.72) 0%,
      rgba(11, 18, 32, 0.58) 35%,
      rgba(2, 6, 23, 0.82) 100%
    ),
    url('assets/images/mtgrocks-side-characters-wallpaper.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode {
  background-color: #dfe7f5;
  color: var(--mr-text);
  background-image:
    linear-gradient(
      to bottom,
      rgba(241, 245, 249, 0.55) 0%,
      rgba(226, 232, 240, 0.4) 40%,
      rgba(203, 213, 225, 0.5) 100%
    ),
    url('assets/images/mtgrocks-light-fantasy-wallpaper.jpg');
}

/* Square buttons with curved corners (not pills) */
.btn-square,
button.btn-square,
a.btn-square {
  border-radius: 6px !important;
}

/* GLOSSY GLASS HEADER (UNIFIED & MODERN) */
.glossy-glass-header {
  background: linear-gradient(180deg, rgba(22, 28, 48, 0.82) 0%, rgba(12, 16, 29, 0.94) 100%) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 32px -5px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.16) !important;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.glossy-glass-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25) 20%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0.25) 80%, transparent);
  pointer-events: none;
}

/* Surfaces — Alister mockup: soft rounded cards, no neon glow borders */
.glass-panel {
  background: var(--mr-surface);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--mr-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.glass-panel:hover {
  box-shadow: 0 18px 44px rgba(0,0,0,0.4);
}
body.light-mode .glass-panel {
  border-color: rgba(15, 23, 42, 0.06);
}
body.light-mode .glass-panel:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.glass-elevated {
  background: var(--mr-surface-2);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--mr-shadow);
}

.glow-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  background: var(--mr-surface) !important;
  box-shadow: var(--mr-shadow) !important;
}

/* Article sidebar: Google Preferred Source */
.sidebar-preferred-box {
  background: rgba(15, 20, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid #f36b21;
  border-radius: 14px;
  padding: 18px 16px 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
.sidebar-preferred-box__eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f36b21;
  margin-bottom: 8px;
}
.sidebar-preferred-box__title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 6px;
}
.sidebar-preferred-box__text {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 14px;
  line-height: 1.4;
}
.sidebar-preferred-box__btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  background: #1a1820;
  border: 1px solid #494650;
  border-bottom: 2px solid #f36b21;
  border-radius: 8px;
  color: #f5f5f7 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
}
.sidebar-preferred-box__btn:hover {
  background: #2a2732;
  border-color: #f36b21;
  color: #fff !important;
}

/* Article sidebar: related overlay cards */
.related-overlay-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-overlay-card {
  position: relative;
  display: block;
  height: 168px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.related-overlay-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45), 0 0 20px rgba(37,99,235,0.18);
}
.related-overlay-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related-overlay-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.88) 100%);
  pointer-events: none;
}
/* YOU MAY ALSO LIKE — Alister mockup (featured + list) */
.ymal-box {
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(15, 23, 42, 0.92);
  padding: 16px;
}
.ymal-box__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.ymal-box__title {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.ymal-box__rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6 0%, rgba(59, 130, 246, 0.15) 100%);
  border-radius: 2px;
}
.ymal-box__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .ymal-box__grid { grid-template-columns: 1fr; gap: 12px; }
}
.ymal-featured {
  position: relative;
  display: block;
  text-decoration: none !important;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  min-height: 320px;
}
.ymal-featured img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.ymal-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}
.ymal-featured__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px 16px 16px;
}
.ymal-featured__title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 8px;
}
.ymal-featured:hover .ymal-featured__title { color: #93c5fd; }
.ymal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
}
.ymal-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  gap: 0;
}
.ymal-list__item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  flex: 1 1 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  text-decoration: none !important;
  min-height: 0;
}
.ymal-list__item:first-child { padding-top: 0; }
.ymal-list__item:last-child { border-bottom: none; padding-bottom: 0; }
.ymal-list__item:hover .ymal-list__title { color: #60a5fa; }
.ymal-list__thumb {
  width: 128px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.ymal-list__title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 900px) {
  .ymal-featured,
  .ymal-featured img,
  .ymal-list { min-height: 220px; }
  .ymal-list__item { grid-template-columns: 100px minmax(0, 1fr); flex: none; }
  .ymal-list__thumb { width: 100px; height: 72px; }
}

.related-overlay-card__title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.light-mode .sidebar-preferred-box {
  background: #fff;
  border-color: #e2e8f0;
}
body.light-mode .sidebar-preferred-box__title { color: #0f172a; }
body.light-mode .sidebar-preferred-box__text { color: #64748b; }
body.light-mode .sidebar-preferred-box__btn {
  background: #f8fafc;
  color: #0f172a !important;
  border-color: #cbd5e1;
}

/* Sidebar / utility rails — readable glass over Alister bg */
.alister-sidebar {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Header: top row brand + actions, nav row below */
.glossy-glass-header {
  overflow: visible !important;
}
.mtg-header-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: none;
  padding: 10px 16px 0;
  overflow: visible;
}
.mtg-header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  width: 100%;
}
.mtg-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}
.mtg-wordmark {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  line-height: 0;
  filter: drop-shadow(0 2px 14px rgba(59, 130, 246, 0.28));
  transition: filter 0.2s ease, transform 0.2s ease;
}
.mtg-wordmark img {
  display: block;
  height: clamp(36px, 5.2vw, 52px);
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
}
.mtg-wordmark:hover {
  filter: drop-shadow(0 4px 18px rgba(96, 165, 250, 0.45));
  transform: translateY(-1px);
}
body.light-mode .mtg-wordmark {
  filter: drop-shadow(0 2px 10px rgba(37, 99, 235, 0.18));
}
.mtg-header-nav {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 4px;
  width: 100%;
  padding: 4px 0 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  margin-top: 4px;
  overflow: visible;
  position: relative;
  z-index: 60;
}
@media (min-width: 1024px) {
  .mtg-header-nav { display: flex; }
}
.mtg-header-actions {
  justify-self: end;
}
.mtg-header-nav > a,
.mtg-header-nav .nav-item > a {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 6px;
  color: #cbd5e1;
  text-decoration: none;
}
.mtg-header-nav > a:hover,
.mtg-header-nav .nav-item > a:hover {
  color: #fff;
  background: rgba(30, 41, 59, 0.7);
}
.mtg-header-nav .nav-deckbuilder {
  color: #60a5fa !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.mtg-header-nav .nav-deckbuilder:hover {
  color: #93c5fd !important;
  background: rgba(37, 99, 235, 0.15) !important;
}
.mtg-header-nav .nav-item {
  position: relative;
}
.mtg-header-nav .nav-dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% - 2px);
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 80;
}
.mtg-header-nav .nav-item:hover > .nav-dropdown,
.mtg-header-nav .nav-item:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mtg-header-nav .nav-dropdown-inner {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(139, 92, 246, 0.12);
  backdrop-filter: blur(18px);
  padding: 8px;
}
.mtg-header-nav .nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #cbd5e1;
  text-decoration: none;
}
.mtg-header-nav .nav-dropdown a:hover {
  background: rgba(37, 99, 235, 0.18);
  color: #fff;
}
.icon-plain {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 6px !important;
  color: #94a3b8;
}
.icon-plain:hover { color: #fff !important; }
.theme-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #fbbf24;
  cursor: pointer;
}
.theme-icon-btn:hover {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(30, 41, 59, 0.95);
}

/* Main column sits on body wallpaper — no outer frosted “shell” */

/* Live Preferred Source footer strip (centered) */
.mtg-preferred-source-footer {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  backdrop-filter: none;
  color: #fff;
  padding: 8px 24px 0;
  border: none;
  border-radius: 0;
  margin: 0;
}
.mtg-preferred-source-footer__content {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.mtg-preferred-source-footer__divider {
  width: 3px;
  height: 28px;
  background: #777;
  border-radius: 2px;
  flex-shrink: 0;
}
.mtg-preferred-source-footer__brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.mtg-preferred-source-footer__text {
  font-size: 17px;
  white-space: nowrap;
  color: #e5e7eb;
}
.mtg-preferred-source-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: linear-gradient(135deg, #a020a0, #6415d6);
  color: #fff !important;
  border: 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  text-decoration: none;
}
.mtg-preferred-source-footer__button:hover {
  background: linear-gradient(135deg, #861a91, #5010b5);
}
/* Tighten gap between preferred strip and site footer */
.mtg-preferred-source-footer + *,
main + footer,
.snap-dashboard + footer {
  margin-top: 0;
}
footer.mt-16 {
  margin-top: 1.5rem !important;
}
.mtg-preferred-header-button {
  display: none !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  background: #222128;
  border: 1px solid #494650;
  border-bottom: 2px solid #f36b21;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #f5f5f7 !important;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
}
@media (min-width: 640px) {
  .mtg-preferred-header-button { display: inline-flex !important; }
}
.mtg-preferred-header-button:hover {
  background: #302d38;
  border-color: #f36b21;
  color: #fff !important;
}

/* Latest Stories — modern card grid (matches editorial design) */

/* CARD HOVER ACCELERATION */
.card-zoom {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.card-zoom:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

/* Spoilers — Alister mockup surface language */
.prod-spoilers-container {
  background: var(--mr-surface);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--mr-radius);
  box-shadow: var(--mr-shadow);
}
body.light-mode .prod-spoilers-container {
  border-color: rgba(15, 23, 42, 0.06);
}

/* Guides & Strategy + YMAL — same mockup card system */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mr-text);
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
.guide-grid .article-card {
  grid-template-columns: minmax(180px, 34%) minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
}
.guide-grid .article-card__thumb {
  width: 100%;
  height: auto;
  min-height: 100px;
  max-height: 168px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.guide-grid .article-card__media {
  align-self: stretch;
}
@media (min-width: 900px) {
  .guide-grid .article-card {
    grid-template-columns: minmax(240px, 30%) minmax(0, 1fr);
    gap: 24px;
    padding: 20px 22px;
  }
  .guide-grid .article-card__title {
    font-size: 17px;
  }
}
@media (max-width: 639px) {
  .guide-grid .article-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .guide-grid .article-card__thumb {
    width: 96px;
    height: 78px;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }
}
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--mr-surface);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--mr-radius);
  box-shadow: var(--mr-shadow);
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
body.light-mode .guide-card { border-color: rgba(15, 23, 42, 0.06); }
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.guide-card__media {
  position: relative;
  height: 148px;
  overflow: hidden;
}
.guide-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.guide-card:hover .guide-card__media img { transform: scale(1.05); }
.guide-card__body { padding: 14px 14px 16px; }
.guide-card__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--mr-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-card__meta {
  font-size: 12px;
  color: var(--mr-muted);
  font-weight: 500;
}
.ymal-mock {
  background: var(--mr-surface);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--mr-radius);
  box-shadow: var(--mr-shadow);
  padding: 16px;
}
body.light-mode .ymal-mock { border-color: rgba(15, 23, 42, 0.06); }
.ymal-mock__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 900px) {
  .ymal-mock__grid { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
}
.ymal-mock__featured {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  text-decoration: none !important;
  color: #fff !important;
}
.ymal-mock__featured img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ymal-mock__featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(2,6,23,0.88) 100%);
}
.ymal-mock__featured-body {
  position: relative;
  z-index: 1;
  padding: 16px;
}
.ymal-mock__featured-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}
.ymal-mock__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ymal-mock__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148,163,184,0.14);
  text-decoration: none !important;
  color: inherit;
}
.ymal-mock__item:last-child { border-bottom: 0; padding-bottom: 0; }
.ymal-mock__item:first-child { padding-top: 0; }
.ymal-mock__item-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mr-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ymal-mock__item:hover .ymal-mock__item-title { color: var(--mr-blue); }
.ymal-mock__thumb {
  width: 88px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}
.spoiler-hub__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.spoiler-hub__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 6px;
}
.spoiler-hub__live {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
  animation: spoilerPulse 1.6s infinite;
}
@keyframes spoilerPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.spoiler-hub__title {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.spoiler-hub__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #94a3b8;
}
.spoiler-hub__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.spoiler-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.spoiler-nav-btn:hover {
  border-color: rgba(251, 191, 36, 0.7);
  color: #fff;
  background: rgba(30, 41, 59, 0.95);
}
/* Shared View All size — color variants allowed */
.view-all-btn,
.spoiler-hub__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 32px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, filter 0.15s, color 0.15s;
}
.view-all-btn--dark {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  color: #e2e8f0 !important;
}
.view-all-btn--dark:hover {
  border-color: #3b82f6;
  color: #fff !important;
}
.spoiler-hub__cta,
.view-all-btn--amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid transparent;
  color: #111827 !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.22);
}
.spoiler-hub__cta:hover,
.view-all-btn--amber:hover { filter: brightness(1.06); }
.spoiler-marquee {
  overflow: hidden;
  padding: 18px 4px 22px;
  margin: -4px -4px 0;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.spoiler-marquee__track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: spoilerMarquee 42s linear infinite;
}
.spoiler-marquee:hover .spoiler-marquee__track,
.spoiler-marquee.is-paused .spoiler-marquee__track {
  animation-play-state: paused;
}
.spoiler-marquee.is-manual .spoiler-marquee__track {
  animation: none;
  transform: translateX(var(--spoiler-offset, 0px));
  transition: transform 0.35s ease;
}
.spoiler-marquee__group {
  display: flex;
  gap: 18px;
}
@keyframes spoilerMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .spoiler-marquee__track { animation: none; }
}

/* ==========================================================================
   ALISTER MOCKUP: HERO + CATEGORY RAIL + MOBILE CHIPS
   ========================================================================== */
.mockup-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1024px) {
  .mockup-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.95fr);
    gap: 16px;
    align-items: stretch;
  }
}
.hero-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 320px;
  height: 100%;
  isolation: isolate;
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 42px rgba(37, 99, 235, 0.22),
    0 0 80px rgba(59, 130, 246, 0.1);
}
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 28%, transparent 72%, rgba(37,99,235,0.12) 100%);
  mix-blend-mode: soft-light;
}
@media (min-width: 1024px) {
  .hero-slider { min-height: 360px; }
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  cursor: pointer;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 0.7s ease;
}
.hero-slide.is-active .hero-slide__media { transform: scale(1); }
.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 18%, rgba(2,6,23,0.88) 100%),
    linear-gradient(90deg, rgba(2,6,23,0.72) 0%, rgba(2,6,23,0.2) 55%, transparent 100%);
}
.hero-slide__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 22px 54px;
  max-width: 36rem;
}
.hero-slide__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #ef4444;
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.45);
}
.hero-slide__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero-slide__meta {
  margin-top: 10px;
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
}
.hero-slide__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb 55%, #1d4ed8);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow:
    0 8px 18px rgba(37, 99, 235, 0.42),
    0 0 24px rgba(59, 130, 246, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.hero-slide__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 10px 22px rgba(37, 99, 235, 0.5),
    0 0 32px rgba(96, 165, 250, 0.45);
}
.article-body-content {
  font-family: var(--font-serif);
  line-height: 1.65;
}
.hero-slider__controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hero-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}
.hero-dot.is-active {
  width: 22px;
  background: #fff;
}
.hero-nav {
  display: flex;
  gap: 8px;
}
.hero-nav button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(15,23,42,0.55);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.hero-nav button:hover {
  background: rgba(37,99,235,0.85);
  border-color: transparent;
}
.hero-tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 100%;
  min-height: 0;
}
.hero-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  min-height: 0;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none !important;
  color: #fff !important;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    var(--mr-shadow),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (min-width: 1024px) {
  .hero-tile {
    aspect-ratio: auto;
  }
}
.hero-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.hero-tile--spoilers {
  box-shadow:
    var(--mr-shadow),
    0 0 28px rgba(220, 38, 38, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  border-color: rgba(248, 113, 113, 0.35);
}
.hero-tile--commander {
  box-shadow:
    var(--mr-shadow),
    0 0 28px rgba(37, 99, 235, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  border-color: rgba(96, 165, 250, 0.35);
}
.hero-tile--draft {
  box-shadow:
    var(--mr-shadow),
    0 0 28px rgba(5, 150, 105, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  border-color: rgba(52, 211, 153, 0.35);
}
.hero-tile:hover {
  transform: translateY(-3px);
}
.hero-tile--spoilers:hover {
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.36),
    0 0 36px rgba(239, 68, 68, 0.42);
}
.hero-tile--commander:hover {
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.36),
    0 0 36px rgba(59, 130, 246, 0.42);
}
.hero-tile--draft:hover {
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.36),
    0 0 36px rgba(16, 185, 129, 0.42);
}
.hero-tile__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transition: transform 0.45s ease;
}
.hero-tile:hover .hero-tile__bg { transform: scale(1.05); }
.hero-tile__shade {
  display: none;
}
.hero-tile__copy {
  position: relative;
  z-index: 1;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(2,6,23,0.78) 100%);
}
.hero-tile__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
  display: block;
}
.hero-tile__title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
.mockup-home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}
@media (min-width: 1024px) {
  .mockup-home-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
  }
}
.mockup-card {
  background: var(--mr-surface);
  border: 1px solid rgba(148,163,184,0.14);
  border-radius: var(--mr-radius);
  box-shadow: var(--mr-shadow);
}
body.light-mode .mockup-card {
  border-color: rgba(15,23,42,0.06);
}
/* Keep tag utility for Guides / YMAL */
.feed-item__tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}
.feed-item__tag--spoilers { background: var(--mr-red); }
.feed-item__tag--commander { background: var(--mr-blue); }
.feed-item__tag--finance { background: #0ea5e9; }

/* Recent Articles — Alister card mockup */
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 14px 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.article-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}
body:not(.light-mode) .article-card {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.article-card__media {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-card__thumb {
  width: 132px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}
.article-card__subbox {
  min-height: 28px;
  border-radius: 8px;
  background: #eef1f6;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
}
body:not(.light-mode) .article-card__subbox {
  background: rgba(15, 23, 42, 0.75);
  color: #94a3b8;
}
.article-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-right: 0;
}
.article-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.article-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.65);
  color: #67e8f9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow:
    0 0 10px rgba(34, 211, 238, 0.28),
    0 0 18px rgba(34, 211, 238, 0.12);
}
body.light-mode .article-card__badge {
  background: rgba(8, 145, 178, 0.1);
  border-color: rgba(8, 145, 178, 0.55);
  color: #0e7490;
  box-shadow:
    0 0 8px rgba(8, 145, 178, 0.18),
    0 0 14px rgba(8, 145, 178, 0.08);
}
.article-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #0f172a;
}
body:not(.light-mode) .article-card__title { color: #f8fafc; }
.article-card__excerpt {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body:not(.light-mode) .article-card__excerpt { color: #94a3b8; }
.article-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}
.article-card__avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}
@media (max-width: 639px) {
  .article-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .article-card__thumb {
    width: 96px;
    height: 78px;
  }
  .article-card__title { font-size: 14px; }
  .article-card__excerpt { -webkit-line-clamp: 2; font-size: 12px; }
}
.sidebar-widget {
  padding: 16px;
  margin-bottom: 14px;
}
/* Fantasy relic panels — right rail (Main Finders look) */
.mockup-card.sidebar-widget--relic,
.sidebar-widget--relic {
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(201, 162, 39, 0.08), transparent 55%),
    linear-gradient(165deg, rgba(24, 32, 52, 0.96) 0%, rgba(12, 18, 34, 0.94) 100%);
  box-shadow:
    var(--mr-shadow),
    inset 0 1px 0 rgba(255, 248, 220, 0.08),
    inset 0 0 0 1px rgba(201, 162, 39, 0.08);
  overflow: hidden;
}
.sidebar-widget--relic::before,
.sidebar-widget--relic::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  border-color: rgba(201, 162, 39, 0.55);
  border-style: solid;
  opacity: 0.9;
}
.sidebar-widget--relic::before {
  top: 8px;
  left: 8px;
  border-width: 1.5px 0 0 1.5px;
}
.sidebar-widget--relic::after {
  right: 8px;
  bottom: 8px;
  border-width: 0 1.5px 1.5px 0;
}
.sidebar-widget__title {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8d48b;
  text-align: center;
}
.sidebar-widget__title--plain {
  justify-content: flex-start;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--mr-muted);
}
body.light-mode .sidebar-widget__title--plain { color: var(--mr-muted); }
.sidebar-widget__ornament {
  flex: 1;
  height: 1px;
  max-width: 42px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.7), transparent);
  position: relative;
}
.sidebar-widget__ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(201, 162, 39, 0.85);
  box-shadow: 0 0 6px rgba(201, 162, 39, 0.35);
}

/* High Utility — emoji quick links (no boxy tiles) */
.emoji-links {
  display: flex;
  flex-direction: column;
}
.emoji-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.14);
  text-decoration: none !important;
  color: #e8edf7 !important;
  transition: color 0.15s ease, transform 0.15s ease, padding-left 0.15s ease;
}
.emoji-link:last-child { border-bottom: 0; padding-bottom: 2px; }
.emoji-link:first-child { padding-top: 2px; }
.emoji-link:hover {
  color: #fff6d0 !important;
  padding-left: 6px;
}
.emoji-link__emoji {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(201, 162, 39, 0.28);
  box-shadow: inset 0 0 12px rgba(201, 162, 39, 0.08);
}
.emoji-link__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.emoji-link__label {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.emoji-link__sub {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.emoji-link__go {
  flex-shrink: 0;
  color: rgba(232, 212, 139, 0.7);
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.15s ease, color 0.15s ease;
}
.emoji-link:hover .emoji-link__go {
  color: #f5e6a8;
  transform: translateX(2px);
}

.finder-list {
  display: flex;
  flex-direction: column;
}
.finder-item {
  --finder-accent: #c9a227;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.14);
  text-decoration: none !important;
  color: #e8edf7 !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  position: relative;
  cursor: default;
  pointer-events: none;
  user-select: none;
}
.finder-item:last-child { border-bottom: 0; padding-bottom: 0; }
.finder-item:first-child { padding-top: 0; }
#spoilers,
#decks,
#guides,
#main-feed {
  scroll-margin-top: 96px;
}
.finder-item__glyph {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid color-mix(in srgb, var(--finder-accent) 55%, transparent);
  box-shadow: inset 0 0 10px color-mix(in srgb, var(--finder-accent) 18%, transparent);
  color: var(--finder-accent);
}
.finder-item__glyph svg {
  width: 14px;
  height: 14px;
  display: block;
}
.finder-item--spoilers { --finder-accent: #f87171; }
.finder-item--commander { --finder-accent: #60a5fa; }
.finder-item--draft { --finder-accent: #34d399; }
.finder-item--finance { --finder-accent: #38bdf8; }
.finder-item--arena { --finder-accent: #a78bfa; }
.finder-item__label {
  flex: 1;
  min-width: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.finder-count {
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 236, 179, 0.12), rgba(15, 23, 42, 0.35)),
    rgba(15, 23, 42, 0.72);
  color: #f5e6a8;
  border: 1px solid rgba(201, 162, 39, 0.45);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 248, 220, 0.15);
}
body.light-mode .mockup-card.sidebar-widget--relic,
body.light-mode .sidebar-widget--relic {
  border-color: rgba(146, 112, 18, 0.28);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(201, 162, 39, 0.12), transparent 55%),
    linear-gradient(165deg, #fffdf7 0%, #f4efe3 100%);
  box-shadow:
    var(--mr-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 0 1px rgba(201, 162, 39, 0.1);
}
body.light-mode .sidebar-widget__title { color: #8a6a12; }
body.light-mode .finder-item { color: #1e293b !important; }
body.light-mode .finder-item__glyph { background: rgba(255, 255, 255, 0.7); }
body.light-mode .finder-count {
  background: linear-gradient(180deg, #fff8e1, #f3e5ab);
  color: #7a5a0c;
  border-color: rgba(146, 112, 18, 0.4);
}
body.light-mode .emoji-link { color: #1e293b !important; }
body.light-mode .emoji-link:hover { color: #7a5a0c !important; }
body.light-mode .emoji-link__emoji {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(146, 112, 18, 0.28);
}
body.light-mode .emoji-link__sub { color: #64748b; }
body.light-mode .emoji-link__go { color: rgba(138, 106, 18, 0.65); }
.card-odds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.card-odds-grid img {
  width: 100%;
  aspect-ratio: 5/7;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.2);
}
.ad-box-300 {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px dashed rgba(148,163,184,0.35);
  background: rgba(148,163,184,0.08);
  color: var(--mr-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 16px;
}
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  background: rgba(15,23,42,0.94);
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  padding: 8px 10px;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
body.light-mode .mobile-bottom-nav {
  background: rgba(255,255,255,0.94);
  border-color: rgba(15,23,42,0.08);
  box-shadow: 0 16px 40px rgba(15,23,42,0.12);
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--mr-muted);
  font-size: 10px;
  font-weight: 700;
}
.mobile-bottom-nav a.is-active,
.mobile-bottom-nav a:hover {
  color: var(--mr-blue);
  background: rgba(37,99,235,0.1);
}
/* Mediavine-style sticky footer adhesion (matches live mtgrocks.com) */
:root {
  --mv-adhesion-h: 90px;
  --mv-stack-gap: 10px;
}
@media (max-width: 767px) {
  :root { --mv-adhesion-h: 50px; }
}
.mv-adhesion {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--mv-adhesion-h);
  z-index: 68;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}
.mv-adhesion__inner {
  width: min(728px, 100% - 16px);
  height: calc(var(--mv-adhesion-h) - 12px);
  margin: 0 auto;
  border-radius: 8px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-align: center;
}
.mv-adhesion__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.35;
}
body.light-mode .mv-adhesion {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-top-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}
body.light-mode .mv-adhesion__inner {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.55);
  color: #64748b;
}

@media (max-width: 767px) {
  .mobile-bottom-nav { display: grid; }
  body { padding-bottom: calc(var(--mv-adhesion-h) + 76px); }
  .mobile-bottom-nav {
    bottom: calc(var(--mv-adhesion-h) + var(--mv-stack-gap));
  }
  #dockedVideoAd { bottom: calc(var(--mv-adhesion-h) + var(--mv-stack-gap)) !important; }
}

/* Desktop outstream sits above Mediavine adhesion */
#dockedVideoAd {
  bottom: calc(var(--mv-adhesion-h) + 1.25rem) !important;
}
body.is-article-view #dockedVideoAd {
  display: none !important;
}

/* Keep reading — end-of-article cards (Polygon / Kotaku style) */
.article-turn-nav {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(251, 191, 36, 0.22);
}
.article-turn-nav.is-hidden { display: none; }
.article-turn-nav__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.article-turn-nav__kicker {
  font-family: "Cinzel", "Palatino Linotype", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fbbf24;
}
.article-turn-nav__count {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.04em;
}
.article-turn-nav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 639px) {
  .article-turn-nav__grid { grid-template-columns: 1fr; }
}
.article-turn-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  width: 100%;
  padding: 12px 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.article-turn-card--next {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(155deg, rgba(30, 58, 138, 0.35) 0%, rgba(15, 23, 42, 0.92) 55%);
}
.article-turn-card:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
}
.article-turn-card:disabled,
.article-turn-card.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}
.article-turn-card__dir {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.article-turn-card__row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}
.article-turn-card__thumb {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.article-turn-card__body { min-width: 0; flex: 1; }
.article-turn-card__cat {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #60a5fa;
  margin-bottom: 3px;
}
.article-turn-card__title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: #f1f5f9;
}
.article-turn-card__cta {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  margin-top: 2px;
}
body.light-mode .article-turn-card {
  background: linear-gradient(155deg, #fff 0%, #f1f5f9 100%);
  border-color: rgba(148, 163, 184, 0.45);
}
body.light-mode .article-turn-card__title { color: #0f172a; }

/* Compact floating Up Next corner toast — appears gently near end of read */
.article-read-dock {
  position: fixed;
  left: 20px;
  right: auto;
  bottom: 20px;
  width: min(368px, calc(100vw - 32px));
  z-index: 69;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.article-read-dock.is-hidden,
.article-read-dock.is-dismissed {
  display: none;
}
.article-read-dock.is-engaged {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.article-read-dock__shell {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: rgba(15, 23, 42, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 40px -12px rgba(2, 6, 23, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.article-read-dock__shell:hover {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow:
    0 22px 46px -12px rgba(2, 6, 23, 0.82),
    0 0 24px -6px rgba(59, 130, 246, 0.24);
}
.article-read-dock__progress-wrap {
  height: 2.5px;
  width: 100%;
  background: rgba(148, 163, 184, 0.16);
}
.article-read-dock__progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  transition: width 0.14s linear;
}
.article-read-dock__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
}
.article-read-dock__nudge {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.65);
  color: #cbd5e1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.article-read-dock__nudge:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(96, 165, 250, 0.55);
  color: #ffffff;
}
.article-read-dock__main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.article-read-dock__thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.article-read-dock__copy {
  flex: 1;
  min-width: 0;
}
.article-read-dock__eyebrow {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-read-dock__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.28;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-read-dock__cta {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  padding: 6px 11px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.article-read-dock__main:hover .article-read-dock__cta {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.article-read-dock__close {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.article-read-dock__close:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}
@media (max-width: 767px) {
  .article-read-dock {
    left: 12px;
    right: 12px;
    bottom: 66px;
    width: auto;
  }
  .article-read-dock__inner {
    padding: 8px 9px;
    gap: 7px;
  }
  .article-read-dock__thumb {
    width: 40px;
    height: 40px;
  }
  .article-read-dock__cta {
    padding: 6px 10px;
    font-size: 10px;
  }
}
body.light-mode .article-read-dock__shell {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(59, 130, 246, 0.24);
  box-shadow:
    0 18px 36px -12px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.04) inset;
}
body.light-mode .article-read-dock__eyebrow { color: #2563eb; }
body.light-mode .article-read-dock__title { color: #0f172a; }
body.light-mode .article-read-dock__nudge {
  background: #f1f5f9;
  border-color: rgba(148, 163, 184, 0.35);
  color: #334155;
}
body.light-mode .article-read-dock__close {
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
}
body.light-mode .article-read-dock__close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}
.category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.category-chip svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.95;
}
.category-chip:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}
.category-chip--spoilers {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28), 0 0 22px rgba(239, 68, 68, 0.28);
}
.category-chip--commander {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28), 0 0 22px rgba(59, 130, 246, 0.28);
}
.category-chip--draft {
  background: linear-gradient(135deg, #059669, #065f46);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28), 0 0 22px rgba(16, 185, 129, 0.28);
}
.category-chip--arena {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28), 0 0 22px rgba(139, 92, 246, 0.28);
}
.category-chip--guides {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.28), 0 0 22px rgba(245, 158, 11, 0.28);
}
body.light-mode .category-chip {
  border-color: rgba(15, 23, 42, 0.08);
  color: #fff !important;
}
.mobile-chip-scroll {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 0 2px 4px;
  margin: 0 0 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-chip-scroll::-webkit-scrollbar { display: none; }
.mobile-chip-scroll .category-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 11px;
}
@media (max-width: 1023px) {
  .mobile-chip-scroll { display: flex; }
  .category-rail { display: none; }
  .hero-tile { aspect-ratio: 5 / 4; min-height: 0; height: auto; }
}
body.light-mode .hero-slide__title { color: #fff !important; }
body.light-mode .hero-tile__title { color: #fff !important; }
/* Light theme: lift hero cards off pale wallpaper */
body.light-mode .mockup-hero {
  gap: 18px;
}
body.light-mode .hero-slider {
  border: 1.5px solid rgba(15, 23, 42, 0.18);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.85),
    0 0 0 4px rgba(15, 23, 42, 0.08),
    0 16px 40px rgba(15, 23, 42, 0.18),
    0 4px 12px rgba(15, 23, 42, 0.1);
}
body.light-mode .hero-slider::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 35%, transparent 70%, rgba(15,23,42,0.08) 100%);
  mix-blend-mode: normal;
  opacity: 0.7;
}
body.light-mode .hero-slide__shade {
  background:
    linear-gradient(180deg, transparent 12%, rgba(2,6,23,0.82) 100%),
    linear-gradient(90deg, rgba(2,6,23,0.7) 0%, rgba(2,6,23,0.22) 55%, transparent 100%);
}
body.light-mode .hero-slide__title {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
body.light-mode .hero-tile {
  border: 1.5px solid rgba(15, 23, 42, 0.16);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.85),
    0 0 0 4px rgba(15, 23, 42, 0.07),
    0 12px 28px rgba(15, 23, 42, 0.16),
    0 3px 10px rgba(15, 23, 42, 0.08);
}
body.light-mode .hero-tile::before {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  opacity: 1;
}
body.light-mode .hero-tile__copy {
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.88) 100%);
}
body.light-mode .hero-tile--spoilers {
  border-color: rgba(185, 28, 28, 0.4);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.85),
    0 0 0 4px rgba(220, 38, 38, 0.18),
    0 12px 28px rgba(15, 23, 42, 0.16);
}
body.light-mode .hero-tile--commander {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.85),
    0 0 0 4px rgba(37, 99, 235, 0.18),
    0 12px 28px rgba(15, 23, 42, 0.16);
}
body.light-mode .hero-tile--draft {
  border-color: rgba(5, 150, 105, 0.4);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.85),
    0 0 0 4px rgba(5, 150, 105, 0.18),
    0 12px 28px rgba(15, 23, 42, 0.16);
}
body.light-mode .hero-tile:hover,
body.light-mode .hero-tile--spoilers:hover,
body.light-mode .hero-tile--commander:hover,
body.light-mode .hero-tile--draft:hover {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 0 4px rgba(15, 23, 42, 0.12),
    0 18px 36px rgba(15, 23, 42, 0.22);
}
body.light-mode .hero-nav button {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}
.spoiler-card {
  --glow: 56, 189, 248;
  position: relative;
  flex: 0 0 auto;
  width: 158px;
  aspect-ratio: 5 / 7;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none !important;
  border: 1px solid rgba(var(--glow), 0.5);
  background: #0b1220;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(var(--glow), 0.4),
    0 0 40px rgba(var(--glow), 0.28),
    0 0 72px rgba(var(--glow), 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.spoiler-card--blue { --glow: 56, 189, 248; }
.spoiler-card--gold { --glow: 251, 191, 36; }
.spoiler-card--white { --glow: 226, 232, 240; }
.spoiler-card--red { --glow: 248, 113, 113; }
.spoiler-card--green { --glow: 74, 222, 128; }
.spoiler-card--purple { --glow: 167, 139, 250; }
@media (min-width: 640px) {
  .spoiler-card { width: 176px; }
}
.spoiler-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(var(--glow), 0.9);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(var(--glow), 0.65),
    0 0 56px rgba(var(--glow), 0.4),
    0 0 90px rgba(var(--glow), 0.22);
}
.spoiler-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.spoiler-card:hover img { transform: scale(1.06); }
.spoiler-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2,6,23,0.92) 100%);
  pointer-events: none;
}
.spoiler-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.95);
  color: #111827;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.spoiler-card__meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spoiler-card__name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spoiler-card__type {
  font-size: 11px;
  color: #fcd34d;
  font-weight: 600;
}

.prod-deckbuilder-container {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 280px at 8% -10%, rgba(37, 99, 235, 0.22), transparent 55%),
    radial-gradient(700px 260px at 92% 0%, rgba(245, 158, 11, 0.14), transparent 50%),
    var(--mr-surface);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: var(--mr-radius);
  box-shadow: var(--mr-shadow), 0 0 40px rgba(37, 99, 235, 0.08);
}
body.light-mode .prod-deckbuilder-container {
  border-color: rgba(37, 99, 235, 0.18);
  background:
    radial-gradient(900px 280px at 8% -10%, rgba(37, 99, 235, 0.1), transparent 55%),
    radial-gradient(700px 260px at 92% 0%, rgba(245, 158, 11, 0.08), transparent 50%),
    rgba(255, 255, 255, 0.9);
}
.deck-hub__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 6px;
}
.deck-hub__live {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: deckLivePulse 1.8s ease-out infinite;
}
@keyframes deckLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.deck-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .deck-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .deck-results { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@keyframes deckFoilShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.deck-feature {
  --glow: 96, 165, 250;
  --place-accent: 96, 165, 250;
  --frame-a: rgba(var(--glow), 0.95);
  --frame-b: rgba(255, 255, 255, 0.22);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  aspect-ratio: 3 / 4;
  max-height: 340px;
  padding: 5px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none !important;
  color: #fff !important;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 1) 100%);
  border: 1px solid rgba(var(--glow), 0.35);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.35),
    0 22px 48px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(var(--glow), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.deck-feature::before {
  content: '';
  position: absolute;
  inset: 4px;
  z-index: 0;
  border-radius: 11px;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 2px rgba(15, 23, 42, 0.75),
    inset 0 0 0 3px var(--frame-a),
    inset 0 0 0 5px rgba(2, 6, 23, 0.9),
    inset 0 0 0 6px var(--frame-b);
}
.deck-feature--modern { --glow: 96, 165, 250; }
.deck-feature--pauper { --glow: 251, 146, 60; }
.deck-feature--place-1 {
  --place-accent: 250, 204, 21;
  --frame-a: rgba(234, 179, 8, 0.95);
  --frame-b: rgba(254, 243, 199, 0.45);
}
.deck-feature--place-2 {
  --place-accent: 203, 213, 225;
  --frame-a: rgba(148, 163, 184, 0.9);
  --frame-b: rgba(248, 250, 252, 0.4);
}
.deck-feature--place-3 {
  --place-accent: 217, 119, 6;
  --frame-a: rgba(245, 158, 11, 0.95);
  --frame-b: rgba(254, 215, 170, 0.45);
}
.deck-feature--place-4 { --place-accent: 59, 130, 246; }
.deck-feature--place-6 { --place-accent: 59, 130, 246; }
.deck-feature--record-win { --place-accent: 249, 115, 22; }
.deck-feature__bg {
  position: absolute;
  inset: 7px;
  width: auto;
  height: auto;
  border-radius: 9px;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
  filter: saturate(1.08) contrast(1.05) brightness(0.98);
}
.deck-feature__vignette {
  position: absolute;
  inset: 7px;
  z-index: 1;
  border-radius: 9px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% 12%, rgba(255, 255, 255, 0.12) 0%, transparent 42%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.05) 0%, rgba(2, 6, 23, 0.5) 55%, rgba(2, 6, 23, 0.97) 100%),
    linear-gradient(90deg, rgba(var(--glow), 0.15) 0%, transparent 38%);
}
.deck-feature__foil {
  position: absolute;
  inset: 7px;
  z-index: 2;
  border-radius: 9px;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: soft-light;
  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 35%,
    rgba(147, 197, 253, 0.18) 48%,
    rgba(255, 255, 255, 0.1) 62%,
    transparent 80%
  );
  background-size: 200% 200%;
  transition: opacity 0.35s ease;
}
.deck-feature:hover .deck-feature__foil {
  opacity: 1;
  animation: deckFoilShimmer 2.2s ease-in-out infinite alternate;
}
.deck-feature:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  border-color: rgba(var(--glow), 0.75);
  box-shadow:
    0 8px 0 rgba(0, 0, 0, 0.25),
    0 30px 56px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(var(--glow), 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.deck-feature:hover .deck-feature__bg {
  transform: scale(1.12);
  filter: saturate(1.18) contrast(1.06) brightness(1.02);
}
@media (prefers-reduced-motion: reduce) {
  .deck-feature,
  .deck-feature__bg,
  .deck-feature__foil {
    transition: none !important;
    animation: none !important;
  }
  .deck-feature:hover {
    transform: none;
  }
  .deck-feature:hover .deck-feature__bg {
    transform: scale(1.04);
  }
  .deck-feature:hover .deck-feature__foil {
    opacity: 0.35;
  }
}
.deck-feature__format {
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2e8f0 !important;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.deck-feature__format::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.85);
  box-shadow: none;
}
/* Modern — match site chrome (neutral glass + cool accent dot) */
.deck-feature--modern .deck-feature__format {
  color: #cbd5e1 !important;
  background: rgba(2, 6, 23, 0.55);
  border-color: rgba(100, 116, 139, 0.45);
}
.deck-feature--modern .deck-feature__format::before {
  background: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}
/* Pauper — commons / earthy accent (distinct from Modern) */
.deck-feature--pauper .deck-feature__format {
  color: #ecfdf5 !important;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.92), rgba(4, 47, 46, 0.95));
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(16, 185, 129, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.deck-feature--pauper .deck-feature__format::before {
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.25);
}
.deck-feature__body {
  position: relative;
  z-index: 4;
  width: 100%;
  margin-top: auto;
  padding: 10px 12px 11px;
}
.deck-feature__panel {
  padding: 14px 12px 12px;
  border-radius: 12px 12px 10px 10px;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.15) 0%,
    rgba(2, 6, 23, 0.94) 28%,
    rgba(2, 6, 23, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid rgba(var(--glow), 0.55);
  box-shadow:
    0 -12px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.deck-feature__kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--glow), 1);
  text-shadow: 0 0 20px rgba(var(--glow), 0.45);
}
.deck-feature__pilot {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 3.5vw, 1.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(var(--glow), 0.25);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deck-feature__title {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #e2e8f0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deck-feature__sub {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.deck-feature__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff !important;
  padding: 7px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(var(--glow), 0.95), rgba(var(--glow), 0.5));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(var(--glow), 0.35);
}
.deck-feature__cta span {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.deck-feature:hover .deck-feature__cta span {
  transform: translateX(3px);
}
body.light-mode .deck-feature {
  border-color: rgba(var(--glow), 0.25);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.08),
    0 20px 40px rgba(15, 23, 42, 0.12),
    0 0 28px rgba(var(--glow), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
body.light-mode .deck-feature__vignette {
  background:
    radial-gradient(ellipse 90% 55% at 50% 12%, rgba(255, 255, 255, 0.35) 0%, transparent 42%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(15, 23, 42, 0.92) 100%);
}
body.light-mode .deck-feature__panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(15, 23, 42, 0.92) 32%,
    rgba(15, 23, 42, 0.98) 100%
  );
  border-color: rgba(255, 255, 255, 0.15);
}
body.light-mode .deck-feature__sub {
  color: #cbd5e1;
}
body.light-mode .deck-feature--modern .deck-feature__format {
  color: #334155 !important;
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(148, 163, 184, 0.5);
}
body.light-mode .deck-feature--pauper .deck-feature__format {
  color: #f0fdf4 !important;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.95), rgba(4, 120, 87, 0.98));
  border-color: rgba(52, 211, 153, 0.5);
}
@media (max-width: 639px) {
  .deck-feature {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
}
.format-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.28);
  white-space: nowrap;
  flex-shrink: 0;
}
body.light-mode .format-pill {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.2);
}

/* AD UNITS */
.ad-leaderboard {
  max-width: 728px;
  height: 90px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 1.75X READ-HEAVY ARTICLE TYPOGRAPHY (ALISTER VIEW 04 SPEC) */
.article-body-content {
  font-size: 1.125rem;
  line-height: 1.78;
  color: #cbd5e1;
  letter-spacing: -0.011em;
}
.article-body-content p {
  margin-bottom: 1.65rem;
}
.article-body-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-left: 0.85rem;
  border-left: 4px solid #2563eb;
}

/* CUSTOM SCROLLBAR */
.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #5d5d69;
  border-radius: 9999px;
}

/* ==========================================================================
   LIGHT MODE — clean glassy surfaces + exact text hierarchy
   ========================================================================== */
body.light-mode {
  color: #0f172a !important;
}

/* Text hierarchy */
body.light-mode .text-white,
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
  color: #0f172a !important;
  text-shadow: none !important;
}
body.light-mode .text-slate-100,
body.light-mode .text-slate-200 { color: #1e293b !important; }
body.light-mode .text-slate-300 { color: #334155 !important; }
body.light-mode .text-slate-400 { color: #475569 !important; }
body.light-mode .text-slate-500,
body.light-mode .text-slate-600 { color: #64748b !important; }
body.light-mode .text-blue-400,
body.light-mode .text-blue-300 { color: #2563eb !important; }
body.light-mode .text-cyan-400 { color: #0891b2 !important; }
body.light-mode .text-amber-300,
body.light-mode .text-amber-400 { color: #d97706 !important; }
body.light-mode a.text-blue-400:hover,
body.light-mode .hover\:text-blue-300:hover,
body.light-mode .hover\:text-blue-400:hover,
body.light-mode .group:hover .group-hover\:text-blue-400 {
  color: #1d4ed8 !important;
}
body.light-mode .article-body-content {
  color: #334155 !important;
  line-height: 1.8;
}
body.light-mode .article-body-content h2,
body.light-mode .article-body-content h3 {
  color: #0f172a !important;
  letter-spacing: -0.02em;
}

/* Glassy header */
body.light-mode .glossy-glass-header {
  background: linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(248,250,252,0.94) 100%) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
  border-bottom: 1px solid rgba(148,163,184,0.35) !important;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}
body.light-mode .glossy-glass-header::before {
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.25) 50%, transparent) !important;
}
body.light-mode .mtg-header-nav > a,
body.light-mode .mtg-header-nav .nav-item > a {
  color: #334155 !important;
}
body.light-mode .mtg-header-nav > a:hover,
body.light-mode .mtg-header-nav .nav-item > a:hover {
  color: #0f172a !important;
  background: rgba(226, 232, 240, 0.85) !important;
}
body.light-mode .mtg-header-nav .nav-spoilers { color: #d97706 !important; }
body.light-mode .mtg-header-nav .nav-deckbuilder {
  color: #2563eb !important;
  background: transparent !important;
}
body.light-mode .mtg-header-nav .nav-deckbuilder:hover {
  color: #1d4ed8 !important;
  background: rgba(37, 99, 235, 0.1) !important;
}
body.light-mode .mtg-header-nav .nav-dropdown-inner {
  background: rgba(255,255,255,0.96) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 12px 32px rgba(15,23,42,0.12) !important;
}
body.light-mode .mtg-header-nav .nav-dropdown a {
  color: #334155 !important;
}
body.light-mode .mtg-header-nav .nav-dropdown a:hover {
  background: rgba(37,99,235,0.08) !important;
  color: #1d4ed8 !important;
}
body.light-mode .mtg-preferred-header-button {
  background: #fff !important;
  border-color: #cbd5e1 !important;
  border-bottom-color: #f36b21 !important;
  color: #0f172a !important;
}
body.light-mode .theme-icon-btn {
  background: #fff !important;
  border-color: #cbd5e1 !important;
  color: #d97706 !important;
}
body.light-mode .icon-plain { color: #64748b !important; }
body.light-mode .icon-plain:hover { color: #0f172a !important; }

/* Glass panels — soft white glass, not flat chalk */
body.light-mode .glass-panel,
body.light-mode .glass-elevated,
body.light-mode .glow-card,
body.light-mode .prod-spoilers-container,
body.light-mode .prod-deckbuilder-container,
body.light-mode .alister-sidebar {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(14px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.7),
    0 8px 24px rgba(15, 23, 42, 0.06) !important;
}
body.light-mode .glow-card {
  background:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)) padding-box,
    linear-gradient(135deg, rgba(99,102,241,0.45), rgba(34,211,238,0.35), rgba(59,130,246,0.4)) border-box !important;
  box-shadow:
    0 0 18px rgba(99, 102, 241, 0.12),
    0 10px 28px rgba(15, 23, 42, 0.08) !important;
}
body.light-mode .glass-panel:hover,
body.light-mode .glass-elevated:hover {
  border-color: rgba(59, 130, 246, 0.45) !important;
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.12),
    0 12px 30px rgba(15, 23, 42, 0.1) !important;
  transform: translateY(-1px);
}

/* Surfaces / utilities */
body.light-mode .bg-slate-900,
body.light-mode .bg-slate-950,
body.light-mode .bg-slate-900\/80,
body.light-mode .bg-slate-900\/90,
body.light-mode .bg-slate-950\/95,
body.light-mode .bg-slate-950\/98,
body.light-mode .bg-slate-950\/40,
body.light-mode [class*="bg-slate-9"],
body.light-mode [class*="bg-slate-950"] {
  background-color: #ffffff !important;
}
body.light-mode .border-slate-800,
body.light-mode .border-slate-800\/80,
body.light-mode .border-slate-800\/60,
body.light-mode .border-slate-800\/50,
body.light-mode .border-slate-700,
body.light-mode .border-slate-700\/80,
body.light-mode .border-slate-700\/60,
body.light-mode [class*="border-slate-8"],
body.light-mode [class*="border-slate-7"] {
  border-color: #e2e8f0 !important;
}
body.light-mode nav.backdrop-blur-sm {
  background-color: rgba(255, 255, 255, 0.75) !important;
  border-color: #e2e8f0 !important;
}

/* Buttons */
body.light-mode .view-all-btn--dark {
  background: #fff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
body.light-mode .view-all-btn--dark:hover {
  border-color: #3b82f6 !important;
  color: #1d4ed8 !important;
  background: #eff6ff !important;
}
body.light-mode .btn-square.bg-slate-900\/80,
body.light-mode .btn-square.bg-slate-900\/90 {
  background: #fff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* Spoilers / decks */
body.light-mode .spoiler-hub__title { color: #0f172a !important; }
body.light-mode .spoiler-hub__sub { color: #64748b !important; }
body.light-mode .spoiler-card {
  background: #0b1220 !important;
  border-color: rgba(var(--glow), 0.55) !important;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.12),
    0 0 16px rgba(var(--glow), 0.28),
    0 0 36px rgba(var(--glow), 0.16) !important;
}
body.light-mode .spoiler-nav-btn {
  background: #fff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

/* YMAL */
body.light-mode .ymal-box {
  background: rgba(255,255,255,0.86) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
}
body.light-mode .ymal-box__title,
body.light-mode .ymal-featured__title,
body.light-mode .ymal-list__title { color: #0f172a !important; }
body.light-mode .ymal-meta { color: #2563eb !important; }
body.light-mode .ymal-box__rule {
  background: linear-gradient(90deg, #3b82f6, transparent) !important;
}
body.light-mode .ymal-list__item {
  border-bottom-color: #e2e8f0 !important;
}
body.light-mode .ymal-featured::after {
  background: linear-gradient(180deg, transparent 30%, rgba(15,23,42,0.72) 100%) !important;
}
body.light-mode .ymal-featured__title { color: #fff !important; }
body.light-mode .ymal-featured .ymal-meta { color: #bfdbfe !important; }

/* Preferred source + sidebar */
body.light-mode .mtg-preferred-source-footer { color: #0f172a !important; }
body.light-mode .mtg-preferred-source-footer__brand { color: #0f172a !important; }
body.light-mode .mtg-preferred-source-footer__text { color: #475569 !important; }
body.light-mode .mtg-preferred-source-footer__divider { background: #cbd5e1 !important; }
body.light-mode .sidebar-preferred-box {
  background: #fff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 22px rgba(15,23,42,0.06);
}
body.light-mode .sidebar-preferred-box__title { color: #0f172a !important; }
body.light-mode .sidebar-preferred-box__text { color: #64748b !important; }
body.light-mode .sidebar-preferred-box__btn {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #fff !important;
}
body.light-mode .related-overlay-card {
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 20px rgba(15,23,42,0.08) !important;
}
/* Drawer open button + menu icon */
#mtgDrawerOpenBtn {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(51, 65, 85, 0.7);
  transition: background 0.2s ease, border-color 0.2s ease;
}
#mtgDrawerOpenBtn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(100, 116, 139, 0.8);
}
#mtgDrawerOpenBtn img.mtg-menu-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: filter 0.2s ease;
}
body.light-mode #mtgDrawerOpenBtn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
body.light-mode #mtgDrawerOpenBtn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}
/* White menu glyph → black lines in light mode */
body.light-mode #mtgDrawerOpenBtn img.mtg-menu-icon {
  filter: brightness(0) !important;
}

/* Mobile sidebar only — frosted glass (not solid) */
#mtgDrawerMenu {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(2, 6, 23, 0.78) 100%) !important;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-right: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow:
    12px 0 40px rgba(0, 0, 0, 0.35),
    inset 1px 0 0 rgba(255, 255, 255, 0.08);
  color: #f8fafc !important;
}

/* Drawer / search / footer */
body.light-mode #mtgDrawerMenu {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(248, 250, 252, 0.8) 100%) !important;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-color: rgba(148, 163, 184, 0.35) !important;
  color: #0f172a !important;
  box-shadow:
    12px 0 40px rgba(15, 23, 42, 0.12),
    inset 1px 0 0 rgba(255, 255, 255, 0.85);
}
body.light-mode #mtgDrawerMenu .border-slate-800,
body.light-mode #mtgDrawerMenu .border-b,
body.light-mode #mtgDrawerMenu .border-t,
body.light-mode #mtgDrawerMenu .border-l-2 {
  border-color: #e2e8f0 !important;
}
body.light-mode #mtgDrawerMenu nav a,
body.light-mode #mtgDrawerMenu nav span {
  color: #0f172a !important;
}
body.light-mode #mtgDrawerMenu nav .pl-4 a,
body.light-mode #mtgDrawerMenu nav .pl-4 .text-xs,
body.light-mode #mtgDrawerMenu nav .text-slate-400 {
  color: #475569 !important;
}
body.light-mode #mtgDrawerMenu nav a:hover {
  color: #1d4ed8 !important;
  background: rgba(37, 99, 235, 0.08) !important;
}
body.light-mode #mtgDrawerMenu nav .text-blue-400 {
  color: #2563eb !important;
}
body.light-mode #mtgDrawerMenu nav .text-amber-300,
body.light-mode #mtgDrawerMenu nav .text-amber-300 span {
  color: #b45309 !important;
}
body.light-mode #mtgDrawerMenu .bg-amber-500\/10 {
  background: rgba(245, 158, 11, 0.12) !important;
}
body.light-mode #mtgDrawerMenu .border-amber-500\/30 {
  border-color: rgba(217, 119, 6, 0.35) !important;
}
body.light-mode #mtgDrawerCloseBtn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
body.light-mode #mtgDrawerMenu .bg-slate-900 {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}
body.light-mode #mtgDrawerMenu .text-slate-300 {
  color: #334155 !important;
}
body.light-mode #mtgSearchOverlay {
  background: rgba(255,255,255,0.72) !important;
}
body.light-mode #mtgSearchOverlay input {
  background: #fff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
body.light-mode footer {
  background: rgba(255,255,255,0.92) !important;
  border-top-color: #e2e8f0 !important;
  color: #64748b !important;
}
body.light-mode footer a { color: #475569 !important; }
body.light-mode footer a:hover { color: #0f172a !important; }
.mtg-footer-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  line-height: 0;
  filter: drop-shadow(0 2px 12px rgba(59, 130, 246, 0.22));
  transition: filter 0.2s ease, transform 0.2s ease;
}
.mtg-footer-wordmark img {
  display: block;
  height: clamp(32px, 4vw, 44px);
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.mtg-footer-wordmark:hover {
  filter: drop-shadow(0 4px 16px rgba(96, 165, 250, 0.4));
  transform: translateY(-1px);
}
body.light-mode .mtg-footer-wordmark {
  filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.16));
}

body.light-mode .ad-leaderboard,
body.light-mode .sidebar-ad-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}
body.light-mode .selection\:bg-blue-600::selection,
body.light-mode ::selection {
  background: #2563eb;
  color: #fff;
}

/* ==========================================================================
   MOBILE / RESPONSIVE
   ========================================================================== */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

@media (max-width: 1023px) {
  .mtg-header-bar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .mtg-header-top {
    min-height: 58px;
    gap: 8px;
  }
  .mtg-header-nav { display: none !important; }
  .mtg-wordmark img { height: 40px; }
  .spoiler-hub__header {
    align-items: flex-start;
  }
  .spoiler-hub__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .mtg-header-bar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .mtg-header-top { min-height: 52px; gap: 6px; }
  .mtg-header-left { gap: 8px; }
  .mtg-wordmark img { height: 34px; max-width: min(180px, 46vw); }
  .mtg-header-actions { gap: 4px !important; }
  .theme-icon-btn,
  .icon-plain {
    width: 34px;
    height: 34px;
  }

  main.max-w-7xl {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  section.grid > article.group {
    min-height: 300px !important;
    padding: 1.25rem !important;
  }
  section.grid > article.group h1 {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
  }
  section.grid > article.group .flex.items-center.gap-4 {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem !important;
  }

  .prod-spoilers-container,
  .prod-deckbuilder-container,
  .spoiler-hub {
    padding: 1rem !important;
    border-radius: 14px;
  }
  .spoiler-hub__title { font-size: 1.15rem; }
  .spoiler-card { width: 148px; }

  .ymal-box { padding: 14px; }
  .ymal-featured,
  .ymal-featured img,
  .ymal-list { min-height: 200px; }
  .ymal-list__item { grid-template-columns: 88px minmax(0, 1fr); }
  .ymal-list__thumb { width: 88px; height: 64px; }
  .ymal-featured__title { font-size: 1rem; }

  .mtg-preferred-source-footer {
    padding: 10px 12px 0;
  }
  .mtg-preferred-source-footer__content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .mtg-preferred-source-footer__divider { display: none; }
  .mtg-preferred-source-footer__brand,
  .mtg-preferred-source-footer__text {
    white-space: normal;
    font-size: 15px;
    line-height: 1.35;
  }
  .mtg-preferred-source-footer__button {
    width: 100%;
    max-width: 280px;
    padding: 12px 18px;
  }

  #dockedVideoAd {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(var(--mv-adhesion-h) + var(--mv-stack-gap)) !important;
    width: auto !important;
    max-width: none;
    height: 132px;
  }

  #mtgDrawerMenu {
    width: min(320px, 92vw);
    padding: 1.25rem;
  }

  footer.mt-6,
  footer {
    padding-top: 2rem !important;
    padding-bottom: 1.5rem !important;
  }
}

@media (max-width: 479px) {
  .mtg-preferred-header-button span { display: none; }
  .header-promo-unit img { max-width: 100%; }
}

/* ==========================================================================
   WORDPRESS INTEGRATION, ADMIN BAR, EDITORIAL TYPOGRAPHY & COMMENTS
   ========================================================================== */

/* Skip link & Screen Reader */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #0f172a;
  border-radius: 6px;
  box-shadow: 0 0 2px 2px rgba(37, 99, 235, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #f8fafc;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 12px 18px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
}

/* WordPress Admin Bar Offset */
body.admin-bar .glossy-glass-header {
  top: 32px;
}
body.admin-bar #mtgDrawerMenu {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .glossy-glass-header {
    top: 46px;
  }
  body.admin-bar #mtgDrawerMenu {
    top: 46px;
  }
}
@media (max-width: 600px) {
  body.admin-bar .glossy-glass-header {
    top: 0;
  }
}

/* Hero slide link overlay & controls stacking */
.hero-slide__cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-slide__body {
  z-index: 2;
  pointer-events: none;
}
.hero-slide__body a,
.hero-slide__cta {
  pointer-events: auto;
}
.hero-slider__controls {
  z-index: 5;
}

/* Clickable Main Finders in WordPress */
a.finder-item {
  cursor: pointer;
  pointer-events: auto;
  user-select: auto;
  transition: color 0.15s ease, padding-left 0.15s ease;
}
a.finder-item:hover {
  color: #fff6d0 !important;
  padding-left: 8px;
}
body.light-mode a.finder-item:hover {
  color: #7a5a0c !important;
}

/* Sub-item indicators inside WP Nav Menus */
.mtg-header-nav .nav-item > a svg.nav-chevron {
  width: 12px;
  height: 12px;
  fill: currentColor;
  opacity: 0.7;
}

/* Single Post / Page Rich WordPress Content Typography */
.article-body-content h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-body-content h4 {
  font-family: var(--font-sans);
  font-size: 1.075rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.article-body-content a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.article-body-content a:hover {
  color: #93c5fd;
}
body.light-mode .article-body-content a {
  color: #2563eb;
}
body.light-mode .article-body-content a:hover {
  color: #1d4ed8;
}
.article-body-content ul,
.article-body-content ol {
  margin: 0 0 1.5rem 1.4rem;
  padding: 0;
}
.article-body-content ul {
  list-style-type: disc;
}
.article-body-content ol {
  list-style-type: decimal;
}
.article-body-content li {
  margin-bottom: 0.45rem;
}
.article-body-content blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #3b82f6;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #e2e8f0;
}
body.light-mode .article-body-content blockquote {
  background: rgba(241, 245, 249, 0.9);
  color: #1e293b;
}
.article-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.article-body-content figure {
  margin: 1.75rem 0;
}
.article-body-content figcaption,
.wp-caption-text {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}
.article-body-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.article-body-content th,
.article-body-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-align: left;
}
.article-body-content th {
  background: rgba(30, 41, 59, 0.85);
  color: #f8fafc;
  font-weight: 700;
}
body.light-mode .article-body-content th {
  background: #f1f5f9;
  color: #0f172a;
}
.article-body-content pre {
  background: rgba(2, 6, 23, 0.92);
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.875rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.article-body-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}
.article-body-content hr {
  border: 0;
  height: 1px;
  background: rgba(148, 163, 184, 0.22);
  margin: 2rem 0;
}

/* WordPress Alignments */
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.sticky { /* WordPress sticky post marker */ }
.bypostauthor { /* Author comment marker */ }
.gallery-caption { font-size: 0.8rem; color: #94a3b8; }

/* WordPress Pagination */
.mtg-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}
.mtg-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  transition: all 0.15s ease;
}
.mtg-pagination .page-numbers:hover {
  border-color: #3b82f6;
  color: #ffffff;
}
.mtg-pagination .page-numbers.current {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
}
body.light-mode .mtg-pagination .page-numbers {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}
body.light-mode .mtg-pagination .page-numbers:hover {
  border-color: #2563eb;
  color: #1d4ed8;
}
body.light-mode .mtg-pagination .page-numbers.current {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* Override sticky read dock when hidden on non-article pages */
body:not(.is-article-view) .article-read-dock {
  display: none;
}

/* Clipboard feedback on share / copy buttons */
.js-copy-btn {
  position: relative;
}
.js-copy-btn.is-copied {
  border-color: #10b981 !important;
  color: #10b981 !important;
}
.js-copy-btn.is-copied::after {
  content: attr(data-copied-label);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 6px;
  background: #0f172a;
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Sticky Right Sidebar on Single Articles (moves up on scroll cleanly without inner scrollbar) */
@media (min-width: 1024px) {
  .mtg-article-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: var(--mtg-sidebar-top, 128px);
  }
  body.admin-bar .mtg-article-sidebar {
    top: var(--mtg-sidebar-top, 160px);
  }
  .mtg-article-sidebar .related-overlay-card {
    height: 144px;
  }
}

/* Modern Centered Affiliate / Buy Card Buttons Inside Articles */
.article-body-content .wp-block-buttons:not(.is-content-justification-left):not(.is-content-justification-right),
.article-body-content .mtg-buy-btn-wrap {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: center;
  gap: 0.75rem;
  margin: 1.35rem auto 1.75rem !important;
  text-align: center !important;
  width: 100%;
}
.article-body-content .wp-block-button {
  display: inline-flex;
  justify-content: center;
}
.article-body-content .wp-block-button__link,
.article-body-content a.mtg-modern-buy-btn,
.article-body-content button.mtg-modern-buy-btn {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #2563eb 0%, #6d28d9 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(147, 197, 253, 0.38) !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-decoration: none !important;
  box-shadow: 0 10px 24px -6px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease;
}
.article-body-content .wp-block-button__link::before,
.article-body-content a.mtg-modern-buy-btn::before,
.article-body-content button.mtg-modern-buy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-160%) skewX(-22deg);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.article-body-content .wp-block-button__link:hover,
.article-body-content a.mtg-modern-buy-btn:hover,
.article-body-content button.mtg-modern-buy-btn:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 32px -8px rgba(109, 40, 217, 0.65), 0 0 0 3px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.article-body-content .wp-block-button__link:hover::before,
.article-body-content a.mtg-modern-buy-btn:hover::before,
.article-body-content button.mtg-modern-buy-btn:hover::before {
  transform: translateX(380%) skewX(-22deg);
}
.article-body-content .wp-block-button__link:active,
.article-body-content a.mtg-modern-buy-btn:active,
.article-body-content button.mtg-modern-buy-btn:active {
  transform: translateY(0) scale(0.98);
}
.article-body-content .mtg-modern-buy-btn--self-center {
  display: flex !important;
  width: fit-content !important;
  margin: 1.25rem auto 1.6rem !important;
}
.article-body-content iframe[src*="deckbuilder.mtgrocks.com"] {
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

/* ======================================================================
   LEGACY MTG CARD TOOLTIPS ([tooltips] SHORTCODE) & GALLERY STYLES
   ====================================================================== */
.mtg-card-tooltip-wrapper {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}
.mtg-card-tooltip {
  color: #f59e0b !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-decoration-color: rgba(245, 158, 11, 0.45) !important;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.mtg-card-tooltip:hover {
  color: #fbbf24 !important;
  text-decoration-color: #fbbf24 !important;
}
body.light-mode .mtg-card-tooltip {
  color: #c2410c !important;
  text-decoration-color: rgba(194, 65, 12, 0.4) !important;
}
body.light-mode .mtg-card-tooltip:hover {
  color: #9a3412 !important;
}
.mtg-card-tooltip-popup {
  position: fixed !important;
  display: none;
  width: 280px !important;
  max-width: calc(100vw - 20px) !important;
  padding: 10px !important;
  margin: 0 !important;
  background: rgba(15, 23, 42, 0.96) !important;
  border: 1px solid rgba(99, 102, 241, 0.32) !important;
  border-radius: 14px !important;
  box-shadow: 0 22px 48px -10px rgba(2, 6, 23, 0.78) !important;
  backdrop-filter: blur(16px);
  z-index: 2147483647 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-sizing: border-box !important;
}
.mtg-card-tooltip-popup img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 9px !important;
}
.mtg-card-tooltip-info {
  display: block !important;
  margin-top: 8px !important;
  color: #e2e8f0 !important;
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}
.mtg-card-tooltip-info strong {
  display: block !important;
  margin-bottom: 4px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

/* [mtg_card_gallery] */
.mtg-card-gallery {
  width: 100%;
  max-width: 100%;
  margin: 28px 0;
  box-sizing: border-box;
}
.mtg-card-gallery-featured {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}
.mtg-card-gallery-featured-button {
  display: block;
  max-width: 440px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}
.mtg-card-gallery-featured-image {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(2, 6, 23, 0.65);
}
.mtg-card-gallery-thumbnails {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 104px;
  grid-template-rows: 146px;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.mtg-card-gallery-thumbnail {
  width: 104px;
  height: 146px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.72;
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.mtg-card-gallery-thumbnail:hover,
.mtg-card-gallery-thumbnail.is-active {
  opacity: 1;
  transform: translateY(-2px);
  border-color: #3b82f6;
}
.mtg-card-gallery-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.mtg-card-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mtg-card-gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(8px);
}
.mtg-card-gallery-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 92vw;
  max-height: 90vh;
}
.mtg-card-gallery-modal__figure {
  margin: 0;
  text-align: center;
}
.mtg-card-gallery-modal__figure img {
  max-height: 78vh;
  max-width: 78vw;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}
.mtg-card-gallery-modal__figure figcaption {
  color: #e2e8f0;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
}
.mtg-card-gallery-modal__close,
.mtg-card-gallery-modal__nav {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.mtg-card-gallery-modal__close {
  position: fixed;
  top: 18px;
  right: 18px;
}
.mtg-card-gallery-modal__counter {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.85);
  padding: 6px 12px;
  border-radius: 9999px;
}

/* [html_sitemaps] */
.sitemap-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 0 40px;
}
.sitemap-relative-dates ul,
.sitemap-dates-list-container ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 14px 0 24px;
}
.sitemap-relative-dates li a,
.sitemap-dates-list-container li a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
body.light-mode .sitemap-relative-dates li a,
body.light-mode .sitemap-dates-list-container li a {
  background: #f1f5f9;
  color: #0f172a;
}
.sitemap-articles-container ul {
  list-style: disc;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

/* [evergreen_articles] */
.evergreen-hidden-section { display: none !important; }
.evergreen-articles-container { margin: 28px 0; }
.evergreen-articles-title { font-size: 16px; font-weight: 800; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.evergreen-article-post-large-image { display: block; border-radius: 12px; overflow: hidden; background: rgba(15, 23, 42, 0.72); border: 1px solid rgba(148, 163, 184, 0.2); text-decoration: none; }
.evergreen-article-post-large-image img { width: 100%; height: 170px; object-fit: cover; display: block; }
.evergreen-article-post-title { padding: 12px; margin: 0; font-size: 14px; font-weight: 700; color: #f8fafc; line-height: 1.35; }
body.light-mode .evergreen-article-post-large-image { background: #ffffff; }
body.light-mode .evergreen-article-post-title { color: #0f172a; }
.evergreen-articles-buttons-container { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.evergreen-article-slide-selector { width: 32px; height: 32px; border-radius: 9999px; border: 1px solid rgba(148, 163, 184, 0.35); background: rgba(15, 23, 42, 0.75); color: #f8fafc; font-weight: 700; cursor: pointer; }
