:root {
    --bg: #060814;
    --bg-alt: #0E152B;
    --bg-plum: #18081C;
    --gold: #FFB84D;
    --gold-deep: #D4AF37;
    --gold-pale: #FFF5CC;
    --gold-glow: rgba(255, 184, 77, 0.35);
    --turquoise: #00F0D4;
    --turquoise-glow: rgba(0, 240, 212, 0.35);
    --ruby: #FF5533;
    --ruby-glow: rgba(255, 85, 51, 0.32);
    --emerald: #00FF88;
    --prismatic: #E2D0FF;
    --glass: rgba(10, 14, 30, 0.84);
    --glass-card: rgba(6, 8, 20, 0.78);
    --glass-border: rgba(255, 184, 77, 0.25);
    --glass-border-turq: rgba(0, 240, 212, 0.24);
    --text: #F1F5F9;
    --text-muted: #94A3B8;
    --font-display: 'Cinzel', Georgia, serif;
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

:where(a:any-link, button):focus-visible {
    outline: 2px solid var(--turquoise);
    outline-offset: 3px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

/* Fundo cósmico do Duat com grade orbital/alquímica */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    inline-size: 100%;
    block-size: 100dvh;
    background-image:
        radial-gradient(circle at 50% 12%, rgba(255, 184, 77, 0.12), transparent 55%),
        radial-gradient(circle at 18% 72%, rgba(0, 240, 212, 0.08), transparent 45%),
        radial-gradient(circle at 85% 82%, rgba(255, 85, 51, 0.08), transparent 50%),
        linear-gradient(rgba(255, 184, 77, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 212, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 56px 56px, 56px 56px;
    z-index: -1;
}

/* Header & Navegação */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(6, 8, 20, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: radial-gradient(circle at 35% 35%, #FFF5CC, #FFB84D 55%, #8A4B08 100%);
    box-shadow: 0 0 16px var(--gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #060814;
    font-weight: 800;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--gold);
    letter-spacing: 3px;
}

.logo span {
    color: var(--turquoise);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-left: 6px;
}

.game-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.94rem;
    transition: 0.25s;
    padding: 6px 12px;
    border-radius: 6px;
}

nav a:hover,
nav a.active {
    color: #fff;
    background: rgba(255, 184, 77, 0.12);
    border-bottom: 2px solid var(--gold);
    text-shadow: 0 0 10px var(--gold-glow);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.88rem;
}

.lang-switch a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
    padding: 3px 8px;
    border-radius: 4px;
}

.lang-switch a:hover {
    color: #fff;
}

.lang-switch a.active-lang {
    color: var(--turquoise);
    background: rgba(0, 240, 212, 0.14);
    border: 1px solid var(--glass-border-turq);
}

.lang-switch .sep {
    color: #475569;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 78dvh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: inset 0 0 160px #020308;
}

.hero-grid {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 32px;
    align-items: center;
}

.hero-content {
    padding: 40px 36px;
}

.badge-hero {
    display: inline-block;
    color: var(--turquoise);
    border: 1px solid rgba(0, 240, 212, 0.45);
    background: rgba(0, 240, 212, 0.1);
    padding: 5px 15px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 1.8rem + 2.4vw, 3.55rem);
    line-height: 1.05;
    margin: 0 0 8px;
    color: var(--gold);
    letter-spacing: 5px;
    text-shadow: 0 0 32px rgba(255, 184, 77, 0.35);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gold-pale);
    margin: 0 0 16px;
    letter-spacing: 1.5px;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--turquoise);
    font-weight: 600;
    margin: 0 0 14px;
}

.hero-desc {
    font-size: 1.04rem;
    color: #CBD5E1;
    margin: 0 0 28px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-media {
    padding: 16px;
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #03040A;
    border: 1px solid var(--glass-border);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption {
    margin: 12px 0 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.video-caption code {
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

/* Placeholders automáticos enquanto YOUTUBE_VIDEO_ID / GAME_ID aguardam preenchimento */
.embed-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 22px;
    color: var(--text);
}

.embed-placeholder--video {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(6, 8, 20, 0.88), rgba(14, 21, 43, 0.84)),
        url('../images/cover_itch_630x500.png') center / cover no-repeat;
}

.embed-placeholder--itch {
    min-block-size: 167px;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 240, 212, 0.12), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(255, 184, 77, 0.14), transparent 55%),
        rgba(6, 8, 20, 0.94);
}

