:root {
    --bg: #0b0d12;
    --bg-elevated: #121620;
    --bg-card: #161b26;
    --border: rgba(212, 175, 55, 0.18);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --gold: #d4af37;
    --gold-bright: #f3d266;
    --crimson: #991b1b;
    --crimson-bright: #dc2626;
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --heading: #f9fafb;
    --radius: 12px;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

*, *::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, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gold-bright);
}

h1, h2, h3, h4 {
    color: var(--heading);
    font-family: 'Cinzel', Georgia, serif;
    line-height: 1.25;
    margin-top: 0;
}

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

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 13, 18, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--heading);
}

.brand-logo {
    border-radius: 10px;
    border: 1px solid var(--border);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: var(--gold);
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 2px;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold);
}

.btn-playstore-nav {
    background: linear-gradient(135deg, var(--crimson) 0%, #b91c1c 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    white-space: nowrap;
}

.btn-playstore-nav:hover {
    color: #fff;
    filter: brightness(1.1);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--gold);
    display: block;
}

/* Hero & Playable Game Section */
.hero-play-section {
    padding: 28px 0 40px;
    background: radial-gradient(circle at 50% 0%, rgba(153, 27, 27, 0.16), transparent 60%);
}

.hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.hero-top h1 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    margin-bottom: 6px;
}

.hero-subtitle {
    margin: 0;
    color: var(--text-muted);
    max-width: 660px;
    font-size: 0.96rem;
}

.player-wrapper {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.player-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: #0f131c;
    border-bottom: 1px solid var(--border-subtle);
}

.player-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.player-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-ctrl {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-ctrl:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.player-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 440px;
    max-height: 76vh;
    background: #06070a;
}

.player-stage iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.fallback-canvas {
    width: 100%;
    height: 100%;
    display: none;
    background: #090b10;
}

.fallback-canvas.active {
    display: block;
}

.player-footer-note {
    padding: 10px 18px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #0f131c;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

/* AdSense Safe Container (Generous separation from game canvas) */
.ad-safe-slot {
    margin: 32px auto;
    padding: 16px;
    max-width: 970px;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Content Sections */
.content-section {
    padding: 48px 0;
    border-top: 1px solid var(--border-subtle);
}

.section-header {
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    margin-bottom: 8px;
    color: var(--gold);
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
    max-width: 720px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 22px;
}

.card-gold {
    border-color: var(--border);
}

.card h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
    color: var(--heading);
}

.skin-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skin-thumb {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12), rgba(11, 13, 18, 0.9));
    border-radius: 8px;
    padding: 8px;
}

.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-free {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.badge-sp {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-bright);
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-card);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

th, td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

th {
    background: #10141d;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

tr:last-child td {
    border-bottom: 0;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold) 0%, #b58d22 100%);
    color: #0b0d12;
    font-weight: 800;
    padding: 12px 22px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
}

.btn-primary:hover {
    color: #0b0d12;
    filter: brightness(1.08);
}

.btn-crimson {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-bright) 100%);
    color: #fff;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.btn-crimson:hover {
    color: #fff;
    filter: brightness(1.08);
}

.btn-gold-sm {
    display: inline-block;
    background: var(--gold);
    color: #0b0d12;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 9px 14px;
    border-radius: 8px;
    margin-top: 8px;
}

.btn-gold-sm:hover {
    color: #0b0d12;
    background: var(--gold-bright);
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    color: var(--heading);
    border: 0;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    padding: 0 20px 16px;
    color: var(--text-muted);
    font-size: 0.94rem;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Inner Pages (About, Contact, Privacy, Terms) */
.page-hero {
    padding: 44px 0 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08), transparent 65%);
}

.page-hero h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--gold);
    margin-bottom: 8px;
}

.prose-section {
    padding: 36px 0 64px;
}

.prose-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 900px;
}

.prose-card h2 {
    font-size: 1.25rem;
    color: var(--gold);
    margin-top: 26px;
    margin-bottom: 10px;
}

.prose-card h2:first-child {
    margin-top: 0;
}

.prose-card ul {
    padding-left: 20px;
}

.prose-card li {
    margin-bottom: 6px;
}

/* Contact Form */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--heading);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    background: #0d1018;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.alert-success {
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    margin-bottom: 18px;
}

.alert-error {
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.14);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #fca5a5;
    margin-bottom: 18px;
}

/* Footer */
.site-footer {
    background: #07090d;
    border-top: 1px solid var(--border);
    padding-top: 42px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
    gap: 28px;
    padding-bottom: 34px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-col h3 {
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.footer-col a {
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--gold);
}

.muted {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-email {
    font-size: 0.82rem;
    margin-top: 12px;
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: 14px 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

/* Cookie Consent Bar */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(11, 13, 18, 0.96);
    border-top: 1px solid var(--border);
    padding: 12px 0;
    backdrop-filter: blur(8px);
}

.cookie-bar.hidden {
    display: none;
}

.cookie-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cookie-bar-inner p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 960px) {
    .grid-3, .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nav-toggle {
        display: flex;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #0d1018;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 20px;
        align-items: flex-start;
        gap: 12px;
    }
    .main-nav.open {
        display: flex;
    }
}

@media (max-width: 720px) {
    .grid-2, .grid-3, .footer-grid {
        grid-template-columns: 1fr;
    }
    .player-stage {
        min-height: 320px;
    }
}
