/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    font-family: 'Crimson Text', Georgia, 'Times New Roman', serif;
    background-color: #0a0a0e;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(212, 168, 83, 0.04) 0%, transparent 60%),
        linear-gradient(rgba(212, 168, 83, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 168, 83, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    color: #e0d6c2;
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        ),
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 83, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 90, 43, 0.02) 0%, transparent 50%);
    mix-blend-mode: overlay;
}

body > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER
   ============================================ */
header {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(212, 168, 83, 0.15);
    background: linear-gradient(180deg, #14141e 0%, #0e0e14 60%, #0a0a0e 100%);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(212, 168, 83, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.4), transparent);
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.header-decoration .deco-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.6), transparent);
}

.header-decoration .deco-diamond {
    width: 8px;
    height: 8px;
    background: #d4a853;
    transform: rotate(45deg);
    opacity: 0.7;
    box-shadow: 0 0 6px rgba(212, 168, 83, 0.4);
}

header h1 {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 2.4rem;
    color: #d4a853;
    text-shadow: 0 0 30px rgba(212, 168, 83, 0.25), 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

header .subtitle {
    font-size: 1.05rem;
    color: #9a9585;
    margin-top: 0.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
main {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 1.2rem 2rem;
}

/* ============================================
   COUNTDOWN SECTION
   ============================================ */
#countdown-section {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 0.5rem;
}

#sale-status {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    min-height: 2.4rem;
    text-transform: uppercase;
}

#sale-status.upcoming {
    color: #d4a853;
}

#sale-status.live {
    color: #2ecc71;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(46, 204, 113, 0.4); }
    50% { text-shadow: 0 0 25px rgba(46, 204, 113, 0.8), 0 0 50px rgba(46, 204, 113, 0.3); }
}

#countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.countdown-separator {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2rem;
    color: rgba(212, 168, 83, 0.3);
    line-height: 1;
    padding-bottom: 1.2rem;
}

.countdown-box {
    background: linear-gradient(180deg, rgba(26, 26, 36, 0.9) 0%, rgba(20, 20, 30, 0.95) 100%);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 10px;
    padding: 1.2rem 0;
    width: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 168, 83, 0.06), inset 0 1px 0 rgba(212, 168, 83, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    position: relative;
    cursor: pointer;
}

.countdown-box::before {
    content: '';
    position: absolute;
    inset: 3px;
    pointer-events: none;
    border-radius: 7px;
    background:
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top left / 12px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top left / 1px 12px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top right / 12px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top right / 1px 12px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom left / 12px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom left / 1px 12px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom right / 12px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom right / 1px 12px no-repeat;
}

.countdown-box:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 168, 83, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 168, 83, 0.15), inset 0 1px 0 rgba(212, 168, 83, 0.2);
}

.countdown-box .value {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 2.8rem;
    color: #f0c95c;
    line-height: 1;
    text-shadow: 0 0 15px rgba(240, 201, 92, 0.15);
    display: block;
    width: 100%;
    text-align: center;
}

.countdown-box .label {
    font-size: 0.82rem;
    color: #9a9080;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

.countdown-box.live {
    border-color: rgba(39, 174, 96, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(39, 174, 96, 0.1), inset 0 1px 0 rgba(39, 174, 96, 0.15);
    animation: liveGlow 2s ease-in-out infinite;
}

.countdown-box.live .value {
    color: #2ecc71;
    text-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
}

@keyframes liveGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(39, 174, 96, 0.1), inset 0 1px 0 rgba(39, 174, 96, 0.15);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3), 0 0 35px rgba(39, 174, 96, 0.25), inset 0 1px 0 rgba(39, 174, 96, 0.25);
    }
}

#sale-dates {
    font-size: 0.95rem;
    color: #8a8070;
}

#sale-dates .estimated {
    color: #b08d57;
    font-style: italic;
}

/* ============================================
   CONFIDENCE LEVEL
   ============================================ */
#confidence-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
}

