/* EscapeVerse → Angielski (klasy 1-3 i 4-8): dodatki do stylów kompendium (tl3d.css) i escape roomu (escape.css) z Centrum Nauki.
   Kompendium: karty słówek z wymową, rozmowy, kolory i licznik, zegar, czasy, trener czasowników, stopniowanie, fałszywi przyjaciele.
   Kolorystyka stron: .ev-en1 (ciepła, baśniowa) i .ev-en2 (czerwień i granat). Escape roomy: .esc-en1 (zaczarowany zamek, zieleń i złoto),
   .esc-en2 (metro: Londyn żółta linia Circle, Nowy Jork .city-nyc czerwona linia 1). Animacje tylko transform/opacity. */

/* ── Wymowa: przyciski głośnika tylko, gdy urządzenie ma angielski głos (klasa ev-can-say na <html>) ── */
.ev-say, .ev-say-all, .ev-word-snd { display: none; }
.ev-can-say .ev-say { display: inline-grid; }
.ev-can-say .ev-say-all { display: inline-flex; }
.ev-can-say .ev-word-snd { display: block; }
.ev-say { place-items: center; width: 28px; height: 28px; margin-left: .25rem; vertical-align: middle; border-radius: 50%; cursor: pointer;
  font-size: .78rem; color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent); }
.ev-say:hover { background: color-mix(in srgb, var(--acc) 22%, transparent); }
.ev-say:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

/* karty słówek */
.ev-words { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: .55rem; }
.ev-word { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; width: 100%; height: 100%; min-height: 104px;
  padding: .7rem .5rem .6rem; border-radius: 14px; cursor: pointer; text-align: center; font: inherit; color: var(--text);
  background: var(--bg2); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; }
.ev-word:hover { border-color: color-mix(in srgb, var(--acc) 55%, transparent); box-shadow: 0 10px 24px -16px var(--acc); }
.ev-word:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.ev-word .ev-emo { font-size: 2rem; line-height: 1.1; }
.ev-word b { font: 700 1rem/1.2 'Space Grotesk', sans-serif; color: var(--acc); }
.ev-word small { font-size: .78rem; line-height: 1.3; color: var(--muted); }
.ev-word-snd { position: absolute; top: .4rem; right: .5rem; font-size: .7rem; color: var(--muted); opacity: .7; }
.ev-word.pop, .en-num-big.pop { animation: ev-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes ev-pop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* rozmowa */
.ev-chat { display: flex; flex-direction: column; gap: .55rem; margin-bottom: .7rem; }
.ev-msg { max-width: 82%; padding: .6rem .85rem; border-radius: 16px; background: var(--bg2); border: 1px solid var(--border); }
.ev-msg p { margin: 0; font-weight: 600; }
.ev-msg small { display: block; margin-top: .15rem; font-size: .8rem; color: var(--muted); }
.ev-msg-a { align-self: flex-start; border-bottom-left-radius: 4px; }
.ev-msg-b { align-self: flex-end; border-bottom-right-radius: 4px; background: color-mix(in srgb, var(--acc) 10%, var(--bg2)); border-color: color-mix(in srgb, var(--acc) 30%, transparent); }
.ev-say-all { gap: .4rem; }

/* kolory i licznik (1-3) */
.en-sw .ev-word { min-height: 92px; }
.en-sw-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--sw); border: 2px solid color-mix(in srgb, var(--text) 18%, transparent); margin-bottom: .15rem; }
.en-num { text-align: center; }
.en-num-row { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.en-num-btn { width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, var(--bg2)); border: 2px solid color-mix(in srgb, var(--acc) 40%, transparent); }
.en-num-btn:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.en-num-big { min-width: 2.2ch; font: 700 3.4rem/1 'Space Grotesk', sans-serif; color: var(--acc); }
.en-num-word { margin: .4rem 0 .5rem; font-size: 1.35rem; }
.en-num-word b { font-family: 'Space Grotesk', sans-serif; }
.en-num-dots { min-height: 1.6em; margin: 0 auto .7rem; max-width: 22rem; font-size: 1.15rem; line-height: 1.5; letter-spacing: .1em; overflow-wrap: anywhere; }

