:root {
    /* Warcraft 3: The Frozen Throne Theme */
    --bg-dark: #060a12;
    --bg-panel: #0f1520;
    --primary: #1a8fc4;
    --primary-hover: #22a8e0;
    --text-main: #e8ecf2;
    --text-muted: #7a8da3;
    --accent-gold: #d4a017;
    --accent-food: #10b981;
    --track-color: #1c2a3a;
    --border-color: rgba(100, 160, 220, 0.12);
    --glow-primary: 0 0 20px rgba(26, 143, 196, 0.5);
    --glow-gold: 0 0 20px rgba(212, 160, 23, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(20, 100, 180, 0.1), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(212, 160, 23, 0.07), transparent 25%);
}

.app-container {
    width: 100%;
    max-width: 1400px;
    background: var(--bg-panel);
    border-radius: 24px;
    padding: 40px 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(100, 160, 220, 0.1);
    border: 1px solid rgba(100, 160, 220, 0.15);
    position: relative;
    z-index: 1;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.header-titles {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f5b800, #ffe066);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 8px rgba(212, 160, 23, 0.3));
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 220px;
    margin-top: 15px;
    user-select: none;
}

.dropdown-selected {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-selected:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
}

.selected-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.race-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.race-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-gold);
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 5px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    z-index: 10000; /* Extremely high to clear all modal elements */
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.dropdown-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-option:hover {
    background: rgba(255,255,255,0.05);
}

.dropdown-option span {
    font-weight: 500;
}

.timer-display {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    font-variant-numeric: tabular-nums;
    background: rgba(0,0,0,0.3);
    padding: 5px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.controls {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 36px;
    border: none;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--glow-primary);
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.6);
}

.primary-btn:active {
    transform: translateY(0) scale(0.98);
}

.secondary-btn {
    background-color: rgba(255,255,255,0.03);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

/* Sidebar Layout */
.main-layout {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.left-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.play-area {
    display: flex;
    flex-direction: column;
}

/* Timeline */
.timeline-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    height: 380px;
    display: flex;
    align-items: center;
}

.timeline-window {
    width: 100%;
    height: 380px;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(100, 160, 220, 0.1);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.6), 0 0 15px rgba(26, 143, 196, 0.05);
}

.timeline-window::before, .timeline-window::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 10;
    pointer-events: none;
}
.timeline-window::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-panel), transparent);
}
.timeline-window::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-panel), transparent);
}

.timeline-track {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    left: 150px; /* Playhead offset */
    height: 6px;
    background: var(--track-color);
    width: 5000px; /* Long sufficient track */
    border-radius: 3px;
    will-change: transform;
}

.playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 150px; /* Fixed visually */
    width: 3px;
    background: var(--accent-gold);
    z-index: 20;
    box-shadow: var(--glow-gold);
}

.playhead::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -7px;
    border-style: solid;
    border-width: 10px 8.5px 0 8.5px;
    border-color: var(--accent-gold) transparent transparent transparent;
}

