/* ========================================================================
   WINWIN579 — "Vegas Marquee" theme
   Deep red / black / gold casino-marquee aesthetic, light-bulb dotted frames
   ======================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

:root {
  --bg: #0b0605;
  --bg-alt: #170908;
  --panel: #1c0d0b;
  --red: #9c1c2b;
  --red-deep: #5c0f19;
  --red-bright: #e5273c;
  --gold: #f0b93d;
  --gold-bright: #ffd76a;
  --gold-deep: #b9862a;
  --cream: #fbe9c9;
  --text: #f3e4d0;
  --muted: #cbab8c;
  --line: rgba(240, 185, 61, 0.22);
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --font-head: 'Chonburi', 'Prompt', sans-serif;
  --font-body: 'Prompt', 'Sarabun', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--cream); line-height: 1.4; margin: 0 0 0.6rem; font-weight: 400; }
h1 { font-size: clamp(1.75rem, 4.4vw, 2.85rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1rem; color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.grad-text {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.kw { color: var(--gold-bright); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; letter-spacing: 0.06em; color: var(--gold-bright);
  font-weight: 600; margin-bottom: 0.6rem; text-transform: uppercase;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 10px var(--red-bright); }

/* ---- marquee light-bulb dotted frame (signature motif) ---- */
.marquee-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle, var(--gold) 0 2.4px, transparent 2.6px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--panel), var(--bg-alt));
  background-repeat: repeat-x, no-repeat;
  background-position: top left, top left;
  padding: 3px;
}
.marquee-frame::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, var(--gold) 0 2.4px, transparent 2.6px);
  background-size: 22px 22px;
  background-position: bottom left;
  background-repeat: repeat-x;
  opacity: 0.9; pointer-events: none;
}
.marquee-frame > .marquee-inner { position: relative; z-index: 1; border-radius: calc(var(--radius) - 3px); overflow: hidden; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.78rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  color: #2a1404; box-shadow: 0 10px 26px rgba(240, 185, 61, 0.28);
}
.btn-outline {
  background: rgba(240, 185, 61, 0.06); color: var(--gold-bright); border-color: var(--gold-deep);
}
.btn-outline:hover { background: rgba(240, 185, 61, 0.14); }

