/* EU9 Slots Malaysia — mobile-first stylesheet.
   Colours sampled by eye from EU9 reference screenshots supplied by the owner. */
:root {
  /* Palette sampled from the EU9 reference screenshots (colours only, no assets) */
  --bg: #0C0C0C;
  --surface: #1C1917;
  --raised: #282421;
  --red: #C8262F;
  --red-hover: #A81E27;
  --red-dark: #9E0B0F;
  --gold: #F0C94B;
  --gold-light: #FBF5E1;
  --gold-deep: #D9A433;
  --text: #F7F5F2;
  --muted: #BDB5AE;
  --border: #3A3330;
  --focus: #F0C94B;
  --gold-grad: linear-gradient(180deg, #FFF6D8 0%, #F2D06B 55%, #D9A433 100%);
  --red-grad: linear-gradient(135deg, #C8262F 0%, #9E0B0F 100%);
  --radius: 12px;
  --wrap: 1180px;
  --read: 720px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font); /* 17px */
  overflow-wrap: break-word;
}
@media (min-width: 700px) { body { font-size: 1.125rem; } } /* 18px */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: .18em; }
a:hover { color: var(--gold-light); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-note { font-size: .8em; opacity: .85; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }
.wrap--read { max-width: calc(var(--read) + 32px); }
.wrap--wide { max-width: calc(960px + 32px); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.1em; color: var(--muted); max-width: 46rem; }
.kicker { color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .5rem; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--gold); color: #000; padding: .6rem 1rem; z-index: 100; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.preview-bar { background: var(--gold); color: #000; text-align: center; font-weight: 700; padding: .5rem 1rem; font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(40, 36, 33, .97); border-bottom: 1px solid #000; }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(40, 36, 33, .9); backdrop-filter: blur(10px); } }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.wordmark b { color: var(--gold); font-weight: 800; }
.wordmark__logo { height: 44px; width: auto; }
.wordmark__text { white-space: nowrap; }
.wordmark__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--red-grad); color: #fff; font-size: .9rem; font-weight: 900; }
.nav-toggle { display: none; align-items: center; gap: .5rem; background: var(--raised); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: .55rem .8rem; font: inherit; font-size: .95rem; cursor: pointer; min-height: 44px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav a { display: block; color: var(--text); text-decoration: none; padding: .6rem .75rem; border-radius: 8px; font-weight: 600; font-size: .98rem; }
.site-nav a:hover { background: #3A3330; color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--red); }
/* Collapsed menu only when JS is present (.js set by site.js) */
@media (max-width: 959px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; padding-bottom: .75rem; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .8rem .75rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
}

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.3rem; border-radius: 8px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, border-color .15s; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 2px 10px rgba(200, 38, 47, .35); }
.btn--primary:hover { background: var(--red-hover); color: #fff; }
.btn--secondary { background: #0A0A0A; border-color: var(--border); color: var(--text); }
.btn--secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--cta { flex-direction: column; line-height: 1.2; }
.btn--cta .sr-note { font-weight: 500; }
.btn--header { min-height: 40px; padding: .4rem .9rem; font-size: .95rem; }
.cta-box { background: var(--raised); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 10px; padding: .9rem 1rem; max-width: 36rem; margin-bottom: 1rem; }
.cta-box p { margin: 0; }
.cta-box .btn { margin-bottom: .6rem; }
.cta-box__note { font-size: .85rem; color: var(--muted); }
@media (max-width: 959px) { .js .btn--header { order: 2; margin-left: auto; } .js .nav-toggle { order: 3; } .js .site-nav { order: 4; } .header__inner .wordmark { order: 1; } }
@media (max-width: 599px) { .btn--header { display: none; } }
@media (max-width: 1099px) { .btn--header .sr-note { display: none; } }
@media (max-width: 479px) { .btn-row .btn { flex: 1 1 100%; } }

/* Hero: owner-supplied banner shown whole, text below it */
.hero { background: radial-gradient(ellipse at 50% 0%, rgba(158, 11, 15, .35), transparent 70%), var(--bg); padding-top: 1rem; }
.hero__banner { margin: 0 auto; }
.hero__banner img { width: 100%; border-radius: 12px; border: 1px solid #000; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.hero__banner figcaption { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.hero__content { padding-top: 1.75rem; padding-bottom: 2.5rem; }
.hero h1 { max-width: 22ch; color: var(--gold); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__lead { font-size: 1.1em; color: #EDE8E3; max-width: 44rem; }
.hero__note { font-size: .9rem; color: var(--muted); max-width: 44rem; }
@media (min-width: 700px) { .hero { padding-top: 1.5rem; } .hero__content { padding-top: 2.25rem; padding-bottom: 3.5rem; } }

/* Sections */
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--border); }
.section--panel { background: var(--raised); }
.section__head { margin-bottom: 1.5rem; }
.section__head h2 { padding-bottom: .5rem; border-bottom: 2px solid var(--raised); box-shadow: 0 2px 0 -1px #000; }
.more { margin-top: 1.25rem; font-weight: 700; }
.split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; gap: 3rem; } }
.page-head { padding-top: 1.5rem; padding-bottom: 1rem; }

/* Quick links */
.quick { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
@media (min-width: 700px) { .quick { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .quick { grid-template-columns: repeat(4, 1fr); } }
.quick a { display: flex; align-items: center; min-height: 64px; height: 100%; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; background-image: linear-gradient(90deg, rgba(200, 38, 47, .12), transparent 60%); }
.quick a:hover { border-color: var(--gold); border-left-color: var(--gold); }

/* Cards */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card__link:focus-visible { outline-offset: -3px; }
.card__media { aspect-ratio: 16 / 9; background: var(--raised); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1rem 1.1rem 1.2rem; border-top: 1px solid #000; }
.card__title { font-size: 1.1rem; margin: 0 0 .4rem; color: var(--text); }
.card__desc { color: var(--muted); font-size: .95rem; margin: 0; }
.card--compact .card__body { border-left: 4px solid var(--gold); }
.badge-draft { background: var(--gold); color: #000; padding: 0 .35rem; border-radius: 4px; }

/* Game artwork galleries */
.games { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .games { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .games { grid-template-columns: repeat(6, 1fr); } }
.game { margin: 0; background: var(--raised); border: 1px solid #000; border-radius: 10px; overflow: hidden; }
.game img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #141011; }
.game figcaption { padding: .45rem .6rem .55rem; font-size: .85rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.games-group { margin-bottom: 1.75rem; }
.games-group h3 { background: var(--raised); border-radius: 10px 10px 0 0; padding: .7rem 1rem; margin: 0 0 .75rem; font-size: 1.15rem; }
.games-note { font-size: .88rem; color: var(--muted); max-width: 52rem; }
.subhead { margin-top: 2rem; }

/* Screenshot gallery */
.shots-group { margin-top: 2.5rem; }
.shots { display: grid; gap: 1.5rem; }
.shots-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 960px) { .shots-grid { grid-template-columns: repeat(5, 1fr); } }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 10px; border: 1px solid var(--border); background: #141011; }
.shot--small img { width: auto; max-width: 276px; }
.shot figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.prose nav.toc ol { columns: 2; }

/* Hub clusters */
.cluster { padding: 2rem 0 2.5rem; border-top: 1px solid var(--border); }
.cluster__head { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; align-items: center; }
@media (min-width: 800px) { .cluster__head { grid-template-columns: 420px 1fr; } }
.cluster__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin: 0 .4rem 0 .15rem; color: var(--border); }
.breadcrumbs a { color: var(--muted); }

/* Article */
.article { padding-top: 1.5rem; }
.byline { color: var(--muted); font-size: .92rem; }
.byline a { color: var(--muted); }
.article__media { margin: 1rem auto 1.5rem; }
.article__media img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 2rem; }
.toc summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.toc ol { margin: .6rem 0 0; padding-left: 1.3rem; }
.toc li { margin: .3rem 0; }
.prose > * + * { margin-top: 0; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin: .35rem 0; }
.prose dl { margin: 0 0 1.2em; }
.prose dt { font-weight: 700; margin-top: 1rem; color: var(--text); }
.prose dd { margin: .2rem 0 0; color: #EDE8E3; }
.prose strong { color: #fff; }
.answer { background: linear-gradient(135deg, rgba(158, 11, 15, .45), rgba(40, 36, 33, .9)); border: 1px solid rgba(200, 38, 47, .6); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0 0 2rem; }
.answer p:last-child { margin-bottom: 0; }
.example { background: var(--surface); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; }
.example-label { color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
.example > :last-child { margin-bottom: 0; }
.note { background: var(--raised); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; padding: .9rem 1.1rem; margin: 1.5rem 0; }
.note > :last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 480px; }
caption { text-align: left; padding: .75rem 1rem; font-weight: 700; color: var(--gold); caption-side: top; }
th, td { padding: .65rem 1rem; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--raised); font-weight: 700; }
mark.todo { background: var(--gold); color: #000; padding: 0 .25rem; border-radius: 3px; }
.draft-banner { background: rgba(240, 201, 75, .12); border: 2px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.draft-link { text-decoration-style: dashed; }
.pillar-box, .about-box, .sources { margin-top: 2rem; }
.pillar-box { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 0 10px 10px 0; padding: .9rem 1.1rem; }
.pillar-box p:last-child { margin: 0; font-weight: 700; }
.sources h2 { font-size: 1.25rem; }
.sources ul { padding-left: 1.3rem; }
.about-box { background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.2rem; border: 1px solid var(--border); }
.about-box__h { font-size: 1.05rem; }
.related { margin-top: 2rem; background: var(--surface); }
.related .card { background: var(--raised); }

/* Blog filters */
.filters { display: grid; gap: .9rem; margin-bottom: 1.5rem; }
.search input { width: 100%; min-height: 52px; padding: .75rem 1rem; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; font: inherit; }
.search input::placeholder { color: #958C85; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 40px; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.empty { padding: 2rem 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--raised); border-top: 3px solid var(--red); margin-top: 3rem; padding: 2.5rem 0 1.5rem; font-size: .95rem; color: var(--muted); }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .15rem 0; }
.site-footer nav a { color: var(--text); text-decoration: none; display: inline-block; padding: .3rem 0; }
.site-footer nav a:hover { text-decoration: underline; }
.wordmark--footer { margin-bottom: 1rem; }
.footer__legal { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; }
.age { display: inline-grid; place-items: center; min-width: 2.2em; height: 2.2em; border-radius: 50%; border: 2px solid var(--red); color: var(--text); font-weight: 800; font-size: .75em; margin-right: .35rem; vertical-align: middle; }
.rg { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.6rem; position: relative; margin: .5rem 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .45rem; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* Floating Login / Register bar */
.float-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: rgba(12, 12, 12, .94); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(0, 0, 0, .5); }
.float-bar .btn, .popup__actions .btn { min-height: 52px; padding: .45rem .8rem; flex-direction: column; line-height: 1.15; font-size: 1.02rem; }
.btn__en { font-size: .78rem; font-weight: 600; opacity: .9; }
.float-bar .btn--primary { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 38, 47, .55); } 50% { box-shadow: 0 0 0 8px rgba(200, 38, 47, 0); } }
span.btn[aria-disabled="true"] { cursor: default; }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) {
  .float-bar { left: auto; right: 20px; bottom: 20px; width: 360px; border: 1px solid var(--border); border-radius: 14px; padding: .6rem; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 6rem; }
}

/* Pop-up banner (phone size) */
.popup { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.popup[hidden] { display: none; }
.popup__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .75); }
.popup__card { position: relative; width: min(360px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--raised); border: 2px solid var(--gold-deep); border-radius: 18px; padding: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .7), 0 0 40px rgba(200, 38, 47, .35); animation: pop .35s ease-out; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.popup__card img { width: 100%; border-radius: 12px; }
.popup__close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .7); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.popup__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .7rem; }
.popup__note { font-size: .78rem; color: var(--muted); margin: .6rem 0 .2rem; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .related, .btn-row, .float-bar, .popup { display: none !important; }
  body { background: #fff; color: #000; }
}
