:root {
    --gold-primary: #B8860B;
    --gold-light: #DAA520;
    --gold-dark: #8B6914;
    --sand-light: #E7D4B1;
    --sand-medium: #C19A6B;
    --sand-dark: #A0825A;
    --obsidian: #2F1B0C;
    --obsidian-light: #4A3728;
    --parchment: #F5E6C8;
    --jungle-green: #3B6B4A;
    --blood-red: #8B0000;
    --treasure-glow: rgba(218, 165, 32, 0.6);
}

body {
    background: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%23B8860B' fill-opacity='0.03'%3E%3Cpath d='M50 0L60 20L80 20L65 35L70 55L50 45L30 55L35 35L20 20L40 20Z'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='80' fill='none' stroke='%23B8860B' stroke-opacity='0.02' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='60' fill='none' stroke='%23B8860B' stroke-opacity='0.02' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='40' fill='none' stroke='%23B8860B' stroke-opacity='0.02' stroke-width='1'/%3E%3Cline x1='100' y1='20' x2='100' y2='180' stroke='%23B8860B' stroke-opacity='0.02'/%3E%3Cline x1='20' y1='100' x2='180' y2='100' stroke='%23B8860B' stroke-opacity='0.02'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #2F1B0C 0%, #4A3728 50%, #2F1B0C 100%);
    background-attachment: fixed;
    font-family: 'Roboto Condensed', 'Noto Sans SC', sans-serif;
    color: var(--parchment);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(184, 134, 11, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(184, 134, 11, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 69, 19, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.adventure-header {
    background: linear-gradient(180deg, rgba(47, 27, 12, 0.98) 0%, rgba(74, 55, 40, 0.95) 100%);
    border-bottom: 3px solid var(--gold-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 -2px 10px rgba(184, 134, 11, 0.3);
    padding: 12px 0;
}

.adventure-header .logo {
    color: var(--gold-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 20px var(--treasure-glow);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.adventure-nav {
    background: linear-gradient(180deg, rgba(47, 27, 12, 0.98) 0%, rgba(74, 55, 40, 0.95) 100%);
    border-top: 3px solid var(--gold-primary);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5), inset 0 2px 10px rgba(184, 134, 11, 0.3);
}

.adventure-nav .nav-link {
    color: var(--sand-light);
    transition: all 0.3s ease;
    position: relative;
}

.adventure-nav .nav-link:hover,
.adventure-nav .nav-link.active {
    color: var(--gold-light);
    text-shadow: 0 0 10px var(--treasure-glow);
}

.adventure-nav .nav-link i {
    font-size: 1.3rem;
}

.treasure-card {
    background: linear-gradient(145deg, rgba(74, 55, 40, 0.95) 0%, rgba(47, 27, 12, 0.98) 100%);
    border: 2px solid var(--gold-dark);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.treasure-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.treasure-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-light);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 30px var(--treasure-glow);
}

.treasure-card:hover::before {
    opacity: 1;
}

.treasure-card .card-img-top {
    border-bottom: 2px solid var(--gold-dark);
    position: relative;
}

.treasure-card .card-body {
    padding: 16px;
}

.treasure-card .card-title {
    color: var(--gold-light);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.treasure-badge {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--obsidian);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.4);
    text-shadow: none;
}

.progress-bar-treasure {
    background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    box-shadow: 0 0 10px var(--treasure-glow);
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.progress {
    background: rgba(47, 27, 12, 0.8);
    border: 1px solid var(--gold-dark);
    border-radius: 10px;
    height: 10px;
}

.btn-treasure {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border: 2px solid var(--gold-light);
    color: var(--obsidian);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4);
    transition: all 0.3s ease;
}

.btn-treasure:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(184, 134, 11, 0.6);
    color: var(--obsidian);
}

.btn-treasure:active {
    transform: translateY(0);
}

.btn-adventure {
    background: linear-gradient(135deg, var(--jungle-green) 0%, #2a5238 100%);
    border: 2px solid #4a8b5a;
    color: var(--parchment);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-adventure:hover {
    background: linear-gradient(135deg, #4a8b5a 0%, var(--jungle-green) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 107, 74, 0.5);
}

.hero-section {
    background: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200' viewBox='0 0 400 200'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23B8860B' stop-opacity='0.1'/%3E%3Cstop offset='100%25' stop-color='%23B8860B' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,100 Q100,50 200,100 T400,100' fill='none' stroke='url(%23g1)' stroke-width='2'/%3E%3Cpath d='M0,120 Q100,70 200,120 T400,120' fill='none' stroke='url(%23g1)' stroke-width='1'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(47, 27, 12, 0.95) 0%, rgba(139, 69, 19, 0.8) 50%, rgba(47, 27, 12, 0.95) 100%);
    border-bottom: 3px solid var(--gold-primary);
    border-top: 1px solid rgba(184, 134, 11, 0.3);
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5), inset 0 0 100px rgba(184, 134, 11, 0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23B8860B' fill-opacity='0.06'%3E%3Cpath d='M30 5L35 15L45 15L37 22L40 32L30 26L20 32L23 22L15 15L25 15Z'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23B8860B' stroke-opacity='0.04' stroke-dasharray='5,5'/%3E%3C/svg%3E");
    opacity: 0.8;
    animation: patternMove 20s linear infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle at center, rgba(218, 165, 32, 0.15) 0%, transparent 50%);
    animation: heroGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes patternMove {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 60px 60px, 100px 100px; }
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-title {
    color: var(--gold-light);
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 30px var(--treasure-glow);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    color: var(--sand-light);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.section-title {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 1.3rem;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--gold-dark);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--gold-primary);
}

.form-control-adventure {
    background: rgba(47, 27, 12, 0.8);
    border: 2px solid var(--sand-dark);
    color: var(--parchment);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control-adventure:focus {
    background: rgba(47, 27, 12, 0.95);
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(184, 134, 11, 0.3);
    color: var(--parchment);
}

.form-control-adventure::placeholder {
    color: var(--sand-dark);
}

.alert-treasure {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.2) 0%, rgba(139, 69, 19, 0.2) 100%);
    border: 2px solid var(--gold-primary);
    color: var(--gold-light);
    border-radius: 8px;
}

.wheel-container {
    background: radial-gradient(circle, rgba(74, 55, 40, 0.9) 0%, rgba(47, 27, 12, 0.98) 100%);
    border: 4px solid var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--treasure-glow), inset 0 0 60px rgba(0,0,0,0.5);
}

.balance-display {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.3) 0%, rgba(139, 69, 19, 0.4) 100%);
    border: 2px solid var(--gold-primary);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3), 0 0 20px rgba(184, 134, 11, 0.2);
}

