:root{
    --acb-accent:#8d5cff;
    --acb-panel:#0b1220;
    --acb-border:rgba(255,255,255,.08);
    --acb-text:#f4f7ff;
    --acb-muted:rgba(244,247,255,.72);
    --acb-glow:0 0 0 1px rgba(141,92,255,.20), 0 0 34px rgba(141,92,255,.14);
    --overlay:.68;
}

#acb-app,
.acb-admin{
    color:var(--acb-text);
}

.acb-admin h1,
.acb-admin h2,
.acb-admin h3,
.acb-admin p,
.acb-admin label,
.acb-admin th,
.acb-admin td{
    color:inherit;
}

.acb-admin .acb-admin-hero{
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:center;
    margin:18px 0 20px;
    padding:22px;
    border-radius:24px;
    background:linear-gradient(135deg, rgba(11,18,32,.96), rgba(28,14,59,.92));
    border:1px solid var(--acb-border);
    box-shadow:0 26px 80px rgba(0,0,0,.25);
}

.acb-admin-grid{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:20px;
    margin-bottom:20px;
}

.acb-card-panel{
    background:#0b1220;
    border:1px solid var(--acb-border);
    box-shadow:0 24px 60px rgba(0,0,0,.22);
    border-radius:24px;
    padding:20px;
}

.acb-side .acb-guide p{
    margin:8px 0 14px;
    color:var(--acb-muted);
}

.acb-form label{
    display:block;
    margin:0 0 8px;
    font-weight:600;
}

.acb-form input[type="text"],
.acb-form input[type="url"],
.acb-form input[type="number"],
.acb-form textarea,
.acb-form select,
.acb-select-wrap select{
    width:100%;
    max-width:100%;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.12);
    background:#08101d;
    color:#fff;
    padding:12px 14px;
    outline:none;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

.acb-form textarea{
    min-height:120px;
    resize:vertical;
}

.acb-grid-2,
.acb-grid-3,
.acb-grid-4,
.acb-toggle-grid{
    display:grid;
    gap:14px;
    margin-bottom:14px;
}

.acb-grid-2{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
.acb-grid-3{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
.acb-grid-4{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
.acb-grid-5{ display:grid; gap:14px; margin-bottom:14px; grid-template-columns:repeat(5, minmax(0, 1fr)); }
.acb-toggle-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }

.acb-checkbox-row{
    display:flex;
    align-items:end;
    padding:0 0 6px;
}

.acb-actions-row{
    display:flex;
    gap:10px;
    margin-top:10px;
    flex-wrap:wrap;
}

.acb-table-panel{ margin-top:20px; }
.acb-table-wrap{ overflow:auto; }
.acb-table td,
.acb-table th{ vertical-align:middle; }
@media (min-width: 981px){
    .acb-admin .acb-table-panel{
        margin-top:28px;
        padding-top:18px;
        border-top:1px solid rgba(255,255,255,.06);
        clear:both;
    }
}

.acb-admin .acb-table{
    width:100%;
    background:rgba(6,10,18,.4);
    color:#fff;
    border-collapse:separate;
    border-spacing:0 10px;
}

.acb-admin .acb-table thead th{
    background:transparent;
    color:rgba(255,255,255,.74);
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.08em;
    border:none;
    padding:0 12px 8px;
    white-space:normal;
}

.acb-admin .acb-table tbody tr{
    background:linear-gradient(180deg, rgba(10,16,29,.96), rgba(12,19,34,.92));
}

.acb-admin .acb-table td,
.acb-admin .acb-table th{
    border-color:rgba(255,255,255,.06);
}

.acb-admin .acb-table td{
    padding:14px 12px;
    background:transparent;
    color:#fff;
}

.acb-admin .acb-table td:last-child,
.acb-admin .acb-table th:last-child{ white-space:nowrap; }

.acb-table-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    align-items:center;
}

.acb-card-preview{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:220px;
}

.acb-thumb{
    width:66px;
    height:86px;
    border-radius:16px;
    box-shadow:0 14px 30px rgba(0,0,0,.28);
    border:1px solid rgba(255,255,255,.08);
    background-color:#10192d;
    object-fit:cover;
    display:block;
    flex:0 0 auto;
}

.acb-pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    line-height:1;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    margin-right:6px;
    margin-top:6px;
    white-space:nowrap;
}

.acb-pill.common{ background:rgba(148,163,184,.14); }
.acb-pill.rare{ background:rgba(59,130,246,.18); }
.acb-pill.elemental{ background:rgba(16,185,129,.18); }
.acb-pill.arcana{ background:rgba(141,92,255,.22); }
.acb-pill.active{ background:rgba(34,197,94,.18); }
.acb-pill.inactive{ background:rgba(239,68,68,.18); }
.acb-pill.element{ background:rgba(34,211,238,.14); }

.acb-admin .notice{ border-radius:14px; }

.acb-app{
    max-width:1400px;
    margin:0 auto;
}

.acb-shell{
    position:relative;
    isolation:isolate;
    overflow:hidden;
    min-height:980px;
    border-radius:30px;
    padding:18px;
    background:
        radial-gradient(circle at 20% 18%, rgba(141,92,255,.24), transparent 28%),
        radial-gradient(circle at 80% 12%, rgba(44,208,255,.18), transparent 24%),
        linear-gradient(160deg, rgba(6,10,18,.98), rgba(11,17,31,.98));
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 32px 120px rgba(0,0,0,.42);
}

.acb-shell.has-bg{
    background-size:cover;
    background-position:center center;
}

.acb-shell::before{
    content:'';
    position:absolute;
    inset:0;
    background:rgba(0,0,0,var(--overlay));
    pointer-events:none;
}

.acb-particles{
    position:absolute;
    inset:0;
    overflow:hidden;
    pointer-events:none;
    z-index:0;
}

.acb-particles span{
    position:absolute;
    width:4px;
    height:4px;
    border-radius:999px;
    background:rgba(255,255,255,.85);
    box-shadow:0 0 14px rgba(141,92,255,.9);
    animation:acb-float linear infinite;
    opacity:.6;
}

@keyframes acb-float{
    0%{ transform:translate3d(0, 0, 0) scale(.6); opacity:0; }
    20%{ opacity:.8; }
    100%{ transform:translate3d(var(--x), -120vh, 0) scale(1.4); opacity:0; }
}

.acb-topbar,
.acb-layout,
.acb-footer{
    position:relative;
    z-index:2;
}

.acb-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:16px;
}

.acb-kicker{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:3px;
    color:rgba(255,255,255,.7);
}

.acb-topbar h2{
    margin:6px 0 0;
    font-size:32px;
    line-height:1.05;
}

.acb-status,
.acb-pill.deck-count{
    padding:11px 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.08);
    background:#111b2d;
    
    box-shadow:0 12px 34px rgba(0,0,0,.2);
}

.acb-layout{
    display:grid;
    grid-template-columns:340px minmax(0, 1fr) 290px;
    gap:18px;
}

.acb-panel{
    position:relative;
    overflow:hidden;
    border-radius:28px;
    border:1px solid rgba(255,255,255,.08);
    background:#0b1220;
    backdrop-filter:none;
    box-shadow:0 20px 60px rgba(0,0,0,.28);
}

.acb-panel.glow{
    box-shadow:var(--acb-glow), 0 20px 60px rgba(0,0,0,.25);
}

.acb-panel-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    padding:18px 18px 10px;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.acb-panel-head h3,
.acb-deck-builder h4{
    margin:0;
    font-size:18px;
}

.acb-panel-head p{
    margin:5px 0 0;
    color:var(--acb-muted);
    font-size:13px;
}
.acb-story-panel .acb-panel-head{
    flex-wrap:wrap;
}
.acb-story-panel .acb-panel-head > div:first-child{
    min-width:0;
    flex:1 1 280px;
}
.acb-story-panel .acb-panel-head p{
    word-break:break-word;
    overflow-wrap:anywhere;
    max-width:100%;
}
.acb-story-panel .acb-story-selector{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    padding:16px 18px 18px;
}
.acb-story-panel .acb-select-wrap{
    padding:0;
    min-width:0;
}
.acb-story-panel .acb-story-help,
.acb-story-panel .acb-story-cta{
    grid-column:1 / -1;
}
.acb-story-panel .acb-story-help{
    line-height:1.45;
    margin-top:2px;
    overflow-wrap:anywhere;
    word-break:break-word;
}
.acb-story-panel .acb-story-cta{
    margin-top:2px;
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:center;
    justify-content:flex-start;
}
.acb-story-panel .acb-story-cta .button{
    min-width:160px;
    width:auto;
    flex:0 1 180px;
}

.acb-story-ui-btn{
    min-width:0;
    width:auto;
    flex:1 1 0;
    padding:8px 12px;
    border-radius:14px;
    border:1px solid rgba(146, 112, 255, .38);
    background:linear-gradient(180deg, rgba(37, 24, 62, .96), rgba(16, 12, 29, .96));
    box-shadow:0 10px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
    color:#fff;
    font-size:12px;
    font-weight:800;
    line-height:1;
    letter-spacing:.06em;
    text-transform:uppercase;
    white-space:nowrap;
    min-height:34px;
}
.acb-story-ui-btn:hover,
.acb-story-ui-btn:focus-visible{
    transform:translateY(-1px);
    border-color:rgba(196, 173, 255, .66);
    box-shadow:0 14px 28px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.acb-story-ui-btn-primary{
    background:linear-gradient(180deg, rgba(113, 80, 224, .98), rgba(52, 30, 112, .96));
}
.acb-story-ui-btn-secondary{
    background:linear-gradient(180deg, rgba(33, 28, 46, .96), rgba(16, 12, 22, .96));
}

.acb-story-event-shell{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:min(100%, 760px);
    margin:0 auto;
}

.acb-story-skip-row{
    display:flex;
    justify-content:center;
    width:100%;
}

.acb-story-skip-btn{
    flex:0 0 auto;
    width:min(100%, 300px);
    max-width:300px;
}

.acb-story-panel .acb-story-cta,
.acb-story-dialogue-actions,
.acb-story-prompt-actions,
.acb-story-media-actions{
    flex-wrap:nowrap;
    align-items:stretch;
    gap:8px;
}
.acb-story-panel .acb-story-cta .acb-story-ui-btn,
.acb-story-dialogue-actions .acb-story-ui-btn,
.acb-story-prompt-actions .acb-story-ui-btn,
.acb-story-media-actions .acb-story-ui-btn{
    min-width:0;
    flex:1 1 0;
}
.acb-story-panel .acb-story-selector select{
    width:100%;
}

.acb-deck-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
}

.acb-mini-btn{
    appearance:none;
    border:0;
    border-radius:999px;
    padding:8px 12px;
    background:linear-gradient(135deg, var(--acb-accent), #4ec4ff);
    color:#fff;
    font-weight:800;
    font-size:12px;
    cursor:pointer;
    box-shadow:0 10px 20px rgba(0,0,0,.2);
}

.acb-mini-btn:hover{
    filter:brightness(1.06);
    transform:translateY(-1px);
}

.acb-tooltip-lock{
    overflow:hidden;
}

.acb-tooltip-layer{
    position:fixed;
    inset:0;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    padding:24px 12px;
    background:rgba(0,0,0,.32);
    backdrop-filter:blur(6px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    z-index:100000;
    transition:opacity .18s ease, visibility .18s ease;
}

.acb-tooltip-layer.on{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.acb-tooltip-card{
    position:relative;
    width:min(92vw, 520px);
    margin-top:4vh;
    border-radius:20px;
    padding:16px 18px 16px 16px;
    background:linear-gradient(180deg, rgba(10,12,24,.97), rgba(18,20,36,.95));
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 24px 70px rgba(0,0,0,.45);
    color:#fff;
}

.acb-tooltip-title{
    font-size:12px;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:rgba(255,255,255,.78);
    margin-bottom:8px;
}

.acb-tooltip-copy{
    font-size:15px;
    line-height:1.45;
    font-weight:700;
}

.acb-tooltip-close{
    position:absolute;
    top:8px;
    right:10px;
    width:30px;
    height:30px;
    border:0;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:20px;
    line-height:1;
    cursor:pointer;
}

.acb-tooltip-close:hover{
    background:rgba(255,255,255,.16);
}

.acb-library-panel{
    display:flex;
    flex-direction:column;
}

.acb-library-filters{
    display:flex;
    justify-content:flex-end;
    align-items:flex-start;
    gap:12px;
    flex-wrap:wrap;
    padding:12px 16px 0;
}

.acb-filter-group{
    position:relative;
    display:flex;
    flex-direction:column;
    gap:6px;
    min-width:190px;
    flex:0 1 240px;
}
.acb-filter-group-series{ order:1; }
.acb-filter-group-sort{ order:2; }

.acb-filter-group label{
    margin:0;
    font-size:12px;
    font-weight:700;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:rgba(255,255,255,.76);
}

.acb-filter-btn{
    width:100%;
    padding:10px 14px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.10);
    background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    color:#fff;
    text-align:left;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 12px 26px rgba(0,0,0,.16);
}

.acb-filter-btn::after{
    content:'▾';
    float:right;
    opacity:.8;
}

.acb-filter-menu{
    position:absolute;
    right:0;
    top:calc(100% + 8px);
    z-index:60;
    min-width:100%;
    max-width:none;
    padding:12px;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.10);
    background:linear-gradient(180deg, rgba(9,14,25,.98), rgba(16,23,41,.98));
    box-shadow:0 24px 60px rgba(0,0,0,.36);
    
}

.acb-filter-grid{
    display:grid;
    gap:8px;
}

.acb-filter-grid-series{
    grid-template-columns:repeat(3, minmax(0, 1fr));
}

.acb-filter-grid-sort{
    grid-template-columns:1fr;
}

.acb-filter-option{
    width:100%;
    padding:10px 12px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.08);
    background:#0b1220;
    color:#fff;
    font-size:13px;
    font-weight:600;
    text-align:center;
    cursor:pointer;
}

.acb-filter-option.active{
    background:linear-gradient(135deg, rgba(141,92,255,.32), rgba(76,201,240,.26));
    border-color:rgba(141,92,255,.42);
    box-shadow:0 0 0 1px rgba(141,92,255,.18);
}

.acb-filter-native{
    display:none !important;
}

.acb-card-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
    padding:16px;
    max-height:760px;
    overflow:auto;
}

.acb-card-pages-archive{
    padding:18px;
}
.acb-card-pages-header{
    display:flex;
    justify-content:space-between;
    gap:18px;
    margin-bottom:18px;
    padding:18px 20px;
    border-radius:24px;
    background:linear-gradient(135deg, rgba(11,18,32,.96), rgba(28,14,59,.90));
    border:1px solid var(--acb-border);
    box-shadow:0 22px 60px rgba(0,0,0,.22);
}
.acb-card-pages-header h2{ margin:6px 0 8px; }
.acb-card-pages-header p{ margin:0; color:var(--acb-muted); }
.acb-card-pages-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:16px;
}
.acb-card-page-tile{
    display:grid;
    grid-template-columns:84px 1fr;
    gap:14px;
    align-items:center;
    padding:12px;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.08);
    background:linear-gradient(180deg, rgba(9,14,25,.96), rgba(16,23,41,.96));
    color:#fff;
    text-decoration:none;
    box-shadow:0 18px 36px rgba(0,0,0,.18);
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.acb-card-page-tile:hover{
    transform:translateY(-3px);
    box-shadow:0 22px 44px rgba(0,0,0,.28);
    border-color:rgba(141,92,255,.28);
}
.acb-card-page-portrait{
    width:84px;
    height:112px;
    display:block;
    border-radius:16px;
    background-size:cover;
    background-position:center center;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 12px 28px rgba(0,0,0,.25);
}
.acb-card-page-body{
    display:grid;
    gap:6px;
    min-width:0;
}
.acb-card-page-body strong{
    font-size:15px;
    line-height:1.2;
    word-break:break-word;
}
.acb-card-page-meta, .acb-card-page-stats{
    font-size:12px;
    color:var(--acb-muted);
}
.acb-card-page-stats{
    color:rgba(255,255,255,.88);
}
.acb-single-card-page{padding:18px;}
.acb-single-card-shell{display:grid;grid-template-columns:minmax(260px,360px) 1fr;gap:18px;align-items:start;padding:18px;border-radius:24px;background:linear-gradient(180deg, rgba(8,16,29,.96), rgba(12,20,35,.92));border:1px solid rgba(255,255,255,.08);box-shadow:0 24px 60px rgba(0,0,0,.22);}
.acb-single-card-portrait{min-height:520px;border-radius:24px;background-size:cover;background-position:center center;border:1px solid rgba(255,255,255,.08);box-shadow:0 22px 44px rgba(0,0,0,.3);}
.acb-single-card-body{display:grid;gap:14px;min-width:0;}
.acb-single-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.acb-single-card-grid > div,.acb-single-card-panel{padding:14px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);}
.acb-single-card-grid strong,.acb-single-card-panel h3{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--acb-muted);margin-bottom:8px;}
.acb-single-card-grid span,.acb-single-card-panel p{font-size:14px;line-height:1.55;color:#fff;margin:0;}
.acb-line-title{display:block;font-size:15px;font-weight:800;letter-spacing:.01em;color:#fff;line-height:1.35;margin-bottom:4px;}
.acb-line-sub{display:block;font-size:13px;line-height:1.45;color:rgba(255,255,255,.84);}
.acb-quote-panel{display:grid;gap:14px;}
.acb-quote-group{display:grid;gap:8px;}
.acb-quote-group strong{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--acb-muted);}
.acb-quote-group span{display:block;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);font-size:14px;line-height:1.55;color:#fff;}
.acb-card-pages-actions{display:flex;gap:10px;flex-wrap:wrap;}
#acb-app .acb-library-panel,
#acb-app .acb-deck-builder,
#acb-app .acb-card-grid,
#acb-app .acb-deck-grid{
    opacity:1;
    visibility:visible;
}