.confidence-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.confidence-high .confidence-dot { background: #2ecc71; box-shadow: 0 0 6px rgba(46, 204, 113, 0.5); }
.confidence-high .confidence-text { color: #2ecc71; }

.confidence-medium .confidence-dot { background: #f39c12; box-shadow: 0 0 6px rgba(243, 156, 18, 0.5); }
.confidence-medium .confidence-text { color: #f39c12; }

.confidence-low .confidence-dot { background: #e74c3c; box-shadow: 0 0 6px rgba(231, 76, 60, 0.5); }
.confidence-low .confidence-text { color: #e74c3c; }

/* ============================================
   RECENT SALES
   ============================================ */
#recent-sales {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.recent-sale-item {
    font-size: 0.82rem;
    color: #6a6055;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.recent-sale-item .sale-check {
    color: #2ecc71;
    font-size: 0.75rem;
}

.recent-sale-item .sale-date {
    color: #8a8070;
}

.recent-sales-label {
    font-size: 0.78rem;
    color: #5a5045;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    margin-bottom: 0.2rem;
}

.confidence-note {
    font-size: 0.78rem;
    color: #5a5045;
    margin-top: 0.3rem;
    font-style: italic;
}

.last-updated {
    font-size: 0.75rem;
    color: #4a4540;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

.last-updated.fresh {
    color: #27ae60;
}

.last-updated.stale {
    color: #e67e22;
}

.hidden {
    display: none !important;
}

#recent-sales-short,
#recent-sales-full {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.show-history-btn {
    display: block;
    margin: 0.6rem auto 0;
    background: none;
    border: none;
    color: #6a6055;
    font-size: 0.75rem;
    font-family: 'Crimson Text', Georgia, serif;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.show-history-btn:hover {
    color: #d4a853;
}

.sale-estimated {
    color: #b08d57;
    font-style: italic;
    font-size: 0.75rem;
}

.support-btn {
    display: block;
    max-width: 420px;
    margin: 1.5rem auto 0;
    padding: 0.85rem 2rem;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #d4a853;
    background: rgba(212, 168, 83, 0.15);
    border: 1px solid rgba(212, 168, 83, 0.5);
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    transition: all 0.25s;
}

.support-btn:hover {
    background: rgba(212, 168, 83, 0.25);
    border-color: rgba(212, 168, 83, 0.7);
    color: #e0b86a;
    box-shadow: 0 0 15px rgba(212, 168, 83, 0.1);
}

/* ============================================
   GAME TOGGLE (PoE 1 / PoE 2)
   ============================================ */
#game-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.2rem;
    position: relative;
}

.toggle-btn {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.7rem 2rem;
    border: 1px solid rgba(212, 168, 83, 0.1);
    background: rgba(19, 19, 27, 0.8);
    color: #6a6050;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
}

.toggle-btn::before {
    content: '';
    position: absolute;
    inset: 3px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background:
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) top left / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) top left / 1px 10px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) bottom left / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) bottom left / 1px 10px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) top right / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) top right / 1px 10px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) bottom right / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) bottom right / 1px 10px no-repeat;
}

.toggle-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.toggle-btn:first-child::before {
    border-radius: 5px 0 0 5px;
}

.toggle-btn:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.toggle-btn:last-child::before {
    border-radius: 0 5px 5px 0;
}

.toggle-btn:hover {
    color: #e0d6c2;
    background: rgba(30, 30, 42, 0.9);
}

.toggle-btn:hover::before {
    opacity: 0.5;
}

.toggle-btn.active {
    background: linear-gradient(180deg, rgba(30, 28, 20, 0.95) 0%, rgba(26, 26, 36, 0.95) 100%);
    color: #d4a853;
    border-color: rgba(212, 168, 83, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 168, 83, 0.08);
}

.toggle-btn.active::before {
    opacity: 1;
}

/* ============================================
   TABS
   ============================================ */
#tabs {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
    padding-bottom: 0;
}

.tab-icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-right: 3px;
    margin-top: -2px;
    pointer-events: none;
}

.tab-btn:not([data-tab="links"]) .tab-icon {
    width: 28px;
    height: 28px;
}

.tab-btn[data-tab="tabcalc"] .tab-icon {
    width: 32px;
    height: 32px;
}

.tab-btn {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    border: 1px solid rgba(212, 168, 83, 0.08);
    border-radius: 6px;
    background: rgba(16, 16, 24, 0.5);
    color: #6a6050;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.tab-btn::before {
    content: '';
    position: absolute;
    inset: 3px;
    pointer-events: none;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background:
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top left / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top left / 1px 10px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top right / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top right / 1px 10px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom left / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom left / 1px 10px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom right / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom right / 1px 10px no-repeat;
}

.tab-btn:hover {
    color: #c0b090;
    background: rgba(22, 22, 32, 0.7);
    border-color: rgba(212, 168, 83, 0.15);
}

.tab-btn:hover::before {
    opacity: 0.6;
}

.tab-btn.active {
    background: rgba(22, 22, 32, 0.95);
    color: #d4a853;
    border-color: rgba(212, 168, 83, 0.25);
    box-shadow: 0 0 12px rgba(212, 168, 83, 0.08);
}

.tab-btn.active::before {
    opacity: 1;
}

/* ============================================
   CONTENT AREA
   ============================================ */
#content-area {
    background: rgba(22, 22, 32, 0.95);
    border: 1px solid rgba(212, 168, 83, 0.12);
    border-radius: 10px;
    padding: 1.8rem;
    min-height: 300px;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

#content-area::before {
    content: '';
    position: absolute;
    inset: 4px;
    pointer-events: none;
    z-index: 2;
    background:
        /* Top-left corner */
        linear-gradient(rgba(212,168,83,0.35), rgba(212,168,83,0.35)) top left / 24px 2px no-repeat,
        linear-gradient(rgba(212,168,83,0.35), rgba(212,168,83,0.35)) top left / 2px 24px no-repeat,
        /* Top-right corner */
        linear-gradient(rgba(212,168,83,0.35), rgba(212,168,83,0.35)) top right / 24px 2px no-repeat,
        linear-gradient(rgba(212,168,83,0.35), rgba(212,168,83,0.35)) top right / 2px 24px no-repeat,
        /* Bottom-left corner */
        linear-gradient(rgba(212,168,83,0.35), rgba(212,168,83,0.35)) bottom left / 24px 2px no-repeat,
        linear-gradient(rgba(212,168,83,0.35), rgba(212,168,83,0.35)) bottom left / 2px 24px no-repeat,
        /* Bottom-right corner */
        linear-gradient(rgba(212,168,83,0.35), rgba(212,168,83,0.35)) bottom right / 24px 2px no-repeat,
        linear-gradient(rgba(212,168,83,0.35), rgba(212,168,83,0.35)) bottom right / 2px 24px no-repeat;
}

