/* Golden Mister Casino review - midnight and gold theme, build 1.0 */
:root {
    --ink: #0B1230;
    --ink-2: #16214F;
    --royal: #1F3B8C;
    --royal-hi: #2F56C4;
    --gold: #F2B53A;
    --gold-deep: #C98A12;
    --amber: #E9A23B;
    --amber-hi: #F5B754;
    --violet: #5B32E6;
    --violet-hi: #7250F0;
    --paper: #F4F6FB;
    --card: #FFFFFF;
    --line: #DCE2EF;
    --text: #1B2240;
    --muted: #5A6485;
    --font-display: "Montserrat", "Segoe UI", Arial, sans-serif;
    --font-body: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
    --radius-l: 22px;
    --radius-m: 14px;
    --radius-s: 10px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    background:
        radial-gradient(1200px 520px at 50% -120px, rgba(31, 59, 140, 0.16), rgba(31, 59, 140, 0) 70%),
        var(--paper);
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--royal); text-decoration-color: rgba(31, 59, 140, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--violet); text-decoration-color: currentColor; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--gold); color: var(--ink); padding: 8px 14px; font-weight: 700; border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ===== Header ===== */
.header {
    position: sticky; top: 0; z-index: 50;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.25s ease;
}
.header.scrolled { box-shadow: 0 10px 30px rgba(11, 18, 48, 0.12); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.logo { display: flex; flex-shrink: 0; }
.logo-img { width: 180px; height: 60px; object-fit: contain; }

.header-nav { display: flex; gap: 4px; margin: 0 auto; }
.header-nav a {
    font-family: var(--font-display); font-weight: 700; font-size: 17px;
    color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: var(--radius-s);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.header-nav a:hover { background: rgba(242, 181, 58, 0.18); color: var(--ink); }

.auth { display: flex; gap: 10px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 11px 22px;
    border-radius: var(--radius-s);
    font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.1;
    text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn--primary { background: var(--amber); color: var(--ink); box-shadow: 0 6px 18px rgba(233, 162, 59, 0.35); }
.btn--primary:hover { background: var(--amber-hi); color: var(--ink); transform: translateY(-1px); }
.btn--ghost { background: var(--violet); color: #FFFFFF; box-shadow: 0 6px 18px rgba(91, 50, 230, 0.28); }
.btn--ghost:hover { background: var(--violet-hi); color: #FFFFFF; transform: translateY(-1px); }

/* ===== Hero carousel ===== */
.banner-carousel-wrapper { margin-top: 18px; }
.banner-carousel {
    position: relative; width: 100%; aspect-ratio: 3 / 1; min-height: 300px;
    overflow: hidden; background: var(--ink);
    border-radius: var(--radius-l);
    box-shadow: 0 24px 50px rgba(11, 18, 48, 0.28);
}
.banner-carousel__viewport { position: absolute; inset: 0; }
.banner-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s;
}
.banner-slide.is-active { opacity: 1; visibility: visible; }
.banner-slide__image { position: absolute; inset: 0; }
.banner-slide__image img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: var(--pos, 50%) 50%;
}
.banner-slide__image::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11, 18, 48, 0.92) 0%, rgba(11, 18, 48, 0.7) 30%, rgba(11, 18, 48, 0.12) 50%, rgba(11, 18, 48, 0) 100%);
}
.banner-slide__content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    max-width: 580px; padding: 0 0 0 52px;
}
.banner-slide__title {
    font-family: var(--font-display); font-weight: 900;
    font-size: 58px; line-height: 1.02; letter-spacing: -0.01em; color: #FFFFFF;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    margin-bottom: 14px;
}
p.banner-slide__title { font-size: 46px; color: var(--gold); }
.banner-slide__content p:not(.banner-slide__title) {
    font-size: 18px; line-height: 1.5; color: #E4E9F7;
    margin-bottom: 24px; max-width: 26em;
}
.banner-dots {
    position: absolute; z-index: 3; left: 52px; bottom: 22px;
    display: flex; gap: 8px;
}
.banner-dot {
    width: 10px; height: 10px; border: 0; padding: 0; cursor: pointer; border-radius: 999px;
    background: rgba(255, 255, 255, 0.45); transition: width 0.3s ease, background-color 0.3s ease;
}
.banner-dot.is-active { background: var(--gold); width: 34px; }

