@import url("/v5-scrollbars.css?v=2");
:root {
  color-scheme: light;
  --bg: #f3f0f9;
  --surface: #fffdfd;
  --ink: #281e3b;
  --muted: #5d526d;
  --line: #e1d8eb;
  --accent: #6044a7;
  --wash: #ece3fa;
  --moss: #416451;
  --moss-wash: #e7eee3;
  --surface2: var(--wash);
  --accent-soft: var(--wash);
  --accent-ink: var(--surface);
  --good: var(--moss);
  --good-bg: var(--moss-wash);
  --bad: #9c3b48;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #191624;
    --surface: #262134;
    --ink: #f6effa;
    --muted: #cec1dc;
    --line: #4a3f57;
    --accent: #bca6f2;
    --wash: #3d3154;
    --moss: #b8dac4;
    --moss-wash: #294234;
    --bad: #ff9ba8;
    --icon-filter: invert(1);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #191624;
  --surface: #262134;
  --ink: #f6effa;
  --muted: #cec1dc;
  --line: #4a3f57;
  --accent: #bca6f2;
  --wash: #3d3154;
  --moss: #b8dac4;
  --moss-wash: #294234;
  --bad: #ff9ba8;
  --icon-filter: invert(1);
}
* { box-sizing:border-box }
[hidden] { display:none !important }
body { margin:0; background:var(--bg); color:var(--ink); font:600 1rem/1.5 "Golos Text",system-ui,sans-serif }
.shell { width:min(100%,940px); margin:0 auto; padding:22px clamp(16px,4vw,36px) 48px }
.back { display:inline-flex; min-height:44px; align-items:center; color:var(--accent); text-decoration:none }
h1,h2,h3,p { margin:0; overflow-wrap:anywhere }
h1 { font-size:clamp(1.65rem,4.3vw,3rem); line-height:1.13; margin:18px 0 24px }
h2 { font-size:clamp(1.25rem,3vw,1.65rem); line-height:1.2 }
h3 { font-size:1.04rem; line-height:1.25 }
p { color:var(--muted); font-weight:500 }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:22px }
.topic { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:24px; padding:clamp(18px,5vw,34px) }
.topic-body { min-width:0; display:grid; justify-items:start; gap:12px }
.topic-mark { display:grid; place-items:center; width:clamp(92px,23vw,185px); aspect-ratio:1; border-radius:34%; background:var(--wash); color:var(--accent); font-size:clamp(2rem,6vw,4rem); font-weight:750; white-space:nowrap }
.topic-mark img { width:67%; height:auto; filter:var(--icon-filter,none) }
.topic-list { display:grid; gap:14px; margin-top:18px }
.oxygen-modes { margin-top:24px }
.oxygen-modes h2 { margin-bottom:8px }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px }
.button { display:inline-flex; min-height:44px; align-items:center; justify-content:center; padding:8px 15px; border-radius:13px; border:1px solid var(--line); background:var(--surface); color:var(--ink); font:inherit; text-align:center; text-decoration:none; cursor:pointer }
.button:hover,.button[aria-current="page"] { background:var(--wash) }
.button.primary { background:var(--accent); color:var(--surface); border-color:var(--accent) }
.button:disabled { cursor:default; opacity:.7 }
a:focus-visible,button:focus-visible { outline:3px solid var(--accent); outline-offset:3px }
.progress-note,.entry-description { color:var(--muted); font-size:.92rem }
.reserve-entry { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 22px; margin-top:13px; text-decoration:none; color:var(--moss); background:var(--moss-wash) }
.entry-description { display:block }
.reserve-head { display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center; justify-content:space-between; margin:16px 0 10px }
.reserve-head h1 { margin:0 }
.balance { border:1px solid var(--line); border-radius:14px; padding:6px 12px; background:var(--surface) }
#reserveNav { margin:14px 0 }
.reserve-picture { position:relative; isolation:isolate; overflow:hidden; margin:0; border:1px solid var(--line); border-radius:20px; background:var(--moss-wash) }
.reserve-picture img { display:block; width:100%; height:auto }
.reserve-picture .map-layer { position:absolute; inset:0; pointer-events:none }
.reserve-picture .reserve-pet { position:absolute; width:24%; left:42%; bottom:5%; pointer-events:none }
.map-pin { position:absolute; top:var(--y); left:var(--x); width:44px; height:44px; display:grid; place-items:center; transform:translate(-50%,-50%); border-radius:50% }
.map-pin span { width:17px; height:17px; border:3px solid #fff2ca; border-radius:50%; background:#734b9d; box-shadow:0 0 0 2px #51376899 }
.map-pin:hover span,.map-pin:focus-visible span { background:#e2a33d }
.reserve-territories { margin:12px 0 }
.territory { padding:clamp(16px,3vw,26px) }
.territory header,.collection-card { display:grid; gap:7px }
.territory-panorama { margin:14px 0 }
.reserve-zone { margin-top:16px }
.reserve-zone h3 { margin-bottom:6px }
.reserve-entry-text { margin:8px 0; border:1px solid var(--line); border-radius:12px; padding:0 12px }
.reserve-entry-text summary,.study-rules summary,.reference-card summary { min-height:44px; padding:10px 0; cursor:pointer }
.reserve-entry-text p { margin-bottom:12px }
.territory>p+p,.territory>h2+p { margin-top:6px }
.territory dd { margin:0 0 12px }
.item-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:8px; margin:10px 0 16px }
.territory .item-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
.item { border:1px solid var(--line); border-radius:14px; padding:12px; display:grid; gap:9px }
.item h3:has(.item-art) { display:flex; align-items:center; gap:8px }
.item-art { flex:none; width:24px; height:24px }
.item button { justify-self:start }
.collection-card { padding:16px; margin:10px 0 }
.reserve .section-title { margin:20px 0 8px }
.reserve .foot-link { display:inline-flex; margin-top:16px }
.oxygen-study #studyStatus:empty { display:none }
.oxygen-study #studyStatus { margin:10px 0 }
.study-panel { margin-top:14px; padding:clamp(14px,3.6vw,26px) }
.study-panel h2+p,.study-panel h3+p { margin-top:5px }
.study-panel h3 { margin-top:16px }
.study-panel .actions,.study-rules,.study-result { margin-top:12px }
.study-setting { min-height:44px; display:inline-flex; align-items:center; gap:7px }
.study-setting input { width:19px; height:19px; accent-color:var(--accent) }
.round-top { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-bottom:16px }
#roundSteps { display:flex; list-style:none; padding:0; margin:0; gap:4px }
#roundSteps li { display:grid; place-items:center; width:24px; height:24px; border-radius:6px; border:1px solid var(--line); font-size:.8rem }
#roundSteps li[aria-current="step"] { border-color:var(--accent); background:var(--wash) }
#roundSteps [data-state="correct"] { color:var(--good); background:var(--good-bg) }
#roundSteps [data-state="wrong"] { color:var(--bad) }
.study-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:16px }
.study-choices .button { min-width:0; position:relative; min-height:60px; padding:8px 24px; overflow-wrap:anywhere }
.study-choices [data-correct="true"] { color:var(--good); background:var(--good-bg); border-color:var(--good) }
.choice-index { position:absolute; left:6px; top:7px; font-size:.72rem; color:var(--muted) }
.study-choices svg,.study-structure svg,.study-compound svg,.reference-answer svg { max-width:100%; height:auto; display:block; margin:auto }
.study-structure { margin-block:12px; text-align:center }
.study-scheme { display:flex; min-width:0; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; margin:14px 0 }
.study-reagents { display:flex; min-width:0; align-items:center; flex-wrap:wrap; justify-content:center; gap:6px }
.study-compound { display:grid; min-width:0; text-align:center; justify-items:center }
.study-compound small { color:var(--muted); font-size:.78rem; max-width:20ch }
.study-arrow { display:grid; justify-items:center; gap:4px; width:min(166px,100%); min-width:68px; text-align:center }
.study-arrow svg { width:min(100%,80px); height:18px }
.study-arrow span { font-size:.78rem; line-height:1.3 }
.study-scheme .qmark { font-size:34px; font-weight:400 }
.study-panel .study-bottom { justify-content:flex-end }
.study-feedback { margin-top:14px; background:var(--wash); border:1px solid var(--line); border-radius:14px; padding:clamp(14px,3vw,22px); text-align:left; color:var(--ink); }
.study-result-title { display:block; font-size:clamp(1.1rem,2.6vw,1.35rem); line-height:1.25; }
.study-feedback[data-result="incorrect"] .study-result-title { color:var(--bad); }
.study-feedback[data-result="correct"] .study-result-title { color:var(--good); }
.study-result-detail { margin-top:12px; }
.study-result-detail + .study-result-detail { padding-top:12px; border-top:1px solid var(--line); }
.study-result-detail h3 { margin:0 0 4px; font-size:.875rem; font-weight:700; }
.study-result-detail p { margin:0; font-size:1rem; line-height:1.55; }
.reference-tools,.reference-tabs,.reference-group { margin-top:16px }
.reference-tabs img { width:24px; height:24px; filter:var(--icon-filter,none) }
.reference-tools { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:end; gap:12px; }
.reference-tools label { display:grid; gap:4px; min-width:0; font-size:.85rem; font-weight:650; }
.reference-tools :is(input,select) { width:100%; max-width:100%; min-height:44px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--ink); font:inherit; padding:5px 10px }
.reference-group h2 { margin:24px 0 10px; font-size:1.1rem; }
.reference-card { padding:0 clamp(12px,3vw,22px) 16px; overflow-wrap:anywhere; }
.reference-card > summary { padding-block:14px; line-height:1.4; }
.reference-card > :is(p,ul) { line-height:1.55; }
.reference-card .study-scheme { padding:10px 6px; border-radius:12px; background:var(--wash); }
.reference-card .study-compound small { font-size:.83rem; }
@media(max-width:620px) { .reference-tools { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .reference-tools button { grid-column:1/-1; justify-self:start; }
}
@media(max-width:380px) { .reference-tools { grid-template-columns:minmax(0,1fr); } }
.reference-card:not([open]) { padding-bottom:0 }
.reference-card ul { margin:4px 0 10px; color:var(--muted) }
.reference-answer { margin:10px 0; color:var(--good) }
.study-practice { width:min(720px,calc(100vw - 24px)); max-width:none; max-height:calc(100dvh - 24px); overflow:auto }
.study-practice h2 { margin-bottom:6px }
.study-practice .study-bottom { justify-content:flex-end; margin-top:12px }
.acceptance #acceptanceStatus:empty { display:none }
.acceptance-profiles,#acceptanceTopics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); gap:12px; margin-top:15px }
.acceptance-profiles article,#acceptanceTopics article { border:1px solid var(--line); border-radius:14px; padding:12px }
.acceptance-profiles h3,#acceptanceTopics h3 { margin:0 }
.acceptance-profiles .actions,#acceptanceTopics .actions { margin-top:7px }
.acceptance-checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; margin-top:12px }
.acceptance-checks div { display:flex; gap:8px; align-items:center; min-height:28px }
.acceptance-checks input { width:18px; height:18px; margin:0; flex:none }
.acceptance-checks a { color:var(--accent); text-decoration-color:var(--line); text-underline-offset:3px }
.acceptance-notes { display:grid; gap:8px; margin-top:16px }
.acceptance-notes label { font-weight:650 }
.acceptance-notes textarea { width:100%; min-width:0; max-width:100%; resize:vertical; padding:10px 12px; font:inherit; color:var(--ink); background:var(--bg); border:1px solid var(--line); border-radius:10px }
.acceptance-notes textarea:focus-visible { outline:2px solid var(--accent); outline-offset:2px }
.acceptance-notes p:empty,#acceptanceResetStatus:empty { display:none }
@media(max-width:560px){ .acceptance-checks { grid-template-columns:1fr } }
.acceptance-checks input,.acceptance-audio-controls input { accent-color:var(--accent) }
.acceptance-compare { margin-top:12px }
.acceptance-compare summary { cursor:pointer; font-weight:650 }
.acceptance-compare img { display:block; width:100%; margin-top:8px; border-radius:10px }
.acceptance-compare .button { margin-top:8px }
.acceptance-profiles article:has(.acceptance-compare[open]) { grid-column:1/-1 }
.acceptance-audio-controls,.acceptance-audio-controls label { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center }
.acceptance #acceptanceAudioStatus:empty { display:none }
.acceptance-audio-controls { margin-top:12px }
@media (max-width:500px) {
  .topic { grid-template-columns:minmax(0,1fr) 64px; gap:9px }
  .topic-mark { width:64px; font-size:1.6rem; align-self:start }
  .topic .actions { grid-column:1 / -1 }
  .territory .item-grid { grid-template-columns:1fr }
  .study-choices { grid-template-columns:1fr }
}
