/* ============================================================================
   PeePal - Complete Stylesheet (v2.0)
   ============================================================================ */

   :root {
    --primary: #ff4fde;
    --primary-dark: #c700a9;
    --success: #00c4ff;
    --warning: #ffb401;
    --danger: #ff4444;
    --dark: #2c2137;
    --light: #fdedff;
    --bg: #693c8a;
    --text: #2c2137;
    --border-color: #2c2137;
    --shadow-color: rgba(44, 33, 55, 0.4);
    --font-pixel: 'Press Start 2P', cursive;
  }
  
  * { margin: 0; padding: 0; box-sizing: border-box; }
  
  body {
    font-family: var(--font-pixel); 
    background-color: #693c8a; 
    background: var(--bg);
    color: var(--text);
    padding-bottom: 70px;
    padding-top: 60px;
    line-height: 1.4;
    image-rendering: pixelated;
    max-width: 100vw;
    overflow-x: hidden;
    font-size: 10px;
  }
  
  /* --- PRELOADER --- */
  #preloader { 
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; 
    background: var(--bg); z-index: 9999; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
  }
  #preloader img { width: 80px; height: 80px; margin-bottom: 1rem; animation: pulse 1s infinite; }
  #preloader .loader-text { color: white; text-shadow: 2px 2px 0 var(--dark); font-size: 1rem; }
  
  /* --- HEADER --- */
  .header { 
    position: fixed; top: 0; left: 0; right: 0; height: 60px; 
    background-color: #693c8a; color: white; 
    border-bottom: 4px solid var(--border-color); 
    z-index: 500; 
    display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 4px 0 var(--shadow-color); overflow: hidden; 
  }
  .sky-container { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; }
  .logo-text { font-size: 1.2rem; text-shadow: 2px 2px 0 var(--dark); position: relative; z-index: 10; }
  .cloud { 
    position: absolute; width: 4px; height: 4px; background: white; opacity: 0.6; 
    box-shadow: 4px 0, 8px 0, 12px 0, -4px 4px, 0 4px, 4px 4px, 8px 4px, 12px 4px, 16px 4px; 
    animation: floatCloud linear infinite; 
  }
  .c1 { top: 15px; left: -50px; animation-duration: 20s; transform: scale(2); }
  .c2 { top: 35px; left: -80px; animation-duration: 12s; animation-delay: 5s; transform: scale(1.5); }
  .c3 { top: 10px; left: -40px; animation-duration: 25s; animation-delay: 2s; }
  @keyframes floatCloud { from { left: -60px; } to { left: 110%; } }
  
  /* --- LAYOUT --- */
  #main { width: 100%; height: 100%; }
  .section { 
    display: none; background-color: #fdedff; background: var(--light); 
    padding: 1rem; min-height: calc(100vh - 130px); 
  }
  .section.active { display: block; animation: fadeIn 0.2s ease-out; }
  .section-title { 
    font-size: 1rem; margin-bottom: 1rem; text-align: center; 
    color: var(--primary-dark); text-transform: uppercase; 
    border-bottom: 2px solid var(--border-color); padding-bottom: 5px; 
    display: block; width: 100%; 
  }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
  
  /* --- EXPLORE --- */
  .section.full-screen-section { padding: 0; background: #eee; height: calc(100vh - 130px); position: relative; }
  #explore-map-container { width: 100%; height: 100%; }
  
  /* --- FABs (Buttons) --- */
  /* Add Button (Bottom Right) */
  .fab-btn { 
    position: absolute; 
    bottom: 85px; /* Aligned with SOS */
    right: 20px; 
    left: auto;
    transform: none;
    width: 64px; height: 64px; border-radius: 50%; 
    background: var(--primary); 
    border: 4px solid var(--dark); 
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5); 
    font-size: 32px; color: white; 
    z-index: 100; 
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer; transition: all 0.1s; 
  }
  .fab-btn:active { transform: translate(4px, 4px); box-shadow: none; background: var(--warning); }
  
  /* SOS Button (Bottom Left) */
  .fab-emergency { 
    position: absolute; 
    bottom: 85px; 
    left: 20px; 
    width: 50px; height: 50px; border-radius: 50%; 
    background: var(--danger); 
    border: 4px solid var(--border-color); 
    box-shadow: 4px 4px 0 var(--dark); 
    font-size: 24px; color: white; 
    z-index: 100; 
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer; animation: pulse-red 2s infinite; 
  }
  @keyframes pulse-red { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
  
  /* --- FEED / COMMUNITY --- */
  .community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; list-style: none; padding-bottom: 1rem; }
  .community-card { background: white; border: 4px solid var(--border-color); box-shadow: 4px 4px 0 var(--shadow-color); position: relative; cursor: pointer; }
  .card-type-badge { position: absolute; top: 10px; right: 10px; background: var(--primary); color: white; padding: 4px 8px; font-size: 0.5rem; border: 2px solid var(--border-color); }
  .card-image-placeholder { height: 100px; background: #eee; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; border-bottom: 4px solid var(--border-color); }
  .card-content { padding: 0.8rem; }
  .card-title { font-size: 0.8rem; font-weight: bold; margin-bottom: 0.5rem; color: var(--dark); }
  
/* ============================================================================
   Animated Arcade Buttons (Game Selector)
   - Replaces standard buttons with clickable "video cards"
   - Uses GIFs as backgrounds with a dark overlay and play button
   ============================================================================ */

/* Container for the game list */
.game-selector-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;       /* Spacing between the game cards */
    width: 100%;
    max-width: 340px; /* Constrains width on larger screens */
    margin-top: 10px;
}