/* ===== TOP ANNOUNCEMENT TICKER (header-level, unique to this brand) ===== */
.top-ticker {
  background: linear-gradient(90deg, var(--red-deep), var(--red) 50%, var(--red-deep));
  overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--gold-deep);
}
.top-ticker-track { display: inline-flex; animation: ticker-scroll 26s linear infinite; }
.top-ticker-track span {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 2rem; font-size: 0.82rem; color: var(--gold-bright); font-weight: 600;
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== HEADER — split layout: nav-left | logo-center | buttons-right ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(11, 6, 5, 0.92); backdrop-filter: blur(10px); }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0.7rem 1.5rem; position: relative; }
.header-row1 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.logo-link { justify-self: center; }
.logo-img { height: 52px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 1.4rem; justify-self: start; }
.nav-link { font-size: 0.94rem; color: var(--muted); font-weight: 500; transition: color 0.15s ease; position: relative; }
.nav-link:hover { color: var(--gold-bright); }
.nav-link .ico-line { background: #06c755; color: #fff; font-size: 0.62rem; font-weight: 800; padding: 0.1rem 0.32rem; border-radius: 4px; margin-right: 0.35rem; }
.header-btns { display: flex; align-items: center; gap: 0.6rem; justify-self: end; }
.header-btns .btn { padding: 0.6rem 1.35rem; font-size: 0.9rem; }
.header-row2 { display: none; }

/* header bottom light-bulb strip */
.header::after {
  content: ""; display: block; height: 3px;
  background: radial-gradient(circle, var(--gold) 0 2px, transparent 2.2px);
  background-size: 16px 3px; background-repeat: repeat-x; opacity: 0.85;
}

/* ===== HERO ===== */
.hero {
  position: relative; padding: 3rem 1.5rem 2.5rem;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(156, 28, 43, 0.5), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero-wrap { max-width: 1280px; margin: 0 auto; }
.hero-frame { padding: clamp(1.4rem, 3vw, 2.6rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.4rem; align-items: center; }
.hero h1 { max-width: 640px; }
.hero h1 a { color: inherit; }
.hero-intro p { color: var(--muted); font-size: 1.02rem; max-width: 620px; }
.hero-actions { display: flex; gap: 0.8rem; margin-top: 1.3rem; flex-wrap: wrap; }
.hero-visual { display: flex; flex-direction: column; gap: 0.9rem; }
.hero-visual img { width: 100%; border-radius: 14px; border: 1px solid var(--gold-deep); box-shadow: var(--shadow); object-fit: cover; }

/* ===== DUAL-DIRECTION TX TICKER (unique mechanism for this brand) ===== */
.tx-dual { padding: 2.2rem 0 2.6rem; }
.tx-dual-wrap { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.tx-lane { overflow: hidden; margin-bottom: 0.7rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tx-lane-track { display: inline-flex; gap: 0.7rem; padding: 0.1rem 0; }
.tx-lane.dir-left .tx-lane-track { animation: tx-left 34s linear infinite; }
.tx-lane.dir-right .tx-lane-track { animation: tx-right 34s linear infinite; }
@keyframes tx-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tx-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.tx-chip {
  display: inline-flex; align-items: center; gap: 0.6rem; white-space: nowrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 1.1rem 0.5rem 0.5rem;
}
.tx-chip .tx-dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.tx-chip.dep .tx-dot { background: rgba(76, 201, 138, 0.18); color: #4cc98a; }
.tx-chip.wd .tx-dot { background: rgba(229, 39, 60, 0.2); color: var(--red-bright); }
.tx-chip .tx-txt { font-size: 0.86rem; color: var(--muted); }
.tx-chip .tx-txt b { color: var(--cream); font-weight: 600; }
.tx-chip .tx-amt { font-size: 0.86rem; font-weight: 700; color: var(--gold-bright); }

/* ===== SECTIONS ===== */
.section { padding: 3.4rem 1.5rem; }
.section.alt { background: var(--bg-alt); }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-head { max-width: 760px; margin: 0 auto 2.2rem; text-align: center; }
.section-head p { color: var(--muted); }
.section-head.left { text-align: left; margin-left: 0; }

/* ===== 3 ICON FEATURE STRIP ===== */
.icon-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; max-width: 980px; margin: 0 auto; }
.icon-card { text-align: center; padding: 1.6rem 1rem; }
.icon-badge {
  width: 66px; height: 66px; margin: 0 auto 0.9rem; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 10px 22px rgba(240, 185, 61, 0.25);
}
.icon-badge svg { width: 32px; height: 32px; fill: #2a1404; }
.icon-card h3 { margin-bottom: 0.3rem; }
.icon-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ===== FEATURE TEXT SECTIONS ===== */
.feature-block { max-width: 900px; margin: 0 auto; text-align: center; }
.feature-block p { color: var(--muted); }

/* ===== GAME SPOTLIGHT (3 games) ===== */
.spotlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.spotlight-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.spotlight-card .spotlight-num { display: inline-block; font-family: var(--font-head); color: var(--gold-deep); font-size: 0.85rem; margin-bottom: 0.4rem; }
.spotlight-card h3 { color: var(--gold-bright); margin-bottom: 0.7rem; }
.spotlight-card .spotlight-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--red-bright); font-weight: 700; margin: 0.9rem 0 0.3rem; }
.spotlight-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }

/* ===== PROVIDER SHOWCASE (categorized) ===== */
.provider-cat { margin-bottom: 2.4rem; }
.provider-cat:last-child { margin-bottom: 0; }
.provider-cat-head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1.1rem; }
.provider-cat-head h3 { color: var(--gold-bright); margin: 0; }
.provider-cat-head span { color: var(--muted); font-size: 0.85rem; }
.provider-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.provider-card { display: block; border-radius: 14px; overflow: hidden; transition: transform 0.18s ease; }
.provider-card:hover { transform: translateY(-4px); }
.provider-card img { width: 100%; }

/* ===== TEASER SPLIT (promotion / play-free cross-links) ===== */
.teaser-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.teaser-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem;
  border: 1px solid var(--line);
}
.teaser-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.55; }
.teaser-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, var(--bg) 92%); z-index: 1; }
.teaser-card .teaser-body { position: relative; z-index: 2; }
.teaser-card h3 { margin-bottom: 0.35rem; }
.teaser-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.9rem; }

/* ===== ARTICLE GRID (homepage preview + related-articles) ===== */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.article-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article-card img { height: 170px; object-fit: cover; width: 100%; }
.article-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.article-card-body h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.article-card-body p { color: var(--muted); font-size: 0.86rem; margin: 0; }

