/* Festive touches in the original green, red and holly colours (Llysfaen).
   Same ideas as the Conwy design: falling snow, a candy-cane ribbon,
   faint snowflakes behind the cards and gift-tag card edges. */

/* ---------- Header: gently falling snow and a red, white and holly ribbon ---------- */
.bar {
  background-color: var(--pine);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='white' stroke-opacity='.28' stroke-width='1.6' stroke-linecap='round'%3E%3Cg transform='translate(25 30)'%3E%3Cpath d='M0-9V9M-7.8-4.5L7.8 4.5M-7.8 4.5L7.8-4.5M-2.5-7L0-4.5L2.5-7M-2.5 7L0 4.5L2.5 7'/%3E%3C/g%3E%3Cg transform='translate(100 75) scale(.7)'%3E%3Cpath d='M0-9V9M-7.8-4.5L7.8 4.5M-7.8 4.5L7.8-4.5'/%3E%3C/g%3E%3Cg transform='translate(55 115) scale(.5)'%3E%3Cpath d='M0-9V9M-7.8-4.5L7.8 4.5M-7.8 4.5L7.8-4.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cg fill='white' fill-opacity='.35'%3E%3Ccircle cx='15' cy='20' r='1.6'/%3E%3Ccircle cx='60' cy='45' r='1.2'/%3E%3Ccircle cx='35' cy='75' r='1.4'/%3E%3Ccircle cx='80' cy='10' r='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px 140px, 90px 90px;
  animation: snowfall 26s linear infinite;
  border-bottom: 6px solid var(--berry);
  border-image: repeating-linear-gradient(135deg, var(--berry) 0 10px, #ffffff 10px 14px, var(--holly) 14px 24px, #ffffff 24px 28px) 6;
}
@keyframes snowfall {
  from { background-position: 0 0, 30px 0; }
  to   { background-position: 0 140px, 30px 180px; }
}
@media (prefers-reduced-motion: reduce) { .bar { animation: none; } }

.mark { border: 2px solid var(--holly); }
.lang-btn { border-color: var(--holly); }
.lang-btn:hover { background: var(--pine-deep); }

/* ---------- Page: faint snowflakes behind the cards ---------- */
.panel, .driver {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke='%231d4d36' stroke-opacity='.07' stroke-width='1.6' stroke-linecap='round'%3E%3Cg transform='translate(40 40)'%3E%3Cpath d='M0-12V12M-10.4-6L10.4 6M-10.4 6L10.4-6M-3-9L0-6L3-9M-3 9L0 6L3 9'/%3E%3C/g%3E%3Cg transform='translate(120 115) scale(.7)'%3E%3Cpath d='M0-12V12M-10.4-6L10.4 6M-10.4 6L10.4-6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  .panel, .driver {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke='white' stroke-opacity='.06' stroke-width='1.6' stroke-linecap='round'%3E%3Cg transform='translate(40 40)'%3E%3Cpath d='M0-12V12M-10.4-6L10.4 6M-10.4 6L10.4-6M-3-9L0-6L3-9M-3 9L0 6L3 9'/%3E%3C/g%3E%3Cg transform='translate(120 115) scale(.7)'%3E%3Cpath d='M0-12V12M-10.4-6L10.4 6M-10.4 6L10.4-6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
}

/* Cards get a thin red top edge, like a gift tag */
.card { border-top: 3px solid var(--berry); }

/* The next stop gets an outline as well as its tint, so it doesn't rely on colour */
.stops li.next { outline: 2px solid var(--berry); outline-offset: -2px; }
