/* The December "xmas" edition (App\Support\Edition). Loaded after app.css, only while the
   edition is on (<html data-edition="xmas">). The blob-xmas palette and its @keyframes live in
   app.css, next to blob-ocean/forest/… (see the comment there) — the year-round "Karácsony" site
   theme, a later task, reuses them once the edition itself ends. This file only applies the
   palette here, adds a header garland, and styles the snow canvas and its toggle (core/xmas.js).
*/

/* Background: only players on the default skin ('alap', i.e. no data-skin attribute) get the
   Christmas blobs — someone who already picked Óceán/Neon/… keeps their own choice. */
:root[data-edition="xmas"]:not([data-skin]) .bg-fx i { animation-name: blob-drift, blob-xmas; }

/* A subtle string of lights along the header's bottom edge (.site-header is already
   position: sticky, app.css — already a containing block for this ::after, so it stays sticky).
   It leaves with the header in focus mode (.focus .site-header, app.css) and never reaches
   inside .stage — the board is untouched. */
:root[data-edition="xmas"] .site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background-image:
    radial-gradient(circle, var(--xmas-red) 0 2px, transparent 2.6px),
    radial-gradient(circle, var(--xmas-green) 0 2px, transparent 2.6px),
    radial-gradient(circle, var(--xmas-gold) 0 2px, transparent 2.6px);
  background-size: 54px 6px;
  background-position: 9px center, 27px center, 45px center;
  background-repeat: repeat-x;
  opacity: .5;
  pointer-events: none;
  animation: xmas-twinkle 4.5s ease-in-out infinite;
}
@keyframes xmas-twinkle { 0%, 100% { opacity: .32; } 50% { opacity: .6; } }

/* Snow (core/xmas.js): a canvas fixed behind the page, on the same stacking tier as .bg-fx's
   blobs (negative z-index) so it is always behind the page's text and the game board, never in
   front of either. */
.xmas-snow { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* The header's snow toggle: same chrome as the sound/theme buttons next to it; dimmed while off. */
.snow-btn[aria-pressed="false"] svg { opacity: .4; }
/* Phones: no room in the header row (it would wrap), so the toggle is a row in the hamburger
   menu instead, styled like the menu's links with a small switch. */
.nav-snow { display: none; }
@media (max-width: 480px) {
  .site-header .header-snow { display: none; }
  .main-nav .nav-snow {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 12px 4px; border: 0; border-bottom: 1px solid var(--hair); background: none; cursor: pointer;
    font: inherit; font-size: 1.6rem; font-weight: 550; letter-spacing: -0.04em; color: var(--ink); text-align: left;
  }
  .nav-snow-switch {
    position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px;
    background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); transition: background-color .2s;
  }
  .nav-snow-switch::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease-out);
  }
  .nav-snow[aria-pressed="true"] .nav-snow-switch { background: #1fae55; }
  .nav-snow[aria-pressed="true"] .nav-snow-switch::after { transform: translateX(18px); }
}

/* --- Advent calendar (views/partials/advent.php, home page) ------------------------------
   A deep-green card like the game cards: lowercase heading, progress and rewards on the left,
   24 little doors on the right (stacked on phones). Open doors swing open on their left hinge
   and show a festive mark; today's door is a wrapped present that wiggles for attention; missed
   days are gently snowed-in doors (windows only open on their own day); future days are
   plain frosted doors. */
