* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: #111; display: flex; justify-content: center; align-items: center;
    height: 100vh; font-family: 'Helvetica Neue', Arial, sans-serif; color: #fff; overflow: hidden;
    padding-top: 52px;
}
#game-container {
    width: 1280px; height: 720px;
    background: url('battlegazou.png') no-repeat center center; background-size: cover;
    position: relative; border: 4px solid #ccbbee; border-radius: 8px;
    display: flex; flex-direction: column;
}
#back-to-games {
    position: fixed; right: calc((100vw - 1280px) / 2); top: 8px; z-index: 9999;
    color: #2b211c; background: rgba(241, 210, 138, .94);
    border: 2px solid #795b2f; border-radius: 7px;
    padding: 8px 12px; font-size: 12px; font-weight: bold;
    text-decoration: none; box-shadow: 0 4px 0 #4d3922;
}
#back-to-games:hover {
    background: #ffe3a5; transform: translateY(1px); box-shadow: 0 3px 0 #4d3922;
}
.map-mode #turn-order-bar,
.map-mode #main-area,
.map-mode #ui-panel { display: none; }
#game-container:not(.map-mode) #map-screen { display: none; }

/* 洞窟ミニマップ */
#map-screen {
    position: absolute; inset: 0; z-index: 30;
    display: block; overflow: hidden;
    background: #07090c;
}
#map-main { position: absolute; inset: 0; padding: 0; }
#map-header {
    position: absolute; left: 22px; top: 18px; right: 22px; z-index: 8;
    height: 58px; display: flex; align-items: center; justify-content: space-between;
    pointer-events: none;
}
.map-kicker {
    color: #8ee2c0; text-transform: uppercase; letter-spacing: 2px;
    font-size: 12px; font-weight: bold; margin-bottom: 4px;
}
#map-header h1 {
    font-size: 30px; line-height: 1; color: #f5efe2; text-shadow: 0 3px 12px rgba(0,0,0,.85);
}
.map-action {
    background: #f1d28a; color: #2b211c; border: 2px solid #795b2f;
    border-radius: 7px; padding: 10px 16px; font-weight: bold; cursor: pointer;
    box-shadow: 0 4px 0 #4d3922;
    pointer-events: auto;
}
.map-action:hover { background: #ffe3a5; transform: translateY(1px); box-shadow: 0 3px 0 #4d3922; }
#cave-map {
    position: absolute; inset: 0; height: auto; border: none;
    border-radius: 0; overflow: hidden;
    background:
        linear-gradient(rgba(5, 7, 10, .10), rgba(5, 7, 10, .10)),
        url('cave-boss-map.png') center center / cover no-repeat;
    box-shadow: inset 0 0 90px rgba(0,0,0,.62);
}
#cave-map::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.30), transparent 18%, transparent 78%, rgba(0,0,0,.28));
    pointer-events: none; z-index: 1;
}
#cave-map::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 6% 12%, rgba(255,255,255,.08) 0 2px, transparent 3px),
        radial-gradient(circle at 23% 34%, rgba(255,255,255,.06) 0 2px, transparent 3px),
        radial-gradient(circle at 42% 18%, rgba(255,255,255,.07) 0 2px, transparent 3px),
        radial-gradient(circle at 77% 48%, rgba(255,255,255,.08) 0 2px, transparent 3px),
        radial-gradient(circle at 88% 75%, rgba(255,255,255,.06) 0 2px, transparent 3px);
}
.cave-room {
    display: none;
}
.chamber-start { left: 45px; top: 330px; width: 208px; height: 145px; }
.chamber-minion-a { left: 315px; top: 210px; width: 210px; height: 145px; }
.chamber-minion-b { left: 585px; top: 320px; width: 220px; height: 150px; }
.chamber-boss { left: 845px; top: 102px; width: 230px; height: 190px; border-color: #261515; }
.map-path {
    position: absolute; height: 10px; border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 213, 129, .28), rgba(91, 196, 255, .42));
    transform-origin: left center;
    box-shadow: 0 0 14px rgba(89, 184, 255, .28), 0 0 2px rgba(255,255,255,.5);
    z-index: 2; pointer-events: none;
}
.path-a { width: 318px; left: 172px; top: 515px; transform: rotate(-28deg); }
.path-b { width: 324px; left: 440px; top: 365px; transform: rotate(18deg); }
.path-c { width: 300px; left: 712px; top: 386px; transform: rotate(-40deg); }
.boss-gate { display: none; }
.torch {
    display: none;
}
.torch-a { left: 270px; top: 320px; }
.torch-b { left: 545px; top: 260px; }
.torch-c { left: 817px; top: 388px; }
.torch-d { left: 1022px; top: 128px; }
.map-node {
    position: absolute; width: 142px; min-height: 76px; border-radius: 8px;
    border: 2px solid rgba(239, 201, 124, .92);
    background: linear-gradient(rgba(38, 30, 24, .92), rgba(14, 14, 15, .94)); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.50), 0 0 18px rgba(255, 171, 72, .16);
    z-index: 3;
}
.map-node:hover:not(.locked) { transform: translateY(-2px); border-color: #fff0aa; }
.map-node img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; }
.node-label { font-weight: bold; font-size: 14px; text-shadow: 0 2px 4px #000; }
.node-note { font-size: 10px; color: #d7c9b2; }
.party-node { left: 66px; top: 548px; border-color: #8ee2c0; }
.party-node::before {
    content: ''; width: 34px; height: 34px; border-radius: 50%;
    background: radial-gradient(circle, #8ee2c0 0 38%, #1d3a35 40% 100%);
    box-shadow: 0 0 16px rgba(142, 226, 192, .65);
}
#node-minion-a { left: 332px; top: 352px; }
#node-minion-b { left: 760px; top: 484px; }
#node-boss { left: 1020px; top: 120px; width: 146px; min-height: 82px; border-color: #ff7c75; }
.map-node.cleared {
    border-color: #8ee2c0; background: rgba(24, 65, 56, .92);
}
.map-node.cleared::after {
    content: 'CLEAR'; position: absolute; top: -12px; right: -10px;
    background: #8ee2c0; color: #10231f; border-radius: 4px; padding: 2px 6px;
    font-size: 10px; font-weight: bold;
}
.map-node.locked {
    filter: grayscale(.75) brightness(.65); cursor: not-allowed;
}
.map-party {
    position: absolute; left: 22px; bottom: 18px; display: flex; gap: 6px;
    background: rgba(0,0,0,.45); border: 1px solid rgba(142, 226, 192, .45);
    padding: 6px; border-radius: 8px; z-index: 4;
}
.map-party img { width: 38px; height: 38px; object-fit: contain; border-radius: 5px; }
#map-side {
    position: absolute; right: 20px; bottom: 18px; z-index: 7; width: 282px;
    padding: 15px 16px; background: rgba(12, 13, 16, .76);
    border: 1px solid rgba(241, 210, 138, .42); border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
#map-side h2 { font-size: 18px; margin-bottom: 8px; color: #f1d28a; }
#route-list { margin-left: 20px; color: #f4ecdd; line-height: 1.6; font-size: 13px; }
#route-list li.done { color: #8ee2c0; text-decoration: line-through; }
#map-message {
    margin-top: 10px; line-height: 1.45; color: #d7c9b2; font-size: 12px;
    background: rgba(255,255,255,.06); padding: 9px; border-radius: 7px;
}
#guide-panel,
#party-panel {
    position: absolute; inset: 0; z-index: 40; background: rgba(4, 5, 7, .76);
    display: flex; align-items: center; justify-content: center; padding: 22px;
}
#guide-card,
#party-card {
    width: 1120px; max-height: 650px; overflow: hidden;
    background: #171b20; border: 2px solid #f1d28a; border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0,0,0,.55); display: flex; flex-direction: column;
}
#guide-header,
#party-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; border-bottom: 1px solid rgba(241, 210, 138, .32);
}
#guide-header h2,
#party-header h2 { font-size: 22px; color: #f6e7bd; }
#skill-guide-grid {
    padding: 14px; display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 10px; overflow-y: auto;
}
.guide-character {
    display: grid; grid-template-columns: 72px 1fr; gap: 10px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(142, 226, 192, .28);
    border-radius: 7px; padding: 10px; min-height: 132px;
}
.guide-character img {
    width: 66px; height: 66px; object-fit: contain; border-radius: 7px;
    background: rgba(0,0,0,.22);
}
.guide-character h3 { color: #8ee2c0; font-size: 15px; margin-bottom: 5px; }
.guide-skill {
    display: grid; grid-template-columns: 98px 52px 1fr; gap: 6px;
    align-items: start; padding: 3px 0; border-top: 1px solid rgba(255,255,255,.08);
    font-size: 11px; line-height: 1.35;
}
.guide-skill:first-of-type { border-top: none; }
.guide-skill strong { color: #f6e7bd; font-size: 12px; }
.guide-skill .cost { color: #9ad9ff; white-space: nowrap; }
.guide-skill span:last-child { color: #ddd7cd; }
#party-card { width: 880px; }
#party-roster {
    padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.party-member {
    display: grid; grid-template-columns: 58px 1fr; gap: 9px; align-items: center;
    background: rgba(255,255,255,.06); border: 1px solid rgba(241, 210, 138, .26);
    border-radius: 7px; padding: 10px;
}
.party-member img {
    width: 54px; height: 54px; object-fit: contain; border-radius: 6px; background: rgba(0,0,0,.28);
}
.party-member strong { display: block; color: #8ee2c0; font-size: 15px; }
.party-member span { color: #d7c9b2; font-size: 12px; line-height: 1.45; }
#btn-party-guide { align-self: flex-end; margin: 0 16px 16px 0; }
.trial-enemy #boss-sprite { height: 230px; }
.trial-enemy #boss-ui { min-width: 220px; }

/* 行動順バー */
#turn-order-bar {
    height: 80px; background: rgba(40,30,60,0.75); border-bottom: 3px solid #ccbbee;
    display: flex; align-items: center; padding: 0 20px; gap: 10px;
}
.turn-icon {
    width: 60px; height: 60px; border-radius: 8px; border: 3px solid transparent;
    position: relative; transition: transform .3s, border-color .3s, box-shadow .3s;
    background: rgba(0,0,0,.3);
}
.turn-icon.active {
    border-color: #ffdc66; transform: translateY(-3px) scale(1.08);
    box-shadow: 0 0 0 2px rgba(255,247,207,.65), 0 0 18px rgba(255,204,0,.65);
}
.turn-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
.chant-hourglass {
    position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffff00"><path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"/></svg>') no-repeat center center;
    background-color: rgba(0,0,0,.6); background-size: 14px; border-radius: 50%; display: none;
}
.turn-icon.chanting .chant-hourglass { display: block; }

/* メイン */
#main-area { flex: 1; position: relative; overflow: hidden; }

/* ボス */
#boss-area {
    position: absolute; left: 1%; top: 10%; text-align: center;
    cursor: pointer; transition: filter .3s; z-index: 5;
}
#boss-sprite {
    height: 340px; filter: drop-shadow(0 0 10px rgba(0,0,0,.5));
    transition: filter .2s, transform .2s;
}
#boss-area.targetable #boss-sprite {
    filter: drop-shadow(0 0 20px rgba(255,50,50,.8)) drop-shadow(0 0 40px rgba(255,100,100,.5));
    animation: bossTargetPulse .8s ease-in-out infinite alternate;
}
@keyframes bossTargetPulse {
    0% { filter: drop-shadow(0 0 15px rgba(255,50,50,.6)) drop-shadow(0 0 30px rgba(255,100,100,.3)); }
    100% { filter: drop-shadow(0 0 25px rgba(255,50,50,1)) drop-shadow(0 0 50px rgba(255,100,100,.7)); }
}
.damage-flash { filter: brightness(2) invert(1) !important; }
#boss-ui {
    background: rgba(0,0,0,.7); padding: 6px 14px; border-radius: 6px;
    margin-bottom: 8px; border: 1px solid #ccbbee; min-width: 240px;
}
#boss-name { font-size: 18px; font-weight: bold; color: #eebbee; }
#boss-hp-bar { width: 220px; height: 12px; background: #444; border-radius: 6px; margin: 5px auto 0; overflow: hidden; }
#boss-hp-fill { height: 100%; background: #00ff66; width: 100%; transition: width .3s; }
#boss-status-icons { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin-top: 5px; min-height: 20px; }
#boss-chant {
    background: rgba(200,50,50,.85); color: #fff; font-weight: bold;
    padding: 5px 12px; border-radius: 5px; margin-top: 10px; display: inline-block;
}

