/* One next step: select a subject, then start or resume. Optional tools stay available. */
.expedition-game .adventure-heading#misja{padding-top:18px}
.expedition-game #misja>.expedition-heading{margin-bottom:24px;align-items:center}
.expedition-game .expedition-heading h1{font-size:27px;margin:0}
.expedition-game .expedition-heading .expedition-kicker{margin-bottom:7px;font-size:11px;color:#e3cd9e;letter-spacing:.1em}
.expedition-game .expedition-dashboard{grid-template-columns:minmax(0,1.35fr) minmax(240px,.8fr);gap:32px}
.expedition-game .expedition-main{min-width:0}
.expedition-game .expedition-aside{display:block;padding-top:0}
.expedition-game .expedition-feature{min-height:440px;align-items:flex-end}
.expedition-game .expedition-feature::after{background:linear-gradient(0deg,#102936fa 2%,#102936d9 22%,#10293608 70%)}
.expedition-game .expedition-feature>div{max-width:100%;padding:26px}
.expedition-game .expedition-feature h2{font-size:30px;line-height:1.25;margin:0 0 12px}
.expedition-game .expedition-feature p{font-size:14px;line-height:1.6;color:#d9dedb}
.expedition-game .daily-mission-lead{padding:0}
.expedition-game .daily-mission-title{font-size:28px;margin:0 0 8px;line-height:1.3}
.expedition-game .daily-mission-tagline{font-size:15px;line-height:1.6;margin:0 0 20px;color:#d0dadd}
.expedition-game .mission-today{font-size:14px;margin:0 0 10px;color:#d0dadd}
.expedition-game .mission-today b{font-weight:500}
.expedition-game .mission-tiles{gap:8px;margin:0 0 14px}
.expedition-game .mission-tile{padding:12px;gap:5px;min-height:80px;align-items:center;text-align:center}
.expedition-game .mission-tile-icon{display:none}
.expedition-game .mission-tile b{font-size:14px;line-height:1.4}
.expedition-game .mission-tile small{font-size:12px;line-height:1.4}
.expedition-game .mission-tile.is-chosen{border-color:#83d2d2;box-shadow:inset 0 0 0 1px #83d2d2;background:#193440}
.expedition-game .mission-tile.is-chosen small{color:#c3e9e7}
.expedition-game .mission-panel{padding:22px;background:#193440;border:1px solid #718087}
.expedition-game .mission-panel :is(.mission-note,.mission-from){font-size:14px;line-height:1.6}
.expedition-game .mission-panel .mission-from{margin:0 0 10px}
.expedition-game .mission-first{padding:0;margin:0 0 18px;gap:12px;align-items:center;border:0;background:none}
.expedition-game .mission-first-face{width:48px;height:58px;flex:0 0 48px;font-size:30px}
.expedition-game .mission-first-face img{max-width:48px;max-height:58px;object-fit:contain}
.expedition-game .mission-first-talk{background:none;border:0;box-shadow:none;padding:0}
.expedition-game .mission-first-talk:before{display:none}
.expedition-game .mission-first-talk p{font-size:14px;line-height:1.6;margin:0 0 6px}
.expedition-game .mission-launch{margin:14px 0 0;display:flex;flex-direction:column;align-items:stretch;gap:10px}
.expedition-game .mission-launch .mission-launch-btn{width:100%;min-height:54px;font-size:16px;font-weight:750;line-height:1.5;padding:14px 20px;text-align:center;justify-content:center}
.expedition-game :is(.mission-options,.mission-more){margin:16px 0 0;border-top:1px solid #536873;padding-top:4px;color:#c0cccd}
.expedition-game :is(.mission-options,.mission-more)>summary{font:500 14px/1.5 Manrope,Arial,sans-serif;min-height:44px;display:list-item;padding:12px 0;cursor:pointer;color:#d8ded8}
.expedition-game :is(.mission-options,.mission-more)[open]>summary{margin-bottom:10px;color:#eee8dc}
.expedition-game .mission-options .btn{margin:8px 8px 0 0;max-width:100%;font-size:14px}
.expedition-game .mission-options .skill-cards-line{margin-top:16px}
.expedition-game .mission-weekly-practice{margin:0 0 20px}
.expedition-game .game-regularity{font-size:13px;line-height:1.5;color:#c0cccd}
.expedition-game #misja>.co-nowego,.expedition-game #misja>.tester-questions{margin-top:32px}
/* The task owns the dialog. Extra story and cards do not compete with answers. */
.expedition-game .adventure-dialog:has(.daily-question-meta){width:min(800px,calc(100% - 40px))}
.expedition-game .premium-mission-layout{grid-template-columns:minmax(0,1fr);gap:12px}
.expedition-game .adventure-dialog .premium-mission-aside{padding:0;border:0;border-top:1px solid #aaa99a;border-radius:0;background:none}
.expedition-game .adventure-dialog .premium-mission-aside:not(:has(.mission-scene,.mission-secret-tag)){display:none}
.expedition-game .premium-mission-aside:before{display:none!important}
.expedition-game .adventure-dialog :is(.premium-mission-aside,.mission-cards-more)>summary{min-height:44px;padding:12px 0;cursor:pointer;color:#4e5962;font:500 14px/1.5 Manrope,Arial,sans-serif}
.expedition-game .adventure-dialog .premium-mission-aside[open]{padding-bottom:12px}
.expedition-game .adventure-dialog .premium-mission-aside .mission-scene h3{font:650 16px/1.5 Manrope,Arial,sans-serif;color:#28343e;margin:6px 0 8px;letter-spacing:0;text-shadow:none}
.expedition-game .adventure-dialog .mission-cards-more{border-top:1px solid #aaa99a;margin-top:4px}
.expedition-game .adventure-dialog .mission-cards-more .skill-cards{margin:0 0 8px}
.expedition-game .adventure-dialog .premium-mission-tools{gap:8px}
@media(max-width:1100px){
 .expedition-game .expedition-dashboard{grid-template-columns:minmax(0,1.4fr) minmax(210px,.7fr);gap:22px}
 .expedition-game .expedition-feature>div{padding:20px}
 .expedition-game .expedition-feature h2{font-size:25px}
}
@media(max-width:760px){
 .expedition-game .expedition-dashboard{grid-template-columns:minmax(0,1fr);gap:20px}
 .expedition-game .expedition-aside{order:1}
 .expedition-game .expedition-feature{min-height:180px}
 .expedition-game .expedition-feature>div{max-width:75%;padding:20px}
 .expedition-game .expedition-feature::after{background:linear-gradient(90deg,#102936ec,#102936bf 45%,#10293625)}
 .expedition-game .expedition-feature h2{font-size:23px}
 .expedition-game .expedition-feature p{font-size:13px}
 .expedition-game #misja>.expedition-heading{margin-bottom:20px;flex-wrap:nowrap;gap:10px}
 .expedition-game .expedition-heading>div{width:auto;min-width:0}
 .expedition-game .expedition-heading .expedition-grade{order:0;margin:0;font-size:11px}
 .expedition-game .expedition-heading h1{font-size:23px}
 .expedition-game .daily-mission-title{font-size:25px}
 .expedition-game .daily-mission-tagline{font-size:14px;margin-bottom:16px}
 .expedition-game .mission-tile{padding:10px 5px;min-height:64px;gap:4px}
 .expedition-game .mission-tile b{font-size:13px}
 .expedition-game .mission-tile small{font-size:12px}
 .expedition-game .mission-panel{padding:18px}
 .expedition-game .mission-launch .mission-launch-btn{min-height:52px}
 .expedition-game .adventure-dialog:has(.daily-question-meta){width:calc(100% - 24px)}
}
/* Test papers keep the same warm, readable surface as mission questions. */
body.magic-theme .school-tests-screen .school-tests-entry,
body.magic-theme .school-tests-entry .st-paper {
  --ink: #263445;
  --muted: #4d5b61;
  --line: #c9bfae;
  --line-strong: #aa9b82;
  --mint: #315d65;
  --panel: #efe7d9;
  background: var(--panel);
  color: var(--ink);
}
body.magic-theme .school-tests-entry :is(.st-chapter,.st-grade,.st-question,.st-choice,.st-scope select,.st-subjects button) {
  background: #f7f1e6;
  color: var(--ink);
}
body.magic-theme .school-tests-entry :is(.st-kinds li,.st-book,.st-mark,.st-exam,.st-score) {
  background: #e3d9c8;
  color: var(--ink);
}
body.magic-theme .school-tests-entry .st-subjects button[aria-pressed=true] {
  background: #315d65;
  border-color: #315d65;
  color: #fff8ec;
}
body.magic-theme .school-tests-entry .btn-primary {
  background: #d6c495;
  border-color: #9b8552;
  color: #122734;
}
body.magic-theme .school-tests-entry .btn:not(.btn-primary) {background:#f7f1e6;color:#263445;border-color:#aa9b82;}
body.magic-theme .school-tests-entry .btn-primary:hover {background:#e3d1a2;color:#122734;border-color:#9b8552;}
body.magic-theme .school-tests-entry :is(summary,button,select):focus-visible {outline-color:#315d65;}
.guild-access-note {padding: 18px; border: 1px solid #aa9b82; border-radius: 12px; margin: 16px 0;}
.guild-access-note h3 {margin-top: 0;}
