/* ========================================
   GIROSHIMA - Dark Theme Game Site
   ======================================== */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #1f1f35;
    --accent: #e94560;
    --accent-glow: rgba(233, 69, 96, 0.4);
    --accent-secondary: #0f3460;
    --text-primary: #eaeaea;
    --text-secondary: #8a8a9a;
    --text-muted: #5a5a6a;
    --border: #2a2a3a;
    --gradient-1: linear-gradient(135deg, #e94560, #0f3460);
    --gradient-2: linear-gradient(135deg, #0f3460, #e94560);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.logo:hover {
    color: var(--accent);
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 10px var(--accent-glow); }
    50% { text-shadow: 0 0 25px var(--accent-glow), 0 0 50px var(--accent-glow); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(233, 69, 96, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}

.title-line {
    display: inline-block;
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line.accent {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
    margin-bottom: 40px;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-cta {
    opacity: 0;
    animation: fadeIn 1s ease 0.9s forwards;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: breathe 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.1);
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.title-decoration {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 60px;
}

/* ========================================
   Games Grid
   ======================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
}

.game-card {
    display: block;
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: cardReveal 0.6s ease forwards;
    aspect-ratio: 2 / 3;
    cursor: pointer;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(233, 69, 96, 0.4);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.2), 0 0 60px rgba(233, 69, 96, 0.08);
}

.game-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.08);
}

.game-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    font-size: 4rem;
}

.game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    z-index: 3;
}

.game-card:hover .game-card-overlay {
    padding-bottom: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
}

.game-card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.game-card-btn {
    display: inline-block;
    padding: 8px 24px;
    background: var(--gradient-1);
    color: white;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(8px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.game-card:hover .game-card-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Video – cinematic reveal */
.game-card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    background: #000;
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
}

.game-card-video.active {
    opacity: 1;
    clip-path: circle(150% at 50% 50%);
}

/* Glow ring while video loads */
.game-card-video.active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    background: conic-gradient(from 0deg, transparent, var(--accent), transparent);
    animation: videoGlowSpin 1.5s linear infinite;
    opacity: 0.4;
    z-index: -1;
}

@keyframes videoGlowSpin {
    to { transform: rotate(360deg); }
}

.game-card-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   Videos Grid
   ======================================== */
.videos-section {
    background: var(--bg-secondary);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: cardReveal 0.6s ease forwards;
}

.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: var(--shadow-glow);
}

.video-card .video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.video-card .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card-body {
    padding: 16px 20px;
}

.video-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    display: none;
}

.empty-state.visible {
    display: block;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.social-link:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   Scroll Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Legal Pages (Terms & Privacy)
   ======================================== */
.legal-page {
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    z-index: 1;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-content .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-content a {
    color: var(--accent);
    transition: var(--transition);
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ========================================
   Editor / Admin Page
   ======================================== */
.editor-page {
    min-height: 100vh;
    padding: 100px 0 80px;
    position: relative;
    z-index: 1;
}

.editor-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.editor-header {
    text-align: center;
    margin-bottom: 48px;
}

.editor-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 8px;
}

.editor-header p {
    color: var(--text-secondary);
}

/* Login Form */
.login-section {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.login-section h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    background: var(--gradient-1);
    color: white;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.form-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Editor Panel */
.editor-panel {
    display: none;
}

.editor-panel.active {
    display: block;
}

.editor-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.editor-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.editor-tab.active {
    background: var(--accent);
    color: white;
}

.editor-tab:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(233, 69, 96, 0.1);
}

.tab-content {
    display: none;
}

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

.add-form {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.add-form h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--accent);
}

/* Items List in Editor */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.item-row:hover {
    border-color: rgba(233, 69, 96, 0.3);
}

.item-row.editing {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.08);
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.15);
}

.item-row-thumb {
    width: 80px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

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

.item-row-title {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-row-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.item-row-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(233, 69, 96, 0.1);
}

.btn-icon.delete:hover {
    border-color: #ff4444;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

/* Image Upload Area */
.image-upload-area {
    width: 100%;
    min-height: 150px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
    background: var(--bg-secondary);
}

.image-upload-area:hover {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.05);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.image-preview {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.5rem, 15vw, 5rem);
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .editor-tabs {
        flex-direction: column;
    }

    .item-row {
        flex-direction: column;
        text-align: center;
    }

    .item-row-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .add-form {
        padding: 20px;
    }

    .login-section {
        padding: 24px;
        margin: 0 16px;
    }
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: var(--accent);
    color: white;
}

/* ========================================
   Astronaut Buddy
   ======================================== */
#astro-buddy {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}

#astro-buddy .astro-svg {
    display: block;
    filter: drop-shadow(0 4px 12px rgba(233, 69, 96, 0.25));
}

