/* ==========================================
   DESIGN SYSTEM — Portfolio OS (macOS Finder)
   Pixel-Perfect Professional Finish
   ========================================== */

:root {
    --mac-bg: rgba(245, 245, 247, 0.85);
    --mac-sidebar-bg: rgba(230, 230, 235, 0.7);
    --mac-border: rgba(0, 0, 0, 0.1);
    --mac-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    --mac-text: #333;
    --mac-accent: #007AFF;
    --mac-selected: rgba(0, 122, 255, 0.15);

    --dark-mac-bg: rgba(30, 30, 32, 0.88);
    --dark-mac-sidebar: rgba(38, 38, 40, 0.75);
    --dark-mac-text: #f5f5f7;
    --dark-mac-border: rgba(255, 255, 255, 0.08);
    --dark-mac-border-strong: rgba(255, 255, 255, 0.14);

    --font-heading: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    margin: 0;
    overflow: hidden;
    font-family: var(--font-body);
    color: var(--dark-mac-text);
    background: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Icons */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 300,
        'GRAD' 0,
        'opsz' 24
}

/* ==========================================
   LOADING SCREEN
   ========================================== */

#loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 0.8s linear infinite;
    margin-bottom: 20px;
}

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

/* ==========================================
   UI LAYER — Interaction Blocker
   ========================================== */

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
}

#ui-layer.active {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.35);
}

/* ==========================================
   macOS WINDOW — Premium Vibrancy
   ========================================== */

.mac-window {
    width: 820px;
    height: 520px;
    background: var(--dark-mac-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--dark-mac-border-strong);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(12px);
    opacity: 0;

    /* Multi-layer shadow: ambient + directional + contact */
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.12),
        0 24px 48px rgba(0, 0, 0, 0.24),
        0 48px 80px rgba(0, 0, 0, 0.16);

    transition: transform 0.5s var(--ease-out-expo),
                opacity 0.35s ease,
                width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo),
                border-radius 0.3s ease;
    transform-origin: center center;
    position: absolute;
    pointer-events: none;
}

/* Inner top-edge highlight (vibrancy shine) */
.mac-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 5%, 
        rgba(255, 255, 255, 0.12) 30%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.12) 70%, 
        transparent 95%);
    z-index: 10;
    border-radius: 12px 12px 0 0;
}

.mac-window.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    transition: transform 0.6s var(--spring),
                opacity 0.35s ease;
    pointer-events: auto;
}

.mac-window.maximized {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
}

/* ==========================================
   TITLE BAR — Real macOS Feel
   ========================================== */

.title-bar {
    height: 38px;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    user-select: none;
    cursor: grab;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--dark-mac-border);
}

.title-bar:active {
    cursor: grabbing;
}

/* ---- Traffic Lights ---- */
.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
    position: relative;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    transition: opacity 0.15s ease;
    cursor: pointer;

    /* Icon hidden by default */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon glyphs — only visible on window-controls hover */
.control-btn::after {
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.15s ease;
    color: rgba(0, 0, 0, 0.55);
}

.window-controls:hover .control-btn::after {
    opacity: 1;
}

.close-btn {
    background: #FF5F56;
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.close-btn::after {
    content: '×';
    font-size: 10px;
    margin-top: -0.5px;
}

.minimize-btn {
    background: #FFBD2E;
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.minimize-btn::after {
    content: '−';
    font-size: 11px;
    margin-top: -1px;
}

.maximize-btn {
    background: #27C93F;
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.maximize-btn::after {
    content: '↗';
    font-size: 7px;
}

.control-btn:hover {
    opacity: 0.85;
}

/* ---- Navigation Controls ---- */
.navigation-controls {
    display: flex;
    gap: 12px;
    color: var(--dark-mac-text);
}

.nav-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.2s, transform 0.15s ease;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    padding: 2px;
}

.nav-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}
.nav-btn:active {
    transform: scale(0.95);
}

/* Language Toggle */
.lang-toggle {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
    min-width: 26px;
    justify-content: center;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
}

.lang-toggle:active {
    transform: scale(0.93);
}

/* ---- Window Title ---- */
.window-title {
    flex-grow: 1;
    text-align: center;
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--dark-mac-text);
    opacity: 0.55;
    letter-spacing: 0.01em;
}

