/* Smoke reveal animation for tarot */
.smoke-reveal {
    position: relative;
    overflow: hidden;
}
.smoke-reveal-effect {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
    background: url('https://www.transparenttextures.com/patterns/smoke.png'), radial-gradient(ellipse at center, rgba(255,255,255,0.18) 0%, rgba(24,16,24,0.0) 100%);
    opacity: 1;
    animation: smokeFade 2.2s cubic-bezier(.68,-0.55,.27,1.55) forwards;
}
@keyframes smokeFade {
    0% { opacity: 1; }
    80% { opacity: 0.7; }
    100% { opacity: 0; }
}
/* Tarot card flip effect (CSS only) */
.tarot-card.upsidedown {
    transform: rotate(180deg) !important;
    opacity: 0.7 !important;
    transition: transform 0.5s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.3s;
    cursor: pointer;
}
.tarot-card.upsidedown:hover {
    transform: rotate(0deg) !important;
    opacity: 1 !important;
    z-index: 2;
}
body {
    font-family: 'Liberation Sans', Arial, sans-serif;
    background: #b6b6b6;
    color: #000;
    margin: 0;
    padding: 20px;
}
.about-section {
    background-color: #000;
    color: #fff;
    padding: 20px;
}
h1, h2 {
    font-family: 'Liberation Serif', serif;
}
.menu-link {
    font-family: 'Z003', serif;
    font-weight: bold;
    font-style: italic;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    transition: color 0.3s, text-shadow 0.3s;
}
.menu-link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, purple, #b8860b, red);
    opacity: 0;
    border-radius: 2px;
    transition: opacity 0.3s, background 0.3s;
}
.menu-link:hover {
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    color: transparent;
    background: linear-gradient(90deg, purple, #b8860b, red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    box-shadow: none;
    text-shadow: none;
    transition: color 0.3s, background 0.3s;
}
.menu-link:hover::after {
    opacity: 0;
    background: none;
    transition: opacity 0.3s;
}
.menu-link:active {
    background: linear-gradient(135deg, #330066 0%, #b8860b 60%, #ff0000 100%);
    color: #fff;
}
.menu-link.active-page {
    background: linear-gradient(90deg, purple, #b8860b, red);
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, purple, #b8860b, red) 1;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    position: static;
    animation: none;
}
.menu-link.active-page::before {
    content: none;
}
@keyframes menuGlow {
    0% { box-shadow: 0 0 12px 2px rgba(128,0,128,0.18), 0 0 18px 4px rgba(255,0,0,0.12); }
    50% { box-shadow: 0 0 24px 6px rgba(128,0,128,0.28), 0 0 32px 8px rgba(255,0,0,0.22); }
    100% { box-shadow: 0 0 12px 2px rgba(128,0,128,0.18), 0 0 18px 4px rgba(255,0,0,0.12); }
}

/* Main body width container */
.main-body-width {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

/* Top Hat Section */
.top-hat-section {
    display: flex;
    align-items: top;
    margin-bottom: 0px;
}
.top-hat-left {
    position: relative;
    display: inline-block;
}
.main-title {
    margin: 0;
    display: inline-block;
    color: #000;
    font-family: 'Liberation Serif', serif;
    font-weight: bold;
}
.flag-link {
    margin-left: 8px;
}
.flag-img {
    vertical-align: top;
    border: 1px solid #000;
    filter: grayscale(100%);
    width: 50px;
}
.subtitle {
    margin: 0;
}
.top-hat-right {
    margin-left: auto;
    margin-right: 5px;
    display: flex;
    align-items: center;
}
.dragon-link {
    margin-right: 2px;
}
.dragon-img-bg {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: linear-gradient(90deg, purple, #b8860b, red);
    padding: 2px;
    margin-bottom: 8px;
}
.dragon-img {
    border-radius: 50%;
    display: block;
    width: 100px;
    height: 100px;
}
.joe-img {
    margin-bottom: 8px;
    border: 2px solid;
    border-image: linear-gradient(90deg, black, purple, #b8860b, red) 1;
    width: 100px;
}

/* Main Menu Bar */
.main-menu-bar {
    width: 100%;
    max-width: 980px;
    height: 34px;
    box-sizing: border-box;
    position: relative;
    background:
        radial-gradient(ellipse at 50% -60%, rgba(184, 134, 11, 0.35), transparent 60%),
        linear-gradient(180deg, #2a2a2a 0%, #141414 55%, #000 100%);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, purple, #b8860b, red) 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
.main-menu-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(135deg, rgba(184, 134, 11, 0.08) 0 2px, transparent 2px 9px),
        repeating-linear-gradient(45deg, rgba(128, 0, 128, 0.08) 0 2px, transparent 2px 9px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.main-menu-list {
    list-style: none;
    display: flex;
    padding: 0 20px;
    margin: 0;
    justify-content: flex-start;
    align-items: center;
    height: 34px;
    box-sizing: border-box;
    gap: 12px;
}

/* Dropdown menus (go-live 2026-08-24: one door for every standalone oracle;
   subdomains re-pointed by the owner's DNS work) */
.menu-dropdown {
    position: relative;
}
.menu-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.menu-zh {
    font-size: 16px;
    line-height: 1;
}
.menu-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 215px;
    margin: 0; /* no gap between the toggle and the list — a margin dead-zone
                  drops :hover mid-path and closes the dropdown (the visual
                  spacing lives in the padding below) */
    padding: 8px 0 6px 0;
    list-style: none;
    display: none;
    z-index: 50;
    background: linear-gradient(180deg, #1c1c1c 0%, #000 100%);
    border: 1px solid rgba(184, 134, 11, 0.45);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65), 0 0 12px rgba(128, 0, 128, 0.25);
}
.menu-dropdown:hover .menu-dropdown-list,
.menu-dropdown:focus-within .menu-dropdown-list {
    display: block;
}
.menu-dropdown-list li {
    margin: 0;
}
.menu-dropdown-list .menu-link {
    display: block;
    padding: 6px 14px;
    font-size: 12.5px;
}
.menu-dropdown-list .menu-link:hover {
    background: rgba(184, 134, 11, 0.16);
    background-clip: border-box;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: #fff;
    color: #fff;
}

/* The Fortune Timeline — the primary menu option */
.menu-link-timeline {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* Launcher hero (the hub is the door to the oracles) */
.launcher-hero {
    margin: 36px auto 44px auto;
    max-width: 720px;
    text-align: center;
    padding: 32px 26px 26px 26px;
    background: linear-gradient(180deg, #151515 0%, #000 100%);
    border: 2px solid;
    border-image: linear-gradient(90deg, purple, #b8860b, red) 1;
    box-shadow: 0 0 26px rgba(128, 0, 128, 0.35), 0 0 52px rgba(255, 0, 0, 0.16);
}
.launcher-title {
    margin: 0 0 14px 0;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
}
.launcher-text {
    margin: 0 0 24px 0;
    color: #d8e8d8;
    font-size: 14px;
    line-height: 1.55;
}
.launcher-cta {
    display: inline-block;
    font-family: 'Z003', serif;
    font-weight: bold;
    font-style: italic;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    padding: 11px 30px;
    border-radius: 6px;
    background: linear-gradient(135deg, #4a0080 0%, #b8860b 60%, #cc0000 100%);
    box-shadow: 0 0 18px rgba(184, 134, 11, 0.55);
    animation: menuGlow 3s ease-in-out infinite;
}
.launcher-cta:hover {
    filter: brightness(1.25);
}
.launcher-note {
    margin: 20px 0 0 0;
    color: #7a7a7a;
    font-size: 12px;
}

/* Dark launcher homepage (the legacy homepage's dark green grid) */
body.launcher-page {
    background: #222;
    color: #0f0;
    background-image: radial-gradient(#444 0.5px, transparent 0.5px);
    background-size: 4px 4px;
}

/* Twitch Section */
.twitch-section {
    display: flex;
    justify-content: left;
    margin-bottom: 20px;
    max-width: 100%;
    width: 100%;
}
.twitch-embed {
    width: 640px;
    height: 360px;
}
.offline-placeholder {
    width: 640px;
    height: 360px;
    display: none;
    background: #000;
    border: 2px solid #333;
    position: relative;
}
.offline-pre {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #00ff00;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 12px;
    text-shadow: 0 0 5px #00ff00;
    background: none;
    margin: 0;
    white-space: pre;
}
.offline-status {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    font-size: 14pt;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.offline-construction {
    color: #ffcc00;
    font-size: 12pt;
}

/* Horizontal Rule */
.main-hr {
    border: none;
    background: linear-gradient(90deg, black, purple, #b8860b, red, black);
    height: 1px;
    margin: 10px auto;
    width: 640px;
}


/* Footer Outer Container */
.footer-outer {
    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    max-width: 640px;
    box-sizing: border-box;
}
/* Footer Section */
.footer-section {
    max-width: 636px;
    width: 100%;
    background: #000000;
    text-align: center;
    font-size: 10pt;
    color: #ccc;
    font-weight: bold;
    margin: 24px auto 0 auto;
    padding: 12px 0;
    box-sizing: border-box;
}
.footer-gradient {
    background: linear-gradient(90deg, purple, #b8860b, red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Tarot card flip effect */
.tarot-card {
    transition: transform 0.5s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.3s;
    cursor: pointer;
    perspective: 800px;
}
.tarot-card.upsidedown {
    transform: rotate(180deg);
    opacity: 0.7;
}
.tarot-card.flipped {
    transform: rotate(0deg);
    opacity: 1;
    z-index: 2;
}
.ascii-art-center {
    display: block;
    margin: 0 auto;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em;
    line-height: 1.1;
    background: none;
    border: none;
    padding: 0;
    white-space: pre;
}
