/* Мурко і Сніжок. Подорож Україною: листівки, карта маршруту, вечірнє світло, вказівник, екран свята, мініігри.
   Загальні стилі — у engine/engine.css. */
@font-face { font-family: "Nunito"; font-weight: 600; src: url(fonts/nunito-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 800; src: url(fonts/nunito-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 600; src: url(fonts/nunito-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF, U+2212, U+25B6; }
@font-face { font-family: "Nunito"; font-weight: 800; src: url(fonts/nunito-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF, U+2212, U+25B6; }
html, body { font-weight: 600; background: #10160c; }
b, strong, h1, h2, h3 { font-weight: 800; }
#stage { background: #1d2a14; }

#start { background: radial-gradient(ellipse at center, rgba(20,30,10,.1), rgba(10,16,6,.66)); }
#start h1 small { display: block; font-size: 60px; margin-top: 6px; color: #fff; }
#start h2 { text-shadow: 0 2px 10px rgba(0,0,0,.8); }
#start .sbird { position: absolute; top: 26px; left: 50%; height: 170px; transform: translateX(-50%) rotate(-4deg); filter: drop-shadow(0 8px 14px rgba(0,0,0,.4)); }
#start h1 { margin-top: 90px; }
#dialog .text b { color: #ffe39a; }
.char.prop { transition: opacity .35s ease; }
.achoices { display: flex; gap: 18px; margin-top: 14px; }
.achoices .btn { font-size: 26px; padding: 10px 26px; }
.fr { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1; font-weight: 800; margin: 0 .12em; font-size: .86em; }
.fr i { font-style: normal; padding: 0 .12em; }
.fr i:first-child { border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.fr i:last-child { padding-top: 2px; }

/* ---------- вечірнє світло й захід сонця ---------- */
#tint { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s, background 1.2s; }
#tint.on { opacity: 1; }
#tint.eve { background: linear-gradient(180deg, rgba(60,50,140,.42), rgba(255,140,80,.18) 55%, rgba(40,30,80,.32)); mix-blend-mode: multiply; }
#tint.sunset { background: linear-gradient(180deg, rgba(255,120,60,.42), rgba(255,170,90,.2) 50%, rgba(120,50,90,.28)); mix-blend-mode: multiply; }
#stage.eve .char:not(.prop) { filter: brightness(.93) saturate(.95); }
#stage.eve .char.dim { filter: brightness(.68) saturate(.85); }

/* ---------- написи на вказівнику (bgtrail, координати сцени 1600×900) ---------- */
#deco { position: absolute; inset: 0; pointer-events: none; }
#deco .jars { position: absolute; left: 0; top: 0; }
#deco .sign { position: absolute; display: flex; align-items: center; justify-content: center; font-size: 25px; font-weight: 800; color: #4a2a10;
  text-shadow: 0 1px 0 rgba(255,240,210,.6); letter-spacing: .5px; }
#deco .s1 { left: 1252px; top: 190px; width: 150px; height: 44px; transform: rotate(-4deg); }
#deco .s2 { left: 1238px; top: 266px; width: 168px; height: 46px; transform: rotate(-2deg); }
#deco .s3 { left: 1260px; top: 334px; width: 126px; height: 48px; transform: rotate(5deg); }
#deco .st { left: 1032px; top: 409px; width: 100px; height: 42px; transform: rotate(-1deg); font-size: 22px; }

/* ---------- екран на святі (bgsea) ---------- */
#screen { position: absolute; left: 656px; top: 178px; width: 324px; height: 216px; pointer-events: none; display: none; overflow: hidden; }
#screen.on { display: block; }
#screen .ss { position: absolute; inset: 6px; background: #fffaf0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; animation: pop .4s ease; }
#screen .ss img { width: 92%; height: 70%; object-fit: cover; border-radius: 6px; }
#screen .ss b { color: #2a3a6a; font-size: 22px; text-align: center; line-height: 1.1; }

/* ---------- листівка на весь екран ---------- */
#postcard { z-index: 45; flex-direction: column; gap: 26px; background: rgba(10,14,6,.66); }
#postcard .pc { width: 1440px; height: 700px; display: flex; gap: 34px; padding: 30px; border-radius: 14px; position: relative; animation: cardIn .6s ease;
  background: radial-gradient(ellipse at 60% 40%, #fffaf0, #f4e6c6 70%, #e6cf9d); box-shadow: 0 24px 60px rgba(0,0,0,.6); color: #3e2a14; transform: rotate(-.8deg); }
@keyframes cardIn { from { transform: rotate(-8deg) scale(.5); opacity: 0; } to { transform: rotate(-.8deg) scale(1); opacity: 1; } }
#postcard .pcimg { flex: none; width: 720px; display: flex; align-items: center; justify-content: center; }
#postcard .pcimg img { max-width: 100%; max-height: 100%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
#postcard .pctext { flex: 1; display: flex; flex-direction: column; justify-content: center; border-left: 3px dashed rgba(120,80,40,.35); padding-left: 34px; }
#postcard .pct { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 29px; line-height: 1.4; }
#postcard .pct p { margin: 0 0 12px; }
#postcard .pct .ps { font-size: 25px; color: #6b4a22; }
#postcard .pcs { font-family: Georgia, serif; font-style: italic; font-size: 29px; text-align: right; margin-top: 8px; color: #6b3a10; }
#postcard .stamp { position: absolute; top: 26px; right: 30px; width: 86px; height: 100px; border: 3px dashed #c0573a; border-radius: 6px;
  background: radial-gradient(circle at 50% 42%, #ffcf6a 0 20%, #ff8f5a 21% 34%, transparent 35%), linear-gradient(#bfe3ff, #e9f6ff 60%, #b5df8a 61%); opacity: .9; }
#postcard.card3 .pct { font-size: 26px; }

/* ---------- карта маршруту ---------- */
#pmap { z-index: 45; background: #2a1d10; }
#pmap .mpaper { position: absolute; inset: 0; width: 1600px; height: 900px; }
#pmap .mbox { position: absolute; left: 330px; top: 162px; width: 940px; height: 634px; }
#pmap .mbox svg { overflow: visible; }
#pmap .mtitle { position: absolute; top: 40px; left: 0; right: 0; text-align: center; font-size: 52px; font-weight: 900; color: #5a2d0c; }
#pmap .msub { position: absolute; top: 112px; left: 0; right: 0; text-align: center; font-size: 30px; color: #7a4a20; }
#pmap .mnext { position: absolute; right: 250px; bottom: 44px; }
/* сторони горизонту біля намальованої троянди вітрів (центр 1430, 740) */
#pmap .mcomp b { position: absolute; font-size: 26px; font-weight: 900; color: #5a2d0c; text-shadow: 0 0 4px #fbf1d8, 0 0 4px #fbf1d8; transform: translate(-50%, -50%); }
#pmap .mcomp .n { left: 1430px; top: 642px; } #pmap .mcomp .s { left: 1430px; top: 842px; }
#pmap .mcomp .w { left: 1330px; top: 740px; } #pmap .mcomp .e { left: 1532px; top: 740px; }
#pmap .mleg { position: absolute; left: 70px; bottom: 70px; display: flex; flex-direction: column; gap: 10px; font-size: 26px; font-weight: 800; color: #5a3410; }
#pmap .mleg div { display: flex; align-items: center; gap: 12px; }
#pmap .mleg i { width: 40px; height: 28px; border-radius: 6px; border: 2px solid rgba(90,52,16,.5); }
.uamap .mzone { opacity: .8; }
.uamap .moutline { fill: none; stroke: #6b3f1a; stroke-width: 3; stroke-linejoin: round; }
.uamap .mriver { fill: none; stroke: #5b9bd5; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.uamap .mroute { fill: none; stroke: rgba(180,50,30,.6); stroke-width: 5; stroke-dasharray: 12 9; stroke-linecap: round; }
.uamap .mroute.now { stroke: #c0392b; stroke-width: 6; }
.uamap .mspot { fill: #c0392b; stroke: #fff6dc; stroke-width: 3; }
.uamap .mring { fill: none; stroke: #c0392b; stroke-width: 5; animation: ring 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { 50% { transform: scale(1.25); opacity: .5; } }
.uamap .mlbl { font-size: 30px; font-weight: 900; fill: #5a2d0c; paint-order: stroke; stroke: #fbf1d8; stroke-width: 6px; }
.uamap .mpinbg { fill: #fffaf0; stroke: rgba(90,52,16,.35); stroke-width: 1.5; }
.uamap .mpinhead { fill: #d0392b; stroke: #7a1a10; stroke-width: 1.5; }
.uamap .mpin { filter: drop-shadow(0 4px 4px rgba(0,0,0,.3)); }
.uamap .mpin.fresh { animation: pinIn .9s ease; transform-box: fill-box; transform-origin: center; }
@keyframes pinIn { 0% { opacity: 0; scale: 2.2; } 60% { opacity: 1; scale: .9; } 100% { scale: 1; } }
.uamap .mlegend text { font-size: 24px; font-weight: 800; fill: #3a2a10; }

/* ---------- ефекти ---------- */
#fx .drop { position: absolute; width: 16px; height: 22px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 35%, #fff, #8fd0ff 45%, #3d8fd6); animation: fly .9s ease-out forwards; }
#fx .dirt { position: absolute; width: 18px; height: 14px; border-radius: 45%; background: radial-gradient(circle at 35% 35%, #b08a5a, #6a4a2a); animation: fly .9s ease-out forwards; }
@keyframes fly { 0% { transform: translate(0,0) scale(.6); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) translateY(60px) scale(1); opacity: 0; } }
#fx .mound { position: absolute; width: 220px; height: 60px; margin-left: -110px; border-radius: 50% 50% 10% 10%; background: radial-gradient(ellipse at 50% 30%, #a07a4a, #6a4a2a 70%); transition: opacity 1s; animation: moundIn .5s ease; }
@keyframes moundIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
#fx .pframe { position: absolute; inset: 60px 120px 200px; border: 6px solid rgba(255,255,255,.9); border-radius: 12px; box-shadow: 0 0 0 2000px rgba(0,0,0,.18); animation: pframe .9s ease; }
@keyframes pframe { from { transform: scale(1.1); opacity: 0; } 30% { opacity: 1; } to { opacity: 0; } }
#fx .conf { position: absolute; top: -20px; width: 14px; height: 22px; border-radius: 3px; animation: conf 2.6s ease-in forwards; }
@keyframes conf { to { transform: translateY(980px) rotate(var(--r)); } }
#fx .ffly { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff6a0; box-shadow: 0 0 12px 6px rgba(255,240,140,.7); animation: ffly 4s ease-in-out infinite; opacity: 0; }
@keyframes ffly { 0%,100% { opacity: 0; transform: translate(0,0); } 30% { opacity: 1; } 50% { transform: translate(30px,-26px); } 70% { opacity: .8; } }

/* =================== мініігри =================== */
#task .body { margin-bottom: 18px; }
#task .sort .pool:empty { min-height: 0; padding: 0; }
#task .order.col .card { font-size: 28px; padding: 10px 16px; }

/* paint */
.paint { display: flex; flex-direction: column; gap: 30px; align-items: center; }
.pcard { width: 1100px; padding: 34px 44px; border-radius: 16px; background: radial-gradient(ellipse at 60% 40%, #fffaf0, #f2e2bd); color: #3e2a14;
  font-family: Georgia, serif; font-style: italic; font-size: 40px; line-height: 1.7; box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.pw { display: inline-block; padding: 0 10px; margin: 0 2px; border-radius: 12px; border: 3px dashed #c9a15a; cursor: pointer; font-style: normal; font-family: "Nunito", sans-serif; font-weight: 800; line-height: 1.3; transition: background .2s; }
.pw.ok { border: 3px solid #2fbf71; } .pw.no { border: 3px solid #e65656; animation: shake .4s; }
.ppal { display: flex; gap: 14px; }
.pbrush { font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 16px; min-width: 190px; border-radius: 18px; border: 3px solid rgba(160,200,255,.4); background: rgba(255,255,255,.07); color: #fff; cursor: pointer; }
.pbrush i { width: 56px; height: 26px; border-radius: 14px; }
.pbrush b { font-size: 24px; } .pbrush small { font-size: 18px; color: #b9cbf0; }
.pbrush.sel { border-color: #ffcf4a; background: rgba(255,207,74,.18); transform: translateY(-4px); }

/* meet / garland: малюнок над рядками */
.npic { position: relative; height: 150px; margin: 0 auto 10px; width: 1200px; }
.npic.meet .mline { position: absolute; left: 120px; right: 120px; top: 104px; height: 6px; background: repeating-linear-gradient(90deg, #cfe0ff 0 18px, transparent 18px 28px); }
.npic.meet .mt { position: absolute; left: 50%; top: -100px; transform: translateX(-50%); font-size: 26px; font-weight: 800; color: #ffe9a8; }
.npic.meet .mtrain { position: absolute; top: 44px; height: 64px; transform: translateX(-90%) scaleX(-1); transition: left 1.2s ease; }
.npic.meet .mbird { position: absolute; top: 4px; height: 78px; transform: translateX(-10%); transition: left 1.2s ease; }
.npic.meet .msp { position: absolute; top: 120px; font-size: 22px; color: #cfe0ff; }
.npic.meet .msp.l { left: 120px; } .npic.meet .msp.r { right: 120px; }
.npic.meet .mpt { position: absolute; top: 94px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: #ffcf4a; box-shadow: 0 0 0 6px rgba(255,207,74,.35); opacity: 0; transition: opacity .4s; }
.npic.meet .mpt.on { opacity: 1; }
.npic.garland { height: 130px; text-align: center; }
.npic.garland .gstring { fill: none; stroke: #cfe0ff; stroke-width: 3; }
.npic.garland .gtie { stroke: #cfe0ff; stroke-width: 2; }
.npic.garland .gitem { opacity: 0; transition: opacity .4s; }
.npic.garland .gitem.on { opacity: 1; }
#task .npic + div .nums { gap: 12px; }
#task .npic + div .nrow { padding: 10px 20px; font-size: 28px; }

/* jars: баночки на поличках */
.sort.jars .zone { border-style: solid; border-color: rgba(200,160,100,.6); background: linear-gradient(180deg, rgba(255,255,255,.03) 0 calc(100% - 22px), #8a5a30 calc(100% - 22px)); border-radius: 18px 18px 6px 6px; }
.sort.jars .zc { flex: 1; align-content: flex-end; justify-content: center; gap: 10px; padding-bottom: 22px; }
.sort.jars .chip { position: relative; width: 124px; min-height: 124px; padding: 26px 6px 10px; border-radius: 22px 22px 30px 30px; text-align: center;
  background: linear-gradient(180deg, rgba(200,235,255,.55), rgba(110,180,230,.85) 40%, rgba(60,130,200,.95)); border: 3px solid rgba(255,255,255,.75); color: #0b1a3a;
  display: flex; align-items: center; justify-content: center; font-size: 19px; line-height: 1.15; box-shadow: inset 0 0 0 4px rgba(255,255,255,.2); }
.sort.jars .chip .jcap { position: absolute; top: -10px; left: 24px; right: 24px; height: 20px; border-radius: 6px; background: #a87a4a; border: 2px solid #6a4a2a; }
.sort.jars .chip .jlab { background: #fffaf0; border-radius: 8px; padding: 5px 5px; max-width: 108px; overflow-wrap: anywhere; hyphens: auto; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.sort.jars .chip.sel { box-shadow: 0 0 0 5px #ffcf4a; }
.sort.jars .chip.ok .jlab { background: #c8f2d8; } .sort.jars .chip.no .jlab { background: #ffd0d0; }

/* passport */
.passport { display: flex; gap: 30px; align-items: stretch; height: 100%; }
.pform { flex: 1.25; background: #fbf3df; color: #3e2a14; border-radius: 16px; padding: 12px 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.pform .ph { font-size: 24px; text-align: center; color: #7a4a20; margin-bottom: 4px; }
.pform .ph b { display: block; font-size: 30px; color: #2a5a2a; }
.pf { display: flex; align-items: center; gap: 14px; border-bottom: 2px dashed rgba(120,80,40,.35); padding: 3px 6px; min-height: 56px; border-radius: 10px; cursor: pointer; }
.pf .pl { width: 190px; font-size: 23px; font-weight: 800; color: #6b4a22; }
.pf .pv { flex: 1; }
.pf.hover { background: rgba(255,207,74,.3); }
.pf .chip { cursor: default; font-size: 22px; padding: 6px 12px; }
.ppool { flex: 1; display: flex; flex-wrap: wrap; gap: 12px; align-content: center; justify-content: center; }
.ppool .chip { font-size: 23px; padding: 10px 14px; }
.chip.used { cursor: default; }

/* web */
.web { position: relative; width: 1180px; height: 480px; margin: 0 auto; }
.web .wsvg { position: absolute; inset: 0; overflow: visible; }
.warrow { stroke: #ffcf4a; stroke-width: 6; stroke-linecap: round; }
.warrow.ok { stroke: #7be0a2; }
.warrow.temp { stroke-dasharray: 10 8; }
.wnode { position: absolute; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%; border: 4px solid rgba(160,200,255,.6); background: rgba(240,248,255,.95);
  cursor: pointer; font-family: inherit; padding: 0; touch-action: none; display: flex; align-items: center; justify-content: center; }
.wnode img { max-width: 104px; max-height: 84px; pointer-events: none; margin-top: -16px; }
.wnode span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 22px; font-weight: 800; color: #0b1030; background: #ffe9a8; padding: 2px 12px; border-radius: 10px; white-space: nowrap; pointer-events: none; }
.wnode.sel { border-color: #ffcf4a; box-shadow: 0 0 0 6px rgba(255,207,74,.45); }
.wcnt { position: absolute; left: 0; top: -4px; font-size: 24px; color: #cfe0ff; }

/* strip */
.strip { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 18px; }
.strip .stot { font-size: 28px; color: #ffe9a8; margin-bottom: 52px; }
.sbar { position: relative; display: flex; height: 76px; border: 4px solid #cfe0ff; border-radius: 14px; overflow: visible; }
.sseg { height: 100%; border-right: 3px dashed #cfe0ff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: #cfe0ff; cursor: pointer; transition: background .2s; }
.sseg:last-of-type { border-right: none; }
.sseg.on { background: #ffcf4a; color: #1b1030; }
.sseg.known { background: #7be0a2; color: #0b2a14; cursor: default; }
.sbar.ok { border-color: #7be0a2; }
.swag { position: absolute; top: -58px; height: 52px; transform: translateX(-60%) scaleX(-1); transition: left .5s ease; pointer-events: none; }
.sctrl { display: flex; gap: 16px; align-items: center; font-size: 24px; color: #cfe0ff; min-height: 50px; }

/* wagons */
.wagons { display: flex; flex-direction: column; gap: 26px; align-items: center; }
.wlocos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.wloco { display: flex; align-items: center; gap: 6px; min-width: 520px; padding: 8px; border-radius: 18px; cursor: pointer; }
.wloco.hover { background: rgba(255,207,74,.15); }
.wl { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 22px 12px 24px; border-radius: 10px; background: #3f7a4a; border: 3px solid #a7e0b0; font-size: 30px; }
.wl::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: -14px; height: 14px; background: radial-gradient(circle at 18px 7px, #222 7px, transparent 8px) 0 0 / 50% 100% repeat-x; }
.wpre { color: #ffe9a8; font-weight: 800; } .wstem { color: #fff; font-weight: 800; }
.wslot { min-width: 110px; height: 60px; border: 3px dashed rgba(160,200,255,.6); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.wloco.done .wslot { border: none; }
.wslot .on { background: #ffcf4a; color: #1b1030; font-size: 30px; font-weight: 800; padding: 8px 16px; border-radius: 10px; animation: pop .3s ease; }
.wpost { font-size: 28px; color: #cfe0ff; }
.wpool { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.wcar { font-size: 30px; padding: 10px 22px; background: #ffe9a8; border-radius: 10px; position: relative; }
.wcar.used { opacity: .3; pointer-events: none; }

/* named: два віконця */
.nums.named .nrow input { width: 120px; }
.nums.named .nrow .unit { min-width: 50px; }

/* altimeter */
.alti { display: flex; gap: 40px; justify-content: center; align-items: center; }
.ascale { position: relative; width: 720px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(120,170,110,.18)); border-radius: 18px; }
.atick { position: absolute; left: 0; width: 26px; height: 2px; background: rgba(207,224,255,.5); }
.atick.big { width: 46px; height: 3px; background: #cfe0ff; }
.atick span { position: absolute; left: 56px; top: -16px; font-size: 22px; color: #cfe0ff; white-space: nowrap; }
.alane { position: absolute; left: 150px; right: 14px; border-left: 4px solid #cfe0ff; border-bottom: 3px solid #cfe0ff; }
.ascale.armed { cursor: crosshair; box-shadow: 0 0 0 4px rgba(255,207,74,.5); }
.agrid { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed rgba(207,224,255,.18); }
.aguide { position: absolute; left: 0; right: 0; height: 0; border-top: 3px dashed #ffcf4a; display: none; pointer-events: none; }
.aguide.on { display: block; }
.aguide span { position: absolute; right: 4px; top: -36px; background: #ffcf4a; color: #1b1030; font-weight: 900; font-size: 22px; padding: 2px 10px; border-radius: 8px; }
.apeak { position: absolute; bottom: 0; height: 0; transition: height .7s cubic-bezier(.3,1.2,.5,1); pointer-events: none; }
.apeak i { position: absolute; inset: 0 14px; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, #fff 0 8px, #8a6a4a 8px, #6f8f5a 75%, #5f7f4c); }
.apeak.lake i { background: linear-gradient(180deg, #d6f0ff 0 8px, #4fa3e0 8px, #2a6fb0); }
.apeak.no i { background: linear-gradient(180deg, #ffb0b0, #e65656); }
.apeak b { position: absolute; left: 50%; top: -32px; transform: translateX(-50%); white-space: nowrap; font-size: 20px; font-weight: 900; color: #bff3d2; }
.apeak.no b { color: #ffb0b0; }
.apeak span { position: absolute; left: 50%; bottom: -36px; transform: translateX(-50%); white-space: nowrap; font-size: 19px; font-weight: 900; color: #eaf1ff; }
.aflags { display: flex; flex-direction: column; gap: 14px; width: 440px; }
.aflag { font-family: inherit; text-align: left; font-size: 22px; padding: 10px 16px; cursor: pointer; }
.aflag.used { opacity: .5; }

/* echo */
.echo { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.esky { position: relative; width: 1200px; height: 220px; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #a8d8ff, #e6f4ff); }
.esky svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.eshout { position: absolute; left: 30px; top: 20px; font-size: 30px; font-weight: 800; color: #1b3a6a; }
.eback { position: absolute; right: 60px; top: 70px; font-size: 34px; font-weight: 900; color: #fff; text-shadow: 0 2px 8px rgba(0,40,80,.6); opacity: 0; }
.eback.go { animation: echo 1.3s ease; }
@keyframes echo { 0% { opacity: 0; transform: translateX(-500px) scale(.6); } 40% { opacity: 1; transform: translateX(0) scale(1.1); } 100% { opacity: .3; transform: scale(1); } }
.erows .eq { font-size: 30px; text-align: center; margin-bottom: 14px; }
.eall { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; font-size: 28px; }

/* names */
.names { display: flex; gap: 22px; align-items: center; }
.ncol { display: flex; flex-direction: column; gap: 12px; }
.ncol .opt { font-size: 23px; padding: 10px 16px; }
.nname { min-width: 200px; font-weight: 800; }
.nexp { width: 470px; }
.nmap { flex: none; }
.uamap .ndot { fill: #ffcf4a; stroke: #c0392b; stroke-width: 6; animation: ring 1.4s ease-in-out 2; transform-box: fill-box; transform-origin: center; }
.uamap .nlbl { font-size: 46px; font-weight: 900; fill: #5a2d0c; paint-order: stroke; stroke: #fff; stroke-width: 10px; }
.nmap svg { background: #fbf1d8; border-radius: 14px; padding: 6px; }

/* mapclick */
.mclick { text-align: center; }
.mclick svg { background: #fbf1d8; border-radius: 16px; }
.uamap .mpart { fill: rgba(255,255,255,0); stroke: none; cursor: pointer; transition: fill .2s; }
.uamap .mpart:hover { fill: rgba(255,207,74,.35); }
.uamap .mpart.ok { fill: rgba(47,191,113,.45); } .uamap .mpart.no { fill: rgba(230,86,86,.45); }
.uamap .mpname { font-size: 34px; font-weight: 900; fill: #3a2a10; pointer-events: none; paint-order: stroke; stroke: #fbf1d8; stroke-width: 6px; }

/* redbook */
.redbook { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.rbook { display: flex; width: 1100px; min-height: 200px; border-radius: 12px; background: #b3261e; padding: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.rbook.hover { box-shadow: 0 0 0 6px #ffcf4a; }
.rpage { flex: 1; background: #fbf3df; border-radius: 6px; padding: 10px 14px; color: #6a1a10; display: flex; flex-direction: column; gap: 8px; }
.rpage.l { margin-right: 4px; } .rpage.r { margin-left: 4px; }
.rtitle, .rnote { font-size: 22px; font-weight: 900; text-align: center; }
.rslots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rpool { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 1240px; }
.rcard { width: 120px; padding: 6px 4px 4px; border-radius: 14px; background: #eaf1ff; color: #0b1030; text-align: center; cursor: grab; touch-action: none; border: 3px solid transparent; }
.rcard img { height: 66px; max-width: 108px; object-fit: contain; pointer-events: none; }
.rcard span { display: block; font-size: 17px; font-weight: 800; line-height: 1.1; min-height: 36px; display: flex; align-items: center; justify-content: center; }
.rcard.sel { border-color: #ffcf4a; box-shadow: 0 0 0 4px rgba(255,207,74,.4); }
.rcard.no { background: #ffd0d0; }
.rpage .rcard { width: 112px; padding: 4px; background: #fff; cursor: default; }
.rpage .rcard img { height: 52px; }
.rpage .rcard span { font-size: 15px; min-height: 30px; }

/* chest */
.chestg { display: flex; gap: 30px; align-items: center; }
.cleft { position: relative; width: 340px; height: 500px; flex: none; }
.cbox { position: absolute; left: 30px; bottom: 0; width: 280px; }
.cstone { position: absolute; left: 50%; top: 0; transform: translateX(-50%); text-align: center; }
.cstone img { height: 150px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.4)); }
.cstone span { display: block; font-size: 30px; font-weight: 900; color: #ffe9a8; }
.cstone.pop { animation: stoneUp .6s ease; }
@keyframes stoneUp { from { transform: translate(-50%, 160px) scale(.4); opacity: 0; } to { transform: translate(-50%, 0) scale(1); opacity: 1; } }
.cshelves { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cshelf { font-family: inherit; min-height: 150px; border-radius: 16px; border: 3px solid rgba(200,160,100,.6); background: linear-gradient(180deg, rgba(255,255,255,.06) 0 calc(100% - 16px), #8a5a30 calc(100% - 16px)); color: #fff; cursor: pointer; padding: 10px 12px 22px; display: flex; flex-direction: column; justify-content: space-between; }
.cshelf .cu { font-size: 23px; font-weight: 800; }
.cshelf .cs { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; }
.cshelf .cs img { height: 60px; } .cshelf .cs span { font-size: 20px; color: #bff3d2; font-weight: 800; }
.cshelf:hover { background-color: rgba(255,207,74,.12); }
.cshelf.ok { border-color: #7be0a2; cursor: default; }
.cshelf.no { border-color: #ff8f8f; }

/* hbars */
.hbars text { font-family: inherit; fill: #eaf1ff; }
.hbars .hgrid { stroke: rgba(255,255,255,.14); } .hbars .haxis { stroke: #cfe0ff; stroke-width: 3; }
.hbars .hnum { font-size: 22px; } .hbars .hname { font-size: 28px; font-weight: 800; } .hbars .hval { font-size: 28px; font-weight: 900; }
.hbars .hcap { font-size: 22px; fill: #9fb6e8; }
.hbars .hslot { fill: rgba(255,207,74,.07); stroke: #ffcf4a; stroke-width: 3; stroke-dasharray: 10 8; }

/* pie */
.pie { display: flex; gap: 60px; align-items: center; justify-content: center; }
.psvg .pp { fill: rgba(255,255,255,.12); stroke: #0b1030; stroke-width: 3; transition: fill .3s; cursor: pointer; }
.psect.hover .pp { fill: rgba(255,207,74,.35); }
.psvg .plbl { font-family: inherit; font-size: 24px; font-weight: 900; fill: #eaf1ff; pointer-events: none; }
.psect.ok .plbl { fill: #1b1030; }
.pchips { display: flex; flex-direction: column; gap: 16px; min-width: 220px; }

/* deck */
.deck { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.dbig { width: 620px; height: 349px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.4); background: #fffaf0; }
.dbig.small { width: 560px; height: 315px; }
.sl { position: relative; width: 100%; height: 100%; background: #fffaf0; color: #2a3a6a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; overflow: hidden; }
.sl img { width: 88%; height: 66%; object-fit: cover; border-radius: 6px; }
.sl .slmap { width: 80%; height: 70%; display: flex; align-items: center; justify-content: center; }
.sl .slmap svg { width: 100%; height: 100%; }
.sl .slt { font-size: 32px; font-weight: 900; text-align: center; line-height: 1.1; }
.sl.title { background: linear-gradient(135deg, #5fb3ff, #ffcf4a); color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.sl.title .slt { font-size: 40px; padding: 0 20px; }
.dfilm { display: flex; gap: 10px; }
.dthumb { position: relative; width: 148px; height: 104px; border-radius: 8px; overflow: hidden; border: 3px solid rgba(160,200,255,.5); cursor: grab; touch-action: none; flex: none; }
.dthumb .sl .slt { font-size: 16px; } .dthumb .sl.title .slt { font-size: 15px; padding: 0 6px; }
.dthumb .sl img { height: 54%; }
.dthumb .sl .slmap { height: 54%; }
.dthumb i { position: absolute; right: 3px; top: 2px; font-size: 14px; font-style: normal; }
.dthumb.fixed { cursor: default; opacity: .85; }
.dthumb.cur { box-shadow: 0 0 0 4px rgba(255,207,74,.6); }
.dthumb.drag { opacity: .5; border-style: dashed; }
.dthumb.ok { border-color: #7be0a2; } .dthumb.no { border-color: #ff8f8f; }
/* три варіанти слайда */
.opts.grid .opt { padding: 10px; }
.msl { width: 360px; height: 220px; background: #fffaf0; color: #2a3a6a; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 8px; gap: 4px; }
.msl b { font-size: 24px; }
.msl.wall p { margin: 0; font-size: 11px; line-height: 1.25; text-align: justify; }
.msl.good img { width: 100%; height: 92px; object-fit: cover; border-radius: 4px; }
.msl.good ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.25; align-self: stretch; }
.msl.ugly { background: #fff; }
.msl.ugly img { height: 90px; transform: rotate(-18deg); }
.msl.ugly b, .msl.ugly p { color: #ffe95a; font-size: 26px; margin: 0; }
/* effect */
.effect { display: flex; gap: 40px; align-items: center; justify-content: center; }
.effect .opts.col { max-width: 520px; }
.effect .sl img { object-fit: contain; }
.fx-fade { animation: fxFade 1.4s ease; }
@keyframes fxFade { from { opacity: 0; } to { opacity: 1; } }
.fx-spin { animation: fxSpin 1.6s ease; }
@keyframes fxSpin { 0% { transform: scale(.2) rotate(0); } 25% { transform: translateY(-60px) rotate(360deg); } 50% { transform: translateY(30px) rotate(-200deg) scale(1.3); } 75% { transform: translateY(-40px) rotate(140deg); } 100% { transform: none; } }
.fx-fly { animation: fxFly 1.8s ease; }
@keyframes fxFly { 0% { transform: translateX(-700px); } 30% { transform: translateX(700px); } 60% { transform: translateY(-500px); } 100% { transform: none; } }
/* картинки всередині перетягуваних карток не перетягуються самі */
.dthumb img, .dthumb svg, .rcard img, .wnode img, .chip img { pointer-events: none; -webkit-user-drag: none; user-select: none; }

/* колаж слайдів на екрані свята */
#screen .collage { position: absolute; inset: 4px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; gap: 10px 8px; padding: 10px 8px; background: #fffaf0; }
#screen .ph { background: #fff; padding: 3px 3px 9px; box-shadow: 0 3px 6px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; overflow: hidden; animation: phIn .5s ease backwards; }
#screen .ph img { width: 100%; height: 100%; object-fit: cover; }
#screen .ph .slmap { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
#screen .ph .slmap svg { width: 100%; height: 100%; }
#screen .ph.txt { background: linear-gradient(135deg, #5fb3ff, #ffcf4a); padding: 4px; }
#screen .ph.txt b { color: #fff; font-size: 11px; line-height: 1.1; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
@keyframes phIn { from { opacity: 0; scale: 1.8; } }
#screen .ss .slmap { width: 92%; height: 70%; display: flex; align-items: center; justify-content: center; }
#screen .ss .slmap svg { width: 100%; height: 100%; }

.sort.jars .chip .jlab small { display: block; font-size: 14px; }

/* спалах на зчіпках вагончиків (bgnarrow_go) */
#deco .coup { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 4px solid #ffcf4a;
  box-shadow: 0 0 14px 6px rgba(255,207,74,.75), inset 0 0 10px rgba(255,207,74,.6); opacity: 0; animation: coup 1s ease-out 4 forwards; }
@keyframes coup { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: 1; transform: scale(1.1); } 100% { opacity: .55; transform: scale(1); } }
