/* Samouczek „Droga z podwórka” z Kają (js/samouczek.js) · v1.24: jeden układ od powitania po finał
   Paleta gry: ciemne karty, limonka (--acc) = postęp i „zrobione”, magenta STREET z logo = akcja samouczka (życzenie właściciela, v1.23) i akcenty Kai. */
:root { --street: #ec00a0; --street-hi: #ff3cc4; --street-lo: #b8007c; --street-sh: #6e004a;
  --tut-bg: linear-gradient(180deg, #1a2034, #121625); --tut-line: rgba(236,0,160,.42); --tut-txt: #d4d9e6; --tut-r: 16px; }

/* ----- wspólne klocki ----- */
.tut-bust { border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3a2340, #161a29 70%); border: 2px solid rgba(236,0,160,.7);
  box-shadow: 0 4px 12px rgba(0,0,0,.5); object-fit: cover; object-position: 50% 0; flex: none; }
.tut-x { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text);
  font-size: 16px; line-height: 1; padding: 0; display: inline-grid; place-items: center; cursor: pointer; }
.tut-x:hover, .tut-x[aria-pressed="true"] { border-color: var(--street-hi); color: var(--street-hi); }
.tut-link { background: none; border: 0; padding: 6px 0; color: var(--muted); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tut-link:hover { color: var(--text); }
#tut :is(button, a):focus-visible, .tut-pbox :is(button, a):focus-visible, #tut-toasts :focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.tut-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tut-bar i { height: 6px; border-radius: 6px; background: rgba(255,255,255,.09); overflow: hidden; }
.tut-bar b { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), #7dff6a); border-radius: 6px; transition: width .4s; }
.tut-rew { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tut-rew > small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.tut-rew .rew-chips { display: contents; }
.tut-info { margin: 0; color: var(--tut-txt); font-size: 13.5px; line-height: 1.5; }
.tut-info:empty { display: none; }
.tut-ic { width: 26px; height: 26px; object-fit: contain; flex: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.tut-ie { width: 26px; text-align: center; font-style: normal; font-size: 16px; line-height: 26px; flex: none; }
.tut-how { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: th; }
.tut-how li { counter-increment: th; display: flex; align-items: center; gap: 7px; padding: 4px 11px 4px 5px; border-radius: 999px; background: rgba(255,255,255,.05);
  border: 1px solid var(--line); font-size: 12.5px; }
.tut-how li::before { content: counter(th); width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--acc); color: #111; font: 800 11px/18px var(--font); text-align: center; }
.tut-how li b { font-weight: 600; }
.tut-stops { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tut-stops li { display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.tut-stops li.on { color: var(--text); border-color: var(--street-hi); background: rgba(236,0,160,.12); font-weight: 600; }
.tut-stops li.ok { color: var(--acc); }
.tut-stops .tut-ic, .tut-stops .tut-ie { width: 22px; height: 22px; line-height: 22px; font-size: 13px; }
.tut-stops li.ok .tut-ie { font-weight: 800; color: var(--acc); }
.tut-stopn { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.tut-stopn .tut-ic { width: 22px; height: 22px; }

/* podpowiedź Kai w formularzach gry (np. własna ekipa, js/beta.js) */
.tut-hint { margin: 0 0 8px; font-size: 12.5px; color: #ff8ad8; }
.tut-hint.ok { color: var(--acc); }
/* dymek Kai: portret + jedno zdanie (co zrobić) */
.tut-say { display: flex; align-items: flex-start; gap: 10px; }
.tut-sb { width: 52px; height: 52px; }
.tut-say p { position: relative; flex: 1; min-width: 0; margin: 2px 0 0; padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: rgba(236,0,160,.1);
  border: 1px solid rgba(236,0,160,.38); color: #f1f3f9; font-size: 14px; line-height: 1.45; }
.tut-say p b { color: var(--street-hi); }
.tut-say p .tut-ic { width: 20px; height: 20px; vertical-align: -5px; margin-right: 4px; }
.tut-who { display: block; color: var(--street-hi); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.tut-say.ok p { background: rgba(198,255,0,.08); border-color: rgba(198,255,0,.4); }
.tut-say.ok .tut-who { color: var(--acc); }
.tut-say.wait p { background: rgba(255,210,63,.07); border-color: rgba(255,210,63,.35); }
.tut-say.wait .tut-who { color: var(--gold); }

/* główne przyciski samouczka: magenta jak napis STREET w logo */
.btn.primary.tut-cta { background: linear-gradient(180deg, var(--street-hi), var(--street-lo)); border: 1px solid #ff6ad6; color: #fff;
  text-shadow: 0 1px 2px rgba(60,0,40,.6); box-shadow: 0 4px 0 var(--street-sh), 0 8px 22px rgba(236,0,160,.38); letter-spacing: .5px; }
.btn.primary.tut-cta:hover:not(:disabled) { filter: brightness(1.08); background: linear-gradient(180deg, var(--street-hi), var(--street-lo)); box-shadow: 0 4px 0 var(--street-sh), 0 10px 28px rgba(236,0,160,.55); }
.btn.primary.tut-cta:not(:disabled):active { box-shadow: 0 1px 0 var(--street-sh), 0 3px 10px rgba(236,0,160,.35); transform: translateY(3px); }
.btn.primary.tut-cta:disabled { filter: saturate(.4) brightness(.8); }
.btn.primary.big.tut-cta { font-size: 18px; padding: 13px 34px; border-radius: 14px; min-width: 240px; }

/* ----- panel Kai (prawy dolny róg) ----- */
/* z-index 45: nad menu (#nav 30, pasek 20), pod oknami gry (mecz 50, nagrody 60, karty 70–80, skrzynki 200, toasty 100) */
#tut.tut-dock { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 372px; max-width: calc(100vw - 24px); }
#tut.tut-dock.strip { width: 440px; }
#tut.tut-dock.min { width: auto; }
#tut.tut-dock.gone { display: none; }
#tut.tut-dock.p-bl, #tut.tut-dock.p-tl { right: auto; left: 18px; }
#tut.tut-dock.p-tr, #tut.tut-dock.p-tl { bottom: auto; top: 78px; }
.tut-card { display: flex; flex-direction: column; gap: 10px; background: var(--tut-bg); border: 1px solid var(--tut-line); border-radius: var(--tut-r);
  padding: 12px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4), 0 0 24px rgba(236,0,160,.14); max-height: calc(100vh - 40px); }
#tut.p-tr .tut-card, #tut.p-tl .tut-card { max-height: calc(100vh - 100px); }
.tut-card.tut-pulse { animation: tutPulse 1s ease 2; }
.tut-top { display: flex; align-items: center; gap: 6px; }
.tut-topt { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.2; }
.tut-topt small { color: var(--acc); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tut-topt span { color: var(--muted); font-size: 12.5px; }
.tut-body { display: grid; gap: 10px; overflow: auto; min-height: 0; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px; }
.tut-card h4 { margin: 0; font-size: 17px; line-height: 1.25; color: #fff; }
.tut-moreb { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.tut-act { display: flex; flex-direction: column; gap: 8px; flex: none; }
.tut-act .btn.wide { width: 100%; min-height: 44px; }
.tut-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: -4px; flex: none; }

/* otwarcie rozdziału: cała postać Kai + wstęp */
.tut-chin { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: end; padding: 10px 12px 10px 4px; margin-top: 18px;
  border-radius: 14px; background: radial-gradient(circle at 15% 100%, rgba(236,0,160,.28), transparent 60%), rgba(255,255,255,.03); border: 1px solid rgba(236,0,160,.35); }
.tut-chfig { width: 92px; height: 132px; margin-top: -30px; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 8px 12px rgba(0,0,0,.55)); animation: tutIn .45s ease; }
.tut-chin small { color: var(--street-hi); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tut-chin b { display: block; font-family: var(--display); font-size: 26px; line-height: 1; letter-spacing: .03em; margin: 2px 0 4px; color: #fff; }
.tut-chin p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--tut-txt); }

/* pasek po „Pokaż mi”: portret + wskazówka, przycisk pod ręką */
.tut-strip { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; background: var(--tut-bg); border: 1px solid var(--tut-line); border-radius: var(--tut-r);
  box-shadow: 0 14px 40px rgba(0,0,0,.6), 0 0 20px rgba(236,0,160,.14); max-height: 42vh; }
.tut-strip .tut-sb { width: 48px; height: 48px; }
.tut-stx { flex: 1; min-width: 0; display: grid; gap: 2px; max-height: calc(42vh - 16px); overflow: auto; }
.tut-stx small { color: var(--street-hi); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tut-stx p { margin: 0; font-size: 13.5px; line-height: 1.4; color: #f1f3f9; }
.tut-stx p b { color: var(--street-hi); }
.tut-stx .tut-ic { width: 18px; height: 18px; vertical-align: -4px; margin-right: 3px; }
.tut-sbt { display: flex; align-items: center; gap: 6px; flex: none; }
.tut-strip.wait { border-color: rgba(255,210,63,.45); }

/* mapa kroków (☰) */
.tut-list { display: grid; gap: 12px; }
.tut-lch h5 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; color: var(--text); }
.tut-lch h5 span { flex: 1; }
.tut-lch h5 small { color: var(--muted); font-weight: 600; }
.tut-lch.ok h5 small { color: var(--acc); }
.tut-lk { width: 28px; height: 28px; }
.tut-li { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; padding: 7px 8px; margin-bottom: 4px; border-radius: 10px;
  border: 1px solid transparent; background: rgba(255,255,255,.03); color: var(--text); font-size: 13px; cursor: pointer; }
.tut-li:hover { border-color: var(--line); }
.tut-lst { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 11px; font-weight: 800; }
.tut-ltx { flex: 1; min-width: 0; }
.tut-li em { font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; }
.tut-li.ok { color: var(--muted); }
.tut-li.ok .tut-lst { background: rgba(198,255,0,.15); border-color: rgba(198,255,0,.5); color: var(--acc); }
.tut-li.ready { border-color: rgba(198,255,0,.45); }
.tut-li.ready .tut-lst { border: 0; }
.tut-li.ready em { background: var(--acc); color: #111; }
.tut-li.cur { border-color: var(--street-hi); background: rgba(236,0,160,.12); font-weight: 600; }
.tut-li.cur .tut-lst { background: var(--street); border-color: var(--street); color: #fff; }
.tut-li.cur em { background: var(--street); color: #fff; }

/* zwinięty panel: pigułka */
.tut-pillrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tut-pillrow .btn { box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.tut-pill { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid rgba(236,0,160,.6);
  background: #151a2b; color: var(--text); font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); cursor: pointer; }
.tut-pill b { color: var(--acc); }
.tut-pk { width: 38px; height: 38px; }
.tut-pill .rdot { margin-left: 0; }

/* ----- podświetlony cel w dziale: przycisk cały w kolorze STREET, większe miejsca obramowane magentą ----- */
.tut-spot { outline: none !important; }
.tut-spot-btn { position: relative; z-index: 5; background: linear-gradient(180deg, var(--street-hi), var(--street-lo)) !important; border-color: #ff6ad6 !important;
  color: #fff !important; text-shadow: 0 1px 2px rgba(60,0,40,.6) !important; animation: tutSpotM 1.4s ease-in-out infinite !important; }
.tut-spot-btn * { color: inherit !important; }
.tut-spot-btn:disabled { opacity: 1; filter: saturate(.6); }
.tut-spot-area { position: relative; z-index: 5; outline: 3px solid var(--street) !important; outline-offset: 3px; border-radius: 12px; animation: tutSpotM 1.4s ease-in-out infinite !important; }

/* ----- powitanie i gratulacje ----- */
#tut.tut-modal { position: fixed; inset: 0; z-index: 1000; }
.tut-veil { position: absolute; inset: 0; background: rgba(4,5,10,.8); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 18px; overflow: auto; }
.tut-welcome { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 26px; align-items: start; width: min(880px, 100%); padding: 28px 32px 30px;
  background: radial-gradient(circle at 0 0, rgba(236,0,160,.14), transparent 55%), linear-gradient(180deg, #1a2034, #10131f);
  border: 1px solid rgba(236,0,160,.45); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.7); animation: tutIn .35s ease; }
.tut-wside { display: flex; justify-content: center; align-self: center; }
.tut-wk { width: auto; max-width: 100%; max-height: 400px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)); animation: tutBob 3s ease-in-out infinite; }
.tut-wtxt { display: grid; gap: 14px; min-width: 0; }
.tut-wtxt > * { margin: 0; }
.tut-wkick { color: var(--acc); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: 12px; }
.tut-wtxt h2 { font-family: var(--display); font-size: 44px; letter-spacing: .02em; line-height: .95; text-align: left; }
.tut-wtxt h2 span { color: var(--street-hi); }
.tut-wlead { font-size: 15px; line-height: 1.55; color: var(--tut-txt); }
.tut-welcome .tut-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tut-welcome .tut-how li { min-width: 0; padding: 5px 10px 5px 6px; font-size: 13px; line-height: 1.2; }
.tut-welcome .tut-how li b { min-width: 0; }
.tut-welcome .tut-ic { width: 30px; height: 30px; }
.tut-wch { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tut-wch span { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 12px 6px 10px; min-height: 104px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); text-align: center; }
.tut-wch span i { position: absolute; top: 7px; left: 9px; font: 800 12px/1 var(--font); font-style: normal; color: var(--street-hi); }
.tut-wch img { width: 50px; height: 50px; }
.tut-wch b { font-size: 12px; font-weight: 600; line-height: 1.25; }
.tut-wrew { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.tut-wrew p { margin: 0; font-size: 14px; color: #cfd5e4; line-height: 1.45; }
.tut-wrc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tut-wrc .rew-chips { display: contents; }
.tut-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,210,63,.5); background: rgba(255,210,63,.08);
  color: var(--gold); font-weight: 700; font-size: 13px; white-space: nowrap; }
.tut-badge small { color: var(--muted); font-weight: 500; font-size: 11.5px; text-transform: none; letter-spacing: 0; }
.tut-welcome .tut-act { flex-direction: row; justify-content: flex-start; margin-top: 4px; }
.tut-fin { border-color: rgba(255,210,63,.55); background: radial-gradient(circle at 0 0, rgba(255,210,63,.18), transparent 55%), linear-gradient(180deg, #1f1c2e, #10131f); }
.tut-fin h2 { color: var(--gold); }
.tut-finrew .rew-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tut-next { flex-direction: column; align-items: flex-start; }

/* odznaka w profilu */
.ptitle.tut-grad { border-color: rgba(255,210,63,.6); color: var(--gold); }

/* ----- karta samouczka na Pulpicie (tutPulpit) ----- */
.firstbox.tut-pbox { border-color: var(--tut-line); background: radial-gradient(circle at 0 0, rgba(236,0,160,.12), transparent 45%), var(--card); display: grid; gap: 12px; }
.tut-pm { display: flex; gap: 16px; align-items: flex-start; }
.tut-pbust { width: 84px; height: 84px; }
.tut-pb { flex: 1; min-width: 0; display: grid; gap: 9px; }
.tut-ptop { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tut-ptop small { color: var(--acc); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.tut-ptop span { color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; }
.tut-pb h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.tut-say.flat .tut-sb { display: none; }
.tut-say.flat p { margin: 0; }
.tut-prow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tut-pbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: auto; }
.tut-pbtns .btn { min-height: 44px; }
.tut-pchs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tut-pchs li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 7px; align-items: center; padding: 7px 9px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); opacity: .7; min-width: 0; }
.tut-pchs li i { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 800 12px/1 var(--font); font-style: normal;
  background: rgba(255,255,255,.08); color: var(--muted); }
.tut-pchs li span { font-size: 12.5px; font-weight: 600; line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.tut-pchs li small { color: var(--muted); font-size: 11px; }
.tut-pchs li.on { opacity: 1; border-color: var(--street-hi); background: rgba(236,0,160,.1); }
.tut-pchs li.on i { background: var(--street); color: #fff; }
.tut-pchs li.ok { opacity: 1; border-color: rgba(198,255,0,.4); }
.tut-pchs li.ok i { background: var(--acc); color: #111; }
.tut-pfin { margin: 0; color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tut-pfin .rew-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.w1-box .tut-say { margin-bottom: 10px; }

/* nagroda za krok: reakcja przewodniczki na górze strony, na środku pod paskiem z zasobami (top liczy tutToast; v1.26: wcześniej prawy róg) */
#tut-toasts { position: fixed; left: 50%; top: 72px; transform: translateX(-50%); width: min(520px, calc(100vw - 24px)); z-index: 110; display: grid; gap: 8px; justify-items: stretch; pointer-events: none; }
.tut-toast { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: none; padding: 10px 14px 10px 10px; border-radius: 14px;
  background: linear-gradient(180deg, #1d2236, #141826); border: 1px solid rgba(236,0,160,.55); box-shadow: 0 12px 30px rgba(0,0,0,.55), 0 0 18px rgba(236,0,160,.2);
  animation: tutToastIn .3s ease; transition: opacity .4s, transform .4s; }
.tut-toast.ch { border-color: rgba(198,255,0,.6); box-shadow: 0 12px 30px rgba(0,0,0,.55), 0 0 22px rgba(198,255,0,.25); }
.tut-toast.out { opacity: 0; transform: translateY(-14px); }
.tut-toast > div { display: grid; gap: 3px; min-width: 0; }
.tut-toast small { color: var(--street-hi); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.tut-toast.ch small { color: var(--acc); }
.tut-toast b { font-size: 13.5px; line-height: 1.25; }
.tut-toast .rew-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tut-tk { width: 46px; height: 46px; }
.tut-toast.ch .tut-tk { width: 56px; height: 56px; border-color: rgba(198,255,0,.7); }

/* Centrum Szkoleniowe: przycisk sesji w kolorze grupy umiejętności (jak w Treningu) */
.btn.primary.big.cs-go { background: linear-gradient(180deg, var(--gh), var(--gc)); border: 1px solid var(--gh); color: #10131c; text-shadow: 0 1px 0 rgba(255,255,255,.35);
  box-shadow: 0 4px 0 var(--gs), 0 8px 22px color-mix(in srgb, var(--gc) 40%, transparent); }
.btn.primary.big.cs-go:hover:not(:disabled) { background: linear-gradient(180deg, var(--gh), var(--gc)); filter: brightness(1.08); box-shadow: 0 4px 0 var(--gs), 0 10px 28px color-mix(in srgb, var(--gc) 55%, transparent); }
.btn.primary.big.cs-go:disabled { background: #2a303c; border-color: #2a303c; color: #8b95a7; box-shadow: none; text-shadow: none; }
.cs-go.g-atak { --gc: #ff5d5d; --gh: #ff8a8a; --gs: #a52f2f; }
.cs-go.g-gra { --gc: #ffd23f; --gh: #ffe27a; --gs: #a8861a; }
.cs-go.g-obrona { --gc: #3fa7ff; --gh: #7cc4ff; --gs: #1f6bb0; }
.cs-go.g-bramka { --gc: #39ff9f; --gh: #7dffbf; --gs: #1a9e5f; }
.cs-go.g-fizyka { --gc: #b46cff; --gh: #cf9bff; --gs: #6f3aa8; }

/* v1.22c panel admina: lejek samouczka */
.ad-tscroll { overflow-x: auto; }
.ad-funnel td { vertical-align: middle; }
.ad-funnel td:nth-child(3) { min-width: 160px; }
.ad-fbar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 2px; }
.ad-fbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), #7dff6a); }
.ad-funnel tr.ad-hot td { background: rgba(255,90,90,.12); }

/* v1.22c Pierwszy tydzień (karta na Pulpicie) */
.w1-list { display: grid; gap: 6px; }
.w1-g { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.w1-g > i { font-style: normal; font-size: 22px; text-align: center; }
.w1-g > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.w1-g small { color: var(--muted); font-size: 11.5px; }
.w1-g.ready { border-color: rgba(198,255,0,.5); }
.w1-g.ok { opacity: .65; }
.w1-g.lock { opacity: .55; }
.w1-r .rew-chips { display: inline-flex; flex-wrap: wrap; }
.w1-ok { color: var(--acc); font-size: 12.5px; }

@keyframes tutBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes tutSpotM { 0%, 100% { box-shadow: 0 0 0 0 rgba(236,0,160,.65), 0 0 18px rgba(236,0,160,.45); } 50% { box-shadow: 0 0 0 10px rgba(236,0,160,0), 0 0 26px rgba(236,0,160,.6); } }
@keyframes tutPulse { 50% { box-shadow: 0 0 0 4px rgba(236,0,160,.5), 0 18px 50px rgba(0,0,0,.6); } }
@keyframes tutIn { from { transform: translateY(14px) scale(.98); opacity: 0; } }
@keyframes tutToastIn { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .tut-wk, .tut-welcome, .tut-chfig, .tut-card.tut-pulse, .tut-toast { animation: none !important; }
  .tut-toast { transition: none; }
  .tut-bar b { transition: none; }
  .tut-spot-btn, .tut-spot-area { animation: none !important; box-shadow: 0 0 0 3px rgba(236,0,160,.75) !important; }
}

/* poniżej 900 px menu gry (#nav) jest paskiem na dole ekranu (64 px): panel stoi nad nim */
@media (max-width: 900px) {
  #tut.tut-dock { bottom: 76px; }
  .tut-card { max-height: calc(100vh - 150px); }
}
/* ----- telefon ----- */
@media (max-width: 700px) {
  #tut.tut-dock, #tut.tut-dock.strip { right: 8px; left: 8px; bottom: 72px; width: auto; }
  #tut.tut-dock.min { left: auto; }
  #tut.tut-dock.p-bl, #tut.tut-dock.p-tl { left: 8px; }
  #tut.tut-dock.min.p-bl, #tut.tut-dock.min.p-tl { right: auto; }
  #tut.tut-dock.p-tr, #tut.tut-dock.p-tl { top: 64px; bottom: auto; }
  .tut-card { max-height: min(62vh, calc(100vh - 150px)); padding: 10px 12px; gap: 8px; }
  #tut.p-tr .tut-card, #tut.p-tl .tut-card { max-height: min(62vh, calc(100vh - 150px)); }
  .tut-card h4 { font-size: 16px; }
  .tut-sb { width: 44px; height: 44px; }
  .tut-say p { font-size: 13.5px; padding: 8px 10px; }
  .tut-chin { grid-template-columns: 74px 1fr; margin-top: 14px; }
  .tut-chfig { width: 74px; height: 106px; margin-top: -24px; }
  .tut-chin b { font-size: 22px; }
  .tut-strip { padding: 6px 6px 6px 8px; gap: 8px; }
  .tut-strip .tut-sb { width: 40px; height: 40px; }
  .tut-stx p { font-size: 13px; }
  .tut-welcome { grid-template-columns: 1fr; gap: 10px; padding: 18px 16px 20px; }
  .tut-wk { max-height: 170px; }
  .tut-wtxt { gap: 12px; }
  .tut-wtxt h2 { font-size: 32px; text-align: center; }
  .tut-wkick { text-align: center; }
  .tut-wlead { font-size: 14px; }
  .tut-welcome .tut-how { grid-template-columns: 1fr; }
  .tut-wch { gap: 4px; }
  .tut-wch span { min-height: 0; padding: 8px 2px; }
  .tut-wch img { width: 36px; height: 36px; }
  .tut-wch b { display: none; }
  .tut-welcome .tut-act .btn { width: 100%; min-width: 0; }
  .tut-pm { gap: 10px; }
  .tut-pbust { width: 56px; height: 56px; }
  .tut-pb h3 { font-size: 17px; }
  .tut-ptop small { font-size: 10.5px; }
  .tut-pbtns { width: 100%; justify-content: flex-end; }
  .tut-pbtns .btn { flex: 1; }
  .tut-pchs { gap: 4px; }
  .tut-pchs li { grid-template-columns: 1fr; justify-items: center; padding: 6px 2px; text-align: center; }
  .tut-pchs li i { grid-row: auto; }
  .tut-pchs li span { display: none; }
  #tut-toasts { width: calc(100vw - 16px); }
  .w1-g { grid-template-columns: 32px 1fr auto; }
  .w1-r { grid-column: 2 / -1; }
  .w1-g > :last-child { grid-column: 3; grid-row: 1; }
}
/* wąski telefon (320–360 px): pasek po „Pokaż mi” w dwóch rzędach, przyciski pod tekstem */
@media (max-width: 380px) {
  .tut-strip { flex-wrap: wrap; }
  .tut-stx { flex-basis: calc(100% - 50px); }
  .tut-sbt { width: 100%; justify-content: flex-end; }
  .tut-sbt .btn { flex: 1; }
  .tut-wtxt h2 { font-size: 28px; }
}
/* niskie okno (telefon poziomo, mały laptop): mniej ozdobników, panel niższy */
@media (max-height: 520px) {
  .tut-card { max-height: calc(100vh - 24px); }
  #tut.tut-dock { bottom: 8px; }
  .tut-chfig { display: none; }
  .tut-chin { grid-template-columns: 1fr; margin-top: 0; padding-left: 12px; }
  .tut-wk { max-height: 150px; }
  .tut-welcome { padding: 14px 16px; }
  .tut-wch { display: none; }
  .tut-strip { max-height: 60vh; }
}
@media (max-height: 520px) and (max-width: 900px) { #tut.tut-dock { bottom: 70px; } .tut-card { max-height: calc(100vh - 84px); } }
