:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:#ffffffde;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--app-height:100dvh;--app-height-90:90dvh;background-color:#242424;font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.5}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}a{color:#646cff;-webkit-text-decoration:inherit;text-decoration:inherit;font-weight:500}a:hover{color:#535bf2}body{min-width:320px;min-height:100vh;margin:0}h1{font-size:3.2em;line-height:1.1}button{cursor:pointer;background-color:#1a1a1a;border:1px solid #0000;border-radius:8px;padding:.6em 1.2em;font-family:inherit;font-size:1em;font-weight:500;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.error-msg{color:red}.card-search-dialog-main{min-height:90vh;min-height:var(--app-height-90);max-height:90vh;max-height:var(--app-height-90);text-align:left;flex-direction:column;justify-content:flex-start;align-items:stretch;min-width:90vw;max-width:95vw;display:flex}.count-btn-row{flex-direction:row;align-items:center;gap:4px;display:flex}.count-btn-count{background:#f5f5f5;border:1px solid #ccc;border-radius:4px;width:6em;padding:2px 4px;font-size:14px;display:inline-block}.btn-file{cursor:pointer;background:#fff;border:1px solid #bbb;border-radius:4px;padding:2px 8px;font-size:1em;font-weight:700;transition:background .2s,color .2s}.image-input-group{flex-direction:column;align-items:flex-start;min-width:10em;margin-right:1em;display:flex}.master-table{border-collapse:collapse;background:#fff;width:100%;margin-bottom:24px}.master-table th,.master-table td{text-align:center;border:1px solid #ccc;padding:8px}.master-table thead tr{background:#f5f5f5}.master-filter-row{align-items:center;gap:8px;margin-bottom:12px;display:flex}.master-filter-input{padding:4px 8px;font-size:16px}.master-btn-register{margin-left:16px}.form-pc{box-sizing:border-box;width:100vw;max-width:100vw;margin:0 auto;padding-left:2vw;padding-right:2vw;overflow-x:auto}.form-group-row{align-items:center;gap:.2em;display:flex}.group-split-row{color:#000;background:#f3e5f5;border:1px solid #8e24aa;justify-content:flex-start;align-items:center;margin:4px 0 8px;display:flex}.group-split-title{color:#1976d2;margin-right:10vw;font-size:14px;font-weight:700}.group-split-checkbox{accent-color:#1976d2;width:18px;height:18px;margin-right:4px}.calculator-dialog-main{min-height:90vh;min-height:var(--app-height-90);max-height:90vh;max-height:var(--app-height-90);text-align:center}.feedback-manage-btns{text-align:right;margin-top:24px}.modal-overlay{z-index:9999;background:#0006;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-content{background:#fff;border-radius:6px;width:90%;max-width:800px;max-height:80vh;padding:16px;overflow:auto;box-shadow:0 6px 24px #0003}.pagination{justify-content:center;align-items:center;gap:8px;margin-top:12px;display:flex}.pagination-btn{color:#333;cursor:pointer;background:#eee;border:none;border-radius:4px;padding:6px 14px;font-weight:700;transition:background .2s,color .2s}.pagination-btn.active{color:#fff;background:#1976d2}.mobile-row{border-bottom:1px solid #eee;padding:8px 0;display:block}.mobile-cell{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.input-readonly{opacity:1;color:#333;cursor:not-allowed;font-weight:600;resize:vertical!important;background:#f5f5f5!important;border:1px solid #bdbdbd!important}input,textarea,select{font-size:16px}.card-image-ratio{aspect-ratio:9/13;background:#eee;border-radius:8px;justify-content:center;align-items:center;margin:0 auto;display:flex;position:relative;box-shadow:0 2px 12px #0002}.card-image-preview{max-width:75vw;max-height:65vh}.card-image-ratio img{object-fit:cover;border-radius:8px;width:100%;height:100%}.card-preview-dialog-main{flex-direction:column;justify-content:center;align-items:center;min-height:0;max-height:90vh;padding:1vh 0;display:flex;overflow:hidden auto}.dialog-footer{justify-content:flex-end;align-items:center;gap:12px;margin-top:24px;display:flex}.dialog-btn-row{flex-direction:row;justify-content:space-between;align-items:flex-end;gap:8px;margin-top:20px;display:flex}.dialog-btn-left{flex:none}.dialog-btn-right{flex:auto;justify-content:flex-end;gap:8px;display:flex}.dialog-title{margin-top:0;margin-bottom:12px;font-size:1.2em;font-weight:700}.dialog-close-btn{cursor:pointer;background:0 0;border:none;font-size:20px;position:absolute;top:8px;right:12px}.dialog-overlay{width:100vw;height:100vh;height:var(--app-height);z-index:10000;box-sizing:border-box;background:#0000004d;justify-content:center;align-items:center;padding:16px 0;display:flex;position:fixed;top:0;left:0;overflow-y:auto}@media (max-width:768px){.dialog-overlay{align-items:flex-start;padding-top:16px;padding-bottom:24px}.dialog-main{max-height:95vh;padding:16px 12px}}.dialog-content-visible{overflow:visible!important}.dialog-main{box-sizing:border-box;background:#fff;border-radius:12px;flex-direction:column;justify-content:flex-start;align-items:center;width:auto;min-width:40vw;max-width:90vw;max-height:90vh;padding:24px 16px;display:flex;overflow-y:auto;box-shadow:0 2px 16px #0000002e}.dialog-span{border-bottom:1px solid #000}.dialog-span-inner{border-bottom:1px dashed #757575}.menu-card{cursor:pointer;text-align:center;background:#fff;border:1px solid #ccc;border-radius:8px;width:100%;margin-bottom:16px;padding:12px;font-size:18px;font-weight:700;transition:box-shadow .2s;box-shadow:0 2px 8px #0000000a}.menu-card-feedback{color:#000;background:#fffde7;border:1px solid #fbc02d}.menu-card-master{color:#000;background:#f3e5f5;border:1px solid #8e24aa}.menu-card-deck{color:#000;background:#ffebee;border:1px solid #e53935}.menu-card-manager{color:#000;background:#e3f2fd;border:1px solid #1976d2}.menu-card-history{color:#000;background:#e8f5e9;border:1px solid #388e3c}.menu-card-calc{color:#000;background:#f3e5f5;border:1px solid #8e24aa}.menu-card-search{color:#000;background:#e0f7fa;border:1.5px solid #00838f}.menu-card-register{color:#000;background:#fff3e0;border:1px solid #f57c00}.floating-new-btn{z-index:1000;border-radius:50%;width:56px;height:56px;padding:0;font-size:28px;position:fixed;bottom:5vh;right:5vw;box-shadow:0 2px 8px #0000002e}.tab-btn{color:#333;cursor:pointer;background:#eee;border:none;border-radius:4px;padding:8px 16px;font-size:1em;font-weight:700;transition:background .2s,color .2s}.table{border-collapse:collapse;width:100%}.table th,.table td{text-align:left;border:1px solid #ccc;padding:8px}.table thead tr{background:#f5f5f5}.feedback-form-root{min-width:340px}.feedback-form-btns{justify-content:space-between;align-items:center;gap:12px;display:flex}.btn{cursor:pointer;border:none;border-radius:4px;padding:8px 16px;font-size:1em;font-weight:700;transition:background .2s,color .2s}.btn-success{color:#fff;background:#43a047}.btn-danger{color:#fff;background:#e53935}.btn-outline{color:#1976d2;background:#fff;font-weight:700;transition:background .2s,color .2s;border:1px solid #1976d2!important}.btn-outline:disabled{color:#aaa;cursor:not-allowed;background:#f5f5f5;border-color:#ccc}.btn-outline:not(:disabled):hover{background:#e3f2fd}.btn-cancel{color:#333;background:#eee;border:none;border-radius:4px}.top-btn-group{gap:16px;margin-bottom:24px;display:flex}.user-reset-list{text-align:left;max-height:120px;margin:1rem auto;padding:0;overflow-y:auto}.user-reset-list li{margin-bottom:4px;list-style:none}.table-sort-filter{flex-direction:column;align-items:flex-start;display:flex}.table-sort-label{cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:400}.table-sort-label.active{font-weight:700}.table-filter-input{border:1px solid #ccc;border-radius:4px;width:90%;margin-top:2px;padding:2px 6px;font-size:14px}.content-container{background:#fff;border:1px solid #ccc;border-radius:8px;max-width:900px;margin:40px auto;padding:24px}.page-title{text-align:left;margin-bottom:20px;font-size:1.5em;font-weight:700}.form-container{background:#fff;border:1px solid #ccc;border-radius:8px;max-width:320px;margin:40px auto;padding:24px}.form-title{text-align:center;margin-bottom:20px}.form-group{margin-bottom:12px}.input-full{box-sizing:border-box;width:100%}.form-btn{color:#fff;cursor:pointer;background-color:#17d831;border:none;border-radius:4px;width:100%;padding:10px;font-size:16px;font-weight:700}.deckname-lov-main{box-sizing:border-box;background:#fff;border-radius:8px;width:80vw;min-width:240px;max-width:600px;max-height:85vh;padding:24px;overflow-y:auto}.deckname-lov-list{max-height:200px;margin-bottom:12px;overflow-y:auto}.deckname-lov-item{cursor:pointer;border-radius:4px;padding:8px;transition:background .15s}.deckname-lov-item:hover{background:#f5f5f5}.deckname-register-note{color:#666;font-size:12px}.match-detail-input{background:#fff;border:1px solid #ccc;border-radius:4px;margin-bottom:12px;padding:8px}.match-detail-row{align-items:center;gap:8px;width:100%;display:flex}.match-detail-col{flex-direction:column;gap:8px;display:flex}.match-detail-memo{resize:vertical;box-sizing:border-box;border:1px solid #ccc;border-radius:4px;width:100%;min-height:80px;padding:6px 8px;font-size:15px;overflow:hidden}.match-detail-switch-wrap{justify-content:flex-end;align-items:center;min-width:180px;display:flex}.match-detail-switch-label{margin-right:8px;font-size:14px;font-weight:600}.match-detail-switch{cursor:pointer;align-items:center;display:inline-flex}.match-detail-switch.disabled{cursor:not-allowed}.match-detail-switch-off,.match-detail-switch-on{color:#888;margin:0 6px;font-size:13px;font-weight:400}.match-detail-switch-track{width:38px;height:22px;display:inline-block;position:relative}.match-detail-switch-track input{opacity:0;width:0;height:0}.match-detail-switch-bar{background:#ccc;border-radius:22px;transition:background .2s;position:absolute;inset:0;box-shadow:inset 0 1px 3px #00000014}.match-detail-switch-bar.checked{background:#1976d2}.match-detail-switch-thumb{background:#fff;border-radius:50%;width:18px;height:18px;transition:left .2s;position:absolute;top:2px;left:2px;box-shadow:0 1px 3px #00000026}.match-detail-switch-thumb.checked{left:18px}.match-detail-switch-bar.disabled,.match-detail-switch-thumb.disabled{cursor:not-allowed;background:#eee!important}.battle-room-list-page{box-sizing:border-box;background:#f5f7fa;width:100vw;min-height:calc(100dvh - 42px);margin:0;padding:1.4rem .9rem 1.2rem}.battle-room-list-page__hero{background:#fff;border:1px solid #d9dee5;border-radius:.5rem;max-width:72rem;margin:0 auto 1.4rem;padding:1rem}.battle-room-list-page__title{color:#2f3a45;margin:0 0 .3rem;font-size:clamp(1.35rem,2.8vw,1.9rem)}.battle-room-list-page__subtitle{color:#5a6674;margin:0 0 .9rem}.battle-room-list-page__create-button{color:#2f3a45;background:#fff;border:1px solid #b7c0cb;border-radius:.5rem;padding:.46rem .8rem;font-weight:700}.battle-room-list-page__board{grid-template-columns:repeat(auto-fit,minmax(17rem,1fr));gap:.9rem;max-width:72rem;margin:0 auto;display:grid}.battle-room-list-page__room-card{background:#fff;border:1px solid #d9dee5;border-radius:.5rem;flex-direction:column;gap:.65rem;padding:1rem;display:flex}.battle-room-list-page__room-head{justify-content:space-between;align-items:flex-start;gap:.6rem;display:flex}.battle-room-list-page__room-meta{color:#5a6674;margin:0;font-size:.88rem}.battle-room-list-page__status-pill{border-radius:999px;justify-content:center;align-items:center;min-width:4.8rem;padding:.2rem .65rem;font-size:.84rem;font-weight:700;display:inline-flex}.battle-room-list-page__status-pill--open{color:#155724;background:#e6f4ea}.battle-room-list-page__status-pill--waiting{color:#7a5a00;background:#fff4cc}.battle-room-list-page__status-pill--playing{color:#8a1f2d;background:#fde7ea}.battle-room-list-page__status-pill--ended{color:#4b5560;background:#eef1f4}.battle-room-list-page__room-body{gap:.2rem;display:grid}.battle-room-list-page__room-line{color:#404b57;margin:0}.battle-room-list-page__room-actions{grid-template-columns:1fr 1fr;gap:.5rem;margin-top:auto;display:grid}.battle-room-list-page__join-button,.battle-room-list-page__spectate-button{border-radius:.45rem;padding:.45rem .6rem;font-weight:700}.battle-room-list-page__join-button{color:#fff;background:#218838;border:1px solid #218838}.battle-room-list-page__join-button:disabled{color:#4a5562;background:#b2becb;border-color:#b2becb}.battle-room-list-page__spectate-button{color:#2f3a45;background:#fff;border:1px solid #b7c0cb}@media (max-width:760px){.battle-room-list-page{padding:1rem .7rem 1.2rem}.battle-room-list-page__hero{padding:1rem}}.battle-waiting-page{box-sizing:border-box;background:#f5f7fa;flex-direction:column;gap:.8rem;width:100vw;height:calc(100dvh - 42px);min-height:calc(100dvh - 42px);margin:0;padding:1.4rem .9rem;display:flex;overflow:hidden}.battle-waiting-page__header{justify-content:space-between;align-items:flex-start;gap:.8rem;width:100%;max-width:72rem;margin:0 auto;display:flex}.battle-waiting-page__title{color:#163451;margin:0}.battle-waiting-page__room-meta{color:#586474;margin:.3rem 0 0;font-size:.92rem}.battle-waiting-page__leave-button{color:#2f3a45;background:#fff;border:1px solid #b7c0cb;border-radius:.5rem;padding:.45rem .75rem;font-weight:700}.battle-waiting-page__grid{flex:1;grid-template-columns:1fr 1fr;gap:.9rem;width:100%;max-width:72rem;min-height:0;margin:0 auto;display:grid}.battle-waiting-page__panel{background:#fff;border:1px solid #d9dee5;border-radius:.5rem;flex-direction:column;gap:.8rem;min-height:0;padding:1rem;display:flex}.battle-waiting-page__panel--missing{max-width:42rem;margin:0 auto}.battle-waiting-page__panel-title{color:#0f2f4c;margin:0}.battle-waiting-page__member-list{gap:.5rem;margin:0;padding:0;list-style:none;display:grid}.battle-waiting-page__member-item{color:#2d445b;border:1px solid #dbe6f2;border-radius:.55rem;justify-content:space-between;align-items:center;padding:.55rem .65rem;display:flex}.battle-waiting-page__ready{color:#16593c;font-size:.9rem;font-weight:700}.battle-waiting-page__turn-preference{border:none;flex-wrap:wrap;align-items:center;gap:.7rem;margin:0;padding:0;display:flex}.battle-waiting-page__radio-option{color:#2d445b;white-space:nowrap;align-items:center;gap:.3rem;display:flex}.battle-waiting-page__deck{gap:.3rem;display:grid}.battle-waiting-page__deck-row{grid-template-columns:auto auto;justify-content:start;gap:.5rem;display:grid}.battle-waiting-page__deck-open,.battle-waiting-page__deck-preview{color:#2f3a45;background:#fff;border:1px solid #c7d4e2;border-radius:.5rem;padding:.45rem .75rem;font-weight:700}.battle-waiting-page__deck-open:disabled,.battle-waiting-page__deck-preview:disabled{color:#8693a0;border-color:#d7dde3}.battle-waiting-page__deck-selected{color:#2d445b;margin:0;font-size:.92rem}.battle-waiting-page__label{color:#3d5369;font-size:.92rem}.battle-waiting-page__select,.battle-waiting-page__chat-input{box-sizing:border-box;border:1px solid #c4d2df;border-radius:.5rem;width:100%;padding:.6rem .7rem;font-size:1rem}.battle-waiting-page__ready-button{color:#fff;background:#218838;border:1px solid #218838;border-radius:.5rem;align-self:flex-start;padding:.45rem .75rem;font-weight:700}.battle-waiting-page__ready-button:disabled{color:#4a5562;background:#b2becb;border-color:#b2becb}.battle-waiting-page__panel--chat{min-height:0}.battle-waiting-page__chat-log{background:#f8fcff;border:1px solid #d9e5f1;border-radius:.6rem;flex:1;min-height:0;padding:.6rem;overflow:auto}.battle-waiting-page__chat-line{color:#253f58;margin:0 0 .45rem}.battle-waiting-page__chat-line--system{color:#5f6f80;font-style:italic}.battle-waiting-page__chat-input-row{grid-template-columns:1fr auto;gap:.5rem;display:grid}.battle-waiting-page__chat-send{color:#2f3a45;background:#fff;border:1px solid #c7d4e2;border-radius:.5rem;padding:.45rem .75rem;font-weight:700}@media (max-width:900px){.battle-waiting-page{height:auto;min-height:calc(100dvh - 42px);overflow:visible}.battle-waiting-page__grid{flex:none;grid-template-columns:1fr}.battle-waiting-page__header{align-items:center}.battle-waiting-page__turn-preference{gap:.5rem}.battle-waiting-page__chat-log{min-height:11rem;max-height:40dvh}}.battle-page{--battle-card-height:clamp(2.2rem,11.2dvh,2.95rem);--battle-card-width:calc(var(--battle-card-height)*.72);--battle-visible-card-height:calc(var(--battle-card-height)*.94);--battle-visible-card-width:calc(var(--battle-visible-card-height)*.72);--battle-expand-card-height:calc(var(--battle-card-height)*.82);--battle-expand-card-width:calc(var(--battle-expand-card-height)*.72);--battle-card-caption-height:.5rem;--battle-sidebar-width:8.8rem;box-sizing:border-box;background:linear-gradient(140deg,#162c47 0%,#113948 47%,#122538 100%);grid-template-rows:auto 1fr;gap:.22rem;width:100vw;height:calc(100vh - 42px);min-height:calc(100vh - 42px);max-height:calc(100vh - 42px);margin:0;padding:0 .22rem .2rem;display:grid;overflow:hidden}.battle-page__layout{grid-template-columns:minmax(8.8rem,var(--battle-sidebar-width))1fr;gap:.22rem;min-height:0;display:grid}.battle-page__header{background:#e8f3fd;border:1px solid #31536f;border-radius:.45rem;justify-content:space-between;align-items:center;gap:.3rem;padding:.16rem .24rem;display:flex}.battle-page__header-info-line{color:#183f5f;align-items:baseline;gap:.26rem;margin:0;font-size:.78rem;font-weight:700;display:flex}.battle-page__turn-label-inline{color:#6a7f93;letter-spacing:.1em;font-size:.72rem}@supports (height:100svh){.battle-page{height:calc(100svh - 42px);min-height:calc(100svh - 42px);max-height:calc(100svh - 42px)}}@supports (height:100dvh){.battle-page{height:calc(100dvh - 42px);min-height:calc(100dvh - 42px);max-height:calc(100dvh - 42px)}}.battle-page__sidebar{min-width:0;min-height:0;display:block;position:relative}.battle-page__side-panel{box-sizing:border-box;background:#eff6fb;border:1px solid #274761;border-radius:.7rem;height:100%;padding:.36rem;overflow:hidden}.battle-page__turn-end{color:#fff;white-space:nowrap;background:#f06f4b;border:none;border-radius:.55rem;padding:.28rem .45rem;font-size:.72rem;font-weight:700}.battle-page__side-panel{grid-template-rows:auto 1fr;gap:.14rem;min-height:0;display:grid}.battle-page__tabs{flex-wrap:nowrap;align-items:center;gap:.16rem;padding-bottom:.02rem;display:flex}.battle-page__tab{color:#6b7f8f;background:0 0;border:none;border-radius:0;flex:none;width:auto;padding:.02rem .04rem;font-size:.68rem;font-weight:400;line-height:1}.battle-page__tab--active{color:#163b57;font-weight:700}.battle-page__tab-separator{color:#8da1b2;font-size:.66rem;line-height:1}.battle-page__operate-box{z-index:36;background:#f8fcff;border:1px solid #c8d8e5;border-radius:.45rem;grid-template-columns:repeat(2,minmax(0,1fr));gap:.2rem;width:min(11.8rem,100vw - 1rem);max-height:min(72vh,26rem);padding:.28rem .32rem;display:grid;position:fixed;top:50%;left:0;overflow-y:auto;transform:translateY(-50%)}.battle-page__operate-title{color:#234765;grid-column:1/-1;margin:0;font-size:.62rem;font-weight:700}.battle-page__operate-selected-count{color:#47617a;grid-column:1/-1;margin:0;font-size:.58rem}.battle-page__operate-action{color:#234765;text-align:center;background:#edf6ff;border:1px solid #9eb8ce;border-radius:.32rem;width:100%;min-height:1.38rem;padding:.28rem .36rem;font-size:.62rem;font-weight:700;line-height:1.24}.battle-page__operate-action:disabled{color:#8aa0b3;background:#f3f8fc;border-color:#c9d8e4}.battle-page__panel-body{min-width:0;height:100%;min-height:0;display:flex;overflow:hidden}.battle-page__panel-body>*{flex:1;width:100%;min-width:0;min-height:0}.battle-page__sidebar-drag-handle{z-index:11;color:#2b4a66;cursor:ew-resize;touch-action:none;background:#e8f2fa;border:1px solid #96afc3;border-radius:999px;justify-content:center;align-items:center;width:.72rem;height:3.1rem;padding:0;display:flex;position:absolute;top:50%;right:-.42rem;transform:translateY(-50%)}.battle-page__sidebar-drag-handle:active{background:#d8e9f7}.battle-page__sidebar-drag-handle-icon{font-size:.6rem;line-height:1}.battle-page__dialog-backdrop{z-index:40;background:#11202e80;justify-content:center;align-items:center;padding:.8rem;display:flex;position:fixed;inset:0}.battle-page__dialog{background:#fff;border:1px solid #9eb8ce;border-radius:.55rem;align-content:start;gap:.32rem;width:min(18rem,95vw);height:auto;max-height:min(90vh,34rem);padding:.52rem;display:grid}.battle-page__dialog-title{color:#173f62;max-height:100%;margin:0;font-size:.82rem;font-weight:700}.battle-page__dialog-field{gap:.18rem;display:grid}.battle-page__dialog-field--radio{gap:.04rem}.battle-page__dialog-label{color:#395b76;font-size:.66rem;font-weight:700}.battle-page__dialog-radio-row{flex-wrap:wrap;gap:.24rem;display:flex}.battle-page__dialog-radio{color:#29465f;align-items:center;gap:.12rem;font-size:.68rem;display:flex}.battle-page__dialog-count-row{grid-template-columns:2rem minmax(0,1fr) 2rem;gap:.3rem;display:grid}.battle-page__dialog-step{color:#234765;background:#edf6ff;border:1px solid #9eb8ce;border-radius:.32rem;font-size:.86rem;font-weight:700}.battle-page__dialog-count-input{box-sizing:border-box;color:#233e54;border:1px solid #bcccdc;border-radius:.32rem;width:100%;padding:.3rem .4rem;font-size:.76rem}.battle-page__dialog-hint{color:#607589;margin:0;font-size:.62rem}.battle-page__dialog-shield-list{border:1px solid #c9d8e4;border-radius:.36rem;gap:.24rem;max-height:7.6rem;padding:.3rem;display:grid;overflow-y:auto}.battle-page__dialog-shield-option{color:#29465f;align-items:center;gap:.26rem;font-size:.7rem;display:flex}.battle-page__dialog-actions{justify-content:flex-end;gap:.28rem;display:flex}.battle-page__dialog-action{color:#234765;background:#edf6ff;border:1px solid #9eb8ce;border-radius:.32rem;justify-content:center;align-items:center;height:auto;min-height:0;padding:.2rem .58rem;font-size:.66rem;font-weight:700;line-height:2;display:inline-flex}.battle-page__dialog-shield-strip{background:#f8fcff;border:1px solid #c9d8e4;border-radius:.36rem;align-items:flex-start;gap:0;padding:.06rem .08rem .12rem;display:flex;overflow:auto hidden}.battle-page__dialog-shield-card{flex:none;margin-right:.16rem}.battle-page__dialog-shield-card.battle-page__card--no-caption{width:calc(var(--battle-card-width)*2);min-width:calc(var(--battle-card-width)*2);height:calc(var(--battle-card-height)*2);min-height:calc(var(--battle-card-height)*2);aspect-ratio:auto}.battle-page__dialog-shield-card.battle-page__card--no-caption .battle-page__card-image-wrap{width:100%;height:100%}.battle-page__dialog-shield-card:last-child{margin-right:0}.battle-page__dialog-action--primary{color:#292214;background:#f4a53f;border-color:#e0892e}.battle-page__chat-box{flex-direction:column;gap:.16rem;width:100%;min-width:0;min-height:0;display:flex;overflow:hidden}.battle-page__chat-log{box-sizing:border-box;background:#fff;border:1px solid #c4d3df;border-radius:.55rem;flex:1 1 0;min-width:0;min-height:0;padding:.3rem;overflow:hidden auto}.battle-page__chat-line{color:#273f55;overflow-wrap:anywhere;word-break:break-word;margin:0 0 .18rem;font-size:.76rem}.battle-page__chat-line--opponent{background:#eef2f7;border-radius:.35rem;padding:.12rem .24rem}.battle-page__chat-line--mine{color:#0f5f66;background:#e9faf8;border-radius:.4rem;padding:.15rem .3rem}.battle-page__chat-line--system{color:#6d4f15;background:#fff5df;border:1px solid #f3d89f;border-radius:.35rem;padding:.12rem .24rem}.battle-page__chat-input-row{flex:none;grid-template-columns:1fr auto;gap:.22rem;display:grid}.battle-page__chat-input{box-sizing:border-box;border:1px solid #c0cfdb;border-radius:.5rem;width:100%;padding:.42rem .56rem;font-size:16px}.battle-page__chat-input::placeholder{font-size:.72rem}.battle-page__chat-send{color:#292214;background:#f4a53f;border:none;border-radius:.5rem;padding:.32rem .54rem;font-size:.76rem;font-weight:700}.battle-page__expand-box{grid-template-rows:auto auto auto 1fr;gap:.14rem;width:100%;min-height:0;display:grid}.battle-page__expand-head{align-items:center;display:flex}.battle-page__expand-title{color:#173f62;margin:0;font-size:.72rem;font-weight:700}.battle-page__expand-actions{gap:.14rem;display:flex}.battle-page__expand-action-button{color:#234765;background:#edf6ff;border:1px solid #9eb8ce;border-radius:.32rem;padding:.12rem .36rem;font-size:.62rem;font-weight:700}.battle-page__expand-message{color:#5a6f83;background:#f8fbff;border:1px solid #d2dee8;border-radius:.45rem;margin:0;padding:.4rem .45rem;font-size:.66rem;line-height:1.45}.battle-page__expand-list{grid-template-columns:repeat(auto-fill,minmax(var(--battle-expand-card-width),1fr));align-content:start;gap:.16rem;min-height:0;padding-right:.04rem;display:grid;overflow:auto}.battle-page__expand-card{aspect-ratio:.72;appearance:none;-webkit-tap-highlight-color:transparent;background:#fff;border:1px solid #abc0d2;border-radius:.2rem;outline:none;width:100%;height:auto;padding:0;line-height:0;position:relative;overflow:hidden}.battle-page__expand-card>img,.battle-page__expand-card>div{box-sizing:border-box;border:0;border-radius:0;margin:0;padding:0;display:block;width:100%!important;height:100%!important}.battle-page__expand-card:focus,.battle-page__expand-card:active{background:#fff;outline:none}.battle-page__expand-card:focus-visible{box-shadow:none;outline:none}.battle-page__expand-card--selected{z-index:1;border-color:#0000}.battle-page__expand-card--selected:after{content:"";box-sizing:border-box;pointer-events:none;border:2px solid #f50;position:absolute;inset:0}.battle-page__hold-box{grid-template-rows:1fr;gap:.2rem;width:100%;min-height:0;display:grid;overflow:hidden}.battle-page__hold-box--split{grid-template-rows:1fr 1fr}.battle-page__hold-panel{background:#f8fcff;border:1px solid #c1d4e3;border-radius:.5rem;grid-template-rows:auto 1fr;gap:.16rem;min-height:0;padding:.24rem;display:grid;overflow:hidden}.battle-page__hold-title{color:#1f4867;margin:0;font-size:.66rem;font-weight:700}.battle-page__hold-actions{grid-template-columns:1fr 1fr;gap:.16rem;display:grid}.battle-page__hold-action-button{color:#234765;background:#edf6ff;border:1px solid #9eb8ce;border-radius:.3rem;min-height:1.28rem;padding:.18rem .24rem;font-size:.6rem;font-weight:700;line-height:1.2}.battle-page__hold-action-button:disabled{color:#8aa0b3;background:#f3f8fc;border-color:#c9d8e4}.battle-page__hold-list{grid-template-columns:repeat(auto-fill,minmax(var(--battle-expand-card-width),1fr));align-content:start;gap:.18rem;min-height:0;display:grid;overflow:auto}.battle-page__hold-item{grid-template-rows:auto auto;gap:.06rem;display:grid}.battle-page__hold-meta{justify-content:space-between;gap:.1rem;display:flex}.battle-page__hold-origin,.battle-page__hold-visibility{color:#4a6380;background:#eaf3fb;border-radius:.16rem;padding:.05rem .08rem;font-size:.52rem;line-height:1}.battle-page__hold-empty{color:#5f7388;place-self:center;margin:0;font-size:.68rem}.battle-page__board{grid-template-rows:1fr 1fr;gap:.16rem;min-height:0;display:grid}.battle-page__board-info-sep{color:#6a7f93}.battle-page__half-board{background:linear-gradient(#f3fbff 0%,#e8f3fc 100%);border:1px solid #2a4b66;border-radius:.4rem;grid-template-rows:1fr;gap:0;min-height:0;padding:.12rem;display:grid}.battle-page__half-grid{grid-template-rows:minmax(0,1fr) minmax(0,1fr);grid-template-columns:minmax(0,1fr) 4.2rem 11.1rem;gap:.12rem;min-height:0;display:grid}.battle-page__zone-block{background:#f7fbff;border:1px solid #c8d7e4;border-radius:.2rem;grid-template-areas:"zone";align-items:stretch;gap:0;min-height:0;padding:.02rem;display:grid;overflow:hidden}.battle-page__zone-block--upper{grid-area:1/1/auto/3}.battle-page__zone-block--lower{grid-area:2/1}.battle-page__zone-label{z-index:2;color:#445d75;background:#f7fbffc7;border-radius:.12rem;grid-area:zone;place-self:start end;margin:.02rem .06rem 0 0;padding:.01rem .06rem;font-size:.42rem;font-weight:700;line-height:1}.battle-page__zone-row{box-sizing:border-box;scrollbar-width:thin;grid-area:zone;align-items:center;gap:0;height:100%;min-height:0;padding:.8% .22rem .8% 0;display:flex;overflow:auto hidden}.battle-page__zone-row .battle-page__card{margin-right:.16rem}.battle-page__zone-row .battle-page__card:last-child{margin-right:0}.battle-page__card{color:#253a4e;min-width:var(--battle-card-width);width:var(--battle-card-width);background:0 0;border:none;border-radius:0;grid-template-rows:auto 1fr;justify-items:center;gap:.02rem;padding:0;font-size:.52rem;display:grid}.battle-page__card--selected{z-index:1;position:relative}.battle-page__card--selected:after{content:"";box-sizing:border-box;pointer-events:none;border:2px solid #f50;position:absolute;inset:0}.battle-page__card--no-caption{aspect-ratio:.72;flex:none;justify-content:center;align-self:center;align-items:stretch;width:auto;min-width:auto;height:94%;min-height:94%;display:flex}.battle-page__zone-block--type-battle .battle-page__zone-row{align-items:flex-start;padding-top:0;padding-bottom:.25%}.battle-page__zone-block--type-battle .battle-page__zone-row .battle-page__card{margin-right:calc(var(--battle-card-height) - var(--battle-card-width))}.battle-page__zone-block--type-battle .battle-page__zone-row .battle-page__card--tapped{margin-right:calc((var(--battle-card-height) - var(--battle-card-width)) + .24rem)}.battle-page__card--selected.battle-page__card--tapped:after{transform-origin:50%;transform:rotate(90deg)}.battle-page__zone-block--type-shield .battle-page__zone-row{align-items:flex-start;padding-top:0;padding-bottom:.25%}.battle-page__card--hidden{color:#f5f7fa}.battle-page__card-image-wrap{width:var(--battle-card-width);height:var(--battle-card-height)}.battle-page__card--no-caption .battle-page__card-image-wrap{justify-content:center;align-items:center;width:100%;height:100%;line-height:0;display:flex}.battle-page__card--no-caption .battle-page__card-image-wrap>img,.battle-page__card--no-caption .battle-page__card-image-wrap>div{display:block}.battle-page__card-caption{white-space:nowrap;text-overflow:ellipsis;text-align:center;color:#284664;width:100%;height:var(--battle-card-caption-height);font-size:.4rem;line-height:1;overflow:hidden}.battle-page__deck-slot-wrap{grid-area:2/2;justify-content:center;align-items:flex-end;min-height:0;display:flex}.battle-page__deck-slot{aspect-ratio:.72;box-sizing:border-box;background:#eef7ff;border:1px solid #a4bbcf;border-radius:.2rem;align-self:end;width:auto;height:94%;min-height:0;padding:0;display:block;position:relative;overflow:visible}.battle-page__deck-slot--active{border-color:#0e5c89}.battle-page__deck-card-wrap{z-index:1;width:100%;height:100%;display:block;position:relative;overflow:hidden}.battle-page__deck-slot--active .battle-page__deck-card-wrap:after{content:"";box-sizing:border-box;pointer-events:none;z-index:3;border:2px solid #f50;position:absolute;inset:0}.battle-page__deck-label{color:#163f62;z-index:2;background:#eef7ffd1;border-radius:.12rem;padding:.02rem .08rem;font-size:.42rem;font-weight:700;line-height:1;position:absolute;top:.06rem;right:.08rem}.battle-page__deck-count{z-index:1;color:#163f62;background:0 0;border-radius:0;margin:0;padding:0;font-size:.44rem;font-weight:700;line-height:1;position:absolute;bottom:-.66rem;left:50%;transform:translate(-50%)}.battle-page__right-icons{grid-area:1/3/3;grid-template-rows:1fr 1fr;grid-template-columns:repeat(4,1fr);gap:.08rem;min-width:0;display:grid;position:relative;overflow:visible}.battle-page__status-card{color:#173f62;background:#e9f4fd;border:1px solid #a3bbcf;border-radius:.2rem;align-content:center;place-items:center;gap:.02rem;padding:.04rem;font-weight:700;display:grid}.battle-page__status-card--left{background:#e2f0fb}.battle-page__status-card--right{background:#edf6ff}.battle-page__status-card--active{border-color:#f50;box-shadow:0 0 0 2px #f50}.battle-page__status-label{font-size:.42rem;line-height:1}.battle-page__status-value{font-size:.48rem;line-height:1}.battle-page__status-card--tools{color:#5a3b10;background:#ffe8c4;font-size:.52rem}.battle-page__hand-compact{color:#173f62;background:#f6fbff;border:1px solid #9eb7ca;border-radius:.2rem;flex-direction:column;justify-content:center;gap:.02rem;min-height:0;padding:.06rem;display:flex}.battle-page__hand-compact-label{font-size:.42rem;font-weight:700;line-height:1}.battle-page__hand-compact-value{font-size:.48rem;font-weight:700;line-height:1}@media (max-width:1100px){.battle-page{--battle-card-height:clamp(2rem,10.4dvh,2.65rem);--battle-expand-card-height:calc(var(--battle-card-height)*1.5)}.battle-page__half-grid{grid-template-columns:minmax(0,1fr) 3.6rem 8.9rem}.battle-page__status-label{font-size:.44rem}.battle-page__status-value{font-size:.46rem}}.battle-portrait{--bp-card-height:clamp(2.97rem,9.45dvh,4.5rem);--bp-card-width:calc(var(--bp-card-height)*.72);box-sizing:border-box;background:linear-gradient(150deg,#17395a 0%,#1f4f58 45%,#1f324b 100%);grid-template-rows:auto 1fr auto;gap:.24rem;width:100vw;height:calc(100vh - 42px);min-height:calc(100vh - 42px);max-height:calc(100vh - 42px);margin:0;padding:.22rem;display:grid;overflow:hidden}@supports (height:100svh){.battle-portrait{height:calc(100svh - 42px);min-height:calc(100svh - 42px);max-height:calc(100svh - 42px)}}@supports (height:100dvh){.battle-portrait{height:calc(100dvh - 42px);min-height:calc(100dvh - 42px);max-height:calc(100dvh - 42px)}}.battle-portrait__header{color:#1a4363;background:#e9f5ff;border:1px solid #2e5978;border-radius:.5rem;justify-content:space-between;align-items:center;gap:.3rem;padding:.24rem .34rem;display:flex}.battle-portrait__header-line{margin:0;font-size:.8rem;font-weight:700}.battle-portrait__turn-end{color:#fff;background:#f06f4b;border:none;border-radius:.45rem;padding:.28rem .48rem;font-size:.72rem;font-weight:700}.battle-portrait__body{grid-auto-rows:auto;gap:0;min-height:0;padding-right:.04rem;display:grid;overflow:hidden auto}.battle-portrait__panel{min-height:var(--bp-card-height);box-sizing:border-box;background:linear-gradient(#f5fbff 0%,#eaf4fd 100%);border:1px solid #2a4c67;border-radius:.42rem;grid-template-rows:auto 1fr;gap:.02rem;padding:.06rem .08rem;display:grid;overflow:hidden}.battle-portrait__panel--row,.battle-portrait__panel--single,.battle-portrait__panel--hold,.battle-portrait__panel--control,.battle-portrait__panel--slot{min-width:0}.battle-portrait__panel--control{grid-template-rows:1fr;place-items:center}.battle-portrait__panel--empty{background:linear-gradient(#eef5fb 0%,#e3eef8 100%);border-style:dashed;border-color:#3a597455}.battle-portrait__control-button{color:#1a4363;cursor:pointer;background:linear-gradient(#f2f9ff 0%,#d9ebfb 100%);border:1px solid #2e5978;border-radius:.34rem;width:100%;height:100%;padding:0;font-size:.6rem;font-weight:700;line-height:1.1}.battle-portrait__control-button:active{background:#cfe4f7}.battle-portrait__center-band{grid-auto-rows:minmax(calc(var(--bp-card-height)),auto);gap:.06rem;padding:.04rem 0;display:grid}.battle-portrait__hold{grid-template-rows:auto minmax(calc(var(--bp-card-height)*.84 + .08rem),1fr);box-sizing:border-box;min-height:var(--bp-card-height);background:linear-gradient(#fbfdff 0%,#eef5fc 100%);border:1px dashed #3a5974aa;border-radius:.42rem;gap:.02rem;padding:.06rem .1rem;display:grid}.battle-portrait__panel-title{color:#264861;margin:0;font-size:.54rem;font-weight:700;line-height:1}.battle-portrait__card-row{align-items:center;gap:.16rem;min-height:0;padding:.02rem 0;display:flex;overflow:auto hidden}.battle-portrait__card{height:calc(var(--bp-card-height)*.84);aspect-ratio:.72;cursor:pointer;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background:0 0;border:2px solid #0000;border-radius:.18rem;outline:none;flex:none;align-self:center;width:auto;padding:0;position:relative;overflow:hidden}.battle-portrait button:focus,.battle-portrait button:focus-visible{outline:none}.battle-portrait__card:hover{border-color:#0000}.battle-portrait__card--selected,.battle-portrait__card--selected:hover{border-color:#f2a93b}.battle-portrait__card--selected{border-color:#f2a93b;box-shadow:0 0 .2rem #f2a93baa}.battle-portrait__card-inner{width:100%;height:100%;position:relative;overflow:hidden}.battle-portrait__marker-badge{color:#f5f7fa;pointer-events:none;background:#2e7d32e0;border-radius:.5rem;padding:.04rem .18rem;font-size:.56rem;font-weight:700;line-height:1.2;position:absolute;bottom:.06rem;left:.06rem}.battle-portrait__panel--row[aria-label^=場] .battle-portrait__card,.battle-portrait__panel--row[aria-label^=バトル] .battle-portrait__card{margin:0 calc(var(--bp-card-height)*.06)}.battle-portrait__panel--target-active{border-color:#f2a93b;box-shadow:inset 0 0 0 1px #f2a93b88}.battle-portrait__panel--drop-target{border-color:#3bc6f2;box-shadow:inset 0 0 0 2px #3bc6f2aa}.battle-portrait__card--drop-target{outline-offset:-2px;outline:2px solid #3bc6f2;box-shadow:0 0 6px 1px #3bc6f2cc}.battle-portrait__equip-group{box-sizing:border-box;background:#b061d61a;border:2px solid #b061d6;border-radius:.24rem;flex:none;align-items:center;gap:.1rem;padding:.12rem;display:flex}.battle-portrait__equip-card{height:calc(var(--bp-card-height)*.7);aspect-ratio:.72;border-radius:.14rem;flex:none;width:auto;overflow:hidden}.battle-portrait__seal-badge{color:#f5f7fa;pointer-events:none;background:#141828d9;border-radius:.5rem;padding:.04rem .18rem;font-size:.56rem;font-weight:700;line-height:1.2;position:absolute;top:.06rem;right:.06rem}.battle-portrait__stack-badge{color:#f5f7fa;pointer-events:none;background:#175cc8e0;border-radius:.5rem;padding:.04rem .18rem;font-size:.56rem;font-weight:700;line-height:1.2;position:absolute;top:.06rem;left:.06rem}.battle-portrait__slot-badge{color:#f5f7fa;pointer-events:none;background:#141828d9;border-radius:.5rem;padding:.04rem .18rem;font-size:.56rem;font-weight:700;line-height:1.2;position:absolute;top:.06rem;right:.06rem}.battle-portrait__frame-link-group{box-sizing:border-box;background:#d6a5161f;border:2px solid #d6a516;border-radius:.24rem;flex:none;align-items:center;gap:.1rem;padding:.12rem;display:flex}.battle-portrait__control-button--active{color:#3a2400;background:#f2a93b;border-color:#c9892a}.battle-portrait__control-button:disabled{opacity:.5;cursor:default}.battle-portrait__slot-button{cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:none;outline:none;justify-content:center;align-items:center;width:100%;height:100%;min-height:0;padding:0;display:flex;position:relative}.battle-portrait__slot-button--active .battle-portrait__card-inner{outline-offset:-2px;outline:2px solid #f2a93b;box-shadow:0 0 6px 1px #f2a93b88}.battle-portrait__triple-grid{min-height:var(--bp-card-height);grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:0;display:grid}.battle-portrait__compact-triple-grid{min-height:var(--bp-card-height);grid-template-columns:minmax(0,1fr)minmax(calc(var(--bp-card-width) + .14rem),calc(var(--bp-card-width) + .14rem))minmax(calc(var(--bp-card-width) + .14rem),calc(var(--bp-card-width) + .14rem));gap:0;display:grid}.battle-portrait__two-grid{min-height:var(--bp-card-height);grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;display:grid}.battle-portrait__slot-content{justify-content:center;align-items:center;min-height:0;padding:.02rem 0;display:flex}.battle-portrait__panel--slot .battle-portrait__slot-content{width:100%;height:100%;margin:0 auto}.battle-portrait__panel--slot .battle-portrait__card-inner{height:calc(var(--bp-card-height)*.84);aspect-ratio:.72;width:auto}.battle-portrait__slot-empty,.battle-portrait__hold-empty,.battle-portrait__optional-note,.battle-portrait__control-body{color:#5b7387;text-align:center;justify-content:center;align-items:center;min-height:0;margin:0;font-size:.62rem;display:flex}.battle-portrait__footer{color:#264a65;text-align:center;background:#eaf5ff;border:1px solid #2e5978;border-radius:.5rem;padding:.24rem .32rem;font-size:.68rem;font-weight:700}@media (max-width:520px){.battle-portrait{--bp-card-height:clamp(2.7rem,9.9dvh,4.05rem);gap:.18rem;padding:.16rem}.battle-portrait__triple-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);gap:0}.battle-portrait__compact-triple-grid{grid-template-columns:minmax(0,1fr)minmax(calc(var(--bp-card-width) + .12rem),calc(var(--bp-card-width) + .12rem))minmax(calc(var(--bp-card-width) + .12rem),calc(var(--bp-card-width) + .12rem))}.battle-portrait__two-grid{gap:0}}.battle-portrait__band-head{justify-content:space-between;align-items:center;gap:.2rem;display:flex}.battle-portrait__band-actions{gap:.16rem;display:flex}.battle-portrait__band-button{color:#1a4363;cursor:pointer;background:linear-gradient(#f2f9ff 0%,#d9ebfb 100%);border:1px solid #2e5978;border-radius:.3rem;padding:.1rem .28rem;font-size:.54rem;font-weight:700}.battle-portrait__band-button:disabled{opacity:.5;cursor:default}.battle-portrait__pick-list{min-height:calc(var(--bp-card-height)*.84);align-items:center;gap:.16rem;padding:.04rem 0;display:flex;overflow:auto hidden}.battle-portrait__pick-card{height:calc(var(--bp-card-height)*.84);aspect-ratio:.72;cursor:pointer;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background:0 0;border:2px solid #0000;border-radius:.18rem;outline:none;flex:none;width:auto;padding:0;position:relative;overflow:hidden}.battle-portrait__pick-card:focus,.battle-portrait__pick-card:focus-visible{outline:none}.battle-portrait__pick-card:hover{border-color:#0000}.battle-portrait__pick-card--selected,.battle-portrait__pick-card--selected:hover{border-color:#f2a93b}.battle-portrait__pick-card--selected{border-color:#f2a93b;box-shadow:0 0 .2rem #f2a93baa}.battle-portrait__drag-ghost{z-index:60;pointer-events:none;color:#07283a;white-space:nowrap;background:#3bc6f2eb;border:1px solid #1a6f96;border-radius:.4rem;padding:.2rem .5rem;font-size:.75rem;font-weight:700;position:fixed;transform:translate(-50%,-50%)}.battle-portrait__overlay{z-index:50;background:#08142173;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.battle-portrait__operate-menu{box-sizing:border-box;color:#1a4363;background:#f4fbff;border:1px solid #2e5978;border-radius:.6rem;width:min(92vw,26rem);max-height:86vh;padding:.6rem;overflow-y:auto}.battle-portrait__operate-title{margin:0;font-size:.92rem;font-weight:700}.battle-portrait__operate-count{color:#436485;margin:.1rem 0 .4rem;font-size:.74rem}.battle-portrait__operate-grid{grid-template-columns:1fr 1fr;gap:.4rem;display:grid}.battle-portrait__operate-action{color:#1a4363;cursor:pointer;background:linear-gradient(#f2f9ff 0%,#d9ebfb 100%);border:1px solid #2e5978;border-radius:.4rem;min-height:2.7rem;padding:.3rem;font-size:.74rem;font-weight:700;line-height:1.2}.battle-portrait__operate-action:active{background:#cfe4f7}.battle-portrait__operate-action:disabled{opacity:.45;cursor:default}.battle-portrait__dialog-radio-row--wrap{flex-wrap:wrap}.battle-portrait__operate-count-cell{justify-content:center;align-items:center;gap:.3rem;display:flex}.battle-portrait__operate-count-label{color:#436485;font-size:.72rem}.battle-portrait__operate-count-value{text-align:center;color:#1a4363;min-width:2.4rem;font-size:.86rem;font-weight:700}.battle-portrait__chat-panel{box-sizing:border-box;background:#eef6fd;border-left:1px solid #2e5978;flex-direction:column;gap:.3rem;width:min(80vw,20rem);max-height:calc(100dvh - 42px);padding:.5rem;display:flex;position:fixed;top:42px;bottom:0;right:0}.battle-portrait__chat-head{justify-content:space-between;align-items:center;display:flex}.battle-portrait__chat-log{background:#fff;border:1px solid #cddcec;border-radius:.4rem;flex-direction:column;flex:auto;gap:.24rem;min-height:0;padding:.2rem;display:flex;overflow-y:auto}.battle-portrait__chat-line{color:#2b4a64;background:#eef3f8;border-radius:.34rem;align-self:flex-start;max-width:92%;margin:0;padding:.16rem .3rem;font-size:.74rem;line-height:1.3}.battle-portrait__chat-line--mine{background:#d4ecff;align-self:flex-end}.battle-portrait__chat-line--opponent{background:#f0e7d6}.battle-portrait__chat-line--system{color:#6a7d8e;text-align:center;background:0 0;align-self:center;font-style:italic}.battle-portrait__chat-input-row{gap:.24rem;display:flex}.battle-portrait__chat-input{border:1px solid #2e5978;border-radius:.34rem;flex:auto;min-width:0;padding:.3rem .4rem;font-size:16px}.battle-portrait__chat-send{color:#fff;cursor:pointer;background:#3d7fb5;border:none;border-radius:.34rem;padding:.3rem .6rem;font-size:.74rem;font-weight:700}.battle-portrait__detail-panel{box-sizing:border-box;background:#eef6fd;border-left:1px solid #2e5978;flex-direction:column;gap:.4rem;width:min(80vw,20rem);max-height:calc(100dvh - 42px);padding:.5rem;display:flex;position:fixed;top:42px;bottom:0;right:0;overflow-y:auto}.battle-portrait__detail-image{aspect-ratio:63/88;background:#fff;border:1px solid #cddcec;border-radius:.4rem;flex:none;justify-content:center;align-items:center;width:100%;display:flex;overflow:hidden}.battle-portrait__detail-name{color:#1a4363;margin:0;font-size:.86rem;font-weight:700}.battle-portrait__detail-zone{color:#436485;margin:0;font-size:.74rem}.battle-portrait__detail-comp{border-top:1px solid #cddcec;flex-direction:column;gap:.3rem;padding-top:.4rem;display:flex}.battle-portrait__detail-comp-title{color:#1a4363;margin:0;font-size:.76rem;font-weight:700}.battle-portrait__detail-comp-list{flex-direction:column;gap:.24rem;margin:0;padding:0;list-style:none;display:flex}.battle-portrait__detail-comp-item{color:#2b4a64;background:#fff;border:1px solid #cddcec;border-radius:.34rem;justify-content:space-between;align-items:center;gap:.4rem;padding:.2rem .4rem;font-size:.74rem;display:flex}.battle-portrait__detail-comp-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.battle-portrait__detail-highlight{color:#1a4363;cursor:pointer;background:linear-gradient(#f2f9ff 0%,#d9ebfb 100%);border:1px solid #2e5978;border-radius:.4rem;min-height:2.7rem;margin-top:auto;font-size:.78rem;font-weight:700}.battle-portrait__detail-highlight:active{background:#cfe4f7}.battle-portrait__dialog{box-sizing:border-box;color:#1a4363;background:#f4fbff;border:1px solid #2e5978;border-radius:.6rem;flex-direction:column;gap:.5rem;width:min(92vw,22rem);max-height:86vh;padding:.7rem;display:flex;overflow-y:auto}.battle-portrait__dialog-title{margin:0;font-size:.92rem;font-weight:700}.battle-portrait__dialog-field{flex-direction:column;gap:.24rem;display:flex}.battle-portrait__dialog-label{color:#436485;font-size:.72rem;font-weight:700}.battle-portrait__dialog-radio-row{gap:.8rem;display:flex}.battle-portrait__dialog-radio{align-items:center;gap:.24rem;font-size:.8rem;display:flex}.battle-portrait__dialog-count-row{align-items:center;gap:.4rem;display:flex}.battle-portrait__dialog-step{color:#1a4363;cursor:pointer;background:linear-gradient(#f2f9ff 0%,#d9ebfb 100%);border:1px solid #2e5978;border-radius:.34rem;width:2rem;height:2rem;font-size:1rem;font-weight:700}.battle-portrait__dialog-count-input{text-align:center;border:1px solid #2e5978;border-radius:.34rem;width:4rem;padding:.3rem;font-size:.86rem}.battle-portrait__dialog-hint{color:#6a7d8e;margin:0;font-size:.68rem}.battle-portrait__dialog-marker-list{flex-direction:column;align-items:flex-start;gap:.3rem;display:flex}.battle-portrait__dialog-text-input{box-sizing:border-box;border:1px solid #2e5978;border-radius:.34rem;width:100%;padding:.3rem .4rem;font-size:16px}.battle-portrait__dialog-shield-strip{flex-wrap:wrap;gap:.24rem;display:flex}.battle-portrait__dialog-shield-card{height:calc(var(--bp-card-height)*.96)}.battle-portrait__dialog-actions{justify-content:flex-end;gap:.4rem;display:flex}.battle-portrait__dialog-action{color:#1a4363;cursor:pointer;background:linear-gradient(#f2f9ff 0%,#d9ebfb 100%);border:1px solid #2e5978;border-radius:.4rem;padding:.34rem .8rem;font-size:.8rem;font-weight:700}.battle-portrait__dialog-action--primary{color:#fff;background:#3d7fb5;border-color:#2c6391}.battle-portrait__dialog-action:disabled{opacity:.45;cursor:default}.slide-menu-overlay{width:0;height:100vh;height:var(--app-height);z-index:9999;background:0 0;transition:background .3s,width .3s;position:fixed;top:0;left:0;overflow:hidden}.slide-menu-overlay.open{background:#0000004d;width:100vw}.slide-menu-panel{width:min(300px,90vw);height:100vh;height:var(--app-height);background:#fff;border-radius:0 8px 8px 0;flex-direction:column;transition:left .3s,width .3s;display:flex;position:absolute;top:0;left:-90vw;overflow:hidden;box-shadow:2px 0 8px #0003}.slide-menu-panel.open{left:0}.slide-menu-header{background:#1976d2;flex-shrink:0;justify-content:space-between;align-items:center;padding:0 1rem 1rem;display:flex}.slide-menu-title{color:#fff;font-size:1.2rem;font-weight:700}.slide-menu-close-icon{color:#fff;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;width:32px;height:32px;padding:0;font-size:2rem;line-height:1;transition:opacity .2s;display:flex}.slide-menu-close-icon:hover{opacity:.7}.slide-menu-list{flex-direction:column;flex:1;gap:16px;padding:1.5rem 1rem;display:flex;overflow-y:auto}.calculator-dialog-main{text-align:center;flex-direction:column;width:100%;max-width:500px;max-height:85vh;display:flex}.tab-bar{align-items:center;width:100%;margin-bottom:2vh;display:flex}.tab-btn{color:#1976d2;cursor:pointer;background:#eee;border:none;border-radius:2vw 0 0;flex:1;min-width:0;padding:1.5vh 0;font-size:17px;font-weight:700;transition:background .2s,color .2s}.tab-btn.active{color:#fff;background:#1976d2}.tab-btn:last-child{border-radius:0 2vw 0 0}.calc-input{text-align:right;border:1px solid #ccc;border-radius:1vw;width:100%;margin-bottom:2vh;padding:1vh 1vw;font-size:18px}.list-container{width:100%;margin-bottom:0}.list-item{text-align:left;color:#222;background:#f7f7fa;border-radius:8px;flex-direction:column;align-items:flex-start;margin-bottom:8px;padding:8px 12px;font-size:16px;display:flex}.op-select-container{flex-direction:column;margin-right:8px;display:flex}.op-select{color:#1976d2;background:#fff;border:1px solid #1976d2;border-radius:6px;width:110px;margin-bottom:4px;padding:4px 8px;font-size:15px;font-weight:700}.list-item-label{white-space:pre-line}.result-row{align-items:center;gap:12px;margin:8px 0 0;display:flex}.calc-btn{color:#fff;cursor:pointer;background:#1976d2;border:1px solid #1976d2;border-radius:6px;padding:8px 24px;font-size:16px;font-weight:700}.result-box{color:#222;background:#f7f7fa;border:1px solid #bbb;border-radius:6px;align-items:center;min-width:120px;min-height:32px;padding:0 12px;font-size:16px;display:flex}.list-divider{border-bottom:2px solid #bbb;width:100%;margin-top:8px}.title-row{justify-content:space-between;align-items:center;width:100%;margin:2px 0 0;display:flex}.title-label{color:#222;font-size:15px;font-weight:700}.help-btn{color:#1976d2;cursor:pointer;background:0 0;border:none;padding:0;font-size:22px;font-weight:700;line-height:1}.draw-row{width:100%;margin-top:10px;margin-bottom:16px}.result-msg{color:#1976d2;min-height:3vh;margin-bottom:2vh;font-size:20px}.result-msg.error{color:red}.keypad-row{box-sizing:border-box;background:#fff;width:100%;margin-top:auto;padding:1vw 2vw 2vw}.keypad-grid{grid-template-columns:repeat(4,1fr);gap:2%;width:100%;margin-bottom:3%;display:grid}.keypad-btn{aspect-ratio:1;cursor:pointer;background:#f9f9f9;border:1px solid #ccc;border-radius:1vw;width:100%;min-width:0;min-height:0;font-size:20px}.ops-row{justify-content:center;gap:3%;width:100%;margin-bottom:7vh;display:flex}.ops-btn{cursor:pointer;border:none;border-radius:1vw;flex:1;min-width:0;padding:2.5% 0;font-size:16px;font-weight:700}.ops-btn.clear,.ops-btn.back{color:#1976d2;background:#eee}.ops-btn.close{color:#fff;background:#1976d2}.prob-template-draw{color:#222;background:#f5f5f5;border-radius:8px;margin-bottom:16px;padding:16px 5px 12px}.condition-row{color:#000;border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:4px;padding:4px;font-size:16px;display:flex;position:relative}.condition-row-op{align-items:center;gap:12px;width:100%;margin-bottom:8px;display:flex}.condition-add-btns{align-items:center;gap:8px;margin:4px 0 8px;display:flex}.input-cond{border:1px solid #ccc;border-radius:6px;width:48px;margin:0 4px;padding:4px 6px;font-size:16px}.select-cond{color:#1976d2;background:#fff;border:1px solid #1976d2;border-radius:6px;height:32px;margin:0 4px;font-size:15px;font-weight:700}.btn-text-danger{color:#e53935;cursor:pointer;background:0 0;border:none;padding:0 8px;font-size:1em;font-weight:700;text-decoration:none;transition:color .2s}.btn-text-danger:hover:not(:disabled){color:#b71c1c;background:0 0}.help-dialog-header{justify-content:space-between;align-items:center;width:100%;margin-bottom:16px;display:flex}.help-dialog-title{color:#1976d2;font-size:20px;font-weight:700}.help-dialog-close{color:#1976d2;cursor:pointer;background:0 0;border:none;font-size:22px;font-weight:700}.help-dialog-body{color:#222;text-align:left;font-size:16px;line-height:1.7}.help-dialog-main{max-height:80vh;overflow-y:auto}.simple-card-register-overlay{z-index:10000;box-sizing:border-box;background:#00000080;justify-content:center;align-items:center;width:100%;height:100%;padding:30px 0;display:flex;position:fixed;top:0;left:0;overflow:hidden}.simple-card-register-dialog{color:#333;background:#fff;border-radius:8px;flex-direction:column;width:90%;max-width:600px;max-height:80vh;display:flex;overflow:hidden;box-shadow:0 4px 12px #0000004d}.simple-card-register-header{border-bottom:1px solid #e0e0e0;flex-shrink:0;justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.simple-card-register-header h2{color:#333;margin:0;font-size:16px}.simple-card-register-close-btn{cursor:pointer;color:#666;background:0 0;border:none;flex-shrink:0;padding:0;font-size:24px;line-height:1}.simple-card-register-body{flex:1;min-height:0;padding:16px;overflow:hidden auto}.master-register-buttons{flex-wrap:wrap;gap:8px;margin-bottom:12px;display:flex}.btn-sm{padding:6px 12px;font-size:14px}.common-inputs{box-sizing:border-box;background:#f9f9f9;border-radius:4px;margin-bottom:12px;padding:12px}.common-inputs-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.common-inputs h3{color:#333;margin:0;font-size:16px}.help-btn{color:#fff;cursor:pointer;background:#007bff;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:18px;font-weight:700;display:flex}.help-btn:hover{background:#0056b3}.form-row{box-sizing:border-box;margin-bottom:12px}.form-row label{color:#333;margin-bottom:4px;font-size:14px;font-weight:700;display:block}.form-row input[type=text],.form-row input[type=number],.form-row select{box-sizing:border-box;color:#333;border:1px solid #ccc;border-radius:4px;width:100%;padding:8px;font-size:16px}.form-row input[type=checkbox]{margin-right:8px}.tab-bar{border-bottom:2px solid #e0e0e0;margin-bottom:16px;display:flex;overflow-x:auto}.tab-btn{cursor:pointer;white-space:nowrap;color:#666;background:0 0;border:none;border-bottom:2px solid #0000;padding:10px 16px;font-size:14px}.tab-btn.active{color:#007bff;border-bottom-color:#007bff;font-weight:700}.surface-tabs{margin-top:20px}.surface-content{display:none}.surface-content.active{display:block}.form-group{box-sizing:border-box;margin-bottom:16px}.form-group label{color:#333;margin-bottom:4px;font-size:14px;font-weight:700;display:block}.form-group input[type=file]{margin-bottom:8px;display:block}.image-preview{margin-top:8px}.image-preview img{border:1px solid #ccc;border-radius:4px;max-width:200px;max-height:200px}.card-detail-section{box-sizing:border-box;background:#f0f8ff;border-left:4px solid #007bff;border-radius:4px;margin-top:20px;padding:16px}.card-detail-section h4{color:#007bff;margin:0 0 12px;font-size:16px}.select-display{box-sizing:border-box;color:#333;background:#fff;border:1px solid #ccc;border-radius:4px;min-height:36px;margin-bottom:8px;padding:8px;font-size:14px}.checkbox-group{flex-wrap:wrap;gap:12px;display:flex}.checkbox-group label{color:#333;align-items:center;font-weight:400;display:flex}.checkbox-group input[type=checkbox]{margin-right:4px}.link-inputs{grid-template-columns:1fr 1fr;gap:8px;display:grid}.link-inputs input{box-sizing:border-box;color:#333;border:1px solid #ccc;border-radius:4px;padding:8px;font-size:14px}.simple-card-register-footer{border-top:1px solid #e0e0e0;flex-shrink:0;justify-content:flex-end;gap:8px;padding:12px 16px;display:flex}.btn{cursor:pointer;border:none;border-radius:4px;padding:10px 20px;font-size:16px}.btn-cancel{color:#fff;background:#6c757d}.btn-cancel:hover:not(:disabled){background:#5a6268}.btn-primary{color:#fff;background:#007bff}.btn-primary:hover:not(:disabled){background:#0056b3}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-outline{color:#007bff;background:#fff;border:1px solid #007bff}.btn-outline:hover{color:#fff;background:#007bff}@media (max-width:600px){.simple-card-register-dialog{width:95%;max-height:80vh}.simple-card-register-body,.common-inputs,.card-detail-section{padding:12px}.link-inputs{grid-template-columns:1fr}.master-register-buttons{flex-direction:column}.master-register-buttons button{width:100%}}.simple-help-dialog-overlay{z-index:10001;box-sizing:border-box;background:#00000080;justify-content:center;align-items:center;width:100%;height:100%;padding:30px 0;display:flex;position:fixed;top:0;left:0;overflow:hidden}.simple-help-dialog{color:#333;background:#fff;border-radius:8px;flex-direction:column;width:90%;max-width:600px;max-height:80vh;display:flex;overflow:hidden;box-shadow:0 4px 12px #0000004d}.simple-help-dialog-header{border-bottom:1px solid #e0e0e0;flex-shrink:0;justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.simple-help-dialog-header h2{color:#333;margin:0;font-size:16px}.simple-help-dialog-close-btn{cursor:pointer;color:#666;background:0 0;border:none;flex-shrink:0;padding:0;font-size:24px;line-height:1}.simple-help-dialog-body{flex:1;min-height:0;padding:16px;overflow:hidden auto}.help-dialog .dialog-footer{box-sizing:border-box;border-top:1px solid #e0e0e0;flex-shrink:0;justify-content:flex-end;gap:8px;padding:12px 16px;display:flex}.help-item{border-bottom:1px solid #e0e0e0;margin-bottom:20px;padding-bottom:16px}.help-item:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.help-item h4{color:#007bff;margin:0 0 8px;font-size:16px;font-weight:700}.help-item p{color:#333;margin:0;font-size:14px;line-height:1.6}