.embed-placeholder-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--turquoise);
    background: rgba(0, 240, 212, 0.12);
    border: 1px solid rgba(0, 240, 212, 0.4);
}

.embed-placeholder-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.embed-placeholder-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-inline-size: 44ch;
}

.embed-placeholder-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--gold-pale);
    background: rgba(255, 184, 77, 0.14);
    border: 1px solid rgba(255, 184, 77, 0.42);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.embed-placeholder-link:hover {
    background: rgba(255, 184, 77, 0.25);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.video-frame iframe[src*="YOUTUBE_VIDEO_ID"],
.itch-iframe-wrap iframe[src*="GAME_ID"] {
    display: none;
}

.video-frame iframe[src*="YOUTUBE_VIDEO_ID"] + .embed-placeholder,
.itch-iframe-wrap iframe[src*="GAME_ID"] + .embed-placeholder {
    display: flex;
}

/* Botões */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    background: linear-gradient(135deg, #FFB84D, #E6951D);
    color: #060814;
    border: 1px solid var(--gold);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.92rem;
    transition: 0.25s;
    box-shadow: 0 0 22px rgba(255, 184, 77, 0.32);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFD27D, #FFB84D);
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(255, 184, 77, 0.55);
}

.btn-turquoise {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(0, 240, 212, 0.14);
    color: var(--turquoise);
    border: 1px solid rgba(0, 240, 212, 0.5);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    font-size: 0.9rem;
    transition: 0.25s;
}

.btn-turquoise:hover {
    background: var(--turquoise);
    color: #060814;
    transform: translateY(-2px);
    box-shadow: 0 0 26px var(--turquoise-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    font-size: 0.9rem;
    transition: 0.25s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Containers e Painéis */
.container {
    max-width: 1120px;
    margin: 52px auto;
    padding: 0 24px;
}

.glass-panel {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.52);
    padding: 34px;
}

.callout-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(90deg, rgba(255, 184, 77, 0.11), rgba(0, 240, 212, 0.09));
    border-color: rgba(0, 240, 212, 0.35);
    margin-bottom: 42px;
    padding: 20px 26px;
}

.callout-icon {
    font-size: 2.1rem;
    line-height: 1;
}

.callout-banner p {
    margin: 0;
    font-size: 1.03rem;
    color: #E2E8F0;
}

.callout-banner strong {
    color: var(--gold);
}

.manual-section {
    margin-bottom: 44px;
    position: relative;
    scroll-margin-top: 90px;
}

.section-tag {
    display: inline-block;
    background: rgba(0, 240, 212, 0.1);
    color: var(--turquoise);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    padding: 4px 11px;
    border-radius: 4px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 240, 212, 0.28);
}

.manual-section h2 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.95rem;
    letter-spacing: 1px;
    margin: 0 0 18px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
}

.section-lead {
    font-size: 1.08rem;
    color: #CBD5E1;
    margin: 0 0 26px;
}

.section-body p {
    margin: 0 0 16px;
    font-size: 1.04rem;
    color: #E2E8F0;
}

.section-body strong {
    color: var(--gold);
    font-weight: 600;
}

.section-body code,
td code,
.cycle-stats code {
    background: rgba(0, 240, 212, 0.1);
    color: var(--turquoise);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.88em;
    border: 1px solid rgba(0, 240, 212, 0.22);
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.highlight-card {
    background: var(--glass-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--gold);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hl-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--turquoise);
    font-weight: 700;
    letter-spacing: 1.1px;
}

.hl-val {
    font-size: 0.98rem;
    color: #fff;
    font-weight: 500;
}

/* Fórmulas / Física Orbital */
.formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    margin-top: 26px;
}

.formula-card {
    background: rgba(6, 8, 20, 0.88);
    border: 1px solid var(--glass-border-turq);
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.formula-card h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.12rem;
}

