@font-face {
    font-family: 'Domain Serif';
    src: url('domain-title.woff2') format('woff2');
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

body.zjl-domain {
    margin: 0;
    background: #100d15;
    color-scheme: dark;
    --zjl-toolbar: 0px;
}

body.zjl-domain.admin-bar { --zjl-toolbar: 32px; }

.zjl {
    --ink: #100d15;
    --edge: #493148;
    --paper: #f7eff8;
    --muted: #c9b9d2;
    --red: #ff8891;
    --lavender: #c5a2ff;
    --nav-top: clamp(10px, 2vh, 20px);
    --nav-height: 50px;
    --serif: 'Domain Serif', 'Songti SC', 'Noto Serif CJK SC', 'SimSun', serif;
    --glass: linear-gradient(153deg, #f0ddff24, #bda6d009 36%, #2823330d 76%), #110c1b50;
    --glass-filter: blur(10px) saturate(1.15) brightness(.73);
    --glass-shadow: 0 9px 24px #0b061743, inset 0 1px #f2d8ff33;
    --tracking-copy: .075em;
    --tracking-label: .11em;
    --tracking-number: .055em;
    font: 15px/1.55 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
    letter-spacing: var(--tracking-copy);
    color: var(--paper);
    background: var(--ink);
    overflow: clip;
    min-height: calc(100svh - var(--zjl-toolbar));
}

.zjl *, .zjl *::before, .zjl *::after { box-sizing: border-box; }
.zjl [hidden] { display: none !important; }
.zjl :where(h1, h2, h3, p, dl, dd, ol, ul) { margin: 0; }
.zjl :where(a) { color: inherit; text-decoration: none; }
.zjl :where(button) { font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
.zjl :focus-visible { outline: 2px solid var(--lavender); outline-offset: 4px; }
.zjl .zjl-shell { width: min(1176px, calc(100% - 72px)); margin-inline: auto; }

.zjl-header, .zjl-modes, .zjl-panel, .zjl-ticker {
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
    box-shadow: var(--glass-shadow);
    text-shadow: 0 1px 4px #090410e0;
}

.zjl-skip { position: fixed; top: calc(var(--zjl-toolbar) + 12px); left: 12px; z-index: 10; transform: translateY(-200px); background: #37264a; padding: 10px 16px; }
.zjl-skip:focus { transform: none; }
.zjl-header {
    position: fixed;
    z-index: 5;
    top: calc(var(--zjl-toolbar) + var(--nav-top));
    left: 50%;
    transform: translateX(-50%);
    width: min(1176px, calc(100% - 58px));
    border: 1px solid #cba6e657;
    border-radius: 12px;
}
.zjl .zjl-header .zjl-header-inner { width: 100%; padding-inline: 15px; display: flex; min-height: var(--nav-height); align-items: center; justify-content: space-between; gap: 14px; }
.zjl-brand { display: inline-flex; gap: 13px; align-items: center; white-space: nowrap; }
.zjl-sigil { display: grid; place-items: center; width: 31px; height: 31px; position: relative; }
.zjl-sigil::before, .zjl-sigil::after { position: absolute; content: ''; transform: rotate(45deg); }
.zjl-sigil::before { width: 22px; height: 22px; border: 1px solid #ff858e; background: #441925; box-shadow: 0 0 16px #f84d5940; }
.zjl-sigil::after { height: 18px; width: 7px; background: #ffd7d8; clip-path: polygon(42% 0, 100% 35%, 56% 57%, 61% 100%, 0 63%, 39% 38%); }
.zjl-brand-name { display: flex; flex-direction: column; gap: 3px; font: 900 20px/1 var(--serif); letter-spacing: .1em; }
.zjl-brand-name b { font: 700 9px/1 system-ui, sans-serif; letter-spacing: .16em; color: #cbb5cc; }
.zjl-nav { display: flex; align-items: center; font-size: 13px; }
.zjl-nav a { display: grid; place-items: center; min-height: 36px; padding-inline: 7px; color: #f4eaf6; }
.zjl-nav a:hover, .zjl-login-link:hover { color: var(--paper); }
.zjl-nav a:hover { text-shadow: 0 0 10px #ebb1fb; }

.zjl-domain-main { isolation: isolate; position: relative; }
.zjl-battlefield { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.zjl-battle-art { position: absolute; inset: 0; background: #180e22 url('domain-battle.webp') center 43% / cover no-repeat; transform: scale(1.015); transition: transform 1.1s cubic-bezier(.17,.82,.35,1); }
.zjl.is-drawing .zjl-battle-art { transform: scale(1.057); }
.zjl-battlefield::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #100a16 1%, #100a16da 13%, transparent 47%),
        radial-gradient(ellipse at 50% 56%, #0d07199c, transparent 63%);
}
.zjl-field-energy {
    position: absolute;
    inset: -12%;
    background: radial-gradient(ellipse at 19% 35%, #9c3dff77, transparent 38%),
        radial-gradient(ellipse at 79% 48%, #f92f426e, transparent 30%);
    mix-blend-mode: screen;
    animation: zjl-field 7s ease-in-out infinite alternate;
}
.zjl-battle-lightning {
    position: absolute;
    inset: -5%;
    mix-blend-mode: screen;
    background: url('domain-energy.webp') center / cover no-repeat;
    animation: zjl-lightning-drift 7s ease-in-out infinite alternate;
    transition: filter .65s;
}
.zjl.is-drawing .zjl-battle-lightning { filter: brightness(1.65) saturate(1.28); }
.zjl-embers { position: absolute; z-index: 1; inset: 0; }
.zjl-embers i {
    --spark: #b88dff;
    --spark-size: 3px;
    position: absolute;
    left: var(--spark-x);
    bottom: var(--spark-y);
    width: var(--spark-size);
    height: calc(var(--spark-size) * 2);
    border-radius: 50%;
    color: var(--spark);
    background: currentColor;
    box-shadow: 0 0 13px 2px currentColor;
    animation: zjl-ember var(--spark-time) var(--spark-delay) linear infinite;
}
.zjl-embers i:nth-child(1) { --spark-x: 4%; --spark-y: 2%; --spark-time: 6s; --spark-delay: -3s; }
.zjl-embers i:nth-child(2) { --spark-x: 11%; --spark-y: 34%; --spark-time: 9s; --spark-delay: -8s; }
.zjl-embers i:nth-child(3) { --spark-x: 19%; --spark-y: 6%; --spark-time: 7s; --spark-delay: -4s; }
.zjl-embers i:nth-child(4) { --spark-x: 24%; --spark-y: 50%; --spark-time: 10s; --spark-delay: -6s; }
.zjl-embers i:nth-child(5) { --spark-x: 29%; --spark-y: 20%; --spark-time: 8s; --spark-delay: -1s; }
.zjl-embers i:nth-child(6) { --spark-x: 38%; --spark-y: 6%; --spark-time: 7s; --spark-delay: -5s; }
.zjl-embers i:nth-child(n + 7) { --spark: #ff8293; }
.zjl-embers i:nth-child(7) { --spark-x: 61%; --spark-y: 8%; --spark-time: 8s; --spark-delay: -4s; }
.zjl-embers i:nth-child(8) { --spark-x: 68%; --spark-y: 57%; --spark-time: 7s; --spark-delay: -2s; }
.zjl-embers i:nth-child(9) { --spark-x: 74%; --spark-y: 21%; --spark-time: 9s; --spark-delay: -6s; }
.zjl-embers i:nth-child(10) { --spark-x: 86%; --spark-y: 12%; --spark-time: 8s; --spark-delay: -7s; }
.zjl-embers i:nth-child(11) { --spark-x: 91%; --spark-y: 37%; --spark-time: 10s; --spark-delay: -4s; }
.zjl-embers i:nth-child(12) { --spark-x: 97%; --spark-y: 16%; --spark-time: 6s; --spark-delay: -2s; }
.zjl-embers i:nth-child(3n) { --spark-size: 5px; }

.zjl-arena {
    --tile-height: clamp(112px, calc((100svh - var(--zjl-toolbar) - 276px) / 3), 147px);
    --stage-inset: 10px;
    --board-gap: 9px;
    --stage-height: calc(3 * var(--tile-height) + 2 * var(--stage-inset) + 2 * var(--board-gap) + 2px);
    min-height: calc(100svh - var(--zjl-toolbar));
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(0, min(40vw, 506px)) minmax(200px, 1fr);
    grid-template-rows: auto var(--stage-height) auto;
    grid-template-areas: ". modes ." "scene play side" ". status .";
    align-content: center;
    gap: 9px clamp(20px, 2.25vw, 32px);
    padding-block: calc(var(--nav-top) + var(--nav-height) + 20px) 30px;
}
.zjl-scene { grid-area: scene; display: grid; align-content: end; gap: 20px; min-width: 0; }
.zjl-compact-art { display: none; }
.zjl-intro-copy { position: relative; text-shadow: 0 3px 18px #080510, 0 1px 6px #080510; }
.zjl-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: #ffe0e9; font-size: 12px; font-weight: 750; letter-spacing: .12em; }
.zjl-eyebrow span { flex: 0 0 18px; height: 2px; background: var(--red); box-shadow: 0 0 12px #ff506e; }
.zjl .zjl-intro h1 { margin: 0; color: #fff4fd; font: 900 clamp(49px, 4.7vw, 78px)/1.08 var(--serif); letter-spacing: .035em; }
.zjl-intro h1 span { display: block; color: #dec0ff; }

.zjl-modes {
    --tab-inset: 3px;
    --tab-gap: 3px;
    grid-area: modes;
    justify-self: end;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tab-gap);
    padding: var(--tab-inset);
    border: 1px solid #ad84ca7a;
    border-radius: 9px;
}
.zjl-mode-indicator {
    position: absolute;
    inset-block: var(--tab-inset);
    inset-inline-start: var(--tab-inset);
    width: calc((100% - 2 * var(--tab-inset) - var(--tab-gap)) / 2);
    border: 1px solid #c58ce6a8;
    border-radius: 5px;
    background: linear-gradient(125deg, #8455ad81, #95396861);
    box-shadow: inset 0 1px #ffe1ff36, 0 0 13px #bb72fa45;
    pointer-events: none;
    transition: inset-inline-start .48s cubic-bezier(.30,.80,.34,1.18);
}
.zjl-mode[aria-selected="true"] + .zjl-mode-indicator { inset-inline-start: calc(50% + var(--tab-gap) / 2); }
.zjl-mode {
    position: relative;
    z-index: 1;
    min-height: 32px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #dbcee8;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: var(--tracking-label);
    white-space: nowrap;
    transition: background .18s, color .18s, transform .18s;
}
.zjl-mode[aria-selected="false"]:hover:not([aria-disabled="true"]) { background: #82509e58; color: #fff2ff; }
.zjl-mode:active:not([aria-disabled="true"]) { transform: scale(.94); }
.zjl-mode[aria-selected="true"] { color: #fff3ff; }
.zjl-mode[aria-disabled="true"] { cursor: default; }
.zjl-mode:focus-visible { outline-offset: 2px; }

.zjl-stage {
    --corner-size: clamp(68px, 6.6vw, 96px);
    grid-area: play;
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: var(--stage-inset);
    border: 1px solid #80559a;
    border-radius: 8px;
    background: linear-gradient(135deg, #241331, #100b18 45%, #29131e);
    box-shadow: 0 16px 65px #060210b0, inset 0 0 26px #8f408e35;
    scroll-margin-top: calc(var(--zjl-toolbar) + var(--nav-height) + var(--nav-top) + 18px);
}
.zjl-stage::before {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    background: radial-gradient(135px at var(--pointer-x, 50%) var(--pointer-y, 50%), #ce86ff6d, transparent 100%);
    transition: opacity .22s;
}
@media (hover: hover) and (pointer: fine) {
    .zjl-stage:hover::before { opacity: .78; }
}
.zjl-stage-edge {
    position: absolute;
    inset: -2px;
    pointer-events: none;
    border: 1px solid transparent;
    border-radius: inherit;
    background: linear-gradient(133deg, #ddacff, transparent 38%, #ff7588 73%, #c778ff) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: zjl-aura 2.8s ease-in-out infinite alternate;
}
.zjl-stage-seals { position: absolute; inset: 0; pointer-events: none; }
.zjl-corner {
    position: absolute;
    width: var(--corner-size);
    height: var(--corner-size);
    background: url('domain-corners.webp') 0 0 / 200% 200% no-repeat;
    filter: drop-shadow(0 0 9px #9b53dc88);
}
.zjl-corner-tl { left: -24px; top: -24px; }
.zjl-corner-tr { right: -24px; top: -24px; background-position: 100% 0; filter: drop-shadow(0 0 9px #c2425888); }
.zjl-corner-bl { left: -25px; bottom: -25px; background-position: 0 100%; }
.zjl-corner-br { right: -25px; bottom: -25px; background-position: 100% 100%; filter: drop-shadow(0 0 9px #c2425888); }
.zjl-board { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: var(--tile-height); gap: var(--board-gap); }
.zjl-prize, .zjl-center { min-width: 0; position: relative; }
.zjl-center { display: flex; }
.zjl-prize {
    isolation: isolate;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    overflow: hidden;
    padding: 7px 8px 9px;
    border-radius: 5px;
    border: 1px solid #593e69;
    background: radial-gradient(ellipse at 50% 42%, var(--glow), #17111f 72%);
    transition: border-color .16s, box-shadow .16s, transform .16s;
}
.zjl [data-zjl-slot="1"] { --art-x: 0%; --art-y: 0%; --glow: #482968; --slot-color: #e2bcff; }
.zjl [data-zjl-slot="2"] { --art-x: 50%; --art-y: 0%; --glow: #173650; --slot-color: #a8e1ff; }
.zjl [data-zjl-slot="3"] { --art-x: 100%; --art-y: 0%; --glow: #493323; --slot-color: #ffda9c; }
.zjl [data-zjl-slot="4"] { --art-x: 100%; --art-y: 50%; --glow: #342457; --slot-color: #dfbeff; }
.zjl [data-zjl-slot="5"] { --art-x: 100%; --art-y: 100%; --glow: #4b204a; --slot-color: #ffc1f2; }
.zjl [data-zjl-slot="6"] { --art-x: 50%; --art-y: 100%; --glow: #502230; --slot-color: #ffc3be; }
.zjl [data-zjl-slot="7"] { --art-x: 0%; --art-y: 100%; --glow: #3f2b36; --slot-color: #e4c6be; }
.zjl [data-zjl-slot="8"] { --art-x: 0%; --art-y: 50%; --glow: #342037; --slot-color: #deb0d8; }
.zjl-prize-art::before, .zjl-result-art::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('cursed-relics.webp') var(--art-x) var(--art-y) / 300% 300% no-repeat;
    mask-image: radial-gradient(ellipse at center, #000 46%, #000e 60%, transparent 75%);
    mix-blend-mode: screen;
}
.zjl-prize-visual { position: relative; overflow: clip; }
.zjl-prize-art {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    transition: transform .22s;
}
.zjl-prize-art img, .zjl-result-art img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
    opacity: 0;
}
.zjl-prize-art.has-image::before, .zjl-result-art.has-image::before { display: none; }
.zjl-prize-art.has-image img, .zjl-result-art.has-image img { opacity: 1; }
.zjl-prize::after { content: ''; z-index: -1; position: absolute; inset: 40% 0 0; background: linear-gradient(0deg, #130e1b 8%, #130e1bcb 48%, transparent 94%); }
.zjl-prize-badge {
    position: absolute;
    z-index: 1;
    inset: 0 0 auto auto;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 7px;
    border: 1px solid #dbc0ff8c;
    border-radius: 4px;
    background: linear-gradient(115deg, #3d2358, #241731 78%);
    color: #f4e6ff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: var(--tracking-copy);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.zjl-prize-caption { display: grid; justify-items: center; gap: 6px; text-align: center; line-height: 1.38; }
.zjl-prize-caption strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 16px; letter-spacing: var(--tracking-label); }
.zjl-prize-caption span { color: var(--slot-color); font-size: 13px; letter-spacing: var(--tracking-copy); overflow-wrap: anywhere; }
.zjl-prize:hover { border-color: #bb8ae3; box-shadow: inset 0 0 22px #b47afa48; }
.zjl-prize.is-active { z-index: 2; border-color: #ffe0f4; transform: scale(1.035); box-shadow: inset 0 0 32px #dc8ffc9e, 0 0 23px #ba68ff9c; }
.zjl-prize:hover .zjl-prize-art, .zjl-prize.is-active .zjl-prize-art { transform: translate(-50%, -50%) scale(1.08); }
.zjl-prize.is-winner { z-index: 2; border-color: #fff0fd; box-shadow: inset 0 0 32px #f28bff9d, 0 0 30px #e379ffb2; animation: zjl-winner .74s cubic-bezier(.2,.75,.2,1) both; }

.zjl-draw {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    padding: 7px 4px;
    border: 1px solid #c2758d;
    border-radius: 5px;
    color: #fff3ee;
    text-align: center;
    text-shadow: 0 1px 4px #120813;
    background: radial-gradient(ellipse at 50% 32%, #792940, transparent 74%),
        radial-gradient(ellipse at 96% 0%, #572950, transparent 56%),
        linear-gradient(155deg, #2e172c, #1a0e1d 62%, #371222);
    box-shadow: inset 0 1px #ffd4dc35, inset 0 0 19px #ff748621, 0 0 14px #cb476539;
    transition: box-shadow .18s, border-color .18s, transform .18s;
}
.zjl-draw::before {
    position: absolute;
    z-index: -1;
    inset: 4px;
    border: 1px solid #f8a9bb40;
    border-radius: 2px;
    mask-image: linear-gradient(135deg, #fff, transparent 37%, transparent 63%, #fff);
    content: '';
    pointer-events: none;
}
.zjl-draw::after {
    position: absolute;
    inset: auto 22% 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffb3c8, transparent);
    box-shadow: 0 0 8px #ff82a980;
    content: '';
    pointer-events: none;
}
.zjl-draw:focus-visible, .zjl.is-drawing .zjl-draw {
    border-color: #ffd1dd;
    box-shadow: inset 0 0 28px #ff6a8954, 0 0 23px #fe6b8066;
}
@media (hover: hover) and (pointer: fine) {
    .zjl:not(.is-drawing) .zjl-draw:hover:not(:disabled),
    .zjl:not(.is-drawing) .zjl-draw:hover:not(:disabled) .zjl-draw-seal { animation: none; }
    .zjl-draw:hover:not(:disabled) {
        border-color: #ffd1dd;
        box-shadow: inset 0 0 28px #ff6a8954, 0 0 23px #fe6b8066;
    }
    .zjl-draw:hover:not(:disabled) .zjl-draw-seal { transform: scale(1.08); }
}
.zjl-draw:active:not(:disabled) { transform: scale(.96); }
.zjl-draw:disabled { cursor: default; opacity: .72; }
.zjl:not(.is-drawing) .zjl-draw:not(:disabled) { animation: zjl-draw-invite 2.8s ease-in-out infinite; }
.zjl:not(.is-drawing) .zjl-draw:focus-visible { animation: none; }
.zjl-draw strong { font-size: clamp(16px, 1.55vw, 22px); letter-spacing: var(--tracking-label); line-height: 1.22; }
.zjl-draw-cost {
    max-width: 100%;
    padding: 1px 5px;
    border: 1px solid #ff9db546;
    border-radius: 4px;
    background: #1a0d1ac9;
    color: #ffdee6;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.zjl-draw-seal {
    flex: none;
    width: clamp(50px, calc(var(--tile-height) - 61px), 74px);
    max-width: 100%;
    aspect-ratio: 1;
    background: url('domain-activation-sigil.webp') center / contain no-repeat;
    filter: drop-shadow(0 0 7px #ff5b7866);
    transition: transform .2s ease-out, filter .2s ease-out;
}
.zjl:not(.is-drawing) .zjl-draw:not(:disabled) .zjl-draw-seal { animation: zjl-draw-seal-invite 2.8s ease-in-out infinite; }
.zjl.is-drawing .zjl-draw { opacity: 1; }
.zjl.is-drawing .zjl-draw-seal { filter: drop-shadow(0 0 12px #ff759ace); animation: zjl-seal-awaken .52s ease-in-out infinite alternate; }

.zjl-stage:has(.zjl-blind:not([hidden])) {
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
}
.zjl-blind {
    position: relative;
    z-index: 1;
    isolation: isolate;
    display: grid;
    align-content: center;
    gap: clamp(23px, 3.8vh, 33px);
    height: 100%;
    padding: clamp(9px, 2.3vw, 24px);
    overflow: hidden;
    border: 1px solid #a983bb5e;
    border-radius: 5px;
    background: radial-gradient(ellipse at 49% 48%, #170a265e, #0b07167d);
}
.zjl-blind::before, .zjl-blind::after {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
}
.zjl-blind::before {
    inset: -4%;
    background: url('domain-energy.webp') center / cover no-repeat;
    mix-blend-mode: screen;
    opacity: .68;
    animation: zjl-lightning-drift 7s ease-in-out infinite alternate;
}
.zjl-blind::after {
    inset: -6% 0;
    background: url('binding-circle.webp') center / min(100%, 456px) auto no-repeat;
    opacity: .87;
    animation: zjl-array-drift 7.8s ease-in-out infinite alternate;
    transition: filter .25s;
}
.zjl-blind:has(.zjl-box.is-charging, .zjl-box-row.is-shuffling)::after { filter: brightness(1.65) drop-shadow(0 0 13px #cc86ff82); }
.zjl-box-row { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: clamp(6px, 1.3vw, 14px); }
.zjl-box {
    --box-glow: #c18aff;
    --box-tone: #572b82;
    --box-delay: -.4s;
    --box-y: -4px;
    --box-column: 0%;
    position: relative;
    isolation: isolate;
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 9px;
    min-width: 0;
    padding: 7px 6px 12px;
    border: 1px solid color-mix(in srgb, var(--box-glow) 39%, transparent);
    border-radius: 7px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--box-tone) 57%, transparent), #0d0816a1);
    color: #fff1ff;
    text-shadow: 0 1px 4px #12071e;
    box-shadow: 0 9px 21px #0704108e, inset 0 1px #eed2ff37;
    transform: translateY(var(--box-y));
    transition: transform .26s, box-shadow .25s, border-color .25s, opacity .25s;
}
.zjl-box[data-zjl-box="2"] { --box-glow: #ffae85; --box-tone: #824038; --box-delay: -1.53s; --box-y: 15px; --box-column: 50%; }
.zjl-box[data-zjl-box="3"] { --box-glow: #85e6ff; --box-tone: #264a69; --box-delay: -2.63s; --box-column: 100%; }
.zjl-box::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid #edd9ff25;
    border-radius: 4px;
    pointer-events: none;
}
.zjl-box:is(:disabled, [aria-disabled="true"]) { cursor: default; }
.zjl-box-row.is-shuffling .zjl-box { pointer-events: none; transition: none; }
.zjl-box:hover:not(:disabled, [aria-disabled="true"]), .zjl-box:focus-visible:not([aria-disabled="true"]) {
    z-index: 1;
    transform: translateY(calc(var(--box-y) - 8px)) scale(1.045);
    border-color: var(--box-glow);
    box-shadow: 0 10px 27px color-mix(in srgb, var(--box-tone) 70%, transparent), inset 0 0 22px color-mix(in srgb, var(--box-glow) 32%, transparent);
}
.zjl-box:active:not(:disabled, [aria-disabled="true"]) { transform: translateY(var(--box-y)) scale(.94); }
.zjl-box-visual {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    aspect-ratio: 1;
}
.zjl-box-visual::before, .zjl-box-visual::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }
.zjl-box-visual::before {
    inset: 71% 4% -1%;
    border: 1px dashed var(--box-glow);
    border-radius: 50%;
    box-shadow: 0 0 13px var(--box-glow), inset 0 0 16px var(--box-glow);
    opacity: .64;
    animation: zjl-seal-pulse 3s var(--box-delay) ease-in-out infinite alternate;
}
.zjl-box-visual::after {
    inset: 14% -10% -12%;
    background: radial-gradient(ellipse at 50% 82%, var(--box-glow), transparent 64%);
    opacity: .26;
    transition: opacity .25s;
}
.zjl-box:hover:not(:disabled, [aria-disabled="true"]) .zjl-box-visual::after, .zjl-box:focus-visible:not([aria-disabled="true"]) .zjl-box-visual::after { opacity: .62; }
.zjl-box-sprites {
    position: absolute;
    inset: -7%;
    animation: zjl-box-hover 3.6s var(--box-delay) ease-in-out infinite;
}
.zjl-box-closed, .zjl-box-open {
    position: absolute;
    inset: 0;
    background: url('sealed-shrines.webp') var(--box-column) 0 / 300% 200% no-repeat;
    transition: opacity .19s, transform .26s, filter .26s;
}
.zjl-box-open { background-position-y: 100%; opacity: 0; }
.zjl-box:hover:not(:disabled, [aria-disabled="true"]) .zjl-box-closed, .zjl-box:focus-visible:not([aria-disabled="true"]) .zjl-box-closed {
    transform: perspective(360px) rotateX(var(--box-tilt-x, 0deg)) rotateY(var(--box-tilt-y, 0deg)) scale(1.12);
    filter: drop-shadow(0 0 9px var(--box-glow));
}
.zjl-box.is-open .zjl-box-closed { opacity: 0; }
.zjl-box.is-open .zjl-box-open { opacity: 1; animation: zjl-box-reveal .58s cubic-bezier(.16,.72,.19,1) both; }
.zjl-box.is-charging, .zjl-box.is-open {
    z-index: 1;
    border-color: var(--box-glow);
    box-shadow: 0 0 32px var(--box-tone), inset 0 0 22px color-mix(in srgb, var(--box-glow) 40%, transparent);
}
.zjl-box.is-charging .zjl-box-sprites { animation: zjl-box-charge .45s ease-in-out infinite; }
.zjl-box.is-charging .zjl-box-visual::before { animation-duration: .42s; }
.zjl-box.is-open .zjl-box-sprites { animation: none; }
.zjl-blind:has(.zjl-box:is(.is-charging, .is-open)) .zjl-box:not(.is-charging, .is-open) {
    opacity: .44;
    transform: translateY(calc(var(--box-y) + 4px)) scale(.94);
}
.zjl-box-label { font-size: clamp(12px, 1.13vw, 14px); font-weight: 780; letter-spacing: var(--tracking-label); line-height: 1.38; text-align: center; overflow-wrap: anywhere; }
.zjl-card-back {
    position: absolute;
    border: 1px solid #e9c4ffb5;
    border-radius: 7px;
    background: url('shuffle-card.webp') center / 100% 100% no-repeat, radial-gradient(ellipse, #8a59aa 3%, #2a1240 31%, #201030 64%);
    box-shadow: 0 2px #160b20, 0 8px 15px #0a0519ac, 0 0 12px #a06be65c;
    opacity: 0;
    pointer-events: none;
}
.zjl-box-back { inset: -1px; z-index: 2; }
.zjl-shuffle-deck { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.zjl-shuffle-deck .zjl-card-back { left: 50%; top: 50%; width: clamp(56px, 24%, 108px); aspect-ratio: 2 / 3; }
.zjl-shuffle-deck::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 80%;
    height: 72%;
    border: 1px solid #eac8ffb8;
    border-radius: 50%;
    background: radial-gradient(ellipse, #bc61ff45, transparent 73%);
    box-shadow: 0 0 22px #b175fa7a, inset 0 0 15px #a263ff82;
    opacity: 0;
}
.zjl-box-row.is-shuffling .zjl-shuffle-deck::before { animation: zjl-shuffle-ring 1.51s ease-out both; }
.zjl-blind-cost { justify-self: center; padding: 3px 10px; background: #150c226c; border: 1px solid #dbc4ef31; border-radius: 4px; color: #f1e4fd; font-size: 13px; letter-spacing: var(--tracking-copy); text-align: center; text-shadow: 0 1px 4px #140625; }

.zjl-sidebar { grid-area: side; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; min-width: 0; min-height: 0; width: min(100%, 282px); }
.zjl-panel {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e9d6ff63;
    border-radius: 10px;
}
.zjl-panel-title { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.zjl .zjl-panel-title :is(h2, h3) { font-size: 15px; font-weight: 760; letter-spacing: var(--tracking-label); line-height: 1.4; }
.zjl-panel-symbol { color: var(--red); font-size: 18px; line-height: 1; }
.zjl-vouchers-open { margin-left: auto; white-space: nowrap; flex-shrink: 0; padding: 4px 7px; color: #f3ddff; font-size: 12px; border: 1px solid #dac6eb7a; border-radius: 5px; background: #3e2a5259; }
.zjl-vouchers-open:hover { background: #80449792; }
.zjl-wallet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.zjl-wallet > div { background: #130b1e3d; border: 1px solid #d5b9e54d; border-radius: 6px; padding: 7px 9px; }
.zjl-wallet dt { color: var(--muted); font-size: 13px; letter-spacing: var(--tracking-label); }
.zjl-wallet dd { margin-top: 5px; font-size: clamp(17px, 1.45vw, 21px); font-weight: 820; color: #f5dfff; line-height: 1.3; letter-spacing: var(--tracking-number); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.zjl-login-link { display: flex; justify-content: space-between; border-top: 1px solid #c299e33d; color: var(--lavender); font-size: 13px; margin-top: 9px; padding-top: 8px; }
.zjl-history-empty { color: var(--muted); font-size: 14px; line-height: 1.65; }
.zjl-log { display: flex; min-height: 0; flex-direction: column; }
.zjl-log .zjl-panel-title { flex-shrink: 0; }
.zjl-history { padding: 0; min-height: 0; overflow: auto; scrollbar-color: #b891cb9c transparent; scrollbar-width: thin; list-style: none; }
.zjl-history li { display: flex; align-items: center; justify-content: space-between; gap: 11px; padding-block: 7px; border-top: 1px solid #c299e33d; font-size: 13px; letter-spacing: var(--tracking-copy); }
.zjl-history li div { min-width: 0; }
.zjl-history strong, .zjl-history time { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zjl-history strong { font-size: 14px; line-height: 1.5; letter-spacing: var(--tracking-label); }
.zjl-history time, .zjl-voucher-heading time { margin-top: 4px; font-size: 12px; line-height: 1.38; color: var(--muted); letter-spacing: var(--tracking-number); }
.zjl-log-reward, .zjl-log-miss { flex-shrink: 0; max-width: 45%; text-align: end; overflow-wrap: anywhere; }
.zjl-log-reward { color: #dfb9ff; }
.zjl-log-miss { color: var(--muted); }
.zjl-recent { width: min(100%, 282px); }
.zjl-recent .zjl-panel-title { margin-bottom: 9px; }
.zjl-recent-list { min-width: 0; padding: 0; list-style: none; }
.zjl-recent-list li { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: 6px; padding-block: 7px; border-top: 1px solid #c299e335; font-size: 13px; line-height: 1.5; letter-spacing: 0; white-space: nowrap; }
.zjl-ticker-detail, .zjl-recent-prize { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; }
.zjl-recent-prize { align-items: center; }
:is(.zjl-ticker-detail, .zjl-recent-prize) > :is(strong, span) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.zjl-recent-list strong { color: #f4deff; }
.zjl-recent-prize .zjl-win-reward { margin-inline-start: auto; text-align: end; }
.zjl-recent-list li > span, .zjl-recent-list time { color: #dcc4df; font-variant-numeric: tabular-nums; }
.zjl-recent-list time { font-size: 12px; }
.zjl-win-reward { max-width: 100%; overflow-wrap: anywhere; color: #dfb9ff; font-variant-numeric: tabular-nums; }
:is(.zjl-ticker-detail, .zjl-recent-prize) > .zjl-win-reward { flex: none; max-width: calc(100% - 30px); }
.zjl-win-reward.is-combined { font-size: 11px; }
:is(.zjl-ticker-detail, .zjl-recent-prize) > .zjl-win-reward.is-combined { max-width: calc(100% - 22px); }
.zjl-board-status { grid-area: status; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px 9px; }
.zjl-guarantee { display: grid; justify-items: center; gap: 5px; width: 100%; padding: 3px 0 4px; color: #ecd4fc; text-align: center; text-shadow: 0 1px 5px #100613; font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.zjl-guarantee progress { width: min(180px, 75%); height: 6px; accent-color: #c5a2ff; }
.zjl-guarantee.is-ready { color: #ffe0ab; }
.zjl-guarantee.is-ready progress { accent-color: #ffbf78; }
.zjl-status { color: #ffd3dc; text-align: center; font-size: 13px; text-shadow: 0 1px 5px #100613, 0 0 12px #100613; }
.zjl-recharge { padding: 6px 12px; border: 1px solid #b994dc; border-radius: 5px; background: #623b87; color: #fff3ff; font-size: 13px; font-weight: 700; }
.zjl-recharge:hover { background: #7e4aaa; }
.zjl-ticker {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 79px;
    padding: 11px 22px;
    border: 1px solid #cfb8ef7a;
    border-radius: 9px;
}
.zjl-ticker::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -5px;
    border: solid transparent;
    border-width: 26px 31px;
    border-image: url('broadcast-frame.webp') 130 150 stretch;
    filter: drop-shadow(0 0 6px #9665eaa6);
    pointer-events: none;
}
.zjl-ticker-label { display: flex; align-items: center; gap: 9px; color: #ffcad7; font-size: 13px; font-weight: 750; letter-spacing: var(--tracking-label); }
.zjl-ticker-label i { width: 7px; height: 7px; border-radius: 50%; background: #ffa0c4; box-shadow: 0 0 11px #f86caa; animation: zjl-signal 1.9s ease-out infinite; }
.zjl-ticker-message {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    color: #f7e6ff;
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0;
    white-space: nowrap;
}
.zjl-ticker-detail { flex: 1; }

.zjl-dialog {
    width: min(408px, calc(100% - 34px));
    max-height: calc(100% - 32px);
    color: var(--paper);
    padding: 0;
    border: 1px solid #bea7d588;
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
    border-radius: 9px;
    box-shadow: 0 22px 76px #050109ac;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    transform: scale(.88);
    transition: opacity .22s ease-in, transform .22s ease-in;
}
.zjl-dialog.is-visible { opacity: 1; transform: scale(1); transition: opacity .25s ease-out, transform .36s cubic-bezier(.22,.74,.32,1.18); }
.zjl-dialog::backdrop { background: #0a051570; opacity: 0; transition: opacity .22s ease; }
.zjl-dialog.is-visible::backdrop { opacity: 1; transition-duration: .25s; }
.zjl-dialog-inner { position: relative; padding: 24px; }
.zjl-dialog-close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; background: #291c34; border: 1px solid #594166; border-radius: 50%; font-size: 18px; line-height: 1; }
.zjl-dialog-close:hover { background: #483254; }
.zjl-dialog h2 { font-size: 24px; overflow-wrap: anywhere; padding-inline-end: 22px; letter-spacing: var(--tracking-label); }
.zjl-dialog ul { margin-top: 18px; padding-left: 20px; color: #e2d2e9; line-height: 1.7; }
.zjl-dialog li + li { margin-top: 12px; }
.zjl-result { text-align: center; }
.zjl-result .zjl-dialog-inner { background: radial-gradient(ellipse at 50% 21%, #7648a29c 0%, #35204c5e 42%, transparent 72%); }
.zjl-result.is-miss .zjl-dialog-inner { background: radial-gradient(ellipse at 50% 21%, #64447c71 0%, #26183353 42%, transparent 72%); }
.zjl-result-art { position: relative; width: 116px; height: 116px; margin: -7px auto 7px; }
.zjl-result-art[data-zjl-slot="0"]::before { background: url('domain-activation-sigil.webp') center / contain no-repeat; }
.zjl-result-kicker { color: var(--red); font-weight: 850; letter-spacing: .22em; font-size: 13px; }
.zjl-result h2 { font-size: 27px; line-height: 1.34; margin: 9px 0 11px; padding: 0; }
.zjl-result[open]:not(.is-miss) .zjl-result-art { animation: zjl-reveal-prize .7s cubic-bezier(.15,.75,.23,1) both; }
.zjl-result-reward { color: #e2c2ff; font-size: 20px; font-weight: 800; letter-spacing: var(--tracking-copy); overflow-wrap: anywhere; }
.zjl-result-note { color: #d5c6de; font-size: 13px; margin-top: 9px; }
.zjl-result-note:empty { display: none; }
.zjl-result-confirm { border: 1px solid #b994dc; background: #623b87; padding: 9px 20px; border-radius: 3px; margin-top: 20px; font-weight: 700; }
.zjl-result-confirm:hover { background: #7e4aaa; }
.zjl-vouchers { scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #b891cb9c transparent; }
.zjl-voucher-status { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.zjl-voucher-status:not(:empty) { margin-top: 12px; }
.zjl-voucher-list { list-style: none; padding: 0; }
.zjl-voucher-list > li { border-top: 1px solid var(--edge); padding: 10px 0 4px; margin-top: 10px; }
.zjl-voucher-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; }
.zjl-voucher-heading strong { overflow-wrap: anywhere; }
.zjl-prize-delivery {
    display: grid;
    justify-items: start;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid #c59cdb57;
    border-radius: 6px;
    background: #1a1021a6;
    color: #f4e5fa;
    font-size: 14px;
    text-align: start;
    overflow-wrap: anywhere;
}
.zjl-prize-delivery > * { min-width: 0; max-width: 100%; }
.zjl-prize-delivery:not(:has(*)) { white-space: pre-line; }
.zjl-prize-delivery :is(ul, ol) { margin: 0; padding-inline-start: 1.35em; }
.zjl-prize-delivery li + li { margin-top: 4px; }
.zjl-prize-delivery :is(pre, blockquote) { margin: 0; }
.zjl-prize-delivery pre { white-space: pre-wrap; }
.zjl-prize-delivery img { max-width: 100%; height: auto; }
.zjl-prize-delivery a[href] { color: #f2dbff; text-decoration: underline; text-underline-offset: .2em; }
.zjl-prize-delivery > a[href], .zjl-prize-delivery a[href][download] {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    max-width: 100%;
    padding: 6px 12px;
    border: 1px solid #b994dc;
    border-radius: 4px;
    background: #623b87;
    font-weight: 700;
    text-decoration: none;
}
.zjl-prize-delivery > a[href]:hover, .zjl-prize-delivery a[href][download]:hover { background: #7e4aaa; }

.zjl-ignition {
    position: absolute;
    z-index: 3;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}
.zjl-ignition::before, .zjl-ignition::after {
    content: '';
    position: absolute;
    top: var(--ignite-y, 50%);
    left: var(--ignite-x, 50%);
    width: min(142px, 40%);
    aspect-ratio: 1;
    translate: -50% -50%;
    border: 2px solid #ffbad2;
    border-radius: 50%;
    box-shadow: 0 0 26px #ff779e, inset 0 0 20px #b161ed;
    opacity: 0;
}
.zjl-ignition::after { border-color: #dcbdff; box-shadow: 0 0 28px #bf60ff, inset 0 0 16px #bf60ff; }
.zjl.is-drawing .zjl-ignition::before { animation: zjl-ignite .85s cubic-bezier(.11,.64,.24,1) both; }
.zjl.is-drawing .zjl-ignition::after { animation: zjl-ignite 1s .14s cubic-bezier(.11,.64,.24,1) both; }
.zjl-impact { position: absolute; z-index: 4; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; visibility: hidden; }
.zjl-stage.is-impact .zjl-impact { visibility: visible; }
.zjl-stage.is-impact :is(.zjl-board, .zjl-blind) { animation: zjl-shock .62s both; }
.zjl-impact::before {
    position: absolute;
    content: '';
    inset: 0;
    background: radial-gradient(ellipse at var(--hit-x) var(--hit-y), #f8eaff 0%, var(--impact-color) 22%, transparent 67%);
    opacity: 0;
}
.zjl-stage.is-impact .zjl-impact::before { animation: zjl-flash .52s ease-out both; }
.zjl-impact-burst, .zjl-impact-waves { position: absolute; top: var(--hit-y, 50%); left: var(--hit-x, 50%); translate: -50% -50%; aspect-ratio: 1; }
.zjl-impact-burst { width: min(104%, 510px); background: url('black-flash.webp') center / contain no-repeat; opacity: 0; }
.zjl-stage.is-impact .zjl-impact-burst { animation: zjl-black-flash .81s cubic-bezier(.12,.63,.23,1) both; }
.zjl-impact-waves { width: 49px; }
.zjl-impact-waves::before, .zjl-impact-waves::after {
    position: absolute;
    inset: 0;
    content: '';
    border: 2px solid #ffe7ff;
    border-radius: 50%;
    box-shadow: 0 0 33px var(--impact-color);
    opacity: 0;
}
.zjl-impact-waves::after { border: 1px solid var(--impact-color); }
.zjl-stage.is-impact .zjl-impact-waves::before { animation: zjl-wave .66s cubic-bezier(.08,.6,.2,1) both; }
.zjl-stage.is-impact .zjl-impact-waves::after { animation: zjl-wave .67s .1s cubic-bezier(.08,.6,.2,1) both; }
.zjl-impact i {
    position: absolute;
    top: var(--hit-y);
    left: var(--hit-x);
    width: 13px;
    height: 4px;
    clip-path: polygon(0 50%, 31% 2%, 100% 42%, 61% 100%);
    background: linear-gradient(90deg, transparent, var(--impact-color) 34%, #fff2ff 78%);
    opacity: 0;
    animation: zjl-particle .68s var(--delay) cubic-bezier(.08,.65,.2,1) both;
}
.zjl-impact i:nth-child(3n) { width: 25px; height: 6px; }
.zjl-impact i:nth-child(5n) { background: #ff9cae; }

@keyframes zjl-field { from { transform: translate(-3%, 1%) scale(1); opacity: .36; } to { transform: translate(3%, -2%) scale(1.12); opacity: .92; } }
@keyframes zjl-lightning-drift {
    0% { transform: translate(-1.6%, 1.8%) scale(1); opacity: .4; }
    57% { opacity: .88; }
    100% { transform: translate(2%, -1.8%) scale(1.16); opacity: .68; }
}
@keyframes zjl-ember {
    0% { opacity: 0; transform: translate(0, 0) rotate(32deg); }
    20% { opacity: .8; }
    67% { opacity: .58; }
    100% { opacity: 0; transform: translate(46px, -150px) rotate(53deg); }
}
@keyframes zjl-aura { from { opacity: .39; } to { opacity: .97; } }
@keyframes zjl-draw-invite {
    0%, 100% { border-color: #c2758d; box-shadow: inset 0 1px #ffd4dc35, inset 0 0 19px #ff748621, 0 0 14px #cb476539; }
    48% { border-color: #ffd0dd; box-shadow: inset 0 1px #ffe0e76b, inset 0 0 30px #ff718b67, 0 0 25px #ff68878c; }
}
@keyframes zjl-draw-seal-invite {
    0%, 100% { transform: scale(.96) rotate(-3deg); filter: drop-shadow(0 0 6px #ff5b7866); }
    48% { transform: scale(1.1) rotate(3deg); filter: drop-shadow(0 0 13px #ff829fce) brightness(1.2); }
}
@keyframes zjl-seal-awaken { from { transform: scale(.98); } to { transform: scale(1.08); } }
@keyframes zjl-signal { 0%, 100% { box-shadow: 0 0 0 0 #ff9cb880; } 65% { box-shadow: 0 0 0 6px #ff9cb800; } }
@keyframes zjl-ignite { from { opacity: .92; transform: scale(.16); } to { opacity: 0; transform: scale(4.1); } }
@keyframes zjl-winner { 0% { transform: scale(1); } 26% { transform: scale(1.065); } 100% { transform: scale(1); } }
@keyframes zjl-shock { 0%, 100% { transform: none; } 10% { transform: translate(7px, -5px) rotate(.65deg); } 23% { transform: translate(-6px, 4px) rotate(-.52deg); } 39% { transform: translate(3px, -2px) rotate(.23deg); } 55% { transform: translate(-1px, 1px); } }
@keyframes zjl-wave { from { opacity: .86; transform: scale(.2); } to { opacity: 0; transform: scale(8.5); } }
@keyframes zjl-flash { from { opacity: .4; } to { opacity: 0; } }
@keyframes zjl-black-flash {
    0% { opacity: 0; transform: rotate(-12deg) scale(.22); }
    13% { opacity: 1; transform: rotate(-3deg) scale(.8); }
    43% { opacity: .87; transform: rotate(1deg) scale(1.03); }
    100% { opacity: 0; transform: rotate(8deg) scale(1.33); }
}
@keyframes zjl-particle { from { opacity: 0; transform: rotate(var(--turn)) scale(.4); } 13% { opacity: 1; } to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--turn)) scale(1.38, .36); } }
@keyframes zjl-reveal-prize { from { transform: scale(.67) rotate(-8deg); opacity: .4; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes zjl-array-drift { from { transform: scale(.94) rotate(-5deg); opacity: .64; } to { transform: scale(1.045) rotate(3deg); opacity: .98; } }
@keyframes zjl-seal-pulse { from { opacity: .42; transform: scale(.9); } to { opacity: .95; transform: scale(1.14); } }
@keyframes zjl-box-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes zjl-shuffle-ring {
    0%, 63% { opacity: 0; transform: translate(-50%, -50%) scale(.26) rotate(-14deg); }
    73% { opacity: .9; transform: translate(-50%, -50%) scale(.65) rotate(-6deg); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2) rotate(8deg); }
}
@keyframes zjl-box-charge { 0%, 100% { transform: translate(-2px, -2px) rotate(-2deg) scale(1.03); filter: brightness(1.17); } 46% { transform: translate(4px, -9px) rotate(3deg) scale(1.11); filter: brightness(1.5) drop-shadow(0 0 13px var(--box-glow)); } }
@keyframes zjl-box-reveal { 0% { transform: scale(.87) translateY(5px); filter: brightness(1.55); } 34% { transform: scale(1.13) translateY(-12px); } 100% { transform: scale(1); filter: brightness(1); } }

@media (min-width: 960px) {
    .zjl-status { min-height: 21px; }
}

@media (min-width: 960px) and (max-height: 760px) {
    .zjl { --nav-height: 47px; }
    .zjl-scene { gap: 16px; }
}

@media (min-width: 960px) and (max-height: 650px) {
    .zjl-arena { --stage-inset: 8px; --board-gap: 8px; padding-block: calc(var(--nav-top) + var(--nav-height) + 17px) 18px; }
}

@media (max-width: 1120px) {
    .zjl-panel { padding: 12px; }
}

@media (min-width: 960px) and (max-width: 1120px) {
    .zjl-recent { padding-inline: 8px; }
    .zjl-recent-list li { gap: 4px; }
    .zjl-recent-list li > span:first-child, .zjl-recent-list time { font-size: 10px; line-height: 20px; }
    .zjl-recent-list li > span:first-child { width: 30px; }
    .zjl-recent-list li > :is(span:first-child, time) { align-self: center; }
    .zjl-win-reward.is-combined { font-size: 10px; }
    .zjl-recent-prize .zjl-win-reward { line-height: 20px; }
}

@media (max-width: 959px) {
    .zjl .zjl-shell { width: calc(100% - 44px); }
    .zjl-arena {
        --tile-height: 134px;
        --board-gap: 8px;
        grid-template-columns: minmax(0, 2fr) minmax(204px, 1fr);
        grid-template-rows: auto auto var(--stage-height) auto auto;
        grid-template-areas: "intro intro" "modes ." "play side" "status ." "wins wins";
        align-content: start;
        gap: 12px 20px;
        padding-block: 0 20px;
    }
    .zjl-battle-art { display: none; }
    .zjl-battle-lightning { inset: 18% -22% 0; background-position: center top; background-size: 1040px auto; }
    .zjl-battlefield { background: linear-gradient(145deg, #191026, #120a18 55%, #22101c); }
    .zjl-scene { display: contents; }
    .zjl-scene > .zjl-intro { grid-area: intro; }
    .zjl-scene > .zjl-recent { grid-area: wins; width: 100%; }
    .zjl-intro { position: relative; isolation: isolate; display: grid; align-items: end; min-height: 224px; margin: 0 -22px; padding: calc(var(--nav-top) + var(--nav-height) + 15px) 22px 17px; }
    .zjl-compact-art { display: block; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #1b1126 2%, transparent 42%), url('domain-duel.webp') center 38% / cover; }
    .zjl .zjl-intro h1 { font-size: clamp(47px, 7vw, 65px); }
    .zjl-intro h1 span { display: inline; }
    .zjl-sidebar { width: 100%; }
    .zjl-stage { --corner-size: 68px; }
    .zjl-corner-tl, .zjl-corner-bl { left: -19px; }
    .zjl-corner-tr, .zjl-corner-br { right: -19px; }
}

@media (max-width: 782px) { body.zjl-domain.admin-bar { --zjl-toolbar: 46px; } }
@media (max-width: 600px) { body.zjl-domain.admin-bar #wpadminbar { position: fixed; } }

@media (max-width: 680px) {
    .zjl { --nav-height: 44px; --nav-top: 8px; }
    .zjl .zjl-shell { width: calc(100% - 34px); }
    .zjl-header { width: calc(100% - 22px); border-radius: 11px; }
    .zjl .zjl-header .zjl-header-inner { padding-inline: 11px; gap: 9px; }
    .zjl-brand { gap: 8px; }
    .zjl-brand-name { font-size: 17px; gap: 2px; }
    .zjl-brand-name b { font-size: 8px; }
    .zjl-nav { font-size: 12px; }
    .zjl-arena {
        --tile-height: clamp(122px, 31vw, 145px);
        --stage-inset: 7px;
        --board-gap: 7px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto var(--stage-height) auto auto auto;
        grid-template-areas: "intro" "modes" "play" "status" "side" "wins";
        gap: 11px;
    }
    .zjl-intro { min-height: clamp(174px, 49vw, 220px); margin-inline: -17px; padding-inline: 18px; }
    .zjl-compact-art { background-position: center 34%; }
    .zjl .zjl-intro h1 { font-size: clamp(44px, 11.6vw, 57px); }
    .zjl-eyebrow { font-size: 11px; margin-bottom: 7px; }
    .zjl-stage { --corner-size: 61px; }
    .zjl-corner-tl, .zjl-corner-tr { top: -14px; }
    .zjl-corner-bl, .zjl-corner-br { bottom: -19px; }
    .zjl-corner-tl, .zjl-corner-bl { left: -13px; }
    .zjl-corner-tr, .zjl-corner-br { right: -13px; }
    .zjl-prize { gap: 6px; padding: 6px 5px 8px; }
    .zjl-prize-caption strong { font-size: 13px; }
    .zjl-prize-caption span { font-size: 11px; }
    .zjl-prize-badge { padding: 2px 5px; font-size: 10px; }
    .zjl-draw strong { font-size: clamp(13px, 3.8vw, 15px); }
    .zjl-draw-cost { font-size: 11px; }
    .zjl-box { gap: 6px; padding: 7px 5px 10px; }
    .zjl-sidebar { grid-template-rows: auto auto auto; }
    .zjl-sidebar .zjl-panel { padding: 13px; }
    .zjl-history { overflow: visible; }
    .zjl-dialog-inner { padding: 21px 17px; }
}

@media (max-width: 360px) {
    .zjl-prize { padding-block: 5px 7px; }
    .zjl-prize-caption { gap: 5px; }
    .zjl-prize-badge { padding-inline: 3px; }
    .zjl-blind-cost { padding-inline: 7px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .zjl *, .zjl *::after, .zjl *::before { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .zjl .zjl-draw, .zjl .zjl-draw-seal { animation: none !important; }
    .zjl .zjl-dialog, .zjl .zjl-dialog::backdrop { transition: none; }
    .zjl.is-drawing .zjl-battle-art { transform: scale(1.015); }
    .zjl-battle-lightning, .zjl.is-drawing .zjl-battle-lightning { opacity: .62; filter: none; }
    .zjl-stage::before, .zjl-stage .zjl-ignition { display: none; }
    .zjl-prize.is-active { transform: none; }
    .zjl .zjl-draw:active, .zjl-draw:hover:not(:disabled) .zjl-draw-seal, .zjl.is-drawing .zjl-draw-seal { animation: none; transform: none; }
    .zjl-box:hover:not(:disabled, [aria-disabled="true"]), .zjl-box:focus-visible:not([aria-disabled="true"]), .zjl-box:active:not(:disabled, [aria-disabled="true"]) { transform: translateY(var(--box-y)); }
    .zjl-box:hover:not(:disabled, [aria-disabled="true"]) .zjl-box-closed, .zjl-box:focus-visible:not([aria-disabled="true"]) .zjl-box-closed { transform: none; }
}