.acb-card{
    position:relative;
    overflow:hidden;
    min-height:430px;
    border-radius:22px;
    border:1px solid rgba(255,255,255,.10);
    background:#0f1728;
    transform-style:preserve-3d;
    transition:transform .24s ease, box-shadow .24s ease, outline-color .24s ease, border-color .24s ease;
    cursor:pointer;
    will-change:transform;
}

.acb-card:hover{
    transform:translateY(-5px) rotateX(4deg) rotateY(-6deg);
    box-shadow:0 20px 40px rgba(0,0,0,.36);
}

.acb-card.selected{
    outline:2px solid var(--acb-accent);
    box-shadow:0 0 0 1px rgba(141,92,255,.28), 0 0 32px rgba(141,92,255,.22);
}

.acb-card .img{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center center;
    filter:saturate(1.15);
    transform:scale(1.02);
}

.acb-card .shade{
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.42) 58%, rgba(0,0,0,.92));
}

.acb-card .meta{
    position:absolute;
    inset:auto 0 0 0;
    padding:18px 16px 16px;
    display:flex;
    flex-direction:column;
    gap:10px;
    background:linear-gradient(180deg, transparent 0%, rgba(0,0,0,.28) 8%, rgba(0,0,0,.96) 100%);
}

.acb-card strong{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    font-size:15px;
    line-height:1.15;
    margin-bottom:0;
    min-height:2.5em;
    text-wrap:balance;
    word-break:break-word;
}

.acb-card-tags{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.acb-card-stats{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px 10px;
    font-size:11px;
    color:rgba(255,255,255,.92);
}

.acb-card-stats span,
.acb-hero-stats span,
.acb-slot-stats{
    white-space:nowrap;
}

.acb-card small{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    font-size:11px;
    color:rgba(255,255,255,.82);
    line-height:1.3;
    min-height:3.4em;
    word-break:break-word;
}

.acb-deck-builder{
    padding:14px 14px 16px;
    border-top:1px solid rgba(255,255,255,.06);
}

.acb-deck-grid{
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap:10px;
    margin-top:12px;
}

.acb-slot{
    height:var(--acb-deck-card-height, 180px);
    min-height:0;
    border-radius:18px;
    border:1px dashed rgba(255,255,255,.24);
    background:#0b1220;
    display:flex;
    align-items:center;
    justify-content:center;
    color:rgba(255,255,255,.55);
    overflow:hidden;
    position:relative;
    transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    flex-direction:column;
}

.acb-slot.filled{
    border-style:solid;
}

.acb-slot img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.acb-slot-name{
    position:absolute;
    left:8px;
    right:8px;
    bottom:8px;
    padding:6px 8px;
    font-size:11px;
    line-height:1.2;
    background:rgba(8,12,24,.86);
    color:#fff;
    text-align:center;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    border-radius:12px;
    box-shadow:0 10px 22px rgba(0,0,0,.28);
}

.acb-arena-panel{ min-height:0; }

.acb-arena{
    position:relative;
    min-height:930px;
    padding:18px;
}

.acb-vs{
    position:absolute;
    left:50%;
    top:42%;
    transform:translate(-50%, -50%);
    font-size:92px;
    font-weight:900;
    letter-spacing:10px;
    opacity:.08;
    text-shadow:0 0 30px var(--acb-accent);
    user-select:none;
}

.acb-hp-row{
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:12px;
    align-items:center;
    margin-bottom:14px;
    color:#fff;
}
.acb-hp-label{
    display:grid;
    gap:4px;
    align-items:center;
    min-width:0;
    padding:10px 12px;
    border-radius:14px;
    background:#111b2d;
    border:1px solid rgba(255,255,255,.08);
}
.acb-hp-label span{
    font-size:12px;
    line-height:1.1;
    color:var(--acb-muted);
    text-transform:uppercase;
    letter-spacing:1.1px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.acb-hp-label strong{
    font-size:16px;
    line-height:1;
    white-space:nowrap;
}
.acb-hp-label-right{
    text-align:right;
    justify-items:end;
}


.acb-hp-bar{
    height:12px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    overflow:hidden;
}

.acb-hp-bar span{
    display:block;
    height:100%;
    width:100%;
    border-radius:inherit;
    background:linear-gradient(90deg, var(--acb-accent), #32d1ff);
    box-shadow:0 0 22px rgba(141,92,255,.45);
}


.acb-ultimate-meter-row{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
    padding:10px 0 12px;
}

.acb-ultimate-meter-wrap{
    display:grid;
    gap:8px;
    padding:12px 14px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.04);
}

.acb-meter-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    font-size:13px;
    color:rgba(255,255,255,.88);
}

.acb-meter-head strong{
    font-size:12px;
    letter-spacing:1px;
    color:rgba(255,255,255,.72);
}

.acb-ultimate-meter{
    position:relative;
    height:14px;
    overflow:hidden;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:inset 0 0 0 1px rgba(0,0,0,.12);
}

.acb-ultimate-meter span{
    display:block;
    height:100%;
    width:0%;
    border-radius:inherit;
    background:linear-gradient(90deg, rgba(141,92,255,.8), rgba(255,117,196,.92), rgba(76,201,240,.96));
    box-shadow:0 0 22px rgba(141,92,255,.3);
    transition:width .28s ease, filter .28s ease, box-shadow .28s ease;
}

.acb-ultimate-meter-wrap.ready .acb-ultimate-meter span{
    filter:brightness(1.15);
    box-shadow:0 0 26px rgba(255,255,255,.18), 0 0 34px rgba(141,92,255,.48);
}

@media (max-width: 760px){
    .acb-ultimate-meter-row{
        grid-template-columns:1fr;
    }
}
.acb-zone{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:260px;
    margin:12px 0;
}

.acb-active{
    width:100%;
    max-width:340px;
    height:520px;
    border-radius:22px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.10);
    background:#0b1220;
    box-shadow:0 20px 42px rgba(0,0,0,.4);
    transform-style:preserve-3d;
    position:relative;
    will-change:transform, box-shadow;
}

.acb-empty{
    display:flex;
    align-items:center;
    justify-content:center;
    color:rgba(255,255,255,.55);
    font-size:14px;
    letter-spacing:.2px;
    min-height:520px;
}

.acb-active img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.acb-active::after{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, transparent, rgba(0,0,0,.18), rgba(0,0,0,.54));
}

.acb-active-label{
    position:absolute;
    left:10px;
    bottom:10px;
    z-index:2;
    padding:6px 9px;
    border-radius:999px;
    background:#0b1220;
    border:1px solid rgba(255,255,255,.08);
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.9px;
}


.acb-hero-card{
    width:min(92vw, 340px);
    height:var(--acb-battle-card-height, 560px);
    border-radius:26px;
    overflow:hidden;
    position:relative;
    display:flex;
    flex-direction:column;
    border:1px solid rgba(255,255,255,.10);
    background:#111b2d;
    box-shadow:0 20px 42px rgba(0,0,0,.4);
    transform-style:preserve-3d;
    will-change:transform, box-shadow;
}

.acb-hero-image{
    position:relative;
    flex:1 1 auto;
    min-height:340px;
    overflow:hidden;
}

.acb-hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.acb-hero-meta{
    padding:14px 14px 16px;
    background:linear-gradient(180deg, rgba(11,18,32,.18), rgba(11,18,32,.64));
    border-top:0;
    backdrop-filter:none;
}

.acb-hero-name{
    font-size:15px;
    font-weight:800;
    line-height:1.15;
    margin-bottom:8px;
    word-break:break-word;
    overflow-wrap:anywhere;
}

.acb-hero-tags{ margin-bottom:8px; }

.acb-hero-stats{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:4px 6px;
    font-size:10px;
    color:rgba(255,255,255,.95);
}

.acb-slot-stats{
    position:absolute;
    left:8px;
    right:8px;
    bottom:44px;
    padding:6px 8px 8px;
    font-size:10px;
    line-height:1.18;
    background:linear-gradient(180deg, rgba(8,12,24,.10), rgba(0,0,0,.82));
    color:#fff;
    text-align:center;
    text-overflow:ellipsis;
    overflow:hidden;
    white-space:normal;
    border-radius:12px;
}

.acb-hit{ animation:acb-hit .35s ease; }
.acb-kod{ animation:acb-kod .52s ease forwards; }

@keyframes acb-hit{
    0%{transform:translateX(0)}
    25%{transform:translateX(-10px)}
    50%{transform:translateX(10px)}
    75%{transform:translateX(-6px)}
    100%{transform:translateX(0)}
}
@keyframes acb-kod{
    0%{transform:scale(1) rotate(0deg);opacity:1}
    100%{transform:scale(.84) rotate(-8deg);opacity:.36;filter:grayscale(1)}
}

.acb-controls{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:12px 0 16px;
}

.acb-btn{
    appearance:none;
    border:0;
    border-radius:14px;
    padding:12px 15px;
    background:rgba(255,255,255,.08);
    color:#fff;
    cursor:pointer;
    font-weight:700;
    box-shadow:0 10px 26px rgba(0,0,0,.22);
    transition:transform .18s ease, filter .18s ease, opacity .18s ease;
}

.acb-btn:hover{
    transform:translateY(-2px);
    filter:brightness(1.06);
}

