/* Additive tutorial-only styling. The six original visual-step classes are reused unchanged. */
.play-layout.intro-step-month .added-month-exhibit{
 display:flex;flex-direction:column;justify-content:space-evenly;
 padding:6px 10px;gap:5px;overflow:hidden
}
.added-month-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;width:100%;max-height:55%;min-height:0}
.added-month-grid>div{display:flex;justify-content:center;align-items:center;gap:4px;min-width:0;padding:3px;
 border:1px solid #bda37a;border-radius:4px;background:#fff7e7}
.added-month-grid img{height:clamp(27px,8vh,43px);width:auto;object-fit:contain}
.added-month-grid small{font-size:clamp(9px,1.05vw,12px);white-space:nowrap}
.added-month-question{display:flex;align-items:center;justify-content:center;gap:7px;min-height:0}
.added-month-question strong{font-size:clamp(10px,1.5vw,15px)}
.added-month-question img{height:clamp(43px,13vh,70px);width:auto;border:1px solid #9a7951}
.added-month-question button{min-height:33px;padding:4px 8px;border-radius:5px;background:#fff5d7;border:1px solid #957248}
.added-month-complete{color:#674329;font-size:16px}
.tutorial-quiz-hint{font-size:11px;color:#9c562f}
.play-layout.is-tutorial .tutorial-added-score{display:flex;align-items:stretch;justify-content:center;gap:5px;width:100%;font-size:clamp(9px,1.2vw,11px)}
.tutorial-added-score>span{flex:1;border:1px solid #c6a67b;border-radius:4px;background:#fff7e1;padding:4px;text-align:center}
.play-layout.is-tutorial .role-reveal .role-scored{max-height:46%}
.play-layout.is-tutorial .result .result-action{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:95%;max-width:440px;gap:5px}
.play-layout.is-tutorial .result .result-action button{min-height:32px;padding:5px;line-height:1.1;font-size:12px}
@media (orientation:portrait){
 .added-month-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .added-month-grid img{height:29px}
 .added-month-grid small{font-size:9px}
 .added-month-question{flex-wrap:wrap}
}
@media (orientation:landscape) and (max-height:390px){
 .play-layout.is-tutorial .role-reveal .role-scored{max-height:40%}
 .play-layout.is-tutorial .result{gap:3px;padding:8px}
 .play-layout.is-tutorial .result .result-symbol{font-size:26px;line-height:1}
 .play-layout.is-tutorial .result h2{font-size:19px;margin:0}
 .play-layout.is-tutorial .result p{font-size:11px;margin:0;text-align:center}
}

/* 2026-11-16 panel-only finish: four tutorial scenes. No text or game rules changed. */
@media (orientation:landscape) and (max-height:620px){
  /* The month exercise fills its existing parchment panel. */
  .play-layout.tutorial-current-1 .added-month-exhibit{
    inset:5% 2%;padding:8px 12px;
    display:flex;flex-direction:column;justify-content:space-between;gap:8px;
  }
  .play-layout.tutorial-current-1 .added-month-grid{
    flex:0 1 60%;height:60%;max-height:none;min-height:0;
    grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;
  }
  .play-layout.tutorial-current-1 .added-month-grid>div{
    padding:5px;gap:5px;justify-content:center;
    background:linear-gradient(145deg,#fff8e8,#f2e3c7);
    border:1px solid #bda37a;
  }
  .play-layout.tutorial-current-1 .added-month-grid img{
    height:clamp(34px,12vh,64px);max-height:90%;max-width:43%;object-fit:contain;
    filter:drop-shadow(0 2px 2px #4b352847);
  }
  .play-layout.tutorial-current-1 .added-month-grid small{
    font-size:clamp(10px,1.3vw,13px);line-height:1.25;
  }
  .play-layout.tutorial-current-1 .added-month-question{
    flex:1;min-height:0;width:100%;gap:10px;justify-content:space-evenly;
    padding:6px 12px;border:1px solid #c3a574;border-radius:5px;
    background:#f8edda;
  }
  .play-layout.tutorial-current-1 .added-month-question img{
    height:clamp(60px,19vh,91px);max-height:94%;
    filter:drop-shadow(0 2px 3px #4b352847);
  }
  .play-layout.tutorial-current-1 .added-month-question strong{
    font-size:clamp(12px,1.8vw,17px);
  }
  .play-layout.tutorial-current-1 .added-month-question button{
    min-height:clamp(38px,10vh,50px);min-width:47px;
    padding:6px 10px;font-size:clamp(12px,1.7vw,16px);
  }
  .play-layout.tutorial-current-1 .added-month-complete{
    flex:1;display:grid;place-items:center;width:100%;
    border:1px solid #c3a574;border-radius:5px;background:#f8edda;
    font-size:clamp(17px,2.4vw,24px);
  }

  /* Existing reveal frame and 5 card images become the focal point. */
  .play-layout.is-tutorial .role-reveal{
    inset:3%;display:grid;grid-template-rows:auto minmax(0,1fr) auto minmax(55px,.58fr);
    align-items:stretch;justify-items:stretch;gap:6px;padding:9px 11px;
  }
  .play-layout.is-tutorial .role-reveal-title{
    text-align:center;font-size:clamp(19px,2.6vw,26px);
  }
  .play-layout.is-tutorial .role-reveal .role-scored{
    max-height:none;height:100%;min-height:0;
    align-items:stretch;justify-content:center;overflow:hidden;
  }
  .play-layout.is-tutorial .role-reveal .role-scored-item{
    flex:0 1 auto;min-width:min(85%,410px);
    padding:5px 11px;gap:4px;justify-content:space-evenly;
    background:linear-gradient(145deg,#fff8e7,#f5e6c5);
  }
  .play-layout.is-tutorial .role-reveal .role-scored-item>strong{
    font-size:clamp(13px,1.8vw,17px);line-height:1.1;
  }
  .play-layout.is-tutorial .role-reveal .role-cards{
    flex:1;min-height:0;gap:5px;
  }
  .play-layout.is-tutorial .role-reveal .role-cards img{
    width:auto;max-width:clamp(39px,6.2vw,59px);
    max-height:100%;height:100%;object-fit:contain;
  }
  .play-layout.is-tutorial .role-reveal>p{
    align-self:center;font-size:clamp(11px,1.55vw,14px);
  }
  .play-layout.is-tutorial .tutorial-added-score{
    align-self:stretch;height:100%;gap:6px;
    font-size:clamp(10px,1.35vw,13px);line-height:1.3;
  }
  .play-layout.is-tutorial .tutorial-added-score>span{
    display:flex;flex:1;align-items:center;justify-content:center;
    min-height:0;padding:5px 8px;background:#fff7e1;
  }

  /* Post-role board remains unchanged; make the teacher's existing hint occupy the sheet. */
  .play-layout.tutorial-label-stage-1:not(.tutorial-intro) .coach-prompt,
  .play-layout.tutorial-label-stage-2:not(.tutorial-intro) .coach-prompt{
    justify-content:space-evenly;gap:13px;padding:10px 1px;
  }
  .play-layout.tutorial-label-stage-1:not(.tutorial-intro) .coach-prompt strong,
  .play-layout.tutorial-label-stage-2:not(.tutorial-intro) .coach-prompt strong{
    font-size:clamp(15px,1.85vw,18px);line-height:1.5;
  }
  .play-layout.tutorial-label-stage-1:not(.tutorial-intro) .coach-prompt p,
  .play-layout.tutorial-label-stage-2:not(.tutorial-intro) .coach-prompt p{
    font-size:clamp(13px,1.7vw,16px);line-height:1.75;-webkit-line-clamp:6;
  }
  .play-layout.tutorial-label-stage-1:not(.tutorial-intro) .tutor-kicker,
  .play-layout.tutorial-label-stage-2:not(.tutorial-intro) .tutor-kicker{
    font-size:clamp(12px,1.45vw,14px);
  }

  /* Graduation: use the entire parchment, retaining all four original actions. */
  .play-layout.is-tutorial .result{
    justify-content:space-evenly;align-items:center;gap:7px;padding:12px 18px;
  }
  .play-layout.is-tutorial .result .result-symbol{
    font-size:clamp(42px,6.1vw,57px);line-height:1;
  }
  .play-layout.is-tutorial .result h2{
    font-size:clamp(23px,3.3vw,29px);margin:0;line-height:1.15;
  }
  .play-layout.is-tutorial .result p{
    font-size:clamp(12px,1.55vw,15px);line-height:1.5;
    margin:0;max-width:95%;text-align:center;
  }
  .play-layout.is-tutorial .result .result-action{
    flex:0 0 auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;gap:8px;width:94%;max-width:520px;
  }
  .play-layout.is-tutorial .result .result-action button{
    min-height:clamp(39px,10.8vh,50px);
    font-size:clamp(12px,1.58vw,15px);padding:7px 9px;
  }
}
