/* A small lesson table between the two Bar Pisces hosts. */
.tutorial-shell{max-width:1380px}
.tutorial-menu-content{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(24px,5vw,72px);padding:36px 0 48px}
.tutorial-welcome h1{font-family:var(--serif);font-size:clamp(28px,4vw,42px);font-weight:500;margin:16px 0}
.tutorial-welcome>p,.tutorial-syllabus>p{color:var(--muted);font-size:16px;line-height:1.8}
.tutorial-teachers{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}
.tutorial-teachers figure{margin:0;min-width:0;border:1px solid var(--line);background:#101c29}
.tutorial-teachers .portrait{width:100%;height:215px;overflow:hidden}
.tutorial-teachers .portrait img{width:100%;height:100%;object-fit:cover;object-position:center 28%}
.tutorial-teachers figcaption{padding:12px;font-family:var(--serif);font-size:20px}
.tutorial-teachers figcaption small{display:block;font-family:var(--sans);font-size:12px;color:var(--muted);line-height:1.6;margin-top:8px}
.tutorial-menu-progress{display:flex;justify-content:space-between;align-items:center;margin:20px 0 14px;font-size:14px;color:var(--gold)}
.tutorial-menu-progress .save-state,.tutorial-controls .save-state{font-size:12px}
.tutorial-syllabus h2{font-family:var(--serif);font-size:24px;font-weight:500;margin:6px 0 12px}
.tutorial-syllabus>p{margin:0 0 20px}
.tutorial-lessons{display:grid;gap:9px}
.tutorial-lesson-link{display:flex;align-items:center;gap:18px;padding:18px;text-align:left;border:1px solid var(--line);background:#121d2c;color:var(--ink);transition:border-color .18s,background .18s}
.tutorial-lesson-link:hover,.tutorial-lesson-link:focus-visible{border-color:var(--gold);background:#192638}
.tutorial-number{font-family:var(--serif);font-size:25px;color:var(--gold)}
.tutorial-lesson-link>span:nth-child(2){flex:1;min-width:0}
.tutorial-lesson-link b{display:block;font-size:16px;font-weight:500;line-height:1.5}
.tutorial-lesson-link small{display:block;font-size:14px;color:var(--muted);margin-top:5px;line-height:1.5}
.tutorial-read-state{font-size:12px;white-space:nowrap;color:var(--gold)}
.tutorial-syllabus p.tutorial-small-note{margin:18px 0 0;font-size:13px;line-height:1.8}
.tutorial-content{padding:22px 0 30px}
.tutorial-lesson-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}
.tutorial-lesson-heading>div{display:flex;align-items:baseline;gap:16px;min-width:0}
.tutorial-lesson-heading span{font-size:14px;color:var(--gold);white-space:nowrap}
.tutorial-lesson-heading h1{font-family:var(--serif);font-size:26px;font-weight:500;margin:0;line-height:1.5}
.tutorial-scene{display:grid;grid-template-columns:minmax(110px,.34fr) minmax(0,1.6fr) minmax(110px,.34fr);grid-template-rows:minmax(325px,auto) auto;gap:16px}
.tutorial-host{margin:0;position:relative;overflow:hidden;border:1px solid #8b99ab35;background:#0f1826;opacity:.65;transition:opacity .2s,border-color .2s;min-width:0}
.tutorial-host-yui{grid-column:1;grid-row:1}
.tutorial-host-toji{grid-column:3;grid-row:1}
.tutorial-host.is-speaking{opacity:1;border-color:var(--host-color)}
.tutorial-host>.portrait{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
.tutorial-host .portrait img{width:100%;height:100%;object-fit:cover;object-position:50% 24%}
.tutorial-host figcaption{position:absolute;bottom:0;inset-inline:0;padding:70px 14px 16px;background:linear-gradient(transparent,#09101bf5);font-family:var(--serif);font-size:24px;color:var(--host-color)}
.tutorial-host small{display:block;font-family:var(--sans);font-size:12px;color:var(--ink);margin-top:6px;line-height:1.5}
.tutorial-stage{grid-column:2;grid-row:1;min-width:0;padding:24px 20px;background:radial-gradient(ellipse at top,#24403e,#142a2e 75%);border:1px solid #c4ac764a;box-shadow:inset 0 0 45px #00100e65;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:18px;text-align:center}
.tutorial-stage:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.tutorial-stage h2,.tutorial-stage h3,.tutorial-stage p{margin:0}
.tutorial-stage h3{font-size:16px;font-weight:500;line-height:1.7}
.tutorial-stage h3 small{display:block;font-size:12px;color:#b0c5c7;font-weight:400}
.tutorial-tile-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;padding:3px 0 5px;min-width:0}
.tutorial-stage .tile{width:42px;height:58px}
.tutorial-long-hand{gap:3px}
.tutorial-long-hand .tile{width:clamp(25px,2.6vw,37px);height:clamp(37px,3.7vw,52px);padding:1px 2px}
.tutorial-long-hand .tile-number,.tutorial-long-hand .tile-suit{font-size:clamp(14px,1.5vw,20px)}
.tutorial-long-hand .honor{font-size:clamp(20px,2vw,28px)}
.tutorial-suits{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.tutorial-suits h3 small{display:inline;margin-left:10px}
.tutorial-honors{display:flex;flex-wrap:wrap;justify-content:center;gap:14px}
.tutorial-honors>div{display:flex;flex-direction:column;align-items:center;gap:12px;font-size:14px}
.tutorial-stage .tutorial-stage-note{font-size:14px;line-height:1.8;color:#c0d2d4}
.tutorial-groups{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:12px 8px}
.tutorial-group{position:relative;padding:8px;border:1px solid var(--group-accent);border-radius:5px;background:#07181852}
.tutorial-group>.tutorial-tile-row{display:inline-flex}
.tutorial-group>.tutorial-tile-row .tile{width:30px;height:43px;padding:1px 2px}
.tutorial-group .tile-number,.tutorial-group .tile-suit{font-size:16px}
.tutorial-group .honor{font-size:23px}
.tutorial-group>span:last-child{display:block;color:var(--group-accent);font-size:13px;margin-top:7px}
.tutorial-empty-slot{display:inline-grid;place-items:center;width:30px;height:43px;border:1px dashed var(--group-accent);vertical-align:middle;margin-left:5px}
.tutorial-formula{font-size:16px;line-height:1.8;color:#f3e7ce}
.tutorial-formula span{color:#9db6b6;padding:0 4px}
.tutorial-set-examples{display:flex;flex-wrap:wrap;justify-content:center;gap:24px}
.tutorial-set-examples>div{display:grid;justify-items:center;gap:12px}
.tutorial-set-examples p{color:#bfd0d1;font-size:14px}
.tutorial-question{border-top:1px solid #bbc7ac30;padding-top:16px}
.tutorial-question h3,.tutorial-task-title{font-size:16px;color:#f9e5b8;margin:0 0 10px!important}
.tutorial-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.tutorial-choice{display:inline-flex;align-items:center;justify-content:center;padding:7px;background:#071b2166;color:var(--ink);border:1px solid #b9c8b53d;border-radius:5px;min-width:48px;min-height:48px;transition:background .15s,border-color .15s}
.tutorial-choice:hover,.tutorial-choice:focus-visible,.tutorial-choice.is-selected{border-color:#f6d58e;background:#65533170;outline:1px solid #f6d58e;outline-offset:2px}
.tutorial-choice:disabled{cursor:default;opacity:.65}
.tutorial-choice.is-correct{border-color:#a5dfba;background:#255647;opacity:1}
.tutorial-choice.is-wrong{border-color:#eda7a0;background:#693f3f6b}
.tutorial-choice.is-hinted{outline:2px dashed var(--gold);outline-offset:3px}
.tutorial-choices.word-choices .tutorial-choice{padding:12px 20px;font-size:16px;line-height:1.5}
.tutorial-long-hand .tutorial-choice{min-width:0;padding:3px 2px}
.tutorial-removed{opacity:.22}
.tutorial-discard-preview{display:flex;justify-content:center;align-items:center;gap:14px;color:#d5ded6;font-size:14px}
.tutorial-board-label{font-size:14px;color:#cbd8d7;line-height:1.6}
.tutorial-turn-cycle{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:22px}
.tutorial-turn-cycle b{font-size:19px;color:#f4d9a4;font-weight:500}
.tutorial-turn-cycle p{margin:12px 0;font-size:14px;line-height:1.8}
.tutorial-cycle-arrow{font-size:28px;color:var(--gold)}
.tutorial-wait-example{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;font-size:14px;color:#e3d2ac}
.tutorial-wait-example small{flex-basis:100%;font-size:14px;color:#bacdd0}
.tutorial-attention{outline:2px solid #f7d48b;outline-offset:2px;box-shadow:0 0 15px #f7cf7566!important}
.tutorial-new-tile{margin-left:12px;outline:2px solid var(--gold);outline-offset:2px}
.tutorial-riichi-example>strong{font-family:var(--serif);font-size:52px;color:#f5d28e;letter-spacing:.2em}
.tutorial-riichi-example>p{font-size:16px;line-height:1.8;margin:10px 0 16px}
.tutorial-riichi-example>div{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:22px;font-size:14px}
.tutorial-riichi-example>small{display:block;font-size:14px;color:#bfd0d1;margin-top:20px}
.tutorial-role{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px;font-size:20px}
.tutorial-role span{padding:16px;border-bottom:1px solid #e5c58c}
.tutorial-role b{font-size:18px;color:var(--gold)}
.tutorial-role-example{display:grid;gap:6px;margin-top:12px}
.tutorial-role-example strong,.tutorial-win-word{font-family:var(--serif);font-size:36px;font-weight:500;color:#f7d593}
.tutorial-role-example span{font-size:14px;color:#bcd0d2}
.tutorial-winning-source{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap}
.tutorial-winning-source>span{font-size:16px}
.tutorial-winning-source>strong{font-family:var(--serif);font-size:38px;color:#f3ce8c;font-weight:500}
.tutorial-practice-intro h2,.tutorial-finish h2{font-family:var(--serif);font-size:28px;font-weight:500;margin:18px 0}
.tutorial-practice-intro h2 small{font-family:var(--sans);font-size:12px;letter-spacing:.2em;padding:0 12px;color:#aac0c6}
.tutorial-practice-intro p,.tutorial-finish p{font-size:15px;line-height:1.8}
.tutorial-practice-intro .tutorial-tile-row{margin:20px 0}
.tutorial-finish>div{display:flex;align-items:center;justify-content:center;gap:20px;margin:24px 0}
.tutorial-finish strong{font-family:var(--serif);font-weight:500;font-size:42px;color:var(--gold)}
.tutorial-finish strong small{font-size:16px;margin-left:8px}
.tutorial-dialogue{grid-column:1/-1;border-left:3px solid var(--speaker-color);padding:20px 24px;background:#172434;min-width:0}
.tutorial-dialogue>div{display:flex;align-items:center;justify-content:space-between;gap:15px}
.tutorial-dialogue>div>span{font-size:16px;color:var(--speaker-color)}
.tutorial-dialogue small{font-size:13px;color:#dfcda8}
.tutorial-dialogue p{font-family:var(--serif);font-size:18px;line-height:1.9;margin:10px 0 0;color:#edece6}
.tutorial-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.tutorial-controls>div{display:flex;align-items:center;gap:12px}
.tutorial-controls button{min-height:44px;padding:10px 18px;font-size:14px}
.tutorial-controls button:disabled{opacity:.35;cursor:default}
.tutorial-practice-board{display:grid;gap:12px}
.tutorial-practice-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:12px;color:#bcd0d2;border-bottom:1px solid #b9c9b42e;padding-bottom:12px}
.tutorial-practice-top b{font-size:16px;color:#ead39d;font-weight:500}
.tutorial-practice-river{display:flex;align-items:center;gap:12px;min-height:43px;flex-wrap:wrap}
.tutorial-practice-river>small{width:68px;text-align:left;font-size:12px;color:#bad0d0}
.tutorial-practice-river>div{display:flex;align-items:center;gap:10px}
.tutorial-practice-river .tile{width:27px;height:37px;padding:1px 2px}
.tutorial-practice-river .tile-number,.tutorial-practice-river .tile-suit{font-size:14px}
.tutorial-practice-river .honor{font-size:21px}
.tutorial-empty-river,.tutorial-practice-riichi{font-size:12px;color:#aabfc1}
.tutorial-practice-riichi{color:#eed298;margin-left:auto}
.tutorial-practice-hand-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}
.tutorial-practice-hand-label b{font-size:14px;font-weight:500}
.tutorial-practice-hand-label b small{color:#becfce;font-size:12px}
.tutorial-practice-hand-label>span{display:flex;align-items:center;gap:6px;color:var(--gold);font-size:12px}
.tutorial-practice-hand-label .tile.small{width:22px;height:30px}
.tutorial-practice-hand-label .tile-number,.tutorial-practice-hand-label .tile-suit{font-size:12px}
.tutorial-practice-hand-label .honor{font-size:18px}
.tutorial-drawn-choice{margin-left:8px}
.tutorial-practice-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px}
.tutorial-practice-actions button{min-height:44px;padding:10px 24px;font-size:16px}
.tutorial-practice-actions>span{font-size:14px;color:#c7d1cb}
.tutorial-practice-result{display:grid;gap:7px;line-height:1.6}
.tutorial-practice-result b{font-size:24px;color:var(--gold);font-weight:500}
.tutorial-practice-result span{font-size:14px}
.tutorial-practice-result small{font-size:12px;color:#bdcecf}
@media(max-width:1000px){
  .tutorial-scene{grid-template-columns:110px minmax(0,1fr) 110px;gap:12px}
  .tutorial-stage{padding:20px 14px}
  .tutorial-host figcaption{font-size:21px;padding-inline:10px}
}
@media(max-width:760px){
  .tutorial-menu-content{grid-template-columns:1fr;gap:28px;padding:22px 0 32px}
  .tutorial-teachers{margin:18px 0}.tutorial-teachers .portrait{height:160px}
  .tutorial-lesson-link{padding:14px;gap:12px}
  .tutorial-content{padding:18px 0 24px}.tutorial-lesson-heading h1{font-size:20px}.tutorial-lesson-heading>div{gap:10px}
  .tutorial-scene{grid-template-columns:1fr 1fr;grid-template-rows:65px auto auto;gap:12px}
  .tutorial-host-yui{grid-column:1;grid-row:1}.tutorial-host-toji{grid-column:2;grid-row:1}
  .tutorial-host>.portrait{width:62px}.tutorial-host .portrait img{object-position:50% 24%}
  .tutorial-host figcaption{position:static;padding:10px 6px 6px 70px;font-size:18px;background:none}
  .tutorial-host small{font-size:12px;margin-top:3px}
  .tutorial-stage{grid-column:1/-1;grid-row:2;padding:20px 12px;gap:18px;min-height:260px}
  .tutorial-dialogue{grid-row:3;padding:16px}.tutorial-dialogue p{font-size:16px;line-height:1.85;margin-top:8px}
  .tutorial-long-hand{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px 4px}
  .tutorial-long-hand .tile{width:100%;height:48px}.tutorial-long-hand .tile-number,.tutorial-long-hand .tile-suit{font-size:18px}.tutorial-long-hand .honor{font-size:26px}
  .tutorial-long-hand .tutorial-choice{width:100%;min-width:0;min-height:0;padding:2px}
  .tutorial-long-hand .tutorial-choice>span:not(.tile){width:100%}
  .tutorial-long-hand .tutorial-new-tile,.tutorial-drawn-choice{margin-left:0}
  .tutorial-controls{flex-wrap:wrap;gap:6px;margin-top:14px;padding-top:10px}.tutorial-controls>div{gap:8px;flex:1;justify-content:flex-end;flex-wrap:wrap}
  .tutorial-controls button{padding:8px 12px}.tutorial-controls .save-state{width:100%;text-align:right;margin:0}
  .tutorial-groups{gap:10px 6px}.tutorial-group{padding:6px}
  .tutorial-practice-top{gap:6px}.tutorial-practice-river>small{width:60px}
  .tutorial-practice-hand-label{gap:6px}.tutorial-practice-hand-label b small{display:block;margin-top:4px}
}
/* Preserve the existing one-screen landscape frame; the lesson table scrolls. */
.compact-landscape .tutorial-shell{grid-template-rows:var(--bar-height) minmax(0,1fr)}
.compact-landscape .tutorial-menu-content{grid-template-columns:minmax(220px,.85fr) minmax(0,1.3fr);gap:24px;overflow:auto;min-height:0;padding:14px 4px 18px}
.compact-landscape .tutorial-welcome h1{font-size:28px;margin:10px 0}.compact-landscape .tutorial-welcome>p{font-size:14px}
.compact-landscape .tutorial-teachers{margin:14px 0}.compact-landscape .tutorial-teachers .portrait{height:130px}
.compact-landscape .tutorial-content{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding:6px 0 0;gap:6px}
.compact-landscape .tutorial-lesson-heading{margin:0}.compact-landscape .tutorial-lesson-heading h1{font-size:17px}.compact-landscape .tutorial-lesson-heading span{font-size:12px}
.compact-landscape .tutorial-scene{min-height:0;grid-template-columns:85px minmax(0,1fr) 85px;grid-template-rows:minmax(0,1fr) minmax(65px,auto);gap:6px 10px}
.compact-landscape .tutorial-host-yui{grid-column:1;grid-row:1}.compact-landscape .tutorial-host-toji{grid-column:3;grid-row:1}
.compact-landscape .tutorial-host>.portrait{width:100%}.compact-landscape .tutorial-host figcaption{position:absolute;padding:35px 8px 8px;background:linear-gradient(transparent,#09101bf5);font-size:18px}
.compact-landscape .tutorial-host small{display:none}
.compact-landscape .tutorial-stage{grid-column:2;grid-row:1;min-height:0;overflow:auto;overscroll-behavior:contain;justify-content:flex-start;padding:12px;gap:12px;scrollbar-width:thin}
.compact-landscape .tutorial-dialogue{grid-row:2;padding:8px 14px;max-height:105px;overflow:auto}
.compact-landscape .tutorial-dialogue p{font-size:14px;line-height:1.65;margin-top:3px}.compact-landscape .tutorial-dialogue>div>span{font-size:14px}
.compact-landscape .tutorial-controls{flex-wrap:nowrap;margin:0;padding:0;border:0;gap:8px}.compact-landscape .tutorial-controls>div{flex-wrap:nowrap;gap:8px}
.compact-landscape .tutorial-controls .save-state{width:auto}.compact-landscape .tutorial-controls button{min-height:34px;padding:5px 14px;font-size:14px}
.compact-landscape .tutorial-suits{grid-template-columns:repeat(4,1fr);gap:10px}
.compact-landscape .tutorial-suits .tile{width:25px;height:36px}.compact-landscape .tutorial-suits .tile-number,.compact-landscape .tutorial-suits .tile-suit{font-size:14px}.compact-landscape .tutorial-suits .honor{font-size:21px}
.compact-landscape .tutorial-suits h3 small{display:block;margin:0}
.compact-landscape .tutorial-long-hand{display:flex;flex-wrap:wrap;gap:3px}
.compact-landscape .tutorial-long-hand .tile{width:25px;height:36px;padding:1px}
.compact-landscape .tutorial-long-hand .tile-number,.compact-landscape .tutorial-long-hand .tile-suit{font-size:14px}.compact-landscape .tutorial-long-hand .honor{font-size:21px}
.compact-landscape .tutorial-long-hand .tutorial-choice{width:auto;min-height:0;min-width:0;padding:2px 1px}
.compact-landscape .tutorial-practice-board{gap:7px}.compact-landscape .tutorial-practice-top{padding-bottom:6px}
.compact-landscape .tutorial-practice-river{min-height:37px}.compact-landscape .tutorial-practice-actions button{padding:7px 20px;min-height:38px}
.compact-landscape .tutorial-stage:has(.tutorial-practice-board){padding:6px 10px}
.compact-landscape .tutorial-practice-board{grid-template-columns:1fr 1fr;gap:4px 8px}
.compact-landscape .tutorial-practice-top,.compact-landscape .tutorial-practice-hand-label,.compact-landscape .tutorial-practice-board>.tutorial-long-hand,.compact-landscape .tutorial-practice-actions,.compact-landscape .tutorial-practice-result{grid-column:1/-1}
.compact-landscape .tutorial-practice-top{padding-bottom:3px;align-items:center}
.compact-landscape .tutorial-practice-top b{font-size:14px}
.compact-landscape .tutorial-practice-river{min-height:30px;gap:5px}
.compact-landscape .tutorial-practice-river>small{width:auto}
.compact-landscape .tutorial-practice-river .tile{width:22px;height:30px}
.compact-landscape .tutorial-practice-river .honor{font-size:18px}
.compact-landscape .tutorial-practice-hand-label{margin:0}
.compact-landscape .tutorial-practice-hand-label b small{display:inline;margin-left:6px}
.compact-landscape .tutorial-practice-board>.tutorial-long-hand{padding:1px 0 3px}
.compact-landscape .tutorial-practice-actions button{min-height:32px;padding:4px 20px;font-size:14px}
.compact-landscape .tutorial-practice-actions{position:sticky;bottom:-6px;background:#142a2e;padding-block:3px;z-index:1}
.compact-landscape .opening-content:has([data-action="tutorial"]){padding-block:2px}
.compact-landscape .opening-content:has([data-action="tutorial"]) .opening-logo-block{margin-bottom:6px}
.compact-landscape .opening-content:has([data-action="tutorial"]) .opening-menu{gap:5px}
.compact-landscape .opening-content:has([data-action="tutorial"]) .opening-mode{padding-block:5px}
.short-landscape .opening-content:has([data-action="tutorial"]) .opening-logo>span{font-size:30px}
.short-landscape .opening-content:has([data-action="tutorial"]) .opening-logo>strong{font-size:40px}
.short-landscape .tutorial-scene{grid-template-columns:65px minmax(0,1fr) 65px}
.short-landscape .tutorial-dialogue{max-height:90px}
@media(prefers-reduced-motion:reduce){.tutorial-host,.tutorial-choice,.tutorial-lesson-link{transition:none}}

.tutorial-glossary-open{margin-top:12px;font-size:16px;min-height:46px}
.tutorial-heading-tools{display:flex;align-items:center;gap:14px;flex-shrink:0}
.tutorial-heading-tools button{font-size:14px;min-height:40px;padding:6px 9px;color:var(--gold);border:1px solid var(--line)}
.tutorial-lesson-heading>div{flex-wrap:wrap;gap:4px 12px}
.tutorial-dialogue p{line-height:2.2}
.tutorial-shell ruby,.tutorial-glossary ruby{ruby-align:center;ruby-position:over}
.tutorial-shell rt,.tutorial-glossary rt{font-family:var(--sans);font-size:12px;font-weight:400;letter-spacing:0;color:#c9d4dc}
.tutorial-riichi-example>strong rt{font-size:16px;letter-spacing:.15em;color:var(--gold)}
.tutorial-dialogue:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

.tutorial-prologue .tutorial-scene{position:relative;grid-template-columns:1fr 1fr;grid-template-rows:clamp(240px,36vh,370px) auto}
.tutorial-prologue .tutorial-host-yui{grid-column:1;grid-row:1}
.tutorial-prologue .tutorial-host-toji{grid-column:2;grid-row:1}
.tutorial-prologue .tutorial-host{opacity:.85}
.tutorial-prologue .tutorial-host.is-speaking{opacity:1}
.tutorial-prologue .tutorial-host>.portrait{width:100%}
.tutorial-prologue .tutorial-host .portrait img{object-position:50% 24%}
.tutorial-prologue .tutorial-host figcaption{position:absolute;padding:65px 20px 16px;font-size:24px;background:linear-gradient(transparent,#09101bf5)}
.tutorial-prologue .tutorial-dialogue{grid-row:2}

.tutorial-glossary{width:min(790px,calc(100vw - 24px));padding:28px;scrollbar-width:thin}
.tutorial-glossary h2{margin-bottom:14px}
.tutorial-glossary-lead{font-size:16px;line-height:1.8;color:var(--muted);margin:0 0 20px}
.tutorial-term-distance{padding:18px;background:#0e252a;border:1px solid #d4b77a55}
.tutorial-term-distance h3{font-size:16px;color:var(--gold);font-weight:500;margin:0 0 14px}
.tutorial-term-distance ol{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;counter-reset:distance}
.tutorial-term-distance li{min-width:0;counter-increment:distance}
.tutorial-term-distance li:before{content:counter(distance,decimal-leading-zero);display:block;font-family:var(--serif);font-size:14px;color:#c8b287;margin-bottom:9px}
.tutorial-term-distance strong{display:block;font-family:var(--serif);font-size:22px;font-weight:500;margin-bottom:10px;line-height:1.8}
.tutorial-term-distance li>span{display:block;color:#c7d6d7;font-size:14px;line-height:1.8}
.tutorial-term-distance p{font-size:14px;line-height:1.8;color:#c7d6d7;margin:16px 0 0;border-top:1px solid #ffffff26;padding-top:12px}
.tutorial-term-groups summary{font-size:16px;min-height:30px;padding:5px 0}
.tutorial-term-groups dl{margin:16px 0 0}
.tutorial-term-groups dl>div{padding:16px 0;border-top:1px solid var(--line)}
.tutorial-term-groups dl>div:first-child{border-top:0;padding-top:0}
.tutorial-term-groups dt{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 16px;font-family:var(--serif);font-size:22px;color:var(--ink)}
.tutorial-term-groups dt>span{font-family:var(--sans);font-size:14px;color:var(--gold)}
.tutorial-term-groups dd{margin:8px 0 0;font-size:16px;line-height:1.9;color:#c0cad7}
.tutorial-term-tiles{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.tutorial-term-tiles>span{display:flex;flex-direction:column;align-items:center;gap:8px}
.tutorial-term-tiles .tile{width:35px;height:49px}
.tutorial-term-tiles small{font-size:12px;color:var(--gold)}
.tutorial-glossary-note{font-size:14px;line-height:2;color:var(--muted);margin-top:20px}
.tutorial-glossary>.full{position:sticky;bottom:-28px;margin-top:10px;box-shadow:0 0 0 8px #101b2a}
@media(max-width:760px){
  .tutorial-lesson-heading{align-items:flex-start;gap:10px}
  .tutorial-heading-tools{flex-direction:column;gap:4px;align-items:flex-end}
  .tutorial-heading-tools button{min-height:36px;padding:4px 8px}
  .tutorial-prologue .tutorial-scene{grid-template-rows:260px auto;gap:12px}
  .tutorial-prologue .tutorial-host figcaption{font-size:21px;padding-inline:12px}
  .tutorial-prologue .tutorial-host small{font-size:12px}
  .tutorial-dialogue p{line-height:2.15}
  .tutorial-glossary{padding:22px 18px}
  .tutorial-glossary>.full{bottom:-22px}
  .tutorial-term-distance{padding:14px}
  .tutorial-term-distance ol{grid-template-columns:1fr;gap:14px}
  .tutorial-term-distance li{display:grid;grid-template-columns:22px minmax(105px,.9fr) minmax(0,1.2fr);align-items:center;gap:10px}
  .tutorial-term-distance li:before,.tutorial-term-distance strong{margin:0}
  .tutorial-term-distance strong{font-size:21px}
}
.compact-landscape .tutorial-heading-tools{flex-direction:row;align-items:center;gap:10px}
.compact-landscape .tutorial-heading-tools button{min-height:28px;padding:2px 10px}
.compact-landscape .tutorial-dialogue p{line-height:2.1}
.compact-landscape .tutorial-prologue .tutorial-scene{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) minmax(85px,auto)}
.compact-landscape .tutorial-prologue .tutorial-dialogue{max-height:110px}
.compact-landscape .tutorial-prologue .tutorial-host figcaption{font-size:18px;padding:30px 10px 8px}
.compact-landscape .tutorial-glossary{max-height:calc(var(--view-height) - 20px)}
.compact-landscape .tutorial-term-distance ol{grid-template-columns:repeat(3,minmax(0,1fr))}
.compact-landscape .tutorial-term-distance li{display:block}
.short-landscape .tutorial-prologue .tutorial-scene{grid-template-rows:minmax(0,1fr) minmax(75px,auto)}
