/* ============================================================
   EntrePoker — El Portal de Poker de Latinoamérica
   Design system: black base + golden-yellow accent (Coquimbo Unido "aurinegro"), card & chip motifs.
   Fonts: Playfair Display (display) + Inter (body), Google Fonts.
   Static site, no build step.
   ============================================================ */

:root {
  /* Palette */
  --felt-deep: #0b0b0c;      /* page background        */
  --felt: #141416;           /* primary black surface  */
  --felt-soft: #1d1d21;      /* raised felt surfaces   */
  --felt-line: #2f2f36;      /* borders on felt        */
  --gold: #ffe20a;           /* primary accent (Coquimbo yellow) */
  --gold-bright: #fff06b;    /* hover / highlights     */
  --gold-deep: #caa300;      /* pressed / borders      */
  --card-red: #e23b4e;       /* hearts & diamonds      */
  --paper: #ffffff;          /* playing-card white     */
  --ink: #0b0b0c;            /* text on yellow/card (dark) */
  --text: #f4f2ea;           /* text on felt           */
  --muted: #b6b2a6;          /* secondary text on felt */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --max-w: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}

/* Skip link: visually hidden until keyboard focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold-bright);
  color: var(--ink);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 9px 0;
}
.skip-link:focus { left: 0; color: var(--ink); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 18% -8%, rgba(255, 226, 10, 0.05) 0%, transparent 62%),
    radial-gradient(900px 540px at 88% 4%, rgba(255, 226, 10, 0.10) 0%, transparent 55%),
    var(--felt-deep);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: #fff2a6; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(34px, 6vw, 58px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: clamp(19px, 2.6vw, 24px); }

p { margin: 0 0 1.1em; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Utility ---------- */
.muted { color: var(--muted); }
.gold { color: var(--gold-bright); }
.suit-red { color: var(--card-red); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: "♠"; content: "♠" / ""; font-size: 11px; opacity: 0.8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(255, 226, 10, 0.28);
}
.btn-gold:hover { color: var(--ink); box-shadow: 0 8px 24px rgba(255, 240, 107, 0.4); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--felt-line);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47, 47, 54, 0.6);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand .logo-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand em { font-style: normal; color: var(--gold-bright); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-bright); }
.site-nav .btn { padding: 9px 18px; font-size: 14px; }
.site-nav a.btn-gold, .site-nav a.btn-gold:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--felt-line);
  border-radius: 8px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  padding: 6px 11px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 80px;
  text-align: center;
  border-bottom: 1px solid rgba(47, 47, 54, 0.5);
}
.hero .container { position: relative; z-index: 2; max-width: 880px; }

.hero .badge {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 26px;
  background: rgba(255, 226, 10, 0.08);
}

.hero h1 em { font-style: normal; color: var(--gold-bright); }

.hero .lead {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Decorative floating suits */
.hero .suits {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.hero .suits span {
  position: absolute;
  font-size: 120px;
  opacity: 0.05;
  color: var(--paper);
  transform: rotate(-14deg);
}
.hero .suits .s1 { top: 6%; left: 4%; }
.hero .suits .s2 { bottom: 4%; right: 6%; transform: rotate(12deg); font-size: 150px; }
.hero .suits .s3 { top: 46%; left: 78%; font-size: 80px; transform: rotate(-6deg); }
.hero .suits .s4 { bottom: 12%; left: 14%; font-size: 70px; transform: rotate(20deg); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid rgba(47, 47, 54, 0.4); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards (article / feature) ---------- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: linear-gradient(180deg, var(--felt-soft), var(--felt));
  border: 1px solid var(--felt-line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-deep); }

.card .suit-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(255, 226, 10, 0.12);
  border: 1px solid var(--gold-deep);
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.card .suit-icon.red { color: var(--card-red); background: rgba(216, 31, 60, 0.12); border-color: rgba(216, 31, 60, 0.5); }

.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--gold-bright); }
.card p { color: var(--muted); font-size: 15.5px; flex: 1; }

.card .card-link { font-weight: 700; font-size: 14.5px; }
.card .card-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Chip badges (stats) ---------- */
.chip-row { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.chip {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 2px dashed var(--gold-deep);
  outline: 6px solid var(--felt-soft);
  background: radial-gradient(circle at 35% 30%, var(--felt-soft), var(--felt-deep));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}
.chip strong { font-family: var(--font-display); font-size: 26px; color: var(--gold-bright); line-height: 1.1; }
.chip span { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Tables (torneos) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--felt-line); border-radius: var(--radius); }
table.ep-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--felt); }
.ep-table th, .ep-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid rgba(47, 47, 54, 0.55); }
.ep-table th {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--felt-deep);
}
.ep-table td { font-size: 15px; color: var(--text); }
.ep-table td .sub { display: block; font-size: 13px; color: var(--muted); }
.ep-table tr:last-child td { border-bottom: none; }