#content-area::after {
    content: '\2726';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    font-size: 0.7rem;
    color: rgba(212, 168, 83, 0.5);
    background: rgba(22, 22, 32, 0.95);
    padding: 0 0.5rem;
    z-index: 3;
    letter-spacing: 4px;
}

#content-area.fading {
    opacity: 0;
    transform: translateY(8px);
}

/* Cards within content */
.info-card {
    background: rgba(18, 18, 28, 0.8);
    border: 1px solid rgba(212, 168, 83, 0.1);
    border-radius: 8px;
    padding: 1.3rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    inset: 3px;
    pointer-events: none;
    z-index: 1;
    border-radius: 5px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    background:
        /* Top-left corner */
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top left / 16px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top left / 1px 16px no-repeat,
        /* Top-right corner */
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top right / 16px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top right / 1px 16px no-repeat,
        /* Bottom-left corner */
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom left / 16px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom left / 1px 16px no-repeat,
        /* Bottom-right corner */
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom right / 16px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom right / 1px 16px no-repeat;
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 168, 83, 0.05);
    border-color: rgba(212, 168, 83, 0.2);
}

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

.info-card h3 {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #d4a853;
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(40, 40, 55, 0.8);
}

.info-card h3 .act-badge {
    font-size: 0.85rem;
    background: rgba(42, 37, 32, 0.8);
    color: #b08d57;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 400;
    vertical-align: middle;
    border: 1px solid rgba(176, 141, 87, 0.15);
}

/* Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.info-table thead th {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #3a3520;
    color: #b08d57;
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-table tbody td {
    padding: 0.6rem 0.6rem;
    border-bottom: 1px solid #1e1e2e;
    vertical-align: top;
}

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

.info-table tbody tr:hover {
    background: rgba(212, 168, 83, 0.04);
    border-radius: 3px;
}

.info-table .points-cell {
    color: #f0c95c;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.info-table .total-row td {
    border-top: 1px solid #3a3520;
    font-weight: 700;
    color: #d4a853;
    padding-top: 0.6rem;
}

/* Recipe grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.8rem;
}

.recipe-item {
    background: rgba(14, 14, 24, 0.8);
    border: 1px solid rgba(212, 168, 83, 0.08);
    border-radius: 6px;
    padding: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.recipe-item::before {
    content: '';
    position: absolute;
    inset: 2px;
    pointer-events: none;
    border-radius: 4px;
    opacity: 0.4;
    transition: opacity 0.25s ease;
    background:
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) top left / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) top left / 1px 10px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) top right / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) top right / 1px 10px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) bottom left / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) bottom left / 1px 10px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) bottom right / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) bottom right / 1px 10px no-repeat;
}

.recipe-item:hover {
    border-color: rgba(212, 168, 83, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.recipe-item:hover::before {
    opacity: 0.8;
}

.recipe-item .recipe-result {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #f0c95c;
    margin-bottom: 0.4rem;
}

.recipe-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.more-recipes-link-wrap {
    text-align: center;
    margin-top: 1.5rem;
}

.more-recipes-link {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: rgba(14, 14, 24, 0.85);
    border: 1px solid rgba(212, 168, 83, 0.35);
    border-radius: 6px;
    color: #d4a853;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.more-recipes-link:hover {
    border-color: rgba(212, 168, 83, 0.6);
    background: rgba(212, 168, 83, 0.1);
    color: #f0c95c;
}

.more-recipes-url {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: #6a6050;
    letter-spacing: 0.02em;
}

.recipe-item .recipe-ingredients {
    font-size: 0.95rem;
    color: #b0a890;
    line-height: 1.5;
}

.recipe-item .recipe-notes {
    font-size: 0.88rem;
    color: #8a8070;
    font-style: italic;
    margin-top: 0.4rem;
}

/* Resistance penalty timeline */
.penalty-timeline {
    position: relative;
    padding-left: 1.5rem;
}

.penalty-timeline::before {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(192, 57, 43, 0.5), rgba(192, 57, 43, 0.2));
}

.penalty-event {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.penalty-event:last-child {
    margin-bottom: 0;
}

.penalty-event::before {
    content: '';
    position: absolute;
    left: -1.35rem;
    top: 0.55rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c0392b;
    border: 2px solid #1a1a24;
}

.penalty-event .event-title {
    font-weight: 700;
    color: #e0d6c2;
}

.penalty-event .event-penalty {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.05rem;
}

.penalty-event .event-total {
    font-size: 0.85rem;
    color: #8a8070;
}

.tips-box {
    background: rgba(14, 14, 24, 0.6);
    border: 1px solid rgba(40, 40, 55, 0.5);
    border-left: 3px solid rgba(212, 168, 83, 0.7);
    border-radius: 0 8px 8px 0;
    padding: 1.2rem 1.3rem;
    margin-top: 1.2rem;
}

.tips-box h4 {
    font-family: 'Cinzel', Georgia, serif;
    color: #d4a853;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.tips-box ul {
    list-style: none;
    padding: 0;
}

.tips-box ul li {
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
    font-size: 0.98rem;
}

.tips-box ul li::before {
    content: '\2022';
    color: #d4a853;
    position: absolute;
    left: 0;
}

/* Section description */
.ea-banner {
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.25);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: #d4a853;
    text-align: center;
    font-style: italic;
}

