/* ════════════════════════════════════════════════════════════
   GROUP: Foundation — Reset, Layout, Hero, Status Card
   ════════════════════════════════════════════════════════════ */
/* ── Reset ─────────────────────────────────────────────────── */
body {
    margin: 0;
    padding: 0;
    background: #080818;
    background-image: 
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(8, 0, 201, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 85% 80%, rgba(77, 111, 255, 0.08) 0%, transparent 60%);
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    min-height: 100vh;
    transition: background-image 1s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* ── Page wrapper ───────────────────────────────────────────── */
.aa-page {
    background: transparent;
    min-height: 100vh;
}

body.theme-ended {
    background-image:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 85% 80%, rgba(107, 114, 128, 0.1) 0%, transparent 60%);
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
    }

    50% {
        text-shadow: 0 0 50px rgba(74, 222, 128, 0.9), 0 0 80px rgba(74, 222, 128, 0.3);
    }
}

@keyframes chant-pulse {

    0%,
    100% {
        opacity: 0.35;
        letter-spacing: 0.18em;
    }

    50% {
        opacity: 0.6;
        letter-spacing: 0.22em;
    }
}

/* ── Hero ───────────────────────────────────────────────────── */
.aa-hero {
    text-align: center;
    padding: 4rem 1rem 2rem;
    animation: fadeUp 0.7s ease both;
}

.aa-hero h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.02;
    margin-bottom: 0.45rem;
}

.aa-hero h1 span {
    color: #4d6fff;
}

.admin-controls {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-emergency {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: grayscale(1);
    font-family: inherit;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-emergency:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    filter: grayscale(0) drop-shadow(0 0 10px rgba(239, 68, 68, 0.4));
    transform: translateY(-2px);
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-emergency:active {
    transform: scale(0.95);
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    min-height: 1.4em;
    transition: opacity 0.35s ease;
}

/* ── Status Badge ───────────────────────────────────────────── */
.status-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 6px;
    padding: 0.25rem 0.8rem;
    border: 1px solid;
}

.status-badge.scheduled {
    background: rgba(77, 111, 255, 0.15);
    border-color: rgba(77, 111, 255, 0.35);
    color: #4d6fff;
}

.status-badge.in-progress {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.35);
    color: #4ade80;
}

.status-badge.ended {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.45);
}

/* ── Two-column Grid Layout ─────────────────────────────────── */
.aa-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 0.5rem;
    animation: fadeUp 0.7s ease 0.12s both;
}

@media (min-width: 860px) {
    .aa-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
        align-items: start;
    }
}

.aa-col {
    display: flex;
    flex-direction: column;
}

/* Spacing between panels */
.aa-panel {
    margin-bottom: 1.75rem;
}

/* Full-width sections wrapper */
.aa-fullwidth {
    padding-bottom: 0.5rem;
    animation: fadeUp 0.7s ease 0.2s both;
}

.aa-panel-fw {
    margin-bottom: 1.75rem;
}

/* ── Shared section label ───────────────────────────────────── */
.section-label {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* ── Full-width Status Card wrapper ────────────────────────── */
.aa-status-full {
    margin-bottom: 1.75rem;
    animation: fadeUp 0.7s ease 0.12s both;
}

/* ── Status Card ────────────────────────────────────────────── */
.status-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.card-sub {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.card-hype {
    font-size: 0.78rem;
    color: rgba(77, 111, 255, 0.7);
    font-style: italic;
    margin-top: 0.75rem;
    transition: opacity 0.35s ease;
    min-height: 1.4em;
}

/* Countdown */
.countdown-display {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 1.25rem 0 1rem;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.countdown-value {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown-label {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
}

.countdown-sep {
    font-size: clamp(2.2rem, 6.5vw, 4.5rem);
    font-weight: 300;
    color: rgba(77, 111, 255, 0.45);
    line-height: 1;
    padding-top: 0.04em;
    align-self: flex-start;
}

/* In-progress */
.happening-text {
    font-size: clamp(1.8rem, 5.5vw, 3rem);
    font-weight: 700;
    color: #4ade80;
    letter-spacing: -0.02em;
    margin: 0.75rem 0 0.4rem;
    animation: pulse-glow 1.8s ease infinite;
}

.happening-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.elapsed-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.88rem;
    line-height: 2;
}

.elapsed-text strong {
    color: rgba(255, 255, 255, 0.75);
}

.happening-quip {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
    min-height: 1.3em;
    transition: opacity 0.35s ease;
}

/* Ended */
.ended-emoji {
    font-size: 2.2rem;
    margin: 0.5rem 0 0.6rem;
}

.ended-stages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.6rem 0;
}

.stage {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.15);
    border: 1px solid transparent;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: scale(0.6) translateY(15px);
    display: inline-flex;
    align-items: center;
}

.stage-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.stage-done {
    opacity: 1;
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.35);
    transform: scale(0.95);
}