.advent {
  --gold: #f2cf63;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 28px 40px; align-items: center;
  margin: -8px 0 38px; padding: 30px; border-radius: var(--r-panel); color: #fff;
  background:
    radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--xmas-gold) 32%, transparent), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--xmas-red) 34%, transparent), transparent 70%),
    linear-gradient(150deg, #23804b 0%, var(--xmas-green) 45%, #0c3a20 100%);
  box-shadow: 0 30px 60px -30px #0a2e19, 0 10px 24px -14px rgba(0, 0, 0, .3);
}
.advent::before { /* the same drifting light as the game cards */
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; left: -20%; top: -45%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent);
  animation: sheen 16s ease-in-out infinite alternate;
}
.advent-head { min-width: 0; }
.advent-eyebrow { margin: 0 0 6px; font-size: .82rem; font-weight: 500; color: rgba(255, 255, 255, .7); letter-spacing: .01em; }
.advent h2 { margin: 0; font-size: clamp(2rem, 6.4vw, 2.7rem); font-weight: 600; letter-spacing: -0.055em; line-height: .95; text-transform: lowercase; color: #fff; }
.advent-line { margin: 12px 0 0; font-size: .98rem; line-height: 1.4; color: rgba(255, 255, 255, .82); }
.advent-line b { color: var(--gold); font-weight: 650; font-variant-numeric: tabular-nums; }
.advent-tiers { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.advent-tiers li {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .11); font-size: .84rem; font-weight: 500; color: rgba(255, 255, 255, .9);
}
.advent-tiers .tier-n {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); font-size: .74rem; font-weight: 650; font-variant-numeric: tabular-nums;
}
.advent-tiers .tier-n svg { width: 15px; height: 15px; stroke-width: 2.6; }
.advent-tiers li.got { background: var(--gold); color: #11331d; }
.advent-tiers li.got .tier-n { background: #11331d; color: var(--gold); animation: badge-in .6s var(--ease-spring) both; }
.advent-hint { margin: 16px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.advent-cta { margin-top: 12px; background: var(--xmas-red); color: #fff; box-shadow: 0 10px 24px -12px var(--xmas-red); }
.advent-cta:hover { background: var(--xmas-red); transform: translateY(-1px); box-shadow: 0 14px 28px -12px var(--xmas-red); }
.advent-signup { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--gold); text-decoration: none; }
.advent-signup:hover { text-decoration: underline; }

.advent-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.advent-grid li { aspect-ratio: 1; perspective: 420px; }
.aw {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 14px;
  color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--ease-spring);
}
.aw-door {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .18);
  transform-origin: left center; backface-visibility: hidden;
}
.aw-door::after { /* the door knob */
  content: ""; position: absolute; right: 12%; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}
.aw-num { font-size: clamp(1rem, 3.8vw, 1.3rem); font-weight: 650; letter-spacing: -0.04em; color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }

/* Today, not opened yet: a red present with a gold ribbon and bow, wiggling now and then. */
.aw-today { animation: aw-wiggle 3.6s ease-in-out 1.2s infinite; }
.aw-today .aw-door {
  background:
    linear-gradient(90deg, transparent calc(50% - 3px), var(--xmas-gold) calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px)),
    linear-gradient(0deg, transparent calc(50% - 3px), var(--xmas-gold) calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px)),
    linear-gradient(160deg, #e2223f, var(--xmas-red) 60%, #9c0c23);
  box-shadow: 0 0 0 2px var(--gold), 0 10px 26px -6px color-mix(in srgb, var(--xmas-gold) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.aw-today .aw-door::after { /* the bow */
  right: auto; left: 50%; top: -7px; width: 22px; height: 12px; margin: 0 0 0 -11px; border-radius: 0;
  background:
    radial-gradient(ellipse 5px 5px at 50% 70%, var(--xmas-gold) 98%, transparent),
    radial-gradient(ellipse 6px 4.5px at 26% 50%, transparent 45%, var(--xmas-gold) 50% 98%, transparent),
    radial-gradient(ellipse 6px 4.5px at 74% 50%, transparent 45%, var(--xmas-gold) 50% 98%, transparent);
}
.aw-today .aw-num {
  display: grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 .2em; border-radius: 999px;
  background: #fff; color: var(--xmas-red); font-size: clamp(.9rem, 3.2vw, 1.1rem);
}
a.aw-today:hover, a.aw-today:focus-visible { transform: scale(1.08) rotate(-2deg); animation-play-state: paused; }
@keyframes aw-wiggle {
  0%, 82%, 100% { transform: none; }
  86% { transform: rotate(-5deg) scale(1.05); }
  90% { transform: rotate(4deg) scale(1.05); }
  94% { transform: rotate(-2deg); }
}

/* Open: the door has swung back on its hinge, the little picture inside shows. */
.aw-open { background: radial-gradient(circle at 50% 40%, #fffaf0, #f6e3b8); border-radius: 14px; box-shadow: inset 0 2px 6px rgba(80, 50, 0, .22); }
.aw-open .aw-door {
  background: linear-gradient(90deg, #2c8c55, #1d6b3e); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  transform: rotateY(-74deg); animation: aw-swing 1s var(--ease-spring) both; animation-delay: calc(350ms + var(--n) * 35ms);
}
.aw-open .aw-door::after { right: 14%; background: var(--xmas-gold); }
.aw-open .aw-num { opacity: 0; }
.aw-mark { position: absolute; inset: 0; display: grid; place-items: center; }
.aw-mark svg { width: 56%; height: 56%; filter: drop-shadow(0 2px 2px rgba(80, 40, 0, .18)); animation: aw-mark-in .7s var(--ease-spring) both; animation-delay: calc(500ms + var(--n) * 35ms); }
.aw-mark small { position: absolute; right: 7px; bottom: 4px; font-size: .66rem; font-weight: 650; color: #9a7b3a; font-variant-numeric: tabular-nums; }
.aw-open.is-today { box-shadow: inset 0 2px 6px rgba(80, 50, 0, .22), 0 0 0 2px var(--gold), 0 8px 22px -6px color-mix(in srgb, var(--xmas-gold) 80%, transparent); }
@keyframes aw-swing { from { transform: rotateY(0); } }
@keyframes aw-mark-in { from { transform: scale(.4); opacity: 0; } }

/* Missed: still a closed door, just with snow on top. */
.aw-missed .aw-door { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.aw-missed .aw-num { color: rgba(255, 255, 255, .42); }
.aw-missed::before { /* snow cap */
  content: ""; position: absolute; z-index: 1; left: -2px; right: -2px; top: -4px; height: 13px; border-radius: 8px 8px 0 0;
  background:
    linear-gradient(#fff, #fff) top / 100% 7px no-repeat,
    radial-gradient(circle at 24% 6px, #fff 4.5px, transparent 5px),
    radial-gradient(circle at 58% 6px, #fff 3px, transparent 3.5px),
    radial-gradient(circle at 82% 6px, #fff 3.8px, transparent 4.3px);
  filter: drop-shadow(0 1px 1px rgba(0, 40, 20, .25));
  opacity: .9; pointer-events: none;
}

/* Closed (still to come): plain frosted doors. */
.aw-closed .aw-num { color: rgba(255, 255, 255, .55); }

.aw:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 860px) {
  .advent { grid-template-columns: minmax(0, 1fr); padding: 24px 20px 22px; gap: 22px; }
}
@media (max-width: 420px) {
  .advent { margin-left: -4px; margin-right: -4px; }
  .advent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
  .advent-tiers li { font-size: .8rem; }
}

/* The result screen's "Kinyílt a {n}. ablak!" card (play.js showAdvent): the level-up card,
   with a wrapped present for the number. */
.advent-pop .level-up-num {
  position: relative; border-radius: 22px; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  background:
    linear-gradient(90deg, transparent calc(50% - 5px), var(--xmas-gold) calc(50% - 5px) calc(50% + 5px), transparent calc(50% + 5px)),
    linear-gradient(0deg, transparent calc(50% - 5px), var(--xmas-gold) calc(50% - 5px) calc(50% + 5px), transparent calc(50% + 5px)),
    linear-gradient(160deg, #e2223f, var(--xmas-red) 60%, #9c0c23);
  animation: aw-wiggle 2.4s ease-in-out .6s 2;
}
.advent-pop .level-up-num span { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--xmas-red); text-shadow: none; font-size: 1.7rem; }
.advent-pop .level-up-title { color: #f2cf63; }
.advent-pop .advent-pop-next { margin: 0 0 18px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.advent-pop ul li { padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); font-weight: 500; }
.advent-pop .btn-game { background: var(--xmas-red); }
.advent-cta + .advent-signup { margin-left: 16px; }

/* --- Királynők + Tangó pieces (games/xmas-pieces.js) -------------------------------------
   The elf and the gift each start with a silhouette layer in currentColor. On Queens it keeps
   .q-queen's colour (dark ink, red on a conflict — queens.css), so it outlines the elf on every
   pastel region. Tango's tiles are dark, so a near-black rim just crisps the edges there. Sizes
   stay those of the sun/moon they replace (tango.css), so footprint and hit area are unchanged. */
:root[data-edition="xmas"] .t-cell svg.x-elf,
:root[data-edition="xmas"] .t-cell svg.x-gift { color: #0b0b0c; }
/* The elf's hat: deep green by default (a dark cone on the Queens pastels); on Tango's dark
   tiles a bright green, so it still reads there and stays clearly apart from the red gift. */
:root[data-edition="xmas"] .t-cell .x-elf .x-hat { fill: #1fae55; }
/* A Queens clash turns the elf's rim and whole hat solid red, as the old crown turned red. */
:root[data-edition="xmas"] .q-cell.conflict .x-elf .x-hat { fill: #c4001f; }

/* --- Zip (games/zip.js + xmas-pieces.js zipGiftSvg / ZIP_BOW) ------------------------------
   The numbers are green gifts with the number on a white tag (same font size, black on white);
   the path is a gold ribbon with a red middle stripe over green-tinted covered cells, and its
   head is a red bow. Reached gifts turn gold (gold tag + gold ring) where the old disc got an
   orange ring, so the still-white tags — the next one to reach among them — stand out as before.
   An out-of-order number still turns its tag red with white text. .z-num keeps its size, so the
   number, the board and its hit areas are unchanged; only the drawing behind the text differs. */
:root[data-edition="xmas"] .z-board { --game: #1fae55; } /* covered-cell tint, keyboard ring */
:root[data-edition="xmas"] .z-line { stroke: #ffc83d; }
:root[data-edition="xmas"] .z-line-stripe {
  fill: none; stroke: #d81e3a; stroke-width: .11;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .25s;
}
:root[data-edition="xmas"] .z-board.z-wrong .z-line { stroke: var(--danger); }
:root[data-edition="xmas"] .z-board.z-wrong .z-line-stripe { stroke: #fff; opacity: .55; }

:root[data-edition="xmas"] .z-num,
:root[data-edition="xmas"] .z-num.done,
:root[data-edition="xmas"] .z-num.bad,
:root[data-edition="xmas"] .z-board.z-solved .z-num { background: none; box-shadow: none; }
:root[data-edition="xmas"] .z-num .z-gift { /* the whole cell, behind the number's text */
  position: absolute; z-index: -1; pointer-events: none;
  left: -39.29%; top: -39.29%; width: 178.58%; height: 178.58%; max-width: none; /* 100 / 56 of .z-num */
  overflow: visible;
}
:root[data-edition="xmas"] .z-gift .zg-tag,
:root[data-edition="xmas"] .z-gift .zg-halo { transition: fill .2s, stroke .2s; }
:root[data-edition="xmas"] .z-num.done .zg-tag,
:root[data-edition="xmas"] .z-board.z-solved .z-num .zg-tag { fill: #ffd34d; }
:root[data-edition="xmas"] .z-num.done .zg-halo,
:root[data-edition="xmas"] .z-board.z-solved .z-num .zg-halo { fill: #ffc83d; stroke: #ffc83d; }
:root[data-edition="xmas"] .z-num.bad .zg-tag { fill: var(--danger); }
:root[data-edition="xmas"] .z-num.bad .zg-halo { fill: var(--danger); stroke: var(--danger); }

/* --- Képrejtvény (nonogram.css) --------------------------------------------------------------
   A filled square is a warm Christmas light: a gold tile, brightest in the middle with a small
   bulb highlight, its glow kept inside the tile (an outer glow would bleed onto the empty
   neighbours, unevenly, since later cells paint over earlier ones). Empty tiles, the ✕ mark,
   clues, done/hint/cursor states are untouched. When solved, the picture is flat gold as one
   lit shape (no per-cell highlight, so it reads as a picture) with a soft glow around it. */
:root[data-edition="xmas"] .n-cell::before {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .85) 0 8%, rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 50% 48%, #fff3c2 0, #ffd04a 42%, #f29a0c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 170, .35), inset 0 -2px 3px rgba(150, 64, 0, .35);
}
:root[data-edition="xmas"] .n-swatch { background: radial-gradient(circle at 50% 48%, #fff3c2 0, #ffd04a 42%, #f29a0c 100%); }
:root[data-edition="xmas"] .n-board.n-reveal .n-cell.n-fill::before { background: #ffc53a; }
:root[data-edition="xmas"] .n-board.n-reveal { filter: drop-shadow(0 0 6px rgba(255, 186, 48, .55)); }

/* --- Lámpaoltó (lightsout.css) ---------------------------------------------------------------
   Every lamp is a bauble with a little cap. Off: the same dark grey glass as before. On: a lit
   Christmas bulb, red, green or gold in diagonal stripes ((row + column) mod 3, so 5×5, 6×6 and
   7×7 all mix the three), each with its own glow. The cap ignores pointer events, so the hit
   area stays the round button; the hint outline is unchanged. */
:root[data-edition="xmas"] .lo-lamp {
  --lo-hi: #fff1b8; --lo-mid: #ffc83d; --lo-lo: #f59e0b; --lo-glow: 255, 190, 50; /* gold */
}
:root[data-edition="xmas"] .lo-row:nth-child(3n+1) .lo-lamp:nth-child(3n+2),
:root[data-edition="xmas"] .lo-row:nth-child(3n+2) .lo-lamp:nth-child(3n+1),
:root[data-edition="xmas"] .lo-row:nth-child(3n+3) .lo-lamp:nth-child(3n+3) {
  --lo-hi: #ffd9dc; --lo-mid: #ff4a5c; --lo-lo: #d0102c; --lo-glow: 255, 64, 84; /* red */
}
:root[data-edition="xmas"] .lo-row:nth-child(3n+1) .lo-lamp:nth-child(3n+3),
:root[data-edition="xmas"] .lo-row:nth-child(3n+2) .lo-lamp:nth-child(3n+2),
:root[data-edition="xmas"] .lo-row:nth-child(3n+3) .lo-lamp:nth-child(3n+1) {
  --lo-hi: #dcffe4; --lo-mid: #3ee07a; --lo-lo: #11994a; --lo-glow: 64, 230, 120; /* green */
}
:root[data-edition="xmas"] .lo-lamp.lo-on {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 50% 55%, var(--lo-hi), var(--lo-mid) 48%, var(--lo-lo) 88%);
  box-shadow: 0 0 22px 2px rgba(var(--lo-glow), .45), 0 0 50px 8px rgba(var(--lo-glow), .16),
    inset 0 -3px 6px rgba(0, 0, 0, .22);
}
:root[data-edition="xmas"] .lo-lamp::before { /* the bauble's cap */
  content: ""; position: absolute; pointer-events: none;
  left: 39%; width: 22%; top: -7%; height: 12%;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(90deg, #4a4a4e, #7a7a80 45%, #4a4a4e);
  transition: background .25s var(--ease-out);
}
:root[data-edition="xmas"] .lo-lamp.lo-on::before { background: linear-gradient(90deg, #a07a1c, #f2d27a 45%, #a07a1c); }

/* --- Hídépítő (hashi.css + xmas-pieces.js hashiBulb) -----------------------------------------
   "Connect the bulbs with wires": an island is a light bulb (the old disc is its glass, same
   radius and number size, on a small screw base) and the bridges are green wires — single or two
   parallel ones, exactly where the white lines were. An unlit bulb is dark glass with a white
   number as before; a full island lights up gold with a dark number and a soft glow (it used to
   turn sky blue); an over-full one stays solid red with a white number; the dashed warn ring of
   a closed-off group, the hint ring and the (sky-blue, so never mistaken for a wire) drag preview
   and hint line are unchanged. Solved: the wires turn gold too. The active (pressed) island still
   lightens the dark glass through hashi.css's .h-island.active .h-disc: same specificity as the
   .h-disc rule below, and the game css loads later, so it wins — on purpose, keep it that way. */
:root[data-edition="xmas"] .h-bridge line { stroke: #3cc274; }
/* The rule above out-ranks hashi.css's red .blocked flash (a bridge that blocks a crossing one), so restate it. */
:root[data-edition="xmas"] .h-bridge.blocked line { stroke: var(--danger); }
:root[data-edition="xmas"] .h-board.solved .h-bridge line { stroke: #ffc83d; }
:root[data-edition="xmas"] .h-disc { fill: #2a2a2d; stroke: rgba(255, 255, 255, .28); }
:root[data-edition="xmas"] .h-base { fill: #a3a6ae; stroke: #121214; stroke-width: 3; transition: fill .22s; }
:root[data-edition="xmas"] .h-thread { fill: none; stroke: #55575e; stroke-width: 3; }
:root[data-edition="xmas"] .h-shine {
  fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 5; stroke-linecap: round;
  pointer-events: none; transition: stroke .22s;
}
:root[data-edition="xmas"] .h-glow { fill: #ffc83d; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out); }
:root[data-edition="xmas"] .h-island.done .h-glow { opacity: .13; } /* two circles: a soft two-step glow */
:root[data-edition="xmas"] .h-island.done .h-disc { fill: #ffc83d; stroke: #fff1b8; }
:root[data-edition="xmas"] .h-island.done .h-num { fill: #2b1700; }
:root[data-edition="xmas"] .h-island.done .h-shine { stroke: rgba(255, 255, 255, .85); }
:root[data-edition="xmas"] .h-island.done .h-base { fill: #e3c06a; }
:root[data-edition="xmas"] .h-island.over .h-glow { opacity: 0; }
:root[data-edition="xmas"] .h-island.over .h-disc { fill: var(--danger); stroke: var(--danger); }
:root[data-edition="xmas"] .h-island.over .h-num { fill: #fff; }
:root[data-edition="xmas"] .h-island.over .h-shine { stroke: rgba(255, 255, 255, .45); }

/* --- Csővezeték (pipes.css + xmas-pieces.js pipesLightSvg / PIPES_POWER_SVG) -------------------
   "Connect the string of lights": every pipe is a wire with small bulbs on it (one per arm, one
   bigger one at a dead end's tip). Not connected to the source: graphite wire, dark glass bulbs.
   Connected (.pi-cell.wet, filling in order from the source as before via --d): the wire turns
   green and the bulbs light up red, gold, green or blue, each with a halo. The halo is a plain
   circle (no filter), so 121 tiles still rotate smoothly. The pump is a power source: a red disc
   with a white bolt, upright in the centre like the pump. */
:root[data-edition="xmas"] .pi-wire {
  fill: none; stroke: #535358; stroke-width: 18; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .3s ease-out var(--d, 0ms);
}
:root[data-edition="xmas"] .pi-bulb {
  fill: #2a2a2d; stroke: #5d5d63; stroke-width: 3;
  transition: fill .3s ease-out var(--d, 0ms), stroke .3s ease-out var(--d, 0ms);
}
:root[data-edition="xmas"] .pi-halo { opacity: 0; transition: opacity .3s ease-out var(--d, 0ms); }
:root[data-edition="xmas"] .pi-lights .c-r { --bulb: #ff4a5c; }
:root[data-edition="xmas"] .pi-lights .c-g { --bulb: #ffc83d; }
:root[data-edition="xmas"] .pi-lights .c-n { --bulb: #3ee07a; }
:root[data-edition="xmas"] .pi-lights .c-b { --bulb: #5cc8ff; }
:root[data-edition="xmas"] .pi-cell.wet .pi-wire { stroke: #1f9e52; }
:root[data-edition="xmas"] .pi-cell.wet .pi-bulb { fill: var(--bulb); stroke: #0b0b0c; }
:root[data-edition="xmas"] .pi-cell.wet .pi-halo { fill: var(--bulb); opacity: .3; }
:root[data-edition="xmas"] .pi-board.solved .pi-halo { opacity: .45; }
:root[data-edition="xmas"] .pi-power-ring { fill: #e8283b; stroke: #000; stroke-width: 4; }
:root[data-edition="xmas"] .pi-bolt { fill: #fff; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }

/* --- Villanykörte (akari.css + xmas-pieces.js akariWreathSvg / akariLightSvg) -----------------
   A numbered wall is an advent wreath on the black wall tile: a green ring with as many ivory
   candles as the number, and the number itself white in the ring's hole at its year-round size.
   Each bulb placed next to the wall lights one candle (.a-candle.on: a gold flame with a soft
   halo); all of them burn once the count is met. akari.css's states still apply on top: a met
   wall turns its number green with the green inset ring, an over-full one goes solid red (the
   wreath then sits on red, every candle lit) and shakes. 0-walls are an empty wreath; walls
   without a number stay plain black.
   A placed bulb is a fairy light hanging from its string, green / blue / gold by cell, with a
   heavy dark rim on the yellow lit cell; two bulbs that see each other turn red (never a normal
   colour) on akari.css's pink "bad" cell. Lit cells, light rays and • marks are unchanged. */
:root[data-edition="xmas"] .a-wall.num { position: relative; }
:root[data-edition="xmas"] .a-wreath { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
:root[data-edition="xmas"] .a-wall .a-num { position: relative; z-index: 1; }
:root[data-edition="xmas"] .a-ring { fill: none; stroke: #13582d; stroke-width: 15; }
:root[data-edition="xmas"] .a-leaves { fill: none; stroke: #2a9d55; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 4 7.8; }
:root[data-edition="xmas"] .a-cbody { fill: #e6d6ad; stroke: #000; stroke-width: 1.6; }
:root[data-edition="xmas"] .a-cwick { stroke: #3a2a1a; stroke-width: 1.8; stroke-linecap: round; }
:root[data-edition="xmas"] .a-cflame { fill: #ffc83d; stroke: #ff8a1f; stroke-width: 1; }
:root[data-edition="xmas"] .a-ccore { fill: #fff6d0; }
:root[data-edition="xmas"] .a-cglow { fill: #ffc83d; }
:root[data-edition="xmas"] .a-cflame,
:root[data-edition="xmas"] .a-ccore,
:root[data-edition="xmas"] .a-cglow { opacity: 0; transition: opacity .25s var(--ease-out); }
:root[data-edition="xmas"] .a-candle.on .a-cflame,
:root[data-edition="xmas"] .a-candle.on .a-ccore { opacity: 1; }
:root[data-edition="xmas"] .a-candle.on .a-cglow { opacity: .35; }
:root[data-edition="xmas"] .a-candle.on .a-cbody { fill: #fff8e4; }
:root[data-edition="xmas"] .a-wall.over .a-cbody { stroke: #5a0012; }
@media (prefers-reduced-motion: no-preference) {
  :root[data-edition="xmas"] .a-candle.a-kindle .a-cflame,
  :root[data-edition="xmas"] .a-candle.a-kindle .a-ccore { transform-box: fill-box; transform-origin: 50% 100%; animation: a-kindle .45s var(--ease-spring); }
}
@keyframes a-kindle { from { transform: scale(.2); opacity: 0; } }

:root[data-edition="xmas"] .a-fairy { filter: none; overflow: visible; }
:root[data-edition="xmas"] .a-fairy .al-halo { fill: var(--al); opacity: .3; }
:root[data-edition="xmas"] .a-fairy .al-wire { fill: none; stroke: #0d3b20; stroke-width: 1.3; stroke-linecap: round; }
:root[data-edition="xmas"] .a-fairy .al-rim { fill: #1a1206; stroke: #1a1206; stroke-width: 3.2; stroke-linejoin: round; }
:root[data-edition="xmas"] .a-fairy .al-glass { fill: var(--al); }
:root[data-edition="xmas"] .a-fairy .al-shine { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.3; stroke-linecap: round; }
:root[data-edition="xmas"] .a-fairy .al-socket { fill: #1f8a47; }
:root[data-edition="xmas"] .a-fairy .al-thread { stroke: #0d3b20; stroke-width: .8; }
:root[data-edition="xmas"] .a-fairy.c-g { --al: #2fd06c; }
:root[data-edition="xmas"] .a-fairy.c-b { --al: #4b9dff; }
:root[data-edition="xmas"] .a-fairy.c-y { --al: #ffb81f; }
/* Two bulbs that light each other: red glass, red rim and halo (on akari.css's pink cell). */
:root[data-edition="xmas"] .a-cell.bad .a-fairy { --al: var(--danger); }
:root[data-edition="xmas"] .a-cell.bad .a-fairy .al-rim { fill: #8f1030; stroke: #8f1030; }
:root[data-edition="xmas"] .a-cell.bad .a-fairy .al-halo { opacity: .55; }

/* --- Parkoló (rushhour.css + xmas-pieces.js sleighSvg) ------------------------------------
   The red target car is Santa's sleigh: the same button (footprint, hit area, drag, drive-out),
   its car paint and windows swapped for the drawing, with a soft gold glow so it stays the most
   eye-catching piece. Every other vehicle keeps its colour and windows and wears a snow cap on
   its roof (between the windscreen and the rear window; on a truck, on the cargo box). The
   cap is a background layer, so the windows (::before/::after) stay on top of it. */
:root[data-edition="xmas"] .rh-car:not(.rh-sleigh) {
  --snow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30' preserveAspectRatio='none'%3E%3Cpath d='M7 3.5C11 1 14.5 3 18.5 2C22.5 1 26.5 2.6 30.5 2.2C35.5 2 38.2 5.6 37.8 9.6C37.6 13.4 38.6 16.6 38 20.6C37.4 25.6 34 28 29.8 27.4C25.8 28.8 22 27.2 18 28C14 28.8 10.2 27.6 6.4 27.2C2.4 26.4 1.4 22.6 2.2 18.6C1.4 14.6 2.8 11.4 2 8C2 4.8 4 3.6 7 3.5z' fill='%23e6edf7' stroke='%23000' stroke-opacity='.22' stroke-width='1.6'/%3E%3Cpath d='M8 22.4C14 24.8 26 24.8 32.6 21.8' fill='none' stroke='%23b4c6dd' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background:
    var(--snow) var(--snow-at) / var(--snow-size) no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 50%), var(--car);
}
/* Roof between the rear window (12–21 %) and the windscreen (70–83 %); see rushhour.css. */
:root[data-edition="xmas"] .rh-car.rh-h { --snow-size: 30% 50%; --snow-at: 44% 50%; }
:root[data-edition="xmas"] .rh-car.rh-v { --snow-size: 50% 30%; --snow-at: 50% 56%; }
/* Trucks: on the cargo box (6–70 %), behind the cab. */
:root[data-edition="xmas"] .rh-car.rh-truck.rh-h { --snow-size: 38% 54%; --snow-at: 31% 50%; }
:root[data-edition="xmas"] .rh-car.rh-truck.rh-v { --snow-size: 54% 38%; --snow-at: 50% 69%; }

/* A strong red pad gives the sleigh's 2-cell footprint the colour mass the red car had (the
   brighter sleigh, with its dark rim, sits on it); restate the drag ring, which this out-ranks. */
:root[data-edition="xmas"] .rh-car.rh-sleigh {
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 50%), linear-gradient(160deg, rgba(232, 40, 59, .62), rgba(176, 16, 38, .5));
  box-shadow: inset 0 0 0 1.5px rgba(255, 110, 120, .55), 0 0 14px -2px rgba(232, 40, 59, .55);
}
:root[data-edition="xmas"] .rh-car.rh-sleigh.rh-drag {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 2px rgba(255, 255, 255, .85), 0 14px 26px -8px rgba(0, 0, 0, .8);
}
:root[data-edition="xmas"] .rh-car.rh-sleigh::before,
:root[data-edition="xmas"] .rh-car.rh-sleigh::after { display: none; }
.rh-sleigh-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(255, 200, 61, .5)) drop-shadow(0 3px 4px rgba(0, 0, 0, .6));
}

/* --- Raktáros (sokoban.css + xmas-pieces.js santaSvg) --------------------------------------
   Santa is the keeper (his eyes still look where he last walked); crates are gifts seen from
   above — amber paper with a red ribbon and bow, like the year-round amber crate — and a gift on
   its spot turns green with a gold ribbon and a glowing gold bow (the year-round amber → green
   change, plus the glow). Goals are a gold star in a soft gold ring. Walls get a thin snow lip. */
.sk-keeper.sk-xmas::before { display: none; }
.sk-santa {
  position: absolute; inset: 4%; width: 92%; height: 92%;
  overflow: visible;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6));
}
.sk-keeper.sk-xmas .sk-santa { transition: transform .12s var(--ease-out); }
.sk-keeper.sk-xmas[data-face="U"] .sk-santa { transform: translateY(-2.5%); }
.sk-keeper.sk-xmas[data-face="D"] .sk-santa { transform: translateY(2.5%); }
.sk-keeper.sk-xmas[data-face="L"] .sk-santa { transform: translateX(-2.5%); }
.sk-keeper.sk-xmas[data-face="R"] .sk-santa { transform: translateX(2.5%); }
.sk-santa-eyes { transform: translate(0, 1.1px); transition: transform .12s var(--ease-out); }
.sk-keeper[data-face="U"] .sk-santa-eyes { transform: translate(0, -1.2px); }
.sk-keeper[data-face="L"] .sk-santa-eyes { transform: translate(-1.8px, 0); }
.sk-keeper[data-face="R"] .sk-santa-eyes { transform: translate(1.8px, 0); }

:root[data-edition="xmas"] .sk-box {
  --paper: linear-gradient(160deg, #eda940, #b86e10);
  --ribbon: #d81f34;
  --bow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 10L6.4 17 8.6 16.4 9.6 18.6zM10 10L13.6 17 11.4 16.4 10.4 18.6zM10 10C6 3.6 1.4 4.8 2 8.4C2.6 11.8 7 11.8 10 10zM10 10C14 3.6 18.6 4.8 18 8.4C17.4 11.8 13 11.8 10 10z' fill='%23e8283b' stroke='%23400' stroke-width='1.1' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='10' r='2.3' fill='%23ff4a5c' stroke='%23400' stroke-width='1.1'/%3E%3C/svg%3E");
}
:root[data-edition="xmas"] .sk-box::before {
  background:
    linear-gradient(rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 55%),
    linear-gradient(90deg, transparent 41%, var(--ribbon) 41% 59%, transparent 59%),
    linear-gradient(transparent 41%, var(--ribbon) 41% 59%, transparent 59%),
    var(--paper);
}
:root[data-edition="xmas"] .sk-box::after {
  inset: 18%;
  border: 0; border-radius: 0;
  background: var(--bow) center / contain no-repeat;
  transition: filter .25s;
}
:root[data-edition="xmas"] .sk-box.sk-placed {
  --paper: linear-gradient(160deg, #36c972, #0f7a3c);
  --ribbon: #ffc83d;
  --bow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 10L6.4 17 8.6 16.4 9.6 18.6zM10 10L13.6 17 11.4 16.4 10.4 18.6zM10 10C6 3.6 1.4 4.8 2 8.4C2.6 11.8 7 11.8 10 10zM10 10C14 3.6 18.6 4.8 18 8.4C17.4 11.8 13 11.8 10 10z' fill='%23ffc83d' stroke='%235a3200' stroke-width='1.1' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='10' r='2.3' fill='%23fff3c4' stroke='%235a3200' stroke-width='1.1'/%3E%3C/svg%3E");
}
:root[data-edition="xmas"] .sk-box.sk-placed::before {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2), inset 0 -3px 0 rgba(0, 0, 0, .18), 0 0 18px rgba(255, 200, 61, .5);
}
:root[data-edition="xmas"] .sk-box.sk-placed::after { filter: drop-shadow(0 0 4px rgba(255, 220, 110, .95)); }

:root[data-edition="xmas"] .sk-goal::after {
  inset: 26%;
  border-color: rgba(255, 200, 61, .6);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.6l2.5 5.3 5.8.7-4.3 4 1.1 5.7L10 14.5l-5.1 2.8 1.1-5.7-4.3-4 5.8-.7z' fill='%23ffc83d'/%3E%3C/svg%3E") center / 66% no-repeat,
    rgba(255, 200, 61, .12);
}
:root[data-edition="xmas"] .sk-wall { box-shadow: inset 0 2px 0 rgba(236, 243, 255, .3); }

/* --- Zoknipár (socks.css + socks-draw.js / xmas-pieces.js sockPattern) ----------------------
   The socks carry Christmas patterns (drawn in JS). Here only a holly sprig where the rope is
   tied at each end, well away from the hanging sock and the pile; it never takes a tap. */
:root[data-edition="xmas"] .sk-line::before,
:root[data-edition="xmas"] .sk-line::after {
  content: ''; position: absolute; top: 0; left: -6px; width: 30px; height: 22px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'%3E%3Cellipse cx='9' cy='12' rx='8.5' ry='3.6' transform='rotate(-22 9 12)' fill='%230f6e35'/%3E%3Cellipse cx='17' cy='7' rx='7.5' ry='3.2' transform='rotate(38 17 7)' fill='%2316a34a'/%3E%3Cpath d='M2 15.2L16 9.6M11 2.6L22 11.4' stroke='%230b4a24' stroke-width='.9'/%3E%3Ccircle cx='16' cy='13' r='2.7' fill='%23e8283b'/%3E%3Ccircle cx='20' cy='11.4' r='2.4' fill='%23e8283b'/%3E%3Ccircle cx='18.6' cy='15.6' r='2.3' fill='%23c81e30'/%3E%3C/svg%3E") no-repeat center / contain;
}
:root[data-edition="xmas"] .sk-line::after { left: auto; right: -6px; transform: scaleX(-1); }

/* --- Mini Sudoku (sudoku.css) ----------------------------------------------------------------
   The six 3×2 boxes are tinted green and red in a checkerboard, like wrapping paper. The tint is
   a translucent layer over the cell's own colour, so the row/column/box highlight (.s-peer),
   hover and hint area still show through it. The selected cell, same-digit cells and conflicts
   drop the tint; a conflict's red wash is twice as strong as before, so it still stands out
   inside a red box. The digits, notes and gutters are untouched.
   nth-child picks the box: children 1–12 are rows 0–1, 13–24 rows 2–3, 25–36 rows 4–5;
   6n+1..6n+3 the left box, 6n+4..6n the right one (the board is always 6×6 with 2×3 boxes). */
:root[data-edition="xmas"] .s-board { --s-xg: rgba(31, 174, 85, .16); --s-xr: rgba(232, 40, 59, .15); }
:root[data-edition="xmas"] .s-cell { background-image: linear-gradient(var(--s-x), var(--s-x)); --s-x: var(--s-xg); }
:root[data-edition="xmas"] .s-cell:is(:nth-child(-n+12), :nth-child(n+25)):is(:nth-child(6n+4), :nth-child(6n+5), :nth-child(6n)),
:root[data-edition="xmas"] .s-cell:nth-child(n+13):nth-child(-n+24):is(:nth-child(6n+1), :nth-child(6n+2), :nth-child(6n+3)) { --s-x: var(--s-xr); }
:root[data-edition="xmas"] .s-cell:is(.s-sel, .s-same, .s-bad) { background-image: none; }
:root[data-edition="xmas"] .s-cell.s-bad:not(.s-given)::after { background: color-mix(in srgb, var(--danger) 32%, transparent); }

/* --- Calcudoku (calcudoku.css) ---------------------------------------------------------------
   Cages are wrapped presents: every cage edge is a gold ribbon with a red middle stripe, 4 px
   wide where the plain edge was 2 px, so a cage edge reads even more clearly against the 1 px
   inner lines (unchanged). The ribbon is the cell's ::before (::after is the conflict tint), over
   its own right/bottom border and 2 px into it — it never reaches the label corner (top left) and
   stays clear of the note digits, which sit centred in their thirds. The cage label is a cream
   gift tag (dark ink, a punched hole on its pointed end): the old pill's box, 3 px wider on the
   left for the point, so the text sits 3 px further right and still above the notes (top 28 %); solved / wrong cages turn the tag green / red as the pill did. */
:root[data-edition="xmas"] .c-board { --c-thick: #f4c542; --c-ribbon: #d81e3a; }
:root[data-edition="xmas"] .c-cell:is(.c-br, .c-bb)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; background-repeat: no-repeat;
}
:root[data-edition="xmas"] .c-cell.c-br::before {
  right: -2px;
  background-image: linear-gradient(to left, var(--c-thick) 0 1.25px, var(--c-ribbon) 1.25px 2.75px, var(--c-thick) 2.75px 4px);
  background-size: 4px 100%; background-position: right top;
}
:root[data-edition="xmas"] .c-cell.c-bb::before {
  bottom: -2px;
  background-image: linear-gradient(to top, var(--c-thick) 0 1.25px, var(--c-ribbon) 1.25px 2.75px, var(--c-thick) 2.75px 4px);
  background-size: 100% 4px; background-position: left bottom;
}
/* Over the 1 px inner line too, so a ribbon runs on unbroken from one cell to the next. */
:root[data-edition="xmas"] .c-cell.c-br:not(.c-bb, .c-lr)::before { bottom: -1px; }
:root[data-edition="xmas"] .c-cell.c-bb:not(.c-br, .c-lc)::before { right: -1px; }
:root[data-edition="xmas"] .c-cell.c-br.c-bb::before {
  background-image:
    linear-gradient(to left, var(--c-thick) 0 1.25px, var(--c-ribbon) 1.25px 2.75px, var(--c-thick) 2.75px 4px),
    linear-gradient(to top, var(--c-thick) 0 1.25px, var(--c-ribbon) 1.25px 2.75px, var(--c-thick) 2.75px 4px);
  background-size: 4px 100%, 100% 4px; background-position: right top, left bottom;
}
/* The ribbon covers a cage-edge cell's inner 2 px on that side, where the inset hint rings
   (calcudoku.css .c-hint-target / -warn / -focus) are drawn. On those sides the ring gets an
   extra strip as wide as the ring plus the covered 2 px, so it shows at full width just inside
   the ribbon. --c-rx / --c-ry are 1px on a ribbon side, 0 elsewhere (a 0-wide strip draws nothing). */
:root[data-edition="xmas"] .c-cell { --c-rx: 0px; --c-ry: 0px; }
:root[data-edition="xmas"] .c-cell.c-br { --c-rx: 1px; }
:root[data-edition="xmas"] .c-cell.c-bb { --c-ry: 1px; }
:root[data-edition="xmas"] .c-cell.c-hint-focus {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5),
    inset calc(var(--c-rx) * -4) 0 0 rgba(255, 255, 255, .5), inset 0 calc(var(--c-ry) * -4) 0 rgba(255, 255, 255, .5);
}
:root[data-edition="xmas"] .c-cell.c-hint-target {
  box-shadow: inset 0 0 0 3px var(--c-ring), inset calc(var(--c-rx) * -5) 0 0 var(--c-ring), inset 0 calc(var(--c-ry) * -5) 0 var(--c-ring);
  --c-ring: var(--game);
}
:root[data-edition="xmas"] .c-cell.c-hint-target.c-hint-warn { --c-ring: var(--danger); }
:root[data-edition="xmas"] .c-label {
  color: #3b1d0e; font-weight: 700;
  padding-left: 7px; margin-left: -4px; border-radius: 2px 5px 5px 2px;
  clip-path: polygon(4px 0, 100% 0, 100% 100%, 4px 100%, 0 50%);
  background:
    radial-gradient(circle at 4.5px 50%, rgba(59, 29, 14, .7) 0 1.1px, transparent 1.5px),
    #fbf1dc;
}
:root[data-edition="xmas"] .c-label.c-ok {
  color: #fff;
  background: radial-gradient(circle at 4.5px 50%, rgba(0, 0, 0, .45) 0 1.1px, transparent 1.5px), #1f8a47;
}
:root[data-edition="xmas"] .c-label.c-wrong {
  color: #fff;
  background: radial-gradient(circle at 4.5px 50%, rgba(0, 0, 0, .45) 0 1.1px, transparent 1.5px), var(--danger);
}

/* --- Kakuro (kakuro.css) ---------------------------------------------------------------------
   Clue cells are gingerbread tiles: warm brown with a piped white icing rim and the diagonal
   piped in icing too, crisper than the old faint line. The sums are cream on the brown (higher
   contrast than before); a finished run's sum keeps its green on a dark chocolate pill, the
   highlighted / wrong sums keep their pink / red pills. Plain black cells are dark chocolate. */
:root[data-edition="xmas"] .kk-board { --kk-black: #1d130d; }
:root[data-edition="xmas"] .kk-clue {
  background:
    linear-gradient(to top right, transparent calc(50% - .8px), #fff4e2 calc(50% - .8px), #fff4e2 calc(50% + .8px), transparent calc(50% + .8px)),
    radial-gradient(circle at 30% 25%, rgba(255, 214, 160, .18), transparent 60%),
    linear-gradient(160deg, #8a4f24, #6a3816);
  box-shadow: inset 0 0 0 max(2px, calc(var(--kk-cell) * .05)) #6a3816, inset 0 0 0 calc(max(2px, calc(var(--kk-cell) * .05)) + 1.3px) rgba(255, 244, 226, .85);
}
:root[data-edition="xmas"] .kk-sum { color: #fff8ec; font-weight: 700; text-shadow: 0 1px 1px rgba(40, 18, 4, .6); }
:root[data-edition="xmas"] .kk-sum.kk-ok { color: var(--good); background: #24140a; text-shadow: none; }
:root[data-edition="xmas"] .kk-sum:is(.kk-hl, .kk-wrong) { text-shadow: none; }
:root[data-edition="xmas"] .kk-sum.kk-hl.kk-ok { background: var(--good); color: #000; }
:root[data-edition="xmas"] .kk-sum.kk-wrong { background: var(--danger); color: #fff; }

/* --- Aknakereső (mines.css + xmas-pieces.js coalSvg / elfHatSvg) ----------------------------
   The mine is a lump of coal, the flag an elf's hat, both inline SVG in place of the emoji. On a
   tile they fill a bit more of it than the emoji glyph did (the drawings have a margin of their
   own); the boom tile keeps its 💥 and the lives their hearts. */
.m-tile .m-piece { width: 82%; height: 82%; display: block; pointer-events: none; }
.m-count-icon .m-piece { width: 1.5rem; height: 1.5rem; display: block; }
.m-flagbtn .m-piece { width: 1.35em; height: 1.35em; display: inline-block; vertical-align: -.32em; margin: -.2em 0; }

/* The owner's production preview before December (views/layout.php, Edition::previewing). */
.edition-preview {
  position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 1000; margin: 0;
  padding: 6px 12px; border-radius: 999px; background: var(--xmas-red, #c8102e); color: #fff;
  font-size: .78rem; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.edition-preview a { color: #fff; text-decoration: underline; }
