/* =========================================================
   BK8 News — stylesheet
   UI/UX reference: bk8.io (crypto casino)
   - Pure-black casino theme + bright BK8 gold accent
   - Casino-style header (Login/Register), game-category tiles,
     coin chips, glowing cards, two-column promo hero
   ========================================================= */

:root{
  --bg:        #000a1f;   /* bk8.io deep-navy base (NEUTRAL_1) */
  --bg-2:      #04122e;   /* section-alt navy */
  --bg-3:      #162a53;   /* NEUTRAL_2 */
  --card:      #0c1c3f;   /* navy surface */
  --card-hover:#12285a;
  --border:    rgba(120,150,220,.14);
  --border-2:  rgba(120,150,220,.30);

  --text:      #e6edfa;
  --muted:     #90a4c9;   /* bk8 bluish muted (NEUTRAL_4 family) */
  --heading:   #ffffff;

  --gold:      #ffc21f;   /* BK8 gold CTA accent */
  --gold-2:    #ffde5c;
  --gold-deep: #e0a300;
  --gold-soft: rgba(255,194,31,.12);
  --blue:      #2e6bff;   /* bk8 neon blue accent */
  --blue-soft: rgba(46,107,255,.18);
  --glow:      0 0 0 1px rgba(255,194,31,.25), 0 8px 30px rgba(255,194,31,.18);
  --glow-blue: 0 0 0 1px rgba(46,107,255,.30), 0 10px 34px rgba(46,107,255,.22);

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1200px;
  --shadow:    0 16px 40px rgba(0,0,0,.55);
  --font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
          'Segoe UI', Roboto, 'Malgun Gothic', sans-serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
/* single-page anchor offset (clears the 70px sticky header) */
[id]{ scroll-margin-top:86px; }
body{
  font-family:var(--font); background:var(--bg); color:var(--text);
  line-height:1.65; -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.container{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 20px; }
h1,h2,h3,h4{ color:var(--heading); line-height:1.25; font-weight:800; letter-spacing:-.01em; }
.accent{ color:var(--gold); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 24px; border-radius:999px; font-weight:800; font-size:.95rem;
  cursor:pointer; border:1px solid transparent; transition:.18s ease; white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg,var(--gold-2),var(--gold) 55%,var(--gold-deep));
  color:#100d00; box-shadow:0 6px 20px rgba(255,194,31,.35);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(255,194,31,.5); }
.btn-ghost{ background:rgba(255,255,255,.04); color:var(--text); border-color:var(--border-2); }
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold); }
.btn-sm{ padding:9px 18px; font-size:.86rem; }
.btn-block{ width:100%; }

