/* Shared mobile surfaces and route controls. */
:root { --primary:#126b5a; --primary-hover:#0c5447; --primary-subtle:#e5f3ed; --bg-page:#f7f8fa; --bg-card:#fff; --bg-card-subtle:#f0f3f4; --border:#dee4e3; --border-hover:#a4b5af; --text-title:#172420; --text-body:#394941; --text-muted:#65746c; --surface:#f0f3f4; --surface-card:#fff; --shadow-card:0 2px 7px #173d2910; --accent:#c93656; --accent-soft:#ffedf0; --reward:#a96800; --reward-soft:#fff3cf; }
[data-theme="dark"] { --primary:#6ed3b1; --primary-hover:#a0e7cf; --primary-subtle:#1f3831; --bg-page:#141817; --bg-card:#1c2220; --bg-card-subtle:#242d29; --border:#34433c; --border-hover:#62796e; --text-title:#f2f7f3; --text-body:#cfdbd2; --text-muted:#9bb0a3; --surface:#242d29; --surface-card:#1c2220; --accent:#ffa0b0; --accent-soft:#3b242b; --reward:#ffd36a; --reward-soft:#3f341d; --shadow-card:none; }
* { letter-spacing:0; }
html { scroll-padding-top:85px; }
body { font-size:15px; line-height:1.5; padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea { touch-action:manipulation; }
button:focus-visible,a:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
button:disabled { opacity:.55; cursor:wait; }
.app-header { padding:12px max(16px,calc((100% - 1000px)/2)); box-shadow:none; background:var(--bg-card); }
.header-main-row { min-height:42px; }
.header-brand { min-width:0; }
.brand-logo-icon { width:36px; height:36px; flex-shrink:0; border-radius:8px; background:var(--primary); color:var(--bg-card); box-shadow:inset 0 -3px 0 var(--reward); }
.brand-titles h1 { font-size:17px; line-height:1.2; }
.brand-subtitle { color:var(--text-muted); font-size:11px; }
.icon-btn { width:40px; height:40px; background:transparent; border:0; }
.icon-btn svg { width:21px; height:21px; }
.city-selector-strip { position:static!important; margin-top:7px!important; }
.city-pill-btn { max-width:100%; }
body.city-selected .city-selector-strip { position:absolute!important; top:16px; right:max(106px,calc((100% - 1000px)/2 + 90px)); margin:0!important; }
body.city-selected .gps-quick-btn { display:none; }
body.city-selected .city-pill-btn { padding:5px 9px; min-height:32px; border:0; background:var(--primary-subtle); }
.container { max-width:1000px; padding:24px 20px; }
.section-heading { font-size:21px; font-weight:750; margin:25px 0 16px; color:var(--text-title); }
.home-section-card,.cinema-header-box,.ai-hub-card,.evening-planner { padding:20px 0; background:none; border:0; border-radius:0; box-shadow:none; }
.home-section-card { border-top:1px solid var(--border); margin:22px 0 0; }
.home-section-title { font-size:19px; flex-wrap:wrap; }
.home-section-header { gap:10px; align-items:center; }
.home-section-more-btn { flex-shrink:0; }
.btn-sm { min-height:40px; padding:9px 14px; border-radius:6px; display:inline-flex; justify-content:center; align-items:center; gap:8px; font-size:14px; font-weight:650; line-height:1.4; }
.btn-primary { background:var(--primary); color:var(--bg-card); }
.btn-sm svg { width:17px; height:17px; flex-shrink:0; }
.cat-chip { min-height:38px; padding:8px 13px; font-size:13px; box-shadow:none; }
.cat-chip.active { color:var(--bg-card); }
.categories-scroll { padding:3px 0 10px; }
.home-quick-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0 0 20px; }
.home-quick-links button { min-width:0; min-height:58px; display:grid; grid-template-columns:24px 1fr 16px; align-items:center; gap:9px; padding:10px 12px; border:1px solid var(--border); border-radius:7px; background:var(--bg-card); color:var(--text-title); text-align:left; cursor:pointer; }
.home-quick-links button:hover { border-color:var(--border-hover); background:var(--bg-card-subtle); }
.home-quick-links button > svg:first-child { width:21px; height:21px; color:var(--primary); }
.home-quick-links button > svg:last-child { width:15px; height:15px; color:var(--text-muted); }
.home-quick-links span { min-width:0; }
.home-quick-links strong,.home-quick-links small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-quick-links strong { font-size:14px; }
.home-quick-links small { margin-top:2px; color:var(--text-muted); font-size:11px; }
.event-filter-bar { position:relative; display:flex; align-items:center; justify-content:space-between; gap:10px; margin:24px 0 16px; padding-top:18px; border-top:1px solid var(--border); }
.event-filter-primary { display:flex; min-width:0; gap:4px; padding:3px; border-radius:7px; background:var(--bg-card-subtle); }
.event-filter { min-height:38px; padding:8px 12px; border:0; border-radius:5px; background:transparent; color:var(--text-muted); font-size:13px; font-weight:650; white-space:nowrap; cursor:pointer; }
.event-filter.active { background:var(--bg-card); color:var(--primary); box-shadow:0 1px 3px #17242012; }
.event-filter-more { position:relative; flex-shrink:0; }
.event-filter-more > summary { min-height:44px; display:flex; align-items:center; gap:7px; padding:8px 10px; border:1px solid var(--border); border-radius:6px; background:var(--bg-card); color:var(--text-body); font-size:13px; font-weight:650; cursor:pointer; list-style:none; }
.event-filter-more > summary::-webkit-details-marker { display:none; }
.event-filter-more > summary svg { width:16px; height:16px; }
.event-filter-more > summary svg:last-child { width:14px; transition:transform .16s; }
.event-filter-more[open] > summary svg:last-child { transform:rotate(180deg); }
.event-filter-more.has-selection > summary { color:var(--primary); border-color:var(--primary); background:var(--primary-subtle); }
.event-filter-menu { position:absolute; z-index:800; top:calc(100% + 7px); right:0; width:220px; padding:6px; border:1px solid var(--border); border-radius:7px; background:var(--bg-card); box-shadow:0 12px 32px #10192324; }
.event-filter-menu button { width:100%; min-height:42px; display:flex; align-items:center; gap:10px; padding:9px 10px; border:0; border-radius:5px; background:transparent; color:var(--text-body); text-align:left; cursor:pointer; }
.event-filter-menu button:hover,.event-filter-menu button.active { background:var(--primary-subtle); color:var(--primary); }
.event-filter-menu svg { width:18px; height:18px; }
.events-list-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
#events-count-heading { color:var(--text-muted); font-size:13px; font-weight:650; }
.events-freshness { flex-shrink:0; color:var(--primary); font-size:11px; font-weight:650; }
.events-freshness::before { content:''; display:inline-block; width:6px; height:6px; margin-right:5px; border-radius:50%; background:var(--primary); vertical-align:1px; }
.event-card,.movie-card { box-shadow:none; }
.place-card { background:var(--bg-card); padding:14px; gap:15px; border-radius:8px; box-shadow:none; margin:0; }
.place-card-content { min-width:0; }
.place-card-content strong,.place-card-title { font-size:17px!important; line-height:1.3; }
.place-card-content p,.place-description { font-size:14px!important; line-height:1.6; }
#walks-list-container { display:grid!important; grid-template-columns:1fr 1fr; gap:12px!important; }
.bottom-nav { background:var(--bg-card); border-top:1px solid var(--border); box-shadow:0 -4px 22px #17242008; padding:7px max(8px,calc((100% - 800px)/2)) calc(7px + env(safe-area-inset-bottom)); }
.nav-tab-btn { min-width:0; gap:3px; font-size:11px; color:var(--text-muted); }
.nav-tab-btn .tab-icon { display:grid; place-items:center; width:42px; height:30px; border-radius:6px; transition:background .18s; }
.tab-icon svg { width:21px; height:21px; stroke-width:1.8; }
.nav-tab-btn.active .tab-icon { background:var(--primary-subtle); }
.nav-tab-btn.active { color:var(--primary); }
.modal-card { border-radius:8px 8px 0 0; background:var(--bg-card); }
.modal-body { line-height:1.6; }
.place-modal-body { padding:0; display:flex; flex-direction:column; }
.place-modal-media { width:100%; aspect-ratio:16/9; min-height:210px; background:var(--bg-card-subtle); overflow:hidden; }
.place-modal-media img { width:100%; height:100%; object-fit:cover; display:block; }
.place-modal-media.is-fallback { display:grid; place-items:center; background:linear-gradient(135deg,var(--primary-subtle),var(--bg-card-subtle)); }
.place-modal-fallback { color:var(--primary); font-size:14px; font-weight:750; }
.place-modal-copy { padding:16px 16px 5px; }
.place-modal-copy p { margin:0 0 6px; color:var(--text-body); font-size:14px; line-height:1.55; }
.place-modal-copy span { color:var(--text-muted); font-size:12px; }
.place-rating { color:var(--reward); font-size:12px; font-weight:700; margin:6px 0; }
.place-rating strong { color:var(--reward); }
.place-review-note { color:var(--text-muted); font-size:11px; line-height:1.4; margin:4px 0 6px; }
.place-modal-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:12px 16px 16px; }
.place-modal-actions a { text-align:center; text-decoration:none; }
.planner-hero { display:flex; gap:24px; align-items:center; padding:0 0 22px; border-bottom:1px solid var(--border); }
.planner-hero > div { flex:1; }
.planner-hero h2 { font-size:29px; line-height:1.2; margin:5px 0 8px; color:var(--text-title); font-weight:750; }
.eyebrow { font-size:11px; font-weight:750; color:var(--primary); text-transform:uppercase; }
.planner-hero .city-photo { width:168px; height:124px; object-fit:cover; border-radius:8px; background:var(--bg-card-subtle); }
.planner-hero p { color:var(--text-muted); font-size:14px; }
.home-route-band { position:relative; min-height:230px; margin:14px 0 20px; background:#126b5a; overflow:hidden; color:#fff; }
.home-route-band > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.home-route-band > div { position:relative; min-height:230px; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-end; padding:24px; background:linear-gradient(0deg,rgba(0,0,0,.75),transparent); }
.home-route-band h2 { font-size:27px; line-height:1.2; margin:8px 0 15px; max-width:340px; }
.home-route-band p { max-width:520px; margin:-7px 0 16px; color:#fff; font-size:14px; line-height:1.5; }
.home-route-band .eyebrow { color:#fff; }
.home-route-band .btn-primary { background:#fff; color:#126b5a; }
.arena-track { display:inline-flex; padding:5px 8px; margin-bottom:9px; border:1px solid #ffffff70; border-radius:6px; color:#fff; background:#111b18a8; font-size:11px; font-weight:750; }
.arena-hero-actions { display:flex; flex-wrap:wrap; gap:8px; }
.arena-ghost-btn { color:#fff; border-color:#ffffff80; background:#111b18a8; }
.arena-hero-stats { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:17px; padding-top:12px; border-top:1px solid #ffffff55; color:#fff; font-size:12px; }
.arena-hero-stats strong { color:#ffd36a; font-size:15px; }
.route-canvas { background-color:#e9f2ee; background-image:linear-gradient(#126b5a12 1px,transparent 1px),linear-gradient(90deg,#126b5a12 1px,transparent 1px),radial-gradient(circle at 50% 45%,#b7d9cb 0 4%,transparent 4.2%); background-size:32px 32px,32px 32px,100% 100%; }
[data-theme="dark"] .route-canvas { background-color:#17201c; background-image:linear-gradient(#6ed3b11a 1px,transparent 1px),linear-gradient(90deg,#6ed3b11a 1px,transparent 1px); }
.route-canvas::after { content:'Схема маршрута'; position:absolute; right:12px; bottom:12px; z-index:300; padding:4px 7px; border-radius:5px; background:var(--bg-card); color:var(--text-muted); font-size:10px; border:1px solid var(--border); pointer-events:none; }
.active-route-text { flex:1; min-width:0; }
.active-route-text span { display:block; line-height:1.35; }
.active-route-box > div:last-child { flex-shrink:0; }
.store-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; margin:28px 0 12px; }
.store-heading h3 { margin:2px 0 0; color:var(--text-title); }
.store-heading p { max-width:330px; margin:0; color:var(--text-muted); font-size:12px; text-align:right; }
.merch-store { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.merch-item { display:grid; grid-template-columns:46px 1fr auto; align-items:center; gap:12px; padding:14px; border:1px solid var(--border); background:var(--bg-card); border-radius:8px; }
.merch-item.is-owned { border-color:var(--primary); background:var(--primary-subtle); }
.merch-icon { width:46px; height:46px; display:grid; place-items:center; color:var(--primary); background:var(--primary-subtle); border-radius:7px; }
.merch-icon svg { width:24px; height:24px; }
.merch-copy { min-width:0; }
.merch-copy > span { display:block; color:var(--primary); font-size:10px; font-weight:750; text-transform:uppercase; }
.merch-copy strong { display:block; color:var(--text-title); font-size:14px; margin:2px 0; }
.merch-copy p,.merch-copy small { display:block; color:var(--text-muted); font-size:11px; line-height:1.4; margin:0; }
.merch-copy small { color:var(--primary); font-weight:750; margin-top:3px; }
.digital-store { margin-top:12px; border-top:1px solid var(--border); padding-top:12px; }
.digital-store summary { cursor:pointer; color:var(--text-title); font-weight:700; margin-bottom:10px; }
.arena-challenge { display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:11px; margin:12px 0 16px; padding:13px; border:1px solid var(--reward); border-left:4px solid var(--reward); background:var(--reward-soft); }
.arena-challenge.is-complete { border-color:var(--primary); background:var(--primary-subtle); }
.arena-challenge-icon { width:42px; height:42px; display:grid; place-items:center; color:var(--reward); }
.arena-challenge.is-complete .arena-challenge-icon { color:var(--primary); }
.arena-challenge-icon svg { width:26px; height:26px; }
.arena-challenge span,.arena-challenge small { display:block; font-size:11px; color:var(--text-muted); }
.arena-challenge strong { display:block; margin:2px 0; color:var(--text-title); font-size:14px; }
.arena-challenge > b { color:var(--reward); font-size:13px; white-space:nowrap; }
.arena-challenge.is-complete > b { color:var(--primary); }
.place-preview { flex:0 0 110px; width:110px; height:116px; }
.place-preview img { object-fit:cover; width:100%; height:100%; }
.place-title { font-size:17px; line-height:1.4; }
.place-summary { font-size:14px; line-height:1.6; }
.place-geo { display:none; }
.place-map-link { font-size:12px; padding-top:4px; }
.place-preview-label { font-size:9px; }
.movie-title { font-size:19px; }
.movie-poster { width:98px; height:146px; flex-basis:98px; }
body[data-souvenir-style="night"] .souvenir-card { background:#20232b; border-color:#839aad; }
body[data-souvenir-style="coral"] .souvenir-card { background:#a32d4e; border:3px double #ffc5cf; }
.planner-form { display:grid; gap:18px; padding:22px 0; }
.planner-form label,.planner-form legend { display:block; font-size:13px; color:var(--text-title); font-weight:650; margin-bottom:7px; }
.planner-form fieldset { border:0; min-width:0; }
.route-options { border-top:1px solid var(--border); padding-top:12px; }
.route-options > summary { cursor:pointer; display:flex; align-items:center; gap:8px; color:var(--primary); font-size:14px; font-weight:650; }
.route-options > summary svg { width:17px; height:17px; }
.route-options[open] > :not(summary) { margin-top:16px; }
.planner-form textarea,.planner-form input,.planner-form select { width:100%; background:var(--bg-card); color:var(--text-title); border:1px solid var(--border); border-radius:6px; padding:12px; font-size:16px; min-height:46px; }
.planner-form textarea { resize:vertical; min-height:88px; }
.planner-form textarea:focus,.planner-form input:focus,.planner-form select:focus { border-color:var(--primary); outline:2px solid var(--primary-subtle); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.origin-row { display:flex; gap:8px; }
.origin-row input { min-width:0; flex:1; }
.origin-row button { flex:0 0 46px; }
.choice-row { display:flex; flex-wrap:wrap; gap:7px; }
.choice-row button { border:1px solid var(--border); border-radius:6px; background:var(--bg-card); color:var(--text-body); padding:9px 13px; min-height:40px; }
.choice-row button[aria-pressed="true"] { background:var(--primary-subtle); color:var(--primary); border-color:var(--primary); }
.form-check { display:flex!important; align-items:center; gap:8px; }
.form-check input { width:17px; height:17px; min-height:0; accent-color:var(--primary); }
.planner-submit { width:100%; min-height:48px; font-size:16px; }
.route-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:20px 0 10px; }
.route-summary h3 { font-size:23px; color:var(--text-title); }
.route-stats { display:flex; flex-wrap:wrap; gap:10px 20px; padding:14px 0; color:var(--text-body); border-bottom:1px solid var(--border); }
.route-stats strong { color:var(--primary); }
.route-warning { font-size:12px; color:var(--text-muted); margin:10px 0; }
.route-stop { display:grid; grid-template-columns:32px 1fr; gap:12px; position:relative; padding:15px 0; }
.route-stop:not(:last-child):before { content:''; position:absolute; top:45px; bottom:-12px; left:15px; width:2px; background:var(--border); }
.stop-number { width:32px; height:32px; border-radius:50%; display:grid; place-items:center; background:var(--primary-subtle); color:var(--primary); font-weight:750; position:relative; }
.route-stop.is-done .stop-number { background:var(--primary); color:var(--bg-card); }
.stop-body { min-width:0; }
.stop-heading { display:flex; gap:12px; }
.stop-heading img { width:68px; height:72px; object-fit:cover; border-radius:6px; }
.stop-heading > div { min-width:0; flex:1; }
.stop-heading h4 { font-size:17px; line-height:1.4; color:var(--text-title); }
.stop-time { color:var(--primary); font-size:12px; font-weight:700; }
.stop-body p { margin:8px 0; font-size:14px; }
.stop-body details { font-size:14px; padding:8px 0; }
.stop-body summary { cursor:pointer; color:var(--primary); }
.stop-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.stop-actions .btn-sm { min-height:36px; font-size:12px; padding:7px 10px; }
.route-toolbar { display:flex; gap:8px; flex-wrap:wrap; padding:16px 0; }
.route-toolbar > .btn-primary { flex:1; }
.journey-start { width:100%;min-height:50px;margin:14px 0 4px;font-size:16px;animation:journeyInvite 1.8s ease-in-out 2; }
.active-journey { padding:18px 0 24px;animation:journeyEnter .5s cubic-bezier(.2,.8,.2,1) both; }
.active-journey h2 { font-size:28px;line-height:1.18;margin:7px 0;color:var(--text-title); }
.active-journey>p { font-size:15px;line-height:1.55;margin:10px 0; }
.journey-photo { display:block;width:100%;height:clamp(190px,50vw,340px);object-fit:cover;border-radius:8px;margin:16px 0 20px; }
.journey-progress { display:flex;justify-content:space-between;font-size:13px;color:var(--text-muted); }
.journey-progress strong { color:var(--primary); }
.journey-progress-track { height:5px;background:var(--border);margin-top:8px;overflow:hidden; }
.journey-progress-track span { display:block;height:100%;background:linear-gradient(90deg,var(--primary),var(--reward));transition:width .5s ease; }
.journey-arrival { color:var(--primary);font-weight:750; }
.journey-facts { display:flex;flex-wrap:wrap;gap:8px 16px;padding:12px 0;border-block:1px solid var(--border); }
.journey-facts span { display:flex;align-items:center;gap:6px;font-size:13px;font-weight:650; }
.journey-facts svg { width:16px;height:16px;color:var(--primary); }
.journey-actions,.journey-secondary { display:flex;flex-wrap:wrap;gap:8px;margin-top:14px; }
.journey-actions .btn-primary { flex:1;min-width:150px; }
.journey-secondary .btn-sm { font-size:12px; }
.is-active .route-overview { display:none; }
.journey-finished { display:grid;grid-template-columns:54px 1fr auto;align-items:center;gap:16px;padding:20px;border:1px solid var(--primary);background:var(--primary-subtle); }
.journey-finished .finish-copy h2 { font-size:22px;margin:3px 0; }
.journey-finished .finish-copy p { margin:0;color:var(--text-muted);font-size:13px; }
.journey-finished .journey-actions { margin:0;flex-wrap:nowrap; }
.finish-mark { width:54px;height:54px;display:grid;place-items:center;border:2px solid var(--primary);color:var(--primary);animation:finishMark .55s cubic-bezier(.2,1.6,.4,1) both; }
.finish-mark svg { width:28px;height:28px; }
.btn-sm:not(:disabled) { transition:transform .16s ease,background .16s ease,border-color .16s ease; }
.btn-sm:not(:disabled):active { transform:scale(.96); }
@keyframes journeyInvite { 50% { transform:translateY(-2px); } }
@keyframes journeyEnter { from { opacity:0;transform:translateY(16px); } }
@keyframes finishMark { from { opacity:0;transform:scale(.55) rotate(-12deg); } }
.culture-list { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:12px 0; }
.culture-item { display:flex; gap:10px; border:1px solid var(--border); background:var(--bg-card); padding:12px; border-radius:8px; }
.culture-item > div { min-width:0; }
.culture-item img { width:54px; height:80px; object-fit:cover; border-radius:4px; }
.culture-item h4 { font-size:14px; }
.culture-item p { font-size:12px; color:var(--text-muted); margin:5px 0; }
.city-dialog { background:none; border:0; border-radius:0; padding:16px 0; }
.dialog-bubble { border-radius:6px; font-size:14px; }
.dialog-card { opacity:1; }
.dialog-card.is-person .dialog-bubble strong { color:var(--bg-card); }
.route-stop { animation:stopEnter .35s ease both; }
.route-stop:nth-child(2) { animation-delay:.06s; }
.route-stop:nth-child(3) { animation-delay:.12s; }
.route-stop:nth-child(4) { animation-delay:.18s; }
.route-stop:nth-child(n+5) { animation-delay:.24s; }
@keyframes stopEnter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.dialog-card.is-person .dialog-bubble { color:var(--bg-card); }
.map-wrapper { border-radius:0; border:0; height:calc(100dvh - 160px); min-height:440px; box-shadow:none; }
.map-wrapper #map { height:100%; }
body:has(#tab-map.active) .container { max-width:none; padding:0; }
.map-bar-overlay { bottom:18px; left:12px; right:12px; max-width:650px; margin:auto; }
.map-bar-overlay { top:auto; }
.map-step-panel p { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.toast { bottom:calc(90px + env(safe-area-inset-bottom)); }
.map-step-panel { position:absolute; z-index:600; bottom:32px; left:12px; right:12px; max-width:480px; margin:auto; background:var(--bg-card); color:var(--text-title); padding:16px; border:1px solid var(--border); border-radius:8px; box-shadow:0 7px 30px #0002; }
.map-step-panel h3 { font-size:17px; margin:4px 0; }
.map-step-panel p { font-size:13px; color:var(--text-muted); }
.map-step-panel .btn-sm { margin-top:10px; }
.profile-shell { padding:20px 0!important; border:0!important; border-radius:0!important; background:none!important; box-shadow:none!important; }
.profile-identity { display:flex;align-items:center;gap:16px;padding:18px;border:1px solid var(--border);background:var(--bg-card); }
.profile-avatar-wrap { position:relative;flex:0 0 auto; }
.profile-avatar { width:76px;height:76px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:var(--primary);color:white;font-size:28px;font-weight:800;border:3px solid var(--bg-card);outline:2px solid var(--primary); }
.profile-avatar img { width:100%;height:100%;object-fit:cover; }
.profile-photo-action { position:absolute;right:-5px;bottom:-5px;width:30px;height:30px;background:var(--text-title);color:var(--bg-card);border-color:var(--bg-card); }
.profile-photo-action svg { width:15px;height:15px; }
.profile-identity-copy { min-width:0;text-align:left; }
.profile-identity-copy h2 { margin:3px 0;font-size:22px; }
.profile-identity-copy p { margin:0;color:var(--text-muted);font-size:13px; }
.profile-stat-row { display:grid; grid-template-columns:1fr 1fr; text-align:left; gap:12px; }
.profile-stat { padding:14px 16px; border-bottom:1px solid var(--border); }
.profile-stat strong { display:block; font-size:25px; color:var(--text-title); }
.profile-stat span { font-size:12px; color:var(--text-muted); }
.profile-stat:first-child strong { color:var(--reward); }
.profile-overview { display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0; }
.profile-saved,.profile-daily { min-height:70px;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;padding:13px;border:1px solid var(--border);background:var(--bg-card);color:var(--text-body);text-align:left;border-radius:7px; }
.profile-saved>span:first-child,.profile-daily>span:first-child { color:var(--primary); }
.profile-saved svg,.profile-daily svg { width:20px;height:20px; }
.profile-saved strong,.profile-saved small,.profile-daily strong,.profile-daily small { display:block; }
.profile-saved strong,.profile-daily strong { color:var(--text-title);font-size:13px; }
.profile-saved small,.profile-daily small { color:var(--text-muted);font-size:11px;margin-top:3px; }
.profile-collection { padding:16px 0;border-top:1px solid var(--border); }
.profile-section-heading { display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:10px;text-align:left; }
.profile-section-heading h3 { font-size:18px;margin:2px 0; }
.profile-section-heading>span { color:var(--primary);font-size:12px;font-weight:700; }
.guide-answer,.route-secret { display:grid;grid-template-columns:34px 1fr;gap:10px;padding:14px 0;border-bottom:1px solid var(--border); }
.guide-answer>div:first-child,.route-secret>div:first-child { color:var(--primary);padding-top:2px; }
.guide-answer svg,.route-secret svg { width:20px;height:20px; }
.guide-answer p,.route-secret p { margin:4px 0 0;font-size:14px;line-height:1.55;color:var(--text-body); }
.route-secret { border-left:3px solid var(--reward);padding-left:12px;margin:10px 0;background:var(--reward-soft); }
.route-secret strong { color:var(--text-title);font-size:14px; }
.route-secret a { display:inline-block;margin-top:7px;color:var(--primary);font-size:12px;font-weight:700; }
.route-reward { border-top:1px solid var(--border);margin-top:12px;padding:12px 0; }
.route-reward>summary { display:grid;grid-template-columns:42px 1fr;align-items:center;gap:10px;cursor:pointer;list-style:none; }
.route-reward>summary::-webkit-details-marker { display:none; }
.reward-symbol { width:42px;height:42px;display:grid;place-items:center;background:var(--primary-subtle);color:var(--primary);font-size:12px;font-weight:800;border-radius:50%; }
.route-reward summary strong,.route-reward summary small { display:block; }
.route-reward summary strong { color:var(--text-title);font-size:14px; }
.route-reward summary small { color:var(--text-muted);font-size:11px;margin-top:2px; }
.route-reward-body { padding:12px 0 0 52px; }
.route-reward-body p { margin:0 0 10px;color:var(--text-muted);font-size:12px; }
.culture-selected { display:grid;gap:3px;padding:12px 0;border-bottom:1px solid var(--border); }
.culture-selected strong { color:var(--text-title);font-size:14px; }
.culture-selected small { color:var(--text-muted);font-size:12px; }
.arena-profile-intro { margin:4px 0 22px; padding:16px 0; border-block:1px solid var(--border); }
.arena-profile-intro h3 { margin:5px 0 7px; color:var(--text-title); font-size:21px; }
.arena-profile-intro p { max-width:620px; color:var(--text-muted); font-size:14px; line-height:1.55; }
.comfort-toggle { display:flex; align-items:center; gap:12px; margin-top:14px; padding:12px; border:1px solid var(--border); background:var(--bg-card); cursor:pointer; }
.comfort-toggle input { width:20px; height:20px; accent-color:var(--primary); flex:0 0 auto; }
.comfort-toggle span,.comfort-toggle small { display:block; }
.comfort-toggle strong { color:var(--text-title); font-size:14px; }
.comfort-toggle small { margin-top:2px; color:var(--text-muted); font-size:12px; }
.voice-settings { padding:16px 0; border-bottom:1px solid var(--border); }
.voice-settings h3 { color:var(--text-title); margin:4px 0; font-size:18px; }
.voice-settings p { color:var(--text-muted); font-size:12px; margin:0 0 10px; }
.voice-controls { display:flex; gap:8px; align-items:center; }
.voice-controls select { flex:1; min-width:0; min-height:40px; border:1px solid var(--border); border-radius:6px; background:var(--bg-card); color:var(--text-title); padding:8px 10px; }
body.comfort-mode .btn-sm,body.comfort-mode .cat-chip,body.comfort-mode .choice-row button { min-height:48px; font-size:16px; }
body.comfort-mode .place-card-content p,body.comfort-mode .place-description,body.comfort-mode .stop-body p,body.comfort-mode .planner-hero p,body.comfort-mode .arena-profile-intro p { font-size:16px!important; line-height:1.65; }
body.comfort-mode .planner-form label,body.comfort-mode .planner-form legend,body.comfort-mode .route-warning { font-size:15px; }
body.comfort-mode .nav-tab-btn { font-size:12px; }
.souvenir-store { display:flex; flex-wrap:wrap; gap:10px; padding:14px 0; }
.store-item { flex:1; min-width:140px; border:1px solid var(--border); background:var(--bg-card); border-radius:8px; padding:14px; text-align:left; }
.store-item strong { display:block; font-size:15px; margin-bottom:8px; }
.store-item p { font-size:12px; color:var(--text-muted); margin:8px 0; }
.status-strip { font-size:12px; padding:8px 12px; background:var(--accent-soft); color:var(--accent); }
.skeleton-row { height:80px; background:var(--bg-card-subtle); border-radius:6px; margin:12px 0; animation:skeletonPulse 1.3s ease-in-out infinite alternate; }
@keyframes skeletonPulse { to { opacity:.45; } }
@keyframes routeDraw { from { stroke-dashoffset:800; } to { stroke-dashoffset:0; } }
.route-draw { stroke-dasharray:8 9; animation:routeDraw 18s linear infinite; }
.route-step-pin { background:var(--primary); color:var(--bg-card); }
.route-origin-pin { width:46px; border-radius:6px; font-size:10px; }
.cinema-live-heading { display:flex;justify-content:space-between;align-items:center;margin-bottom:22px; }
.cinema-live-heading h2 { font-size:27px; }
.cinema-live-controls { display:grid;gap:14px; }
.cinema-live-controls label { display:block;font-size:13px;font-weight:650; }
.cinema-live-controls select,.cinema-live-controls input[type=search] { display:block;width:100%;margin-top:7px;padding:12px;border:1px solid var(--border);border-radius:6px;background:var(--bg-card);color:var(--text-title);font-size:16px;min-width:0; }
.cinema-live-toggles { display:flex;gap:20px;flex-wrap:wrap; }
.cinema-live-toggles label { display:flex;align-items:center;gap:7px; }
.cinema-live-toggles input { accent-color:var(--primary); }
.live-movie { border-top:1px solid var(--border);padding:22px 0; }
.live-movie-info { display:flex;gap:15px; }
.live-movie-info>div { min-width:0; }
.live-movie-info img { width:94px;height:140px;object-fit:cover;border-radius:6px;flex-shrink:0; }
.live-movie h3 { font-size:19px;line-height:1.3;overflow-wrap:anywhere; }
.live-movie p { font-size:13px;line-height:1.5;margin-top:8px; }
.live-movie-description { display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:var(--text-muted); }
.live-sessions { display:flex;gap:8px;flex-wrap:wrap;margin-top:15px; }
.live-session { display:flex;flex-direction:column;padding:10px 14px;min-width:88px;max-width:100%;border:1px solid var(--border);border-radius:6px;background:var(--bg-card);color:var(--text-title);text-decoration:none; }
.live-session:hover { border-color:var(--primary);background:var(--primary-subtle); }
.live-session span { font-size:20px;font-weight:700; }.live-session small { font-size:11px; }.pushkin-confirmed { color:var(--primary); }
.live-preview { display:flex;gap:12px;text-align:left;width:100%;padding:14px;border:1px solid var(--border);border-radius:8px;background:var(--bg-card);color:var(--text-title);cursor:pointer; }
.live-preview img { width:60px;height:88px;object-fit:cover;border-radius:4px; }.live-preview>span { min-width:0; }.live-preview small { display:block;margin-top:6px;font-size:12px;color:var(--text-muted); }
.demo-label { color:var(--accent);font-weight:700;font-size:12px; }.demo-profile { border-top:1px solid var(--border);padding:24px 0;margin-top:24px; }.demo-profile p { margin:10px 0;font-size:14px; }
.demo-pass-modal { margin:auto;padding:24px;border:1px solid var(--border);border-radius:8px;max-width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;background:var(--bg-card);color:var(--text-title); }
.demo-pass-modal::backdrop { background:#0008; }.demo-pass-modal h2 { font-size:20px;margin:12px 28px 10px 0; }.demo-pass-modal p { font-size:13px;margin:10px 0; }.demo-close { position:absolute;right:8px;top:8px; }.demo-qr { display:block;width:240px;max-width:100%;height:auto;margin:16px auto;image-rendering:pixelated; }.demo-pass-modal svg { width:18px;height:18px; }
@media(max-width:700px) {
    .container { padding:19px 16px; }
    #walks-list-container,.culture-list { grid-template-columns:1fr; }
    .planner-hero { gap:14px; }
    .planner-hero h2 { font-size:25px; }
    .planner-hero .city-photo { width:105px; height:116px; }
    .brand-subtitle { display:none; }
    .brand-titles h1 { font-size:15px; max-width:130px; }
    .header-actions a { display:none; }
    body.city-selected .city-selector-strip { right:62px; top:15px; }
    .app-header { padding:12px 14px; }
    .header-brand { gap:7px; }
    .place-card { gap:11px; padding:12px; }
    .place-preview { flex-basis:92px; width:92px; height:105px; }
    .movie-poster { width:78px; height:116px; flex-basis:78px; }
    .place-card-content strong { font-size:16px!important; }
    .place-photo-thumb { width:98px!important; height:100px!important; }
    .form-grid { gap:10px; }
    .nav-tab-btn { font-size:10px; padding:0; }
    .home-route-band,.home-route-band > div { min-height:300px; }
    .home-route-band > div { padding:20px; }
    .arena-challenge { grid-template-columns:36px 1fr; }
    .arena-challenge-icon { width:36px; height:36px; }
    .arena-challenge > b { grid-column:2; }
    .place-modal-actions { grid-template-columns:1fr; }
    .store-heading { align-items:start; flex-direction:column; gap:4px; }
    .store-heading p { text-align:left; }
    .merch-store { grid-template-columns:1fr; }
    .merch-item { grid-template-columns:42px 1fr; }
    .merch-item > button { grid-column:1/-1; width:100%; }
    .home-quick-links { gap:6px; }
    .home-quick-links button { min-height:60px; grid-template-columns:22px 1fr; gap:7px; padding:9px; }
    .home-quick-links button > svg:last-child,.home-quick-links small { display:none; }
    .event-filter-bar { align-items:stretch; }
    .event-filter-primary { flex:1; display:grid; grid-template-columns:.65fr .9fr 1.25fr; }
    .event-filter { min-width:0; padding:8px 5px; font-size:12px; overflow:hidden; text-overflow:ellipsis; }
    .event-filter-more > summary { height:100%; min-width:46px; justify-content:center; }
    .event-filter-more > summary span { display:none; }
    .event-card .event-footer { align-items:stretch; flex-direction:column; }
    .event-card .action-btns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
    .event-card .action-btns:has(> :only-child) { grid-template-columns:1fr; }
    .event-card .action-btns .btn-sm { width:100%; min-width:0; padding-inline:9px; white-space:normal; }
    .journey-finished { grid-template-columns:46px 1fr;align-items:start;padding:15px; }
    .journey-finished .finish-mark { width:46px;height:46px; }
    .journey-finished .journey-actions { grid-column:1/-1;width:100%; }
    .journey-finished .journey-actions>* { flex:1; }
    .profile-identity { padding:14px; }
    .profile-avatar { width:64px;height:64px; }
    .profile-identity-copy h2 { font-size:19px; }
    .profile-overview { grid-template-columns:1fr; }
    .route-reward-body { padding-left:0; }
}
@media(max-width:370px) {
    .brand-titles h1 { max-width:101px; font-size:14px; }
    .container { padding-left:12px; padding-right:12px; }
    .planner-hero .city-photo { width:86px; }
    .planner-hero h2 { font-size:23px; }
}
@media(prefers-reduced-motion:reduce) { .route-draw,.skeleton-row,.route-stop,.active-journey,.journey-start,.finish-mark { animation:none; } }

/* Hermes product surfaces. */
.avatar-city-frame { outline:4px double #246bce; outline-offset:5px; border-color:#c49336!important; }
#owned-profile-badge { color:var(--primary); font-size:14px; font-weight:650; margin:8px 0; }
#owned-profile-badge svg { width:17px; height:17px; vertical-align:middle; }
.product-stickers { color:var(--accent); background:var(--accent-soft); }
.product-badge { color:var(--reward); background:var(--reward-soft); }
.product-frame { border:3px double var(--primary); }
.wallet-entry { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); font-size:13px; }
.wallet-entry small { display:block; color:var(--text-muted); margin-top:3px; }
.wallet-entry > span { flex-shrink:0; font-weight:650; }
.route-quick-actions { display:flex; flex-shrink:0; gap:4px; }
.route-overview .arena-challenge { grid-template-columns:26px 1fr auto; gap:10px; padding:10px 12px; margin:12px 0; }
.route-overview .arena-challenge-icon { width:26px; height:26px; }
.route-overview .arena-challenge > b { grid-column:auto; font-size:12px; }
.route-overview .arena-challenge small { font-size:11px; }
.route-quick-actions .icon-btn { display:grid; place-items:center; color:var(--primary); width:44px; height:44px; border:1px solid var(--border); border-radius:6px; }
.route-summary h3 { font-size:22px; margin:4px 0 0; }
.route-adjustments { padding:14px 0; border-bottom:1px solid var(--border); }
.route-adjustments > summary { display:flex; align-items:center; gap:9px; min-height:44px; cursor:pointer; color:var(--text-title); font-size:14px; font-weight:650; list-style:none; }
.route-adjustments > summary svg { width:18px; height:18px; flex-shrink:0; }
.route-adjustments > summary svg:last-child { margin-left:auto; transition:transform .18s; }
.route-adjustments[open] > summary svg:last-child { transform:rotate(180deg); }
.route-adjustments > .choice-row,.route-adjustments > button { margin-top:12px; }
.stop-details > summary { list-style:none; cursor:pointer; min-height:60px; align-items:center; }
.stop-details > summary::-webkit-details-marker,.route-adjustments > summary::-webkit-details-marker { display:none; }
.stop-details > summary > svg { width:18px; height:18px; flex-shrink:0; color:var(--text-muted); transition:transform .18s; }
.stop-details[open] > summary > svg { transform:rotate(180deg); }
.stop-details .stop-heading img { width:56px; height:60px; flex-shrink:0; }
.stop-details .stop-heading h4 { font-size:16px; color:var(--text-title); }
.stop-expanded { padding:8px 0 12px; }
.stop-expanded .stop-actions { gap:8px; }
.stop-expanded .btn-sm { min-height:44px; }
.route-stop { align-items:start; border-bottom:1px solid var(--border); }
.route-stop > .stop-number { margin-top:14px; }
.route-stop:not(:last-child):before { top:48px; bottom:-15px; }
.route-canvas.has-map-tiles::after { display:none; }
:root { --primary:#246bce; --primary-hover:#1855a8; --primary-subtle:#eaf1fc; --bg-page:#f5f6f8; --bg-card:#ffffff; --bg-card-subtle:#eef1f5; --border:#dce1e8; --border-hover:#9eabbc; --text-title:#202632; --text-body:#414b59; --text-muted:#667183; --accent:#b84562; --accent-soft:#fbeef2; --reward:#936000; --reward-soft:#fff5d9; }
[data-theme="dark"] { --primary:#9ac4ff; --primary-hover:#c1dcff; --primary-subtle:#253348; --bg-page:#181a1e; --bg-card:#22252a; --bg-card-subtle:#2c3036; --border:#3b414a; --border-hover:#717e8d; --text-title:#f2f4f8; --text-body:#d6dce5; --text-muted:#a6b1c1; --accent:#f4a6ba; --accent-soft:#402c35; --reward:#efcc79; --reward-soft:#3a3324; }
body { -webkit-font-smoothing:antialiased; color:var(--text-body); }
.app-header { border-bottom:1px solid var(--border); }
.brand-logo-icon { box-shadow:none; font-weight:800; }
.brand-titles h1 { font-weight:750; }
.container { padding-top:28px; }
.section-heading,.cinema-live-heading h2 { font-size:24px; line-height:1.3; }
.btn-sm,.cat-chip,.choice-row button,.live-session,.icon-btn { transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.btn-sm,.choice-row button,.cat-chip { min-height:44px; }
.btn-primary { border:1px solid transparent; box-shadow:0 2px 3px #1724200b; }
.btn-secondary { background:var(--bg-card); }
.btn-sm:active,.cat-chip:active,.icon-btn:active,.choice-row button:active { transform:scale(.97); }
input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[role="button"]:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
.categories-scroll { gap:8px; scrollbar-width:thin; }
.cat-chip { border-radius:6px; font-weight:650; }
.cat-chip:not(.active) { background:var(--bg-card); color:var(--text-body); border-color:var(--border); }
.place-card { padding:16px; align-items:flex-start; border-color:var(--border); }
.place-preview { flex-basis:112px; width:112px; height:132px; border-radius:6px; overflow:hidden; }
.place-rating { font-size:14px; }
.place-review-note,.place-map-link { font-size:13px; line-height:1.5; }
.place-card-content { overflow-wrap:anywhere; }
.home-section-title { font-size:21px; }
.home-route-band { background:#313e43; }
.home-route-band h2 { font-size:30px; }
.home-route-band .btn-primary { color:#202632; }
.planner-hero h2 { font-size:28px; }
.planner-form { gap:22px; }
.planner-form label,.planner-form legend { font-size:14px; }
.planner-form input,.planner-form select,.planner-form textarea { border-radius:6px; }
.profile-shell > div:has(#profile-saved-count),.profile-shell > div:has(#daily-quest-text) { background:transparent!important; border:0!important; border-top:1px solid var(--border)!important; border-radius:0!important; padding:20px 0!important; }
.profile-stat-row { gap:0; border-block:1px solid var(--border); margin-top:20px; }
.profile-stat { padding:20px 16px; border:0; }
.profile-stat + .profile-stat { border-left:1px solid var(--border); }
.profile-stat span { font-size:13px; }
.profile-shortcuts { display:flex; gap:8px; flex-wrap:wrap; padding:0 0 20px; border-bottom:1px solid var(--border); margin-bottom:20px; }
.profile-shortcuts a { text-decoration:none; }
#profile-preferences,#profile-history,#profile-shop { scroll-margin-top:100px; }
.voice-settings { padding:22px 0; margin-bottom:24px; }
.voice-settings p,.store-heading p,.merch-copy p,.merch-copy small { font-size:13px; line-height:1.55; }
.voice-controls select { min-height:44px; }
.merch-item { padding:18px 14px; }
.merch-copy strong { font-size:16px; }
.store-heading { margin-top:32px; padding-top:24px; border-top:1px solid var(--border); }
.bottom-nav { padding-top:9px; padding-bottom:calc(9px + env(safe-area-inset-bottom)); }
.nav-tab-btn { min-height:50px; font-weight:650; }
.nav-tab-btn .tab-icon { height:31px; }
.modal-header { border-bottom:1px solid var(--border); }
.modal-close-btn { min-width:44px; min-height:44px; flex-shrink:0; }
#modal-place-title { white-space:normal!important; line-height:1.35; }
.modal-card { max-height:calc(100dvh - 24px); }
.modal-body { overflow-y:auto; overscroll-behavior:contain; }
@media(hover:hover) {
    .btn-secondary:hover,.icon-btn:hover { background:var(--primary-subtle); }
    .place-card:hover,.merch-item:hover,.live-preview:hover { border-color:var(--border-hover); }
}
@media(min-width:701px) {
    .modal-card { border-radius:8px; }
    .profile-shell { text-align:left!important; }
    .profile-shell > div:first-child { margin-left:0!important; }
}
@media(max-width:700px) {
    .container { padding-top:22px; }
    .section-heading,.cinema-live-heading h2 { font-size:22px; }
    .place-card { padding:12px; }
    .place-preview { width:90px; flex-basis:90px; height:116px; }
    .home-route-band h2 { font-size:27px; }
    .planner-hero h2 { font-size:24px; }
    .profile-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
    .profile-shortcuts a { padding:9px 5px; font-size:12px; }
    .voice-controls { flex-wrap:wrap; }
    .voice-controls select { flex-basis:180px; }
}
@media(prefers-reduced-motion:reduce) {
    :not(.launch-screen):not(.launch-screen *),:not(.launch-screen):not(.launch-screen *)::before,:not(.launch-screen):not(.launch-screen *)::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}

/* ==========================================================================
   ГЕРМЕС — визуальная система. Подключается последней и задаёт финальный вид:
   тушь и тёплая бумага, золотая нить как акцент, сургучная печать на секретах.
   Ниже только переопределения: базовая раскладка выше остаётся рабочей.
   ========================================================================== */

:root {
    --ink: #111623;
    --paper: #F5F4F1;
    --paper-deep: #EBE8E2;
    --card: #FFFFFF;
    --card-sunk: #FAF8F5;

    --gold: #9A6C14;
    --gold-bright: #D9A233;
    --gold-soft: #FAF0DA;
    --gold-hair: rgba(154, 108, 20, .24);

    --seal: #A93A2A;
    --seal-soft: #FBEAE6;

    /* Совместимость с базовыми переменными приложения. */
    --primary: #1B3C87;
    --primary-hover: #142D66;
    --primary-subtle: #E9EEFA;
    --bg-page: var(--paper);
    --bg-card: var(--card);
    --bg-card-subtle: var(--card-sunk);
    --border: #E3DFD6;
    --border-hover: #C3BBAB;
    --text-title: var(--ink);
    --text-body: #3B4354;
    --text-muted: #79808F;
    --surface: var(--card-sunk);
    --surface-card: var(--card);
    --accent: var(--seal);
    --accent-soft: var(--seal-soft);
    --reward: var(--gold);
    --reward-soft: var(--gold-soft);

    --radius-card: 14px;
    --radius-soft: 10px;
    --radius-pill: 999px;
    --shadow-card: 0 1px 2px rgba(17, 22, 35, .05), 0 12px 28px -20px rgba(17, 22, 35, .26);
    --shadow-lift: 0 2px 5px rgba(17, 22, 35, .07), 0 26px 52px -26px rgba(17, 22, 35, .34);

    --font-display: "Literata", Georgia, "Times New Roman", serif;
    --font-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

[data-theme="dark"] {
    --ink: #F3F1EC;
    --paper: #0D1017;
    --paper-deep: #070910;
    --card: #161A23;
    --card-sunk: #1E232E;

    --gold: #E3B75A;
    --gold-bright: #F2CE7C;
    --gold-soft: rgba(227, 183, 90, .13);
    --gold-hair: rgba(227, 183, 90, .27);

    --seal: #E2705F;
    --seal-soft: rgba(226, 112, 95, .14);

    --primary: #A8C0F5;
    --primary-hover: #C6D6FA;
    --primary-subtle: rgba(168, 192, 245, .13);
    --border: #2A3140;
    --border-hover: #404A5D;
    --text-title: var(--ink);
    --text-body: #C7CCD7;
    --text-muted: #8A929F;
    --reward: var(--gold);
    --reward-soft: var(--gold-soft);

    --shadow-card: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -26px rgba(0, 0, 0, .85);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, .55), 0 30px 58px -28px rgba(0, 0, 0, .9);
}

/* ------------------------------------------------------------- Типографика */

*, button, input, select, textarea { font-family: var(--font-ui); }

body {
    background: var(--paper);
    background-image:
        radial-gradient(circle at 10% -6%, var(--gold-soft) 0%, transparent 44%),
        radial-gradient(circle at 96% 4%, var(--primary-subtle) 0%, transparent 38%);
    background-attachment: fixed;
    color: var(--text-body);
    line-height: 1.56;
}

h1, h2, h3, h4,
.brand-titles h1, .section-heading, .planner-hero h2, .route-summary h3,
.home-section-title, .movie-title, .place-title, .event-title, .stop-heading h4,
.modal-header, .cinema-live-heading h2, .store-heading h3,
.profile-identity-copy h2, .profile-section-heading h3, .arena-profile-intro h3,
.voice-settings h3, .secret-vault-head h3, .journey-progress + * h2, .active-journey h2 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.018em;
    line-height: 1.22;
    color: var(--text-title);
}

.eyebrow, .demo-label, .place-preview-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}

.profile-stat strong, .arena-hero-stats strong, .route-stats strong, .price-label {
    font-family: var(--font-display);
    font-weight: 700;
}

::selection { background: var(--gold-soft); color: var(--ink); }

/* ------------------------------------------------------- Шапка и заставка */

.app-header {
    background: color-mix(in srgb, var(--paper) 97%, transparent);
    backdrop-filter: saturate(1.05) blur(20px);
    -webkit-backdrop-filter: saturate(1.05) blur(20px);
    border-bottom: 1px solid var(--border);
}
.brand-logo-icon {
    border-radius: 11px;
    background: var(--ink);
    color: var(--gold-bright);
    border: 1px solid var(--gold-hair);
    font-family: var(--font-display);
    font-size: 21px;
    box-shadow: 0 8px 20px -14px rgba(17, 22, 35, .8);
}
[data-theme="dark"] .brand-logo-icon { background: #090C12; }
.brand-titles h1 { font-size: 19px; }
.city-pill-btn { border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--card); }
.city-pill-chevron { color: var(--gold); font-weight: 700; }
.gps-quick-btn { border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--card); }
body.city-selected .city-pill-btn { border: 1px solid var(--gold-hair); background: var(--gold-soft); }

/* ------------------------------------------------------------ Кнопки, чипы */

.btn-sm, .cat-chip, .choice-row button, .event-filter-more > summary {
    border-radius: var(--radius-pill);
    font-weight: 600;
}
.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    box-shadow: 0 10px 22px -16px rgba(17, 22, 35, .9);
}
.btn-primary:hover { background: #000; }
[data-theme="dark"] .btn-primary { background: var(--gold); color: #0D1017; border-color: var(--gold); }
[data-theme="dark"] .btn-primary:hover { background: var(--gold-bright); }
.btn-secondary { background: var(--card); border: 1px solid var(--border); color: var(--text-body); }
.btn-secondary:hover { border-color: var(--gold-hair); background: var(--gold-soft); color: var(--ink); }
.cat-chip.active, .choice-row button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
[data-theme="dark"] .cat-chip.active,
[data-theme="dark"] .choice-row button[aria-pressed="true"] { background: var(--gold); color: #0D1017; border-color: var(--gold); }
.event-filter-primary { border-radius: var(--radius-pill); padding: 4px; background: var(--card-sunk); border: 1px solid var(--border); }
.event-filter { border-radius: var(--radius-pill); }
.event-filter.active { background: var(--ink); color: var(--paper); box-shadow: none; }
[data-theme="dark"] .event-filter.active { background: var(--gold); color: #0D1017; }
.icon-btn { border-radius: 10px; }
.badge, .rating-pill, .product-badge, .product-stickers, .transit-highlight-badge, .gemini-live-badge {
    border-radius: var(--radius-pill);
    font-weight: 700;
    letter-spacing: .05em;
}

/* --------------------------------------------------------- Карточки, сетки */

.section-heading { position: relative; padding-top: 17px; }
.section-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--gold-bright);
}
.event-card, .movie-card, .place-card, .transit-card, .live-preview, .merch-item, .store-item, .culture-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s;
}
.event-card:hover, .movie-card:hover, .place-card:hover, .merch-item:hover, .live-preview:hover {
    border-color: var(--gold-hair);
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}
.home-quick-links button {
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-card);
}
.home-quick-links button > svg:first-child { color: var(--gold); }
.home-quick-links strong { font-family: var(--font-display); font-weight: 700; }

.home-route-band {
    border-radius: var(--radius-card);
    background: var(--ink);
    box-shadow: var(--shadow-lift);
}
.home-route-band::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 9px;
    pointer-events: none;
    z-index: 1;
}
.home-route-band > div { background: linear-gradient(0deg, rgba(8, 11, 18, .9) 0%, rgba(8, 11, 18, .45) 54%, rgba(8, 11, 18, .12) 100%); }
.home-route-band h2 { font-family: var(--font-display); color: #FFF; }
.home-route-band .eyebrow { color: var(--gold-bright); }
.home-route-band .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.arena-track { border-radius: var(--radius-pill); border-color: rgba(255, 255, 255, .42); background: rgba(10, 14, 22, .6); letter-spacing: .08em; text-transform: uppercase; font-size: 10px; }
.arena-ghost-btn { background: rgba(10, 14, 22, .55); border-color: rgba(255, 255, 255, .45); }
.arena-hero-stats { border-top: 1px solid rgba(255, 255, 255, .28); }
.arena-hero-stats strong { color: var(--gold-bright); font-size: 17px; }

/* ------------------------------------------------------- Маршрут: хроника */

.planner-form input, .planner-form select, .planner-form textarea { border-radius: var(--radius-soft); }
.planner-form input:focus, .planner-form select:focus, .planner-form textarea:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px var(--gold-soft);
}
.route-overview { padding-top: 4px; }
.route-stats { border-block: 1px solid var(--border); }
.route-stats strong { color: var(--ink); }
.stop-number {
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--gold-hair);
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 700;
}
.route-stop.is-done .stop-number { background: var(--ink); border-color: var(--ink); color: var(--gold-bright); }
.route-stop:not(:last-child)::before { border-left: 1px dashed var(--gold-hair); background: none !important; width: 0; }
.stop-time { color: var(--gold); text-transform: uppercase; letter-spacing: .05em; font-size: 11px; font-weight: 700; }
.stop-heading img { border-radius: var(--radius-soft); border: 1px solid var(--border); }
.active-journey {
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold-bright);
    background: var(--card);
    box-shadow: var(--shadow-lift);
}
.journey-progress-track { border-radius: var(--radius-pill); overflow: hidden; }
.journey-progress-track > span { background: var(--gold-bright); }
.finish-mark { background: var(--ink); color: var(--gold-bright); border-radius: 50%; }
.arena-challenge { border-radius: var(--radius-card); border: 1px solid var(--gold-hair); background: var(--gold-soft); }
.arena-challenge-icon { color: var(--gold); }
.arena-challenge b { font-family: var(--font-display); color: var(--gold); }
.route-adjustments > summary { border-radius: var(--radius-soft); }
.route-quick-actions .icon-btn { border-radius: var(--radius-pill); border-color: var(--border); color: var(--ink); }

/* ------------------------------------------------------------- Ответ гида */

.guide-answer {
    margin: 18px 0;
    padding: 18px 18px 16px;
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold-bright);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}
.guide-answer-head { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.guide-sigil {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--ink);
    color: var(--gold-bright);
}
[data-theme="dark"] .guide-sigil { background: #090C12; }
.guide-sigil svg { width: 19px; height: 19px; }
.guide-answer-who { min-width: 0; display: block; }
.guide-answer-who strong { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.guide-answer-who small { display: block; font-size: 11px; color: var(--text-muted); }
.guide-answer-state {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
    background: var(--primary-subtle);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.guide-answer-state.is-offline { border-color: var(--gold-hair); background: var(--gold-soft); color: var(--gold); }
.guide-answer-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.guide-answer-body p {
    position: relative;
    margin: 0 0 9px;
    padding-left: 15px;
    font-size: 14.5px;
    line-height: 1.68;
    color: var(--text-body);
    animation: guideLineIn .4s var(--ease-out) both;
}
.guide-answer-body p:last-child { margin-bottom: 0; }
.guide-answer-body p::before {
    content: '';
    position: absolute;
    left: 0;
    top: .68em;
    width: 7px;
    height: 1px;
    background: var(--gold-bright);
}
.guide-answer-body p:nth-child(2) { animation-delay: .06s; }
.guide-answer-body p:nth-child(3) { animation-delay: .12s; }
.guide-answer-body p:nth-child(4) { animation-delay: .18s; }
.guide-answer-body p:nth-child(5) { animation-delay: .24s; }
.guide-answer-body p:nth-child(6) { animation-delay: .3s; }
@keyframes guideLineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------- Секрет прогулки */

.secret-vault { margin: 22px 0 8px; }
.secret-vault-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}
.secret-vault-head h3 { font-size: 22px; margin: 3px 0 0; }
.secret-vault-score {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
}
.secret-list { display: grid; gap: 11px; }

.secret-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: start;
    width: 100%;
    padding: 16px;
    text-align: left;
    border: 1px dashed var(--gold-hair);
    border-radius: var(--radius-card);
    background: var(--card);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.secret-card:hover { border-color: var(--seal); box-shadow: var(--shadow-card); }
.secret-card.is-open {
    border-style: solid;
    border-color: var(--gold-hair);
    background: linear-gradient(180deg, var(--gold-soft) 0%, var(--card) 46%);
    cursor: default;
    opacity: 1;
}
.secret-card.is-open:hover { transform: none; box-shadow: none; }
.secret-card:disabled { cursor: default; }

.secret-seal {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    background: var(--seal);
    color: #FFF2EE;
    box-shadow: inset 0 -2px 6px rgba(0, 0, 0, .3), 0 7px 16px -9px rgba(169, 58, 42, .95);
}
.secret-seal::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px dashed rgba(255, 255, 255, .5);
    border-radius: 50%;
}
.secret-seal svg { width: 20px; height: 20px; }
.secret-card.is-open .secret-seal { background: var(--ink); color: var(--gold-bright); box-shadow: none; }
[data-theme="dark"] .secret-card.is-open .secret-seal { background: #090C12; }

.secret-body { display: block; min-width: 0; }
.secret-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
.secret-kind {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--seal);
}
.secret-card.is-open .secret-kind { color: var(--gold); }
.secret-where { font-size: 11.5px; color: var(--text-muted); }
.secret-title {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.32;
    color: var(--ink);
}
.secret-text { display: block; margin-top: 7px; font-size: 14px; line-height: 1.65; color: var(--text-body); }
.secret-text a { color: var(--gold); font-weight: 600; }
.secret-card:not(.is-open) .secret-title { filter: blur(5px); user-select: none; }
.secret-card:not(.is-open) .secret-text { display: none; }
.secret-hint, .secret-reward {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 650;
}
.secret-hint { color: var(--seal); }
.secret-reward { color: var(--gold); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.secret-hint svg, .secret-reward svg { width: 14px; height: 14px; }
.secret-card.is-open .secret-hint { display: none; }
.secret-card:not(.is-open) .secret-reward { display: none; }
.secret-card.just-opened { animation: sealBreak .5s var(--ease-spring) both; }
@keyframes sealBreak {
    0% { transform: scale(.985); }
    45% { transform: scale(1.014); }
    100% { transform: scale(1); }
}

/* Полка секретов в профиле */
.secret-shelf { display: grid; gap: 10px; }
.secret-note {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--card);
    box-shadow: var(--shadow-card);
}
.secret-note-seal {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gold-soft);
    border: 1px solid var(--gold-hair);
    color: var(--gold);
}
.secret-note-seal svg { width: 17px; height: 17px; }
.secret-note strong { display: block; font-family: var(--font-display); font-size: 16px; color: var(--ink); margin-top: 2px; }
.secret-note p { font-size: 13.5px; line-height: 1.6; color: var(--text-body); margin: 6px 0 0; }
.secret-note small { display: block; margin-top: 7px; font-size: 11.5px; color: var(--text-muted); }
.secret-empty {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px dashed var(--border-hover);
    border-radius: var(--radius-card);
    background: var(--card-sunk);
    color: var(--text-muted);
}
.secret-empty svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold); }
.secret-empty strong { display: block; font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.secret-empty small { font-size: 12.5px; }

/* ------------------------------------------------------------------ Профиль */

.profile-shell { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; text-align: left !important; }

.profile-crest {
    position: relative;
    overflow: hidden;
    padding: 24px 22px 0;
    border-radius: var(--radius-card);
    background: var(--ink);
    color: #FFF;
    box-shadow: var(--shadow-lift);
}
[data-theme="dark"] .profile-crest { background: #090C12; border: 1px solid var(--border); }
.profile-crest::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    right: -100px;
    top: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 162, 51, .32), transparent 68%);
}
.profile-crest::after {
    content: '';
    position: absolute;
    inset: 11px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 9px;
    pointer-events: none;
}
.profile-crest-body { position: relative; display: flex; align-items: center; gap: 17px; }
.profile-crest .profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-crest .profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(217, 162, 51, .55);
    color: var(--gold-bright);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
}
.profile-crest .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-crest .profile-photo-action {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 32px;
    height: 32px;
    min-height: 0;
    border-radius: 50%;
    background: var(--gold-bright);
    color: #131720;
    border: 2px solid var(--ink);
}
.profile-crest .profile-photo-action svg { width: 15px; height: 15px; }
.profile-identity-copy { min-width: 0; }
.profile-identity-copy .eyebrow { color: var(--gold-bright); }
.profile-identity-copy h2 { font-size: 24px; line-height: 1.16; margin: 5px 0 6px; color: #FFF; }
.profile-identity-copy p { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .72); margin: 0; }
#owned-profile-badge { color: var(--gold-bright); }

.profile-crest .profile-stat-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 22px -22px 0;
    border: 0;
    background: rgba(255, 255, 255, .14);
}
.profile-crest .profile-stat {
    padding: 15px 14px calc(15px + 11px);
    border: 0 !important;
    background: rgba(255, 255, 255, .05);
    text-align: left;
}
.profile-crest .profile-stat strong {
    display: block;
    font-size: 25px;
    line-height: 1.1;
    color: #FFF;
}
.profile-crest .profile-stat span {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
}

.profile-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 18px 0 0;
    border: 0;
    margin: 0;
}
.profile-shortcuts a { text-align: center; padding-inline: 6px; font-size: 12.5px; }

.profile-overview { display: grid; gap: 11px; margin-top: 18px; }
.profile-saved, .profile-daily {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--card);
    box-shadow: var(--shadow-card);
    text-align: left;
    color: var(--text-body);
}
.profile-saved { cursor: pointer; }
.profile-saved:hover { border-color: var(--gold-hair); }
.profile-saved > span:first-child, .profile-daily > span:first-child {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--gold-soft);
    border: 1px solid var(--gold-hair);
    color: var(--gold);
}
.profile-saved svg, .profile-daily svg { width: 19px; height: 19px; }
.profile-saved > span:nth-child(2), .profile-daily > div { min-width: 0; flex: 1; }
.profile-saved strong, .profile-daily strong {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
}
.profile-saved small, .profile-daily small { display: block; font-size: 12.5px; color: var(--text-muted); }
.profile-daily small { margin-bottom: 3px; letter-spacing: .08em; text-transform: uppercase; font-size: 10px; font-weight: 700; color: var(--gold); }
.profile-saved > svg:last-child { flex-shrink: 0; color: var(--text-muted); }

.profile-block { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); position: relative; }
.profile-block::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold-bright);
}
.profile-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.profile-section-heading h3 { font-size: 21px; margin: 3px 0 0; }
.profile-section-heading > span { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--gold); }
.profile-block-copy { font-size: 13px; line-height: 1.55; color: var(--text-muted); margin: 0 0 14px; }
.profile-block > .eyebrow { display: block; margin-bottom: 4px; }
.profile-block > h3 { font-size: 21px; margin: 0 0 6px; }

.comfort-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--card);
    cursor: pointer;
}
.comfort-toggle input { width: 20px; height: 20px; accent-color: var(--gold); }
.comfort-toggle strong { display: block; font-size: 15px; color: var(--ink); }
.comfort-toggle small { display: block; font-size: 12.5px; color: var(--text-muted); }

.store-heading { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.store-heading h3 { font-size: 21px; }
.merch-store { display: grid; gap: 11px; }
.merch-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--gold-soft);
    border: 1px solid var(--gold-hair);
    color: var(--gold);
}
.merch-copy strong { font-family: var(--font-display); }
.merch-item.is-owned { border-color: var(--gold-hair); background: linear-gradient(180deg, var(--gold-soft), var(--card) 52%); }
.digital-store { margin-top: 14px; }
.digital-store > summary { cursor: pointer; font-weight: 650; color: var(--gold); padding: 12px 0; }
.souvenir-store { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.store-item strong { font-family: var(--font-display); font-size: 16px; }
.wallet-entry { font-size: 13px; }
.profile-collection #profile-souvenir-list { display: grid; gap: 10px; }

/* ------------------------------------------------- Навигация, окна, тосты */

.bottom-nav {
    background: color-mix(in srgb, var(--paper) 97%, transparent);
    backdrop-filter: saturate(1.05) blur(20px);
    -webkit-backdrop-filter: saturate(1.05) blur(20px);
    border-top: 1px solid var(--border);
}
.nav-tab-btn .tab-icon { border-radius: var(--radius-pill); width: 46px; }
.nav-tab-btn.active .tab-icon { background: var(--ink); color: var(--gold-bright); }
[data-theme="dark"] .nav-tab-btn.active .tab-icon { background: var(--gold); color: #0D1017; }
.nav-tab-btn.active { color: var(--ink); font-weight: 700; }

.modal-card { border-radius: 18px 18px 0 0; background: var(--paper); }
.modal-header { font-family: var(--font-display); font-size: 20px; }
.toast {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-pill);
    font-weight: 600;
    box-shadow: var(--shadow-lift);
}
[data-theme="dark"] .toast { background: var(--gold); color: #0D1017; }
.status-strip { background: var(--seal-soft); color: var(--seal); font-weight: 600; text-align: center; }
.map-step-panel {
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold-bright);
    box-shadow: var(--shadow-lift);
}
.active-route-box { border-radius: var(--radius-card); box-shadow: var(--shadow-lift); }
.skeleton-row {
    border-radius: var(--radius-card);
    background: linear-gradient(90deg, var(--card-sunk) 0%, var(--gold-soft) 50%, var(--card-sunk) 100%);
    background-size: 220% 100%;
    animation: goldSheen 1.6s linear infinite;
}
@keyframes goldSheen { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.souvenir-card { border-radius: var(--radius-card); box-shadow: var(--shadow-lift); }
.demo-pass-modal { border-radius: var(--radius-card); }

/* -------------------------------------------------------------- Адаптивность */

@media (max-width: 700px) {
    .profile-crest { padding: 20px 17px 0; }
    .profile-crest .profile-avatar { width: 66px; height: 66px; font-size: 26px; }
    .profile-identity-copy h2 { font-size: 21px; }
    .profile-crest .profile-stat-row { margin-inline: -17px; }
    .profile-crest .profile-stat { padding: 13px 11px calc(13px + 11px); }
    .profile-crest .profile-stat strong { font-size: 21px; }
    .profile-crest .profile-stat span { font-size: 9px; }
    .profile-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .souvenir-store { grid-template-columns: 1fr; }
    .secret-vault-head h3 { font-size: 20px; }
    .guide-answer { padding: 16px; }
}

@media (max-width: 380px) {
    .profile-crest .profile-stat-row { grid-template-columns: 1fr 1fr; }
    .profile-crest .profile-stat-row > .profile-stat:last-child { grid-column: 1 / -1; }
    .secret-card { grid-template-columns: 38px 1fr; gap: 11px; padding: 14px; }
    .secret-seal { width: 38px; height: 38px; }
    .secret-seal svg { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .guide-answer-body p, .secret-card.just-opened, .skeleton-row { animation: none; }
}

/* Полоса города: текст в одну строку и воздух перед кнопкой «Изменить». */
.city-pill-btn { gap: 12px; padding: 9px 15px; }
.city-pill-left { flex-wrap: nowrap; white-space: nowrap; min-width: 0; gap: 7px; }
.city-pill-left > span:nth-child(2) { color: var(--text-muted); }
.city-pill-left strong { overflow: hidden; text-overflow: ellipsis; }
.city-pill-chevron { flex-shrink: 0; white-space: nowrap; }
/* Заголовок раздела: иконка держится у названия, бейдж переносится последним.
   Обрезать сам заголовок нельзя — название города должно читаться целиком. */
.home-section-title { align-items: center; row-gap: 4px; }
.home-section-title > span:first-child { flex-shrink: 0; }
.home-section-title > span:nth-child(2) { min-width: 0; }

/* Герб профиля: три показателя держатся в строку до самых узких экранов,
   заголовок ранга не съезжает на аватар. */
@media (max-width: 380px) {
    .profile-crest .profile-stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .profile-crest .profile-stat-row > .profile-stat:last-child { grid-column: auto; }
    .profile-crest .profile-stat strong { font-size: 19px; }
    .profile-crest .profile-stat span { font-size: 8.5px; letter-spacing: .05em; }
    .profile-crest .profile-stat { padding: 12px 9px calc(12px + 11px); }
    .profile-crest-body { gap: 13px; }
    .profile-crest .profile-avatar { width: 58px; height: 58px; font-size: 23px; }
    .profile-identity-copy h2 { font-size: 19px; }
    .profile-identity-copy p { font-size: 12px; }
}
/* Кнопка геолокации не переносит подпись. */
.gps-quick-btn { white-space: nowrap; flex-shrink: 0; }

/* Содержимое герба рисуется поверх декоративной внутренней рамки,
   иначе рамка перечёркивает аватар. */
.profile-crest-body, .profile-crest .profile-stat-row { z-index: 1; }
.profile-crest::after { z-index: 0; }
.profile-crest .profile-stat span { white-space: nowrap; }

/* Герб профиля: крылья Гермеса водяным знаком и полоса ранга. */
.profile-crest-wings {
    position: absolute;
    right: -26px;
    top: 6px;
    width: 250px;
    height: 138px;
    opacity: .09;
    pointer-events: none;
    z-index: 0;
}
.profile-crest-wings path { fill: #D9A233; }

.profile-rank { position: relative; z-index: 1; margin-top: 18px; }
.profile-rank-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .13);
    overflow: hidden;
}
.profile-rank-track > span {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #A9782A, #F2CE7C);
    transition: width .5s var(--ease-out);
}
.profile-rank-legend {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    font-size: 10.5px;
    letter-spacing: .07em;
    text-transform: uppercase;
    font-weight: 700;
}
.profile-rank-legend > span:first-child { color: var(--gold-bright); }
.profile-rank-legend > span:last-child { color: rgba(255, 255, 255, .5); text-align: right; }
#profile-rank-hint { max-width: 40ch; }

/* На широком экране герб не растягивается в пустую полосу. */
@media (min-width: 760px) {
    .profile-crest { max-width: 680px; }
    .profile-shell, .profile-shortcuts, .profile-overview { max-width: 680px; }
}

/* Состояния оценки: ожидание не должно выглядеть как отказ. */
.place-rating.is-loading { color: var(--text-muted); font-weight: 500; }
.place-rating.is-missing { color: var(--text-muted); font-weight: 500; font-size: 12.5px; }

/* Карта занимает ровно пространство до нижнего меню. Точную высоту задаёт
   fitMapToViewport после открытия вкладки и при изменении viewport. */
body:has(#tab-map.active) {
    overflow: hidden;
    padding-bottom: 0;
}
body:has(#tab-map.active) .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}
#tab-map,
#tab-map .map-wrapper,
#tab-map #map {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
#tab-map .map-wrapper {
    height: calc(100dvh - 160px);
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}
.bottom-nav {
    width: auto;
    max-width: 100vw;
}

/* Новый профиль: паспорт исследователя, отдельный прогресс и лёгкие метрики. */
.profile-shell,
.profile-shortcuts,
.profile-overview {
    width: min(100%, 720px);
    max-width: 720px;
    margin-inline: auto;
}
.profile-crest {
    padding: 20px;
    border: 1px solid rgba(215, 182, 109, .28);
    border-radius: 24px;
    background:
        radial-gradient(circle at 94% 0%, rgba(215, 182, 109, .18), transparent 38%),
        linear-gradient(145deg, #111722 0%, #0B0F16 72%);
    box-shadow: 0 18px 48px rgba(2, 5, 12, .24);
}
[data-theme="dark"] .profile-crest {
    background:
        radial-gradient(circle at 94% 0%, rgba(215, 182, 109, .17), transparent 38%),
        linear-gradient(145deg, #111722 0%, #080B10 72%);
    border-color: rgba(215, 182, 109, .26);
}
.profile-crest::before {
    width: 300px;
    height: 300px;
    right: -150px;
    top: -170px;
    opacity: .7;
}
.profile-crest::after { display: none; }
.profile-passline {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .58);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.profile-passline > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.profile-passline svg { width: 15px; height: 15px; color: var(--gold-bright); }
.profile-crest-body { gap: 16px; align-items: center; }
.profile-crest .profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 21px;
    background: linear-gradient(145deg, rgba(215, 182, 109, .16), rgba(255,255,255,.04));
    border: 1px solid rgba(242, 206, 124, .54);
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.025);
}
.profile-crest .profile-photo-action { right: -6px; bottom: -6px; border-color: #0B0F16; }
.profile-identity-copy .eyebrow { font-size: 10px; letter-spacing: .09em; }
.profile-identity-copy h2 { margin: 4px 0 5px; font-size: clamp(23px, 4vw, 29px); }
.profile-identity-copy p { max-width: 47ch; color: rgba(255,255,255,.65); }
.profile-rank {
    margin-top: 20px;
    padding: 13px 14px 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.04);
}
.profile-rank-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.profile-rank-caption span { color: rgba(255,255,255,.58); font-size: 11px; }
.profile-rank-caption strong { color: rgba(255,255,255,.84); font-size: 11px; }
.profile-rank-track { height: 6px; background: rgba(255,255,255,.09); }
.profile-rank-legend { margin-top: 9px; letter-spacing: .035em; }
.profile-crest .profile-stat-row {
    gap: 8px;
    margin: 12px 0 0;
    background: transparent;
}
.profile-crest .profile-stat {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 14px;
    background: rgba(255,255,255,.045);
}
.profile-stat-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid !important;
    place-items: center;
    margin: 0 !important;
    border-radius: 10px;
    background: rgba(215, 182, 109, .12);
    color: var(--gold-bright) !important;
}
.profile-stat-icon svg { width: 16px; height: 16px; }
.profile-crest .profile-stat > div { min-width: 0; }
.profile-crest .profile-stat strong { font-size: 21px; }
.profile-crest .profile-stat span:not(.profile-stat-icon) { margin-top: 2px; font-size: 9px; }
.profile-shortcuts { gap: 8px; padding-top: 12px; }
.profile-shortcuts a {
    min-width: 0;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: color-mix(in srgb, var(--card) 92%, transparent);
    color: var(--text-body);
    text-decoration: none;
    box-shadow: var(--shadow-card);
}
.profile-shortcuts a:hover { border-color: var(--gold-hair); color: var(--gold); }
.profile-shortcuts a > span { display: grid; place-items: center; color: var(--gold); }
.profile-shortcuts svg { width: 17px; height: 17px; }
.profile-shortcuts strong { min-width: 0; font-size: 12px; font-weight: 650; }
.profile-crest-wings { width: 230px; right: -50px; top: 30px; opacity: .055; }

@media (max-width: 560px) {
    .profile-crest { padding: 17px; border-radius: 20px; }
    .profile-passline { margin-bottom: 17px; }
    .profile-crest .profile-avatar { width: 64px; height: 64px; border-radius: 18px; }
    .profile-crest .profile-stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-inline: 0; }
    .profile-crest .profile-stat { flex-direction: column; align-items: flex-start; gap: 7px; padding: 10px; }
    .profile-stat-icon { width: 27px; height: 27px; border-radius: 8px; }
    .profile-crest .profile-stat strong { font-size: 19px; }
    .profile-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .profile-shortcuts a { flex-direction: column; gap: 5px; padding-inline: 5px; }
    .profile-shortcuts strong { font-size: 10.5px; }
}

@media (max-width: 360px) {
    .profile-passline > span:first-child { max-width: 170px; }
    .profile-crest-body { gap: 12px; }
    .profile-crest .profile-avatar { width: 58px; height: 58px; }
    .profile-identity-copy p { font-size: 11.5px; }
    .profile-crest .profile-stat { padding: 9px 7px; }
}

#profile-history {
    width: min(100%, 720px);
    margin-inline: auto;
}
.route-history-list { display: grid; gap: 10px; }
.route-history-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow-card);
}
.route-history-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--gold-soft);
    color: var(--gold);
}
.route-history-icon svg { width: 20px; height: 20px; }
.route-history-copy { min-width: 0; }
.route-history-topline { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.route-history-topline > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 11px; }
.route-history-copy > strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.route-history-copy > small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 11px; }
.route-history-status {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--card-sunk);
    color: var(--text-muted);
    font-size: 9px;
    line-height: 1.25;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.route-history-status.is-progress { background: var(--gold-soft); color: var(--gold); }