.formula-box {
    background: #03050C;
    border: 1px solid rgba(0, 240, 212, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.formula-box code {
    font-family: var(--font-mono);
    font-size: 0.98rem;
    color: var(--gold);
    display: block;
    background: none;
    border: none;
    padding: 0;
}

.formula-desc {
    font-size: 0.93rem;
    color: #94A3B8;
    margin: 0;
}

/* Grade dos 6 Fragmentos Sagrados da Alma */
.souls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.soul-card {
    background: var(--glass-card);
    border: 1px solid rgba(255, 184, 77, 0.22);
    border-top: 3px solid var(--gold);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.soul-card:hover {
    transform: translateY(-4px);
    border-color: var(--turquoise);
    box-shadow: 0 12px 28px rgba(0, 240, 212, 0.12);
}

.soul-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.soul-planet {
    color: var(--turquoise);
}

.soul-symbol {
    color: var(--gold-pale);
    background: rgba(255, 184, 77, 0.14);
    border: 1px solid rgba(255, 184, 77, 0.35);
    padding: 3px 9px;
    border-radius: 999px;
}

.soul-card h3 {
    font-family: var(--font-display);
    margin: 2px 0 0;
    font-size: 1.28rem;
    color: var(--gold);
}

.soul-card p {
    margin: 0;
    font-size: 0.94rem;
    color: #CBD5E1;
}

.soul-technique {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: #E2E8F0;
}

.soul-technique strong {
    color: var(--turquoise);
}

/* Tríade Solar & Eternidade de Neheh */
.cycles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 20px;
}

.cycle-card {
    background: var(--glass-card);
    border-radius: 12px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cycle-khepri { border-top: 4px solid #FFB84D; }
.cycle-ra { border-top: 4px solid #FFF5CC; }
.cycle-atum { border-top: 4px solid #FF5533; }
.cycle-neheh { border-top: 4px solid #E2D0FF; }

.cycle-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 999px;
}

.cycle-khepri .cycle-badge { background: rgba(255, 184, 77, 0.15); color: #FFB84D; border: 1px solid rgba(255, 184, 77, 0.45); }
.cycle-ra .cycle-badge { background: rgba(255, 245, 204, 0.14); color: #FFF5CC; border: 1px solid rgba(255, 245, 204, 0.45); }
.cycle-atum .cycle-badge { background: rgba(255, 85, 51, 0.16); color: #FF7A5C; border: 1px solid rgba(255, 85, 51, 0.45); }
.cycle-neheh .cycle-badge { background: rgba(226, 208, 255, 0.14); color: #E2D0FF; border: 1px solid rgba(226, 208, 255, 0.45); }

.cycle-card h3 {
    font-family: var(--font-display);
    margin: 0;
    font-size: 1.24rem;
    color: #fff;
}

.cycle-arch {
    margin: 0;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}

.cycle-stats {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    color: #CBD5E1;
}

.color-chip {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 5px;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.maat-box {
    margin-top: 26px;
    background: linear-gradient(135deg, rgba(255, 184, 77, 0.12), rgba(14, 21, 43, 0.9));
    border: 1px solid rgba(255, 184, 77, 0.45);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
}

.maat-seal {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #060814;
    background: radial-gradient(circle, #FFF5CC, #FFB84D 68%, #C97B18 100%);
    box-shadow: 0 0 24px rgba(255, 184, 77, 0.4);
}

.maat-box h3 {
    font-family: var(--font-display);
    margin: 0 0 6px;
    color: var(--gold);
    font-size: 1.25rem;
}

.maat-box p {
    margin: 0;
    color: #E2E8F0;
    font-size: 0.96rem;
}

/* Perks & Controles */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.perk-card {
    background: var(--glass-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 18px;
}

.perk-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.perk-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #CBD5E1;
}

.perk-magnet { border-left: 3px solid #00F0FF; }
.perk-magnet h3 { color: #00F0FF; }
.perk-comet { border-left: 3px solid #FF5511; }
.perk-comet h3 { color: #FF7744; }
.perk-horus { border-left: 3px solid #FFD700; }
.perk-horus h3 { color: #FFD700; }
.perk-grip { border-left: 3px solid #00FF88; }
.perk-grip h3 { color: #00FF88; }

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.controls-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
    background: rgba(6, 8, 20, 0.88);
}

.controls-table thead tr {
    background: var(--bg-alt);
    border-bottom: 2px solid var(--gold);
    color: var(--gold);
    text-align: left;
}

.controls-table th,
.controls-table td {
    padding: 12px 16px;
}

.controls-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.controls-table tbody tr:last-child {
    border-bottom: none;
}

.controls-table tbody tr:hover {
    background: rgba(0, 240, 212, 0.05);
}

/* Galeria & Itch.io Widget */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(305px, 1fr));
    gap: 22px;
}

.gallery-card {
    background: rgba(6, 8, 20, 0.88);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--turquoise);
    box-shadow: 0 14px 30px rgba(0, 240, 212, 0.15);
}

.gallery-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #03050C;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-img-wrap img {
    transform: scale(1.03);
}

.gallery-caption {
    padding: 16px 18px;
}

.gallery-caption h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
    color: var(--gold);
}

.gallery-caption p {
    margin: 0;
    font-size: 0.9rem;
    color: #CBD5E1;
}

.itch-embed-box {
    margin-top: 34px;
    background: linear-gradient(135deg, rgba(14, 21, 43, 0.92), rgba(24, 8, 28, 0.85));
    border: 1px solid var(--gold);
    border-radius: 14px;
    padding: 30px;
    text-align: center;
}

.itch-embed-box h3 {
    font-family: var(--font-display);
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 1.55rem;
}

.itch-embed-box p {
    margin: 0 auto 22px;
    max-width: 680px;
    color: #E2E8F0;
}

.itch-iframe-wrap {
    max-width: 552px;
    margin: 0 auto 22px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 184, 77, 0.35);
    background: #060814;
}

.itch-iframe-wrap iframe {
    width: 100%;
    height: 167px;
    display: block;
    border: 0;
}

.support-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Demo WebGL jogável no navegador (somente desktop: teclado/gamepad) */
.demo-mobile-note {
    display: none;
    margin: 14px 0 0;
    font-size: 0.88rem;
    color: var(--turquoise);
}

.itch-embed-box .demo-mobile-note {
    margin: 16px auto 0;
}

@media (pointer: coarse) {
    .btn-primary,
    .btn-turquoise,
    .btn-secondary {
        min-block-size: 44px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .demo-desktop-only {
        display: none !important;
    }

    .demo-mobile-note {
        display: block;
    }
}

/* Footer oficial Athanode */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #64748B;
    border-top: 1px solid var(--glass-border);
    margin-top: 70px;
    background: rgba(4, 5, 12, 0.94);
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1.4px;
    margin-bottom: 8px;
}

.footer-athanode {
    margin: 16px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.athanode-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--turquoise);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 7px 18px;
    border-radius: 20px;
    background: rgba(0, 240, 212, 0.08);
    border: 1px solid rgba(0, 240, 212, 0.28);
    transition: all 0.25s ease;
}

.athanode-back-link:hover {
    background: rgba(0, 240, 212, 0.2);
    border-color: var(--turquoise);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 16px var(--turquoise-glow);
}

.footer-social-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #CBD5E1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 7px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: all 0.25s ease;
}

.footer-social-link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}

.footer-social-link:hover {
    background: rgba(255, 184, 77, 0.14);
    border-color: var(--gold);
    color: #fff;
    transform: translateY(-2px);
}

footer p {
    margin: 0;
    font-size: 0.85rem;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 920px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .glass-header {
        padding: 10px 18px;
        height: 58px;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .logo span {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        background: rgba(14, 21, 43, 0.9);
        border: 1px solid var(--glass-border);
        border-radius: 8px;
    }

    .hamburger-bar {
        display: block;
        width: 20px;
        height: 2px;
        background-color: var(--gold);
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .menu-toggle.is-active .hamburger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.is-active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .hamburger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .game-nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(6, 8, 20, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 2px solid var(--gold);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.25s ease;
    }

    .game-nav-wrapper.is-open {
        max-height: 480px;
        opacity: 1;
        pointer-events: auto;
    }

    nav {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    nav a {
        display: block;
        padding: 13px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        width: 100%;
        text-align: left;
        border-radius: 0;
    }

    .lang-switch {
        width: 100%;
        justify-content: center;
        gap: 16px;
        padding: 14px 20px 18px;
        background: rgba(0, 0, 0, 0.35);
    }

    .hero-content {
        padding: 28px 20px;
    }

    .hero-content h1 {
        font-size: 2.35rem;
        letter-spacing: 3px;
    }

    .manual-section {
        padding: 22px;
    }

    .callout-banner,
    .maat-box {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }

    .maat-seal {
        margin: 0 auto;
    }
}
