/*
Theme Name: Royal138 Slot
Theme URI: https://www.royal-138.com/
Author: Royal138
Author URI: https://www.royal-138.com/
Description: Tema SEO ringan untuk Royal138 - media informasi situs slot gacor terpercaya di Indonesia. Desain gelap-emas dengan Google Fonts Poppins & Raleway.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: royal138
*/

:root {
  --gold: #ffd400;
  --gold-soft: #ffea80;
  --gold-deep: #ff9e00;
  --burnt: #c1480e;
  --red: #e03131;
  --green: #2f9e44;
  --bg: #0c0f16;
  --bg-2: #10141d;
  --panel: #151a26;
  --panel-2: #1a2130;
  --line: rgba(255, 212, 0, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #e8eaf0;
  --muted: #9aa3b5;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Raleway', 'Poppins', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }

h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.25; color: #fff; margin: 0 0 0.6em; font-weight: 800; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wide { max-width: 1280px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  font-family: var(--font-body);
  letter-spacing: 0.2px;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(180deg, #ffe14d 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: #191100;
  box-shadow: 0 6px 18px rgba(255, 176, 0, 0.35);
}
.btn-gold:hover { filter: brightness(1.06); color: #191100; }
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-ghost:hover { background: rgba(255, 212, 0, 0.08); color: var(--gold-soft); }
.btn-dark { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-soft); }

/* ---------- Topbar ---------- */
.topbar {
  background: linear-gradient(90deg, #171224, #241a2e 50%, #171224);
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
}
.topbar .ticker {
  display: inline-block;
  padding: 6px 0;
  animation: ticker 28s linear infinite;
}
.topbar .ticker b { color: var(--gold); }
@keyframes ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .topbar .ticker { animation: none; padding-left: 20px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 15, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.site-branding img { max-height: 46px; width: auto; display: block; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 9px 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 8px;
}
.main-nav a:hover { color: var(--gold); background: rgba(255, 212, 0, 0.07); }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow);
}
.main-nav .menu-item-has-children:hover .sub-menu,
.main-nav .menu-item-has-children:focus-within .sub-menu { display: flex; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .btn { padding: 9px 20px; font-size: 0.85rem; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold);
  font-size: 1.2rem;
  padding: 6px 12px;
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .header-cta .btn-ghost { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
  }
  .main-nav ul { flex-direction: column; }
  .main-nav .sub-menu { display: flex; position: static; border: 0; background: transparent; padding: 0 0 0 16px; box-shadow: none; }
  body.nav-open .main-nav { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 420px at 70% -10%, rgba(255, 158, 0, 0.16), transparent 65%),
    radial-gradient(700px 380px at 8% 110%, rgba(255, 212, 0, 0.08), transparent 60%),
    linear-gradient(180deg, #10141d 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  position: relative;
  padding: 58px 0 64px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 212, 0, 0.1);
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
  letter-spacing: 0.4px;
}
.hero-badge::before { content: '★'; color: var(--gold); }
.hero h1 { font-size: 2.6rem; margin-bottom: 14px; }
.hero h1 .gold { color: var(--gold); }
.hero .lead { color: var(--muted); font-size: 1.02rem; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin: 26px 0 18px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-stats div b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 800;
}
.hero-stats div span { font-size: 0.78rem; color: var(--muted); }
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-chip {
  position: absolute;
  bottom: -16px;
  left: 22px;
  background: linear-gradient(180deg, #1d2534, #141926);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.hero-chip b { color: var(--gold); font-family: var(--font-display); }
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; padding: 42px 0 54px; }
  .hero h1 { font-size: 2rem; }
}

/* ---------- Sections ---------- */
.section { padding: 54px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.sec-head .kicker {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sec-head p { color: var(--muted); margin: 0; }

/* ---------- Feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card .icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 212, 0, 0.1);
  border: 1px solid var(--line);
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Game grid ---------- */
.game-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 980px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
.game-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(255, 176, 0, 0.18);
}
.game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.game-card .g-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 8px 10px;
  display: block;
}
.game-card .g-rtp {
  display: block;
  font-size: 0.68rem;
  color: var(--green);
  font-weight: 700;
  padding-bottom: 10px;
}

/* ---------- Provider cards ---------- */
.provider-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .provider-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .provider-grid { grid-template-columns: repeat(2, 1fr); } }
.provider-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.18s, transform 0.18s;
}
.provider-card:hover { border-color: var(--line); transform: translateY(-2px); }
.provider-card img { width: 74px; height: auto; border-radius: 8px; }
.provider-card b { display: block; color: #fff; font-size: 0.92rem; }
.provider-card span { font-size: 0.76rem; color: var(--muted); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table.rtp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.rtp-table th {
  background: var(--panel-2);
  color: var(--gold);
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-display);
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.rtp-table td { padding: 11px 16px; border-bottom: 1px solid var(--line-soft); }
.rtp-table tr:last-child td { border-bottom: 0; }
.rtp-table tr:hover td { background: rgba(255, 212, 0, 0.04); }
.rtp-live { color: var(--green); font-weight: 700; }
.rtp-hot { color: var(--gold); font-weight: 700; }

/* ---------- Article cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s, transform 0.18s;
}
.post-card:hover { border-color: var(--line); transform: translateY(-3px); }
.post-card .thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .pc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card .pc-meta { font-size: 0.74rem; color: var(--muted); margin-bottom: 8px; }
.post-card .pc-meta a { color: var(--gold); }
.post-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.post-card h3 a { color: #fff; }
.post-card h3 a:hover { color: var(--gold); }
.post-card p { color: var(--muted); font-size: 0.87rem; flex: 1; margin-bottom: 12px; }
.pc-more { font-weight: 600; font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
details.faq {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}
details.faq[open] { border-color: var(--line); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 20px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before {
  content: '+';
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: rgba(255, 212, 0, 0.12);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
details.faq[open] summary::before { content: '−'; }
details.faq .faq-body { padding: 0 20px 18px 56px; color: var(--muted); font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(255, 158, 0, 0.18), transparent 70%),
    linear-gradient(180deg, #191325, #100d18);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { font-size: 1.8rem; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 22px; }

/* ---------- Breadcrumb / page head ---------- */
.page-head { padding: 34px 0 6px; }
.crumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 8px; color: var(--gold); opacity: 0.7; }
.page-title { margin-bottom: 8px; }
.page-sub { color: var(--muted); max-width: 760px; }

/* ---------- Entry content ---------- */
.entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 26px 0 60px; }
@media (max-width: 1020px) { .entry-layout { grid-template-columns: 1fr; } }
.entry-content { min-width: 0; }
.entry-content h2 { margin-top: 1.6em; position: relative; padding-left: 16px; }
.entry-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
}
.entry-content h3 { margin-top: 1.4em; color: var(--gold-soft); }
.entry-content ul, .entry-content ol { padding-left: 22px; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.45em; }
.entry-content img { border-radius: 12px; border: 1px solid var(--line-soft); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: var(--panel);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 1.4em; min-width: 480px; }
.entry-content th { background: var(--panel-2); color: var(--gold); text-align: left; padding: 10px 14px; border: 1px solid var(--line-soft); }
.entry-content td { padding: 10px 14px; border: 1px solid var(--line-soft); }
.table-scroll { overflow-x: auto; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.8rem; color: var(--muted); margin-bottom: 22px; }
.entry-meta a { color: var(--gold); }
.entry-thumb img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line-soft); margin-bottom: 24px; }