.event-node {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--bg-panel);
    border: 4px solid var(--track-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-node.passed {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.5;
}

.event-node.active {
    border-color: var(--accent-gold);
    box-shadow: var(--glow-gold);
    transform: translate(-50%, -50%) scale(1.3);
    background: var(--accent-gold);
}

.event-resources {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.event-resource {
    background: rgba(20, 22, 28, 0.9);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-resource img {
    height: 18px;
    width: auto;
    border-radius: 2px;
}

.event-action {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 22, 28, 0.9);
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.event-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.event-icon-item {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    transition: opacity 0.2s ease-in-out;
}

.event-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.active .event-action {
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.15);
}

.active .event-resources .event-resource {
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

.passed .event-action, .passed .event-resources {
    opacity: 0.6;
    filter: grayscale(80%);
}

/* Sidebar History Log */
.history-sidebar {
    width: 380px;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.history-sidebar h3 {
    font-family: 'Outfit';
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
    padding-bottom: 5px;
    text-align: center;
    margin: 15px auto;
}

.history-list {
    flex: 1;
    min-height: 0;
    overflow: hidden; /* No scrolling, it's a sliding window */
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}
.history-list::-webkit-scrollbar-track {
    background: transparent;
}
.history-list::-webkit-scrollbar-thumb {
    background: var(--track-color);
    border-radius: 3px;
}

.history-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.history-item.active {
    background: linear-gradient(90deg, rgba(250, 187, 60, 0.15), rgba(250, 187, 60, 0.05));
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(250, 187, 60, 0.2);
    transform: scale(1.02);
    z-index: 2;
}

.history-item.active .history-action {
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(250, 187, 60, 0.3);
}

.history-item.passed {
    opacity: 0.25;
    filter: grayscale(1);
    transform: scale(0.98);
}

.history-time {
    font-weight: bold;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    width: 45px;
}

.history-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-action {
    font-weight: 600;
}

.history-resources {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.history-resources span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.history-resources img {
    height: 14px;
}

.history-icon-item {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255,255,255,0.05);
}

/* Made By - styles inline */

.current-action-display {
    text-align: center;
    background: linear-gradient(to bottom, rgba(255,255,255,0.03), transparent);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.current-action-display h2 {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.upcoming-action {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.upcoming-icons-container {
    display: flex;
    gap: 10px;
    margin-right: 15px;
}

.upcoming-icon-item {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(0,0,0,0.4);
    transition: opacity 0.2s ease-in-out;
}

.upcoming-action .highlight-gold {
    color: var(--accent-gold);
    line-height: 1.1;
}

.upcoming-action-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.upcoming-subtext {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    opacity: 0.8;
}

.upcoming-resources {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}

.upcoming-resource {
    background: rgba(0,0,0,0.2);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}
.upcoming-resource img {
    height: 24px;
    width: auto;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: block; /* Allows natural scrolling */
    overflow-y: auto;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-panel);
    width: 95%;
    max-width: 1200px;
    margin: 50px auto; /* Centered with space at top/bottom */
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: visible; /* CRITICAL: No clipping */
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: sticky;
    top: -30px; /* Floats at top of screen within modal */
    background: var(--bg-panel);
    z-index: 5000; /* Higher than table header */
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-family: 'Outfit';
    color: var(--text-main);
    font-size: 2rem;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: #ef4444;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.small-btn {
    padding: 10px 16px;
    font-size: 0.95rem;
    border-radius: 8px;
}

.editor-table-header {
    display: grid;
    grid-template-columns: 60px 60px 60px 60px 60px 1fr 220px 70px;
    gap: 12px;
    padding: 15px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    background: rgba(0,0,0,0.4);
    border-radius: 10px 10px 0 0;
    position: sticky;
    top: 50px; /* Below the header */
    z-index: 2001;
}

.editor-rows {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0 200px 0; /* Space at bottom for dropdowns */
    overflow: visible; /* NO CLIPPING */
}

/* Scrollbar Style */
.editor-rows::-webkit-scrollbar {
    width: 8px;
}
.editor-rows::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}
.editor-rows::-webkit-scrollbar-thumb {
    background: var(--track-color);
    border-radius: 4px;
}

.editor-row {
    display: grid;
    grid-template-columns: 60px 60px 60px 60px 60px 1fr 220px 70px;
    gap: 12px;
    align-items: center;
    background: rgba(255,255,255,0.02);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
    /* Removed overflow: hidden or anything that clips */
}

.editor-row:hover {
    border-color: rgba(255,255,255,0.1);
}

/* Ensure row with active dropdown stays on top of others */
.editor-row:focus-within,
.editor-row:has(.entity-dropdown-list.active) {
    position: relative;
    z-index: 4000; /* Must be higher than modal-footer (2001) */
}


.editor-input {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    width: 100%;
}

.editor-action-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.editor-subtext {
    font-size: 0.8rem;
    opacity: 0.7;
    background: rgba(255,255,255,0.02);
}

.editor-subtext:focus {
    opacity: 1;
}

.editor-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,0,0,0.5);
}

select.editor-input {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    padding-right: 25px;
}

select.editor-input optgroup {
    background: var(--bg-dark);
    color: var(--accent-gold);
    font-weight: bold;
}

select.editor-input option {
    background: var(--bg-panel);
    color: var(--text-main);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 0 10px 0;
    border-top: 1px solid var(--border-color);
    position: sticky;
    bottom: -30px; /* Floats at bottom of screen */
    background: var(--bg-panel);
    z-index: 2001;
    margin-top: 20px;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.5);
}

.del-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}
.del-btn:hover {
    background: #ef4444;
    color: white;
}


.hotkey-config {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3px 8px;
    border-radius: 8px;
}
.hotkey-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.hotkey-btn {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-main);
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}
.hotkey-btn:hover { background: rgba(255,255,255,0.1); }
.hotkey-btn.listening {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    animation: hotkeyPulse 1s infinite alternate;
}
@keyframes hotkeyPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.event-node:not(.active) .event-text {
    display: none;
}

/* Custom Entity Dropdown in Editor */
.entity-select-container {
    position: relative;
    flex: 1;
    min-width: 0;
}

.entity-select-trigger {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #f8fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: all 0.2s;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entity-select-trigger:hover {
    border-color: #fbbf24;
    background: rgba(30, 41, 59, 0.8);
}

.entity-select-trigger img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    object-fit: cover;
}

.entity-dropdown-list {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 280px;
    background: #0f172a; /* Darker background like image */
    border: 1px solid #475569;
    border-radius: 4px; /* Less rounded like image */
    max-height: 400px;
    overflow-y: auto;
    z-index: 3000;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
    display: none;
}

.entity-dropdown-list.active {
    display: block;
}

.entity-dropdown-list.open-up {
    top: auto;
    bottom: calc(100% + 5px);
}

.entity-group-label {
    padding: 6px 15px;
    font-size: 0.85rem;
    font-weight: 900;
    font-style: italic;
    color: #fbbf24; /* Golden yellow */
    background: #1e293b; /* Header background strip */
    text-transform: capitalize;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.entity-option {
    padding: 5px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.entity-option:hover {
    background: #334155;
    color: #f8fafc;
}

.entity-option img {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

.entity-option.selected {
    background: #475569;
    color: #ffffff;
}

/* Scrollbar for dropdown */
.entity-dropdown-list::-webkit-scrollbar {
    width: 6px;
}
.entity-dropdown-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.entity-dropdown-list::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.3);
    border-radius: 3px;
}



/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top: 2px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.entity-select-trigger img, .entity-option img, .event-icon-item, .upcoming-icon-item, .history-icon-item {
    background: rgba(0,0,0,0.4);
}

/* How To Use Button Entrance Animation */
.how-to-use-entrance {
    animation: howToUseFlyIn 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-shadow: 0 0 30px rgba(212, 160, 23, 0.4);
}

@keyframes howToUseFlyIn {
    0% {
        transform: translate(var(--start-x), var(--start-y)) scale(3);
        opacity: 0;
        box-shadow: 0 0 100px rgba(212, 160, 23, 0.8);
    }
    10% {
        opacity: 1;
    }
    60% {
        transform: translate(var(--start-x), var(--start-y)) scale(3);
        opacity: 1;
        box-shadow: 0 0 100px rgba(212, 160, 23, 0.8);
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
        box-shadow: none;
    }
}