.route-history-status.is-complete { background: var(--primary-subtle); color: var(--primary); }
.route-history-actions { min-width: 112px; display: grid; justify-items: stretch; gap: 4px; }
.route-history-actions .btn-sm { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.route-history-restart {
    min-height: 28px;
    padding: 3px 8px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 10px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.route-history-restart:hover { color: var(--gold); }
.route-history-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px;
    border: 1px dashed var(--border-hover);
    border-radius: 16px;
    color: var(--text-muted);
}
.route-history-empty > svg { width: 24px; height: 24px; color: var(--gold); }
.route-history-empty strong, .route-history-empty small { display: block; }
.route-history-empty strong { color: var(--ink); font-size: 14px; }
.route-history-empty small { margin-top: 2px; font-size: 11px; }

@media (max-width: 560px) {
    .route-history-card { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 12px; }
    .route-history-icon { width: 38px; height: 38px; border-radius: 11px; }
    .route-history-actions { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; }
    .route-history-actions:has(.route-history-restart) .btn-sm { min-width: 0; }
    .route-history-restart { padding-inline: 10px; }
}

/* Подпись собственной позиции на карте. */
.map-here { font-size: 13px; font-weight: 700; color: var(--ink); }

/* Легенда ранга: слева имя, справа компактный счёт — обе части в одну строку. */
.profile-rank-legend { align-items: baseline; }
.profile-rank-legend > span:last-child {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--gold-bright);
    white-space: nowrap;
}

