:root {
  --navy: #16365d;
  --ink: #142d4d;
  --primary: #ffb51d;
  --panel: rgba(255, 255, 255, 0.94);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: -webkit-fill-available;
  overflow: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1b3d66 0%, #0a182b 100%);
  font-family: 'Trebuchet MS', Arial, -apple-system, system-ui, sans-serif;
  color: var(--ink);
  touch-action: none;
  user-select: none;
}

/* =========================================================
   TRUE FULLSCREEN EDGE-TO-EDGE GAME SHELL (NO BOX/FRAME)
   ========================================================= */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: -webkit-fill-available !important;
  overflow: hidden !important;
  background: #77cef2 !important; /* Seamless sky blue */
}

body {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #77cef2 !important;
  font-family: 'Trebuchet MS', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.game-shell {
  position: relative !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  background: #77cef2 !important;
  display: flex !important;
  flex-direction: column !important;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: auto;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: strict;
}

.screen, .modal-layer, .hud, .top-actions {
  position: absolute;
  inset: 0;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(6px, 2vh, 12px);
}

.hidden,
.modal.hidden,
.modal-layer.hidden,
.shop-modal.hidden,
.social-modal.hidden,
.friend-profile-modal.hidden,
.ranked-modal.hidden,
.mp-modal.hidden,
.avatar-picker-modal.hidden,
.direct-chat-modal.hidden,
.how-modal.hidden,
.tier-roadmap-modal.hidden,
.revive-modal.hidden,
.game-dialog-modal.hidden,
.gacha-modal.hidden,
.gacha-result-modal.hidden,
.mp-over-modal.hidden {
  display: none !important;
}

.menu-screen {
  padding-top: clamp(8px, 2vh, 14px);
  background: transparent;
  justify-content: flex-start;
}

.title {
  line-height: .78;
  color: #fff;
  text-shadow: 3px 4px 0 #1d5481, 0 5px 12px #16365d88;
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 900;
  letter-spacing: -1.5px;
}

.title span, .title strong {
  display: block;
}

.title strong {
  color: #ffe064;
  font-size: .78em;
}

.menu-screen > p {
  margin: 6px 0 0;
  font-weight: 900;
  font-size: clamp(9px, 2vw, 11px);
  letter-spacing: 2.5px;
  color: #1c5682;
}

.menu-bird {
  font-size: clamp(36px, 8vw, 46px);
  margin: clamp(6px, 1.5vh, 12px) 0 clamp(4px, 1vh, 8px);
  animation: bob 1.6s ease-in-out infinite;
  filter: drop-shadow(0 4px 2px #3479a588);
}

button {
  border: 0;
  font: 900 clamp(12px, 2.5vw, 14px) 'Trebuchet MS', Arial;
  color: #17355a;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: transform .12s, filter .12s, background .15s;
  min-height: clamp(32px, 4.5vh, 38px);
}

button:hover {
  filter: brightness(1.07);
}

button:active {
  transform: translateY(2px) scale(0.98);
}

button:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

.primary, .secondary {
  width: min(190px, 42%);
  border-radius: 12px;
  margin: 2.5px;
  padding: clamp(6px, 1vh, 9px) 12px;
  box-shadow: 0 3px 0 #ba7611, 0 5px 12px #275d7b33;
}

.primary {
  background: linear-gradient(#ffe16b, #ffae1b);
}

.secondary {
  background: #fff;
  box-shadow: 0 3px 0 #b5d2dd, 0 5px 12px #275d7b33;
}

.menu-screen small {
  margin-top: 6px;
  color: #26527b;
  font-weight: bold;
  font-size: clamp(9px, 2vw, 10.5px);
}

.hud {
  pointer-events: none;
  text-align: center;
  padding-top: clamp(24px, 5vh, 38px);
  z-index: 5;
}

.hud #score {
  font-size: clamp(38px, 8vw, 50px);
  font-weight: 900;
  color: #fff;
  text-shadow: 3px 3px 0 #23527a;
}

.hud #score.bump {
  animation: bump .28s;
}

.hud #scorePop {
  color: #fff;
  font-size: clamp(15px, 3.5vw, 18px);
  font-weight: bold;
  opacity: 0;
  transform: translateY(-8px);
}

.hud #scorePop.show {
  animation: pop .65s;
}

