/* ==========================================================================
   $COPE Lore Editorial Design System - Premium Custom Edition
   ========================================================================== */

:root {
    --bg-darkest: #030507;
    --bg-base: #06080b;
    --bg-card: rgba(10, 14, 18, 0.75);
    --bg-card-hover: rgba(14, 20, 26, 0.9);
    
    --primary-neon: #CCFF00;      /* Robin Neon */
    --primary-glow: rgba(204, 255, 0, 0.15);
    --primary-glow-intense: rgba(204, 255, 0, 0.45);
    
    --success-green: #00C805;    /* Traditional RH Green */
    --success-glow: rgba(0, 200, 5, 0.2);
    
    --error-red: #FF3B30;        /* Reality check red */
    --error-glow: rgba(255, 59, 48, 0.25);
    
    --text-primary: #FFFFFF;
    --text-secondary: #90A2B4;
    --text-muted: #556678;
    
    --border-light: rgba(255, 255, 255, 0.05);
    --border-green: rgba(204, 255, 0, 0.25);
    
    --font-heading: 'Outfit', 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease;
}

/* Base resets & setups */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Reset link default styling globally (Resolves blue color & underlines) */
a, a:hover, a:focus, a:visited, a:active {
    color: inherit !important;
    text-decoration: none !important;
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.75;
    overflow-x: hidden;
    padding-bottom: 60px;
    letter-spacing: -0.01em;
}

/* Canvas Background */
#bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-color: var(--bg-base);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.accent-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-neon), var(--success-green));
    border-radius: 2px;
    margin-bottom: 20px;
}

.centered-title + .accent-line {
    margin-left: auto;
    margin-right: auto;
}

/* General Layout Elements */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.glass-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    background-color: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

/* 21st.dev Mouse Hover Border Glow Effect */
.glow-card {
    position: relative;
}

.glow-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: radial-gradient(350px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(204, 255, 0, 0.4) 0%, transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* Header & Nav */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(6, 8, 11, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 75px;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.mascot-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-neon);
    box-shadow: 0 0 10px var(--primary-glow);
    transition: var(--transition-smooth);
}

.logo-area:hover .mascot-logo-img {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 15px var(--primary-glow-intense);
}

.logo-text {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-mainnet {
    font-size: 0.65rem;
    background-color: rgba(204, 255, 0, 0.08);
    color: var(--primary-neon);
    border: 1px solid var(--border-green);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.main-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: var(--transition-fast);
    padding: 6px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-neon);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    outline: none;
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--primary-neon);
    color: var(--bg-darkest);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px var(--primary-glow-intense);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-light);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    box-shadow: 0 0 12px var(--primary-glow);
}

.btn-xs {
    padding: 8px 18px;
    font-size: 0.8rem;
    border-radius: 20px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Marquee scrolling ticker */
.ticker-wrapper {
    background-color: var(--bg-darkest);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    display: flex;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 35s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary-neon);
    letter-spacing: 1px;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Editorial Sections spacing */
section {
    padding: 45px 0;
}

/* Preloader */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-darkest);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    width: 100%;
    max-width: 460px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-mascot-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 25px;
}

.preloader-mascot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-neon);
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.4);
}

.glow-ring {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    border: 2px dashed rgba(204, 255, 0, 0.35);
    animation: rotateRing 15s linear infinite;
}

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

.preloader-title {
    font-size: 1.6rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
    color: var(--primary-neon);
    text-shadow: 0 0 12px var(--primary-glow-intense);
}

.loading-bar-container {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--success-green), var(--primary-neon));
    border-radius: 5px;
    transition: width 0.05s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

.terminal-logs {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    height: 110px;
    overflow-y: auto;
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-align: left;
    color: var(--text-secondary);
}

.log-line {
    margin-bottom: 5px;
    white-space: nowrap;
}

.log-line.green { color: var(--primary-neon); }
.log-line.red { color: var(--error-red); }

.fadeIn {
    animation: fadeInAnimation 0.5s ease forwards;
}

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

.hide { display: none !important; }

/* Hero Banner Layout */
.hero-section {
    padding-top: 20px;
}

.banner-wrapper {
    overflow: hidden;
    border-radius: 24px;
}

.banner-image-container {
    position: relative;
    width: 100%;
    height: 380px;
    background-color: var(--bg-darkest);
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 9, 12, 0) 30%, rgba(6, 9, 12, 0.95) 100%);
}