/* ---------------------------------------------------------------- Карта */
/* Светлые тайлы OSM в тёмной теме выбивались из оформления: приглушаем их
   фильтром и оставляем читаемыми подписи. */
[data-theme="dark"] .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.6);
}
[data-theme="dark"] .leaflet-container { background: #0D1017; }
.leaflet-control-zoom a {
    border-radius: 9px !important;
    border: 1px solid var(--border) !important;
    background: var(--card) !important;
    color: var(--ink) !important;
    font-weight: 600;
}
.leaflet-control-zoom a:hover { background: var(--gold-soft) !important; }
.leaflet-control-attribution {
    background: color-mix(in srgb, var(--paper) 88%, transparent) !important;
    color: var(--text-muted) !important;
    font-size: 10px;
    border-radius: 6px 0 0 0;
}
.leaflet-control-attribution a { color: var(--gold) !important; }
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-card);
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lift);
}
.leaflet-popup-tip { background: var(--card); border: 1px solid var(--border); }

/* Кнопка «моя геопозиция» в фирменном виде. */
.map-wrapper > button[onclick*="locateUser"] {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    color: var(--ink) !important;
    box-shadow: var(--shadow-lift) !important;
    border-radius: 50% !important;
}
.map-wrapper > button[onclick*="locateUser"]:hover { border-color: var(--gold) !important; }

