body dialog#fight-lobby,body dialog#fight-arena{box-sizing:border-box;color-scheme:light;color:#292b24;background:#ece7d7;border:0;border-radius:0;font:14px/1.4 Arial,sans-serif;letter-spacing:0;box-shadow:none;--ink:#292b24;--muted:#4e5045;--pink:#a1283a;--deep:#ece7d7}body dialog#fight-lobby::backdrop,body dialog#fight-arena::backdrop{background:#ece7d7;backdrop-filter:none;-webkit-backdrop-filter:none}.fight-lobby *,.fight-arena *{box-sizing:border-box;letter-spacing:0}body dialog.fight-lobby{position:fixed;top:0;right:0;bottom:0;left:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;overflow:auto}.fight-lobby button,.fight-arena button{font:700 13px/1.2 Arial,sans-serif;color:#292b24;background:#f0ecdf;border:1.5px solid #36392d;border-radius:3px;min-height:42px;padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}.fight-lobby button:disabled,.fight-arena button:disabled{opacity:.45;cursor:default}.fight-lobby button svg,.fight-arena button svg{width:20px;height:20px;flex-shrink:0}.fight-lobby button:hover,.fight-arena button:hover{background:#ddd5bf}.fight-lobby label{display:grid;gap:7px;font-size:13px;color:#292b24}.fight-lobby input[type=text]{min-width:0;width:160px;max-width:100%;margin:0;padding:10px;color:#292b24;background:#f5f1e6;border:1px solid #858172;border-radius:2px;font:13px Arial,sans-serif}.fight-lobby select,.fight-arena select{font:13px Arial,sans-serif;background:#f5f1e6;color:#292b24;border:1px solid #858172;border-radius:2px;padding:10px;max-width:100%;min-height:42px}.fight-menu-art{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none}.fight-menu-art canvas{position:absolute;right:0;bottom:0;min-width:100%;height:100%;object-fit:cover;object-position:right}.fight-menu-content{position:relative;margin:6vh 0 40px 7%;width:min(480px,48%)}.fight-edition{font:700 11px monospace;color:#a1283a}.fight-menu-content h1{font:italic 900 52px/1.1 Marker Felt,Comic Sans MS,cursive;color:#252820;margin:15px 0 0;overflow-wrap:anywhere}.fight-menu-subtitle{font:700 11px monospace;margin:10px 0 24px;color:#a1283a}.fight-menu-nav{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:20px;border-bottom:2px solid #272b22;padding-bottom:12px}.fight-menu-nav button{border:0;background:transparent;padding:9px 8px;font-size:12px;text-transform:uppercase}.fight-menu-nav button[aria-current=true]{background:#a1283a;color:#f5eddb}.fight-menu-pages{max-height:58vh;overflow:auto;padding:16px 18px 20px;background:#ece7d7}.fight-menu-pages section[hidden]{display:none}.fight-menu-pages h3{font:700 14px Arial,sans-serif;margin:20px 0 10px;color:#292b24}.fight-lobby .fight-close{position:absolute;right:20px;top:20px;padding:10px;z-index:2}.fight-lobby .fight-practice{width:100%;margin-top:16px;background:#a1283a;color:#f8f0df;border-color:#a1283a}.fight-person{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #aaa18c}.fight-person>span{flex:1;min-width:0;overflow-wrap:anywhere;color:#292b24}.fight-person small{font-size:11px}.fight-person button{flex-shrink:0;padding:8px;min-height:38px}.fight-status,.fight-pending p{font-size:13px;line-height:1.5;overflow-wrap:anywhere;color:#4e5045}.fight-pending{border:1px solid #ad3444;margin-top:14px;padding:12px}.fight-pending button{margin-right:8px}.fight-settings-grid{display:grid;gap:12px}.fight-setting{display:flex!important;align-items:center;justify-content:space-between;gap:12px!important;color:#292b24}.fight-setting input[type=range]{width:145px;accent-color:#a1283a}.fight-setting input[type=checkbox]{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;width:20px;height:20px;accent-color:#a1283a;margin:0}.fight-setting select{width:160px}.fight-settings-grid button{justify-self:start}body dialog.fight-arena[open]{display:block;position:fixed;top:0;right:0;bottom:0;left:0;width:100vw;height:100dvh;max-width:none;max-height:none;padding:0;margin:0;overflow:hidden;--stage-width:min(100vw,177.7778dvh);--stage-height:min(100dvh,56.25vw)}.fight-stage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:var(--stage-width);height:var(--stage-height);aspect-ratio:16/9}.fight-stage canvas{display:block;width:100%;height:100%;object-fit:contain}.fight-score{position:absolute;top:calc((100dvh - var(--stage-height))/2 + 32px);left:calc((100vw - var(--stage-width))/2 + 4.5%);right:calc((100vw - var(--stage-width))/2 + 4.5%);display:grid;grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);gap:20px;pointer-events:none;align-items:start}.fight-fighter{min-width:0;padding-top:6px}.fight-fighter:last-child{text-align:right}.fight-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:italic 800 18px Marker Felt,Comic Sans MS,cursive;color:#26291f;margin-bottom:9px}.fight-health{display:block;width:100%;height:17px;background:#ece7d7;border:2px solid #2d3027;padding:2px;transform:skew(-7deg);overflow:hidden}.fight-health span{display:block;height:100%;background:#272c25;transform-origin:left;transition:transform .1s linear}.fight-fighter:last-child .fight-health span{background:#af253a;transform-origin:right}.fight-guard{display:block;height:3px;margin-top:6px;background:#c5bda5}.fight-guard span{display:block;height:100%;background:#887448;transform-origin:left;transition:transform .1s linear}.fight-meta{display:block;font:10px monospace;color:#303528;margin-top:5px}.fight-clock{text-align:center;color:#272b21}.fight-clock b{font:italic 900 38px Marker Felt,Comic Sans MS,cursive;display:block;line-height:1.05;margin:2px 0}.fight-clock small{display:block;font:10px monospace;color:#33382a}.fight-banner{position:absolute;top:calc((100dvh - var(--stage-height))/2 + var(--stage-height)*.31);left:12%;right:12%;text-align:center;pointer-events:none;font:italic 900 42px Marker Felt,Comic Sans MS,cursive;color:#ae263a;text-shadow:2px 2px #efe7d2,-2px -2px #efe7d2}.fight-combo{position:absolute;top:calc((100dvh - var(--stage-height))/2 + var(--stage-height)*.22);left:0;right:0;text-align:center;font:italic 700 19px Marker Felt,Comic Sans MS,cursive;color:#a1283a;pointer-events:none}.fight-toolbar{position:absolute;bottom:max(10px,calc((100dvh - var(--stage-height))/2 + 10px));left:3%;right:3%;display:flex;align-items:end;justify-content:space-between;gap:12px}.fight-pad,.fight-attacks{display:flex;gap:4px;flex-wrap:wrap}.fight-pad{max-width:240px}.fight-attacks{max-width:440px;justify-content:end}.fight-arena .fight-control{width:40px;height:40px;min-height:40px;padding:7px;touch-action:none;background:#eee9d8e8}.fight-control[data-held=true],.fight-control:active{background:#cbbda0}.fight-arena .fight-exit{position:absolute;right:12px;top:10px;width:38px;height:38px;min-height:38px;padding:8px;z-index:1}.fight-result{position:absolute;top:calc((100dvh - var(--stage-height))/2 + var(--stage-height)*.47);left:50%;transform:translate(-50%);display:flex;gap:8px;max-width:95%}.fight-result[hidden],.fight-pending[hidden],.fight-pause[hidden],.fight-toolbar{display:none}.fight-keyboard-controls{position:absolute;bottom:max(22px,calc((100dvh - var(--stage-height))/2 + 18px));left:100px;right:100px;display:flex;justify-content:center;gap:22px;color:#252820;font:12px Arial,sans-serif}.fight-keyboard-controls>span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.fight-keyboard-controls kbd{font:12px Arial,sans-serif;color:#252820;background:#eeeadd;border:1px solid #2c3027;border-radius:2px;min-width:26px;height:28px;padding:5px;display:inline-grid;place-items:center;box-shadow:1px 1px #373c30}.fight-arena .fight-menu-button{position:absolute;left:26px;bottom:max(18px,calc((100dvh - var(--stage-height))/2 + 14px));font:italic 800 16px Marker Felt,Comic Sans MS,cursive;box-shadow:3px 3px #282d23;padding:8px 13px;min-height:36px}.fight-pause{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:grid;place-items:center;background:#141611ae;padding:20px}.fight-pause-inner{width:min(520px,100%);max-height:calc(100dvh - 40px);overflow:auto;padding:24px;background:#ece7d7;border:2px solid #292b24;border-radius:3px;box-shadow:5px 5px #171c1799}.fight-pause h2{font:italic 900 30px Marker Felt,Comic Sans MS,cursive;color:#a1283a;margin:0 0 18px}.fight-pause nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.fight-pause-content:empty{display:none}.fight-lobby :focus-visible,.fight-arena :focus-visible{outline:3px solid #b02c3e;outline-offset:3px}@media(max-width:700px){.fight-menu-content{margin:70px 20px 20px;width:calc(100% - 40px)}.fight-menu-content h1{font-size:36px}.fight-menu-subtitle{margin-bottom:16px}.fight-menu-art{opacity:.2}.fight-menu-pages{max-height:calc(100dvh - 290px);padding:12px;background:#ece7d7}.fight-menu-nav{gap:2px}.fight-menu-nav button{font-size:11px;padding:9px 7px}.fight-score{top:calc((100dvh - var(--stage-height))/2 + 8px);left:3%;right:3%;gap:7px;grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr)}.fight-name{font-size:12px;margin-bottom:5px}.fight-health{height:11px;padding:1px}.fight-meta{font-size:8px}.fight-guard{margin-top:3px;height:2px}.fight-clock b{font-size:26px}.fight-clock small{font-size:8px}.fight-banner{font-size:26px}.fight-combo{font-size:13px}.fight-toolbar{bottom:max(20px,env(safe-area-inset-bottom));left:12px;right:12px;gap:12px}.fight-pad{max-width:135px}.fight-attacks{max-width:180px}.fight-arena .fight-control{width:40px;height:40px}.fight-result{top:calc((100dvh - var(--stage-height))/2 + var(--stage-height)*.58)}}@media(max-height:480px){.fight-menu-content{margin-top:25px;width:52%}.fight-menu-content h1{font-size:32px}.fight-menu-pages{max-height:45vh}.fight-menu-subtitle{margin-bottom:10px}.fight-menu-nav{margin-bottom:8px;padding-bottom:5px}.fight-score{top:12px;gap:10px;grid-template-columns:minmax(0,1fr) 50px minmax(0,1fr)}.fight-name{font-size:12px;margin-bottom:3px}.fight-health{height:10px;padding:1px}.fight-clock b{font-size:25px}.fight-meta,.fight-clock small{font-size:8px}.fight-banner{font-size:26px}.fight-combo{font-size:14px}.fight-toolbar{bottom:6px}.fight-arena .fight-control{width:32px;height:32px;min-height:32px;padding:6px}.fight-control svg{width:17px;height:17px}.fight-pad{max-width:190px}.fight-attacks{max-width:350px}}@media(pointer:coarse),(max-width:600px){.fight-keyboard-controls{display:none}.fight-toolbar{display:flex;left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));bottom:max(66px,calc(env(safe-area-inset-bottom) + 56px));align-items:end;gap:16px}.fight-pad,.fight-attacks{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:5px;max-width:none}.fight-arena .fight-control{width:44px;height:44px;min-height:44px;padding:4px;font-size:11px;border:2px solid #30332a;border-radius:4px;background:#ece9dc}.fight-control svg{width:18px;height:18px}.fight-arena .fight-menu-button{left:max(24px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));min-height:34px;height:34px;padding:6px 12px;font-size:15px}body dialog.fight-arena[open]{--stage-width:min(100vw,calc((100dvh - 156px)*16/9));--stage-height:min( calc(100dvh - 156px) ,56.25vw)}.fight-stage{top:0;right:0;bottom:0;left:0;width:100%;height:100%;transform:none;aspect-ratio:auto}.fight-score{top:max(14px,env(safe-area-inset-top));left:5%;right:5%;gap:12px}.fight-banner{top:26%}.fight-combo{top:21%}.fight-result{top:40%}}@media(max-width:360px){.fight-toolbar{left:16px;right:16px;gap:8px}.fight-pad,.fight-attacks{grid-template-columns:repeat(3,40px);grid-template-rows:repeat(2,40px);gap:4px}.fight-arena .fight-control{width:40px;height:40px;min-height:40px}.fight-arena .fight-menu-button{left:16px}}
