html {scrollbar-gutter:stable}
.welcome.no-arrival {grid-template-columns:1fr}
.arrival-speaker {display:flex;gap:12px;align-items:center;margin:10px 0;min-width:0}
.arrival-speaker .arrival-face {width:48px;height:48px;flex:none;border-radius:50%;object-fit:cover;border:2px solid #b6cfb7}
.arrival-speaker strong,.arrival-speaker span {display:block;line-height:1.25;overflow-wrap:anywhere}
.arrival-speaker strong {font-size:1.25rem;color:white}
.arrival-speaker span {font-size:1rem;color:#e0eae7}
.welcome .arrival-quote {margin:10px 0 0;max-width:40ch;overflow-wrap:anywhere}
.welcome-image.arrival-stage {background:linear-gradient(174deg,#e4ebe0 0%,#c6d7cb 66%,#a8bdaf 66.5%,#deeadf 78%,#c2d3c5 100%)}
.welcome-image img.arrival-product {object-fit:contain;object-position:center;padding:clamp(4px,1vw,18px)}
.saved-visit {display:flex;justify-content:space-between;align-items:center;gap:14px 22px;flex-wrap:wrap;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:13px 18px;margin-top:14px}
.saved-visit > div > strong,.saved-visit > div > span {display:block;line-height:1.4;overflow-wrap:anywhere}
.saved-visit > div > span {color:var(--muted)}
.saved-visit .btn {min-height:44px}
@media (max-width:480px) {
  .arrival-speaker .arrival-face {width:38px;height:38px}
  .arrival-speaker {gap:9px}
  .saved-visit {padding:12px 16px}
}
.lobby-options {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 26px}
.lobby-mode {min-height:48px;background:var(--paper);border:1px solid var(--line);color:var(--ink);padding:11px 16px}
.lobby-mode:hover,.header-pause:hover,.subtle:hover {border-color:var(--select);background:var(--tint)}
.lobby-options .level {margin-left:auto}
header.playing-head .top {min-height:65px;flex-wrap:nowrap;justify-content:space-between;padding:5px 0}
.playing-head .brand small {display:none}
.header-pause,.subtle {min-height:44px;color:var(--ink);background:var(--paper);border:1px solid var(--line)}
.preview-indicator {margin-left:auto;color:var(--muted);font-size:.87rem}
.encounter-head {display:flex;gap:12px;align-items:center;justify-content:space-between;margin:0 0 16px}
.encounter-head small,.next-ticket small {display:block;color:var(--muted);font-size:.88rem;margin-bottom:3px}
.encounter-head h1 {font-family:ElBody,system-ui,sans-serif;font-weight:700;font-size:clamp(1.45rem,3vw,2.05rem);letter-spacing:-.035em}
.desk-scene {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,1fr);grid-template-areas:"object voice" "object moves";grid-template-rows:auto 1fr;align-items:start;column-gap:clamp(24px,3.5vw,54px);padding:clamp(16px,2.6vw,36px);border:1px solid var(--line);border-radius:24px;background:var(--paper);box-shadow:0 14px 44px #0a263609}
.desk-object {grid-area:object;min-width:0;border-radius:18px;overflow:hidden;border:1px solid #b8ccc2;background:#edf3e9}
.desk-object .plate {border:0;background:radial-gradient(ellipse at 40% 30%,#f6f7ec 10%,#dde8d9 76%,#c8d8ca);isolation:isolate}
.desk-object .plate::before {opacity:.24}
.desk-object .plate-title,.workbench .plate-title {letter-spacing:.01em;font-size:.82rem}
.desk-object .surface {height:auto;max-height:min(46vh,410px);min-height:190px;aspect-ratio:1.5}
.desk-object .plate .surface:active {cursor:grabbing}
.scene-image-bar {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 12px;background:#f1f5ec;border-top:1px solid #b7cbbb}
.scene-image-bar .btn {font-size:.9rem;min-height:44px}
.scene-image-bar .btn.text {color:#254f48}
.inspect-entry {background:#fff;border:1px solid #9ab5a3;color:#183c3f}
.inspect-entry:hover {background:#e1efdb}
.desk-voice {grid-area:voice;min-width:0}
.speaker,.tech-speaker {display:flex;align-items:center;gap:11px}
.speaker img,.tech-speaker img {flex:none;width:48px;height:48px;object-fit:cover;border-radius:50%;background:#e0e8da;border:1px solid #aebca8}
.speaker strong,.tech-speaker strong {display:block;font-size:1.2rem;line-height:1.1}
.speaker span,.tech-speaker small {display:block;font-size:.86rem;color:var(--muted);line-height:1.3;margin-top:3px}
.desk-voice blockquote,.receipt-words blockquote {margin:14px 0 16px;border-left:0;border-radius:2px 15px 15px;background:var(--desk-sage);color:var(--ink);font-size:clamp(1.05rem,1.8vw,1.46rem);line-height:1.37;font-weight:600;padding:16px 18px;letter-spacing:-.013em}
.desk-moves {grid-area:moves;min-width:0}
.scene-choices,.question-list {display:grid;gap:8px}
.desk-choice,.extra-choice {width:100%;display:flex;align-items:center;gap:12px;min-height:52px;border:1px solid var(--line);border-radius:12px;padding:10px 14px;background:var(--paper);color:var(--ink);text-align:left}
.desk-choice:hover,.desk-choice:focus-visible,.extra-choice:hover {border-color:#568163;background:var(--desk-sage)}
.scene-choices .desk-choice:first-child {border-color:#82a58a}
.choice-symbol {display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:9px;background:var(--desk-sage);color:var(--desk-ink)}
.desk-choice small {display:block;font-size:.82rem;color:var(--muted);font-weight:400;margin-bottom:2px}
.desk-choice strong {display:block;line-height:1.25;font-size:1.02rem;letter-spacing:-.012em}
.other-choices,.scene-notes,.receipt-details,.older-notes {color:var(--ink)}
.other-choices summary,.scene-notes summary,.receipt-details summary,.older-notes summary {width:fit-content;min-height:44px;align-content:center;cursor:pointer;font-size:.91rem;font-weight:600;color:var(--select)}
.other-choices summary::marker,.scene-notes summary::marker,.receipt-details summary::marker,.older-notes summary::marker {color:var(--select)}
.other-choices h3,.question-list h3 {font-size:1rem;margin:12px 0 6px}
.extra-choice {width:100%;justify-content:flex-start;min-height:44px;line-height:1.3;margin:4px 0}
.desk-discovery {display:flex;gap:10px;align-items:flex-start;margin:0 0 13px;padding:12px 14px;border-left:3px solid #6b9e4d;border-radius:0 10px 10px 0;background:var(--desk-sage)}
.desk-discovery strong {font-size:.87rem}
.desk-discovery p {margin:3px 0 0;line-height:1.38}
.discovery-icon {margin-top:1px;color:var(--good)}
.counter-footer {display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:15px 0 28px}
.counter-footer .write-entry {order:2;margin-left:auto}
.write-entry {background:var(--navy);color:#fff;min-height:46px}
.write-entry:hover {background:var(--blue)}
.scene-notes {max-width:min(100%,620px)}
.scene-notes .notes-group {margin-top:9px}
.inspection-page {max-width:890px;margin:0 auto}
.inspection-page .workbench {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(250px,1fr);grid-template-rows:auto 1fr;align-items:start}
.inspection-page .plate {grid-column:1;grid-row:1}
.inspection-page .bench-controls {grid-row:2;grid-column:1}
.inspection-page .experiment {grid-row:1 / span 2;grid-column:2;width:100%;align-self:stretch;border-top:0;border-left:1px solid var(--line)}
.inspection-page .anglebar,.refcontent .anglebar,.writing-aside .anglebar {margin:0 0 8px}
.inspection-page .partbutton,.refcontent .partbutton,.writing-aside .partbutton {min-height:44px}
.inspection-page .tools .toolbutton,.anglebar .anglebutton,.tools .toolbutton,.zoomsteps .toolbutton {min-height:44px}
.inspection-page .experiment-options {display:grid}
.zoomsteps p {flex-basis:100%;color:var(--muted);font-size:.9rem}
.trial-page {max-width:780px;margin-inline:auto}
.write-source-tabs {display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.write-source-tabs [aria-pressed="true"] {background:var(--desk-sage);color:var(--ink)}
.writing-aside,.review-card,.receipt-details[open] {background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:18px 20px}
.writing-aside .case-notes h2 {font-size:1.25rem}
.notes-group {border-top:1px solid var(--line);padding:12px 0 6px}
.notes-group h3 {display:flex;align-items:center;gap:7px;font-size:.94rem}
.notes-group ul {list-style:none;margin:7px 0 0;padding:0}
.notes-group li {margin:6px 0;line-height:1.42}
.notes-empty,.scene-hint {font-size:.9rem;color:var(--muted)}
.older-notes summary {min-height:38px;font-size:.84rem}
.field-source .btn {min-height:44px;padding-left:0}
.field-source p {display:none}
.received {display:grid;grid-template-columns:minmax(180px,.78fr) minmax(260px,1.22fr);align-items:center;gap:clamp(18px,3vw,40px);margin:0;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--paper)}
.receipt-photo {background:#e3ebdf;border-radius:12px;overflow:hidden}
.receipt-photo img {display:block;width:100%;max-height:255px;object-fit:contain;border-radius:0}
.receipt-words blockquote {margin-bottom:10px}
.earned-row {display:flex;gap:8px;flex-wrap:wrap}
.earned-row span {display:inline-flex;align-items:center;gap:5px;color:var(--good);font-size:.83rem;font-weight:600}
.next-ticket {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:18px 0 8px;padding:16px 19px;background:var(--desk-sage);border-radius:14px}
.next-ticket strong {font-size:1.05rem}
.next-ticket .actions {gap:6px}
.review-card {max-width:760px}
.receipt-details .fieldresult,.review-card .fieldresult {border-top:1px solid var(--line)}
@keyframes place-item {from {opacity:.4;transform:translateY(6px)} to{opacity:1;transform:translateY(0)}}
.desk-voice blockquote,.desk-discovery,.received,.trial-page {animation:place-item .22s ease-out}
@media(max-width:760px){
  header.playing-head .top {min-height:52px}
  .playing-head .brand-logo {width:109px}
  .playing-head .brand {min-height:44px}
  .header-pause {min-height:44px;padding:6px 12px}
  .encounter-head {margin-bottom:10px;gap:7px}
  .encounter-head h1 {font-size:1.26rem}
  .encounter-head small {font-size:.83rem}
  .desk-scene {grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;grid-template-areas:"voice" "object" "moves";gap:10px;padding:12px;border-radius:16px}
  .speaker img {width:34px;height:34px}
  .speaker strong {font-size:1.02rem}
  .speaker span {font-size:.8rem}
  .desk-voice blockquote {padding:9px 12px;margin:8px 0 0;font-size:1.015rem;line-height:1.34}
  .desk-object {border-radius:11px}
  .desk-object .surface {min-height:0;max-height:clamp(148px,24dvh,205px)}
  .scene-image-bar {padding:2px 7px}
  .scene-image-bar .btn {min-height:44px;font-size:.86rem;padding:5px 9px}
  .scene-choices {gap:6px}
  .desk-choice {padding:8px 10px;min-height:49px;gap:9px}
  .desk-choice strong {font-size:.99rem}
  .desk-choice small {font-size:.79rem}
  .other-choices summary {min-height:44px}
  .counter-footer {gap:8px;margin:9px 0 18px}
  .inspection-page .workbench,.received {display:block}
  .inspection-page .experiment {border-left:0;border-top:1px solid var(--line)}
  .received {padding:13px}
  .receipt-photo {float:right;width:94px;aspect-ratio:1.45;margin:0 0 5px 8px}
  .receipt-words blockquote {clear:both;margin-top:10px;padding:12px}
  .received .tech-speaker {min-height:53px}
  .next-ticket {display:grid;padding:13px;gap:8px}
  .next-ticket .actions {justify-content:flex-start}
  .writing-aside {display:none}
  .workgrid.writing {display:block}
  .field-source p {display:block;color:var(--muted);font-size:.88rem;line-height:1.35;margin-top:5px}
  .field-source p strong {color:var(--ink);display:block;font-size:.8rem}
  .counter-footer .write-entry {order:initial;margin:0}
  .counter-footer .scene-notes {order:2}
  .lobby-options {gap:8px}
  .lobby-options .level {margin:0}
}
@media(max-width:389px){
  .desk-scene {padding:10px;gap:8px}
  .scene-image-bar {gap:3px}
  .lobby-options .lobby-mode {width:100%;justify-content:flex-start}
}
@media(prefers-color-scheme:dark){.write-entry{background:#a8d967;color:#112d29}.write-entry:hover{background:#b8e17d}.desk-object{border-color:#6f877a}}
@media(prefers-reduced-motion:reduce){.desk-voice blockquote,.desk-discovery,.received,.trial-page{animation:none}}