/* Метки на карте в фирменных цветах: чернильный кружок с золотым содержимым. */
.cinema-map-pin, .route-step-pin {
    background: #11151D;
    color: var(--gold-bright);
    border: 2px solid var(--gold-bright);
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .9);
    font-family: var(--font-display);
    font-weight: 700;
}
.route-step-pin { background: var(--gold-bright); color: #11151D; border-color: #11151D; }
.route-origin-pin { border-color: var(--gold-bright) !important; }
img.leaflet-marker-icon { filter: hue-rotate(186deg) saturate(1.45) brightness(1.06); }
img.leaflet-marker-shadow { opacity: .35; }
.brand-titles h1 { font-family:"Literata",Georgia,serif; font-weight:600; letter-spacing:-.02em; color:#686c73; text-shadow:0 0 15px #9a9ca333; }
[data-theme="dark"] .brand-titles h1 { color:#dadbd8; text-shadow:0 0 18px #dadbd833; }
.theater-empty,.gift-reveal { padding:32px 22px; border:1px solid var(--border); border-radius:18px; background:var(--surface-card); text-align:center; }
.theater-empty h2,.gift-reveal h2 { margin:14px 0; font:600 27px "Literata",Georgia,serif; }
.theater-empty p,.gift-reveal p { max-width:400px; margin:0 auto 22px; line-height:1.65; color:var(--text-muted); }
.theater-empty>div:last-child { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.theater-empty-mask { width:76px; height:76px; display:grid; place-content:center; margin:0 auto 20px; font:32px Georgia,serif; border:1px solid #ba9f6550; border-radius:50%; color:#b59a67; transform:rotate(-12deg); }
.secret-share { margin:-2px 0 14px; width:100%; justify-content:center; }
.gift-reveal { margin:12px 0 24px; border-color:#ba9f6580; }
.place-preview-label { display: none !important; }
#walks-list-container { align-items: start; }
.place-card { align-self: start; height: auto; min-height: 0; }
.place-card .place-preview { align-self: stretch; height: auto; min-height: 132px; }
.place-card-content { align-self: start; padding-bottom: 0; }
.offline-route-action { width: 100%; margin: 4px 0 14px; justify-content: center; }
.offline-route-action.is-saved { border-color: var(--gold-hair); background: var(--gold-soft); color: var(--gold); }
.sticker-pack-preview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; width:min(100%,290px); margin:12px 0 7px; }
.sticker-pack-preview button,.sticker-pack-preview span { position:relative; display:grid; place-items:center; aspect-ratio:1; min-width:0; padding:3px; overflow:hidden; border:1px solid var(--border); border-radius:12px; background:#20232A; }
.sticker-pack-preview button { cursor:pointer; transition:transform .18s ease,border-color .18s ease,opacity .18s ease; }
.sticker-pack-preview button:active { transform:scale(.94); }
.sticker-pack-preview button:hover { border-color:var(--gold); }
.sticker-pack-preview button.is-sending { opacity:.45; }
.sticker-pack-preview img { display:block; width:100%; height:100%; object-fit:contain; }
.sticker-share-hint { display:block; margin:0 0 8px; color:var(--text-muted); font:500 11px/1.45 "Manrope",Arial,sans-serif; font-style:normal; }
.has-hermes-seal .route-summary::after { content: '☿'; flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); background: var(--gold-soft); font: 600 21px "Literata", Georgia, serif; box-shadow: inset 0 0 0 3px var(--card), 0 0 20px var(--gold-soft); }
.welcome-greeting {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    padding: 16px 18px;
    border: 1px solid rgba(217,162,51,.34);
    border-radius: 18px;
    background: linear-gradient(120deg, rgba(217,162,51,.14), rgba(17,21,29,.7));
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    animation: welcomeGreetingIn 520ms cubic-bezier(.16,1,.3,1) both;
}
.welcome-greeting-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--gold-bright, #F2CE7C);
    border: 1px solid rgba(242,206,124,.55);
    background: rgba(242,206,124,.12);
    font-size: 22px;
}
.welcome-greeting-copy h3 { margin: 2px 0 4px; color: var(--text-title); font-family: var(--font-display, Georgia, serif); font-size: 20px; }
.welcome-greeting-copy p { margin: 0; color: var(--text-body); font-size: 13px; line-height: 1.45; }
.welcome-greeting-actions { display: flex; align-items: center; gap: 8px; }
.welcome-greeting-close { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); cursor: pointer; }
.welcome-greeting-close:hover, .welcome-greeting-close:focus-visible { background: rgba(255,255,255,.08); color: var(--text-title); }
.journey-listen { width: 100%; justify-content: center; margin: 10px 0 12px; }
.events-load-more { display: block; margin: 16px auto 4px; min-width: 190px; justify-content: center; }
#merch-store { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:stretch; }
#merch-store .merch-item { display:grid; grid-template-columns:44px minmax(0,1fr); grid-template-rows:1fr auto; align-items:start; gap:14px; padding:20px; min-width:0; background:var(--card); box-shadow:none; }
#merch-store .merch-icon { width:44px; height:44px; }
#merch-store .merch-copy { min-width:0; }
#merch-store .merch-copy>strong { display:block; margin:4px 0 8px; font-size:20px; line-height:1.25; }
#merch-store .merch-copy>p { font-size:14px; line-height:1.6; margin:0 0 12px; }
#merch-store .merch-item>[data-merch] { grid-column:1/-1; width:100%; margin-top:4px; min-height:44px; }
#merch-store .merch-stickers { grid-column:1/-1; }
#merch-store .merch-stickers .merch-copy>p { max-width:540px; }
#merch-store .sticker-pack-preview { display:grid; width:100%; grid-template-columns:repeat(8,minmax(0,1fr)); max-width:650px; gap:8px; margin:16px 0; }
#merch-store .sticker-pack-preview>button,#merch-store .sticker-pack-preview>span { width:100%; height:auto; aspect-ratio:1; border-radius:14px; padding:7px; }
#merch-store .sticker-pack-preview img { width:100%; height:100%; object-fit:contain; }
#merch-store .collection-status { display:inline-block; font-size:12px; color:var(--text-muted); }
#merch-store .is-owned .collection-status { color:var(--gold); }
.store-heading { display:block; margin:28px 0 18px; }
.store-heading>p { max-width:560px; text-align:left; margin:8px 0 0; }
.profile-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); }
body.city-selected .city-selector-strip { position:static!important; margin-top:8px!important; }
body.city-selected .city-pill-left { display:flex; gap:6px; align-items:center; }
body.city-selected .city-pill-btn { width:100%; justify-content:space-between; min-height:40px; padding:8px 12px; }
.header-main-row { gap:12px; }
.header-actions { flex-shrink:0; }
@media(max-width:540px) { #merch-store { grid-template-columns:1fr; } #merch-store .sticker-pack-preview { grid-template-columns:repeat(4,minmax(0,1fr)); } #merch-store .merch-item { padding:16px; } }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip-content { position:fixed; top:8px; left:8px; z-index:20000; padding:14px; background:#fff; color:#111; transform:translateY(-200%); }
.skip-content:focus { transform:none; }
:focus-visible { outline:3px solid #b88a24; outline-offset:4px; }
.access-open { border:1px solid var(--border); border-radius:12px; background:var(--card); color:var(--text-title); padding:10px; min-height:44px; font:inherit; font-size:12px; }
#access-settings { width:min(92vw,520px); max-height:85dvh; overflow:auto; padding:24px; border:1px solid var(--border); border-radius:20px; background:var(--card,#fff); color:var(--text-title,#111); }
#access-settings::backdrop { background:rgba(0,0,0,.65); }
#access-settings label { display:flex; gap:12px; align-items:flex-start; margin:20px 0; line-height:1.6; }
#access-settings input { width:24px; height:24px; flex:none; }
.access-reading { display:none; gap:8px; flex-wrap:wrap; max-width:960px; margin:12px auto; padding:0 16px; }
.accessible-mode .access-reading,.high-contrast .access-reading { display:flex; }
.text-map { margin:16px 0; border:1px solid var(--border); border-radius:16px; padding:20px; }
.text-map ul { padding-left:20px; }
.text-map li { margin:16px 0; line-height:1.6; }
.text-map a { color:var(--text-title); text-decoration:underline; }
.text-map-actions { display:flex; flex-wrap:wrap; gap:8px; }
body:not(.accessible-mode) .text-map { max-height:360px; overflow:auto; }
.accessible-mode #tab-map .map-wrapper { display:none; }
.accessible-mode:has(#tab-map.active) { overflow:auto; padding-bottom:calc(96px + env(safe-area-inset-bottom)); }
.accessible-mode:has(#tab-map.active) .container { overflow:visible; padding:12px 16px 24px; }
.accessible-mode #tab-map { padding-bottom:24px; }
.accessible-mode #accessible-route[hidden] { display:none; }
.accessible-mode #accessible-route .text-map-actions { margin-top:16px; }
.accessible-mode .city-event-poster,.accessible-mode .journey-photo,.accessible-mode .home-route-band>img,.accessible-mode .city-photo { display:none; }
.accessible-mode *, .accessible-mode *::before, .accessible-mode *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
.high-contrast { --text-title:#fff; --text-body:#fff; --text-muted:#e0e0e0; --card:#111; --card-sunk:#111; --surface-card:#111; --surface:#111; --bg-card:#111; --bg-card-subtle:#111; --bg-page:#000; --bg:#000; --paper:#111; --paper-deep:#000; --primary-subtle:#242424; --gold-soft:#242424; --reward-soft:#242424; --border:#ddd; --gold:#ffe08a; --primary:#ffe08a; --ink:#fff; color:#fff; background:#000; font-size:20px; }
.high-contrast p,.high-contrast label,.high-contrast input,.high-contrast select,.high-contrast textarea,.high-contrast .btn-sm { font-size:18px!important; line-height:1.6; }
.high-contrast button,.accessible-mode button { min-height:44px; }
.high-contrast .app-header,.high-contrast .bottom-nav,.high-contrast .tab-panel { background:#000; color:#fff; }
.high-contrast .btn-primary { background:#ffe08a; color:#111; }
.high-contrast .btn-secondary { background:#111; color:#fff; border:1px solid #ddd; }
.high-contrast .home-route-band,.high-contrast .home-route-band>div,.high-contrast .welcome-greeting { background:#111; color:#fff; }
.high-contrast .home-route-band::after { display:none; }
.high-contrast .home-route-band h2,.high-contrast .home-route-band p,.high-contrast .brand-titles h1 { color:#fff; }
.high-contrast input,.high-contrast select,.high-contrast textarea { background:#111!important; color:#fff!important; border-color:#ddd!important; }
.high-contrast .event-filter.active { background:#ffe08a; color:#111; }
.high-contrast #theater-page-cards article { background:#111; border-color:#ddd; }
.high-contrast #theater-page-cards article > div:last-child > div { font-size:18px!important; line-height:1.5!important; }
.high-contrast #theater-page-cards article > div:last-child > div:first-child { font-size:21px!important; }
.high-contrast #theater-page-cards article > div:last-child > div span { font-size:18px!important; }
.high-contrast #theater-page-description { font-size:18px!important; line-height:1.5; }
.accessible-mode #theater-page-cards article > img { display:none; }
.accessible-mode #theater-page-cards article > div:first-child:not(:last-child) { display:none; }
.text-map>summary { cursor:pointer; font-weight:600; min-height:32px; }
button.city-row-item { width:100%; text-align:left; background:var(--card); color:var(--text-title); border:0; border-bottom:1px solid var(--border); font:inherit; }
.place-details-button { font:inherit; color:inherit; background:none; border:0; padding:0; text-align:left; cursor:pointer; }
.accessible-mode .place-photo,.accessible-mode .place-photo-wrap,.accessible-mode .place-preview { display:none; }
.tab-panel:focus,main:focus { outline:none; }
.high-contrast .brand-titles h1 { -webkit-text-fill-color:#fff; }
.high-contrast .bottom-nav { flex-wrap:wrap; }
.high-contrast .nav-tab-btn { font-size:14px; min-width:30%; flex:1; }
.high-contrast main { padding-bottom:160px; }
.home-previews { margin:18px 0; border-block:1px solid var(--border); }
.home-previews>summary { padding:18px 0; cursor:pointer; font-weight:600; }
.home-route-band .arena-track,.home-route-band .eyebrow,.arena-hero-stats,#home-open-rewards,.home-quick-links { display:none; }
#tab-events>div:first-child { display:none!important; }
.home-route-band { min-height:0; }
.home-route-band>div { padding:26px; }
.home-route-band h2 { font-size:clamp(26px,5vw,38px); }

/* Event posters stay inside their card on narrow screens and with remote images. */
.event-card { overflow: hidden; }
.city-event-poster {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 260px;
    margin: 0 0 12px;
    border-radius: 12px;
    object-fit: contain;
    object-position: center;
    background: var(--card-sunk);
}
@media (min-width: 700px) {
    .city-event-poster { height: 300px; }
}
@keyframes welcomeGreetingIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 520px) {
    .welcome-greeting { grid-template-columns: auto 1fr; }
    .welcome-greeting-actions { grid-column: 1 / -1; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .welcome-greeting { animation: none; } }

/* Second-round home: one clear action surface. */

.home-quick-links { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); margin:14px 0 20px; }
.home-route-band { border-radius:20px; box-shadow:var(--shadow-lift); }
.home-route-band>div { padding:clamp(22px,5vw,42px); }
.home-route-band h2 { font-size:clamp(30px,6vw,48px); max-width:560px; }
.home-return-card { display:grid; grid-template-columns:52px minmax(0,1fr) auto; align-items:center; gap:14px; margin:0 0 22px; padding:18px; border:1px solid var(--gold-hair); border-radius:16px; background:linear-gradient(135deg,var(--card),var(--gold-soft)); box-shadow:var(--shadow-card); }
.home-return-icon { width:52px; height:52px; display:grid; place-items:center; border-radius:15px; background:var(--ink); color:var(--gold-bright); }
.home-return-icon svg { width:25px; height:25px; }
.home-return-copy { min-width:0; }
.home-return-copy h3 { margin:2px 0; font-size:18px; }
.home-return-copy p { margin:0; color:var(--text-muted); font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-return-actions { display:flex; gap:8px; }
.home-return-status { grid-column:2/-1; margin:0; color:var(--text-muted); font-size:12px; }
.home-return-status:empty { display:none; }
.home-address-dialog { width:min(92vw,520px); padding:0; border:1px solid var(--border); border-radius:20px; background:var(--card); color:var(--text-body); box-shadow:var(--shadow-lift); }
.home-address-dialog::backdrop { background:rgba(3,7,14,.72); backdrop-filter:blur(4px); }
.home-address-dialog form { position:relative; display:grid; gap:13px; padding:28px; }
.home-address-dialog h2,.home-address-dialog p { margin:0; }
.home-address-dialog label { margin-top:6px; color:var(--text-title); font-weight:650; }
.home-address-dialog input { width:100%; min-height:48px; padding:12px; border:1px solid var(--border); border-radius:10px; background:var(--bg-card); color:var(--text-title); font:inherit; }
.text-map a.btn-primary { color:var(--paper); text-decoration:none; }
.high-contrast .text-map a.btn-primary { color:#111; }
.home-dialog-close { position:absolute; top:14px; right:14px; width:40px; height:40px; display:grid; place-items:center; border:0; background:transparent; color:var(--text-muted); }
.home-dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:8px; }
.high-contrast .home-return-card,.high-contrast .home-address-dialog { background:#111; border-color:#ddd; }

@media(max-width:620px) {
    .home-quick-links { grid-template-columns:1fr; }
    .home-quick-links button { min-height:62px; }
    .home-return-card { grid-template-columns:46px minmax(0,1fr); padding:15px; }
    .home-return-icon { width:46px; height:46px; }
    .home-return-actions { grid-column:1/-1; }
    .home-return-actions .btn-sm { flex:1; }
    .home-return-status { grid-column:1/-1; }
}

