/* ===== MOTYW KRAINY JEDNOROŻCÓW (nocne, bajkowe niebo) — wspólny dla gier w /hela/kraina ===== */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; font-family: 'Fredoka', system-ui, sans-serif; color: #fff; overflow-x: hidden;
  background: radial-gradient(1000px 520px at 15% -10%, rgba(240,171,252,.35), transparent 60%),
              radial-gradient(800px 480px at 110% 5%, rgba(125,211,252,.3), transparent 60%),
              linear-gradient(180deg, #1e1b4b, #4c1d95 50%, #831843);
  background-attachment: fixed; padding: 10px 14px 30px;
}
.gwiazdy, .gwiazdy::after { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(2px 2px at 10% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 30% 70%, #fde68a, transparent), radial-gradient(2px 2px at 55% 15%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 75% 45%, #f9a8d4, transparent), radial-gradient(2px 2px at 90% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 20% 90%, #c4b5fd, transparent),
    radial-gradient(1.5px 1.5px at 65% 85%, #fff, transparent), radial-gradient(2px 2px at 42% 40%, #a5f3fc, transparent), radial-gradient(1.5px 1.5px at 85% 10%, #fff, transparent);
  animation: migotanie 3s ease-in-out infinite alternate; }
.gwiazdy::after { content: ""; transform: translate(7%, 11%); animation-delay: 1.5s; }
@keyframes migotanie { from { opacity: .35 } to { opacity: 1 } }
main, header, footer { position: relative; z-index: 1; }
header { text-align: center; margin: 6px auto 4px; }
.gorne { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.powrot, .maly { display: inline-block; color: #fff; text-decoration: none; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: 5px 16px; border-radius: 999px; font: 600 16px 'Fredoka', sans-serif; cursor: pointer; }
h1 { margin: 8px 0 0; font-size: clamp(32px, 7.5vw, 54px); font-weight: 700; line-height: 1.05; }
.h1-tekst { background: linear-gradient(90deg, #f9a8d4, #fde68a, #86efac, #7dd3fc, #c4b5fd, #f9a8d4); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: tecza 6s linear infinite; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
@keyframes tecza { to { background-position: 200% center; } }
.podtytul { margin: 4px 0 0; font-size: 18px; opacity: .9; }
.szklo { max-width: 860px; margin: 14px auto; padding: 18px; border-radius: 28px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 12px 40px rgba(0,0,0,.28); }
canvas { display: block; width: 100%; height: auto; }
h2 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.wybor { display: flex; flex-wrap: wrap; gap: 9px; }
.probka { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255,255,255,.8); cursor: pointer; position: relative; padding: 0; transition: transform .15s; }
.kafel { font: 600 16px 'Fredoka', sans-serif; color: #fff; border: 2px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12); border-radius: 16px; padding: 6px 10px; cursor: pointer; position: relative; display: inline-flex; align-items: center; gap: 6px; }
.kafel .em { font-size: 24px; }
.probka[aria-pressed="true"], .kafel[aria-pressed="true"] { outline: 4px solid #fde68a; outline-offset: 2px; transform: scale(1.06); }
.kafel[aria-pressed="true"] { background: rgba(253,230,138,.25); }
.przyciski { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }
.przycisk { font: 700 20px 'Fredoka', sans-serif; color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; cursor: pointer; text-decoration: none; display: inline-block;
  background: linear-gradient(135deg, #f472b6, #a855f7); box-shadow: 0 6px 0 #6b21a8, 0 10px 24px rgba(236,72,153,.4); }
.przycisk:active { transform: translateY(4px); box-shadow: 0 2px 0 #6b21a8; }
.przycisk.mietowy { background: linear-gradient(135deg, #34d399, #06b6d4); box-shadow: 0 6px 0 #0e7490, 0 10px 24px rgba(52,211,153,.35); }
.przycisk.zloty { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 6px 0 #b45309, 0 10px 24px rgba(251,191,36,.35); }
.przycisk.jasny { background: rgba(255,255,255,.2); box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.przycisk.duzy { font-size: 24px; padding: 14px 34px; }
.przycisk:disabled { opacity: .5; cursor: default; }
.nakladka { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 20px;
  background: rgba(30,27,75,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.nakladka h2 { font-size: clamp(28px, 6vw, 40px); font-weight: 700; color: #fde68a; margin: 0; }
.nakladka p { margin: 0; font-size: 18px; max-width: 440px; }
.info { text-align: center; font-weight: 600; font-size: 18px; margin: 6px 0 0; }
footer, .stopka { text-align: center; font-size: 14px; opacity: .85; margin-top: 18px; }
footer a { color: #fde68a; }
[hidden] { display: none !important; }
@media (display-mode: standalone) { .tylko-strona { display: none !important; } body { padding-top: calc(10px + env(safe-area-inset-top)); } }

/* instalowanie aplikacji i okienko powitalne */
.instaluj { margin: 16px auto 0; max-width: 560px; padding: 12px 14px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.45); text-align: center; font-weight: 600; line-height: 1.5; }
.bezplatna { display: inline-block; margin: 6px 0; padding: 3px 14px; border-radius: 999px; background: linear-gradient(135deg, #22c55e, #10b981); color: #fff; font-weight: 700; }
.inne-apki { text-align: center; margin: 10px 0 0; }
.inne-apki a { color: #fde68a; font-weight: 600; }
#hello-okno { position: fixed; inset: 0; z-index: 9999; background: rgba(15,10,40,.65); display: flex; align-items: center; justify-content: center; padding: 16px; }
#hello-okno .okno { max-width: 380px; width: 100%; padding: 26px 22px; border-radius: 28px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #4c1d95, #7c3aed 55%, #db2777); box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.3); animation: hello-wjazd .5s ease-out; }
#hello-okno .reka { font-size: 64px; line-height: 1; animation: hello-machanie 1s ease-in-out 2; display: inline-block; }
#hello-okno .hello { font-size: 46px; font-weight: 700; margin: 8px 0 2px; background: linear-gradient(90deg, #f9a8d4, #fde68a, #86efac, #7dd3fc, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
#hello-okno .witaj { font-size: 20px; font-weight: 700; }
#hello-okno p { font-size: 16px; margin: 12px 0; }
#hello-okno .darmo { font-weight: 700; color: #bbf7d0; }
@keyframes hello-wjazd { from { transform: scale(.6); opacity: 0 } to { transform: scale(1); opacity: 1 } }
@keyframes hello-machanie { 0%,100% { transform: rotate(0) } 25% { transform: rotate(20deg) } 75% { transform: rotate(-15deg) } }
