/* ArionPlay1.ph Design System - Official ArionPlay Flame Orange & Carbon Charcoal (Mobile-First Responsive) */
:root {
  /* Carbon Charcoal Surfaces (matched to arionplay.com #141417 / #1F2024 / #25272D / #2F333A) */
  --bg: #121418;
  --bg-deep: #0D0F12;
  --surface: #1B1E24;
  --surface-elevated: #242830;
  --surface-soft: #2F333A;

  /* Official ArionPlay Logo Flame Palette (#F3722C / #E86819 / #DC6426 / #BE4927) */
  --accent: #F3722C;
  --accent-mid: #E86819;
  --accent-deep: #BE4927;
  --accent-bright: #FF8E4D;
  --accent-hover: #FF7E36;
  --accent-soft: rgba(243, 114, 44, 0.14);
  --accent-border: rgba(243, 114, 44, 0.38);

  /* Official Bonus Gold & Verified Emerald Accents */
  --gold: #FFDE44;
  --gold-soft: rgba(255, 222, 68, 0.13);
  --accent2: #22C55E;
  --accent2-soft: rgba(34, 197, 94, 0.14);
  --danger: #EF4444;

  /* High-Contrast Typography & Borders (WCAG AA/AAA) */
  --text: #FFFFFF;
  --text-muted: #C6CDD9;
  --text-subtle: #9BA4B5;
  --border: #323742;
  --border-strong: #444B59;

  /* Layout & Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --max-width: 1220px;
  --font-heading: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-card: 0 12px 32px -12px rgba(0, 0, 0, 0.62);
  --shadow-glow: 0 0 0 1px rgba(243, 114, 44, 0.34), 0 14px 36px -12px rgba(232, 104, 25, 0.28);
  --shadow-cta: 0 10px 26px -10px rgba(232, 104, 25, 0.72);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(960px 480px at 12% -8%, rgba(243, 114, 44, 0.12), transparent 62%),
    radial-gradient(760px 420px at 88% 2%, rgba(255, 222, 68, 0.05), transparent 58%),
    var(--bg);
  min-height: 100vh;
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(243, 114, 44, 0.2);
}

body.drawer-open {
  overflow: hidden;
}

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

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

a:hover {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.52rem, 3.2vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.26rem, 2.2vw, 1.85rem);
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
}

h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 8px;
}

p {
  margin: 0 0 15px;
  color: var(--text-muted);
}

ul, ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-muted);
}

li {
  margin-bottom: 7px;
}

strong {
  color: var(--text);
  font-weight: 600;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-mid);
  color: #FFFFFF;
  font-weight: 700;
  padding: 12px 18px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(18, 20, 24, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px -10px rgba(0, 0, 0, 0.75);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.brand-link img {
  height: 36px;
  width: auto;
  max-width: 176px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-elevated);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-ghost-sm,
.btn-gold-sm,
.btn-primary-cta,
.btn-secondary-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  touch-action: manipulation;
}

.btn-ghost-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface-elevated);
  border-color: var(--border-strong);
}

.btn-ghost-sm:hover {
  color: var(--accent-bright);
  border-color: var(--accent);
  background: var(--surface-soft);
}

.btn-gold-sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.92rem;
  color: #FFFFFF;
  background: linear-gradient(135deg, #DC5E18 0%, #BE4927 100%);
  box-shadow: 0 6px 18px -8px rgba(232, 104, 25, 0.7);
}

.btn-gold-sm:hover {
  color: #FFFFFF;
  background: linear-gradient(135deg, #F3722C 0%, #DC6426 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(243, 114, 44, 0.8);
}

.btn-primary-cta {
  min-height: 48px;
  padding: 0 26px;
  font-size: 0.98rem;
  color: #FFFFFF;
  background: linear-gradient(135deg, #E86819 0%, #BE4927 100%);
  box-shadow: var(--shadow-cta);
  border-color: rgba(255, 166, 107, 0.28);
}

.btn-primary-cta:hover {
  color: #FFFFFF;
  background: linear-gradient(135deg, #F3722C 0%, #DC6426 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(243, 114, 44, 0.85);
}

.btn-secondary-guide {
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--surface-elevated);
  border-color: var(--border-strong);
}

.btn-secondary-guide:hover {
  color: var(--accent-bright);
  border-color: var(--accent);
  background: var(--surface-soft);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--surface-soft);
}

/* Fixed Overlay Mobile Drawer (Never pushes page/subnav down) */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(3px);
}