.stage-done::before {
    content: '✓';
    display: inline-block;
    margin-right: 0.35rem;
    font-size: 0.75rem;
    font-weight: 900;
}

.stage-active {
    opacity: 1;
    background: rgba(77, 111, 255, 0.18);
    border: 1px solid rgba(77, 111, 255, 0.45);
    color: #4d6fff;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(77, 111, 255, 0.25);
}

.next-date-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.65rem;
}

.next-date-value {
    color: #4d6fff;
    font-weight: 600;
}

.ended-countdown {
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(77, 111, 255, 0.75);
    margin-top: 0.45rem;
    letter-spacing: 0.05em;
    background: rgba(77, 111, 255, 0.08);
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(77, 111, 255, 0.2);
}

.grass-wrap {
    margin-top: 1.25rem;
}

.grass-btn {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #4ade80;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    transition: background 0.2s, box-shadow 0.2s, scale 0.1s;
    --shake: 0;
    --scale: 1;
    scale: var(--scale);
}

@keyframes intense-shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-4px, -2px) rotate(-3deg); }
    20%, 40%, 60%, 80% { transform: translate(4px, 2px) rotate(3deg); }
}

@keyframes btn-explode {
    0% { transform: scale(1); opacity: 1; filter: brightness(1) drop-shadow(0 0 0px #ef4444); }
    50% { transform: scale(1.6); filter: brightness(1.5) drop-shadow(0 0 25px #ef4444); }
    100% { transform: scale(0); opacity: 0; filter: brightness(3) drop-shadow(0 0 60px #ef4444); }
}

.btn-shaking {
    animation: intense-shake 0.1s linear infinite !important;
}

.btn-exploding {
    animation: btn-explode 0.5s forwards ease-in !important;
    pointer-events: none;
}

@keyframes btn-shake {
    0%   { translate: calc(var(--shake) * 1px) calc(var(--shake) * 1px); rotate: calc(var(--shake) * 1deg); }
    25%  { translate: calc(var(--shake) * -1px) 0px; rotate: calc(var(--shake) * -1deg); }
    50%  { translate: calc(var(--shake) * 1px) calc(var(--shake) * -1px); rotate: calc(var(--shake) * 1deg); }
    75%  { translate: calc(var(--shake) * -1px) calc(var(--shake) * 1px); rotate: calc(var(--shake) * -1deg); }
    100% { translate: calc(var(--shake) * 1px) calc(var(--shake) * 1px); rotate: calc(var(--shake) * 1deg); }
}

.grass-btn.comboing {
    animation: btn-shake 0.15s infinite linear;
}

.grass-btn:hover {
    background: rgba(74, 222, 128, 0.2);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.2);
}

.grass-btn:not(.comboing):active {
    scale: 0.95;
}

.grass-count {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0.5rem;
    font-variant-numeric: tabular-nums;
}

/* ════════════════════════════════════════════════════════════
   GROUP: Session Interactions — Grass, Vibe, Audio
   ════════════════════════════════════════════════════════════ */
/* ── Floating Grass Emoji Animation ─────────────────────────── */
.grass-emoji-anim {
    position: fixed;
    pointer-events: none;
    font-size: 1.4rem;
    z-index: 9999;
    opacity: 1;
    transition: transform 1s cubic-bezier(0.15, 0.8, 0.3, 1), opacity 1s ease-in;
}

.combo-text {
    position: fixed;
    pointer-events: none;
    font-size: 1.2rem;
    font-weight: 800;
    font-style: italic;
    z-index: 10000;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease-out;
}

/* ── Vibe Forecast ──────────────────────────────────────────── */
.forecast-card {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    width: 100%;
}

.forecast-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 0.4rem;
}

.forecast-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.forecast-label {
    font-size: 0.57rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    line-height: 1.3;
}

.forecast-val {
    font-size: 0.68rem;
    font-weight: 700;
    color: #4d6fff;
    letter-spacing: 0.05em;
}

.forecast-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.07);
    align-self: stretch;
}

/* ── Audio Player ───────────────────────────────────────────── */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.playlist-toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.playlist-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(77, 111, 255, 0.4);
    transform: translateY(-1px);
}

.playlist-toggle-btn.active {
    transform: rotate(180deg);
}

.playlist-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-bottom 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.playlist-container.expanded {
    max-height: 184px; /* Fits exactly 5 items + padding */
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
}

/* Custom Scrollbar for a premium look */
.playlist-container::-webkit-scrollbar {
    width: 4px;
}

.playlist-container::-webkit-scrollbar-track {
    background: transparent;
}

.playlist-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
    background: rgba(77, 111, 255, 0.4);
}

