/* ==========================================================================
   Pixel Chicken — Landing Page (b170)
   RPG parchment theme, self-contained styles for index2.php
   ========================================================================== */

/* ---- Reset & Base ---- */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  font-family: "Trebuchet MS","Segoe UI",Arial,sans-serif;
  background: #0a0a0f;
  color: #e8e0d4;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:#f5c842; text-decoration:none; }
a:hover{ text-decoration:underline; }

/* ---- RPG Design Tokens ---- */
:root{
  --parchment-bg: #f3d4a4 url('../assets/sprites/ui_rpg_paper.png') repeat;
  --parchment-size: 64px 64px;
  --rpg-frame: url('../assets/sprites/ui_rpg_frame.png') 16 stretch;
  --rpg-btn-frame: url('../assets/sprites/ui_rpg_btn_frame.png');
  --rpg-btn-pressed: url('../assets/sprites/ui_rpg_btn_frame_pressed.png');
  --rpg-btn-gold: url('../assets/sprites/ui_rpg_btn_frame_gold.png');
  --rpg-btn-gold-pressed: url('../assets/sprites/ui_rpg_btn_frame_gold_pressed.png');
  --rpg-btn-slice: 6;
  --rpg-btn-border: 6px;
  --gold: #f5c842;
  --gold-dark: #c9a21a;
  --brown: #5d4037;
  --brown-light: #8d6e63;
  --dark-bg: #0a0a0f;
  --section-dark: #111118;
  --text-parchment: #1b120d;
}

/* ---- Pixel rendering ---- */
.pixelated{ image-rendering: pixelated; image-rendering: -moz-crisp-edges; image-rendering: crisp-edges; }

/* ---- Container ---- */
.lp-container{ width:100%; max-width:1100px; margin:0 auto; padding:0 20px; }

/* ========================
   SECTION RIBBON HEADER
   ======================== */
.lp-ribbon{
  position:relative; display:flex; align-items:center; justify-content:center;
  margin: 0 auto 28px; width:320px; max-width:90%;
}
.lp-ribbon img{ width:100%; image-rendering:pixelated; }
.lp-ribbon-text{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-58%);
  font-family:"Courier New",monospace; font-weight:1000;
  letter-spacing:1.2px; font-size:13px; color:#fff;
  text-shadow:2px 2px 0 rgba(0,0,0,0.85); text-transform:uppercase;
  white-space:nowrap;
}

/* ========================
   HERO SECTION
   ======================== */