/* ==========================================
   WINDOW BODY
   ========================================== */

.window-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ==========================================
   SIDEBAR — Organized with Section Headers
   ========================================== */

.sidebar {
    width: 190px;
    min-width: 190px;
    background: var(--dark-mac-sidebar);
    padding: 12px 8px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-right: 1px solid var(--dark-mac-border);
    overflow-y: auto;
}

/* Section header text */
.sidebar-header {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.3);
    padding: 14px 12px 5px;
    user-select: none;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    font-weight: 400;
    transition: all 0.18s ease;
    position: relative;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(1px);
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-item .material-symbols-outlined {
    font-size: 17px;
    opacity: 0.7;
}

.sidebar-item.active .material-symbols-outlined {
    opacity: 1;
    color: var(--mac-accent);
}

/* ==========================================
   FINDER CONTENT — File Grid
   ========================================== */

.finder-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    position: relative;
}

/* Top/bottom fade gradients for scroll indication */
.finder-content::before,
.finder-content::after {
    content: '';
    position: sticky;
    left: 0;
    right: 0;
    height: 20px;
    pointer-events: none;
    z-index: 2;
    flex-shrink: 0;
    width: 100%;
}
.finder-content::before {
    top: 0;
    background: linear-gradient(to bottom, var(--dark-mac-bg), transparent);
}
.finder-content::after {
    bottom: 0;
    background: linear-gradient(to top, var(--dark-mac-bg), transparent);
}

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

.file-item {
    width: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 10px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    animation: itemAppear 0.35s var(--ease-out-expo) backwards;
    border: 1px solid transparent;
    position: relative;
}

/* Staggered delay for items */
.file-item:nth-child(1) { animation-delay: 0.03s; }
.file-item:nth-child(2) { animation-delay: 0.06s; }
.file-item:nth-child(3) { animation-delay: 0.09s; }
.file-item:nth-child(4) { animation-delay: 0.12s; }
.file-item:nth-child(5) { animation-delay: 0.15s; }
.file-item:nth-child(6) { animation-delay: 0.18s; }

.file-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.file-item.selected {
    background: rgba(0, 122, 255, 0.12);
    border-color: rgba(0, 122, 255, 0.25);
}

.file-icon {
    font-size: 42px;
    transition: transform 0.2s var(--spring);
}

.file-item:hover .file-icon {
    transform: translateY(-2px);
}

.file-icon.folder {
    color: #65B2FF;
}

.file-icon.file {
    color: rgba(255, 255, 255, 0.55);
}

.file-name {
    font-size: 0.78rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    word-break: break-word;
    line-height: 1.25;
    font-weight: 400;
}

/* ==========================================
   PREVIEW PANE — Slide-in Animation
   ========================================== */

.preview-pane {
    width: 280px;
    min-width: 280px;
    background: rgba(35, 35, 38, 0.5);
    border-left: 1px solid var(--dark-mac-border);
    padding: 28px 22px;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: auto;
    animation: previewSlideIn 0.35s var(--ease-out-expo);
}

@keyframes previewSlideIn {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.preview-pane.active {
    display: flex;
}

.preview-icon {
    font-size: 56px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.4);
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 48;
}

.preview-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark-mac-text);
}

/* Metadata under preview title */
.preview-meta {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.preview-separator {
    width: 100%;
    height: 1px;
    background: var(--dark-mac-border);
    margin-bottom: 18px;
}

.preview-content {
    text-align: left;
    width: 100%;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.preview-content h3 {
    margin-top: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mac-accent);
    margin-bottom: 10px;
}

.preview-content p {
    margin-bottom: 8px;
}

.preview-content hr {
    border: none;
    border-top: 1px solid var(--dark-mac-border);
    margin: 14px 0;
}

.preview-content ul {
    padding-left: 18px;
    margin: 6px 0;
}

.preview-content li {
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.preview-content a {
    color: var(--mac-accent);
    text-decoration: none;
    transition: opacity 0.15s;
}

.preview-content a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ==========================================
   CROSSHAIR
   ========================================== */

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    transition: transform 0.2s ease, background 0.2s ease;
}

#crosshair.active-hover {
    transform: translate(-50%, -50%) scale(1.8);
    background: rgba(255, 255, 255, 0.8);
}

/* Common Utils */
.hidden {
    display: none !important;
}

