.duel-top{display:flex;justify-content:space-between;align-items:center;gap:15px}.duel-top h2{font-size:27px}.duel-top .primary{font-size:11px;margin-top:0}.duel-explain{display:flex;gap:10px;flex-wrap:wrap;margin:19px 0}.duel-explain span{background:#efe4d5;padding:7px 12px;border-radius:15px;font-size:11px;color:#917455}.deck-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px;margin:22px 0}.deck-option{border:2px solid transparent;border-radius:14px;padding:3px}.deck-option.picked{border-color:#b68f47;background:#fff0c8}.deck-option>span{display:block;text-align:center;font-size:9px;color:#947544;padding:6px 0}.duel-card{width:100%;background:#fff9e8;border:1px solid #d6bd92;border-radius:12px;padding:7px;position:relative;display:block;text-align:left;box-shadow:0 3px 6px #75552813;min-width:0}.duel-card img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px}.duel-card strong{display:block;font:14px/1.2 Georgia;color:#745a50;margin-top:7px;min-height:33px}.duel-card small{font-size:8px;color:#ab835c;letter-spacing:.08em}.mana{position:absolute;top:-6px;left:-6px;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#a088b2;color:#fff;border:2px solid #fff8ec;font-weight:700;font-size:13px}.card-power{display:flex;justify-content:space-between;color:#9a6950;font-size:12px;background:#f5e7d0;border-radius:6px;padding:4px 7px;margin:7px 0}.card-power b{color:#9f777d}.ability{display:block;font-size:8px;line-height:1.4;min-height:37px;color:#8a786d}.duel-card.chosen{outline:3px solid #c8964a;outline-offset:3px;box-shadow:0 0 15px #d4b76140}.enemy{background:#f4e7ed;border-color:#c8a1b3}.duelist{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:10px 15px;background:#f3e8da;border:1px solid #e0ceae;border-radius:12px;font-size:12px;width:100%;margin:14px 0}.duelist strong{color:#ab834b;font-size:15px;white-space:nowrap}.duelist small{font-size:10px;color:#98837b}.opponent{background:#e9e0ef;border-color:#ccbada}.opponent:disabled{opacity:1;cursor:default}.opponent strong{color:#af7d94}.battle-field{display:flex;align-items:stretch;justify-content:center;gap:15px;min-height:150px;padding:18px;background:#f0e7dc;border:1px dashed #d9c6b7;border-radius:18px}.battle-field>.duel-card{width:155px}.battle-field>span{align-self:center;font:italic 14px Georgia;color:#ae9a8d}.enemy-field{background:#f1e8ed;border-color:#d7c0ce}.duel-instruction{text-align:center;font-size:12px;color:#9b6f85;background:#fffcf7;padding:12px;margin:9px 0;border-radius:10px}.ready-label{display:block;text-align:center;border-radius:5px;background:#ede4cb;color:#9d7f4c;font-size:9px;padding:3px}.duel-hand{display:flex;justify-content:center;gap:13px;overflow-x:auto;padding:13px 7px}.duel-hand>.duel-card{width:146px;min-width:130px;flex-shrink:0}.hand-label{font-size:9px;letter-spacing:.13em;color:#a78079;margin:17px 0 0}.duel-log{font-size:10px;color:#a39689;text-align:center;margin-top:7px}
@media(max-width:760px){.duel-dialog{padding:25px 15px}.duel-dialog h2{font-size:24px}.duel-dialog>p{font-size:11px}.deck-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 6px}.duel-card{padding:5px;border-radius:9px}.duel-card strong{font-size:12px;min-height:29px}.ability{font-size:7px;min-height:42px}.card-power{font-size:10px;padding:4px 5px}.mana{width:23px;height:23px;font-size:11px}.deck-option>span{font-size:7px}.duel-explain{gap:5px}.duel-explain span{font-size:8px;padding:5px 8px}.duel-top h2{font-size:20px}.duel-top .primary{padding:9px 10px;font-size:10px;white-space:nowrap}.battle-field{gap:8px;min-height:130px;padding:10px 7px}.battle-field>.duel-card{width:33%}.battle-field .ability{display:none}.battle-field .duel-card strong{font-size:10px;min-height:24px}.battle-field .duel-card small{font-size:7px}.duelist{font-size:10px;padding:9px 10px;gap:10px;flex-wrap:wrap}.duelist strong{font-size:12px}.duelist small{font-size:8px}.duel-instruction{font-size:10px;padding:10px}.duel-hand{justify-content:flex-start;gap:10px}.duel-hand>.duel-card{min-width:108px;width:108px}.duel-hand .ability{font-size:7px}.duel-log{font-size:9px}.hand-label{font-size:8px}.ready-label{font-size:7px}}
/* Dream duel: illustrated rules, deck atelier, and a living arena. */
#duel-content{position:relative}.dream-lobby>h2{font-size:44px}.dream-story{display:grid;grid-template-columns:1fr 1.2fr 1fr;border:1px solid #ccb887;border-radius:22px;overflow:hidden;background:#fff6d8;margin:26px 0}.dream-story-world{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 12px;gap:9px;text-align:center}.dream-story-world.light{background:radial-gradient(circle at 50% 15%,#fff9c9,#c7e1d8)}.dream-story-world.night{background:radial-gradient(circle at 50% 15%,#7b65a3,#242945);color:#fff}.dream-story-world strong{font:700 26px MalkastenHand,Georgia}.dream-story-world span:not(.dream-sun){font-size:11px;line-height:1.5;max-width:150px}.dream-prize{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px 16px;gap:12px;background:radial-gradient(ellipse,#fffce9,#f1dbac)}.dream-prize>span{font-size:41px;color:#b89248}.dream-prize b{font:700 30px/1.1 MalkastenHand,Georgia;color:#315c5e}.dream-prize small{font:12px/1.6 system-ui;color:#635e54;max-width:210px}.dream-sun{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;font:29px/1 Georgia;border-radius:50%;border:1px solid;position:relative}.dream-sun.light{color:#fffde3;text-shadow:0 1px 2px #8d6b24;background:#e8c46b;border-color:#c0a44d}.dream-sun.night{color:#161525;background:#c6b9dc;border-color:#8d7faa}.dream-story .dream-sun{font-size:65px;width:76px;height:76px;box-shadow:0 0 22px #fff4b65c}.dream-guide{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.dream-guide article{background:#fffef5;border:1px solid #dbcfb3;border-radius:18px;padding:18px 13px;position:relative}.dream-guide b{display:grid;place-items:center;width:33px;height:33px;border-radius:12px;background:#dceade;color:#3b6b59;font:700 19px Georgia;margin-bottom:12px}.dream-guide span{font:700 14px Georgia;color:#345b62}.dream-guide p{font:11px/1.65 system-ui;color:#68736b;margin-bottom:0}.dream-rules{padding:15px 18px;background:#f3efdf;border:1px solid #d6c7a6;border-radius:13px;font:12px/1.7 system-ui}.dream-rules summary{cursor:pointer;color:#3d6865;font-weight:700}.dream-side-choice{display:flex;flex-wrap:wrap;gap:12px;margin:30px 0}.dream-side-choice h3{width:100%;margin:0}.dream-side-choice>button{flex:1;display:flex;align-items:center;gap:13px;border:2px solid #d4c9ae;padding:15px 18px;border-radius:16px;background:#fffaf0;text-align:left}.dream-side-choice button[aria-pressed=true]{border-color:#42948c;box-shadow:0 0 0 3px #64b6a32c}.dream-side-choice b{display:block;font:700 19px Georgia;color:#395b58}.dream-side-choice small{display:block;font-size:11px;margin-top:5px;color:#777364}.deck-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.deck-heading strong{font-size:12px;color:#886a33;background:#f5e5bb;padding:9px 12px;border-radius:10px}.deck-order{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin:20px 0}.deck-order article{background:#f9f3e3;border:1px solid #d5c59e;border-radius:13px;padding:9px;position:relative}.deck-order article>span{position:absolute;top:3px;left:5px;background:#fff8dc;border-radius:7px;padding:3px 6px;color:#6f633d;font-size:11px}.deck-order img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}.deck-order b{display:block;font:11px/1.4 Georgia;margin-top:7px;min-height:31px;color:#4b605b}.deck-order article>div{display:flex;justify-content:space-between;gap:5px;margin-top:7px}.deck-order button{min-height:32px;width:50%;border:1px solid #d9cba8;border-radius:8px;background:#fffcf4;color:#607b6c}.deck-status{font-size:12px;background:#edf3e9;padding:12px 15px;border-radius:12px;color:#4c775c}.deck-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.deck-option{padding:0;min-width:0}.deck-add,.deck-edit{width:100%;padding:9px;margin-top:6px;font-size:11px;border-radius:9px;border:1px solid #c8d3ba;background:#eaf2df;color:#41634e}.deck-edit{background:#fff6d8;border-color:#decb91;color:#80622f}.duel-card{overflow:visible;padding:9px;background:#fff8e9;border:2px solid #d2b879}.duel-card.night{background:#ede7f2;border-color:#8e7da7}.duel-card .dream-sun{position:absolute;right:5px;top:5px;width:29px;height:29px;font-size:26px;z-index:1}.duel-card strong{font-size:15px;min-height:38px;color:#344e53}.duel-card small{font-size:10px}.duel-card .ability{font-size:10px;min-height:55px;line-height:1.5}.duel-card .mana{width:32px;height:32px;font-size:14px;background:#317d8a;border:2px solid #fffdf0;z-index:2}.card-power{font-size:14px;background:#e6e8d6;color:#4d6251}.duel-card.night .card-power{background:#d9d1e2;color:#514866}.dream-card-editor{padding:23px;margin:24px 0;background:#f0eadb;border:1px solid #cdb991;border-radius:20px;scroll-margin-top:20px}.editor-layout{display:grid;grid-template-columns:190px 1fr;gap:25px;align-items:start}.editor-selects{display:flex;gap:12px;flex-wrap:wrap}.editor-selects label{flex:1;min-width:160px;font-size:12px}.ability-picker{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:16px 0}.ability-picker label{display:flex;align-items:start;gap:8px;padding:12px;border:1px solid #d3c6aa;border-radius:12px;background:#fffaf0;cursor:pointer}.ability-picker input{width:18px;height:18px;min-height:0;accent-color:#41877b;flex:none;margin-top:1px}.ability-picker label>span{display:block}.ability-picker b{font-size:12px;color:#476163}.ability-picker b small{font-size:10px;color:#8f7038}.ability-picker label>span>span{display:block;font-size:10px;line-height:1.6;margin-top:5px;color:#746d60}.dream-opponents{margin:28px 0}.opponent-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.opponent-picker>button{display:flex;align-items:center;gap:12px;padding:14px;border-radius:17px;border:2px solid #d2c5aa;background:#fff9e7;text-align:left}.opponent-picker button[aria-pressed=true]{border-color:#6e5c92;background:#eae4f3;box-shadow:0 0 0 3px #a899bf2b}.opponent-picker b{display:block;font:700 13px Georgia;color:#3f515b}.opponent-picker strong{display:block;font-size:11px;margin-top:7px;color:#785988}.opponent-picker small{display:block;font-size:10px;line-height:1.5;margin-top:6px;color:#6b6d69}.dream-portrait{display:block;flex:none;width:75px;height:90px;border-radius:50% 50% 44% 44%;border:2px solid #d2ba72;background-image:url('design/dream-opponents.png');background-size:300% 200%;background-position:0 0;box-shadow:0 3px 11px #34274633}.dream-portrait.tactical{background-position-x:50%}.dream-portrait.master{background-position-x:100%}.dream-portrait.night{background-position-y:100%;border-color:#8b72a6}.duel-start-actions{display:flex;gap:13px;flex-wrap:wrap}.duel-start-actions .primary{flex:1;min-width:200px;font-size:14px}.duel-start-actions #duel-online{background:#65527d;color:#fff}.dream-empty{padding:24px;background:#f8eccc;border-radius:17px}.dream-empty p{font-size:13px}.dream-search{text-align:center;padding:45px 15px}.dream-search>.dream-sun{width:70px;height:70px;font-size:60px}.dream-arena{background:radial-gradient(ellipse at center,#f8f4df,#e2e8df);padding:22px;border-radius:22px;border:1px solid #c8c6b1}.dream-arena.night{background:radial-gradient(ellipse,#f2e7f0,#d4d8e8)}.dream-arena .duel-top h2{font-size:30px}.dream-role-note{display:flex;align-items:center;gap:10px;font-size:12px;color:#607469;margin:14px 0}.dream-arena .duelist{background:#f8f2dc;min-height:87px;gap:15px;flex-wrap:wrap}.dream-arena .duelist.night{background:#e2d9ec;border-color:#aa96ba}.duelist>.dream-portrait{width:54px;height:65px}.duelist>span:not(.dream-portrait):not(.dream-sun):not(.dream-spectrum){flex:1;text-align:left}.duelist b{font:700 17px Georgia;color:#415265}.duelist small{display:block;margin-top:5px;font-size:10px}.duelist strong{font-size:23px;color:#6d5b86}.duelist strong small{font-size:10px}.dream-spectrum{display:flex;gap:5px;align-items:center;position:relative;padding-bottom:17px}.dream-spectrum i{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#cdc9bf;color:#eee;font-style:normal;border:1px solid #b6b1a8}.dream-spectrum i.lit{background:#43988f;border-color:#297368;color:#fff6ad;box-shadow:0 0 9px #63984f77}.dream-spectrum small{position:absolute;bottom:-1px;left:0;width:100%;font-size:9px;text-align:center}.battle-field{background:#f8f4e4;border:1px solid #b6c3b0;min-height:180px;gap:20px;padding:19px}.enemy-field{background:linear-gradient(120deg,#e6ddee,#d9e4e1);border-color:#b8a7c3}.battle-field>.duel-card{width:180px}.duel-hand>.duel-card{width:175px;min-width:155px}.duel-instruction{color:#315c68;background:#fcfbed;border:1px solid #d3c8a3;font-size:13px;padding:15px}.hand-label{line-height:1.6;color:#607164}.duel-log{font-size:12px;line-height:1.6;color:#6e6c66}.dream-victory{text-align:center;padding:20px;border-radius:17px;background:#fff1bb;border:1px solid #cab673;margin-top:20px}.dream-victory h3{font:700 30px MalkastenHand,Georgia;color:#487c6b}.dream-bolt{position:absolute;pointer-events:none;z-index:10;font-size:55px;color:#fff6a1;text-shadow:0 0 17px #be9042}.dream-combo{position:absolute;top:40%;left:10%;width:80%;text-align:center;padding:22px;border-radius:20px;background:#fff7c2ef;font:700 32px MalkastenHand,Georgia;color:#635380;z-index:10;animation:dream-pop 1.5s both}@keyframes dream-pop{0%{opacity:0;transform:scale(.6)}20%,75%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.1)}}
@media(max-width:900px){.opponent-picker>button{flex-direction:column;text-align:center}.editor-layout{grid-template-columns:145px 1fr}.dream-guide{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.duel-dialog{padding:24px 14px}.dream-lobby>h2{font-size:33px}.dream-story{grid-template-columns:1fr 1.1fr 1fr;margin:18px 0}.dream-story-world{padding:17px 7px;gap:7px}.dream-story .dream-sun{width:45px;height:45px;font-size:39px}.dream-story-world strong{font-size:20px}.dream-story-world span:not(.dream-sun){font-size:9px}.dream-prize{padding:14px 8px;gap:6px}.dream-prize b{font-size:24px}.dream-prize small{font-size:9px}.dream-prize>span{font-size:28px}.dream-guide{gap:8px}.dream-guide article{padding:13px 11px}.dream-guide span{font-size:13px}.dream-guide p{font-size:10px}.dream-side-choice{gap:8px}.dream-side-choice>button{padding:12px 9px;gap:7px}.dream-side-choice b{font-size:14px}.dream-side-choice small{font-size:9px}.deck-order{grid-template-columns:repeat(3,1fr);gap:8px}.deck-heading{flex-wrap:wrap}.deck-heading h3{font-size:17px}.deck-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.duel-card strong{font-size:13px;min-height:32px}.duel-card small{font-size:9px}.duel-card .ability{font-size:9px;min-height:59px}.duel-card .mana{width:27px;height:27px;font-size:13px}.deck-add,.deck-edit{font-size:10px;min-height:40px}.dream-card-editor{padding:14px}.editor-layout{display:block}.editor-layout #editor-preview{width:155px;margin:15px auto}.ability-picker{grid-template-columns:1fr;gap:7px}.ability-picker b{font-size:13px}.ability-picker label>span>span{font-size:11px}.editor-selects{display:block}.editor-selects label{display:block;margin:13px 0}.editor-selects select{width:100%;font-size:12px}.opponent-picker{grid-template-columns:1fr;gap:9px}.opponent-picker>button{flex-direction:row;text-align:left;padding:12px;gap:15px}.opponent-picker b{font-size:14px}.opponent-picker small{font-size:11px}.dream-portrait{width:65px;height:77px}.dream-arena{padding:10px}.dream-arena .duel-top{flex-wrap:wrap;gap:6px}.dream-arena .duel-top h2{font-size:27px;margin-bottom:6px}.dream-role-note{font-size:10px}.dream-arena .duelist{padding:10px;gap:8px}.duelist b{font-size:13px}.duelist strong{font-size:19px}.dream-spectrum{gap:3px}.dream-spectrum i{width:22px;height:22px;font-size:12px}.battle-field{padding:11px 7px;gap:7px;min-height:155px}.battle-field>.duel-card{width:33%;padding:5px}.battle-field .duel-card strong{font-size:10px;min-height:30px}.battle-field .duel-card .dream-sun{width:22px;height:22px;font-size:20px;top:4px;right:2px}.battle-field .duel-card .mana{width:23px;height:23px;font-size:11px}.battle-field .card-power{font-size:11px;padding:4px}.battle-field .duel-card .ability{display:block;font-size:8px;min-height:50px}.battle-field .ready-label{font-size:7px}.duel-hand>.duel-card{width:144px;min-width:144px}.duel-instruction{font-size:11px;padding:11px}.duel-log{font-size:10px}.dream-victory h3{font-size:25px}.dream-victory p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.dream-combo{animation:none}}
.dream-guide p{font-size:13px;line-height:1.65}.dream-guide span{font-size:16px}.dream-lobby>p{font-size:15px}.dream-rules{font-size:13px}.dream-lobby .fine-print{font-size:12px;line-height:1.65}.dream-lobby .eyebrow{font-size:10px}.duel-card .ability{font-size:11px}.opponent-picker small{font-size:12px}.opponent-picker b{font-size:15px}
@media(max-width:760px){.dream-guide p{font-size:11px}.dream-guide span{font-size:13px}.dream-lobby>p{font-size:13px}.dream-lobby .fine-print{font-size:11px}.duel-card .ability{font-size:10px}.opponent-picker small{font-size:11px}}
.dream-bolt.night{color:#dfcaff;text-shadow:0 0 18px #6a3aa9}
.shield-label{display:block;font:10px/1.5 system-ui;text-align:center;background:#ddeee9;color:#367768;border-radius:6px;margin-top:6px;padding:4px}.battle-field .duel-card .ability{min-height:25px;font-size:11px}
@media(max-width:760px){.dream-prize small{font-size:11px}.dream-story-world span:not(.dream-sun){font-size:10px}.battle-field .duel-card .ability{font-size:10px;line-height:1.5;min-height:29px}.battle-field .shield-label{font-size:8px}}
.deck-wallet{font-size:12px;color:#6c582e}.duel-top{position:sticky;top:0;z-index:8;background:#f5f1df;padding:5px 0}.night .duel-top{background:#e8e1ee}.duel-card img{-webkit-user-drag:none;user-select:none}.dream-arena .duel-top h2{font-size:27px}.dream-arena .duelist{min-height:65px;padding:8px 12px;margin:6px 0}.battle-field{min-height:170px;padding:11px;gap:12px}.battle-field>.duel-card{width:135px;padding:6px}.battle-field .duel-illustration img{height:85px;width:100%;aspect-ratio:auto;object-fit:contain}.battle-field .duel-card strong{font-size:11px;min-height:25px;margin-top:4px}.battle-field .duel-card small{font-size:9px}.battle-field .card-power{font-size:12px;padding:3px 6px;margin:4px 0}.battle-field .duel-card .ability{font-size:10px;min-height:25px;line-height:1.4}.battle-field .ready-label{font-size:8px;padding:2px}.duel-hand{padding:8px 5px;gap:12px}.duel-hand>.duel-card{width:155px;min-width:145px;padding:7px}.duel-hand .duel-illustration img{height:95px;width:100%;aspect-ratio:auto;object-fit:contain}.duel-hand .duel-card strong{font-size:12px;min-height:29px;margin-top:4px}.duel-hand .duel-card small{font-size:9px}.duel-hand .card-power{margin:4px 0;font-size:12px}.duel-hand .duel-card .ability{font-size:10px;line-height:1.4;min-height:34px}.dream-arena .duel-instruction{font-size:12px;padding:10px;margin:5px 0}.dream-arena .hand-label{margin-top:6px}.dream-role-note{margin:9px 0;font-size:11px}.duel-log{margin:5px 0;font-size:11px}
@media(min-width:1000px){.dream-arena{display:grid;grid-template-columns:1fr 1fr;gap:5px 12px;padding:14px}.dream-arena .duel-top{grid-column:1/-1;grid-row:1}.dream-role-note{grid-column:1/-1;grid-row:2}.dream-arena #attack-face{grid-column:1;grid-row:3}.dream-arena #your-dream{grid-column:2;grid-row:3}.enemy-field{grid-column:1;grid-row:4}.own-field{grid-column:2;grid-row:4}.dream-arena .duel-instruction{grid-column:1/-1;grid-row:5}.dream-arena .hand-label{grid-column:1/-1;grid-row:6}.dream-arena .duel-hand{grid-column:1/-1;grid-row:7}.dream-arena .duel-log{grid-column:1/-1;grid-row:8}.dream-victory{grid-column:1/-1;grid-row:9}#duel-resign{grid-column:1/-1;grid-row:10}.dream-arena .duel-top h2{margin:5px 0}.dream-arena .duel-hand{justify-content:center}}
@media(max-width:760px){.battle-field>.duel-card{width:33%;max-width:125px;padding:5px}.battle-field .duel-illustration img{height:70px}.battle-field .duel-card strong{font-size:10px;min-height:27px}.battle-field .duel-card .ability{font-size:9px;min-height:28px}.duel-hand>.duel-card{width:133px;min-width:133px}.duel-hand .duel-illustration img{height:80px}.dream-arena .duel-top h2{font-size:25px}.dream-arena .duel-instruction{font-size:11px}.deck-wallet{font-size:11px}}
/* Page-sized games keep the two worlds on the table and tuck controls away. */
.game-dialog #duel-content.dream-lobby{height:100%;overflow:auto;box-sizing:border-box;padding:65px max(28px,calc((100vw - 1400px)/2));background:radial-gradient(ellipse at 10% 0,#e5edcb,transparent 50%),radial-gradient(ellipse at 100% 0,#e7dfef,transparent 60%),#fffaf0}
.game-dialog .dream-arena{background:radial-gradient(ellipse at 75% 50%,#d5ece0,transparent 70%),radial-gradient(ellipse at 10% 20%,#d7cbea,transparent 70%),#dce5db}
.game-dialog .dream-arena.night{background:radial-gradient(ellipse at 75% 50%,#dcd0eb,transparent 70%),radial-gradient(ellipse at 10% 20%,#cfebdc,transparent 70%),#dce2de}
.game-dialog .duel-top{position:static;background:none;padding:0;gap:20px}.game-dialog .duel-top h2{font-size:30px;margin:4px 0}.game-dialog .dream-role-note{display:flex;align-items:center;gap:9px;font-size:13px;margin:0}.duel-game-rules{font:12px/1.6 system-ui;margin-top:7px}.duel-game-rules p{margin:9px 0 0;max-width:1000px}
.game-dialog .duel-board{padding:60px 24px 75px;display:flex;flex-direction:column;gap:12px;overflow:auto;box-sizing:border-box}.game-dialog[data-top-open=true] .duel-board{padding-top:16px}.game-dialog[data-bottom-open=true] .duel-board{padding-bottom:12px}
.duel-battle-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px;flex:1;min-height:0}.duel-zone{display:flex;flex-direction:column;min-width:0;min-height:0;gap:12px}.game-dialog .duelist{flex:none;min-height:78px;padding:10px 18px;margin:0;border-radius:18px;background:#f8faf0e8;gap:12px}.game-dialog .duelist.opponent{background:#f1ebf8e8}.game-dialog .duelist .dream-portrait{width:70px;height:78px}.game-dialog .duelist strong{font-size:26px}.game-dialog .duelist b{font-size:18px}.game-dialog .duelist small{font-size:12px}.game-dialog .duelist .dream-spectrum small{font-size:10px}.game-dialog .duelist .dream-sun{width:54px;height:54px;font-size:45px}
.game-dialog .battle-field{flex:1;min-height:220px;align-items:center;gap:18px;padding:24px 18px;background:#eaf3e8b8;border:1px solid #9ab9a3;box-shadow:inset 0 3px 20px #42665012}.game-dialog .enemy-field{background:#eee4f0ad;border-color:#a69cbc}.game-dialog .battle-field>.duel-card{width:30%;max-width:220px;min-width:0;padding:10px}.game-dialog .battle-field .duel-illustration img{width:100%;height:clamp(80px,calc((100dvh - 360px)*.35),190px);object-fit:contain}.game-dialog .battle-field .duel-card strong{font-size:14px;min-height:32px}.game-dialog .battle-field .duel-card small{font-size:10px}.game-dialog .battle-field .card-power{font-size:16px}.game-dialog .battle-field .duel-card .ability{font-size:11px;min-height:32px;line-height:1.5}.game-dialog .battle-field .ready-label{font-size:10px}
.game-dialog .duel-instruction{flex:none;padding:10px 15px;margin:0;color:#31584d;background:#fffaf0e8;font-size:13px;line-height:1.5;border-radius:15px;min-height:20px}.game-dialog .duel-hand-bar{padding-top:9px;padding-bottom:10px;max-height:38dvh}.game-dialog .hand-label{margin:0;color:#456356;font-size:11px}.game-dialog .duel-hand{justify-content:center;margin:0;padding:9px 6px 5px;gap:17px}.game-dialog .duel-hand>.duel-card{width:165px;min-width:145px}.game-dialog .duel-hand .duel-illustration img{height:80px}.game-dialog .duel-hand .duel-card .ability{font-size:10px;min-height:27px}.game-dialog .duel-hand .duel-card strong{font-size:12px;min-height:25px}.game-dialog .duel-log{margin:3px 0 0;font-size:11px}.duel-turn-action{position:absolute;bottom:max(10px,env(safe-area-inset-bottom));left:14px;z-index:55;min-height:44px;margin:0!important;border-radius:22px;font-size:13px;padding:10px 20px;box-shadow:0 3px 12px #2b463a30}.game-dialog[data-bottom-open=true] .duel-hand-bar{padding-left:175px;padding-right:175px}.game-dialog .dream-victory{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;width:min(600px,85%);box-sizing:border-box;z-index:40;box-shadow:0 15px 60px #293b4460}.game-dialog .dream-combo{position:fixed;left:20%;width:60%;top:35%}
@media(max-width:1000px){.duel-battle-layout{gap:12px}.game-dialog .duelist{padding:8px 10px;gap:8px}.game-dialog .duelist b{font-size:14px}.game-dialog .duelist strong{font-size:22px}.game-dialog .battle-field{gap:9px;padding:15px 10px}.game-dialog .duelist .dream-portrait{width:52px;height:60px}.game-dialog .duelist .dream-spectrum{display:none}.game-dialog .battle-field>.duel-card{padding:7px}.game-dialog .battle-field .duel-card strong{font-size:12px}.game-dialog .battle-field .duel-card .ability{font-size:10px}.game-dialog .duel-hand{justify-content:flex-start}}
@media(max-width:650px){.game-dialog #duel-content.dream-lobby{padding:65px 16px 25px}.game-dialog .duel-board{padding:62px 8px 68px;gap:7px}.duel-battle-layout{grid-template-columns:1fr;grid-template-rows:1fr 1fr;gap:10px;min-height:350px}.duel-zone{gap:5px}.game-dialog .duelist{min-height:43px;padding:5px 9px;flex-wrap:nowrap}.game-dialog .duelist .dream-portrait{width:31px;height:38px}.game-dialog .duelist .dream-sun{width:31px;height:31px;font-size:27px}.game-dialog .duelist strong{font-size:17px}.game-dialog .duelist b{font-size:12px}.game-dialog .duelist small{font-size:9px}.game-dialog .battle-field{min-height:145px;padding:8px 7px;gap:8px;align-items:stretch}.game-dialog .battle-field>.duel-card{width:32%;max-width:145px;padding:5px}.game-dialog .battle-field .duel-illustration img{height:clamp(40px,calc((100dvh - 400px)/6),90px)}.game-dialog .battle-field .duel-card strong{font-size:10px;min-height:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-dialog .battle-field .duel-card small{font-size:8px}.game-dialog .battle-field .card-power{font-size:11px;margin:3px 0;padding:2px 5px}.game-dialog .battle-field .duel-card .ability{font-size:9px;line-height:1.4;min-height:22px;max-height:26px;overflow:hidden}.game-dialog .battle-field .ready-label{font-size:8px;line-height:1.4;padding:2px}.game-dialog .battle-field .shield-label{display:none}.game-dialog .duel-instruction{font-size:11px;padding:7px 10px}.game-dialog .duel-top h2{font-size:23px}.game-dialog .dream-role-note{font-size:11px}.game-dialog .duel-top{display:block}.game-dialog .duel-hand-bar{padding:8px 10px 58px!important;max-height:40dvh}.game-dialog .duel-hand{gap:12px;padding:8px 4px}.game-dialog .duel-hand>.duel-card{width:136px;min-width:136px}.game-dialog .duel-hand .duel-illustration img{height:65px}.game-dialog .duel-log{display:none}.game-dialog .hand-label{font-size:10px;letter-spacing:0}.duel-turn-action{left:8px;padding:9px 13px;font-size:11px}.game-dialog .dream-combo{left:5%;width:90%;padding:16px;font-size:26px}}
@media(max-height:550px) and (min-width:651px){.game-dialog .duel-board{padding-top:58px;padding-bottom:60px}.game-dialog .battle-field{min-height:150px}.game-dialog .duelist{min-height:43px}.game-dialog .duelist .dream-portrait{height:40px;width:36px}.game-dialog .battle-field .duel-illustration img{height:50px}.game-dialog .battle-field .duel-card strong{font-size:11px;min-height:22px}.game-dialog .duel-hand .duel-illustration img{height:40px}}