.top-actions {
  inset: auto 12px auto auto;
  display: flex;
  gap: 7px;
  top: clamp(10px, 2vh, 14px);
  right: clamp(10px, 2.5vw, 14px);
  height: 38px;
}

.icon-button {
  min-height: 38px;
  width: 38px;
  border-radius: 12px;
  background: #ffffffbb;
  box-shadow: 0 3px #5790ac;
  font-size: 17px;
}

.screen#ready {
  padding-top: clamp(22%, 28vh, 32%);
  color: #fff;
  text-shadow: 2px 3px #2d6d91;
}

.screen#ready h2 {
  font-size: clamp(24px, 6vw, 31px);
  margin: 0;
  letter-spacing: 1px;
}

.screen#ready p {
  font-weight: bold;
  font-size: clamp(12px, 3vw, 14px);
}

.tap-icon {
  font-size: clamp(38px, 9vw, 47px);
  animation: bob 1s ease-in-out infinite;
}

/* =========================================================
   RESPONSIVE MODAL LAYER & POPUPS
   ========================================================= */
.modal-layer {
  position: absolute;
  inset: 0;
  z-index: 10000;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(4, 10, 20, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-layer.hidden {
  display: none !important;
}

.modal {
  position: relative;
  width: min(440px, 92%);
  max-height: min(340px, 94vh);
  overflow-y: auto;
  background: var(--panel);
  border: 2px solid #fff;
  border-radius: clamp(16px, 4vw, 22px);
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 10px 0 #2e6684, 0 20px 40px rgba(7, 24, 41, 0.7);
  animation: modalIn .24s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  scrollbar-width: thin;
  scrollbar-color: rgba(2, 132, 199, 0.4) transparent;
  margin: auto !important;
}

@keyframes modalIn {
  0% { opacity: 0; transform: scale(0.92) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  background: linear-gradient(180deg, #142442 0%, #0c172c 100%) !important;
  border: 2px solid #254a78 !important;
  border-radius: 18px !important;
  color: #f1f5f9 !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), inset 0 1.5px 0 rgba(255, 255, 255, 0.15) !important;
}

.modal h2 {
  margin: 0 0 clamp(10px, 2vh, 16px);
  color: #1d4f78;
  font-size: clamp(16px, 4vw, 22px);
}

.modal button {
  display: block;
  margin: 7px auto;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e2f4fc;
  color: #285071;
  border: none;
  cursor: pointer;
  transition: all .15s;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.close:hover {
  background: #cae6f3;
  color: #0284c7;
  transform: scale(1.08);
}

.close:active {
  transform: scale(0.92);
}

/* =========================================================
   MOBILE LANDSCAPE FULLSCREEN OPTIMIZATIONS
   ========================================================= */
@media (max-width: 960px) and (orientation: landscape) {
  .game-shell {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}

/* PC Widescreen & Tablet Arcade Glow Enhancement */
@media (min-width: 600px) and (min-height: 600px) {
  .game-shell {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.75), 0 0 0 2px rgba(255, 255, 255, 0.15), 0 0 50px rgba(2, 132, 199, 0.25);
  }
}
.brand-logo{display:block;max-width:100%;height:auto}
.subtitle-badge{margin:6px 0 10px;font-weight:900;font-size:11px;letter-spacing:3px;color:#1c5682;background:rgba(255,255,255,0.6);padding:3px 12px;border-radius:99px;display:inline-block;box-shadow:0 2px 5px rgba(0,0,0,0.06)}
.how-modal{max-width:320px;padding:22px 18px 18px}
.instructions-list{display:flex;flex-direction:column;gap:8px;margin-bottom:15px;text-align:left}
.inst-item{display:flex;align-items:center;gap:10px;background:rgba(240,249,255,0.8);border:1.5px solid rgba(186,230,253,0.9);border-radius:12px;padding:7px 9px;box-shadow:0 2px 6px rgba(0,0,0,0.03)}
.inst-icon{width:36px;height:36px;min-width:36px;border-radius:10px;background:#ffffff;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 5px rgba(0,0,0,0.08);border:1px solid rgba(224,242,254,0.8)}
.inst-icon svg{width:22px;height:22px;display:block}
.inst-content{flex:1;min-width:0}
.inst-content strong{display:block;font:900 11px Trebuchet MS,Arial;color:#0369a1;letter-spacing:.3px;margin-bottom:2px}
.inst-content p{margin:0;font-size:10.5px;line-height:1.3;color:#334155;font-weight:600}
.tap-icon svg{display:block;margin:0 auto;filter:drop-shadow(0 3px 6px rgba(0,0,0,0.25))}
.setting{display:flex;align-items:center;justify-content:space-between;margin:15px 0;font-weight:bold}
.setting input{display:none}
.setting i{width:48px;height:26px;background:#94b4c2;border-radius:99px;position:relative}
.setting i:after{content:'';position:absolute;width:20px;height:20px;border-radius:50%;background:#fff;top:3px;left:4px;transition:.2s}
.setting input:checked+i{background:#3bb96e}
.setting input:checked+i:after{left:24px}
.setting select{font:900 12px Trebuchet MS;border:0;background:#d9edf4;padding:7px;border-radius:8px;color:#1d4f78}

/* Language Switcher in Settings */
.lang-switch-group{display:inline-flex;background:#e2f1f8;border-radius:99px;padding:3px;gap:4px;border:1px solid #bce1f1}
.lang-btn{border:none;background:transparent;padding:4px 10px;border-radius:99px;font:900 11px/1 'Trebuchet MS',Arial,sans-serif;color:#1e4c70;cursor:pointer;transition:all 0.2s ease;min-height:24px;display:inline-flex;align-items:center;justify-content:center;box-shadow:none;margin:0 !important}
.lang-btn.active{background:linear-gradient(135deg,#0284c7 0%,#0369a1 100%);color:#ffffff;box-shadow:0 2px 6px rgba(2,132,199,0.35)}
.lang-btn:hover:not(.active){background:#d0e7f3;color:#0369a1}

.results{display:flex;justify-content:center;gap:18px;margin:4px 0 12px}.results div{font-size:12px;font-weight:bold;color:#47728a}.results strong{display:block;font-size:31px;color:#214f76}.new-best{font-weight:900;color:#ef7b18;animation:bob .7s ease-in-out infinite;margin:5px}@keyframes bob{50%{transform:translateY(-9px) rotate(-3deg)}}@keyframes bump{50%{transform:scale(1.35)}}@keyframes pop{20%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-24px)}}@keyframes modalIn{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}@media(max-width:500px){.game-shell{border-radius:0;width:100vw;height:100vh;aspect-ratio:auto}.title{font-size:55px}}.powerup-hud{display:flex;justify-content:center;gap:6px;margin-top:6px;flex-wrap:wrap;pointer-events:none}
.powerup-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:99px;font:900 10.5px Trebuchet MS,Arial;color:#fff;box-shadow:0 3px 8px rgba(0,0,0,0.22);animation:badgePop .2s ease-out;backdrop-filter:blur(4px);letter-spacing:.3px}
.powerup-badge.shield{background:linear-gradient(135deg,#0284c7,#0369a1);border:1.2px solid #7dd3fc}
.powerup-badge.baby{background:linear-gradient(135deg,#eab308,#ca8a04);border:1.2px solid #fef08a;color:#fff;box-shadow:0 3px 10px rgba(234,179,8,0.45)}
.powerup-badge.sakura{background:linear-gradient(135deg,#ec4899,#db2777);border:1.2px solid #fbcfe8;color:#fff;box-shadow:0 3px 10px rgba(236,72,153,0.5)}
.powerup-badge.sakura-cd{background:rgba(219,39,119,0.35);border:1px dashed #f472b6;color:#fdf2f8}
.powerup-badge.laser{background:linear-gradient(135deg,#06b6d4,#0284c7);border:1.2px solid #67e8f9;color:#fff;box-shadow:0 3px 10px rgba(6,182,212,0.5)}
.powerup-badge.laser-cd{background:rgba(2,132,199,0.35);border:1px dashed #38bdf8;color:#e0f2fe}
.powerup-badge.flame{background:linear-gradient(135deg,#f97316,#dc2626);border:1.2px solid #fde047;color:#fff;box-shadow:0 3px 12px rgba(249,115,22,0.6);animation:badgeRocket .4s infinite alternate}
.powerup-badge.holy{background:linear-gradient(135deg,#eab308,#ca8a04);border:1.2px solid #fff;color:#fff;box-shadow:0 3px 10px rgba(234,179,8,0.5)}
.powerup-badge.shadow{background:linear-gradient(135deg,#7e22ce,#581c87);border:1.2px solid #c084fc;color:#fff;box-shadow:0 3px 10px rgba(126,34,206,0.5)}
.powerup-badge.baby-cd{background:rgba(202,138,4,0.35);border:1px dashed #fde047;color:#fef9c3}
.powerup-badge.magnet{background:linear-gradient(135deg,#e11d48,#be123c);border:1.2px solid #fda4af}
.powerup-badge.slow{background:linear-gradient(135deg,#0891b2,#0e7490);border:1.2px solid #67e8f9}
.powerup-badge.star{background:linear-gradient(135deg,#f59e0b,#d97706);border:1.2px solid #fde047;animation:badgeStar .55s infinite alternate}
.powerup-badge.rocket{background:linear-gradient(135deg,#ea580c,#c2410c);border:1.2px solid #fdba74;animation:badgeRocket .4s infinite alternate}
.powerup-badge.blink{animation:badgeBlink .3s infinite alternate}
@keyframes badgePop{from{transform:scale(0.85)}to{transform:scale(1)}}
@keyframes badgeStar{from{filter:brightness(1)}to{filter:brightness(1.4);box-shadow:0 0 12px #fde047}}
@keyframes badgeRocket{from{filter:brightness(1)}to{filter:brightness(1.35);box-shadow:0 0 12px #f97316}}
@keyframes badgeBlink{from{opacity:1}to{opacity:0.35}}
.lives-hud{display:flex;align-items:center;justify-content:center;gap:4px;margin-bottom:2px;pointer-events:none}
.life-heart{font-size:18px;line-height:1;filter:drop-shadow(0 2px 4px rgba(225,29,72,0.6));transition:transform .2s,opacity .2s;display:inline-block}
.life-heart.lost{opacity:0.25;filter:grayscale(1);transform:scale(0.85)}
.life-heart.bonus{animation:heartBeat .8s infinite alternate}
@keyframes heartBeat{to{transform:scale(1.2)}}
.revive-modal{max-width:min(320px,92vw)!important;max-height:min(320px,92vh)!important;padding:10px 14px 8px!important;background:linear-gradient(180deg,#ffffff,#f0f9ff)!important;border:2px solid #38bdf8!important;border-radius:18px!important;box-shadow:0 8px 0 #0284c7,0 20px 40px rgba(2,132,199,0.4)!important;display:flex!important;flex-direction:column!important;align-items:center!important;overflow:hidden!important}
.revive-modal.hidden{display:none!important}
.revive-header{display:flex;align-items:center;justify-content:center;gap:6px;margin-bottom:2px}
.revive-header h2{margin:0;color:#0369a1;font-size:18px;letter-spacing:1px}
.revive-heart-icon{font-size:20px;animation:heartBeat .6s infinite alternate}
.revive-subtitle{font-size:10px;font-weight:700;color:#475569;margin:0 0 6px}
.revive-timer-circle{position:relative;width:50px;height:50px;margin:0 auto 6px;display:grid;place-items:center}
.revive-svg-timer{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.revive-svg-timer .timer-bg{fill:none;stroke:#e2e8f0;stroke-width:3.5}
.revive-svg-timer .timer-progress{fill:none;stroke:#ec4899;stroke-width:3.5;stroke-dasharray:113;stroke-dashoffset:0;transition:stroke-dashoffset 1s linear;stroke-linecap:round}
#reviveCountdownText{font:900 20px 'Trebuchet MS',Arial;color:#db2777;z-index:2}
.revive-cost-info{background:rgba(254,240,138,0.45);border:1.5px solid #fde047;border-radius:8px;padding:4px 10px;margin-bottom:6px;display:flex;align-items:center;justify-content:space-between;width:92%;box-sizing:border-box;font-size:10px;font-weight:bold;color:#854d0e}
.revive-cost-info strong{color:#b45309;font-size:12px}
.btn-revive{width:100%!important;background:linear-gradient(135deg,#ec4899,#db2777)!important;color:#fff!important;border-radius:10px!important;box-shadow:0 4px 0 #9d174d,0 6px 14px rgba(236,72,153,0.45)!important;margin-bottom:4px!important;font-size:12px!important;padding:7px!important;min-height:34px!important}
.btn-revive:hover{filter:brightness(1.1)}
.btn-give-up{width:100%!important;background:#f1f5f9!important;color:#64748b!important;box-shadow:0 3px 0 #cbd5e1!important;font-size:10px!important;padding:5px!important;min-height:26px!important}
.powerup-badge.heart{background:linear-gradient(135deg,#e11d48,#be123c);border:1.2px solid #fda4af;color:#fff;box-shadow:0 3px 10px rgba(225,29,72,0.5)}

/* =========================================================
   MODERN PREMIUM TOP-ACTIONS (SOUND & MUSIC BUTTONS)
   ========================================================= */
.top-actions {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 12px));
  right: max(12px, env(safe-area-inset-right, 12px));
  display: flex;
  gap: 8px;
  z-index: 10;
}

.action-glass-btn {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #0284c7;
}

.action-glass-btn:hover {
  transform: translateY(-2px) scale(1.06);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25);
  color: #0369a1;
  border-color: #7dd3fc;
}

.action-glass-btn:active {
  transform: translateY(1px) scale(0.94);
}

.action-glass-btn.muted {
  background: rgba(241, 245, 249, 0.82);
  border-color: rgba(226, 232, 240, 0.88);
  color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.action-glass-btn .btn-svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.action-glass-btn:hover .btn-svg {
  transform: scale(1.1);
}

.action-glass-btn .sound-wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* =========================================================
   MODERN PREMIUM FEATHER RUSH BRAND TITLE & TAG
   ========================================================= */
.simple-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14px;
  margin-bottom: 12px;
  user-select: none;
  animation: simpleTitleFloat 3.2s ease-in-out infinite;
}

@keyframes simpleTitleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(0.4deg); }
}

.simple-brand-title {
  margin: 0;
  font: 900 38px/1.05 'Trebuchet MS', 'Arial Black', system-ui, sans-serif;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.2));
}

.brand-flappy {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 45%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #0284c7) drop-shadow(0 5px 0 #0369a1);
  display: inline-block;
}

.brand-bird {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #b45309) drop-shadow(0 5px 0 #78350f);
  display: inline-block;
}

.simple-brand-tag {
  margin-top: 6px;
  font: 900 10.5px 'Trebuchet MS', Arial, sans-serif;
  letter-spacing: 3px;
  color: #0369a1;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.98);
  border-radius: 99px;
  padding: 4px 16px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================
   BOTTOM-LEFT LOBBY ACTION BAR (FEEDBACK & ADMOB REWARD)
   ========================================================= */
.lobby-bottom-left-bar {
  position: absolute;
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
  left: max(12px, env(safe-area-inset-left, 12px));
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 99;
  pointer-events: auto !important;
}

.lobby-action-pill {
  height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Trebuchet MS', system-ui, -apple-system, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  user-select: none;
  pointer-events: auto !important;
  touch-action: manipulation;
}

.lobby-action-pill.feedback {
  color: #e11d48;
}

.lobby-action-pill.feedback:hover {
  transform: translateY(-2px) scale(1.05);
  background: #ffffff;
  color: #be123c;
  border-color: #fda4af;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.22);
}

.lobby-action-pill.admob-reward {
  color: #d97706;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(254, 240, 138, 0.75));
  border-color: #fef08a;
  animation: admobPillPulse 2.8s ease-in-out infinite alternate;
}

@keyframes admobPillPulse {
  0% { box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15); border-color: #fef08a; }
  100% { box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35); border-color: #f59e0b; }
}

.lobby-action-pill.admob-reward:hover {
  transform: translateY(-2px) scale(1.05);
  background: #ffffff;
  color: #b45309;
  border-color: #f59e0b;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.lobby-action-pill:active {
  transform: translateY(1px) scale(0.95);
}

.lobby-action-pill .pill-icon {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
  flex-shrink: 0;
}

/* =========================================================
   ADMOB REWARDED VIDEO AD MODAL (COMPACT & CLEAN)
   ========================================================= */
.admob-ad-modal {
  width: min(300px, 90vw) !important;
  max-width: 300px;
  padding: 14px;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border: 2px solid rgba(245, 158, 11, 0.6);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.25);
  color: #ffffff;
}

.admob-ad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.admob-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 900 10px 'Trebuchet MS', system-ui, sans-serif;
  color: #fbbf24;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.admob-timer-badge {
  font: 800 10.5px 'Trebuchet MS', sans-serif;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 7px;
  border-radius: 10px;
}

.admob-timer-badge b {
  color: #38bdf8;
}

.admob-ad-stage {
  background: #020617;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admob-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0;
  overflow: hidden;
  z-index: 6;
}

.admob-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #38bdf8);
  transition: width 0.1s linear;
}

.admob-ad-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.admob-reward-preview {
  display: flex;
  align-items: center;
  gap: 5px;
  font: 800 10.5px 'Trebuchet MS', sans-serif;
  color: #94a3b8;
}

.admob-reward-coins {
  color: #fbbf24;
  font-size: 12px;
  font-weight: 900;
}

.admob-close-btn {
  width: 100%;
  margin: 0 !important;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #ffffff;
  font: 900 12.5px 'Trebuchet MS', sans-serif;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
}

.admob-close-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}


/* =========================================================
   FEATHER RUSH — COMPLETE HANDCRAFTED INDIE GAME STYLES
   Clean, Modern, Simple, Polished (No AI-Clutter / No Neon)
   ========================================================= */

/* Typography & Base Variables */
:root {
  --indie-bg: #77cef2;
  --indie-dark: #0f172a;
  --indie-navy: #1e293b;
  --indie-slate: #334155;
  --indie-cream: #fef3c7;
  --indie-gold: #f59e0b;
  --indie-gold-dark: #b45309;
  --indie-coral: #ea580c;
  --indie-green: #16a34a;
  --indie-white: #ffffff;
  --indie-font: 'Trebuchet MS', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 1. TOP HEADER NAVIGATION */
.indie-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 14px !important;
  z-index: 50 !important;
  pointer-events: auto !important;
}

.indie-player-pill {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 20px !important;
  padding: 3px 10px 3px 4px !important;
  cursor: pointer !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

.indie-player-pill:hover {
  transform: translateY(-1px) !important;
  background: rgba(15, 23, 42, 0.9) !important;
}

.indie-player-avatar {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #facc15 !important;
  border: 1.5px solid #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.indie-player-avatar svg, .indie-player-avatar img {
  width: 100% !important;
  height: 100% !important;
}

.indie-player-name {
  font: 900 11px/1.1 var(--indie-font) !important;
  color: #fff !important;
  max-width: 90px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.indie-player-tier-sub {
  font: 800 8px/1 var(--indie-font) !important;
  color: #facc15 !important;
  letter-spacing: 0.3px !important;
}

.indie-coins-pill {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.4) !important;
  border-radius: 16px !important;
  padding: 3px 8px !important;
  font: 900 11px/1 var(--indie-font) !important;
  color: #fbbf24 !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

.indie-coin-add-btn {
  background: #f59e0b !important;
  border: none !important;
  border-radius: 50% !important;
  width: 14px !important;
  height: 14px !important;
  color: #78350f !important;
  font: 900 11px/1 Arial !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}

.indie-top-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.indie-glass-btn {
  width: 28px !important;
  height: 28px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  cursor: pointer !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
  padding: 0 !important;
}

.indie-glass-btn:hover {
  transform: translateY(-1px) !important;
  background: rgba(30, 41, 59, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.indie-ping-badge {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border-radius: 6px !important;
  padding: 3px 6px !important;
  font: 700 8px/1 var(--indie-font) !important;
  color: #94a3b8 !important;
}

/* 2. MAIN MENU (HERO & PLAY HUB) */
.indie-menu-screen {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 44px 16px 10px !important;
  pointer-events: none !important;
}

.indie-hero-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  margin-top: 4px !important;
}

.indie-game-title {
  font: 900 clamp(24px, 5.5vw, 36px)/1 var(--indie-font) !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: 1px !important;
  text-shadow: 0 3px 0 #0f172a, 0 6px 14px rgba(0, 0, 0, 0.35) !important;
}

.indie-high-score-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  border-radius: 12px !important;
  padding: 3px 10px !important;
  margin-top: 5px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
}

.indie-high-score-tag .tag-icon { font-size: 11px !important; }
.indie-high-score-tag .tag-label { font: 800 8.5px/1 var(--indie-font) !important; color: #cbd5e1 !important; }
.indie-high-score-tag .tag-val { font: 900 11px/1 var(--indie-font) !important; color: #fbbf24 !important; }

/* Center-Bottom Action Hub */
.indie-play-hub {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 4px !important;
  pointer-events: auto !important;
}

.indie-mode-pills {
  display: flex !important;
  gap: 4px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  padding: 3px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.indie-mode-pill {
  background: transparent !important;
  border: none !important;
  border-radius: 10px !important;
  color: #94a3b8 !important;
  font: 900 9px/1 var(--indie-font) !important;
  padding: 5px 12px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.indie-mode-pill:hover {
  color: #ffffff !important;
}

.indie-mode-pill.active {
  background: #f59e0b !important;
  color: #0f172a !important;
  box-shadow: 0 2px 0 #b45309 !important;
}

.indie-hero-play-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%) !important;
  border: 2px solid #86efac !important;
  border-radius: 14px !important;
  box-shadow: 0 5px 0 #14532d, 0 10px 22px rgba(22, 163, 74, 0.4) !important;
  padding: 9px 28px !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease !important;
}

.indie-hero-play-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 7px 0 #14532d, 0 14px 26px rgba(22, 163, 74, 0.5) !important;
}

.indie-hero-play-btn:active {
  transform: translateY(3px) !important;
  box-shadow: 0 2px 0 #14532d !important;
}

.play-triangle { font-size: 13px !important; }
.play-word { font: 900 13px/1 var(--indie-font) !important; letter-spacing: 0.5px !important; }

/* 3. UNIFIED BOTTOM NAVIGATION DOCK */
.indie-bottom-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 14px !important;
  padding: 4px 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  pointer-events: auto !important;
  max-width: 96vw !important;
}

.indie-nav-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  background: transparent !important;
  border: none !important;
  color: #cbd5e1 !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  min-width: 44px !important;
}

.indie-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.indie-nav-icon {
  font-size: 14px !important;
  line-height: 1 !important;
}

.indie-nav-label {
  font: 800 7px/1 var(--indie-font) !important;
  letter-spacing: 0.2px !important;
}

.indie-nav-btn.highlight-gacha {
  color: #facc15 !important;
}

.indie-nav-btn.highlight-donate {
  color: #f97316 !important;
}

/* 4. CLEAN IN-GAME SCORE DISPLAY */
.hud-center-score {
  font: 900 44px/1 var(--indie-font) !important;
  color: #ffffff !important;
  text-shadow: 0 3px 0 #0f172a, 0 6px 12px rgba(0, 0, 0, 0.4) !important;
  letter-spacing: 1px !important;
}

/* 5. REWORKED GAME OVER SCREEN */
.indie-over-modal {
  width: min(340px, 92vw) !important;
  max-width: 340px !important;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
  border: 2px solid #475569 !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75) !important;
  text-align: center !important;
  color: #f1f5f9 !important;
}

.over-title {
  font: 900 16px/1 var(--indie-font) !important;
  color: #facc15 !important;
  margin: 0 0 10px !important;
  letter-spacing: 0.8px !important;
}

.over-score-board {
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid #334155 !important;
  border-radius: 12px !important;
  padding: 10px 8px !important;
  margin-bottom: 12px !important;
}

.over-score-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex: 1 !important;
}

.over-score-divider {
  width: 1px !important;
  height: 36px !important;
  background: #334155 !important;
}

.over-score-board .score-label {
  font: 800 8.5px/1 var(--indie-font) !important;
  color: #94a3b8 !important;
  margin-bottom: 3px !important;
}

.over-score-board .score-number {
  font: 900 24px/1 var(--indie-font) !important;
  color: #ffffff !important;
}

.over-score-board .score-number.best {
  color: #fbbf24 !important;
}

.new-best-pill {
  background: #ef4444 !important;
  color: #fff !important;
  font: 900 7px/1 var(--indie-font) !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  margin-top: 3px !important;
  animation: pulse 1s infinite alternate !important;
}

.over-actions-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.indie-btn {
  font: 900 11px/1 var(--indie-font) !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.12s ease !important;
}

.indie-btn.primary.hero {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%) !important;
  border: 1.5px solid #86efac !important;
  box-shadow: 0 3px 0 #14532d !important;
  color: #fff !important;
  font-size: 12px !important;
  padding: 11px 16px !important;
}

.indie-btn.primary.hero:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #14532d !important;
}

.over-secondary-row {
  display: flex !important;
  gap: 6px !important;
}

.indie-btn.secondary {
  flex: 1 !important;
  background: #334155 !important;
  border: 1px solid #475569 !important;
  color: #cbd5e1 !important;
  padding: 7px 8px !important;
}

.indie-btn.secondary:hover {
  background: #475569 !important;
  color: #fff !important;
}
