
/* ==========================================================
   1. ШРИФТЫ И ЦВЕТА
   ========================================================== */
@font-face { font-family: 'DIN 2014 Rounded'; src: url("../fonts/DIN-2014-Rounded_Extra-Light.d3453826e5ac.woff2") format('woff2'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'DIN 2014 Rounded'; src: url("../fonts/DIN-2014-Rounded_Light.6b211c93176d.woff2")       format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'DIN 2014 Rounded'; src: url("../fonts/DIN-2014-Rounded_Regular.7fc1e35b25bf.woff2")     format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DIN 2014 Rounded'; src: url("../fonts/DIN-2014-Rounded_Demi.df7b188317a6.woff2")        format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'DIN 2014 Rounded'; src: url("../fonts/DIN-2014-Rounded_Bold.ef9f3f26b065.woff2")        format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'DIN 2014 Rounded'; src: url("../fonts/DIN-2014-Rounded_Extra-Bold.ffd4633b46dd.woff2")  format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;

  /* шрифты: --font-head — заголовки h1/h2, --font-body — всё остальное */
  --font-body: 'DIN 2014 Rounded', system-ui, sans-serif;
  --font-head: 'DIN 2014 Rounded', system-ui, sans-serif;

  /* цвета бренда */
  --brand:       #00A0DF;   /* основной голубой */
  --brand-dark:  #002d74;   /* тёмный: акценты, цифры */
  --brand-mid:   #0082ca;   /* средний: шкалы, стрелки */
  --brand-soft:  #e3eefc;   /* светлая заливка: плашки */
  --brand-line:  #c9dcf3;   /* границы */
  --brand-ink:   #00204d;   /* основной текст */
  --brand-muted: #002d74;   /* приглушённый текст */
  --brand-paper: #fbfdff;   /* фон карточек */
  --brand-text:  #0072b0;   /* голубой для мелкого текста (контраст AA) */

  --shadow: 0 18px 50px rgba(20, 60, 120, .12);
}

/* ==========================================================
   2. ОСНОВА И ШАПКА
   ========================================================== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  max-width: 100%;
  scroll-behavior: smooth;
}
html { overflow-x: clip; }

body {
  color: var(--brand-ink);
  font: 15px var(--font-body);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(79, 149, 240, .22), transparent 34%),
    radial-gradient(ellipse at 92% 22%, rgba(14, 63, 145, .10), transparent 30%),
    linear-gradient(135deg, #eef5fd, #dfeaf8 55%, #eaf2fb);
}

button, select { font: inherit; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--font-head); letter-spacing: 0; }

.page-shell { max-width: 1240px; margin: 0 auto; padding: 0 42px; }

.topbar {
  height: 88px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(0, 160, 223, .16);
}
.brand-mark { display: block; flex: none; width: auto; height: 44px; max-width: 220px; object-fit: contain; }

/* плашка с датами */
.event-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px;
  border: 1px solid var(--brand-line); border-radius: 999px;
  background: rgba(251, 253, 255, .8);
  color: var(--brand-dark); font-size: 14px; font-weight: 700;
}
.live-dot, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(0, 160, 223, .15); }
.status-dot { width: 6px; height: 6px; background: var(--brand-mid); box-shadow: 0 0 0 4px var(--brand-soft); }

/* ==========================================================
   3. ЗАГОЛОВОК, МОДИФИКАТОР НЕДЕЛИ И QR СООБЩЕСТВА
   ========================================================== */
.intro {
  min-height: 345px;
  display: grid; grid-template-columns: 1fr minmax(280px, .95fr); align-items: center; gap: 28px;
  padding: 34px 0 42px;
}
.intro-copy { padding: 12px 0; min-width: 0; }

h1 { margin-bottom: 18px; font-size: clamp(34px, 5.4vh, 52px); font-weight: 700; line-height: 1.05; }
.intro-text { max-width: 480px; margin-bottom: 22px; color: #4f6585; font-size: 16px; line-height: 1.55; }
.intro-meta { display: inline-flex; align-items: center; gap: 9px; color: var(--brand-dark); font-size: 13px; }
.meta-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }

.intro-side { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 480px; justify-self: end; padding: 6px 0; }
.week-strip { display: flex; flex-direction: column; gap: 10px; }

/* компактная карточка модификатора */
.week-mod {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--brand-line); border-radius: 16px;
  background: rgba(251, 253, 255, .9);
  box-shadow: 0 8px 24px rgba(20, 60, 120, .10);
}
.week-mod.pop { animation: pop .45s ease; }
@keyframes pop { from { transform: scale(.96); opacity: .5; } to { transform: scale(1); opacity: 1; } }