.section-intro {
    font-size: 1.05rem;
    color: #9a9080;
    margin-bottom: 1.2rem;
    font-style: italic;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(40, 40, 55, 0.4);
}

/* Salvage bench / special cards */
.mechanic-card {
    background: rgba(14, 14, 24, 0.7);
    border: 1px solid rgba(40, 40, 55, 0.6);
    border-radius: 6px;
    padding: 1.1rem;
    margin-bottom: 0.8rem;
}

.mechanic-card h4 {
    font-family: 'Cinzel', Georgia, serif;
    color: #d4a853;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.mechanic-card p {
    font-size: 0.9rem;
    color: #b0a890;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.3), transparent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #9a9080;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
    letter-spacing: 0.3px;
}

.footer-links a:hover {
    color: #d4a853;
}

.footer-links-secondary {
    margin-top: -0.3rem;
    margin-bottom: 1rem;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #b08d57;
}

.email-display {
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.25);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 0.85rem;
    color: #d4a853;
    user-select: all;
}

.copy-email-btn {
    background: rgba(212, 168, 83, 0.15);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 4px;
    padding: 0.1rem 0.45rem;
    color: #9a9080;
    font-size: 0.75rem;
    font-family: 'Crimson Text', Georgia, serif;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.copy-email-btn:hover {
    color: #d4a853;
    border-color: rgba(212, 168, 83, 0.5);
    background: rgba(212, 168, 83, 0.25);
}

.copy-email-btn.copied {
    color: #27ae60;
    border-color: rgba(39, 174, 96, 0.4);
    background: rgba(39, 174, 96, 0.15);
}

footer p {
    font-size: 0.85rem;
    color: #6a6055;
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.footer-disclaimer {
    color: #b08d57;
    font-style: italic;
    margin-bottom: 0.8rem;
}

.footer-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.2), transparent);
    margin: 0.8rem auto;
}

/* ============================================
   SCROLL DOWN HINT
   ============================================ */
.scroll-down-hint {
    position: fixed;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
    cursor: pointer;
}

.scroll-down-hint.visible {
    pointer-events: auto;
}

.scroll-down-hint.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-down-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    color: rgba(212, 168, 83, 0.7);
    letter-spacing: 0.8px;
}

.scroll-down-chevron {
    color: #d4a853;
    font-size: 1rem;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(26, 26, 36, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 168, 83, 0.25);
    color: #d4a853;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: rgba(35, 35, 50, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 168, 83, 0.1);
}

/* ============================================
   STASH TAB GUIDE
   ============================================ */
.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 0.72rem;
    width: 26px;
    height: 26px;
    text-align: center;
    border-radius: 6px;
    margin-right: 0.7rem;
    flex-shrink: 0;
}

.tier-s { background: linear-gradient(135deg, #d4a853, #b8860b); color: #1a1a24; box-shadow: 0 0 8px rgba(212, 168, 83, 0.3); }
.tier-a { background: rgba(46, 204, 113, 0.2); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.35); }
.tier-b { background: rgba(52, 152, 219, 0.2); color: #3498db; border: 1px solid rgba(52, 152, 219, 0.35); }
.tier-c { background: rgba(149, 165, 166, 0.2); color: #95a5a6; border: 1px solid rgba(149, 165, 166, 0.35); }

.shared-badge {
    display: inline-block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.4rem;
    vertical-align: middle;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.shared-both {
    background: rgba(212, 168, 83, 0.15);
    color: #d4a853;
    border: 1px solid rgba(212, 168, 83, 0.3);
}

.shared-poe1 {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.shared-poe2 {
    background: rgba(52, 152, 219, 0.15);
    color: #5dade2;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.stash-item {
    display: flex;
    align-items: flex-start;
    padding: 0.7rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.stash-item:hover {
    background: rgba(212, 168, 83, 0.03);
}

.stash-item:last-child {
    border-bottom: none;
}

.stash-item-info {
    flex: 1;
}

.stash-item-name {
    font-weight: 700;
    color: #e0d6c2;
    font-size: 1.05rem;
}

.stash-item-price {
    color: #f0c95c;
    font-weight: 700;
    font-size: 0.85rem;
    margin-left: auto;
    padding-left: 1rem;
    white-space: nowrap;
}

.stash-item-desc {
    font-size: 0.93rem;
    color: #9a9080;
    line-height: 1.5;
    margin-top: 0.15rem;
}

/* ============================================
   TAB CALCULATOR
   ============================================ */
.calc-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.calc-item:hover {
    background: rgba(212, 168, 83, 0.05);
}

.calc-item:last-child {
    border-bottom: none;
}

.calc-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(212, 168, 83, 0.3);
    border-radius: 4px;
    background: rgba(10, 10, 14, 0.6);
    margin-right: 0.7rem;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}

.calc-item input[type="checkbox"]:checked {
    border-color: #d4a853;
    background: rgba(212, 168, 83, 0.15);
}

.calc-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #d4a853;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.calc-item-info {
    flex: 1;
    min-width: 0;
}

.calc-item-name {
    font-weight: 700;
    color: #e0d6c2;
    font-size: 1rem;
}

.calc-item-desc {
    font-size: 0.88rem;
    color: #8a8070;
    line-height: 1.4;
    margin-top: 0.1rem;
}

.calc-item-prices {
    text-align: right;
    margin-left: 1rem;
    white-space: nowrap;
}

.calc-price-full {
    font-size: 0.88rem;
    color: #8a8070;
    text-decoration: line-through;
}

.calc-price-sale {
    font-size: 1rem;
    font-weight: 700;
    color: #2ecc71;
}

.calc-summary {
    background: rgba(14, 14, 24, 0.95);
    border: 1px solid rgba(212, 168, 83, 0.25);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-top: 1rem;
    position: sticky;
    bottom: 1rem;
    backdrop-filter: blur(8px);
    max-width: 320px;
    margin-left: auto;
}

.calc-summary::before {
    content: '';
    position: absolute;
    inset: 3px;
    pointer-events: none;
    border-radius: 5px;
    background:
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top left / 14px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top left / 1px 14px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top right / 14px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) top right / 1px 14px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom left / 14px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom left / 1px 14px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom right / 14px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.4), rgba(212,168,83,0.4)) bottom right / 1px 14px no-repeat;
}

.calc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.95rem;
}