.drawer-backdrop.is-open {
  display: block;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 130;
  max-height: calc(100dvh - 58px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border-bottom: 2px solid var(--accent-border);
  padding: 14px 14px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.85);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-drawer a.drawer-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.mobile-drawer a.drawer-link:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface-soft);
}

.mobile-drawer-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Subnav Category Strip */
.subnav-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.subnav-scroll {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}

.subnav-scroll::-webkit-scrollbar {
  display: none;
}

.subnav-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-full);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.subnav-pill:hover,
.subnav-pill[aria-current="page"] {
  color: #FFFFFF;
  background: linear-gradient(135deg, #DC5E18 0%, #BE4927 100%);
  border-color: var(--accent);
}

/* Breadcrumbs */
.breadcrumb-bar {
  padding: 12px 0 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-subtle);
  white-space: nowrap;
}

.breadcrumbs::-webkit-scrollbar {
  display: none;
}

.breadcrumbs li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--border-strong);
}

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

.breadcrumbs a:hover {
  color: var(--accent-bright);
}

/* Homepage Hero + 3-Slide Game Carousel */
.hero-section {
  padding: 26px 0 24px;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 26px;
  align-items: center;
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(243, 114, 44, 0.14), transparent 70%),
    linear-gradient(160deg, #22262F 0%, #191C22 100%);
  border: 1px solid var(--border);
  border-top: 2px solid rgba(243, 114, 44, 0.65);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

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

.hero-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: rgba(18, 20, 24, 0.72);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.hero-chip strong {
  color: var(--text);
}

.chip-ok {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* Carousel */
.carousel-wrap {
  position: relative;
  background: rgba(18, 20, 24, 0.68);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  min-width: 0;
}

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

.carousel-label {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.carousel-btn:hover {
  border-color: var(--accent);
  background: var(--accent-mid);
  color: #FFFFFF;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.slide-caption {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.slide-sub {
  font-size: 0.86rem;
  color: var(--text-subtle);
  margin-bottom: 12px;
  line-height: 1.45;
}

.slide-game-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-game-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-width: 0;
}

.mini-game-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(243, 114, 44, 0.35);
}

.portrait-box {
  width: 100%;
  aspect-ratio: 440 / 528;
  background: #14161B;
  overflow: hidden;
  position: relative;
}

.portrait-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mini-game-meta {
  padding: 8px;
}

.mini-game-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-game-rtp {
  display: block;
  font-size: 0.76rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dot {
  width: 28px;
  height: 8px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--border-strong);
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
}

.carousel-dot[aria-selected="true"] {
  background: var(--accent);
  width: 42px;
}

/* Trust Strip */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

.trust-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.65;
}

.trust-kicker {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
  margin-bottom: 3px;
}

.trust-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.trust-note {
  display: block;
  font-size: 0.81rem;
  color: var(--text-subtle);
  margin-top: 2px;
  line-height: 1.38;
}

/* Main Content Layout */
.page-main {
  padding: 14px 0 60px;
}

.page-hero {
  background:
    radial-gradient(480px 220px at 0% 0%, rgba(243, 114, 44, 0.13), transparent 72%),
    linear-gradient(155deg, #242830 0%, #1B1E24 100%);
  border: 1px solid var(--border);
  border-top: 2px solid rgba(243, 114, 44, 0.6);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin: 12px 0 22px;
  box-shadow: var(--shadow-card);
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: rgba(18, 20, 24, 0.72);
  border: 1px solid var(--border-strong);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.meta-pill-gold {
  color: var(--accent-bright);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.meta-pill-green {
  color: var(--accent2);
  border-color: rgba(34, 197, 94, 0.35);
  background: var(--accent2-soft);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.article-body {
  min-width: 0;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}

.section-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-top: 22px;
  box-shadow: var(--shadow-card);
}

.section-block > h2:first-child {
  margin-top: 0;
}

/* Expert Insight, TL;DR & Answer Capsule */
.expert-callout {
  background: rgba(243, 114, 44, 0.09);
  border: 1px solid rgba(243, 114, 44, 0.32);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  margin-bottom: 18px;
}

.expert-callout p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.tldr-box {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  margin-bottom: 22px;
}

.tldr-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent2);
  margin-bottom: 5px;
}

.tldr-box p {
  margin: 0;
  color: var(--text);
}

.answer-capsule {
  background: var(--surface-elevated);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 15px;
  margin: 0 0 15px;
  color: var(--text);
  font-weight: 500;
}

.tip-box {
  background: rgba(18, 20, 24, 0.65);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0;
}

.tip-box p {
  margin: 0;
}

/* Interactive Rollover & Cashout Estimator Widget */
.estimator-card {
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(243, 114, 44, 0.14), transparent 72%),
    linear-gradient(165deg, #232730 0%, #171A20 100%);
  border: 1px solid rgba(243, 114, 44, 0.48);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-glow);
}

