/* =========================================================
   STYLE.CSS - 3D School Scavenger Hunt Game
   Architecture-inspired modern UI with Glassmorphism
   ========================================================= */

:root {
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.4);
    --success: #10b981;
    --bg-glass: rgba(15, 23, 42, 0.78);
    --bg-glass-light: rgba(255, 255, 255, 0.12);
    --border-glass: rgba(255, 255, 255, 0.18);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Prompt', sans-serif;
    --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0b1120;
    font-family: var(--font-body);
    color: var(--text-main);
    touch-action: none;
}

#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* =========================================================
   Click to Lock / Resume Overlay
   ========================================================= */
#click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 12;
    background: rgba(11, 17, 32, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

#click-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-prompt {
    background: rgba(15, 23, 42, 0.9);
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.2);
    border-radius: 24px;
    padding: 24px 36px;
    text-align: center;
    color: #fff;
    transform: scale(1);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#click-overlay:hover .overlay-prompt {
    transform: scale(1.05);
    border-color: #38bdf8;
}

.overlay-prompt .prompt-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 8px;
    animation: floatIcon 1.5s infinite alternate ease-in-out;
}

@keyframes floatIcon {
    from { transform: translateY(0); }
    to { transform: translateY(-6px); }
}

.overlay-prompt h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #38bdf8;
    margin-bottom: 6px;
}

.overlay-prompt p {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* =========================================================
   Crosshair & Interaction Target Prompt
   ========================================================= */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#crosshair .dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 0 12px var(--primary-light);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

#crosshair .ring {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#crosshair.targeting .dot {
    background-color: #38bdf8;
    transform: scale(1.6);
}

#crosshair.targeting .ring {
    width: 44px;
    height: 44px;
    border-color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.15);
    animation: pulseRing 1.2s infinite ease-in-out;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 0.5; }
}

#target-prompt {
    position: absolute;
    top: 36px;
    white-space: nowrap;
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    animation: fadeInPrompt 0.2s ease-out;
}

#target-prompt .key-hint {
    background: rgba(56, 189, 248, 0.3);
    color: #bae6fd;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

@keyframes fadeInPrompt {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Top HUD Bar
   ========================================================= */
#hud-top {
    position: absolute;
    top: 16px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 15;
    pointer-events: none;
}

.brand-badge {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
}

.brand-badge .badge-icon {
    font-size: 1.8rem;
}

.brand-text h2 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.brand-text p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.stats-group {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    font-size: 1.4rem;
}

.stat-card .stat-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #38bdf8;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-btn {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s ease;
}

.hud-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.hud-btn:active {
    transform: translateY(0);
}

/* =========================================================
   Minimap / Radar
   ========================================================= */
#minimap-container {
    position: absolute;
    top: 90px;
    right: 20px;
    width: 240px;
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 12px;
    z-index: 15;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.minimap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
}

.zone-tag {
    font-size: 0.7rem;
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: normal;
}

.minimap-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    background: #09101d;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#minimap-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.minimap-legend {
    display: flex;
    justify-content: space-around;
    margin-top: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.minimap-legend .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.minimap-legend .dot.you {
    background: #3b82f6;
    box-shadow: 0 0 6px #3b82f6;
}

.minimap-legend .dot.target {
    background: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
}

/* =========================================================
   Items Checklist Sidebar
   ========================================================= */
#checklist-panel {
    position: absolute;
    top: 90px;
    left: 20px;
    width: 290px;
    max-height: calc(100vh - 120px);
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 14px;
    z-index: 15;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#checklist-panel.collapsed {
    transform: translateX(-240px);
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.checklist-header .title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checklist-header h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.3s;
}

#checklist-panel.collapsed .toggle-btn {
    transform: rotate(180deg);
}