.calc-summary-row.total {
    border-top: 1px solid rgba(212, 168, 83, 0.2);
    margin-top: 0.4rem;
    padding-top: 0.6rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.calc-summary-row .label {
    color: #8a8070;
}

.calc-summary-row.total .label {
    color: #d4a853;
}

.calc-summary-row .value {
    font-weight: 700;
}

.calc-summary-row .value.full-price {
    color: #8a8070;
}

.calc-summary-row .value.sale-price {
    color: #2ecc71;
}

.calc-summary-row .value.savings {
    color: #f0c95c;
}

.calc-usd-row {
    margin-top: 0.3rem;
}

.calc-pricing-note {
    font-size: 0.75rem;
    color: #5a5045;
    font-style: italic;
    margin-top: 0.4rem;
    text-align: center;
}

.calc-select-btns {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.calc-select-btn {
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.25);
    color: #d4a853;
    padding: 0.35rem 0.8rem;
    border-radius: 5px;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.calc-select-btn:hover {
    background: rgba(212, 168, 83, 0.2);
    border-color: rgba(212, 168, 83, 0.4);
}

/* ============================================
   CURRENCY TIER LIST
   ============================================ */
.currency-tier-header {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 0.6rem 0;
    margin-bottom: 0.3rem;
}

.currency-tier-header.top { color: #e74c3c; }
.currency-tier-header.always { color: #f0c95c; }
.currency-tier-header.early { color: #2ecc71; }
.currency-tier-header.situational { color: #3498db; }
.currency-tier-header.ignore { color: #95a5a6; }

.currency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 1rem;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.currency-item:hover {
    background: rgba(212, 168, 83, 0.03);
}

.currency-item:last-child {
    border-bottom: none;
}

.currency-item .currency-name {
    color: #e0d6c2;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.currency-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.currency-item .currency-note {
    color: #9a9080;
    font-size: 0.93rem;
    text-align: right;
    margin-left: 1rem;
}

/* ============================================
   HOTKEYS
   ============================================ */
kbd {
    display: inline-block;
    background: rgba(14, 14, 24, 0.9);
    border: 1px solid rgba(212, 168, 83, 0.25);
    border-radius: 5px;
    padding: 0.2rem 0.55rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: #f0c95c;
    box-shadow: 0 2px 0 rgba(37, 37, 53, 0.8), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    margin: 0 0.15rem;
    white-space: nowrap;
}

.command-table {
    width: 100%;
    border-collapse: collapse;
}

.command-table td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    font-size: 1rem;
}

.command-table td:first-child {
    width: 40%;
    color: #e0d6c2;
    white-space: nowrap;
}

.command-table td:last-child {
    color: #b0a890;
}

.cmd-note {
    color: #6a6050;
    font-style: italic;
}

.gold-link {
    color: #d4a853;
}

/* ============================================
   LINKS & TOOLS
   ============================================ */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.8rem;
}

.link-card {
    display: block;
    background: rgba(14, 14, 24, 0.7);
    border: 1px solid rgba(212, 168, 83, 0.08);
    border-radius: 8px;
    padding: 1.1rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 2px;
    pointer-events: none;
    border-radius: 6px;
    opacity: 0.4;
    transition: opacity 0.25s ease;
    background:
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) top left / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) top left / 1px 10px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) top right / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) top right / 1px 10px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) bottom left / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) bottom left / 1px 10px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) bottom right / 10px 1px no-repeat,
        linear-gradient(rgba(212,168,83,0.45), rgba(212,168,83,0.45)) bottom right / 1px 10px no-repeat;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 168, 83, 0.3);
}

.link-card:hover::before {
    opacity: 0.9;
}