.acb-btn.primary{ background:linear-gradient(135deg, var(--acb-accent), #4ec4ff); }
.acb-btn.danger{ background:linear-gradient(135deg, #ef4444, #f59e0b); }
.acb-btn.ghost{ background:#0b1220; }
.acb-btn-ultimate{ background:linear-gradient(135deg, #ff304f, #a10022); }
.acb-btn-special{ background:linear-gradient(135deg, #7c3aed, #ec4899); }
.acb-btn-defend{ background:linear-gradient(135deg, #22c55e, #0f8f4b); }
.acb-controls-row-ultimate{
    display:flex;
    gap:10px;
    width:100%;
}
.acb-controls-row-ultimate .acb-btn{
    flex:1 1 0;
}

.acb-btn:disabled{
    opacity:.45;
    cursor:not-allowed;
    transform:none;
}

.acb-battlelog{
    max-height:290px;
    overflow:auto;
    overflow-x:hidden;
    padding-right:4px;
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
}

.acb-battlelog p{
    margin:0 0 10px;
    padding:10px 12px;
    border-radius:14px;
    background:#0b1220;
    border:1px solid rgba(255,255,255,.06);
    line-height:1.45;
    word-break:break-word;
}

.acb-footer{
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-top:12px;
}

.acb-settings-panel{
    padding-bottom:16px;
}

.acb-toggle-list{
    display:grid;
    gap:12px;
    padding:14px 18px 0;
}

.acb-toggle-list label{
    display:flex;
    align-items:center;
    gap:10px;
    color:#fff;
    font-size:14px;
}

.acb-select-wrap{
    padding:16px 18px 0;
}

.acb-select-wrap label{
    display:block;
    margin:0 0 8px;
    font-weight:700;
}

.acb-note{
    margin:16px 18px 0;
    padding:14px;
    border-radius:18px;
    background:rgba(141,92,255,.08);
    border:1px solid rgba(141,92,255,.18);
    color:rgba(255,255,255,.88);
}

.acb-tip-slider{
    margin:16px 18px 0;
}

.acb-tip-card{
    padding:12px 12px 10px;
    border-radius:18px;
    background:rgba(141,92,255,.08);
    border:1px solid rgba(141,92,255,.18);
}

.acb-tip-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:8px;
}

.acb-tip-kicker{
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:rgba(255,255,255,.72);
}

.acb-tip-controls{display:flex;gap:8px;}
.acb-tip-btn{
    width:30px;height:30px;border-radius:999px;border:1px solid rgba(255,255,255,.12);
    background:rgba(8,12,20,.55);color:#fff;font-size:18px;line-height:1;cursor:pointer;
}
.acb-tip-btn:hover{background:rgba(141,92,255,.22)}

.acb-tip-body{
    min-height:36px;
    display:flex;
    align-items:center;
}

.acb-tip-text{
    font-size:12px;
    line-height:1.35;
    color:rgba(255,255,255,.92);
}

.acb-tip-dots{display:flex;gap:6px;justify-content:center;margin-top:10px;}
.acb-tip-dot{width:7px;height:7px;border-radius:999px;background:rgba(255,255,255,.24)}
.acb-tip-dot.active{background:var(--acb-accent)}

.acb-tip-admin-box{
    margin-top:14px;
    padding:16px 18px 18px;
    border-radius:20px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.08);
}
.acb-tip-admin-head{
    display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;
}
.acb-tip-admin-head h3{margin:0 0 4px;font-size:16px;}
.acb-tip-admin-head p{margin:0;color:rgba(255,255,255,.7);font-size:13px;}
.acb-tip-admin-toggle{white-space:nowrap;font-size:13px;font-weight:700;}
.acb-tip-admin-box textarea{width:100%;resize:vertical;min-height:84px;}

.acb-battle-text{
    position:absolute;
    z-index:1003;
    min-width:92px;
    max-width:180px;
    padding:10px 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.18);
    background:linear-gradient(135deg, rgba(255,255,255,.14), rgba(141,92,255,.38), rgba(76,201,240,.30));
    color:#fff;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
    text-align:center;
    transform:translate(-50%, -50%) scale(.72);
    opacity:0;
    box-shadow:0 0 24px rgba(141,92,255,.34), 0 0 40px rgba(76,201,240,.18);
    text-shadow:0 1px 0 rgba(0,0,0,.35);
    backdrop-filter:blur(8px);
    pointer-events:none;
    animation:acb-battle-text-pop 1.05s ease-out forwards;
}

.acb-battle-text.evasion{
    background:linear-gradient(135deg, rgba(255,255,255,.16), rgba(112,232,255,.42), rgba(141,92,255,.48));
}

.acb-battle-dialogue{
    position:absolute;
    z-index:1004;
    min-width:120px;
    max-width:min(78vw, 260px);
    padding:12px 14px 11px;
    border:2px solid rgba(255,255,255,.22);
    background:linear-gradient(135deg, rgba(255,255,255,.22), rgba(141,92,255,.58) 52%, rgba(0,208,255,.34));
    color:#fff;
    border-radius:20px 20px 20px 8px;
    box-shadow:0 0 20px rgba(141,92,255,.28), 0 18px 38px rgba(0,0,0,.24);
    text-shadow:0 1px 0 rgba(0,0,0,.4);
    backdrop-filter:blur(8px);
    pointer-events:none;
    transform:translate(-50%, -50%) scale(.72) rotate(-2deg);
    opacity:0;
    overflow:visible;
    --acb-battle-dialogue-duration:1000ms;
}
.acb-battle-dialogue::before{
    content:'';
    position:absolute;
    left:18px;
    bottom:-10px;
    width:18px;
    height:18px;
    background:inherit;
    border-left:2px solid rgba(255,255,255,.22);
    border-bottom:2px solid rgba(255,255,255,.22);
    transform:rotate(45deg);
    border-bottom-left-radius:4px;
}
.acb-battle-dialogue::after{
    content:'';
    position:absolute;
    inset:-6px;
    border-radius:inherit;
    border:1px solid rgba(255,255,255,.18);
    filter:blur(.2px);
}
.acb-battle-dialogue.taunt{
    background:linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,91,122,.62) 50%, rgba(255,176,0,.34));
    box-shadow:0 0 18px rgba(255,91,122,.24), 0 18px 38px rgba(0,0,0,.24);
}
.acb-battle-dialogue.attack{
    background:linear-gradient(135deg, rgba(255,255,255,.22), rgba(141,92,255,.60) 54%, rgba(76,201,240,.34));
}
.acb-battle-dialogue-ready{
    animation:acb-battle-dialogue-pop var(--acb-battle-dialogue-duration, 1000ms) ease-out forwards;
}
.acb-battle-dialogue-kicker{
    display:block;
    margin-bottom:5px;
    font-size:9px;
    line-height:1;
    letter-spacing:.22em;
    text-transform:uppercase;
    opacity:.88;
}
.acb-battle-dialogue-text{
    display:block;
    font-size:13px;
    line-height:1.35;
    font-weight:900;
    letter-spacing:.02em;
    text-wrap:balance;
    word-break:break-word;
}
@keyframes acb-battle-dialogue-pop{
    0%{ transform:translate(-50%, -50%) scale(.68) rotate(-3deg); opacity:0; }
    12%{ opacity:1; }
    60%{ transform:translate(-50%, calc(-50% - 10px)) scale(1.03) rotate(1deg); opacity:1; }
    100%{ transform:translate(-50%, calc(-50% - 28px)) scale(.95) rotate(0deg); opacity:0; }
}
@media (max-width: 760px){
    .acb-battle-dialogue{
        max-width:min(86vw, 230px);
        padding:10px 12px 9px;
    }
    .acb-battle-dialogue-text{
        font-size:12px;
    }
}

@keyframes acb-battle-text-pop{
    0%{ transform:translate(-50%, -50%) scale(.68); opacity:0; }
    16%{ opacity:1; }
    58%{ transform:translate(-50%, calc(-50% - 12px)) scale(1.02); opacity:1; }
    100%{ transform:translate(-50%, calc(-50% - 34px)) scale(.92); opacity:0; }
}

.acb-legendary{
    animation:acb-legendary 1.1s ease-in-out infinite alternate;
}

@keyframes acb-legendary{
    from{ box-shadow:0 0 14px rgba(141,92,255,.15); }
    to{ box-shadow:0 0 28px rgba(141,92,255,.36), 0 0 52px rgba(76,201,240,.12); }
}

.acb-effects{
    position:absolute;
    inset:0;
    overflow:hidden;
    pointer-events:none;
    z-index:40;
}

.acb-effects .acb-effect{
    position:absolute;
    width:min(34vw, 320px);
    aspect-ratio:1/1;
    object-fit:contain;
    filter:drop-shadow(0 0 24px rgba(141,92,255,.62)) drop-shadow(0 0 32px rgba(76,201,240,.28));
    transform:translate(-50%, -50%) scale(.55);
    opacity:0;
    animation:acb-effect-pop 1.15s ease-out forwards;
    will-change:transform, opacity;
    mix-blend-mode:screen;
    z-index:41;
}

.acb-effects .acb-effect.small{ width:min(18vw, 140px); }
.acb-effects .acb-effect.large{ width:min(46vw, 460px); }
.acb-effects .acb-effect.full{ width:min(60vw, 620px); }

.acb-ultimate-overlay{
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:85;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:opacity .25s ease, backdrop-filter .25s ease;
    backdrop-filter:blur(0px);
    background:
        radial-gradient(circle at 50% 38%, rgba(255,255,255,.42), rgba(170,125,255,.22) 18%, rgba(67,26,128,.56) 34%, rgba(10,12,30,.88) 58%, rgba(2,4,12,.98) 100%);
    overflow:hidden;
    --acb-ultimate-duration:2000ms;
}

.acb-ultimate-overlay.on{
    opacity:1;
    backdrop-filter:blur(14px) saturate(1.45);
}

.acb-ultimate-overlay::before{
    content:'';
    position:absolute;
    inset:-10%;
    background:
        radial-gradient(circle at 50% 40%, rgba(255,255,255,.92), rgba(255,255,255,.12) 22%, transparent 54%),
        linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,112,196,.24), rgba(141,92,255,.34), rgba(76,201,240,.26));
    transform:scale(1.05);
    opacity:.95;
    animation:acb-ultimate-surge var(--acb-ultimate-duration, 2000ms) ease-in-out forwards, acb-ultimate-glow var(--acb-ultimate-duration, 2000ms) ease-in-out forwards;
}

.acb-ultimate-overlay::after{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    transform:translateX(-120%);
    animation:acb-ultimate-sweep var(--acb-ultimate-duration, 2000ms) ease-in-out forwards;
}

.acb-ultimate-card{
    position:relative;
    z-index:2;
    min-width:min(88vw, 680px);
    max-width:780px;
    padding:30px 34px;
    border-radius:28px;
    text-align:center;
    border:1px solid rgba(255,255,255,.18);
    background:linear-gradient(180deg, rgba(8,12,24,.78), rgba(18,9,38,.44));
    box-shadow:0 24px 90px rgba(0,0,0,.42), 0 0 0 1px rgba(141,92,255,.18), 0 0 50px rgba(141,92,255,.22);
    backdrop-filter:blur(14px);
    animation:acb-special-card var(--acb-special-duration, 1500ms) ease-in-out forwards;
}

.acb-ultimate-kicker{
    display:inline-block;
    margin-bottom:10px;
    font-size:12px;
    letter-spacing:.26em;
    text-transform:uppercase;
    color:rgba(255,255,255,.76);
}

.acb-ultimate-title{
    display:block;
    font-size:clamp(28px, 4vw, 54px);
    line-height:1;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
    text-shadow:0 0 18px rgba(255,255,255,.28);
}

.acb-ultimate-copy{
    display:block;
    margin-top:12px;
    font-size:15px;
    color:rgba(255,255,255,.80);
    letter-spacing:.05em;
}

.acb-ultimate-overlay.acb-ultimate-physical::before{
    background:
        radial-gradient(circle at 50% 40%, rgba(255,255,255,.42), rgba(255,122,61,.22) 24%, rgba(42,15,15,.76) 54%, rgba(2,5,12,.94) 100%);
}

.acb-ultimate-overlay.acb-ultimate-magical::before{
    background:
        radial-gradient(circle at 50% 40%, rgba(255,255,255,.48), rgba(76,201,240,.22) 24%, rgba(13,21,52,.78) 54%, rgba(2,5,12,.94) 100%);
}

.acb-ultimate-overlay.acb-ultimate-spiritual::before{
    background:
        radial-gradient(circle at 50% 40%, rgba(255,255,255,.44), rgba(164,115,255,.24) 24%, rgba(17,10,36,.80) 54%, rgba(2,5,12,.94) 100%);
}

.acb-effects .acb-effect.ultimate{
    width:400px;
    height:400px;
    aspect-ratio:1/1;
    animation:acb-effect-ultimate var(--acb-ultimate-duration, 2000ms) ease-out forwards;
    filter:drop-shadow(0 0 30px rgba(255,255,255,.34)) drop-shadow(0 0 58px rgba(141,92,255,.60)) drop-shadow(0 0 78px rgba(76,201,240,.24));
    z-index:82;
    mix-blend-mode:screen;
}

.acb-effects .acb-effect.special{
    width:min(38vw, 360px);
    height:auto;
    aspect-ratio:auto;
    animation:acb-effect-special var(--acb-special-duration, 1500ms) ease-out forwards;
    filter:drop-shadow(0 0 24px rgba(236,72,153,.55)) drop-shadow(0 0 54px rgba(124,58,237,.42));
    z-index:84;
    mix-blend-mode:screen;
}

.acb-special-overlay{
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:86;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:opacity .22s ease, backdrop-filter .22s ease;
    backdrop-filter:blur(0px);
    background:radial-gradient(circle at 50% 38%, rgba(255,255,255,.24), rgba(124,58,237,.18) 18%, rgba(20,12,44,.54) 42%, rgba(6,8,18,.88) 72%, rgba(1,2,8,.98) 100%);
    overflow:hidden;
    --acb-special-duration:1500ms;
}

.acb-special-overlay.on{
    opacity:1;
    backdrop-filter:blur(12px) saturate(1.35);
}

.acb-special-overlay::before{
    content:'';
    position:absolute;
    inset:-12%;
    background:
        radial-gradient(circle at 50% 40%, rgba(255,255,255,.88), rgba(255,255,255,.10) 22%, transparent 54%),
        linear-gradient(135deg, rgba(255,255,255,.03), rgba(236,72,153,.24), rgba(124,58,237,.32), rgba(34,197,94,.18));
    transform:scale(1.05);
    opacity:.96;
    animation:acb-special-surge var(--acb-special-duration, 1500ms) ease-in-out forwards, acb-special-glow var(--acb-special-duration, 1500ms) ease-in-out forwards;
}

.acb-special-overlay::after{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
    transform:translateX(-120%);
    animation:acb-special-sweep var(--acb-special-duration, 1500ms) ease-in-out forwards;
}

.acb-special-card{
    position:relative;
    z-index:2;
    min-width:min(88vw, 680px);
    max-width:780px;
    padding:30px 34px;
    border-radius:28px;
    text-align:center;
    border:1px solid rgba(255,255,255,.18);
    background:linear-gradient(180deg, rgba(8,12,24,.78), rgba(18,9,38,.44));
    box-shadow:0 24px 90px rgba(0,0,0,.42), 0 0 0 1px rgba(141,92,255,.18), 0 0 50px rgba(141,92,255,.22);
    backdrop-filter:blur(14px);
    animation:acb-ultimate-card var(--acb-ultimate-duration, 2000ms) ease-in-out forwards;
}

.acb-special-kicker{
    display:inline-block;
    margin-bottom:10px;
    font-size:12px;
    letter-spacing:.26em;
    text-transform:uppercase;
    color:rgba(255,255,255,.76);
}

.acb-special-title{
    display:block;
    font-size:clamp(28px, 4vw, 54px);
    line-height:1;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
    text-shadow:0 0 18px rgba(255,255,255,.28);
}

.acb-special-copy{
    display:block;
    margin-top:12px;
    font-size:15px;
    color:rgba(255,255,255,.80);
    letter-spacing:.05em;
}

.acb-special-overlay.acb-special-physical::before{
    background:
        radial-gradient(circle at 50% 40%, rgba(255,255,255,.42), rgba(255,122,61,.20) 24%, rgba(42,15,15,.74) 54%, rgba(2,5,12,.94) 100%);
}

.acb-special-overlay.acb-special-magical::before{
    background:
        radial-gradient(circle at 50% 40%, rgba(255,255,255,.46), rgba(76,201,240,.20) 24%, rgba(18,14,58,.74) 54%, rgba(2,5,12,.94) 100%);
}

.acb-special-overlay.acb-special-dpr::before{
    background:
        radial-gradient(circle at 50% 40%, rgba(255,255,255,.42), rgba(236,72,153,.20) 24%, rgba(28,14,38,.76) 54%, rgba(2,5,12,.94) 100%);
}

.acb-special-active .acb-battlefield-grid,
.acb-special-active .acb-battle-info,
.acb-special-active .acb-side-label{
    filter:blur(1px) saturate(.72);
    transition:filter .22s ease;
}

.acb-special-active .acb-zone{
    transform:scale(.995);
    transition:transform .22s ease;
}

body.acb-special-lock{
    overflow:hidden;
}

.acb-ultimate-active .acb-battlefield-grid,
.acb-ultimate-active .acb-battle-info,
.acb-ultimate-active .acb-side-label{
    filter:blur(1px) saturate(.7);
    transition:filter .25s ease;
}

.acb-ultimate-active .acb-zone{
    transform:scale(.995);
    transition:transform .25s ease;
}

body.acb-ultimate-lock{
    overflow:hidden;
}

@media (max-width: 760px){
  .acb-ultimate-overlay{
    position:fixed;
    inset:0;
  }
  .acb-ultimate-card{
    width:min(92vw, 680px);
    min-width:0;
    padding:24px 22px;
  }
  .acb-ultimate-title{
    font-size:clamp(22px, 6vw, 42px);
  }
  .acb-ultimate-copy{
    font-size:13px;
  }
  .acb-ability-copy{
    font-size:7px;
    line-height:1.15;
  }
  .acb-special-overlay{
    position:fixed;
    inset:0;
  }
  .acb-special-card{
    width:min(92vw, 680px);
    min-width:0;
    padding:24px 22px;
  }
  .acb-special-title{
    font-size:clamp(22px, 6vw, 42px);
  }
  .acb-special-copy{
    font-size:13px;
  }
}

@keyframes acb-ultimate-surge{
    0%{ transform:scale(.88); opacity:0; }
    18%{ opacity:1; }
    55%{ opacity:.95; }
    100%{ transform:scale(1.06); opacity:0; }
}

@keyframes acb-ultimate-glow{
    0%{ filter:saturate(.9) brightness(.82); }
    30%{ filter:saturate(1.2) brightness(1.08); }
    100%{ filter:saturate(1.05) brightness(1); }
}

@keyframes acb-special-surge{
    0%{ transform:scale(.9); opacity:0; }
    18%{ opacity:1; }
    55%{ opacity:.96; }
    100%{ transform:scale(1.06); opacity:0; }
}

@keyframes acb-special-glow{
    0%{ filter:saturate(.9) brightness(.84); }
    30%{ filter:saturate(1.15) brightness(1.08); }
    100%{ filter:saturate(1.02) brightness(1); }
}

@keyframes acb-special-sweep{
    0%{ transform:translateX(-120%); }
    100%{ transform:translateX(120%); }
}

@keyframes acb-special-card{
    0%{ transform:translateY(16px) scale(.96); opacity:0; }
    20%{ opacity:1; }
    100%{ transform:translateY(0) scale(1); opacity:1; }
}

@keyframes acb-effect-special{
    0%{ transform:translate(-50%, -50%) scale(.55); opacity:0; }
    18%{ opacity:1; }
    100%{ transform:translate(-50%, -50%) scale(1.05); opacity:0; }
}

@keyframes acb-ultimate-sweep{
    0%{ transform:translateX(-120%); opacity:0; }
    20%{ opacity:.9; }
    100%{ transform:translateX(120%); opacity:0; }
}

@keyframes acb-ultimate-card{
    0%{ transform:translateY(10px) scale(.92); opacity:0; }
    15%{ opacity:1; }
    100%{ transform:translateY(0) scale(1); opacity:1; }
}

@keyframes acb-effect-ultimate{
    0%{ transform:translate(-50%, -50%) scale(.28); opacity:0; }
    14%{ opacity:1; }
    55%{ opacity:1; }
    100%{ transform:translate(-50%, -50%) scale(1.08); opacity:0; }
}

@keyframes acb-effect-pop{
    0%{transform:translate(-50%, -50%) scale(.35); opacity:0}
    15%{opacity:1}
    60%{opacity:.95}
    100%{transform:translate(-50%, -50%) scale(1.08); opacity:0}
}

.acb-shake{ animation:acb-shake .42s linear; }

@keyframes acb-shake{
    0%{transform:translate3d(0,0,0)}
    15%{transform:translate3d(-8px,2px,0)}
    30%{transform:translate3d(7px,-2px,0)}
    45%{transform:translate3d(-6px,4px,0)}
    60%{transform:translate3d(6px,-3px,0)}
    75%{transform:translate3d(-4px,2px,0)}
    100%{transform:translate3d(0,0,0)}
}

.acb-flash{
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:45;
    background:radial-gradient(circle at 50% 45%, rgba(255,255,255,.70), rgba(255,255,255,.20), transparent 60%);
    opacity:0;
}

.acb-flash.on{ animation:acb-flash .5s ease-out; }

@keyframes acb-flash{
    0%{opacity:0}
    25%{opacity:1}
    100%{opacity:0}
}

.acb-card-media,
.acb-hero-img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.acb-no-anim *,
.acb-no-anim *::before,
.acb-no-anim *::after{
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
}

.acb-no-glow .acb-panel.glow,
.acb-no-glow .acb-legendary{
    box-shadow:0 20px 60px rgba(0,0,0,.28) !important;
}

@media (max-width: 1200px){
    .acb-layout{ grid-template-columns:1fr; }
    .acb-arena{ min-height:auto; }
    .acb-card-grid{ max-height:none; }
    .acb-card{ min-height:300px; }
    .acb-active{ max-width:340px; height:360px; }
}

@media (max-width: 900px){
    .acb-admin-grid{ grid-template-columns:1fr; }
    .acb-admin .acb-admin-hero{ flex-direction:column; align-items:flex-start; }
    .acb-topbar{ flex-direction:column; align-items:flex-start; }
    .acb-topbar h2{ font-size:26px; }
    .acb-hp-row{ grid-template-columns:1fr; }
    .acb-vs{ font-size:56px; top:44%; }
    .acb-active{ width:min(72vw, 220px); height:160px; }
    .acb-footer{ flex-direction:column; }
}

@media (max-width: 780px){
    .acb-shell{ padding:12px; border-radius:22px; min-height:auto; }
    .acb-card-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .acb-deck-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
    .acb-card{ min-height:320px; }
    .acb-hero-card{ width:min(94vw, 300px); height:360px; }
    .acb-controls{ gap:8px; }
    .acb-btn{ flex:1 1 calc(50% - 8px); }
    .acb-actions-row,
    .acb-grid-2,
    .acb-grid-3,
    .acb-grid-4,
    .acb-toggle-grid{
        grid-template-columns:1fr;
    }
    .acb-library-filters{
        justify-content:flex-end;
        gap:10px;
    }
    .acb-filter-group{
        min-width:0;
        flex:1 1 calc(50% - 10px);
    }
    .acb-filter-btn,
    .acb-filter-group label{
        font-size:11px;
    }
    .acb-filter-menu{
        min-width:min(calc(100vw - 28px), 420px);
        left:auto;
        right:0;
    }
    .acb-filter-grid-series{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
    .acb-filter-grid-sort{
        grid-template-columns:1fr;
    }
    .acb-card-preview{ min-width:0; }
}

@media (max-width: 500px){
    .acb-card-grid{ grid-template-columns:1fr; }
    .acb-deck-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .acb-card{ min-height:300px; }
    .acb-hero-card{ width:min(94vw, 280px); height:340px; }
    .acb-btn{ flex-basis:100%; }
    .acb-filter-group{ flex:1 1 100%; }
    .acb-filter-menu{ min-width:100%; }
    .acb-filter-grid-series{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .acb-filter-option{ font-size:12px; padding:9px 10px; }
}

@media (prefers-reduced-motion: reduce){
    *{ scroll-behavior:auto !important; }
    .acb-card,
    .acb-active,
    .acb-hero-card,
    .acb-effects .acb-effect,
    .acb-particles span,
    .acb-btn,
    .acb-legendary,
    .acb-hit,
    .acb-kod,
    .acb-shake,
    .acb-flash.on{
        animation:none !important;
        transition:none !important;
    }
}

/* v1.7 stable layout overrides */
.acb-card-grid{grid-template-columns:repeat(2, minmax(0, 1fr));gap:14px;}
.acb-card{min-height:360px;}
.acb-card .meta{padding:14px 14px 15px;}
.acb-card .meta strong{display:block;font-size:18px;line-height:1.1;margin-bottom:8px;word-break:break-word;overflow-wrap:anywhere;}
.acb-card-tags{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px;}
.acb-card-stats{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:6px 8px;font-size:12px;line-height:1.2;}
.acb-card small{min-height:0;-webkit-line-clamp:3;line-clamp:3;}
.acb-deck-grid{grid-template-columns:repeat(4, minmax(0, 1fr));}
.acb-slot{min-height:180px;aspect-ratio:0.74 / 1;}
.acb-slot-name{background:linear-gradient(180deg, rgba(141,92,255,.28), rgba(13,18,33,.96));text-shadow:0 2px 10px rgba(0,0,0,.35);font-weight:800;letter-spacing:.2px;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}
.acb-slot-remove{position:absolute;top:8px;right:8px;z-index:3;width:28px;height:28px;border:0;border-radius:999px;background:rgba(0,0,0,.54);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(0,0,0,.22);}
.acb-library-pager{display:flex;justify-content:center;align-items:center;gap:10px;padding:10px 16px 2px;flex-wrap:wrap;}
.acb-library-pager .acb-page-info{min-width:140px;text-align:center;color:rgba(255,255,255,.82);font-size:13px;}
.acb-battlefield-grid{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:14px;align-items:stretch;margin-top:10px;}
.acb-battle-side{display:flex;flex-direction:column;min-width:0;}
.acb-side-label{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 4px 10px;font-size:13px;color:rgba(255,255,255,.78);text-transform:uppercase;letter-spacing:.12em;}
.acb-zone{position:relative;width:100%;min-height:460px;z-index:2;overflow:visible;}
.acb-zone-fx{position:absolute;inset:0;pointer-events:none;z-index:8;overflow:visible;}
.acb-active{max-width:100%;width:min(100%, 430px);height:560px;z-index:10;}
.acb-empty{min-height:560px;}
.acb-battle-info{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:8px;margin-top:10px;}
.acb-battle-info .acb-info-card{padding:8px 10px;border-radius:14px;background:#0b1220;border:1px solid rgba(255,255,255,.07);color:rgba(255,255,255,.93);line-height:1.25;font-size:12px;backdrop-filter:none;}
.acb-battle-info .acb-info-card strong{display:block;font-size:11px;margin-bottom:3px;text-transform:uppercase;letter-spacing:.7px;color:rgba(255,255,255,.72);}
.acb-battle-info .acb-info-card-lore{grid-column:1 / -1;}
.acb-effects{z-index:70;}
.acb-flash{z-index:60;}
.acb-no-anim .acb-legendary,.acb-no-anim .acb-card,.acb-no-anim .acb-slot{animation:none !important;transition:none !important;transform:none !important;}
@media (max-width: 1100px){.acb-battlefield-grid{grid-template-columns:1fr;}.acb-deck-grid{grid-template-columns:repeat(4, minmax(0, 1fr));}}
@media (max-width: 760px){.acb-card-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}.acb-card{min-height:320px;}.acb-deck-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}.acb-slot{min-height:160px;}.acb-active,.acb-empty{height:460px;min-height:460px;}.acb-zone{min-height:380px;}
    .acb-admin .acb-table,
    .acb-admin .acb-table thead,
    .acb-admin .acb-table tbody,
    .acb-admin .acb-table th,
    .acb-admin .acb-table td,
    .acb-admin .acb-table tr{display:block;width:100%;}
    .acb-admin .acb-table thead{display:none;}
    .acb-admin .acb-table tbody tr{
        margin:0 0 14px;
        padding:12px;
        border-radius:20px;
        border:1px solid rgba(255,255,255,.08);
        background:linear-gradient(180deg, rgba(10,16,29,.96), rgba(12,19,34,.92));
        box-shadow:0 20px 42px rgba(0,0,0,.18);
    }
    .acb-admin .acb-table td{
        display:grid;
        grid-template-columns:88px 1fr;
        gap:10px;
        align-items:start;
        padding:8px 0;
        border:none;
        background:transparent;
        white-space:normal;
    }
    .acb-admin .acb-table td::before{
        content:attr(data-label);
        font-size:11px;
        font-weight:800;
        letter-spacing:.08em;
        text-transform:uppercase;
        color:rgba(255,255,255,.62);
        line-height:1.2;
    }
    .acb-admin .acb-table td[data-label="Card"]{ grid-template-columns:1fr; }
    .acb-admin .acb-table td[data-label="Card"]::before{ margin-bottom:6px; }
    .acb-card-preview{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }
    .acb-table-actions{
        justify-content:flex-start;
    }
    .acb-thumb{ width:54px; height:72px; }
    .acb-card-preview strong{ font-size:14px; line-height:1.15; }
    .acb-pill{ font-size:10px; padding:5px 8px; white-space:normal; }
}


/* v1.8 stable overrides */
.acb-card-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:14px !important;
}

.acb-card,
.acb-slot,
.acb-hero-card,
.acb-active{
    min-width:0;
}

.acb-slot{
    position:relative;
    overflow:hidden;
}

.acb-slot-name{
    background:rgba(8, 12, 24, .88) !important;
    color:#fff !important;
    padding:6px 10px !important;
    border-radius:12px !important;
    box-shadow:0 10px 22px rgba(0,0,0,.28);
}

.acb-slot-remove{
    position:absolute;
    top:8px;
    right:8px;
    z-index:4;
    width:28px;
    height:28px;
    border:0;
    border-radius:999px;
    background:rgba(239,68,68,.92);
    color:#fff;
    font-size:18px;
    line-height:1;
    cursor:pointer;
    box-shadow:0 10px 20px rgba(0,0,0,.24);
}

.acb-slot-stats{
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    line-height:1.25 !important;
}

.acb-shell .acb-effects{
    z-index:999 !important;
}

.acb-effects .acb-effect{
    width:clamp(180px, 26vw, 300px) !important;
    height:clamp(180px, 26vw, 300px) !important;
    opacity:1;
    mix-blend-mode:normal !important;
    filter:drop-shadow(0 0 24px rgba(141,92,255,.64)) drop-shadow(0 0 36px rgba(76,201,240,.35));
}

.acb-effects .acb-effect.small{
    width:clamp(150px, 20vw, 260px) !important;
    height:clamp(150px, 20vw, 260px) !important;
}

.acb-effects .acb-effect.large,
.acb-effects .acb-effect.full{
    width:clamp(220px, 32vw, 300px) !important;
    height:clamp(220px, 32vw, 300px) !important;
}

.acb-zone{
    align-items:stretch;
}

.acb-battle-stack{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
}

.acb-battle-info{
    width:100%;
    display:grid;
}

.acb-battle-info .acb-info-card{
    padding:12px 14px;
    border-radius:18px;
    background:#111b2d;
    border:1px solid rgba(255,255,255,.08);
    color:rgba(255,255,255,.95);
    line-height:1.4;
    display:grid;
    gap:4px;
}

.acb-battle-info .acb-info-card strong{
    display:block;
    font-size:15px;
    margin-bottom:4px;
}

.acb-reserve-row{
    width:100%;
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:10px;
}

.acb-reserve-card{
    border-radius:16px;
    overflow:hidden;
    background:#0b1220;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 12px 24px rgba(0,0,0,.18);
}

.acb-reserve-card img{
    width:100%;
    aspect-ratio:3 / 4;
    object-fit:cover;
    display:block;
}

.acb-reserve-meta{
    padding:8px 9px 10px;
    display:grid;
    gap:3px;
    font-size:12px;
    line-height:1.2;
}

.acb-reserve-meta strong,
.acb-reserve-meta span{
    display:block;
    overflow-wrap:anywhere;
    word-break:break-word;
}

.acb-reserve-empty{
    width:100%;
    padding:12px 14px;
    border-radius:16px;
    background:#0b1220;
    color:rgba(255,255,255,.74);
    text-align:center;
}

@media (max-width: 980px){
    .acb-card-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px){
    .acb-card-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    }
    .acb-reserve-row{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
    .acb-hero-card,
    .acb-active{
        height:auto;
        min-height:520px;
    }
    .acb-hero-image{
        min-height:320px;
    }
}


/* v1.9 stable fixes */
:root{
    --acb-library-card-height: 320px;
}

.acb-app{
    --acb-library-card-height: 320px;
}

.acb-card{
    min-height: var(--acb-library-card-height, 320px) !important;
}

.acb-card .meta strong{
    display:block;
    line-height:1.08;
    word-break:break-word;
    overflow-wrap:anywhere;
    margin-bottom:8px;
}

.acb-card .acb-card-tags{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin:6px 0 10px;
}

.acb-card .acb-card-stats,
.acb-slot-stats,
.acb-hero-stats{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
}

.acb-card-namebar{
    margin-top:10px;
    padding:7px 10px;
    border-radius:12px;
    background:rgba(14, 18, 30, .88);
    color:#fff;
    font-size:12px;
    line-height:1.25;
    font-weight:800;
    text-shadow:0 2px 10px rgba(0,0,0,.35);
}

.acb-card-lore{
    margin-top:7px;
    font-size:11px;
    line-height:1.35;
    color:rgba(255,255,255,.82);
    padding:0 2px 2px;
    white-space:normal;
    overflow:hidden;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    line-clamp:3;
}

.acb-deck-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
}

.acb-slot{
    height:var(--acb-deck-card-height, 180px);
    min-height:0;
}

.acb-slot-name{
    background:rgba(141,92,255,.30) !important;
    backdrop-filter:blur(10px);
    font-weight:800;
}

.acb-slot-remove{
    position:absolute;
    top:8px;
    right:8px;
    z-index:4;
    width:28px;
    height:28px;
    border:0;
    border-radius:999px;
    background:rgba(239,68,68,.92);
    color:#fff;
    font-size:18px;
    line-height:1;
    cursor:pointer;
    box-shadow:0 10px 20px rgba(0,0,0,.24);
}

.acb-battlefield-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
    align-items:stretch;
    margin-top:6px;
}

.acb-battle-stack{
    display:flex;
    flex-direction:column;
    gap:12px;
    min-width:0;
}

.acb-battle-card{
    width:min(100%, 430px);
    height:var(--acb-battle-card-height, 560px);
    margin:0 auto;
}

.acb-battle-info{
    display:grid;
    gap:8px;
}

.acb-info-card{
    padding:10px 12px;
    border-radius:16px;
    background:#0b1220;
    border:1px solid rgba(255,255,255,.07);
    color:rgba(255,255,255,.94);
    line-height:1.35;
    word-break:break-word;
}

.acb-info-card strong{
    display:block;
    margin-bottom:4px;
    font-size:13px;
}

.acb-effects{
    position:absolute;
    inset:0;
    pointer-events:none;
    overflow:hidden;
    z-index:9999;
}

.acb-effects .acb-effect{
    position:absolute;
    width:clamp(180px, 28vw, 300px) !important;
    height:clamp(180px, 28vw, 300px) !important;
    object-fit:contain;
    transform:translate(-50%, -50%) scale(.55);
    opacity:0;
    mix-blend-mode:normal;
    filter:drop-shadow(0 0 24px rgba(141,92,255,.62)) drop-shadow(0 0 36px rgba(76,201,240,.35));
    animation:acb-effect-pop 1.15s ease-out forwards;
}

.acb-effects .acb-effect.small{
    width:clamp(150px, 22vw, 240px) !important;
    height:clamp(150px, 22vw, 240px) !important;
}

.acb-effects .acb-effect.large,
.acb-effects .acb-effect.full{
    width:clamp(220px, 32vw, 300px) !important;
    height:clamp(220px, 32vw, 300px) !important;
}

.acb-flash{
    z-index:9998;
}

.acb-no-anim .acb-card,
.acb-no-anim .acb-slot,
.acb-no-anim .acb-battle-card,
.acb-no-anim .acb-effects .acb-effect,
.acb-no-anim .acb-particles span,
.acb-no-anim .acb-flash,
.acb-no-anim .acb-shake{
    animation:none !important;
    transition:none !important;
    transform:none !important;
}

@media (max-width: 1200px){
    .acb-battlefield-grid{
        grid-template-columns:1fr;
    }
    .acb-battle-card{
        width:min(100%, 380px);
        height:min(var(--acb-battle-card-height, 560px), 500px);
    }
}

@media (max-width: 780px){
    .acb-card{
        min-height: calc(var(--acb-library-card-height, 320px) * .95) !important;
    }
    .acb-battle-card{
        width:min(94vw, 360px);
        height:min(var(--acb-battle-card-height, 560px), 460px);
    }
    .acb-deck-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
    .acb-battlefield-grid{
        gap:12px;
    }
}

@media (max-width: 500px){
    .acb-card{
        min-height: calc(var(--acb-library-card-height, 320px) * .88) !important;
    }
    .acb-battle-card{
        width:min(94vw, 320px);
        height:min(var(--acb-battle-card-height, 560px), 420px);
    }
    .acb-effects .acb-effect{
        width:clamp(160px, 48vw, 300px) !important;
        height:clamp(160px, 48vw, 300px) !important;
    }
}

.acb-online-panel{
    margin-top:18px;
    padding-top:14px;
    border-top:1px solid rgba(255,255,255,.08);
    overflow:hidden;
}
.acb-settings-panel .acb-online-tools{
    display:grid;
    gap:10px;
    margin:12px 0 10px;
    padding:0 18px;
    box-sizing:border-box;
    min-width:0;
}
.acb-online-field{
    display:grid;
    gap:8px;
    font-size:13px;
    min-width:0;
}
.acb-online-field input,
#acb-battle-mode,
#acb-player-name,
#acb-room-input{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.12);
    background:#08101d;
    color:#fff;
    padding:12px 14px;
    outline:none;
}
.acb-room-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:10px 12px;
    border-radius:14px;
    background:#111b2d;
    border:1px solid rgba(255,255,255,.08);
    box-sizing:border-box;
    min-width:0;
}
.acb-room-row span{ color:var(--acb-muted); }
.acb-room-row strong{ font-size:16px; letter-spacing:.5px; overflow-wrap:anywhere; }
.acb-settings-panel .acb-actions-row{
    padding:0 18px 18px;
    box-sizing:border-box;
    margin-top:8px;
}
.acb-settings-panel .acb-actions-row .button{
    min-width:0;
}
@media (max-width: 980px){
    .acb-online-panel{ margin-top:12px; }
}
@media (max-width: 760px){
    .acb-settings-panel .acb-online-tools{ padding:0 14px; }
    .acb-settings-panel .acb-actions-row{ padding:0 14px 14px; }
    .acb-settings-panel .acb-actions-row .button{ flex:1 1 140px; }
    .acb-room-row{ padding:10px; }
}

