/* Schwimmschule Mo – App (PWA). System fonts only: the app loads nothing from third parties. */
:root {
  --navy: #0B3D5C; --navy-deep: #072A40; --teal: #1B998B; --teal-dark: #127267; --teal-soft: #DDF3F0;
  --coral: #F4A261; --coral-dark: #E8893F; --coral-soft: #FDEBDC; --sky: #EAF6FB; --ink: #12324A;
  --muted: #4A6478; --line: #D6E8F0; --bg: #F4F8FB; --red: #B3261E; --red-soft: #FDECEA; --gold-soft: #FFF6DA;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --tabs-h: 64px;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
/* The booking widget uses Baloo 2 / Inter on the website – in the app the system fonts take over. */
.smo-bk { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; scroll-margin-top: calc(70px + var(--safe-t)); }
.smo-bk .smo-bk-title, .smo-bk .smo-bk-h { font-family: var(--round) !important; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--teal-dark); }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.app-top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--safe-t)) 16px 10px; color: #fff;
  background: radial-gradient(420px 160px at 100% 0%, rgba(27,153,139,.55), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-deep));
  box-shadow: 0 2px 14px rgba(7,42,64,.18);
}
.app-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(135deg, var(--teal), var(--navy)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.app-name { font-family: var(--round); font-weight: 700; font-size: 1.12rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-name b { color: var(--coral); font-weight: 800; }
.app-lang { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.app-lang button { border: 0; background: transparent; color: rgba(255,255,255,.85); font-weight: 700; font-size: .78rem; padding: 7px 11px; border-radius: 999px; cursor: pointer; letter-spacing: .04em; min-height: 32px; }
.app-lang button.on { background: #fff; color: var(--navy); }

/* ---------- Banners ---------- */
.app-offline, .app-install { margin: 12px 16px 0; border-radius: 16px; padding: 12px 14px; font-size: .92rem; }
.app-offline { background: var(--gold-soft); border: 1px solid #F3E3A6; color: #6B5310; }
.app-install { background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(11,61,92,.08); display: flex; gap: 12px; align-items: center; }
.app-install img { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; }
.app-install p { margin: 0; flex: 1; color: var(--muted); }
.app-install p b { color: var(--navy); display: block; }
.app-install .x { border: 0; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; padding: 6px; cursor: pointer; }

/* ---------- Main + views ---------- */
.app-main { padding: 14px 14px calc(var(--tabs-h) + var(--safe-b) + 24px); max-width: 760px; margin: 0 auto; }
.app-view { animation: appin .18s ease-out; }
@keyframes appin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .app-view { animation: none; } }
.app-view[data-view="buchen"] .smo-bk { max-width: none; }

.h1 { font-family: var(--round); font-weight: 800; font-size: 1.55rem; color: var(--navy); margin: 6px 2px 4px; line-height: 1.2; outline: none; }
.h2 { font-family: var(--round); font-weight: 800; font-size: 1.12rem; color: var(--navy); margin: 22px 2px 10px; display: flex; align-items: center; gap: 8px; }
.h2 .count { background: var(--sky); color: var(--navy); border-radius: 999px; font-size: .78rem; padding: 2px 9px; font-family: system-ui, sans-serif; }
.lead { color: var(--muted); margin: 0 2px 14px; font-size: .95rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: 0 6px 22px rgba(11,61,92,.06); }
.card + .card { margin-top: 12px; }
.stack > * + * { margin-top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; cursor: pointer;
  padding: 12px 18px; min-height: 46px; font-weight: 700; font-size: .98rem; text-decoration: none; line-height: 1.2; text-align: center;
  transition: transform .08s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-coral { background: var(--coral); color: var(--navy-deep); box-shadow: 0 6px 16px rgba(244,162,97,.35); }
.btn-coral:hover { background: var(--coral-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { background: var(--sky); color: var(--navy); }
.btn-line { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:focus-visible, .app-tabs a:focus-visible, .app-lang button:focus-visible, .chip:focus-visible, .link:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.link { background: none; border: 0; color: var(--teal-dark); font-weight: 600; cursor: pointer; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > .btn { flex: 1 1 auto; }

/* Notices */
.note { border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; font-size: .93rem; }
.note-ok { background: var(--teal-soft); color: #0E5A51; }
.note-err { background: var(--red-soft); color: #8A2A1A; }
.note-info { background: var(--sky); color: var(--navy); }
.note-warn { background: var(--coral-soft); color: #7A3D0E; }

/* Forms */
.field { display: block; margin: 0 0 12px; }
.field > span { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; color: var(--navy); }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; font-size: 16px; min-height: 48px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,153,139,.18); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.code-input { font-size: 1.6rem !important; letter-spacing: .45em; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.radio { display: flex; gap: 8px; margin: 0 0 12px; }
.radio label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 10px; font-weight: 600; cursor: pointer; background: #fff; text-align: center; font-size: .93rem; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio label.on { border-color: var(--teal); background: var(--teal-soft); color: #0E5A51; }

/* Login */
.login-hero { text-align: center; padding: 6px 4px 2px; }
.login-hero .ic { width: 64px; height: 64px; border-radius: 20px; margin: 4px auto 10px; display: grid; place-items: center; background: var(--sky); font-size: 1.8rem; }

/* Dashboard */
.hello { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hello .who { min-width: 0; }
.hello .who .muted { font-size: .88rem; overflow-wrap: anywhere; }
.pass { border-radius: 20px; padding: 16px; color: #fff; background: radial-gradient(300px 140px at 100% 0%, rgba(27,153,139,.55), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-deep)); box-shadow: 0 10px 26px rgba(7,42,64,.22); }
.pass + .pass { margin-top: 12px; }
.pass.off { filter: grayscale(.5); opacity: .85; }
.pass-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pass-name { font-weight: 800; font-family: var(--round); font-size: 1.05rem; }
.pass-sub { font-size: .85rem; color: rgba(255,255,255,.8); }
.credits { text-align: right; flex-shrink: 0; }
.credits b { font-family: var(--round); font-size: 2rem; line-height: 1; display: block; color: var(--coral); }
.credits small { font-size: .75rem; color: rgba(255,255,255,.8); }
.bar { height: 8px; background: rgba(255,255,255,.18); border-radius: 99px; overflow: hidden; margin: 12px 0 14px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), #FFD3A8); border-radius: 99px; }
.pass .btn-coral { box-shadow: none; }

.sess { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.sess + .sess { margin-top: 10px; }
.sess-when { display: flex; gap: 12px; align-items: center; }
.cal { width: 50px; flex-shrink: 0; text-align: center; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.cal i { display: block; font-style: normal; font-size: .68rem; font-weight: 700; text-transform: uppercase; background: var(--coral); color: var(--navy-deep); padding: 2px 0; letter-spacing: .05em; }
.cal b { display: block; font-family: var(--round); font-size: 1.3rem; color: var(--navy); line-height: 1.35; }
.sess-txt { min-width: 0; flex: 1; }
.sess-txt b { display: block; color: var(--navy); }
.sess-txt span { color: var(--muted); font-size: .88rem; }
.sess-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.sess-actions .btn { flex: 1 1 120px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 700; }
.badge-warn { background: var(--coral-soft); color: #7A3D0E; }
.badge-ok { background: var(--teal-soft); color: #0E5A51; }
.badge-muted { background: #EDF1F4; color: var(--muted); }
.badge-err { background: var(--red-soft); color: #8A2A1A; }
.sess-note { margin-top: 10px; font-size: .86rem; color: var(--muted); }
.panel { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--bg); border: 1px dashed var(--line); }

.course { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.course + .course { margin-top: 10px; }
.course-name { font-weight: 800; color: var(--navy); font-family: var(--round); }
.dates { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dates span { background: var(--sky); color: var(--navy); border-radius: 10px; padding: 5px 9px; font-size: .82rem; font-weight: 600; }
.dates span.past { background: #EDF1F4; color: #8A9BA8; text-decoration: line-through; }
.dates span.next { background: var(--coral); color: var(--navy-deep); }

.empty { text-align: center; padding: 26px 16px; }
.empty .ic { font-size: 2.2rem; }

/* Slot picker */
.picked { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; background: var(--sky); color: var(--navy); border: 0; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.days button { scroll-snap-align: start; flex: 0 0 auto; min-width: 74px; border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 8px; cursor: pointer; text-align: center; }
.days button b { display: block; color: var(--navy); font-size: .9rem; }
.days button small { color: var(--muted); font-size: .75rem; }
.days button.on { border-color: var(--coral); background: var(--coral-soft); }
.tgroup { margin: 8px 0 12px; }
.tlabel { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 2px 6px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.times button { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 6px; font-weight: 700; color: var(--navy); cursor: pointer; min-height: 48px; }
.times button small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }
.times button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.times button.on small { color: rgba(255,255,255,.8); }
.bookbar {
  position: sticky; bottom: calc(var(--tabs-h) + var(--safe-b) + 10px); z-index: 5; margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(11,61,92,.18);
}
.bookbar b { display: block; color: var(--navy); font-size: .95rem; }
.bookbar span { color: var(--muted); font-size: .85rem; }

/* Receipts & history */
.list { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; }
.li-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); flex-shrink: 0; font-size: 1.1rem; }
.li-txt { flex: 1; min-width: 0; }
.li-txt b { display: block; color: var(--navy); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-txt span { color: var(--muted); font-size: .82rem; }
.li-end { text-align: right; flex-shrink: 0; }
.li-end b { display: block; color: var(--navy); }
.seg { display: flex; background: #E3EDF3; border-radius: 999px; padding: 4px; margin: 4px 0 14px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 9px 6px; font-weight: 700; color: var(--muted); cursor: pointer; font-size: .9rem; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(11,61,92,.12); }

/* School */
.school-hero { border-radius: 24px; padding: 22px 18px; color: #fff; text-align: center; background: radial-gradient(420px 200px at 100% 0%, rgba(27,153,139,.6), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-deep)); }
.school-hero .app-mark { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 10px; }
.school-hero h1 { font-family: var(--round); margin: 0; font-size: 1.5rem; }
.school-hero h1 b { color: var(--coral); }
.school-hero p { margin: 6px 0 0; color: rgba(255,255,255,.85); font-size: .92rem; }
.about p { margin: 0 0 10px; }
.about p:last-child { margin: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.contact-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 700; font-size: .82rem; min-height: 84px; text-align: center; }
.contact-grid a svg { width: 26px; height: 26px; }
.contact-grid a.wa { background: #E8F8EE; border-color: #CBEFD8; color: #146C3A; }
.contact-grid a.call { background: var(--coral-soft); border-color: #F8D6B9; color: #7A3D0E; }
.loc { display: flex; gap: 12px; align-items: center; }
.loc .li-ic { background: var(--teal-soft); }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin: 18px 0 4px; font-size: .88rem; }
.links a, .links button { color: var(--muted); }
.ver { text-align: center; color: #9AACB8; font-size: .75rem; margin: 6px 0 0; }

/* Privacy */
.doc h2 { font-family: var(--round); color: var(--navy); font-size: 1.05rem; margin: 20px 0 6px; }
.doc p, .doc li { font-size: .93rem; color: var(--ink); }
.doc ul { padding-left: 20px; margin: 6px 0 10px; }
.doc li { margin: 0 0 5px; }
.doc .stand { color: var(--muted); font-size: .82rem; margin-top: 18px; }

/* Skeleton */
.skel { border-radius: 18px; background: linear-gradient(90deg, #E8F0F5 25%, #F3F7FA 37%, #E8F0F5 63%); background-size: 400% 100%; animation: sk 1.2s ease infinite; height: 86px; }
.skel + .skel { margin-top: 10px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Tab bar ---------- */
.app-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.96); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid var(--line); padding: 6px 6px calc(6px + var(--safe-b));
}
.app-tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; text-decoration: none; color: #7D90A0; font-size: .72rem; font-weight: 700; border-radius: 14px; }
.app-tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-tabs a.on { color: var(--navy); }
.app-tabs a.on svg { stroke: var(--teal); }
.app-tabs a.on::before { content: ""; position: absolute; top: 2px; width: 28px; height: 3px; border-radius: 3px; background: var(--coral); }
.app-dot { position: absolute; top: 6px; right: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: var(--coral-dark); box-shadow: 0 0 0 2px #fff; }

@media (min-width: 760px) {
  .app-tabs { left: 50%; right: auto; transform: translateX(-50%); width: 520px; bottom: 14px; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(11,61,92,.16); }
  .app-main { padding-top: 22px; }
}
/* In the app the language switch sits in the top bar – hide the duplicate in the widget. */
.app-view .smo-bk .smo-bk-lang { display: none !important; }

/* 1.17 – start message, popup, notifications */
.app-announce { margin: 12px 16px 0; border-radius: 16px; padding: 11px 12px 11px 14px; display: flex; gap: 10px; align-items: center; font-size: .93rem; border: 1px solid transparent; }
.app-announce p, .app-announce a { margin: 0; flex: 1; font-weight: 600; text-decoration: none; color: inherit; }
.app-announce .ic { flex-shrink: 0; }
.app-announce .x { border: 0; background: none; color: inherit; opacity: .6; font-size: 1.3rem; line-height: 1; padding: 4px 6px; cursor: pointer; }
.app-announce.is-info { background: var(--sky); color: var(--navy); border-color: var(--line); }
.app-announce.is-ok { background: var(--teal-soft); color: #0E5A51; }
.app-announce.is-warn { background: var(--coral-soft); color: #7A3D0E; border-color: #F8D6B9; }
@media (min-width: 760px) { .app-announce { max-width: 728px; margin-left: auto; margin-right: auto; } }
.app-modal { position: fixed; inset: 0; z-index: 100; background: rgba(7,42,64,.55); display: flex; align-items: flex-end; justify-content: center; padding: 16px 12px calc(16px + var(--safe-b)); animation: appin .2s ease-out; }
@media (min-width: 600px) { .app-modal { align-items: center; } }
.app-modal-box { background: #fff; border-radius: 24px; width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow: auto; box-shadow: 0 24px 60px rgba(7,42,64,.35); }
.app-modal-box img { width: 100%; max-height: 220px; object-fit: cover; display: block; border-radius: 24px 24px 0 0; }
.app-modal-in { position: relative; padding: 20px 18px 18px; }
.app-modal-in h2 { font-family: var(--round); color: var(--navy); font-size: 1.35rem; margin: 0 30px 8px 0; line-height: 1.2; }
.app-modal-in p { margin: 0 0 10px; color: var(--ink); }
.app-modal-in .row { margin-top: 14px; }
.app-modal-in .x { position: absolute; top: 10px; right: 10px; border: 0; background: var(--sky); color: var(--navy); width: 34px; height: 34px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.push-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; background: var(--gold-soft); border-color: #F3E3A6; }
.push-hint > span { font-size: 1.4rem; }
.push-hint p { margin: 0; flex: 1 1 160px; font-weight: 600; color: #6B5310; }

/* 1.21 sickness cover */
.sick{margin-top:12px;border-top:1px dashed var(--line,#dfe7ee);padding-top:10px}
.sick-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px}
.sick-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:6px 0}
.sick-row .badge{white-space:normal}

/* ---------- 1.24 Fortschritt: Abenteuerkarte ---------- */
.kid-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 2px; }
.kid-tabs button { flex: none; border: 2px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 800; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.kid-tabs button small { color: #7D90A0; font-weight: 700; margin-left: 4px; }
.kid-tabs button.on { border-color: var(--teal); background: #E7F6F3; }
.map-head { text-align: center; margin-bottom: 6px; }
.map-head .lead { margin: 4px 0 10px; }
.map-bar { height: 12px; border-radius: 999px; background: #E3EEF4; overflow: hidden; margin: 0 auto 12px; max-width: 360px; }
.map-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #F4A261, #1B998B 55%, #0B3D5C); transition: width .6s ease; }
.map-medals { display: flex; justify-content: center; gap: 14px; margin-bottom: 10px; }
.map-medals span { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(11,61,92,.08); opacity: .75; }
.map-medals span.on { opacity: 1; box-shadow: 0 0 0 4px rgba(247,197,72,.35), 0 4px 12px rgba(11,61,92,.14); }
.map-new { animation: amPop .5s ease; }
.advmap { position: relative; margin: 8px 0 26px; border-radius: 26px; background: linear-gradient(180deg, #EAF6FB, #DDF0F7); overflow: hidden; }
.advroad { position: absolute; left: 0; top: 0; }
.am-start, .am-head, .am-node, .am-medal { position: absolute; transform: translate(-50%, -50%); z-index: 1; }
.am-start { background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 800; color: #B4581A; box-shadow: 0 3px 10px rgba(11,61,92,.12); white-space: nowrap; }
.am-head { display: flex; align-items: center; gap: 10px; width: min(88%, 380px); background: #fff; border: 3px solid var(--c); border-radius: 20px; padding: 8px 12px; box-shadow: 0 6px 16px rgba(11,61,92,.14); }
.am-ani { font-size: 30px; width: 46px; height: 46px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #F3F8FB; }
.am-ht { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.am-ht b { font-size: 1.08rem; color: var(--navy); }
.am-ht small { color: #4A6478; font-weight: 700; font-size: .78rem; }
.am-head em { font-style: normal; font-weight: 800; color: var(--c); font-size: 1.05rem; }
.am-node { display: flex; flex-direction: column; align-items: center; width: 150px; }
.am-st { width: 74px; height: 74px; border-radius: 50%; background: #fff; border: 3px dashed var(--c); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(255,255,255,.7); }
.am-st i { font-style: normal; font-weight: 800; font-size: 1.3rem; color: #B5C6D6; }
.am-node.on .am-st { border: 4px solid #fff; background: radial-gradient(circle at 26% 22%, rgba(255,255,255,.6) 0 7%, transparent 8%), var(--c); box-shadow: 0 0 0 3px var(--c), 0 6px 14px rgba(11,61,92,.25); transform: rotate(var(--r)); }
.am-node.on .am-st b { font-size: 38px; line-height: 1; filter: drop-shadow(0 2px 1px rgba(0,0,0,.18)); }
.am-node.fresh .am-st { animation: amPop .9s cubic-bezier(.2,1.6,.4,1) .2s both; }
.am-lab { margin-top: 6px; background: rgba(255,255,255,.94); border-radius: 12px; padding: 4px 8px; text-align: center; font-size: .78rem; font-weight: 800; line-height: 1.2; color: var(--navy); box-shadow: 0 2px 6px rgba(11,61,92,.08); }
.am-lab small { display: block; font-weight: 700; color: #7D90A0; font-size: .7rem; margin-top: 1px; }
.am-node.on .am-lab small { color: #12695F; }
.am-medal { display: flex; flex-direction: column; align-items: center; width: 190px; }
.am-med { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; border: 4px solid #D9E4EC; box-shadow: 0 6px 16px rgba(11,61,92,.16); }
.am-medal.on .am-med { border-color: #F7C548; box-shadow: 0 0 0 8px rgba(247,197,72,.3), 0 6px 16px rgba(11,61,92,.2); animation: amGlow 2.4s ease-in-out infinite; }
.am-medal .am-lab { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.am-medal .am-lab b { font-size: .92rem; }
.cert-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.cert-card .cert-acts { flex-basis: 100%; justify-content: flex-start; }
.cert-txt { flex: 1; display: flex; flex-direction: column; }
.cert-acts { display: flex; align-items: center; gap: 10px; }
@keyframes amPop { 0% { transform: scale(.2) rotate(-30deg); opacity: 0; } 70% { transform: scale(1.15) rotate(var(--r, 0deg)); opacity: 1; } 100% { transform: scale(1) rotate(var(--r, 0deg)); } }
@keyframes amGlow { 50% { box-shadow: 0 0 0 12px rgba(247,197,72,.15), 0 6px 16px rgba(11,61,92,.2); } }
@media (prefers-reduced-motion: reduce) { .am-node.fresh .am-st, .am-medal.on .am-med, .map-new { animation: none; } }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: .85rem; }
