/* Encre, parchemin et aquarelles ; le décor laisse la place au travail. */
.difficulty-details{margin-top:8px;border-top:1px solid var(--border);padding-top:7px}
.difficulty-details summary{cursor:pointer;color:var(--blue);font-size:.875rem;font-weight:700}
.difficulty-details p{line-height:1.65}
.difficulty-choices button{min-height:66px}
.palace-intro{display:flex;gap:24px;align-items:center}
.palace-intro>div{flex:1;min-width:0}
.palace-art{display:block;width:310px;max-width:34%;height:auto;flex-shrink:0}
.palace-game{border-top:4px solid var(--terracotta)}
.battle-equipped,.object-reward{overflow-wrap:anywhere}
.challenge-choice>span,.difficulty-choices button>span{line-height:1.5}
.challenge-choice,.difficulty-choices button,.teacher-stops label{min-width:0}
.move-button,.geo-chip,.atlas-switch button{min-height:44px}
.text-button,.greek-bottom summary{min-height:44px}
.resource-card,.story-panel,.game-area,.palace-game{overflow-wrap:anywhere}
.resume-box input,.lesson-link input,#pause-code{max-width:100%}
.greek-alphabet-grid .letter-done{font-size:.875rem}
.question:focus,.feedback:focus,[data-stage-title]:focus,#game-result-title:focus,#greek-letter-model:focus{outline:2px solid var(--focus);outline-offset:5px}
.resume-recovery{margin-top:14px;padding:14px;background:#faead7;border:1px solid #c7ac7e;border-radius:7px}
.resume-recovery p{margin:0 0 10px}
@media(max-width:760px){
  .palace-intro{gap:14px;align-items:start}
  .palace-art{width:160px;max-width:30%;margin-top:12px}
  .resume-strip .button-row>button{flex:1 1 125px;min-width:0;padding-inline:10px}
  .difficulty-choices{gap:6px}
  .difficulty-choices button{padding:9px 6px;font-size:.875rem}
  .difficulty-choices button>span{font-size:.875rem}
  .difficulty-panel{padding:12px}
  .card-heading{flex-wrap:wrap}
}
@media(max-width:440px){
  .palace-intro{display:block}
  .palace-art{width:100%;max-width:100%;max-height:110px;margin:12px auto 0;object-fit:contain}
  .difficulty-choices{grid-template-columns:1fr}
  .difficulty-choices button{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:8px 10px;font-size:1rem}
  .difficulty-choices button>span{margin:0;text-align:right}
  .challenge-picker{grid-template-columns:1fr}
  .challenge-choice{min-height:0;padding:14px 16px;display:grid;grid-template-columns:28px minmax(0,1fr)}
  .challenge-choice.active{padding:13px 15px}
  .challenge-choice .game-number{grid-row:1 / 3}
  .challenge-choice>span:last-child{grid-column:2}
  .teacher-stops{grid-template-columns:1fr}
  .story-topline{flex-wrap:wrap}
  .game-header{flex-wrap:wrap}
  .game-header .text-button{white-space:normal;text-align:left}
  .audio-label{min-width:0}
}
@media print{
  .palace-art,.difficulty-panel{display:none!important}
  #print-notebook p{break-inside:auto}
}