/* ===== Content ===== */
.container.page-content { padding-top: 26px; padding-bottom: 64px; }
.content-box {
    background: var(--card);
    border-radius: var(--radius-l);
    padding: 48px 56px 60px;
    box-shadow: 0 18px 50px rgba(11, 18, 48, 0.08);
}
.page-text { max-width: none; }
.page-text p { margin: 0 0 18px; }
.page-text h1 {
    font-family: var(--font-display); font-weight: 900; font-size: 42px; line-height: 1.1; color: var(--ink); margin-bottom: 18px;
}
/* Signature element: a gold coin marks every section heading */
.page-text h2 {
    position: relative;
    font-family: var(--font-display); font-weight: 800;
    font-size: 36px; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink);
    margin: 64px 0 22px;
    padding-left: 58px;
    scroll-margin-top: 110px;
}
.page-text h2::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 40px; height: 40px; margin-top: -20px; border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, transparent 0 11px, rgba(255, 255, 255, 0.55) 11px 12.5px, transparent 12.5px),
        radial-gradient(circle at 34% 30%, #FFE7A3 0%, var(--gold) 45%, var(--gold-deep) 100%);
    box-shadow: 0 0 0 3px var(--ink), 0 6px 14px rgba(201, 138, 18, 0.45);
}
.page-text h3 {
    font-family: var(--font-display); font-weight: 700;
    font-size: 23px; line-height: 1.25; color: var(--royal);
    margin: 30px 0 8px;
}
.page-text > p:first-child {
    font-size: 20px; line-height: 1.65; color: var(--ink);
}

/* Navigation (table of contents) */
.toc {
    margin: 30px 0 10px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    box-shadow: 0 8px 24px rgba(11, 18, 48, 0.06);
}
.toc__title {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--ink);
}
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after {
    content: ""; margin-left: auto; width: 12px; height: 12px;
    border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
    transform: rotate(45deg) translateY(-3px); transition: transform 0.25s ease;
}
.toc[open] .toc__title::after { transform: rotate(-135deg) translateY(-3px); }
.toc__icon {
    width: 22px; height: 18px; flex-shrink: 0;
    background:
        linear-gradient(var(--amber), var(--amber)) 0 0 / 4px 4px no-repeat,
        linear-gradient(var(--amber), var(--amber)) 0 7px / 4px 4px no-repeat,
        linear-gradient(var(--amber), var(--amber)) 0 14px / 4px 4px no-repeat,
        linear-gradient(var(--amber), var(--amber)) 8px 1px / 14px 2px no-repeat,
        linear-gradient(var(--amber), var(--amber)) 8px 8px / 14px 2px no-repeat,
        linear-gradient(var(--amber), var(--amber)) 8px 15px / 14px 2px no-repeat;
}
.toc__list { margin: 0; padding: 4px 22px 20px 58px; columns: 2; column-gap: 40px; }
.toc__list li { margin-bottom: 8px; break-inside: avoid; color: var(--muted); }
.toc__list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.toc__list a:hover { color: var(--violet); text-decoration: underline; }

