:root {
  color-scheme: light;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-page-height: calc(100svh - var(--safe-top) - var(--safe-bottom));
  --ink: #171219;
  --cream: #fff8e9;
  --mint: #b6f8d9;
  --pink: #ff83b4;
  --green: #07b951;
  --outline: #171219;
  font-family: "Arial Rounded MT Bold", "Hiragino Sans", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: #b9eadb; }
body:has(> .layout) {
  padding: var(--safe-top) var(--safe-right) 0 var(--safe-left);
}
body:has(> .layout > .app-nav[hidden]) {padding-bottom:var(--safe-bottom)}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #2e36d8;
  outline-offset: 2px;
}
.layout { width: min(100%, 500px); margin-inline: auto; }
.cab {
  position: relative;
  aspect-ratio: 996 / 1579;
  container-type: inline-size;
  isolation: isolate;
  overflow: hidden;
  background: #75dabb;
}
.cab-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.cab-content { position: absolute; inset: 0; }
.hotspot { position: absolute; background: transparent; border: 0; }
.hotspot.preview-audio { top: 60.7%; left: 68.8%; width: 19%; height: 12.5%; border-radius: 50%; }
.hotspot.preview-next { top: 86.5%; left: 25.1%; width: 69%; height: 11%; border-radius: 11cqw; }
.hotspot.preview-audio:active, .hotspot.preview-next:active { background: #fff4; }
.station-info {
  position: absolute; top: 5.7%; left: 34%; width: 27.5%; height: 9.2%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: #f9f1e6; text-align: center; line-height: .98;
}
.station-info strong { font-weight: 1000; font-size: 8.1cqw; letter-spacing: -.062em; }
.station-info span { font-size: 3.65cqw; font-weight: 850; margin-top: .45cqw; }
.station-count {
  position: absolute; left: 64.7%; top: 8.12%; width: 19.4%; height: 4.45%;
  border: .48cqw solid var(--outline); background: #ffa5c7; font-size: 4.05cqw;
  font-weight: 950; text-align: center; border-radius: 50cqw;
  display: grid; place-items: center;
}
.progress-track {
  position: absolute; left: 10.5%; right: 10.5%; top: 17.55%; height: 4.7%;
  border: .52cqw solid var(--outline); border-radius: 4.4cqw;
  display: flex; align-items: center; justify-content: space-between; isolation: isolate;
  background: #bbfbe4; padding-inline: 5.4cqw; box-shadow: inset .6cqw .6cqw #e5fff1;
}
.progress-track::before {
  content: ""; position: absolute; left: 7%; right: 7%; height: .55cqw;
  background: var(--ink); z-index: -1;
}
.progress-track span {
  display: block; width: 3.6cqw; aspect-ratio: 1;
  border: .42cqw solid var(--ink); border-radius: 50%; background: var(--cream);
}
.progress-track .visited { background: var(--green); }
.progress-track .current { background: var(--pink); }
.progress-track.long { padding-inline: 4cqw; }
.progress-track.long span { width: 2.5cqw; border-width: .34cqw; }
.learn-card {
  position: absolute; top: 23.85%; left: 5.7%; width: 88.2%; height: 52.85%;
  background: #fffefa; border: .78cqw solid var(--outline); border-radius: 7cqw;
  box-shadow: 1.15cqw 1.5cqw 0 #19c77f, inset .75cqw .75cqw #ecebec;
  padding: 2.25cqw; overflow: hidden;
}
.learn-card button { touch-action: manipulation; }
.card-photo {
  height: 62.4%; background: #6fceb9; border-radius: 4.65cqw;
  position: relative; overflow: hidden; isolation: isolate;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo.market img { object-position: 78% 72%; }
.card-photo.taxi img { object-position: 49% 48%; }
.card-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px #0001; border-radius: inherit; }
.photo-ticket {
  position: absolute; right: 3cqw; top: 3cqw;
  background: #ffe956; border: .5cqw solid var(--ink); border-radius: 2.3cqw; padding: 1.35cqw 2cqw;
  font-size: 3cqw; font-weight: 900; transform: rotate(5deg); box-shadow: .55cqw .65cqw var(--ink);
}
.word-info { position: relative; padding: 3.15cqw 18cqw 0 5.2cqw; }
.word-info h1 {
  font-weight: 1000; font-size: 11.5cqw; margin: 0 0 .75cqw; letter-spacing: -.065em; line-height: 1.02;
}
.word-info h1.phrase { font-size: 6.4cqw; line-height: 1.15; }
.word-info p { margin: 0; font-size: 4.6cqw; line-height: 1.2; font-weight: 800; }
.listener {
  position: absolute; right: 5cqw; bottom: 6.1cqw; border-radius: 50%; width: 16.5cqw; aspect-ratio: 1;
  background: #fff5cd; border: .67cqw solid var(--outline); display: grid; place-items: center;
  box-shadow: 1.1cqw 1.2cqw #57dfac; padding: 0;
}
.speaker-glyph { position: relative; display: block; width: 9.2cqw; height: 8.3cqw; }
.speaker-glyph::before {
  content: ""; position: absolute; inset: 0 43% 0 0; background: currentColor;
  clip-path: polygon(0 30%,36% 30%,92% 3%,100% 7%,100% 93%,92% 97%,36% 70%,0 70%);
}
.speaker-glyph::after {
  content: ""; position: absolute; left: 45%; width: 42%; height: 73%; top: 13%;
  border-right: .75cqw solid var(--ink); border-radius: 50%;
  box-shadow: -.9cqw 0 0 -.2cqw #fff5cd, -.2cqw 0 0 -.68cqw var(--ink);
}
.next-button {
  position: absolute; top: 86.7%; left: 25.25%; width: 68.95%; min-height: 10.3%;
  background: #ff84b3; border: .77cqw solid var(--ink); border-radius: 7.2cqw;
  box-shadow: inset 0 -1.9cqw #a9426b, inset 0 .55cqw #ffafce, 0 .42cqw var(--ink);
  font-size: 5.4cqw; font-weight: 1000; line-height: 1.1;
  padding: 1.6cqw 2.2cqw 3cqw; display: flex; align-items: center; justify-content: center; gap: 2.7cqw;
}
.next-button:active { box-shadow: inset 0 -.9cqw #a9426b; }
.next-button:disabled { background: #d8b6c1; cursor: default; }
.next-button span { font-size: 7cqw; line-height: .8; }
.home-splash .card-photo { height: 60%; }
.home-copy { padding: 3cqw 4cqw 0; }
.home-copy h1 { margin: 0; font-size: 7.6cqw; font-weight: 1000; line-height: 1.08; letter-spacing: -.035em; }
.home-copy p { margin: 1.35cqw 0 0; font-size: 3.7cqw; font-weight: 750; }
.home-copy .muted { font-size: 3.2cqw; color: #463b45; }
.interaction { display: flex; flex-direction: column; padding: 4.6cqw; gap: 2.6cqw; font-size: 3.7cqw; }
.interaction h1 { font-size: 6.75cqw; letter-spacing: -.046em; margin: 0; line-height: 1.08; font-weight: 1000; }
.interaction h2 { font-size: 6.3cqw; margin: 0; line-height: 1.12; }
.interaction p { margin: 0; line-height: 1.25; }
.interaction .eyebrow { font-size: 3.4cqw; font-weight: 900; color: #235844; }
.options { display: grid; gap: 2cqw; }
.answer-option, .small-button {
  text-align: left; background: var(--cream); border: .5cqw solid var(--ink); border-radius: 2.9cqw;
  padding: 2cqw 3cqw; min-height: 9.7cqw; font-weight: 800;
}
.answer-option.selected { background: var(--pink); box-shadow: .65cqw .65cqw var(--ink); }
.feedback { font-weight: 850; padding: 2.3cqw 3cqw; border: .45cqw solid var(--ink); border-radius: 2.7cqw; background: #ffedb5; }
.feedback.is-right { background: var(--mint); }
.counter-prompt { background: var(--mint); font-size: 4.7cqw; }
.counter-prompt span { font-size: 3.1cqw; margin-left: 2cqw; }
.target-tip { color: #403742; font-weight: 750; }
.answer-field { min-height: 10.5cqw; width: 100%; border: .48cqw solid var(--ink); border-radius: 2.6cqw; padding: 1.8cqw 2.7cqw; background: white; }
.tool-row { display: flex; gap: 2cqw; align-items: center; flex-wrap: wrap; }
.tool-row .small-button { padding: .95cqw 2cqw; min-height: 7.6cqw; background: #fff1b9; }
.role.interaction { gap: 2.05cqw; }
.reward-content { align-items: center; text-align: center; }
.reward-content .card-photo { width: 100%; height: 51%; min-height: 31cqw; }
.reward-tag { background: #ffe55c; padding: 1.4cqw 4cqw; border: .48cqw solid var(--ink); border-radius: 10cqw; font-weight: 900; }
.cafe-art {
  background: repeating-linear-gradient(-32deg,#7ddfc4 0 28px,#8ce8d0 29px 56px);
  display: flex; align-items: center; justify-content: center;
}
.cafe-art::before {
  content: ""; width: 24cqw; height: 31cqw; border: .72cqw solid var(--outline);
  border-radius: 2cqw 2cqw 6cqw 6cqw; background:
    linear-gradient(150deg, transparent 19%, #f6ddb570 20% 31%, transparent 32%),
    linear-gradient(180deg,#ffeae6 0 11%,#c48b52 12% 20%,#704028 21% 100%);
  transform: rotate(-12deg); box-shadow: 2cqw 2cqw #09534f42;
}
.app-nav {
  display: flex; align-items: stretch; padding: 5px 7px max(5px, env(safe-area-inset-bottom));
  gap: 3px; border-top: 2px solid var(--ink); background: #fff4de; min-height: 46px;
}
.app-nav button {
  background: transparent; border: 0; flex: 1; min-height: 38px;
  font-size: clamp(11px, 3vw, 13px); font-weight: 800; padding: 2px;
}
.app-nav button:hover { background: #ffdbeb; border-radius: 9px; }
.app-nav .points-button { background: #aef1d1; border: 1.5px solid var(--ink); border-radius: 9px; flex: .6; }
.panel {
  width: min(calc(100% - 30px), 370px); max-height: calc(100% - 30px); padding: 20px;
  color: var(--ink); background: #fff8e9; border: 3px solid var(--ink); border-radius: 25px; box-shadow: 6px 7px #1ab779;
}
.panel::backdrop { background: #13182283; }
.panel h2 { margin: 0 0 11px; font-weight: 950; }
.panel p { line-height: 1.43; margin-block: 8px; }
.panel button:not(.close-panel), .panel select {
  border: 1.5px solid var(--outline); background: #ffadcb; border-radius: 9px; padding: 7px 10px; min-height: 40px;
}
.panel .close-panel { position: absolute; top: 11px; right: 11px; border: 0; background: transparent; font-weight: 900; font-size: 22px; width: 40px; height: 40px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #0002; }
.album-item { margin: 12px 0 0; padding: 10px; border: 2px solid var(--ink); border-radius: 15px; background: #fff; }
.album-item img { width: 100%; aspect-ratio: 2; object-fit: cover; border-radius: 9px; }
.album-item summary { cursor: pointer; font-weight: 820; }
.flash-note { position: absolute; left: 10%; right: 10%; top: 77.4%; background: var(--cream); padding: 1.5cqw 3cqw; border: .5cqw solid var(--ink); border-radius: 2.5cqw; font-weight: 800; font-size: 3.3cqw; z-index: 2; }
.sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); white-space: nowrap; }
