/* =========================================================
   2026 THEME: HAPPY BERLIN BEAR PRINT CARD
   Load after styles.css. Site-specific, so it lives in its
   own file and stays out of the shared stylesheet.
   Colors and decoration only: the grid, door sizes, padding
   and border width all come from styles.css unchanged.
   ========================================================= */

:root {
  --card-ink: #17241e;      /* dark numbers on light doors */
  --card-cream: #f4dfa9;    /* heading and sign-off */
  --card-sky: #8ecbe1;      /* message line 1 */
  --card-gold: #ebc655;     /* message line 2 */
  --card-green: #286e4a;    /* buttons */
  --night-top: #0e1a2b;
  --night-mid: #172a43;
  --night-low: #20385a;

  /* Number shading, like raised numbers on a painted door:
     a soft cast shadow, plus a light top edge on dark numbers */
  --num-shadow-dark: 0 1px 0 rgba(255, 255, 255, 0.45), 1px 3px 4px rgba(0, 0, 0, 0.3);
  --num-shadow-light: 1px 2px 0 rgba(0, 0, 0, 0.3), 2px 4px 6px rgba(0, 0, 0, 0.35);
}

/* ---------- Page: night-blue card stock ---------- */
html {
  background-color: var(--night-mid);
}

/* Later in the cascade than the background photo rules in
   styles.css, so this replaces the photo at every width.
   Layers, top to bottom: a fade that dims the stars toward the
   bottom like a horizon, three star tiles of different sizes
   (so the repeat is not noticeable; only the two larger ones
   have sparkles), and the night-blue gradient. */