.estimator-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.estimator-header h2,
.estimator-header h3 {
  margin: 0;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  align-items: start;
}

.estimator-controls {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.field-group {
  min-width: 0;
}

.field-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.field-group input[type="number"],
.field-group select {
  width: 100%;
  max-width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #121418;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.preset-btn {
  min-height: 38px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
}

.preset-btn:hover,
.preset-btn.is-active {
  background: linear-gradient(135deg, #DC5E18 0%, #BE4927 100%);
  color: #FFFFFF;
  border-color: var(--accent);
}

.estimator-results {
  background: rgba(14, 16, 20, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  gap: 11px;
  min-width: 0;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.result-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.result-label {
  font-size: 0.85rem;
  color: var(--text-subtle);
  line-height: 1.3;
}

.result-value {
  font-family: var(--font-heading);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  line-height: 1.3;
}

.result-value.is-gold {
  color: var(--gold);
  font-size: 1.3rem;
}

.result-value.is-green {
  color: var(--accent2);
  font-size: 0.94rem;
}

.verdict-banner {
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  background: var(--accent2-soft);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.48;
}

.verdict-banner.is-warn {
  background: var(--accent-soft);
  border-color: rgba(243, 114, 44, 0.45);
}

/* Game Portrait Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.game-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(243, 114, 44, 0.32);
}

.game-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.game-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(18, 20, 24, 0.78);
  color: var(--accent-bright);
  border: 1px solid var(--accent-border);
}

.game-badge-rtp {
  color: var(--gold);
  border-color: rgba(255, 222, 68, 0.35);
}

.game-card-title {
  font-family: var(--font-heading);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.game-card-desc {
  font-size: 0.86rem;
  color: var(--text-subtle);
  margin: 0 0 12px;
  flex: 1;
  line-height: 1.45;
}

.game-card-actions {
  display: flex;
  gap: 8px;
}

.game-card-actions a {
  flex: 1;
  min-height: 40px;
  font-size: 0.84rem;
  padding: 0 10px;
}

/* Tables with Mobile Swipe Cue */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 16px 0 20px;
  background: #14171D;
  position: relative;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.92rem;
}

thead th {
  background: var(--surface-elevated);
  color: var(--accent-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-strong);
}

tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

tbody tr:hover {
  background: rgba(243, 114, 44, 0.05);
}

.status-ok {
  color: var(--accent2);
  font-weight: 700;
}

.status-warn {
  color: var(--gold);
  font-weight: 700;
}

/* Directory & Related Link Cards */
.hub-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.hub-link-card {
  display: block;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
}

.hub-link-card:hover {
  border-color: var(--accent);
  background: var(--surface-soft);
  transform: translateY(-2px);
}

.hub-link-card h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  color: var(--text);
}

.hub-link-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-subtle);
  line-height: 1.45;
}

/* Sidebar */
.sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.sidebar-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--accent-bright);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.sidebar-list li {
  margin: 0;
}

.sidebar-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.89rem;
  font-weight: 500;
}

.sidebar-list a:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface-soft);
}

/* Author / Analyst Box */
.analyst-box {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 24px;
}

.analyst-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F3722C, #BE4927);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -6px rgba(243, 114, 44, 0.65);
}