/* Image beside text */
.media-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    margin: 26px 0 30px;
}
.media-row__figure {
    position: relative;
    border-radius: var(--radius-m);
    padding: 5px;
    background: linear-gradient(135deg, #FFE7A3, var(--gold) 40%, var(--gold-deep));
    box-shadow: 0 18px 36px rgba(11, 18, 48, 0.22);
}
.media-row__figure img {
    width: 100%; height: auto; aspect-ratio: 16 / 9;
    border-radius: calc(var(--radius-m) - 4px);
    background: var(--ink-2);
}
.media-row--flip .media-row__figure { order: 2; }
.media-row__text > :first-child { margin-top: 0; }
.media-row__text > :last-child { margin-bottom: 0; }

/* Tables */
.table-scroll {
    overflow-x: auto; margin: 22px 0 30px;
    border: 1px solid var(--line); border-radius: var(--radius-m); background: #FFFFFF;
}
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; min-width: 520px; }
.table-scroll th {
    background: var(--ink); color: var(--gold);
    font-family: var(--font-display); font-weight: 800; font-size: 16px;
    text-align: left; padding: 14px 18px;
}
.table-scroll td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll tbody tr:nth-child(even) td { background: #F7F8FC; }
.table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll td:first-child { color: var(--ink); font-weight: 700; white-space: nowrap; }
.table-scroll td + td { color: var(--text); }

/* FAQ */
.faq { margin-top: 64px; }
.faq .faq__title { margin-top: 0; }
.faq__list { display: grid; gap: 12px; }
.faq__item {
    background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-m);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq__item.open { border-color: var(--amber); box-shadow: 0 10px 26px rgba(233, 162, 59, 0.16); }
.page-text .faq__q { margin: 0; font-size: inherit; }
.faq__question {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: none; border: 0; color: var(--ink); cursor: pointer; text-align: left;
    font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.35;
    padding: 18px 20px;
}
.faq__question:hover { color: var(--royal); }
.faq__icon {
    position: relative; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(233, 162, 59, 0.16);
}
.faq__icon::before, .faq__icon::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 12px; height: 2px; background: var(--amber);
    transform: translate(-50%, -50%); transition: transform 0.25s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { overflow: hidden; transition: height 0.3s ease; }
.faq__answer p { padding: 0 20px 20px; margin: 0; color: var(--muted); }

.notfound { text-align: center; padding: 40px 0; }

/* ===== Footer ===== */
.footer {
    background: #FFFFFF; border-top: 1px solid var(--line);
    padding: 42px 0 32px; color: var(--muted); font-size: 15px; line-height: 1.6;
}
.footer__inner { display: grid; gap: 18px; justify-items: center; text-align: center; }
.footer__brand { display: flex; align-items: center; justify-content: center; gap: 18px; }
.footer__brand img { width: 180px; height: 60px; object-fit: contain; }
.footer__age {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid var(--amber); color: var(--ink); font-weight: 700; font-size: 14px;
}
.footer__copy { max-width: 72ch; margin: 0 auto; }
.footer__nav-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.footer__nav-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer__nav-list a:hover { color: var(--violet); text-decoration: underline; }
.footer__copy a { color: var(--royal); }
.footer__legal { font-size: 14px; color: #636C8F; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
    .header-nav { display: none; }
    .auth { margin-left: auto; }
    .content-box { padding: 40px 32px 46px; }
    .media-row { gap: 30px; }
    .banner-slide__title { font-size: 48px; }
    p.banner-slide__title { font-size: 38px; }
}
@media (max-width: 768px) {
    body { font-size: 17px; }
    .container { padding: 0 10px; }
    .header__inner { min-height: 66px; gap: 12px; }
    .logo-img { width: 132px; height: 44px; }
    .auth .btn { min-height: 40px; padding: 8px 14px; font-size: 15px; }
    .banner-carousel { aspect-ratio: auto; height: 420px; border-radius: var(--radius-m); }
    .banner-slide__image::after { background: linear-gradient(0deg, rgba(11, 18, 48, 0.97) 0%, rgba(11, 18, 48, 0.82) 40%, rgba(11, 18, 48, 0) 64%); }
    .banner-slide__image img { object-position: var(--pos, 50%) 0%; }
    .banner-slide__content { justify-content: flex-end; padding: 0 18px 48px; max-width: none; }
    .banner-slide__title { font-size: 34px; }
    p.banner-slide__title { font-size: 28px; }
    .banner-slide__content p:not(.banner-slide__title) { font-size: 15px; margin-bottom: 14px; }
    .banner-dots { left: 18px; bottom: 18px; }
    .container.page-content { padding-top: 14px; padding-bottom: 44px; }
    .content-box { padding: 28px 16px 34px; border-radius: var(--radius-m); }
    .page-text h2 { font-size: 27px; margin-top: 48px; padding-left: 46px; }
    .page-text h2::before { width: 32px; height: 32px; margin-top: -16px; }
    .page-text > p:first-child { font-size: 18px; }
    .toc__list { columns: 1; padding-left: 40px; }
    .media-row { grid-template-columns: 1fr; gap: 22px; }
    .media-row--flip .media-row__figure { order: 0; }
    .table-scroll table { min-width: 0; font-size: 15px; }
    .table-scroll td:first-child { white-space: normal; }
    .table-scroll th, .table-scroll td { padding: 10px 12px; }
    .faq__question { font-size: 16px; padding: 15px; }
    .faq__answer p { padding: 0 15px 16px; }
}
@media (max-width: 420px) {
    .btn--ghost { display: none; }
    .container { padding: 0 8px; }
    .content-box { padding: 24px 12px 28px; }
}