.notice-box {
  background: rgba(255, 212, 0, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 0.92rem;
  margin: 1.5em 0;
}
.notice-box b { color: var(--gold); }

/* ---------- Sidebar ---------- */
.sidebar .widget {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
}
.sidebar .widget-title { font-size: 1rem; margin-bottom: 14px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 8px 0; border-bottom: 1px dashed var(--line-soft); font-size: 0.9rem; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar li a { color: var(--text); }
.sidebar li a:hover { color: var(--gold); }

/* ---------- Sidebar CTA ---------- */
.side-cta {
  background: linear-gradient(180deg, #1d2534, #141926);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: center;
}
.side-cta b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: #fff; margin-bottom: 6px; }
.side-cta p { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.side-cta .btn { width: 100%; }

/* ---------- Masuk (redirect) template ---------- */
.masuk-wrap { max-width: 760px; margin: 0 auto; padding: 48px 0 70px; }
.masuk-card {
  background: linear-gradient(180deg, #1b1626, #12101c);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 34px;
  text-align: center;
  box-shadow: var(--shadow);
}
.masuk-card .count {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--gold);
  margin: 6px 0;
}
.masuk-card .btn { font-size: 1.05rem; padding: 15px 40px; }
.masuk-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

/* ---------- Related posts ---------- */
.related { margin-top: 46px; }
.related h2 { font-size: 1.2rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; margin: 34px 0 10px; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: 8px 15px;
  border-radius: 9px;
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--panel);
}
.pagination .page-numbers.current { background: var(--gold); color: #191100; border-color: var(--gold); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--gold); color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #0e111a, #080a10);
  border-top: 1px solid var(--line);
  margin-top: 30px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 34px;
  padding: 46px 0 30px;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 0.95rem; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a { color: var(--muted); }
.site-footer li a:hover { color: var(--gold); }
.footer-about p { color: var(--muted); margin: 14px 0; }
.footer-contact li { color: var(--muted); }
.footer-strip { text-align: center; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.footer-strip img { max-width: 720px; width: 100%; opacity: 0.9; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 18px 0 26px;
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-disclaimer { font-size: 0.74rem; color: #6b7386; padding-bottom: 18px; max-width: 980px; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 70px 0 90px; }
.error-404 .code {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #ffe14d, #ff9e00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.error-404 .search-form { display: flex; max-width: 460px; margin: 26px auto; gap: 10px; }
.error-404 input[type="search"] {
  flex: 1;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
}
.error-404 .links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] {
  flex: 1;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
}
.search-form input:focus { border-color: var(--gold); }

/* ---------- Back link / misc ---------- */
.text-center { text-align: center; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
.wp-block-image img { border-radius: 12px; }
.sticky .post-card { border-color: var(--gold); }

/* Print */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .topbar, .cta-band, .sidebar { display: none; }
}

/* ---------- Easy TOC integration fixes (overflow + styling) ---------- */
#ez-toc-container {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 1.4em 0;
  max-width: 100%;
}
.ez-toc-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}
.ez-toc-title {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.ez-toc-title-toggle { flex-shrink: 0; }
.ez-toc-toggle { box-shadow: none !important; }
.ez-toc-list { max-width: 100%; margin: 8px 0 0 !important; }
.ez-toc-list li { margin: 4px 0; max-width: 100%; }
.ez-toc-list li a { color: var(--text); overflow-wrap: anywhere; }
.ez-toc-list li a:hover { color: var(--gold); }

/* ---------- Very small screens (<=380px): game cards ---------- */
@media (max-width: 380px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .game-card .g-name { font-size: 0.7rem; }
  .topbar .container { padding: 0 10px; }
}

/* Horizontal safety net (clip keeps sticky header working) */
html, body { overflow-x: clip; }

/* Easy TOC header - force flex layout (overrides plugin display:table) */
#ez-toc-container div.ez-toc-title-container {
  display: flex !important;
  width: 100% !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#ez-toc-container .ez-toc-title,
#ez-toc-container .ez-toc-title-toggle { display: inline-block !important; }
#ez-toc-container .ez-toc-pull-right { float: none !important; margin-left: 0 !important; flex-shrink: 0; }

/* Easy TOC toggle button: ensure icon fits (6px clip fix) */
#ez-toc-container .ez-toc-pull-right { min-width: 52px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
#ez-toc-container .ez-toc-js-icon-con { display: inline-flex; align-items: center; max-width: 100%; }
#ez-toc-container .ez-toc-js-icon-con span { max-width: 100%; }
