/* Sacred Seasons 2 - the battle stage's CSS (Phase 3, 2026-09-06):
   the bench page's styles scoped under #battlewrap so the same
   stage mounts inside the world client. GENERATED by the Phase 3
   transform from the bench's inline CSS; edit here from now on. */
 #battlewrap.clean9{padding:0;overflow:hidden;background:#000}
 #battlewrap.clean9 > :not(#wrap){display:none!important}
 #battlewrap.clean9 #wrap{gap:0}
 #battlewrap.clean9 #side{display:none!important}
 #battlewrap.bootenc #bstage > *{visibility:hidden}
 #battlewrap.bootenc #bstage::after{content:"";position:absolute;
   inset:0;background:#000}  /* a plain black veil, no status text (owner RRR1, 2026-09-12) *//* Nothing on screen is selectable. Dragging across a battle should never
    blue-highlight the damage log or a stat label — this is a game surface,
    not a document. The chat input is exempted below so it can still be typed
    in and edited. */
 
 #battlewrap{background:#0d0f12;color:#e6e6e6;font:13px/1.5 system-ui,sans-serif;margin:0;padding:12px;
   user-select:none;-webkit-user-select:none}
 #battlewrap input,#battlewrap textarea{user-select:text;-webkit-user-select:text}
 #battlewrap h1{font-size:15px;margin:0 0 2px;color:#9aa0a8;font-weight:600}
 #battlewrap .bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:9px}
 #battlewrap select,#battlewrap button,#battlewrap input{background:#1c1f25;color:#e6e6e6;border:1px solid #333a44;
   border-radius:5px;padding:5px 8px;font:13px system-ui}
 #battlewrap button{cursor:pointer} #battlewrap button:hover{background:#252b34}
 #battlewrap button.go{border-color:#3d6b45;color:#9fe8ae}
 #battlewrap button.warn{border-color:#6b4b3a;color:#ffb98f}
 #battlewrap .k{color:#8b929b}
 #battlewrap #wrap{display:flex;gap:12px;align-items:flex-start}/* CLEAN embed (the Greenhouse client, owner 2026-08-22: "it
    embeds Battle Bench along with its menus... looks messy"):
    nothing but the authored 700x600 stage - no bench chrome */
 
 #battlewrap.clean{padding:0;overflow:hidden}
 #battlewrap.clean > :not(#wrap){display:none!important}
 #battlewrap.clean #wrap{gap:0}
 #battlewrap.clean #side{display:none!important}/* The stage is the recovered screen size — 700x600 — and every battle
    background is exactly that, which is how we know the fight filled it. */

 
 #battlewrap #bstage{position:relative;width:700px;height:600px;flex:none;
   border:1px solid #2b3038;border-radius:6px;overflow:hidden;background:#000}
 #battlewrap #bbg{position:absolute;left:0;top:0;width:700px;height:600px}/* No transform: translating a 0x0 box does nothing visually, but the
    transform FORCED a stacking context, which would have caged each unit's
    children and made the owner's cross-unit layering impossible. */
 
 #battlewrap .unit{position:absolute;width:0;height:0}
 #battlewrap .unit .body{position:absolute;left:-26px;bottom:0;width:52px;height:64px;
   border-radius:6px 6px 3px 3px;border:2px solid #0008}
 #battlewrap .unit.party .body{background:linear-gradient(#7cc4ff,#3d6b9a)}
 #battlewrap .unit.foe .body{background:linear-gradient(#e08a5a,#8a4a2a)}/* An enemy that HAS art wears it: the coloured block gives way to the
    recovered drawing, scaled to stand on the same baseline. Enemies whose
    art is missing (12 boss symbols) keep the block, honestly. *//* Sized by script: natural SWF pixels x the calibrated scale, anchored by
    INK. BOTH sides: the party selector's absence left the player's rig in
    static flow, where left/bottom are silently ignored — the owner's
    "sliders do nothing" and the off-centre stance were this one line. */
 
 
 #battlewrap .unit .body img.rig{position:absolute;max-width:none;pointer-events:none}/* Phase 2 sheet rigs (2026-09-06): the canvas box seated where the
    vector img sits; the cell is one sheet frame, the vec img stands
    in while a sheet lands */
 
 #battlewrap .unit .body .rig.sheet{position:absolute;pointer-events:none}
 #battlewrap .rig.sheet .cell{position:absolute;background-repeat:no-repeat;
   pointer-events:none;overflow:hidden}
 #battlewrap .rig.sheet .cell img.sh{position:absolute;max-width:none;pointer-events:none;display:block}
 #battlewrap .rig.sheet img.vec{position:absolute;left:0;top:0;width:100%;height:100%;
   max-width:none;pointer-events:none}
 #battlewrap .unit .fx .fxsheet{position:absolute;left:0;bottom:0;pointer-events:none}
 #battlewrap .unit .fx .fxsheet .cell{position:absolute;background-repeat:no-repeat}
 #battlewrap .unit .fx .fxsheet img.vec{left:0;top:0;bottom:auto;width:100%;
   height:100%;transform:none}/* the game client's link pause (contract 3.8): no input reaches the
    stage until resume */
 
 #battlewrap.linkpaused9 #bstage{pointer-events:none}
 #battlewrap .unit.foe .body.hasrig{background:none;border:none;border-radius:0;
   pointer-events:none}
 #battlewrap .unit.party .body.hasrig{background:none;border:none;border-radius:0;
   pointer-events:none}/* The avatar art faces RIGHT natively (owner-confirmed) — no mirror.
    PvP will mirror the far side's sprites when that day comes. */
 
 #battlewrap .unit .fx{position:absolute;left:0;bottom:0;pointer-events:none}/* NATURAL size x the owner's view scale — the exact meaning the skills
    workshop calibrated; the old height:90px cap silently rescaled every
    effect away from its tuning (owner, 2026-08-17). */
 
 #battlewrap .unit .fx img{position:absolute;left:0;bottom:0;transform:translateX(-50%);
   max-width:none}/* Damage is DRAWN at the apex — the flash is that moment made visible. */
 
 #battlewrap .unit.struck .body{filter:brightness(2.2) saturate(.4)}/* A rigged corpse keeps its anideath final frame at FULL opacity — the
    frozen pose is the death, nothing else signals it. Wash and fade stay
    only for units with no drawing. */
 
 #battlewrap .unit.dead .body:not(.hasrig){filter:grayscale(1) brightness(.4)}
 #battlewrap .unit.dead:has(.body.hasrig){opacity:1}/* Gone entirely. It only ever appeared on hover, which is exactly when the
    AttributePopup is also up — and that already gives the name and level in
    its title line, so the floating label was saying the same thing twice. */
 
 #battlewrap .unit .nm{display:none}/* Live stats, exactly as the UI showed them: green HP, blue SP, orange AR. *//* BattleCharBarBG is 49.7 x 12.0 with its root translated (1.8, 2.6), so the
    three bars live in a 46.1 x 9.4 well inset into that frame. The bars are
    fitted to the recovered frame rather than floating loose under the feet. *//* BattleCharBarBG is ONE bar slot, not a container for three: decoding its
    pattern (75x12, tiled horizontally) shows a light bevel at y1 and y8 with
    a dark well between them — a single track, 6px tall, starting at y2 and
    running the full width.
    So the frame is drawn THREE TIMES, stacked, one per bar. Earlier it was
    drawn once with three hairlines crammed inside it, which is why the
    cluster looked wrong and mostly empty. 3 x 12 = 36px tall. *//* Every number here is a CSS variable so the layout sandbox can tune it
    live — the frame is recovered art but how the fill sits inside it is a
    fitting job, not a measurement.
    The fill goes ON TOP of the frame: the frame's own track is opaque dark,
    so anything drawn behind it is simply invisible, which is why the bars
    read as empty. It needs no border of its own — the frame IS the border. */

 
 
 
 
 #battlewrap .bars{position:absolute;left:-24.85px;width:49.7px;z-index:2;
   bottom:calc(0px - (var(--bar-pitch,9px) * 2 + 12px));
   height:calc(var(--bar-pitch,9px) * 2 + 12px)}
 #battlewrap .bars .slot{position:absolute;left:0;width:49.7px;height:12px}
 #battlewrap .bars .slot:nth-child(1){top:0}
 #battlewrap .bars .slot:nth-child(2){top:var(--bar-pitch,9px)}
 #battlewrap .bars .slot:nth-child(3){top:calc(var(--bar-pitch,9px) * 2)}
 #battlewrap .bars .slot img{position:absolute;left:0;top:0;width:49.7px;height:12px;
   pointer-events:none;z-index:1}
 #battlewrap .bars i{position:absolute;left:var(--bar-inset,1.5px);
   top:var(--bar-track-top,2px);
   width:calc(49.7px - var(--bar-inset,1.5px) * 2);
   height:var(--bar-track-h,6px);
   display:block;z-index:2;overflow:hidden}
 #battlewrap .bars i b{display:block;height:100%;width:0}
 #battlewrap .bars .hp b{background:#4ad04a} #battlewrap .bars .sp b{background:#3aa9e0}
 #battlewrap .bars .ar b{background:#f0a020}/* The bar under a combatant crosses the SAME thresholds as the number in
    the party panel — half and a quarter. Two readouts of one value must not
    disagree about whether things are going badly. */
 
 #battlewrap .bars .hp.warn b{background:#ffb300} #battlewrap .bars .hp.crit b{background:#ff4a4a}/* Floating numbers. EffectMessage is a 59-frame animation whose inner
    transform rises linearly from ty -7.4 to -88.2 at scale 0.8452 — about
    68px on screen over 58 frames, which at 24fps is 2.42s. Those are the
    recovered numbers, not chosen ones. The digits themselves were dynamic
    text with a black glow filter, reproduced here in CSS. *//* z-index above every panel: a number that disappears behind the roster
    is a number you did not read. 4s rather than 2.42s — the recovered timing
    was the sprite's own, but it reads too fast on a bench you are studying. *//* RECOVERED EXACTLY from the EffectMessage sprite's own timeline.
    Its 59 exported frames interleave TWO sequences, which is what made an
    earlier reading here say "68px over 2.42s" — that averaged the two. The
    dominant one steps ty by exactly -1.65 units, 48 times, from -22.2 to
    -101.4:

        79.2 px of travel, 48 frames, 24 fps  =  2.00 s at 39.6 px/s

    So it is LINEAR — no easing, no overshoot, no scale bounce — and it ends
    by disappearing, not by fading. `steps()` is wrong here; the sprite moved
    every frame. `linear` with no opacity keyframes is the faithful one. *//* The rise and the removal are driven by ONE duration (--fly-ms). They used
    to disagree — 2s of movement then 2.2s sitting motionless at the top
    before being deleted, which is exactly the "rises fast then freezes" it
    looked like. Now it travels for the whole time it is on screen and
    vanishes the instant it arrives.
    NOTE: the sprite's own timeline is 2.00s. This is deliberately slower, on
    the judgement that it reads better; change --fly-ms alone to go back. *//* Above the field and the party panel, but BELOW the skill and item panels
    (130) and the action menu (140) — a number drifting across a menu you are
    reading is a distraction, and the menu is the thing you need. */

 
 
 
 
 
 #battlewrap .fly{position:absolute;font:800 var(--fly-size,22px) system-ui;
   pointer-events:none;z-index:120;
   transform:translate(-50%,-50%);
   text-shadow:0 0 4px #000,0 0 8px #000,0 2px 2px #000,-2px 0 2px #000,
               2px 0 2px #000;
   animation:rise var(--fly-ms,4200ms) linear forwards}
 #battlewrap .fly.dmg{color:#ff3b2f} #battlewrap .fly.heal{color:#5ddc82} #battlewrap .fly.sp{color:#00BCD7}/* A critical differs from a normal hit by COLOUR only — the 1.3x size
    made it read as a different kind of event. */
 
 #battlewrap .fly.crit{color:#ffd400}