/* zegar (4-8) */
.en-clock-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.en-clock svg { width: 100%; max-width: 210px; display: block; margin: 0 auto; }
.en-clock .face { fill: var(--bg2); stroke: var(--acc); stroke-width: 4; }
.en-clock .t { stroke: color-mix(in srgb, var(--text) 30%, transparent); stroke-width: 1; }
.en-clock .T { stroke: var(--text); stroke-width: 2.5; }
.en-clock text { font: 700 13px 'Space Grotesk', sans-serif; fill: var(--text); }
.en-clock .hh { stroke: var(--text); stroke-width: 6; stroke-linecap: round; transition: transform .4s; }
.en-clock .mh { stroke: var(--acc); stroke-width: 4; stroke-linecap: round; }
.en-clock .pin { fill: var(--acc); }
.en-clock-dig { margin: 0 0 .4rem; font: 700 2rem 'Space Mono', monospace; color: var(--acc); }
.en-clock-say { margin: 0 0 .4rem; font-size: 1.05rem; }
.en-clock-say b { font-family: 'Space Grotesk', sans-serif; }
.en-clock-tag { display: inline-block; min-width: 6.6rem; margin-right: .4rem; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.en-clock .tl3d-chips { margin-top: .6rem; }

/* czasy (4-8) */
.en-tense-box { margin-top: .8rem; }
.en-tl { width: 100%; max-width: 520px; display: block; margin: 0 auto .4rem; }
.en-tl .ax { stroke: color-mix(in srgb, var(--text) 45%, transparent); stroke-width: 2; fill: none; }
.en-tl .nw { stroke: var(--acc); stroke-width: 2; stroke-dasharray: 4 3; }
.en-tl .lb { font: 600 9px 'Inter', sans-serif; fill: var(--muted); }
.en-tl .lb.now { font-weight: 700; fill: var(--acc); }
.en-tl .mk, .en-tl .ar { stroke: var(--acc); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.en-tl .span { fill: color-mix(in srgb, var(--acc) 14%, transparent); stroke: none; }
.en-tl .dt { fill: var(--acc); }
.en-tense-use { margin: .3rem 0 .6rem; }
.en-tense-form th { width: 2.4rem; text-align: center; font-size: 1.1rem; color: var(--acc); }
.en-tense-sig { margin: .6rem 0 .4rem; font-size: .92rem; }
.en-tense-sig span { font-weight: 700; color: var(--muted); }
.en-tense-ex { margin: 0; padding-left: 1.2rem; }
.en-tense-ex li { margin: .25rem 0; font-weight: 600; }

/* trener czasowników (4-8) */
.en-verb { text-align: center; }
.en-verb-card { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; min-width: min(100%, 340px); padding: 1rem 1.2rem; margin-bottom: .7rem;
  border-radius: 18px; background: color-mix(in srgb, var(--acc) 8%, var(--bg2)); border: 2px solid color-mix(in srgb, var(--acc) 35%, transparent); }
.en-verb-pl { font-size: .85rem; color: var(--muted); }
.en-verb-card > b { font: 700 2.2rem/1.1 'Space Grotesk', sans-serif; color: var(--acc); }
.en-verb-forms { display: flex; gap: 1.4rem; }
.en-verb-forms span { display: flex; flex-direction: column; }
.en-verb-forms small { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.en-verb-forms b { font: 700 1.25rem 'Space Grotesk', sans-serif; }
.en-verb-card.shown .en-verb-forms { animation: ev-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.en-verb .tl3d-chips { justify-content: center; }

/* stopniowanie (4-8) */
.en-cmp-box { margin-top: .8rem; }
.en-cmp-steps { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; }
.en-cmp-steps > i { color: var(--muted); font-size: .8rem; }
.en-cmp-steps span { display: flex; flex-direction: column; padding: .5rem .8rem; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); }
.en-cmp-steps small { font-size: .72rem; color: var(--muted); }
.en-cmp-steps b { font: 700 1.1rem 'Space Grotesk', sans-serif; color: var(--acc); }
.en-cmp-rule { margin: .7rem 0 .3rem; }
.en-cmp-ex { margin: 0; }

/* fałszywi przyjaciele (4-8): karta obraca się po kliknięciu */
.en-ff { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.en-ff-card { display: block; width: 100%; height: 118px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 700px; font: inherit; color: var(--text); }
.en-ff-in { position: relative; display: block; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.4, .2, .2, 1); transform-style: preserve-3d; }
.en-ff-card[aria-pressed="true"] .en-ff-in { transform: rotateY(180deg); }
.en-ff-front, .en-ff-back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: .6rem;
  border-radius: 14px; text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid var(--border); }
.en-ff-front { background: var(--bg2); }
.en-ff-front b { font: 700 1.2rem 'Space Grotesk', sans-serif; color: var(--acc); }
.en-ff-back { transform: rotateY(180deg); background: color-mix(in srgb, var(--acc) 12%, var(--bg2)); border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.en-ff-back b { font-size: .95rem; }
.en-ff small { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.en-ff-card:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: 14px; }

@media (max-width: 600px) {
  .ev-words { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .4rem; }
  .ev-word { min-height: 96px; padding: .6rem .35rem .5rem; }
  .ev-word .ev-emo { font-size: 1.7rem; }
  .ev-word b { font-size: .92rem; }
  .ev-word small { font-size: .72rem; }
  .ev-msg { max-width: 92%; }
  .en-clock-grid { grid-template-columns: minmax(0, 1fr); }
  .en-clock svg { max-width: 180px; }
  .en-clock-tag { display: block; min-width: 0; }
  .en-ff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .en-num-big { font-size: 2.8rem; }
}

/* ── Kolorystyka stron ── */
/* 1-3: pomarańcz i malina */
.ev-en1 .tl3d-core, body:not(.light) .ev-en1 .tl3d-core { background: linear-gradient(135deg, #F76707, #D6336C); box-shadow: 0 0 0 10px rgba(247, 103, 7, .12), 0 24px 60px -20px rgba(214, 51, 108, .55); }
.ev-en1 .tl3d-kicker, body:not(.light) .ev-en1 .tl3d-kicker { background: linear-gradient(135deg, #F76707, #D6336C); box-shadow: 0 12px 30px -12px rgba(214, 51, 108, .5); }
.tl-escape.ev-en1::before { background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, #F76707 14%, var(--bg)), var(--bg) 70%); border-top-color: color-mix(in srgb, #F76707 26%, transparent); }
/* 4-8: czerwień i granat */
.ev-en2 .tl3d-core, body:not(.light) .ev-en2 .tl3d-core { background: linear-gradient(135deg, #C8102E, #1E3A8A); box-shadow: 0 0 0 10px rgba(200, 16, 46, .1), 0 24px 60px -20px rgba(30, 58, 138, .6); }
.ev-en2 .tl3d-kicker, body:not(.light) .ev-en2 .tl3d-kicker { background: linear-gradient(135deg, #C8102E, #1E3A8A); box-shadow: 0 12px 30px -12px rgba(200, 16, 46, .45); }
.tl-escape.ev-en2::before { background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, #C8102E 13%, var(--bg)), var(--bg) 70%); border-top-color: color-mix(in srgb, #C8102E 26%, transparent); }
@media (min-width: 1280px) and (max-height: 900px) {
  .ev-en1 .tl3d-core { box-shadow: 0 0 0 8px rgba(247, 103, 7, .12), 0 20px 50px -20px rgba(214, 51, 108, .55); }
  .ev-en2 .tl3d-core { box-shadow: 0 0 0 8px rgba(200, 16, 46, .1), 0 20px 50px -20px rgba(30, 58, 138, .6); }
}

/* ── Escape room 1-3: Zaczarowany Zamek (nocny las, złoto i róż) ── */
.esc.esc-en1 { --c1: #FFD166; --c2: #FF7EB6; --ok: #7CF29A; --bad: #FF6B6B; --warn: #FFD166; --ink: #FFF8EC; --dim: #B9C9B8;
  --panel: rgba(16, 40, 34, .72); --line: rgba(255, 209, 102, .25);
  background: radial-gradient(120% 90% at 50% -10%, #2E4F3F 0%, #13302A 45%, #0A1C18 100%); border-color: rgba(255, 209, 102, .35);
  box-shadow: 0 0 0 1px rgba(255, 126, 182, .12) inset, 0 30px 80px -30px rgba(255, 209, 102, .35), 0 0 60px -20px rgba(255, 126, 182, .4); }
/* zamiast siatki: migoczące gwiazdki */
.esc-en1 .esc-grid { inset: 0; height: auto; transform: none; opacity: .8; animation: en1-twinkle 4s ease-in-out infinite alternate; -webkit-mask-image: none; mask-image: none;
  background-image: radial-gradient(1.6px 1.6px at 12% 18%, #FFF3B0, transparent), radial-gradient(1.2px 1.2px at 28% 62%, #fff, transparent), radial-gradient(1.8px 1.8px at 47% 24%, #FFD166, transparent),
    radial-gradient(1.2px 1.2px at 63% 74%, #fff, transparent), radial-gradient(1.6px 1.6px at 78% 30%, #FF9FCB, transparent), radial-gradient(1.2px 1.2px at 90% 66%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 6% 82%, #FFF3B0, transparent), radial-gradient(1.4px 1.4px at 38% 90%, #FFD166, transparent);
  background-size: 100% 100%; }
@keyframes en1-twinkle { from { opacity: .45; } to { opacity: .95; } }
.esc-en1 .esc-scan { opacity: .2; }
.esc-en1 .esc-scan::after { background: linear-gradient(180deg, transparent, rgba(255, 209, 102, .06), transparent); }
.esc-en1 .esc-title { text-shadow: 0 0 30px rgba(255, 209, 102, .3); }
.esc-en1 .esc-title[data-text]::before, .esc-en1 .esc-title[data-text]::after { display: none; }
.esc-en1 .esc-term { color: #FFE8A3; border-color: rgba(255, 209, 102, .3); }
.esc-en1 .esc-term .cur { background: #FFD166; }
.esc-en1 .esc-term .err { color: #FF9FCB; }
.esc-en1 .esc-story { color: #F2EBDD; }
.esc-en1 .esc-rules li { color: #F2EBDD; }
.esc-en1 .esc-rules i { background: rgba(255, 209, 102, .14); }
.esc-en1 .esc-btn { color: #2B1600; background: linear-gradient(90deg, #FFD166, #FFE8A3 40%, #FF7EB6); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 34px -8px rgba(255, 209, 102, .7); }
.esc-en1 .esc-btn:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 16px 40px -8px rgba(255, 126, 182, .8); }
.esc-en1 .esc-btn.pulse { animation-name: en1-pulse; }
@keyframes en1-pulse { 50% { box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 0 0 10px rgba(255, 209, 102, .14), 0 10px 40px -6px rgba(255, 126, 182, .8); } }
.esc-en1 .esc-ghost:hover, .esc-en1 .esc-ans:hover:not(:disabled) { background: rgba(255, 209, 102, .12); }
.esc-en1 .esc-ans .k { background: rgba(255, 209, 102, .12); border-color: rgba(255, 209, 102, .35); }
.esc-en1 .esc-ans.ok .k { color: #10261C; }
.esc-en1 .esc-q { box-shadow: 0 0 0 1px rgba(255, 126, 182, .1) inset; }
.esc-en1 .esc-q-text { font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
.esc-en1 .esc-listen { margin-left: .3rem; padding: .35rem .75rem; font-size: .85rem; vertical-align: middle; }
.esc-en1 .esc-door { background: radial-gradient(60% 60% at 50% 50%, #fff, #FFE8A3 25%, rgba(255, 209, 102, .35) 55%, transparent 75%), #0A1C18; border-color: #6B5B2E; }
.esc-en1 .esc-door::before, .esc-en1 .esc-door::after { background: repeating-linear-gradient(90deg, #6B4423 0 14px, #5A381C 14px 28px); border-color: #3E2612; }
.esc-en1 .esc-door .fly { filter: drop-shadow(0 0 14px #FFD166) drop-shadow(0 0 30px rgba(255, 126, 182, .7)); width: 52%; }
.esc-en1 .esc-tile b { color: var(--c1); }
/* balony zamiast kopii zapasowych */
.esc-en1 .esc-life { color: #FF7EB6; background: rgba(255, 126, 182, .12); border-color: rgba(255, 126, 182, .45); }
.esc-en1 .esc-life svg { width: 16px; height: 20px; }
.esc-en1 .esc-life.lost { animation: en1-pop .6s ease-out forwards; }
@keyframes en1-pop { 0% { transform: scale(1); opacity: 1; } 30% { transform: scale(1.5); opacity: 1; } 31% { transform: scale(.4); opacity: .6; } 100% { transform: scale(.85); opacity: .35; } }
/* magiczne okno z kafelkami */
.esc-en1 .en1-frame { fill: #3A2A14; stroke: #FFD166; stroke-width: 2.5; }
.esc-en1 .en1-pet { font-size: 78px; }
.esc-en1 .en1-tile { transform-box: fill-box; transform-origin: center; transition: transform .55s cubic-bezier(.5, -0.4, .5, 1.4), opacity .4s; }
.esc-en1 .en1-tile rect { fill: #5B3FA6; stroke: #FFD166; stroke-width: 1.2; }
.esc-en1 .en1-tile:nth-child(odd) rect { fill: #6B4FC0; }
.esc-en1 .en1-tile .st { fill: #FFD166; opacity: .9; }
.esc-en1 .en1-tile text { font: 700 10px 'Space Grotesk', sans-serif; fill: #E9DEFF; }
.esc-en1 .en1-tile.cur rect { fill: #8A5CF0; stroke: #FFF3B0; stroke-width: 2; }
.esc-en1 .en1-tile.cur .st { animation: en1-spin 2.4s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes en1-spin { to { transform: rotate(360deg); } }
.esc-en1 .en1-tile.off { transform: scale(0) rotate(160deg); opacity: 0; }
.esc-en1 .en1-plate { fill: #2B1F0E; stroke: #FFD166; stroke-width: 1.5; }
.esc-en1 .en1-plate-txt { font: 700 9px 'Space Mono', monospace; letter-spacing: 1px; fill: #FFD166; }
.esc-en1 .esc-rig.is-err .en1-plate { stroke: var(--bad); }
.esc-en1 .esc-rig.is-err .en1-plate-txt { fill: var(--bad); }
.esc-en1 .esc-rig.is-err .en1-frame { animation: en1-wobble .5s ease; transform-box: fill-box; transform-origin: center; }
@keyframes en1-wobble { 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
.esc-en1 .en1-night { fill: #1B2D4F; }
.esc-en1 .en1-dragon { font-size: 76px; }
.esc-en1 .esc-lose-art .en1-dragon { animation: en1-laugh 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
@keyframes en1-laugh { 50% { transform: rotate(-6deg) scale(1.05); } }
.esc-en1 .en1-str { fill: none; stroke: #C9B8A0; stroke-width: 1.5; stroke-linecap: round; }
.esc-en1 .en1-pass { font-size: 1.05rem; color: #FFE8A3; }
.esc-en1 .en1-pass b { font: 700 1.3rem 'Space Grotesk', sans-serif; color: #fff; }
.esc-en1 .en1-pass span { font-size: 1.6rem; vertical-align: middle; }
.esc-en1-dlg .esc-dlg-box { background: radial-gradient(120% 90% at 50% -10%, #2E4F3F 0%, #13302A 55%, #0A1C18 100%); border-color: rgba(255, 209, 102, .4); }
.esc-en1-dlg .esc-dlg-box::before { background: linear-gradient(90deg, transparent, #FFD166, #FF7EB6, transparent); box-shadow: 0 0 12px #FFD166; }
.esc-en1-dlg label { color: #FFD166; }
.esc-en1-dlg input { border-color: rgba(255, 209, 102, .4); }
.esc-en1-dlg input:focus { border-color: #FFD166; box-shadow: 0 0 0 3px rgba(255, 209, 102, .2); }
.esc-en1-dlg .esc-btn { --c1: #FFD166; --c2: #FF7EB6; color: #2B1600; background: linear-gradient(90deg, #FFD166, #FFE8A3 40%, #FF7EB6); }

/* ── Escape room 4-8: metro (grafit, czerwień, żółta linia Circle; w Nowym Jorku czerwona linia 1) ── */
.esc.esc-en2 { --c1: #FFD300; --c2: #FF3B3B; --ok: #3DDC84; --bad: #FF3B3B; --warn: #FFD300; --ink: #F2F4F8; --dim: #A3ABB9;
  --panel: rgba(24, 26, 34, .78); --line: rgba(255, 211, 0, .22);
  background: radial-gradient(120% 90% at 50% -10%, #2A2D3A 0%, #17181F 50%, #0C0D12 100%); border-color: rgba(255, 211, 0, .3);
  box-shadow: 0 0 0 1px rgba(255, 59, 59, .12) inset, 0 30px 80px -30px rgba(255, 211, 0, .25), 0 0 60px -20px rgba(255, 59, 59, .35); }
.esc.esc-en2.city-nyc { --c1: #FF5A4F; --c2: #FFFFFF; --line: rgba(255, 90, 79, .25); border-color: rgba(255, 90, 79, .35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 30px 80px -30px rgba(238, 53, 46, .35), 0 0 60px -20px rgba(238, 53, 46, .35); }
/* tory zamiast siatki */
.esc-en2 .esc-grid { background-image: linear-gradient(90deg, rgba(255, 211, 0, .28) 2px, transparent 2px), linear-gradient(rgba(255, 255, 255, .14) 3px, transparent 3px);
  background-size: 120px 100%, 100% 40px; opacity: .4; }
.esc-en2.city-nyc .esc-grid { background-image: linear-gradient(90deg, rgba(255, 90, 79, .3) 2px, transparent 2px), linear-gradient(rgba(255, 255, 255, .14) 3px, transparent 3px); }
@keyframes en2-rails { to { background-position: 0 40px, 0 0; } }
.esc-en2 .esc-grid { animation-name: en2-rails; }
.esc-en2 .esc-scan::after { background: linear-gradient(180deg, transparent, rgba(255, 211, 0, .05), transparent); }
.esc-en2 .esc-title { background: linear-gradient(90deg, var(--c1), #fff 50%, var(--c2)); -webkit-background-clip: text; background-clip: text; text-shadow: 0 0 30px rgba(255, 211, 0, .2); }
.esc-en2 .esc-term { color: #FFB43D; border-color: rgba(255, 180, 61, .3); background: rgba(0, 0, 0, .5); }
.esc-en2 .esc-term .cur { background: #FFB43D; }
.esc-en2 .esc-story, .esc-en2 .esc-rules li { color: #DDE2EA; }
.esc-en2 .esc-rules i { background: rgba(255, 211, 0, .12); }
.esc-en2 .en2-city { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .2rem 0 .3rem; }
.esc-en2 .en2-city span { font: 700 .78rem 'Space Mono', monospace; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); }
.esc-en2 .en2-city-b { padding: .5rem .9rem; border-radius: 999px; cursor: pointer; font: 700 .92rem 'Space Grotesk', sans-serif; color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); transition: background .2s, border-color .2s; }
.esc-en2 .en2-city-b:hover { border-color: var(--c1); }
.esc-en2 .en2-city-b[aria-pressed="true"] { color: #14161C; background: var(--c1); border-color: var(--c1); }
.esc-en2.city-nyc .en2-city-b[aria-pressed="true"] { color: #fff; }
.esc-en2 .en2-city-b:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.esc-en2 .esc-result .en2-city-swap { margin-top: .6rem; }
.esc-en2 .esc-btn { color: #14161C; background: linear-gradient(90deg, #FFD300, #FFE873 45%, #FF6B5B); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 34px -8px rgba(255, 211, 0, .6); }
.esc-en2.city-nyc .esc-btn { color: #fff; background: linear-gradient(90deg, #EE352E, #FF6B5B 45%, #B71C1C); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 34px -8px rgba(238, 53, 46, .6); }
.esc-en2 .esc-btn.pulse { animation-name: en2-pulse; }
@keyframes en2-pulse { 50% { box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 0 0 10px rgba(255, 211, 0, .12), 0 10px 40px -6px rgba(255, 211, 0, .7); } }
.esc-en2 .esc-ghost:hover, .esc-en2 .esc-ans:hover:not(:disabled) { background: color-mix(in srgb, var(--c1) 12%, transparent); }
.esc-en2 .esc-ans .k { background: color-mix(in srgb, var(--c1) 12%, transparent); border-color: color-mix(in srgb, var(--c1) 35%, transparent); }
.esc-en2 .esc-q { box-shadow: 0 0 0 1px rgba(255, 59, 59, .1) inset; }
.esc-en2 .esc-listen { margin-left: .3rem; padding: .35rem .75rem; font-size: .85rem; vertical-align: middle; }
.esc-en2 .esc-life { color: #FFD300; background: rgba(255, 211, 0, .1); border-color: rgba(255, 211, 0, .4); }
.esc-en2.city-nyc .esc-life { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); }
.esc-en2 .esc-door { background: radial-gradient(60% 60% at 50% 50%, #fff, #FFF2A8 25%, rgba(255, 211, 0, .3) 55%, transparent 75%), #0C0D12; border-color: #4A4E5C; }
.esc-en2 .esc-door::before, .esc-en2 .esc-door::after { background: repeating-linear-gradient(180deg, #3A3E4A 0 10px, #2C2F38 10px 20px); border-color: #4A4E5C; }
.esc-en2 .esc-door .fly { width: 70%; filter: drop-shadow(0 0 14px rgba(255, 211, 0, .7)); }
.esc-en2.city-nyc .esc-door .fly { filter: drop-shadow(0 0 14px rgba(238, 53, 46, .8)); }
/* schemat linii */
.esc-en2 .en2-board { fill: #0B0B0E; stroke: #3A3E4A; stroke-width: 1.5; }
.esc-en2 .en2-board-txt { font: 700 10px 'Space Mono', monospace; letter-spacing: .5px; fill: #FFB43D; }
.esc-en2 .en2-board-txt.bad { fill: var(--bad); }
.esc-en2 .en2-board-tm { font: 700 10px 'Space Mono', monospace; fill: #FFB43D; opacity: .8; }
.esc-en2 .en2-line { fill: none; stroke: #FFD300; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.esc-en2.city-nyc .en2-line { stroke: #EE352E; }
.esc-en2 .en2-st { fill: #fff; stroke: #1A1A1A; stroke-width: 2.5; transition: fill .3s; }
.esc-en2 .en2-st.done { fill: #3DDC84; }
.esc-en2 .en2-st.cur { fill: #fff; stroke: var(--c1); stroke-width: 3; animation: en2-blink 1s steps(1) infinite; }
@keyframes en2-blink { 50% { opacity: .35; } }
.esc-en2 .en2-exit rect { fill: #FFD300; stroke: #1A1A1A; stroke-width: 1.2; }
.esc-en2 .en2-exit text { font: 700 6.4px 'Inter', sans-serif; fill: #1A1A1A; }
.esc-en2.city-nyc .en2-exit rect { fill: #D7263D; }
.esc-en2.city-nyc .en2-exit text { fill: #fff; }
.esc-en2 .en2-train { transition: transform .9s cubic-bezier(.45, 0, .25, 1); }
.esc-en2 .en2-train rect { fill: #E8EBF0; stroke: #1A1A1A; stroke-width: 1.2; }
.esc-en2 .en2-train rect:first-child { fill: #C8102E; }
.esc-en2.city-nyc .en2-train rect:first-child { fill: #B8BEC8; }
.esc-en2 .en2-train .w { fill: #9FD3FF; stroke: none; }
.esc-en2 .en2-mind { font: 700 9px 'Inter', sans-serif; letter-spacing: 1.5px; fill: #FFD300; }
.esc-en2.city-nyc .en2-mind { font-size: 7.4px; letter-spacing: .6px; fill: #fff; }
.esc-en2 .en2-edge { stroke: #FFD300; stroke-width: 3; stroke-dasharray: 8 5; }
.esc-en2.city-nyc .en2-edge { stroke: #fff; }
.esc-en2 .esc-rig.is-err .en2-board { stroke: var(--bad); }
.esc-en2 .esc-rig.is-err .en2-board-txt { fill: var(--bad); }
.esc-en2 .esc-rig.is-err .en2-train { animation: en2-jolt .5s ease; }
@keyframes en2-jolt { 30% { opacity: .4; } 60% { opacity: 1; } 80% { opacity: .6; } }
.esc-en2 .en2-shut { fill: #3A3E4A; }
.esc-en2 .en2-shut-fr { fill: #1A1C23; stroke: #4A4E5C; stroke-width: 2; }
/* finał: układanie zdania */
.esc-en2 .en2-build { display: flex; flex-direction: column; gap: .6rem; }
.esc-en2 .en2-goal { margin: 0; color: #DDE2EA; }
.esc-en2 .en2-goal b { color: #fff; }
.esc-en2 .en2-slot { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 54px; padding: .55rem; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 2px dashed color-mix(in srgb, var(--c1) 45%, transparent); }
.esc-en2 .en2-slot.ok { border-style: solid; border-color: var(--ok); background: rgba(61, 220, 132, .1); }
.esc-en2 .en2-slot.is-bad { animation: esc-shake .45s; border-color: var(--bad); }
.esc-en2 .en2-ph { align-self: center; color: var(--dim); font-size: .9rem; }
.esc-en2 .en2-pool { display: flex; flex-wrap: wrap; gap: .45rem; }
.esc-en2 .en2-word { padding: .55rem .85rem; border-radius: 10px; cursor: pointer; font: 700 1rem 'Space Grotesk', sans-serif; color: var(--ink);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); transition: transform .15s, background .2s, opacity .2s; }
.esc-en2 .en2-word:hover:not(:disabled) { transform: translateY(-2px); background: color-mix(in srgb, var(--c1) 14%, transparent); border-color: var(--c1); }
.esc-en2 .en2-word:disabled { opacity: .25; cursor: default; }
.esc-en2 .en2-word.on { color: #14161C; background: var(--c1); border-color: var(--c1); }
.esc-en2.city-nyc .en2-word.on { color: #fff; }
.esc-en2 .en2-word:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.esc-en2 .en2-pass { font: 700 1.15rem 'Space Grotesk', sans-serif; color: #fff; }
.esc-en2 .esc-tile b { color: var(--c1); }
.esc-en2-dlg .esc-dlg-box { background: radial-gradient(120% 90% at 50% -10%, #2A2D3A 0%, #17181F 55%, #0C0D12 100%); border-color: rgba(255, 211, 0, .35); }
.esc-en2-dlg .esc-dlg-box::before { background: linear-gradient(90deg, transparent, #FFD300, #FF3B3B, transparent); box-shadow: 0 0 12px #FFD300; }
.esc-en2-dlg label { color: #FFD300; }
.esc-en2-dlg input { border-color: rgba(255, 211, 0, .35); }
.esc-en2-dlg input:focus { border-color: #FFD300; box-shadow: 0 0 0 3px rgba(255, 211, 0, .2); }
.esc-en2-dlg .esc-btn { --c1: #FFD300; --c2: #FF3B3B; color: #14161C; background: linear-gradient(90deg, #FFD300, #FFE873 45%, #FF6B5B); }

@media (max-width: 860px) {
  .esc-en1 .en1-pet { font-size: 70px; }
}
@media (max-width: 560px) {
  .esc-en2 .en2-word { padding: .5rem .7rem; font-size: .95rem; }
  .esc-en1 .esc-listen, .esc-en2 .esc-listen { display: inline-flex; margin: .4rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-word.pop, .en-num-big.pop, .en-verb-card.shown .en-verb-forms { animation: none !important; }
  .en-ff-in { transition: none; }
}

/* ── Kółko na mapie (ev-kompendium.js): tekst zawsze w środku koła ── */
.tl3d-core b, .tl3d-core small { max-width: 80%; text-align: center; overflow-wrap: anywhere; }
.tl3d-core small { line-height: 1.25; }
.tl3d-core.ev-core-long b { font-size: 1.25rem; }
@media (min-width: 1280px) and (max-height: 900px) { .tl3d-core.ev-core-long b { font-size: 1.05rem; } .tl3d-core small { font-size: .7rem; } }

/* ── Gry (ev-games.js) ── */
.ev-games-sec { position: relative; margin-top: 4.5rem; }
.ev-games-sec > .tl3d-head { margin-bottom: 1.2rem; }
.ev-games-sec.ev-en1 .tl3d-kicker { background: linear-gradient(135deg, #F76707, #D6336C); }
.ev-games-sec.ev-en2 .tl3d-kicker { background: linear-gradient(135deg, #C8102E, #1E3A8A); }
.ev-games { --acc: #E8590C; }
.ev-en2 .ev-games, .ev-en2.ev-games-sec .ev-games { --acc: #1E3A8A; }
body:not(.light) .ev-en2 .ev-games { --acc: #6B8CFF; }
body:not(.light) .ev-en1 .ev-games { --acc: #FF922B; }
.eg-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
.eg-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 999px; cursor: pointer; font: 700 .95rem 'Space Grotesk', sans-serif; color: var(--text); background: var(--bg2); border: 1px solid var(--border); }
.eg-tab[hidden] { display: none; }
.eg-tab[aria-selected="true"] { color: #fff; background: var(--acc); border-color: transparent; }
.eg-tab:focus-visible, .eg-btn:focus-visible, .eg-card:focus-visible, .eg-let:focus-visible, .eg-opt:focus-visible, .eg-pic:focus-visible, .eg-tile:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.eg-panel { padding: 1.2rem; border-radius: 20px; background: var(--bg2); border: 1px solid var(--border); text-align: center; min-height: 320px; }
.eg-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1.1rem; border-radius: 12px; cursor: pointer; font: 700 .95rem 'Inter', sans-serif; color: #fff; background: var(--acc); border: 1px solid var(--acc); transition: transform .15s; }
.eg-btn:hover:not(:disabled) { transform: translateY(-1px); }
.eg-btn:disabled { opacity: .5; cursor: default; }
.eg-btn.ghost { color: var(--text); background: transparent; border-color: var(--border); }
.eg-btn.big { padding: .9rem 1.7rem; font-size: 1.1rem; }
.eg-mini { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent); }
.eg-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .8rem; }
.eg-intro h4, .eg-end h4 { margin: .6rem 0 .4rem; font: 700 1.6rem 'Space Grotesk', sans-serif; }
.eg-intro p, .eg-end p { max-width: 34rem; margin: 0 auto .8rem; color: var(--muted); }
.eg-end-ico { width: 68px; height: 68px; display: inline-grid; place-items: center; border-radius: 22px; font-size: 1.9rem; color: #fff; background: linear-gradient(135deg, var(--acc), #F59E0B); }
.eg-best { font: 700 .85rem 'Space Mono', monospace; }
.eg-rec { font: 700 1rem 'Space Grotesk', sans-serif; color: #F59E0B !important; }
.eg-stars { display: flex; justify-content: center; gap: .4rem; margin: .4rem 0 .8rem; font-size: 1.8rem; color: color-mix(in srgb, var(--text) 18%, transparent); }
.eg-star.on { color: #F5B301; animation: ev-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.eg-star.on:nth-child(2) { animation-delay: .15s; } .eg-star.on:nth-child(3) { animation-delay: .3s; }
.eg-hud { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.4rem; margin-bottom: .9rem; font: 700 .95rem 'Space Mono', monospace; }
.eg-combo { color: #F97316; }
.eg-emo { font-size: 2.2rem; line-height: 1.1; }
.eg-emo.big { font-size: 3.4rem; }
.eg-pl { display: block; font: 700 1.2rem 'Space Grotesk', sans-serif; }
.eg-fb { min-height: 1.5em; margin: .7rem 0 0; font-weight: 700; }
.eg-fb.ok { color: #16A34A; } .eg-fb.bad { color: #DC2626; }
body:not(.light) .eg-fb.ok { color: #4ADE80; } body:not(.light) .eg-fb.bad { color: #FF7A90; }
.shake { animation: eg-shake .4s; }
@keyframes eg-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* memory */
.eg-mem { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; max-width: 560px; margin: 0 auto; }
.eg-card { aspect-ratio: 1 / .9; padding: 0; border: 0; background: none; cursor: pointer; perspective: 600px; font: inherit; color: var(--text); }
.eg-card-in { position: relative; display: block; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.4, .2, .2, 1); transform-style: preserve-3d; }
.eg-card.up .eg-card-in, .eg-card.done .eg-card-in { transform: rotateY(180deg); }
.eg-card-back, .eg-card-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .3rem; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.eg-card-back { font: 700 1.6rem 'Space Grotesk', sans-serif; color: #fff; background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc) 55%, #6D28D9)); }
.eg-card-face { transform: rotateY(180deg); background: var(--bg); border: 2px solid color-mix(in srgb, var(--acc) 35%, transparent); overflow-wrap: anywhere; }
.eg-card-face b { font: 700 1rem 'Space Grotesk', sans-serif; color: var(--acc); }
.eg-card-face small { font-size: .9rem; font-weight: 600; }
.eg-card.done .eg-card-face { border-color: #16A34A; background: color-mix(in srgb, #16A34A 10%, var(--bg)); }
/* literki */
.eg-spell-q { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin-bottom: .8rem; }
.eg-spell-q .eg-mini { display: none; }
.ev-can-say .eg-spell-q .eg-mini { display: inline-grid; place-items: center; }
.eg-slots { display: flex; justify-content: center; gap: .35rem; margin-bottom: .9rem; }
.eg-slot { width: 2.4rem; height: 2.8rem; display: grid; place-items: center; border-bottom: 3px solid color-mix(in srgb, var(--text) 30%, transparent); font: 700 1.6rem 'Space Grotesk', sans-serif; }
.eg-slot.on { border-color: var(--acc); color: var(--acc); }
.eg-letters { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.eg-let { width: 3rem; height: 3rem; border-radius: 12px; cursor: pointer; font: 700 1.5rem 'Space Grotesk', sans-serif; color: var(--text); background: var(--bg); border: 2px solid var(--border); transition: transform .15s, opacity .2s; }
.eg-let:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--acc); }
.eg-let:disabled { opacity: .25; }
.eg-mask { font: 700 1.6rem 'Space Mono', monospace; letter-spacing: .2em; margin: 0 0 .8rem; }
.eg-form { display: flex; gap: .4rem; max-width: 420px; margin: 0 auto; }
.eg-in { flex: 1; min-width: 0; padding: .8rem 1rem; border-radius: 12px; font: 700 1.1rem 'Space Mono', monospace; color: var(--text); background: var(--bg); border: 2px solid var(--border); outline: none; }
.eg-in:focus { border-color: var(--acc); }
/* szybka strzała */
.eg-time { height: 8px; max-width: 520px; margin: 0 auto 1rem; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--text) 10%, transparent); }
.eg-time span { display: block; height: 100%; background: linear-gradient(90deg, #16A34A, #F59E0B, #DC2626); transform-origin: left; }
.eg-quick-q { display: flex; flex-direction: column; align-items: center; gap: .2rem; min-height: 5.5rem; margin-bottom: .8rem; }
.eg-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; max-width: 520px; margin: 0 auto; }
.eg-opt { padding: .9rem .6rem; border-radius: 14px; cursor: pointer; font: 700 1.1rem 'Space Grotesk', sans-serif; color: var(--text); background: var(--bg); border: 2px solid var(--border); transition: transform .15s, border-color .2s; }
.eg-opt:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--acc); }
.eg-opt.bad { border-color: #DC2626; opacity: .5; }
/* posłuchaj */
.eg-listen { margin-bottom: 1rem; }
.eg-pics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; max-width: 520px; margin: 0 auto; }
.eg-pic { aspect-ratio: 1; border-radius: 18px; cursor: pointer; background: var(--bg); border: 2px solid var(--border); transition: transform .15s, border-color .2s; }
.eg-pic:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--acc); }
.eg-pic.ok { border-color: #16A34A; background: color-mix(in srgb, #16A34A 12%, var(--bg)); }
.eg-pic.bad { opacity: .35; }
/* ułóż zdanie */
.eg-goal { margin: 0 0 .7rem; font: 700 1.15rem 'Space Grotesk', sans-serif; }
.eg-line { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; min-height: 56px; max-width: 640px; margin: 0 auto .8rem; padding: .55rem; border-radius: 14px; border: 2px dashed color-mix(in srgb, var(--acc) 40%, transparent); }
.eg-line.ok { border-style: solid; border-color: #16A34A; }
.eg-ph { align-self: center; color: var(--muted); font-size: .9rem; }
.eg-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; max-width: 640px; margin: 0 auto; }
.eg-tile { padding: .55rem .85rem; border-radius: 10px; cursor: pointer; font: 700 1rem 'Space Grotesk', sans-serif; color: var(--text); background: var(--bg); border: 1px solid var(--border); transition: transform .15s, opacity .2s; }
.eg-tile:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--acc); }
.eg-tile:disabled { opacity: .25; }
.eg-tile.on { color: #fff; background: var(--acc); border-color: var(--acc); }
@media (max-width: 560px) {
  .eg-panel { padding: .9rem .7rem; }
  .eg-tab { padding: .55rem .8rem; font-size: .85rem; }
  .eg-tab span { display: none; }
  .eg-tab[aria-selected="true"] span { display: inline; }
  .eg-mem { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eg-card-face b { font-size: .85rem; }
  .eg-let { width: 2.6rem; height: 2.6rem; font-size: 1.3rem; }
  .eg-slot { width: 2rem; font-size: 1.3rem; }
  .eg-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 300px; }
  .eg-opt { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .eg-card-in { transition: none; } }

/* ── Angielski: strony poziomów (bez przełącznika – poziom wybiera się na stronie „Angielski”) ── */
.ev-en-rooms { margin-top: 3.2rem; }
.ev-en46 .tl3d-kicker, body:not(.light) .ev-en46 .tl3d-kicker { background: linear-gradient(135deg, #0CA678, #1C7ED6); }
.tl-escape.ev-en46::before { background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, #0CA678 14%, var(--bg)), var(--bg) 70%); }
.ev-games-sec.ev-en46 .tl3d-kicker { background: linear-gradient(135deg, #0CA678, #1C7ED6); }
.ev-en46 .ev-games { --acc: #0B7285; }
body:not(.light) .ev-en46 .ev-games { --acc: #3BC9DB; }

/* ── Wybór escape roomu (EVEscape.rooms) ── */
.esc-rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.esc-room { display: flex; align-items: flex-start; gap: .8rem; padding: .9rem 1rem; border-radius: 18px; cursor: pointer; text-align: left; font: inherit; color: var(--text);
  background: var(--bg2); border: 2px solid var(--border); transition: border-color .2s, transform .15s, box-shadow .2s; }
.esc-room:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 40%, transparent); }
.esc-room:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.esc-room[aria-selected="true"] { border-color: var(--blue); box-shadow: 0 12px 28px -16px var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--bg2)); }
.esc-room-ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 1.9rem; background: color-mix(in srgb, var(--text) 6%, transparent); }
.esc-room[aria-selected="true"] .esc-room-ico { background: color-mix(in srgb, var(--blue) 15%, transparent); }
.esc-room-txt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.esc-room-txt small { font: 700 .68rem 'Space Mono', monospace; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.esc-room-txt b { font: 700 1.05rem 'Space Grotesk', sans-serif; }
.esc-room-txt span { font-size: .84rem; color: var(--muted); }
@media (max-width: 860px) { .esc-rooms { grid-template-columns: minmax(0, 1fr); } .esc-room { padding: .65rem .8rem; } .esc-room-ico { width: 44px; height: 44px; font-size: 1.5rem; } }

/* ── Klasy 4-6: motyw konsoli (turkus i koral) ── */
.esc.esc-en46 { --c1: #3BC9DB; --c2: #FF8787; --ok: #69DB7C; --bad: #FF6B6B; --warn: #FFD43B; --ink: #F1FBFD; --dim: #A5C9D1; --panel: rgba(10, 36, 44, .74); --line: rgba(59, 201, 219, .25);
  background: radial-gradient(120% 90% at 50% -10%, #12424D 0%, #0B2A33 50%, #061419 100%); border-color: rgba(59, 201, 219, .35);
  box-shadow: 0 0 0 1px rgba(255, 135, 135, .12) inset, 0 30px 80px -30px rgba(59, 201, 219, .35), 0 0 60px -20px rgba(255, 135, 135, .35); }
.esc-en46 .esc-grid { background-image: linear-gradient(rgba(59, 201, 219, .3) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 135, 135, .3) 1px, transparent 1px); }
.esc-en46 .esc-title[data-text]::before, .esc-en46 .esc-title[data-text]::after { display: none; }
.esc-en46 .esc-btn { color: #062026; background: linear-gradient(90deg, #3BC9DB, #A5F3FC 45%, #FF8787); }
.esc-en46 .esc-ans .k, .esc-en46 .esc-rules i { background: rgba(59, 201, 219, .12); border-color: rgba(59, 201, 219, .35); }
.esc-en46 .esc-term { color: #A5F3FC; border-color: rgba(59, 201, 219, .3); }
.esc-en46 .esc-term .cur { background: #A5F3FC; }
.esc-en46 .esc-door { background: radial-gradient(60% 60% at 50% 50%, #fff, #C5F6FA 25%, rgba(59, 201, 219, .35) 55%, transparent 75%), #061419; }
.esc-en46 .esc-door .fly, .esc-pr .esc-door .fly, .esc-ts .esc-door .fly, .esc-hm .esc-door .fly, .esc-ap .esc-door .fly { width: 52%; }
.esc-en46 .esc-tile b { color: var(--c1); }
.esc-en46-dlg .esc-dlg-box { background: radial-gradient(120% 90% at 50% -10%, #12424D 0%, #0B2A33 55%, #061419 100%); }

/* 1-3 Skarb Pirata */
.esc-pr .pr-sea { fill: #1971C2; } .esc-pr .pr-land { fill: #F4D58D; stroke: #C8A15A; stroke-width: 2; }
.esc-pr .pr-path { fill: none; stroke: #8B5A2B; stroke-width: 2.5; stroke-dasharray: 5 5; }
.esc-pr .pr-step { fill: #F4D58D; stroke: #8B5A2B; stroke-width: 2; transition: fill .3s; }
.esc-pr .pr-step.on { fill: #FCC419; }
.esc-pr .pr-x { font: 700 22px 'Space Grotesk', sans-serif; fill: #C92A2A; }
.esc-pr .pr-plate { fill: #5C3B1E; stroke: #FCC419; } .esc-pr .pr-plate-txt { font: 700 8px 'Space Mono', monospace; fill: #FCC419; letter-spacing: 1px; }
.esc-pr .esc-life { color: #FF6B6B; background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .45); }
.pr-fin { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.pr-say { margin: 0; font: 700 1.2rem 'Space Grotesk', sans-serif; color: #FFE8A3; }
.pr-lock { display: flex; gap: .5rem; padding: .6rem .9rem; border-radius: 14px; background: rgba(0,0,0,.35); border: 2px solid #FCC419; }
.pr-lock span { width: 38px; height: 38px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.4); transition: transform .3s; }
.pr-lock span.on { border-style: solid; border-color: #fff; transform: scale(1.08); }
.pr-gems { display: grid; grid-template-columns: repeat(4, 54px); gap: .5rem; }
.pr-gem { width: 54px; height: 54px; border-radius: 50%; cursor: pointer; background: var(--g); border: 3px solid rgba(255,255,255,.7); box-shadow: 0 6px 14px -6px rgba(0,0,0,.6); transition: transform .15s; }
.pr-gem:hover { transform: scale(1.1); }
.pr-gem:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* 1-3 Sklep z zabawkami */
.esc-ts .ts-wall { fill: #3B2F63; } .esc-ts .ts-shelf { stroke: #C9A26B; stroke-width: 6; stroke-linecap: round; }
.esc-ts .ts-slot rect { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.18); }
.esc-ts .ts-slot text { opacity: .2; filter: grayscale(1); transition: opacity .4s; }
.esc-ts .ts-slot.cur rect { stroke: #FFD43B; stroke-width: 2; }
.esc-ts .ts-slot.on text { opacity: 1; filter: none; }
.esc-ts .ts-slot.on rect { fill: rgba(255, 212, 59, .15); }
.esc-ts .ts-door { fill: #2B2148; stroke: #FF8CC6; stroke-width: 1.5; } .esc-ts .ts-door-txt { font: 700 8px 'Space Mono', monospace; fill: #FF8CC6; letter-spacing: 1px; }
.esc-ts .esc-life { color: #FF8CC6; background: rgba(255, 140, 198, .12); border-color: rgba(255, 140, 198, .45); }
.ts-pile { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem; max-width: 440px; margin: 0 auto .6rem; font-size: 2rem; }

/* 7-8 Nawiedzony zamek */
.esc-hm .hm-sky { fill: #1A1B3A; } .esc-hm .hm-moon { fill: #FFF3BF; filter: drop-shadow(0 0 8px #FFF3BF); }
.esc-hm .hm-castle { fill: #2B2D42; stroke: #4A4E69; stroke-width: 1.5; }
.esc-hm .hm-win { fill: #11121F; stroke: #4A4E69; transition: fill .4s; }
.esc-hm .hm-win.on { fill: #FFC233; filter: drop-shadow(0 0 6px #FFC233); }
.esc-hm .hm-door { fill: #4A2E1A; }
.esc-hm .hm-ghost { opacity: .6; transform-box: fill-box; transform-origin: center; animation: hm-float 3s ease-in-out infinite; }
.esc-hm .hm-ghost.boo { animation: hm-boo .9s ease; opacity: 1; }
.esc-hm .hm-ghost.big { font-size: 40px; opacity: .9; }
@keyframes hm-float { 50% { transform: translateY(-6px); } }
@keyframes hm-boo { 30% { transform: scale(1.8) translateX(-30px); } }
.esc-hm .hm-state { font: 700 8px 'Space Mono', monospace; fill: #FFC233; letter-spacing: 1px; }
.esc-hm .esc-life { color: #FFC233; }
.hm-note { margin: 0; padding: 1rem 1.1rem; border-radius: 12px; font: 1.05rem/2.3 Georgia, serif; color: #2B2116; background: #F3E9D2; }
.hm-gap { display: inline-flex; flex-wrap: wrap; gap: .25rem; margin: 0 .2rem; vertical-align: middle; }
.hm-opt { padding: .15rem .55rem; border-radius: 8px; cursor: pointer; font: 700 .9rem 'Inter', sans-serif; line-height: 1.6; color: #2B2116; background: #fff; border: 2px dashed #8B6F47; }
.hm-opt[aria-pressed="true"] { color: #fff; background: #5F3DC4; border: 2px solid #5F3DC4; }
.hm-opt:focus-visible { outline: 3px solid #5F3DC4; outline-offset: 2px; }

/* 7-8 Lotnisko */
.esc-ap .ap-hall { fill: #1B2A3A; } .esc-ap .ap-board { fill: #0B0F14; stroke: #2F3E50; }
.esc-ap .ap-bt { font: 700 7px 'Space Mono', monospace; fill: #7D8FA3; }
.esc-ap .ap-bv { font: 700 10px 'Space Mono', monospace; fill: #FFD43B; }
.esc-ap .ap-status { font: 700 9px 'Space Mono', monospace; fill: #69DB7C; letter-spacing: 1px; }
.esc-ap .ap-line { stroke: #4DABF7; stroke-width: 3; stroke-dasharray: 6 4; }
.esc-ap .ap-dot { fill: #1B2A3A; stroke: #4DABF7; stroke-width: 2; transition: fill .3s; }
.esc-ap .ap-dot.on { fill: #4DABF7; }
.esc-ap .ap-plane { transition: transform .8s ease; }
.esc-ap .ap-cap { font: 700 8px 'Space Mono', monospace; fill: #A5D8FF; letter-spacing: 2px; }
.esc-ap .esc-life { color: #A5D8FF; background: rgba(77, 171, 247, .12); border-color: rgba(77, 171, 247, .45); }
.ap-fin { display: flex; flex-direction: column; gap: .6rem; }
.ap-chat { list-style: none; margin: 0; padding: .6rem; min-height: 60px; display: flex; flex-direction: column; gap: .35rem; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px dashed rgba(77, 171, 247, .45); }
.ap-chat li { max-width: 88%; padding: .45rem .7rem; border-radius: 12px; font-size: .92rem; animation: esc-in .3s ease; }
.ap-chat li.ap-A { align-self: flex-start; background: rgba(77, 171, 247, .18); }
.ap-chat li.ap-B { align-self: flex-end; background: rgba(105, 219, 124, .18); }
.ap-pool { display: flex; flex-direction: column; gap: .35rem; }
.ap-line-b { text-align: left; padding: .55rem .8rem; border-radius: 10px; cursor: pointer; font: inherit; font-size: .92rem; color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); }
.ap-line-b:hover:not(:disabled) { border-color: #4DABF7; }
.ap-line-b:disabled { opacity: .3; cursor: default; }
.ap-line-b:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* 4-6 Biblioteka */
.esc-lb .lb-wall { fill: #2B1F14; } .esc-lb .lb-shelf-bg { fill: #3E2C1C; } .esc-lb .lb-shelf { stroke: #8B5A2B; stroke-width: 6; stroke-linecap: round; }
.esc-lb .lb-book { fill: var(--bc); opacity: .12; transform-box: fill-box; transform-origin: bottom; transform: scaleY(.3); transition: opacity .4s, transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.esc-lb .lb-book.on { opacity: 1; transform: none; }
.esc-lb .lb-state { font: 700 8px 'Space Mono', monospace; fill: #FFD43B; letter-spacing: 1px; }
.esc-lb .esc-life { color: #FF8787; background: rgba(255, 135, 135, .12); border-color: rgba(255, 135, 135, .45); }
.lb-fin { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.lb-pic { display: flex; flex-direction: column; align-items: center; } .lb-pic span { font-size: 3.2rem; } .lb-pic small { color: var(--dim); }
.lb-slots { display: flex; gap: .3rem; }
.lb-slots span { width: 2.3rem; height: 2.6rem; display: grid; place-items: center; border-bottom: 3px solid rgba(255,255,255,.35); font: 700 1.5rem 'Space Grotesk', sans-serif; color: #fff; }
.lb-slots span.on { border-color: var(--c1); color: var(--c1); }
.lb-letters { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.lb-let { width: 2.8rem; height: 2.8rem; border-radius: 10px; cursor: pointer; font: 700 1.4rem 'Space Grotesk', sans-serif; color: var(--ink); background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.2); }
.lb-let:disabled { opacity: .25; } .lb-let:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* 4-6 Wyspa */
.esc-is .is-sky { fill: #74C0FC; } .esc-is .is-sun { fill: #FFD43B; } .esc-is .is-sea { fill: #1C7ED6; } .esc-is .is-sand { fill: #F4D58D; }
.esc-is .is-trunk { fill: none; stroke: #8B5A2B; stroke-width: 6; stroke-linecap: round; } .esc-is .is-leaf { fill: none; stroke: #2F9E44; stroke-width: 5; stroke-linecap: round; }
.esc-is .is-plank { fill: #C9A26B; stroke: #7C5A2B; stroke-width: 1; opacity: .15; transform-box: fill-box; transform-origin: center; transform: translateY(-14px); transition: opacity .4s, transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.esc-is .is-plank.on { opacity: 1; transform: none; }
.esc-is .is-state { font: 700 8px 'Space Mono', monospace; fill: #fff; letter-spacing: 1px; }
.esc-is .esc-life { color: #74C0FC; background: rgba(116, 192, 252, .12); border-color: rgba(116, 192, 252, .45); }
.is-fin { display: flex; flex-direction: column; gap: .6rem; }
.is-goal { margin: 0; } .is-goal b { color: #fff; }
.is-line { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 52px; padding: .5rem; border-radius: 12px; background: rgba(0,0,0,.3); border: 2px dashed rgba(59, 201, 219, .45); }
.is-ph { align-self: center; color: var(--dim); font-size: .9rem; }
.is-pool { display: flex; flex-wrap: wrap; gap: .4rem; }
.is-w { padding: .5rem .8rem; border-radius: 10px; cursor: pointer; font: 700 1rem 'Space Grotesk', sans-serif; color: var(--ink); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); }
.is-w.on { color: #062026; background: var(--c1); border-color: var(--c1); }
.is-w:disabled { opacity: .25; } .is-w:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.is-done { font: 700 1.1rem 'Space Grotesk', sans-serif; color: #fff; }

/* 4-6 Detektyw */
.esc-dt .dt-desk { fill: #3B2A1E; } .esc-dt .dt-note { fill: #FFF9DB; } .esc-dt .dt-line { stroke: #E03131; stroke-width: 1; }
.esc-dt .dt-head { font: 700 8px 'Space Mono', monospace; fill: #495057; letter-spacing: 1px; }
.esc-dt .dt-clue rect:first-child { fill: #fff; stroke: #868E96; } .esc-dt .dt-tick { fill: none; stroke: #2F9E44; stroke-width: 2; opacity: 0; }
.esc-dt .dt-text { fill: #DEE2E6; } .esc-dt .dt-clue.on .dt-tick { opacity: 1; } .esc-dt .dt-clue.on .dt-text { fill: #495057; }
.esc-dt .dt-state { font: 700 8px 'Space Mono', monospace; fill: #FFD43B; letter-spacing: 1px; }
.esc-dt .esc-life { color: #FFD43B; }
.dt-fin { display: flex; flex-direction: column; gap: .7rem; }
.dt-desc { margin: 0; padding: .7rem .9rem; border-radius: 12px; font: 600 1.02rem/1.5 'Inter', sans-serif; color: #fff; background: rgba(0,0,0,.3); border-left: 4px solid var(--c2); }
.dt-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.dt-card { position: relative; padding: .4rem; border-radius: 14px; cursor: pointer; background: #E7F5FF; border: 3px solid transparent; transition: transform .15s, border-color .2s; }
.dt-card svg { width: 100%; height: auto; display: block; }
.dt-card span { position: absolute; top: 4px; left: 6px; font: 700 .8rem 'Space Mono', monospace; color: #495057; }
.dt-card:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--c1); }
.dt-card.ok { border-color: var(--ok); } .dt-card.bad { opacity: .35; }
.dt-card:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) { .dt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pr-gems { grid-template-columns: repeat(4, 46px); } .pr-gem { width: 46px; height: 46px; } .hm-note { font-size: .95rem; } }
@media (prefers-reduced-motion: reduce) { .esc-hm .hm-ghost { animation: none; } }

/* ── Jasne escape roomy angielskiego (motyw jasny strony): konsola jasna, akcenty ciemniejsze dla kontrastu ── */
body.light .esc.esc-en1, body.light .esc.esc-en2, body.light .esc.esc-en46 {
  --ink: #1B2333; --dim: #5B6475; --panel: rgba(255,255,255,.9); --line: rgba(15,22,40,.12);
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F6FB 100%); border-color: rgba(15,22,40,.12);
  box-shadow: 0 24px 60px -30px rgba(15,22,40,.35), 0 0 0 1px rgba(255,255,255,.6) inset; color: var(--ink); }
body.light .esc.esc-en1 { --c1: #C2410C; --c2: #C2255C; --ok: #2B8A3E; --warn: #E67700; background: linear-gradient(180deg, #FFFBF2 0%, #FFF1E6 100%); }
body.light .esc.esc-en2 { --c1: #1E3A8A; --c2: #C8102E; --ok: #2B8A3E; --warn: #E67700; background: linear-gradient(180deg, #FFFFFF 0%, #EEF2FA 100%); }
body.light .esc.esc-en2.city-nyc { --c1: #C8102E; --c2: #1E3A8A; }
body.light .esc.esc-en46 { --c1: #0B7285; --c2: #C92A2A; --ok: #2B8A3E; --warn: #E67700; background: linear-gradient(180deg, #F3FCFD 0%, #E6F7F9 100%); }
body.light .esc-en1 .esc-grid, body.light .esc-en2 .esc-grid, body.light .esc-en46 .esc-grid { opacity: .12; }
body.light .esc-en1 .esc-scan, body.light .esc-en2 .esc-scan, body.light .esc-en46 .esc-scan { display: none; }
body.light .esc-en1 .esc-title, body.light .esc-en2 .esc-title, body.light .esc-en46 .esc-title { background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
body.light .esc-en2 .esc-title[data-text]::before, body.light .esc-en2 .esc-title[data-text]::after { display: none; }
body.light .esc-en1 .esc-story, body.light .esc-en2 .esc-story, body.light .esc-en46 .esc-story,
body.light .esc-en1 .esc-rules li, body.light .esc-en2 .esc-rules li, body.light .esc-en46 .esc-rules li,
body.light .esc-en1 .esc-result p, body.light .esc-en2 .esc-result p, body.light .esc-en46 .esc-result p { color: #3A4256; }
body.light .esc-en1 .esc-story b, body.light .esc-en2 .esc-story b, body.light .esc-en46 .esc-story b,
body.light .esc-en1 .esc-q-text, body.light .esc-en2 .esc-q-text, body.light .esc-en46 .esc-q-text,
body.light .esc-en1 .esc-result h3, body.light .esc-en2 .esc-result h3, body.light .esc-en46 .esc-result h3 { color: #111827; }
body.light .esc-en1 .esc-rules i, body.light .esc-en2 .esc-rules i, body.light .esc-en46 .esc-rules i { color: var(--c1); background: color-mix(in srgb, var(--c1) 12%, transparent); }
body.light .esc-en1 .esc-term, body.light .esc-en2 .esc-term, body.light .esc-en46 .esc-term { background: #1B2333; }
body.light .esc-en1 .esc-hud, body.light .esc-en2 .esc-hud, body.light .esc-en46 .esc-hud,
body.light .esc-en1 .esc-rig, body.light .esc-en2 .esc-rig, body.light .esc-en46 .esc-rig { background: rgba(15,22,40,.04); border-color: rgba(15,22,40,.1); }
body.light .esc-en1 .esc-q, body.light .esc-en2 .esc-q, body.light .esc-en46 .esc-q { background: #fff; border-color: rgba(15,22,40,.1); box-shadow: 0 8px 24px -18px rgba(15,22,40,.4); }
body.light .esc-en1 .esc-ans, body.light .esc-en2 .esc-ans, body.light .esc-en46 .esc-ans,
body.light .esc-en1 .esc-ghost, body.light .esc-en2 .esc-ghost, body.light .esc-en46 .esc-ghost,
body.light .esc-en1 .esc-icon, body.light .esc-en2 .esc-icon, body.light .esc-en46 .esc-icon,
body.light .esc-en1 .esc-tile, body.light .esc-en2 .esc-tile, body.light .esc-en46 .esc-tile,
body.light .esc-en1 .esc-lock, body.light .esc-en2 .esc-lock, body.light .esc-en46 .esc-lock { color: var(--ink); background: #fff; border-color: rgba(15,22,40,.14); }
body.light .esc-en1 .esc-ans:hover:not(:disabled), body.light .esc-en2 .esc-ans:hover:not(:disabled), body.light .esc-en46 .esc-ans:hover:not(:disabled) { background: color-mix(in srgb, var(--c1) 8%, #fff); border-color: var(--c1); }
body.light .esc-en1 .esc-ans.ok, body.light .esc-en2 .esc-ans.ok, body.light .esc-en46 .esc-ans.ok { color: #0B3D1A; background: #E6FCEB; border-color: var(--ok); }
body.light .esc-en1 .esc-ans.bad, body.light .esc-en2 .esc-ans.bad, body.light .esc-en46 .esc-ans.bad { color: #7A1022; background: #FFE8EC; }
body.light .esc-en1 .esc-ans .k, body.light .esc-en2 .esc-ans .k, body.light .esc-en46 .esc-ans .k { color: var(--c1); background: color-mix(in srgb, var(--c1) 10%, transparent); border-color: color-mix(in srgb, var(--c1) 30%, transparent); }
body.light .esc-en1 .esc-lock.open, body.light .esc-en2 .esc-lock.open, body.light .esc-en46 .esc-lock.open { color: var(--ok); background: #E6FCEB; border-color: var(--ok); }
body.light .esc-en1 .esc-msg.ok, body.light .esc-en2 .esc-msg.ok, body.light .esc-en46 .esc-msg.ok { color: #14532D; background: #EBFBEE; border-color: #8CE99A; }
body.light .esc-en1 .esc-msg.bad, body.light .esc-en2 .esc-msg.bad, body.light .esc-en46 .esc-msg.bad { color: #7A1022; background: #FFF0F2; border-color: #FFA8B5; }
/* komunikaty i baner na jasnej konsoli: ciemne kolory (kontrast min. 4,5:1), baner na białym tle */
body.light .esc.esc-en1, body.light .esc.esc-en2, body.light .esc.esc-en46 { --bad: #C92A2A; }
body.light .esc-en1 .esc-msg.ok b.h, body.light .esc-en2 .esc-msg.ok b.h, body.light .esc-en46 .esc-msg.ok b.h { color: #1B6E2E; }
body.light .esc-en1 .esc-msg.bad b.h, body.light .esc-en2 .esc-msg.bad b.h, body.light .esc-en46 .esc-msg.bad b.h { color: #B02525; }
body.light .esc-en1 .esc-banner, body.light .esc-en2 .esc-banner, body.light .esc-en46 .esc-banner { text-shadow: none; background: #fff; border-width: 2px; box-shadow: 0 16px 40px -14px rgba(15,22,40,.45); }
body.light .esc-en1 .esc-banner.ok, body.light .esc-en2 .esc-banner.ok, body.light .esc-en46 .esc-banner.ok { color: #1B6E2E; border-color: #69DB7C; }
body.light .esc-en1 .esc-banner.bad, body.light .esc-en2 .esc-banner.bad, body.light .esc-en46 .esc-banner.bad { color: #B02525; border-color: #FF8787; }
/* okno dyplomu jest zawsze ciemne – „Anuluj”/„Zamknij” bez jasnego stylu konsoli (inaczej biały tekst na białym) */
body.light .esc-dlg .esc-ghost { color: #E8F4FF; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
body.light .esc-dlg .esc-ghost:hover { background: rgba(255,255,255,.16); }
body.light .esc-en1 .esc-full-btn, body.light .esc-en2 .esc-full-btn, body.light .esc-en46 .esc-full-btn { color: var(--ink); background: #fff; border-color: rgba(15,22,40,.16); }
body.light .esc-en1 .esc-star, body.light .esc-en2 .esc-star, body.light .esc-en46 .esc-star { color: #D9DEE7; }
body.light .esc-en1 .esc-star.on, body.light .esc-en2 .esc-star.on, body.light .esc-en46 .esc-star.on { color: #F59F00; }
body.light .esc-en1 .esc-door, body.light .esc-en2 .esc-door, body.light .esc-en46 .esc-door { border-color: rgba(15,22,40,.2); }
/* finały: elementy z białym tekstem na ciemnym tle */
body.light .esc-en2 .en2-goal, body.light .esc-en46 .is-goal { color: #3A4256; }
body.light .esc-en2 .en2-goal b, body.light .esc-en46 .is-goal b, body.light .esc-en46 .is-done, body.light .esc-en2 .en2-pass, body.light .esc-en1 .en1-pass b { color: #111827; }
body.light .esc-en1 .en1-pass { color: #8A4B00; }
body.light .esc-en2 .en2-slot, body.light .esc-en46 .is-line, body.light .esc-ap .ap-chat, body.light .esc-wp .wp-addr { background: #fff; }
body.light .esc-en2 .en2-word, body.light .esc-en46 .is-w, body.light .esc-en46 .lb-let, body.light .esc-ap .ap-line-b, body.light .esc-en2 .en2-city-b { color: var(--ink); background: #fff; border-color: rgba(15,22,40,.16); }
body.light .esc-en2 .en2-word.on, body.light .esc-en46 .is-w.on, body.light .esc-en2 .en2-city-b[aria-pressed="true"] { color: #fff; background: var(--c1); border-color: var(--c1); }
body.light .esc-en46 .lb-slots span { color: #111827; border-color: rgba(15,22,40,.3); }
body.light .esc-en46 .lb-slots span.on { color: var(--c1); border-color: var(--c1); }
body.light .esc-en46 .lb-pic small, body.light .esc-en2 .en2-ph, body.light .esc-en46 .is-ph { color: #5B6475; }
body.light .esc-en46 .dt-desc { color: #111827; background: #fff; }
body.light .esc-en1 .pr-say { color: #8A4B00; }
body.light .esc-en1 .pr-lock { background: #fff; }
body.light .esc-en1 .pr-lock span { border-color: rgba(15,22,40,.3); }
body.light .esc-ap .ap-chat li.ap-A { background: #E7F5FF; } body.light .esc-ap .ap-chat li.ap-B { background: #EBFBEE; }
body.light .esc-en2 .en2-city span, body.light .esc-en1 .esc-best, body.light .esc-en2 .esc-best, body.light .esc-en46 .esc-best { color: #5B6475; }
body.light .esc-en1 .esc-life.lost, body.light .esc-en2 .esc-life.lost, body.light .esc-en46 .esc-life.lost { color: #ADB5BD; }
body.light .esc-en1 .esc-rig-cap, body.light .esc-en2 .esc-rig-cap, body.light .esc-en46 .esc-rig-cap, body.light .esc-en1 .esc-q-meta, body.light .esc-en2 .esc-q-meta, body.light .esc-en46 .esc-q-meta { color: #5B6475; }
