:root {
  --bg: #0a0f0d;
  --bg-2: #0d1210;
  --panel: #141d19;
  --panel-2: #101815;
  --panel-3: #1a2620;
  --line: rgba(201, 162, 39, .20);
  --line-soft: rgba(236, 229, 211, .08);
  --cream: #ece5d3;
  --muted: #93a096;
  --dim: #6d7a70;
  --brass: #c9a227;
  --brass-deep: #8c6f1c;
  --gold: #f0d9a0;
  --ok: #7fa887;
  --bad: #d9534e;
  --serif: Georgia, "Times New Roman", "PT Serif", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

body.ov-lock, html.ov-lock { overflow: hidden; }

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 12% -10%, rgba(201, 162, 39, .13), transparent 62%),
    radial-gradient(760px 520px at 108% 20%, rgba(79, 129, 137, .12), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(140, 111, 28, .10), transparent 65%);
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

/* ---------- горна лента ---------- */
.ctop {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 15, 13, .86);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--cream);
}
.brand-mark { color: var(--brass); font-size: 17px; }
.brand-word {
  font-family: var(--serif);
  letter-spacing: .12em;
  text-transform: lowercase;
  font-size: 17px;
}
.ctop-sep { width: 1px; height: 20px; background: var(--line-soft); }
.ctop-tag {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
}
.ctop-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ctop-count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
}
.ctop-exit {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ctop-exit:hover { color: var(--cream); }

/* ---------- бутони ---------- */
.cbtn {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .12s, color .16s;
}
.cbtn:hover { border-color: var(--brass); color: var(--gold); }
.cbtn:active { transform: translateY(1px); }
.cbtn:disabled { opacity: .4; cursor: default; }
/* видим фокус за клавиатура — UA пръстенът е почти черен на тъмно */
.cbtn:focus-visible,
.brand:focus-visible,
.ctop-exit:focus-visible,
.ep-close:focus-visible,
.q-opt:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.cbtn--gold {
  background: linear-gradient(180deg, #e2bd4c, #b48c1d);
  border-color: #f2dc9a;
  color: #1a1406;
  font-weight: 700;
}
.cbtn--gold:hover { color: #1a1406; background: linear-gradient(180deg, #efcb5d, #c19726); }
.cbtn--ghost { background: rgba(236, 229, 211, .03); }

/* ---------- основен екран ---------- */
.cstage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 18px;
  padding: 18px 22px 22px;
  height: calc(100dvh - 62px);
  min-height: 0;
}

.mapwrap {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(201, 162, 39, .07), transparent 70%),
    #0b100e;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map {
  position: relative;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1264 / 848;
  touch-action: manipulation;
}
.map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  filter: saturate(.92) contrast(1.02) brightness(.92);
}
.map-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 50% 45%, transparent 45%, rgba(6, 10, 8, .55) 100%),
    linear-gradient(180deg, rgba(8, 12, 10, .25), transparent 22%, transparent 78%, rgba(8, 12, 10, .35));
  pointer-events: none;
}
.map-markers { position: absolute; inset: 0; }
.map-caption {
  position: absolute;
  left: 16px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}
.map-caption b {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .16em;
  color: var(--gold);
}
.map-caption span { font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }

/* ---------- маркери ---------- */
.mk {
  position: absolute;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  cursor: pointer;
  display: grid;
  place-items: center;
  font: inherit;
}
.mk::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
}
.mk-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: transform .18s;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5));
}
.mk-c { stroke: rgba(240, 217, 160, .55); stroke-width: 1.2; }
.mk-num {
  position: relative;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--gold);
}
.mk-lab {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--cream);
  background: rgba(8, 12, 10, .82);
  border: 1px solid var(--line-soft);
  padding: 2px 7px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .16s;
  pointer-events: none;
}
.mk:hover .mk-lab, .mk:focus-visible .mk-lab { opacity: 1; }
.mk:hover .mk-svg { transform: scale(1.06); }
.mk:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 50%; }

.mk--open .mk-c { stroke: var(--gold); stroke-width: 1.5; }
.mk--open .mk-svg { animation: mkPulse 2.6s ease-in-out infinite; }
.mk--open .mk-num { color: #1a1406; font-weight: 700; }

@keyframes mkPulse {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(201, 162, 39, .35)) drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
  50% { filter: drop-shadow(0 0 11px rgba(240, 217, 160, .65)) drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
}

.mk--done .mk-c { stroke: rgba(127, 168, 135, .85); stroke-width: 1.4; }
.mk--done .mk-num { color: #9fc2a8; }
.mk--done::after {
  content: "✓";
  position: absolute;
  right: -3px;
  top: -4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #7fa887;
  color: #0b100e;
  font-size: 11px;
  line-height: 17px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}

.mk--locked { cursor: not-allowed; }
.mk--locked .mk-c { stroke: rgba(236, 229, 211, .16); }
.mk--locked .mk-num { color: rgba(236, 229, 211, .28); }
.mk--locked .mk-lab { color: var(--dim); }
.mk-lock {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 15px;
  height: 15px;
  color: rgba(236, 229, 211, .5);
  background: #0b100e;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(236, 229, 211, .12);
}

/* ---------- странична лента ---------- */
.rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 36, 31, .92), rgba(13, 19, 16, .96));
  padding: 18px 16px 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rail-head { padding: 0 4px; }