.lp-hero{
  position:relative;
  min-height:100vh; min-height:100dvh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  padding: 80px 20px 120px;
  padding-top: max(80px, env(safe-area-inset-top, 0px));
  background: radial-gradient(ellipse at 50% 30%, rgba(93,64,55,0.18) 0%, transparent 65%),
              var(--dark-bg);
  overflow: hidden;
}
.lp-hero-badge{
  width: 220px; max-width:60vw; margin-bottom:18px;
  image-rendering:pixelated;
  filter: drop-shadow(0 6px 12px rgba(245,200,66,0.25));
  animation: heroBadgePulse 3s ease-in-out infinite;
}
@keyframes heroBadgePulse{
  0%,100%{ filter:drop-shadow(0 6px 12px rgba(245,200,66,0.25)); transform:scale(1); }
  50%{ filter:drop-shadow(0 6px 18px rgba(245,200,66,0.4)); transform:scale(1.02); }
}
.lp-hero h1{
  font-family:"Courier New",monospace; font-weight:1000;
  font-size: clamp(36px, 8vw, 64px);
  color: #f5c842;
  text-shadow: 0 0 40px rgba(245,200,66,0.3), 2px 2px 0 rgba(0,0,0,0.6);
  letter-spacing: 2px; text-transform:uppercase;
  margin-bottom: 4px;
}
.lp-hero-sub{
  font-family:"Courier New",monospace; font-weight:700;
  font-size: clamp(14px, 3vw, 20px);
  color: rgba(245,200,66,0.7);
  letter-spacing: 4px; text-transform:uppercase;
  margin-bottom: 20px;
}
.lp-hero-hook{
  max-width: 560px;
  font-size: clamp(14px, 2.5vw, 17px);
  color: rgba(232,224,212,0.8);
  line-height: 1.7;
  margin-bottom: 32px;
}
.lp-hero-btns{ display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }
.lp-btn-primary{
  display:inline-block; padding: 14px 36px;
  background: linear-gradient(180deg, #f5c842 0%, #c9a21a 100%);
  color: #1b120d;
  font-weight: 900; font-size: 16px;
  text-transform:uppercase; letter-spacing:1px;
  border: 3px solid #a88514; border-radius:8px;
  cursor:pointer; text-decoration:none;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.lp-btn-primary:hover{ transform:translateY(-2px); box-shadow:0 8px 28px rgba(245,200,66,0.35); text-decoration:none; }
.lp-btn-secondary{
  display:inline-block; padding: 14px 36px;
  background: rgba(255,255,255,0.06);
  color: #e8e0d4;
  font-weight: 800; font-size: 16px;
  text-transform:uppercase; letter-spacing:1px;
  border: 2px solid rgba(255,255,255,0.15); border-radius:8px;
  cursor:pointer; text-decoration:none;
  transition: background 0.2s, border-color 0.2s;
}
.lp-btn-secondary:hover{ background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.25); text-decoration:none; }

/* Hero character parade */
.lp-hero-parade{
  position:absolute; bottom:20px; left:0; width:200%; height:72px;
  overflow:hidden; pointer-events:none;
}
.lp-hero-parade-track{
  display:flex; gap:40px; align-items:center;
  animation: paradeScroll 20s linear infinite;
  width: max-content;
  will-change: transform;
}
@keyframes paradeScroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}
.lp-parade-char{
  width:64px; height:64px; flex-shrink:0;
  image-rendering:pixelated;
  background-size: 256px auto; /* width = 4cols × 64px; auto height preserves aspect ratio */
  background-repeat:no-repeat;
  background-position: 0 0;
  opacity:0.55;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* ========================
   STORY / LORE SECTION
   ======================== */
.lp-story{
  padding: 80px 0;
  background: var(--section-dark);
}
.lp-story-panel{
  background: var(--parchment-bg);
  background-size: var(--parchment-size);
  border: 16px solid transparent;
  border-image: var(--rpg-frame);
  border-image-repeat: stretch;
  image-rendering:pixelated;
  padding: 32px 28px;
  color: var(--text-parchment);
  max-width: 800px; margin:0 auto;
}
.lp-story-panel p{
  font-size: 15px; line-height:1.8;
  margin-bottom: 16px;
  color: rgba(27,18,13,0.85);
}
.lp-story-panel p:last-child{ margin-bottom:0; }
.lp-story-panel .lore-accent{
  font-family:"Courier New",monospace; font-weight:900;
  color: #5d4037; font-size:16px;
}
.lp-story-hub-row{
  display:flex; justify-content:center; gap:16px; margin-top:24px; flex-wrap:wrap;
}
.lp-story-hub{
  width:64px; height:64px;
  image-rendering:pixelated;
  background-size: contain; background-repeat:no-repeat; background-position:center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* ========================
   VIDEO SECTION
   ======================== */
.lp-video{
  padding: 80px 0;
  background: var(--dark-bg);
  text-align:center;
}
.lp-video-frame{
  position:relative;
  max-width:720px; margin:0 auto;
  aspect-ratio: 16/9;
  border: 4px solid rgba(245,200,66,0.2);
  border-radius:12px;
}
.lp-video-player{
  width:100%; height:100%;
  display:block;
  object-fit:contain;
  border-radius:8px;
  background: transparent;
  -webkit-appearance: none;          /* strip Safari default chrome tint */
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* force Safari GPU compositing without dark layer */
}
.lp-video-caption{
  margin-top:14px;
  font-size:13px; color:rgba(232,224,212,0.45);
  font-style:italic;
}

/* ========================
   FEATURES GRID
   ======================== */
.lp-features{
  padding: 80px 0;
  background: var(--section-dark);
}
.lp-features-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px; margin:0 auto;
}
.lp-feat-card{
  background: var(--parchment-bg);
  background-size: var(--parchment-size);
  border: 12px solid transparent;
  border-image: var(--rpg-frame);
  border-image-repeat: stretch;
  image-rendering:pixelated;
  padding: 22px 16px;
  text-align:center;
  color: var(--text-parchment);
}
.lp-feat-icon{
  width:48px; height:48px; margin:0 auto 10px;
  image-rendering:pixelated;
  background-size:contain; background-repeat:no-repeat; background-position:center;
}
.lp-feat-card h3{
  font-family:"Courier New",monospace; font-weight:900;
  font-size:13px; text-transform:uppercase;
  color: #5d4037; margin-bottom:6px; letter-spacing:0.5px;
}
.lp-feat-card p{
  font-size:12px; line-height:1.6; color:rgba(27,18,13,0.75);
}

/* ========================
   CHARACTER SHOWCASE
   ======================== */
.lp-chars{
  padding: 80px 0;
  background: var(--dark-bg);
  text-align:center;
  overflow:hidden;
}
.lp-chars-strip{
  display:flex; gap:28px; justify-content:center; flex-wrap:wrap;
  max-width: 1000px; margin:0 auto; padding:0 10px;
}
.lp-char-card{
  display:flex; flex-direction:column; align-items:center; gap:8px;
}
.lp-char-sprite{
  width:80px; height:80px;
  image-rendering:pixelated;
  background-size: 320px auto; /* width = 4cols × 80px; auto height preserves aspect ratio */
  background-repeat: no-repeat;
  background-position: 0 0;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.5));
  transition: transform 0.2s;
}
.lp-char-card:hover .lp-char-sprite{ transform:scale(1.15); }
.lp-char-name{
  font-family:"Courier New",monospace; font-weight:800;
  font-size:10px; text-transform:uppercase; letter-spacing:0.8px;
  color: rgba(232,224,212,0.6);
}