.link-card-name {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #d4a853;
    margin-bottom: 0.3rem;
}

.link-card-url {
    font-size: 0.85rem;
    color: #5a5045;
    margin-bottom: 0.4rem;
    word-break: break-all;
    letter-spacing: 0.3px;
}

.link-card-desc {
    font-size: 0.85rem;
    color: #b0a890;
    line-height: 1.5;
}

.links-section-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.9rem;
    color: #b08d57;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1rem 0 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #252535;
}

.links-section-title:first-child {
    margin-top: 0;
}

/* ============================================
   EASTER EGG
   ============================================ */

/* Screen shake */
@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-4px, 2px); }
    20% { transform: translate(4px, -2px); }
    30% { transform: translate(-3px, -3px); }
    40% { transform: translate(3px, 3px); }
    50% { transform: translate(-2px, 4px); }
    60% { transform: translate(2px, -4px); }
    70% { transform: translate(-4px, 1px); }
    80% { transform: translate(4px, -1px); }
    90% { transform: translate(-1px, 3px); }
}

body.easter-egg-shake {
    animation: screenShake 0.5s ease-in-out;
}

/* Overlay */
.easter-egg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.easter-egg-overlay.visible {
    opacity: 1;
}

.easter-egg-overlay.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Boss art base */
.easter-egg-boss {
    width: 180px;
    height: 180px;
    position: relative;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

/* Maven - Cosmic Eye */
.maven-eye {
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #fff 8%, #d4a0e8 20%, #9b59b6 45%, #6c3483 70%, transparent 72%);
    box-shadow:
        0 0 40px rgba(155, 89, 182, 0.8),
        0 0 80px rgba(155, 89, 182, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    animation-name: mavenPulse;
}

.maven-eye::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    border: 2px solid rgba(155, 89, 182, 0.4);
    animation: mavenOrbit 4s linear infinite;
}

.maven-eye::after {
    content: '';
    position: absolute;
    top: -35px;
    left: -35px;
    right: -35px;
    bottom: -35px;
    border-radius: 50%;
    border: 1px solid rgba(155, 89, 182, 0.2);
    animation: mavenOrbit 6s linear infinite reverse;
}

@keyframes mavenPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(155, 89, 182, 0.8), 0 0 80px rgba(155, 89, 182, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(155, 89, 182, 1), 0 0 120px rgba(155, 89, 182, 0.6); }
}

@keyframes mavenOrbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Shaper - Galactic Vortex */
.shaper-vortex {
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(52, 152, 219, 0.0) 0deg,
        rgba(52, 152, 219, 0.8) 90deg,
        rgba(41, 128, 185, 0.0) 180deg,
        rgba(52, 152, 219, 0.8) 270deg,
        rgba(52, 152, 219, 0.0) 360deg
    );
    box-shadow:
        0 0 40px rgba(52, 152, 219, 0.6),
        0 0 80px rgba(52, 152, 219, 0.3),
        inset 0 0 40px rgba(52, 152, 219, 0.4);
    animation-name: shaperSpin;
    animation-duration: 4s;
    animation-timing-function: linear;
}

.shaper-vortex::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, rgba(52, 152, 219, 0.6) 40%, transparent 70%);
}

.shaper-vortex::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px dashed rgba(52, 152, 219, 0.3);
    animation: shaperSpin 8s linear infinite reverse;
}

@keyframes shaperSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Zana - Map Device Ring */
.zana-device {
    border-radius: 50%;
    background: transparent;
    border: 8px solid rgba(212, 168, 83, 0.7);
    box-shadow:
        0 0 30px rgba(212, 168, 83, 0.5),
        0 0 60px rgba(212, 168, 83, 0.2),
        inset 0 0 30px rgba(212, 168, 83, 0.3);
    animation-name: zanaRotate;
    animation-duration: 6s;
    animation-timing-function: linear;
}

.zana-device::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    border: 3px solid rgba(212, 168, 83, 0.5);
    animation: zanaRotate 4s linear infinite reverse;
}

.zana-device::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.6) 0%, rgba(212, 168, 83, 0.1) 60%, transparent 80%);
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.4);
}