.playlist-list {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.playlist-item {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 1rem;
}

.playlist-item.active {
    background: rgba(77, 111, 255, 0.12);
    color: #4d6fff;
    font-weight: 600;
}

.audio-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    backdrop-filter: blur(8px);
    width: 100%;
    box-sizing: border-box;
}

.ap-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #4d6fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s;
    padding: 0;
}

.ap-btn:hover {
    background: #3a5ce0;
    transform: scale(1.07);
}

.ap-btn svg {
    display: block;
}

.ap-body {
    flex: 1;
    min-width: 0;
}

.ap-label {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ap-progress {
    position: relative;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 0.3rem;
}

.ap-progress-fill {
    height: 100%;
    width: 0%;
    background: #4d6fff;
    border-radius: 3px;
    pointer-events: none;
    transition: width 0.1s linear;
}

.ap-time {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
}

/* ════════════════════════════════════════════════════════════
   GROUP: Session Trackers — Risk, THC, Ghost, Controls
   ════════════════════════════════════════════════════════════ */
/* ── Session Risk Assessment ─────────────────────────────────── */
.risk-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 1.25rem 1.25rem 1rem;
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.75rem;
}

.risk-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: #fbbf24;
    border-radius: 5px;
    padding: 0.18rem 0.5rem;
}

.risk-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Tracker Controls Grid ─────────────────────────────────── */
.tracker-controls {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1fr auto;
    gap: 0.5rem;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.tracker-controls .form-select,
.tracker-controls .form-control {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    height: 34px;
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    color-scheme: dark; /* Ensures browser-native dropdown menus are dark */
}

.tracker-controls option {
    background-color: #1a1a2e;
    color: #fff;
}

.tracker-controls .btn {
    height: 34px;
    padding: 0 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile adjustments for trackers */
@media (max-width: 600px) {
    .tracker-controls {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "method strain"
            "strength strength"
            "button button";
    }
    
    #thc-method { grid-area: method; }
    #thc-strain { grid-area: strain; }
    #thc-strength, #thc-mg { grid-area: strength; }
    #btn-thc-hit { grid-area: button; }

    #ghost-controls {
        grid-template-areas: 
            "flavor flavor"
            "size food"
            "button button";
    }
    
    #ghost-flavor { grid-area: flavor; }
    #ghost-size { grid-area: size; }
    #ghost-food { grid-area: food; }
    #btn-ghost-drink { grid-area: button; }
}

.risk-rows {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.risk-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.risk-metric {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.48);
}

.risk-level {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    border-radius: 4px;
    padding: 0.16rem 0.5rem;
    white-space: nowrap;
}

.risk-critical {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.risk-elevated {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: #fbbf24;
}

.risk-off {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.28);
    color: #c084fc;
}

.risk-none {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.risk-disclaimer {
    margin-top: 0.85rem;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.13);
    font-style: italic;
}

/* ════════════════════════════════════════════════════════════
   GROUP: Content Cards — Lyric, Mineral, Food Poll
   ════════════════════════════════════════════════════════════ */
/* ── Base Card Styles (Lyric, Mineral, Food) ──────────────────── */
.lyric-card,
.mineral-card,
.food-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.lyric-eyebrow,
.mineral-eyebrow {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4d6fff;
    margin-bottom: 0.3rem;
}

.lyric-quote,
.mineral-quote {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.62);
    font-style: italic;
    line-height: 1.55;
    margin: 0 0 0.35rem;
}

