/* BrixBang! Zimní edice: colour layer over the shared study.css. Layout stays identical. */
:root { --bg:#081526; --line:#20344a; --lime:#e8f6ff; --mint:#9fdcff; --accent:#9fdcff; }
/* One uniform night colour behind the page; the playing field is transparent over it. */
html { background:#081526; }
body { background:transparent; }
.page { position:relative; z-index:1; }

/* Falling snow behind the page: two layers of crystal tiles (winter-art.js adds the elements)
   fall straight down and loop exactly one tile height, so the fall never jumps. Wind gusts from
   the right shift the layers through the separate translate property; the layers are wider than
   the screen and the shift wraps by whole tiles. */
.winter-snow { position:fixed; left:-560px; right:-560px; z-index:0; pointer-events:none; will-change:transform, translate; }
.winter-snow.near { top:-397px; height:calc(100% + 397px); opacity:.85; background-image:url("snow-near.svg"); background-size:397px 397px; animation:winter-snow-near 29s linear infinite; }
.winter-snow.far { top:-523px; height:calc(100% + 523px); opacity:.8; background-image:url("snow-far.svg"); background-size:523px 523px; animation:winter-snow-far 19s linear infinite; }
@keyframes winter-snow-near { from { transform:translate3d(0,0,0); } to { transform:translate3d(0,397px,0); } }
@keyframes winter-snow-far { from { transform:translate3d(0,0,0); } to { transform:translate3d(0,523px,0); } }
/* "Minimální efekty" in the game settings and reduced motion keep the snow still. */
body.winter-snow-still .winter-snow { animation-play-state:paused; }
@media (prefers-reduced-motion: reduce) { .winter-snow { animation:none; } }

/* A realistic full moon in the free space left of the field on wide monitors only; winter-art.js places it
   and hides it on smaller screens. It sits behind the falling snow. */
.winter-moon { position:fixed; z-index:0; pointer-events:none; background:url("moon.svg") center / contain no-repeat; }
.winter-moon[hidden] { display:none; }

/* Ambience (winter-ambient.js): the moon's phase, stars, the shooting star and the sleigh.
   One canvas between the moon and the falling snow; it never takes the pointer. */
.winter-sky { position:fixed; inset:0; z-index:0; width:100%; height:100%; pointer-events:none; }
.winter-sky[hidden] { display:none; }

/* Misted glass only under the playing field, from the inner edge of the ice frame: the snow
   behind the bricks is soft and distant, the snow around the field stays sharp. */
.page::before { content:""; position:fixed; z-index:-1; pointer-events:none; left:var(--field-x, -9999px); top:var(--field-y, 0); width:var(--field-w, 0); height:var(--field-h, 0);
  -webkit-backdrop-filter:blur(2.6px); backdrop-filter:blur(2.6px); background:#0815261a; }

.wordmark span { color:#ff5d6c; }
.wordmark::after { content:"ZIMA"; margin-left:10px; padding:3px 7px 2px; border:1px solid #9fdcff66; border-radius:3px; color:#cfeaff; font-size:10px; font-weight:700; letter-spacing:1.6px; }
.arena-wrap { background:transparent; box-shadow:none; }
/* The ice frame marks the field; no extra focus line around it after a key press (forced colours
   still show the system outline). */
#arena:focus-visible { outline-color:transparent; }
/* The brick counter sits clear of the ice frame and reads in gold. */
.arena-status { top:40px; left:46px; }
#arena-goal { color:#ffd166; font-weight:750; letter-spacing:.9px; text-shadow:0 1px 3px #050b16, 0 0 10px #ffd16640; }
.completion-track { background:#ffffff1f; }
#completion-fill { background:linear-gradient(90deg, #ffd166, #ff5d6c); }
.primary-button { background:#e8f6ff; border-color:#e8f6ff; color:#08203a; }
.primary-button:hover { background:#ffffff; border-color:#ffffff; box-shadow:0 0 24px #9fdcff33; }
.overlay-window { background:linear-gradient(160deg, #0d2238f2, #08182af2); border-color:#2a4766; }