.balance-display h3 {
    color: var(--gold-light);
    text-shadow: 0 0 10px var(--treasure-glow);
}

.nav-pills-adventure .nav-link {
    background: transparent;
    border: 2px solid var(--sand-dark);
    color: var(--sand-light);
    border-radius: 8px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.nav-pills-adventure .nav-link:hover {
    border-color: var(--gold-primary);
    color: var(--gold-light);
}

.nav-pills-adventure .nav-link.active {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-color: var(--gold-light);
    color: var(--obsidian);
    font-weight: 700;
}

.table-adventure {
    color: var(--sand-light);
}

.table-adventure thead th {
    background: linear-gradient(135deg, var(--obsidian-light) 0%, var(--obsidian) 100%);
    border-bottom: 2px solid var(--gold-primary);
    color: var(--gold-light);
}

.table-adventure tbody tr {
    border-bottom: 1px solid var(--obsidian-light);
}

.table-adventure tbody tr:hover {
    background: rgba(184, 134, 11, 0.1);
}

.modal-adventure .modal-content {
    background: linear-gradient(145deg, rgba(74, 55, 40, 0.98) 0%, rgba(47, 27, 12, 0.99) 100%);
    border: 2px solid var(--gold-primary);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.modal-adventure .modal-header {
    border-bottom: 2px solid var(--gold-dark);
}

.modal-adventure .modal-title {
    color: var(--gold-light);
}

.modal-adventure .btn-close {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(10deg);
}

.text-gold {
    color: var(--gold-light) !important;
}

.text-sand {
    color: var(--sand-light) !important;
}

.bg-adventure {
    background: linear-gradient(145deg, rgba(74, 55, 40, 0.95) 0%, rgba(47, 27, 12, 0.98) 100%);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--treasure-glow); }
    50% { box-shadow: 0 0 40px var(--treasure-glow), 0 0 60px rgba(218, 165, 32, 0.3); }
}

.treasure-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.treasure-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B8860B' opacity='0.15'%3E%3Cpath d='M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.3;
    pointer-events: none;
}

.corner-ornament {
    position: fixed;
    width: 120px;
    height: 120px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.corner-ornament.top-left {
    top: 60px;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 0 L100 0 L100 20 L20 20 L20 100 L0 100 Z' fill='%23B8860B' opacity='0.3'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23B8860B' stroke-width='2' opacity='0.2'/%3E%3C/svg%3E") no-repeat;
}

.corner-ornament.bottom-right {
    bottom: 80px;
    right: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M100 100 L0 100 L0 80 L80 80 L80 0 L100 0 Z' fill='%23B8860B' opacity='0.3'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23B8860B' stroke-width='2' opacity='0.2'/%3E%3C/svg%3E") no-repeat;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold-light);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.treasure-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), var(--gold-light), var(--gold-primary), transparent);
    margin: 20px 0;
    position: relative;
}

.treasure-divider::before {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold-light);
    background: var(--obsidian);
    padding: 0 10px;
    font-size: 12px;
}

.compass-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='95' fill='none' stroke='%23B8860B' stroke-opacity='0.03' stroke-width='2'/%3E%3Ccircle cx='100' cy='100' r='75' fill='none' stroke='%23B8860B' stroke-opacity='0.02' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='55' fill='none' stroke='%23B8860B' stroke-opacity='0.02' stroke-width='1'/%3E%3Cline x1='100' y1='5' x2='100' y2='195' stroke='%23B8860B' stroke-opacity='0.02'/%3E%3Cline x1='5' y1='100' x2='195' y2='100' stroke='%23B8860B' stroke-opacity='0.02'/%3E%3Cline x1='30' y1='30' x2='170' y2='170' stroke='%23B8860B' stroke-opacity='0.015'/%3E%3Cline x1='170' y1='30' x2='30' y2='170' stroke='%23B8860B' stroke-opacity='0.015'/%3E%3Cpolygon points='100,10 105,30 100,25 95,30' fill='%23B8860B' fill-opacity='0.05'/%3E%3Cpolygon points='100,190 105,170 100,175 95,170' fill='%23B8860B' fill-opacity='0.03'/%3E%3Cpolygon points='10,100 30,95 25,100 30,105' fill='%23B8860B' fill-opacity='0.03'/%3E%3Cpolygon points='190,100 170,95 175,100 170,105' fill='%23B8860B' fill-opacity='0.03'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    pointer-events: none;
    z-index: -1;
    animation: compassRotate 120s linear infinite;
}

@keyframes compassRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.map-lines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(184, 134, 11, 0.01) 100px, rgba(184, 134, 11, 0.01) 101px),
        repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(184, 134, 11, 0.01) 100px, rgba(184, 134, 11, 0.01) 101px);
    pointer-events: none;
    z-index: -1;
}