/* v3.7.3 mobile battlefield alignment fix */
.acb-battlefield-grid{align-items:start;}
.acb-battle-stack{width:100%;min-width:0;gap:8px;}
.acb-battle-card{width:100%;max-width:none;margin:0;}
.acb-side-meter{width:100%;padding:8px 10px;gap:6px;border-radius:14px;margin-top:40px;}
.acb-side-meter .acb-meter-head{font-size:11px;line-height:1.1;}
.acb-side-meter .acb-meter-head strong{font-size:10px;}
.acb-side-meter .acb-ultimate-meter{height:10px;}
.acb-battle-info{grid-template-columns:repeat(3, minmax(0, 1fr));gap:4px;}
.acb-info-card{padding:6px 7px;border-radius:12px;font-size:9px;line-height:1.12;}
.acb-info-card strong{font-size:9px;margin-bottom:2px;}
.acb-battle-info .acb-info-card-lore{grid-column:1 / -1;}
.acb-hero-image{min-height:140px;}
.acb-hero-img{object-fit:cover;}
.acb-hero-meta{position:absolute;left:0;right:0;bottom:0;padding:8px 8px 9px;border-top:0;z-index:2;background:linear-gradient(180deg, rgba(11,18,32,.18), rgba(11,18,32,.60));backdrop-filter:none;} 
.acb-hero-name{font-size:13px;line-height:1.05;word-break:break-word;overflow-wrap:anywhere;}
.acb-hero-tags{gap:4px;margin-top:6px;}
.acb-pill{padding:4px 7px;font-size:9px;line-height:1;}
.acb-hero-stats{grid-template-columns:repeat(4, minmax(0, 1fr));gap:4px 5px;font-size:9px;}
.acb-controls{grid-template-columns:repeat(2, minmax(0, 1fr));gap:6px;}
.acb-controls-row-ultimate{grid-column:1 / -1;}
.acb-btn{padding:8px 9px;font-size:15px;min-height:36px;border-radius:11px;}

