:root { --ink: #3a2414; --paper: #f7ead0; --paper2: #ecd8b2; --wood: #7a5232; --gold: #ffd54a; --font: "Trebuchet MS", "Segoe UI", "Nunito", system-ui, sans-serif; --title: "Arial Rounded MT Bold", "Segoe UI Black", "Trebuchet MS", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #2a1d14; font-family: var(--font); color: var(--ink); user-select: none; }
#app { position: fixed; inset: 0; }
#c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#world-ui, #ui { position: absolute; inset: 0; pointer-events: none; }
#ui button, #ui .card, #ui .interactive { pointer-events: auto; }
.hidden { display: none !important; }

/* loading */
#loading { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, #6a4a2c, #241710); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity .3s; z-index: 50; }
#loading.done { opacity: 0; pointer-events: none; }
.ld-title { font-family: var(--title); font-size: 64px; color: var(--gold); text-shadow: 0 4px 0 #7a4a12, 0 8px 18px rgba(0,0,0,.5); }
.ld-bar { width: 280px; height: 14px; border-radius: 10px; background: rgba(0,0,0,.35); overflow: hidden; border: 2px solid #8a6038; }
#ld-fill { height: 100%; width: 0; background: linear-gradient(90deg, #8fc85a, #ffd54a); transition: width .2s; }
#ld-text { color: #f3e3c8; font-size: 15px; }

/* buttons */
.btn { font-family: var(--title); font-size: 18px; color: #fff8e6; padding: 10px 22px; border-radius: 14px; border: 3px solid #4a2c14; background: linear-gradient(#a8743e, #7a4e26); box-shadow: 0 4px 0 #4a2c14, 0 8px 16px rgba(0,0,0,.35); cursor: pointer; text-shadow: 0 2px 0 rgba(0,0,0,.35); transition: transform .08s, filter .1s; margin: 4px; }
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #4a2c14; }
.btn.big { font-size: 26px; padding: 12px 38px; background: linear-gradient(#8fc85a, #5a9a32); border-color: #2f5a18; box-shadow: 0 5px 0 #2f5a18, 0 10px 20px rgba(0,0,0,.35); }
.btn.ghost { background: rgba(60,36,20,.55); border-color: rgba(255,240,210,.5); box-shadow: none; font-size: 15px; }

.screen { position: absolute; inset: 0; }
.small-hint { color: #fff3dc; font-size: 13px; opacity: .85; margin-top: 10px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }

/* title */
.title-wrap { position: absolute; left: 0; right: 0; top: 9%; display: flex; flex-direction: column; align-items: center; }
.logo { font-family: var(--title); font-size: 108px; letter-spacing: 2px; color: #ffd86a; background: linear-gradient(#fff3b0, #ffc93a 55%, #e0901a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 5px 0 #7a4512) drop-shadow(0 10px 18px rgba(40,20,5,.6)); -webkit-text-stroke: 2px #8a5012; }
.tagline { margin: 4px 0 26px; padding: 6px 20px; font-size: 20px; color: #fff3dc; background: rgba(70,40,20,.65); border: 2px solid rgba(255,220,160,.5); border-radius: 12px; }

/* story */
.story-box { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); width: min(760px, 90vw); background: linear-gradient(var(--paper), var(--paper2)); border: 4px solid #6a4426; border-radius: 18px; padding: 18px 26px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 3px rgba(255,255,255,.35); opacity: 0; }
.story-box.in { animation: popin .5s ease-out forwards; }
@keyframes popin { from { opacity: 0; transform: translate(-50%, 18px); } to { opacity: 1; transform: translate(-50%, 0); } }
.story-title { font-family: var(--title); font-size: 28px; color: #6a3a12; margin-bottom: 6px; }
.story-text { font-size: 20px; line-height: 1.45; }
.story-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.dots span { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #c9ad80; margin-right: 6px; }
.dots span.on { background: #6a9a32; }
.skip { position: absolute; top: 18px; right: 18px; }

/* select */
.sel-title { position: absolute; top: 18px; left: 0; right: 0; text-align: center; font-family: var(--title); font-size: 38px; color: #fff3cf; text-shadow: 0 3px 0 #6a3a12, 0 6px 14px rgba(0,0,0,.6); }
.sel-cards { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.card { position: relative; width: 112px; padding: 6px 6px 8px; border-radius: 16px; border: 3px solid #4a2c14; background: linear-gradient(var(--paper), var(--paper2)); cursor: pointer; text-align: center; box-shadow: 0 4px 0 #4a2c14, 0 8px 16px rgba(0,0,0,.35); transition: transform .12s; font-family: var(--font); color: var(--ink); }
.card canvas { width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff6e0, var(--bg)); display: block; margin: 0 auto 4px; }
.card .cname { font-family: var(--title); font-size: 17px; }
.card .crole { font-size: 12px; color: #fff; background: var(--bg); border-radius: 8px; display: inline-block; padding: 1px 8px; margin-top: 2px; }
.card .ckey { position: absolute; top: 4px; left: 8px; font-size: 12px; opacity: .6; }
.card.on { transform: translateY(-10px) scale(1.06); border-color: #e0a020; box-shadow: 0 0 0 3px var(--gold), 0 10px 20px rgba(0,0,0,.4); }
.card:hover { transform: translateY(-6px); }
.card.on:hover { transform: translateY(-10px) scale(1.06); }
.sel-info { position: absolute; right: 22px; top: 80px; width: 330px; background: linear-gradient(var(--paper), var(--paper2)); border: 4px solid #6a4426; border-radius: 18px; padding: 14px 16px; box-shadow: 0 10px 26px rgba(0,0,0,.4); font-size: 14px; line-height: 1.35; }
.si-name { font-family: var(--title); font-size: 26px; }
.si-role { display: inline-block; color: #fff; padding: 2px 12px; border-radius: 10px; font-weight: bold; margin: 4px 0 8px; }
.si-ab { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.si-ab .ico { flex: 0 0 44px; height: 44px; border-radius: 12px; padding: 5px; border: 2px solid rgba(0,0,0,.35); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.si-ab .mk { font-size: 11px; color: #7a5a3a; }
.si-stats { font-weight: bold; color: #a03a2a; }
.go { position: absolute; right: 22px; bottom: 26px; }

/* panels */
.panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 380px; max-width: 620px; text-align: center; background: linear-gradient(var(--paper), var(--paper2)); border: 4px solid #6a4426; border-radius: 20px; padding: 22px 30px; box-shadow: 0 14px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.panel h2 { font-family: var(--title); font-size: 34px; margin: 4px 0; color: #6a3a12; }
.panel p { font-size: 17px; line-height: 1.45; margin: 6px 0 10px; }
.panel .row { display: flex; gap: 8px; }
.panel .seed-ico svg { width: 70px; height: 70px; }
.screen.gameover, .screen.pause { background: rgba(30,18,10,.45); }
.vic-portrait canvas { width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, #fff6d0, #f0c050); border: 4px solid #e0a020; animation: bounce 1s infinite ease-in-out; }
@keyframes bounce { 0%,100% { transform: translateY(0) scale(1,1); } 40% { transform: translateY(-12px) scale(.95,1.06); } 80% { transform: translateY(0) scale(1.08,.92); } }
.story-line { font-style: italic; }
.stats { display: flex; gap: 24px; margin: 6px 0; }
.stats div { display: flex; flex-direction: column; } .stats b { font-size: 26px; font-family: var(--title); } .stats span { font-size: 12px; opacity: .75; }
.panel .sub { font-size: 14px; opacity: .8; }
.screen.victory .panel { left: auto; right: 3%; top: 50%; transform: translateY(-50%); max-width: 470px; min-width: 0; }

/* HUD */
#hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--font); }
.hud-tl { position: absolute; left: 14px; top: 14px; display: flex; gap: 10px; align-items: center; background: rgba(50,30,16,.72); border: 3px solid rgba(255,220,160,.45); border-radius: 18px; padding: 8px 14px 8px 8px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.portrait { width: 66px; height: 66px; border-radius: 50%; border: 3px solid #f0d090; overflow: hidden; }
.portrait canvas { width: 100%; height: 100%; }
.hud-name { font-family: var(--title); color: #fff3d6; font-size: 16px; margin-bottom: 4px; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.hpbar { position: relative; width: 210px; height: 18px; border-radius: 9px; background: #2a160c; border: 2px solid #120804; overflow: hidden; }
.hp-fill, .hp-lag { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; }
.hp-lag { background: #ffe0a0; }
.hp-fill { background: linear-gradient(#9ee06a, #4fa82a); transition: width .08s; }
.hp-fill.low { background: linear-gradient(#ff8a6a, #d83a2a); animation: pulse .6s infinite alternate; }
@keyframes pulse { to { filter: brightness(1.35); } }
#hud-hptext { position: absolute; inset: 0; text-align: center; font-size: 12px; line-height: 15px; color: #fff; font-weight: bold; text-shadow: 0 1px 2px #000; }
.seeds { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: #f0dcb8; font-size: 11px; }
.seeds svg { width: 18px; height: 18px; } .seeds .none { opacity: .6; }
.hud-top { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wave-pill { background: rgba(50,30,16,.75); border: 3px solid rgba(255,220,160,.45); color: #fff3d6; border-radius: 16px; padding: 6px 16px; font-family: var(--title); font-size: 17px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.wave-pill .zone { color: var(--gold); } .wave-pill .sep { opacity: .5; margin: 0 8px; } .wave-pill .en b { color: #ff9a7a; }
.objective { color: #fff6e0; font-size: 15px; text-shadow: 0 2px 3px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.5); font-weight: bold; }
.hud-tr { position: absolute; top: 14px; right: 14px; border: 3px solid rgba(255,220,160,.55); border-radius: 18px; overflow: hidden; background: rgba(50,30,16,.6); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
#minimap { display: block; width: 180px; height: 135px; }
.hud-bottom { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 34px; background: rgba(50,30,16,.6); border: 3px solid rgba(255,220,160,.4); border-radius: 20px; padding: 10px 14px 20px; }
.slot { position: relative; width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(color-mix(in srgb, var(--bg) 85%, white), var(--bg)); border: 3px solid #1e120a; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), 0 3px 0 rgba(0,0,0,.4); }
.slot-icon { position: absolute; inset: 7px; } .slot-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.slot-cd { position: absolute; inset: 0; border-radius: 13px; }
.slot-cdtext { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--title); font-size: 24px; color: #fff; text-shadow: 0 2px 2px #000; }
.slot.cooling .slot-icon { opacity: .7; }
.slot.flash { animation: ready .35s ease-out; }
@keyframes ready { 0% { box-shadow: 0 0 0 0 rgba(255,230,120,.9); transform: scale(1.12); } 100% { box-shadow: 0 0 0 14px rgba(255,230,120,0); transform: scale(1); } }
.slot-key { position: absolute; top: -9px; right: -9px; min-width: 24px; height: 22px; padding: 0 5px; border-radius: 8px; background: #fff3d6; border: 2px solid #1e120a; font-size: 11px; font-weight: bold; display: flex; align-items: center; justify-content: center; }
.mouse { display: inline-block; width: 11px; height: 15px; border: 2px solid #1e120a; border-radius: 6px; position: relative; }
.mouse.L::after, .mouse.R::after { content: ""; position: absolute; top: 0; width: 50%; height: 45%; background: #d83a2a; }
.mouse.L::after { left: 0; border-top-left-radius: 4px; } .mouse.R::after { right: 0; border-top-right-radius: 4px; }
.slot-name { position: absolute; bottom: -19px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10.5px; color: #fff3d6; font-weight: bold; text-shadow: 0 1px 2px #000; }
.hud-msg { position: absolute; top: 15%; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.msg { font-family: var(--title); font-size: 22px; color: #fff8e0; background: rgba(50,30,16,.7); padding: 6px 18px; border-radius: 14px; border: 2px solid rgba(255,220,160,.4); animation: msgin .35s ease-out; transition: opacity .5s, transform .5s; }
.msg.big { font-size: 40px; background: none; border: none; color: #ffe070; text-shadow: 0 4px 0 #7a4512, 0 8px 16px rgba(0,0,0,.6); }
.msg.out { opacity: 0; transform: translateY(-14px); }
@keyframes msgin { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.hud-hint { position: absolute; bottom: 112px; left: 50%; transform: translateX(-50%); color: #fff6e0; font-size: 14px; background: rgba(40,24,12,.6); padding: 5px 14px; border-radius: 10px; white-space: nowrap; transition: opacity .3s; }
.seed-ui { position: absolute; top: 58%; left: 50%; transform: translateX(-50%); text-align: center; color: #fff; font-family: var(--title); text-shadow: 0 2px 3px #000; }
.seed-bar { width: 180px; height: 12px; border-radius: 6px; background: rgba(0,0,0,.5); margin: 6px auto; overflow: hidden; border: 2px solid #fff3d6; }
#hud-seedfill { height: 100%; width: 0; background: linear-gradient(90deg, #7fc8f0, #9ee06a); }

/* world-space UI */
.dmg { position: absolute; left: 0; top: 0; font-family: var(--title); font-size: 25px; font-weight: 900; color: #fff6c8; -webkit-text-stroke: 2px #2a1408; paint-order: stroke fill; text-shadow: 0 3px 0 #2a1408, 0 0 8px rgba(0,0,0,.7); pointer-events: none; display: none; will-change: transform; white-space: nowrap; }
.dmg.crit { color: #ffcf1a; font-size: 36px; }
.dmg.player { color: #ff6a5a; font-size: 22px; }
.dmg.heal { color: #9ef07a; font-size: 20px; }
.ebar { position: absolute; left: 0; top: 0; width: 40px; height: 6px; background: #2a160c; border: 1.5px solid #120804; border-radius: 4px; overflow: hidden; display: none; pointer-events: none; }
.ebar div { height: 100%; background: #e04a30; }
.ebar.elite { width: 64px; height: 9px; border-color: #5a3a10; } .ebar.elite div { background: linear-gradient(#ffb04a, #e06a20); }
.ebar.buffed div { background: #f0b030; }

.msg.talk { font-family: inherit; font-size: 17px; font-style: italic; max-width: 560px; text-align: center; background: rgba(255,246,224,.9); color: #4a2e14; border-color: #c9a46a; }
.plant-hp { margin: 6px auto 0; width: 230px; display: none; align-items: center; gap: 8px; color: #fff6e0; font-size: 13px; font-weight: bold; text-shadow: 0 2px 3px rgba(0,0,0,.9); }
.plant-hp.on { display: flex; }
.plant-hp .bar { flex: 1; height: 11px; border-radius: 6px; background: rgba(30,20,10,.65); border: 2px solid #f4e6c0; overflow: hidden; }
.plant-hp .bar div { height: 100%; width: 100%; background: linear-gradient(90deg, #6fcf4a, #b8f070); transition: width .2s; }
.plant-hp.hurt .bar div { background: linear-gradient(90deg, #e05a3a, #f0a050); }
.ebar.last { outline: 2px solid #ffd54a; }

/* ---------------- co-op + language (m2) ---------------- */
input { font-family: var(--title); }
.title-btns { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.title-btns .row { display: flex; gap: 12px; }
.join-box { display: flex; gap: 8px; align-items: center; background: rgba(60,36,20,.7); padding: 8px 10px; border-radius: 14px; border: 2px solid rgba(255,220,160,.5); pointer-events: auto; }
.join-box input, .lb-name input { pointer-events: auto; font-size: 22px; width: 120px; text-align: center; letter-spacing: 4px; text-transform: uppercase; padding: 6px 8px; border-radius: 10px; border: 3px solid #4a2c14; background: #fff8e6; color: var(--ink); outline: none; }
.net-err { min-height: 22px; color: #ffe0c0; font-size: 15px; font-weight: bold; text-shadow: 0 1px 3px #000; max-width: 520px; text-align: center; }
.net-err.busy { color: #fff3b0; }
.lang-sel { display: flex; gap: 6px; margin-top: 16px; justify-content: center; }
.lang-sel .lang { pointer-events: auto; font-family: var(--title); font-size: 13px; padding: 4px 10px; border-radius: 10px; border: 2px solid rgba(255,230,180,.6); background: rgba(50,30,16,.6); color: #fff3dc; cursor: pointer; }
.lang-sel .lang.on { background: #ffd54a; color: #4a2c14; border-color: #7a4a12; }
.panel .lang-sel .lang { background: rgba(120,80,40,.25); color: var(--ink); border-color: #a8845a; }
.panel .lang-sel .lang.on { background: #ffd54a; }
.btn.small { font-size: 13px; padding: 4px 10px; border-radius: 10px; border-width: 2px; box-shadow: 0 2px 0 #4a2c14; }
.sel-back { position: absolute; left: 18px; top: 18px; }

/* lobby */
.lobby { position: absolute; inset: 0; }
.lb-head { position: absolute; top: 14px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lb-title { font-family: var(--title); font-size: 34px; color: #fff3cf; text-shadow: 0 3px 0 #6a3a12, 0 6px 14px rgba(0,0,0,.6); }
.lb-code { display: flex; align-items: center; gap: 10px; background: rgba(50,30,16,.78); border: 3px solid rgba(255,220,160,.5); border-radius: 14px; padding: 4px 8px 4px 14px; color: #fff3dc; }
.lb-code b { font-family: var(--title); font-size: 30px; letter-spacing: 6px; color: var(--gold); user-select: text; }
.lb-players { position: absolute; left: 16px; top: 110px; display: flex; flex-direction: column; gap: 6px; width: 250px; }
.lb-slot { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; background: linear-gradient(var(--paper), var(--paper2)); border: 3px solid #6a4426; border-radius: 14px; padding: 4px 8px 4px 4px; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.lb-slot.empty { opacity: .55; background: rgba(247,234,208,.5); border-style: dashed; }
.lb-slot.me { border-color: #e0a020; box-shadow: 0 0 0 2px var(--gold), 0 4px 10px rgba(0,0,0,.3); }
.lb-por { grid-row: span 3; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff6e0, var(--bg, #c9ad80)); }
.lb-por canvas { width: 100%; height: 100%; }
.lb-pname { font-family: var(--title); font-size: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lb-pname .crown { color: #d89a10; }
.lb-pcls { font-size: 12px; opacity: .75; }
.lb-state { font-size: 12px; font-weight: bold; color: #9a6a3a; }
.lb-slot.ready .lb-state { color: #3a8a1a; }
.lb-row { position: absolute; right: 22px; top: 110px; }
.lb-name { display: flex; flex-direction: column; gap: 4px; color: #fff3dc; font-weight: bold; text-shadow: 0 1px 3px #000; font-size: 14px; }
.lb-name input { width: 190px; letter-spacing: 0; text-transform: none; font-size: 18px; }
.lb-cards { bottom: 104px; }
.card.taken { opacity: .45; filter: grayscale(.6); cursor: not-allowed; }
.card.taken:hover { transform: none; }
.card .ctaken { font-size: 11px; font-weight: bold; color: #7a3a1a; min-height: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lb-actions { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; }
#lb-ready { min-width: 260px; }
#lb-ready.on { background: linear-gradient(#e8c060, #c8901a); border-color: #6a4a10; box-shadow: 0 5px 0 #6a4a10, 0 10px 20px rgba(0,0,0,.35); }
#lb-hint { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; }

/* co-op HUD */
.hud-party { position: absolute; left: 14px; top: 112px; display: flex; flex-direction: column; gap: 6px; }
.pf { display: flex; align-items: center; gap: 6px; background: rgba(50,30,16,.68); border: 2px solid rgba(255,220,160,.4); border-radius: 12px; padding: 3px 10px 3px 3px; width: 170px; }
.pf-por { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff6e0, var(--bg)); flex: 0 0 34px; }
.pf-por canvas { width: 100%; height: 100%; }
.pf-info { flex: 1; min-width: 0; }
.pf-name { color: #fff3d6; font-size: 12px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-hp { height: 7px; border-radius: 4px; background: #2a160c; overflow: hidden; margin-top: 2px; }
.pf-hp div { height: 100%; background: linear-gradient(#9ee06a, #4fa82a); }
.pf-hp div.water { background: linear-gradient(90deg, #7fc8f0, #9ee06a); }
.pf.down { border-color: #7fc8f0; animation: pulse .7s infinite alternate; }
.pf.down .pf-por { filter: grayscale(.8); }
.ntag { position: absolute; left: 0; top: 0; display: none; pointer-events: none; text-align: center; }
.ntag span { display: inline-block; font-size: 12px; font-weight: bold; color: #fff; background: color-mix(in srgb, var(--bg) 75%, black); padding: 1px 7px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.7); white-space: nowrap; text-shadow: 0 1px 1px rgba(0,0,0,.6); }
.ntag .nhp { width: 40px; height: 4px; margin: 2px auto 0; background: rgba(0,0,0,.5); border-radius: 3px; overflow: hidden; }
.ntag .nhp div { height: 100%; background: #9ee06a; }
.ntag.seed span { background: #2a7ab0; animation: pulse .6s infinite alternate; }
.ntag.seed .nhp { width: 56px; height: 6px; } .ntag.seed .nhp div { background: linear-gradient(90deg, #7fc8f0, #9ee06a); }
.hud-prompt { position: absolute; bottom: 120px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: rgba(40,70,100,.8); border: 3px solid #bfe6ff; color: #fff; font-weight: bold; font-size: 16px; padding: 6px 14px; border-radius: 14px; flex-wrap: wrap; justify-content: center; max-width: 520px; }
.hud-prompt .key { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #fff3d6; color: #1e120a; border: 2px solid #1e120a; font-family: var(--title); }
.hud-prompt.active .key { background: #7fc8f0; }
.hud-prompt .pbar { width: 100%; height: 8px; border-radius: 5px; background: rgba(0,0,0,.4); overflow: hidden; }
.hud-prompt .pbar div { height: 100%; width: 0; background: linear-gradient(90deg, #7fc8f0, #9ee06a); }
.netinfo { background: rgba(50,30,16,.8); color: #fff3d6; font-size: 11px; font-weight: bold; text-align: center; padding: 3px 6px; }
.vic-portrait.team { display: flex; gap: 6px; justify-content: center; }
.vic-portrait.team canvas { width: 72px; height: 72px; }
.vic-portrait.team canvas:nth-child(2) { animation-delay: .15s; } .vic-portrait.team canvas:nth-child(3) { animation-delay: .3s; } .vic-portrait.team canvas:nth-child(4) { animation-delay: .45s; } .vic-portrait.team canvas:nth-child(5) { animation-delay: .6s; }
.panel .sub.wait { font-weight: bold; }
/* end screens: inert + fading in for the first second (stray attack clicks) */
.screen.arming { pointer-events: none; }
.screen.arming .btn { opacity: .45; }
.screen .btn { transition: opacity .35s; }
.btn.warn { background: #c8503a !important; color: #fff !important; border-color: #7a2414 !important; }
.plant-arrow { position: absolute; left: 0; top: 0; width: 64px; height: 64px; pointer-events: none; display: none; }
.plant-arrow .pa-ico { position: absolute; inset: 8px; border-radius: 50%; background: rgba(255,246,224,.92); border: 3px solid #5a9a3a; font-size: 26px; line-height: 42px; text-align: center; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.plant-arrow .pa-tri { position: absolute; left: 50%; top: 50%; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 14px solid #5a9a3a; transform: rotate(var(--ang)) translate(34px, -50%); transform-origin: 0 0; }
.plant-arrow.hurt .pa-ico { border-color: #e0402a; background: #ffe0d6; animation: paPulse .5s infinite alternate; }
.plant-arrow.hurt .pa-tri { border-left-color: #e0402a; }
@keyframes paPulse { from { transform: scale(1); } to { transform: scale(1.18); } }