/* ---------- Article pages ---------- */
.article-hero { padding: 70px 0 34px; border-bottom: 1px solid rgba(47, 47, 54, 0.5); }
.article-hero .container, .article-body .container { max-width: 760px; }
.article-hero .meta { color: var(--muted); font-size: 14px; margin-top: 10px; }

.article-body { padding: 44px 0 80px; }
.article-body h2 { margin-top: 1.6em; font-size: clamp(22px, 3vw, 30px); }
.article-body h3 { margin-top: 1.4em; }
.article-body ul, .article-body ol { color: var(--text); padding-left: 24px; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 1.4em 0;
  padding: 16px 22px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 226, 10, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-style: italic;
}
.article-body .callout {
  background: linear-gradient(180deg, var(--felt-soft), var(--felt));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 1.6em 0;
}
.article-body .callout strong { color: var(--gold-bright); }

.back-link { display: inline-block; margin-bottom: 18px; font-size: 14px; font-weight: 600; }

/* ---------- Community / social ---------- */
.social-cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(180deg, var(--felt-soft), var(--felt));
  border: 1px solid var(--felt-line);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.social-card:hover { transform: translateY(-3px); border-color: var(--gold-deep); color: var(--text); }
.social-card .icon { font-size: 30px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255, 226, 10, 0.1); border: 1px solid var(--gold-deep); }
.social-card strong { display: block; font-size: 16.5px; }
.social-card span { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(47, 47, 54, 0.6);
  background: #08080a;
  padding: 52px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 34px;
}
.site-footer .footer-h {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--muted); font-size: 14.5px; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 320px; }

.footer-legal {
  border-top: 1px solid rgba(47, 47, 54, 0.45);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--card-red);
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
  margin-right: 10px;
  vertical-align: middle;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--felt-deep);
    border-bottom: 1px solid var(--felt-line);
    padding: 10px 22px 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(47, 47, 54, 0.35); }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav .btn { margin-top: 12px; text-align: center; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 54px 0; }
}

/* ---------- Language switcher (header) ---------- */
.site-nav a.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--felt-line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.site-nav a.lang-switch::before { content: "\1F310"; font-size: 13px; line-height: 1; }
.site-nav a.lang-switch:hover { border-color: var(--gold); color: var(--gold-bright); }
@media (max-width: 860px) {
  .site-nav a.lang-switch { justify-content: center; margin-top: 12px; }
}