.lyric-attr,
.mineral-attr {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.22);
}

/* ── Lyric Card ─────────────────────────────────────────────── */
.lyric-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.lyric-body {
    border-left: 2px solid rgba(77, 111, 255, 0.45);
    padding-left: 0.8rem;
}

/* ── Mineral Card ───────────────────────────────────────────── */
.mineral-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.mineral-body {
    border-left: 2px solid rgba(77, 111, 255, 0.4);
    padding-left: 0.8rem;
}

/* ── Food Poll ──────────────────────────────────────────────── */
.food-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.food-body {
    border-left: 2px solid rgba(255, 140, 0, 0.45);
    padding-left: 0.8rem;
    flex: 1;
}

.food-eyebrow {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff8c00;
    margin-bottom: 0.3rem;
}

.food-question {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.62);
    font-style: italic;
    line-height: 1.55;
    margin: 0 0 0.65rem;
}

.food-options {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.food-vote-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: all 0.15s;
}

.food-vote-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    transform: translateY(-1px);
}

.food-vote-btn.voted {
    background: rgba(255, 140, 0, 0.18);
    border-color: rgba(255, 140, 0, 0.45);
    color: #ff8c00;
}

.food-idc {
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.02em;
}

.food-result-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.food-result-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.38);
    width: 58px;
    flex-shrink: 0;
}

.food-bar-wrap {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    overflow: hidden;
}

.food-bar {
    height: 100%;
    width: 0%;
    background: #ff8c00;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.food-bar-taco {
    background: #4ade80;
}

.food-bar-idc {
    background: rgba(255, 255, 255, 0.2);
}

.food-result-pct {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.28);
    width: 30px;
    text-align: right;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.food-total {
    font-size: 0.67rem;
    color: rgba(255, 255, 255, 0.18);
    font-style: italic;
    margin-top: 0.4rem;
}

/* ── Fun Facts Ticker ───────────────────────────────────────── */
.ticker-card {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 0.75rem 1.1rem;
    width: 100%;
    box-sizing: border-box;
}

.ticker-prefix {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #4d6fff;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 0.1em;
}

.ticker-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.42);
    font-style: italic;
    line-height: 1.4;
    transition: opacity 0.4s ease;
}

/* ── Footer ─────────────────────────────────────────────────── */
.aa-footer {
    text-align: center;
    padding: 1rem 1rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.aa-footer-chant {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(77, 111, 255, 0.4);
    margin-bottom: 0.6rem;
    animation: chant-pulse 3s ease infinite;
}

.aa-footer a {
    color: rgba(255, 255, 255, 0.22);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.15s;
    display: block;
    margin-bottom: 1rem;
}

.aa-footer a:hover {
    color: #4d6fff;
}

.aa-footer-fine {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
    font-style: italic;
}

/* ════════════════════════════════════════════════════════════
   GROUP: Responsive, Accessibility & Theme Variants
   ════════════════════════════════════════════════════════════ */
/* ── Mobile tweaks ──────────────────────────────────────────── */
@media (max-width: 480px) {
    .countdown-display {
        gap: 0.2rem;
    }

    .countdown-sep {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        padding-top: 0.1em;
    }

    .mineral-card,
    .lyric-card,
    .food-card {
        flex-direction: column;
        gap: 0.45rem;
    }

    .status-card {
        padding: 1.75rem 1.1rem;
    }

    .risk-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}

/* ── Constrain overall page width on very large screens ─────── */
@media (min-width: 1200px) {

    .aa-hero>.container,
    .aa-status-full,
    .aa-grid,
    .aa-fullwidth {
        max-width: 1060px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── Accessibility ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
/* SESSION QUOTES */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.quote-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.quote-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.quote-text {
    font-size: 0.95rem;
    color: #f1f5f9;
    line-height: 1.5;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: auto;
}

.quote-author {
    font-weight: 700;
    color: #f8fafc;
}

.quote-date {
    opacity: 0.6;
}

.quote-item::before {
    content: "“";
    position: absolute;
    top: -10px;
    left: 5px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
    z-index: 0;
}

/* ── High-Vibe Upgrades ─────────────────────────────────────── */

/* Achievement Toasts */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.achievement-toast {
    background: rgba(8, 8, 24, 0.9);
    border: 1px solid rgba(250, 204, 21, 0.4);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.15), inset 0 0 10px rgba(250, 204, 21, 0.1);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    backdrop-filter: blur(12px);
    transform: translateX(130%);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    min-width: 280px;
}

.achievement-toast.visible {
    transform: translateX(0);
}

.achievement-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.6));
}