.mod-badge {
  flex: 0 0 52px; width: 52px; height: 52px;
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8cc0ff, var(--brand));
  box-shadow: 0 0 0 4px rgba(0, 160, 223, .18);
  color: #fff; font-size: 20px; font-weight: 800; text-shadow: 0 1px 2px rgba(10, 40, 100, .4);
}
.mod-body small { display: block; margin-bottom: 3px; color: var(--brand-text); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mod-body strong { display: block; font-size: 16px; line-height: 1.3; }

/* открытка с QR: горизонтально, код слева, лозунг справа */
.community-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "qr copy";
  align-items: center; gap: 4px 16px;
  padding: 16px 18px 14px;
  border: 1px solid var(--brand-line); border-radius: 20px;
  background: var(--brand-paper);
  box-shadow: 0 8px 24px rgba(20, 60, 120, .10);
  text-align: left;
}
.community-qr { grid-area: qr; display: block; border-radius: 12px; line-height: 0; }
.community-qr img { display: block; width: 128px; height: 128px; border-radius: 8px; }
.community-copy { grid-area: copy; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.community-slogan {
  margin: 0;
  color: var(--brand-ink);
  font-family: var(--font-head);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
}
.community-join {
  display: none; align-items: center; justify-content: center;
  grid-area: btn; margin-top: 2px; padding: 11px 18px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 800; text-decoration: none;
}
.community-join:hover { background: var(--brand-mid); }

/* лента недель */
.week-dots { display: flex; margin: 0; padding: 0 2px; list-style: none; }
.week-dots li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; color: #8aa0bb; font-size: 13px; font-weight: 800; }
.week-dots li::before { content: ''; position: relative; z-index: 1; width: 14px; height: 14px; border: 2px solid #b9d0ec; border-radius: 50%; background: #e6effa; }
.week-dots li::after { content: ''; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: #b9d0ec; }
.week-dots li:first-child::after { display: none; }
.week-dots li.past::before { border-color: var(--brand); background: var(--brand); }
.week-dots li.past::after, .week-dots li.active::after { background: var(--brand); }
.week-dots li.active { color: var(--brand-dark); }
.week-dots li.active::before { border-color: var(--brand); background: #cfe3ff; box-shadow: 0 0 0 4px rgba(0, 160, 223, .22); }

/* ==========================================================
   4. ПАНЕЛЬ С ЁЛКОЙ И СЦЕНА
   ========================================================== */
.workspace { padding: 26px 0 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.eyebrow { margin: 0 0 7px; color: var(--brand-text); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h2 { margin-bottom: 0; font-size: 28px; }

.forest-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); gap: 18px; align-items: stretch; }
.tree-panel, .control-panel { min-width: 0; border: 1px solid var(--brand-line); border-radius: 20px; background: var(--brand-paper); box-shadow: var(--shadow); }
.tree-panel { padding: 18px; }

.panel-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.forest-status { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-dark); font-size: 18px; font-weight: 800; }
.forest-status strong { font-size: 18px; }

/* сцена */
.tree-scene {
  --scene-sky: #cfe1f2; --scene-glow: #f4e8c9; --scene-hill: #bcd3e8; --scene-hill-front: #9dbfdc;
  --scene-tree: #3b6557; --scene-tree-dark: #285246; --scene-ground: #b5d0e6; --scene-accent: #d9e9e7;
  --cloud: rgba(240, 248, 250, .85);

  position: relative; height: 360px; overflow: hidden; isolation: isolate;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--scene-sky), color-mix(in srgb, var(--scene-sky), white 25%));
  transition: background .5s ease;
}
.tree-scene::before { content: ''; position: absolute; z-index: -1; top: -90px; left: -7%; width: 114%; height: 270px; border-radius: 50%; background: rgba(255, 255, 255, .18); }

/* солнце, луна, звёзды */
.scene-sun { position: absolute; top: 35px; right: 16%; width: 58px; height: 58px; border-radius: 50%; background: var(--scene-glow); box-shadow: 0 0 0 13px color-mix(in srgb, var(--scene-glow), transparent 76%), 0 0 50px color-mix(in srgb, var(--scene-glow), transparent 45%); transition: all .5s; }
.scene-moon { position: absolute; top: 36px; right: 17%; display: none; color: #fff6d9; font-size: 45px; }
.scene-star { position: absolute; color: #fff6d9; opacity: .85; }
.star-a { top: 28px; left: 20%; }
.star-b { top: 72px; right: 36%; font-size: 19px; }
.star-c { top: 116px; left: 38%; font-size: 11px; }

/* дальние ёлки и земля */
.distant-tree { position: absolute; z-index: 1; bottom: 73px; width: 70px; height: 125px; opacity: .42; transform-origin: bottom; }
.distant-one { left: 9%; transform: scale(.72); }
.distant-two { right: 7%; transform: scale(.9); opacity: .33; }
.distant-tree i { position: absolute; left: 50%; display: block; width: 0; height: 0; transform: translateX(-50%); border: solid transparent; border-width: 0 30px 58px; border-bottom-color: var(--scene-hill-front); }
.distant-tree i:nth-child(1) { top: 0; }
.distant-tree i:nth-child(2) { top: 30px; border-width: 0 39px 65px; border-bottom-color: var(--scene-hill-front); }
.distant-tree i:nth-child(3) { top: 62px; border-width: 0 48px 63px; border-bottom-color: var(--scene-hill-front); }

.scene-ground { position: absolute; z-index: 0; right: -10%; bottom: -105px; left: -10%; height: 205px; border-radius: 50% 50% 0 0; background: var(--scene-ground); transition: background .5s; }
.scene-ground::before { content: ''; position: absolute; top: -25px; left: -5%; width: 75%; height: 120px; border-radius: 50%; background: var(--scene-hill); }

/* ёлка и тень */
.growing-tree { position: absolute; z-index: 3; bottom: 50px; left: 50%; width: 180px; height: 235px; transform: translateX(-50%); transform-origin: bottom center; scale: 1; }
.tree-illustration { position: absolute; inset: 0; display: grid; place-items: end center; }
.tree-illustration svg { display: block; width: 220px; height: 280px; max-width: 125%; overflow: visible; }
.tree-shadow { position: absolute; z-index: 2; bottom: 47px; left: 50%; width: 175px; height: 18px; border-radius: 50%; background: rgba(57, 72, 44, .15); transform: translateX(-50%); filter: blur(4px); }

/* подпись стадии в углу сцены */
.scene-caption {
  position: absolute; z-index: 5; bottom: 14px;
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 11px;
  background: rgba(251, 253, 255, .86); backdrop-filter: blur(7px);
}
.scene-caption { left: 14px; }
.scene-caption strong, .scene-caption small { display: block; }
.scene-caption strong { font-size: 15px; }
.scene-caption small { margin-top: 2px; color: var(--brand-muted); font-size: 13px; }
.caption-leaf { color: var(--brand); font-size: 17px; }

/* ==========================================================
   5. ФАЗЫ ОФОРМЛЕНИЯ СЦЕНЫ
   ========================================================== */
:is(.tree-scene, .glade)[data-season="frost"]        { --scene-sky: #cfe1f2; --scene-glow: #f4e8c9; --scene-hill: #bcd3e8; --scene-hill-front: #9dbfdc; --scene-tree: #3b6557; --scene-tree-dark: #285246; --scene-ground: #b5d0e6; --scene-accent: #d9e9e7; --cloud: rgba(240, 248, 250, .85); }
:is(.tree-scene, .glade)[data-season="early-winter"] { --scene-sky: #c9dff1; --scene-glow: #f7e8c3; --scene-hill: #b6d0e6; --scene-hill-front: #94b9d6; --scene-tree: #356254; --scene-tree-dark: #244c44; --scene-ground: #d2e3f0; --scene-accent: #edf5f3; --cloud: rgba(238, 245, 248, .9); }
:is(.tree-scene, .glade)[data-season="snow"]         { --scene-sky: #bcd7ee; --scene-glow: #fff0c9; --scene-hill: #c4d9ea; --scene-hill-front: #8cb3d3; --scene-tree: #2e6257; --scene-tree-dark: #204b45; --scene-ground: #eef5fa; --scene-accent: #fff;    --cloud: rgba(255, 255, 255, .92); }
:is(.tree-scene, .glade)[data-season="deep-winter"]  { --scene-sky: #b4cde0; --scene-glow: #eef3f8; --scene-hill: #dbe8f2; --scene-hill-front: #86adc4; --scene-tree: #2b5f56; --scene-tree-dark: #1d4741; --scene-ground: #f8fbfd; --scene-accent: #d9e9f7; --cloud: rgba(235, 242, 248, .95); }
:is(.tree-scene, .glade)[data-season="holiday"]      { --scene-sky: #1d3a63; --scene-glow: #f7d68d; --scene-hill: #6f98c0; --scene-hill-front: #4f7eab; --scene-tree: #23604c; --scene-tree-dark: #174838; --scene-ground: #e3eef8; --scene-accent: #fff0c4; --cloud: rgba(255, 255, 255, .14); }

/* снежная подсветка земли */
.tree-scene[data-season="early-winter"] .scene-ground::after,
.tree-scene[data-season="snow"] .scene-ground::after,
.tree-scene[data-season="deep-winter"] .scene-ground::after,
.tree-scene[data-season="holiday"] .scene-ground::after { content: ''; position: absolute; top: 6px; left: 24%; width: 50%; height: 25px; border-radius: 50%; background: rgba(255, 255, 255, .5); }

/* чем глубже зима, тем белее земля */
.tree-scene[data-season="snow"] .scene-ground::after { left: 17%; width: 66%; height: 32px; background: rgba(255, 255, 255, .65); }
.tree-scene[data-season="deep-winter"] .scene-ground::after,
.tree-scene[data-season="holiday"] .scene-ground::after { left: 5%; width: 90%; height: 44px; background: rgba(208, 232, 244, 0.85); }

.tree-scene[data-season="deep-winter"] .scene-sun { opacity: .55; }

/* праздничный финал: ночь, луна, звёзды */
.tree-scene[data-season="holiday"] .scene-sun { display: none; }
.tree-scene[data-season="holiday"] .scene-moon { display: block; }
.tree-scene[data-season="holiday"] .scene-star { opacity: 1; color: #fff0c4; }

/* ==========================================================
   6. ЭФФЕКТЫ ФОНА
   ========================================================== */
.fx-back, .fx-mid, .fx-front, .scene-details { position: absolute; inset: 0; pointer-events: none; }
.fx-back { z-index: 0; }
.fx-mid, .scene-details { z-index: 2; }
.fx-front { z-index: 4; }

/* облака */
.cloud { position: absolute; width: 90px; height: 24px; border-radius: 24px; background: var(--cloud); transform: scale(var(--s, 1)); animation: cloud 70s linear infinite; transition: background .5s; }
.cloud::before, .cloud::after { content: ''; position: absolute; bottom: 8px; border-radius: 50%; background: inherit; }
.cloud::before { left: 14px; width: 36px; height: 36px; }
.cloud::after { left: 44px; width: 28px; height: 28px; }
@keyframes cloud { from { translate: -40px 0; } to { translate: 60px 0; } }

/* силуэты леса */
.sil { position: absolute; transition: background .5s; }
.sil-back, .sil-front { clip-path: polygon(50% 0, 70% 35%, 60% 35%, 82% 70%, 66% 70%, 100% 100%, 0 100%, 34% 70%, 18% 70%, 40% 35%, 30% 35%); }
.sil-back { background: color-mix(in srgb, var(--scene-hill-front), var(--scene-sky) 50%); }
.sil-front { background: color-mix(in srgb, var(--scene-hill-front), #1d3a2e 30%); }

/* округлые деревья */
.sil-round { background: transparent; opacity: .85; }
.sil-round::before {
  content: ''; position: absolute; left: 50%; top: 0; width: 34%; height: 34%;
  transform: translateX(-50%); border-radius: 50%;
  background: color-mix(in srgb, var(--scene-accent), var(--scene-hill-front) 50%);
  box-shadow:
    0 12px 0 4px color-mix(in srgb, var(--scene-accent), var(--scene-hill-front) 50%),
    0 12px 0 7px color-mix(in srgb, var(--scene-accent), var(--scene-hill-front) 50%),
    0 39px 0 10px color-mix(in srgb, var(--scene-accent), var(--scene-hill-front) 50%);
}
.sil-round::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 6px; height: 24px; transform: translateX(-50%); border-radius: 2px; background: #6b5238; opacity: .6; }

/* кусты */
.bush { --snow: linear-gradient(transparent, transparent); position: absolute; width: 74px; height: 40px; border-radius: 55% 55% 30% 30%; }
.bush, .bush::before, .bush::after {
  background-color: color-mix(in srgb, var(--b), #dcecee var(--frost, 0%));
  background-image: var(--snow);
  transition: background-color .5s;
}
.bush::before, .bush::after { content: ''; position: absolute; bottom: 0; border-radius: 50%; }
.bush::before { left: -14px; width: 40px; height: 32px; }
.bush::after { right: -14px; width: 42px; height: 28px; }
.bush-1 { --b: #3f7a4a; --cover: 45%; left: 15%;  bottom: 52px; transform: scale(1.2); }
.bush-2 { --b: #2f6a47; --cover: 55%; right: 11%; bottom: 60px; transform: scale(1.4); }
.bush-3 { --b: #5a9a5c; --cover: 40%; right: 8%; bottom: 28px; transform: scale(.8); }
.bush-4 { --b: #4f8f55; --cover: 60%; left: 26%;  bottom: 34px; transform: scale(.95); }
.bush-5 { --b: #6aa862; --cover: 70%; left: 28%;  bottom: 88px;transform: scale(.5); }
.bush-6 { --b: #3a7352; --cover: 45%; left: 25%;  bottom: 8px; transform: scale(.7); }
.bush-7 { --b: #4c8a58; --cover: 45%; right: 20%; bottom: 46px; transform: scale(.65); }

/* лужи */
.puddle { position: absolute; bottom: 49px; width: 44px; height: 9px; border: 1px solid rgba(113, 147, 155, .32); border-radius: 50%; background: rgba(142, 183, 190, .34); transform: rotate(-8deg); }
.puddle-one { left: 17%; }
.puddle-two { right: 20%; bottom: 58px; width: 27px; height: 6px; transform: rotate(7deg); }
.tree-scene[data-season="frost"] .puddle { background: rgba(219, 238, 241, .68); border-color: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.tree-scene[data-season="snow"] .puddle,
.tree-scene[data-season="deep-winter"] .puddle,
.tree-scene[data-season="holiday"] .puddle { display: none; }

/* лёд, сугробы, снегопад */
.ice, .drift, .flake, .fw { display: none; position: absolute; }

.ice { height: 10px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 50%; background: linear-gradient(120deg, #e8f6fb, #b7dbe8 60%, #f4fbfd); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .8); }
.ice-1 { left: 16%; bottom: 48px; width: 50px; transform: rotate(-8deg); }
.ice-2 { right: 19%; bottom: 57px; width: 32px; transform: rotate(7deg); }
.ice-3 { left: 58%; bottom: 38px; width: 40px; }

.drift { background: var(--drift, #f7fbfc); border-radius: 50% 50% 0 0 / 100% 100% 0 0; box-shadow: inset 0 7px 9px rgba(150, 190, 212, .35); transform-origin: bottom; }
.drift-1 { --drift: #f7fbfc; left: -3%;  bottom: 36px; width: 130px; height: 34px; }
.drift-2 { --drift: #eef6fa; right: 21%; bottom: 66px; width: 150px; height: 32px; }
.drift-3 { --drift: #ffffff; left: 44%;  bottom: 68px; width: 100px; height: 20px; }
.drift-4 { --drift: #e6f1f7; left: 20%;  bottom: 30px; width: 110px; height: 26px; }
.drift-5 { --drift: #f3f9fc; right: 24%; bottom: 30px; width: 120px; height: 24px; }
.drift-6 { --drift: #fafdfe; left: -6%;  bottom: 52px; width: 90px;  height: 26px; }
.drift-7 { --drift: #e9f3f8; right: -5%; bottom: 56px; width: 100px; height: 30px; }

.flake { top: -8px; border-radius: 50%; background: #fff; opacity: .9; animation: fall linear infinite; }
@keyframes fall { to { transform: translate(18px, 360px); } }

.fw { width: 4px; height: 4px; border-radius: 50%; opacity: 0; animation: fw 2.8s ease-out infinite; }
@keyframes fw { 0% { transform: scale(.1); opacity: 0; } 12%, 70% { opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.tree-scene[data-season="frost"] .ice,
.tree-scene[data-season="early-winter"] .ice,
.tree-scene[data-season="deep-winter"] .ice { display: block; }

/* чем глубже зима, тем больше сугробов */
.tree-scene[data-season="early-winter"] .drift-1,
.tree-scene[data-season="snow"] :is(.drift-1, .drift-2, .drift-4, .drift-6),
.tree-scene[data-season="deep-winter"] .drift,
.tree-scene[data-season="holiday"] .drift { display: block; }

/* в глубокой зиме сугробы выше */
.tree-scene[data-season="deep-winter"] .drift,
.tree-scene[data-season="holiday"] .drift { transform: scaleY(1.3); }

/* снег на кустах: шапка сверху со скруглённым нижним краем; у каждой фазы своя глубина */
.tree-scene[data-season="frost"] .bush { --frost: 12%; }
.tree-scene[data-season="early-winter"] .bush,
.tree-scene[data-season="snow"] .bush,
.tree-scene[data-season="deep-winter"] .bush,
.tree-scene[data-season="holiday"] .bush { --snow: radial-gradient(ellipse 95% calc(var(--cover) * var(--depth)) at 50% 0, #f7fbfc 0 96%, transparent 100%); }
.tree-scene[data-season="early-winter"] .bush { --depth: .6; }
.tree-scene[data-season="snow"] .bush { --depth: 1; }
.tree-scene[data-season="deep-winter"] .bush,
.tree-scene[data-season="holiday"] .bush { --depth: 1.5; }

.tree-scene[data-season="early-winter"] .flake:nth-child(-n+10),
.tree-scene[data-season="snow"] .flake:nth-child(-n+30),
.tree-scene[data-season="deep-winter"] .flake,
.tree-scene[data-season="holiday"] .flake:nth-child(-n+30) { display: block; }

.tree-scene[data-season="holiday"] .fw { display: block; }

/* ==========================================================
   7. РИСУНКИ ЁЛОК
   ========================================================== */
.nd  { fill: none; stroke: color-mix(in srgb, var(--scene-tree), #e6f0b0 8%); stroke-width: 2.6; stroke-linecap: round; }
.nd2 { stroke: color-mix(in srgb, var(--scene-tree), #fff 38%); }
.fir-hi { fill: none; stroke: color-mix(in srgb, var(--scene-tree), #fff 24%); stroke-width: 2.4; stroke-linecap: round; opacity: .75; }
.lamp { animation: lamp 1.8s ease-in-out infinite; }
@keyframes lamp { 50% { opacity: .35; } }

/* ==========================================================
   8. БАЛЛЫ
   ========================================================== */
.tree-summary { width: 100%; padding: 12px 0 0; }
.points-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px;
  padding: 12px 18px;
  border: 1px solid var(--brand-line); border-radius: 12px; background: var(--brand-soft);
}
.summary-label { display: block; margin-bottom: 4px; color: var(--brand-muted); font-size: 13px; }
.points-main strong { display: block; color: var(--brand-dark); font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.points-next { min-width: 0; }
.points-next-text { display: block; margin-bottom: 6px; color: #4f6585; font-size: 15px; }
.points-next-text strong { color: var(--brand-dark); }
.stage-track { height: 12px; overflow: hidden; border-radius: 99px; background: #cfe0f6; }
.stage-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width .35s ease; }
.summary-tag { padding: 7px 12px; border-radius: 8px; background: #d3e3f8; color: var(--brand-dark); font-size: 16px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ==========================================================
   9. ПАНЕЛЬ УПРАВЛЕНИЯ
   ========================================================== */
.control-panel { padding: 23px 22px; }
.control-block label { display: block; margin-bottom: 10px; color: var(--brand-dark); font-size: 14px; font-weight: 800; }
.control-divider { height: 1px; margin: 21px 0; background: #e0ebf8; }
.field-help { margin: 8px 0 0; color: var(--brand-muted); font-size: 13px; line-height: 1.65; }

.select-wrap { position: relative; }
.select-wrap select {
  width: 100%; min-height: 44px; appearance: none; padding: 0 38px 0 13px;
  border: 1px solid var(--brand-line); border-radius: 10px; outline: none;
  background: var(--brand-paper); color: var(--brand-dark);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.select-wrap select:focus { border-color: var(--brand-mid); box-shadow: 0 0 3px 3px rgba(0, 160, 223, .15); }
.select-chevron { position: absolute; top: 50%; right: 13px; color: var(--brand-mid); font-size: 19px; pointer-events: none; transform: translateY(-60%); }

/* тестовый блок */
.debug-only { display: none; }
body.debug .debug-only { display: contents; }
.season-preview { display: flex; align-items: flex-start; gap: 11px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--brand-soft); }
.preview-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #d3e3f8; font-size: 17px; }
.season-preview strong, .season-preview small { display: block; }
.season-preview strong { margin: 2px 0 4px; font-size: 14px; }
.season-preview small { color: var(--brand-muted); font-size: 13px; line-height: 1.6; }

/* ==========================================================
   10. ДОСТУПНОСТЬ И ОБЩИЕ ЭЛЕМЕНТЫ
   ========================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; border-radius: 10px; background: var(--brand-dark); color: #fff; font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
:where(a, button, select, [tabindex]):focus-visible { outline: 3px solid color-mix(in srgb, var(--brand), white 10%); outline-offset: 2px; }
#tree-section:focus { outline: none; }
section[id] { scroll-margin-top: 16px; }

.topbar { gap: 20px; }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a { padding: 8px 14px; border-radius: 999px; color: var(--brand-dark); font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s; }
.topnav a:hover { background: rgba(0, 160, 223, .1); }

.season-chip { padding: 6px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.section-lead { max-width: 620px; margin: 8px 0 0; color: #4f6585; font-size: 15px; line-height: 1.5; }

/* ==========================================================
   11. ПАНЕЛЬ: ПОКАЗАТЕЛИ ОТДЕЛЕНИЯ
   ========================================================== */
.control-panel { display: flex; flex-direction: column; gap: 18px; }
.dep-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.dep-stat { padding: 12px 14px; border: 1px solid #e0ebf8; border-radius: 12px; background: #fff; }
.dep-stat-wide { grid-column: 1 / -1; }
.dep-stat dt { margin-bottom: 6px; color: #4f6585; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.dep-stat dd { margin: 0; color: var(--brand-dark); font-size: 14px; font-variant-numeric: tabular-nums; }
.dep-stat dd strong { font-size: 24px; line-height: 1; }
.update-note { display: flex; align-items: center; gap: 9px; margin: auto 0 0; color: #4f6585; font-size: 13px; }
.update-note.is-stale .status-dot { background: #e0a43a; box-shadow: 0 0 0 4px #fbefd6; }
.debug-only .control-block + .control-block { margin-top: 14px; }

/* ==========================================================
   12. ЛЕС ВСЕХ ОТДЕЛЕНИЙ
   ========================================================== */
.forest, .leaderboard { padding: 56px 0 0; }
.forest .section-heading, .leaderboard .section-heading { align-items: end; }


/* Поляна: одна сцена с перспективой, ёлки стоят рядами на разной глубине.
   Размеры — в долях ширины сцены (cqw), поэтому сцена масштабируется целиком.
   Слоты не создают свой контекст наложения: ёлки сортируются по --z (ближе — выше),
   а подписи лежат слоем над всеми ёлками, чтобы их не закрывали соседи спереди. */
.glade { --tree-h: 16.5cqw; position: relative; }
.glade-viewport {
  position: relative; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--brand-line); border-radius: 22px;
  background: var(--scene-sky); box-shadow: var(--shadow); scrollbar-width: thin; overscroll-behavior-x: contain;
}
.glade-viewport:focus { outline: none; }
.glade-stage {
  position: relative; width: 100%; aspect-ratio: 1200 / 624; container-type: inline-size; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--scene-sky), #0b3170 8%) 0%, var(--scene-sky) 18%, color-mix(in srgb, var(--scene-sky), white 30%) 30%);
  transition: background .5s;
}
.glade-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.glade-glow { opacity: .9; }
.gg-0 { stop-color: var(--scene-glow); stop-opacity: .75; }
.gg-1 { stop-color: var(--scene-glow); stop-opacity: 0; }
.glade-stars circle { fill: #fff; opacity: 0; }
.glade[data-season="holiday"] .glade-stars circle { opacity: .85; animation: glade-twinkle 3.2s ease-in-out infinite; }
.glade-hill-far { fill: color-mix(in srgb, var(--scene-hill), var(--scene-sky) 35%); }
.glade-hill-near { fill: color-mix(in srgb, var(--scene-hill-front), var(--scene-ground) 45%); }
.tl-back { fill: color-mix(in srgb, var(--scene-tree-dark), var(--scene-sky) 58%); }
.tl-front { fill: color-mix(in srgb, var(--scene-tree-dark), var(--scene-sky) 40%); }
.gf-0 { stop-color: color-mix(in srgb, var(--scene-ground), var(--scene-hill-front) 30%); }
.gf-1 { stop-color: color-mix(in srgb, var(--scene-ground), white 30%); }
.gf-2 { stop-color: color-mix(in srgb, var(--scene-ground), white 75%); }
.glade-drift { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 3; stroke-linecap: round; }
.glade-drift:nth-of-type(odd) { stroke: color-mix(in srgb, var(--scene-hill-front), transparent 70%); stroke-width: 2; }
.glade-sparkles circle { fill: #fff; opacity: .9; animation: glade-twinkle 2.6s ease-in-out infinite; }
@keyframes glade-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.card-bar, .board-bar { flex: 1; height: 6px; overflow: hidden; border-radius: 99px; background: #dbe7f6; }
.card-bar i, .board-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-mid), var(--brand)); }
.stage-pill.stage-5 { background: linear-gradient(90deg, #2e8a63, #49b27d); }

.glade-trees { position: absolute; z-index: 1; inset: 0; margin: 0; padding: 0; list-style: none; }
.glade-slot {
  --s: 1; --g: 1; --w: calc(var(--tree-h) * var(--s) * 220 / 280); --h: calc(var(--tree-h) * var(--s));
  --hit: .9;
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 0; height: 0;
}
.glade-slot.stage-0 { --hit: .3; }
.glade-slot.stage-1 { --hit: .38; }
.glade-slot.stage-2 { --hit: .48; }
.glade-slot.stage-3 { --hit: .6; }
.glade-slot.stage-4 { --hit: .78; }
.glade-tree {
  position: absolute; left: calc(var(--w) / -2); top: calc(var(--h) * -.914); width: var(--w); height: var(--h);
  padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; pointer-events: none;
}
.glade-tree:focus-visible { outline: none; }
/* кликабельна сама ёлка и подпись, а не пустое небо над ростком */
.glade-tree::before {
  content: ''; position: absolute; z-index: calc(var(--z) * 2 + 1); left: 18%; right: 18%; bottom: 6%; height: calc(var(--hit) * 88%);
  border-radius: 40% 40% 12px 12px; pointer-events: auto;
}
.glade-art {
  position: absolute; z-index: calc(var(--z) * 2 + 1); inset: 0; display: block;
  transform: scale(var(--g)); transform-origin: 50% 91.4%;
  transition: transform 1.6s cubic-bezier(.22, .9, .25, 1.08) var(--delay, 0ms);
}
.glade.is-ready .glade-art { transition-delay: 0ms; }
.glade-art svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 91.4%; transition: filter .25s; }
.glade-art.is-growing svg { animation: glade-grow 1.1s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes glade-grow {
  0% { transform: scale(.82, .7); filter: brightness(1.25); }
  60% { transform: scale(1.04, 1.08); }
  100% { transform: none; filter: none; }
}
.glade-shadow {
  position: absolute; left: 50%; top: 91.4%; width: calc(var(--w) * .78); height: calc(var(--w) * .16);
  border-radius: 50%; transform: translate(-50%, -50%) scale(var(--g));
  background: radial-gradient(closest-side, rgba(40, 80, 130, .3), rgba(40, 80, 130, 0));
}
.glade-slot.stage-0 .glade-shadow, .glade-slot.stage-1 .glade-shadow { width: calc(var(--w) * .45); }
.glade-ring {
  position: absolute; left: 50%; top: 91.4%; width: calc(var(--w) * .82); height: calc(var(--w) * .2);
  z-index: calc(var(--z) * 2); border: 2px solid color-mix(in srgb, var(--brand), white 15%); border-radius: 50%; opacity: 0;
  transform: translate(-50%, -50%); box-shadow: 0 0 14px rgba(0, 160, 223, .55), inset 0 0 10px rgba(0, 160, 223, .35);
}
.is-mine .glade-ring { opacity: 1; animation: glade-ring 2.4s ease-in-out infinite; }
@keyframes glade-ring { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .95; } 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .55; } }

.glade-name {
  position: absolute; z-index: calc(var(--z) + 2000); left: 50%; top: calc(91.4% + .55cqw); transform: translateX(-50%);
  max-width: max(64px, calc(var(--slot) * .86cqw)); padding: .22em .62em; border-radius: 999px; pointer-events: auto;
  background: rgba(255, 255, 255, .86); box-shadow: 0 2px 8px rgba(20, 60, 120, .14);
  color: var(--brand-ink); font-size: clamp(10px, calc(.55cqw + .55cqw * var(--s)), 13px); font-weight: 700; line-height: 1.25;
  white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s;
}
.glade-name-text { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.glade-tree:hover .glade-name, .glade-tree:focus-visible .glade-name { background: #fff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand), white 30%), 0 4px 12px rgba(20, 60, 120, .2); }
.glade-tree:focus-visible .glade-name { box-shadow: 0 0 0 3px var(--brand), 0 4px 12px rgba(20, 60, 120, .2); }
.glade-tree:hover .glade-art svg, .glade-tree:focus-visible .glade-art svg { filter: drop-shadow(0 0 .5cqw rgba(255, 236, 170, .95)); }
.is-mine .glade-name { z-index: 3500; background: var(--brand-dark); color: #fff; }
.glade-tree:hover .glade-name, .glade-tree:focus-visible .glade-name { z-index: 3600; max-width: none; }

.glade-tip {
  position: absolute; z-index: 5000; width: 236px; display: flex; flex-direction: column; gap: 5px; padding: 12px 14px;
  border: 1px solid var(--brand-line); border-radius: 14px; background: #fff;
  box-shadow: 0 14px 34px rgba(10, 40, 90, .22); color: var(--brand-ink); font-size: 13px; line-height: 1.35;
  animation: glade-tip-in .16s ease-out;
}
.glade-tip[hidden] { display: none; }
.glade-tip::after {
  content: ''; position: absolute; left: var(--arrow, 50%); bottom: -7px; width: 12px; height: 12px; margin-left: -6px;
  border: solid var(--brand-line); border-width: 0 1px 1px 0; background: inherit; transform: rotate(45deg);
}
.glade-tip.is-below::after { top: -7px; bottom: auto; border-width: 1px 0 0 1px; }
@keyframes glade-tip-in { from { opacity: 0; translate: 0 4px; } }
.tip-mine { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.tip-name { font-size: 15px; line-height: 1.25; }
.tip-stage { color: #4f6585; font-size: 12px; }
.tip-progress { display: flex; align-items: center; gap: 8px; }
.tip-progress b { min-width: 4.8em; color: var(--brand-dark); text-align: right; font-variant-numeric: tabular-nums; }
.glade-tip.stage-5 .card-bar i { background: linear-gradient(90deg, #2e8a63, #49b27d); }
.tip-next { color: #4f6585; font-size: 12px; font-variant-numeric: tabular-nums; }
.tip-action { color: var(--brand-text); font-size: 12px; font-weight: 700; }
.tip-open { margin-top: 4px; padding: 9px 12px; border: 0; border-radius: 10px; background: var(--brand-dark); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; }

.glade-notice {
  position: absolute; z-index: 4000; top: 4.5%; left: 50%; transform: translateX(-50%); margin: 0; padding: 8px 16px;
  border-radius: 999px; background: rgba(255, 255, 255, .88); box-shadow: 0 6px 18px rgba(20, 60, 120, .12);
  color: var(--brand-dark); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.glade-notice[hidden], .glade-empty[hidden] { display: none; }
.glade-empty { margin: 0; padding: 28px; border: 1px dashed var(--brand-line); border-radius: 18px; background: var(--brand-paper); color: #4f6585; text-align: center; }
.glade-empty:not([hidden]) ~ .glade-hint, .glade:has(.glade-empty:not([hidden])) .glade-viewport { display: none; }
.glade-hint { display: none; margin: 8px 0 0; color: #4f6585; font-size: 12px; font-weight: 700; text-align: center; }
.glade.is-scrollable .glade-hint { display: block; }
.glade-hint::before { content: '← '; }
.glade-hint::after { content: ' →'; }

.glade-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.glade-legend li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 6px 5px 5px; border: 1px solid var(--brand-line); border-radius: 999px; background: var(--brand-paper); color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.glade-legend li.is-empty { opacity: .55; }
.legend-step { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); font-size: 11px; font-weight: 800; }
.glade-legend li.stage-5 .legend-step { background: linear-gradient(135deg, #2e8a63, #49b27d); color: #fff; }
.glade-legend b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #eef4fb; text-align: center; font-variant-numeric: tabular-nums; }

/* ==========================================================
   13. РЕЙТИНГ
   ========================================================== */
.board-card { overflow: hidden; border: 1px solid var(--brand-line); border-radius: 20px; background: var(--brand-paper); box-shadow: var(--shadow); }
.board { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board th, .board td { padding: 12px 16px; border-bottom: 1px solid #e6eef9; text-align: left; vertical-align: middle; }
.board thead th { padding-top: 14px; padding-bottom: 12px; background: #f3f8fe; color: #4f6585; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.board tbody tr:last-child > * { border-bottom: 0; }
.board tbody tr { transition: background .2s; }
.board tbody tr:hover { background: #f5f9ff; }
.board tbody tr.is-selected { background: #e8f3fd; }
.board tbody tr.is-selected .board-dep { color: var(--brand-text); }
.col-place { width: 64px; }
.col-points { text-align: right !important; white-space: nowrap; color: var(--brand-dark); font-weight: 700; }
.col-progress { width: 26%; }
.col-progress { display: table-cell; }
.col-progress .board-bar { display: inline-block; width: calc(100% - 80px); vertical-align: middle; }
.col-progress b { display: inline-block; width: 72px; text-align: right; color: var(--brand-dark); font-size: 14px; }
.place { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e6effa; color: var(--brand-dark); font-size: 14px; font-weight: 800; }
.medal-1 .place { background: linear-gradient(135deg, #ffe39a, #f2b93b); color: #5a3d00; }
.medal-2 .place { background: linear-gradient(135deg, #eef2f7, #c3ccd8); color: #333f4f; }
.medal-3 .place { background: linear-gradient(135deg, #f6d2b0, #d79a62); color: #4f2a08; }
.board-dep { padding: 0; border: 0; background: none; color: var(--brand-ink); font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.board-dep:hover { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.stage-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 700; white-space: nowrap; }
.stage-pill.stage-5 { color: #fff; }
.board-more { display: block; width: 100%; padding: 14px; border: 0; border-top: 1px solid #e6eef9; background: #f8fbff; color: var(--brand-text); font-size: 14px; font-weight: 800; cursor: pointer; }
.board-more:hover { background: #eef5fd; }
.board-gap td { padding: 2px 16px !important; color: #8aa0bb; font-weight: 800; letter-spacing: .3em; text-align: center !important; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 56px; padding: 22px 0 30px; border-top: 1px solid rgba(0, 160, 223, .16); color: #4f6585; font-size: 13px; }

/* ==========================================================
   14. РАСКЛАДКА И АДАПТИВ
   ========================================================== */
@media (min-width: 851px) {
  .topbar { height: 66px; }
  .intro { min-height: 0; padding: 20px 0 8px; }
  h1 { margin-bottom: 10px; }
  .intro-text { margin-bottom: 12px; }
  .workspace { padding-top: 8px; }
  .workspace .section-heading { margin-bottom: 14px; }
  .tree-panel { padding: 16px; }
  .panel-topline { margin-bottom: 12px; }
  .tree-scene { height: clamp(300px, calc(100vh - 560px), 520px); }
}
@media (min-width: 851px) and (min-height: 900px) { .growing-tree { scale: 1.12; } }

@media (max-width: 1000px) { .topnav { display: none; } }

/* Планшет и ниже */
@media (max-width: 850px) {
  .page-shell { padding: 0 22px; }
  .intro { grid-template-columns: 1fr; gap: 15px; }
  .intro-side { justify-self: stretch; max-width: none; }
  .community-card {
    grid-template-areas: "qr copy" "btn btn";
    gap: 8px 16px;
    padding: 22px 18px 14px;
  }
  .community-qr img { width: 104px; height: 104px; }
  .community-join { display: inline-flex; width: 100%; }
  .forest-grid { grid-template-columns: 1fr; }
  .control-panel { order: -1; }
  .control-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .update-note { grid-column: 1 / -1; margin: 0; }
  .debug-only .control-divider { display: none; }
  body.debug .debug-only { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 16px; }
  .debug-only .control-block + .control-block { margin-top: 0; }
  .season-preview { grid-column: 1 / -1; margin-top: 0; }
  .col-stage { display: none; }
}

/* Телефон */
@media (max-width: 600px) {
  .page-shell { padding: 0 15px; }
  .topbar { height: 66px; }
  .brand-mark { height: 32px; max-width: 150px; }
  .event-chip { padding: 8px 10px; font-size: 12px; }
  .intro { padding: 24px 0 22px; }
  h1 { font-size: 34px; }
  .intro-text { font-size: 15px; }
  .intro-copy { padding-bottom: 0; }
  .week-mod { padding: 10px 14px 10px 10px; gap: 12px; }
  .mod-badge { flex-basis: 48px; width: 48px; height: 48px; font-size: 18px; }
  .mod-body strong { font-size: 15px; }
  .community-card { padding: 22px 14px 14px; gap: 8px 12px; }
  .community-qr img { width: 96px; height: 96px; }
  .community-slogan { font-size: 20px; }
  h2 { font-size: 24px; }
  .section-heading { align-items: start !important; flex-direction: column; gap: 12px; }
  .panel-topline { flex-wrap: wrap; }
  .forest-status { font-size: 16px; }
  .season-chip { font-size: 12px; }
  .tree-panel { padding: 11px; }
  .tree-scene { height: 315px; }
  .tree-illustration svg { width: 205px; height: 265px; }
  .puddle-one { left: 12%; }
  .scene-caption { left: 8px; bottom: 8px; padding: 8px; }
  .scene-caption small { max-width: 150px; }
  .points-row { grid-template-columns: auto 1fr; padding: 12px 14px; }
  .points-main strong { font-size: 24px; }
  .summary-tag { grid-column: 1 / -1; justify-self: start; font-size: 14px; }
  .control-panel { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .field-help { display: none; }
  .dep-stat { padding: 10px 12px; }
  .dep-stat dd strong { font-size: 20px; }
  body.debug .debug-only { grid-template-columns: 1fr; }
  .forest, .leaderboard { padding-top: 40px; }
  .glade-viewport { border-radius: 18px; }
  .glade-stage { width: 880px; }
  .glade-notice { font-size: 13px; }
  .glade-legend { gap: 6px; }
  .board th, .board td { padding: 10px 10px; }
  .col-place { width: 44px; }
  .place { width: 26px; height: 26px; font-size: 13px; }
  .board-dep { font-size: 14px; }
  .col-progress { width: auto; }
  .col-points { display: none; }
  .col-progress .board-bar { display: none; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .cloud, .flake, .fw, .lamp, .week-mod.pop { animation: none !important; }
  .glade-art, .glade-art svg, .glade-name, .glade-tip { transition: none !important; animation: none !important; }
  .glade-stars circle, .glade-sparkles circle, .is-mine .glade-ring { animation: none !important; }
}
