@font-face { font-family: 'Lilita One'; src: url(fonts/LilitaOne-Regular.ttf) format('truetype'); font-display: block; }
@font-face { font-family: 'Fredoka'; src: url(fonts/fredoka.woff2) format('woff2'); font-weight: 300 700; font-display: block; }
:root { --hs: 1; --ts: 1; --hd: 'Lilita One', 'Fredoka', system-ui, sans-serif; --ui: 'Helvetica Neue', 'Arial', 'Segoe UI', sans-serif;
  --ol: 0 0 2px #000, 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000, 0 2px 3px rgba(0,0,0,.6); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #2aa8e8; font-family: var(--ui); color: #fff; user-select: none; -webkit-user-select: none; touch-action: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
button { font-family: var(--ui); font-weight: 700; cursor: pointer; border: 0; color: #fff; }
kbd { font-family: var(--ui); font-weight: 700; font-size: 10px; }
body.touch kbd { display: none; }
.tonly { display: none; }
body.touch .tonly { display: flex; }

#hud { position: fixed; inset: 0; pointer-events: none; font-weight: 700; }
#hud button, #hud .click { pointer-events: auto; }
#cross { position: absolute; left: 50%; top: 46%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.4); opacity: .7; }
body.touch #cross { display: none; }

/* ---------- left stack (scaled from a 720p layout) ---------- */
#left { position: absolute; left: calc(8px * var(--hs)); bottom: calc(22px * var(--hs)); width: 245px; display: flex; flex-direction: column; align-items: flex-start; transform: scale(var(--hs)); transform-origin: 0 100%; text-shadow: var(--ol); }
#icons { display: flex; gap: 6px; margin-bottom: 6px; }
#icons button { width: 22px; height: 22px; padding: 0; background: none; font-size: 17px; line-height: 22px; color: #fff; filter: drop-shadow(0 1px 1px #000); opacity: .95; }
#compass { width: 74px; height: 74px; border-radius: 50%; margin: 4px 0 18px 12px; background: radial-gradient(circle at 40% 35%, #59d36a, #1f8f34 70%); border: 3px solid #0d5a1c; box-shadow: 0 3px 6px rgba(0,0,0,.45), inset 0 0 0 3px rgba(255,255,255,.25); position: relative; }
#compass i { position: absolute; left: 50%; top: 50%; width: 10px; height: 54px; margin: -27px -5px; background: linear-gradient(#e8333a 50%, #2f6be8 50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transition: transform .3s; }
#compass.on { background: radial-gradient(circle at 40% 35%, #ff6a6a, #b81f2a 70%); border-color: #6a0d12; }
#quest { width: 245px; margin-bottom: 18px; }
#quest .qt { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,0)); padding: 3px 4px; }
#quest .qt b { font-size: 18px; font-weight: 700; }
#qHelp { width: 26px; height: 26px; background: rgba(80,80,80,.85); border: 1px solid rgba(255,255,255,.35); font-size: 15px; text-shadow: none; }
#quest small { display: block; font-size: 15px; color: #e0e0e0; margin: 6px 0 2px 4px; }
#quest .qp { display: flex; align-items: center; gap: 6px; margin-left: 4px; font-size: 15px; } #quest .qbar { flex: 1; height: 5px; background: rgba(80,80,40,.7); max-width: 210px; } #quest .qbar i { display: block; height: 100%; width: 0; background: #e8d23a; }
#quest .qr { display: flex; gap: 18px; margin: 10px 0 0 8px; font-size: 16px; }
#quest .cash::before { content: ''; display: inline-block; width: 20px; height: 12px; margin-right: 8px; background: #4fae4a; border-radius: 2px; transform: rotate(-12deg); box-shadow: inset 0 0 0 2px #2e7a2c; vertical-align: -1px; }
#quest .exp::before { content: ''; display: inline-block; width: 22px; height: 14px; margin-right: 4px; background: linear-gradient(#ffe27a, #d8a520); border-radius: 3px; vertical-align: -2px; }
#menuBox { position: relative; margin-bottom: 4px; }
.ybtn { background: linear-gradient(#ffe95c, #f5d020); color: #1b1b1b; font-size: 21px; font-weight: 700; padding: 4px 26px; border: 1px solid #b89a00; text-shadow: none; position: relative; }
.ybtn:active { filter: brightness(.9); }
#menuGrid { display: grid; grid-template-columns: 118px 118px; gap: 4px 6px; }
#menuGrid .ybtn { padding: 4px 0; font-size: 22px; }
#ptsBadge, .badge { position: absolute; top: -9px; right: -10px; min-width: 22px; height: 22px; border-radius: 11px; background: #e8333a; color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
#money { font-size: 31px; color: #59e65a; letter-spacing: .5px; line-height: 1.15; }
#lvTxt { font-size: 28px; line-height: 1.1; margin-bottom: 2px; }
.bar { position: relative; width: 245px; height: 31px; background: rgba(0,0,0,.65); margin-top: 3px; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transition: width .12s; }
.bar em { position: absolute; left: 7px; top: 0; font-style: normal; font-size: 21px; line-height: 31px; }
.bar span { position: absolute; right: 8px; top: 0; font-size: 21px; line-height: 31px; }
.bar.hp i { background: #2fd62a; } .bar.en i { background: #3ad6e8; }
.bar.xp { height: 6px; margin: 16px 0 6px; overflow: visible; background: #111; } .bar.xp i { background: #9a34d8; }
.bar.xp span { right: auto; left: 0; width: 100%; text-align: center; top: -15px; font-size: 13px; line-height: 14px; }

/* ---------- top: guide, banner, boss, notifications ---------- */
#guide { position: absolute; left: 50%; top: calc(108px * var(--hs)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; font-size: calc(16px * var(--hs)); text-shadow: var(--ol); }
#gArrow { display: inline-block; width: 26px; text-align: center; color: #5fe05a; font-style: normal; font-size: 22px; }
#islandBanner { position: absolute; left: 50%; top: 11%; transform: translateX(-50%); text-align: center; opacity: 0; transition: opacity .6s; text-shadow: var(--ol); white-space: nowrap; }
#islandBanner.show { opacity: 1; }
#ibName { display: block; font-size: calc(30px * var(--hs)); font-weight: 700; }
#ibLv { font-size: calc(16px * var(--hs)); color: #ffe27a; }
#boss { position: absolute; left: 50%; top: 6.5%; width: 46%; transform: translateX(-50%); text-align: center; text-shadow: var(--ol); }
#bossName { font-size: calc(19px * var(--hs)); }
#boss .bar { width: 100%; height: calc(20px * var(--hs)); background: #3a3a3a; border: 2px solid #222; margin-top: 4px; }
#bossFill { background: #3fd23f !important; } #bossTrail { background: #b8262e !important; transition: width .9s ease-in .25s !important; }
#bossNum { position: absolute; inset: 0; text-align: center; right: 0 !important; font-size: calc(11px * var(--hs)) !important; line-height: calc(17px * var(--hs)) !important; }
#notes { position: absolute; left: 50%; top: 10.5%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; width: 80%; }
.note { font-size: calc(19px * var(--hs)); text-shadow: var(--ol); white-space: nowrap; animation: nin .2s ease-out; }
.note.big { font-size: calc(23px * var(--hs)); }
@keyframes nin { from { transform: translateY(-8px); opacity: 0; } }
#tele { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); font-size: calc(44px * var(--hs)); color: #e8333a; text-shadow: 0 0 3px #fff, 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff; font-weight: 800; }

/* ---------- right: mastery + skill panel ---------- */
#skillsBox { position: absolute; right: calc(8px * var(--hs)); bottom: calc(8px * var(--hs)); width: 215px; transform: scale(var(--hs)); transform-origin: 100% 100%; text-shadow: var(--ol); }
#mastHead { text-align: center; } #mastHead b { font-size: 25px; font-weight: 700; }
.mbar { position: relative; height: 6px; background: #111; margin: 2px 0 4px; } .mbar i { position: absolute; left: 0; top: 0; bottom: 0; background: #3fd23f; }
.mbar span { position: absolute; left: 0; right: 0; top: -6px; text-align: center; font-size: 11px; line-height: 12px; }
#skills { background: linear-gradient(rgba(70,70,70,.62), rgba(40,40,40,.62)); padding: 6px 4px 4px; }
#wName { text-align: center; font-size: 28px; font-weight: 800; letter-spacing: .5px; margin-bottom: 4px; }
.sk { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 2px 6px; pointer-events: auto; cursor: pointer; }
.sk span { font-size: 21px; font-weight: 700; max-width: 120px; line-height: 1.05; }
.sk .r { text-align: right; font-size: 17px; line-height: 1.3; } .sk .r b { display: block; font-weight: 700; }
.sk.lock { color: rgba(255,255,255,.38); text-shadow: none; }
.sk .cd { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(210,210,210,.35); }
.sk em { display: none; }
#abil { position: absolute; left: 50%; bottom: calc(66px * var(--hs)); transform: translateX(-50%) scale(var(--hs)); transform-origin: 50% 100%; display: flex; gap: 6px; }
.ab { position: relative; width: 34px; height: 34px; background: rgba(40,40,40,.6); border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; font-size: 17px; }
.ab small { position: absolute; left: 2px; top: 0; font-size: 8px; }
.ab.on { border-color: #3fe0ff; }
.ab b { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); font-size: 13px; text-shadow: var(--ol); }
#hotbar { position: absolute; left: 50%; bottom: calc(10px * var(--hs)); transform: translateX(-50%) scale(var(--hs)); transform-origin: 50% 100%; display: flex; gap: 6px; }
.slot { position: relative; width: 50px; height: 50px; background: rgba(40,40,40,.55); border: 2px solid transparent; display: grid; place-items: center; pointer-events: auto; cursor: pointer; }
.slot i { font-style: normal; font-size: 26px; line-height: 1; filter: drop-shadow(0 1px 1px #000); }
.slot small { display: none; } .slot kbd { position: absolute; top: 1px; left: 3px; font-size: 9px; text-shadow: var(--ol); }
.slot.on { border-color: #3fe0ff; box-shadow: 0 0 6px rgba(63,224,255,.6); }
.slot.empty { display: none; }

#prompt { position: absolute; left: 50%; top: 58%; transform: translateX(-50%) scale(var(--hs)); background: rgba(25,25,25,.7); border-radius: 8px; padding: 6px 12px 6px 6px; display: flex; gap: 10px; align-items: center; font-size: 17px; pointer-events: auto; cursor: pointer; }
#prompt kbd { font-size: 16px; background: #fff; color: #111; width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; }
#fx2d { position: absolute; inset: 0; overflow: hidden; }
.dmg { position: absolute; font-weight: 800; font-size: 21px; color: #ff5a3a; text-shadow: var(--ol); white-space: nowrap; will-change: transform; }
.ebar { position: absolute; width: 70px; height: 7px; margin-left: -35px; background: rgba(0,0,0,.6); overflow: hidden; }
.ebar i { display: block; height: 100%; background: #3fd23f; }
#hurtFx { position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(255,0,0,.7); opacity: 0; transition: opacity .25s; }

/* ---------- dialog (bottom band + choices on the right) ---------- */
#dialog { position: fixed; inset: 0; pointer-events: none; text-shadow: var(--ol); font-weight: 700; }
#dialog .dmain { position: absolute; left: 50%; top: 73%; transform: translateX(-50%); width: min(820px, 92vw); text-align: center; }
#dialog .band { background: linear-gradient(90deg, rgba(0,0,0,0), rgba(90,80,0,.55) 25%, rgba(255,225,60,.55) 50%, rgba(90,80,0,.55) 75%, rgba(0,0,0,0)); padding: 4px 0; }
#dName { font-size: calc(25px * var(--hs)); }
#dialog .sub { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 3px; font-size: calc(18px * var(--hs)); }
#dialog .sub::before, #dialog .sub::after { content: ''; height: 1px; width: 28%; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); } #dialog .sub::after { transform: scaleX(-1); }
#dialog .sub i { font-style: normal; } .orn { opacity: .9; }
#dText { margin: 4px 0 0; font-size: calc(19px * var(--hs)); line-height: 1.3; }
#dText .g { color: #59e65a; }
#dOpts { position: absolute; right: 7%; top: 50%; transform: translateY(-50%); width: min(440px, 46vw); max-height: 52vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; pointer-events: auto; }
.opt { display: flex; align-items: center; gap: 10px; min-height: calc(46px * var(--hs)); padding: 4px 14px 4px 10px; background: linear-gradient(90deg, rgba(25,25,25,.85), rgba(25,25,25,.55)); cursor: pointer; text-align: left; }
.opt:hover { background: linear-gradient(90deg, rgba(60,60,60,.9), rgba(40,40,40,.6)); }
.opt .ic { font-size: calc(24px * var(--hs)); width: 34px; text-align: center; }
.opt .n { flex: 1; } .opt .n b { display: block; font-size: calc(20px * var(--hs)); font-weight: 700; } .opt .n small { display: block; font-size: calc(13px * var(--hs)); color: #d0d0d0; font-weight: 600; }
.opt .p { font-size: calc(18px * var(--hs)); color: #59e65a; white-space: nowrap; }
.opt.off { opacity: .5; } .opt.accept .n b { color: #59e65a; }
.x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; background: #e8333a; border: 2px solid #8a1018; font-size: 16px; }

/* ---------- panels: yellow header, dark body ---------- */
#panel { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--hs)); width: 340px; max-height: 80vh; display: flex; flex-direction: column; background: rgba(20,20,20,.75); text-shadow: var(--ol); }
#panel.wide { width: 620px; }
.ph { position: relative; background: linear-gradient(#ffe95c, #f5d020); padding: 5px 40px; text-align: center; } .ph b { color: #1b1b1b; font-size: 22px; text-shadow: none; }
#pBody { padding: 8px 10px 10px; overflow: auto; font-weight: 700; }
.stat { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.stat .ic { font-size: 18px; width: 24px; text-align: center; } .stat .n { flex: 1; font-size: 15px; } .stat .v { font-size: 15px; margin-right: 6px; }
.stat button { font-size: 14px; padding: 3px 10px; background: linear-gradient(#ffe95c, #f5d020); color: #1b1b1b; border: 1px solid #b89a00; }
.stat button:disabled { opacity: .45; }
.pfoot { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 2px; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.card2 { padding: 8px; background: rgba(255,255,255,.07); border: 2px solid transparent; text-align: center; }
.card2 .ic { font-size: 30px; } .card2 b { display: block; font-size: 15px; margin: 4px 0; } .card2 small { display: block; color: #ccc; font-size: 12px; margin-bottom: 6px; }
.card2 button { font-size: 13px; padding: 4px 10px; background: linear-gradient(#ffe95c, #f5d020); color: #1b1b1b; margin: 2px; text-shadow: none; }
.card2 button.off { background: #555; color: #ddd; }
.card2.on { border-color: #3fe0ff; }
.sec { font-size: 16px; margin: 10px 0 6px; color: #ffe27a; }
#mapCv { width: 100%; display: block; }
.row { display: flex; gap: 10px; align-items: center; margin: 8px 0; font-size: 15px; } .row input[type=range] { flex: 1; }
.row button { font-size: 14px; padding: 4px 14px; background: linear-gradient(#ffe95c, #f5d020); color: #1b1b1b; text-shadow: none; }

/* ---------- fruit shop (cards) ---------- */
#shop { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(800px, 94vw); height: min(560px, 86vh); display: flex; flex-direction: column; border: 3px solid #f5d020; background: #111; text-shadow: var(--ol); font-weight: 700; }
.sh { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 14px; background: #050505; } .sh b { font-size: calc(26px * var(--hs)); }
#sBody { flex: 1; overflow: auto; }
.fcard { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; padding: 10px 12px; background: linear-gradient(#7a7a72, #5c5c56); border-bottom: 3px solid #f5d020; }
.fcard .fi { width: 140px; height: 140px; border: 3px solid #3a8ac8; border-radius: 8px; display: grid; place-items: center; background: radial-gradient(circle, #5a4ab8, #2a1a6a); }
.fcard.r0 .fi { background: radial-gradient(circle, #6a8aa0, #2a4458); } .fcard.r1 .fi { background: radial-gradient(circle, #3ab0d8, #155a7a); } .fcard.r2 .fi { background: radial-gradient(circle, #8a5ad8, #3a1a7a); } .fcard.r3 .fi { background: radial-gradient(circle, #d85aa8, #6a1a4a); }
.fcard h3 { margin: 0; font-size: 30px; } .fcard .pr { color: #59e65a; font-size: 19px; } .fcard p { margin: 4px 0; font-size: 14px; font-weight: 600; }
.chip { display: inline-block; font-size: 12px; background: rgba(0,0,0,.35); padding: 2px 8px; margin: 2px 4px 0 0; }
.mv { text-align: right; font-size: 13px; } .mv div { margin: 3px 0; } .mv b { display: inline-block; width: 20px; text-align: center; background: rgba(0,0,0,.5); margin: 0 6px; } .mv i { font-style: normal; color: #ffe27a; }
.fbuy { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.fbuy button { min-width: 260px; font-size: 20px; padding: 8px; background: linear-gradient(#59e65a, #2fb02a); border: 2px solid #1b6a18; text-shadow: var(--ol); }
.fbuy button.off { background: #555; border-color: #333; }
.fbuy .os { color: #ff4a4a; font-style: italic; font-size: 22px; font-family: var(--hd); align-self: center; }
.sf { padding: 6px 12px; background: #050505; font-size: 15px; }

#death { position: fixed; inset: 0; background: rgba(60,0,0,.35); display: flex; flex-direction: column; align-items: center; justify-content: center; text-shadow: var(--ol); }
#death h2 { font-size: 46px; margin: 0; } #death p { font-size: 22px; }
#reveal { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,.6); text-shadow: var(--ol); }
#reveal .glow { width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(#fff, rgba(255,255,255,0) 70%); animation: spin 1s linear infinite; }
#revealName { font-size: 44px; font-weight: 800; margin-top: -40px; } #reveal small { font-size: 22px; }
@keyframes spin { to { transform: rotate(360deg) scale(1.1); } }

/* ---------- start and loading ---------- */
#start, #loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; background: radial-gradient(ellipse at 50% 30%, rgba(80,170,255,.35), rgba(10,40,90,.75)); }
#loading { background: linear-gradient(#3f9cf0, #1673c9); z-index: 5; }
#start .card { text-align: center; max-width: min(520px, 90vw); padding: 24px; }
.logo { display: flex; flex-direction: column; align-items: center; font-family: var(--hd); line-height: .86; transform: rotate(-3deg); }
.logo span:first-child { font-size: clamp(56px, 13vw, 104px); color: #ffd23f; text-shadow: 0 6px 0 #c76a00, 0 10px 18px rgba(0,0,0,.4); }
.logo span:last-child { font-size: clamp(64px, 15vw, 124px); color: #fff; text-shadow: 0 6px 0 #1b5fa8, 0 12px 20px rgba(0,0,0,.45); }
#start p { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 18px; text-shadow: 0 2px 0 rgba(0,0,0,.4); } #start p.small { font-size: 14px; opacity: .85; }
.cta { font-family: var(--hd); font-weight: 400; font-size: 34px; padding: 14px 64px; border-radius: 20px; background: linear-gradient(#5be36f, #22a83c); box-shadow: 0 6px 0 #127027, 0 10px 20px rgba(0,0,0,.3); margin-top: 6px; }
.cta:active { transform: translateY(3px); box-shadow: 0 3px 0 #127027; }
.lb { width: min(320px, 70vw); height: 16px; border-radius: 8px; background: rgba(0,0,0,.3); margin-top: 26px; overflow: hidden; } .lb div { height: 100%; width: 10%; background: #ffd23f; transition: width .2s; }
#loading p { font-family: var(--hd); font-size: 20px; }

/* ---------- touch ---------- */
#stick { position: absolute; left: calc(4% + 10px); bottom: calc(16% + 30px); width: calc(132px * var(--ts)); height: calc(132px * var(--ts)); border-radius: 50%; background: rgba(255,255,255,.12); border: 3px solid rgba(255,255,255,.3); align-items: center; justify-content: center; pointer-events: auto; }
#knob { width: 46%; height: 46%; border-radius: 50%; background: rgba(255,255,255,.55); }
#atkBtn, #jumpBtn, #dashBtn, #useBtn { position: absolute; border-radius: 50%; align-items: center; justify-content: center; font-size: calc(30px * var(--ts)); background: rgba(30,30,30,.55); border: 3px solid rgba(255,255,255,.4); }
#atkBtn { right: calc(4% + 16px); bottom: calc(10% + 18px); width: calc(92px * var(--ts)); height: calc(92px * var(--ts)); }
#jumpBtn { width: calc(64px * var(--ts)); height: calc(64px * var(--ts)); }
#dashBtn { width: calc(58px * var(--ts)); height: calc(58px * var(--ts)); font-size: calc(24px * var(--ts)); }
#useBtn { width: calc(64px * var(--ts)); height: calc(64px * var(--ts)); background: rgba(255,255,255,.9); color: #111; }
body.touch #skillsBox { width: auto; right: calc(4% + 26px + 92px * var(--ts)); bottom: calc(10% + 18px); transform: none; }
body.touch #mastHead, body.touch #wName { display: none; }
body.touch #skills { display: flex; gap: calc(8px * var(--ts)); background: none; padding: 0; }
body.touch .sk { width: calc(58px * var(--ts)); height: calc(58px * var(--ts)); min-height: 0; border-radius: 50%; padding: 0; justify-content: center; flex-direction: column; background: rgba(30,30,30,.55); border: 2px solid rgba(255,255,255,.35); overflow: hidden; }
body.touch .sk span { display: none; } body.touch .sk .r { text-align: center; font-size: calc(10px * var(--ts)); } body.touch .sk .r b { font-size: calc(20px * var(--ts)); }
body.touch #jumpBtn { right: calc(4% + 16px + 14px * var(--ts)); bottom: calc(10% + 30px + 92px * var(--ts)); }
body.touch #dashBtn { right: calc(4% + 26px + 80px * var(--ts)); bottom: calc(10% + 34px + 92px * var(--ts)); }
body.touch #useBtn { right: calc(4% + 26px + 92px * var(--ts)); bottom: calc(10% + 30px + 66px * var(--ts)); }
body.touch #left { bottom: auto; top: calc(8px * var(--hs)); transform: scale(calc(var(--hs) * .8)); transform-origin: 0 0; }
body.touch #hotbar { bottom: auto; top: 8px; transform: translateX(-50%) scale(calc(var(--hs) * .9)); transform-origin: 50% 0; }
body.touch #abil { display: none; }
body.touch #prompt { top: auto; bottom: calc(10% + 40px + 150px * var(--ts)); } body.touch #prompt kbd { display: none; }
body.touch #notes { top: calc(70px * var(--hs)); }
body.touch #guide { top: calc(64px * var(--hs)); }
body.touch #dOpts { right: 3%; width: 52vw; }
body.touch #dialog .dmain { top: auto; bottom: 3%; }
body.touch.port #left { transform: scale(calc(var(--hs) * .72)); }
body.touch.port #skills { flex-wrap: wrap; width: calc(124px * var(--ts)); flex-direction: row-reverse; } body.touch.port #skillsBox { right: calc(4% + 22px + 92px * var(--ts)); }
body.touch.port #useBtn { right: calc(4% + 16px + 14px * var(--ts)); bottom: calc(10% + 44px + 160px * var(--ts)); }
body.touch.port #dashBtn { right: calc(4% + 26px + 92px * var(--ts)); bottom: calc(10% + 44px + 200px * var(--ts)); }
body.touch.port #hotbar { top: auto; bottom: calc(10% + 30px + 270px * var(--ts)); }
body.touch.port #dOpts { width: 90vw; right: 5%; top: 30%; transform: none; } body.touch.port #dialog .dmain { bottom: 2%; }
body.touch .sk .r small { display: block; font-size: calc(9px * var(--ts)); }
body.touch:not(.port) #stick { bottom: calc(5% + 8px); left: calc(3% + 8px); width: calc(118px * var(--ts)); height: calc(118px * var(--ts)); }
body.touch:not(.port) #left { transform: scale(calc(var(--hs) * .72)); }

#safe { position: absolute; left: 50%; bottom: calc(76px * var(--hs)); transform: translateX(-50%); font-size: calc(17px * var(--hs)); color: #e6e6e6; text-shadow: var(--ol); white-space: nowrap; }
body.touch #safe { bottom: auto; top: calc(62px * var(--hs)); font-size: 12px; }
#team { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 30%, rgba(80,170,255,.35), rgba(10,40,90,.8)); text-shadow: var(--ol); }
#team h2 { font-size: 40px; margin: 0 0 20px; }
#team .tw { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
#team button { width: min(300px, 80vw); padding: 22px 18px; border: 4px solid #fff; text-shadow: var(--ol); display: flex; flex-direction: column; gap: 8px; }
#team button b { font-size: 34px; } #team button small { font-size: 15px; font-weight: 600; }
#tPirates { background: linear-gradient(#d63a3a, #8a1414); } #tMarines { background: linear-gradient(#3a7ad6, #14408a); }
#team button:hover { filter: brightness(1.1); }

#bPvp.on { color: #ff6a5a; } #bPvp.off { opacity: .45; } #bPvp.imm { color: #9fdcff; }
#combatTag { position: absolute; left: 50%; bottom: calc(100px * var(--hs)); transform: translateX(-50%); font-size: calc(18px * var(--hs)); color: #ff5a4a; text-shadow: var(--ol); white-space: nowrap; }
body.touch #combatTag { bottom: auto; top: calc(84px * var(--hs)); font-size: 13px; }
#plist { position: absolute; right: 8px; top: 8px; min-width: 190px; background: rgba(20,24,32,.55); border-radius: 6px; padding: 4px 8px 6px; font-size: 13px; text-shadow: none; color: #fff; pointer-events: none; }
#plist b { display: block; font-size: 12px; opacity: .8; margin-bottom: 2px; }
#plist .r { display: flex; justify-content: space-between; gap: 12px; line-height: 17px; white-space: nowrap; }
#plist .r.me { color: #ffe27a; } #plist .r .m { color: #9fd0ff; } #plist .r .p { color: #ffb0a0; }
body.touch #plist { display: none; }

#frags { font-size: 22px; color: #d9a6ff; text-shadow: var(--ol); margin: -2px 0 2px; }
#raidT { position: absolute; left: 50%; top: calc(84px * var(--hs)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; background: rgba(40,10,40,.6); border: 2px solid #c77dff; border-radius: 8px; padding: 4px 16px; text-shadow: var(--ol); }
#raidT b { font-size: 15px; color: #ffd23f; } #raidT span { font-size: 28px; } #raidT small { font-size: 12px; opacity: .85; }
body.touch #raidT { top: calc(110px * var(--hs)); transform: translateX(-50%) scale(.8); }

body.hero #plist, body.hero #combatTag { display: none !important; }

body.instinct #fx2d { box-shadow: inset 0 0 140px rgba(235,245,255,.45); }
#abil .ab { pointer-events: auto; cursor: pointer; }