/* the fall word (Ben, 2026-11-01): black, no glow of its own, so it
   draws clean over the charmed light */
#battlewrap .fly.fall{color:#000;text-shadow:none;font-weight:800}
 #battlewrap .fly.miss{color:#ff3b2f;font-size:calc(var(--fly-size,22px) * 0.88)}
 @keyframes rise{
   from{transform:translate(-50%,-50%) translateY(0)}
   to  {transform:translate(-50%,-50%) translateY(-79.2px)}}/* Battle log, top: red normal damage, purple skills, yellow criticals. *//* BattleLog is 450x90.95 in the client, so it is centred on the 700 stage —
    which is exactly where the screenshots show it. *//* Wide enough that no message ever truncates — the owner vetoed both
    truncation and shrinking text. The frame art stretches with it. */

 
 
  
 #battlewrap #logframe{position:absolute;left:10px;top:0;width:680px;height:91px;
   pointer-events:none;z-index:1}/* The owner's layering: log lowest, then every stat bar, then the battlers
    in seat order (set per-unit by script), then UX at 100+. */
 
 #battlewrap #logframe img{position:absolute;left:0;top:0;width:450px;height:91px;opacity:.85}/* The gap above the first line should equal the gap BETWEEN lines — the
    original had no dead band at the top of the panel. Rows are 17px, so the
    inset is 17px minus the line's own leading. */
 
 #battlewrap #log{position:absolute;left:0;top:2px;width:680px;padding:0 12px;
   box-sizing:border-box;font:600 14px system-ui;text-align:center;
   /* the profile card's name effect (owner FF7 / KK1, 2026-09-06):
      the same letters in BLACK on their own layer behind the colour,
      with their OWN size (--log-upx) and offset (--log-sdx / --log-sdy)
      so the owner can match the original by eye */
   pointer-events:none}
 #battlewrap #log div .u9{position:absolute;left:0;right:0;top:0;color:#000;
   transform:translate(var(--log-sdx,1px),var(--log-sdy,1px))}
 #battlewrap #log div .f9{position:relative}/* nothing in the fight is selectable or natively draggable (owner
    spec 2026-08-30 for the Greenhouse; the frame is its own document
    and had no such rule - LL5, 2026-09-06): a press that moves a
    little on a rig IMG started a native image drag, and a drag whose
    source is swapped by the animation can leave the page deaf to
    every click and key until the tab is reloaded */
 
 #battlewrap{user-select:none;-webkit-user-select:none}
 #battlewrap img,#battlewrap svg{-webkit-user-drag:none;user-select:none}
 #battlewrap input,#battlewrap textarea{user-select:text;-webkit-user-select:text}/* Five lines in 91px of BattleLog, filling top to bottom with the newest at
    the BOTTOM — the screenshots show the oldest message at the top of the
    panel, not a feed that pushes upward. */
 
 #battlewrap #log div{opacity:.95;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
   position:relative;height:17px;line-height:17px;
   /* a HARD per-letter outline, the owner's legibility knob
      (2026-08-31: "the log looks too faint") - stroke paints
      BEHIND the fill so the channel colours stay bright */
   -webkit-text-stroke:var(--log-stroke,0px) #000;
   paint-order:stroke fill}/* Coloured by who suffered, which is what the screenshots actually show:
    green when the party deals damage, red when the party takes it. */
 
 #battlewrap #log .dealt{color:#5ddc82} #battlewrap #log .taken{color:#ff5a4a}
 #battlewrap #log .skill{color:#c88bff} #battlewrap #log .crit{color:#ffd400}
 #battlewrap #log .info{color:#9fd3ff}/* ---- Action menu -------------------------------------------------------
    RECOVERED from ActionMenu/1.svg, which still carries the original instance
    names and their offsets inside the 447x367 frame:

        attack_btn  y -83      skill_btn  y -56
        item_btn    y -29      cancel_btn y  -2      all x -52, w 104

    Exactly 27px apart, 104 wide, centred (-52 = -104/2). Each button is shown
    by clipping the WHOLE sprite to that 104x27 band, so the real art, real
    colours and real labels are used rather than redrawn ones. The individual
    DefineButton2 exports cannot be used: their labels are a shared dynamic
    text field, so every one of them exports reading "Attack". *//* The block is 104 x 108 (four 27px bands). It MUST carry those dimensions:
    with width/height unset the element is 0x0 and translate(-50%,-50%)
    centres nothing, which is why the menu sat off to one side.
    Centre measured off the original screenshot: the menu's midpoint is the
    horizontal centre of the 700px stage, a little above the vertical centre. *//* Above the skill/item panels so Cancel is never drawn behind them.
    pointer-events:none on the CONTAINER is load-bearing: it is a 104x108
    transparent box, and while a submenu is open it sits right over the skill
    list — catching every click meant the lower skills could not be hovered
    or selected at all. Only the buttons themselves take input. */

 
 
 
 #battlewrap #menu{position:absolute;left:350px;top:254px;width:104px;height:108px;
   transform:translate(-50%,-50%);display:none;z-index:140;pointer-events:none}
 #battlewrap #menu.on{display:block}/* The .mb is the DRAWN button — it takes no input. The .hit inside it is the
    clickable rectangle, and it is shorter than the art on purpose. */
 
 #battlewrap #menu .mb{position:absolute;left:0;width:104px;overflow:visible;
   display:block;pointer-events:none}
 #battlewrap #menu .mb img{display:block;position:absolute;left:0}
 #battlewrap #menu .mb .hit{position:absolute;left:0;width:104px;cursor:pointer;
   pointer-events:auto;z-index:2}/* Layout mode outlines the hit boxes so they can be seen while tuned. */
 
 #battlewrap #layoutpad.on ~ #menu .mb .hit,#battlewrap.showhits #menu .mb .hit{
   outline:1px dashed #7cc4ff;background:#7cc4ff1a}
 #battlewrap #menu .mb.off{filter:grayscale(.8) brightness(.55);cursor:default}/* Crosshairs. 77.9x77.9, drawn centred on a target. Dim on every legal
    target the moment you choose Attack, full on the one under the cursor —
    which is how the original showed a pending selection. */

 
 #battlewrap .xh{position:absolute;width:77.9px;height:77.9px;margin:-39px 0 0 -39px;
   pointer-events:none;opacity:.42;z-index:110;transition:opacity .08s linear}
 #battlewrap .xh.hot{opacity:1}
 #battlewrap #bstage.overtarget{cursor:crosshair}/* AttributePopup, 222.1x61.6. Every field position below is read straight
    off the sprite's named children (name_txt, hp_txt, att_txt, catt_txt...),
    so the layout is the original's, not a guess. The "c" fields are the
    CURRENT value against the base one — that is the +/- column. *//* The sprite is 222.1x61.6, which is unreadably small on a modern display —
    the original ran at a smaller logical resolution. Scaled 1.5x about its
    bottom-centre so it still points at the unit it describes. *//* The panel is 162.5 x 93.1 — its true size; an earlier reading of 222x62
    grabbed the wrong match out of the SVG header. Scaled 1.4x about its
    bottom-centre so it stays readable and still points at its subject. *//* 1.15x, not 1.4 — big enough to read, small enough not to run off the top
    of the stage when the subject is high up. `clampApop` keeps it inside. */

 
 
 
 
 #battlewrap #apexdlg{position:fixed;inset:0;background:#000c;display:none;z-index:200;
   align-items:center;justify-content:center}
 #battlewrap #apexdlg.on{display:flex}
 #battlewrap #atbox{background:#12151a;border:1px solid #2b3138;border-radius:8px;
   width:min(560px,94vw);padding:14px}
 #battlewrap #atstage{height:300px;background:#0a0c0f;border:1px solid #2b3138;
   border-radius:6px;display:flex;align-items:center;justify-content:center;
   overflow:hidden;margin:6px 0}
 #battlewrap #atstage img{max-height:290px;max-width:100%}
 #battlewrap #apop{position:absolute;width:162.5px;height:93.1px;display:none;z-index:180;
   pointer-events:none;transform:translate(-50%,-100%) scale(1.15);
   transform-origin:50% 100%}
 #battlewrap #apop.on{display:block}/* overflow visible: the panel art's drop shadow reaches past the declared
    93.1px, and clipping it squared off the bottom edge. */
 
 #battlewrap #apop,#battlewrap #apop .bg{overflow:visible}
 #battlewrap #apop .bg{position:absolute;left:0;top:0;width:162.5px;height:93.1px}
 #battlewrap #apop .bg svg{overflow:visible}
 #battlewrap #apop .f{position:absolute;font:700 10px system-ui;color:#fff;
   text-shadow:0 1px 2px #000;white-space:nowrap;line-height:11px}
 #battlewrap #apop .lb{color:#ffd06b}
 #battlewrap #apop .up{color:#6dff6d} #battlewrap #apop .dn{color:#ff7a5c}/* Skill menu. ActionSkillMenu names listbg_mc (146x241, left) and
    descbg_mc (200.4x108.3, right) with spLabel/sp_txt and costlabel/cost_txt
    above desc_txt — so the list is on the left and the cost-and-description
    box on the right, which is what the brief describes. *//* Positions are the sprite's own: listbg_mc at (-73.8, -243.65) 146x241 and
    descbg_mc at (71.6, -128.1) 200.4x108.3, both relative to the ActionMenu
    origin. The list therefore sits ABOVE the menu and the description to its
    right — which only fits because opening a submenu collapses the action
    menu down to its Cancel button, the one the brief says stays available. */

 
 
 #battlewrap #skmenu{position:absolute;left:0;top:0;width:700px;height:600px;
   display:none;z-index:130;pointer-events:none}
 #battlewrap #skmenu.on{display:block}
 #battlewrap #skmenu .list,#battlewrap #skmenu .desc{pointer-events:auto}/* The LIST is centred on the stage (350 - 73 = 277) with the description
    pane butted against its right edge, so the thing you are choosing from is
    the thing in the middle. Scrollable, but with no visible bar — a browser
    scrollbar inside a Flash-era panel reads as a web page pasted into it. */
 
 #battlewrap #skmenu .list{position:absolute;left:277px;top:60px;width:146px;
   height:241px;overflow:hidden;box-sizing:border-box}
 /* THE FRAME STAYS, THE ROWS SCROLL (owner MMMMMMMMMMMMMMM, 2026-10-17): the
    list used to scroll as a whole, art and all; now the panel art is the
    frame and only the rows inside it move */
 #battlewrap #skmenu #sklist{position:absolute;left:0;top:0;right:0;bottom:0;
   overflow-y:auto;padding:6px 0;box-sizing:border-box;z-index:2;
   scrollbar-width:none;-ms-overflow-style:none}
 #battlewrap #skmenu #sklist::-webkit-scrollbar{display:none}
 #battlewrap #skmenu .desc{overflow:hidden}/* The real ActionSkillMenu art, clipped to each of its two panels. Its root
    group is translated (74.3, 244.15), so listbg_mc lands at (0.5, 0.5) and
    descbg_mc at (145.9, 116.05) inside the 345.8x241 sprite. Backgrounds only
    — nothing here is hit-tested, so clipping is safe in a way it never was
    for the buttons. */
 
 #battlewrap #skmenu .list .bg,#battlewrap #skmenu .desc .bg{position:absolute;left:0;top:0;
   overflow:hidden;pointer-events:none}
 #battlewrap #skmenu .list .bg{width:146px;height:241px}
 #battlewrap #skmenu .list .bg img{position:absolute;left:var(--sklist-bg-dx,0px);top:var(--sklist-bg-dy,0px);
   width:345.8px;height:241px}
 #battlewrap #skmenu .desc .bg img{position:absolute;left:-145.9px;top:-116.05px;
   width:345.8px;height:241px}
 #battlewrap #skmenu .row{position:relative;height:19px;line-height:19px;margin:0 4px 1px;
   font:700 11px system-ui;color:#e9e2ff;cursor:pointer;padding:0 6px;
   white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:2}
 #battlewrap #skmenu .row:hover,#battlewrap #skmenu .row.sel{background:#5b47a0;color:#fff;
   border-radius:2px}
 #battlewrap #skmenu .row.poor{opacity:.4;cursor:default}/* Flush against the list's right edge (176.8 + 146), and its top follows
    whichever row the cursor is on so the explanation appears beside the thing
    being explained. */
 
 #battlewrap #skmenu .desc{position:absolute;left:423px;top:60px;width:200.4px;
   height:108.3px;transition:top .07s linear}
 #battlewrap #skmenu .desc .bg{width:200.4px;height:108.3px}/* Palette taken from the sprite's own fills: amber #ffcc66 headings, white
    body, cyan #33ccff accents. */
 
 #battlewrap #skmenu .desc .hd{position:absolute;left:8px;top:6px;font:800 11px system-ui;
   color:#ffcc66;text-shadow:0 1px 2px #000}
 #battlewrap #skmenu .desc .cost{position:absolute;right:8px;top:6px;font:800 11px system-ui;
   color:#33ccff;text-shadow:0 1px 2px #000}
 #battlewrap #skmenu .desc .body{position:absolute;left:8px;top:24px;width:184px;
   font:600 10.5px system-ui;color:#fff;text-shadow:0 1px 2px #000;
   line-height:13px}
 #battlewrap #skmenu .desc .un{color:#ffb36b;font-size:9.5px;display:block;margin-top:4px}/* Party panel, bottom left, as in the original. */

 
 #battlewrap #side{flex:1;min-width:0}
 #battlewrap table{border-collapse:collapse;width:100%;font-size:12px}
 #battlewrap th,#battlewrap td{padding:3px 6px;border-bottom:1px solid #22262d;text-align:left}
 #battlewrap th{color:#9aa0a8;font-weight:600}
 #battlewrap .lvl{background:#2b3a5a;border-radius:4px;padding:1px 5px;font-weight:700}
 #battlewrap .hpv{color:#4ad04a;font-weight:700} #battlewrap .spv{color:#3aa9e0;font-weight:700}
 #battlewrap .stat{display:inline-block;min-width:38px;text-align:center;background:#20242b;
   border-radius:3px;margin-right:2px;font-size:11px}
 #battlewrap .stat.buff{background:#1d4a1d;color:#9fe8ae}
 #battlewrap .dead{opacity:.4}
 #battlewrap #tick{color:#9fd3ff;font-family:ui-monospace,Consolas,monospace;font-size:11.5px}
 #battlewrap .sect{color:#9fd3ff;font-size:11.5px;margin:10px 0 3px;font-weight:600}
 #battlewrap .note{color:#7f8790;font-size:11.5px;max-width:60ch}/* Battle Info — TeamInfoMenu is 464x128, its rows 350x28. */

 
 #battlewrap #info{position:absolute;left:118px;top:150px;width:464px;height:128px;display:none}
 #battlewrap #info.on{display:block}
 #battlewrap #info img{position:absolute;left:0;top:0;width:464px;height:128px}
 #battlewrap #inforows{position:absolute;left:26px;top:14px;width:412px;
   font:600 12px system-ui;color:#fff;text-shadow:0 1px 2px #000}
 #battlewrap #inforows div{height:24px;line-height:24px;white-space:nowrap;overflow:hidden}/* The party panel sits in the bottom-left of the battle view, six fixed
    lines — one per possible player — in slot order: front row 1,2,3 then
    back row 1,2,3. Empty lines stay, as they do in the original. *//* Sized against BattleChat, which is 242.6 x 122.85 and sat to its RIGHT on
    the same 700px stage — so the panel gets 700 - 242.6 = 457. That the chat
    is 122.85 tall is also how we know the six rows are ~20px each, not the
    30 they had grown to: 122.85 / 6 = 20.5. Height had been cutting the
    bottom two enemies off the stage. *//* Above every unit band (seatBand tops out ~92): the roster and chat
    are UI chrome and nothing on the field may cover them (owner,
    2026-08-16 — a dead enemy's hand was drawn over the roster). *//* RECOVERED metrics (BattleEngineAssets.CharacterInfoMenu, 0.5887857):
    441.3 x 106.05 — six lines at 17.675px. The 457px/20.5px panel was an
    invention; the original's is used verbatim (owner, 2026-08-17). *//* Battle-log panel border: thickness and softness are the
    owner's layout knobs (2026-08-31: "thicker but soft") -
    the translucent colour plus the matching outer glow keep
    a heavier border from going hard-edged. *//* THE REAL PANEL (owner, 2026-09-03: "left with invented UX
    pieces for far too long"): the recovered CharacterInfoMenu
    (assets.swf symbol1567, 441.3 x 106.05) drawn as authored -
    the art's own class shows ONE character: name (bold italic),
    level (bold), "HP x/y" and "SP x/y" (bold italic, Tw Cen MT)
    over bars that scale with the ratio and colour green above
    66%, yellow above 33%, red below, plus the status icons in
    status_container. It shows YOUR member; everyone else is in
    Battle Info (the recovered TeamInfoMenu). */

 
 
 
 
 
 
 @font-face{font-family:'SS2 Tw Cen MT';
   src:url('/api/uxfont?name=1561_Tw%20Cen%20MT.ttf') format('truetype')}/* THE PARTY PANEL, restored (owner, 2026-09-03: "go back to the
    one we had before"): six fixed 17.675px lines on the recovered
    CharacterInfoMenu metrics (441.3 x 106.05) - level badge in
    the SEASON's colour, name, stacked HP (green, warn/crit) and
    SP (blue), six stat boxes each with its own mini label above
    (buff green / debuff red), the status-icon lane. */
 
 #battlewrap #roster{position:absolute;left:0;bottom:0;width:var(--roster-w,441.3px);z-index:100;
   background:linear-gradient(#000000cc,#000000ee);
   border-top:var(--roster-bw,1px) solid #3a3a3ac8;
   border-right:var(--roster-bw,1px) solid #3a3a3ac8;
   box-shadow:0 0 var(--roster-bsoft,0px) #3a3a3a90;
   font:600 11px system-ui}
 #battlewrap #roster .r{display:flex;align-items:center;gap:3px;height:var(--roster-row-h,17.675px);
   padding:0 4px;border-bottom:1px solid #ffffff14;white-space:nowrap}/* An unoccupied line keeps the same fill as a populated one — it simply has
    no data in it. Dimming it made the panel look broken rather than empty.
    A DEAD combatant is a different thing and still fades. */
 
 #battlewrap #roster .r.dead{opacity:.4}
 #battlewrap #roster .lv{background:#3a3f6a;color:#fff;border-radius:3px;padding:0 4px;
   min-width:22px;text-align:center;font-weight:800;font-size:11px;
   line-height:15px}
 /* THE COLUMNS HOLD STILL (owner AAAAAAAAAAA, 2026-09-22): the name
    lane is sized for twelve characters (a longer name steps its font
    down, battle-stage.js), the pools and the stats never shrink, so a
    row heavy with effects lines up with its neighbours; the status
    lane takes what is left and its icons shrink to fit. */
 #battlewrap #roster .nm{flex:0 0 auto;width:var(--roster-nm-w,76px);overflow:hidden;
   text-overflow:clip;color:#fff;font-size:11.5px}
 #battlewrap #roster .hpsp{flex:0 0 auto;width:44px;text-align:right}
 #battlewrap #roster .hpsp b{display:block;line-height:9.5px;font-size:9.5px}
 #battlewrap #roster .hp{color:#4ad04a} #battlewrap #roster .sp{color:#3aa9e0}/* The original let the label EXTRUDE above its value box rather than stack
    two full-height lines — that is how it fits six stats into a 20px row.
    The boxes are also far narrower than they had become; the annotated
    reference shows them barely wider than a three-digit number. */
 
 #battlewrap #roster .st{position:relative;display:inline-block;flex:0 0 auto;width:25px;
   text-align:center;background:#3a3f46;border-radius:2px;margin-right:1px;
   color:#dfe4ea;font-size:var(--roster-st-vfs,10.5px);line-height:12px;height:12px;
   margin-top:var(--roster-st-mt,2px);font-weight:700}
 #battlewrap #roster .st u{position:absolute;left:0;top:var(--roster-st-top,-8px);width:100%;font-size:var(--roster-st-fs,7.5px);
   color:#aab;text-decoration:none;line-height:8px;letter-spacing:-.2px}/* A modified stat shows its NEW value and swaps the grey fill for green or
    red — the panel is how a player sees a buff landed at all. */
 
 #battlewrap #roster .st.buff{background:#1d5a1d;color:#c8ffc8}
 #battlewrap #roster .st.debuff{background:#5a1d1d;color:#ffc8c8}/* HP runs green -> amber -> red as it falls. The thresholds are a judgement
    call, not recovered: half and a quarter. */
 
 #battlewrap #roster .hp.warn{color:#ffb300} #battlewrap #roster .hp.crit{color:#ff4a4a}/* The level badge takes the SEASON's colour. Winter purple and Fall orange
    are read off the high-level party screenshot; Spring and Summer follow the
    same logic — a deep forest green and a soft yellow. */
 
 #battlewrap #roster .lv.s1{background:#2e6b3a} #battlewrap #roster .lv.s2{background:#c9b13c;color:#2a2410}
 #battlewrap #roster .lv.s3{background:#c2701c} #battlewrap #roster .lv.s4{background:#6b4d9e}
 #battlewrap #roster .lv.blank{background:transparent}
 #battlewrap #roster .r.turn{background:#ffffff10;box-shadow:inset 3px 0 0 #ffd06b}/* ---- layout sandbox ---------------------------------------------------
    A mode, not a separate screen: the real battle keeps running underneath
    so a change can be judged against the thing it will ship in. */

 
 #battlewrap #layoutpad{position:absolute;left:0;top:0;width:700px;height:600px;
   display:none;z-index:400}
 #battlewrap #layoutpad.on{display:block}
 #battlewrap #layoutpad .grab{position:absolute;border:1px dashed #7cc4ff;
   background:#7cc4ff18;cursor:move;box-sizing:border-box}
 #battlewrap #layoutpad .grab:hover{background:#7cc4ff33}
 #battlewrap #layoutpad .grab span{position:absolute;left:2px;top:1px;font:700 9px system-ui;
   color:#cfe8ff;text-shadow:0 1px 2px #000;pointer-events:none}
 #battlewrap #layoutknobs{position:absolute;right:4px;top:4px;width:196px;z-index:401;
   background:#0d1117ee;border:1px solid #2b3038;border-radius:5px;
   padding:6px 8px;display:none;font:11px system-ui;color:#cfd6e0}
 #battlewrap #layoutknobs.on{display:block}
 #battlewrap #layoutknobs h4{margin:0 0 4px;font-size:11px;color:#9fd3ff}
 #battlewrap #layoutknobs label{display:flex;align-items:center;gap:5px;margin:2px 0}
 #battlewrap #layoutknobs label span{width:66px;color:#8b929b}
 #battlewrap #layoutknobs input[type=range]{flex:1;padding:0}
 #battlewrap #layoutknobs b{width:34px;text-align:right;font-size:10px}
 #battlewrap #layoutknobs .row{display:flex;gap:5px;margin-top:6px}
 #battlewrap #layoutknobs button{flex:1;padding:3px 0;font-size:11px}/* BattleChat — 242.6 x 122.85, bottom-right, flush against the party panel.
    The sprite names two children, chatLog and input_txt, so the split below
    is the original's. Not wired to anything yet. *//* The recovered BattleChat sprite. Its own children place the two regions:
    chatLog at (2,2) 234x92.7 and input_txt at (2,98.4) 234x21.35. */

 
 
 #battlewrap #chat{position:absolute;right:0;bottom:0;width:var(--bchat-box-w,242.6px);height:var(--bchat-box-h,122.85px);
   z-index:100;pointer-events:none}
 #battlewrap #chat .bg{position:absolute;left:0;top:0;width:var(--bchat-box-w,242.6px);height:var(--bchat-box-h,122.85px)}/* lines fill from the BOTTOM upward like the overworld chat (owner
    GG4, 2026-09-06); the log's bottom and height, the input box and
    its text are mini-tuner knobs *//* the clipped box keeps 4 px of SHADOW ROOM left, right and below
    (owner MM2, 2026-09-06: the shadows were cut off at the left and
    the bottom); the padding pays for the room, so the text sits
    exactly where the knobs put it */
 
 
 #battlewrap #chat .lines{position:absolute;left:-2px;top:auto;
   bottom:calc(var(--bchat-log-bottom,28px) - 4px);
   width:242px;box-sizing:border-box;padding:0 4px 4px 4px;
   height:calc(var(--bchat-log-h,92.7px) + 4px);
   display:flex;flex-direction:column;
   justify-content:flex-end;overflow:hidden;
   font:600 10.5px system-ui;color:#cfd6e0;line-height:13px;
   text-shadow:0 1px 2px #000}/* Sits exactly on the sprite's own input_txt box; the frame is the art's,
    so the field itself needs no border. */
 
 #battlewrap #chat .say{position:absolute;left:var(--bchat-in-x,2px);
   top:var(--bchat-in-y,98.4px);width:var(--bchat-in-w,234px);
   height:var(--bchat-in-h,21.35px);
   background:transparent;border:0;box-sizing:border-box;
   color:#dfe4ea;font:600 11px system-ui;padding:0 6px;outline:none;
   pointer-events:auto}/* A reserved lane at the right-hand end. The narrower stat boxes buy the
    room for it, so icons can be a readable size rather than 16px specks. */

 
 #battlewrap #roster .fx{margin-left:auto;flex:1 1 0;min-width:0;display:flex;
   gap:calc(var(--roster-fx-gap,3px) * var(--fxk,1));align-items:center;
   height:var(--roster-row-h,17.675px);justify-content:flex-end;padding-right:var(--roster-fx-pad,2px)}/* Hovering a status icon grows it about its own centre and names it. The
    row is 26px, so 16 -> 24 is as far as it can go without bleeding into the
    lines above and below. *//* The hover target is the SPAN, which never changes size — only the image
    inside it grows, about its own centre. If the target grew too, the cursor
    would keep falling in and out of it. */
 
 
 #battlewrap #roster .fx span{position:relative;width:calc(19px * var(--fxk,1));height:calc(19px * var(--fxk,1));
   display:block;flex:0 0 auto}
 #battlewrap #roster .fx img{position:absolute;left:50%;top:50%;width:calc(19px * var(--fxk,1));height:calc(19px * var(--fxk,1));
   transform:translate(-50%,-50%);transition:width .09s ease,height .09s ease;
   cursor:default}
 #battlewrap #roster .fx span:hover img{width:29px;height:29px;z-index:5}
 #battlewrap #roster .fx span:hover .tip{display:block}
 #battlewrap #roster .fx .tip{display:none;position:absolute;left:50%;bottom:20px;
   transform:translateX(-50%);background:#000d;color:#fff;font:700 10px system-ui;
   padding:2px 6px;border-radius:3px;white-space:nowrap;z-index:60;
   border:1px solid #ffffff30}
 #battlewrap #skills{flex-wrap:wrap;gap:6px}
 #battlewrap #skills .skrow{display:flex;align-items:center;gap:4px;flex-wrap:wrap;
   width:100%;padding:2px 0}
 #battlewrap #skills button.sk{background:#3a2d5e;border:1px solid #57458c;color:#e8e0ff;
   border-radius:3px;padding:2px 7px;font-size:11px;cursor:pointer}
 #battlewrap #skills button.sk:hover:not(:disabled){background:#4d3b7d}
 #battlewrap #skills button.sk:disabled{opacity:.35;cursor:default}
 #battlewrap #skills button.sk i{color:#9f8fd0;font-style:normal;font-size:9px}/* Choose Your Position. ChooseRowMenu is 492x377 and carries a bow and a
    sword — those ARE the two choices: ranged is the back row, melee the
    front. Under it the game listed every enemy with the weapon types it is
    weak and strong against, so the briefing and the row choice were one
    screen. */

 
 #battlewrap #pos{position:absolute;left:0;top:0;width:700px;height:600px;display:none;
   background:#000000b0;z-index:150}
 #battlewrap #pos.on{display:block}/* ChooseRowMenu, from the extracted shapes: 918 is the panel, 926 the bow
    lit and 920 the sword lit. They are diagonal halves of the same artwork,
    which is why hovering "lights up an area like a portal". */
 
 #battlewrap #posframe{position:absolute;left:104px;top:40px;width:492px;height:377px}
 #battlewrap #posart{position:absolute;left:0;top:0;width:492px;height:377px}
 #battlewrap #pos .lit{position:absolute;opacity:0;transition:opacity .12s;
   pointer-events:none}
 #battlewrap #pos .lit.back{left:22px;top:20px;width:409px;height:310px}
 #battlewrap #pos .lit.front{left:22px;top:20px;width:458px;height:269px}
 #battlewrap #pos .lit.on{opacity:1}/* Diagonal hit regions matching the wedges themselves. */
 
 #battlewrap #pos .pick{position:absolute;left:22px;top:20px;width:452px;height:292px;
   cursor:pointer}
 #battlewrap #pos .pick.back{clip-path:polygon(0 0, 100% 0, 0 100%)}
 #battlewrap #pos .pick.front{clip-path:polygon(100% 0, 100% 100%, 0 100%)}
 #battlewrap #posclose{position:absolute;right:-14px;top:-14px;width:59px;height:58px;
   cursor:pointer}
 #battlewrap #posinfo{position:absolute;left:90px;bottom:-30px;width:312px;height:57px;
   cursor:pointer}
 #battlewrap #pos .brief{position:absolute;left:20px;top:400px;width:660px;
   font:700 12px system-ui}
 #battlewrap #pos .hdr{display:flex;background:#000;color:#ffd400;padding:2px 0}
 #battlewrap #pos .hdr span{flex:1;text-align:center}
 #battlewrap #pos .hdr .wk{text-align:left;padding-left:10px}
 #battlewrap #pos .hdr .st{text-align:right;padding-right:10px}
 #battlewrap #pos .brow{display:flex;align-items:center;height:26px;margin-top:2px}
 #battlewrap #pos .brow .w{flex:1;background:linear-gradient(#3fa93f,#2b7a2b);height:24px;
   display:flex;align-items:center;gap:3px;padding:0 6px;overflow:hidden}
 #battlewrap #pos .brow .s{flex:1;background:linear-gradient(#c0392b,#8a2318);height:24px;
   display:flex;align-items:center;gap:3px;padding:0 6px;justify-content:flex-end;
   overflow:hidden}
 #battlewrap #pos .brow .n{width:230px;text-align:center;color:#fff;
   text-shadow:0 1px 2px #000;font-size:13px}
 #battlewrap #pos .brow img{width:18px;height:18px}
 #battlewrap #pos .brow .none{color:#ffffff66;font-size:10px;font-weight:600}/* BattleOverScreen is exactly 700x600 — the whole stage. It must cover
    EVERYTHING: combatants, the party panel and the chat were drawing over the
    top of it because they carry their own stacking. */

 
 #battlewrap #over{position:absolute;left:0;top:0;width:700px;height:600px;display:none;
   z-index:500}
 #battlewrap #over.on{display:block}
 #battlewrap #over > img{position:absolute;left:0;top:0;width:700px;height:600px}/* The screen has real text FIELDS — top_txt, bottom_center_txt,
    bottom_left_txt, bottom_right_txt — which export as baked placeholders and
    are stripped at load, exactly like AttributePopup. Values are drawn into
    their own boxes rather than pasted over the art with a mask. */
 
 #battlewrap #over .f{position:absolute;text-align:center;color:#ffd54a;
   font:800 17px system-ui;text-shadow:0 2px 4px #000;white-space:pre-line;
   line-height:26px}
 #battlewrap #over .f b{color:#fff}
 #battlewrap #over .f.loot{color:#fff;font-size:15px;font-style:italic;font-weight:700;white-space:pre-line}  /* bold italic lines (owner ZZZ, 2026-09-12) */
 #battlewrap #over .f.loothdr{color:#FCED2A;font-size:16px;font-style:italic}  /* owner AAAA1 *//* CONTINUE is its own DefineButton2_1787 (299x98, exactly the ok_btn box) —
    the same lesson as the action menu: where the art shows a button, there IS
    a button sprite with up/over/down states. Never paint a hit region over a
    flat picture and hope. */
 
 #battlewrap #over .hit{position:absolute;cursor:pointer}
 #battlewrap #over .hit img{position:absolute;left:0;top:0;width:100%;height:100%}/* FBLevelUp, 425.75 x 455.15. Its own children give level_txt and left_txt;
    the Facebook share row is dropped. */

 
 #battlewrap #levelup{position:absolute;left:350px;top:300px;width:425.75px;
   height:455.15px;transform:translate(-50%,-50%);display:none;z-index:520}
 #battlewrap #levelup.on{display:block}
 #battlewrap #levelup > img{position:absolute;left:0;top:0;width:425.75px;height:455.15px}
 #battlewrap #levelup .f{position:absolute;text-align:center;color:#fff;
   font:800 15px system-ui;text-shadow:0 2px 4px #000;white-space:pre-line}
 #battlewrap #levelup .lvl{color:#5dff5d;font-size:44px}
 #battlewrap #levelup .x{position:absolute;cursor:pointer}/* The Facebook row used to be hidden under an opaque rectangle here. It is
    now REMOVED from the SVG instead — see stripFields. Covering art is a
    habit worth resisting: it only works against one background and it throws
    away the layer separation the SVG exists to preserve. *//* ChainPopup, chid 1736 (owner-corrected 2026-08-25 against the
    original screenshot): box art 494x141 with the TITLE floating
    ABOVE the box's divider line; the whole piece sits at the top of
    the stage, over the battle log; heavy bottom-right drop shadow
    on every row; the title's letters appear one by one and jump in
    a wave - the original's animation. */
 
 
 #battlewrap #chainpop{position:absolute;left:var(--chain-x,350px);top:var(--chain-y,500px);width:494px;
   height:141px;transform:translate(-50%,-50%) scale(var(--chain-scale,1));display:none;
   z-index:530;pointer-events:none}
 #battlewrap #chainpop.on{display:block}
 #battlewrap #chainpop > img{position:absolute;left:0;top:0;width:494px;
   height:141px}
 #battlewrap #chainpop .row{position:absolute;left:0;width:100%;
   text-align:center;white-space:nowrap;
   font-family:'Franklin Gothic Heavy','Franklin Gothic Medium',
     'Arial Black',system-ui,sans-serif;
   /* the original's extruded shadow: stacked 1px steps CONNECT
      the shadow to each letter, the last step blurs so the edge
      stays soft */
   text-shadow:1px 1px 0 rgba(0,0,0,.9),2px 2px 0 rgba(0,0,0,.9),
     3px 3px 0 rgba(0,0,0,.9),4px 4px 1px rgba(0,0,0,.9),
     5px 5px 3px rgba(0,0,0,.75)}/* the title's letters SIT ON the box's divider line (owner
    screenshot, second pass) */
 
 #battlewrap #chainpop .title{top:-26px;font-size:40px;letter-spacing:1px}
 #battlewrap #chainpop .title b{display:inline-block;font-weight:400;
   animation:chwave .7s cubic-bezier(.3,1.6,.5,1) both}
 #battlewrap #chainpop .cname{top:18px;font-size:37px;color:#99ff00}
 #battlewrap #chainpop .cby{top:61px;font-size:24px;color:#fff}
 #battlewrap #chainpop .cwho{top:86px;font-size:37px;color:#ffff00}
 @keyframes chwave{0%{opacity:0;transform:translateY(0)}
   2%{opacity:1;transform:translateY(0)}
   30%{transform:translateY(-20px)}
   55%{transform:translateY(4px)}
   75%{transform:translateY(-6px)}
   100%{opacity:1;transform:translateY(0)}}
 @media (prefers-reduced-motion: reduce){
   #battlewrap #chainpop .title b{animation:none}}
 #battlewrap .editable{width:52px;padding:1px 3px;font-size:11px;text-align:center}/* Controls the owner RETIRED from the bar (2026-08-17): level and speed
    live on the choose-row screen, per-enemy offsets replaced the global
    sliders, the quick-access menu replaced the tool shortcuts, and the
    skills rows duplicated the action menu. Hidden rather than removed —
    the ids keep serving every piece of code that reads them. */
 
 #battlewrap .bar label:has(#focusswing),#battlewrap .bar label:has(#rigscale),#battlewrap .bar label:has(#rigdx),#battlewrap .bar label:has(#rigdy),#battlewrap .bar label:has(#kslide),#battlewrap .bar label:has(#spd),#battlewrap #posbtn,#battlewrap #avatartool,#battlewrap #questtool,#battlewrap #skills,#battlewrap #dbglvlwrap{display:none !important}