/* パーティ配置 ★スクリーンショット厳密準拠★
   画面中央～右に斜め配置
   Kyoko(オレンジ剣士)=上段中央左, Erika(赤魔女)=上段右端
   Karen(緑盾)=中段左前, Mimi(ピンク回復)=中段中央
   Sakura(水色剣士)=下段左, Anna(紫サポ)=下段右 */
#party-area {
    position: absolute; left: 35%; top: 5%; width: 700px; height: 420px;
}
.character {
    position: absolute; width: 155px; height: 210px;
    transition: transform .3s, filter .3s;
}
.character img {
    height: 100%; width: 100%; object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,.6));
}
#char-mimi { width: 200px; height: 270px; }

#char-kyoko  { top: 0;     left: 200px; }
#char-erika  { top: 0;     left: 480px; }
#char-karen  { top: 110px; left: 60px;  }
#char-mimi   { top: 80px;  left: 300px; }
#char-sakura { top: 180px; left: 160px; }
#char-anna   { top: 200px; left: 400px; }

.character.acting {
    transform: translateY(-12px) scale(1.04);
    filter: drop-shadow(0 0 16px rgba(255, 224, 132, .82));
    z-index: 8;
}
.character.acting::before {
    content: 'TURN'; position: absolute; left: 50%; top: -18px;
    transform: translateX(-50%);
    background: linear-gradient(#fff2ae, #d89534); color: #2d1a09;
    border: 1px solid #fff7cf; border-radius: 4px;
    padding: 2px 8px; font-size: 10px; font-weight: 900; letter-spacing: 1px;
    box-shadow: 0 3px 8px rgba(0,0,0,.42), 0 0 12px rgba(255,211,88,.5);
    z-index: 3;
}
.character.acting::after {
    content: ''; position: absolute; left: 50%; bottom: 6px;
    width: 92px; height: 24px; transform: translateX(-50%);
    border: 2px solid rgba(255, 220, 102, .88); border-radius: 50%;
    background:
        radial-gradient(ellipse at center, rgba(255,229,121,.36) 0 26%, rgba(116,207,255,.18) 44%, transparent 70%),
        conic-gradient(from 0deg, rgba(255,231,125,.88), rgba(116,207,255,.34), rgba(255,231,125,.88));
    box-shadow: 0 0 18px 5px rgba(255,204,0,.38), inset 0 0 12px rgba(255,255,255,.34);
    animation: turnSigilPulse 1.35s ease-in-out infinite;
    z-index: -1;
}
@keyframes turnSigilPulse {
    0%, 100% { opacity: .72; transform: translateX(-50%) scale(.94); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
.character.action-attack { animation: partyAttackLunge .42s ease-out; }
.character.action-cast { animation: partyCastPulse .62s ease-out; }
.character.action-support { animation: partySupportPulse .62s ease-out; }
.character.target-hit { animation: targetShake .28s ease-out; }
#boss-sprite.enemy-attack { animation: enemyAttackLunge .48s ease-out; }
#boss-sprite.action-cast { animation: bossCastPulse .72s ease-out; }
#boss-sprite.target-hit { animation: bossHitShake .28s ease-out; }
@keyframes partyAttackLunge {
    0% { transform: translate(0,0) scale(1); }
    45% { transform: translate(-48px,-10px) scale(1.12); filter: drop-shadow(0 0 18px rgba(255,230,120,.85)); }
    100% { transform: translate(0,0) scale(1); }
}
@keyframes partyCastPulse {
    0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 rgba(130,210,255,0)); }
    50% { transform: translateY(-18px) scale(1.1); filter: drop-shadow(0 0 24px rgba(130,210,255,.95)); }
    100% { transform: translateY(0) scale(1); filter: drop-shadow(2px 2px 4px rgba(0,0,0,.6)); }
}
@keyframes partySupportPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(120,255,180,0)); }
    50% { transform: scale(1.12); filter: drop-shadow(0 0 22px rgba(120,255,180,.95)); }
    100% { transform: scale(1); filter: drop-shadow(2px 2px 4px rgba(0,0,0,.6)); }
}
@keyframes enemyAttackLunge {
    0% { transform: translateX(0) scale(1); }
    46% { transform: translate(42px,8px) scale(1.08); filter: drop-shadow(0 0 24px rgba(255,85,85,.9)); }
    100% { transform: translateX(0) scale(1); }
}
@keyframes bossCastPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(120,210,255,0)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 32px rgba(120,210,255,1)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(0,0,0,.5)); }
}
@keyframes targetShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(7px); }
    75% { transform: translateX(-4px); }
}
@keyframes bossHitShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-12px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-6px); }
}
.character.dead { filter: brightness(.3) grayscale(1); }
.character .shield-effect {
    position: absolute; inset: -10px; border-radius: 50%;
    background: radial-gradient(circle, rgba(150,200,255,.4) 0%, transparent 70%); display: none;
}
.character.has-shield .shield-effect { display: block; }