@media (max-width: 1100px){
  .acb-battlefield-grid{grid-template-columns:repeat(2, minmax(0, 1fr)) !important;gap:10px;}
  .acb-zone{min-height:0;}
  .acb-battle-card{min-height:0;height:min(var(--acb-battle-card-height, 560px), 500px);}
}

@media (max-width: 760px){
  .acb-arena{padding:8px;display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;}
  .acb-hp-row,.acb-controls,.acb-battlelog,.acb-footer{width:100%;flex:0 0 100%;}
  .acb-battlefield-grid{width:100%;grid-template-columns:repeat(2, minmax(0, 1fr)) !important;gap:6px;}
  .acb-zone{width:100%;flex:1 1 0;}
  .acb-battle-card{width:100%;height:min(var(--acb-battle-card-height, 560px), 420px);min-height:0;}
  .acb-hero-image{min-height:118px;}
  .acb-hero-meta{padding:7px 7px 8px;background:linear-gradient(180deg, rgba(11,18,32,.18), rgba(11,18,32,.60));backdrop-filter:none;} 
  .acb-hero-name{font-size:12px;}
  .acb-hero-stats{font-size:8px;gap:3px 4px;}
  .acb-battle-info{grid-template-columns:repeat(3, minmax(0, 1fr));gap:3px;}
  .acb-info-card{padding:5px 6px;font-size:8px;line-height:1.05;border-radius:10px;}
  .acb-info-card strong{font-size:8px;margin-bottom:1px;}
  .acb-side-meter{padding:7px 8px;margin-top:40px;}
  .acb-side-meter .acb-ultimate-meter{height:8px;}
  .acb-controls-row-ultimate{grid-column:1 / -1;flex-direction:column;}
  .acb-btn{padding:7px 8px;font-size:15px;min-height:34px;}
}

@media (max-width: 500px){
  .acb-battlefield-grid{gap:5px;}
  .acb-battle-info{gap:3px;}
  .acb-info-card{padding:4px 5px;font-size:7px;}
  .acb-hero-image{min-height:106px;}
  .acb-pill{padding:3px 5px;font-size:8px;}
}


/* v3.7.4 mobile info-card layout fix */
.acb-battle-info{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:6px !important;
}
.acb-battle-info .acb-info-card{
    padding:6px 7px !important;
    font-size:10px !important;
    line-height:1.12 !important;
    border-radius:10px !important;
    min-width:0 !important;
    overflow:hidden !important;
    word-break:normal !important;
    overflow-wrap:anywhere !important;
}
.acb-battle-info .acb-info-card strong{
    font-size:10px !important;
    line-height:1.05 !important;
    margin-bottom:2px !important;
}
.acb-battle-info .acb-info-card:last-child{
    grid-column:auto !important;
}

@media (max-width: 980px){
    .acb-battle-info{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap:6px !important;
    }
    .acb-battle-info .acb-info-card{
        font-size:10px !important;
        padding:5px 6px !important;
    }
    .acb-battle-info .acb-info-card strong{
        font-size:10px !important;
    }
}

@media (max-width: 760px){
    .acb-battle-info{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap:5px !important;
    }
    .acb-battle-info .acb-info-card{
        padding:5px 6px !important;
        font-size:10px !important;
        line-height:1.08 !important;
    }
}

@media (max-width: 500px){
    .acb-battle-info{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap:4px !important;
    }
    .acb-battle-info .acb-info-card{
        padding:4px 5px !important;
        font-size:10px !important;
        line-height:1.05 !important;
    }
    .acb-battle-info .acb-info-card strong{
        font-size:10px !important;
    }
}


/* v3.7.4 responsive balance fix */
.acb-battle-info{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:6px !important;
}
.acb-battle-info .acb-info-card{
    padding:6px 7px !important;
    font-size:10px !important;
    line-height:1.1 !important;
    border-radius:10px !important;
    min-width:0 !important;
    overflow:hidden !important;
    word-break:normal !important;
    overflow-wrap:anywhere !important;
}
.acb-battle-info .acb-info-card strong{
    font-size:10px !important;
    line-height:1.05 !important;
    margin-bottom:2px !important;
}
.acb-battle-info .acb-info-card:last-child{
    grid-column:auto !important;
}
@media (max-width: 760px){
    .acb-btn{
        font-size:15px !important;
    }
}
@media (max-width: 500px){
    .acb-btn{
        font-size:15px !important;
    }
}


/* v3.8.1 stat display and damage overlays */
.acb-hero-stats{
    gap:6px;
}
.acb-stat{
    position:relative;
    display:flex;
    flex-direction:column;
    gap:3px;
    padding:6px 7px;
    border-radius:12px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.06);
    min-width:0;
}
.acb-stat-row{
    display:flex;
    align-items:center;
    gap:4px;
    flex-wrap:nowrap;
    min-width:0;
}
.acb-stat.hp{
    grid-column:1 / -1;
}
.acb-stat .label{
    font-size:8px;
    line-height:1;
    text-transform:uppercase;
    letter-spacing:.74px;
    color:rgba(255,255,255,.68);
    flex:0 0 auto;
}
.acb-stat strong{
    font-size:8px;
    line-height:1;
    color:#fff;
    flex:0 0 auto;
}
.acb-stat.hp strong{font-size:8px;}
.acb-card-hpbar{
    width:100%;
    height:6px;
    border-radius:999px;
    overflow:hidden;
    background:rgba(255,255,255,.08);
    margin-top:4px;
}
.acb-card-hpbar span{
    display:block;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg, #ff7f7f, #ff3d5c);
    box-shadow:0 0 14px rgba(255,86,115,.35);
}
.acb-stat.atk .gain,
.acb-stat.hp .loss{
    color:#ff6b8b;
}
.acb-stat.def .gain{
    color:#6cff9e;
}
.acb-stat-delta{
    display:inline-flex;
    align-items:center;
    gap:2px;
    font-size:7px;
    line-height:1;
    font-weight:800;
    letter-spacing:.03em;
    white-space:nowrap;
}
.acb-boost-icon{
    font-size:8px;
    line-height:1;
    flex:0 0 auto;
}
.acb-battle-text.damage,
.acb-battle-text.sword,
.acb-battle-text.bleed,
.acb-battle-text.burn,
.acb-battle-text.poison,
.acb-battle-text.ice,
.acb-battle-text.heal,
.acb-battle-text.shield,
.acb-battle-text.lightning{
    min-width:78px;
    max-width:150px;
    padding:8px 12px;
    border-width:1px;
    border-style:solid;
    font-size:12px;
    letter-spacing:.12em;
}