/* ========================
   BIOMES / WORLD SECTION
   ======================== */
.lp-world{
  padding: 80px 0;
  background: var(--section-dark);
}
.lp-biome-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px; margin:0 auto;
}
.lp-biome-card{
  position:relative;
  min-height: 120px;
  border-radius: 10px;
  overflow:hidden;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding: 16px;
  cursor:default;
  border: 2px solid rgba(245,200,66,0.1);
  transition: border-color 0.2s;
}
.lp-biome-card:hover{ border-color:rgba(245,200,66,0.3); }
.lp-biome-card::before{
  content:'';
  position:absolute; inset:0;
  image-rendering:pixelated;
  background-size: 64px 64px;
  background-repeat: repeat;
  opacity: 0.35;
  z-index:0;
}
.lp-biome-card::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%);
  z-index:1;
}
.lp-biome-card >*{ position:relative; z-index:2; }
.lp-biome-name{
  font-family:"Courier New",monospace; font-weight:900;
  font-size:16px; text-transform:uppercase; letter-spacing:1px;
  margin-bottom:2px;
}
.lp-biome-level{
  font-size:11px; color:rgba(245,200,66,0.7); font-weight:700; margin-bottom:4px;
}
.lp-biome-desc{
  font-size:12px; color:rgba(232,224,212,0.65); line-height:1.5;
}