/* UIパネル */
#ui-panel {
    height: 195px; background: rgba(30,20,40,.88);
    border-top: 3px solid #ccbbee; display: flex;
}
.panel-box { border-right: 2px solid #a890d0; padding: 10px; }

/* コマンド */
#command-ui {
    width: 18%; display: flex; flex-direction: column;
    gap: 5px; position: relative; padding: 6px 8px;
}
.command-btn {
    background: #d8cce8; color: #443366; border: 2px solid #bbaacc;
    padding: 5px; border-radius: 8px; font-size: 14px; font-weight: bold;
    cursor: pointer; transition: background .2s; text-align: center;
}
.command-btn:hover:not(:disabled) { background: #eeddff; }
.command-btn:disabled { background: #887799; color: #555; cursor: not-allowed; border-color: #665577; }
.btn-sub { display: block; font-size: 10px; color: #776699; font-weight: normal; margin-top: 1px; }

#skill-menu {
    position: absolute; top: 5px; left: 105%; width: 310px;
    background: #d8cce8; border: 2px solid #bbaacc; border-radius: 8px;
    display: flex; flex-direction: column; z-index: 10; padding: 5px;
    box-shadow: 0 6px 12px rgba(0,0,0,.5); max-height: 190px; overflow-y: auto;
}
#skill-menu button {
    background: transparent; border: none; padding: 8px 10px;
    text-align: left; color: #443366; cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,.1); line-height: 1.3;
}
#skill-menu button:hover:not(:disabled) { background: rgba(255,255,255,.4); }
#skill-menu button:last-child { border-bottom: none; }
#skill-menu button:disabled { color: #998899; cursor: not-allowed; opacity: .5; }
.skill-btn-name { font-weight: bold; font-size: 14px; display: inline; }
.skill-btn-cost { font-size: 12px; color: #5555aa; display: inline; margin-left: 6px; }
.skill-btn-desc { font-size: 11px; color: #665588; display: block; margin-top: 2px; }

/* ログ */
#log-ui {
    width: 30%; overflow-y: auto; position: relative; padding: 10px 8px 10px 15px;
    scrollbar-color: #f1d28a rgba(0,0,0,.25); scrollbar-width: thin;
}
#log-list {
    list-style: none; font-size: 14px; line-height: 1.5; color: #eeddff;
    width: 100%; min-height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
}
#log-list li {
    background: rgba(0,0,0,.3); padding: 4px 8px;
    margin-bottom: 3px; border-radius: 4px; animation: fadeIn .3s;
    border-left: 3px solid rgba(204,187,238,.32);
}
.log-tutorial {
    color: #fff4b8; background: rgba(97, 68, 18, .72) !important;
    border-left-color: #ffd760 !important; font-weight: bold;
}
.log-danger {
    color: #ffd5d5; background: rgba(88, 18, 28, .72) !important;
    border-left-color: #ff5f6f !important; font-weight: bold;
}
.log-guard {
    color: #d9ecff; background: rgba(21, 52, 92, .70) !important;
    border-left-color: #72bdff !important;
}
.log-heal {
    color: #d7ffd8; background: rgba(20, 82, 45, .68) !important;
    border-left-color: #70e887 !important;
}
.log-system {
    color: #e5dcff; background: rgba(66, 49, 97, .68) !important;
    border-left-color: #b9a0ff !important;
}