body {
  background-color: var(--night-mid);
  background-image:
    linear-gradient(180deg, rgba(23, 42, 67, 0) 0%, rgba(23, 42, 67, 0) 45%, rgba(32, 56, 90, 0.85) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480' viewBox='0 0 480 480'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='156.8' cy='75.2' r='1.1' fill='%23cfe3f3' opacity='0.38'/%3E%3Ccircle cx='48.4' cy='279.1' r='1.0' fill='%23ffffff' opacity='0.47'/%3E%3Ccircle cx='208.7' cy='37.0' r='0.6' fill='%23ffffff' opacity='0.65'/%3E%3Ccircle cx='394.3' cy='62.4' r='0.7' fill='%23cfe3f3' opacity='0.7'/%3E%3Ccircle cx='451.3' cy='276.4' r='0.9' fill='%23ffffff' opacity='0.38'/%3E%3Ccircle cx='26.0' cy='409.2' r='0.8' fill='%23cfe3f3' opacity='0.58'/%3E%3Ccircle cx='59.6' cy='149.6' r='1.3' fill='%23ffffff' opacity='0.73'/%3E%3Ccircle cx='278.5' cy='305.6' r='0.8' fill='%23ffffff' opacity='0.4'/%3E%3Ccircle cx='270.4' cy='296.2' r='0.9' fill='%23f4dfa9' opacity='0.72'/%3E%3Ccircle cx='370.9' cy='223.8' r='0.9' fill='%23ffffff' opacity='0.55'/%3E%3Ccircle cx='378.9' cy='333.9' r='0.7' fill='%23ffffff' opacity='0.4'/%3E%3Ccircle cx='251.9' cy='417.1' r='1.1' fill='%23cfe3f3' opacity='0.6'/%3E%3Ccircle cx='466.6' cy='59.7' r='0.9' fill='%23ffffff' opacity='0.44'/%3E%3Ccircle cx='75.7' cy='234.8' r='0.6' fill='%23ffffff' opacity='0.88'/%3E%3Ccircle cx='364.9' cy='274.5' r='1.3' fill='%23ffffff' opacity='0.52'/%3E%3Ccircle cx='284.5' cy='277.7' r='0.9' fill='%23ffffff' opacity='0.39'/%3E%3Ccircle cx='449.9' cy='227.8' r='1.1' fill='%23ffffff' opacity='0.39'/%3E%3Ccircle cx='309.4' cy='472.7' r='1.3' fill='%23f4dfa9' opacity='0.6'/%3E%3Ccircle cx='422.7' cy='167.8' r='0.9' fill='%23cfe3f3' opacity='0.55'/%3E%3Ccircle cx='59.3' cy='31.8' r='1.3' fill='%23ffffff' opacity='0.51'/%3E%3Ccircle cx='191.8' cy='436.7' r='0.9' fill='%23f4dfa9' opacity='0.39'/%3E%3Ccircle cx='193.6' cy='135.1' r='0.7' fill='%23cfe3f3' opacity='0.8'/%3E%3Ccircle cx='135.4' cy='200.0' r='0.8' fill='%23f4dfa9' opacity='0.73'/%3E%3Ccircle cx='456.0' cy='75.2' r='0.7' fill='%23ffffff' opacity='0.43'/%3E%3Ccircle cx='9.7' cy='396.3' r='0.7' fill='%23ffffff' opacity='0.49'/%3E%3Ccircle cx='72.8' cy='256.3' r='1.0' fill='%23ffffff' opacity='0.66'/%3E%3Ccircle cx='329.9' cy='247.3' r='1.0' fill='%23ffffff' opacity='0.71'/%3E%3Ccircle cx='219.5' cy='415.1' r='1.3' fill='%23cfe3f3' opacity='0.72'/%3E%3Ccircle cx='189.2' cy='192.3' r='0.6' fill='%23f4dfa9' opacity='0.61'/%3E%3Ccircle cx='33.4' cy='35.8' r='0.7' fill='%23ffffff' opacity='0.59'/%3E%3Ccircle cx='164.5' cy='28.8' r='0.6' fill='%23cfe3f3' opacity='0.66'/%3E%3Ccircle cx='51.9' cy='175.6' r='0.6' fill='%23ffffff' opacity='0.39'/%3E%3Ccircle cx='293.8' cy='74.1' r='0.8' fill='%23cfe3f3' opacity='0.88'/%3E%3Ccircle cx='175.9' cy='62.0' r='1.3' fill='%23f4dfa9' opacity='0.62'/%3E%3Ccircle cx='230.7' cy='151.2' r='0.7' fill='%23ffffff' opacity='0.41'/%3E%3Ccircle cx='353.4' cy='229.9' r='1.1' fill='%23ffffff' opacity='0.44'/%3E%3Ccircle cx='100.9' cy='453.4' r='0.8' fill='%23cfe3f3' opacity='0.43'/%3E%3Ccircle cx='435.5' cy='361.8' r='0.8' fill='%23ffffff' opacity='0.89'/%3E%3Ccircle cx='332.6' cy='127.2' r='0.8' fill='%23ffffff' opacity='0.85'/%3E%3Ccircle cx='368.4' cy='255.4' r='1.3' fill='%23ffffff' opacity='0.63'/%3E%3Ccircle cx='293.4' cy='376.1' r='1.3' fill='%23ffffff' opacity='0.82'/%3E%3Ccircle cx='390.3' cy='353.2' r='0.7' fill='%23f4dfa9' opacity='0.46'/%3E%3Ccircle cx='171.8' cy='17.7' r='0.6' fill='%23f4dfa9' opacity='0.78'/%3E%3Ccircle cx='126.3' cy='330.9' r='0.8' fill='%23ffffff' opacity='0.6'/%3E%3Ccircle cx='454.8' cy='176.1' r='0.7' fill='%23f4dfa9' opacity='0.41'/%3E%3Ccircle cx='96.8' cy='100.5' r='1.0' fill='%23cfe3f3' opacity='0.89'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='770' height='770' viewBox='0 0 770 770'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='708.7' cy='726.8' r='1.3' fill='%23cfe3f3' opacity='0.4'/%3E%3Ccircle cx='237.7' cy='292.9' r='0.8' fill='%23ffffff' opacity='0.42'/%3E%3Ccircle cx='207.7' cy='14.7' r='1.0' fill='%23ffffff' opacity='0.6'/%3E%3Ccircle cx='84.7' cy='751.7' r='0.9' fill='%23cfe3f3' opacity='0.58'/%3E%3Ccircle cx='482.3' cy='332.6' r='1.3' fill='%23ffffff' opacity='0.38'/%3E%3Ccircle cx='452.9' cy='505.3' r='1.0' fill='%23ffffff' opacity='0.47'/%3E%3Ccircle cx='434.9' cy='659.4' r='1.0' fill='%23ffffff' opacity='0.5'/%3E%3Ccircle cx='440.6' cy='624.5' r='0.7' fill='%23cfe3f3' opacity='0.74'/%3E%3Ccircle cx='607.1' cy='518.9' r='0.7' fill='%23ffffff' opacity='0.45'/%3E%3Ccircle cx='410.6' cy='517.1' r='1.0' fill='%23ffffff' opacity='0.46'/%3E%3Ccircle cx='66.7' cy='328.7' r='1.0' fill='%23cfe3f3' opacity='0.5'/%3E%3Ccircle cx='217.8' cy='453.6' r='0.6' fill='%23ffffff' opacity='0.55'/%3E%3Ccircle cx='417.1' cy='685.6' r='0.9' fill='%23ffffff' opacity='0.65'/%3E%3Ccircle cx='117.9' cy='476.2' r='0.6' fill='%23f4dfa9' opacity='0.74'/%3E%3Ccircle cx='185.4' cy='419.7' r='1.1' fill='%23f4dfa9' opacity='0.68'/%3E%3Ccircle cx='131.5' cy='747.0' r='0.6' fill='%23f4dfa9' opacity='0.7'/%3E%3Ccircle cx='21.8' cy='620.9' r='1.1' fill='%23ffffff' opacity='0.36'/%3E%3Ccircle cx='617.4' cy='727.0' r='1.0' fill='%23f4dfa9' opacity='0.87'/%3E%3Ccircle cx='574.7' cy='267.8' r='1.3' fill='%23ffffff' opacity='0.56'/%3E%3Ccircle cx='32.2' cy='205.4' r='1.0' fill='%23f4dfa9' opacity='0.46'/%3E%3Ccircle cx='728.2' cy='168.6' r='0.6' fill='%23ffffff' opacity='0.66'/%3E%3Ccircle cx='530.2' cy='429.2' r='0.7' fill='%23f4dfa9' opacity='0.49'/%3E%3Ccircle cx='129.7' cy='13.0' r='1.3' fill='%23f4dfa9' opacity='0.54'/%3E%3Ccircle cx='624.1' cy='686.1' r='1.1' fill='%23ffffff' opacity='0.8'/%3E%3Ccircle cx='532.1' cy='636.3' r='1.1' fill='%23cfe3f3' opacity='0.76'/%3E%3Ccircle cx='229.0' cy='316.1' r='1.3' fill='%23cfe3f3' opacity='0.82'/%3E%3Ccircle cx='423.1' cy='633.8' r='0.6' fill='%23ffffff' opacity='0.36'/%3E%3Ccircle cx='257.4' cy='430.2' r='1.3' fill='%23ffffff' opacity='0.59'/%3E%3Ccircle cx='729.1' cy='63.9' r='1.0' fill='%23ffffff' opacity='0.73'/%3E%3Ccircle cx='183.1' cy='431.4' r='0.9' fill='%23ffffff' opacity='0.79'/%3E%3Ccircle cx='7.0' cy='291.4' r='1.3' fill='%23f4dfa9' opacity='0.88'/%3E%3Ccircle cx='159.1' cy='523.0' r='0.7' fill='%23f4dfa9' opacity='0.71'/%3E%3Ccircle cx='731.5' cy='324.0' r='0.8' fill='%23cfe3f3' opacity='0.61'/%3E%3Ccircle cx='553.0' cy='139.4' r='1.0' fill='%23ffffff' opacity='0.51'/%3E%3Ccircle cx='176.6' cy='51.4' r='0.9' fill='%23ffffff' opacity='0.56'/%3E%3Ccircle cx='517.1' cy='465.1' r='0.8' fill='%23f4dfa9' opacity='0.72'/%3E%3Ccircle cx='270.2' cy='234.3' r='0.8' fill='%23ffffff' opacity='0.44'/%3E%3Ccircle cx='323.7' cy='626.2' r='0.9' fill='%23ffffff' opacity='0.77'/%3E%3Ccircle cx='414.6' cy='530.6' r='0.9' fill='%23ffffff' opacity='0.47'/%3E%3Ccircle cx='756.9' cy='115.5' r='0.8' fill='%23f4dfa9' opacity='0.41'/%3E%3Ccircle cx='742.5' cy='222.6' r='11.7' fill='url%28%23g%29'/%3E%3Cpath d='M742.5,215.3 L743.9,221.3 L749.8,222.6 L743.9,223.9 L742.5,229.9 L741.2,223.9 L735.2,222.6 L741.2,221.3 Z' fill='%23ffffff' opacity='.9'/%3E%3Ccircle cx='742.5' cy='222.6' r='1.2' fill='%23fff'/%3E%3Ccircle cx='646.5' cy='209.3' r='12.1' fill='url%28%23g%29'/%3E%3Cpath d='M646.5,201.7 L647.9,207.9 L654.1,209.3 L647.9,210.6 L646.5,216.8 L645.2,210.6 L639.0,209.3 L645.2,207.9 Z' fill='%23ffffff' opacity='.9'/%3E%3Ccircle cx='646.5' cy='209.3' r='1.2' fill='%23fff'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1130' height='1130' viewBox='0 0 1130 1130'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='431.5' cy='262.9' r='0.7' fill='%23f4dfa9' opacity='0.85'/%3E%3Ccircle cx='652.4' cy='778.3' r='1.0' fill='%23cfe3f3' opacity='0.5'/%3E%3Ccircle cx='14.5' cy='283.5' r='1.3' fill='%23ffffff' opacity='0.36'/%3E%3Ccircle cx='1111.0' cy='1103.5' r='0.8' fill='%23cfe3f3' opacity='0.44'/%3E%3Ccircle cx='659.0' cy='138.4' r='1.0' fill='%23ffffff' opacity='0.37'/%3E%3Ccircle cx='947.7' cy='246.2' r='1.1' fill='%23f4dfa9' opacity='0.55'/%3E%3Ccircle cx='144.3' cy='755.7' r='0.6' fill='%23ffffff' opacity='0.4'/%3E%3Ccircle cx='776.9' cy='1103.6' r='0.6' fill='%23ffffff' opacity='0.5'/%3E%3Ccircle cx='699.5' cy='686.4' r='0.7' fill='%23ffffff' opacity='0.59'/%3E%3Ccircle cx='342.2' cy='167.7' r='1.1' fill='%23ffffff' opacity='0.4'/%3E%3Ccircle cx='748.3' cy='557.4' r='0.9' fill='%23ffffff' opacity='0.48'/%3E%3Ccircle cx='155.4' cy='518.3' r='1.1' fill='%23cfe3f3' opacity='0.57'/%3E%3Ccircle cx='839.3' cy='609.6' r='0.6' fill='%23ffffff' opacity='0.71'/%3E%3Ccircle cx='201.8' cy='909.6' r='1.1' fill='%23ffffff' opacity='0.37'/%3E%3Ccircle cx='1110.9' cy='795.2' r='0.9' fill='%23ffffff' opacity='0.71'/%3E%3Ccircle cx='687.4' cy='473.4' r='1.3' fill='%23ffffff' opacity='0.4'/%3E%3Ccircle cx='251.5' cy='411.5' r='0.9' fill='%23f4dfa9' opacity='0.72'/%3E%3Ccircle cx='889.2' cy='97.1' r='1.1' fill='%23ffffff' opacity='0.5'/%3E%3Ccircle cx='1046.4' cy='283.2' r='0.9' fill='%23ffffff' opacity='0.84'/%3E%3Ccircle cx='910.5' cy='702.7' r='1.3' fill='%23f4dfa9' opacity='0.84'/%3E%3Ccircle cx='825.3' cy='244.5' r='0.7' fill='%23ffffff' opacity='0.47'/%3E%3Ccircle cx='206.7' cy='751.9' r='0.6' fill='%23cfe3f3' opacity='0.89'/%3E%3Ccircle cx='640.2' cy='178.1' r='0.8' fill='%23f4dfa9' opacity='0.42'/%3E%3Ccircle cx='762.6' cy='137.0' r='0.9' fill='%23ffffff' opacity='0.68'/%3E%3Ccircle cx='624.0' cy='562.6' r='0.8' fill='%23ffffff' opacity='0.84'/%3E%3Ccircle cx='37.5' cy='665.4' r='0.7' fill='%23cfe3f3' opacity='0.7'/%3E%3Ccircle cx='585.5' cy='1036.0' r='0.9' fill='%23ffffff' opacity='0.75'/%3E%3Ccircle cx='51.0' cy='751.8' r='1.1' fill='%23f4dfa9' opacity='0.54'/%3E%3Ccircle cx='1038.4' cy='1020.8' r='0.8' fill='%23ffffff' opacity='0.51'/%3E%3Ccircle cx='962.1' cy='690.6' r='1.3' fill='%23ffffff' opacity='0.42'/%3E%3Ccircle cx='697.7' cy='474.1' r='9.9' fill='url%28%23g%29'/%3E%3Cpath d='M697.7,467.9 L698.8,473.0 L703.9,474.1 L698.8,475.2 L697.7,480.3 L696.5,475.2 L691.5,474.1 L696.5,473.0 Z' fill='%23f4dfa9' opacity='.9'/%3E%3Ccircle cx='697.7' cy='474.1' r='1.2' fill='%23fff'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--night-top) 0%, var(--night-mid) 45%, var(--night-low) 100%);
  background-size: auto, 480px 480px, 770px 770px, 1130px 1130px, auto;
  background-repeat: no-repeat, repeat, repeat, repeat, no-repeat;
  background-position: center top, 0 0, 137px 211px, 371px 53px, center top;
}

