:root {
  --metro: #0f8357;
  --bottle: #183c31;
  --paper: #fffaf0;
  --bubble: #ff9ac1;
  --steel: #d6e6dc;
  font-family: "Pretendard Variable", "Hiragino Sans", "Apple SD Gothic Neo", "Avenir Next", system-ui, sans-serif;
}
body { background: #cee8dd; background-image: radial-gradient(#71a39155 .8px, transparent 1px); background-size: 8px 8px; }
.layout { min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom)); width: min(100%, 600px); background: var(--paper); box-shadow: 0 0 0 1px #31504338, 0 15px 65px #264c3b23; padding-bottom: 78px; }
.ui-icon { width: 22px; height: 22px; display: inline-block; flex-shrink: 0; vertical-align: middle; }
.cab[data-view=home], .cab[data-view=test], .cab[data-view=choose] { aspect-ratio: auto; overflow: visible; background: var(--paper); }
.cab:is([data-view=home],[data-view=test],[data-view=choose]) .cab-art { display: none; }
.cab:is([data-view=home],[data-view=test],[data-view=choose]) .cab-content { position: relative; }
.trip-header { padding: 13px 15px 15px; background-color: #96e2c1; background-image: repeating-linear-gradient(117deg, transparent 0 46px,#fff3 46px 47px,transparent 48px 86px); border-bottom: 3px solid var(--ink); }
.brand-row, .wordmark, .wallet-chip, .brand-tile, .route-heading, .depart-button, .nav-tab, .test-caption, .mode-link, .wallet-streak, .point-rules li { display: flex; align-items: center; }
.brand-row { justify-content: space-between; margin: 0 2px 13px; }
.wordmark { gap: 8px; }
.wordmark > span:last-child { font-size: 22px; font-weight: 1000; letter-spacing: -.08em; line-height: .98; }
.wordmark small { display: block; font: 750 10px/1.3 "Avenir Next",system-ui,sans-serif; letter-spacing: .03em; margin-top: 2px; }
.brand-tile { justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: #174b38; transform: rotate(-5deg); }
.brand-tile img { filter: invert(1); width: 27px; height: 27px; }
.wallet-chip { background: #fff3b6; border: 2px solid var(--ink); padding: 4px 10px 4px 8px; gap: 7px; min-height: 39px; border-radius: 12px; box-shadow: 0 3px #284d3e; }
.wallet-chip .ui-icon { width: 24px; }
.wallet-chip b { font: 900 17px/1.1 "Avenir Next",system-ui,sans-serif; }
.wallet-chip span { font-size: 19px; line-height: 1; }
.station-board { position: relative; padding: 6px; display: grid; grid-template-columns: 1fr 1.38fr 1fr; align-items: stretch; border: 2px solid var(--ink); border-radius: 35px; background: #39c98d; box-shadow: 0 3px var(--ink), inset 0 1.5px #c2ffe3; isolation: isolate; }
.station-board::before { position: absolute; content: ""; inset: 5px; border-radius: 29px; background: var(--paper); border: 2px solid var(--ink); z-index: -1; }
.neighbor, .station-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.station-board small { color: #426052; font-size: 10px; font-weight: 780; line-height: 1.2; }
.neighbor { gap: 5px; padding-block: 7px; }
.neighbor b { font-size: 16px; line-height: 1; letter-spacing: -.045em; }
.station-center { position: relative; padding: 5px 1px 6px; }
.station-center::before, .station-center::after { content: ""; position: absolute; top: 19%; bottom: 19%; width: 1.5px; background: #436151; }
.station-center::before { left: 0; } .station-center::after { right: 0; }
.station-center strong { font-size: clamp(28px,8.3cqw,39px); line-height: 1.02; letter-spacing: -.07em; font-weight: 1000; }
.station-center > span { font-size: 12px; line-height: 1.15; font-weight: 800; }
.route-sheet { background: #fff8e8; }
.route-heading { justify-content: space-between; padding: 13px 18px 11px; border-bottom: 1px solid #b7b198; }
.route-heading small { color: #32624b; font-size: 11px; font-weight: 850; }
.route-heading small i { display: inline-grid; place-items: center; font-style: normal; font-size: 11px; width: 17px; height: 17px; background: #16754b; border-radius: 50%; color: white; }
.route-heading h1 { margin: 2px 0 0; font-size: clamp(23px,6.5cqw,30px); font-weight: 950; letter-spacing: -.055em; line-height: 1.13; }
.day-goal { padding-left: 14px; border-left: 1px dashed #8e9c87; display: grid; gap: 2px; font-size: 10px; color: #405949; }
.day-goal b { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.traveler { object-fit: contain; pointer-events: none; display: block; }
.depart { position: sticky; bottom: 70px; z-index: 4; border-top: 2px solid #333b30; padding: 7px 15px 11px; background: #fff9e9; }
.trip-breakdown { display: flex; align-items: center; justify-content: center; gap: 5px; color: #395446; font-size: 11px; font-weight: 730; margin-bottom: 5px; }
.trip-breakdown img { height: 16px; width: 16px; } .trip-breakdown span { color: #a1a493; }
.depart-button { width: 100%; min-height: 48px; justify-content: center; gap: 12px; background: var(--bubble); border: 2px solid var(--ink); border-radius: 15px; box-shadow: 0 4px #5d3448,inset 0 2px #ffc9df; font-size: 16px; font-weight: 900; }
.depart-button:active:not(:disabled) { translate: 0 2px; box-shadow: 0 2px #5d3448; }
.depart-button:disabled { color: #45554c; background: #dfebdf; box-shadow: 0 3px #778579; cursor: default; }
.app-nav { position: fixed; z-index: 5; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%,470px); display: grid; grid-template-columns: repeat(4,1fr); align-items: stretch; padding: 5px 5px max(7px,var(--safe-bottom)); min-height: 70px; background: #fffcf3; border-top: 2px solid var(--ink); }
.app-nav .nav-tab { flex-direction: column; justify-content: center; gap: 3px; border-radius: 10px; font-size: 10.5px; line-height: 1.15; font-weight: 800; }
.nav-tab > span { display: grid; place-items: center; width: 38px; height: 31px; border: 1.5px solid transparent; border-radius: 11px; }
.nav-tab img { height: 26px; width: 26px; }
.tab-home { --tint: #9debc4; } .tab-album { --tint: #ffc3dc; } .tab-wallet { --tint: #ffdf80; } .tab-settings { --tint: #cbd6fc; }
.nav-tab[aria-current] > span { border-color: var(--ink); background: var(--tint); box-shadow: 0 2px var(--ink); transform: rotate(-4deg); }
.nav-tab:hover > span { background: var(--tint); }
.app-nav button:hover { background: transparent; }
.pass-art { position: relative; overflow: hidden; isolation: isolate; margin: 16px 0 12px; padding: 15px 18px 12px; color: #102e25; border: 2px solid var(--ink); border-radius: 17px; box-shadow: 2px 4px #365847; background: repeating-linear-gradient(135deg,#a3edc4 0 30px,#abeecd 31px 60px); }
.pass-art::after { position: absolute; z-index: -1; content: ""; right: -28px; bottom: -37px; width: 135px; height: 95px; border: 8px double #38926e; border-radius: 30px; transform: rotate(-35deg); }
.pass-art > div,.pass-art footer { display: flex; align-items: center; justify-content: space-between; }
.pass-art > div b { font-size: 18px; letter-spacing: -.06em; }.pass-art > small { display: block; margin-top: 10px; }
.pass-art > strong { display: block; font-size: 40px; line-height: 1.1; font-weight: 950; }.pass-art i { font-size: 20px; font-style: normal; }
.pass-art footer { margin-top: 17px; font-size: 12px; font-weight: 800; }
.wallet-streak { gap: 6px; }.wallet-streak .ui-icon { background: #ffba92; border-radius: 50%; }
.panel h3 { font-size: 15px; margin: 16px 0 4px; }
.point-rules { list-style: none; padding: 0; margin: 0; }
.point-rules li { padding: 9px 0; border-top: 1px dashed #bbb7a5; gap: 8px; font-size: 14px; }
.point-rules b { margin-left: auto; white-space: nowrap; }
.cab-sign { position: absolute; top: 2.8%; left: 7%; right: 7%; height: 14.2%; background: #72dfba; border-radius: 6cqw; }
.cab-sign .station-board { height: 100%; }
.cab:not([data-view=reference]) .station-count { left: 74%; width: 16%; top: 18.1%; height: 3.5%; font-size: 2.8cqw; z-index: 1; }
.cab:not([data-view=reference]) .progress-track { right: 9%; padding-right: 20%; }
.platform-floor { position: absolute; inset: 74% 0 0; background: linear-gradient(180deg,#6fd7b3 0 16%,#164333 16% 17%, transparent 17% 24%,#edbf43 24% 32%,transparent 32%),repeating-linear-gradient(104deg,#dfd0b9 0 1.5px,transparent 2px 45px),repeating-linear-gradient(0deg,#f8ead2 0 27px,#d1bfa4 28px 29px); }
.platform-guide { position: absolute; left: .8%; bottom: 1%; width: 23%; height: 22%; z-index: 1; }
.reward-photo,.album-art { position: relative; overflow: hidden; border-radius: 13px; width: 100%; }
.reward-photo { height: 51%; min-height: 30cqw; } .reward-content .reward-photo .card-photo,.album-art .card-photo { width: 100%; height: 100%; }
.reward-guide,.album-item .album-guide { position: absolute; width: 29%; height: 75%; aspect-ratio: auto; object-fit: contain; bottom: 0; left: 2%; }
.album-art { height: 130px; margin-top: 10px; }.album-art .card-photo img { height: 100%; width: 100%; object-fit: cover; }
.test-room { padding: 18px 16px 22px; background: repeating-linear-gradient(45deg,#f9edd9 0 12px,#fff2df 12px 24px); min-height: 63dvh; }
.test-card { padding: 19px 16px; background: var(--paper); border: 2px solid #272621; border-radius: 23px; box-shadow: 3px 4px #76bd99; }
.test-caption { gap: 6px; color: #3b5949; font-size: 12px; font-weight: 800; }
.test-caption img { width: 19px; height: 19px; }
.test-card h1 { font-size: clamp(21px,6cqw,29px); letter-spacing: -.05em; line-height: 1.2; margin: 9px 0 13px; }
.test-card h2 { font-size: 19px; margin: 10px 0 17px; line-height: 1.35; }
.dialogue { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 13px; background: #d4f4de; border: 1.5px solid #345342; border-radius: 12px 12px 12px 2px; font-size: 17px; }
.mic-button { width: 100%; padding: 15px 8px 10px; display: grid; place-items: center; gap: 9px; border: 0; background: transparent; font-weight: 800; }
.mic-button span { display: grid; place-items: center; width: 75px; height: 75px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--bubble); box-shadow: 0 5px #64344a,inset 0 3px #ffe0e8; }
.mic-button img { width: 41px; height: 41px; }
.mic-button[aria-pressed=true] span { background: #9debc4; box-shadow: 0 0 0 5px #cee5cd; }
.mode-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; margin: 7px 0 0; }
.mode-link { gap: 5px; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; border-radius: 5px; min-height: 42px; font-size: 13px; color: #344c40; }
.mode-link img { height: 18px; width: 18px; }
.field-label { display: block; font-size: 13px; font-weight: 800; margin: 0 0 7px; }
.answer-field { min-height: 46px; font-size: 16px; }
.built-answer,.transcript,.test-result { border-radius: 10px; border: 1.5px solid #859886; padding: 8px 10px; background: #fff; }
.built-answer { display: flex; justify-content: space-between; min-height: 46px; gap: 5px; align-items: center; }
.built-answer output { overflow-wrap: anywhere; font-weight: 750; }.undo { border: 0; background: #f2f3e6; font-size: 12px; padding: 7px; flex-shrink: 0; border-radius: 6px; }
.tile-bank { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 4px; }
.answer-tile { border: 1.5px solid #263a2d; padding: 6px 11px; min-height: 39px; border-radius: 10px; background: #e4f4d7; box-shadow: 0 2px #69856b; font-size: 16px; font-weight: 750; }
.answer-tile:disabled { color: #687568; background: #e9e9df; box-shadow: none; }
.transcript small,.transcript b,.test-result span,.test-result strong { display: block; }.transcript small { color: #3a5b48; }
.mic-note,.test-hint,.test-result { font-size: 14px; }.test-hint { padding: 6px 0; color: #3e4d42; }.test-hint summary { cursor: pointer; }.test-result.correct { background: #ccf4d7; }
.test-submit { margin-top: 16px; }.test-result span { margin-top: 5px; font-size: 17px; }
.cab[data-view=test] .flash-note { position: fixed; top: auto; bottom: 78px; left: 50%; transform: translateX(-50%); right: auto; width: min(88%,405px); font-size: 14px; padding: 10px; }
@media (min-width: 600px) { .layout { border-inline: 1px solid #749383; } }
@media (max-height: 700px) { .depart { position: static; } }
.conversation-prompt { display: flex; align-items: center; gap: 6px; }
.conversation-prompt .traveler { height: 56px; width: 46px; }
.nav-tab > span { width: 45px; height: 33px; }
.nav-tab img { width: 29px; height: 29px; }
.wallet-chip .ui-icon { transform: rotate(-10deg); }
[hidden] { display:none !important; }
.traveler-boarding { min-height:var(--safe-page-height); padding:16px 16px 30px; background-color:#a2eacb; background-image:radial-gradient(#34745755 .8px,transparent 1px);background-size:7px 7px; }
.layout:has([data-view=choose]) { padding-bottom:0; }
.boarding-top { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 1px 15px; }
.boarding-top .setting { border:0; padding:0; font-size:0; gap:0; }
.boarding-top select { color:var(--ink); font-family:inherit; font-size:13px; font-weight:700; border:1.5px solid var(--ink); background:#fffbe9; border-radius:12px; padding:8px; }
.arrival-postcard { height:clamp(130px,30svh,240px); border:2px solid var(--ink); border-radius:23px 23px 5px 5px; overflow:hidden; position:relative; background:#faf1d7; }
.boarding-pass { position:relative; padding:16px 14px 20px; background:#fff9ec; border:2px solid var(--ink); border-top-style:dashed; border-radius:5px 5px 23px 23px; box-shadow:0 5px #35694f; }
.boarding-pass .pass-route { font-weight:800; font-size:12px; color:#285d44; margin:0 0 12px; }.pass-route i { padding:0 3px; font-style:normal; }
.boarding-pass h1 { margin:0; font-size:clamp(23px,6.8cqw,33px); letter-spacing:-.05em; }
.boarding-pass h1 + p { color:#48574a; margin:5px 0 16px; font-size:14px; line-height:1.45; }
.character-options { display:grid;grid-template-columns:1fr 1fr; gap:10px; }
.traveler-choice { border:2px solid var(--ink); border-radius:17px; background:#dcf2be; padding:9px 7px 10px; display:grid; grid-template-columns:1fr auto; align-items:center; box-shadow:0 3px #303f32; }
.traveler-choice:nth-child(2) { background:#ffdae8; }
.traveler-choice img { grid-column:1/-1; width:90%; height:clamp(96px,18svh,150px); margin:auto auto 9px; object-fit:contain; }
.traveler-choice b { font-size:clamp(13px,3.6cqw,17px); }
.traveler-choice span { display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--paper);border:1.5px solid var(--ink); }
.traveler-choice:hover { transform:translateY(-2px); }
@keyframes station-sparkle { 0%,100% { transform:scale(.8) rotate(-8deg); opacity:.65; } 50% { transform:scale(1.28) rotate(12deg); opacity:1; } }
.guide-group { padding:8px 0;border-top:1px dashed #98a28c; }.guide-group summary {cursor:pointer; font-weight:bold; padding:4px; }
.guide-place { padding:4px 6px 10px;font-size:14px; }.guide-place h3 { color:#235b3d; }.guide-place a { color:#155a42; }.guide-example { font-weight:700; }
.word-info:has(.phrase) { padding:2.4cqw 16.5cqw 0 2.7cqw; }
.word-info h1.phrase { font-size:clamp(16px,5.2cqw,24px); word-break:keep-all; overflow-wrap:anywhere; }
.word-info:has(.phrase) p { font-size:clamp(12px,3.6cqw,17px); }
.station-center strong:lang(ko) { font-size:clamp(23px,6.6cqw,32px); }
.station-center { min-width:0; }
.station-center > span { white-space:nowrap; }
.cab-sign .station-board { grid-template-columns:1fr 1.55fr 1fr; }
.cab-sign .station-center { padding:1px; }
.cab-sign .station-center > span { font-size:clamp(8px,2.6cqw,12px); }
.cab-sign .neighbor b { font-size:clamp(11px,3.6cqw,16px); }
