/* Dua pemain di satu layar. Setiap panel memiliki guliran dan wilayah sentuh sendiri. */
.play-mode-section{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 21px;margin:24px 0 0;border:1.5px solid #d3e8ee;border-radius:20px;background:#fff;box-shadow:0 4px 0 #d6e8ee60}.play-mode-copy h2{font-size:25px;line-height:1.1;color:#28586e}.play-mode-copy p{font-size:12px;color:#7393a2;margin-top:6px}.play-mode-toggle{display:flex;padding:5px;gap:6px;background:#edf5f8;border:1px solid #dfecf0;border-radius:14px}.play-mode-toggle button{min-height:49px;padding:10px 20px;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;color:#5c8597;font-weight:900}.play-mode-toggle button svg{width:20px;height:20px}.play-mode-toggle button[aria-pressed="true"]{background:#14899e;color:#fff;box-shadow:0 3px 0 #096e82}.play-mode-toggle button[aria-pressed="true"]:first-child{background:#fff;color:#33697e;box-shadow:0 3px 0 #c7dfe7}.play-mode-description{font-size:11px;color:#7194a5;margin:9px 2px 0}.player-0{--player:#1585b0;--player-dark:#145777;--player-soft:#edf8fd;--player-line:#bcdfed;--player-fill:#d6edf8}.player-1{--player:#d77c39;--player-dark:#955221;--player-soft:#fff6ec;--player-line:#f2d8b8;--player-fill:#ffead2}
body[data-view="duel"]{height:100vh;height:100dvh;overflow:hidden;overscroll-behavior:none;background:#eef5f9}body[data-view="duel"]>.site-header,body[data-view="duel"]>.site-footer,body[data-view="duel"]>.skip-link{display:none}body[data-view="duel"]>main{max-width:none;width:100%;height:100%;padding:clamp(6px,1vw,18px);margin:0;overflow:hidden}body[data-view="duel"] #toast{z-index:200}#duel-view{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:clamp(7px,.8vw,14px);animation:none;position:relative}#duel-view button{-webkit-user-select:none;user-select:none}#duel-view button:focus-visible{outline:3px solid #c99521;outline-offset:3px}.duel-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:clamp(10px,1.2vw,25px);padding:8px 13px;border:1px solid #d9e8ef;border-radius:17px;background:#ffffffeb;box-shadow:0 3px 0 #d6e5ed55}.duel-tool{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:46px;min-height:46px;padding:9px 13px;border:1.5px solid #d8e7ee;border-radius:11px;box-shadow:0 2px 0 #d6e6ed;background:#fff;color:#4a768b;font-size:13px;line-height:1.1;flex-shrink:0}.duel-tool:hover{background:#eff8fc}.duel-tool:active{transform:translateY(2px);box-shadow:none}.duel-tool:disabled{opacity:.45}.duel-tool svg{width:21px;height:21px}.duel-tools{display:flex;align-items:center;gap:8px}.duel-round-label{min-width:0}.duel-round-label>span{font-size:clamp(9px,.65vw,14px);color:#6a9aaa;font-weight:900;letter-spacing:1.2px}.duel-round-label h1{font-size:clamp(22px,1.85vw,38px);line-height:1.05;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.duel-clock{display:flex;align-items:center;gap:12px;padding:6px 15px;border:1px solid #d1e9ed;border-radius:12px;background:#e9f7f9;min-width:146px;justify-content:space-between}.duel-clock>span{font-size:11px;color:#6493a1;font-weight:700;max-width:60px;line-height:1.3}.duel-clock time{font-family:Baloo,Nunito,sans-serif;font-size:clamp(26px,2.1vw,43px);line-height:1.1;color:#25798d;font-variant-numeric:tabular-nums}.duel-clock.time-low{background:#fff1e0;border-color:#f0ce9f}.duel-clock.time-low time{color:#b67632}.duel-arena{position:relative;min-height:0;min-width:0}.duel-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:clamp(8px,1.2vw,22px);height:100%;min-height:0}.duel-panel{display:grid;grid-template-rows:auto 5px minmax(0,1fr) auto;border:2px solid var(--player-line);border-radius:clamp(15px,1.4vw,25px);background:#fff;min-width:0;min-height:0;overflow:hidden;box-shadow:0 4px 0 #b8ccd633;isolation:isolate}.duel-player-header{display:flex;align-items:center;gap:clamp(9px,1vw,20px);padding:clamp(10px,1.05vw,21px) clamp(12px,1.25vw,26px);background:var(--player-soft);min-width:0}.duel-player-badge{height:clamp(39px,3.2vw,65px);width:clamp(39px,3.2vw,65px);display:grid;place-items:center;flex-shrink:0;background:var(--player);color:#fff;font-family:Baloo;font-size:clamp(20px,1.7vw,33px);border-radius:13px;box-shadow:0 4px 0 color-mix(in srgb,var(--player),#24495a 20%);line-height:1}.duel-player-name{flex:1;min-width:0}.duel-player-name>span{font-size:clamp(8px,.65vw,14px);color:var(--player);font-weight:900;letter-spacing:1px}.duel-player-name h2{font-size:clamp(21px,1.8vw,37px);line-height:1.1;color:var(--player-dark);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}.duel-score,.duel-progress-text{display:flex;flex-direction:column;align-items:center;flex-shrink:0;gap:2px;line-height:1}.duel-score{min-width:52px}.duel-score b{font-family:Baloo;font-size:clamp(29px,2.5vw,52px);color:var(--player-dark);font-variant-numeric:tabular-nums}.duel-score span,.duel-progress-text span{font-size:clamp(9px,.7vw,14px);color:var(--player);font-weight:700}.duel-progress-text b{font-family:Baloo;font-size:clamp(22px,1.8vw,36px);color:var(--player-dark)}.duel-player-progress{background:var(--player-fill);overflow:hidden}.duel-player-progress>span{height:100%;display:block;width:0;background:var(--player);transition:width .3s ease}.duel-play-area{min-height:0;position:relative}.duel-scroll{height:100%;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:0 clamp(10px,1.2vw,23px) clamp(11px,1.2vw,23px);scrollbar-width:thin;scrollbar-color:var(--player-line) transparent;scrollbar-gutter:stable;min-height:0;min-width:0;-webkit-overflow-scrolling:touch}.duel-board{min-height:100%;min-width:0}.duel-tray{position:sticky;top:0;z-index:3;background:#fff;padding:11px 0 14px;border-bottom:1px solid #dfedf2;margin-bottom:13px}.duel-instruction{font-size:clamp(11px,.85vw,19px);color:#6f8b9c;font-weight:700;line-height:1.45;margin:0 0 10px;padding:0}.duel-board>.duel-instruction{padding-top:14px;margin-bottom:14px}.duel-sources{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(5px,.6vw,12px)}.duel-source{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:2px solid var(--player-line);border-radius:14px;padding:8px 4px;background:var(--player-soft);box-shadow:0 3px 0 var(--player-fill);min-width:0;min-height:58px;touch-action:pan-y;transition:background .15s,border-color .15s,transform .15s}.duel-source.can-drag{touch-action:none;cursor:grab}.duel-source img{width:clamp(38px,4.1vw,83px);height:clamp(38px,4.1vw,83px);pointer-events:none}.duel-source span{font-size:clamp(9px,.75vw,16px);line-height:1.2;color:var(--player-dark);font-weight:900;pointer-events:none}.duel-source.is-selected{border-color:var(--player);background:var(--player-fill);box-shadow:0 3px 0 var(--player);transform:translateY(-2px)}.duel-source.is-matched{opacity:.35}.duel-source.dragging{opacity:.35}.duel-targets{display:grid;grid-template-columns:1fr;gap:clamp(8px,.9vh,15px)}.duel-target{display:flex;align-items:center;gap:clamp(10px,1vw,21px);min-height:clamp(82px,9.5vh,163px);border:2px dashed var(--player-line);border-radius:15px;background:#fcfdff;padding:clamp(11px,.9vw,20px);text-align:left;box-shadow:0 2px 0 #e3edf133;min-width:0;touch-action:pan-y;transition:border-color .15s,background .15s}.duel-target-art{width:clamp(47px,4vw,79px);height:clamp(47px,4vw,79px);background:var(--player-soft);border:1px solid var(--player-line);border-radius:13px;display:grid;place-items:center;flex-shrink:0;color:var(--player);font-family:Baloo;font-size:clamp(23px,2vw,39px);pointer-events:none}.duel-target-art img{height:100%;width:100%;pointer-events:none}.duel-target-copy{flex:1;min-width:0;pointer-events:none}.duel-target-copy small{display:block;font-size:clamp(8px,.6vw,13px);letter-spacing:1px;font-weight:900;color:var(--player);margin-bottom:4px}.duel-target-copy strong{display:block;font-size:clamp(12px,1.05vw,27px);font-weight:700;line-height:1.45;color:#3f6378;overflow-wrap:anywhere}.duel-target-check{display:none;flex-shrink:0;width:23px;height:23px;align-items:center;justify-content:center;border-radius:50%;background:#71ae83;color:white;font-size:14px}.duel-target.is-matched{background:#f1faf1;border-style:solid;border-color:#a6d1ad}.duel-target.is-matched .duel-target-art{background:transparent;border:0}.duel-target.is-matched .duel-target-check{display:flex}.duel-target.drag-over{background:var(--player-fill);border-color:var(--player);border-style:solid}.duel-scenarios .duel-target{border-style:solid}.duel-feedback{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:clamp(45px,4.7vh,75px);background:var(--player-soft);border-top:1px solid var(--player-line);padding:clamp(9px,.8vw,17px) clamp(12px,1.2vw,24px);color:var(--player-dark);font-size:clamp(11px,.8vw,18px);line-height:1.45}.duel-feedback-text{min-width:0;flex:1}.duel-feedback.correct{background:#eff9f0;color:#46875c}.duel-feedback.wrong{background:#fff4df;color:#9a743a}.duel-error-count{white-space:nowrap;font-size:clamp(9px,.65vw,14px);opacity:.8;flex-shrink:0}.duel-panel.player-done .duel-player-name:after{content:'✓ MISI SELESAI';display:block;color:#3a9a70;font-weight:900;font-size:9px;letter-spacing:.6px;margin-top:4px}.duel-ready-cover{position:absolute;inset:0;z-index:5;background:linear-gradient(145deg,#ffffffee,var(--player-soft));backdrop-filter:blur(7px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(8px,1.1vh,18px);padding:20px;text-align:center;overflow:auto}.duel-ready-icon{height:clamp(60px,6vw,115px);width:clamp(60px,6vw,115px);display:grid;place-items:center;background:var(--player-fill);color:var(--player);border:3px solid white;border-radius:27%;box-shadow:0 5px 0 var(--player-line);font-family:Baloo;font-size:clamp(35px,3.5vw,67px);transform:rotate(-7deg);margin-bottom:5px;flex-shrink:0}.duel-ready-cover h3{font-size:clamp(26px,2.7vw,52px);color:var(--player-dark);line-height:1.1;overflow-wrap:anywhere;max-width:100%}.duel-ready-cover p{font-size:clamp(12px,1vw,23px);color:#6e8ca0;line-height:1.55}.duel-ready-button{display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:clamp(52px,5vw,85px);padding:12px clamp(25px,3vw,57px);font-size:clamp(16px,1.5vw,29px);font-weight:900;border:2px solid var(--player);border-radius:15px;background:var(--player);color:#fff;box-shadow:0 5px 0 var(--player-dark);touch-action:manipulation;flex-shrink:0}.duel-ready-button svg{width:25px;height:25px}.duel-ready-button.is-ready{background:var(--player-soft);color:var(--player);box-shadow:0 4px 0 var(--player-line);border-color:var(--player-line)}.duel-ready-message{color:#6d8c9d;font-size:clamp(10px,.8vw,18px);line-height:1.4}.duel-countdown{position:absolute;inset:0;z-index:10;background:#e9f5fa99;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;pointer-events:auto}.duel-countdown>div{background:#fff;border:4px solid #d7eaf2;border-radius:32px;padding:28px 50px;display:flex;flex-direction:column;align-items:center;box-shadow:0 7px 0 #b8d8e44a;max-width:90%}.duel-countdown span{font-size:clamp(14px,1.4vw,25px);font-weight:800;color:#638ca1}.duel-countdown b{font-family:Baloo;font-size:clamp(85px,12vw,195px);line-height:1.15;color:#168ba4}.duel-countdown small{font-size:12px;color:#7896a7}.duel-drag-ghost{position:fixed;z-index:250;pointer-events:none;transform:translate(-50%,-50%);width:clamp(80px,7vw,135px);display:flex;align-items:center;flex-direction:column;gap:4px;filter:drop-shadow(0 9px 8px #1f4d5536)}.duel-drag-ghost>img{height:auto;width:90%;transform:rotate(-5deg);pointer-events:none}.duel-drag-ghost>span{font-size:10px;font-weight:900;line-height:1.2;background:var(--player);color:#fff;padding:5px 8px;border-radius:8px;max-width:150%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.duel-memory-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(8px,.7vw,14px)}.duel-memory-card{min-width:0;min-height:clamp(210px,27vh,460px);padding:0;background:transparent;perspective:1000px;border-radius:16px;touch-action:pan-y}.duel-memory-inner{display:block;position:relative;height:100%;min-height:inherit;transform-style:preserve-3d;transition:transform .4s ease}.duel-memory-card.is-open .duel-memory-inner{transform:rotateY(180deg)}.duel-memory-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:16px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:clamp(5px,.5vw,12px);padding:clamp(9px,.75vw,15px);border:2px solid var(--player-line);text-align:center;overflow:hidden}.duel-memory-front{background:repeating-linear-gradient(45deg,transparent,transparent 18px,#ffffff09 18px,#ffffff09 19px),var(--player);border:4px solid var(--player-fill);box-shadow:0 4px 0 var(--player-line);color:#fff4c8}.duel-memory-front b{display:grid;place-items:center;width:clamp(43px,4vw,78px);height:clamp(43px,4vw,78px);border:1px solid #ffffff5c;border-radius:50%;font-size:clamp(29px,3vw,57px)}.duel-memory-front span{font-family:Baloo;font-size:clamp(10px,.9vw,18px);letter-spacing:1px;margin-top:8px}.duel-memory-back{transform:rotateY(180deg);background:#fffdf7;box-shadow:0 4px 0 var(--player-line)}.duel-memory-back img{height:clamp(54px,5vw,110px);width:clamp(54px,5vw,110px)}.duel-memory-back strong{font-size:clamp(11px,.95vw,24px);line-height:1.5;color:#3f6174;overflow-wrap:anywhere}.duel-memory-back small{font-size:clamp(8px,.6vw,13px);letter-spacing:.7px;color:#8a9daa}.duel-sila-number{font-family:Baloo;font-size:clamp(26px,2.8vw,50px);color:var(--player);line-height:1}.duel-memory-card.is-matched .duel-memory-back{background:#f1fbef;border-color:#9bc9a1;box-shadow:0 4px 0 #b7d8b4}.duel-memory-card.is-matched .duel-memory-back:after{content:'✓';position:absolute;right:6px;top:6px;height:18px;width:18px;display:grid;place-items:center;background:#7ab082;color:#fff;border-radius:50%;font-size:11px}
.duel-setup-nav{display:flex;align-items:center;justify-content:space-between;gap:15px;max-width:1100px;width:100%;margin:0 auto;padding:3px 4px}.duel-setup-scroll{overflow:auto;overscroll-behavior:contain;padding:0 15px 24px;max-width:1100px;width:100%;margin:0 auto;scrollbar-width:thin}.duel-setup-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:10px 0 21px}.duel-setup-heading .eyebrow{color:#228ca2;font-size:10px;letter-spacing:1.3px}.duel-setup-heading h1{font-size:clamp(31px,3.2vw,54px);line-height:1.1;margin:12px 0}.duel-setup-heading p{font-size:15px;color:#6c8a9c}.duel-setup-heading>img{height:145px;width:145px;object-fit:contain;flex-shrink:0}.duel-setup-scroll form{background:#fff;border:1.5px solid #d7e8f0;border-radius:24px;padding:clamp(19px,2.3vw,34px);box-shadow:0 5px 0 #d7e6ee5c}.duel-mission-choice{display:flex;align-items:center;gap:16px;padding-bottom:22px;border-bottom:1px dashed #d6e7ee;margin-bottom:22px}.duel-mission-badge{background:#fff0c6;color:#bb8934;padding:12px;border:1px solid #efdcab;border-radius:12px;font-size:12px;font-weight:900;flex-shrink:0}.duel-mission-choice h2{font-size:30px;line-height:1.1;margin:0 0 5px}.duel-mission-choice p{font-size:12px;color:#7794a4}.duel-name-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.duel-name-card{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center;border:1.5px solid var(--player-line);border-radius:17px;background:var(--player-soft);padding:20px}.duel-name-card>span:nth-child(2){display:flex;flex-direction:column;gap:4px;color:var(--player-dark)}.duel-name-card strong{font-size:18px;font-weight:900}.duel-name-card small{font-size:11px;color:var(--player)}.duel-name-card input{grid-column:1/-1;display:block;width:100%;min-width:0;min-height:51px;border:1.5px solid var(--player-line);border-radius:11px;background:#fff;color:var(--player-dark);padding:12px 13px;font-family:Nunito,sans-serif;font-size:18px;font-weight:700;user-select:text;-webkit-user-select:text}.duel-name-card input:focus{outline:3px solid var(--player-line);outline-offset:2px;border-color:var(--player)}.duel-options{display:flex;align-items:center;gap:24px;margin:23px 0}.duel-options>label{display:flex;flex-direction:column;gap:7px;min-width:210px}.duel-options strong{font-size:12px;color:#537b8d}.duel-options select{background:#f6fafc;border:1.5px solid #d6e8ef;border-radius:10px;font:700 16px Nunito;padding:12px 13px;min-height:49px;color:#416e83;cursor:pointer}.duel-ready-note{display:flex;align-items:center;gap:10px;font-size:13px;color:#7292a4;line-height:1.6}.duel-ready-note svg{width:23px;height:23px;flex-shrink:0;color:#54a2a8}.duel-rules{background:#f4f9fc;border:1px solid #dfedf3;border-radius:13px;padding:16px 19px}.duel-rules>strong{font-size:12px;color:#568497}.duel-rules>p{font-size:12px;line-height:1.7;color:#7893a3;margin-top:6px}.duel-setup-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:23px 0 14px}.duel-setup-actions .button{min-height:54px;padding-inline:26px;font-size:15px}.duel-device-note{font-size:11px;color:#8ca1ae;text-align:center;max-width:680px;margin:auto;line-height:1.6}
#duel-dialog{width:min(840px,calc(100% - 28px));max-height:calc(100dvh - 28px);border:3px solid white;border-radius:25px;padding:0}#duel-dialog[data-kind="results"]{width:min(980px,calc(100% - 28px))}#duel-dialog::backdrop{background:#183e568f;backdrop-filter:blur(6px)}.duel-dialog-shell{padding:clamp(22px,3vw,42px)}.duel-dialog-shell>h2{font-size:clamp(29px,3vw,43px);line-height:1.1;margin-bottom:16px}.duel-dialog-shell>p{font-size:14px;color:#6d8b9e;line-height:1.65}.duel-dialog-symbol{height:64px;width:64px;background:#e4f6fa;border-radius:18px;display:grid;place-items:center;margin-bottom:20px;color:#3189a1}.duel-dialog-symbol svg{height:31px;width:31px}.duel-dialog-actions{display:flex;align-items:center;justify-content:center;gap:13px;flex-wrap:wrap;margin-top:25px}.duel-dialog-actions .button{min-height:52px;font-size:14px}.duel-dialog-actions .text-button{min-height:44px;padding:10px 8px}.duel-results-heading{display:flex;align-items:center;gap:23px;margin-bottom:25px}.duel-results-heading img{height:112px;width:112px;flex-shrink:0}.duel-results-heading .eyebrow{font-size:9px;color:#2696a1;letter-spacing:1px}.duel-results-heading h2{font-size:clamp(29px,3vw,43px);line-height:1.1;margin:11px 0 12px;overflow-wrap:anywhere}.duel-results-heading p{font-size:13px;color:#7292a3;line-height:1.6}.duel-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.duel-result-card{position:relative;border:2px solid var(--player-line);border-radius:20px;padding:23px;background:var(--player-soft);overflow:hidden}.duel-result-card.is-winner{border-color:var(--player);box-shadow:0 4px 0 var(--player-fill)}.duel-result-label{font-size:10px;letter-spacing:1.4px;font-weight:900;color:var(--player)}.duel-result-card h3{font-size:29px;line-height:1.1;margin-top:11px;color:var(--player-dark);overflow-wrap:anywhere}.duel-result-score{font-family:Baloo;font-size:65px;line-height:1.1;color:var(--player);display:flex;align-items:baseline;gap:9px;margin:13px 0 15px}.duel-result-score small{font-family:Nunito;font-size:13px;color:var(--player-dark)}.duel-result-card dl{margin:0;padding-top:13px;border-top:1px solid var(--player-line);display:flex;flex-direction:column;gap:11px}.duel-result-card dl>div{display:flex;justify-content:space-between;gap:9px;align-items:baseline}.duel-result-card dt{font-size:12px;color:#7390a1}.duel-result-card dd{font-size:13px;font-weight:900;color:var(--player-dark);margin:0;text-align:right}.duel-result-note{font-size:11px!important;margin-top:18px;text-align:center;color:#899fae!important}.duel-touch-test{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:25px 0}.duel-touch-pad{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;min-height:190px;border:3px dashed var(--player-line);border-radius:22px;background:var(--player-soft);color:var(--player-dark);touch-action:none;user-select:none;-webkit-user-select:none}.duel-touch-pad svg{height:45px;width:45px;color:var(--player)}.duel-touch-pad strong{font-size:20px}.duel-touch-pad span{font-size:13px}.duel-touch-pad.is-held{background:var(--player);border-color:var(--player);border-style:solid;color:#fff}.duel-touch-pad.is-held svg{color:#fff}#duel-touch-status{min-height:50px;background:#f0f8fb;border-radius:12px;padding:14px 16px;font-size:13px;color:#5a8498}
@media(min-width:2200px){.duel-toolbar{padding:14px 24px}.duel-tool{min-width:67px;min-height:66px;font-size:19px;padding:13px 20px;border-radius:15px}.duel-tool svg{height:29px;width:29px}.duel-clock{min-width:225px;padding:9px 22px}.duel-clock>span{font-size:16px;max-width:90px}.duel-target{min-height:145px}.duel-source{padding:13px 7px}.duel-memory-card{min-height:350px}.duel-ready-message{font-size:18px}.duel-feedback{min-height:70px}.duel-dialog-shell .button{min-height:64px;font-size:18px}}
@media(max-width:1200px){.duel-toolbar{gap:12px;padding:7px 10px}.duel-tool{min-width:43px;min-height:43px;padding:9px 11px;font-size:11px}.duel-tools{gap:6px}.duel-clock{min-width:129px;gap:9px;padding:7px 12px}.duel-clock>span{font-size:9px;max-width:46px}.duel-round-label h1{font-size:25px}.duel-round-label>span{font-size:8px;letter-spacing:.8px}.duel-player-header{gap:10px;padding:12px}.duel-player-badge{height:40px;width:40px;font-size:23px;border-radius:11px}.duel-player-name h2{font-size:23px}.duel-player-name>span{font-size:8px}.duel-score b{font-size:32px}.duel-progress-text b{font-size:25px}.duel-score span,.duel-progress-text span{font-size:9px}.duel-scroll{padding:0 12px 15px}.duel-source img{width:49px;height:49px}.duel-source span{font-size:10px}.duel-source{padding:7px 3px;border-radius:11px;gap:4px}.duel-instruction{font-size:11px}.duel-tray{padding:10px 0 13px;margin-bottom:12px}.duel-target-copy strong{font-size:13px}.duel-target-copy small{font-size:8px}.duel-target{min-height:86px;padding:12px;gap:11px;border-width:1.5px}.duel-target-art{width:47px;height:47px;font-size:26px}.duel-feedback{font-size:11px;padding:10px 12px;min-height:48px}.duel-memory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.duel-memory-card{min-height:206px}.duel-memory-back strong{font-size:12px;line-height:1.5}.duel-memory-back img{width:66px;height:66px}.duel-memory-face{padding:10px 8px;border-radius:13px}.duel-memory-front{border-width:3px}.duel-memory-front span{font-size:10px}.duel-memory-front b{height:45px;width:45px;font-size:32px}}
@media(max-width:900px){.duel-toolbar{grid-template-columns:auto minmax(0,1fr) auto;gap:9px}.duel-tools{grid-column:1/-1;justify-content:flex-end;border-top:1px solid #e5eff3;padding-top:7px;margin-top:1px}.duel-tools .duel-tool{min-width:40px;min-height:36px;padding:6px 10px;font-size:11px}.duel-tools .duel-tool svg{height:18px;width:18px}.duel-round-label h1{font-size:24px}.duel-clock{min-width:119px;padding:6px 10px;gap:7px}.duel-clock time{font-size:28px}.duel-player-header{padding:9px 10px;gap:7px}.duel-player-badge{height:35px;width:35px;font-size:20px;border-radius:10px}.duel-player-name h2{font-size:20px}.duel-player-name>span{font-size:7px;letter-spacing:.6px}.duel-score{min-width:40px}.duel-score b{font-size:28px}.duel-progress-text b{font-size:22px}.duel-progress-text span,.duel-score span{font-size:8px}.duel-scroll{padding:0 9px 12px;scrollbar-gutter:auto}.duel-tray{padding-top:9px;padding-bottom:11px;margin-bottom:10px}.duel-source{padding:6px 2px 8px;border-width:1.5px;min-height:55px;border-radius:10px}.duel-source img{height:40px;width:40px}.duel-source span{font-size:8px}.duel-sources{gap:5px}.duel-instruction{font-size:10px;margin-bottom:9px}.duel-target{min-height:91px;padding:11px 10px;gap:9px}.duel-target-art{height:41px;width:41px;font-size:23px;border-radius:10px}.duel-target-copy strong{font-size:12px}.duel-target-copy small{font-size:7px;letter-spacing:.7px}.duel-target-check{width:18px;height:18px;font-size:10px}.duel-feedback{padding:9px 10px;font-size:10px;gap:7px;min-height:44px}.duel-error-count{font-size:8px}.duel-memory-grid{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.duel-memory-card{min-height:205px}.duel-memory-back strong{font-size:12px}.duel-ready-cover{padding:16px;gap:11px}.duel-ready-cover h3{font-size:28px}.duel-ready-cover p{font-size:12px}.duel-ready-icon{width:65px;height:65px;font-size:37px}.duel-ready-button{min-height:52px;font-size:17px;padding:11px 22px;border-radius:13px}.duel-ready-message{font-size:10px}.duel-setup-heading h1{font-size:39px}.duel-setup-heading p{font-size:13px}.duel-setup-heading>img{width:117px;height:125px}.duel-name-grid{gap:15px}.duel-name-card{padding:16px;gap:11px}.duel-name-card strong{font-size:16px}.duel-options{gap:18px}.duel-ready-note{font-size:12px}.duel-name-card input{font-size:17px;min-height:49px}}
@media(max-width:760px) and (orientation:portrait){.duel-panels{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:8px}.duel-panel{grid-template-rows:auto 4px minmax(0,1fr) auto;border-radius:15px}.duel-player-header{padding:7px 10px}.duel-player-badge{width:30px;height:30px;font-size:18px;border-radius:8px;box-shadow:0 2px 0 var(--player-dark)}.duel-player-name h2{font-size:20px;margin-top:1px}.duel-player-name>span{font-size:6px}.duel-score b{font-size:26px}.duel-progress-text b{font-size:22px}.duel-score span,.duel-progress-text span{font-size:7px}.duel-player-name{display:flex;align-items:baseline;gap:7px}.duel-player-name>span{display:none}.duel-scroll{padding:0 11px 12px}.duel-tray{padding-top:8px}.duel-source img{width:43px;height:43px}.duel-source span{font-size:9px}.duel-source{min-height:64px;padding:5px 3px 7px}.duel-sources{gap:7px}.duel-feedback{min-height:37px;padding:7px 10px;font-size:10px}.duel-target{min-height:86px}.duel-target-art{height:44px;width:44px}.duel-target-copy strong{font-size:13px}.duel-memory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.duel-memory-card{min-height:213px}.duel-memory-back strong{font-size:11px}.duel-memory-back img{height:59px;width:59px}.duel-memory-back small{font-size:8px}.duel-ready-cover{gap:8px;padding:12px 18px}.duel-ready-icon{display:none}.duel-ready-cover h3{font-size:25px}.duel-ready-cover p{font-size:11px}.duel-ready-button{min-height:45px;font-size:15px;padding:9px 24px;box-shadow:0 3px 0 var(--player-dark)}.duel-ready-message{font-size:9px}.duel-panel.player-done .duel-player-name:after{display:none}.duel-countdown>div{padding:24px 28px;border-radius:24px}.duel-countdown b{font-size:92px}.duel-countdown span{font-size:14px}.duel-countdown small{font-size:10px}}
@media(max-width:680px){.play-mode-section{flex-direction:column;align-items:stretch;padding:17px;gap:14px;margin-top:21px;border-radius:18px}.play-mode-copy h2{font-size:24px}.play-mode-copy p{font-size:11px}.play-mode-toggle{width:100%;gap:5px}.play-mode-toggle button{flex:1;padding:9px 10px;font-size:12px;min-height:46px;gap:6px}.play-mode-description{font-size:10px;line-height:1.55;margin-top:8px}.duel-toolbar{padding:7px 9px;border-radius:13px;gap:8px}.duel-toolbar>.duel-tool{min-width:37px;min-height:39px;padding:8px}.duel-toolbar>.duel-tool>span{display:none}.duel-toolbar>.duel-tool svg{height:17px;width:17px}.duel-round-label>span{font-size:7px;letter-spacing:.5px}.duel-round-label h1{font-size:21px;margin-top:3px}.duel-clock{min-width:96px;gap:5px;padding:6px 8px;border-radius:10px}.duel-clock>span{font-size:8px;max-width:38px}.duel-clock time{font-size:25px}.duel-tools{padding-top:6px;gap:6px}.duel-tools .duel-tool{min-height:33px;min-width:36px;padding:5px 8px;font-size:10px;border-radius:8px}.duel-tools .duel-tool svg{height:16px;width:16px}.duel-setup-nav{padding:3px 7px}.duel-setup-nav .text-button{font-size:11px}.duel-setup-nav .duel-tool{font-size:11px;padding:9px 10px;min-height:40px}.duel-setup-scroll{padding:0 7px 18px}.duel-setup-heading{padding:8px 0 15px;gap:10px}.duel-setup-heading>img{height:91px;width:83px;align-self:flex-start;margin-top:12px}.duel-setup-heading h1{font-size:31px;line-height:1.05;margin:10px 0}.duel-setup-heading .eyebrow{font-size:8px;letter-spacing:.7px}.duel-setup-heading p{font-size:11px;line-height:1.7}.duel-setup-scroll form{padding:17px;border-radius:19px}.duel-mission-choice{gap:11px;padding-bottom:16px;margin-bottom:17px}.duel-mission-badge{font-size:9px;padding:11px 9px;border-radius:10px}.duel-mission-choice h2{font-size:24px}.duel-mission-choice p{font-size:10px}.duel-name-grid{gap:12px;grid-template-columns:1fr}.duel-name-card{padding:14px;grid-template-columns:auto 1fr minmax(0,1.6fr);gap:11px}.duel-name-card .duel-player-badge{width:34px;height:34px;font-size:20px}.duel-name-card>span:nth-child(2){gap:3px}.duel-name-card strong{font-size:12px}.duel-name-card small{font-size:8px}.duel-name-card input{grid-column:auto;font-size:16px;padding:10px 9px;min-height:45px;min-width:0}.duel-options{align-items:stretch;flex-direction:column;gap:13px;margin:18px 0}.duel-options>label{min-width:0;gap:7px}.duel-options select{font-size:16px;min-height:47px}.duel-ready-note{font-size:11px;gap:8px}.duel-ready-note svg{width:19px;height:19px}.duel-rules{padding:13px 14px}.duel-rules>strong{font-size:11px}.duel-rules>p{font-size:11px;line-height:1.7}.duel-setup-actions{margin:19px 0 13px;gap:11px}.duel-setup-actions .button{width:100%;min-height:47px;font-size:13px}.duel-device-note{font-size:10px}.duel-dialog-shell{padding:23px 20px}.duel-dialog-shell>h2{font-size:29px;margin-bottom:12px}.duel-dialog-shell>p{font-size:12px}.duel-dialog-actions{gap:10px;margin-top:21px}.duel-dialog-actions .button{font-size:12px;min-height:47px;padding:12px 16px}.duel-dialog-actions .text-button{font-size:11px;min-height:40px}.duel-results-heading{gap:12px;margin-bottom:19px}.duel-results-heading>img{height:74px;width:74px}.duel-results-heading .eyebrow{font-size:7px}.duel-results-heading h2{font-size:28px;line-height:1.05;margin:8px 0 9px}.duel-results-heading p{font-size:11px}.duel-results-grid{gap:11px}.duel-result-card{padding:16px 13px;border-radius:15px}.duel-result-label{font-size:8px;letter-spacing:.6px}.duel-result-card h3{font-size:23px;margin-top:9px}.duel-result-score{font-size:49px;gap:6px;margin:12px 0}.duel-result-score small{font-size:10px}.duel-result-card dl{padding-top:11px;gap:10px}.duel-result-card dl>div{gap:5px;flex-wrap:wrap}.duel-result-card dt{font-size:10px}.duel-result-card dd{font-size:11px}.duel-result-note{font-size:10px!important;margin-top:16px}.duel-touch-test{gap:11px;margin:19px 0}.duel-touch-pad{min-height:159px;border-radius:16px;gap:11px;padding:13px}.duel-touch-pad strong{font-size:15px}.duel-touch-pad span{font-size:10px}.duel-touch-pad svg{height:34px;width:34px}#duel-touch-status{font-size:11px;padding:12px}.duel-drag-ghost{width:78px}.duel-drag-ghost>span{font-size:8px}}
@media(max-width:370px) and (orientation:portrait){.duel-round-label h1{font-size:19px}.duel-round-label>span{font-size:6px}.duel-clock{min-width:90px;padding-inline:7px}.duel-clock time{font-size:23px}.duel-toolbar{gap:6px}.duel-player-header{gap:6px;padding-inline:8px}.duel-player-name h2{font-size:19px}.duel-score{min-width:36px}.duel-scroll{padding-inline:8px}.duel-source img{height:36px;width:36px}.duel-source span{font-size:8px}.duel-source{min-height:58px;gap:4px}.duel-sources{gap:5px}.duel-instruction{font-size:9px}.duel-target-copy strong{font-size:12px}.duel-target{padding:10px;gap:8px}.duel-target-art{height:40px;width:40px}.duel-feedback{font-size:9px;min-height:36px;gap:5px;padding-inline:8px}.duel-error-count{font-size:7px}.duel-memory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.duel-memory-card{min-height:195px}.duel-ready-cover h3{font-size:23px}.duel-ready-cover p{display:none}.duel-ready-button{min-height:43px;font-size:14px}.duel-ready-message{font-size:8px}.duel-setup-heading h1{font-size:29px}.duel-setup-heading>img{width:66px;height:80px}.duel-name-card{padding:11px;grid-template-columns:30px 1fr minmax(0,1.3fr);gap:8px}.duel-name-card .duel-player-badge{height:30px;width:30px}.duel-name-card strong{font-size:11px}.duel-name-card input{padding:9px 7px}.duel-dialog-shell{padding:22px 17px}.duel-results-heading>img{height:59px;width:59px}.duel-results-heading h2{font-size:25px}.duel-result-card{padding:14px 10px}.duel-result-card h3{font-size:20px}.duel-result-score{font-size:44px}.duel-result-card dl>div{display:block}.duel-result-card dd{text-align:left;margin-top:3px}}
@media(max-height:540px) and (orientation:landscape){body[data-view="duel"]>main{padding:5px}#duel-view{gap:5px}.duel-toolbar{grid-template-columns:auto minmax(0,1fr) auto auto;gap:8px;padding:5px 8px;border-radius:11px}.duel-tools{grid-column:auto;justify-content:flex-end;border-top:0;padding:0;margin:0;gap:5px}.duel-tool,.duel-toolbar>.duel-tool{min-height:33px;min-width:33px;padding:6px 8px;font-size:10px;gap:5px}.duel-tool svg,.duel-toolbar>.duel-tool svg{width:16px;height:16px}.duel-tool>span{display:none}.duel-tools .duel-tool{min-width:31px;min-height:31px;padding:6px}.duel-round-label h1{font-size:20px;line-height:1;margin-top:2px}.duel-round-label>span{font-size:6px;letter-spacing:.4px}.duel-clock{min-width:94px;gap:6px;padding:4px 8px}.duel-clock>span{font-size:7px;max-width:34px}.duel-clock time{font-size:24px}.duel-panels{gap:6px}.duel-panel{border-radius:12px;grid-template-rows:auto 3px minmax(0,1fr) auto}.duel-player-header{padding:6px 8px;gap:6px}.duel-player-badge{width:28px;height:28px;font-size:16px;border-radius:7px;box-shadow:0 2px 0 var(--player-dark)}.duel-player-name>span{display:none}.duel-player-name h2{font-size:18px;margin-top:0}.duel-score{min-width:34px}.duel-score b{font-size:24px}.duel-score span,.duel-progress-text span{font-size:6px}.duel-progress-text b{font-size:19px}.duel-scroll{padding:0 8px 11px}.duel-instruction{font-size:9px;margin-bottom:7px}.duel-tray{padding:7px 0 9px;margin-bottom:9px}.duel-source{min-height:54px;padding:5px 2px;gap:3px;border-radius:8px}.duel-source img{height:35px;width:35px}.duel-source span{font-size:7px}.duel-sources{gap:5px}.duel-target{min-height:84px;padding:10px;gap:8px}.duel-target-copy strong{font-size:12px}.duel-target-art{width:39px;height:39px}.duel-feedback{min-height:34px;font-size:9px;padding:7px 8px;gap:5px}.duel-error-count{font-size:7px}.duel-memory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.duel-memory-card{min-height:191px}.duel-memory-back strong{font-size:11px}.duel-ready-icon{display:none}.duel-ready-cover{gap:8px;padding:10px}.duel-ready-cover h3{font-size:24px}.duel-ready-cover p{font-size:10px;line-height:1.4}.duel-ready-button{min-height:43px;padding:9px 22px;font-size:14px;box-shadow:0 3px 0 var(--player-dark)}.duel-ready-message{font-size:9px}.duel-panel.player-done .duel-player-name:after{display:none}.duel-countdown>div{padding:14px 30px;border-radius:20px}.duel-countdown b{font-size:75px}.duel-countdown span{font-size:12px}.duel-countdown small{font-size:9px}.duel-setup-heading>img{height:95px;width:100px}.duel-setup-heading h1{font-size:34px}}
@media(max-height:650px) and (orientation:portrait){.duel-ready-cover p{display:none}.duel-ready-cover{gap:7px;padding:9px}.duel-ready-cover h3{font-size:22px}.duel-ready-message{font-size:8px}.duel-ready-button{min-height:40px;padding:8px 21px;font-size:13px}.duel-feedback{min-height:34px;font-size:9px}.duel-toolbar{padding-block:5px}.duel-tools{padding-top:4px}.duel-tools .duel-tool{min-height:30px}.duel-player-header{padding-block:6px}}

/* Labels stay readable; memory faces grow with the full text of every sila. */
.play-mode-copy{min-width:0}.play-mode-copy .eyebrow{font-size:9px;margin-bottom:6px;display:block}.play-mode-toggle{flex-shrink:0}.play-mode-toggle button>span:not([data-icon]){display:flex;flex-direction:column;text-align:left;gap:3px}.play-mode-toggle button strong{font-size:13px;white-space:nowrap}.play-mode-toggle button small{font-size:10px;font-weight:700;opacity:.8;white-space:nowrap}.play-mode-toggle button [data-icon]{display:flex;flex-shrink:0}
.duel-memory-card{display:grid}.duel-memory-inner{display:grid;height:auto}.duel-memory-face{position:relative;inset:auto;grid-area:1/1;min-width:0}
@media(max-width:760px) and (max-height:740px) and (orientation:portrait){
 .duel-toolbar{grid-template-columns:auto minmax(0,1fr) auto auto;gap:5px;padding:6px}
 .duel-toolbar .duel-tool{min-height:34px;min-width:31px;padding:7px;gap:0}
 .duel-toolbar .duel-tool svg{height:17px;width:17px}.duel-toolbar .duel-tool>span{display:none}
 .duel-round-label>span{display:none}.duel-round-label h1{font-size:17px;white-space:normal;line-height:1.05;margin:0}
 .duel-clock{min-width:54px;padding:5px 6px;justify-content:center}.duel-clock>span{display:none}.duel-clock time{font-size:24px}
 .duel-tools{grid-column:auto;gap:4px;margin:0;padding:0;border:0}
 .duel-player-header{padding:7px 9px}.duel-player-name>span{display:none}.duel-player-name h2{margin:0;font-size:20px}
 .duel-player-badge{width:30px;height:30px;font-size:17px}.duel-score b{font-size:24px}.duel-progress-text b{font-size:20px}
 .duel-tray{padding:5px 0 7px;margin-bottom:7px}.duel-tray .duel-instruction{display:none}.duel-source{min-height:47px;padding:4px 2px}.duel-source img{height:36px;width:36px}.duel-source span{display:none}
 .duel-feedback{min-height:32px;font-size:9px;padding:6px 9px}.duel-ready-cover p{display:none}.duel-ready-icon{display:none}
}
