:root {
    --rpg-gold: #D4AF37;
    --rpg-dark: #0f0a08;
    --rpg-darker: #050505;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --glow-color: rgba(212, 175, 55, 0.5);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--rpg-dark);
    color: var(--stone-200);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: 'MedievalSharp', cursive;
    font-weight: 400;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.py-32 { padding-top: 128px; padding-bottom: 128px; }

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--rpg-dark);
    border-bottom: 2px solid var(--rpg-gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.header-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    transition: transform 0.3s ease;
}

.logo-btn:hover .header-logo {
    transform: scale(1.05);
}

.desktop-nav {
    display: none;
    gap: 32px;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    background: none;
    border: none;
    color: var(--stone-400);
    font-family: 'MedievalSharp', cursive;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--stone-100);
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--rpg-gold);
}

.mobile-toggle {
    background: none;
    border: none;
    color: var(--rpg-gold);
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--rpg-dark);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 24px;
    gap: 24px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav-link {
    background: none;
    border: none;
    color: var(--stone-400);
    font-family: 'MedievalSharp', cursive;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-link.active {
    color: var(--rpg-gold);
}

/* PAGES */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

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

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-cover: cover;
    opacity: 0.6;
    transform: scale(1.05);
}

.hero-overlay-v {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent, black);
}

.hero-overlay-h {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4), transparent, rgba(0,0,0,0.4));
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-family: 'MedievalSharp', cursive;
    color: var(--rpg-gold);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 16px;
    margin-bottom: 16px;
    display: block;
}

.hero-logo-container {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
}

.hero-logo {
    width: 60%;
    max-width: 300px;
    object-fit: contain;
    object-fit: cover;
    height: auto;
    filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.4));
}

@media (min-width: 768px) {
    .hero-logo { max-width: 500px; }
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 48px;
    color: var(--stone-400);
    font-family: 'MedievalSharp', cursive;
    font-size: 20px;
}

@media (min-width: 768px) {
    .hero-description { font-size: 20px; }
}

.rpg-button {
    background: none;
    border: 1px solid var(--rpg-gold);
    color: var(--rpg-gold);
    font-family: 'MedievalSharp', cursive;
    padding: 16px 40px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rpg-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.rpg-button:hover::before {
    left: 100%;
}

.rpg-button:hover {
    background-color: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--rpg-gold), transparent);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* SECTION COMMON */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .section-title { font-size: 48px; }
}

.section-divider {
    width: 96px;
    height: 1px;
    background-color: var(--rpg-gold);
    margin: 0 auto;
}

.section-subtitle {
    margin-top: 24px;
    color: var(--stone-400);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* STORY */
.story-grid {
    display: flex;
    flex-direction: column;
    gap: 128px;
}

.story-item {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .story-item { grid-template-columns: 1fr 1fr; }
    .story-item.reverse .story-text { order: 2; }
    .story-item.reverse .story-image-wrapper { order: 1; }
}

.story-text h3 {
    font-size: 32px;
    margin-bottom: 24px;
    color: white;
}

.story-text p {
    margin-bottom: 24px;
    color: var(--stone-300);
    font-family: 'Playfair Display', serif;
    font-size: 18px;
}

.story-quote {
    color: var(--rpg-gold);
    font-style: italic;
    border-left: 2px solid rgba(212, 175, 55, 0.3);
    padding: 8px 0 8px 16px;
    background-color: rgba(212, 175, 55, 0.05);
    margin-top: 24px;
}

.story-image-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 1s ease;
}

.story-image-wrapper:hover .story-image {
    filter: grayscale(0%);
}

.cta-panel {
    margin-top: 128px;
    text-align: center;
    padding: 48px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.cta-panel h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.cta-panel p {
    color: var(--stone-400);
    margin-bottom: 32px;
    font-style: italic;
}

/* CHARACTERS */
.characters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 640px) {
    .characters-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .characters-grid { grid-template-columns: repeat(4, 1fr); }
}

.char-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.char-card:hover {
    transform: translateY(-5px);
}

.char-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.7s ease;
}

.char-card:hover .char-img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.char-info {
    padding: 24px;
    flex-grow: 1;
}