/* Antenna pulse */
#astro-buddy .astro-antenna {
    animation: antennaPulse 1.5s ease-in-out infinite;
}

@keyframes antennaPulse {
    0%, 100% { r: 4; opacity: 1; }
    50% { r: 5.5; opacity: 0.7; }
}

/* Celebrate bounce */
#astro-buddy.celebrating .astro-svg {
    animation: celebrateBounce 0.3s ease-in-out infinite alternate;
}

@keyframes celebrateBounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-8px) scale(1.08); }
}

/* Emote bubble */
#astro-buddy .astro-emote {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: var(--accent);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
    pointer-events: none;
}

#astro-buddy .astro-emote.show {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* ========================================
   Space Cats
   ======================================== */
.space-cat {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9998;
    pointer-events: none;
    will-change: transform;
}

.space-cat .cat-svg {
    display: block;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
}

/* Tail wag */
.space-cat .cat-tail {
    animation: tailWag var(--wag-speed, 0.5s) ease-in-out infinite alternate;
    transform-origin: 20px 55px;
}

@keyframes tailWag {
    0% { transform: rotate(-15deg); }
    100% { transform: rotate(15deg); }
}

/* Angry shake */
.space-cat.cat-angry .cat-svg {
    animation: catShake 0.1s ease-in-out infinite alternate;
}

@keyframes catShake {
    0% { transform: translateX(-2px) rotate(-2deg); }
    100% { transform: translateX(2px) rotate(2deg); }
}

/* Cat emote bubble */
.space-cat .cat-emote {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: #ff6b6b;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s;
    pointer-events: none;
}

.space-cat .cat-emote.show {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

@media (max-width: 480px) {
    #astro-buddy,
    .space-cat {
        display: none;
    }
}

/* ========================================
   Aurora Background Canvas
   ======================================== */
#aurora-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
}

/* ========================================
   Parallax Depth
   ======================================== */
.parallax-hero-wrap {
    position: relative;
    z-index: 2;
    will-change: transform;
}

/* ========================================
   Cursor Skin Picker
   ======================================== */
#cursor-picker {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 10001;
}

.cursor-picker-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-picker-toggle:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.1);
}

.cursor-picker-menu {
    position: absolute;
    bottom: 58px;
    left: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cursor-picker-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.cursor-picker-title {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 10px;
}

.cursor-skin-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.cursor-skin-option:hover {
    background: rgba(233, 69, 96, 0.1);
}

.cursor-skin-option.active {
    background: rgba(233, 69, 96, 0.15);
    color: var(--accent);
}

.cursor-skin-option .skin-emoji {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}

/* ========================================
   Pixel Hunt
   ======================================== */
.pixel-hunt-item {
    position: absolute;
    z-index: 100;
    width: 24px;
    height: 24px;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.15;
    filter: grayscale(1) brightness(0.5);
    transition: opacity 0.3s, transform 0.3s, filter 0.3s;
    padding: 0;
}

.pixel-hunt-item:hover {
    opacity: 0.6;
    filter: grayscale(0.3) brightness(0.8);
    transform: scale(1.3);
}

.pixel-hunt-item.collected {
    opacity: 0.9;
    filter: none;
    pointer-events: none;
}

.pixel-hunt-item.just-collected {
    animation: huntPop 0.5s ease forwards;
}

@keyframes huntPop {
    0% { transform: scale(1); }
    40% { transform: scale(2.2); }
    70% { transform: scale(0.8); }
    100% { transform: scale(1); opacity: 0.9; }
}

/* Hunt particle burst */
.hunt-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color);
    z-index: 10002;
    pointer-events: none;
    animation: huntBurst 0.6s ease-out forwards;
}

@keyframes huntBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 40px), var(--ty, -40px)) scale(0);
        opacity: 0;
    }
}

/* HUD counter */
#pixel-hunt-hud {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 10001;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 16px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

#pixel-hunt-hud .hunt-icon {
    font-size: 1rem;
}

#pixel-hunt-hud.complete {
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Victory overlay */
.pixel-hunt-victory {
    position: fixed;
    inset: 0;
    z-index: 10003;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pixel-hunt-victory.show {
    opacity: 1;
}

.victory-content {
    text-align: center;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid #ffd700;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pixel-hunt-victory.show .victory-content {
    transform: scale(1);
}

.victory-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: celebrateBounce 0.4s ease-in-out infinite alternate;
}

.victory-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 8px;
}

.victory-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.victory-close {
    min-width: 120px;
}

/* Mobile: hide pixel hunt items & cursor picker */
@media (max-width: 480px) {
    #cursor-picker { display: none; }
    .pixel-hunt-item { display: none; }
    #pixel-hunt-hud { display: none; }
}