/* Biome tile backgrounds */
.biome-farm::before{ background-image:url('../assets/sprites/tile_farm.png'); }
.biome-basin::before{ background-image:url('../assets/sprites/tile_basin.png'); }
.biome-dunes::before{ background-image:url('../assets/sprites/tile_dunes.png'); }
.biome-west::before{ background-image:url('../assets/sprites/tile_west.png'); }
.biome-forest::before{ background-image:url('../assets/sprites/tile_forest.png'); }
.biome-oasis::before{ background-image:url('../assets/sprites/tile_oasis.png'); }
.biome-tundra::before{ background-image:url('../assets/sprites/tile_tundra.png'); }
.biome-summit::before{ background-image:url('../assets/sprites/tile_summit.png'); }
.biome-narwhal::before{ background-image:url('../assets/sprites/tile_narwhal.png'); }
.biome-magma::before{ background-image:url('../assets/sprites/tile_magma.png'); }

/* ========================
   ENEMY SHOWCASE
   ======================== */
.lp-enemies{
  padding: 80px 0;
  background: var(--dark-bg);
  text-align:center;
}
.lp-enemy-grid{
  display:flex; flex-wrap:wrap; gap:24px; justify-content:center;
  max-width:900px; margin:0 auto;
}
.lp-enemy-card{
  display:flex; flex-direction:column; align-items:center; gap:6px;
}
.lp-enemy-sprite{
  width:80px; height:80px;
  image-rendering:pixelated;
  background-size: 320px auto; /* width = 4cols × 80px; auto height preserves aspect ratio */
  background-repeat:no-repeat;
  background-position:0 0;
  filter: drop-shadow(0 3px 8px rgba(200,0,0,0.3));
  transition: transform 0.2s;
}
.lp-enemy-card:hover .lp-enemy-sprite{ transform:scale(1.15); }
.lp-enemy-name{
  font-family:"Courier New",monospace; font-weight:800;
  font-size:9px; text-transform:uppercase; letter-spacing:0.5px;
  color:rgba(232,224,212,0.5);
}

/* ========================
   AUTH / LOGIN SECTION
   ======================== */