.analyst-name {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.analyst-role {
  font-size: 0.84rem;
  color: var(--accent-bright);
  font-weight: 600;
  margin-bottom: 6px;
}

.analyst-bio {
  font-size: 0.89rem;
  color: var(--text-muted);
  margin: 0;
}

/* FAQ Accordions */
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.faq-item[open] {
  border-color: var(--accent-border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  touch-action: manipulation;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  padding: 12px 16px 15px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 0.94rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Responsible Gaming Block */
.rg-panel {
  background: rgba(27, 30, 36, 0.96);
  border: 1px solid rgba(34, 197, 94, 0.38);
  border-left: 4px solid var(--accent2);
  border-radius: var(--radius-md);
  padding: 18px 18px;
  margin-top: 24px;
}

.rg-panel h2,
.rg-panel h3 {
  margin-top: 0;
  color: var(--accent2);
}

/* CTA Banner */
.cta-band {
  background: linear-gradient(135deg, rgba(243, 114, 44, 0.16), rgba(190, 73, 39, 0.14));
  border: 1px solid rgba(243, 114, 44, 0.45);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.cta-band h2,
.cta-band h3 {
  margin: 0 0 6px;
}

.cta-band p {
  margin: 0;
  max-width: 640px;
}

/* 3-Row Authority Footer */
.site-footer {
  background: var(--bg-deep);
  border-top: 2px solid rgba(243, 114, 44, 0.45);
  padding: 36px 0 32px;
}

.footer-brand-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.footer-brand-bar img {
  height: 30px;
  width: auto;
}

.footer-row-1 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.footer-col h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-bright);
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.footer-col li {
  margin: 0;
}

.footer-col a {
  color: var(--text-subtle);
  font-size: 0.87rem;
  display: inline-block;
  padding: 2px 0;
}

.footer-col a:hover {
  color: var(--accent-bright);
}

.footer-row-2 {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 12px;
}

.trust-badge-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.trust-group-label {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
  min-width: 96px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-pill img {
  height: 22px;
  width: auto;
  border-radius: 4px;
}

.badge-pill-pay {
  padding: 3px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
}

.badge-pill-pay img {
  height: 26px;
  width: auto;
}

.badge-pill-dark {
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.badge-pill-21 {
  background: #FFFFFF;
  color: #121418;
  border: 2px solid var(--accent);
}

.badge-pill-21:hover {
  background: var(--accent-mid);
  color: #FFFFFF;
}

.footer-row-3 {
  padding-top: 18px;
  display: grid;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-subtle);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Sticky Mobile Bar (Reveals cleanly after scrolling past Hero so y=0 is NEVER occluded) */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(18, 20, 24, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--accent-border);
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  gap: 10px;
  transform: translateY(115%);
  transition: transform 0.24s ease;
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.65);
}

.mobile-sticky-bar.is-visible {
  transform: translateY(0);
}

.mobile-sticky-bar a {
  flex: 1;
  min-height: 46px;
  font-size: 0.92rem;
  padding: 0 12px;
}

/* Age Gate Dialog */
dialog.age-dialog {
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 22px;
  max-width: 460px;
  width: calc(100% - 24px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
}

dialog.age-dialog::backdrop {
  background: rgba(10, 11, 14, 0.82);
  backdrop-filter: blur(5px);
}

.age-dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.age-dialog-actions button,
.age-dialog-actions a {
  flex: 1;
}

/* Tablet Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero-shell {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 20px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-row-1 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile Breakpoint (<= 768px) — Thumb-First Philippine Smartphone Experience */
@media (max-width: 768px) {
  body {
    padding-bottom: 72px;
    font-size: 15.5px;
    line-height: 1.6;
  }

  .container {
    padding: 0 12px;
  }

  .header-inner {
    min-height: 58px;
    gap: 8px;
  }

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

  .header-actions .btn-ghost-sm {
    display: none;
  }

  .header-actions .btn-gold-sm {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.86rem;
  }

  .subnav-scroll {
    padding: 6px 0;
    gap: 6px;
  }

  .subnav-pill {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.8rem;
  }

  /* Compact Hero & Inner Page Hero so CTAs stay visible above the fold */
  .hero-section {
    padding: 12px 0 16px;
  }

  .hero-shell {
    padding: 16px 14px;
    gap: 16px;
    border-radius: var(--radius-md);
  }

  .eyebrow-badge {
    font-size: 0.74rem;
    padding: 4px 10px;
    margin-bottom: 10px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  h1 {
    font-size: clamp(1.38rem, 5.6vw, 1.72rem);
    line-height: 1.18;
    margin-bottom: 10px;
  }

  .hero-lead {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
  }

  .hero-ctas .btn-primary-cta,
  .hero-ctas .btn-secondary-guide {
    min-height: 46px;
    padding: 0 10px;
    font-size: 0.86rem;
    width: 100%;
  }

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

  .hero-chip {
    padding: 7px 8px;
    font-size: 0.76rem;
    gap: 5px;
  }

  .page-hero {
    padding: 16px 14px;
    margin: 10px 0 16px;
    border-radius: var(--radius-md);
  }

  .page-hero-meta {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    margin-bottom: 10px;
  }

  .page-hero-meta::-webkit-scrollbar {
    display: none;
  }

  .meta-pill {
    font-size: 0.74rem;
    padding: 3px 9px;
    flex-shrink: 0;
  }

  .article-card,
  .section-block,
  .estimator-card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .section-block {
    margin-top: 16px;
  }

  /* Carousel mobile touch-swipe strip: unclipped full-title cards! */
  .carousel-wrap {
    padding: 12px;
  }

  .slide-game-trio {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    padding-bottom: 2px;
  }

  .slide-game-trio::-webkit-scrollbar {
    display: none;
  }

  .mini-game-card {
    flex: 0 0 46%;
    min-width: 136px;
    scroll-snap-align: start;
  }

  .mini-game-title {
    font-size: 0.84rem;
  }

  .mini-game-rtp {
    font-size: 0.74rem;
  }

  /* Trust bar compact 2x2 */
  .trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .trust-item {
    padding: 11px 11px;
  }

  .trust-val {
    font-size: 0.88rem;
  }

  .trust-note {
    font-size: 0.75rem;
  }

  /* Estimator mobile polish */
  .estimator-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .field-group select,
  .field-group input[type="number"] {
    height: 46px;
    font-size: 0.9rem;
    padding: 0 11px;
  }

  .preset-row {
    gap: 5px;
  }

  .preset-btn {
    min-height: 36px;
    font-size: 0.78rem;
  }

  .result-row {
    align-items: flex-start;
  }

  .result-label {
    font-size: 0.8rem;
    max-width: 52%;
  }

  .result-value {
    font-size: 0.95rem;
    max-width: 48%;
  }

  .result-value.is-gold {
    font-size: 1.18rem;
  }

  .result-value.is-green {
    font-size: 0.84rem;
  }

  /* 2-Column Native Mobile Casino Game Grid */
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .game-card-body {
    padding: 10px;
  }

  .game-badges {
    gap: 4px;
    margin-bottom: 6px;
  }

  .game-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
  }

  .game-card-title {
    font-size: 0.92rem;
    margin-bottom: 4px;
  }

  .game-card-desc {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }

  .game-card-actions {
    flex-direction: column;
    gap: 6px;
  }

  .game-card-actions a {
    min-height: 38px;
    font-size: 0.8rem;
  }

  .hub-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Mobile Table Swipe Affordance */
  .table-wrap::before {
    content: "Swipe table horizontally ->";
    display: block;
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--accent-bright);
    background: var(--surface-elevated);
    padding: 5px 10px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    left: 0;
  }

  table {
    min-width: 470px;
    font-size: 0.85rem;
  }

  thead th,
  tbody td {
    padding: 9px 10px;
  }

  /* Compact 2-Column Mobile Footer (Cuts footer height > 50%) */
  .site-footer {
    padding: 26px 0 28px;
  }

  .footer-brand-bar {
    padding-bottom: 16px;
    margin-bottom: 18px;
  }

  .footer-row-1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
    padding-bottom: 20px;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-col:last-child ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
  }

  .trust-group-label {
    width: 100%;
    min-width: 0;
    margin-bottom: -2px;
  }

  .cta-band {
    padding: 18px 14px;
  }

  .cta-band .hero-ctas {
    width: 100%;
  }

  .analyst-box {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .analyst-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
  }

  .mobile-sticky-bar {
    display: flex;
  }
}

/* Extra-Narrow PH Android Screens (<= 380px, e.g. 360x800) */
@media (max-width: 380px) {
  .brand-link img {
    height: 25px;
    max-width: 126px;
  }
  .header-actions .btn-gold-sm {
    padding: 0 13px;
    font-size: 0.82rem;
  }
  h1 {
    font-size: 1.32rem;
  }
  .hero-lead {
    font-size: 0.88rem;
  }
  .mini-game-card {
    flex: 0 0 56%;
    min-width: 132px;
  }
  .preset-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
