/* Gods vs Aliens: Olympus Defense — dark IQ house style, gold vs obsidian-green, pink #FF00C6 accents
   © 2026 Andreas Trejo · IQ Bonkers */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: #07070d; color: #eef0f8; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh; background: radial-gradient(1100px 500px at 50% -8%, #1c1430 0%, #07070d 60%); }
#app { max-width: 680px; margin: 0 auto; padding: 10px 10px 22px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; }
.blogo { font-size: 30px; filter: drop-shadow(0 0 9px #ffd75e); }
.brand h1 { font-size: 19px; letter-spacing: 1.5px; background: linear-gradient(90deg, #ffd75e, #FF00C6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand p { font-size: 9.5px; letter-spacing: 2.2px; color: #9aa3c7; }
.hud { display: flex; gap: 6px; }
.chip { background: #151828; border: 1px solid #2b3050; border-radius: 999px; padding: 5px 11px; font-weight: 800; font-size: 14px; }
.chip.gold { color: #ffd75e; border-color: #8a6d1f; }
.chip.lives { color: #ff8fa5; border-color: #6e2438; }
#hud-phase { text-align: center; color: #c9cdf0; font-size: 13.5px; font-weight: 700; margin: 8px 0 6px; letter-spacing: .4px; }
#stage { position: relative; border-radius: 14px; overflow: hidden; border: 2px solid #2b3050; box-shadow: 0 0 0 1px #000, 0 14px 40px rgba(0,0,0,.6), 0 0 34px rgba(255,0,198,.12); }
canvas { display: block; width: 100%; height: auto; touch-action: manipulation; cursor: pointer; }
#msg { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: rgba(20,8,26,.92); border: 1.5px solid #FF00C6; color: #ffd7f4; font-weight: 800; font-size: 13.5px; padding: 7px 14px; border-radius: 999px; pointer-events: none; transition: opacity .25s; opacity: 0; white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; }
.overlay { position: absolute; inset: 0; background: rgba(5,5,12,.82); display: none; align-items: center; justify-content: center; padding: 14px; z-index: 5; }
.overlay:not(.hide) { display: flex; }
#end { display: none; }
#end.show { display: flex; }
.ocard { background: linear-gradient(180deg, #191c31, #101222); border: 1.5px solid #c9a227; border-radius: 16px; padding: 20px 18px; max-width: 480px; text-align: center; box-shadow: 0 0 44px rgba(255,0,198,.25); }
.ocard h2 { font-size: 20px; letter-spacing: 1px; color: #ffd75e; margin-bottom: 9px; }
.ocard p { font-size: 14px; line-height: 1.5; color: #d6daf2; margin-bottom: 10px; }
.ocard .how { font-size: 12.5px; color: #aeb6dd; text-align: left; background: rgba(255,0,198,.07); border: 1px solid rgba(255,0,198,.3); border-radius: 10px; padding: 9px 11px; }
.oemoji { font-size: 42px; margin-bottom: 6px; }
.maprow { display: flex; gap: 8px; justify-content: center; margin: 6px 0 12px; flex-wrap: wrap; }
.mapbtn { background: #151828; color: #c9cdf0; border: 1.5px solid #2b3050; border-radius: 999px; padding: 8px 13px; font-weight: 800; font-size: 13px; cursor: pointer; min-height: 44px; }
.mapbtn.sel { background: #FF00C6; color: #fff; border-color: #FF00C6; }
.bigbtn { background: linear-gradient(180deg, #ff3fd4, #d600aa); color: #fff; border: none; border-radius: 999px; padding: 14px 30px; font-size: 17px; font-weight: 900; letter-spacing: 1px; cursor: pointer; box-shadow: 0 6px 22px rgba(255,0,198,.45); min-height: 52px; }
.bigbtn:active { transform: scale(.97); }
.fine { font-size: 10.5px !important; color: #6d76a0 !important; margin-top: 10px; }
#end-stats .versus { display: inline-block; margin-top: 8px; font-size: 11px; letter-spacing: .6px; color: #7ef0e0; border: 1px dashed rgba(126,240,224,.5); padding: 5px 9px; border-radius: 8px; }
#preview { margin-top: 10px; background: #101222; border: 1px solid #2b3050; border-radius: 12px; padding: 8px 12px; }
.pvhead { font-size: 11px; letter-spacing: 1.6px; color: #FF00C6; font-weight: 900; margin-bottom: 5px; }
.pvrow { display: flex; flex-wrap: wrap; gap: 5px; }
.pv { background: #1a2b1e; border: 1px solid #2e5d3a; color: #b7ffce; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.pv.fly { border-color: #8fd8ff; color: #cfeaff; background: #16222e; }
#panel { margin-top: 8px; background: #101222; border: 1px solid #2b3050; border-radius: 12px; padding: 10px 12px; min-height: 74px; }
.ptitle { font-weight: 900; font-size: 15px; margin-bottom: 3px; }
.pstats { font-size: 12.5px; color: #aeb6dd; line-height: 1.45; }
.pbtns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.act { border: none; border-radius: 999px; padding: 10px 16px; font-weight: 900; font-size: 13.5px; cursor: pointer; min-height: 44px; }
.act.up { background: #FF00C6; color: #fff; }
.act.sell { background: #232842; color: #ffd75e; border: 1px solid #8a6d1f; }
.maxed { color: #ffd75e; font-weight: 900; font-size: 13px; align-self: center; }
#shop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 8px; }
.card { background: linear-gradient(180deg, #181b30, #11131f); border: 1.5px solid #2b3050; border-radius: 12px; padding: 9px 6px 8px; color: #eef0f8; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 96px; }
.card.sel { border-color: #FF00C6; box-shadow: 0 0 14px rgba(255,0,198,.45); background: linear-gradient(180deg, #2a1030, #160a20); }
.card.poor { opacity: .55; }
.card .glyph { font-size: 24px; }
.card .cname { font-size: 11px; font-weight: 900; text-align: center; line-height: 1.15; }
.card .crole { font-size: 9.5px; color: #9aa3c7; text-align: center; line-height: 1.2; }
.card .ccost { font-size: 12.5px; font-weight: 900; color: #ffd75e; }
#controls { display: flex; gap: 7px; margin-top: 9px; }
.ctl { flex: 1; background: #1b1f36; color: #eef0f8; border: 1.5px solid #2b3050; border-radius: 12px; padding: 12px 4px; font-weight: 900; font-size: 14px; cursor: pointer; min-height: 50px; }
.ctl.primary { background: linear-gradient(180deg, #ff3fd4, #d600aa); border-color: #FF00C6; color: #fff; box-shadow: 0 4px 18px rgba(255,0,198,.4); }
.ctl:disabled { opacity: .45; cursor: default; box-shadow: none; }
.ctl:active { transform: scale(.97); }
footer { margin-top: 14px; font-size: 11.5px; line-height: 1.55; color: #79819f; }
@media (max-width: 480px) {
  .brand h1 { font-size: 16px; }
  #shop { grid-template-columns: repeat(2, 1fr); }
  .card { min-height: 84px; }
  #controls { flex-wrap: wrap; }
  .ctl { flex: 1 1 40%; font-size: 13px; }
}