.hero-info {
    padding: 32px;
    background-color: rgba(10, 15, 20, 0.85);
}

.hero-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.token-ticker {
    background-color: var(--primary-neon);
    color: var(--bg-darkest);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 3px 12px;
    border-radius: 5px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 2.2rem;
    line-height: 1.25;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 900px;
    line-height: 1.7;
}

/* CA Copy Widget styling */
.ca-wrapper {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
    transition: var(--transition-smooth);
}

.ca-wrapper:hover {
    border-color: var(--border-green);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.05);
}

.ca-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    font-weight: 700;
}

.ca-copy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ca-address {
    font-family: var(--font-mono);
    color: var(--primary-neon);
    font-size: 1.05rem;
    word-break: break-all;
    text-shadow: 0 0 6px rgba(204, 255, 0, 0.15);
}

.btn-copy-ca {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
    color: var(--text-primary);
    flex-shrink: 0;
}

.btn-copy-ca:hover {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    background-color: rgba(204, 255, 0, 0.05);
}

.copy-icon {
    width: 18px;
    height: 18px;
}

/* Tooltip */
.tooltip-text {
    visibility: hidden;
    width: 80px;
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -40px;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.btn-copy-ca:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Lore Section Cards */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.editorial-card {
    padding: 32px;
}

.card-header-row-icon {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.editorial-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-neon);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.card-editorial-title {
    font-size: 1.7rem;
    color: var(--text-primary);
}

.editorial-p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.editorial-p:last-of-type {
    margin-bottom: 0;
}

.editorial-p strong {
    color: var(--primary-neon);
}

/* Mascot Large Card */
.mascot-large-card {
    padding: 40px;
}

.mascot-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
}

.mascot-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
}

.mascot-large-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-neon);
    z-index: 2;
    position: relative;
    box-shadow: 0 0 35px var(--primary-glow);
}

.mascot-glow-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-neon) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(20px);
    z-index: 1;
}

.mascot-content-wrapper {
    display: flex;
    flex-direction: column;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-neon);
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.mascot-headline {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.mascot-status-terminal {
    background-color: var(--bg-darkest);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-top: 24px;
    overflow: hidden;
}

.terminal-header-mini {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.term-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.term-status-blink {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--success-green);
    font-weight: 700;
    position: relative;
}

.term-status-blink::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--success-green);
    margin-right: 6px;
    box-shadow: 0 0 6px var(--success-green);
    animation: flashIndicator 1s infinite alternate;
}