.rail-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: .04em;
  color: var(--gold);
}
.rail-sub { margin: 8px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.rail-continue { width: 100%; }

.eplist {
  list-style: none;
  margin: 0;
  padding: 2px 0 0;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, .3) transparent;
}
.eplist::-webkit-scrollbar { width: 6px; }
.eplist::-webkit-scrollbar-thumb { background: rgba(201, 162, 39, .25); border-radius: 3px; }

.eprow {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--cream);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.eprow:hover { background: rgba(236, 229, 211, .04); border-color: var(--line-soft); }
.eprow:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.eprow-n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}
.eprow-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.eprow-title {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eprow-zone { font-size: 11px; color: var(--dim); letter-spacing: .04em; }
.eprow-side {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
}
.eprow--done .eprow-n { color: var(--ok); }
.eprow--done .eprow-side { color: var(--ok); }
.eprow--open {
  border-color: var(--line);
  background: linear-gradient(90deg, rgba(201, 162, 39, .10), transparent 70%);
}
.eprow--open .eprow-n { color: var(--brass); }
.eprow--open .eprow-side { color: var(--gold); }
.eprow--locked { cursor: not-allowed; opacity: .5; }
.eprow--locked:hover { background: transparent; border-color: transparent; }

.rail-note {
  margin: 6px 4px 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #d9a441;
}

/* ---------- оверлей / епизод ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 8, 7, .82);
  backdrop-filter: blur(7px);
}
.overlay[hidden] { display: none; }

.ep-panel {
  width: min(760px, 100%);
  max-height: calc(100dvh - 44px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(201, 162, 39, .10), transparent 60%),
    linear-gradient(180deg, #16211c, #0d1411);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ep-head { padding: 20px 26px 12px; position: relative; }
.ep-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.ep-close:hover { color: var(--cream); border-color: var(--brass); }
.ep-kicker {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  gap: 8px;
  align-items: center;
}
.ep-dot { color: var(--dim); }
.ep-title {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.2;
  color: var(--gold);
}
.ep-meta {
  margin-top: 8px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}
.ep-time {
  margin-left: auto;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  min-width: 52px;
  text-align: right;
}
.ep-time.low { color: var(--bad); }
.ep-panel:focus, .reward-panel:focus { outline: none; }

.ep-timer { height: 3px; background: rgba(236, 229, 211, .08); }
.ep-timer i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--brass), var(--gold));
  transform-origin: left center;
  transition: transform .2s linear, background .2s;
}
.ep-timer i.low { background: linear-gradient(90deg, #8f3a34, #d9534e); }

.ep-body { padding: 18px 26px 24px; overflow-y: auto; }

.q-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.q-dots i {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: rgba(236, 229, 211, .14);
}
.q-dots i.done { background: var(--brass); }
.q-dots i.now { background: var(--gold); }

.q-text {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.42;
  color: var(--cream);
}

.q-answers { display: grid; gap: 9px; }
.q-opt {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(236, 229, 211, .02);
  color: var(--cream);
  font: inherit;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color .14s, background .14s, transform .1s;
}
.q-opt:hover { border-color: var(--brass); background: rgba(201, 162, 39, .07); }
.q-opt:active { transform: translateY(1px); }
.q-opt b {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brass);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.q-opt.is-ok { border-color: var(--ok); background: rgba(127, 168, 135, .14); }
.q-opt.is-ok b { color: var(--ok); border-color: var(--ok); }
.q-opt.is-bad { border-color: var(--bad); background: rgba(217, 83, 78, .12); }
.q-opt.is-bad b { color: var(--bad); border-color: var(--bad); }
.q-opt:disabled { cursor: default; }

.q-num { display: flex; gap: 10px; align-items: stretch; }
.q-num input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(8, 12, 10, .6);
  color: var(--cream);
  font: inherit;
  font-size: 18px;
  font-family: var(--mono);
}
.q-num input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201, 162, 39, .12); }
.q-num input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(217, 83, 78, .16); }

.q-num .unit {
  display: grid;
  place-items: center;
  min-width: 54px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
}
.q-num .cbtn { flex: 0 0 auto; }

.q-feedback { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.q-verdict { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.q-verdict.ok { color: var(--ok); }
.q-verdict.bad { color: var(--bad); }
.q-truth { margin: 8px 0 0; font-size: 15px; color: var(--cream); }
.q-why { margin: 4px 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.q-next { width: 100%; }

/* ---------- край на епизод ---------- */
.ep-end { padding: 26px; text-align: center; overflow-y: auto; }
.medal { position: relative; width: 104px; height: 104px; margin: 0 auto 14px; }
.medal svg { width: 100%; height: 100%; }
.medal-ring { fill: none; stroke: var(--brass); stroke-width: 1.5; opacity: .85; }
.medal-inner { fill: rgba(201, 162, 39, .08); stroke: rgba(240, 217, 160, .35); stroke-width: 1; }
.medal-dots { fill: none; stroke: rgba(240, 217, 160, .32); stroke-width: 2; stroke-dasharray: 1 17.8; stroke-linecap: round; }
.medal.fail .medal-ring { stroke: #8f3a34; }
.medal.fail .medal-inner { fill: rgba(217, 83, 78, .08); }
.medal-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold);
}
.end-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--gold); }
.end-score { margin: 6px 0 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.end-reward {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(201, 162, 39, .06);
  text-align: left;
}
.end-reward-kicker { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.end-reward b { display: block; font-family: var(--serif); font-size: 19px; color: var(--cream); margin-top: 4px; }
.end-myth { margin: 7px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.end-fail { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.end-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.end-actions .cbtn { flex: 1 1 150px; }

/* ---------- награди ---------- */
.reward-panel {
  width: min(720px, 100%);
  max-height: calc(100dvh - 44px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #16211c, #0d1411);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.reward-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 24px 10px; position: relative; }
.reward-head .ep-close { position: static; }
.reward-grid {
  padding: 8px 24px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  overflow-y: auto;
}
.rw {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
  background: rgba(236, 229, 211, .02);
  min-height: 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rw.on { border-color: var(--line); background: rgba(201, 162, 39, .07); }
.rw.off { opacity: .45; }
.rw-kind { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.rw-name { font-family: var(--serif); font-size: 15px; color: var(--cream); }
.rw-ep { margin-top: auto; font-family: var(--mono); font-size: 10px; color: var(--dim); }
.rw.off .rw-name { color: var(--dim); }
.reward-note { margin: 0 24px 18px; font-size: 11.5px; color: var(--dim); }

/* ---------- тост ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 12px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(16, 24, 21, .96);
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- мобилен 390×844 ---------- */
@media (max-width: 980px) {
  body { height: auto; }
  .ctop { height: calc(54px + env(safe-area-inset-top, 0px)); padding: 0 14px; padding-top: env(safe-area-inset-top, 0px); gap: 10px; }

  .brand-word { font-size: 15px; }
  .ctop-tag { display: none; }
  .ctop-sep { display: none; }
  .ctop-count { font-size: 11px; padding: 4px 9px; }
  .ctop-right { gap: 8px; }
  .ctop-right .cbtn { padding: 7px 12px; font-size: 10.5px; }
  .ctop-exit { font-size: 11px; }

  .cstage {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 12px;
    padding: 12px 12px 22px;
  }
  .mapwrap {
    border-radius: 14px;
    display: block;
  }
  .map { width: 100%; height: auto; aspect-ratio: 1264 / 848; }
  .mk { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
  .mk::before { inset: -13px; }
  .mk-num { font-size: 10px; }
  .mk-lab { display: none; }
  .mk--done::after { width: 14px; height: 14px; font-size: 9px; line-height: 14px; right: -4px; top: -4px; }
  .mk-lock { width: 13px; height: 13px; right: -3px; bottom: -3px; }
  .map-caption { left: 10px; bottom: 8px; }
  .map-caption b { font-size: 14px; letter-spacing: .12em; }
  .map-caption span { font-size: 9px; }

  .rail {
    border-radius: 14px;
    padding: 14px 12px 12px;
    overflow: visible;
  }
  .rail-title { font-size: 21px; }
  .rail-sub { font-size: 12px; }
  .eplist { overflow: visible; }
  .eprow { min-height: 56px; padding: 8px 8px; }
  .eprow-title { font-size: 13px; }

  .overlay { padding: 0; place-items: stretch; }
  .ep-panel, .reward-panel {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  .ep-head { padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 10px; }
  .ep-title { font-size: 22px; padding-right: 30px; }
  .ep-body { padding: 14px 16px 20px; }
  .q-text { font-size: 19px; }
  .q-opt { font-size: 14px; padding: 12px 13px; }
  .q-num { flex-wrap: wrap; }
  .q-num input { flex: 1 1 60%; }
  .q-num .cbtn { flex: 1 0 40%; }
  .ep-end { padding: 22px 16px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .end-title { font-size: 23px; }
  .reward-head { padding: 18px 16px 8px; }
  .reward-grid { padding: 6px 16px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reward-note { margin: 0 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .mk--open .mk-svg { animation: none; }
  * { transition-duration: .01ms !important; }
}