.checklist-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.items-list {
    list-style: none;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.items-list::-webkit-scrollbar {
    width: 4px;
}

.items-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.item-row {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.item-row:hover {
    background: rgba(255, 255, 255, 0.1);
}

.item-row.found {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

.item-row .item-badge-icon {
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
}

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

.item-row .item-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: #f1f5f9;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-row .item-location {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: block;
}

.item-row .item-status-icon {
    font-size: 0.85rem;
    color: #64748b;
}

.item-row.found .item-status-icon {
    color: #34d399;
}

/* =========================================================
   Toast Notification
   ========================================================= */
.toast {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 185, 129, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.hidden {
    opacity: 0;
    transform: translate(-50%, 20px) scale(0.9);
    pointer-events: none;
}

.toast-icon {
    font-size: 1.4rem;
}

.toast-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.toast-content p {
    font-size: 0.78rem;
    color: #d1fae5;
}

/* =========================================================
   Modals
   ========================================================= */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 12, 22, 0.85);
    backdrop-filter: blur(16px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 32px;
    max-width: 680px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.modal-card h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

.preview-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.preview-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.preview-thumb {
    width: 100%;
    height: 85px;
    object-fit: cover;
    border-radius: 8px;
}

.item-icon-showcase {
    justify-content: center;
}

.floating-icons {
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.preview-item span {
    font-size: 0.72rem;
    color: #cbd5e1;
    font-weight: 500;
}

.control-guides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 26px;
}

.guide-col h4 {
    font-size: 0.85rem;
    color: #38bdf8;
    margin-bottom: 8px;
}

.guide-col ul {
    list-style: none;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

kbd {
    background: #334155;
    border: 1px solid #475569;
    border-radius: 4px;
    padding: 1px 5px;
    font-family: inherit;
    font-size: 0.72rem;
    color: #f1f5f9;
    margin: 0 2px;
}

.btn-primary {
    position: relative;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 30px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* =========================================================
   Viewer Modal (Blueprint / Photo)
   ========================================================= */
.viewer-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    width: 90vw;
    max-width: 960px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.viewer-header .tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
    font-weight: 500;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
}

.viewer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #060a12;
}

.tab-content {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.tab-content.active {
    display: flex;
}

.full-view-img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.blueprint-annotations {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.anno-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.photo-caption {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================================
   Victory Card
   ========================================================= */
.victory-card {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.2);
}

.confetti-crown {
    font-size: 3.5rem;
    margin-bottom: 8px;
    animation: bounceCrown 1s infinite alternate ease-in-out;
}

@keyframes bounceCrown {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-8px) scale(1.1); }
}

.victory-card h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fbbf24;
    margin-bottom: 6px;
}

.victory-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.victory-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 20px;
}

.v-stat .v-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.v-stat .v-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #38bdf8;
}

.collected-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.gallery-slot {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 10px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.gallery-slot .g-icon {
    font-size: 1.3rem;
}

.gallery-slot .g-name {
    font-size: 0.68rem;
    color: #a7f3d0;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* =========================================================
   Mobile Touch Controls
   ========================================================= */
#mobile-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
}

#joystick-zone {
    width: 120px;
    height: 120px;
    pointer-events: auto;
}

#joystick-base {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    backdrop-filter: blur(8px);
}

#joystick-handle {
    width: 50px;
    height: 50px;
    background: rgba(56, 189, 248, 0.85);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

#action-zone {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    pointer-events: auto;
}

.mobile-action-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.mobile-action-btn:active {
    background: rgba(56, 189, 248, 0.3);
    border-color: #38bdf8;
    transform: scale(0.95);
}

.mobile-action-btn span {
    font-size: 1.3rem;
}

.mobile-action-btn label {
    font-size: 0.65rem;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* =========================================================
   Responsive Adjustments
   ========================================================= */
@media (max-width: 900px) {
    #hud-top {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .brand-badge {
        padding: 6px 12px;
    }
    .brand-text h2 {
        font-size: 0.9rem;
    }
    #minimap-container {
        top: auto;
        bottom: 190px;
        right: 12px;
        width: 170px;
    }
    .minimap-canvas-wrapper {
        height: 110px;
    }
    #checklist-panel {
        top: 115px;
        left: 12px;
        width: 230px;
    }
    .control-guides {
        grid-template-columns: 1fr;
    }
    .preview-strip {
        grid-template-columns: 1fr;
    }
    .preview-thumb {
        height: 120px;
    }
    .collected-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   Bottom Quick Controls Bar
   ========================================================= */
#controls-bar {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 6px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.76rem;
    color: #cbd5e1;
    z-index: 15;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

#controls-bar strong {
    color: #38bdf8;
    font-weight: 600;
}

#controls-bar .sep {
    color: rgba(255, 255, 255, 0.2);
}

#game-container {
    cursor: grab;
}

#game-container:active {
    cursor: grabbing;
}

@media (max-width: 900px) {
    #controls-bar {
        display: none;
    }
}