.terminal-body-mini {
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.term-line {
    word-break: break-all;
}

/* Sections Headers */
.section-header-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.section-main-title {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.section-subtitle-centered {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Golden Rules of Cope (Flip Grid Layout) */
.rules-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.flip-card {
    background-color: transparent;
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.flip-card-front {
    background-color: var(--bg-card);
    transition: var(--transition-smooth);
}

.flip-card:hover .flip-card-front {
    background-color: var(--bg-card-hover);
    border-color: var(--primary-neon);
    box-shadow: 0 4px 20px rgba(204, 255, 0, 0.05);
}

/* Custom glow borders for card categories */
.card-glow-up { border-left: 3px solid var(--success-green); }
.card-glow-down { border-left: 3px solid var(--error-red); }
.card-glow-volume { border-left: 3px solid #0088FF; }
.card-glow-whales { border-left: 3px solid #A855F7; }
.card-glow-buyers { border-left: 3px solid #F59E0B; }
.card-glow-collapse { border-left: 3px solid #EF4444; }

.card-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.badge-up { background-color: rgba(0, 200, 5, 0.12); color: var(--success-green); border: 1px solid rgba(0, 200, 5, 0.25); }
.badge-down { background-color: rgba(255, 59, 48, 0.12); color: var(--error-red); border: 1px solid rgba(255, 59, 48, 0.25); }
.badge-volume { background-color: rgba(0, 136, 255, 0.12); color: #0088FF; border: 1px solid rgba(0, 136, 255, 0.25); }
.badge-whales { background-color: rgba(168, 85, 247, 0.12); color: #A855F7; border: 1px solid rgba(168, 85, 247, 0.25); }
.badge-buyers { background-color: rgba(245, 158, 11, 0.12); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-collapse { background-color: rgba(239, 68, 68, 0.12); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.25); }

.card-rule-headline {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.rule-quote {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.click-instruct {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Card Back */
.flip-card-back {
    background-color: var(--bg-darkest);
    transform: rotateY(180deg);
    border-color: var(--border-green);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.05);
    justify-content: center;
}

.flip-card-back h4 {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--primary-neon);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.flip-card-back p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Hopium Dispenser */
.dispenser-card {
    padding: 36px;
}

.dispenser-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.dispenser-logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dispenser-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-neon);
    box-shadow: 0 0 12px var(--primary-glow);
}

.dispenser-titles {
    display: flex;
    flex-direction: column;
}

.dispenser-main-title {
    font-size: 1.8rem;
}

.dispenser-intro {
    font-size: 1.02rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
}

.dispenser-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.control-group {
    display: flex;
    flex-direction: column;
}

.control-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.trade-select {
    background-color: var(--bg-darkest);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    height: 48px;
    transition: var(--transition-fast);
}

.trade-select:focus {
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px var(--primary-glow);
}

.dial-range-wrapper {
    background-color: var(--bg-darkest);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 10px 16px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hopium-slider {
    -webkit-appearance: none;
    flex-grow: 1;
    height: 4px;
    background: var(--text-muted);
    border-radius: 2px;
    outline: none;
}

.hopium-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-neon);
    cursor: pointer;
    box-shadow: 0 0 8px var(--primary-glow-intense);
    transition: var(--transition-fast);
}

.hopium-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-labels {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn-dispense {
    grid-column: span 2;
    height: 48px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--primary-neon);
    color: var(--bg-darkest);
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-dispense:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px var(--primary-glow-intense);
}

/* Dispenser Output display */
.dispenser-output-box {
    margin-top: 30px;
    animation: slideUpFade 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

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

.divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 24px 0;
}

.output-header {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary-neon);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.speech-bubble {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    margin-bottom: 24px;
}

#dispenser-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
    border-right: 2px solid transparent;
}

.typing {
    border-right: 2px solid var(--primary-neon) !important;
    animation: blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-neon); }
}

.conviction-meter-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
}

.meter-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.meter-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.meter-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--error-red), var(--primary-neon));
    border-radius: 4px;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Philosophy Section Layout */
.editorial-title-mini {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.philosophy-p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.philosophy-p:last-of-type {
    margin-bottom: 0;
}

/* Vocabulary Bubble Layout */
.vocab-card-large {
    margin-top: 32px;
    padding: 32px;
}

.vocab-container-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.vocab-bubble {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    cursor: default;
}

.vocab-bubble:hover {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    background-color: rgba(204, 255, 0, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 255, 0, 0.06);
}

/* Toast Notifications */
.notifications-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    pointer-events: none;
}

.notification {
    background-color: rgba(13, 19, 26, 0.95);
    border: 1px solid var(--border-green);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(204, 255, 0, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    pointer-events: auto;
    animation: slideIn 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translate3d(50px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.notification.fade-out {
    animation: slideOut 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes slideOut {
    from { opacity: 1; transform: translate3d(0, 0, 0); }
    to { opacity: 0; transform: translate3d(50px, 0, 0); }
}

.notification-icon-svg {
    width: 20px;
    height: 20px;
    color: var(--primary-neon);
    flex-shrink: 0;
    align-self: center;
}

.notification-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notification-title {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-neon);
}

.notification-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Site Footer */
.site-footer {
    background-color: var(--bg-darkest);
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    margin-top: 60px;
    color: var(--text-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.footer-logo .mascot-logo-img {
    width: 28px;
    height: 28px;
}

.footer-tagline {
    font-size: 0.85rem;
}

.footer-right {
    max-width: 600px;
    text-align: right;
}

.disclaimer {
    font-size: 0.7rem;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: justify;
}

.copyright {
    font-size: 0.75rem;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .rules-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }
    
    .main-nav {
        display: none;
    }
    
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    
    .mascot-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 24px;
    }
    
    .mascot-large-card {
        padding: 24px;
    }
    
    .rules-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .dispenser-controls {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .btn-dispense {
        grid-column: span 1;
    }
    
    .footer-right {
        text-align: left;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .banner-image-container {
        height: 220px;
    }
    
    .hero-info {
        padding: 20px;
    }
}