@keyframes zanaRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Quote styling */
.easter-egg-quote {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #e0d6c2;
    text-align: center;
    max-width: 500px;
    padding: 0 1.5rem;
    min-height: 2.5em;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

.easter-egg-attribution {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    font-style: italic;
    transition: opacity 0.5s ease;
}

/* Responsive Easter egg */
@media (max-width: 768px) {
    .easter-egg-boss {
        width: 120px;
        height: 120px;
    }

    .easter-egg-quote {
        font-size: 1.1rem;
        max-width: 90vw;
    }
}

@media (max-width: 480px) {
    .easter-egg-boss {
        width: 90px;
        height: 90px;
    }

    .easter-egg-quote {
        font-size: 0.95rem;
    }
}

/* ============================================
   RESPONSIVE - TABLET (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.6rem;
    }

    .countdown-box {
        width: 70px;
        padding: 0.7rem 0;
    }

    .countdown-box .value {
        font-size: 2rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
        padding-bottom: 0.8rem;
    }

    #sale-status {
        font-size: 1.2rem;
    }

    .toggle-btn {
        font-size: 0.88rem;
        padding: 0.6rem 1.2rem;
    }

    #tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #3a3520 transparent;
        padding-bottom: 0;
        -webkit-mask-image: linear-gradient(90deg, transparent, black 1.5rem, black calc(100% - 1.5rem), transparent);
        mask-image: linear-gradient(90deg, transparent, black 1.5rem, black calc(100% - 1.5rem), transparent);
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    #tabs::-webkit-scrollbar {
        height: 3px;
    }

    #tabs::-webkit-scrollbar-track {
        background: transparent;
    }

    #tabs::-webkit-scrollbar-thumb {
        background: #3a3520;
        border-radius: 2px;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
        flex-shrink: 0;
    }

    #content-area {
        padding: 1.2rem;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    /* Responsive tables */
    .info-table.responsive thead {
        display: none;
    }

    .info-table.responsive tbody tr {
        display: block;
        margin-bottom: 0.8rem;
        border: 1px solid #252535;
        border-radius: 5px;
        padding: 0.5rem;
        background: #0e0e18;
    }

    .info-table.responsive tbody td {
        display: block;
        text-align: left;
        padding: 0.25rem 0.5rem;
        border-bottom: none;
    }

    .info-table.responsive tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #b08d57;
        font-size: 0.75rem;
        text-transform: uppercase;
        display: block;
        margin-bottom: 0.1rem;
    }

    .info-table.responsive .points-cell {
        text-align: left;
    }

    .info-table.responsive .total-row {
        display: flex;
        justify-content: space-between;
        border: none;
        background: none;
        padding: 0.5rem 0 0;
        margin-top: 0.3rem;
        border-top: 1px solid #3a3520;
    }

    .info-table.responsive .total-row td {
        display: inline;
        border: none;
        padding: 0;
    }

    .info-table.responsive .total-row td::before {
        display: none;
    }

    /* Command table responsive */
    .command-table td:first-child {
        width: auto;
    }

    .scroll-down-hint {
        bottom: 1.2rem;
    }

    .scroll-down-text {
        font-size: 0.95rem;
    }

    .scroll-down-chevron {
        font-size: 0.65rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    header .subtitle {
        font-size: 0.85rem;
    }

    #countdown-display {
        gap: 0.3rem;
    }

    .countdown-box {
        width: 58px;
        padding: 0.5rem 0;
    }

    .countdown-box .value {
        font-size: 1.4rem;
    }

    .countdown-box .label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .countdown-separator {
        font-size: 1.2rem;
        padding-bottom: 0.6rem;
    }

    #sale-status {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    #tabs {
        gap: 0.1rem;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.55rem;
    }

    .toggle-btn {
        font-size: 0.82rem;
        padding: 0.5rem 0.9rem;
    }

    #content-area {
        padding: 1rem;
    }

    .info-card {
        padding: 0.9rem;
    }

    .info-card h3 {
        font-size: 1rem;
    }

    .header-decoration .deco-line {
        width: 30px;
    }

    .command-table td {
        display: block;
        padding: 0.3rem 0.5rem;
    }

    .command-table td:first-child {
        padding-bottom: 0.1rem;
        border-bottom: none;
    }

    .command-table td:last-child {
        padding-top: 0;
        font-size: 0.88rem;
    }

    .command-table tr {
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0.3rem 0;
    }

    .scroll-down-hint {
        bottom: 1rem;
    }

    .scroll-down-text {
        font-size: 0.85rem;
    }

    .scroll-down-chevron {
        font-size: 0.6rem;
    }
}

/* ============================================
   CAMPAIGN TRACKER
   ============================================ */
.campaign-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-counter {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.1rem;
    color: #d4a853;
}

.progress-counter span {
    color: #e0d6c2;
}

.reset-btn {
    background: rgba(180, 60, 60, 0.15);
    border: 1px solid rgba(180, 60, 60, 0.4);
    color: #d06060;
    padding: 0.3rem 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Crimson Text', serif;
    font-size: 0.85rem;
    transition: all 0.25s;
}

.reset-btn:hover {
    background: rgba(180, 60, 60, 0.3);
    color: #ff7070;
    border-color: rgba(180, 60, 60, 0.6);
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(212, 168, 83, 0.1);
    border-radius: 5px;
    margin-bottom: 1.2rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #b08d57, #d4a853, #f0d890);
    border-radius: 5px;
    transition: width 0.4s ease;
    box-shadow: 0 0 8px rgba(212, 168, 83, 0.3);
}

.tracker-row {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s;
    cursor: pointer;
    border-radius: 5px;
}

.tracker-row:hover {
    background: rgba(212, 168, 83, 0.05);
}

.tracker-row.completed {
    opacity: 0.4;
}

.tracker-row.completed .tracker-name {
    text-decoration: line-through;
}

.tracker-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-right: 0.7rem;
    cursor: pointer;
}

.tracker-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tracker-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: rgba(10, 10, 14, 0.8);
    border: 2px solid rgba(212, 168, 83, 0.5);
    border-radius: 4px;
    transition: all 0.2s;
}

.tracker-checkbox input:checked ~ .checkmark {
    background: rgba(212, 168, 83, 0.3);
    border-color: #d4a853;
    box-shadow: 0 0 6px rgba(212, 168, 83, 0.2);
}

