/* „Pikselių Kalėdos“ dizaino sistema (žr. CLAUDE.md). Maketai: design/mockups/. */
:root {
  --ink: #1A1A1A; --paper: #FFF4DC; --cream: #FFFBF0;
  --red: #C42F2F; --red-dark: #8F1F1F; --red-nav: #A82626; --green: #267A45; --green-2: #2F8F52;
  --gold: #F5C542; --night: #1B2547; --night-deep: #0F1733; --night-line: #3A4A85;
  --snow: #F4F7FB; --snow-shade: #C9DAEA; --wood: #7A4B24;
  --text-2: #3B3B3B; --danger-bg: #FFE9E9; --ok-bg: #E6F4EA;
}
* { box-sizing: border-box; }
/* Horizontalų perteklių nukerpa pats body (overflow-x: clip), ne tik viewport'as: Firefox Android, kai kas nors išlenda
   už dešinio krašto, praplečia layout viewport'ą ir proporcingai jo aukštį, tad nuslinktas žemyn puslapis ima šokinėti. */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
       font-family: Nunito, "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.5; overflow-x: clip; }
img { image-rendering: pixelated; }
.pixel { font-family: "Pixelify Sans", monospace; text-transform: uppercase; letter-spacing: 1px; }
.eur { font-family: Nunito, sans-serif; font-weight: 800; } /* Pixelify Sans neturi € ženklo */
a { color: var(--red); } a:hover { color: var(--red-dark); }
a:focus-visible, button:focus-visible, input:focus, textarea:focus, select:focus, summary:focus-visible {
  outline: 3px dashed var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.desktop-only { display: none; }
@media (min-width: 900px) { .desktop-only { display: inline; } }

/* --- Antraštės juosta ----------------------------------------------------- */
.topbar { background: var(--red); color: #fff; flex: none; position: relative; z-index: 6; }
.topbar-inner { max-width: 1240px; margin: 0 auto; min-height: 64px; padding: 10px 16px 10px 20px;
                display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 22px; font-weight: 700; white-space: nowrap; }
.logo:hover { color: #fff; }
.logo img { display: block; }
.nav { display: none; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a, .nav .nav-soon { color: #fff; text-decoration: none; font-family: "Pixelify Sans", monospace; text-transform: uppercase;
                         font-size: 17px; padding: 8px 10px; border: 3px solid transparent; }
.nav a:hover { border-color: #fff; color: #fff; }
.nav a[aria-current="page"] { border-color: #fff; background: var(--red-nav); color: #fff; }
.tag { background: var(--gold); color: var(--ink); padding: 0 4px; font-size: 12px; font-family: "Pixelify Sans", monospace; text-transform: uppercase; }
@media (min-width: 900px) { .nav { display: flex; } }
.account { position: relative; }
.account summary { list-style: none; cursor: pointer; }
.account summary::-webkit-details-marker { display: none; }
.avatar { width: 44px; height: 44px; border: 3px solid var(--ink); background: var(--gold); color: var(--ink); box-shadow: 3px 3px 0 var(--ink);
          display: flex; align-items: center; justify-content: center; font-family: "Pixelify Sans", monospace; font-size: 20px; font-weight: 700; }
.account[open] .avatar { transform: translate(3px, 3px); box-shadow: none; }
.menu { position: absolute; right: 0; top: 54px; z-index: 30; min-width: 230px; background: #fff; color: var(--ink);
        border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.menu a { color: var(--ink); text-decoration: none; font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 16px; }
.menu a:hover { color: var(--red); }
.stripe { height: 10px; flex: none; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
          background: repeating-linear-gradient(90deg, #fff 0 10px, var(--red) 10px 20px); }

/* --- Scena ----------------------------------------------------------------- */
.scene { position: relative; height: 250px; flex: none; overflow: hidden; border-bottom: 3px solid var(--ink); background: var(--night); }
.scene-stars { position: absolute; inset: 0; }
.star { position: absolute; background: #FFF1B8; }
/* Paveikslėlio dangus permatomas, todėl žvaigždės matomos pro jį; platesniame ekrane šonuose – veidrodinės kopijos. */
.scene-tile { position: absolute; top: 0; left: 50%; width: 1440px; height: 250px; background: url("../img/scene-wide.2c78337aba2a.png") no-repeat 0 0 / 1440px 250px; image-rendering: pixelated; }
.scene-tile.center { margin-left: -720px; }
.scene-tile.left { margin-left: -2160px; transform: scaleX(-1); }   /* veidrodinis kaimynas: siūlė sutampa */
.scene-tile.right { margin-left: 720px; transform: scaleX(-1); }
.scene-wide { position: absolute; left: 50%; top: 0; width: 1440px; height: 250px; margin-left: -720px; }
.scene-wide > .sky { position: absolute; left: 0; top: 0; display: block; }
.scene-house { position: absolute; left: 524px; top: 0; width: 390px; height: 250px; }
.scene-house > * { position: absolute; }
.moon-phone { display: none; }
@media (max-width: 899px) { .moon-wide { display: none; } .moon-phone { display: block; } }
.garland { position: absolute; left: 0; top: 0; width: 100%; height: 40px; }
.garland svg { position: absolute; left: 0; top: 0; display: block; }
.bulb { position: absolute; box-sizing: border-box; width: 10px; height: 14px; border: 2px solid var(--ink); border-top-width: 4px; animation: bulb 1.2s step-end infinite; }
.bulb.small { width: 5px; height: 7px; border-width: 1px; border-top-width: 2px; }
.bulb.dot { width: 4px; height: 4px; border: none; }
.actor { left: 0; top: 0; }
.actor svg { display: block; }
.door { left: 292px; top: 174px; width: 18px; height: 34px; background: #FFE08A; opacity: 0; }
.door span { position: absolute; left: 0; top: 0; width: 4px; height: 34px; background: #B3302B; }
.win { left: 266px; top: 168px; width: 16px; height: 20px; background: #FFFDE8; opacity: 0; }
.puff { left: 228px; top: 42px; width: 26px; height: 22px; opacity: 0; }
.puff span { position: absolute; }
.gift { width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--ink); opacity: 0; }
.gift span { position: absolute; top: 0; width: 2px; }
.psmoke { animation: psmoke 2.4s steps(6) infinite; }
.twinkle { animation: ptw 1.6s step-end infinite; }
.pbob { animation: pbob .3s step-end infinite; }
.pbob.slow { animation-duration: .6s; }
.fa { animation: fa .3s step-end infinite; }
.fb { animation: fb .3s step-end infinite; }
.blink { animation: blink 1s step-end infinite; }
.shake { animation: shake 2.4s step-end infinite; }
.cursor { animation: blink 1s step-end infinite; }
[data-move="0"] .fa { animation: none; opacity: 0; }
[data-move="0"] .fb { animation: none; opacity: 1; }
[data-move="0"] .pbob { animation: none; }
.paused * { animation-play-state: paused !important; }
@keyframes bulb { 0% { opacity: 1; } 50% { opacity: .35; } 100% { opacity: .35; } }
@keyframes ptw { 0% { opacity: 1; } 50% { opacity: .25; } 100% { opacity: .25; } }
@keyframes psmoke { 0% { transform: translate(0, 0); opacity: .8; } 100% { transform: translate(6px, -24px); opacity: 0; } }
@keyframes pbob { 0% { transform: translateY(0); } 50% { transform: translateY(-1px); } 100% { transform: translateY(0); } }
@keyframes fa { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@keyframes fb { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 1; } }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@keyframes shake { 0% { transform: translate(0, 0); } 72% { transform: translate(-1px, 0); } 76% { transform: translate(1px, -1px); }
                   80% { transform: translate(-1px, 0); } 84% { transform: translate(1px, 0); } 88% { transform: translate(0, 0); } 100% { transform: translate(0, 0); } }

/* --- Sniego pusnis apačioje ir sniegas ---------------------------------------- */
/* Veikėjai ir saldainiai kyšo virš pusnies: kerpama tik šonuose ir apačioje, viršuje paliekama 90 px. */
.snow-layer { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; pointer-events: none; z-index: 5; overflow: hidden; }
.psnow { position: absolute; top: -8px; background: #fff; box-shadow: 0 0 0 1px rgba(27, 37, 71, .18); animation-name: fallp; animation-iteration-count: infinite; }
@keyframes fallp { 0% { transform: translate(0, -8px); } 25% { transform: translate(9px, 26vh); } 50% { transform: translate(0, 52vh); }
                   75% { transform: translate(9px, 78vh); } 100% { transform: translate(0, 106vh); } }
/* Telefone adreso juosta slepiasi slenkant ir keičia vh; lvh – pastovus didžiausias aukštis, tad snaigės nešokinėja. */
@supports (height: 1lvh) {
  @keyframes fallp { 0% { transform: translate(0, -8px); } 25% { transform: translate(9px, 26lvh); } 50% { transform: translate(0, 52lvh); }
                     75% { transform: translate(9px, 78lvh); } 100% { transform: translate(0, 106lvh); } }
}
.flyer { position: absolute; left: 0; top: 0; opacity: 0; }
.flyer svg { display: block; }
.anim-row { max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 20px 16px; text-align: right; }
.anim-toggle { background: none; border: 2px solid var(--ink); padding: 4px 10px; font-family: "Pixelify Sans", monospace; text-transform: uppercase;
               font-size: 13px; cursor: pointer; color: var(--ink); }
.anim-toggle[aria-pressed="false"] { background: var(--ink); color: #fff; }

/* --- Išdėstymas ------------------------------------------------------------ */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 30px 20px 28px; position: relative; }
.narrow { max-width: 520px; }
.stack { display: flex; flex-direction: column; gap: 26px; }
.home { display: grid; gap: 30px; align-items: start; }
.home > .head { order: 1; } .home > .count { order: 2; } .home > .letter { order: 2; } .home > .wish { order: 3; } .home > .games { order: 5; }
@media (min-width: 900px) {
  .home { grid-template-columns: minmax(380px, 1fr) minmax(0, 1.4fr); gap: 36px 48px; grid-template-areas: "head head" "count wish" "games wish"; }
  .home.result { grid-template-areas: "head head" "letter wish"; }
  .home > .head { grid-area: head; } .home > .count { grid-area: count; } .home > .letter { grid-area: letter; }
  .home > .wish { grid-area: wish; } .home > .games { grid-area: games; }
  /* Dešinė noro panelė prasideda ten pat, kur kairė: laikmatis gauna vainiko paraštę, noras – varpelių. */
  .home > .count { margin-top: 38px; } .home.result .wish-panel { margin-top: 44px; }
  .home .title { font-size: 40px; } .home .lead { font-size: 17px; }
}
.title { margin: 0; font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-weight: 700; font-size: 32px; line-height: 1.05; }
.subtitle { margin: 0; font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-weight: 700; font-size: 22px; line-height: 1.2; }
.lead { margin: 8px 0 0; color: var(--text-2); }
.muted { color: var(--text-2); font-size: 14px; }
.center { text-align: center; }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }

/* --- Panelės, mygtukai, ženkliukai ----------------------------------------------- */
.panel { position: relative; background: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
         padding: 24px 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.panel .cane-tl, .panel .cane-tr { position: absolute; top: -32px; width: 36px; height: 72px; }
.panel .cane-tl { left: -20px; } .panel .cane-tr { right: -20px; transform: scaleX(-1); }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 16px;
       border: 3px solid var(--ink); background: var(--red); color: #fff; text-decoration: none; cursor: pointer;
       font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 20px; font-weight: 700; letter-spacing: 1px;
       box-shadow: 4px 4px 0 var(--ink); }
.btn:hover { color: #fff; }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn.secondary { background: #fff; color: var(--ink); font-size: 18px; }
.btn.secondary:hover { color: var(--ink); }
.btn.green { background: var(--green); }
.btn.small { width: auto; min-height: 44px; font-size: 15px; padding: 0 14px; box-shadow: 3px 3px 0 var(--ink); }
.btn.small:active { transform: translate(3px, 3px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.badge { display: inline-flex; align-items: center; gap: 6px; border: 3px solid var(--ink); background: var(--gold);
         padding: 4px 10px; font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 15px; font-weight: 700; }
.badge-candy { display: inline-flex; align-items: center; gap: 4px; background: repeating-linear-gradient(90deg, #fff 0 6px, #FFE3E3 6px 12px); color: var(--red);
               border: 2px solid var(--ink); padding: 4px 10px; font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 15px; font-weight: 700; }
.badge-plain { display: inline-flex; align-items: center; background: #fff; color: var(--ink); border: 2px solid var(--ink); padding: 4px 10px;
               font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 15px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Formos --------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; }
.label { display: block; font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.input { width: 100%; min-height: 50px; border: 3px solid var(--ink); border-radius: 0; background: var(--cream);
         padding: 10px 12px; font-family: Nunito, sans-serif; font-size: 17px; color: var(--ink); }
textarea.input { min-height: 130px; resize: vertical; padding: 12px; font-size: 16px; line-height: 1.5; }
.phone-row { display: flex; }
.phone-prefix { display: flex; align-items: center; padding: 0 10px; border: 3px solid var(--ink); border-right: none;
                background: var(--gold); font-family: "Pixelify Sans", monospace; font-size: 17px; font-weight: 700; }
.phone-row .input { flex: 1; min-width: 0; }
.pin-row { display: flex; gap: 10px; }
.pin { width: 52px; height: 60px; border: 3px solid var(--ink); border-radius: 0; background: var(--cream); padding: 0;
       text-align: center; font-family: "Pixelify Sans", monospace; font-size: 28px; color: var(--ink); }
.hint { margin: 6px 0 0; font-size: 14px; color: var(--text-2); }
.hint-icon { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.hint-icon svg { flex: none; margin-top: 2px; }
.error { margin: 8px 0 0; padding: 8px 10px; border: 2px solid var(--red); background: var(--danger-bg); color: var(--red-dark); font-size: 14px; font-weight: 700; }
.notice { margin: 0; padding: 10px 12px; border: 2px solid var(--green); background: var(--ok-bg); color: var(--green); font-weight: 700; }
.saved { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-family: "Pixelify Sans", monospace;
         text-transform: uppercase; font-size: 17px; font-weight: 600; color: var(--green); }

/* --- Laikmatis ------------------------------------------------------------------ */
.countdown-panel { position: relative; background: var(--night); color: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 16px 22px; }
.countdown-panel .cane-tl, .countdown-panel .cane-tr { position: absolute; top: -32px; width: 36px; height: 72px; }
.countdown-panel .cane-tl { left: -20px; } .countdown-panel .cane-tr { right: -20px; transform: scaleX(-1); }
.countdown-title { margin: 0 0 12px; font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 16px; font-weight: 600; color: var(--gold); letter-spacing: 1px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.countdown > div { background: var(--night-deep); border: 2px solid var(--night-line); padding: 8px 0 6px; }
.countdown .num { display: block; font-family: "Pixelify Sans", monospace; font-size: 30px; font-weight: 700; line-height: 1; color: var(--gold); }
.countdown .unit { display: block; font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 13px; margin-top: 4px; }
.countdown-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap;
                  font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 16px; }

/* --- Noro kortelė, kojinės, žaidimai ----------------------------------------------- */
.wish-panel { margin-top: 38px; padding: 60px 16px 16px; gap: 12px; }
.wish-panel .wreath { position: absolute; left: 50%; top: -64px; width: 114px; height: 114px; margin-left: -57px; }
.wish-label { display: block; text-align: center; font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 22px; font-weight: 700; margin: 0; }
.wish-panel form, .wish-closed { display: flex; flex-direction: column; gap: 12px; }
.wish-closed { align-items: center; text-align: center; }
.wish-closed svg { overflow: visible; margin: 8px 0 4px; }
.wish-closed .btn { width: 100%; }
/* --- Židinys puslapio apačioje ------------------------------------------------------------------------
   Piešiniai – static/img/fp/*.png (design/pixel-art/zidinys.py, 8 bit stilius: kontūrai, šešėliai, dithering),
   rodomi ×2 (telefone) ir ×3/×4 (kompiuteryje: anga, ugnis, eglutės) su image-rendering: pixelated.
   Siena, plytos, lenta, girlianda, akmuo ir grindys – besiūlės plytelės, tad židinys gali būti bet kokio pločio ir aukščio. */
.hearth { margin-top: auto; flex: none; position: relative; padding: 26px 12px 0; border-top: 3px solid var(--ink); overflow-x: clip;
          background: url("../img/fp/wall.ccecd9991b8c.png") 0 0 / 64px 64px repeat #F0CCA9; image-rendering: pixelated; }
.fireplace { position: relative; width: fit-content; min-width: min(100%, 358px); max-width: 100%; margin: 0 auto; }
.breast, .chimney { background: url("../img/fp/brick.7017d72b4621.png") 0 0 / 96px 48px repeat #DDB08E; border: 3px solid var(--ink); border-bottom: none; }
.breast { width: 80%; margin: 0 auto; min-height: 70px; padding: 14px 10px 36px; box-sizing: border-box; display: flex; justify-content: center; align-items: flex-end; }
.breast-wreath { width: 76px; height: 76px; }
.plaque { position: relative; background: url("../img/fp/wood.b38484d00914.png") 0 0 / 128px 64px repeat #7A4A2E; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
          padding: 10px 18px 8px; text-align: center; color: #fff; max-width: 100%; text-shadow: 1px 1px 0 var(--ink); }
.plaque::before, .plaque::after { content: ""; position: absolute; top: 4px; width: 6px; height: 6px; background: #8C94A3; box-shadow: inset -2px -2px 0 #5E6675, inset 2px 2px 0 #D6DCE6; } /* vinys */
.plaque::before { left: 4px; } .plaque::after { right: 4px; }
.plaque .subtitle { margin: 0; color: #fff; font-size: 20px; }
.plaque .count { display: block; margin-top: 2px; font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 15px; color: var(--gold); }
.plaque .muted { margin: 4px 0 0; color: var(--cream); font-size: 13px; }
/* Atbraila: lenta apačioje, ant jos daiktai (apačios paslėptos už girliandos), girlianda kabo per lentos priekį. */
.mantel { position: relative; z-index: 1; height: 96px; margin: 0 -10px; }
.plank { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; background: url("../img/fp/plank.89bff1a3ac1f.png") 0 0 / 96px 20px repeat-x; }
.fp-garland { position: absolute; left: -8px; right: -8px; bottom: 6px; height: 48px; background: url("../img/fp/garland.e8f95d090a90.png") 0 0 / 96px 48px repeat-x; }
.mantel-items { position: absolute; left: 0; right: 0; bottom: 28px; height: 72px; }
.mantel-items .item { position: absolute; bottom: 0; display: block; line-height: 0; }
.mantel-items .mgift { left: 4%; } .mantel-items .c1 { left: 22%; } .mantel-items .c2 { left: 46%; } .mantel-items .cane { left: 62%; } .mantel-items .c3 { left: 80%; }
.mgift { width: 40px; height: 44px; background: url("../img/fp/gift.f44f1900e27d.png") 0 0 / 40px 44px no-repeat; }
.candle { width: 24px; height: 60px; background: url("../img/fp/candle.b719b7cff866.png") 0 0 / 48px 60px no-repeat; animation: cflicker .6s step-end infinite; }
.candle.c2 { animation-delay: -.2s; } .candle.c3 { animation-delay: -.4s; }
@keyframes cflicker { 0%, 50% { background-position: 0 0; } 50.1%, 100% { background-position: -24px 0; } }
.mantel-items .cane img { display: block; width: 36px; height: 72px; transform: rotate(8deg); transform-origin: 50% 100%; }
.chimney { position: relative; padding-top: 2px; }
.row-garland { height: 24px; margin: 0 6px -8px; background: url("../img/fp/garland-thin.d26f7d9a1ba0.png") 0 0 / 96px 24px repeat-x; } /* girlianda, nuo kurios kabo 2+ eilės */
.stock-rows { position: relative; z-index: 2; padding-bottom: 2px; }
.shelf { margin: 0 auto 6px; max-width: 100%; }
.socks { display: flex; justify-content: center; gap: 0 4px; margin-top: -2px; padding: 0 8px; }
.sock { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 60px; flex: 0 0 auto; } /* eilės sudėliotos pagal vardų plotį (views._pack) */
.sock svg { width: 40px; height: 64px; margin-top: -18px; }
.sock span { font-family: "Pixelify Sans", monospace; font-size: 10px; font-weight: 600; white-space: nowrap;
             background: var(--cream); border: 2px solid var(--ink); padding: 0 2px; box-sizing: border-box; }
.shelves-desktop { display: none; }
/* Anga: akmenų apvadas ir tamsus vidus piešinyje, viduje švytėjimas (dithering) ir 3 kadrų ugnis (sprite'as). */
.firebox { position: relative; z-index: 1; width: 240px; height: 152px; margin: 8px auto 0; background: url("../img/fp/firebox.0819e5c2994a.png") 0 0 / 240px 152px no-repeat; }
.fp-glow { position: absolute; left: 50%; bottom: 10px; width: 192px; height: 96px; margin-left: -96px;
           background: radial-gradient(ellipse at 50% 100%, rgba(242, 140, 40, .6), rgba(242, 140, 40, 0) 70%); animation: glow .6s steps(2) infinite alternate; }
.fire { position: absolute; left: 50%; bottom: 10px; width: 112px; height: 96px; margin-left: -56px; background: url("../img/fp/fire.0df1dd94f5b2.png") 0 0 / 448px 96px no-repeat;
        animation: fire .5s steps(4) infinite; }
@keyframes fire { to { background-position: -448px 0; } }
@keyframes glow { from { opacity: .5; } to { opacity: 1; } }
.hearth-stone { position: relative; z-index: 3; height: 16px; margin: 0 -14px; background: url("../img/fp/stone.7a706b4da86f.png") 0 0 / 96px 16px repeat-x; }
/* Dovanų krūvelės ant akmens prie angos šonų; didelės eglutės (židinio aukščio) ant grindų šalia židinio – tik kompiuteryje, telefone netelpa.
   Dešinės pusės piešiniai apversti, kad apšviesta pusė žiūrėtų į ugnį. */
.gifts { position: absolute; bottom: 16px; z-index: 2; width: 52px; height: 44px; background: url("../img/fp/gifts.7fedcaa6dbf9.png") 0 0 / 52px 44px no-repeat; }
.gifts.left { left: 4px; } .gifts.right { right: 4px; transform: scaleX(-1); }
.tree { display: none; position: absolute; bottom: 0; z-index: 2; width: 180px; height: 420px; background: url("../img/fp/tree.2149da29e172.png") 0 0 / 180px 420px no-repeat; }
.tree.left { right: 100%; margin-right: 10px; } .tree.right { left: 100%; margin-left: 10px; transform: scaleX(-1); }
.floor { height: 48px; margin: 0 -12px; border-top: 3px solid var(--ink); background: url("../img/fp/floor.992de9f48620.png") 0 0 / 128px 48px repeat #8A5A3C; }
@media (min-width: 900px) {
  .hearth { padding-top: 34px; }
  .fireplace { min-width: 560px; }
  .breast { width: 60%; min-height: 96px; padding-bottom: 40px; }
  .socks { padding: 0 14px; }
  .sock { min-width: 86px; }
  .sock svg { width: 44px; height: 70px; margin-top: -20px; }
  .sock span { font-size: 13px; padding: 0 4px; }
  .firebox { width: 360px; height: 228px; background-size: 360px 228px; }
  .fp-glow { bottom: 15px; width: 288px; height: 140px; margin-left: -144px; }
  .fire { bottom: 15px; width: 168px; height: 144px; margin-left: -84px; background-size: 672px 144px; animation-name: fire3; }
  .gifts { width: 78px; height: 66px; background-size: 78px 66px; } .gifts.left { left: 10px; } .gifts.right { right: 10px; }
  .tree { display: block; }
  .shelves-phone { display: none; } .shelves-desktop { display: block; }
}
@keyframes fire3 { to { background-position: -672px 0; } }
.games { background: var(--green); color: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 16px; display: flex; align-items: center; gap: 14px; }
.games svg { flex: none; }
.games h2 { margin: 0; font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 20px; font-weight: 700; }
.games h2 .soon { color: var(--gold); }
.games p { margin: 3px 0 0; font-size: 14px; line-height: 1.4; }

/* --- Rezultatas: laiškas kojinėje ------------------------------------------------- */
.letter-panel { margin-top: 44px; padding: 56px 18px 22px; min-height: 500px; }
.letter-panel .bells { position: absolute; left: 50%; top: -82px; width: 144px; height: 126px; margin-left: -72px; }
.letter-closed { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.letter-closed .big-sock { overflow: visible; }
/* Perėjimai tarp būsenų (laiškas ir noras). SVG viduje px = langelis (~10 px).
   .pulling – kojinė trūkteli ir nusileidžia, laiškas (.peek) ar dovana (.sock-gift) iškyla su persimetimu;
   .stashing – forma sulankstoma ir nuleidžiama į kojinę; HTMX pakeitimas atidėtas swap:0.4–0.45s;
   .enter – nauja būsena išsiskleidžia, jos dalys kyla pakopomis kas 60 ms. */
.pulling .shake { animation: tug .5s steps(6) both; }
.pulling .sockbody { animation: sock-drop .5s cubic-bezier(.3,.7,.4,1) both; }
.pulling .peek, .pulling .sock-gift { animation: peek-up .5s cubic-bezier(.3,.9,.4,1.2) both; }
@keyframes tug { 0% { transform: translate(0, 0); } 25% { transform: translate(-.3px, .2px); } 50% { transform: translate(.3px, -.2px); }
                 75% { transform: translate(-.2px, .1px); } 100% { transform: translate(0, 0); } }
@keyframes sock-drop { from { transform: translateY(0); } to { transform: translateY(3px); } }
@keyframes peek-up { from { transform: translateY(0); } to { transform: translateY(-3.5px); } }
.enter { animation: unfold .5s cubic-bezier(.2,.75,.3,1.1) both; transform-origin: 50% 80px; }
.enter > * { animation: rise .45s cubic-bezier(.2,.75,.3,1) both; }
.enter > :nth-child(2) { animation-delay: .06s; } .enter > :nth-child(3) { animation-delay: .12s; } .enter > :nth-child(4) { animation-delay: .18s; }
.enter > :nth-child(5) { animation-delay: .24s; } .enter > :nth-child(6) { animation-delay: .3s; } .enter > :nth-child(7) { animation-delay: .36s; }
.enter > :nth-child(8) { animation-delay: .42s; }
.wish-closed.enter svg { animation: drop-in .55s cubic-bezier(.3,1.5,.5,1) .06s both; }
.stashing { animation: stash .4s cubic-bezier(.55,0,.85,.4) both; transform-origin: 50% 100%; }
.sock.pop svg { animation: pop-in .6s cubic-bezier(.3,1.6,.5,1) .35s both; transform-origin: 50% 100%; }
@keyframes unfold { from { opacity: 0; transform: translateY(-28px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes stash { to { opacity: 0; transform: translateY(36px) scale(.55); } }
@keyframes pop-in { from { transform: scale(.4); } to { transform: none; } }
/* Išjungus animacijas (.paused stabdo visas) turinys turi būti matomas iš karto, ne sustingęs pirmame kadre. */
.paused .enter, .paused .enter > *, .paused .enter svg, .paused .stashing, .paused .pulling *, .paused .pop svg { animation: none !important; }
.letter-closed h2 { font-size: 24px; }
.letter-closed p { margin: 0; max-width: 290px; color: var(--text-2); }
.letter-open { display: flex; flex-direction: column; gap: 14px; }
.giving-label { margin: 0; text-align: center; font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 16px; font-weight: 600; color: var(--green); letter-spacing: 1px; }
.receiver { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: -6px; }
.receiver img { flex: none; width: 36px; height: 72px; }
.receiver p { margin: 0; font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: clamp(32px, 11vw, 54px); font-weight: 700; line-height: 1; color: var(--red); overflow-wrap: anywhere; text-align: center; }
.says { background: var(--night); color: #fff; border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px #fff; padding: 16px 16px 14px; }
.says .who { margin: 0 0 8px; font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 15px; font-weight: 600; color: var(--gold); }
.says .text { margin: 0; font-size: 17px; line-height: 1.5; }
.says .cursor-row { margin: 6px 0 0; text-align: right; font-family: "Pixelify Sans", monospace; font-size: 16px; color: var(--gold); }

/* --- Pradinis puslapis, ratai, nustatymai ------------------------------------------ */
.choices { display: grid; gap: 22px; }
@media (min-width: 900px) { .choices { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.choice { align-items: flex-start; }
.choice .btn { margin-top: auto; }
.choice form { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.two-cols { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.copy-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row .input { flex: 1; min-width: 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; }
.copy-row .btn { width: auto; flex: none; }
.code-big { font-family: "Pixelify Sans", monospace; font-size: 22px; letter-spacing: 1px; }
.settings-form { display: flex; flex-direction: column; gap: 12px; }
.notice-panel { background: #E8F5EC; }

/* --- Laukia patvirtinimo --------------------------------------------------------- */
.panel.centered { align-items: center; text-align: center; gap: 12px; padding: 22px 18px; }
.panel.centered h1 { font-size: 28px; }
.panel.centered p { margin: 0; color: var(--text-2); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; align-items: center; gap: 14px; }
.steps .num { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border: 3px solid var(--ink);
              background: #fff; font-family: "Pixelify Sans", monospace; font-size: 20px; font-weight: 700; }
.steps .done .num { background: var(--green); color: #fff; }
.steps .current .num { background: var(--gold); }
.steps .todo .num { border: 3px dashed #8A8A8A; background: #F2EDE0; color: #6B6B6B; }
.steps .todo .label, .steps .todo p { color: #6B6B6B; }
.steps .label { margin: 0; font-size: 17px; font-weight: 700; }
.steps p { margin: 2px 0 0; font-size: 14px; color: var(--text-2); }
.approved-title { color: var(--green); font-size: 30px; }

/* --- Sąrašai, lentelės, statistika (administravimas) ------------------------------ */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 2px dashed var(--snow-shade); }
.row:first-child { border-top: none; padding-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.initial { width: 40px; height: 40px; flex: none; border: 3px solid var(--ink); background: var(--gold);
           display: flex; align-items: center; justify-content: center; font-family: "Pixelify Sans", monospace; font-weight: 700; font-size: 20px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 14px;
            border-bottom: 3px solid var(--ink); padding: 8px 6px; white-space: nowrap; }
.table td { padding: 10px 6px; border-bottom: 2px dashed var(--snow-shade); vertical-align: middle; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { border: 3px solid var(--ink); background: #fff; box-shadow: 4px 4px 0 var(--ink); padding: 12px 14px; }
.stat .k { font-family: "Pixelify Sans", monospace; text-transform: uppercase; font-size: 14px; color: var(--text-2); }
.stat .v { font-family: "Pixelify Sans", monospace; font-size: 32px; font-weight: 700; line-height: 1.1; }
.stocking { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--ink); background: #fff; vertical-align: middle; margin-right: 6px; }
.stocking.full { background: var(--red); }
.pair-form { display: grid; gap: 12px; align-items: end; }
@media (min-width: 700px) { .pair-form { grid-template-columns: 1fr 1fr auto; } }
.wish-text { margin: 0; padding: 12px 14px; border: 3px solid var(--ink); background: var(--cream); font-size: 17px; }
.htmx-request .btn { opacity: .6; }