.achievement-content {
    flex: 1;
}

.achievement-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #facc15;
    margin-bottom: 0.2rem;
}

.achievement-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}


/* Ascension Mode Body Overrides */
body.ascension-mode {
    background-image: 
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(236, 72, 153, 0.2) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 85% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 60%) !important;
}

body.ascension-mode .aa-hero h1 span {
    color: #ec4899;
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

body.ascension-mode .status-badge.in-progress {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.4);
    color: #f472b6;
    animation: pulse-glow-ascension 1.5s infinite;
}

@keyframes pulse-glow-ascension {
    0%, 100% { box-shadow: 0 0 5px rgba(236, 72, 153, 0.3); }
    50% { box-shadow: 0 0 20px rgba(236, 72, 153, 0.6); }
}

/* Vibe Check Slider Customization */
.vibe-slider-wrap {
    margin-top: 1rem;
    padding: 0.5rem;
}

.vibe-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.vibe-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4d6fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(77, 111, 255, 0.5);
    transition: 0.2s;
}

.vibe-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    background: #60a5fa;
}

/* Deep Conversation Button */
.btn-deep-convo {
    margin-top: 1.5rem;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: #f472b6;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    width: 100%;
}

.btn-deep-convo:hover {
    background: rgba(236, 72, 153, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-deep-convo:active {
    transform: translateY(0);
}

/* Deep Prompt List */
.prompt-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(236, 72, 153, 0.15);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slide-in-top 0.4s ease-out forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.prompt-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.4));
}

.prompt-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    flex: 1;
}

@keyframes slide-in-top {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes emergencyPulse {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.03); border-color: rgba(239, 68, 68, 0.2); }
  50% { transform: scale(1.02); box-shadow: 0 0 40px rgba(239, 68, 68, 0.7); background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.6); }
  100% { transform: scale(1); box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.03); border-color: rgba(239, 68, 68, 0.2); }
}
.emergency-pulse {
  animation: emergencyPulse 1.5s infinite ease-in-out !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 20px !important;
}
.emergency-pulse .countdown-value {
  color: #ef4444 !important;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.6) !important;
}
.emergency-pulse .countdown-label {
  color: rgba(239, 68, 68, 0.6) !important;
}
.emergency-pulse .countdown-sep {
  color: #ef4444 !important;
}

/* Jeebu Theme */
body.theme-jeebu {
  background: radial-gradient(circle at 50% 30%, #1a1500 0%, #080818 70%) !important;
}
.theme-jeebu .aa-hero h1 span {
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
}
.theme-jeebu .happening-text {
  color: #fbbf24 !important;
  text-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
  animation: float-jeebu 3s ease-in-out infinite;
}
@keyframes float-jeebu {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-5px) scale(1.02); }
  100% { transform: translateY(0px) scale(1); }
}
.theme-jeebu .happening-sub {
  border-top: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
  border-radius: 10px;
  padding: 10px;
}
.theme-jeebu .aa-panel {
  border-color: rgba(251, 191, 36, 0.15);
  box-shadow: 0 4px 30px rgba(251,191,36,0.05);
}
.theme-jeebu .section-label {
  color: rgba(251, 191, 36, 0.8) !important;
}

/* Tabs Styling */
.aa-tabs-nav {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.aa-tabs-nav .nav-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.aa-tabs-nav .nav-tabs::-webkit-scrollbar {
  height: 0px; /* Hide scrollbar for cleaner look, but still scrollable */
}
.aa-tabs-nav .nav-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.aa-tabs-nav .nav-tabs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}
.aa-tabs-nav .nav-link {
  color: rgba(255, 255, 255, 0.6);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.aa-tabs-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: transparent;
}
.aa-tabs-nav .nav-link.active {
  color: #fff;
  background: transparent;
  border-bottom: 2px solid #38bdf8;
}

