/* Questflare - Adventure Treasure Gaming Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #ffd700;
    --secondary-gold: #ffed4e;
    --deep-treasure: #8b4513;
    --medium-treasure: #cd853f;
    --light-treasure: #daa520;
    --adventure-red: #dc143c;
    --adventure-blue: #4169e1;
    --adventure-green: #228b22;
    --treasure-copper: #b87333;
    --text-treasure: #fff8dc;
    --text-adventure: #f5deb3;
    --text-dark: #8b4513;
    --accent-ruby: #e0115f;
    --warning-amber: #ffbf00;
}

body {
    font-family: 'Cinzel', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--deep-treasure) 0%, var(--medium-treasure) 50%, var(--light-treasure) 100%);
    color: var(--text-treasure);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(220, 20, 60, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(65, 105, 225, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: treasureGlow 8s ease-in-out infinite alternate;
}

@keyframes treasureGlow {
    0% { opacity: 0.4; }
    100% { opacity: 0.7; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: linear-gradient(90deg, var(--deep-treasure) 0%, var(--medium-treasure) 50%, var(--deep-treasure) 100%);
    border-bottom: 3px solid var(--primary-gold);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary-gold);
    text-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 30px rgba(255, 215, 0, 0.6),
        0 0 45px rgba(255, 215, 0, 0.4);
    letter-spacing: 2px;
    position: relative;
}

.logo h1::before {
    content: '⚔️';
    margin-right: 10px;
    animation: treasurePulse 2.5s ease-in-out infinite alternate;
}

.logo h1::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -15px;
    right: -15px;
    bottom: -8px;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    border-radius: 15px;
    z-index: -1;
    animation: treasureAura 3s ease-in-out infinite;
}

@keyframes treasurePulse {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.15); filter: brightness(1.4); }
}

@keyframes treasureAura {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.08); }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    color: var(--text-treasure);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 20px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 215, 0, 0.1);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    border-color: var(--adventure-red);
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.hero-section {
    text-align: center;
    padding: 70px 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(220, 20, 60, 0.1) 50%, rgba(65, 105, 225, 0.1) 100%);
    border-radius: 25px;
    margin-bottom: 45px;
    border: 3px solid var(--primary-gold);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 0 35px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: treasureRotate 25s linear infinite;
    z-index: -1;
}

@keyframes treasureRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--primary-gold);
    margin-bottom: 25px;
    text-shadow: 
        0 0 25px rgba(255, 215, 0, 0.8),
        0 0 50px rgba(255, 215, 0, 0.6);
    animation: titleTreasure 5s ease-in-out infinite alternate;
    background: linear-gradient(45deg, var(--primary-gold), var(--adventure-red), var(--adventure-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes titleTreasure {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-adventure);
    margin-bottom: 30px;
    font-weight: 400;
}

.notice-banner {
    background: linear-gradient(135deg, var(--deep-treasure) 0%, var(--medium-treasure) 100%);
    color: white;
    padding: 25px;
    border-radius: 20px;
    margin: 35px 0;
    border: 3px solid var(--treasure-copper);
    box-shadow: 
        0 10px 25px rgba(139, 69, 19, 0.4),
        inset 0 0 25px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.notice-banner h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    text-align: center;
    color: var(--treasure-copper);
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.notice-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.notice-item:hover {
    transform: translateY(-5px);
}

.game-section {
    background: var(--medium-treasure);
    border: 3px solid var(--primary-gold);
    border-radius: 25px;
    padding: 40px;
    margin: 45px 0;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 35px rgba(255, 215, 0, 0.1);
    position: relative;
}

.game-title {
    font-size: 2.4rem;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.game-container {
    background: #000;
    border: 2px solid var(--secondary-gold);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.2);
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 12px;
    background: #000;
}

.footer {
    background: var(--deep-treasure);
    border-top: 3px solid var(--primary-gold);
    padding: 40px 0;
    margin-top: 70px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-adventure);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--medium-treasure);
    color: var(--text-adventure);
}

.age-verification-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 69, 19, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.age-verification-content {
    background: linear-gradient(135deg, var(--deep-treasure) 0%, var(--medium-treasure) 100%);
    border: 3px solid var(--primary-gold);
    border-radius: 25px;
    padding: 50px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.age-verification-header h2 {
    color: var(--primary-gold);
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.age-verification-body {
    margin: 30px 0;
}

.age-verification-body p {
    margin-bottom: 20px;
    color: var(--text-treasure);
    font-size: 1.1rem;
}

.age-verification-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    color: var(--text-dark);
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-treasure);
    border: 2px solid var(--primary-gold);
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: var(--text-dark);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Mobile hamburger */
.nav-toggle{display:none}
.hamburger{display:none;cursor:pointer;margin-left:12px}
.hamburger span{display:block;width:24px;height:2px;background:var(--text-treasure);margin:6px 0;transition:transform .2s ease,opacity .2s ease}
@media (max-width: 900px){
  .nav{position:relative}
  .nav-list{display:none;flex-direction:column;background:rgba(0,0,0,.6);border:2px solid var(--primary-gold);border-radius:14px;padding:12px;position:absolute;left:20px;right:20px;top:70px}
  .hamburger{display:block}
  .nav-toggle:checked ~ .hamburger span:nth-child(1){transform:translateY(8px) rotate(45deg)}
  .nav-toggle:checked ~ .hamburger span:nth-child(2){opacity:0}
  .nav-toggle:checked ~ .hamburger span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
  .nav-toggle:checked ~ .nav .nav-list{display:flex}
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .age-verification-actions {
        flex-direction: column;
    }
    
    .notice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .game-frame {
        height: 400px;
    }
}