/* Japan Undercover / First Trip lessons 02 and 03. Additive to /travel/travel.css.
   2026-11-17. No new font imports, remote assets, or third-party libraries. */
body.l23 { --accent: var(--signal); --case-light: #fffaf0; }
body.l23[data-lesson="paying"] { --accent: #65a9a5; }
.l23 .note-header { padding-block: 12px; }
.l23 .note-brand { font-size: .82rem; letter-spacing: .07em; }
.l23 .l23-mark { width: 40px; height: 40px; border: 2px solid currentColor; display: inline-grid; place-items: center; border-radius: 50%; font: 700 15px/1 "DM Sans", system-ui, sans-serif; color: var(--signal); transform: rotate(-9deg); }
.l23 .note-header a { min-height: 44px; }
.l23 .lang-switch { padding-inline: max(18px, calc((100vw - 1180px) / 2)); }
.l23 .lang-switch .pending { display: inline-flex; align-items: center; opacity: .62; font-size: .9rem; padding: 12px 6px; white-space: nowrap; }
.l23 .lang-switch .pending::after { content: "·"; margin-left: 4px; }
.l23 .lang-switch a[aria-current] { font-weight: 700; }
.l23 .lesson-hero { padding-bottom: 18px; }
.l23 .lesson-hero h1 { max-width: 1000px; line-height: .96; font-size: clamp(3.65rem, 10vw, 8.5rem); }
.l23 .lesson-hero .promise { max-width: 850px; margin-top: 18px; }
.l23 .scene-line { max-width: 760px; }
.l23 .stamp { border-color: var(--signal); color: var(--signal); }
.l23 .hero-phrase { margin-top: 24px; box-shadow: 6px 6px 0 var(--signal); }
.l23 .hero-phrase .hp-text { min-width: 0; }
.l23 .hero-phrase .jp { line-height: 1.23; }
.l23 .hero-actions { margin-top: 22px; }
.l23 .audio-disclosure { margin: 13px 0 0; font-size: .83rem; line-height: 1.45; color: rgba(16,24,32,.68); }
.l23 .case-route { list-style: none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:0; margin:26px 0 18px; }
.l23 .case-route a { position:relative; display:flex; gap:12px; flex-direction:column; justify-content:space-between; min-height:92px; padding:15px; background:#fffaf0; color:var(--ink); border:1.5px solid var(--ink); border-radius:4px; text-decoration:none; box-shadow:4px 4px 0 rgba(16,24,32,.14); transition:transform .16s,box-shadow .16s; }
.l23 .case-route a:hover,.l23 .case-route a:focus-visible { transform:translate(-2px,-2px); box-shadow:6px 6px 0 var(--signal); }
.l23 .route-number { font:700 .73rem/1.1 monospace; color:var(--red); letter-spacing:.12em; }
.l23 .route-title { font:700 1.02rem/1.2 "DM Sans",sans-serif; }
.l23 .route-arrow { position:absolute; top:11px; right:12px; font-size:1.2rem; }
.l23 .toolbar { z-index:6; margin-top:4px; }
.l23 .toolbar .view-toggle { min-width:200px; }
.l23 .toolbar .view-toggle button { min-height:44px; }
.l23 .panel { overflow: hidden; border:2px solid var(--ink); border-radius:5px; background:#fffaf0; margin:0 5px 16px 0; }
.l23 .panel-art { background:#e6e8e5; }
.l23 .panel-art img { background: linear-gradient(140deg,#c3e4e5,#f6dfd1); }
.l23 .panel-no { font:700 .76rem/1.5 "DM Sans",sans-serif; text-transform:uppercase; }
.l23 .bubble { border-radius:16px; box-shadow: 3px 3px 0 rgba(16,24,32,.3); }
.l23 .bubble.say { background:#b7e4c9; }
.l23 .bubble.is-speaking { background:var(--signal); color:var(--ink); }
.l23 .cap { min-height:90px; }
.l23 .cap .cap-meaning { font-size:1.48rem; }
.l23 .chapter-tag { position:absolute; z-index:2; bottom:0; right:0; padding:5px 12px; background:var(--signal); color:#151a1b; font:700 .74rem/1.1 monospace; letter-spacing:.04em; text-transform:uppercase; }
.l23 .text-intro { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:18px; }
.l23 .text-intro p { margin:0; font-size:.95rem; }
.l23 .line { cursor:pointer; transition:box-shadow .16s, transform .16s; }
.l23 .line:hover,.l23 .line:focus-visible { transform:translateY(-1px); box-shadow:5px 5px 0 var(--signal); }
.l23 .line.is-speaking { box-shadow: 6px 6px 0 var(--signal); }
.l23 .line .note { line-height:1.42; }
.l23 .line[tabindex] { outline-offset:4px; }
.l23 .l23-status { color:var(--red); font-size:.88rem; line-height:1.35; margin:10px 0 0; min-height:1em; }
.l23 .l23-game { margin-top:28px; }
.l23 .l23-game-grid { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:stretch; }
.l23 .game-panel { position:relative; min-width:0; padding:24px; background:#fffaf0; border:2px solid var(--ink); border-radius:6px; box-shadow:6px 6px 0 rgba(16,24,32,.16); }
.l23 .game-panel.dark { background:var(--ink); color:var(--paper); box-shadow:6px 6px 0 var(--signal); }
.l23 .game-eyebrow { font:700 .76rem/1.2 "DM Sans",sans-serif; letter-spacing:.13em; color:var(--signal); text-transform:uppercase; margin:0 0 13px; }
.l23 .game-panel h3 { margin:0 0 9px; font:400 clamp(1.65rem,3vw,2.45rem)/1.1 "Instrument Serif",Georgia,serif; }
.l23 .game-panel p { font-size:.96rem; line-height:1.5; }
.l23 .game-help { color:rgba(16,24,32,.75); }
.l23 .game-panel.dark .game-help { color:rgba(244,237,223,.75); }
.l23 .sign-box { background:#11344e; padding:18px; border:2px solid #7199a8; border-radius:4px; color:#f8f3dd; box-shadow:inset 0 0 0 4px rgba(255,255,255,.07); display:grid; gap:10px; }
.l23 .sign-top { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid rgba(255,255,255,.3); padding-bottom:8px; font:700 .8rem/1.3 "DM Sans",sans-serif; text-transform:uppercase; letter-spacing:.09em; }
.l23 .sign-result { display:grid; grid-template-columns:1fr auto; align-items:center; gap:9px; }
.l23 .sign-destination { font:700 clamp(1.4rem,4vw,2.25rem)/1.1 "Noto Sans JP",sans-serif; }
.l23 .sign-destination small { display:block; margin-top:5px; font:500 .7rem/1.2 "DM Sans",sans-serif; letter-spacing:.09em; text-transform:uppercase; }
.l23 .sign-track { background:#f0ba4a; color:#15222f; border-radius:3px; font:700 2.25rem/1 "DM Sans",sans-serif; padding:10px 14px; }
.l23 .demo-flag { display:block; color:#ffcba9; font:700 .7rem/1.3 "DM Sans",sans-serif; text-transform:uppercase; letter-spacing:.06em; margin-top:9px; }
.l23 .game-choices { display:grid; gap:10px; margin:16px 0 0; }
.l23 .game-choice,.l23 .payment-choice { appearance:none; width:100%; padding:14px 16px; text-align:left; border:2px solid var(--ink); background:var(--paper); color:var(--ink); border-radius:4px; font:700 1rem/1.3 "DM Sans",system-ui,sans-serif; cursor:pointer; min-height:52px; transition:transform .15s,background .15s; }
.l23 .game-choice:hover,.l23 .payment-choice:hover { transform:translateX(3px); background:#ffdf8a; }
.l23 .game-choice[aria-pressed=true],.l23 .payment-choice[aria-pressed=true] { background:var(--signal); }
.l23 .game-result { margin-top:15px; padding:12px 14px; border-left:5px solid var(--signal); background:rgba(255,86,56,.09); font-size:.96rem; min-height:66px; }
.l23 .game-panel.dark .game-result { background:rgba(255,255,255,.09); }
.l23 .game-result[hidden] { display:none; }
.l23 .game-action { display:inline-flex; justify-content:center; align-items:center; width:100%; padding:14px 16px; margin-top:16px; border:0; border-radius:5px; background:var(--signal); color:#101820; font:700 1rem/1.2 "DM Sans",system-ui,sans-serif; min-height:52px; cursor:pointer; }
.l23 .game-action[disabled] { opacity:.45; cursor:not-allowed; }
.l23 .game-tiny { margin:12px 0 0; opacity:.78; font-size:.8rem!important; }
.l23 .card-object { width:190px; max-width:100%; aspect-ratio:1.7; border:2px solid #102025; border-radius:14px; padding:16px; margin:18px 0 10px; display:flex; flex-direction:column; justify-content:space-between; background:linear-gradient(125deg,#b4cfbb,#6babab); color:var(--ink); box-shadow:7px 7px 0 rgba(255,255,255,.14); transform:rotate(-5deg); }
.l23 .card-object span:first-child { font:700 .85rem/1 "DM Sans",sans-serif; letter-spacing:.08em; }
.l23 .card-object span:last-child { font:600 .9rem/1 monospace; }
.l23 .card-object.pulsing { animation:l23-card .7s ease-in-out both; }
.l23 .card-balance { font:700 1.15rem/1.2 "DM Sans",sans-serif; }
.l23 .tap-reader { width:100%; border:2px solid rgba(255,255,255,.45); border-radius:5px; background:#263942; padding:14px; text-align:center; color:var(--paper); font-size:1.1rem; }
.l23 .tap-reader.pulsing { animation:l23-tap .7s ease-in-out both; }
.l23 .pay-step { padding:10px 0; border-bottom:1px dashed var(--line); }
.l23 .pay-step strong { color:var(--red); }
.l23 .pay-step label { display:block; font-weight:700; font-size:.92rem; margin-bottom:8px; }
.l23 .pay-step .inline-choices { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.l23 .receipt-mock { margin-top:18px; padding:18px; background:#fff; border:1px dashed #72838a; color:var(--ink); text-align:center; font:500 .85rem/1.7 monospace; }
.l23 .receipt-mock .receipt-line { display:flex; justify-content:space-between; gap:10px; }
.l23 .receipt-mock .receipt-total { border-top:2px dashed var(--line); padding-top:8px; font-weight:700; }
.l23 .field-notes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.l23 .field-note { display:block; padding:20px; border:1.5px solid var(--ink); border-left:7px solid var(--signal); background:#fffaf0; border-radius:3px; text-align:left; cursor:pointer; min-height:118px; }
.l23 .field-note summary { display:flex; gap:12px; justify-content:space-between; align-items:center; list-style:none; font:700 1.04rem/1.2 "DM Sans",sans-serif; cursor:pointer; }
.l23 .field-note summary::-webkit-details-marker {display:none;}
.l23 .field-note summary::after { content:'+'; font:700 1.5rem/1 monospace; }
.l23 .field-note[open] summary::after {content:'−';}
.l23 .field-note .field-copy { margin:14px 0 0; font-size:.98rem; line-height:1.5; }
.l23 .field-source { display:block; margin-top:8px; font:600 .78rem/1.4 "DM Sans",sans-serif; }
.l23 .field-source a { text-underline-offset:3px; }
.l23 .source-stamp { margin:12px 0 0; font:700 .72rem/1.4 monospace; letter-spacing:.04em; text-transform:uppercase; opacity:.74; }
.l23 .play-preview { display:inline-flex; min-height:44px; padding:9px 12px; border:1.5px solid var(--ink); border-radius:99px; background:transparent; cursor:pointer; font:700 .85rem/1 "DM Sans",sans-serif; align-items:center; gap:7px; }
.l23 .play-preview.is-speaking { background:var(--signal); }
.l23 .no-romaji .romaji {display:none;}
.l23 .practice-done { line-height:1.5; }
.l23 .q-step { transition:background .12s; }
.l23 .q .reading { font-size:.9rem; }
.l23 .q .jp { line-height:1.35; }
.l23 .opt { border-width:1.8px; }
.l23 .opt .jp { font-size:clamp(1.18rem,4vw,1.62rem); }
.l23 .reason { font-size:.92rem; }
.l23 .next-up { margin-top:46px; }
.l23 .next-up .links { display:flex; }
.l23 .next-up .links a,.l23 .next-up .links button { min-height:48px; }
@keyframes l23-card { 0%{transform:rotate(-5deg) translateY(0)}45%{transform:rotate(0deg) translateY(-14px)}100%{transform:rotate(-5deg) translateY(0)} }
@keyframes l23-tap { 0%,100%{box-shadow:none}40%{box-shadow:0 0 0 12px rgba(255,86,56,.3)} }
@media(max-width:900px){ .l23 .l23-game-grid { grid-template-columns:1fr; } .l23 .field-notes { grid-template-columns:1fr 1fr; } }
@media(max-width:700px){
 .l23 .panel-art { display:flex; flex-direction:column; padding:0; min-height:0!important; background:#fffaf0; }
 .l23 .panel-art img { order:0; position:relative; display:block; width:100%; max-width:100%; aspect-ratio:1600/1000; height:auto; margin:0; object-fit:cover; }
 .l23 .panel-art .bubble { order:1; align-self:stretch; position:static!important; width:auto!important; max-width:unset; margin:8px 12px 0; text-align:left; font-size:1.08rem!important; }
 .l23 .panel-art .bubble:last-of-type { margin-bottom:12px; }
 .l23 .panel-art .bubble::after {display:none;}
 .l23 .panel-art .bubble.hear,.l23 .panel-art .bubble.say { align-self:stretch; }
 .l23 .panel-no { bottom:auto; top:0; }
 .l23 .chapter-tag { top:0; bottom:auto; }
 .l23 .cap { min-height:84px; }
 .l23 .cap .cap-meaning {font-size:1.35rem;}
 .l23 .case-route { gap:8px; }
 .l23 .case-route a { min-height:86px; padding:12px 10px; }
 .l23 .route-title { font-size:.85rem; }
 .l23 .route-arrow { right:7px; font-size:1rem; }
 .l23 .field-notes {grid-template-columns:1fr;}
}
@media(max-width:480px){
 .l23 .note-header { padding-inline:18px; }
 .l23 .note-nav { gap:10px; }
 .l23 .note-nav a { font-size:.84rem; }
 .l23 .note-brand span:last-child {font-size:.67rem; max-width:135px;}
 .l23 .lang-switch { flex-wrap:nowrap; overflow-x:auto; gap:10px; padding-inline:18px; scrollbar-width:thin; }
 .l23 .lang-switch a,.l23 .lang-switch span { white-space:nowrap; font-size:.87rem; }
 .l23 .lesson-hero {padding-top:18px;}
 .l23 .lesson-hero .eyebrow {font-size:.73rem; margin-bottom:12px;}
 .l23 .lesson-hero h1 {font-size:clamp(3.5rem,17vw,4.45rem); letter-spacing:-.045em;}
 .l23 .lesson-hero .promise {font-size:1.12rem; margin-top:17px; line-height:1.48;}
 .l23 .scene-line {font-size:.92rem; line-height:1.45;}
 .l23 .hero-phrase {padding:16px; margin-right:5px; gap:12px;}
 .l23 .hero-phrase .jp {font-size:1.55rem;}
 .l23 .hero-phrase .romaji {font-size:.94rem;}
 .l23 .hero-actions { gap:12px; }
 .l23 .hero-actions .btn-ghost {width:100%; justify-content:center;}
 .l23 .toolbar {gap:8px;}
 .l23 .sect { padding-top:36px; }
 .l23 .sect-head h2 {font-size:2.6rem;}
 .l23 .sect-head p {font-size:.98rem;}
 .l23 .game-panel {padding:16px;}
 .l23 .game-panel h3 {font-size:1.95rem;}
 .l23 .q {padding:14px;}
 .l23 .q-prompt {padding:12px;}
 .l23 .q-prompt .jp {font-size:1.55rem;}
 .l23 .opt {padding:10px;}
 .l23 .opt .jp {font-size:1.3rem;}
}
@media(prefers-reduced-motion:reduce){
 .l23 .case-route a,.l23 .line,.l23 .game-choice,.l23 .payment-choice {transition:none!important;transform:none!important;}
 .l23 .card-object.pulsing,.l23 .tap-reader.pulsing {animation:none!important;}
}

/* Compact header and visible, scrollable language labels on phones. */
.l23 .lang-switch { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; }
.l23 .lang-switch .pending { color:var(--paper); opacity:.74; }
.l23 .lang-switch a { flex:0 0 auto; }
.l23 .l23-status[hidden] { display:none; }
@media(max-width:700px) {
  .l23 .note-header { display:grid; grid-template-columns:minmax(0,1fr) auto; padding:10px 16px; align-items:center; gap:9px; }
  .l23 .note-brand { min-width:0; white-space:nowrap; }
  .l23 .note-brand span:last-child { display:inline!important; color:var(--paper); font-size:.73rem; line-height:1.1; letter-spacing:.035em; }
  .l23 .note-nav { order:0; width:auto; justify-content:flex-end; gap:12px; }
  .l23 .note-nav a { font-size:.79rem; }
  .l23 .lang-switch { display:flex; flex-wrap:nowrap; justify-content:flex-start; padding:7px 16px; gap:8px; overflow-x:auto; overscroll-behavior-inline:contain; }
  .l23 .lang-switch a { flex:0 0 auto; min-width:110px; min-height:42px; padding:0 12px; }
  .l23 .lang-switch .pending { display:inline-flex; min-height:42px; padding:0 8px; flex:0 0 auto; }
  .l23 .route-number { font-size:.68rem; letter-spacing:.05em; }
}
@media(max-width:390px) {
  .l23 .note-brand span:last-child { font-size:.69rem; }
  .l23 .note-nav { gap:9px; }
  .l23 .note-nav a { font-size:.75rem; }
}

.l23 .source-ledger { margin:26px 0 0; border:2px solid var(--ink); background:var(--case-light); border-radius:5px; }
.l23 .source-ledger summary { list-style:none; padding:18px 20px; font-weight:800; cursor:pointer; }
.l23 .source-ledger summary::before {content:'+';display:inline-block;margin-right:11px;color:var(--signal);font-size:1.5rem;vertical-align:-2px;}
.l23 .source-ledger[open] summary::before {content:'−';}
.l23 .source-ledger summary::-webkit-details-marker {display:none;}
.l23 .ledger-date {display:inline-block;color:var(--red);font-size:.74rem;margin-left:10px;}
.l23 .ledger-items {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line);}
.l23 .ledger-items article {padding:18px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0;}
.l23 .ledger-items h3 {font-size:1.03rem;margin:0 0 8px;}
.l23 .ledger-items p {font-size:.9rem;line-height:1.45;margin:0 0 10px;}
.l23 .ledger-cite {font-size:.74rem!important;color:#555;overflow-wrap:anywhere;}
.l23 .ledger-cite a {text-underline-offset:3px;}
@media(max-width:700px){.l23 .ledger-items{grid-template-columns:1fr;}.l23 .ledger-items article{border-right:0;}.l23 .ledger-date{margin-left:0;display:block;}}

/* v1.77 (c9): Japanese in bubbles breaks between characters with the normal kinsoku rules, so a lone 。 never starts a line (travel.css keep-all gives Japanese no break points). */
.l23 .bubble, .l23 .jp { word-break: normal; line-break: strict; overflow-wrap: normal; }

/* v1.77 (c9): the live status line is for screen readers only (lesson 1's frame has no .sr-only rule). */
.l23 .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