/* The Clickable Card (Button) */
.arcade-game-card {
    position: relative;
    width: 100%;
    height: 140px;   /* Fixed height is CRITICAL to prevent giant images */
    border: 4px solid var(--dark);
    border-radius: 12px;
    padding: 0;      /* Removes default button padding so image fits edge-to-edge */
    overflow: hidden; /* Crops any part of the image that spills out */
    cursor: pointer;
    background: #000;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.3);
    transition: transform 0.1s, box-shadow 0.1s;
}

/* "Pressed" state animation */
.arcade-game-card:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

/* The GIF Background Image */
.game-bg-gif {
    width: 100% !important;  /* Force width to fill container */
    height: 100% !important; /* Force height to fill container */
    object-fit: cover;       /* Ensures image covers area without stretching/distortion */
    display: block;          /* Removes default inline spacing issues */
    margin: 0;
    image-rendering: pixelated; /* Keeps pixel art sharp */
    opacity: 0.8;            /* Slight dim so text is readable */
    transition: opacity 0.2s;
}

/* Brighten image when hovering */
.arcade-game-card:hover .game-bg-gif {
    opacity: 1;
}

/* The Dark Overlay (Holds Text & Play Button) */
.game-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0; /* Fills the whole card */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent dark tint */
    z-index: 2;
}

/* The Round "Play" Button Icon */
.play-btn-circle {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: 3px solid white;
    border-radius: 50%; /* Makes it a perfect circle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    text-shadow: none;
    animation: pulse-play 2s infinite; /* Pulsing effect */
}

/* Game Title Text */
.game-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 #000, -1px -1px 0 #000; /* Strong outline for readability */
    letter-spacing: 1px;
}