/* ステータスパネル */
#status-panel {
    width: 52%; display: grid;
    grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
    gap: 5px; padding: 8px;
}
.status-card {
    background: rgba(200,180,220,.2); border: 1px solid #a890d0; border-radius: 5px;
    padding: 4px 6px; display: flex; flex-direction: column; font-size: 12px;
    position: relative; transition: background .3s, border-color .3s, box-shadow .3s;
}
.status-card.active-turn {
    background: linear-gradient(90deg, rgba(255,204,0,.28), rgba(200,180,220,.18));
    border-color: #ffdc66;
    box-shadow: inset 4px 0 0 #ffdc66, 0 0 14px rgba(255,204,0,.38);
}
.status-card.active-turn .status-name { color: #fff0a6; }
.status-card.dead-status { opacity: .4; filter: grayscale(1); }

.status-header { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.status-face { width: 28px; height: 28px; border-radius: 4px; object-fit: contain; }
.status-name { font-weight: bold; color: #ffddff; font-size: 12px; }
.status-role { font-size: 9px; color: #ccaaf0; }
.status-bar-container { display: flex; align-items: center; margin-bottom: 1px; }
.bar-label { width: 18px; font-weight: bold; font-size: 10px; }
.bar-bg { flex: 1; height: 5px; background: #333; margin: 0 4px; border-radius: 3px; overflow: hidden; }
.hp-fill { height: 100%; background: #00ff66; transition: width .3s; }
.mp-fill { height: 100%; background: #00aaff; transition: width .3s; }
.bar-value { width: 40px; text-align: right; font-size: 10px; }
.status-icons { display: flex; gap: 3px; margin-top: 2px; flex-wrap: wrap; min-height: 14px; }
.icon-tag {
    font-size: 8px; border-radius: 2px; padding: 1px 3px;
    color: #fff; background: #666; font-weight: bold;
}
.icon-tag.buff { background: #3366ff; }
.icon-tag.debuff { background: #ff3333; }
.icon-tag.special { background: #ffaa00; }

@keyframes fadeIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes floatUp { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-30px); } }
.damage-number {
    position: fixed; color: #ff3333; font-size: 36px; font-weight: bold;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #fff;
    pointer-events: none; z-index: 20; animation: floatUp 1s forwards;
}
.heal-number {
    position: fixed; color: #33ff33; font-size: 36px; font-weight: bold;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #fff;
    pointer-events: none; z-index: 20; animation: floatUp 1s forwards;
}
.hidden { display: none !important; }