/* ===== FAQ ===== */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.4rem; }
.faq-q { color: var(--gold-bright); margin-bottom: 0.4rem; font-size: 1rem; }
.faq-a { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* ===== CTA ===== */
.cta-section { padding: 0 1.5rem 4rem; }
.cta-panel {
  max-width: 1000px; margin: 0 auto; text-align: center; padding: 3rem 1.6rem; border-radius: 24px;
  background: linear-gradient(135deg, var(--red-deep), var(--panel) 60%);
  border: 1px solid var(--gold-deep);
}
.cta-btns { display: flex; justify-content: center; gap: 0.9rem; margin-top: 1.4rem; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { padding: 3rem 1.5rem 7rem; text-align: center; background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-logo { height: 56px; margin: 0 auto 1rem; }
.footer-tagline { max-width: 640px; margin: 0 auto 1.6rem; color: var(--muted); font-size: 0.9rem; }
.footer-partner { display: block; max-width: 900px; margin: 0 auto 1.6rem; background: var(--bg); border-radius: 12px; padding: 1rem; border: 1px solid var(--line); }
.footer-copy { color: var(--muted); font-size: 0.8rem; margin: 0; }

/* ===== STICKY BAR — floating pill (distinct from docked bars) ===== */
.sticky-bar {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  align-items: center; justify-content: space-between; gap: 0.3rem;
  background: rgba(23, 9, 8, 0.96); border: 1px solid var(--gold-deep); border-radius: 999px;
  padding: 0.5rem 0.6rem; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px);
}
.mnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; font-size: 0.66rem; color: var(--muted); font-weight: 600; padding: 0.3rem 0.1rem; }
.mnav-emoji { font-size: 1.05rem; }
.mnav-center {
  width: 52px; height: 52px; border-radius: 50%; margin-top: -26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  border: 3px solid var(--bg); box-shadow: 0 8px 20px rgba(240, 185, 61, 0.4);
}
.mnav-center img { width: 30px; height: 30px; object-fit: contain; }

/* ===== PAGE (inner pages: promotion / play-free) ===== */
.page-hero { padding: 2.6rem 1.5rem 1rem; text-align: center; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.page-hero .eyebrow { justify-content: center; display: flex; }
.page-hero h1 { max-width: 780px; margin: 0 auto 0.6rem; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--muted); }
.page-main { max-width: 980px; margin: 0 auto; padding: 2.6rem 1.5rem 4rem; }
.page-content h2 { color: var(--gold-bright); margin-top: 2.2rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { color: var(--text); }
.page-content ul { margin: 1rem 0; display: flex; flex-direction: column; gap: 0.55rem; }
.page-content ul li { padding-left: 1.5rem; position: relative; color: var(--muted); }
.page-content ul li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 0.35rem; }

.promo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin: 1.6rem 0 2rem; }
.promo-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.promo-card .promo-tag { display: inline-block; background: rgba(229, 39, 60, 0.18); color: var(--red-bright); font-size: 0.72rem; font-weight: 700; padding: 0.22rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem; }
.promo-card h3 { margin-bottom: 0.5rem; }
.promo-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.trial-note { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.7rem; margin: 1.6rem 0; }
.trial-note p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ===== ARTICLE PAGE ===== */
.article-main { max-width: 780px; margin: 0 auto; padding: 2.6rem 1.5rem 4rem; }
.article-main .eyebrow { justify-content: center; display: flex; }
.article-main h1 { text-align: center; margin-bottom: 0.6rem; }
.article-meta { text-align: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 1.8rem; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; border: 1px solid var(--line); }
.article-cover img { width: 100%; }
.article-tldr { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 2rem; }
.article-tldr h2 { color: var(--gold-bright); font-size: 1.05rem; margin-bottom: 0.7rem; }
.article-tldr ul { display: flex; flex-direction: column; gap: 0.5rem; }
.article-tldr ul li { padding-left: 1.4rem; position: relative; color: var(--muted); font-size: 0.92rem; }
.article-tldr ul li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: 0.65rem; top: 0.3rem; }
.article-main h2 { margin-top: 2rem; }
.article-faq { margin-top: 2.4rem; }
.article-faq h2 { color: var(--gold-bright); }
.article-related { margin-top: 2.6rem; border-top: 1px solid var(--line); padding-top: 1.8rem; }
.article-related h2 { font-size: 1.1rem; }
.article-related-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.article-related-item { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.3rem; }
.rel-title { color: var(--gold-bright); font-weight: 600; margin-bottom: 0.3rem; font-size: 0.94rem; }
.rel-desc { color: var(--muted); font-size: 0.85rem; margin: 0; }
.action-btns { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }

/* ===== reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; flex-direction: row; }
  .hero-visual img { max-height: 220px; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .teaser-split { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(3, 1fr); }
  .article-related-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-menu { display: none; }
  .header-row1 { grid-template-columns: auto 1fr auto; }
  .logo-link { justify-self: start; }
  .header-btns .btn { padding: 0.5rem 1rem; font-size: 0.82rem; }
  .header-row2 { display: flex; gap: 1.1rem; overflow-x: auto; padding: 0.6rem 1.5rem 0.8rem; border-top: 1px solid var(--line); scrollbar-width: none; }
  .header-row2::-webkit-scrollbar { display: none; }
  .mob-nav-link { flex-shrink: 0; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
  .icon-strip { grid-template-columns: 1fr; gap: 1rem; }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  body { padding-bottom: 0; }
  .sticky-bar { display: flex; }
}