.acb-battle-text.damage{background:linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,96,96,.35)); border-color:rgba(255,96,96,.38); color:#ffd7dd; box-shadow:0 0 20px rgba(255,96,96,.22);}
.acb-battle-text.sword{background:linear-gradient(135deg, rgba(255,214,162,.12), rgba(255,65,65,.42)); border-color:rgba(255,82,82,.45); color:#ffe9ea; box-shadow:0 0 20px rgba(255,82,82,.24);}
.acb-battle-text.bleed{background:linear-gradient(135deg, rgba(255,115,145,.12), rgba(170,0,29,.48)); border-color:rgba(255,115,145,.42); color:#ffe2ea; box-shadow:0 0 20px rgba(255,115,145,.24);}
.acb-battle-text.burn{background:linear-gradient(135deg, rgba(255,216,122,.12), rgba(255,120,0,.40)); border-color:rgba(255,160,67,.42); color:#fff0d4; box-shadow:0 0 20px rgba(255,160,67,.25);}
.acb-battle-text.poison{background:linear-gradient(135deg, rgba(169,255,181,.10), rgba(31,160,71,.40)); border-color:rgba(113,255,148,.40); color:#eaffef; box-shadow:0 0 20px rgba(113,255,148,.20);}
.acb-battle-text.ice{background:linear-gradient(135deg, rgba(185,240,255,.10), rgba(67,153,255,.38)); border-color:rgba(120,202,255,.42); color:#e5f5ff; box-shadow:0 0 20px rgba(120,202,255,.22);}
.acb-battle-text.heal{background:linear-gradient(135deg, rgba(164,255,218,.12), rgba(53,200,158,.38)); border-color:rgba(117,255,201,.38); color:#eafff6;}
.acb-battle-text.shield{background:linear-gradient(135deg, rgba(172,218,255,.12), rgba(83,125,255,.35)); border-color:rgba(128,173,255,.38); color:#eef5ff;}
.acb-battle-text.lightning{background:linear-gradient(135deg, rgba(245,232,132,.14), rgba(139,92,255,.40)); border-color:rgba(250,236,132,.40); color:#fff9d8;}


@media (max-width: 760px){
    .acb-hero-stats{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap:3px 4px !important;
        font-size:8px !important;
    }
}

@media (max-width: 500px){
    .acb-hero-stats{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap:3px 4px !important;
        font-size:8px !important;
    }
}


/* v3.8.4 compact battle HUD and ability row */
.acb-hp-row{
    gap:8px !important;
    margin-bottom:8px !important;
}
.acb-hp-label{
    padding:6px 8px !important;
    gap:2px !important;
    border-radius:12px !important;
}
.acb-hp-label span{
    font-size:8px !important;
    letter-spacing:.8px !important;
}
.acb-hp-label strong{
    font-size:10px !important;
}
.acb-hp-bar{
    height:8px !important;
}
.acb-side-meter{
    padding:5px 8px 6px !important;
    margin-top:40px !important;
    gap:4px !important;
    border-radius:12px !important;
}
.acb-side-meter .acb-meter-head{
    font-size:10px !important;
    line-height:1 !important;
}
.acb-side-meter .acb-meter-head strong{
    font-size:9px !important;
}
.acb-side-meter .acb-ultimate-meter{
    height:8px !important;
}
.acb-hero-stats{
    grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
    gap:4px !important;
}
.acb-stat{
    padding:4px 5px !important;
    gap:2px !important;
    border-radius:11px !important;
}
.acb-stat.hp,
.acb-stat.ability{
    grid-column:1 / -1 !important;
}
.acb-stat .label{
    font-size:7px !important;
    letter-spacing:.55px !important;
}
.acb-stat strong{
    font-size:7px !important;
}
.acb-stat-delta{
    font-size:6px !important;
    gap:1px !important;
}
.acb-boost-icon{
    font-size:7px !important;
}
.acb-stat.ability .acb-stat-row{
    justify-content:flex-start;
}
.acb-stat.ability .acb-stat-delta.ability-meta{
    margin-left:auto;
    color:rgba(255,255,255,.72);
}
@media (max-width: 760px){
    .acb-hero-stats{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap:3px !important;
    }
    .acb-side-meter{
        margin-top:36px !important;
    }
}
@media (max-width: 500px){
    .acb-hp-label strong{font-size:9px !important;}
    .acb-stat .label,
    .acb-stat strong{font-size:6.5px !important;}
    .acb-stat-delta{font-size:5.5px !important;}
}


/* v3.9.1 UI refinement overrides */
.acb-admin .acb-table tbody tr td[data-label="Card"]{display:flex;align-items:center;gap:10px;}
.acb-admin .acb-table tbody tr td[data-label="Card"] .acb-card-preview{min-width:0;}
.acb-admin .acb-table tbody tr td[data-label="Ability"],
.acb-admin .acb-table tbody tr td[data-label="Effect"],
.acb-admin .acb-table tbody tr td[data-label="Evasion / Ultimate"],
.acb-admin .acb-table tbody tr td[data-label="Status"]{display:grid;grid-template-columns:78px 1fr;gap:8px;align-items:start;}
.acb-admin .acb-table tbody tr td[data-label="Ability"]::before,
.acb-admin .acb-table tbody tr td[data-label="Effect"]::before,
.acb-admin .acb-table tbody tr td[data-label="Evasion / Ultimate"]::before,
.acb-admin .acb-table tbody tr td[data-label="Status"]::before{white-space:nowrap;}
.acb-admin-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px;padding-top:10px;border-top:1px solid rgba(255,255,255,.08);}
.acb-admin-pager-info{color:rgba(255,255,255,.8);font-size:13px;}
.acb-admin-pager-actions{display:flex;gap:8px;flex-wrap:wrap;}
.acb-effect-field{padding:14px;border-radius:18px;background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08);}
.acb-effect-field label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.acb-effect-field input[type="url"]{font-size:13px;}
.acb-effect-preview{margin-top:10px;border-radius:16px;overflow:hidden;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.08);}
.acb-effect-preview img{display:block;width:100%;height:clamp(120px, 16vw, 180px);object-fit:contain;padding:8px;box-sizing:border-box;}
.acb-effect-empty{display:flex;align-items:center;justify-content:center;min-height:120px;font-size:12px;color:rgba(255,255,255,.65);}.acb-card-page-link-box{margin-top:10px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);display:grid;gap:6px}.acb-card-page-link-box strong{font-size:12px;letter-spacing:.04em;text-transform:uppercase}.acb-card-page-link-box a{font-size:12px;word-break:break-all}.acb-card-page-link-box p{margin:0;font-size:11px;opacity:.8}.acb-shortcode-head{display:grid;gap:6px;margin-bottom:14px}.acb-shortcode-head h2{margin:0}.acb-shortcode-head p{margin:0;max-width:880px}.acb-shortcode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.acb-shortcode-card{padding:14px 16px;border-radius:18px;background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08)}.acb-shortcode-card h3{margin:0 0 8px;font-size:14px}.acb-shortcode-card p,.acb-shortcode-card li{font-size:13px;line-height:1.5}.acb-shortcode-card pre{margin:0 0 10px;overflow:auto;padding:12px;border-radius:12px;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.08)}.acb-shortcode-card code{font-size:12px}.acb-shortcode-card ul{margin:0;padding-left:18px}

@media (min-width: 1101px){
  .acb-library-filters{flex-wrap:nowrap;gap:10px;align-items:flex-start;justify-content:flex-end;}
  .acb-filter-group{min-width:0;flex:0 0 auto;}
  .acb-filter-group-series{flex:0 0 356px;min-width:356px;}
  .acb-filter-group-sort{flex:0 0 210px;min-width:210px;}
  .acb-filter-group-series .acb-filter-menu,
  .acb-filter-group-sort .acb-filter-menu{left:0;right:auto;width:100%;min-width:100%;max-width:none;}
  .acb-filter-grid-series{grid-template-columns:repeat(3, minmax(0, 1fr));}
  .acb-filter-grid-sort{grid-template-columns:1fr;}
  .acb-filter-option{font-size:12px;padding:8px 10px;line-height:1.15;}
}

@media (max-width: 1100px){
  .acb-filter-menu{min-width:min(calc(100vw - 36px), 430px);}
}

@media (max-width: 760px){
  .acb-admin .acb-table tbody tr td[data-label="Card"]{align-items:flex-start;}
  .acb-admin .acb-table tbody tr td[data-label="Ability"],
  .acb-admin .acb-table tbody tr td[data-label="Effect"],
  .acb-admin .acb-table tbody tr td[data-label="Evasion / Ultimate"],
  .acb-admin .acb-table tbody tr td[data-label="Status"]{grid-template-columns:64px 1fr;gap:6px;}
  .acb-admin .acb-table td::before{font-size:10px;}
  .acb-card-preview{flex-direction:row;align-items:flex-start;gap:8px;}
  .acb-thumb{width:58px;height:76px;}
  .acb-card-preview strong{font-size:13px;line-height:1.1;}
  .acb-pill{font-size:9px;padding:4px 7px;}
  .acb-library-filters{justify-content:flex-end;gap:8px;}
  .acb-filter-group{min-width:0;flex:1 1 calc(50% - 8px);}
  .acb-filter-group label,.acb-filter-btn{font-size:10px;}
  .acb-filter-menu{min-width:100%;width:100%;padding:10px;left:0;right:auto;}
  .acb-filter-grid-series{grid-template-columns:repeat(2, minmax(0, 1fr));}
  .acb-filter-option{font-size:11px;padding:8px 9px;}
  .acb-controls{display:grid;grid-template-columns:1fr;gap:8px;}
  .acb-controls-row{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:8px;}
  .acb-controls-row-bottom{grid-template-columns:repeat(2, minmax(0, 1fr));}
  .acb-btn-start,.acb-btn-ultimate{width:100%;}
}

@media (max-width: 500px){
  .acb-admin .acb-table tbody tr td[data-label="Ability"],
  .acb-admin .acb-table tbody tr td[data-label="Effect"],
  .acb-admin .acb-table tbody tr td[data-label="Evasion / Ultimate"],
  .acb-admin .acb-table tbody tr td[data-label="Status"]{grid-template-columns:58px 1fr;gap:5px;}
  .acb-admin .acb-table td{padding:6px 0;}
  .acb-admin .acb-table td::before{font-size:9px;}
  .acb-filter-group{flex:1 1 100%;}
  .acb-filter-grid-series{grid-template-columns:repeat(2, minmax(0, 1fr));}
  .acb-filter-option{font-size:10px;padding:7px 8px;}
  .acb-effect-preview img{height:110px;}
  .acb-effect-empty{min-height:96px;}
  .acb-controls-row{grid-template-columns:1fr 1fr;}
}

/* v3.9.2 UI refinement overrides */
.acb-library-panel .acb-library-filters{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    justify-content:flex-start;
    margin-top:2px;
}
.acb-library-panel .acb-filter-group{
    width:100%;
    min-width:0;
    flex:1 1 auto;
}
.acb-library-panel .acb-filter-group label{
    font-size:11px;
    letter-spacing:.08em;
}
.acb-library-panel .acb-filter-btn{
    font-size:13px;
    padding:9px 13px;
}
.acb-library-panel .acb-filter-menu{
    left:0;
    right:auto;
    width:100%;
    min-width:100%;
    max-width:100%;
}
.acb-library-panel .acb-filter-grid-series{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:6px;
}
.acb-library-panel .acb-filter-grid-sort{
    grid-template-columns:1fr;
}
.acb-library-panel .acb-filter-option{
    font-size:12px;
    padding:8px 10px;
}
.acb-card .acb-card-tags{
    gap:4px;
}
.acb-card .acb-card-tags .acb-pill{
    font-size:10px;
    padding:4px 8px;
}
.acb-card .acb-card-stats{
    font-size:10px;
    gap:4px 6px;
}
.acb-card small{
    font-size:10px;
    min-height:0;
}
.acb-slot-stats{
    font-size:10px !important;
}
.acb-hero-stats{
    grid-template-columns:repeat(5, minmax(0, 1fr));
}
.acb-hero-stats .acb-stat .label{
    font-size:8px;
}
.acb-stat-row strong{
    font-size:11px;
}
.acb-stat-delta{
    font-size:8px;
}
.acb-stat.ability .acb-stat-row{
    gap:4px;
}
.acb-stat.ability .acb-stat-delta.ability-meta{
    font-size:8px;
}
@media (max-width: 980px){
    .acb-library-panel .acb-library-filters{
        gap:8px;
    }
    .acb-library-panel .acb-filter-grid-series{
        grid-template-columns:repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 760px){
    .acb-library-panel .acb-filter-grid-series{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
    .acb-hero-stats{
        grid-template-columns:repeat(4, minmax(0, 1fr));
    }
    .acb-hero-stats .acb-stat.ability{
        grid-column:1 / -1;
    }
    .acb-ultimate-overlay{
        position:fixed;
        inset:0;
        align-items:flex-start;
        justify-content:center;
        padding:calc(env(safe-area-inset-top, 0px) + 12px) 12px 12px;
    }
    .acb-ultimate-card{
        margin-top:0;
        align-self:flex-start;
    }
}


/* v3.9.5 settings tabs and abilities catalog */
.acb-settings-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 14px;}
.acb-settings-tab{border:1px solid rgba(255,255,255,.12);background:rgba(13,18,35,.72);color:#eff3ff;padding:10px 16px;border-radius:14px;cursor:pointer;font-weight:800;transition:.2s ease;}
.acb-settings-tab.active{background:linear-gradient(135deg, rgba(141,92,255,.95), rgba(0,208,255,.72));color:#fff;box-shadow:0 12px 26px rgba(141,92,255,.22);}
.acb-tab-panel{display:none;}
.acb-tab-panel.active{display:block;}
.acb-settings-panels{display:block;}
.acb-ability-intro{margin-bottom:16px;}
.acb-ability-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.acb-ability-card{background:linear-gradient(180deg, rgba(12,16,32,.92), rgba(7,10,20,.92));border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:14px;box-shadow:0 18px 38px rgba(0,0,0,.18);}
.acb-ability-head{display:grid;grid-template-columns:120px 1fr;gap:12px;align-items:start;margin-bottom:10px;}
.acb-ability-head .acb-pill{display:inline-flex;width:fit-content;}
.acb-ability-meta{margin-top:10px;}
.acb-ability-preview small{display:block;font-size:12px;line-height:1.5;color:rgba(233,238,255,.78);margin-top:8px;}
.acb-ability-copy{display:block;margin-top:5px;font-size:12px;line-height:1.45;color:rgba(231,236,255,.7);}
.acb-pill.ability{background:rgba(168,85,247,.16);}
@media (max-width: 960px){.acb-ability-grid{grid-template-columns:1fr;}.acb-ability-head{grid-template-columns:1fr;}}

.acb-admin .notice{background:#f8fafc;border:1px solid rgba(15,23,42,.12);color:#111827;}
.acb-admin .notice p,.acb-admin .notice strong,.acb-admin .notice a{color:#111827;}
.acb-license-chip{background:#f6f7fb;color:#111827;}
.acb-license-chip strong,.acb-license-chip span{color:#111827;}
.acb-card.locked{opacity:.72;filter:grayscale(.7);cursor:not-allowed;}
.acb-card.locked .meta{pointer-events:none;}
.acb-card-lock{position:absolute;left:12px;top:12px;z-index:3;display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:rgba(17,24,39,.92);color:#fff;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;}
.acb-card-lock small{font-weight:600;opacity:.8;text-transform:none;letter-spacing:0;}

.acb-copyright{margin-top:18px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08);font-size:12px;line-height:1.4;color:rgba(255,255,255,.72);text-align:center;width:100%}


.acb-action-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:8px;
    margin-top:10px;
}

.acb-action-card{
    border-radius:16px;
    padding:10px 10px 9px;
    background:rgba(7,11,20,.66);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 12px 26px rgba(0,0,0,.16);
    min-width:0;
}

.acb-action-head{
    display:flex;
    flex-direction:column;
    gap:2px;
    margin-bottom:4px;
}

.acb-action-kicker{
    font-size:10px;
    line-height:1;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:rgba(255,255,255,.68);
}

.acb-action-card strong{
    font-size:13px;
    line-height:1.15;
    word-break:break-word;
    overflow-wrap:anywhere;
}

.acb-action-card small{
    display:block;
    font-size:10px;
    line-height:1.35;
    color:rgba(255,255,255,.78);
    word-break:break-word;
    overflow-wrap:anywhere;
}

.acb-action-card.special{ background:rgba(88,28,135,.28); }
.acb-action-card.ultimate{ background:rgba(127,29,29,.28); }


#acb-app .acb-card-grid,
#acb-app .acb-deck-grid{
    opacity:1;
    visibility:visible;
}

@media (max-width: 760px){
  .acb-hero-meta{padding:7px 7px 9px;background:linear-gradient(180deg, rgba(11,18,32,.16), rgba(11,18,32,.60));border-top:0;backdrop-filter:none;}
  .acb-hero-name{font-size:12px;line-height:1.08;margin-bottom:6px;}
  .acb-hero-tags{gap:4px;margin-top:5px;margin-bottom:6px;}
  .acb-action-grid{grid-template-columns:1fr;gap:6px;margin-top:8px;}
  .acb-action-card{padding:8px 9px;border-radius:14px;}
  .acb-action-card strong{font-size:9px;}
  .acb-action-card small{font-size:8px;}
  .acb-slot-name{left:6px;right:6px;bottom:6px;border-radius:10px;font-size:10px;padding:5px 7px;}
  .acb-slot-stats{left:6px;right:6px;bottom:40px;border-radius:10px;font-size:9px;padding:5px 7px 7px;}
  .acb-copyright{margin-top:18px;padding-top:12px;text-align:center;width:100%;}
}


/* v4.1.5 mobile/public UI overrides */
#acb-app .acb-hero-meta{
  background:linear-gradient(180deg, rgba(11,18,32,.16), rgba(11,18,32,.60)) !important;
  border-top:0 !important;
  backdrop-filter:none !important;
}
#acb-app .acb-slot-name{
  left:6px !important;
  right:6px !important;
  bottom:6px !important;
  border-radius:10px !important;
  background:rgba(8,12,24,.88) !important;
  box-shadow:0 10px 22px rgba(0,0,0,.28) !important;
}
#acb-app .acb-slot-stats{
  left:6px !important;
  right:6px !important;
  bottom:40px !important;
  white-space:normal !important;
}
#acb-app .acb-copyright{
  width:100% !important;
  text-align:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
@media (max-width: 760px){
  #acb-app .acb-hero-meta{padding:7px 7px 9px !important;}
  #acb-app .acb-action-grid{grid-template-columns:1fr !important;gap:6px !important;margin-top:8px !important;}
  #acb-app .acb-action-card{padding:8px 9px !important;border-radius:14px !important;}
  #acb-app .acb-action-card strong{font-size:9px !important;}
  #acb-app .acb-action-card small{font-size:8px !important;}
  #acb-app .acb-slot-name{font-size:10px !important;padding:5px 7px !important;}
  #acb-app .acb-slot-stats{font-size:9px !important;padding:5px 7px 7px !important;}
}


.acb-slot-identity,
.acb-slot-core,
.acb-slot-actions{
  display:block;
}
.acb-slot-identity{font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;opacity:.95;margin-bottom:4px;}
.acb-slot-core{font-size:10px;font-weight:700;opacity:.92;margin-bottom:5px;}
.acb-slot-actions{display:flex;flex-direction:column;gap:2px;font-size:9px;line-height:1.25;color:rgba(255,255,255,.82);}
.acb-slot-actions span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}


.acb-team-bonus-line{display:flex;align-items:center;gap:4px;margin:0 0 5px;padding:0;font-size:7px;line-height:1.2;color:#4cff93;text-shadow:0 0 10px rgba(76,255,147,.15);letter-spacing:.02em;}
.acb-team-bonus-star{flex:0 0 auto;font-size:8px;color:#74ffa9;}
.acb-team-bonus-text{display:block;font-size:inherit;color:inherit;white-space:normal;overflow-wrap:anywhere;}
.acb-team-bonus-card{margin-bottom:16px;padding:16px;border-radius:20px;background:linear-gradient(180deg, rgba(8,16,29,.96), rgba(12,20,35,.92));border:1px solid rgba(255,255,255,.08);}
.acb-team-bonus-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;}
.acb-team-bonus-card-head strong{font-size:15px;}
.acb-team-bonus-head p{margin:8px 0 14px;color:var(--acb-muted);}
.acb-team-bonus-note{margin:10px 0 14px;font-size:12px;color:rgba(244,247,255,.7);}
.acb-team-bonus-list{display:grid;gap:14px;}


@media (max-width: 960px){
    .acb-grid-5{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .acb-card-pages-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .acb-card-pages-header{ flex-direction:column; }
    .acb-single-card-shell{ grid-template-columns:1fr; }
    .acb-single-card-portrait{ min-height:420px; }
}
@media (max-width: 640px){
    .acb-grid-2,.acb-grid-3,.acb-grid-4,.acb-grid-5,.acb-toggle-grid,.acb-card-pages-grid,.acb-single-card-grid{ grid-template-columns:1fr; }
    .acb-team-bonus-card-head{ flex-direction:column; align-items:flex-start; }
    .acb-card-page-tile{ grid-template-columns:72px 1fr; }
    .acb-card-page-portrait{ width:72px;height:98px; }
    .acb-single-card-portrait{ min-height:340px; }
}


/* v4.2.9 Card Pages stabilization */
.acb-card-pages-archive{
    width:min(100%, 1280px);
    margin:0 auto;
    padding:clamp(12px, 2vw, 22px);
    box-sizing:border-box;
}
.acb-card-pages-header,
.acb-card-pages-grid,
.acb-single-card-shell{
    width:100%;
    box-sizing:border-box;
}
.acb-card-pages-grid{
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
}
.acb-card-page-tile{
    width:100%;
    min-width:0;
}
.acb-card-page-body{
    min-width:0;
}
.acb-card-page-body strong,
.acb-card-page-meta,
.acb-card-page-stats{
    overflow-wrap:anywhere;
}
.acb-single-card-shell{
    max-width:1280px;
    margin:0 auto;
    grid-template-columns:minmax(0, 360px) minmax(0, 1fr);
}
.acb-single-card-portrait{
    min-height:clamp(320px, 58vw, 540px);
}
.acb-single-card-grid{
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
}
.acb-card-pages-empty{
    grid-column:1 / -1;
    padding:18px;
    border-radius:18px;
    border:1px dashed rgba(255,255,255,.14);
    background:rgba(255,255,255,.03);
    color:var(--acb-muted);
    display:grid;
    gap:4px;
}
.acb-card-pages-back{
    align-self:flex-start;
}
@media (max-width: 960px){
    .acb-card-pages-grid{
        grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
    }
    .acb-single-card-shell{
        grid-template-columns:1fr;
    }
}
@media (max-width: 640px){
    .acb-card-pages-header{
        padding:14px;
    }
    .acb-card-page-tile{
        grid-template-columns:72px 1fr;
        gap:12px;
    }
    .acb-card-page-portrait{
        width:72px;
        height:98px;
    }
}


/* Story Mode */
#acb-app.acb-story-active .acb-library-panel,
#acb-app.acb-story-active .acb-deck-builder,
#acb-app.acb-story-active .acb-pager,
#acb-app.acb-story-active .acb-library-filters,
#acb-app.acb-story-active .acb-library-pager {
    display: none !important;
}
#acb-app.acb-story-active .acb-settings-panel {
    width: 100%;
}
#acb-story-panel[hidden] { display:none !important; }
.acb-story-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(5, 10, 18, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.acb-story-overlay[hidden] {
    display: none !important;
}
body.acb-story-camera-lock {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}
.acb-story-dialogue-stage, .acb-story-prompt-stage {
    pointer-events: auto;
    width: 100%;
    display: grid;
    place-items: center;
}
.acb-story-media-stage {
    pointer-events: auto;
    width: min(100%, 760px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.acb-story-dialogue-box, .acb-story-prompt, .acb-story-media-box {
    width: min(820px, 94vw);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(14,19,31,.95), rgba(8,12,20,.92));
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
    color: #fff;
}
.acb-story-dialogue-box {
    padding: 18px 20px;
}
.acb-story-media-box {
    padding: 18px 20px 16px;
    display: grid;
    gap: 12px;
    min-width: 0;
}
.acb-story-mute-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(10, 14, 24, .82);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.acb-story-mute-toggle:hover,
.acb-story-mute-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(196, 173, 255, .72);
    box-shadow: 0 14px 34px rgba(0,0,0,.42);
}
.acb-story-mute-toggle.is-muted {
    background: rgba(76, 32, 96, .86);
}
.acb-story-mute-icon {
    font-size: 16px;
    line-height: 1;
}
.acb-story-dialogue-title {
    font-size: 12px;
    opacity: .75;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 8px;
}
.acb-story-dialogue-speaker {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
}
.acb-story-dialogue-text {
    font-size: 18px;
    line-height: 1.5;
    min-height: 68px;
}
.acb-story-dialogue-actions, .acb-story-prompt-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    justify-content: flex-end;
}
.acb-story-prompt {
    padding: 20px;
}
.acb-story-prompt-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}
.acb-story-prompt-text {
    opacity: .85;
    line-height: 1.5;
}
.acb-story-media-stage {
    width: min(100%) !important;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.acb-story-media-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.acb-story-media-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    min-width: 0;
}
.acb-story-media-frame img,
.acb-story-media-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.acb-story-media-caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.acb-story-dialogue-caption {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 6;
    pointer-events: none;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    max-width: min(560px, calc(100vw - 32px));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 782px) {
    .acb-story-dialogue-caption {
        left: 12px;
        bottom: 12px;
        max-width: calc(100vw - 24px);
        font-size: 11px;
        padding: 7px 10px;
    }
}
.acb-story-defeat {
    text-align: center;
    padding: 24px 22px;
    border-color: rgba(255, 86, 115, 0.22);
    background: linear-gradient(180deg, rgba(48, 10, 18, .98), rgba(15, 10, 20, .96));
}
.acb-story-defeat-kicker {
    color: rgba(255,255,255,.72);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 12px;
    margin-bottom: 10px;
}
.acb-story-defeat-title {
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.acb-story-defeat-text {
    font-size: 17px;
    line-height: 1.55;
    opacity: .92;
    max-width: 48ch;
    margin: 0 auto;
}
.acb-story-defeat-chances {
    margin-top: 14px;
    font-size: 14px;
    letter-spacing: .04em;
    opacity: .95;
}
.acb-story-defeat .acb-story-prompt-actions {
    justify-content: center;
    margin-top: 18px;
}
.acb-story-defeat .acb-story-prompt-actions .button {
    min-width: 220px;
}
.acb-story-active .acb-settings-panel {
    align-self: start;
}
.acb-story-active .acb-story-panel {
    margin-bottom: 16px;
}
.acb-story-active .acb-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
}
@media (max-width: 980px) {
    .acb-story-dialogue-text { font-size: 16px; }
    .acb-story-dialogue-box, .acb-story-prompt, .acb-story-media-box {
        width: min(100%, 94vw);
    }
    .acb-story-media-box {
        padding: 16px;
    }
    .acb-story-media-frame {
        border-radius: 20px;
    }
    .acb-story-active .acb-layout { grid-template-columns: 1fr; }
    .acb-story-panel .acb-story-selector {
        grid-template-columns: 1fr;
    }
    .acb-story-panel .acb-story-cta {
        flex-direction: row;
        align-items: stretch;
    }
    .acb-story-panel .acb-story-cta .button {
        min-width: 0;
        width: auto;
        flex: 1 1 0;
    }
    .acb-story-ui-btn{
        padding:7px 9px;
        font-size:11px;
        min-height:32px;
        letter-spacing:.05em;
    }
    .acb-story-dialogue-actions,
    .acb-story-prompt-actions,
    .acb-story-media-actions,
    .acb-story-panel .acb-story-cta{
        gap:6px;
    }
}

@media (max-width: 760px){
    .acb-battlelog, .acb-controls, .acb-footer, .acb-hp-row{
        min-width:0;
        max-width:100%;
        box-sizing:border-box;
    }
}

.acb-story-panel .acb-story-cta, .acb-story-dialogue-actions, .acb-story-prompt-actions, .acb-story-media-actions { flex-wrap: nowrap; }


/* v4.2.3 story mode mobile overflow hardening */
.acb-story-overlay{
    padding:clamp(12px, 3vw, 22px);
    box-sizing:border-box;
}
.acb-story-dialogue-box,
.acb-story-prompt,
.acb-story-media-box{
    width:min(820px, calc(100vw - 32px));
    max-width:calc(100vw - 32px);
    box-sizing:border-box;
}
.acb-story-prompt-stage,
.acb-story-media-stage,
.acb-story-dialogue-stage{
    box-sizing:border-box;
    padding-inline:clamp(8px, 2.5vw, 16px);
}
.acb-story-defeat{
    overflow:hidden;
}
.acb-story-defeat .acb-story-prompt-actions{
    width:100%;
}
.acb-story-defeat .acb-story-ui-btn{
    padding:8px 10px;
    min-height:34px;
    font-size:11px;
}
.acb-story-defeat .acb-story-ui-btn-primary{
    border-color:rgba(156, 54, 70, .72);
    background:linear-gradient(180deg, rgba(112, 22, 31, .98), rgba(54, 11, 18, .98));
}
.acb-story-defeat .acb-story-ui-btn-secondary{
    border-color:rgba(156, 54, 70, .58);
    background:linear-gradient(180deg, rgba(86, 18, 27, .98), rgba(42, 10, 16, .98));
}
@media (max-width: 760px) {
    .acb-story-defeat .acb-story-prompt-actions{
        flex-direction:column;
        align-items:stretch;
    }
    .acb-story-defeat .acb-story-prompt-actions .button{
        min-width:0;
        width:100%;
    }
}
@media (max-width: 500px){
    .acb-story-overlay{
        padding:12px;
    }
    .acb-story-dialogue-box,
    .acb-story-prompt,
    .acb-story-media-box{
        width:calc(100vw - 24px);
        max-width:calc(100vw - 24px);
    }
    .acb-story-panel .acb-story-cta,
    .acb-story-dialogue-actions,
    .acb-story-prompt-actions,
    .acb-story-media-actions{
        flex-direction:column;
        align-items:stretch;
    }
    .acb-story-panel .acb-story-cta .acb-story-ui-btn,
    .acb-story-dialogue-actions .acb-story-ui-btn,
    .acb-story-prompt-actions .acb-story-ui-btn,
    .acb-story-media-actions .acb-story-ui-btn{
        width:100%;
        flex:1 1 auto;
    }
    .acb-story-defeat .acb-story-ui-btn{
        padding:7px 8px;
        font-size:10px;
        min-height:30px;
        letter-spacing:.04em;
    }
    .acb-story-skip-btn{
        width:min(100%, 250px);
        max-width:250px;
    }
}

@media (min-width: 501px){
    .acb-story-skip-btn{ width:min(100%, 300px); max-width:300px; }
}


/* v4.2.4: multiplayer combat motion (same local animation assets, driven by server action events). */
.acb-battle-card.acb-online-strike{animation:acb-online-strike .42s cubic-bezier(.2,.8,.25,1);}
.acb-battle-card.acb-online-defend{animation:acb-online-defend .62s ease-out;}
@keyframes acb-online-strike{
    0%{transform:translateY(0) scale(1);filter:brightness(1);}
    32%{transform:translateY(-12px) scale(1.035);filter:brightness(1.22);}
    66%{transform:translateY(2px) scale(.99);filter:brightness(1.08);}
    100%{transform:translateY(0) scale(1);filter:brightness(1);}
}
@keyframes acb-online-defend{
    0%{transform:scale(1);filter:brightness(1);}
    35%{transform:scale(1.025);filter:brightness(1.28) drop-shadow(0 0 14px rgba(114,177,255,.75));}
    100%{transform:scale(1);filter:brightness(1);}
}


/* v4.2.5: same-room multiplayer rematch and card-selection flow. */
.acb-online-round-overlay {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 4vw, 34px);
    background: radial-gradient(circle at 50% 32%, rgba(84, 59, 139, .54), rgba(5, 8, 20, .91) 64%);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}
.acb-online-round-overlay[hidden] { display: none !important; }
.acb-online-round-card {
    width: min(100%, 480px);
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 5vw, 38px);
    text-align: center;
    color: #f8f7ff;
    border: 1px solid rgba(190, 166, 255, .54);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(24, 27, 54, .98), rgba(9, 13, 30, .98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .11);
}
.acb-online-round-card:before {
    content: "";
    position: absolute;
    height: 3px;
    top: 0;
    left: 12%;
    right: 12%;
    background: linear-gradient(90deg, transparent, var(--acb-accent, #8d5cff), #b6a0ff, transparent);
    box-shadow: 0 0 24px var(--acb-accent, #8d5cff);
}
.acb-online-round-kicker {
    margin-bottom: 10px;
    color: #c3b0ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .22em;
}
.acb-online-round-card h3 {
    margin: 0 0 11px;
    color: #fff;
    font-size: clamp(25px, 5vw, 36px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -.025em;
    text-shadow: 0 0 24px rgba(157, 124, 255, .32);
}
.acb-online-round-copy {
    max-width: 360px;
    margin: 0 auto 24px;
    color: rgba(235, 233, 255, .82);
    font-size: 14px;
    line-height: 1.65;
}
.acb-online-round-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.acb-online-round-actions .acb-btn {
    min-height: 48px;
    margin: 0;
    border-radius: 13px;
    font-weight: 850;
    white-space: normal;
}
.acb-online-round-foot {
    margin-top: 18px;
    color: rgba(203, 198, 230, .67);
    font-size: 11px;
    line-height: 1.5;
}
.acb-online-selection-toast {
    position: absolute;
    z-index: 120;
    top: max(14px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    padding: 10px 18px;
    border: 1px solid rgba(178, 154, 255, .65);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(120deg, rgba(61, 41, 109, .97), rgba(19, 24, 52, .97));
    box-shadow: 0 10px 35px rgba(0, 0, 0, .34), 0 0 22px rgba(141, 92, 255, .2);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .04em;
    animation: acb-online-toast-in .22s ease-out both;
}
@keyframes acb-online-toast-in {
    from { opacity: 0; margin-top: -7px; }
    to { opacity: 1; margin-top: 0; }
}
.acb-app:has(.acb-online-round-overlay:not([hidden])) .acb-controls { pointer-events: none; }
@media (max-width: 540px) {
    .acb-online-round-card { border-radius: 18px; }
    .acb-online-round-actions { grid-template-columns: 1fr; }
    .acb-online-round-actions .acb-btn { width: 100%; }
}

.acb-battle-card.acb-online-enter {
    animation: acb-online-card-entry .78s cubic-bezier(.15,.8,.2,1) both;
}
@keyframes acb-online-card-entry {
    0% { opacity: .35; transform: translateY(28px) scale(.9); filter: drop-shadow(0 0 0 rgba(141,92,255,0)); }
    48% { opacity: 1; transform: translateY(-7px) scale(1.035); filter: drop-shadow(0 0 22px rgba(141,92,255,.7)); }
    75% { transform: translateY(2px) scale(.99); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px rgba(141,92,255,.18)); }
}

/* v4.2.7: viewport-locked combat prompts and frontend game-data manager. */
.acb-special-overlay,
.acb-ultimate-overlay {
    position: fixed !important;
    inset: 0 !important;
    box-sizing: border-box;
    padding: clamp(14px, 2.6vh, 28px) clamp(12px, 3vw, 32px);
    overflow: hidden;
}
.acb-special-overlay.acb-prompt-top {
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(env(safe-area-inset-top, 0px) + clamp(12px, 2.4vh, 28px));
}
.acb-special-overlay.acb-prompt-middle {
    align-items: center;
    justify-content: center;
}
.acb-special-overlay.acb-prompt-bottom {
    align-items: flex-end;
    justify-content: center;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(12px, 2.4vh, 28px));
}
.acb-special-overlay .acb-special-card,
.acb-ultimate-overlay .acb-ultimate-card {
    box-sizing: border-box;
    width: min(780px, calc(100vw - 28px));
    min-width: 0;
    max-width: 780px;
    max-height: calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
}
.acb-special-overlay .acb-special-card {
    border-color: rgba(225, 211, 255, .42);
    background: linear-gradient(145deg, rgba(8, 13, 31, .94), rgba(31, 13, 58, .90) 58%, rgba(8, 15, 30, .95));
    box-shadow: 0 22px 70px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255,255,255,.12), 0 0 34px rgba(141,92,255,.22);
}
.acb-ultimate-overlay .acb-ultimate-card {
    border-color: rgba(216, 204, 255, .46);
    background: linear-gradient(145deg, rgba(7, 12, 29, .95), rgba(24, 16, 62, .91) 56%, rgba(7, 14, 30, .96));
    box-shadow: 0 22px 70px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255,255,255,.12), 0 0 36px rgba(141,92,255,.25);
}
.acb-special-overlay .acb-special-title,
.acb-ultimate-overlay .acb-ultimate-title {
    overflow-wrap: anywhere;
}

/* Fixed to the browser viewport, not the game shell, so the round decision remains visible while scrolling. */
.acb-online-round-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(16px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(ellipse at 50% 18%, rgba(158, 106, 255, .32), transparent 46%),
      radial-gradient(ellipse at 82% 82%, rgba(55, 199, 255, .12), transparent 40%),
      rgba(3, 5, 17, .88);
    backdrop-filter: blur(12px) saturate(1.25);
    -webkit-backdrop-filter: blur(12px) saturate(1.25);
}
.acb-online-round-card {
    width: min(100%, 520px);
    max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    border-color: rgba(196, 177, 255, .62);
    background:
      radial-gradient(circle at 50% 0%, rgba(141, 92, 255, .21), transparent 44%),
      linear-gradient(150deg, rgba(20, 25, 52, .99), rgba(7, 11, 27, .99) 70%);
    box-shadow: 0 28px 100px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.1), 0 0 42px rgba(141,92,255,.15);
}
.acb-online-round-card:after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 8px;
    border: 1px solid rgba(204, 190, 255, .09);
    border-radius: 17px;
}
.acb-online-round-kicker { text-shadow: 0 0 18px rgba(182, 160, 255, .4); }
.acb-online-round-copy { max-width: 410px; }
.acb-online-round-actions .acb-btn { position: relative; z-index: 1; }