/* ---------- Top strip (thin promo bar) ---------- */
.topbar{
  background:linear-gradient(90deg,rgba(255,194,31,.10),transparent 60%);
  border-bottom:1px solid var(--border); font-size:.8rem; color:var(--muted);
}
.topbar .container{ display:flex; align-items:center; justify-content:space-between; height:36px; }
.topbar strong{ color:var(--gold); }
.topbar .tb-right{ display:flex; gap:16px; }
@media (max-width:640px){ .topbar .tb-right{ display:none; } }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(6,7,11,.9); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.header-inner{ display:flex; align-items:center; gap:18px; height:70px; }
.logo{ font-size:1.6rem; font-weight:900; letter-spacing:-.02em; color:#fff; line-height:1; }
.logo span{ color:var(--gold); }
.logo small{ display:block; font-size:.58rem; font-weight:700; letter-spacing:.24em; color:var(--muted); margin-top:2px; }
.logo-img{ height:34px; width:auto; display:block; }

.nav{ display:flex; gap:26px; margin-left:14px; }
.nav a{ color:var(--muted); font-weight:700; font-size:.96rem; position:relative; padding:6px 0; transition:.15s; }
.nav a:hover, .nav a.active{ color:#fff; }
.nav a.active::after{ content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background:var(--gold); border-radius:2px; }

.header-actions{ display:flex; align-items:center; gap:10px; margin-left:auto; }
.nav-toggle{ display:none; background:none; border:0; color:#fff; font-size:1.5rem; cursor:pointer; margin-left:auto; }

/* ---------- Hero (two-column promo banner) ---------- */
.hero{
  position:relative; overflow:hidden; border-bottom:1px solid var(--border);
  background:
    radial-gradient(900px 480px at 88% 0%, rgba(255,194,31,.16), transparent 58%),
    radial-gradient(760px 460px at 6% 8%, rgba(46,107,255,.28), transparent 60%),
    radial-gradient(700px 420px at 50% 100%, rgba(80,120,255,.10), transparent 55%),
    var(--bg);
}
.hero::before{
  content:""; position:absolute; inset:0;
  background-image:radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size:22px 22px; opacity:.5; pointer-events:none;
}
.hero-inner{ padding:70px 20px; position:relative; }
.hero-grid{ display:grid; grid-template-columns:1.08fr .92fr; gap:44px; align-items:center; }
.eyebrow{
  display:inline-block; color:var(--gold); font-weight:800; font-size:.8rem;
  letter-spacing:.16em; text-transform:uppercase; margin-bottom:18px;
  padding:7px 14px; border:1px solid var(--gold-soft); border-radius:999px; background:var(--gold-soft);
}
.hero h1{ font-size:clamp(2.1rem,5vw,3.5rem); margin-bottom:18px; }
.hero-sub{ color:var(--muted); font-size:clamp(1rem,2vw,1.18rem); max-width:560px; margin-bottom:30px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:32px; }
.hero-badges{ list-style:none; display:flex; gap:20px; flex-wrap:wrap; }
.hero-badges li{ color:var(--muted); font-size:.92rem; font-weight:700; }
.hero-visual{
  position:relative; border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--border-2); box-shadow:var(--shadow);
}
.hero-visual img{ width:100%; display:block; }

/* ---------- Coin chips strip ---------- */
.coins-strip{ display:flex; flex-wrap:wrap; gap:12px; }
.coin-chip{
  display:inline-flex; align-items:center; gap:9px; padding:10px 18px;
  background:var(--card); border:1px solid var(--border); border-radius:999px;
  font-weight:700; font-size:.92rem; transition:.16s;
}
.coin-chip:hover{ border-color:var(--gold); transform:translateY(-2px); }
.coin-chip .dot{ width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-size:.9rem; font-weight:900; color:#100d00; background:linear-gradient(135deg,var(--gold-2),var(--gold)); }

/* ---------- Sections ---------- */
.section{ padding:66px 0; }
.section-alt{ background:var(--bg-2); }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:30px; flex-wrap:wrap; }
.section-head h2{ font-size:clamp(1.5rem,3vw,2.15rem); }
.section-head .link{ color:var(--gold); font-weight:800; font-size:.95rem; }
.lead{ color:var(--muted); font-size:1.08rem; max-width:720px; margin-bottom:26px; }

/* ---------- Game / category tiles (bk8-style) ---------- */
.tiles{ display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
.tile{
  position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  aspect-ratio:1/1; border-radius:var(--radius); text-align:center;
  background:linear-gradient(160deg,#162a53,#08183a);
  border:1px solid var(--border); transition:.2s ease; overflow:hidden;
}
.tile::after{
  content:""; position:absolute; inset:0; opacity:0; transition:.2s;
  background:radial-gradient(120px 80px at 50% 0%, rgba(255,194,31,.28), transparent 70%);
}
.tile:hover{ transform:translateY(-4px); border-color:var(--gold); box-shadow:var(--glow); }
.tile:hover::after{ opacity:1; }
.tile .ic{ font-size:2rem; line-height:1; }
.tile .lbl{ font-weight:800; font-size:.9rem; color:#fff; z-index:1; }

/* ---------- Grids ---------- */
.grid{ display:grid; gap:20px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

/* ---------- Cards ---------- */
.card{ background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:24px; transition:.18s ease; }
.card:hover{ background:var(--card-hover); border-color:var(--gold); transform:translateY(-3px); box-shadow:var(--glow); }
.card h3{ font-size:1.12rem; margin-bottom:10px; }
.card p{ color:var(--muted); font-size:.96rem; }

/* News cards */
.news-card{ background:var(--card); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:.18s ease; display:flex; flex-direction:column; }
.news-card[hidden]{ display:none; }
.game-thumb .prov-ic{ height:46px; width:auto; filter:brightness(0) invert(1); opacity:.92; }
.game-thumb .game-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; padding:6px; }
.news-card[data-category="games"] .news-body h3{ font-size:1rem; line-height:1.35; overflow-wrap:break-word; }
.news-body h3 .prov{ font-size:.78em; font-weight:700; color:var(--muted); white-space:nowrap; }
.news-thumb .emoji-ic{ font-size:2.6rem; line-height:1; }
.news-thumb .news-logo{ max-width:82%; max-height:66%; width:auto; height:auto; object-fit:contain; }
.news-thumb .sport-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.news-thumb.promo-thumb{ aspect-ratio:861 / 390; }
.promo-thumb .promo-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.news-thumb .hl-ic{
  width:52px; height:52px; padding:19px; box-sizing:content-box;
  stroke:var(--gold-2); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
  background:radial-gradient(circle at 50% 38%, #0a1328, #03060f 80%);
  border:1px solid rgba(255,194,31,.5);
  border-radius:50%;
  box-shadow:0 0 28px rgba(255,194,31,.22), 0 8px 18px rgba(0,0,0,.5);
}
.news-card:hover{ border-color:var(--gold); transform:translateY(-4px); box-shadow:var(--glow); }
.news-thumb{
  aspect-ratio:16/9; position:relative; display:flex; align-items:center; justify-content:center;
  color:#f5b70a; font-size:2.2rem; font-weight:900; letter-spacing:.04em;
  background:
    radial-gradient(200px 120px at 70% 20%, rgba(46,107,255,.22), transparent 60%),
    linear-gradient(135deg,#16264d,#0a1730);
}
.news-thumb .tag{ position:absolute; top:12px; left:12px; background:var(--gold); color:#100d00; font-size:.72rem; font-weight:800; padding:4px 10px; border-radius:999px; }
.news-body{ padding:18px 18px 22px; display:flex; flex-direction:column; gap:8px; flex:1; }
.news-body .meta{ color:var(--muted); font-size:.8rem; }
.news-body h3{ font-size:1.06rem; line-height:1.4; }
.news-body p{ color:var(--muted); font-size:.92rem; }
.news-body .read{ color:var(--gold); font-weight:800; font-size:.88rem; margin-top:auto; }

/* Featured */
.feature{ display:grid; grid-template-columns:1.15fr .85fr; gap:0; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.feature .feature-media{ min-height:340px; background:linear-gradient(135deg,#0e1c3d,#0a1428); display:flex; }
.feature .feature-media img{ width:100%; height:100%; object-fit:cover; }
.feature .feature-text{ padding:38px; display:flex; flex-direction:column; justify-content:center; }
.feature .tag{ align-self:flex-start; background:var(--gold-soft); color:var(--gold); font-weight:800; font-size:.76rem; padding:5px 12px; border-radius:999px; margin-bottom:14px; }
.feature h2{ font-size:clamp(1.4rem,2.6vw,2rem); margin-bottom:12px; }
.feature p{ color:var(--muted); margin-bottom:20px; }

.coin{ background:var(--card); border:1px solid var(--border); border-radius:var(--radius-sm); padding:18px; text-align:center; font-weight:800; }

/* ---------- Category chips ---------- */
.chips{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:30px; }
.chip{ padding:9px 18px; border:1px solid var(--border-2); border-radius:999px; color:var(--muted); font-weight:700; font-size:.9rem; cursor:pointer; transition:.15s; }
.chip:hover, .chip.active{ background:var(--gold); color:#100d00; border-color:var(--gold); }

/* ---------- Page hero ---------- */
.page-hero{ background:radial-gradient(700px 340px at 85% -20%, rgba(255,194,31,.16), transparent 60%), var(--bg-2); border-bottom:1px solid var(--border); padding:58px 0; }
.page-hero .eyebrow{ margin-bottom:14px; }
.page-hero h1{ font-size:clamp(1.9rem,4vw,2.9rem); }
.page-hero p{ color:var(--muted); margin-top:12px; max-width:640px; }

/* ---------- CTA strip ---------- */
.cta-strip{ background:linear-gradient(135deg,rgba(255,194,31,.16),rgba(255,194,31,.03)); border:1px solid var(--gold-soft); border-radius:var(--radius); padding:42px; text-align:center; }
.cta-strip h2{ margin-bottom:10px; }
.cta-strip p{ color:var(--muted); margin-bottom:20px; }

/* ---------- Forms ---------- */
.form-grid{ display:grid; grid-template-columns:1.2fr .8fr; gap:36px; align-items:start; }
.form{ background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:30px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-weight:700; font-size:.9rem; margin-bottom:8px; }
.field input, .field textarea, .field select{ width:100%; background:var(--bg); border:1px solid var(--border-2); border-radius:var(--radius-sm); padding:12px 14px; color:var(--text); font-family:inherit; font-size:.95rem; transition:.15s; }
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color:var(--gold); }
.field textarea{ min-height:130px; resize:vertical; }
.contact-info .info-item{ display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--border); }
.contact-info .info-item .ic{ font-size:1.3rem; }
.contact-info .info-item strong{ display:block; color:#fff; }
.contact-info .info-item span{ color:var(--muted); font-size:.92rem; }

/* ---------- Prose ---------- */
.prose{ max-width:760px; }
.prose h2{ font-size:1.5rem; margin:34px 0 14px; }
.prose p{ color:var(--muted); margin-bottom:16px; }
.prose h3{ font-size:1.3rem; margin:28px 0 10px; }
.prose ul{ color:var(--muted); margin:0 0 16px 20px; }
.prose li{ margin-bottom:8px; }

/* ---------- FAQ ---------- */
.faq details{ background:var(--card); border:1px solid var(--border); border-radius:var(--radius-sm); padding:16px 20px; margin-bottom:12px; }
.faq summary{ cursor:pointer; font-weight:700; color:#fff; list-style:none; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; float:right; color:var(--gold); font-size:1.2rem; }
.faq details[open] summary::after{ content:"–"; }
.faq details p{ color:var(--muted); margin-top:12px; }

/* ---------- Footer ---------- */
.site-footer{ background:#040507; border-top:1px solid var(--border); padding:54px 0 30px; margin-top:40px; }
.footer-cols{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:36px; margin-bottom:32px; }
.footer-cols h4{ font-size:.95rem; margin-bottom:14px; color:#fff; }
.footer-cols a{ display:block; color:var(--muted); font-size:.9rem; padding:5px 0; }
.footer-cols a:hover{ color:var(--gold); }
.footer-tag{ color:var(--muted); font-size:.92rem; margin-top:10px; max-width:280px; }
.footer-coins{ display:flex; gap:8px; margin-top:14px; }
.footer-coins .fc{ width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--card); border:1px solid var(--border); font-weight:900; font-size:.8rem; color:var(--gold); }
.license-badge{ display:inline-flex; align-items:center; gap:10px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius-sm); padding:12px 16px; font-size:.82rem; color:var(--muted); }
.license-badge b{ color:#fff; }
.disclaimer{ color:var(--muted); font-size:.82rem; border-top:1px solid var(--border); padding-top:22px; margin:18px 0 10px; line-height:1.7; }
.age-badge{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border:2px solid var(--muted); border-radius:50%; color:var(--muted); font-weight:800; font-size:.8rem; margin-right:10px; vertical-align:middle; }
.copyright{ color:#59616d; font-size:.82rem; }

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .tiles{ grid-template-columns:repeat(3,1fr); }
  .footer-cols{ grid-template-columns:1fr 1fr; }
}
@media (max-width:860px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; max-width:460px; }
  .grid-3, .grid-4{ grid-template-columns:repeat(2,1fr); }
  .feature{ grid-template-columns:1fr; }
  .feature .feature-media{ min-height:200px; }
  .form-grid{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .nav{
    position:fixed; top:70px; left:0; right:0; flex-direction:column; gap:0;
    background:var(--bg-2); border-bottom:1px solid var(--border);
    padding:8px 20px 16px; transform:translateY(-140%); transition:.25s; margin:0;
  }
  .nav.open{ transform:translateY(0); }
  .nav a{ padding:12px 0; border-bottom:1px solid var(--border); }
  .nav-toggle{ display:block; }
  .header-actions{ display:none; }
  .tiles{ grid-template-columns:repeat(2,1fr); }
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
  .footer-cols{ grid-template-columns:1fr; gap:24px; }
}

/* ---------- Hero promo carousel ---------- */
.carousel{ position:relative; overflow:hidden; border-radius:var(--radius); }
.carousel-track{ display:flex; transition:transform .55s cubic-bezier(.4,0,.2,1); }
.carousel .slide{
  position:relative; min-width:100%; aspect-ratio:16/11;
  display:flex; align-items:center; justify-content:center; color:#fff;
  background:
    radial-gradient(440px 260px at 50% 20%, rgba(46,107,255,.30), transparent 65%),
    radial-gradient(360px 220px at 84% 92%, rgba(255,194,31,.14), transparent 60%),
    linear-gradient(160deg,#0e1c3d,#08122a);
}
.carousel .slide img{ max-height:74%; width:auto; object-fit:contain; filter:drop-shadow(0 10px 26px rgba(0,0,0,.5)); }
.slide-cap{
  position:absolute; left:16px; top:14px; right:16px; z-index:2;
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  font-weight:800; font-size:1.02rem; color:#fff; text-shadow:0 2px 12px rgba(0,0,0,.55);
}
.slide-tag{
  background:linear-gradient(135deg,var(--gold-2),var(--gold)); color:#100d00;
  font-size:.7rem; font-weight:900; letter-spacing:.06em; padding:4px 10px; border-radius:999px;
}
.carousel-btn{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
  border:1px solid var(--border-2); background:rgba(0,10,31,.55); backdrop-filter:blur(6px);
  color:#fff; font-size:1.4rem; line-height:1; cursor:pointer; transition:.18s;
}
.carousel-btn:hover{ background:var(--gold); color:#100d00; border-color:var(--gold); }
.carousel-btn.prev{ left:12px; }
.carousel-btn.next{ right:12px; }
.carousel-dots{ position:absolute; left:0; right:0; bottom:10px; z-index:3; display:flex; justify-content:center; gap:8px; }
.carousel-dots button{ width:8px; height:8px; padding:0; border:0; border-radius:999px; background:rgba(255,255,255,.4); cursor:pointer; transition:.22s; }
.carousel-dots button.active{ width:22px; background:var(--gold); }
@media (max-width:640px){
  .carousel-btn{ width:32px; height:32px; font-size:1.2rem; }
  .slide-cap{ font-size:.92rem; }
}

/* ---------- News section: last-updated stamp ---------- */
.news-updated{ align-self:center; color:var(--muted); font-size:.82rem; font-weight:700; background:var(--card); border:1px solid var(--border); padding:5px 12px; border-radius:999px; white-space:nowrap; }

/* ---------- Feature trio (real bk8.io banner graphics) ---------- */
.feature-trio .ft-card{ background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:26px 22px 28px; text-align:center; transition:.18s ease; }
.feature-trio .ft-card:hover{ border-color:var(--gold); transform:translateY(-3px); box-shadow:var(--glow); }
.feature-trio .ft-card img{ height:150px; width:auto; margin:0 auto 14px; object-fit:contain; }
.feature-trio .ft-card h3{ font-size:1.12rem; margin-bottom:8px; }
.feature-trio .ft-card p{ color:var(--muted); font-size:.94rem; }

/* ---------- Game-provider logo strip (SVGs forced to uniform white) ---------- */
.provider-strip{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:26px 40px; padding:8px 0; }
.provider-logo{ height:38px; width:auto; filter:brightness(0) invert(1); opacity:.5; transition:.2s ease; }
.provider-logo:hover{ opacity:1; transform:translateY(-2px); }

@media (max-width:640px){
  .feature-trio .ft-card img{ height:120px; }
  .provider-strip{ gap:22px 28px; }
  .provider-logo{ height:30px; }
}