/* ---------- Language gateway (root /) ---------- */
.lang-gateway {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 22px;
}
.lang-gateway .gateway-card { max-width: 540px; }
.lang-gateway .logo-mark { width: 66px; height: 66px; margin: 0 auto 24px; }
.lang-gateway .eyebrow { justify-content: center; }
.lang-gateway h1 { font-size: clamp(30px, 6vw, 46px); margin-bottom: 0.4em; }
.lang-gateway h1 em { font-style: normal; color: var(--gold-bright); }
.lang-gateway .lead { color: var(--muted); font-size: 18px; margin: 0 auto 32px; max-width: 440px; }
.lang-gateway .choices { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.lang-gateway .choices .btn { min-width: 200px; }
.lang-gateway .choices .btn small { display: block; font-weight: 600; font-size: 12px; opacity: 0.75; letter-spacing: 0.04em; }
.lang-gateway .fineprint { margin-top: 30px; font-size: 13px; color: var(--muted); }

/* ============================================================
   News-portal layout (home) — magazine grid in EntrePoker brand
   ============================================================ */

/* Responsible-gaming top bar */
.topbar { background: #08080a; border-bottom: 1px solid rgba(47, 47, 54,.5); font-size: 12.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.topbar .rg { color: var(--muted); }
.topbar .rg strong { color: var(--text); font-weight: 600; }
.topbar .age { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--card-red); color: var(--text); font-weight: 800; font-size: 11px; flex: 0 0 auto; }

/* Portal header: logo + search + utilities */
.portal-header { background: rgba(11, 11, 12,.96); border-bottom: 1px solid rgba(47, 47, 54,.6); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); }
.portal-header .container { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.portal-header .brand { font-size: 25px; }
.portal-header .brand .logo-mark { width: 40px; height: 40px; }
.search { flex: 1; max-width: 520px; position: relative; }
.search input { width: 100%; padding: 11px 16px 11px 42px; border-radius: 999px; border: 1px solid var(--felt-line); background: var(--felt-deep); color: var(--text); font-size: 15px; font-family: var(--font-body); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 226, 10,.15); }
.search .search-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.header-utils { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-utils a { color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.header-utils a:hover { color: var(--gold-bright); }
.header-utils .lang-switch { border: 1px solid var(--felt-line); border-radius: 999px; padding: 6px 13px; display: inline-flex; align-items: center; gap: 6px; }
.header-utils .lang-switch::before { content: "\1F310"; font-size: 13px; }
.header-utils .lang-switch:hover { border-color: var(--gold); }

/* Section nav strip */
.nav-strip { background: var(--felt-deep); border-bottom: 2px solid var(--gold-deep); }
.nav-strip .container { display: flex; align-items: stretch; gap: 0; overflow-x: auto; scrollbar-width: none; }
.nav-strip .container::-webkit-scrollbar { display: none; }
.nav-strip a { color: var(--text); font-weight: 700; font-size: 13.5px; letter-spacing: .02em; padding: 13px 15px; text-transform: uppercase; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav-strip a:hover, .nav-strip a[aria-current="page"] { color: var(--gold-bright); border-bottom-color: var(--gold); }

/* Live ticker */
.live-ticker { background: linear-gradient(90deg, rgba(255, 226, 10,.14), rgba(255, 226, 10,0) 60%); border-bottom: 1px solid var(--felt-line); }
.live-ticker .container { display: flex; align-items: center; gap: 16px; min-height: 46px; }
.live-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 6px; white-space: nowrap; flex: 0 0 auto; }
.live-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: ep-pulse 1.4s infinite; }
@keyframes ep-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-tag .dot { animation: none; } }
.live-items { display: flex; align-items: center; gap: 18px; overflow-x: auto; scrollbar-width: none; font-size: 14px; }
.live-items::-webkit-scrollbar { display: none; }
.live-items a { color: var(--text); font-weight: 600; white-space: nowrap; }
.live-items a:hover { color: var(--gold-bright); }
.live-items .sep { color: var(--felt-line); }

/* Portal main grid */
.portal { padding: 34px 0 24px; }
.portal .container { display: grid; grid-template-columns: minmax(0,1fr) 336px; gap: 40px; align-items: start; }
.portal .rail { display: flex; flex-direction: column; gap: 22px; }