.acb-game-data-open {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid rgba(186, 160, 255, .54);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, rgba(92, 57, 160, .9), rgba(22, 32, 64, .96));
    box-shadow: 0 9px 28px rgba(0, 0, 0, .27), inset 0 1px 0 rgba(255,255,255,.12), 0 0 20px rgba(141,92,255,.12);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .045em;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.acb-game-data-open:hover,
.acb-game-data-open:focus-visible {
    border-color: rgba(221, 210, 255, .9);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .34), 0 0 24px rgba(141,92,255,.24);
    transform: translateY(-1px);
    outline: none;
}
.acb-game-data-open[data-state="downloading"] { border-color: rgba(68, 211, 255, .72); }
.acb-game-data-modal[hidden] { display: none !important; }
.acb-game-data-modal {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: max(16px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    isolation: isolate;
}
.acb-game-data-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(ellipse at 48% 25%, rgba(112, 65, 207, .32), transparent 48%),
      radial-gradient(ellipse at 88% 85%, rgba(46, 189, 255, .12), transparent 40%),
      rgba(2, 5, 17, .88);
    backdrop-filter: blur(13px) saturate(1.25);
    -webkit-backdrop-filter: blur(13px) saturate(1.25);
}
.acb-game-data-dialog {
    position: relative;
    box-sizing: border-box;
    width: min(620px, 100%);
    max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(22px, 5vw, 38px);
    border: 1px solid rgba(192, 167, 255, .58);
    border-radius: 28px;
    color: #f9f7ff;
    text-align: center;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(141,92,255,.22), transparent 42%),
      linear-gradient(145deg, rgba(19, 24, 51, .99), rgba(7, 11, 26, .99) 74%);
    box-shadow: 0 28px 110px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.1), 0 0 44px rgba(141,92,255,.15);
}
.acb-game-data-dialog:before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, var(--acb-accent, #8d5cff), #bdaaff, #53c7ff, transparent);
    box-shadow: 0 0 24px rgba(141,92,255,.62);
}
.acb-game-data-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.acb-game-data-kicker { color: #c6b4ff; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.acb-game-data-x {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    color: rgba(255,255,255,.88);
    background: rgba(255,255,255,.05);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}
