/* IKEA888 — dark + gold, modelled on jadiking.my */

:root {
  --bg: #0d0b06;
  --bg-2: #160f00;
  --surface: #1c160a;
  --surface-2: #241c0d;
  --line: #3a2e12;
  --gold: #f7cc27;
  --gold-soft: #ffe174;
  --gold-deep: #ad8500;
  --text: #f2ede0;
  --muted: #a89a7c;
  --radius: 14px;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, iframe, video { max-width: 100%; height: auto; }

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: rgba(13, 11, 6, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--text);
  white-space: nowrap;
}
.brand span { color: var(--gold); }
.brand:hover { text-decoration: none; }

.site-header nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}
.site-header nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--gold); text-decoration: none; }

.cta-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  color: #1a1200;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(247, 204, 39, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-btn:hover {
  color: #1a1200;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(247, 204, 39, .34);
}

/* ------------------------------------------------------------------ main */
main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 72px;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  margin: 1.8em 0 .6em;
}
h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  margin-top: 0;
  letter-spacing: -.5px;
}
h2 { font-size: clamp(23px, 3vw, 30px); }
h3 { font-size: 20px; }

h1 + p, .lede {
  color: var(--muted);
  font-size: 19px;
}

p { margin: 0 0 1.15em; }

strong { color: #fff; }

ul, ol { padding-left: 22px; margin: 0 0 1.15em; }
li { margin-bottom: .45em; }

blockquote {
  margin: 1.6em 0;
  padding: 16px 22px;
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* tables scroll rather than blowing out the page on mobile */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 15px;
}
th, td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
}
th { background: var(--surface-2); color: var(--gold-soft); font-weight: 600; }
tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }

section { margin-bottom: 8px; }

.section-title { color: var(--gold-soft); }

/* video embeds from the source articles */
.video-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 32px;
}

/* --------------------------------------------------------- blog index */
.page-wrapper { max-width: 100%; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--gold-deep); transform: translateY(-3px); }

.card h2 {
  font-size: 19px;
  margin: 0 0 10px;
  line-height: 1.4;
}
.card h2 a { color: #fff; }
.card h2 a:hover { color: var(--gold); text-decoration: none; }

.card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  flex: 1;
}

.read-more {
  align-self: flex-start;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

/* ------------------------------------------- homepage licence/trust strip */
/* These blocks come from the original casino template and ship no CSS, so the
   images render at native size (some are 1000px+ wide). */
.license p,
.payment p,
.certification p,
.follow p {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
}

.license { margin-top: 40px; }

.logo-text {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.gaming-logo {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.game {
  flex: 1;
  min-width: 260px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.payment,
.certification {
  margin-bottom: 32px;
}

.payment img,
.certification img {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.follow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.follow p { width: 100%; }

.follow img,
.follow .main-pulse {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* floating prize-pool badge from the old template */
#floatcontainer img {
  width: 92px;
  height: auto;
}

@media (max-width: 600px) {
  .gaming-logo { width: 96px; }
  .payment img, .certification img { max-width: 100%; }
  .follow img, .follow .main-pulse { width: 32px; height: 32px; }
  #floatcontainer img { width: 64px; }
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px 24px 28px;
}

.foot-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.foot-grid p { color: var(--muted); font-size: 15px; margin-top: 12px; }
.foot-grid h4 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.foot-grid a {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 9px;
}
.foot-grid a:hover { color: var(--gold); text-decoration: none; }

.foot-bottom {
  max-width: var(--wrap);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.foot-bottom p { margin: 0 0 6px; }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .site-header nav { order: 3; width: 100%; margin-left: 0; gap: 16px; }
  .cta-btn { margin-left: auto; }
  main { padding: 32px 18px 56px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}