:root{color-scheme:dark;font-family:'Segoe UI','Malgun Gothic',sans-serif;color:#eef0f7;background:#090c14}*{box-sizing:border-box}body{margin:0}header{height:74px;border-bottom:1px solid #293044;display:flex;align-items:center;justify-content:space-between;padding:0 28px}header b{color:#f394ca;font-size:27px}header span{font-size:18px;color:#eef0f7;margin-left:12px}main{max-width:1450px;margin:auto;padding:30px 24px}h1{font-size:28px;margin:8px 0 24px}h2{font-size:18px;margin:0}.eyebrow{font-size:13px;letter-spacing:2px;color:#f394ca}.intro{display:flex;justify-content:space-between;align-items:center}.panel{background:#121722;border:1px solid #293044;border-radius:16px;overflow:hidden}.login{max-width:460px;padding:30px;margin:8vh auto}.login p{color:#b3bed0}.login input{margin:7px 0 18px}.login button{width:100%}button,input,select{font:inherit;font-size:16px;border-radius:9px;padding:12px;color:#eef0f7;background:#1b2332;border:1px solid #364158}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button.primary{background:#f394ca;color:#231429;border:0;font-weight:700}label{display:block;font-size:14px}input,select{width:100%;min-width:0}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #86baff;outline-offset:3px}.selects{display:flex;align-items:end;gap:12px;margin-bottom:22px}.selects label{flex:1}.selects select{margin-top:5px}.dashboard{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(310px,1fr);gap:18px}.title{padding:18px;display:flex;justify-content:space-between;gap:10px}.title span{font-size:14px;color:#a6bbd6}#screen{position:relative;width:100%;aspect-ratio:16/9;background:#000;display:flex;align-items:center;justify-content:center;min-height:0;min-width:0}video{display:block;width:100%;height:100%;object-fit:contain;object-position:center;position:absolute;inset:0}#placeholder{position:absolute;max-width:90%;text-align:center;color:#b3bed0}.foot{padding:12px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px}.foot button{font-size:14px;padding:8px}#stats{font-size:14px;margin:0 15px 15px;color:#a6bbd6}.buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 18px 18px}.character{padding:12px 18px;border-top:1px solid #293044}.bar{height:12px;background:#272f40;border-radius:5px;overflow:hidden}.bar i{display:block;height:100%;background:#e575a0}.bar.mp i{background:#86baff}.vital{display:flex;justify-content:space-between;font-size:14px;margin:5px 0}details{margin:18px}summary{cursor:pointer;font-size:16px;margin-bottom:15px}#settings fieldset{border:1px solid #364158;border-radius:8px;margin:10px 0;padding:12px}#settings label{margin-top:10px}input[type=checkbox]{width:24px;height:24px;vertical-align:middle}#history{padding:0 18px 18px;font-size:14px;max-height:180px;overflow:auto}#history p{border-top:1px solid #293044;padding-top:8px}.note{color:#a6bbd6;font-size:14px}#error{color:#ffb7c5;white-space:pre-wrap}#screen:fullscreen{height:100dvh;width:100vw;aspect-ratio:auto;background:#000}#screen:fullscreen video{width:100%;height:100%;object-fit:contain}[hidden]{display:none!important}@media(max-width:800px){header{height:62px;padding:0 16px}main{padding:20px 12px}h1{font-size:22px}.intro{display:block}.selects{flex-wrap:wrap;gap:8px}.selects label{flex-basis:40%}.selects button{flex:1}.dashboard{grid-template-columns:minmax(0,1fr)}.title{padding:14px}.login{padding:22px}.note{line-height:1.7}.foot span{max-width:65%}#account{display:block;margin-bottom:14px}}

/* Mobile selector layout correction: controls never shrink into vertical text. */
.selects{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:10px}
.selects label{min-width:0}
.selects button{min-width:0;width:100%;min-height:48px;white-space:nowrap;word-break:keep-all}
.selects select{max-width:100%;text-overflow:ellipsis}
#pcnotice{margin:-10px 0 20px;line-height:1.6}
@media(min-width:801px){.selects{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto}.selects button{min-width:110px}}

#screen{touch-action:pan-y pinch-zoom}.gamepager{display:flex;align-items:center;justify-content:center;gap:18px;padding:10px}.gamepager button{min-height:44px;white-space:nowrap}.swipehint{text-align:center;color:#a8b6cb;font-size:13px;margin:0 0 10px}
html,body{max-width:100%;overflow-x:hidden;touch-action:pan-y}#screen{touch-action:pan-y}.dashboard{grid-template-columns:minmax(0,1fr)}.full-controls{margin-top:14px;border:0}.full-controls .title{flex-wrap:wrap}.full-controls iframe{display:block;width:100%;min-height:500px;border:0;background:#121722}.full-controls .note{padding:0 12px}#characters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.character{min-width:0;padding:8px}.character b{overflow-wrap:anywhere}
