:root {
  --bg: #070a10;
  --bg2: #0c111c;
  --panel: rgba(18, 25, 39, .92);
  --panel2: rgba(25, 34, 50, .88);
  --line: rgba(202, 164, 93, .22);
  --gold: #d3ae66;
  --gold2: #8e6b34;
  --text: #eef1f5;
  --muted: #8f9bad;
  --red: #a84843;
  --hp: linear-gradient(90deg, #742d2b, #ba4f47);
  --spirit: linear-gradient(90deg, #775516, #d4a53b);
  --good: #63a77c;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--text); background: radial-gradient(circle at 20% 0%, #17233a 0, transparent 32%), radial-gradient(circle at 100% 100%, #261b14 0, transparent 28%), var(--bg); }
body { min-height: 100vh; }
button, input { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .1; background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.018) 3px 4px); mix-blend-mode: soft-light; z-index: 20; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); align-items: stretch; }
.brand-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 110px); position: relative; overflow: hidden; border-right: 1px solid var(--line); }
.brand-panel::after { content: ""; width: 560px; height: 560px; border: 1px solid rgba(211,174,102,.14); border-radius: 50%; position: absolute; left: -170px; bottom: -260px; box-shadow: 0 0 0 60px rgba(211,174,102,.025), 0 0 0 120px rgba(211,174,102,.018); }
.sigil { width: 92px; height: 92px; border: 1px solid var(--gold2); transform: rotate(45deg); display: grid; place-items: center; margin-bottom: 36px; background: linear-gradient(135deg, rgba(211,174,102,.13), rgba(0,0,0,.12)); box-shadow: inset 0 0 40px rgba(211,174,102,.08), 0 18px 60px rgba(0,0,0,.35); }
.sigil span { transform: rotate(-45deg); font: 700 46px Georgia, serif; color: var(--gold); }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .22em; font-size: 12px; }
h1 { font: 700 clamp(54px, 8vw, 112px)/.9 Georgia, serif; margin: 8px 0 28px; letter-spacing: .04em; text-shadow: 0 8px 60px rgba(0,0,0,.5); }
.brand-copy { max-width: 680px; color: #b8c1cd; font-size: clamp(17px, 2vw, 23px); line-height: 1.55; }
.brand-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.brand-tags span { border: 1px solid var(--line); padding: 9px 13px; border-radius: 999px; color: #cbbd9d; background: rgba(211,174,102,.05); }
.auth-card { width: min(460px, calc(100% - 42px)); margin: auto; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(22,31,48,.94), rgba(9,13,21,.95)); box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; background: #090d15; border-radius: 14px; margin-bottom: 24px; }
.auth-tab { border: 0; border-radius: 10px; padding: 12px; background: transparent; color: var(--muted); cursor: pointer; }
.auth-tab.active { color: #fff; background: #1b2535; box-shadow: inset 0 0 0 1px var(--line); }
label { display: grid; gap: 8px; color: #bdc5cf; font-size: 14px; margin: 15px 0; }
input { background: #090e17; border: 1px solid #263247; color: #fff; outline: none; padding: 14px 15px; border-radius: 12px; transition: .2s; }
input:focus { border-color: var(--gold2); box-shadow: 0 0 0 3px rgba(211,174,102,.08); }
.primary, .ghost, .danger, .item-action { border-radius: 11px; padding: 11px 14px; cursor: pointer; border: 1px solid transparent; transition: transform .15s, opacity .15s, border-color .15s, background .15s; }
.primary:hover, .ghost:hover, .danger:hover, .item-action:hover { transform: translateY(-1px); }
.primary { background: linear-gradient(135deg, #b78a43, #d0ad67); color: #161109; font-weight: 800; box-shadow: 0 8px 24px rgba(181,137,67,.18); }
.primary:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.ghost { background: rgba(255,255,255,.035); border-color: #2b3546; color: #cbd2dc; }
.danger { background: rgba(168,72,67,.14); border-color: rgba(168,72,67,.4); color: #e2a5a1; }
.wide { width: 100%; margin-top: 12px; padding: 14px; }
.small { padding: 8px 10px; font-size: 12px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.55; }

.game-shell { min-height: 100vh; display: grid; grid-template-columns: 92px 1fr; grid-template-rows: 74px 1fr; }
.topbar { grid-column: 1 / -1; display: grid; grid-template-columns: 220px minmax(320px, 780px) 1fr; align-items: center; gap: 22px; padding: 10px 22px; border-bottom: 1px solid var(--line); background: rgba(7,10,16,.9); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.mini-brand { display: flex; align-items: center; gap: 12px; }
.mini-brand div { display: grid; }
.mini-brand small { color: var(--muted); }
.mini-sigil { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--gold2); transform: rotate(45deg); color: var(--gold); font: 700 20px Georgia; }
.mini-sigil::first-letter { transform: rotate(-45deg); }
.hud-main { display: grid; grid-template-columns: 160px 1fr 1fr; gap: 10px; align-items: center; }
.hud-name { display: grid; min-width: 0; }
.hud-name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-name span { color: var(--gold); font-size: 12px; }
.bar { height: 28px; background: #090d14; border: 1px solid #242e3e; border-radius: 9px; position: relative; overflow: hidden; }
.bar i { display: block; height: 100%; width: 50%; transition: width .3s; }
.bar.hp i { background: var(--hp); }
.bar.spirit i { background: var(--spirit); }
.bar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; text-shadow: 0 1px 3px #000; font-weight: 700; }
.hud-meta { justify-self: end; display: flex; align-items: center; gap: 14px; color: #c6ced8; }
.hud-meta b { color: #fff; }
.sidebar { grid-row: 2; border-right: 1px solid var(--line); padding: 14px 8px; display: flex; flex-direction: column; gap: 8px; background: rgba(9,13,21,.76); }
.nav { border: 1px solid transparent; background: transparent; border-radius: 13px; min-height: 68px; display: grid; place-items: center; align-content: center; gap: 4px; color: #778398; cursor: pointer; }
.nav span { font-size: 21px; }
.nav b { font-size: 11px; }
.nav.active { color: var(--gold); border-color: var(--line); background: rgba(211,174,102,.06); }
.content { padding: clamp(18px, 3vw, 38px); max-width: 1500px; width: 100%; margin: 0 auto; }
.mobile-nav { display: none; }

.page-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 24px; }
.page-head h2 { font: 700 clamp(30px, 4vw, 48px) Georgia, serif; margin: 0 0 6px; }
.page-head p { margin: 0; color: var(--muted); max-width: 720px; line-height: 1.55; }
.kicker { color: var(--gold); letter-spacing: .16em; text-transform: uppercase; font-size: 11px; }
.panel { background: linear-gradient(180deg, var(--panel), rgba(11,16,25,.94)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hero-card { padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-bottom: 18px; }
.path-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); background: rgba(211,174,102,.07); border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; font-size: 12px; }
.hero-card h3 { font: 700 30px Georgia, serif; margin: 12px 0 6px; }
.hero-card p { color: var(--muted); margin: 0; max-width: 780px; line-height: 1.55; }
.xp-ring { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) var(--xp), #192232 0); position: relative; }
.xp-ring::after { content: ""; position: absolute; inset: 10px; background: #101722; border-radius: 50%; }
.xp-ring div { position: relative; z-index: 1; text-align: center; }
.xp-ring b { display: block; font: 700 32px Georgia, serif; }
.xp-ring small { color: var(--muted); }

.location { padding: 18px; }
.location.locked { opacity: .46; filter: saturate(.55); }
.location-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.location h3 { margin: 3px 0 6px; font: 700 22px Georgia, serif; }
.location p { color: var(--muted); line-height: 1.45; }
.level-chip { border: 1px solid var(--line); color: #d8c7a4; padding: 6px 9px; border-radius: 999px; white-space: nowrap; font-size: 12px; }
.monsters { display: grid; gap: 9px; margin-top: 16px; }
.monster-row { border-top: 1px solid rgba(255,255,255,.06); padding-top: 11px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.monster-row b { display: block; }
.monster-row small { color: var(--muted); }

.equipment { padding: 18px; }
.equipment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.slot { min-height: 104px; border: 1px dashed #354155; border-radius: 13px; padding: 12px; background: rgba(0,0,0,.12); }
.slot-name { color: #738096; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.slot b { display: block; margin-top: 8px; font-size: 13px; }
.slot small { color: var(--gold); }

.inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.item-card { padding: 15px; position: relative; overflow: hidden; }
.item-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #5f6875; }
.item-card.uncommon::before { background: #4f9c79; }
.item-card.rare::before { background: #4d78b9; }
.item-card.epic::before { background: #8a5ab5; }
.item-top { display: flex; justify-content: space-between; gap: 10px; }
.item-card h4 { margin: 3px 0 7px; }
.item-type { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.qty { color: var(--gold); }
.item-stats { color: #b9c2cf; font-size: 12px; line-height: 1.55; min-height: 38px; }
.item-desc { color: #7f8b9f; font-size: 12px; line-height: 1.45; min-height: 50px; }
.item-action { width: 100%; margin-top: 10px; background: #172131; border-color: #2d3b51; }

.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stat { padding: 14px; text-align: center; }
.stat small { display: block; color: var(--muted); }
.stat b { display: block; margin-top: 4px; font-size: 23px; }
.attribute-list { display: grid; gap: 10px; }
.attribute { padding: 15px; display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; }
.attr-value { font: 700 28px Georgia, serif; color: var(--gold); text-align: center; }
.attribute h4 { margin: 0 0 5px; }
.attribute p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.add-attr { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: rgba(211,174,102,.08); color: var(--gold); cursor: pointer; font-size: 22px; }
.add-attr:disabled { opacity: .25; cursor: not-allowed; }

.skill-timeline { display: grid; gap: 10px; }
.skill-card { padding: 16px; display: grid; grid-template-columns: 62px 1fr auto; gap: 15px; align-items: center; }
.skill-level { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); font: 700 18px Georgia; background: rgba(211,174,102,.05); }
.skill-card.locked { opacity: .42; }
.skill-card h4 { margin: 0 0 5px; }
.skill-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.skill-meta { text-align: right; color: #a8b2c0; font-size: 12px; }

.battle-modal { position: fixed; inset: 0; z-index: 30; background: rgba(3,5,9,.88); backdrop-filter: blur(14px); display: grid; place-items: center; padding: 20px; }
.battle-window { width: min(1120px, 100%); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at 50% 0, rgba(133,86,41,.13), transparent 30%), #0d131e; box-shadow: 0 40px 120px #000; }
.battle-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.battle-stage { display: grid; grid-template-columns: 1fr 180px 1fr; gap: 18px; align-items: stretch; padding: 20px; }
.combatant { padding: 20px; min-height: 220px; }
.combatant h3 { font: 700 25px Georgia; margin: 3px 0 8px; }
.combatant .big-icon { font: 700 70px Georgia; color: rgba(211,174,102,.35); float: right; }
.intent { display: grid; place-items: center; text-align: center; padding: 14px; border: 1px solid rgba(168,72,67,.32); border-radius: 16px; background: rgba(168,72,67,.06); }
.intent b { color: #e4a29d; }
.intent small { color: var(--muted); line-height: 1.4; }
.battle-skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 20px 20px; }
.skill-button { text-align: left; min-height: 96px; background: linear-gradient(180deg, #172131, #101722); border: 1px solid #2a3850; border-radius: 14px; padding: 12px; cursor: pointer; }
.skill-button:hover:not(:disabled) { border-color: var(--gold2); }
.skill-button:disabled { opacity: .35; cursor: not-allowed; }
.skill-button b { display: block; }
.skill-button small { display: block; color: var(--muted); margin-top: 5px; line-height: 1.35; }
.skill-button em { color: var(--gold); font-style: normal; font-size: 11px; }
.battle-log { margin: 0 20px 20px; padding: 14px; max-height: 160px; overflow: auto; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; background: #090d14; color: #9ba7b6; font-size: 12px; line-height: 1.55; }
.result-card { padding: 28px; text-align: center; }
.result-card h2 { font: 700 38px Georgia; margin: 0 0 8px; }
.loot-line { margin: 14px 0; color: var(--gold); }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: 380px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: #121a27; box-shadow: 0 18px 50px rgba(0,0,0,.35); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .22s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 44vh; border-right: 0; border-bottom: 1px solid var(--line); padding: 38px 26px; }
  .sigil { width: 64px; height: 64px; margin-bottom: 18px; }
  .sigil span { font-size: 32px; }
  h1 { font-size: 54px; }
  .auth-card { margin: 26px auto 38px; }
  .game-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr 70px; padding-bottom: 70px; }
  .topbar { grid-template-columns: 1fr auto; gap: 10px; padding: 10px 12px; }
  .mini-brand { display: none; }
  .hud-main { grid-template-columns: 115px minmax(90px, 1fr) minmax(90px, 1fr); gap: 6px; }
  .hud-meta { gap: 8px; }
  .hud-meta .small { display: none; }
  .sidebar { display: none; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; height: 70px; display: grid; grid-template-columns: repeat(4, 1fr); z-index: 15; background: rgba(7,10,16,.96); border-top: 1px solid var(--line); backdrop-filter: blur(16px); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav .nav { min-height: 62px; border-radius: 0; }
  .content { padding: 18px 13px; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
  .battle-stage { grid-template-columns: 1fr; }
  .intent { order: -1; }
  .battle-skills { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .hud-name span { font-size: 10px; }
  .bar { height: 24px; }
  .hud-meta span:first-child { display: none; }
  .page-head { align-items: start; flex-direction: column; }
  .hero-card { grid-template-columns: 1fr; }
  .xp-ring { width: 94px; height: 94px; }
  .attribute { grid-template-columns: 54px 1fr auto; }
  .inventory-grid { grid-template-columns: 1fr; }
  .skill-card { grid-template-columns: 52px 1fr; }
  .skill-meta { grid-column: 2; text-align: left; }
  .battle-modal { padding: 0; }
  .battle-window { border-radius: 0; max-height: 100vh; height: 100vh; }
  .battle-skills { grid-template-columns: 1fr 1fr; padding: 0 12px 12px; }
  .battle-stage { padding: 12px; }
  .battle-head { padding: 12px; }
}

/* ===========================
   v0.2.0 — THREE PATHS / BATTLE V2
   =========================== */
.path-warrior { --path-accent:#d9b66d; --path-soft:rgba(217,182,109,.12); --path-line:rgba(217,182,109,.34); }
.path-guardian { --path-accent:#91b8c9; --path-soft:rgba(145,184,201,.11); --path-line:rgba(145,184,201,.32); }
.path-barbarian { --path-accent:#d87563; --path-soft:rgba(216,117,99,.12); --path-line:rgba(216,117,99,.32); }

.enemy-badge { display:inline-flex; align-items:center; gap:5px; margin-left:6px; padding:4px 7px; border-radius:999px; border:1px solid rgba(255,255,255,.1); font-size:9px; line-height:1; text-transform:uppercase; letter-spacing:.08em; vertical-align:middle; }
.enemy-badge.pack { color:#c7d4df; background:rgba(137,161,181,.09); border-color:rgba(137,161,181,.24); }
.enemy-badge.elite { color:#dfbb72; background:rgba(211,174,102,.09); border-color:rgba(211,174,102,.28); }
.enemy-badge.boss { color:#e9948c; background:rgba(168,72,67,.12); border-color:rgba(168,72,67,.34); }
.monster-copy { min-width:0; }
.monster-title { display:flex; align-items:center; flex-wrap:wrap; gap:3px; margin-bottom:4px; }

.path-manifest { display:grid; grid-template-columns:76px minmax(0,1fr) auto; gap:18px; align-items:center; padding:20px; margin-bottom:16px; border-color:var(--path-line); background:linear-gradient(135deg,var(--path-soft),rgba(18,25,39,.94) 45%); }
.path-manifest-mark { width:64px; height:64px; border-radius:18px; display:grid; place-items:center; font:700 29px Georgia,serif; color:var(--path-accent); border:1px solid var(--path-line); background:rgba(5,8,13,.36); box-shadow:inset 0 0 26px var(--path-soft); }
.path-manifest h3 { margin:3px 0 7px; font:700 27px Georgia,serif; color:var(--path-accent); }
.path-manifest p { margin:0; max-width:760px; color:#aab5c4; line-height:1.55; }
.path-skill { border-left:2px solid var(--path-line); }
.skill-level { position:relative; flex-direction:column; line-height:1; }
.skill-level span { color:var(--path-accent, var(--gold)); font-size:23px; }
.skill-level small { color:#778397; font:700 10px system-ui; margin-top:4px; }
.skill-role { color:var(--path-accent,var(--gold)); font-size:10px; text-transform:uppercase; letter-spacing:.1em; margin-bottom:3px; }

.mechanic-box { display:flex; align-items:center; gap:9px; width:max-content; max-width:100%; padding:8px 10px; margin-top:10px; border-radius:12px; border:1px solid var(--path-line, var(--line)); background:rgba(4,7,11,.26); }
.mechanic-box > span { color:#aab4c2; font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.mechanic-box > b { color:var(--path-accent,var(--gold)); font-size:11px; }
.mechanic-pips { display:flex; gap:4px; }
.mechanic-pips i { width:18px; height:6px; border-radius:99px; background:#202938; border:1px solid rgba(255,255,255,.05); }
.mechanic-pips i.on { background:var(--path-accent,var(--gold)); box-shadow:0 0 13px var(--path-soft,rgba(211,174,102,.16)); }

.battle-modal { background:radial-gradient(circle at 50% 0,rgba(34,48,72,.33),transparent 36%),rgba(2,4,8,.93); }
.battle-v2 { --battle-edge:var(--path-line); --battle-accent:var(--path-accent); width:min(1280px,100%); background:radial-gradient(circle at 18% 0,var(--path-soft),transparent 26%),radial-gradient(circle at 90% 25%,rgba(116,49,42,.10),transparent 25%),#0a1019; border-color:var(--battle-edge); overflow:auto; }
.battle-head-v2 { min-height:72px; padding:13px 18px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid rgba(255,255,255,.065); background:linear-gradient(180deg,rgba(255,255,255,.018),transparent); position:sticky; top:0; z-index:4; backdrop-filter:blur(14px); }
.battle-title { display:flex; align-items:center; gap:12px; min-width:0; }
.battle-title b { display:block; font:700 18px Georgia,serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.battle-title b span { color:#657185; font:400 12px system-ui; margin:0 5px; }
.round-mark { width:40px; height:40px; border-radius:13px; display:grid; place-items:center; border:1px solid var(--battle-edge); color:var(--battle-accent); background:var(--path-soft); font:700 16px Georgia,serif; }
.battle-head-actions { display:flex; align-items:center; gap:10px; }
.battle-resource-mini { padding:8px 10px; border-radius:10px; border:1px solid rgba(255,255,255,.08); color:#b6c0ce; font-size:11px; background:rgba(0,0,0,.16); }

.battle-arena { display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,220px) minmax(0,1fr); gap:14px; align-items:stretch; padding:16px 18px 10px; }
.fighter-card { min-height:285px; border:1px solid rgba(255,255,255,.075); border-radius:20px; background:linear-gradient(145deg,rgba(21,29,43,.94),rgba(10,15,24,.96)); overflow:hidden; display:grid; grid-template-columns:120px minmax(0,1fr); box-shadow:inset 0 1px 0 rgba(255,255,255,.025); }
.enemy-card { grid-template-columns:minmax(0,1fr) 120px; }
.fighter-visual { position:relative; min-height:100%; display:grid; place-items:center; border-right:1px solid rgba(255,255,255,.06); background:radial-gradient(circle at 50% 45%,var(--path-soft),transparent 42%),linear-gradient(180deg,rgba(255,255,255,.015),rgba(0,0,0,.18)); overflow:hidden; }
.fighter-visual.enemy { border-right:0; border-left:1px solid rgba(255,255,255,.06); background:radial-gradient(circle at 50% 45%,rgba(168,72,67,.12),transparent 42%),linear-gradient(180deg,rgba(255,255,255,.015),rgba(0,0,0,.18)); }
.fighter-visual span { position:relative; z-index:2; color:var(--battle-accent); font:700 46px Georgia,serif; letter-spacing:-7px; filter:drop-shadow(0 8px 20px rgba(0,0,0,.55)); }
.fighter-visual.enemy span { color:#ae625a; font-size:34px; }
.fighter-visual i { position:absolute; width:88px; height:88px; border:1px solid var(--battle-edge); border-radius:50%; box-shadow:0 0 0 18px rgba(255,255,255,.012),0 0 0 36px rgba(255,255,255,.008); opacity:.55; }
.fighter-info { padding:18px; min-width:0; }
.fighter-info h3 { margin:3px 0 12px; font:700 27px Georgia,serif; }
.enemy-title-line { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.enemy-title-line h3 { margin-bottom:10px; }
.bar.large { height:29px; margin-bottom:8px; }
.bar.large span { font-size:11px; font-weight:700; }
.enemy-hp i { background:linear-gradient(90deg,#6c2927,#a74640); }
.micro-stats { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.micro-stats span { padding:5px 7px; border-radius:8px; background:rgba(255,255,255,.035); color:#788597; font-size:10px; }
.micro-stats b { color:#c8d0db; }
.status-line { display:flex; flex-wrap:wrap; gap:5px; margin-top:9px; min-height:25px; }
.status-chip { display:inline-flex; align-items:center; gap:5px; padding:5px 7px; border-radius:8px; border:1px solid rgba(255,255,255,.07); background:#101824; font-size:9px; }
.status-chip b { color:#c2ccd8; }
.status-chip em { color:#8996a7; font-style:normal; }
.status-chip.gold { border-color:rgba(211,174,102,.22); }
.status-chip.steel { border-color:rgba(145,184,201,.22); }
.status-chip.red { border-color:rgba(216,117,99,.24); }
.status-empty { color:#586578; font-size:10px; align-self:center; }
.enemy-description { color:#8995a6; font-size:11px; line-height:1.45; margin:11px 0; }

.intent-card { border-radius:20px; border:1px solid rgba(255,255,255,.075); min-height:285px; padding:17px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; background:linear-gradient(180deg,rgba(18,24,35,.92),rgba(9,13,20,.94)); }
.intent-card.danger { border-color:rgba(190,78,70,.32); background:radial-gradient(circle at 50% 18%,rgba(168,72,67,.14),transparent 40%),#0d121a; }
.intent-card.special { border-color:rgba(154,121,68,.34); background:radial-gradient(circle at 50% 18%,rgba(211,174,102,.11),transparent 40%),#0d121a; }
.intent-eye { width:52px; height:52px; display:grid; place-items:center; margin-bottom:13px; border-radius:16px; border:1px solid currentColor; color:#8e9bad; font:700 26px Georgia,serif; opacity:.9; }
.intent-card.danger .intent-eye { color:#d06d65; }
.intent-card.special .intent-eye { color:#d2aa61; }
.intent-card h4 { margin:5px 0 7px; font:700 19px Georgia,serif; }
.intent-card p { color:#9aa6b5; margin:0 0 10px; font-size:11px; line-height:1.45; }
.intent-card > small { color:#616e80; font-size:9px; line-height:1.45; }

.pack-strip { margin:10px 0; padding:9px 10px; display:grid; grid-template-columns:auto 1fr auto; gap:9px; align-items:center; border:1px solid rgba(143,164,181,.14); border-radius:10px; background:rgba(143,164,181,.045); }
.pack-strip > span { color:#8390a1; font-size:9px; text-transform:uppercase; letter-spacing:.07em; }
.pack-strip > div { display:flex; justify-content:center; gap:5px; }
.pack-strip i { width:21px; height:21px; display:grid; place-items:center; border-radius:7px; font-style:normal; font-size:9px; }
.pack-strip i.alive { color:#c4d0da; border:1px solid rgba(196,208,218,.18); background:rgba(196,208,218,.07); }
.pack-strip i.down { color:#5d6673; border:1px solid rgba(255,255,255,.05); background:rgba(0,0,0,.13); }
.pack-strip > b { color:#aab5c2; font-size:10px; }

.battle-command-zone { padding:8px 18px 14px; }
.command-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:9px; }
.command-head b { font:700 18px Georgia,serif; }
.command-head > small { color:#5f6a79; font-size:9px; }
.battle-skills-v2 { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.battle-skills-v2 .skill-button { min-height:118px; padding:11px; position:relative; display:grid; grid-template-columns:31px minmax(0,1fr); grid-template-rows:auto 1fr auto; gap:4px 9px; border-color:rgba(255,255,255,.08); background:linear-gradient(160deg,rgba(24,34,49,.96),rgba(12,18,28,.98)); transition:transform .12s,border-color .12s,background .12s; }
.battle-skills-v2 .skill-button:hover:not(:disabled) { transform:translateY(-2px); border-color:var(--battle-edge); background:linear-gradient(160deg,var(--path-soft),rgba(12,18,28,.98) 48%); }
.skill-hotkey { position:absolute; top:7px; right:7px; width:19px; height:19px; display:grid; place-items:center; border-radius:6px; background:rgba(0,0,0,.24); color:#5f6b7b; font-size:9px; }
.skill-icon { grid-row:1 / span 2; width:31px; height:31px; border-radius:9px; display:grid; place-items:center; border:1px solid var(--battle-edge); color:var(--battle-accent); background:var(--path-soft); font:700 17px Georgia,serif; }
.skill-copy { min-width:0; }
.skill-copy em { display:block; color:var(--battle-accent); text-transform:uppercase; letter-spacing:.07em; font-size:8px; margin-bottom:2px; }
.skill-copy b { font-size:12px; padding-right:17px; }
.skill-copy small { font-size:9px; line-height:1.35; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.skill-cost { grid-column:1 / -1; align-self:end; margin-top:4px; padding-top:6px; border-top:1px solid rgba(255,255,255,.055); color:#8995a6; font-size:9px; }
.battle-skills-v2 .skill-button:disabled .skill-icon { filter:grayscale(1); }

.battle-log-v2 { margin:0 18px 18px; border:1px solid rgba(255,255,255,.06); border-radius:13px; background:rgba(5,8,13,.55); overflow:hidden; }
.battle-log-v2 summary { cursor:pointer; list-style:none; padding:10px 12px; color:#778496; font-size:10px; text-transform:uppercase; letter-spacing:.08em; border-bottom:1px solid rgba(255,255,255,.045); }
.battle-log-v2 summary::-webkit-details-marker { display:none; }
.battle-log-v2 summary span { float:right; color:#596575; }
.battle-log-v2 > div { max-height:135px; overflow:auto; padding:8px 12px; }
.battle-log-v2 p { margin:0; padding:4px 0; display:grid; grid-template-columns:44px 1fr; gap:8px; color:#778496; font-size:10px; line-height:1.4; }
.battle-log-v2 p span { color:#4f5c6d; }
.battle-log-v2 p.latest { color:#c3ccd8; }
.battle-log-v2 p.latest span { color:var(--battle-accent); }

.battle-result { width:min(660px,100%); }
.result-sigil { width:72px; height:72px; margin:0 auto 15px; border-radius:22px; display:grid; place-items:center; border:1px solid var(--path-line,var(--line)); color:var(--path-accent,var(--gold)); background:var(--path-soft,rgba(211,174,102,.08)); font:700 34px Georgia,serif; }

@media (max-width: 1080px) {
  .battle-arena { grid-template-columns:1fr 170px 1fr; }
  .fighter-card { grid-template-columns:90px minmax(0,1fr); }
  .enemy-card { grid-template-columns:minmax(0,1fr) 90px; }
  .battle-skills-v2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .path-manifest { grid-template-columns:56px 1fr; }
  .path-manifest-mark { width:52px; height:52px; border-radius:15px; }
  .path-manifest .mechanic-box { grid-column:1 / -1; }
  .battle-head-v2 { min-height:60px; padding:9px 10px; }
  .round-mark { width:34px; height:34px; border-radius:10px; }
  .battle-title b { font-size:14px; }
  .battle-resource-mini { display:none; }
  .battle-arena { grid-template-columns:1fr; padding:10px; gap:8px; }
  .intent-card { min-height:122px; order:-1; padding:12px; }
  .intent-eye { width:38px; height:38px; border-radius:12px; margin-bottom:7px; font-size:20px; }
  .intent-card p { max-width:520px; }
  .fighter-card, .enemy-card { min-height:0; grid-template-columns:72px minmax(0,1fr); }
  .enemy-card { grid-template-columns:minmax(0,1fr) 72px; }
  .fighter-info { padding:13px; }
  .fighter-info h3 { font-size:21px; margin-bottom:8px; }
  .fighter-visual span, .fighter-visual.enemy span { font-size:27px; }
  .micro-stats { margin-top:7px; }
  .battle-command-zone { padding:4px 10px 10px; }
  .command-head > small { display:none; }
  .battle-skills-v2 { gap:6px; }
  .battle-skills-v2 .skill-button { min-height:105px; padding:9px; grid-template-columns:27px minmax(0,1fr); }
  .skill-icon { width:27px; height:27px; font-size:14px; }
  .skill-copy small { -webkit-line-clamp:2; }
  .battle-log-v2 { margin:0 10px 10px; }
}

@media (max-width: 440px) {
  .battle-title .kicker { display:none; }
  .battle-title b span { display:none; }
  .battle-head-actions .danger { padding:7px 9px; }
  .fighter-card, .enemy-card { grid-template-columns:58px minmax(0,1fr); border-radius:15px; }
  .enemy-card { grid-template-columns:minmax(0,1fr) 58px; }
  .fighter-info { padding:10px; }
  .fighter-info h3 { font-size:18px; }
  .bar.large { height:25px; }
  .mechanic-box { width:100%; justify-content:space-between; padding:6px 8px; }
  .battle-skills-v2 { grid-template-columns:1fr 1fr; }
  .battle-skills-v2 .skill-button { min-height:98px; }
  .skill-copy b { font-size:11px; }
  .skill-copy small { display:none; }
  .skill-cost { font-size:8px; }
  .pack-strip { grid-template-columns:auto auto; }
  .pack-strip > div { grid-column:1 / -1; grid-row:2; justify-content:flex-start; }
}