.lp-auth{
  padding: 80px 0;
  background: var(--section-dark);
  display:flex; flex-direction:column; align-items:center;
}
.lp-auth-box{
  display:flex; flex-direction:column; gap:10px;
  width: 340px; max-width: 92vw;
  text-align:center;
  background: var(--parchment-bg);
  background-size: var(--parchment-size);
  border: 16px solid transparent;
  border-image: var(--rpg-frame);
  border-image-repeat: stretch;
  padding: 18px 18px 14px;
  image-rendering:pixelated;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.lp-auth-box input{
  padding: 12px;
  background: rgba(255,255,255,0.62);
  color: #1b120d;
  border: 2px solid rgba(27,18,13,0.18);
  border-radius: 0;
  font-size: 14px;
  text-align: center;
  outline: none;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.lp-auth-box input:focus{
  border-color: rgba(120,120,130,0.75);
  box-shadow: 0 0 0 2px rgba(120,120,130,0.25);
}
.lp-auth-box button{
  border: var(--rpg-btn-border) solid transparent;
  border-image-source: var(--rpg-btn-frame);
  border-image-slice: var(--rpg-btn-slice);
  border-image-repeat: stretch;
  border-radius: 0;
  box-sizing: border-box;
  image-rendering: pixelated;
  background: rgba(85,85,95,0.92);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
  font-weight: 1000;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 10px 0 rgba(0,0,0,0.18);
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.lp-auth-box button:active{
  border-image-source: var(--rpg-btn-pressed);
  transform: translateY(1px);
}
.lp-auth-box button.secondary{ background: rgba(55,55,65,0.92); }

/* Auth logo */
.lp-auth-logo{
  width: 180px; max-width:80%; height:auto;
  display:block; margin:4px auto 10px;
  image-rendering:pixelated;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}

/* Auth ribbon */
.lp-auth-ribbon{ position:relative; display:flex; align-items:center; justify-content:center; margin:-6px 0 4px; }
.lp-auth-ribbon img{ width:260px; max-width:92%; image-rendering:pixelated; }
.lp-auth-ribbon-text{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-58%);
  font-family:"Courier New",monospace; font-weight:1000;
  letter-spacing:1px; font-size:14px; color:#fff;
  text-shadow:2px 2px 0 rgba(0,0,0,0.85); text-transform:uppercase;
}

/* Button row */
.lp-auth-btn-row{ display:flex; gap:10px; justify-content:space-between; align-items:stretch; }
.lp-auth-btn-row button{ flex:1 1 0; margin:0; }

/* OAuth buttons */
.lp-auth-oauth-row{
  margin-top:8px; display:grid; grid-template-columns:1fr 1fr; gap:8px; align-items:stretch;
}
.lp-auth-box .oauth-btn{
  width:100% !important; min-height:38px !important;
  padding:9px 12px !important; border-radius:11px !important;
  border:1px solid rgba(16,26,40,0.2) !important;
  border-image:none !important;
  box-shadow:0 2px 8px rgba(0,0,0,0.14) !important;
  text-transform:none !important; letter-spacing:0.01em !important;
  font-size:12px !important; line-height:1.1 !important;
  font-weight:900 !important; text-shadow:none !important;
  image-rendering:auto !important; -webkit-font-smoothing:antialiased;
  display:flex !important; align-items:center; justify-content:center; gap:7px;
}
.lp-auth-box .oauth-btn::before{
  display:inline-block; font-size:13px; font-weight:900; line-height:1; opacity:0.9;
}
.lp-auth-box .oauth-btn.google{
  background:#ffffff !important; color:#202124 !important;
  border-color:rgba(15,23,36,0.18) !important;
}
.lp-auth-box .oauth-btn.google::before{ content:"G"; color:#d93025; }
.lp-auth-box .oauth-btn.apple{
  background:#111111 !important; color:#ffffff !important;
  border-color:rgba(255,255,255,0.25) !important;
}
.lp-auth-box .oauth-btn.apple::before{ content:"\f8ff"; color:#ffffff; font-family: -apple-system, system-ui, 'Helvetica Neue', sans-serif; }

/* Text link style */
.lp-auth-box button.text-link{
  width:auto !important; min-height:0 !important;
  margin:4px auto 0 !important; padding:2px 4px !important;
  border:none !important; border-image:none !important;
  background:transparent !important; color:#0b5cd6 !important;
  text-transform:none !important; letter-spacing:0 !important;
  font-size:12px !important; font-weight:800 !important;
  text-decoration:underline; text-shadow:none !important;
  image-rendering:auto !important; -webkit-font-smoothing:antialiased;
  box-shadow:none !important; border-radius:8px !important; outline:none;
}
.lp-auth-box button.text-link:hover{
  color:#0849aa !important; background:rgba(13,92,214,0.08) !important;
}

/* b183: Password visibility toggle — overrides RPG button styles */
.lp-auth-box .pw-toggle-btn{
  all:unset; position:absolute; right:8px; top:50%; transform:translateY(-50%);
  cursor:pointer; font-size:16px; padding:4px; opacity:0.6; line-height:1;
}
.lp-auth-box .pw-toggle-btn:hover{ opacity:1; }

/* Auth message banner */
#auth-msg{
  display:none; max-width:340px; width:92vw; margin:8px auto 0;
  padding:10px 14px; border-radius:6px;
  background:rgba(0,0,0,0.72);
  font-size:12px; font-family:"Courier New",monospace; font-weight:700;
  text-align:center; line-height:1.4;
  backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
  animation:authMsgIn 0.2s ease-out;
}
@keyframes authMsgIn{
  from{opacity:0;transform:translateY(-6px);}
  to{opacity:1;transform:translateY(0);}
}

/* Auth footer */
.lp-auth-footer{
  display:flex; flex-direction:column; align-items:center;
  width:100%; margin-top:12px; font-size:12px; font-family:monospace;
  padding:0 4px; gap:4px;
}
.lp-auth-footer .auth-footer-bottom{
  display:flex; justify-content:space-between; align-items:center; width:100%;
}
.lp-auth-footer .auth-copy{ color:rgba(0,0,0,0.58); margin:0; }
.lp-auth-footer .version-tag{ color:rgba(0,0,0,0.55); margin:0; font-size:10px; }
.lp-auth-legal-links{
  display:flex; align-items:center; justify-content:center;
  gap:8px; font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif; font-size:11px;
}
.lp-auth-legal-links a{ color:rgba(0,0,0,0.45); text-decoration:none; font-weight:700; letter-spacing:0.3px; transition:color 0.15s; }
.lp-auth-legal-links a:hover{ color:#0b5cd6; text-decoration:underline; }
.lp-auth-legal-dot{ color:rgba(0,0,0,0.25); font-size:10px; }

/* Auth helper text */
.lp-auth-hint{
  font-size:11px; opacity:0.78; color:var(--text-parchment);
}

/* Auth: PWA install */
.lp-auth-install{ margin-top:8px; }
#lp-pwa-install-btn{
  width:100%; cursor:pointer;
}
#lp-pwa-install-hint{
  font-size:11px; margin-top:6px; opacity:0.78; color:var(--text-parchment);
}

/* ========================
   DOWNLOAD / STORE SECTION
   ======================== */
.lp-download{
  padding: 60px 0;
  background: var(--dark-bg);
  text-align:center;
}
.lp-download-sub{
  font-size:14px; color:rgba(232,224,212,0.55);
  margin-bottom:28px; max-width:480px; margin-left:auto; margin-right:auto;
}
.lp-store-row{
  display:flex; gap:16px; justify-content:center; flex-wrap:wrap;
  max-width:820px; margin:0 auto;
}
.lp-store-btn{
  position:relative;
  display:flex; align-items:center; gap:10px;
  padding: 12px 22px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #e8e0d4;
  text-decoration:none;
  transition: border-color 0.2s, background 0.2s;
  cursor:default;
  min-width:180px;
  justify-content:center;
  pointer-events:none;
  opacity:0.7;
}
.lp-store-btn.lp-store-active{
  cursor:pointer;
  pointer-events:auto;
  opacity:1;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
}
.lp-store-btn:hover{
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  text-decoration:none;
}
.lp-store-icon{
  font-size:24px; line-height:1; flex-shrink:0;
}
.lp-store-text{
  display:flex; flex-direction:column; align-items:flex-start; text-align:left;
}
.lp-store-label{
  font-size:9px; text-transform:uppercase; letter-spacing:0.8px;
  color:rgba(232,224,212,0.45); font-weight:700;
}
.lp-store-name{
  font-size:14px; font-weight:900; letter-spacing:0.3px;
}
.lp-store-badge{
  position:absolute; top:-8px; right:-8px;
  background: linear-gradient(135deg, #f5c842 0%, #c9a21a 100%);
  color: #1b120d;
  font-size:8px; font-weight:900; text-transform:uppercase; letter-spacing:0.5px;
  padding: 3px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Hidden utility */
.hidden{ display:none !important; }

/* ========================
   FOOTER
   ======================== */
.lp-footer{
  padding: 40px 20px;
  padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
  background: #08080c;
  text-align:center;
  border-top: 2px solid rgba(245,200,66,0.08);
}
.lp-footer-logo{
  width:80px; margin:0 auto 14px;
  image-rendering:pixelated;
  opacity:0.6;
}
.lp-footer-links{
  display:flex; justify-content:center; gap:16px; margin-bottom:10px;
}
.lp-footer-links a{
  font-size:12px; color:rgba(232,224,212,0.45); font-weight:700;
  transition:color 0.15s;
}
.lp-footer-links a:hover{ color:#f5c842; }
.lp-footer-copy{
  font-size:11px; color:rgba(232,224,212,0.25); font-family:monospace;
}
.lp-footer-version{
  font-size:10px; color:rgba(232,224,212,0.15); font-family:monospace; margin-top:4px;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width:768px){
  .lp-hero{ padding: 70px 16px 100px; }
  .lp-hero-badge{ width:160px; }
  .lp-hero-btns{ flex-direction:column; align-items:center; }
  .lp-btn-primary, .lp-btn-secondary{ width:100%; max-width:280px; text-align:center; }

  .lp-features-grid{ grid-template-columns: 1fr; gap:14px; }
  .lp-biome-grid{ grid-template-columns: 1fr; }

  .lp-story-panel{ padding:22px 16px; }

  .lp-chars-strip{ gap:16px; }
  .lp-char-sprite{ width:64px; height:64px; background-size:256px auto; }

  .lp-enemy-sprite{ width:64px; height:64px; background-size:256px auto; }
  .lp-enemy-grid{ gap:16px; }

  .lp-auth-oauth-row{ grid-template-columns:1fr; gap:7px; }
  .lp-auth-logo{ width:150px; }

  .lp-ribbon{ width:260px; }
  .lp-ribbon-text{ font-size:11px; }

  .lp-store-row{ flex-direction:column; align-items:center; }
  .lp-store-btn{ width:100%; max-width:280px; }

  .lp-story, .lp-video, .lp-features, .lp-chars, .lp-world, .lp-enemies, .lp-auth, .lp-download{
    padding: 50px 0;
  }
}

@media (max-width:480px){
  .lp-features-grid{ gap:10px; }
  .lp-feat-card{ padding:16px 12px; }
  .lp-biome-card{ min-height:100px; padding:12px; }
  .lp-chars-strip{ gap:10px; }
  .lp-char-sprite{ width:56px; height:56px; background-size:224px auto; }
  .lp-enemy-sprite{ width:56px; height:56px; background-size:224px auto; }
}

@media (max-width:360px){
  .lp-hero h1{ font-size:28px; }
  .lp-hero-sub{ font-size:12px; letter-spacing:2px; }
  .lp-hero-badge{ width:130px; }
  .lp-ribbon{ width:220px; }
  .lp-ribbon-text{ font-size:10px; }
  .lp-feat-card{ padding:14px 10px; }
  .lp-feat-card h3{ font-size:12px; }
  .lp-feat-card p{ font-size:11px; }
  .lp-char-sprite{ width:48px; height:48px; background-size:192px auto; }
  .lp-char-name{ font-size:8px; }
  .lp-enemy-sprite{ width:48px; height:48px; background-size:192px auto; }
  .lp-enemy-name{ font-size:8px; }
  .lp-biome-name{ font-size:13px; }
  .lp-biome-desc{ font-size:11px; }
  .lp-auth-box{ padding:14px 12px 10px; }
  .lp-auth-logo{ width:130px; }
  .lp-store-btn{ min-width:0; padding:10px 16px; }
}

/* ========================
   SCROLL-TO-TOP
   ======================== */
.lp-scroll-top{
  position:fixed; bottom:24px; right:24px;
  width:44px; height:44px;
  background: rgba(245,200,66,0.85);
  color: #1b120d;
  border: none; border-radius:50%;
  font-size:20px; font-weight:900;
  cursor:pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(12px);
  z-index:900;
}
.lp-scroll-top.visible{
  opacity:1; pointer-events:auto;
  transform: translateY(0);
}
.lp-scroll-top:hover{
  background: rgba(245,200,66,1);
  transform: translateY(-2px);
}
@media (max-width:480px){
  .lp-scroll-top{ bottom: max(16px, env(safe-area-inset-bottom, 0px)); right:16px; width:40px; height:40px; font-size:18px; }
}