/* ==========================================
   SKILLS GRID
   ========================================== */

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: rgba(0, 122, 255, 0.12);
    border-color: rgba(0, 122, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   SCROLLBAR — Ultra-thin macOS Style
   ========================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ==========================================
   DOCK — Dynamic Expandable
   ========================================== */

#dock-container {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: auto;
    display: flex;
    justify-content: flex-start;
    z-index: 1000;
    pointer-events: none;
    height: auto;
    padding: 0;
}

.dock {
    width: 48px;
    height: 48px;
    background: rgba(60, 60, 62, 0.65);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 12px 28px rgba(0, 0, 0, 0.2);

    display: flex;
    justify-content: center;
    align-items: center;

    pointer-events: auto;
    transition: all 0.45s var(--ease-out-expo);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.dock:hover {
    width: 310px;
    height: 64px;
    border-radius: 20px;
    background: rgba(44, 44, 46, 0.82);
}

/* Dock Trigger */
.dock-trigger {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: opacity 0.25s, transform 0.25s;
}

.dock-trigger .material-symbols-outlined {
    font-size: 22px;
    color: white;
    opacity: 0.7;
}

.dock:hover .dock-trigger {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

/* Dock Items */
.dock-items {
    display: flex;
    gap: 12px;
    align-items: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.35s 0.08s var(--ease-out-expo);
    pointer-events: none;
}

.dock:hover .dock-items {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.dock-item {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s var(--spring);
    position: relative;
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px) scale(1.12);
}

.dock-item:active {
    transform: translateY(-2px) scale(1.05);
}

.dock-icon {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.85);
}

/* Tooltips */
.dock-item::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s ease;
}

.dock-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dock-separator {
    display: none;
}

/* ==========================================
   NOTIFICATIONS
   ========================================== */

#notification-area {
    position: absolute;
    top: 50px;
    right: 20px;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
    pointer-events: none;
}

.toast {
    background: rgba(38, 38, 40, 0.88);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    color: white;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: slideInRight 0.5s var(--ease-out-expo);
    pointer-events: auto;
    cursor: pointer;
}

.toast.hiding {
    animation: fadeOutRight 0.4s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(110%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutRight {
    to {
        transform: translateX(110%);
        opacity: 0;
    }
}

.toast-icon {
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.toast-icon .material-symbols-outlined {
    font-size: 18px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.toast-message {
    font-size: 0.78rem;
    opacity: 0.6;
    line-height: 1.4;
}

/* ==========================================
   SETTINGS MODAL
   ========================================== */

#settings-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 320px;
    background: rgba(38, 38, 40, 0.92);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.05),
        0 20px 50px rgba(0, 0, 0, 0.4);
    color: white;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s var(--spring);
    display: flex;
    flex-direction: column;
}

#settings-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.settings-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.close-settings {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.close-settings:hover {
    opacity: 1;
}

.settings-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: 0.3s ease;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

input:checked + .slider {
    background-color: #34C759;
}

input:focus + .slider {
    box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.25);
}

input:checked + .slider:before {
    transform: translateX(18px);
}

/* ==========================================
   SNAKE GAME — Canvas Styles
   ========================================== */

.snake-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.snake-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 4px;
}

.snake-score {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.snake-score span {
    color: var(--mac-accent);
    font-size: 1.1em;
}

.snake-canvas {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.3);
}

.snake-controls-hint {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.05em;
    text-align: center;
    margin-top: 4px;
}

.snake-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
}

.snake-btn:hover {
    background: rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.3);
    color: white;
}

/* ==========================================
   CURIOSITY CARDS
   ========================================== */

.curiosity-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.curiosity-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.curiosity-card h4 {
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--dark-mac-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.curiosity-card p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================
   INFO SECTION
   ========================================== */

.info-section {
    margin-bottom: 16px;
}

.info-section h4 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.82rem;
}

.info-row .label {
    color: rgba(255, 255, 255, 0.5);
}

.info-row .value {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .mac-window {
        width: 95vw;
        height: 75vh;
    }

    .sidebar {
        width: 140px;
        min-width: 140px;
    }

    .preview-pane {
        width: 220px;
        min-width: 220px;
    }

    .dock:hover {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        display: none;
    }

    .preview-pane {
        width: 100%;
        min-width: unset;
    }

    .mac-window {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
}