/* ---------- Heading and card message ---------- */
h1 {
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: var(--card-cream);
  filter: none;
  text-shadow: none;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-block-end: 0.25rem;
  padding-inline: 0.75rem;
}

/* Keep the heading off the screen edges on narrow phones */
@media (max-width: 30rem) {
  h1 { font-size: clamp(1.6rem, 8vw, 2.25rem); }
}

.card-lines {
  margin: 0 auto 1.25rem;
  padding: 0 1rem;
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  line-height: 1.5;
}

.card-lines span { display: block; }
.card-lines span:nth-child(odd)  { color: var(--card-sky); }
.card-lines span:nth-child(even) { color: var(--card-gold); }

.card-signoff {
  margin: 1.5rem auto 0;
  color: var(--card-cream);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
}

/* ---------- Doors: each day keeps its print-card color ---------- */
.door[data-day="1"]  { --door-bg: #f4dfa9; --door-ink: var(--card-ink); }
.door[data-day="2"]  { --door-bg: #438e64; --door-ink: var(--card-ink); }
.door[data-day="3"]  { --door-bg: #ebc655; --door-ink: var(--card-ink); }
.door[data-day="4"]  { --door-bg: #4b8050; --door-ink: #fff; --num-shadow: var(--num-shadow-light); }
.door[data-day="5"]  { --door-bg: #db342b; --door-ink: #fff; --num-shadow: var(--num-shadow-light); }
.door[data-day="6"]  { --door-bg: #76b9dc; --door-ink: var(--card-ink); }
.door[data-day="7"]  { --door-bg: #286e4a; --door-ink: #fff; --num-shadow: var(--num-shadow-light); }
.door[data-day="8"]  { --door-bg: #eac783; --door-ink: var(--card-ink); }
.door[data-day="9"]  { --door-bg: #a83230; --door-ink: #fff; --num-shadow: var(--num-shadow-light); }
.door[data-day="10"] { --door-bg: #e86135; --door-ink: var(--card-ink); }
.door[data-day="11"] { --door-bg: #c7933f; --door-ink: var(--card-ink); }
.door[data-day="12"] { --door-bg: #f3b629; --door-ink: var(--card-ink); }
.door[data-day="13"] { --door-bg: #e7a22b; --door-ink: var(--card-ink); }
.door[data-day="14"] { --door-bg: #a62f36; --door-ink: #fff; --num-shadow: var(--num-shadow-light); }
.door[data-day="15"] { --door-bg: #6ba3b9; --door-ink: var(--card-ink); }
.door[data-day="16"] { --door-bg: #8dbd8d; --door-ink: var(--card-ink); }
.door[data-day="17"] { --door-bg: #8ecbe1; --door-ink: var(--card-ink); }
.door[data-day="18"] { --door-bg: #447eab; --door-ink: var(--card-ink); }
.door[data-day="19"] { --door-bg: #aa6439; --door-ink: var(--card-ink); }
.door[data-day="20"] { --door-bg: #1e5d42; --door-ink: #fff; --num-shadow: var(--num-shadow-light); }
.door[data-day="21"] { --door-bg: #d7804d; --door-ink: var(--card-ink); }
.door[data-day="22"] { --door-bg: #d98731; --door-ink: var(--card-ink); }
.door[data-day="23"] { --door-bg: #287b70; --door-ink: #fff; --num-shadow: var(--num-shadow-light); }
.door[data-day="24"] { --door-bg: #e34b35; --door-ink: var(--card-ink); }

/* Flat like the printed card. The border keeps its width
   but turns transparent, so the door size does not change. */
.door,
.door.opened {
  background: var(--door-bg, #db342b);
  color: var(--door-ink, #fff);
  border-color: transparent;
  border-radius: 0.15rem;
  font-weight: normal;
  text-shadow: var(--num-shadow, var(--num-shadow-dark));
  opacity: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* Door shape: taller than wide, like a real door.
   - Phones: compact, just a little taller than wide, so the
     calendar stays short on a small screen
   - 480 to 1023px (tablets held upright): tall and narrow
   - From 1024px: only slightly taller than wide, so all 24 doors
     fit on a 1920 x 1080 monitor without scrolling, even with a
     bookmarks bar (the last row ends at about 910px)
   The minimum heights in styles.css still apply. */
.door {
  box-sizing: border-box;
  aspect-ratio: 5 / 6;
}

@media (min-width: 30rem) { .door { aspect-ratio: 2 / 3; } }
@media (min-width: 64rem) { .door { aspect-ratio: 9 / 10; } }

/* Bigger numbers, closer to the printed card, at every width.
   Font size only: the doors keep their size.
   Phones scale with the screen, so two-digit numbers still fit
   the narrower doors on small phones (about 22px at 320px wide,
   27px on a 390px iPhone). */
.door { font-size: clamp(1.4rem, 7vw, 1.75rem); }
@media (min-width: 30rem) { .door { font-size: 2rem; } }
@media (min-width: 48rem) { .door { font-size: 2.3rem; } }
@media (min-width: 64rem) { .door { font-size: 2.6rem; } }
@media (min-width: 80rem) { .door { font-size: 3rem; } }

/* Snow caps: a drawn snow drift across the full top of each
   door, with a lumpy top, uneven drips and a hint of blue
   shade. Three shapes alternate so neighbors never match.
   Absolutely positioned, so door sizes are not affected. */
.door::before {
  top: -0.7rem;      /* the drift rests on the top edge; only */
  left: -0.15rem;    /* the lip and drips hang over the front */
  right: -0.15rem;
  height: 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 32' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.55' stop-color='%23f6f9fc'/%3E%3Cstop offset='1' stop-color='%23d9e5f1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M1,19 C0,15 1,11 5.0,11 C8.0,9.2 10.5,12.4 13.5,13.4 C16.5,12.4 19.0,3.2 22.0,5.0 C27.0,3.2 29.5,6.4 32.5,7.4 C35.5,6.4 38.0,0.2 41.0,2.0 C46.0,0.2 48.5,7.4 51.5,8.4 C54.5,7.4 57.0,4.2 60.0,6.0 C65.0,4.2 67.5,7.4 70.5,8.4 C73.5,7.4 76.0,1.2 79.0,3.0 C84.0,1.2 86.5,8.4 89.5,9.4 C92.5,8.4 95.0,5.2 98.0,7.0 C103.0,5.2 105.0,12.4 108.0,13.4 C111.0,12.4 113.0,9.2 116.0,11.0 C119,11 120,15 119,19 C116.0,20.6 100.0,19.6 97.0,20.2 C95.8,23.2 95.5,25.0 94.0,25.0 C92.5,25.0 92.2,23.2 91.0,20.2 C88.0,20.6 69.6,19.6 66.6,20.2 C65.2,25.3 64.8,28.0 63.0,28.0 C61.2,28.0 60.8,25.3 59.4,20.2 C56.4,20.6 28.2,19.6 25.2,20.2 C23.9,22.5 23.6,24.0 22.0,24.0 C20.4,24.0 20.1,22.5 18.8,20.2 C15.8,19.6 4,20.8 1,19 Z' fill='url%28%23s%29'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.door:nth-child(3n+2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 32' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.55' stop-color='%23f6f9fc'/%3E%3Cstop offset='1' stop-color='%23d9e5f1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M1,19 C0,14 1,10 5.0,10 C8.0,8.2 10.5,11.4 13.5,12.4 C16.5,11.4 19.0,4.2 22.0,6.0 C27.0,4.2 29.5,7.4 32.5,8.4 C35.5,7.4 38.0,2.2 41.0,4.0 C46.0,2.2 48.5,5.4 51.5,6.4 C54.5,5.4 57.0,-0.8 60.0,1.0 C65.0,-0.8 67.5,6.4 70.5,7.4 C73.5,6.4 76.0,3.2 79.0,5.0 C84.0,3.2 86.5,6.4 89.5,7.4 C92.5,6.4 95.0,2.2 98.0,4.0 C103.0,2.2 105.0,11.4 108.0,12.4 C111.0,11.4 113.0,8.2 116.0,10.0 C119,10 120,14 119,19 C116.0,20.6 110.0,19.6 107.0,20.2 C105.8,23.9 105.5,26.0 104.0,26.0 C102.5,26.0 102.2,23.9 101.0,20.2 C98.0,20.6 86.0,19.6 83.0,20.2 C81.8,22.5 81.5,24.0 80.0,24.0 C78.5,24.0 78.2,22.5 77.0,20.2 C74.0,20.6 42.4,19.6 39.4,20.2 C38.0,24.6 37.7,27.0 36.0,27.0 C34.3,27.0 34.0,24.6 32.6,20.2 C29.6,19.6 4,20.8 1,19 Z' fill='url%28%23s%29'/%3E%3C/svg%3E");
}

.door:nth-child(3n)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 32' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.55' stop-color='%23f6f9fc'/%3E%3Cstop offset='1' stop-color='%23d9e5f1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M1,19 C0,16 1,12 5.0,12 C8.0,10.2 10.5,13.4 13.5,14.4 C16.5,13.4 19.0,2.2 22.0,4.0 C27.0,2.2 29.5,7.4 32.5,8.4 C35.5,7.4 38.0,4.2 41.0,6.0 C46.0,4.2 48.5,7.4 51.5,8.4 C54.5,7.4 57.0,1.2 60.0,3.0 C65.0,1.2 67.5,7.4 70.5,8.4 C73.5,7.4 76.0,4.2 79.0,6.0 C84.0,4.2 86.5,7.4 89.5,8.4 C92.5,7.4 95.0,0.2 98.0,2.0 C103.0,0.2 105.0,11.4 108.0,12.4 C111.0,11.4 113.0,8.2 116.0,10.0 C119,10 120,14 119,19 C116.0,20.6 82.6,19.6 79.6,20.2 C78.2,26.0 77.8,29.0 76.0,29.0 C74.2,29.0 73.8,26.0 72.4,20.2 C69.4,20.6 56.0,19.6 53.0,20.2 C51.8,22.5 51.5,24.0 50.0,24.0 C48.5,24.0 48.2,22.5 47.0,20.2 C44.0,20.6 20.0,19.6 17.0,20.2 C15.8,23.9 15.5,26.0 14.0,26.0 C12.5,26.0 12.2,23.9 11.0,20.2 C8.0,19.6 4,20.8 1,19 Z' fill='url%28%23s%29'/%3E%3C/svg%3E");
}

/* A deeper drift on the bigger desktop doors */
@media (min-width: 48rem) {
  .door::before {
    top: -1.1rem;
    height: 2.3rem;
  }
}

/* The drips are part of the drawing now */
.door::after {
  content: none;
}

/* Opened doors shake off their snow, so the picture shows in full */
.door.opened::before {
  content: none;
}

@media (hover: hover) and (pointer: fine) {
  .door:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  }
}

.door:focus {
  outline-color: var(--card-cream);
}

/* Warm gold glow instead of green, so it suits every door */
@keyframes doorGlow {
  from { box-shadow: 0 0 0.5rem rgba(243, 182, 41, 0.7); }
  to   { box-shadow: 0 0 1.1rem rgba(243, 182, 41, 0.95); }
}

/* ---------- Buttons and panels in card colors ---------- */
#resetButton,
.reset-yes {
  background-color: var(--card-green);
}

#resetButton:hover,
#resetButton:focus,
.reset-yes:hover,
.reset-yes:focus-visible {
  background-color: #1e5d42;
}

.sound-toggle input[type="checkbox"],
.sound-toggle input[type="checkbox"]:checked {
  border-color: var(--card-green);
}

.sound-toggle input[type="checkbox"]:checked {
  background-color: var(--card-green);
}

.cast-toggle::after { color: var(--card-green); }

.cast[open] { border-color: var(--card-green); }

.cast-list strong { color: var(--card-green); }

.locked-popup {
  background: rgba(168, 50, 48, 0.96);
}