/* Portal section heads */
.p-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--gold-deep); }
.p-head h2 { margin: 0; font-size: clamp(21px, 3vw, 27px); }
.p-head .kicker { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.p-head .more { margin-left: auto; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.section-block { margin-bottom: 44px; }

/* Thumbnails (brand gradient + suit glyph, no stock photos) */
.thumb { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(145deg, var(--felt-soft), var(--felt-deep)); border: 1px solid var(--felt-line); display: flex; align-items: center; justify-content: center; }
.thumb .glyph { font-size: 62px; color: rgba(255, 226, 10,.28); }
.thumb.red .glyph { color: rgba(216, 31, 60,.32); }

/* Featured hero row */
.featured { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; margin-bottom: 40px; }
.lead-story { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--felt-line); min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow); }
.lead-story .thumb { position: absolute; inset: 0; border: 0; border-radius: 0; }
.lead-story .thumb .glyph { font-size: 220px; }
.lead-story .overlay { position: relative; z-index: 2; padding: 30px 30px 32px; background: linear-gradient(0deg, rgba(4,21,15,.96) 0%, rgba(4,21,15,.78) 55%, rgba(4,21,15,0) 100%); }
.lead-story .cat { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 11px; border-radius: 5px; margin-bottom: 12px; }
.lead-story h3 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 8px; }
.lead-story h3 a { color: var(--text); }
.lead-story h3 a:hover { color: var(--gold-bright); }
.lead-story p { color: var(--muted); margin: 0; font-size: 15.5px; }
.featured .secondary { display: flex; flex-direction: column; gap: 20px; }
.mini-story { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: stretch; }
.mini-story .thumb { min-height: 84px; }
.mini-story .thumb .glyph { font-size: 40px; }
.mini-story .cat { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mini-story h3 { font-size: 17px; line-height: 1.25; margin: 4px 0 0; }
.mini-story h3 a { color: var(--text); }
.mini-story h3 a:hover { color: var(--gold-bright); }

/* Story list (main column) */
.story-list { display: flex; flex-direction: column; }
.story { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(47, 47, 54,.4); }
.story:first-child { padding-top: 0; }
.story .thumb { min-height: 118px; }
.story .thumb .glyph { font-size: 54px; }
.story .cat { color: var(--gold); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.story h3 { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.28; margin: 6px 0 8px; }
.story h3 a { color: var(--text); }
.story h3 a:hover { color: var(--gold-bright); }
.story p { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
.story .byline { font-size: 12.5px; color: var(--muted); }

/* Source directory grid (top poker sites) */
.source-intro { color: var(--muted); margin: -6px 0 22px; max-width: 720px; }
.source-sub { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 26px 0 14px; }
.source-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.source-card { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--felt-soft), var(--felt)); border: 1px solid var(--felt-line); border-radius: var(--radius-sm); padding: 16px 18px; transition: transform .16s ease, border-color .16s ease; }
.source-card:hover { transform: translateY(-3px); border-color: var(--gold-deep); }
.source-card .sc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.source-card .mono { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; background: rgba(255, 226, 10,.12); border: 1px solid var(--gold-deep); color: var(--gold-bright); font-family: var(--font-display); font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.source-card .sc-name { font-weight: 800; font-size: 16px; color: var(--text); line-height: 1.15; }
.source-card .pill { display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.source-card .pill.es { color: var(--card-red); }
.source-card p { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; flex: 1; }
.source-card .visit { font-size: 13px; font-weight: 700; margin-top: auto; }

/* Sidebar widgets */
.widget { background: linear-gradient(180deg, var(--felt-soft), var(--felt)); border: 1px solid var(--felt-line); border-radius: var(--radius); padding: 20px 22px; }
.widget > h2 { font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid rgba(47, 47, 54,.5); }
.widget.accent { border-color: var(--gold-deep); }
.rank-list { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: rk; }
.rank-list li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(47, 47, 54,.35); }
.rank-list li:last-child { border-bottom: 0; }
.rank-list li::before { counter-increment: rk; content: counter(rk); flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 226, 10,.12); border: 1px solid var(--gold-deep); color: var(--gold-bright); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.rank-list a { color: var(--text); font-weight: 700; font-size: 14.5px; }
.rank-list a:hover { color: var(--gold-bright); }
.rank-list .rk-sub { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-top: 2px; }
.series-list { list-style: none; margin: 12px 0 0; padding: 0; }
.series-list li { padding: 10px 0; border-bottom: 1px solid rgba(47, 47, 54,.35); }
.series-list li:last-child { border-bottom: 0; }
.series-list strong { display: block; color: var(--text); font-size: 15px; }
.series-list span { color: var(--muted); font-size: 12.5px; }
.widget .w-cta { margin-top: 14px; }
.widget .w-text { color: var(--muted); font-size: 13.5px; margin: 12px 0 0; }

/* Portal responsive */
@media (max-width: 980px) {
  .portal .container { grid-template-columns: 1fr; gap: 34px; }
  .portal .rail { flex-direction: row; flex-wrap: wrap; }
  .portal .rail .widget { flex: 1 1 260px; }
}
@media (max-width: 720px) {
  .portal-header .container { flex-wrap: wrap; min-height: 0; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .featured { grid-template-columns: 1fr; }
  .story { grid-template-columns: 120px 1fr; gap: 14px; }
  .story .thumb { min-height: 84px; }
  .portal .rail { flex-direction: column; }
  .header-utils { gap: 12px; }
}
@media (max-width: 440px) {
  .story { grid-template-columns: 1fr; }
  .story .thumb { min-height: 150px; }
  .mini-story { grid-template-columns: 84px 1fr; }
}


/* ============================================================
   Red / White / Blue theme — blue as the secondary accent
   (primary accent = red; base = navy blue; text = white)
   ============================================================ */
:root {
  --blue: #caa300;
  --blue-bright: #ffdf47;
  --blue-tint: rgba(255, 221, 0, 0.13);
}
a { color: var(--blue-bright); }
a:hover { color: #fff2a6; }
.card-link, .source-card .visit, .p-head .more, .back-link { color: var(--blue-bright); }
.card-link:hover, .source-card .visit:hover, .p-head .more:hover, .back-link:hover { color: #fff2a6; }
.source-card .mono { color: var(--blue-bright); background: var(--blue-tint); border-color: var(--blue); }
.source-card .pill.es { color: var(--blue-bright); }
.rank-list li::before { color: var(--blue-bright); background: var(--blue-tint); border-color: var(--blue); }
.source-card .visit { font-family: var(--font-body); }

/* Source-credit lines on posts & directory cards */
.src-credit { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; letter-spacing: .01em; }
.src-credit b { color: var(--blue-bright); font-weight: 700; }
.src-credit a { color: var(--blue-bright); }
.src-credit a:hover { color: #fff2a6; }
.lead-story .src-credit { color: #c9c4b6; margin-top: 10px; }
.mini-story .src-credit { font-size: 11px; line-height: 1.35; margin-top: 6px; }
.photo-credit { display: block; }
.attribution { font-size: 12.5px; color: var(--muted); font-style: italic; margin: 4px 0 22px; }

/* Official source photos retain their full 3:2 frame and embedded watermark. */
.thumb img { width: 100%; height: 100%; display: block; border-radius: inherit; }
.source-photo { object-fit: contain; background: #050505; }
.lead-story .thumb img { border-radius: 0; }
.article-photo { margin: 0 0 32px; }
.article-photo .source-photo { width: 100%; height: auto; display: block; border: 1px solid var(--felt-line); border-radius: var(--radius-sm); }
.article-photo .src-credit { margin-top: 8px; }

/* ============================================================
   Affiliate rooms layer — salas / rooms, Chile money pages,
   disclosure. Red / white / blue only (no green / gold).
   Reuses the felt (navy) surfaces + red (--gold*) and blue accents.
   ============================================================ */

/* Affiliate disclosure line at the top of a review page */
.aff-disclosure {
  font-size: 13.5px;
  color: var(--muted);
  background: var(--blue-tint);
  border: 1px solid var(--blue);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 0 0 22px;
}
.aff-disclosure a { color: var(--blue-bright); font-weight: 700; }
.aff-disclosure a:hover { color: #fff2a6; }

/* AEO "answer box" — the direct-answer summary at the top of Chile pages */
.answer-box {
  background: linear-gradient(180deg, var(--felt-soft), var(--felt));
  border: 1px solid var(--gold-deep);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 22px;
}
.answer-box p { margin: 0; color: var(--text); font-size: 16px; }
.answer-box strong { color: var(--gold-bright); }

/* Comparison-table registration cell sub-line (18+ | terms) */
.ep-table td .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; letter-spacing: .01em; }

/* Room review card */
.room-card {
  background: linear-gradient(180deg, var(--felt-soft), var(--felt));
  border: 1px solid var(--felt-line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 1.8em 0;
  box-shadow: var(--shadow);
}
.room-card-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.room-card-head h3 { margin: 0; font-size: clamp(21px, 3vw, 26px); }
.room-network {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-bright);
  border: 1px solid var(--blue);
  background: var(--blue-tint);
  border-radius: 999px;
  padding: 3px 11px;
}
.room-tagline { color: var(--muted); font-size: 15px; margin: 4px 0 16px; }

/* Headline bonus block (red accent) */
.bonus-box {
  background: rgba(255, 226, 10, .08);
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0 0 18px;
}
.bonus-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.6vw, 22px);
  color: var(--gold-bright);
  margin: 0 0 8px;
  line-height: 1.2;
}
.bonus-fine { color: var(--text); font-size: 14px; margin: 0; }

/* Two-column meta grid (rewards / availability) */
.meta-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0 0 18px; }
.meta-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 6px;
}
.meta-grid p { color: var(--muted); font-size: 14px; margin: 0; }

/* Pros / cons */
.pros-cons { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0 0 16px; }
.pros, .cons {
  border: 1px solid var(--felt-line);
  border-radius: var(--radius-sm);
  padding: 14px 16px 8px;
  background: var(--felt-deep);
}
.pros { border-top: 3px solid var(--blue); }
.cons { border-top: 3px solid var(--card-red); }
.list-title { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
.pros .list-title { color: var(--blue-bright); }
.cons .list-title { color: var(--card-red); }
.pros ul, .cons ul { margin: 0 0 6px; padding-left: 20px; }
.pros li, .cons li { color: var(--text); font-size: 13.8px; margin-bottom: 6px; }
.best-for { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.best-for strong { color: var(--text); }

/* CTA wrap under each room card */
.cta-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta-terms { font-size: 12.5px; color: var(--muted); }
.cta-terms a { color: var(--blue-bright); font-weight: 600; }
.cta-terms a:hover { color: #fff2a6; }

/* Pending affiliate CTA — disabled "Coming soon" chip (replaces the anchor
   until a real tracking link is wired in js/affiliates.js). */
.cta-pending {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--muted);
  background: var(--felt-deep);
  border: 1px dashed var(--felt-line);
  cursor: not-allowed;
  white-space: nowrap;
}

/* Responsible-gaming strip near CTAs */
.rg-strip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--felt-line);
  border-left: 3px solid var(--card-red);
  border-radius: var(--radius-sm);
  background: var(--felt-deep);
  padding: 16px 18px;
  margin: 1.8em 0 0;
}
.rg-strip .badge-18 { margin: 2px 0 0; flex: 0 0 auto; }
.rg-strip p { margin: 0; font-size: 13.5px; color: var(--muted); }
.rg-strip a { color: var(--blue-bright); font-weight: 700; }
.rg-strip a:hover { color: #fff2a6; }

@media (max-width: 560px) {
  .cta-wrap { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* Source favicons — live, nominative: the visitor's browser fetches each site's own
   icon via DuckDuckGo's privacy-respecting service. No third-party logos are hosted.
   If an icon fails to load, main.js reveals the monogram initials instead. */
.source-card .mono { position: relative; overflow: hidden; }
.source-card .mono .fav { width: 26px; height: 26px; border-radius: 5px; display: block; object-fit: contain; }
.source-card .mono .mono-txt { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.source-card .mono.noicon .fav { display: none; }
.source-card .mono.noicon .mono-txt { display: flex; }

/* ============================================================
   Chat widget (self-contained, same-origin backend)
   ============================================================ */
.ep-chat-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer; background: linear-gradient(135deg, #fff06b, #ffe20a); color: #0b0b0c; font-size: 26px; box-shadow: 0 8px 24px rgba(255,226,10,.4); display: flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.ep-chat-launcher:hover { transform: scale(1.06); }
.ep-chat-launcher.ep-open { background: #141416; }
.ep-chat-panel { position: fixed; right: 20px; bottom: 88px; z-index: 200; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: var(--felt); border: 1px solid var(--felt-line); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.5); display: flex; flex-direction: column; overflow: hidden; }
.ep-chat-panel[hidden] { display: none; }
.ep-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #141416; border-bottom: 1px solid var(--felt-line); }
.ep-chat-head strong { color: #fff; font-family: var(--font-display); font-size: 16px; }
.ep-chat-close { background: none; border: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ep-chat-close:hover { color: #fff; }
.ep-chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ep-msg { display: flex; }
.ep-msg-user { justify-content: flex-end; }
.ep-bub { max-width: 82%; padding: 10px 13px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.ep-msg-assistant .ep-bub { background: var(--felt-soft); color: var(--text); border-bottom-left-radius: 4px; }
.ep-msg-user .ep-bub { background: linear-gradient(135deg, #fff06b, #ffe20a); color: #0b0b0c; border-bottom-right-radius: 4px; }
.ep-typing .ep-bub { display: flex; gap: 4px; align-items: center; }
.ep-typing .ep-bub span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ep-blink 1.2s infinite; }
.ep-typing .ep-bub span:nth-child(2) { animation-delay: .2s; }
.ep-typing .ep-bub span:nth-child(3) { animation-delay: .4s; }
@keyframes ep-blink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }
.ep-chat-disc { font-size: 11px; color: var(--muted); text-align: center; padding: 6px 12px 0; }
.ep-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--felt-line); }
.ep-chat-input { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--felt-line); background: var(--felt-deep); color: var(--text); font-family: var(--font-body); font-size: 14.5px; }
.ep-chat-input:focus { outline: none; border-color: var(--gold); }
.ep-chat-send { padding: 10px 16px; border-radius: 10px; border: none; background: linear-gradient(135deg, #fff06b, #ffe20a); color: #0b0b0c; font-weight: 700; cursor: pointer; }
.ep-chat-send:disabled { opacity: .6; cursor: default; }
@media (max-width: 480px) { .ep-chat-panel { right: 8px; left: 8px; width: auto; bottom: 80px; } .ep-chat-launcher { right: 14px; bottom: 14px; } }

/* A11y utilities (added 2026-07-14 per audit) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Lift small uppercase labels off --gold (#ffe20a ~2.9:1) to --gold-bright (#fff06b) for WCAG AA on the navy surfaces. */
.eyebrow, .p-head .kicker, .mini-story .cat, .story .cat,
.source-sub, .source-card .pill, .widget > h2 { color: var(--gold-bright); }