@media (max-width: 768px) {
  .aa-tabs-nav .nav-tabs {
    padding-bottom: 2px;
  }
  .aa-tabs-nav .nav-link {
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
  }
}

/* ════════════════════════════════════════════════════════════
   GROUP: Steam Games Tab — Cards, Voting, Wishlist, Badges
   ════════════════════════════════════════════════════════════ */
/* ── Steam Games ── */
.steam-game-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.steam-game-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  transition: border-color 0.2s;
}
.steam-game-card.my-vote {
  border-color: rgba(56,189,248,0.45);
  background: rgba(56,189,248,0.07);
}
.steam-game-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.steam-game-icon-placeholder {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.steam-game-info {
  flex: 1;
  min-width: 0;
}
.steam-game-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.steam-vote-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-top: 4px;
}
.steam-vote-bar {
  height: 100%;
  background: #38bdf8;
  border-radius: 2px;
  transition: width 0.4s ease;
}
.steam-vote-count {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}
.steam-vote-btn {
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.35);
  color: #38bdf8;
  border-radius: 8px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.steam-vote-btn:hover {
  background: rgba(56,189,248,0.22);
}
.steam-my-vote-badge {
  font-size: 0.75rem;
  color: #38bdf8;
  font-weight: 700;
  white-space: nowrap;
}
.steam-winner-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

/* ── Steam toolbar ── */
.steam-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: center;
}
.steam-filter-group,
.steam-sort-group {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.steam-filter-btn,
.steam-sort-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  border-radius: 8px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.steam-filter-btn.active,
.steam-sort-btn.active {
  background: rgba(56,189,248,0.15);
  border-color: rgba(56,189,248,0.4);
  color: #38bdf8;
}
.steam-filter-btn:hover,
.steam-sort-btn:hover {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.8);
}
.filter-count {
  font-size: 0.68rem;
  opacity: 0.7;
}
/* playtime + custom badges */
.steam-game-meta {
  display: flex;
  gap: 0.35rem;
  margin-top: 2px;
  flex-wrap: wrap;
}
.steam-playtime-badge {
  font-size: 0.68rem;
  color: #64748b;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 1px 5px;
}
.steam-playtime-badge.unplayed {
  color: #94a3b8;
  background: rgba(139,92,246,0.12);
}
.steam-custom-badge {
  font-size: 0.65rem;
  color: #fbbf24;
  background: rgba(251,191,36,0.1);
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 700;
}
/* Wishlist icon sizing (wide header format) */
.wl-icon {
  width: 100px !important;
  height: 47px !important;
  object-fit: cover;
}
.steam-vote-bar.wl-bar {
  background: #fbbf24;
}

/* ════════════════════════════════════════════════════════════
   GROUP: UI Widgets — Identity, Tabs, Navigation
   ════════════════════════════════════════════════════════════ */
/* ── Identity badge ── */
.identity-badge {
  display: inline-block;
  margin-top: 0.6rem;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.3);
  color: #38bdf8;
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.15s;
}
.identity-badge::before { content: '👤 '; }
.identity-badge:hover { background: rgba(56,189,248,0.2); }

/* ── Game list scroll container ── */
.steam-scroll-container {
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
  border-radius: 8px;
}
.steam-scroll-container::-webkit-scrollbar { width: 5px; }
.steam-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
}

/* ── Add-game tabs ── */
.add-game-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.add-game-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  border-radius: 8px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.add-game-tab.active {
  background: rgba(56,189,248,0.12);
  border-color: rgba(56,189,248,0.35);
  color: #38bdf8;
}

/* ── Steam search results ── */
.steam-search-results {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.steam-search-result {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
}

/* ── Source badges ── */
.steam-source-badge {
  font-size: 0.65rem;
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 700;
}
.badge-not-owned {
  color: #a78bfa;
  background: rgba(167,139,250,0.12);
}
.badge-not-steam {
  color: #fb923c;
  background: rgba(251,146,60,0.12);
}