.char-role {
    color: var(--rpg-gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
    display: block;
}

.char-name {
    font-size: 24px;
    margin-bottom: 16px;
}

.char-desc {
    color: var(--stone-400);
    font-size: 14px;
    font-family: 'Playfair Display', serif;
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-item {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* DOWNLOAD */
.download-grid {
    display: grid;
    gap: 48px;
}

@media (min-width: 768px) {
    .download-grid { grid-template-columns: 1fr 1fr; }
}

.sub-title {
    font-size: 20px;
    margin-bottom: 24px;
    border-left: 2px solid var(--rpg-gold);
    padding-left: 16px;
}

.platform-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    color: var(--stone-200);
    text-decoration: none;
    transition: all 0.3s ease;
}

.platform-btn i:first-child {
    color: var(--rpg-gold);
    width: 24px;
    height: 24px;
}

.platform-btn span {
    font-family: 'MedievalSharp', cursive;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 16px;
}

.dl-icon {
    margin-left: auto;
    width: 16px;
    height: 16px;
    opacity: 0.3;
}

.platform-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
}

.platform-btn.windows:hover { color: #60a5fa; }
.platform-btn.linux:hover { color: #fb923c; }
.platform-btn.macos:hover { color: #f5f5f4; }
.platform-btn.android:hover { color: #4ade80; }
.platform-btn.web:hover { color: var(--rpg-gold); }

.info-box {
    margin-top: 32px;
    padding: 24px;
    background-color: rgba(212, 175, 55, 0.05);
    border-radius: 12px;
}

.info-box p {
    font-size: 12px;
    color: var(--stone-400);
    font-style: italic;
}

.req-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.req-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.req-card h4 {
    color: var(--rpg-gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.req-card ul {
    list-style: none;
    font-size: 11px;
    color: var(--stone-400);
    font-family: 'JetBrains Mono', monospace;
}

.req-card ul li span {
    color: var(--stone-500);
}

.req-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* DONATE */
.donate-container {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .donate-container { grid-template-columns: 1fr 1fr; }
}

.benefit-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-item {
    display: flex;
    gap: 16px;
}

.benefit-icon {
    padding: 8px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    color: var(--rpg-gold);
}

.benefit-text h4 {
    font-size: 14px;
    text-transform: uppercase;
}

.benefit-text p {
    font-size: 12px;
    color: var(--stone-500);
}

.donate-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 32px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.donate-btn {
    width: 100%;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'MedievalSharp', cursive;
}

.donate-btn.coffee { border-color: rgba(212, 175, 55, 0.3); }

.donate-btn-content {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.donate-btn i, .patreon-icon {
    color: var(--rpg-gold);
    width: 24px;
    height: 24px;
}

.patreon-icon {
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-title { color: white; font-weight: bold; }
.btn-sub { color: var(--stone-500); font-size: 12px; }

.donate-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.donate-btn:hover .arrow {
    transform: translateX(5px);
}

.pix-section {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.pix-label {
    font-size: 12px;
    color: var(--stone-500);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.qr-code {
    background: white;
    padding: 16px;
    border-radius: 8px;
    width: 180px;
    margin: 0 auto;
}

.qr-code img { width: 100%; }

/* CONTACT */
.contact-panel {
    background: rgba(255, 255, 255, 0.03);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.contact-grid {
    display: grid;
    gap: 48px;
    margin-bottom: 48px;
}

@media (min-width: 640px) {
    .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rpg-gold);
    transition: background-color 0.3s ease;
}

.contact-item:hover .contact-icon {
    background-color: rgba(212, 175, 55, 0.2);
}

.contact-details .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--stone-500);
    display: block;
    margin-bottom: 4px;
}

.contact-details .value {
    color: var(--stone-200);
    font-size: 18px;
}

.community-section {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.community-section p {
    color: var(--stone-400);
    margin-bottom: 32px;
    font-style: italic;
}

.contact-footer {
    margin-top: 64px;
    text-align: center;
}

.contact-footer p {
    color: var(--stone-500);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

/* FOOTER */
.footer {
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.social-link {
    color: var(--stone-500);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--rpg-gold);
    transform: scale(1.1);
}

.copyright {
    color: var(--stone-600);
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0,0,0,0.9);
    padding: 24px;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.open {
    display: flex;
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 2100;
}

.close-btn:hover { color: var(--rpg-gold); }

.lightbox-content {
    max-width: 1000px;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
