/* Mega888 Akses - light editorial / magazine portal */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap');

:root {
    --paper: #f7f3eb;
    --paper-2: #efe8dc;
    --surface: #fffcf7;
    --ink: #1e1b4b;
    --ink-soft: #312e81;
    --muted: #5c5878;
    --line: #e4dccf;
    --line-strong: #d4c9b5;
    --amber: #d97706;
    --amber-deep: #b45309;
    --amber-soft: #fff4e5;
    --success: #15803d;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 28px rgba(30, 27, 75, 0.06), 0 1px 3px rgba(30, 27, 75, 0.04);
    --shadow-soft: 0 2px 10px rgba(30, 27, 75, 0.04);
    --content: 740px;
    --shell: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 8% -5%, rgba(217, 119, 6, 0.07), transparent 55%),
        radial-gradient(700px 380px at 96% 0%, rgba(49, 46, 129, 0.06), transparent 50%),
        linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
    min-height: 100vh;
}
a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
a:hover { color: var(--amber-deep); }
img { border: 0; max-width: 100%; height: auto; vertical-align: middle; }
code {
    font-size: 0.9em;
    background: var(--amber-soft);
    color: var(--amber-deep);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid #f3dfc0;
}
h1, h2, h3, h4 {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-weight: 650;
    line-height: 1.25;
    color: var(--ink);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 2.85rem); margin: 0 0 0.45em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 1.7em 0 0.55em; }
h3 { font-size: 1.2rem; margin: 1.35em 0 0.45em; }
p { margin: 0 0 1em; color: var(--ink); }
p.lead, .lead { font-size: 1.08rem; color: var(--muted); }
ul, ol { margin: 0 0 1.1em 1.2em; color: var(--muted); }
li { margin-bottom: 0.4em; }
li strong { color: var(--ink); }
small, .muted { color: var(--muted); }

.skip {
    position: absolute; left: -9999px; top: 0;
    background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100;
    border-radius: 8px;
}
.skip:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 252, 247, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .inner {
    width: var(--shell);
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: var(--ink);
    font-weight: 700;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.brand-text span { color: var(--amber-deep); font-weight: 600; }

.menu-toggle {
    display: none;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    border-radius: 8px;
    padding: 8px 12px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px 18px;
    list-style: none;
    margin: 0;
}
.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.94rem;
    padding: 6px 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links .nav-cta {
    margin-left: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
    background: linear-gradient(180deg, #f59e0b, var(--amber));
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.28);
}
.btn-primary:hover {
    background: linear-gradient(180deg, var(--amber), var(--amber-deep));
    color: #fff !important;
}
.btn-secondary {
    background: var(--surface);
    color: var(--ink) !important;
    border-color: var(--line-strong);
}
.btn-secondary:hover {
    border-color: var(--ink-soft);
    color: var(--ink-soft) !important;
}
.btn-sm { padding: 8px 14px; font-size: 0.88rem; }

/* Layout */
.page-wrap {
    width: var(--shell);
    max-width: calc(100% - 32px);
    margin: 0 auto 48px;
}
.article {
    width: var(--content);
    max-width: 100%;
    margin: 28px auto 0;
}
.article-wide {
    width: 920px;
    max-width: 100%;
    margin: 28px auto 0;
}

.kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber-deep);
    margin-bottom: 10px;
}
.subhead {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 550;
    color: var(--muted);
    margin: -0.2em 0 1em;
}
.updated {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1.4em;
}

.hero-figure {
    margin: 0 0 1.6em;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    background: var(--surface);
}
.hero-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin: 1.2em 0 1.6em;
}
.cta-row .text-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.94rem;
}
.cta-row .text-links a { font-weight: 600; }
.cta-row .sep { color: var(--line-strong); }

.card,
.note-card,
.spec-card,
.game-card,
.pay-card,
.soft-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.note-card {
    padding: 16px 18px;
    margin: 1.2em 0;
}
.note-card.warn {
    background: var(--amber-soft);
    border-color: #f0d7a8;
}
.soft-box {
    padding: 18px 20px;
    margin: 1.5em 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.8em 0 1.4em;
    font-size: 0.95rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
th, td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
th {
    color: var(--muted);
    font-weight: 600;
    width: 28%;
    background: rgba(247, 243, 235, 0.7);
}
td { color: var(--ink); }
tr:last-child th,
tr:last-child td { border-bottom: 0; }
.platform-table th { width: auto; background: rgba(49, 46, 129, 0.04); color: var(--ink); }
.platform-table td.os { font-weight: 700; color: var(--ink-soft); }

.steps {
    list-style: none;
    margin: 0.6em 0 1.3em;
    padding: 0;
    counter-reset: step;
}
.steps li {
    position: relative;
    padding: 12px 14px 12px 52px;
    margin-bottom: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 12px;
    top: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 1em 0 1.6em;
}
.game-card { overflow: hidden; display: flex; flex-direction: column; }
.game-card .thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--paper-2);
    overflow: hidden;
}
.game-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.game-card .rtp {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(30, 27, 75, 0.88);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
}
.game-card .body { padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; }
.game-card h3 {
    font-size: 1.05rem;
    margin: 0 0 6px;
}
.game-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    flex: 1;
}
.game-meta {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--amber-deep);
}

.pay-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0.8em 0 1.2em;
}
.pay-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    box-shadow: var(--shadow-soft);
}
.pay-chip img { width: auto; height: 18px; }

.faq-list { margin: 1em 0 1.5em; }
.faq-list details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    padding: 0 16px;
    box-shadow: var(--shadow-soft);
}
.faq-list summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 0;
    font-weight: 700;
    color: var(--ink);
    font-family: 'Source Serif 4', Georgia, serif;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    float: right;
    color: var(--amber);
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
}
.faq-list details[open] summary::after { content: "-"; }
.faq-list details p {
    padding: 0 0 14px;
    color: var(--muted);
    margin: 0;
}

.cta-next {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 1.8em 0 0.5em;
    box-shadow: var(--shadow-soft);
}
.cta-next .label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber-deep);
    margin-bottom: 6px;
}
.cta-next p { margin: 0; color: var(--muted); }

.cred-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0.8em 0 1.1em;
}
.cred-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px;
}
.cred-item small {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 4px;
}
.cred-item strong {
    font-size: 1.05rem;
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.strip-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 1.2em 0;
}
.strip-cards .note-card { margin: 0; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 252, 247, 0.85);
    padding: 36px 0 28px;
    margin-top: 24px;
}
.site-footer .inner {
    width: var(--shell);
    max-width: calc(100% - 32px);
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 24px;
}
.site-footer h4 {
    font-size: 0.95rem;
    margin: 0 0 12px;
}
.site-footer p,
.site-footer li { color: var(--muted); font-size: 0.92rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
}
.site-footer a:hover { color: var(--ink-soft); text-decoration: underline; }
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    text-decoration: none !important;
    color: var(--ink);
    font-weight: 700;
}
.footer-brand img { width: 32px; height: 32px; border-radius: 7px; }
.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--muted);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 80;
}
.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
    .game-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .strip-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .menu-toggle { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        padding: 8px 16px 16px;
        box-shadow: var(--shadow);
    }
    .nav-links[data-open="true"] { display: flex; }
    .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .nav-links .nav-cta {
        margin: 12px 0 0;
        display: flex;
    }
    .nav-links .nav-cta .btn { width: 100%; }
    .game-grid { grid-template-columns: 1fr; }
    .cred-box { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    th { width: 36%; }
}
