/* Shared visual scale and original game icon assets. */
.type-icon>img{width:22px;height:22px;object-fit:contain;flex:none}.type-icon:not(.labeled){background:transparent!important;padding:0}.type-icon:not(.labeled)>img{width:100%;height:100%}.type-icon.labeled{background:color-mix(in srgb,var(--type) 18%,#242b34);border:1px solid color-mix(in srgb,var(--type) 48%,transparent);gap:6px}.type-icon.labeled>img{width:22px;height:22px}.poke .type-pair{gap:4px;flex-wrap:wrap;justify-content:center}.poke .type-icon.labeled{height:26px;font-size:11px;padding:3px 5px}.poke .type-icon.labeled>img{width:18px;height:18px}.lobby-pokemon-list .type-icon.labeled{font-size:11px;padding:3px 5px;height:26px}.lobby-pokemon-list .type-icon.labeled>img{width:18px;height:18px}
/* Larger pointer targets for point allocation. */
.stat-adjust input[type=range]{appearance:none;-webkit-appearance:none;height:52px;background:transparent;cursor:pointer;padding:0;touch-action:pan-y}.stat-adjust input[type=range]::-webkit-slider-runnable-track{height:24px;background:linear-gradient(90deg,#d4c873,var(--stat));border-radius:8px}.stat-adjust input[type=range]::-moz-range-track{height:24px;background:linear-gradient(90deg,#d4c873,var(--stat));border-radius:8px}.stat-adjust input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:28px;height:40px;margin-top:-8px;border-radius:8px;background:#edf1f4;border:3px solid #697483;box-shadow:0 2px 7px #0007}.stat-adjust input[type=range]::-moz-range-thumb{width:24px;height:36px;border-radius:8px;background:#edf1f4;border:3px solid #697483}.presets{display:flex;justify-content:center;margin-top:auto;padding-top:18px}.presets .reset-stats{min-width:150px;background:#542e37;color:#ffb6bd;border:1px solid #9d5663;font-size:15px;padding:12px 28px}.presets .reset-stats:hover{background:#703844}.stats-editor{display:flex;flex-direction:column;gap:14px}.stats-editor .presets{padding-bottom:4px}.stat-adjust>button{min-width:44px;min-height:44px}
/* Ten readable rows, with uninterrupted native scrolling. */
.picker-move{height:min(1000px,calc(100dvh - 24px));width:min(1400px,calc(100vw - 24px))}.picker-move #pickerBody{grid-template-columns:minmax(0,1fr) 350px;grid-template-rows:108px 38px minmax(0,1fr)}.picker-move .move-table{container-type:size}.move-table-row{height:10cqh;min-height:50px;grid-template-columns:minmax(170px,1fr) 56px 60px 66px 70px;font-size:15px;padding:0 18px}.move-name strong{font-size:16px}.move-table-row .type-icon{width:28px;height:28px}.move-table-head{grid-template-columns:minmax(170px,1fr) 56px 60px 66px 70px;padding:0 18px}.move-table-row.selected{background:#343c46;border-left:3px solid #ddcb83;padding-left:15px}.move-table-row .move-name{gap:9px}.move-preview-pane .move-preview{padding:20px;display:flex;flex-direction:column;gap:18px}.move-preview-pane .preview-title{flex-wrap:nowrap;gap:10px}.move-preview-pane .preview-title h3{font-size:23px}.move-preview-pane .preview-title small{font-size:12px}.range-preview{margin:0;background:#171e27;border:1px solid #3c4653;border-radius:12px;overflow:hidden}.range-preview svg{width:100%;height:164px;display:block;padding:12px}.range-area{fill:color-mix(in srgb,var(--type) 24%,transparent);stroke:var(--type);stroke-width:3}.range-area .range-line{stroke:var(--type);opacity:.55}.range-preview figcaption{display:flex;flex-direction:column;gap:5px;padding:10px 13px;border-top:1px solid #3b4550;color:#e1e6ec;font-size:13px}.range-preview figcaption small{color:#99a6b5;font-size:11px}.move-metrics{display:grid;grid-template-columns:1fr 1fr;margin:0;gap:1px;background:#3b4552;border:1px solid #3b4552;border-radius:10px;overflow:hidden}.move-metrics>div{padding:13px 15px;background:#29313d}.move-metrics dt{font-size:12px;color:#a4afbf}.move-metrics dd{margin:6px 0 0;font-size:23px;font-weight:750;color:#e5d58d;font-variant-numeric:tabular-nums}.move-metrics dd small{font-size:12px;margin-left:4px;color:#b9c3cf}.move-description h4{font-size:13px;margin:0;color:#c6d0dc}.move-preview-pane .move-description p{font-size:14px;line-height:1.8;margin:8px 0}.move-description>small{font-size:11px;line-height:1.7;color:#8f9cad}.move-preview-pane .equip-button{width:100%;padding:13px;font-size:15px}.move-preview-pane .preview-footer{font-size:11px;color:#8495a6}.preview-empty{padding:32px 20px;color:#9ba9b8;text-align:center}
.equipped-move{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.equipped-move.empty-slot{border:1px dashed #657283;min-height:90px;background:#202730;color:#aab8c7;display:flex;align-items:center;justify-content:space-between;padding:18px}.equipped-move.drag-source{opacity:.35}.equipped-move.drop-target{outline:2px solid #e2cd82;outline-offset:2px;background:#464334}.move-drag-ghost{position:fixed!important;z-index:2147483647;pointer-events:none;transform:translate(-50%,-50%) rotate(-3deg)!important;width:240px!important;opacity:.95;box-shadow:0 15px 35px #0009!important}
/* Lobby: players, connection and four compact rules in a viewport-sized room. */
.lobby-dialog{width:min(1240px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}.lobby-heading{padding:14px 22px}.lobby-heading h2{font-size:24px;margin-top:4px}.lobby-scroll{padding:14px 22px}.lobby-status{margin:12px 0}.lobby-layout{gap:16px;grid-template-columns:minmax(0,1fr) 260px}.lobby-player{padding:12px}.seat-portrait{height:92px;margin:4px 0}.seat-portrait img{width:100px;height:100px}.lobby-player h3{font-size:16px;margin:5px 0}.lobby-player p{margin:3px 0}.seat-types{margin:6px 0 9px}.seat-moves{grid-template-columns:1fr 1fr;padding-top:9px;gap:5px}.seat-moves>button,.seat-moves>span{font-size:12px;min-height:31px;overflow:hidden;text-overflow:ellipsis}.seat-moves .type-icon{flex:none}.seat-build-options{margin-top:8px}.lobby-options{padding:16px}.training-mark{display:none}.room-caption{margin:10px 0}.room-divider{margin:20px 0}.lobby-options input{height:40px;padding:8px 10px}.lobby-options button{padding:10px}.lobby-options .primary{margin-top:9px}.lobby-options .leave-room{margin-top:10px}#roomCode{margin:9px 0 14px}.room-rules-panel{margin-top:14px;padding:13px}.room-rules-title{margin-bottom:10px}.room-rule-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.rule-cell{padding:11px;gap:9px;align-content:start}.rule-cell strong{font-size:13px}.rule-cell small{display:none}.rule-toggle{min-width:62px;padding:7px}.health-multiplier{gap:8px}.health-multiplier output{font-size:17px}.rule-segments button{font-size:12px;padding:8px 2px}.rule-health input{height:20px}.lobby-footer{padding:12px 22px}.lobby-footer .primary{padding:12px;min-width:210px}
/* Floating health bars and restrained, translucent scoreboard. */
#battle .battleTop>.health-card{border:0;background:transparent;padding:8px 4px;box-shadow:none;backdrop-filter:none;filter:drop-shadow(0 2px 3px #000c)}.health-card .hp{border:0;height:13px;box-shadow:0 2px 8px #000a;background:#131b25c9}.health-line,.health-extra{text-shadow:0 2px 4px #000}.battleTop .timer{background:#141d2970;border:0;box-shadow:0 3px 14px #0003}.battleTop{width:min(1060px,88vw)}#roundAnnouncement{position:absolute;top:clamp(120px,20vh,180px);left:50%;transform:translateX(-50%);text-align:center;pointer-events:none;z-index:5;min-width:220px}#roundAnnouncement #roundLabel{display:block;color:#e6d393;font-weight:800;font-size:16px;letter-spacing:3px;text-shadow:0 2px 6px #000}#roundAnnouncement #announce{position:static;transform:none;inset:auto;margin:8px 0 0;font-size:clamp(32px,5vw,58px);font-weight:900;line-height:1.25;color:#f8e9ae;white-space:pre-line;text-shadow:0 3px 0 #4b402d,0 5px 16px #0009}#roundAnnouncement #announce:empty{display:none}
.result-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}#resultText{margin:6px 0 0}#resultScore{text-align:center;flex:none}#resultScore>small{font-size:10px;color:#a0aab7;letter-spacing:2px}#resultScore>div{display:flex;gap:15px;align-items:center;justify-content:center}#resultScore b{font-size:58px;line-height:1.15;font-weight:850}#resultScore .score-mine{color:#b6dfbb}#resultScore .score-enemy{color:#e7a0a7}#resultScore span{font-size:25px;color:#6e7b8c}.report-summary{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.report-summary>button{text-align:left;background:#18232e;border:1px solid #3b4a59;padding:15px 18px;border-radius:10px}.report-summary>button.selected{border-color:#b0cba9;background:#2d3c37}.report-summary>button:nth-child(2).selected{border-color:#d09ca4;background:#443139}.report-summary>button:nth-child(2) strong{color:#edb1ba}.report-shield{display:flex;justify-content:space-between;gap:15px;padding:14px 17px;background:#1a2634;border-radius:9px;color:#a6b8ca;font-size:13px;margin:-10px 0 22px}.report-shield b{color:#bdd4ee}.report-table{margin-bottom:22px}
@media(max-width:1000px){.picker-move #pickerBody{grid-template-columns:minmax(0,1fr) 290px}.move-table-row,.move-table-head{grid-template-columns:minmax(120px,1fr) 44px 46px 57px 59px;padding-left:10px;padding-right:10px}.move-name strong{font-size:14px}.move-table-row{font-size:13px}.move-name .category-icon{display:none}.move-preview-pane .move-preview{padding:15px;gap:13px}.lobby-layout{grid-template-columns:minmax(0,1fr) 220px}.seat-moves>button{font-size:10px;padding:5px}.seat-build-options{gap:4px}.room-rule-grid{gap:6px}.rule-cell{padding:8px}}
@media(max-width:650px){.picker-move #pickerBody{grid-template-columns:1fr;grid-template-rows:108px 32px minmax(0,1fr) 160px}.picker-move .move-preview-pane{grid-column:1;grid-row:4;overflow:auto}.move-table-row{min-height:42px}.move-preview-pane .move-preview{display:grid;grid-template-columns:1fr 1fr;gap:12px}.move-preview-pane .preview-title{grid-column:1}.move-preview-pane .preview-title h3{font-size:17px}.move-preview-pane .preview-title small{font-size:10px}.range-preview{grid-column:2;grid-row:1/3}.range-preview svg{height:100px}.range-preview figcaption{font-size:11px;padding:6px 9px}.range-preview figcaption small{font-size:9px}.move-metrics{grid-column:1}.move-metrics>div{padding:7px}.move-metrics dt{font-size:10px}.move-metrics dd{font-size:17px;margin-top:3px}.move-description{grid-column:1/-1}.move-preview-pane .move-description p{font-size:12px}.move-preview-pane .equip-button{grid-column:1/-1;margin:0}.move-preview-pane .preview-footer{grid-column:1/-1}.lobby-layout{grid-template-columns:1fr}.lobby-scroll{padding:12px}.lobby-heading{padding:12px 15px}.lobby-heading h2{font-size:20px}.lobby-heading small{display:none}.seat-portrait{height:70px}.seat-portrait img{height:80px;width:80px}.room-rule-grid{grid-template-columns:1fr 1fr}.lobby-player{padding:9px}.lobby-options{padding:12px}.lobby-options .room-caption,.room-rules-title>span{display:none}.seat-moves{grid-template-columns:1fr 1fr}.seat-moves>button{font-size:9px;gap:3px}.seat-types .type-icon.labeled{font-size:9px}.seat-types .type-icon img{width:15px;height:15px}.lobby-footer{padding:10px 14px}.lobby-footer .primary{min-width:150px}.room-rules-panel{margin-top:10px;padding:10px}.lobby-status{font-size:11px}.result-heading{gap:12px}#resultScore b{font-size:42px}#resultScore>div{gap:10px}#resultTitle{font-size:23px}#roundAnnouncement{top:145px}#roundAnnouncement #roundLabel{font-size:12px}.battleTop{width:calc(100% - 24px)}.health-card .hp{height:10px}}
@media(max-height:650px) and (min-width:651px){.lobby-dialog{max-height:calc(100dvh - 12px)}.lobby-heading{padding:8px 18px}.lobby-heading small{display:none}.lobby-heading h2{font-size:19px}.lobby-scroll{padding:9px 18px}.lobby-mode button{padding:7px 16px}.lobby-status{margin:7px 0}.lobby-layout{grid-template-columns:minmax(0,1fr) 230px;gap:12px}.seat-portrait{height:48px;margin:0}.seat-portrait img{height:60px;width:60px}.lobby-player h3{font-size:13px;margin:2px}.lobby-player p{font-size:11px;margin:0}.seat-types{margin:4px 0}.seat-moves{padding-top:5px}.seat-build-options{margin-top:5px}.seat-build-options button{padding:4px}.seat-label{font-size:9px}.lobby-options{padding:10px}.lobby-options .room-caption{display:none}.lobby-options label{font-size:10px;margin-bottom:4px}.lobby-options input{height:30px}.lobby-options button{padding:7px;font-size:12px}.lobby-options .primary{margin-top:5px}.room-divider{margin:14px 0}.room-rules-panel{margin-top:8px;padding:8px}.room-rules-title{display:none}.rule-cell{padding:7px;gap:5px}.rule-segments button{padding:6px 2px}.rule-toggle{padding:5px}.lobby-footer{padding:8px 18px}.lobby-footer .primary{padding:8px}.lobby-player{padding:8px}#roundAnnouncement{top:85px}#roundAnnouncement #roundLabel{font-size:10px}#roundAnnouncement #announce{font-size:30px}.picker-move .move-table-row{min-height:42px}}

.lobby-section-switch{display:none}@media(max-width:650px){.lobby-section-switch{display:flex;gap:4px}.lobby-section-switch button{font-size:12px;padding:8px 13px;background:#202a35;border-color:#455161;color:#a7b5c4}.lobby-section-switch button.active{background:#474331;color:#e5d58e;border-color:#968754}.lobby-rules{display:none}.lobby-dialog:not([data-section=rules]) .room-rules-panel{display:none}.lobby-dialog[data-section=rules] .lobby-layout{display:none}.lobby-dialog[data-section=rules] .room-rules-panel{margin-top:8px}.lobby-dialog .lobby-options .room-divider{display:none}.lobby-options #roomEntry{gap:6px 9px}.lobby-options #roomEntry label{font-size:10px}.lobby-player p{font-size:11px}.seat-build-options button{font-size:9px;padding:6px 4px}}

/* Circular source icons; filter labels are separate from roster badges. */
.type-icon:not(.labeled),.type-icon>img,.type-icon.labeled>img{border-radius:50%!important;overflow:hidden}.type-icon.labeled{border-radius:20px}.poke .type-pair{flex-wrap:nowrap}.poke .type-icon{width:25px;height:25px}.filters button,#filters button{display:inline-flex;align-items:center;justify-content:center;gap:7px}#filters .type-icon{width:24px;height:24px}.hp-formula{color:#a7b3c2;line-height:1.5}
.health-line{grid-template-columns:42px minmax(0,1fr) auto!important;column-gap:8px}.health-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.health-name strong{white-space:nowrap}.health-name .status-pill{font-size:11px;padding:3px 7px;line-height:1.25}.health-name .status-pill[hidden]{display:none}#pHealth .health-line{grid-template-columns:auto minmax(0,1fr) 42px!important}#pHealth .hud-portrait{grid-column:3;grid-row:1}#pHealth .health-name{grid-column:2;grid-row:1;justify-content:flex-end;text-align:right}#pHealthValue{grid-column:1;grid-row:1}#pHealth .hp i{float:right}.health-ranks{display:flex!important;flex-direction:column;align-items:stretch;gap:4px;margin-top:7px}.health-ranks[hidden]{display:none!important}.rank-line{display:flex;gap:5px;flex-wrap:wrap;min-height:20px}#pHealth .rank-line{justify-content:flex-end}#eHealth .rank-line{justify-content:flex-start}.health-extra{gap:8px;flex-wrap:wrap}.field-status{font-size:10px;color:#bdcbbd}#pHealth .health-extra{justify-content:flex-end}#eHealth .health-extra{justify-content:flex-start}
.room-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px 16px}.rule-cell{min-height:0;padding:9px 12px}.room-rules-panel{padding:12px 14px 24px}.lobby-footer{gap:18px}.lobby-footer .primary{width:auto;flex:0 1 300px}.lobby-footer>button:not(.primary){white-space:nowrap;flex-shrink:0}
@media(max-width:650px){.health-line{grid-template-columns:30px minmax(0,1fr) auto!important;gap:4px}#pHealth .health-line{grid-template-columns:auto minmax(0,1fr) 30px!important}.hud-portrait{width:30px!important;height:30px!important}.health-name{gap:3px}.health-name strong{font-size:13px}.health-name .status-pill{font-size:9px}.rank-chip{font-size:9px}.room-rule-grid{gap:7px}.lobby-footer .primary{flex-basis:160px}.lobby-footer{gap:8px}}

#eHealthValue{grid-column:3;grid-row:1}#eHealth .hud-portrait{grid-column:1;grid-row:1}#eHealth .health-name{grid-column:2;grid-row:1}.health-extra{height:auto;min-height:16px}