/* Pulsing Animation Keyframes */
@keyframes pulse-play {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

  /* --- GAME (Mobile Container) --- */
  #game {
    /* Removed display: flex from here so it can be hidden by default */
    background-color: #2c2137;
    height: calc(100vh - 130px); /* Full available height */
    padding: 10px;
    box-sizing: border-box;
  }
  
  /* NEW: Only apply flex layout when the section is ACTIVE */
  #game.active {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .arcade-menu, #game-container {
    width: 100%;
    max-width: 400px;  /* Mobile Width */
    height: 100%;
    max-height: 700px; /* Mobile Height */
    background: #fdedff;
    position: relative;
    overflow: hidden;
    border: 4px solid var(--dark);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 8px;
    display: flex; flex-direction: column;
  }
  
  .arcade-menu { align-items: center; justify-content: center; text-align: center; padding-top: 2rem; }
  .arcade-header-img img { width: 80px; margin-bottom: 1rem; animation: bounce 2s infinite; }
  @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  .arcade-title { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 0.5rem; text-transform: uppercase; }
  .arcade-stats { font-size: 0.8rem; color: #666; margin-bottom: 2rem; }
  .huge-btn { font-size: 1.2rem !important; padding: 1.2rem 2rem !important; width: 100%; max-width: 300px; background: var(--success); margin-bottom: 1rem; }
  .pulse { animation: pulse 1s infinite; }
  @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
  
  #game-container:not(.hidden) { display: block; }
  #gameCanvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
  #game-ui { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
  #game-ui button { pointer-events: auto; }
  #game-score { font-size: 3rem; color: white; text-shadow: 4px 4px 0 #000; align-self: center; margin-top: 10%; font-family: 'Press Start 2P', cursive; position: absolute; top: 20px; width: 100%; text-align: center; pointer-events: none; z-index: 10; }
  #game-message-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: auto; width: 100%; }
  #game-message { font-size: 2rem; color: var(--warning); text-shadow: 3px 3px 0 #000; margin-bottom: 20px; display: block; }
  #game-restart { font-size: 1.2rem; padding: 15px 30px; animation: pulse 1s infinite; display: block; margin: 0 auto; }
  .hidden { display: none !important; }
  
  /* --- LEADERBOARD --- */
  .podium-container { display: flex; justify-content: center; align-items: flex-end; height: 180px; margin-bottom: 2rem; gap: 10px; }
  .podium-spot { display: flex; flex-direction: column; align-items: center; width: 30%; position: relative; }
  .podium-avatar { font-size: 2rem; margin-bottom: 5px; animation: bounce 2s infinite ease-in-out; }
  .podium-bar { width: 100%; border: 4px solid var(--dark); border-bottom: none; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 10px; color: var(--dark); font-weight: bold; box-shadow: 4px 4px 0 rgba(0,0,0,0.2); }
  .rank-1 .podium-bar { height: 120px; background: var(--warning); z-index: 2; }
  .rank-2 .podium-bar { height: 85px; background: #c0c0c0; z-index: 1; }
  .rank-3 .podium-bar { height: 60px; background: #cd7f32; z-index: 1; }
  .podium-name { font-size: 0.5rem; margin-top: 5px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; padding: 0 2px; }
  .leader-panel { background: white; border: 4px solid var(--border-color); margin-bottom: 1.5rem; padding: 1rem; box-shadow: 4px 4px 0 var(--shadow-color); }
  .leader-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 2px dashed #eee; font-size: 0.7rem; }
  .awards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .award-card { background: var(--light); border: 2px solid var(--border-color); padding: 10px; text-align: center; }
  
  /* --- PROFILE --- */
  .rpg-card { background: white; border: 4px solid var(--border-color); padding: 1rem; box-shadow: 6px 6px 0 var(--shadow-color); margin-bottom: 1.5rem; position: relative; }
  .settings-btn { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 0; box-shadow: none; opacity: 0.5; }
  .rpg-header { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: center; flex-wrap: wrap; }
  
  /* Clickable Avatar */
  .rpg-avatar-frame { position: relative; cursor: pointer; transition: transform 0.1s; width: 60px; height: 60px; background: var(--bg); border: 4px solid var(--border-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .rpg-avatar-frame:active { transform: scale(0.95); }
  .rpg-avatar-frame img { width: 80%; height: 80%; object-fit: contain; }
  .edit-overlay { position: absolute; bottom: -5px; right: -5px; background: white; border: 2px solid var(--dark); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 10px; box-shadow: 2px 2px 0 rgba(0,0,0,0.2); }
  
  .rpg-info { flex: 1; min-width: 0; }
  .rpg-name-input { font-size: 1rem; color: var(--dark); border: none; border-bottom: 2px dashed var(--border-color); background: transparent; padding: 0 0 2px 0; margin-bottom: 5px; width: 100%; font-family: var(--font-pixel); }
  .rpg-stats { display: flex; gap: 10px; font-size: 0.7rem; color: #666; }
  .xp-bar-wrapper { height: 12px; border: 2px solid var(--border-color); background: #eee; margin-bottom: 10px; position: relative; }
  .xp-bar-fill { height: 100%; background: var(--success); width: 0%; transition: width 0.5s ease; }
  .rpg-wallet { font-size: 0.8rem; margin-bottom: 10px; font-weight: bold; color: var(--warning); text-shadow: 1px 1px 0 var(--dark); }
  .rpg-badges { display: flex; gap: 5px; flex-wrap: wrap; min-height: 20px; }
  .badge-chip { background: var(--dark); color: white; padding: 4px 6px; font-size: 0.5rem; border: 1px solid var(--primary); }
  
  /* Dashboard */
  .stats-row { display: flex; gap: 10px; margin-bottom: 15px; }
  .stat-box { flex: 1; background: white; border: 3px solid var(--border-color); padding: 10px 5px; display: flex; flex-direction: column; align-items: center; box-shadow: 3px 3px 0 var(--shadow-color); }
  .stat-icon { font-size: 1.2rem; margin-bottom: 5px; }
  .stat-val { font-size: 1rem; font-weight: bold; color: var(--primary-dark); }
  .stat-label { font-size: 0.5rem; color: #666; margin-top: 4px; text-transform: uppercase; }
  .activity-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .activity-item { background: white; border: 2px solid #ccc; padding: 10px; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; }
  .activity-item .score.positive { color: #109d59; font-weight: bold; }
  .activity-item .score.negative { color: #d93025; font-weight: bold; }
  .activity-meta { color: #999; font-size: 0.5rem; margin-top: 4px; }
  
  /* --- MODALS --- */
  .modal, .add-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); z-index: 2000; display: none; align-items: center; justify-content: center; }
  .modal.open, .add-overlay.open { display: flex; }
  
  /* ADD MODAL & FORMS */
  .add-overlay-content { background: #fff; padding: 1.5rem; border: 4px solid var(--dark); box-shadow: 8px 8px 0 rgba(0,0,0,0.5); width: 90%; max-width: 400px; border-radius: 4px; max-height: 85vh; overflow-y: auto; }
  .add-overlay-content h3 { text-align: center; color: var(--primary-dark); text-transform: uppercase; border-bottom: 4px solid var(--dark); padding-bottom: 10px; margin-bottom: 15px; font-size: 1.1rem; }
  .form-progress { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
  .step-dot { width: 10px; height: 10px; background: #eee; border: 2px solid var(--dark); border-radius: 50%; transition: all 0.3s; }
  .step-dot.active { background: var(--primary); transform: scale(1.3); box-shadow: 0 0 5px var(--primary); }
  .step-dot.completed { background: var(--success); border-color: var(--success); }
  .form-slide { display: none; animation: slideIn 0.3s ease-out; }
  .form-slide.active { display: block; }
  @keyframes slideIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
  .slide-title { font-size: 0.8rem; color: #666; text-align: center; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
  .nav-actions { display: flex; gap: 10px; margin-top: 20px; }
  .nav-actions button { flex: 1; padding: 12px; }
  
  /* INPUTS & TOGGLES */
  .form-group label { display: block; font-size: 0.7rem; margin-bottom: 5px; font-weight: bold; color: var(--dark); }
  .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 3px solid var(--dark); background: #f9f9f9; font-family: 'Press Start 2P', cursive; font-size: 0.65rem; outline: none; box-shadow: inset 3px 3px 0 rgba(0,0,0,0.1); margin-top: 0; }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus { background: #fff; border-color: var(--primary); }
  .form-row { display: flex; gap: 10px; margin-bottom: 15px; }
  .form-group.half { flex: 1; }
  
  /* Feature Toggles */
  .feature-toggles, .issue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 15px; }
  .toggle-btn, .issue-chip { 
    display: flex; align-items: center; justify-content: center; padding: 8px 4px;
    background: #eee; border: 2px solid #ccc; font-size: 0.55rem; cursor: pointer;
    text-align: center; border-radius: 4px; color: #666; font-family: var(--font-pixel); 
    min-height: 36px; transition: all 0.1s;
  }
  .toggle-btn:active, .issue-chip:active { transform: translateY(2px); }
  .toggle-btn input { position: absolute; opacity: 0; height: 0; width: 0; }
  .toggle-btn:has(input:checked) { background: var(--success); color: white; border-color: var(--dark); box-shadow: inset 2px 2px 0 rgba(0,0,0,0.2); }
  .issue-chip.selected { background: #ffebeb; border-color: var(--danger); color: var(--danger); font-weight: bold; box-shadow: inset 2px 2px 0 rgba(0,0,0,0.1); }
  
  /* REVIEW MODAL */
  .modal-content { background: white; padding: 20px; border: 4px solid var(--dark); width: 90%; max-width: 450px; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; box-shadow: 8px 8px 0 rgba(0,0,0,0.4); }
  .modal-content h3 { text-align: center; color: var(--primary-dark); border-bottom: 2px dashed #eee; padding-bottom: 10px; font-size: 1.2rem; }
  .rating-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
  .star-rating span { font-size: 1.2rem; cursor: pointer; color: #ddd; transition: transform 0.1s; }
  .star-rating span:hover, .star-rating span.active { transform: scale(1.2); }
  .vote-btn { background: #f0f0f0; border: 2px solid #ccc; border-radius: 4px; padding: 2px 6px; font-size: 0.8rem; cursor: pointer; transition: transform 0.1s; }
  .vote-btn:active { transform: scale(0.9); background: #e0e0e0; }
  .vote-btn.up:hover { border-color: green; background: #e6fffa; }
  .vote-btn.down:hover { border-color: red; background: #ffe6e6; }
  
  /* Centered Actions */
  .form-actions { display: flex; gap: 15px; justify-content: center; width: 100%; margin-top: 15px; }
  .form-actions .action { flex: 1; max-width: 140px; text-align: center; padding: 10px 0; }
  
  /* --- MASCOT SELECTOR --- */
  .inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; padding: 5px; }
  .inventory-slot { background: white; border: 3px solid var(--border-color); padding: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-height: 140px; transition: transform 0.1s; }
  .inventory-slot:active { transform: scale(0.95); }
  .inventory-slot img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 8px; image-rendering: pixelated; }
  .item-name { font-size: 0.65rem; margin-bottom: 8px; font-weight: bold; color: var(--dark); height: auto; white-space: nowrap; }
  .item-btn { width: 100%; font-size: 0.7rem; padding: 8px 0; min-height: 30px; border-width: 3px; margin-top: auto; }
  
  /* --- NAV & MISC --- */
  .action { background: var(--primary); color: white; border: 4px solid var(--border-color); padding: 0.8rem; font-family: var(--font-pixel); cursor: pointer; box-shadow: 4px 4px 0 var(--shadow-color); font-size: 0.7rem; text-transform: uppercase; }
  .action:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow-color); }
  .action.ghost { background: transparent; color: var(--primary); box-shadow: none; border: 2px solid var(--primary); }
  
  .nav { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 4px solid var(--border-color); display: flex; height: 70px; z-index: 1000; padding-bottom: env(safe-area-inset-bottom); }
  .nav button { background: none; border: none; flex: 1; opacity: 0.5; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .nav button.active { opacity: 1; border-top: 4px solid var(--primary); background: var(--light); }
  .nav .icon { font-size: 1.5rem; margin-bottom: 4px; }
  
  .map-controls-top { position: absolute; top: 10px; left: 0; width: 100%; z-index: 50; padding: 0 10px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .filter-chip { background: white; border: 3px solid var(--dark); border-radius: 20px; padding: 6px 12px; font-size: 0.6rem; white-space: nowrap; box-shadow: 2px 2px 0 rgba(0,0,0,0.3); font-family: var(--font-pixel); cursor: pointer; transition: all 0.2s; opacity: 0.9; }
  .filter-chip.active { background: var(--primary); color: white; transform: translate(0, 2px); box-shadow: none; }
  
  .legal-text { font-size: 0.6rem; line-height: 1.6; text-align: left; }
  .legal-text h4 { margin-top: 1rem; color: var(--primary-dark); }
  .consent-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); color: white; padding: 1rem; z-index: 10000; border-top: 4px solid var(--primary); display: none; flex-direction: column; gap: 10px; text-align: center; }
  .consent-banner.visible { display: flex; }
  
  /* --- SOCIAL FEED STYLES --- */
  .activity-card { padding: 16px; background: white; }
  .feed-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 2px dashed #eee; }
  .feed-avatar { width: 42px; height: 42px; background: #fdedff; border: 2px solid var(--primary); border-radius: 50%; object-fit: contain; flex-shrink: 0; }
  .feed-avatar-placeholder { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: var(--warning); border: 2px solid var(--dark); border-radius: 50%; font-size: 1.2rem; flex-shrink: 0; }
  .feed-user-info { flex: 1; display: flex; flex-direction: column; justify-content: center; line-height: 1.4; }
  .feed-user { font-weight: bold; font-size: 0.75rem; color: var(--primary-dark); }
  .feed-action { font-size: 0.65rem; color: #666; }
  .feed-target { font-weight: bold; font-size: 0.65rem; }
  .feed-time { font-size: 0.55rem; color: #999; align-self: flex-start; }
  .feed-content { padding: 5px 0 15px 0; font-size: 0.75rem; line-height: 1.4; }
  .feed-stars { color: var(--warning); margin-bottom: 6px; letter-spacing: -1px; font-size: 0.8rem; }
  .feed-comment { font-style: italic; color: #444; background: #f9f9f9; padding: 8px; border-radius: 4px; border-left: 3px solid #ddd; }
  .feed-footer { display: flex; gap: 10px; margin-top: 5px; }
  .feed-btn { background: white; border: 2px solid #ccc; padding: 6px 10px; font-family: inherit; font-size: 0.65rem; cursor: pointer; border-radius: 4px; box-shadow: 2px 2px 0 #ddd; transition: all 0.1s; font-weight: bold; color: #555; }
  .feed-btn:active { transform: translate(2px, 2px); box-shadow: none; }
  .feed-btn:hover { border-color: var(--primary); color: var(--primary); background: #fff5fd; }
  .nav-hint-btn { display: inline-block; font-size: 0.6rem; background: #4285F4; color: white; padding: 6px 10px; margin-top: 8px; border: 2px solid #2c2137; text-align: center; cursor: pointer; box-shadow: 2px 2px 0 rgba(0,0,0,0.2); }
  
  /* --- GAME HUD --- */
  .hud-bar-container { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 0.6rem; color: white; text-shadow: 1px 1px 0 #000; font-weight: bold; background: rgba(0,0,0,0.3); padding: 4px 8px; border-radius: 10px; }
  .bar-bg { width: 100px; height: 10px; background: #333; border: 2px solid white; border-radius: 5px; overflow: hidden; }
  .bar-fill { height: 100%; transition: width 0.1s linear; }
  #gameCanvas { touch-action: none; cursor: crosshair; }