.tracker-checkbox .checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #d4a853;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tracker-checkbox input:checked ~ .checkmark::after {
    display: block;
}

.tracker-tag {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-right: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 42px;
    text-align: center;
}

.tag-quest {
    background: rgba(80, 160, 80, 0.2);
    color: #70c070;
    border: 1px solid rgba(80, 160, 80, 0.3);
}

.tag-trial {
    background: rgba(212, 168, 83, 0.15);
    color: #d4a853;
    border: 1px solid rgba(212, 168, 83, 0.25);
}

.tag-bonus {
    background: rgba(80, 140, 210, 0.2);
    color: #70b0e0;
    border: 1px solid rgba(80, 140, 210, 0.3);
}

.tracker-details {
    flex: 1;
    min-width: 0;
}

.tracker-name {
    font-size: 0.95rem;
    color: #e0d6c2;
}

.tracker-meta {
    font-size: 0.88rem;
    color: #9a9080;
}

.tracker-note {
    font-size: 0.82rem;
    color: #b8a882;
    font-style: italic;
    margin-top: 2px;
}

.tracker-row.milestone-row {
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.2);
    margin-top: 0.3rem;
    border-radius: 4px;
}

.tracker-row.milestone-row .tracker-name {
    color: #d4a853;
    font-weight: 600;
}

.milestone-icon {
    color: #d4a853;
    margin-right: 0.3rem;
    font-size: 1.1rem;
}

/* Collapsible acts */
.info-card .act-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}

.act-chevron {
    display: inline-block;
    margin-right: 0.4rem;
    font-size: 1.1rem;
    color: #8a8070;
    transition: transform 0.2s;
    transform: rotate(90deg);
    cursor: pointer;
}

.info-card.collapsed .act-chevron {
    transform: rotate(0deg);
}

.tracker-items {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.3s ease-out;
}

.info-card.collapsed .tracker-items {
    grid-template-rows: 0fr;
}

.tracker-items-inner {
    overflow: hidden;
}

.info-card h3[onclick] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    transition: margin 0.3s ease-out, padding 0.3s ease-out, border-color 0.3s ease-out;
}

.info-card.collapsed h3 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom-color: transparent;
}

.info-card.collapsed.act-completed h3 {
    padding-bottom: 0.4rem;
    border-bottom-color: rgba(212, 168, 83, 0.1);
}

.act-complete-overlay {
    text-align: center;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    color: #d4a853;
    padding: 0.8rem 0 0.2rem;
}

.act-complete-overlay.hidden {
    display: none;
}

.act-actions-top {
    display: flex;
    justify-content: center;
    padding: 0 0.5rem 0.5rem;
}

.act-actions-top.hidden {
    display: none;
}

.info-card.act-completed .tracker-items {
    opacity: 0.25;
    pointer-events: none;
}

.info-card.act-completed .act-actions {
    display: none;
}

.act-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 0.5rem 0.5rem;
}

.act-action-btn {
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.25);
    color: #d4a853;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Crimson Text', Georgia, serif;
    cursor: pointer;
    transition: all 0.2s;
}

.act-action-btn:hover {
    background: rgba(212, 168, 83, 0.2);
    border-color: rgba(212, 168, 83, 0.4);
}

/* ============================================
   INLINE STYLE REPLACEMENTS
   ============================================ */
.trial-info-note {
    margin-bottom: 0.8rem;
    color: #9a9080;
    font-style: italic;
}

.trial-mechanic-list {
    list-style: none;
    padding: 0;
}

.trial-mechanic-item {
    padding: 0.2rem 0 0.2rem 1rem;
    position: relative;
}

.trial-mechanic-item::before {
    content: '\203B';
    color: #d4a853;
    position: absolute;
    left: 0;
}

.links-main-title {
    font-family: 'Cinzel', Georgia, serif;
    color: #d4a853;
    margin-bottom: 1rem;
}

.links-secondary-title {
    font-family: 'Cinzel', Georgia, serif;
    color: #8a8070;
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid #252535;
}

.links-secondary-section-title {
    color: #8a8070;
}

.link-card-secondary {
    opacity: 0.7;
}

.link-card-secondary .link-card-name {
    color: #8a8070;
}

.salvage-description {
    margin-bottom: 0.8rem;
    color: #b0a890;
}

.salvage-detail-list {
    list-style: none;
    padding: 0;
}

.salvage-detail-item {
    padding: 0.2rem 0 0.2rem 1rem;
    position: relative;
}

.salvage-detail-item::before {
    content: '\203B';
    color: #d4a853;
    position: absolute;
    left: 0;
}

@media (max-width: 480px) {
    .tracker-checkbox,
    .tracker-checkbox .checkmark {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .tracker-checkbox .checkmark::after {
        left: 4px;
        top: 1px;
        width: 5px;
        height: 9px;
    }

    .tracker-tag {
        font-size: 0.65rem;
        padding: 0.05rem 0.3rem;
        min-width: 36px;
    }

    .campaign-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .admin-modal {
        padding: 1.5rem;
        width: 300px;
    }

    .export-import-modal {
        width: 300px;
    }

    .shared-badge {
        font-size: 0.52rem;
        padding: 0.05rem 0.25rem;
    }
}
