@font-face { font-family: 'Rajdhani'; src: url(assets/fonts/rajdhani-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Rajdhani'; src: url(assets/fonts/rajdhani-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Rajdhani'; src: url(assets/fonts/rajdhani-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
/* SIEGE: The Last Spire — Neon Ink UI. Mobile-first; big readable HUD. */
:root { --ally: #3fd8ff; --enemy: #ff5a3c; --gold: #ffd27a; --ink: #05060c; --panel: rgba(10, 12, 24, .92); --line: rgba(160, 190, 255, .18); --f: 'Rajdhani', 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif; --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0d16; color: #eef3ff; font-family: var(--f); user-select: none; -webkit-user-select: none; touch-action: none; overscroll-behavior: none; }
canvas#gl, canvas#ov { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
canvas#ov { pointer-events: none; z-index: 1; }
button { font-family: var(--f); cursor: pointer; border: 0; color: inherit; }
#hud, #hud-controls { position: fixed; inset: 0; z-index: 2; pointer-events: none; display: none; }
body.inmatch #hud, body.inmatch #hud-controls { display: block; }
#ui { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
#ui > * { pointer-events: auto; }
#dbg { position: fixed; left: 6px; bottom: 4px; z-index: 50; font: 11px monospace; color: #8f8; pointer-events: none; text-shadow: 0 1px 2px #000; }
#err { position: fixed; left: 6px; bottom: 18px; z-index: 50; font: 11px monospace; color: #f66; pointer-events: none; }
#skipbtn { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 9; display: none; padding: 8px 18px; border-radius: 99px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.3); font-weight: 800; letter-spacing: 2px; }
#skipbtn.on { display: block; }
/* ---------------- HUD ---------------- */
#hud > * { pointer-events: auto; }
#topbar { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); text-align: center; pointer-events: none !important; }
#topbar .score { display: flex; align-items: center; gap: 10px; background: rgba(5,6,12,.75); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; font-weight: 800; font-size: 26px; }
#topbar .b { color: var(--ally); min-width: 28px; text-align: right; } #topbar .r { color: var(--enemy); min-width: 28px; text-align: left; } #topbar .clock { font-size: 15px; color: #c8d0e8; min-width: 46px; }
#mmwrap { position: absolute; top: 8px; left: calc(8px + var(--safe-l)); border: 2px solid rgba(160,190,255,.35); border-radius: 10px; overflow: hidden; background: #111626; box-shadow: 0 4px 18px rgba(0,0,0,.5); }
#minimap { display: block; }
#me { position: absolute; left: calc(8px + var(--safe-l)); top: 140px; display: flex; gap: 8px; align-items: center; background: rgba(5,6,12,.7); border-radius: 12px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); pointer-events: none !important; }
#me .pt { width: 46px; height: 46px; border-radius: 10px; background: #222 center/cover; border: 2px solid var(--gold); }
#me .nm { font-weight: 800; font-size: 15px; letter-spacing: 1px; }
#me .hp { width: 150px; height: 12px; background: #200; border-radius: 4px; overflow: hidden; position: relative; } #me .hp i { display: block; height: 100%; background: linear-gradient(90deg, #4ee36a, #9dff7a); transition: width .15s; } #me .hp b { position: absolute; inset: 0; font-size: 10px; text-align: center; line-height: 12px; text-shadow: 0 1px 2px #000; }
#me .xp { width: 150px; height: 4px; background: #111; margin-top: 3px; border-radius: 2px; overflow: hidden; } #me .xp i { display: block; height: 100%; background: #a98bff; }
#me .kda { font-size: 12px; color: #c8d0e8; margin-top: 2px; }
#rightbar { position: absolute; top: 8px; right: calc(8px + var(--safe-r)); display: flex; gap: 6px; }
.ib { width: 40px; height: 40px; border-radius: 10px; background: rgba(5,6,12,.75); border: 1px solid var(--line); font-size: 16px; font-weight: 900; }
#feed { position: absolute; top: 56px; right: calc(8px + var(--safe-r)); display: flex; flex-direction: column; gap: 4px; align-items: flex-end; pointer-events: none !important; }
.fi { display: flex; align-items: center; gap: 5px; background: rgba(5,6,12,.8); border-radius: 8px; padding: 3px 8px 3px 3px; font-size: 13px; font-weight: 700; border-left: 3px solid #888; animation: fin .25s ease-out; transition: opacity .4s, transform .4s; }
.fi.ally { border-color: var(--ally); } .fi.enemy { border-color: var(--enemy); } .fi.me { background: rgba(60,48,10,.9); }
.fi i { width: 24px; height: 24px; border-radius: 6px; background: #222 center/cover; } .fi .x { color: #ffd27a; font-size: 11px; } .fi .vn.ally { color: var(--ally); } .fi .vn.enemy { color: #ff9a80; }
.fi.out { opacity: 0; transform: translateX(30px); }
@keyframes fin { from { transform: translateX(40px); opacity: 0; } }
#callout { position: absolute; top: 17%; left: 0; right: 0; text-align: center; pointer-events: none !important; opacity: 0; }
#callout.on { animation: cin 1.9s cubic-bezier(.2,1.4,.4,1) forwards; }
#callout .t { font-size: clamp(34px, 7vw, 68px); font-weight: 900; letter-spacing: 3px; font-style: italic; -webkit-text-stroke: 2px #000; paint-order: stroke fill; text-shadow: 0 0 24px currentColor; }
#callout .s { font-size: 18px; font-weight: 700; color: #fff; text-shadow: 0 2px 4px #000; }
#callout.ally .t { color: #7ff3ff; } #callout.enemy .t { color: #ff7a5a; } #callout.neutral .t { color: #ffe27a; } #callout.big .t { font-size: clamp(44px, 9vw, 88px); } #callout.small .t { font-size: clamp(22px, 4vw, 34px); }
@keyframes cin { 0% { opacity: 0; transform: scale(2.2) skewX(-8deg); } 12% { opacity: 1; transform: scale(.95); } 20% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1.05) translateY(-10px); } }
#banner { position: absolute; top: 40%; left: 0; right: 0; text-align: center; pointer-events: none !important; opacity: 0; --c: #fff; }
#banner.on { opacity: 1; } #banner.anim { animation: bin .5s cubic-bezier(.2,1.5,.4,1); }
#banner .t { display: inline-block; padding: 6px 28px; font-size: clamp(30px, 6vw, 58px); font-weight: 900; letter-spacing: 4px; color: #fff; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 70%, #000) 15%, color-mix(in srgb, var(--c) 70%, #000) 85%, transparent); text-shadow: 0 0 18px var(--c), 0 3px 0 #000; }
#banner .s { margin-top: 6px; font-size: 18px; font-weight: 700; color: var(--c); text-shadow: 0 2px 4px #000; }
#banner.sync .t { animation: syncp .3s infinite alternate; } @keyframes syncp { to { filter: brightness(1.5); transform: scale(1.04); } }
#banner.warn .t { animation: warnb .35s infinite alternate; } @keyframes warnb { to { opacity: .55; } }
@keyframes bin { from { transform: scaleY(0) scaleX(1.6); } }
#timer { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); display: none; text-align: center; background: rgba(40,8,12,.85); border: 1px solid #ff3048; border-radius: 10px; padding: 2px 14px; pointer-events: none !important; }
#timer.on { display: block; } #timer small { display: block; font-size: 11px; letter-spacing: 2px; color: #ffb0b8; } #timer b { font-size: 26px; }
#objtimers { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 700; color: #c8d0e8; text-shadow: 0 1px 2px #000; pointer-events: none !important; white-space: nowrap; }
#bubbles { position: absolute; inset: 0; pointer-events: none !important; }
.bub { position: absolute; left: 0; top: 0; max-width: 220px; padding: 5px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; background: rgba(8,30,48,.92); border: 1px solid var(--ally); white-space: normal; transition: opacity .2s; }
.bub.enemy { background: rgba(50,12,10,.92); border-color: var(--enemy); } .bub.nem { border-color: #ff3048; box-shadow: 0 0 12px #ff3048; } .bub b { color: var(--gold); margin-right: 3px; }
#respawn { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; background: radial-gradient(transparent 30%, rgba(40,0,0,.6)); filter: saturate(.3); pointer-events: none !important; }
#respawn.on { display: flex; } #respawn div { font-size: 22px; letter-spacing: 6px; font-weight: 800; color: #ff8080; } #respawn b { font-size: 72px; font-weight: 900; } #respawn small { color: #ccc; font-size: 14px; }
#vignette { position: absolute; inset: 0; pointer-events: none !important; --fc: #fff; }
#vignette.low { box-shadow: inset 0 0 120px rgba(255,0,30,.55); animation: lowp 1s infinite alternate; } @keyframes lowp { to { box-shadow: inset 0 0 70px rgba(255,0,30,.3); } }
#vignette.flash::after { content: ''; position: absolute; inset: 0; background: var(--fc); animation: vf .45s forwards; } @keyframes vf { from { opacity: .35; } to { opacity: 0; } }
#finalblow { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; pointer-events: none !important; }
#finalblow.on { display: flex; animation: fbin 2.6s forwards; }
#finalblow .fb1 { font-size: clamp(70px, 16vw, 170px); font-weight: 900; letter-spacing: 12px; font-style: italic; color: #fff1b0; -webkit-text-stroke: 3px #000; paint-order: stroke fill; text-shadow: 0 0 40px #ff8a3a, 0 0 80px #ff3048; }
#finalblow.enemy .fb1 { color: #ffb0a0; } #finalblow .fb2 { font-size: 20px; letter-spacing: 6px; font-weight: 800; color: #ffd27a; }
@keyframes fbin { 0% { opacity: 0; transform: scale(3); } 8% { opacity: 1; transform: scale(1); } 85% { opacity: 1; transform: scale(1.06); } 100% { opacity: 0; } }
#hint { position: absolute; bottom: 30%; left: 50%; transform: translateX(-50%); padding: 8px 18px; border-radius: 99px; background: rgba(5,6,12,.85); border: 1px solid var(--gold); color: var(--gold); font-size: 16px; font-weight: 700; opacity: 0; transition: opacity .3s; pointer-events: none !important; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
#hint.on { opacity: 1; }
#shopbtn { position: absolute; left: calc(8px + var(--safe-l)); top: 200px; padding: 8px 14px; border-radius: 12px; background: rgba(5,6,12,.8); border: 1px solid var(--line); font-size: 18px; font-weight: 800; color: var(--gold); }
#shopbtn.afford { border-color: var(--gold); box-shadow: 0 0 12px rgba(255,210,122,.6); animation: aff 1s infinite alternate; } @keyframes aff { to { box-shadow: 0 0 2px rgba(255,210,122,.2); } }
.panel { position: absolute; display: none; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; z-index: 4; }
.panel.on { display: block; } .panel .ph { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 18px; } .panel .ph b { letter-spacing: 3px; } .panel .ph span { color: var(--gold); font-weight: 800; } .panel .ph label { font-size: 14px; margin-left: auto; } .panel .x { width: 34px; height: 34px; border-radius: 8px; background: #222a40; }
#shop { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(760px, 96vw); max-height: 86vh; overflow: auto; }
#shop .owned { display: flex; gap: 6px; padding: 10px 14px; } #shop .slot { width: 44px; height: 44px; border-radius: 8px; border: 1px dashed #445; display: flex; align-items: center; justify-content: center; font-size: 22px; } #shop .slot.f { border: 1px solid var(--gold); background: #1c1a10; }
#shop .rec { padding: 0 14px 10px; font-size: 13px; color: #aab; } #shop .rec .buy { display: inline-block; width: auto; padding: 6px 12px; margin-left: 6px; }
#shop .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; padding: 0 14px 14px; } #shop h4 { margin: 6px 0; letter-spacing: 3px; color: #8890b0; font-size: 12px; }
.buy { display: grid; grid-template-columns: 30px 1fr auto; gap: 2px 8px; align-items: center; width: 100%; text-align: left; padding: 7px 9px; margin-bottom: 6px; border-radius: 9px; background: #151a2c; border: 1px solid #252c44; opacity: .7; }
.buy.ok { opacity: 1; border-color: #6a5a20; } .buy.own { opacity: .45; border-color: var(--ally); } .buy i { font-style: normal; font-size: 22px; grid-row: span 2; } .buy b { font-size: 14px; } .buy span { color: var(--gold); font-weight: 800; font-size: 13px; } .buy small { grid-column: 2 / 4; font-size: 11px; color: #9aa3c0; }
#scoreboard { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, 96vw); }
#scoreboard table, .results table.stats { width: 100%; border-collapse: collapse; font-size: 14px; } #scoreboard td, #scoreboard th, .stats td, .stats th { padding: 5px 8px; text-align: left; border-bottom: 1px solid var(--line); } #scoreboard th, .stats th { font-size: 11px; letter-spacing: 2px; color: #8890b0; }
#scoreboard td i, .stats td i { display: inline-block; width: 26px; height: 26px; vertical-align: middle; margin-right: 6px; border-radius: 6px; background: #222 center/cover; } tr.me td { color: var(--gold); } .its { letter-spacing: 2px; }
#toast { position: absolute; top: 40%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 4px; align-items: center; pointer-events: none !important; margin-top: 70px; }
.ti { padding: 4px 12px; border-radius: 8px; background: rgba(5,6,12,.85); font-size: 14px; font-weight: 700; animation: tin .25s; } .ti.lvl { color: #c8b0ff; font-size: 18px; } .ti.enemy { color: #ff9a80; } @keyframes tin { from { transform: translateY(10px); opacity: 0; } }
/* ---------------- touch controls ---------------- */
#controls { position: absolute; inset: 0; pointer-events: none; }
#controls > * { pointer-events: auto; }
#joyzone { position: absolute; left: 0; bottom: 0; width: 46%; height: 62%; display: none; }
#joybase { position: absolute; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: radial-gradient(rgba(255,255,255,.08), rgba(255,255,255,.02)); opacity: 0; transition: opacity .15s; left: 120px; top: calc(100% - 140px); }
#joybase.on { opacity: 1; } #controls.touch #joybase { opacity: .55; } #controls.touch #joybase.on { opacity: 1; }
#joyknob { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 18px rgba(127,232,255,.6); }
#skillpad { position: absolute; right: calc(14px + var(--safe-r)); bottom: calc(14px + var(--safe-b)); width: 300px; height: 300px; display: none; pointer-events: none !important; }
#controls.touch #joyzone, #controls.touch #skillpad { display: block; }
#controls:not(.touch) #skillpad { display: block; transform: scale(.62); transform-origin: bottom right; opacity: .9; }
.sk { position: absolute; border-radius: 50%; pointer-events: auto; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c, #3a4466) 55%, #fff 10%), color-mix(in srgb, var(--c, #3a4466) 35%, #000)); border: 3px solid rgba(255,255,255,.75); box-shadow: 0 4px 14px rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; touch-action: none; transition: transform .06s; --cd: 0; }
.sk.down { transform: scale(.9); } .sk .ico { font-size: 22px; letter-spacing: -1px; text-shadow: 0 2px 3px #000; pointer-events: none; }
.sk .cd { position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; background: conic-gradient(rgba(0,0,0,.72) calc(var(--cd) * 360deg), transparent 0); pointer-events: none; }
.sk .ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); pointer-events: none; opacity: 0; } .sk .ring circle { fill: none; stroke: #ffe27a; stroke-width: 4; } .sk.ready .ring { opacity: 1; animation: rdy .6s ease-out 1; }
@keyframes rdy { from { transform: scale(1.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sk .key { position: absolute; bottom: -4px; right: -2px; font-size: 11px; background: #000; padding: 1px 5px; border-radius: 6px; pointer-events: none; }
.sk .lock { display: none; position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,.7); align-items: center; justify-content: center; font-size: 15px; pointer-events: none; }
.sk.locked .lock { display: flex; } .sk.silenced { filter: grayscale(1) brightness(.6); }
.sk.atk { width: 104px; height: 104px; right: 0; bottom: 0; --c: #b04030; font-size: 40px; } .sk.atk .ico { font-size: 44px; }
.sk.s0 { width: 72px; height: 72px; right: 118px; bottom: 4px; } .sk.s1 { width: 72px; height: 72px; right: 102px; bottom: 90px; } .sk.s2 { width: 72px; height: 72px; right: 26px; bottom: 124px; }
.sk.s3 { width: 84px; height: 84px; right: 182px; bottom: 112px; border-color: #ffe27a; } .sk.s3.ready { box-shadow: 0 0 24px #ffd27a; }
.sk.mini { width: 46px; height: 46px; font-size: 20px; --c: #2a3350; } .sk.recall { right: 206px; bottom: 6px; } .sk.chat { right: 20px; bottom: 210px; }
#cancelzone { position: absolute; top: 18%; right: 26%; padding: 14px 20px; border-radius: 14px; background: rgba(80,10,10,.6); border: 2px solid #ff4040; font-weight: 900; letter-spacing: 2px; display: none; pointer-events: none !important; }
#cancelzone.on { display: block; } #cancelzone.hot { background: #ff4040; }
#wheel { position: fixed; width: 260px; height: 260px; margin: -130px; border-radius: 50%; display: none; pointer-events: none !important; background: radial-gradient(rgba(5,6,12,.92) 30%, rgba(5,6,12,.75)); border: 2px solid var(--line); }
#wheel.on { display: block; } #wheel .wo { position: absolute; width: 110px; text-align: center; font-weight: 900; letter-spacing: 1px; padding: 8px 4px; border-radius: 10px; font-size: 14px; } #wheel .wo.hot { background: var(--gold); color: #000; }
#wheel [data-c=follow] { left: 75px; top: 16px; } #wheel [data-c=objective] { left: 75px; bottom: 16px; } #wheel [data-c=dive] { right: 4px; top: 112px; } #wheel [data-c=retreat] { left: 4px; top: 112px; } #wheel .wc { position: absolute; left: 112px; top: 110px; font-size: 26px; }
/* ---------------- screens ---------------- */
.scr { position: absolute; inset: 0; overflow: auto; }
.scr .top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: linear-gradient(rgba(5,6,12,.95), rgba(5,6,12,.6)); position: sticky; top: 0; z-index: 2; }
.scr .top h1 { margin: 0; font-size: 28px; letter-spacing: 4px; } .scr .top #back { width: 44px; height: 44px; border-radius: 12px; background: #1a2036; font-size: 18px; }
button.primary { background: linear-gradient(180deg, #ffb347, #ff6a2a); color: #1a0a00; font-weight: 900; letter-spacing: 2px; border-radius: 14px; padding: 12px 22px; box-shadow: 0 4px 0 #8a2a00, 0 0 24px rgba(255,120,40,.4); }
button.primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #8a2a00; } button.big { font-size: 22px; padding: 16px 28px; }
button.danger { background: #4a1418; color: #ffb0b0; border-radius: 12px; padding: 10px 16px; }
.btn { display: inline-block; padding: 8px 14px; border-radius: 10px; background: #1e2640; color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; } .btn.x { background: #000; border: 1px solid #555; }
/* title */
.scr.title { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(ellipse at 50% 40%, rgba(11,13,22,.25), rgba(11,13,22,.85)); padding: 20px; }
.logo { text-align: center; } .logo .l1 { font-size: clamp(72px, 18vw, 150px); font-weight: 900; letter-spacing: clamp(8px, 3vw, 24px); font-style: italic; line-height: .9; background: linear-gradient(180deg, #fff6d8, #ffb347 45%, #ff3048); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #000) drop-shadow(0 0 30px rgba(255,100,40,.5)); animation: logo 3s ease-in-out infinite alternate; }
.logo .l2 { font-size: clamp(16px, 4vw, 26px); letter-spacing: clamp(6px, 2vw, 14px); color: #9fe8ff; font-weight: 700; text-shadow: 0 0 12px #3fd8ff; } @keyframes logo { to { filter: drop-shadow(0 4px 0 #000) drop-shadow(0 0 50px rgba(255,60,40,.8)); } }
.menu { display: flex; flex-direction: column; gap: 10px; width: min(440px, 92vw); } .menu .big small { display: block; font-size: 12px; letter-spacing: 1px; opacity: .8; } .menu .row { display: flex; gap: 10px; }
.menu .row button { flex: 1; padding: 13px 8px; border-radius: 12px; background: rgba(20,26,46,.9); border: 1px solid var(--line); font-weight: 800; letter-spacing: 1px; font-size: 15px; } .menu .row button small { display: block; font-size: 11px; color: var(--gold); }
.menu .judge { padding: 11px; border-radius: 12px; background: linear-gradient(90deg, #2a0d40, #4a1060); border: 1px solid #c06aff; font-weight: 900; letter-spacing: 1px; font-size: 16px; box-shadow: 0 0 20px rgba(190,100,255,.35); } .menu .judge small { display: block; font-size: 11px; opacity: .8; font-weight: 600; }
.menu .daily { border-color: #ff3048 !important; color: #ffb0b8; }
.acct { text-align: center; font-size: 14px; color: #aab; } .acct img { width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; } .acct a { color: #9fe8ff; cursor: pointer; text-decoration: underline; } #gsi { margin-top: 8px; display: flex; justify-content: center; }
.gbtn { padding: 10px 18px; border-radius: 99px; background: #fff; color: #222; font-weight: 700; font-size: 14px; } .gbtn.soon { opacity: .55; cursor: not-allowed; } .gbtn .g { font-weight: 900; color: #4285f4; margin-right: 6px; }
.badge { font-size: 14px; color: var(--gold); letter-spacing: 2px; } .badge .nem { color: #ff5068; } .foot { position: absolute; bottom: 8px; font-size: 11px; color: #667; }
/* modal */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal .card, .scr.modal .card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; width: min(560px, 96vw); max-height: 90vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.modal h2, .scr.modal h2 { margin: 0; letter-spacing: 4px; } .modal label { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; } .modal select { background: #151a2c; color: #fff; border: 1px solid #333c5a; border-radius: 8px; padding: 6px; font-family: var(--f); font-size: 14px; max-width: 60%; }
.modal input[type=range] { width: 50%; } .modal .row { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; } .modal.pause .card { align-items: stretch; width: min(340px, 92vw); } .modal.pause button { padding: 14px; border-radius: 12px; background: #1a2036; font-weight: 800; letter-spacing: 2px; font-size: 16px; }
.scr.how { display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.7); } .how .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .how p { margin: 4px 0; font-size: 14px; line-height: 1.35; } .how h3 { margin: 6px 0 2px; color: var(--gold); letter-spacing: 2px; } @media (max-width: 600px) { .how .cols { grid-template-columns: 1fr; } }
/* campaign map */
.scr.map { background: radial-gradient(ellipse at 50% 0%, #1a2040, #07080f 70%); } .map .prog { margin-left: auto; color: var(--gold); font-weight: 700; }
.acts { padding: 10px 14px 60px; display: flex; flex-direction: column; gap: 18px; max-width: 980px; margin: 0 auto; }
.act { border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--bc, #345) 18%, #0b0d18), #0b0d18 60%); border: 1px solid color-mix(in srgb, var(--bc, #345) 40%, transparent); padding: 14px; } .act.locked { filter: grayscale(.8) brightness(.6); } .act.asc { border-style: dashed; opacity: .7; }
.act header { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; } .act .an { font-size: 12px; letter-spacing: 3px; color: var(--bc); font-weight: 800; } .act h2 { margin: 0; font-size: 26px; letter-spacing: 3px; grid-column: 1; } .act p { margin: 0; color: #aab; font-size: 14px; grid-column: 1; } .act .blade { grid-column: 2; grid-row: 1 / 3; color: var(--bc); font-weight: 800; font-size: 13px; text-align: right; } .act .bossn { grid-column: 2; font-size: 12px; color: #ff6a8a; text-align: right; }
.path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.node { position: relative; aspect-ratio: 1; border-radius: 16px; background: #161c30; border: 2px solid #2a3150; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; animation: nin .3s backwards; animation-delay: calc(var(--i) * 25ms); }
@keyframes nin { from { transform: scale(.6); opacity: 0; } }
.node .st { font-size: 11px; color: var(--gold); letter-spacing: 1px; } .node.lock { opacity: .35; } .node.done { border-color: color-mix(in srgb, var(--bc) 60%, #333); } .node.cur { border-color: var(--gold); box-shadow: 0 0 18px rgba(255,210,122,.6); animation: curp 1s infinite alternate; } @keyframes curp { to { box-shadow: 0 0 4px rgba(255,210,122,.3); } }
.node.boss { background: radial-gradient(#3a0c20, #120610); border-color: #ff3c8c; } .node.boss i { position: absolute; inset: 6px; background: center/contain no-repeat; opacity: .5; } .node.boss b { position: relative; }
@media (min-width: 700px) { .path { grid-template-columns: repeat(10, 1fr); } }
/* draft */
.scr.draft { background: radial-gradient(ellipse at 50% 30%, #18203a, #06070d 75%); } .draft .an { font-size: 12px; letter-spacing: 3px; color: var(--gold); } .draft .top .line { margin-left: auto; color: #c8d0e8; font-style: italic; max-width: 40%; font-size: 15px; }
.teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; padding: 12px 16px; max-width: 1100px; margin: 0 auto; } .vs { align-self: center; font-size: 40px; font-weight: 900; font-style: italic; color: #ff6a3d; text-shadow: 0 0 20px #ff3048; }
.side h3 { margin: 0 0 8px; letter-spacing: 3px; font-size: 15px; } .side.ally h3 { color: var(--ally); } .side.enemy h3 { color: var(--enemy); } .side h4 { margin: 12px 0 6px; letter-spacing: 2px; font-size: 13px; color: #8890b0; } .side h4 small { font-weight: 500; }
.pick { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(20,26,46,.8); border: 1px solid var(--line); margin-bottom: 8px; position: relative; } .pick i { width: 58px; height: 58px; border-radius: 10px; background: #222 center/cover; flex: none; } .pick b { display: block; font-size: 17px; letter-spacing: 1px; } .pick small { display: block; color: #9aa3c0; font-size: 12px; } .pick em { display: block; font-size: 12px; color: #c8d0e8; } .pick em.red { color: #ff8090; }
.pick.main { border-color: var(--gold); } .pick.nemesis { border-color: #ff3048; box-shadow: 0 0 14px rgba(255,48,72,.4); } .pick.boss { border-color: #ff3c8c; background: rgba(50,8,24,.8); } .pick .lockt { position: absolute; top: 6px; right: 8px; font-size: 10px; letter-spacing: 2px; color: var(--gold); }
.roster { display: flex; flex-wrap: wrap; gap: 6px; } .roster .mini { width: 70px; padding: 4px; border-radius: 10px; background: #141a2c; border: 2px solid #252c44; display: flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 700; } .roster .mini i { width: 54px; height: 54px; border-radius: 8px; background: #222 center/cover; } .roster .mini.on { border-color: var(--ally); } .roster .mini.counter::after { content: 'COUNTER'; font-size: 9px; color: #7fff9a; } .roster .mini.forced { border-color: var(--gold); }
.tips p { margin: 4px 0; font-size: 13px; color: #c8e8c8; } .twists { margin-top: 10px; } .twists .tcard.back { display: inline-flex; width: 56px; height: 78px; margin-right: 6px; } .twists small { display: block; color: #889; font-size: 12px; }
.draft .bottom, .results .bottom { position: sticky; bottom: 0; display: flex; justify-content: center; gap: 10px; padding: 12px; background: linear-gradient(transparent, rgba(5,6,12,.95) 40%); flex-wrap: wrap; } .results .bottom button:not(.primary) { padding: 12px 18px; border-radius: 12px; background: #1a2036; font-weight: 800; letter-spacing: 1px; }
@media (max-width: 760px) { .teams { grid-template-columns: 1fr; } .vs { text-align: center; font-size: 28px; } .draft .top .line { display: none; } }
/* skirmish */
.skirm .lv { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; } .skirm .lv input { width: 140px; }
.sk-body { display: grid; grid-template-columns: 1fr 380px; gap: 14px; padding: 12px 16px; max-width: 1200px; margin: 0 auto; } @media (max-width: 860px) { .sk-body { grid-template-columns: 1fr; } }
.sk-body .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; align-content: start; }
.hcard { position: relative; padding: 6px; border-radius: 12px; background: #141a2c; border: 2px solid #252c44; display: flex; flex-direction: column; align-items: center; gap: 1px; } .hcard i { width: 100%; aspect-ratio: 1; border-radius: 8px; background: radial-gradient(color-mix(in srgb, var(--c) 30%, #000), #0a0c14) center/cover; background-size: cover; } .hcard b { font-size: 14px; letter-spacing: 1px; } .hcard small { font-size: 11px; color: #9aa3c0; } .hcard .dots { font-size: 9px; color: var(--gold); } .hcard em { position: absolute; top: 4px; left: 4px; font-size: 9px; font-style: normal; background: #0a4020; color: #7fff9a; padding: 1px 4px; border-radius: 4px; }
.hcard.on { border-color: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 60%, transparent); } .hcard.h21 { border-style: dashed; border-color: #c06aff; } .hcard.h21 i { background: radial-gradient(#2a1040, #0a0612); position: relative; } .hcard.h21 i::after { content: '?'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 900; color: #c06aff; text-shadow: 0 0 20px #c06aff; } .hcard.h21 em { background: #2a1040; color: #e0b0ff; }
.detail { background: rgba(14,18,32,.9); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; align-self: start; position: sticky; top: 76px; }
.detail .dh { display: flex; gap: 12px; } .detail .dh i { width: 96px; height: 96px; border-radius: 12px; background: #222 center/cover; flex: none; } .detail h2 { margin: 0; font-size: 30px; letter-spacing: 3px; color: var(--c); } .detail .tt { font-size: 14px; color: #c8d0e8; } .detail .meta, .detail .wp { font-size: 12px; color: #9aa3c0; letter-spacing: 1px; } .detail .wp b { color: #fff; }
.detail .blurb { margin: 0; font-size: 14px; color: #c8d0e8; } .detail .passive { font-size: 13px; padding: 6px 8px; border-radius: 8px; background: #10141f; } .detail .passive b { color: var(--gold); }
.skill { display: flex; gap: 8px; align-items: flex-start; } .skill .k { flex: none; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--c) 40%, #111); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; } .skill b { font-size: 14px; } .skill small { color: #8890b0; } .skill p { margin: 1px 0 0; font-size: 12px; color: #aab; }
.vsline .ep { display: inline-flex; align-items: center; gap: 4px; margin: 2px 6px 2px 0; font-size: 12px; font-weight: 700; } .vsline .ep i { width: 26px; height: 26px; border-radius: 6px; background: #222 center/cover; } .vsline .ep.nemesis { color: #ff5068; } .vsline h4 { margin: 4px 0; font-size: 12px; letter-spacing: 2px; color: #8890b0; }
/* comic panels */
.scr.comic { background: #000; display: flex; flex-direction: column; } .comic .ctitle { text-align: center; padding: 14px; letter-spacing: 6px; font-weight: 800; color: var(--gold); font-size: 15px; }
.comic .stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px; cursor: pointer; }
.panel-c { width: min(900px, 96vw); aspect-ratio: 16 / 8; max-height: 72vh; position: relative; border: 4px solid #fff; border-radius: 6px; overflow: hidden; background: #111; animation: pin .35s cubic-bezier(.2,1.3,.4,1); box-shadow: 8px 8px 0 #000, 0 0 40px rgba(255,140,60,.15); }
@keyframes pin { from { transform: scale(.85) rotate(-2deg); opacity: 0; } }
.panel-c .art { position: absolute; top: 0; bottom: 0; width: 55%; background: radial-gradient(circle at 50% 40%, #3a2a40, #0b0b14) center / contain no-repeat; background-size: contain; } .panel-c.l .art { left: 0; } .panel-c.r .art { right: 0; } .panel-c .art.bossart { background-color: #200810; }
.panel-c .scene { position: absolute; inset: 0; }
.panel-c .txt { position: absolute; bottom: 8%; max-width: 54%; background: #fff; color: #000; padding: 12px 16px; border-radius: 4px 18px 18px 18px; border: 3px solid #000; font-size: clamp(15px, 2.4vw, 22px); font-weight: 700; line-height: 1.25; } .panel-c.l .txt { right: 4%; } .panel-c.r .txt { left: 4%; } .panel-c .txt b { display: block; font-size: 13px; letter-spacing: 3px; color: #c0301a; } .panel-c .txt p { margin: 0; }
.panel-c:has(.scene) .txt { left: 50%; right: auto; transform: translateX(-50%); max-width: 80%; text-align: center; background: rgba(0,0,0,.75); color: #fff; border-color: #fff; border-radius: 4px; font-style: italic; }
.panel-c.shake { animation: pin .35s, pshake .4s .1s; } @keyframes pshake { 25% { transform: translate(-8px, 4px); } 50% { transform: translate(8px, -4px); } 75% { transform: translate(-4px, 2px); } }
.panel-c.red { box-shadow: 8px 8px 0 #000, 0 0 60px rgba(255,30,60,.5); border-color: #ff3048; } .panel-c.flash::after { content: ''; position: absolute; inset: 0; background: #fff; animation: vf .6s forwards; }
.comic .cbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; } .comic .cnt { color: #889; } .comic #skip { padding: 10px 18px; border-radius: 99px; background: #222; font-weight: 800; letter-spacing: 2px; }
.s-ruins { background: linear-gradient(transparent 55%, #1a0a08), repeating-linear-gradient(100deg, transparent 0 40px, rgba(0,0,0,.4) 40px 44px), radial-gradient(ellipse at 50% 100%, #ff6a2a, #3a1208 40%, #0a0608 75%); }
.s-spire { background: linear-gradient(90deg, transparent 47%, #ffe0a0 49%, #fff 50%, #ffe0a0 51%, transparent 53%), radial-gradient(ellipse at 50% 20%, #ffb347 0, #6a2040 30%, #0a0612 70%); }
.s-road { background: linear-gradient(transparent 60%, #2a0800), repeating-linear-gradient(80deg, #ff4a10 0 6px, transparent 6px 60px), radial-gradient(ellipse at 50% 100%, #ff3010, #200404 60%); }
.s-sea { background: repeating-linear-gradient(170deg, rgba(64,208,255,.15) 0 3px, transparent 3px 26px), radial-gradient(ellipse at 50% 80%, #40d0ff, #062038 50%, #02060c 80%); }
.s-hollow, .s-dark { background: radial-gradient(ellipse at 50% 60%, #3a2060, #0a0612 45%, #000 80%); } .s-grave { background: radial-gradient(circle at 50% 45%, #ff8a3a 0, #6a2a10 12%, transparent 30%), linear-gradient(#0a0a14, #1a0e0a); }
.s-sun { background: radial-gradient(circle at 50% 35%, #fff6d0, #ffd040 15%, #8a5a10 40%, #1a1004 75%); } .s-break { background: linear-gradient(115deg, transparent 49%, #fff 50%, transparent 51%), linear-gradient(65deg, transparent 49%, #ff3048 50%, transparent 51%), radial-gradient(#3a0810, #000 70%); }
.s-army { background: repeating-linear-gradient(90deg, rgba(0,0,0,.6) 0 8px, transparent 8px 22px), linear-gradient(transparent 50%, #2a1a08), radial-gradient(ellipse at 50% 100%, #ffd040, #3a2008 60%); } .s-forge { background: radial-gradient(circle at 50% 70%, #fff6c0, #ffd040 10%, #ff6a10 25%, #2a0a04 60%); }
.s-sky { background: linear-gradient(#0a1830, #3a70b0 60%, #c0e0ff); } .s-truth { background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 30px), repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 3px, transparent 3px 40px), radial-gradient(#2a2f48, #06070d); }
.s-dawn { background: radial-gradient(ellipse at 50% 100%, #fff6d0, #ffb347 25%, #ff6a8a 45%, #3a2a60 75%); } .s-end { background: radial-gradient(#2a1a10, #000); }
/* loading */
.scr.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(ellipse at 50% 40%, #1a1430, #05060c 75%); padding: 20px; text-align: center; }
.loading .lv { letter-spacing: 6px; color: var(--gold); font-weight: 800; } .loading h1 { margin: 0; font-size: clamp(44px, 10vw, 84px); letter-spacing: 8px; font-style: italic; } .loading .line { font-size: 18px; color: #c8d0e8; max-width: 640px; font-style: italic; }
.cards { display: flex; gap: 14px; margin: 16px 0 6px; perspective: 900px; flex-wrap: wrap; justify-content: center; }
.tcard { width: 150px; height: 210px; --c: #ff3b5c; } .tcard .in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,1.4,.4,1); } .tcard.flip .in { transform: rotateY(180deg); }
.tcard .f { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; gap: 6px; border: 3px solid #fff; }
.tcard .back, .tcard.back { background: repeating-linear-gradient(45deg, #2a1030 0 10px, #1a0820 10px 20px); font-size: 56px; font-weight: 900; color: #c06aff; border-radius: 14px; border: 3px solid #c06aff; align-items: center; justify-content: center; }
.tcard .front { transform: rotateY(180deg); background: radial-gradient(color-mix(in srgb, var(--c) 45%, #000), #0a0610 80%); border-color: var(--c); box-shadow: 0 0 30px var(--c); } .tcard .front .ico { font-size: 52px; } .tcard .front b { font-size: 19px; letter-spacing: 2px; } .tcard .front small { font-size: 13px; color: #ddd; }
.loading .twl { font-size: 13px; letter-spacing: 3px; color: #ff8a9a; } .loading .bosswarn { color: #ff3c8c; font-weight: 900; letter-spacing: 3px; animation: warnb .4s infinite alternate; } .loading .tip { color: #8890b0; font-size: 14px; } .loading .tap { color: #556; font-size: 12px; letter-spacing: 3px; }
/* results */
.scr.results { background: radial-gradient(ellipse at 50% 0%, rgba(30,60,90,.9), #05060c 70%); } .scr.results.lose { background: radial-gradient(ellipse at 50% 0%, rgba(90,20,20,.9), #05060c 70%); }
.results .hdr { text-align: center; padding: 22px 10px 6px; } .results .hdr .big { font-size: clamp(56px, 13vw, 120px); font-weight: 900; font-style: italic; letter-spacing: 10px; animation: cin 1s cubic-bezier(.2,1.4,.4,1) both; animation-duration: .8s; }
.results.win .big { background: linear-gradient(#fff6d8, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #000); } .results.lose .big { color: #ff6a6a; } .results .sub { letter-spacing: 3px; color: #c8d0e8; }
.stars span { font-size: 44px; color: #333; display: inline-block; } .stars span.on { color: var(--gold); animation: star .5s backwards; animation-delay: var(--d); text-shadow: 0 0 20px #ffb347; } @keyframes star { from { transform: scale(3); opacity: 0; } }
.res-body { max-width: 980px; margin: 0 auto; padding: 10px 16px 30px; display: flex; flex-direction: column; gap: 14px; }
.mvpc { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: linear-gradient(90deg, #3a2a08, #0b0d18); border: 1px solid var(--gold); } .mvpc i { width: 70px; height: 70px; border-radius: 12px; background: #222 center/cover; } .mvpc small { color: var(--gold); letter-spacing: 4px; font-weight: 800; } .mvpc b { display: block; font-size: 26px; } .mvpc span { color: #c8d0e8; }
.rewards { display: flex; flex-wrap: wrap; gap: 8px; } .rw { padding: 8px 12px; border-radius: 10px; background: #141a2c; border: 1px solid var(--line); font-weight: 700; } .rw.gold { border-color: var(--gold); color: var(--gold); } .rw.nem { border-color: #ff3048; color: #ff8090; } .rw.ally { border-color: var(--ally); color: #9fe8ff; } .rw.sad { color: #ffb070; }
.stats tr.mvp td:first-child em { font-style: normal; font-size: 10px; background: var(--gold); color: #000; padding: 1px 4px; border-radius: 4px; } .stats tr.sep td { border: 0; height: 8px; }
.hl h3 { margin: 0 0 8px; letter-spacing: 3px; } .clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; } .clip { background: #10141f; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; } .clip video { width: 100%; border-radius: 8px; background: #000; } .clip .cb, .daily .cb { display: flex; gap: 6px; } .note { font-size: 13px; color: #9aa3c0; }
.daily .card { width: 100%; max-width: 640px; border-radius: 12px; align-self: center; } .daily .board ol { margin: 0; padding-left: 22px; } .daily .board li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid var(--line); } .daily .board small { color: #778; }
/* choice */
.scr.choice { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse, #2a1030, #000 70%); padding: 16px; gap: 16px; flex-wrap: wrap; } .choice .art { width: min(300px, 70vw); aspect-ratio: 1; background: center/contain no-repeat; filter: drop-shadow(0 0 30px rgba(190,100,255,.5)); }
.choice .cbox { width: min(560px, 96vw); display: flex; flex-direction: column; gap: 12px; } .choice .who { letter-spacing: 5px; font-weight: 800; color: #e0b0ff; } .choice p { font-size: 22px; margin: 0; line-height: 1.3; } .choice .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice .opts button { padding: 16px; border-radius: 14px; background: #1a1430; border: 2px solid #6a3aa0; text-align: left; } .choice .opts button b { display: block; font-size: 20px; letter-spacing: 2px; } .choice .opts button small { color: #c8b8e0; font-size: 13px; } .choice .opts button:hover, .choice .opts button.picked { border-color: var(--gold); background: #2a2010; } .choice .warn { font-size: 12px; color: #889; }
/* prologue: dim menus away */
body.prologue #shopbtn, body.prologue #scorebtn { display: none; }
@media (max-height: 500px) { #me { top: 116px; } #shopbtn { top: 172px; } .sk.atk { width: 88px; height: 88px; } #skillpad { transform: scale(.85); transform-origin: bottom right; } }
@media (max-width: 500px) { #me { top: auto; bottom: calc(150px + var(--safe-b)); left: 8px; transform: scale(.85); transform-origin: left bottom; } #shopbtn { top: 112px; } #feed { top: 50px; transform: scale(.85); transform-origin: right top; } #topbar .score { font-size: 20px; } }
.sk .ico .sk-ico { width: 62%; height: 62%; display: block; margin: auto; filter: drop-shadow(0 0 4px var(--c)) drop-shadow(0 2px 2px #000); }
.sk .ico { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sk.s3 .ico .sk-ico { width: 66%; height: 66%; }
/* portrait phones (390x844 etc.) */
@media (max-width: 500px) {
  #skillpad { transform: scale(.74); transform-origin: bottom right; }
  #me { top: 150px; bottom: auto; left: calc(8px + var(--safe-l)); transform: scale(.78); transform-origin: left top; }
  #shopbtn { top: 112px; }
  #topbar { left: auto; right: calc(8px + var(--safe-r)); top: 56px; transform: none; }
  #topbar .score { font-size: 18px; padding: 2px 10px; gap: 6px; }
  #feed { top: 112px; }
  #hint { white-space: normal; max-width: 88vw; text-align: center; font-size: 13px; bottom: 36%; border-radius: 16px; }
  #mmwrap { transform: scale(.84); transform-origin: left top; }
}
.panel-c .scene .scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12) translateY(10px); } to { transform: scale(1) translateY(0); } }
.panel-c:has(.scene) .txt { bottom: 4%; }
/* banner shrinks out of the way while the respawn overlay owns the centre */
#banner.side { top: 12%; transform: scale(.55); transform-origin: 50% 0; transition: transform .2s, top .2s; }
#banner.side .s { display: none; }

/* ===================== LANDSCAPE-FIRST MOBILE (MLBB-style) ===================== */
:root { --safe-t: env(safe-area-inset-top, 0px); }
html, body { -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
#controls, #controls * { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
canvas { touch-action: none; }
/* joystick: fixed base bottom-left inside a generous left thumb zone */
#joyzone { left: var(--safe-l); bottom: var(--safe-b); width: 42%; height: calc(100% - 170px); max-height: 72%; }
#joybase { --jx: 118; --jy: 112; left: 118px; top: calc(100% - 112px); width: 136px; height: 136px; margin: -68px 0 0 -68px; transition: opacity .15s; border: 3px solid rgba(160,220,255,.35); background: radial-gradient(rgba(127,232,255,.10), rgba(10,14,28,.35) 70%); box-shadow: inset 0 0 18px rgba(127,232,255,.15); }
#controls.touch #joybase { opacity: .7; } #controls.touch #joybase.on { opacity: 1; }
#controls.touch.joyfloat #joybase:not(.on) { opacity: .35; }
#joyknob { width: 62px; height: 62px; margin: -31px; background: radial-gradient(circle at 40% 35%, #fff, #cfe9ff 60%, #9cc8e8); box-shadow: 0 0 16px rgba(127,232,255,.55), 0 3px 6px rgba(0,0,0,.5); }
/* skill arc around the basic attack (bottom-right) */
#controls.touch #skillpad { transform: none; width: 360px; height: 300px; right: calc(16px + var(--safe-r)); bottom: calc(14px + var(--safe-b)); }
.sk.atk { width: 96px; height: 96px; right: 20px; bottom: 0; }
/* skills sit on a true arc (r=122px) around the attack button, 6px+ apart */
.sk.s0 { width: 64px; height: 64px; right: 158px; bottom: 22px; }
.sk.s1 { width: 64px; height: 64px; right: 132px; bottom: 91px; }
.sk.s2 { width: 64px; height: 64px; right: 72px; bottom: 133px; }
.sk.s3 { width: 74px; height: 74px; right: -4px; bottom: 155px; }
.sk.mini { width: 50px; height: 50px; }
/* utility row (concept-style): recall + shop sit in a tidy row left of the arc; quick-chat floats above the ult, clear of every skill */
.sk.mini { width: 46px; height: 46px; }
.sk.recall { right: 300px; bottom: 2px; } .sk.item { right: 244px; bottom: 2px; --c: #3a3020; } .sk.chat { right: 108px; bottom: 222px; width: 40px; height: 40px; opacity: .85; }
#cancelzone { top: calc(64px + var(--safe-t)); right: calc(150px + var(--safe-r)); }
/* landscape phones: compact HUD so the arena stays clear */
@media (max-height: 500px) and (orientation: landscape) {
  #mmwrap { transform: scale(.82); transform-origin: left top; top: calc(6px + var(--safe-t)); left: calc(6px + var(--safe-l)); }
  #me { top: calc(108px + var(--safe-t)); left: calc(6px + var(--safe-l)); transform: scale(.78); transform-origin: left top; }
  #shopbtn { top: calc(108px + var(--safe-t)); left: calc(196px + var(--safe-l)); padding: 4px 10px; font-size: 15px; }
  #topbar { top: calc(6px + var(--safe-t)); } #topbar .score { font-size: 20px; padding: 2px 12px; }
  #rightbar { top: calc(6px + var(--safe-t)); } .ib { width: 36px; height: 36px; }
  #feed { top: calc(48px + var(--safe-t)); transform: scale(.78); transform-origin: right top; max-height: 140px; overflow: hidden; }
  #hint { top: calc(84px + var(--safe-t)); bottom: auto; font-size: 13px; max-width: 46vw; white-space: normal; text-align: center; border-radius: 14px; }
  #banner { top: 30%; } #banner .t { font-size: 34px; } #callout { top: 13%; }
}
@media (max-height: 360px) and (orientation: landscape) { #controls.touch #skillpad { transform: scale(.9); transform-origin: bottom right; } }
/* rotate-your-phone overlay (portrait phones) */
#rotate { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 40%, #2a1008, #07060c 70%); color: #fff; text-align: center; padding: 24px; touch-action: manipulation; }
#rotate.on { display: flex; }
#rotate .rc { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 340px; }
#rotate h2 { margin: 6px 0 0; font-size: 30px; letter-spacing: 5px; font-style: italic; background: linear-gradient(180deg,#ffe9a8,#ff9a3c 60%,#ff4a2a); -webkit-background-clip: text; color: transparent; }
#rotate p { margin: 0; color: #c8d0e8; font-size: 16px; line-height: 1.4; }
#rotate button { width: 100%; padding: 14px; border-radius: 14px; font-size: 16px; font-weight: 800; letter-spacing: 2px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: #c8d0e8; }
#rotate button.primary { background: linear-gradient(180deg,#ffb050,#ff7a2a); color: #1a0a04; border: 0; box-shadow: 0 6px 24px rgba(255,120,40,.35); }
#rotate .phone { width: 64px; height: 112px; border: 4px solid #ffd27a; border-radius: 14px; position: relative; animation: rotph 2.2s ease-in-out infinite; box-shadow: 0 0 30px rgba(255,180,80,.35); margin: 18px 0; }
#rotate .phone i { position: absolute; left: 50%; bottom: 6px; width: 14px; height: 4px; margin-left: -7px; border-radius: 2px; background: #ffd27a; }
@keyframes rotph { 0%, 20% { transform: rotate(0); } 55%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@media (max-width: 500px) and (orientation: portrait) { #controls.touch #skillpad { transform: scale(.74); transform-origin: bottom right; } }
/* title in landscape phones: logo left, menu right */
@media (max-height: 500px) and (orientation: landscape) {
  .scr.title { display: grid; grid-template-columns: 1fr minmax(300px, 420px); grid-template-rows: 1fr auto auto; column-gap: 24px; row-gap: 6px; align-items: center; padding: calc(10px + var(--safe-t)) calc(16px + var(--safe-r)) 22px calc(16px + var(--safe-l)); overflow-y: auto; }
  .scr.title .logo { grid-column: 1; grid-row: 1; } .scr.title .logo .l1 { font-size: clamp(56px, 11vw, 110px); }
  .scr.title .menu { grid-column: 2; grid-row: 1 / span 3; width: 100%; gap: 7px; }
  .scr.title .menu .big { padding: 10px; font-size: 22px; } .scr.title .menu .row button { padding: 9px 6px; font-size: 13px; } .scr.title .menu .judge { padding: 7px; font-size: 14px; }
  .scr.title .acct { grid-column: 1; grid-row: 2; font-size: 12px; text-align: center; } .scr.title .badge { grid-column: 1; grid-row: 3; text-align: center; font-size: 12px; }
  .scr.title .foot { left: 0; right: 0; text-align: center; bottom: 4px; font-size: 10px; }
}
/* boot splash (splash art) */
#boot { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding-bottom: 8vh; background: #06050a; transition: opacity .4s; }
#boot.out { opacity: 0; pointer-events: none; }
#boot .art { position: absolute; inset: 0; background: url(assets/art/kael.jpg) center 30%/cover no-repeat; animation: kenburns 12s ease-out both; }
#boot .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,5,10,.1) 30%, rgba(6,5,10,.92) 85%); }
#boot .logo, #boot .bar, #boot .msg { position: relative; }
#boot .bar { width: min(420px, 70vw); height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; border: 1px solid rgba(255,200,120,.3); }
#boot .bar i { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, #ff7a1a, #ffd27a); box-shadow: 0 0 12px #ff9a3c; transition: width .2s; }
#boot .msg { color: #d8c8b0; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; }
@media (max-height: 500px) { #boot .logo .l1 { font-size: 64px; } #boot { padding-bottom: 4vh; } }
/* ===== ornate MOBA HUD skin (concept-matched) ===== */
.sk { border: 3px solid #d8b060; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--c, #3a4466) 80%, #fff) 0%, color-mix(in srgb, var(--c, #3a4466) 50%, #000) 58%, #0c0a10 100%);
  box-shadow: 0 0 0 2px rgba(40,26,8,.95), 0 0 0 4px rgba(216,176,96,.28), inset 0 0 14px rgba(0,0,0,.65), 0 6px 14px rgba(0,0,0,.55); }
.sk.mini { border-width: 2px; border-color: #b8a070; background: radial-gradient(circle at 50% 38%, #3a3a4a, #101016 75%); }
.sk.atk { border-width: 4px; background: radial-gradient(circle at 50% 38%, #e07a40 0%, #7a2a18 55%, #1a0a08 100%); }
.sk.s3 { border-color: #ffe08a; border-width: 4px; }
.sk.s3::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; background: conic-gradient(from 0deg, #ffd27a, #ff7a1a, #ffe9a8, #ff9a3c, #ffd27a); -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%); mask: radial-gradient(circle, transparent 62%, #000 64%); opacity: .35; pointer-events: none; }
.sk.s3.ready::before { opacity: 1; animation: ultspin 2.4s linear infinite; filter: drop-shadow(0 0 8px #ff9a3c); }
@keyframes ultspin { to { transform: rotate(360deg); } }
.sk .key { background: #120c06; border: 1px solid #d8b060; color: #ffe8b0; font-weight: 800; }
#topbar .score { background: linear-gradient(180deg, rgba(16,14,22,.9), rgba(6,6,10,.85)); border: 1px solid rgba(216,176,96,.55); box-shadow: 0 2px 10px rgba(0,0,0,.5); }
#mmwrap { border: 2px solid rgba(216,176,96,.6) !important; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.6); }
.ib { border-color: rgba(216,176,96,.5); }
#joybase { border-color: rgba(216,176,96,.55); }
/* splash art on menus */
.scr.title { background: linear-gradient(90deg, rgba(8,6,12,.05) 0%, rgba(8,6,12,.45) 42%, rgba(8,6,12,.88) 68%), url(assets/art/kael.jpg) 22% 28% / cover no-repeat; }
.scr.title::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 38%; background: linear-gradient(90deg, rgba(8,6,12,1), rgba(8,6,12,.55)), url(assets/art/varek.jpg) 30% 30% / cover no-repeat; opacity: .55; pointer-events: none; z-index: -1; }
.scr.title { isolation: isolate; }
.scr.loading { background: linear-gradient(180deg, rgba(6,5,10,.55), rgba(6,5,10,.92) 70%), url(assets/art/varek.jpg) center 25% / cover no-repeat; }
.scr.loading.kaelside { background: linear-gradient(180deg, rgba(6,5,10,.55), rgba(6,5,10,.92) 70%), url(assets/art/kael.jpg) center 25% / cover no-repeat; }
@media (max-width: 500px) { .scr.title { background: linear-gradient(180deg, rgba(8,6,12,.1) 0%, rgba(8,6,12,.6) 40%, rgba(8,6,12,.92) 70%), url(assets/art/kael.jpg) 40% 20% / cover no-repeat; } .scr.title::after { display: none; } }

/* 1.3 painted glowing skill icons, tinted by each hero's element */
.sk.elx { background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--el) 70%, #fff 30%) 0%, var(--el) 26%, color-mix(in srgb, var(--el2) 70%, #000 30%) 62%, #0b0816 100%); box-shadow: 0 0 14px color-mix(in srgb, var(--el) 55%, transparent), inset 0 0 10px rgba(255,255,255,.25), inset 0 -6px 12px rgba(0,0,0,.55); border-color: color-mix(in srgb, var(--el) 60%, #fff 40%); }
.sk.elx .ico { filter: drop-shadow(0 0 4px var(--el)) drop-shadow(0 1px 1px #000); }
.sk.elx .ico svg { filter: drop-shadow(0 0 3px #fff8); }
/* hero-select splash: ember-gold Kael, violet Varek */
.pick.main { background: radial-gradient(120% 140% at 0% 50%, rgba(255,140,40,.45), rgba(40,14,6,.85) 60%); box-shadow: 0 0 18px rgba(255,150,50,.45); }
.pick.main i, .pick.nemesis i { box-shadow: 0 0 16px currentColor; transform: scale(1.12); }
.pick.main i { color: #ff9a3c; } .pick.nemesis i { color: #b070ff; }
.pick.nemesis { background: radial-gradient(120% 140% at 0% 50%, rgba(160,80,255,.45), rgba(16,6,30,.85) 60%); border-color: #b070ff; box-shadow: 0 0 18px rgba(160,80,255,.5); }

/* Netlify free-tier "Powered by Netlify" badge (injected iframe) overlaps the attack button; Netlify offers a "Hide this badge" option, we hide it in-game */
#nl-badge-frame, #nl-hud-frame { display: none !important; }

/* 1.4.1 email sign-in */
.signin .card { max-width: 420px; } .signin label { display: block; text-align: left; font-size: 13px; color: #aab; margin: 10px 0; } .signin input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line, #2a3354); background: rgba(10,12,24,.85); color: #fff; font-size: 16px; }
.signin .sierr { min-height: 18px; color: #ff6a6a; font-size: 13px; font-weight: 700; } .signin .row { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.siwelcome { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 9999; padding: 10px 18px; border-radius: 12px; background: linear-gradient(90deg, #ff9a3c, #ffcf6a); color: #1a0c04; font-weight: 900; letter-spacing: .5px; box-shadow: 0 0 18px rgba(255,150,50,.6); pointer-events: none; }
.signin #siback { padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line, #2a3354); background: #1e2640; color: #fff; font-weight: 800; letter-spacing: 1px; cursor: pointer; }