.acb-game-data-emblem {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 18px auto 12px;
    border: 1px solid rgba(200, 179, 255, .4);
    border-radius: 20px;
    color: #ded5ff;
    background: linear-gradient(140deg, rgba(141,92,255,.28), rgba(40,190,255,.11));
    box-shadow: 0 0 30px rgba(141,92,255,.2), inset 0 1px 0 rgba(255,255,255,.12);
    font-size: 30px;
    text-shadow: 0 0 20px rgba(211,198,255,.6);
}
.acb-game-data-dialog h3 { margin: 0 0 10px; color: #fff; font-size: clamp(25px, 5vw, 36px); line-height: 1.1; font-weight: 900; letter-spacing: -.025em; text-shadow: 0 0 24px rgba(157,124,255,.27); }
.acb-game-data-copy { max-width: 485px; margin: 0 auto 22px; color: rgba(232,231,255,.8); font-size: 14px; line-height: 1.7; }
.acb-game-data-meter { padding: 13px 14px 15px; border: 1px solid rgba(195,177,255,.14); border-radius: 16px; background: rgba(4,8,23,.55); text-align: left; }
.acb-game-data-meter-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; color: rgba(241,239,255,.82); font-size: 11px; font-weight: 800; }
.acb-game-data-tag { color: #b8a6ff; font-size: 9px; letter-spacing: .12em; }
.acb-game-data-track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 1px 3px rgba(0,0,0,.45); }
.acb-game-data-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8054f6, #55cfff); box-shadow: 0 0 16px rgba(115,120,255,.62); transition: width .2s ease; }
.acb-game-data-status { min-height: 36px; margin: 12px 0 15px; color: rgba(218,222,255,.76); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.acb-game-data-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.acb-game-data-btn {
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid rgba(192,174,255,.28);
    border-radius: 12px;
    color: #f9f7ff;
    background: linear-gradient(145deg, rgba(39,47,82,.9), rgba(17,23,48,.96));
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    transition: transform .16s ease, opacity .16s ease, border-color .16s ease;
}
.acb-game-data-btn.primary { border-color: rgba(200,177,255,.7); background: linear-gradient(125deg, #6d49d9, #384e9e 60%, #245c88); box-shadow: 0 8px 24px rgba(62,53,151,.28); }
.acb-game-data-btn.subtle { color: rgba(239,236,255,.84); background: rgba(255,255,255,.035); }
.acb-game-data-btn:hover:not(:disabled), .acb-game-data-btn:focus-visible { border-color: rgba(221,211,255,.9); transform: translateY(-1px); outline: none; }
.acb-game-data-btn:disabled { opacity: .5; cursor: wait; }
.acb-game-data-dismiss { display: flex; justify-content: center; align-items: flex-start; gap: 9px; margin: 17px auto 0; color: rgba(224,222,247,.82); font-size: 11px; line-height: 1.45; cursor: pointer; }
.acb-game-data-dismiss input { flex: 0 0 auto; accent-color: #9d82ff; margin: 1px 0 0; }
.acb-game-data-foot { margin-top: 17px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(195,193,224,.58); font-size: 10px; line-height: 1.55; }
body.acb-game-data-modal-open { overflow: hidden; }
.acb-cba-v427-settings .acb-cba-v427-toggle { align-self: end; padding: 12px 14px; border: 1px solid rgba(141,92,255,.2); border-radius: 14px; background: rgba(141,92,255,.055); }
.acb-cba-v427-settings .acb-cba-v427-toggle label { display: block; font-weight: 800; }
.acb-cba-v427-settings .acb-cba-v427-toggle p { margin: 8px 0 0; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.55; }
@media (max-width: 760px) {
    .acb-topbar { flex-wrap: wrap; align-items: flex-start; }
    .acb-game-data-open { min-height: 38px; padding: 8px 12px; }
    .acb-special-overlay .acb-special-card,
    .acb-ultimate-overlay .acb-ultimate-card { width: calc(100vw - 24px); padding: 21px 18px; border-radius: 20px; }
    .acb-special-overlay .acb-special-title,
    .acb-ultimate-overlay .acb-ultimate-title { font-size: clamp(21px, 6vw, 34px); line-height: 1.08; }
    .acb-special-overlay .acb-special-copy,
    .acb-ultimate-overlay .acb-ultimate-copy { font-size: 12px; line-height: 1.5; }
    .acb-game-data-dialog { padding: 22px 17px; border-radius: 22px; }
    .acb-game-data-actions { grid-template-columns: 1fr; }
    .acb-game-data-actions .acb-game-data-btn { width: 100%; }
    .acb-online-round-card { width: min(100%, 480px); padding: 25px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .acb-game-data-open, .acb-game-data-btn, .acb-game-data-track span { transition: none !important; }
}


/* v4.2.8.ultimate.fix — viewport-wide cinematic Ultimate finisher.
   This layer is attached directly to <body>, above ordinary battle effects and prompts. */
.acb-ultimate-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    z-index: 2147483000 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 18px max(12px, env(safe-area-inset-right, 0px)) max(28px, calc(env(safe-area-inset-bottom, 0px) + clamp(24px, 5vh, 68px))) max(12px, env(safe-area-inset-left, 0px)) !important;
    overflow: hidden !important;
    isolation: isolate;
    pointer-events: none !important;
    visibility: hidden;
    opacity: 0;
    background:
      radial-gradient(ellipse at 50% 30%, rgba(91, 65, 177, .24), transparent 52%),
      radial-gradient(ellipse at 50% 100%, rgba(4, 8, 24, .88), transparent 55%),
      #02030b;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: opacity .18s ease, visibility .18s ease;
}
.acb-ultimate-overlay.on {
    opacity: 1 !important;
    visibility: visible !important;
}
.acb-ultimate-overlay::before {
    z-index: 2 !important;
    inset: -8% !important;
    pointer-events: none !important;
    opacity: .72;
}
.acb-ultimate-overlay::after {
    z-index: 3 !important;
    pointer-events: none !important;
    opacity: .78;
}
.acb-ultimate-overlay .acb-ultimate-cinematic {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background:
      radial-gradient(ellipse at 50% 43%, rgba(120, 94, 255, .20), transparent 42%),
      linear-gradient(180deg, rgba(1, 3, 12, .08), rgba(1, 3, 12, .28));
}
.acb-ultimate-overlay .acb-ultimate-cinematic-halo {
    position: absolute;
    width: min(92vw, 150vh, 1380px);
    height: min(92vw, 150vh, 1380px);
    border-radius: 50%;
    border: 1px solid rgba(222, 206, 255, .18);
    box-shadow: 0 0 0 22px rgba(141, 92, 255, .035), 0 0 0 58px rgba(76, 201, 240, .025), inset 0 0 100px rgba(141, 92, 255, .12), 0 0 100px rgba(141, 92, 255, .13);
    animation: acb-ultimate-halo-pulse var(--acb-ultimate-duration, 2000ms) ease-in-out both;
}
.acb-ultimate-overlay .acb-ultimate-cinematic-media {
    position: absolute !important;
    inset: 0 !important;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    border: 0 !important;
    border-radius: 0 !important;
    opacity: 0;
    transform: scale(.88);
    filter: saturate(1.28) contrast(1.06) drop-shadow(0 0 32px rgba(141, 92, 255, .48)) drop-shadow(0 0 70px rgba(76, 201, 240, .20));
    mix-blend-mode: screen;
    animation: acb-ultimate-cinematic-reveal var(--acb-ultimate-duration, 2000ms) cubic-bezier(.14,.76,.2,1) forwards;
}
.acb-ultimate-overlay .acb-ultimate-card {
    position: relative !important;
    z-index: 5 !important;
    flex: 0 1 auto;
    width: min(1000px, calc(100vw - 28px)) !important;
    min-width: 0 !important;
    max-width: 1000px !important;
    max-height: calc(100dvh - 36px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    margin: 0 auto !important;
    padding: clamp(20px, 3.2vh, 38px) clamp(22px, 4vw, 58px) clamp(18px, 2.8vh, 30px) !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(233, 213, 255, .56) !important;
    border-radius: clamp(20px, 2.2vw, 34px) !important;
    text-align: center;
    background:
      linear-gradient(135deg, rgba(17, 10, 38, .92), rgba(5, 10, 27, .84) 48%, rgba(18, 7, 38, .92)) !important;
    box-shadow:
      0 34px 120px rgba(0, 0, 0, .72),
      inset 0 1px 0 rgba(255, 255, 255, .18),
      inset 0 -1px 0 rgba(141, 92, 255, .22),
      0 0 0 1px rgba(141, 92, 255, .26),
      0 0 68px rgba(141, 92, 255, .28),
      0 0 110px rgba(76, 201, 240, .12) !important;
    backdrop-filter: blur(14px) saturate(1.35);
    -webkit-backdrop-filter: blur(14px) saturate(1.35);
    animation: acb-ultimate-grand-card var(--acb-ultimate-duration, 2000ms) cubic-bezier(.14,.76,.2,1) forwards;
}
.acb-ultimate-overlay .acb-ultimate-card::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(216, 194, 255, .13);
    border-radius: inherit;
    pointer-events: none;
}
.acb-ultimate-overlay .acb-ultimate-kicker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(9px, 1.4vw, 18px);
    margin: 0 0 12px;
    color: rgba(231, 223, 255, .84);
    font-size: clamp(9px, 1.15vw, 12px);
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: .3em;
    text-transform: uppercase;
}
.acb-ultimate-overlay .acb-ultimate-kicker-mark {
    color: #ddcaff;
    font-size: 1.15em;
    text-shadow: 0 0 14px rgba(194, 149, 255, .9);
}
.acb-ultimate-overlay .acb-ultimate-character {
    display: block;
    margin-bottom: 8px;
    color: rgba(108, 222, 255, .96);
    font-size: clamp(10px, 1.25vw, 14px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(76, 201, 240, .35);
    overflow-wrap: anywhere;
}
.acb-ultimate-overlay .acb-ultimate-title {
    display: block;
    color: #fff9ff;
    font-size: clamp(30px, 5vw, 76px) !important;
    line-height: .98 !important;
    font-weight: 950;
    letter-spacing: .045em;
    text-transform: uppercase;
    text-wrap: balance;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 0 rgba(33, 16, 68, .9), 0 0 18px rgba(255, 255, 255, .30), 0 0 48px rgba(180, 139, 255, .56);
}
.acb-ultimate-overlay .acb-ultimate-copy {
    display: block;
    margin-top: 13px;
    color: rgba(233, 231, 255, .86);
    font-size: clamp(11px, 1.35vw, 15px);
    line-height: 1.5;
    letter-spacing: .06em;
}
.acb-ultimate-overlay .acb-ultimate-seal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: clamp(13px, 2vh, 22px);
    color: rgba(211, 195, 255, .72);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .24em;
}
.acb-ultimate-overlay .acb-ultimate-seal i {
    display: block;
    width: clamp(26px, 7vw, 92px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(188, 158, 255, .62));
}
.acb-ultimate-overlay .acb-ultimate-seal i:last-child {
    transform: scaleX(-1);
}
.acb-ultimate-overlay .acb-ultimate-seal b {
    padding: 0 5px;
    color: rgba(116, 224, 255, .95);
    font-size: 1.1em;
}
@keyframes acb-ultimate-cinematic-reveal {
    0% { opacity: 0; transform: scale(.88); filter: brightness(.62) saturate(.8) drop-shadow(0 0 0 rgba(141,92,255,0)); }
    20% { opacity: 1; }
    58% { opacity: .98; transform: scale(1.025); filter: brightness(1.12) saturate(1.3) drop-shadow(0 0 32px rgba(141,92,255,.48)) drop-shadow(0 0 70px rgba(76,201,240,.20)); }
    100% { opacity: .92; transform: scale(1.015); }
}
@keyframes acb-ultimate-grand-card {
    0% { opacity: 0; transform: translateY(38px) scale(.94); filter: blur(8px); }
    30% { opacity: 1; filter: blur(0); }
    58% { transform: translateY(-3px) scale(1.006); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes acb-ultimate-halo-pulse {
    0% { opacity: 0; transform: scale(.72) rotate(-18deg); }
    35% { opacity: .9; }
    100% { opacity: .48; transform: scale(1.08) rotate(14deg); }
}
@media (max-width: 760px) {
    .acb-ultimate-overlay {
        padding-top: max(14px, env(safe-area-inset-top, 0px)) !important;
        padding-bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 18px)) !important;
    }
    .acb-ultimate-overlay .acb-ultimate-cinematic-media {
        object-fit: contain !important;
        filter: saturate(1.18) contrast(1.04) drop-shadow(0 0 26px rgba(141, 92, 255, .42));
    }
    .acb-ultimate-overlay .acb-ultimate-card {
        width: calc(100vw - 24px) !important;
        max-width: 680px !important;
        padding: 21px 17px 18px !important;
        border-radius: 22px !important;
    }
    .acb-ultimate-overlay .acb-ultimate-kicker {
        gap: 8px;
        margin-bottom: 10px;
        letter-spacing: .18em;
    }
    .acb-ultimate-overlay .acb-ultimate-title {
        font-size: clamp(25px, 7.2vw, 42px) !important;
        line-height: 1.02 !important;
    }
    .acb-ultimate-overlay .acb-ultimate-copy {
        margin-top: 9px;
        font-size: 11px;
        letter-spacing: .025em;
    }
    .acb-ultimate-overlay .acb-ultimate-seal {
        gap: 7px;
        margin-top: 12px;
        font-size: 8px;
        letter-spacing: .15em;
    }
}
@media (orientation: landscape) and (max-height: 560px) {
    .acb-ultimate-overlay {
        padding-bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 12px)) !important;
    }
    .acb-ultimate-overlay .acb-ultimate-card {
        width: min(88vw, 1050px) !important;
        padding: 12px 30px !important;
        border-radius: 18px !important;
    }
    .acb-ultimate-overlay .acb-ultimate-kicker { margin-bottom: 5px; }
    .acb-ultimate-overlay .acb-ultimate-character { margin-bottom: 4px; }
    .acb-ultimate-overlay .acb-ultimate-title { font-size: clamp(24px, 5.4vh, 42px) !important; }
    .acb-ultimate-overlay .acb-ultimate-copy { margin-top: 6px; }
    .acb-ultimate-overlay .acb-ultimate-seal { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .acb-ultimate-overlay .acb-ultimate-cinematic-media,
    .acb-ultimate-overlay .acb-ultimate-card,
    .acb-ultimate-overlay .acb-ultimate-cinematic-halo {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
    }
}
