.magic-lobby{color:#335963!important;background:radial-gradient(ellipse at 0 0,#e6f0db,transparent 50%),radial-gradient(ellipse at 100% 0,#e8e0f0,transparent 60%),#fffaf0!important}
.magic-lobby-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.magic-lobby-heading h2{font:700 52px/1.1 MalkastenHand,Georgia;margin:10px 0}.magic-lobby p{font:15px/1.6 system-ui;max-width:none}.magic-lobby button:not(.magic-card){min-height:40px;padding:9px 14px;border:1px solid #bfcbaf;border-radius:12px;background:#f5f4e4;color:#3c625d;font:600 13px system-ui}.magic-lobby .primary{background:#3c747b!important;color:#fff!important;border-color:#3c747b!important}.magic-lobby-heading>button{background:#efe6c9!important;flex:none}
.magic-intro{display:flex;align-items:center;justify-content:space-between;gap:25px;background:linear-gradient(115deg,#dcebe1,#f8efd9,#e6dff2);padding:23px 28px;border:1px solid #cec4a5;border-radius:22px;margin:23px 0 28px}.magic-intro>div{display:flex;align-items:center;gap:11px;white-space:nowrap}.magic-intro .dream-sun{width:54px;height:54px;font-size:45px}.magic-intro p{text-align:center;margin:0;font-weight:600}.magic-intro small{font-weight:400;font-size:12px}
.magic-atelier{display:grid;grid-template-columns:minmax(320px,.7fr) minmax(0,1.3fr);gap:26px;align-items:start}.magic-deck-box{border:1px solid #c9cbb5;border-radius:20px;background:#f4f5e6;padding:20px}.magic-deck-header,.magic-name-row,.magic-catalog-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.magic-deck-header h3,.magic-catalog h3{font:700 24px Georgia;margin:0}.magic-deck-header>span{font:600 11px system-ui;color:#6c7560}.magic-deck-box label{display:block;font:600 12px system-ui;margin-top:17px}.magic-deck-box input,.magic-deck-box select{margin:7px 0 0;min-height:44px;font:15px system-ui;width:100%;box-sizing:border-box;background:#fffcf1;border:1px solid #c7c8ab;border-radius:10px;padding:10px}.magic-name-row{align-items:end}.magic-name-row label{flex:1;min-width:0}.magic-side-choice{display:flex;gap:8px;margin-top:16px}.magic-side-choice button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;padding:9px!important;font-size:12px!important}.magic-lobby [aria-pressed=true]:not(.magic-card){background:#d2e6df!important;border-color:#61978c!important;color:#315e5b!important}.magic-deck-list{display:grid;gap:8px;margin:18px 0}.magic-deck-list>div{display:flex;align-items:center;gap:8px;border-radius:11px;background:#fffaf0;padding:5px 6px}.magic-deck-list b{font:600 12px system-ui;flex:1}.magic-deck-list small{font:700 13px system-ui;white-space:nowrap}.magic-deck-list button{min-width:36px;min-height:36px!important;padding:5px!important;font-size:20px!important;background:transparent!important}.magic-deck-list span{font-size:20px;color:#9f8441}.magic-deck-box>small{font:11px/1.6 system-ui;color:#687663}.magic-deck-message{font-size:13px!important;padding:11px;background:#e2ead6;border-radius:10px;color:#4d6c50}.magic-catalog-head>div{display:flex;gap:5px}.magic-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.magic-catalog-grid article>div{display:flex;gap:5px;margin-top:7px}.magic-catalog-grid article>div button{font-size:10px!important;padding:7px 8px!important;min-height:36px!important;flex:1}.magic-catalog-grid article{min-width:0}.magic-catalog>button{margin-top:16px;width:100%}
.magic-card{display:flex;flex-direction:column;position:relative;width:100%;aspect-ratio:.7;padding:10px;border:2px solid #bead85;border-radius:15px;background:linear-gradient(140deg,#fff8dd,#f4ead5);color:#3d575b;box-shadow:0 3px 7px #4431241a;text-align:left;min-width:0;user-select:none;-webkit-user-select:none;touch-action:manipulation;box-sizing:border-box;cursor:pointer}.magic-card.special{border-color:#9e81ae;background:linear-gradient(140deg,#fff9ed,#ece1f0)}.magic-card>.dream-sun{position:absolute;right:7px;top:7px;width:24px;height:24px;font-size:23px;z-index:2}.magic-cost{position:absolute;left:6px;top:5px;z-index:2;width:30px;height:30px;display:grid;place-items:center;border:2px solid #fff9df;border-radius:11px;background:#487b88;color:white;font:800 17px system-ui}.magic-card-art{flex:1;min-height:0;overflow:hidden;border-radius:9px;background:#fffcf0;display:grid;place-items:center;margin-bottom:7px}.magic-card-art img{display:block;width:100%;height:100%;object-fit:cover;min-height:0;pointer-events:none;user-select:none;-webkit-user-drag:none}.magic-card strong{display:block;font:700 15px/1.3 Georgia;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none}.magic-card-type{font:8px/1.7 system-ui;letter-spacing:.05em;color:#8c8064;flex:none}.magic-card-rule{font:11px/1.5 system-ui;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none;color:#55756c}.magic-stability{display:block;font:600 11px/1.4 system-ui;padding:4px 6px;margin-top:5px;border-radius:6px;background:#e2e8d1;flex:none}.magic-source-card .magic-card-art{background:radial-gradient(ellipse,#b8dacf,#41747a);color:#fff4be}.magic-source-symbol{font:80px/1 Georgia;text-shadow:0 0 15px #fff4bd}.magic-card:focus-visible{outline:3px solid #d6b359;outline-offset:3px}.magic-card.chosen{outline:3px solid #f2d28e;outline-offset:4px}
.magic-editor{padding:24px;background:#f4efdf;border:1px solid #c9bb97;border-radius:20px;margin-top:27px}.magic-editor h3{font:700 28px Georgia}.magic-editor>label{font:600 13px system-ui;display:block}.magic-editor select{width:100%;min-height:44px;margin:10px 0;font-size:15px}.magic-ability-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.magic-ability-list label{display:flex;align-items:start;gap:10px;border:1px solid #d1c5a5;border-radius:14px;background:#fffaf0;padding:13px;font:13px/1.5 system-ui;cursor:pointer}.magic-ability-list input{width:20px;height:20px;min-height:20px!important;flex:none;margin-top:2px}.magic-ability-list b{display:block;color:#3e6666;font:700 16px Georgia}.magic-ability-list small{display:block;color:#8c7752;font-size:11px;margin:4px 0}.magic-opponents{margin:32px 0 0}.magic-opponents h3{font:700 26px Georgia}.magic-opponents>div{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:17px 0}.magic-opponents>div>button{display:grid;grid-template-columns:55px 1fr;gap:8px 13px;text-align:left;align-items:center;background:#f5ecd9!important}.magic-opponents .dream-portrait{width:55px;height:68px;grid-row:span 2}.magic-opponents b{font:700 18px Georgia}.magic-opponents b small{display:block;font:12px/1.5 system-ui;margin-top:5px}.magic-opponents button>span:last-child{font:11px/1.5 system-ui}.magic-opponents>button{margin-right:10px}.magic-opponents>p{font-size:12px}

/* The worlds occupy the full screen; controls float without changing its dimensions. */
.game-dialog .magic-arena{background:radial-gradient(ellipse at 23% 40%,#544779,#202636 60%,#131d2a);color:#f6efd9}
.game-dialog .magic-playing-area{position:absolute;inset:0;overflow:hidden}
.magic-cosmic-mist{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 76% 64%,#38807866,transparent 55%),radial-gradient(ellipse at 15% 16%,#8879b950,transparent 55%)}
.magic-match-label{position:absolute;left:50%;top:14px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;white-space:nowrap;font:12px Georgia;color:#eddfb6}.magic-match-label>span:not(.dream-sun){font:700 10px system-ui;letter-spacing:.07em}.magic-match-label>.dream-sun{width:25px;height:25px;font-size:24px}
.magic-worlds{position:absolute;inset:62px 23px 88px;display:grid;grid-template-columns:1fr 1fr;gap:24px;min-height:0}
.magic-world-zone{display:flex;flex-direction:column;min-height:0;min-width:0;padding:14px;border:1px solid #b9acdc55;border-radius:23px;background:radial-gradient(ellipse at top,#62558160,#302b4860);box-sizing:border-box;gap:10px;box-shadow:inset 0 0 40px #bcb1f00c}.magic-world-zone.light{border-color:#9ac7b34d;background:radial-gradient(ellipse at top,#44796d66,#203d4060)}
.magic-world-heading{display:flex;align-items:center;gap:12px;flex:none;min-height:60px;border:1px solid #f1e6c733;border-radius:16px;background:#f8f0d710;color:#f8edcf;padding:8px 12px;text-align:left}.magic-world-heading>span:nth-child(2){flex:1;min-width:0}.magic-world-heading b{display:block;font:700 19px Georgia}.magic-world-heading small{display:block;font:11px/1.5 system-ui;color:#dfd9bd}.magic-world-heading strong{font:700 28px Georgia;text-align:center}.magic-world-heading strong small{font-size:9px}.magic-world-heading .dream-portrait{width:45px;height:52px}.magic-world-heading>.dream-sun{width:45px;height:45px;font-size:42px}.magic-world-shield{font:13px system-ui!important;white-space:nowrap}
.magic-energy-row{display:flex;align-items:center;gap:10px;flex:none;min-height:68px}.magic-energy-row>span{font:700 23px Georgia;text-align:center;min-width:47px;color:#e5d69b}.magic-energy-row>span small{display:block;font:10px/1.4 system-ui;color:#c6ceb7}.magic-energy-row>div{display:flex;gap:9px;align-items:center;min-width:0;overflow-x:auto;overflow-y:hidden;padding:3px;scrollbar-width:none;flex:1}.magic-energy-row>div::-webkit-scrollbar{display:none}.magic-energy{border:0;background:transparent;color:#e7e2c1;width:52px;min-width:52px;height:62px;flex:none;padding:0;cursor:pointer}.magic-energy i{display:grid;place-items:center;width:34px;height:43px;margin:0 auto 3px;border:1px solid #e4d89987;border-radius:7px;background:radial-gradient(ellipse,#bbd6ac,#327c75);font:32px/1 Georgia;color:#fff5bf;transition:transform .25s,opacity .25s;font-style:normal}.night .magic-energy i{background:radial-gradient(ellipse,#aab4d3,#594c88)}.magic-energy small{font:8px system-ui;white-space:nowrap}.magic-energy.tapped i{transform:rotate(90deg);opacity:.48}.magic-energy.blocked i{background:#637b94;opacity:.7;border-color:#a9d3eb;color:#c7edf8}.magic-energy.blocked small{color:#b6e6fb}.magic-empty-sources{font:11px/1.6 system-ui;color:#c8d7cd;text-align:center}
.magic-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;min-height:0;flex:1;padding:6px 7px}.magic-card-slot{display:flex;align-items:center;justify-content:center;min-height:0;min-width:0}.magic-actions-grid .magic-card{width:126px;height:100%;max-height:190px;aspect-ratio:auto;padding:8px;flex:none}.magic-actions-grid .magic-card strong{font-size:12px}.magic-actions-grid .magic-card .magic-card-rule,.magic-actions-grid .magic-card .magic-stability{font-size:9px}.magic-actions-grid .magic-card .magic-card-type{font-size:7px}.magic-actions-grid .magic-card .magic-card-art{margin-bottom:5px}.magic-card-slot .magic-card.tapped{transform:rotate(90deg) scale(.88);opacity:.76}.magic-actions-grid>p{grid-column:1/-1;grid-row:1/-1;align-self:center;text-align:center;font:italic 16px Georgia;color:#c9cfbb}.magic-zone-foot{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;font:10px system-ui;color:#c9d3c6;min-height:25px}.magic-zone-foot button{font:10px system-ui;color:#d7dfd0;background:#fff8;border:1px solid #ffffff22;border-radius:8px;padding:6px 8px;background:#ffffff0d}
.magic-target{outline:2px dashed #fff0ae!important;outline-offset:3px;cursor:crosshair!important}.magic-instruction{position:absolute;left:25px;right:25px;bottom:62px;margin:0;max-width:none!important;font:12px/1.5 system-ui!important;text-align:center;color:#e9e3c8!important;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-dialog .magic-arena>.magic-info{position:absolute;right:12px;top:63px;width:min(360px,calc(100% - 24px));max-height:70dvh;padding:16px;border:1px solid #c4c5ad;border-radius:16px;background:#fff9ebf5;color:#43605a;box-shadow:0 5px 20px #111c3340}.magic-info h3{font:700 18px Georgia;margin:0 0 10px}.magic-info p{font:12px/1.6 system-ui;margin:0 0 9px}.magic-info button{min-height:37px;background:#e2e9d5;border:1px solid #c2c7a5;border-radius:10px;padding:8px 12px;color:#46615a}
.game-dialog .magic-arena>.magic-hand-box{position:absolute;right:12px;bottom:65px;width:min(850px,calc(100% - 24px));max-height:40dvh;overflow:hidden;padding:12px;border:1px solid #d3c1a0;border-radius:16px;background:#fff6e5f2;box-shadow:0 5px 22px #14203945}.magic-hand-label{font:700 12px system-ui;color:#556659;display:flex;justify-content:space-between;gap:10px}.magic-hand-label small{font-weight:400;font-size:10px}.magic-hand{display:flex;gap:14px;padding:10px 4px 5px;overflow:auto;scrollbar-width:none}.magic-hand::-webkit-scrollbar{display:none}.magic-hand .magic-card{width:116px;min-width:116px;height:172px;aspect-ratio:auto;padding:7px;flex:none}.magic-hand .magic-card strong{font-size:12px}.magic-hand .magic-card-rule{font-size:9px}.magic-hand .magic-stability{font-size:9px;margin-top:4px;padding:3px}.magic-hand .magic-card-art{margin-bottom:5px}.magic-hand .magic-source-symbol{font-size:53px}.magic-hand-box>button{font:11px system-ui;border:0;background:transparent;text-decoration:underline;color:#5c7060;padding:6px}
.magic-arena .duel-help-peek{right:144px;background:#fff6dfd6;box-shadow:none}.magic-spell-box{position:absolute;left:50%;bottom:75px;transform:translateX(-50%);width:min(360px,calc(100% - 24px));padding:15px;border:1px solid #d7c59b;border-radius:16px;background:#fff5def5;box-shadow:0 4px 20px #1e224344;z-index:30;color:#48615e;box-sizing:border-box}.magic-spell-box>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:10px}.magic-spell-box>div:first-child b{font:700 17px Georgia}.magic-spell-box>div:first-child button{border:0;background:transparent;font-size:24px;color:#698073}.magic-spell-box>div:nth-child(2){display:flex;gap:8px;margin-top:11px}.magic-spell-box>div:nth-child(2) button{min-height:37px;flex:1;padding:7px;border:1px solid #c5c8a6;border-radius:10px;font:12px system-ui;color:#4d6c61;background:#f4f2dc}.magic-spell-box [aria-pressed=true]{background:#d6e7db!important;border-color:#82a492!important}.magic-spell-box p{font:13px/1.6 system-ui;margin:10px 0}.magic-spell-box>button{width:100%;min-height:42px;border:1px solid #568078;border-radius:12px;background:#4c7f78;color:#fff6e5;font:700 14px system-ui}.magic-spell-box small{font:12px system-ui;color:#886e49}
.magic-victory{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,calc(100% - 35px));text-align:center;border:1px solid #d8c48d;background:radial-gradient(ellipse,#fff8d5,#ddd3ec);padding:35px;border-radius:28px;box-shadow:0 0 80px #efd68c50,0 12px 60px #10172d99;z-index:80;box-sizing:border-box;color:#4d536b}.magic-victory h2{font:700 50px MalkastenHand,Georgia}.magic-victory p{font:15px/1.6 system-ui;color:#655b73}.magic-victory button{min-height:46px;border:1px solid #647c84;border-radius:14px;background:#476d77;color:#fff7dc;padding:12px 20px;font:700 15px system-ui}.magic-victory .dream-sun{width:72px;height:72px;font-size:64px}
.magic-grave-dialog{width:min(780px,calc(100vw - 24px));box-sizing:border-box}.magic-grave-dialog>.lesson-close{float:right}.magic-grave-dialog .magic-catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1050px){.magic-atelier{grid-template-columns:330px 1fr;gap:18px}.magic-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.magic-catalog-head{display:block}.magic-catalog-head>div{margin-top:12px}.magic-intro{gap:15px;padding:18px}.magic-intro>div{display:block;text-align:center}.magic-intro b{display:block;font-size:12px;margin-top:7px}.magic-lobby-heading h2{font-size:44px}.magic-worlds{inset:62px 15px 88px;gap:15px}.magic-world-zone{padding:12px;gap:8px}.magic-world-heading b{font-size:17px}.magic-world-heading{padding:7px 10px;gap:10px}}
@media(max-width:700px){.magic-lobby-heading{display:block}.magic-lobby-heading h2{font-size:39px}.magic-lobby-heading>button{margin-top:10px}.magic-intro{padding:15px 12px;gap:10px}.magic-intro .dream-sun{width:37px;height:37px;font-size:33px}.magic-intro p{font-size:12px}.magic-intro small{display:none}.magic-atelier{grid-template-columns:1fr}.magic-deck-box{padding:16px}.magic-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.magic-card strong{font-size:14px}.magic-opponents>div{grid-template-columns:1fr}.magic-ability-list{grid-template-columns:1fr}.magic-editor{padding:17px}.magic-editor h3{font-size:23px}.magic-name-row button{padding:8px!important;font-size:11px!important}.magic-lobby p{font-size:13px}.magic-deck-header h3{font-size:22px}.magic-opponents>button{width:100%;margin:5px 0}.magic-grave-dialog .magic-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.magic-match-label{font-size:0;gap:7px;left:70px;transform:none;top:20px}.magic-match-label>span:not(.dream-sun){font-size:8px;letter-spacing:0}.magic-match-label>.dream-sun{display:none}.magic-worlds{inset:62px 8px 78px;grid-template-columns:1fr;grid-template-rows:1fr 1fr;gap:9px}.magic-world-zone{padding:7px 9px;gap:4px;border-radius:16px}.magic-world-heading{min-height:40px;padding:5px 9px;gap:8px;border-radius:12px}.magic-world-heading b{font-size:15px}.magic-world-heading small{font-size:9px}.magic-world-heading strong{font-size:23px}.magic-world-heading strong small{font-size:8px}.magic-world-heading .dream-portrait{width:30px;height:35px}.magic-world-heading>.dream-sun{width:31px;height:31px;font-size:29px}.magic-world-shield{font-size:11px!important}.magic-energy-row{min-height:47px;gap:7px}.magic-energy-row>span{font-size:18px;min-width:35px}.magic-energy-row>span small{font-size:8px}.magic-energy{height:44px;width:43px;min-width:43px}.magic-energy i{width:25px;height:31px;font-size:25px;margin-bottom:3px}.magic-energy small{font-size:7px}.magic-energy-row>div{gap:6px}.magic-empty-sources{font-size:9px}.magic-actions-grid{gap:6px;padding:3px;min-height:0}.magic-actions-grid .magic-card{width:93px;max-height:125px;padding:5px;border-radius:10px}.magic-actions-grid .magic-card strong{font-size:10px}.magic-actions-grid .magic-card-type{display:none}.magic-actions-grid .magic-card .magic-card-rule,.magic-actions-grid .magic-card .magic-stability{font-size:8px;line-height:1.3}.magic-actions-grid .magic-stability{padding:2px 3px;margin-top:3px}.magic-actions-grid .magic-card .magic-card-art{margin-bottom:3px}.magic-actions-grid .magic-card>.dream-sun{width:17px;height:17px;font-size:17px;top:4px;right:4px}.magic-actions-grid .magic-cost{width:23px;height:23px;font-size:13px;border-radius:8px;top:3px;left:3px}.magic-actions-grid>p{font-size:12px}.magic-zone-foot{font-size:9px;min-height:21px;gap:6px}.magic-zone-foot button{font-size:9px;padding:4px 6px}.magic-instruction{bottom:58px;left:12px;right:12px;font-size:10px!important}.magic-hand-label{font-size:11px;display:block}.magic-hand-label small{display:block;font-size:9px;margin-top:3px}.magic-hand .magic-card{width:100px;min-width:100px;height:153px}.magic-hand{gap:11px}.game-dialog .magic-arena>.magic-hand-box{padding:11px;bottom:62px}.magic-arena .duel-help-peek{right:134px;font-size:11px;padding:9px 12px}.magic-spell-box{bottom:65px;padding:12px}.magic-victory{padding:25px}.magic-victory h2{font-size:39px}}
@media(max-height:550px) and (min-width:651px){.magic-worlds{inset:55px 12px 75px}.magic-world-zone{padding:8px;gap:5px}.magic-world-heading{min-height:37px;padding:4px 8px}.magic-world-heading .dream-portrait{height:32px;width:30px}.magic-world-heading>.dream-sun{width:30px;height:30px;font-size:28px}.magic-world-heading b{font-size:14px}.magic-world-heading strong{font-size:22px}.magic-energy-row{min-height:42px}.magic-energy{height:37px}.magic-energy i{width:22px;height:25px;font-size:23px}.magic-actions-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:1fr;gap:4px}.magic-actions-grid .magic-card{width:80px;max-height:120px;padding:4px}.magic-actions-grid .magic-card-type{display:none}.magic-actions-grid .magic-card strong{font-size:10px}.magic-actions-grid .magic-card-rule,.magic-actions-grid .magic-stability{font-size:7px!important}.magic-actions-grid .magic-card>.dream-sun{display:none}.magic-actions-grid .magic-cost{width:21px;height:21px;font-size:11px}.magic-hand .magic-card{height:120px;width:90px;min-width:90px}.magic-hand-box{max-height:50dvh!important}.magic-match-label{top:12px}.magic-zone-foot{font-size:8px}.magic-zone-foot button{font-size:8px}}
@media(prefers-reduced-motion:reduce){.magic-energy i{transition:none}}

.magic-lesson-deck{display:grid;grid-template-columns:repeat(10,1fr);gap:8px;margin-bottom:22px}.magic-lesson-deck>span{display:grid;place-items:center;height:70px;border:1px solid #bdb698;border-radius:12px;background:#e5efd2;font:32px Georgia;color:#507765}.magic-lesson-deck .source{background:#cde4de;color:#347b80}.magic-lesson-deck .special{background:#e4d6ec;color:#88649e}
.magic-lesson-sources{display:flex;gap:15px;align-items:center}.magic-lesson-sources>div{flex:1;font:60px Georgia;color:#448277;text-align:center;padding:14px;background:#e4efdb;border-radius:18px}.magic-lesson-sources>div>b{display:block;font:700 20px Georgia;margin:10px 0 7px;color:#4f6c57}.magic-lesson-sources p{font-size:14px!important}.magic-lesson-sources>div.tapped{background:#e4e1da;color:#8a9383}
.magic-lesson-practice{display:flex;align-items:center;justify-content:center;gap:25px}.magic-lesson-source{flex:none;border:0;background:transparent;color:#457b6b;padding:0;min-width:65px}.magic-lesson-source i{display:grid;place-items:center;width:55px;height:80px;margin:0 auto 15px;border:1px solid #94b19b;border-radius:13px;background:linear-gradient(#e8eeca,#7eafa1);font:48px Georgia;font-style:normal}.magic-lesson-source.tapped i{transform:rotate(90deg);opacity:.55}.magic-lesson-source small{display:block;font:12px system-ui}.magic-lesson-source:disabled,.magic-lesson-practice button:disabled{opacity:1}.magic-lesson-source:not(:disabled){outline:3px dashed #d5af6a;outline-offset:5px;border-radius:12px}.magic-lesson-practice .lesson-practice-world{width:145px;min-height:150px}.magic-freeze-timeline{display:flex;align-items:center;gap:22px;padding:18px 22px;background:#dfeaf0;border:1px solid #a8c7d8;border-radius:20px}.magic-freeze-timeline>span{display:grid;place-items:center;flex:none;width:75px;height:95px;border:1px solid #8aacbd;border-radius:13px;background:#c1d8e4;font:45px Georgia;color:#4783a1}.magic-freeze-timeline h3{font:700 22px Georgia;margin:0 0 7px}.magic-freeze-timeline p{font-size:15px!important}#magic-freeze-example{margin-bottom:20px}#magic-lesson-title:focus{outline:none}
@media(max-width:700px){.magic-lesson-deck{grid-template-columns:repeat(5,1fr);gap:7px;margin-bottom:16px}.magic-lesson-deck>span{height:51px;font-size:26px}.magic-lesson-sources{flex-direction:column;gap:8px}.magic-lesson-sources>div{font-size:35px;padding:12px;width:100%;box-sizing:border-box}.magic-lesson-sources>div>b{font-size:18px;margin:5px}.magic-lesson-sources>div p{font-size:13px!important}.magic-lesson-practice{gap:12px}.magic-lesson-practice .lesson-practice-card{width:125px}.magic-lesson-practice .lesson-practice-world{width:103px;padding:9px;min-height:140px}.magic-lesson-source{min-width:46px}.magic-lesson-source i{width:37px;height:58px;font-size:32px;margin-bottom:13px}.magic-lesson-source small{font-size:10px}.magic-freeze-timeline{padding:14px;gap:13px}.magic-freeze-timeline>span{width:48px;height:68px;font-size:32px}.magic-freeze-timeline h3{font-size:18px}}
.magic-cosmic-mist:before{content:'';position:absolute;inset:0;background:url(magic-stars.svg) repeat;opacity:.55;pointer-events:none}
.magic-actions-grid[data-count="1"]{grid-template-columns:1fr;grid-template-rows:1fr}.magic-actions-grid[data-count="2"]{grid-template-rows:1fr}.magic-actions-grid[data-count="1"] .magic-card{width:155px;max-height:220px}.magic-actions-grid[data-count="2"] .magic-card{width:145px;max-height:210px}.magic-wallet{display:block;font:11px system-ui;margin-top:6px;color:#8e794c;text-align:right}
@media(max-width:650px){.magic-actions-grid[data-count="1"] .magic-card{width:110px;max-height:160px}.magic-actions-grid[data-count="2"] .magic-card{width:103px;max-height:150px}}
@media(max-height:550px) and (min-width:651px){.magic-actions-grid[data-count="1"] .magic-card,.magic-actions-grid[data-count="2"] .magic-card{width:95px;max-height:130px}}
.magic-card-detail{display:grid;grid-template-columns:190px 1fr;gap:25px;align-items:start}.magic-card-detail>.magic-card{height:265px;aspect-ratio:auto}.magic-card-detail h3{font:700 19px Georgia;color:#55766a;margin-top:18px}.magic-card-detail p{font:14px/1.6 system-ui}.magic-resume{display:flex;align-items:center;justify-content:space-between;padding:18px;margin:25px 0 0;border:1px solid #a5baaf;border-radius:15px;background:#e5efdb}
@media(max-width:650px){.magic-card-detail{grid-template-columns:1fr;gap:15px}.magic-card-detail>.magic-card{width:160px;height:235px;margin:auto}}

/* Guidance teaches real moves without changing a saved deck. */
.magic-first-game{display:grid;grid-template-columns:110px 1fr;gap:24px;align-items:center;padding:25px;margin-bottom:25px;border:1px solid #a1b5a1;border-radius:24px;background:linear-gradient(115deg,#e8efdb,#fff4dd);color:#435c53}.magic-first-game>img{width:105px;height:105px;object-fit:contain}.magic-first-game h3{font:700 29px Georgia;margin:6px 0 10px}.magic-first-game>div>span{font:700 10px system-ui;letter-spacing:.08em;color:#7c8261}.magic-first-game p{margin:0 0 14px}.magic-first-game ol{list-style:none;padding:0;margin:12px 0 18px;display:flex;flex-wrap:wrap;gap:15px;font:12px system-ui}.magic-first-game li{display:flex;gap:7px;align-items:center}.magic-first-game li b{display:grid;place-items:center;width:25px;height:25px;background:#d5e3c5;border-radius:50%;color:#526955}.magic-first-game small{display:block;margin-top:10px;font:11px/1.5 system-ui;color:#887a63}.magic-first-game .primary{min-height:48px;padding:12px 22px!important}.magic-deck-details{margin:20px 0 25px;padding:0 20px;border:1px solid #c5c3a7;border-radius:18px;background:#fffaed}.magic-deck-details>summary{cursor:pointer;padding:18px 0;font:700 19px Georgia;color:#507065;list-style-position:inside}.magic-deck-details>summary>span{display:block;font:12px system-ui;margin:7px 0 0 22px;color:#8a7a63}.magic-deck-details[open]{padding-bottom:20px}.magic-deck-details .magic-atelier{margin-top:12px}
.magic-cost-caption{position:absolute;top:33px;left:7px;border-radius:4px;padding:2px 4px;font:7px/1.2 system-ui;color:#f5f1de;background:#486861df;z-index:2}.magic-cost-caption:empty{display:none}.magic-use{display:block;flex:none;font:700 10px/1.3 system-ui;padding:4px 5px;margin-top:4px;border-radius:6px;background:#e3ecd4;color:#4b6a50;text-align:center;white-space:normal}.magic-use.unavailable{background:#e7e2d8;color:#8a8275}.magic-card:disabled{cursor:default;opacity:.65}.magic-suggested{outline:3px solid #f5c457!important;outline-offset:4px;box-shadow:0 0 20px #ffe6a044!important}.magic-hand .magic-card-art{min-height:0}.magic-actions-grid .magic-use{font-size:8px;padding:3px;margin-top:3px}.magic-actions-grid .magic-cost-caption{font-size:6px;top:31px;left:6px}.magic-world-shield small{font:8px system-ui}.magic-match-label>span>small{display:block;text-align:center;margin-top:5px;font:700 11px system-ui;color:#ffedac;letter-spacing:0}.magic-arena #magic-tips-toggle{position:absolute;top:15px;left:73px;min-height:30px;border:1px solid #c0cfb944;border-radius:10px;padding:7px 10px;background:#ffffff16;color:#e2e6ce;font:10px system-ui;z-index:21}
.magic-coach{position:absolute;z-index:35;bottom:9px;left:210px;right:210px;max-width:800px;margin:auto;display:flex;gap:18px;align-items:center;padding:12px 16px;border:1px solid #b3bc97;border-radius:16px;background:#fff8e9f5;color:#435f55;box-shadow:0 4px 15px #131e3433;box-sizing:border-box}.magic-coach>div{flex:1;min-width:0}.magic-coach strong{display:block;font:700 16px Georgia}.magic-coach p{font:11px/1.55 system-ui;margin:5px 0 0;color:#6f725d}.magic-coach>button{flex:none;max-width:170px;min-height:42px;padding:9px 12px;border:1px solid #789688;border-radius:11px;background:#467e71;color:#fff8e2;font:700 12px/1.4 system-ui}.magic-coach>button:disabled{opacity:.6}.magic-coach-open .magic-instruction{left:12px;right:auto;bottom:75px;width:180px;white-space:normal;max-height:48px;overflow:hidden;font-size:9px!important;opacity:.75}.magic-learning .magic-instruction{display:none}.magic-coach-open .magic-worlds{bottom:125px}.magic-coach-open .magic-spell-box{bottom:125px}.magic-coach-open>.magic-hand-box{bottom:125px!important}
@media(max-width:1050px){.magic-coach{left:185px;right:185px;gap:10px;padding:11px}.magic-coach strong{font-size:14px}.magic-coach>button{max-width:140px;font-size:11px}.magic-coach-open .magic-instruction{width:160px}}
@media(max-width:650px){.magic-first-game{grid-template-columns:1fr;padding:20px;gap:12px}.magic-first-game>img{width:64px;height:64px}.magic-first-game h3{font-size:25px}.magic-first-game ol{display:grid;grid-template-columns:1fr 1fr;gap:11px;font-size:10px}.magic-first-game .primary{width:100%;font-size:13px!important}.magic-deck-details{padding:0 13px}.magic-deck-details>summary{font-size:17px}.magic-coach{left:10px;right:10px;bottom:62px;padding:12px;display:block;max-height:150px}.magic-coach strong{font-size:16px}.magic-coach p{font-size:11px;margin:5px 0 9px}.magic-coach>button{width:100%;max-width:none;min-height:36px;font-size:12px;padding:7px 10px}.magic-coach-open .magic-worlds{bottom:216px}.magic-coach-open>.magic-hand-box{bottom:217px!important}.magic-coach-open .magic-spell-box{bottom:217px}.magic-coach-open .magic-instruction{display:none}.magic-arena #magic-tips-toggle{left:66px;top:15px;padding:6px;min-height:27px;font-size:8px}.magic-match-label{top:44px;left:50%;transform:translateX(-50%);height:12px;white-space:nowrap}.magic-match-label>span>small{display:inline;font-size:9px;margin-left:6px}.magic-match-label>span:not(.dream-sun){font-size:7px}.magic-actions-grid .magic-cost-caption,.magic-actions-grid .magic-use{display:none}.magic-hand .magic-card{height:174px}.magic-hand .magic-use{font-size:9px}.magic-hand .magic-stability{font-size:8px}.magic-world-heading small{font-size:8px}.magic-actions-grid[data-count="1"] .magic-card{max-height:147px}.magic-actions-grid[data-count="2"] .magic-card{max-height:135px}}
@media(max-height:550px) and (min-width:651px){.magic-coach{left:170px;right:170px;gap:8px;padding:7px 10px;bottom:6px}.magic-coach strong{font-size:12px}.magic-coach p{font-size:9px;margin-top:3px}.magic-coach>button{font-size:10px;min-height:32px;max-width:130px}.magic-coach-open .magic-worlds{bottom:105px}.magic-coach-open>.magic-hand-box,.magic-coach-open .magic-spell-box{bottom:105px!important}.magic-actions-grid .magic-use{display:none}}

.magic-coach{flex-wrap:wrap}.magic-coach>div{flex-basis:calc(100% - 190px)}.magic-report-summary{flex-basis:100%;width:100%;border:0;border-top:1px solid #bac5a580;background:transparent;color:#456e65;padding:9px 0 0;margin:0;text-align:left;font:12px/1.5 system-ui;cursor:pointer}.magic-report-summary>span{font-weight:700;color:#7c6848}.magic-report-summary small{font-weight:700;white-space:nowrap}.magic-coach>.magic-report-summary{max-width:none;min-height:0;padding:8px 0 0;border:0;border-top:1px solid #bac5a580;border-radius:0;background:transparent;color:#456e65;font:12px/1.5 system-ui}.magic-coach-open .magic-worlds{bottom:calc(var(--coach-space,100px) + 35px)}.magic-coach-open>.magic-hand-box,.magic-coach-open .magic-spell-box{bottom:calc(var(--coach-space,100px) + 35px)!important}.magic-receipt-alone{position:absolute;left:210px;right:210px;bottom:65px;padding:8px 12px;border:1px solid #9bbca466;border-radius:12px;background:#203c3eee;z-index:35}.magic-receipt-alone .magic-report-summary{color:#fff0c9;border:0;padding:0}.magic-receipt-alone .magic-report-summary>span{color:#ffe4a0}.magic-report-dialog>h2{font:700 30px Georgia;color:#506f63}.magic-report-dialog>p{font:13px system-ui;color:#8a7c67}.magic-report-dialog article{padding:19px 22px;margin:16px 0;border:1px solid #c0cead;border-radius:17px;background:#f1f3e3}.magic-report-dialog article>span{font:700 11px system-ui;color:#8e784c}.magic-report-dialog h3{font:700 21px Georgia;margin:7px 0 9px;color:#486c60}.magic-report-dialog p{font:13px/1.65 system-ui;margin:0;color:#7b7764}.magic-report-dialog ul{padding-left:20px;margin-bottom:0;font:700 15px/1.7 system-ui;color:#497364}
@media(max-width:650px){.magic-match-label{top:60px}.magic-worlds{top:80px}.magic-coach{max-height:none}.magic-coach>div{width:100%}.magic-coach-open .magic-worlds{bottom:calc(var(--coach-space,140px) + 86px)}.magic-coach-open>.magic-hand-box,.magic-coach-open .magic-spell-box{bottom:calc(var(--coach-space,140px) + 86px)!important}.magic-coach>.magic-report-summary{font-size:11px;margin-top:9px;padding-top:8px}.magic-receipt-alone{left:10px;right:10px;bottom:62px}.magic-report-dialog article{padding:16px}.magic-report-dialog h3{font-size:19px}.magic-report-dialog ul{font-size:14px}}

.magic-energy i{position:relative}.magic-energy i b{position:absolute;right:-5px;top:-4px;border:1px solid #d7dca5;border-radius:50%;background:#597c75;color:#fff2c8;font:700 9px/15px system-ui;width:15px;height:15px;text-align:center}.magic-energy.blocked i b{background:#59778c}

