/* Hikâye: Kokart yolculuğu (guidebook.js). Hoş geldin kartı, Rehber Defteri, kokart, haritada mühürler ve fenerler. */
.welcome-back{position:fixed;z-index:20;left:20px;top:132px;width:min(340px,calc(100vw - 32px));padding:18px 20px 16px;border:1px solid var(--ui-line,#ffffff55);border-radius:14px;background:rgba(10,21,30,.8);color:var(--ui-text,#f5f7fa);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 14px 40px rgba(5,12,20,.35)}
.welcome-back .eyebrow{font-size:11px;letter-spacing:.14em;font-weight:700;color:var(--ui-accent,#f2cd92);padding-right:36px}
.welcome-back h2{font:600 21px/1.2 Georgia,serif;margin:6px 0 12px}
.welcome-back .close{position:absolute;right:6px;top:4px;width:44px;height:44px;border:0;background:transparent;color:inherit;font-size:24px;cursor:pointer;border-radius:8px}
.welcome-back .close:hover{background:var(--ui-hover,#ffffff1f)}
.welcome-today{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.welcome-today strong{display:block;font-size:14px}.welcome-today small{display:block;font-size:12px;line-height:1.45;color:var(--ui-muted,#c9d6e6)}
.fire-ring{flex:none;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:conic-gradient(#f2a54a var(--done,0%),rgba(255,255,255,.14) 0);position:relative}
.fire-ring::before{content:'';position:absolute;inset:5px;border-radius:50%;background:rgba(10,21,30,.92)}
.fire-ring b{position:relative;font-size:13px}
.welcome-next{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;padding:12px 0;border-top:1px solid var(--ui-line,#ffffff33);border-bottom:1px solid var(--ui-line,#ffffff33)}
.welcome-next small{grid-column:1/-1;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--ui-muted,#c9d6e6)}
.welcome-next strong{font:600 16px/1.3 Georgia,serif}.welcome-progress{grid-column:1;font-size:12px;color:var(--ui-muted,#c9d6e6)}
.welcome-go{grid-column:2;grid-row:2/4;display:flex;align-items:center;min-height:44px;padding:0 16px;border-radius:99px;background:rgba(242,205,146,.93);color:#1b2531;font-weight:700;font-size:14px;text-decoration:none;white-space:nowrap}
.welcome-go:hover{background:#f7dcae}
.welcome-book{display:flex;width:100%;align-items:center;min-height:44px;margin-top:8px;padding:0 4px;border:0;background:none;color:var(--ui-accent,#f2cd92);font-size:13px;font-weight:650;cursor:pointer;text-align:left}
.welcome-back :focus-visible,.guidebook :focus-visible{outline:3px solid #ffda88;outline-offset:2px}
body:has(dialog[open]) .welcome-back{visibility:hidden}
@media(max-width:650px){.welcome-back{left:12px;right:72px;width:auto;top:auto;bottom:calc(140px + env(safe-area-inset-bottom));padding:14px 16px 12px}.welcome-back h2{font-size:18px;margin-bottom:8px}.welcome-today{margin-bottom:8px}.fire-ring{width:44px;height:44px}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.welcome-back{background:#101e2b;-webkit-backdrop-filter:none;backdrop-filter:none}}

dialog.guidebook{width:min(640px,calc(100% - 24px));max-height:88dvh;padding:30px 28px 26px;overflow:auto}
.guidebook .eyebrow{font-size:11px;letter-spacing:.14em;font-weight:700;color:#9b783c}
.guidebook h2{font:normal 30px/1.15 Georgia,serif;margin:6px 0 10px}
.guidebook-intro{font-size:14px;line-height:1.65}
.guidebook-meter{height:10px;border-radius:99px;background:linear-gradient(90deg,#d99b35 var(--done,0%),rgba(120,120,110,.2) 0);margin:16px 0 6px}
.guidebook-count{font-size:13px;font-weight:650;margin:0 0 14px}
.guidebook-stops{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.guidebook-stops li{display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center;padding:10px 12px;border-radius:10px;border:1px solid rgba(120,120,110,.25)}
.guidebook-stops li.sealed{border-color:#d9ab57;background:rgba(217,171,87,.1)}
.guidebook-stops .seal{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:2px dashed rgba(120,120,110,.55);font:600 12px Georgia,serif;color:inherit;opacity:.8}
.guidebook-stops li.sealed .seal{border:2px solid #b8842e;background:radial-gradient(circle at 35% 30%,#ffe3a1,#d99b35 60%,#a7701f);color:#3b2608;font-size:18px;opacity:1;box-shadow:0 2px 6px rgba(120,80,20,.35)}
.guidebook-stops strong{display:block;font-size:14px}.guidebook-stops small{display:block;font-size:12px;opacity:.8;line-height:1.4}
.guidebook-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.guidebook-study{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:8px;font-size:12px;font-weight:650;text-decoration:none;cursor:pointer}
.guidebook-study{background:#244a6a;color:#fff}
.guidebook-kokart{display:flex;align-items:center;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid rgba(120,120,110,.3)}
.guidebook-kokart p{font-size:13px;margin:0}
@media(max-width:560px){dialog.guidebook{padding:24px 16px 18px}.guidebook h2{font-size:25px}.guidebook-stops li{grid-template-columns:34px 1fr;gap:8px 10px}.guidebook-stops .seal{width:32px;height:32px}.guidebook-actions{grid-column:1/-1;justify-content:flex-start}}

.kokart{flex:none;width:92px;height:92px}
.kokart .kokart-petal{fill:#b9b3a3}.kokart .kokart-ring{fill:#8e897c}.kokart .kokart-core{fill:#d9d4c4}.kokart .kokart-mark{font:700 38px Georgia,serif;fill:#6f6a5d}
.kokart.earned .kokart-petal{fill:#c8423a}.kokart.earned .kokart-ring{fill:#1f3f6a}.kokart.earned .kokart-core{fill:#f2cd92}.kokart.earned .kokart-mark{fill:#1f3f6a}
dialog.kokart-ceremony{text-align:center;width:min(440px,calc(100% - 24px))}dialog.kokart-ceremony .kokart{width:150px;height:150px;margin:0 auto 10px;display:block}
dialog.kokart-ceremony .primary{margin-top:14px}

/* Harita: mühürlü yapının işareti altın ✓, kapısında fener (city-life.js). */
.marker.sealed .pin{background:radial-gradient(circle at 35% 30%,#ffe3a1,#d99b35 60%,#a7701f);color:#3b2608;box-shadow:0 0 0 2px #fff4d6}
.life-lantern{position:absolute;width:0;height:0}
.life-lantern::before{content:'';position:absolute;left:-22px;top:-44px;width:44px;height:44px;border-radius:50%;background:radial-gradient(closest-side,rgba(255,221,140,.9),rgba(255,170,60,.35) 55%,rgba(255,150,50,0));mix-blend-mode:screen;animation:lantern-glow 3.2s ease-in-out infinite}
.life-lantern::after{content:'';position:absolute;left:-4px;top:-27px;width:8px;height:11px;border-radius:3px 3px 2px 2px;background:linear-gradient(#fff3c4,#ffc55a);box-shadow:0 0 0 1.5px #5b3a16,0 0 8px 3px rgba(255,190,80,.8)}
@keyframes lantern-glow{50%{opacity:.7;transform:scale(.92)}}
#city-life.still .life-lantern::before{animation:none}
@media(prefers-reduced-motion:reduce){.life-lantern::before{animation:none}}
.marker.rest-place .pin{background:#2f8fa0;font-size:13px}
/* Stop standing (24 Eylül): progress of a stop's own set, correct and wrong answers, the error rate. */
.standing{margin-top:6px}
.standing-bar{display:flex;height:7px;border-radius:4px;overflow:hidden;background:rgba(255,255,255,.12)}
.standing-bar i{display:block;height:100%}
.standing-bar .ok{background:#5fbf8f}.standing-bar .bad{background:#d9735f}
.standing-line{display:flex;flex-wrap:wrap;gap:4px 12px;margin:6px 0 0;font-size:11px;line-height:1.4;color:var(--ui-muted,#c6ced6)}
.standing-ok{color:#8fd8b1}.standing-bad{color:#f0a493}.standing-rate{margin-left:auto;font-weight:650;color:var(--ui-text,#f4f1ea)}
.stop-standing{margin:0 0 14px;padding:10px 12px;border:1px solid var(--ui-line,#3a4b5c);border-radius:10px;background:var(--ui-sunken,#111a23)}
.stop-standing-head{display:flex;justify-content:space-between;gap:10px;align-items:baseline;font-size:11px;letter-spacing:.06em;color:var(--ui-accent,#ecc27f)}
.stop-standing-head span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stop-standing-head b{flex:none;letter-spacing:0;color:var(--ui-muted,#c6ced6);font-weight:650}.stop-standing-head b.sealed{color:#8fd8b1}
.guidebook-stops .standing{max-width:280px}

/* 25 Eylül: Prometheus's guard under the day's fire (learning/streak.js guardLine). */
.welcome-today .welcome-guard{margin-top:3px;color:var(--ui-accent,#e7c47d)}
.welcome-today .welcome-exam{margin-top:3px;color:var(--ui-text,#fff)}
/* 26. tur: the note under the expected-exam counter. */
.welcome-today .exam-note{display:block;margin-top:2px;font-size:11px;line-height:1.45;color:var(--ui-muted,#c6ced6)}
/* 34. tur: the Monday card (guidebook.js weekly, learning/weekly.js) in the welcome card's place and style. */
.weekly-card .weekly-first{margin:0 0 6px;font-size:14px;font-weight:650;color:var(--ui-text,#f4f1ea)}
.weekly-card .weekly-lines{margin:0 0 10px;padding-left:18px;font-size:13px;line-height:1.5;color:var(--ui-muted,#c6ced6)}
.weekly-card .weekly-lines li+li{margin-top:2px}

