@font-face{font-family:DayafterXVMSymbol;src:url('../fonts/xvmsymbol.ttf') format('truetype');font-display:swap}
.bs-select{border:0;background:none;color:inherit;text-align:left;flex:1;cursor:pointer;padding:10px 5px}.bs-preview{padding:10px 0;color:#c4d0c8}.bs-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:12px}.bs-screen{position:relative;width:100%;overflow:hidden;border:1px solid #516053;border-radius:4px}.bs-screen-canvas{position:relative;width:1920px;height:1080px;transform-origin:0 0;background:url('../img/battle-score-background-172.jpg') center/100% 100%}.bs-module{position:absolute;transform-origin:0 0;outline:1px dashed #dfbd7c;cursor:move;touch-action:none}.bs-detail-wrap{overflow:auto;padding:12px;border:1px solid #485448;border-radius:4px;background:#18211d url('../img/damage-preview-terrain.png') center/cover}.bs-detail{position:relative;box-sizing:content-box;border:1px dashed #a1ac8f;min-height:60px}.bs-element{position:absolute;box-sizing:border-box;white-space:nowrap;overflow:hidden;cursor:move;touch-action:none}.bs-detail .bs-element:hover,.bs-element.is-selected{outline:1px solid #dfbd7c;overflow:visible}.bs-symbol{font-family:DayafterXVMSymbol;font-weight:inherit;display:inline-block}.bs-element:has(.bs-symbol){display:block}.bs-symbol{letter-spacing:inherit}.bs-resize{position:absolute;z-index:12;display:block;background:#dfbd7c66}.bs-resize-top{left:0;top:-3px;width:100%;height:6px;cursor:ns-resize}.bs-resize-right{right:-3px;top:0;height:100%;width:6px;cursor:ew-resize}.bs-guide{position:absolute;background:#f5d07c;pointer-events:none;z-index:20}.bs-guide.x{top:0;bottom:0;width:1px}.bs-guide.y{left:0;right:0;height:1px}.editing-battle-score #inspector-content select{display:block;width:100%;margin:8px 0 16px;background:#121a17;color:#dce6ce;padding:8px;border:1px solid #46564c}.editing-battle-score .range-control{display:flex;gap:12px;margin:12px 0 20px;align-items:center}.editing-battle-score .range-control input[type=range]{min-width:40px;flex:1}.editing-battle-score .range-control input[type=number]{width:64px}.editing-battle-score .check-control,.editing-battle-score .color-control{display:flex;gap:12px;align-items:center;margin:16px 0}.editing-battle-score .inspector-note{font-size:11px;line-height:1.6;color:#a6b3a8}

.editing-battle-score .element-list{gap:4px}.editing-battle-score .element-row{min-height:35px;padding:7px;width:100%;text-align:left}.editing-battle-score .element-row.is-hidden{opacity:.45}.editing-battle-score .element-row svg{width:14px;height:14px}.bs-position{margin:14px 0;border:1px solid #39483c;border-radius:5px;padding:10px}.bs-position summary{cursor:pointer;color:var(--gold);font-size:11px}.bs-position .bs-screen{margin-top:12px}.bs-detail-wrap{background-size:auto 400px}.editing-battle-score .stage .preview-zoom{min-height:0}

.bs-detail-wrap{padding:32px 12px 12px 36px}.bs-ruler{position:absolute;pointer-events:none;z-index:25;color:#f3d493;font:9px/1 Arial;background:#111c18ee}.bs-ruler span{position:absolute;display:block}.bs-ruler-x{left:0;right:0;top:-22px;height:20px;border-bottom:1px solid #b09560;background-image:repeating-linear-gradient(90deg,#b0956080 0 1px,transparent 1px 10px)}.bs-ruler-x span{top:3px;padding-left:2px}.bs-ruler-y{top:0;bottom:0;left:-30px;width:28px;border-right:1px solid #b09560;background-image:repeating-linear-gradient(0deg,#b0956080 0 1px,transparent 1px 5px)}.bs-ruler-y span{left:1px;transform:translateY(-50%)}.bs-screen-canvas>.bs-ruler-x{top:0;right:0;height:22px}.bs-screen-canvas>.bs-ruler-y{left:0;top:22px;width:30px}.bs-guide{box-shadow:0 0 2px #000;background:#ffe08a}.bs-detail .bs-guide{z-index:24}

.bs-screen-center{position:absolute;top:0;bottom:0;width:0;border-left:1px dashed #70e7ff;box-shadow:0 0 2px #001e28;z-index:23;pointer-events:none}.bs-screen-center span{position:absolute;left:5px;top:3px;color:#95eeff;background:#0b1d22cc;padding:3px 4px;white-space:nowrap;font:9px/1 Arial}.bs-screen-canvas>.bs-screen-center span{top:300px;font-size:16px}.bs-detail .bs-screen-center span{top:auto;bottom:3px}

.bs-center-module{border-color:#cfc8aa;box-shadow:none;z-index:21}.bs-center-module span{color:#ded7bd;background:#20221bcc;bottom:auto!important;top:3px!important}.bs-center-screen{border-color:#70e7ff}.bs-toolbar{gap:12px;flex-wrap:wrap}.bs-toolbar>span{margin-right:auto}

.editing-battle-score .stage{padding-top:16px;padding-bottom:16px}.editing-battle-score .preview-zoom{display:block}.bs-wide-editor{width:100%;box-sizing:border-box}.bs-wide-editor .bs-detail-wrap{height:520px;max-height:65vh;min-height:380px;box-sizing:border-box;overflow:auto;padding:32px 12px 12px 36px;background:#17221d}.bs-detail-sizer{position:relative}.bs-wide-editor .bs-detail{position:relative;transform-origin:0 0;background:#17221d url('../img/battle-score-background-172.jpg') left top/1920px 1080px no-repeat}.bs-detail-module{position:absolute;transform-origin:0 0;outline:1px dashed #c8bd9e66;touch-action:none}.bs-wide-editor .bs-center-screen span{top:300px;bottom:auto;font-size:12px}.bs-wide-editor .bs-toolbar select{background:#121a17;color:#dce6ce;border:1px solid #46564c;border-radius:4px;padding:8px}.bs-wide-editor .bs-toolbar label{display:flex;align-items:center;gap:8px}.bs-wide-editor .bs-toolbar button{white-space:nowrap}.bs-wide-editor .bs-detail>.bs-ruler-x{top:-22px}.bs-wide-editor .bs-detail>.bs-ruler-y{left:-30px;top:0}.bs-wide-editor .bs-detail>.bs-ruler{z-index:30}

.bs-wide-editor .bs-detail::before,.bs-screen-canvas::before{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background-image:linear-gradient(to right,rgba(18,40,40,.22) 1px,transparent 1px),linear-gradient(to bottom,rgba(18,40,40,.22) 1px,transparent 1px),linear-gradient(to right,rgba(18,40,40,.09) 1px,transparent 1px),linear-gradient(to bottom,rgba(18,40,40,.09) 1px,transparent 1px);background-size:50px 25px,50px 25px,10px 5px,10px 5px;background-position:0 0;background-repeat:repeat}

.bs-custom-controls input[type=text]{box-sizing:border-box;width:100%;font-size:12px}.bs-custom-controls fieldset{border:1px solid #46564c;margin:16px 0;padding:12px}.bs-custom-controls legend{font-size:12px;color:var(--gold)}.bs-custom-codes summary,.bs-demo-controls summary{cursor:pointer;color:var(--gold);font-size:11px}.bs-custom-codes>div{display:flex;flex-wrap:wrap;gap:5px;border-bottom:1px solid #46564c;padding:10px 0}.bs-custom-codes code{width:100%;color:#ddbd7c;font-size:11px}.bs-custom-codes span{width:100%;font-size:10px}.bs-custom-codes button{font-size:9px;padding:5px}.bs-custom-error{color:#ff9285;font-size:11px;line-height:1.6}.bs-condition-hidden{opacity:.35!important;outline:1px dashed #d7c185!important;font-size:11px!important}.bs-demo-controls{margin:12px 0;padding:10px;border:1px solid #46564c;border-radius:4px}.bs-demo-controls>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}.bs-demo-controls label{font-size:10px;display:flex;flex-direction:column;gap:5px}.bs-demo-controls input{width:100%;box-sizing:border-box}.bs-demo-controls .help-text{margin-bottom:0}

/* Flash TextField has a 2px gutter; align one shared text line, including
   mixed XVMSymbol/Arial runs, within the exported fixed rectangle. */
.bs-text-frame{position:absolute;inset:2px;display:flex;align-items:center;justify-content:inherit;pointer-events:none}
.bs-text-run{display:block;width:100%;flex:none;line-height:normal;white-space:nowrap;font-kerning:none;font-variant-ligatures:none}
.bs-text-run .bs-symbol{display:inline;line-height:inherit}

/* Replay-calibrated XVMSymbol baseline: Scaleform places the symbol run
   lower than the surrounding Arial line (8 logical px at 22px font).
   Keep the element rectangle and the numeric/colon text baseline unchanged. */
.bs-text-run .bs-symbol{position:relative;top:.363636em}
.bs-detail-module,.bs-screen-canvas>.bs-module{z-index:1}
.bs-detail>.bs-center-screen,.bs-screen-canvas>.bs-center-screen{z-index:0}
/* Font glyphs can extend below TextField metrics; preserve the full symbol. */
.bs-element:has(.bs-symbol){overflow:visible}
