/* Shared illustrated scene for play.ehsan.ing: mountains, pine forest, lake — calm, painterly, not poppy. */
:root {
  --sc-sky1: #d9e7ee; --sc-sky2: #f3e6d6;
  --sc-far: #b8bfcf; --sc-far2: #a6b0c2; --sc-snow: #fbfcfd;
  --sc-mid: #8ea5a6; --sc-ridge: #6f8c86;
  --sc-pine-back: #6b877b; --sc-pine: #4c6b5c; --sc-pine-front: #3d5a4c;
  --sc-shore: #5f7b6f; --sc-lake1: #9cc3cc; --sc-lake2: #78a9b6;
  --sc-glow: #fff1cf; --sc-sun: #f2c46b; --sc-sun-ring: #ead4a6;
  --sc-chinar1: #c9774a; --sc-chinar2: #d79a5c; --sc-chinar3: #b8613d; --sc-trunk: #5b4636;
  --sc-boat: #7a5a43; --sc-canopy: #a8573c;
}
:root[data-theme="dark"] {
  --sc-sky1: #0f1d2e; --sc-sky2: #1c2f47;
  --sc-far: #34405e; --sc-far2: #2e3a55; --sc-snow: #cfd9e6;
  --sc-mid: #273f4c; --sc-ridge: #213843;
  --sc-pine-back: #22392f; --sc-pine: #1a2f27; --sc-pine-front: #142620;
  --sc-shore: #1b302a; --sc-lake1: #1c3d4f; --sc-lake2: #132f3e;
  --sc-glow: #f3e3b3; --sc-sun: #f0dfaa; --sc-sun-ring: #5d6a7a;
  --sc-chinar1: #8a4f35; --sc-chinar2: #96643f; --sc-chinar3: #7a432e; --sc-trunk: #3a2d24;
  --sc-boat: #4f3c2e; --sc-canopy: #6f3a2a;
}

.sc { position: relative; overflow: hidden; flex: none; height: 124px; z-index: 1; }
.sc.tall { height: clamp(200px, 26vw, 280px); }
.sc > svg.sc-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
.sc .sc-title { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(var(--content-w, 1440px), 100% - 32px); z-index: 2; }
/* keep text legible over the forest */
.sc-title, .sc-title a, .sc-title p { text-shadow: 0 0 6px var(--sc-sky2), 0 0 14px var(--sc-sky2), 0 0 2px var(--sc-sky2); }
.sc.tall .sc-title { top: 36%; }

.sc-sky { position: absolute; top: 10px; right: 19%; width: 58px; height: 58px; padding: 0; border: none; background: none; cursor: pointer; border-radius: 50%; z-index: 3; transition: transform 0.25s; }
.sc.tall .sc-sky { top: 18px; width: 70px; height: 70px; }
.sc-sky:hover { transform: scale(1.07) rotate(-8deg); }
.sc-sky:focus-visible { outline: 2px solid #2f6e4e; outline-offset: 2px; }
.sc-sky svg { width: 100%; height: 100%; }
.sc-sky .moon { display: none; }
:root[data-theme="dark"] .sc-sky .moon { display: block; }
:root[data-theme="dark"] .sc-sky .sun { display: none; }
@media (max-width: 600px) { .sc-sky { right: 10px; top: 6px; width: 44px; height: 44px; } }

.sc-star { display: none; }
:root[data-theme="dark"] .sc-star { display: inline; }

/* the page itself is the lake */
body.sc-lake {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='90'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.5' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M14 14 q8 -4 16 0 t16 0'/%3E%3Cpath d='M120 30 q10 -5 20 0 t20 0'/%3E%3Cpath d='M60 58 q7 -3.5 14 0 t14 0'/%3E%3Cpath d='M180 76 q9 -4 18 0'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #9cc3cc 0px, #bfd8dc 120px, #dce8e3 300px, #edf0e7 520px, #f5f0e5 760px, #f2e8d8 100%);
  background-color: #f5f0e5;
}
:root[data-theme="dark"] body.sc-lake {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='90'%3E%3Cg fill='none' stroke='%239fd3e6' stroke-opacity='0.15' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M14 14 q8 -4 16 0 t16 0'/%3E%3Cpath d='M120 30 q10 -5 20 0 t20 0'/%3E%3Cpath d='M60 58 q7 -3.5 14 0 t14 0'/%3E%3Cpath d='M180 76 q9 -4 18 0'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #1c3d4f 0px, #15303f 140px, #102331 360px, #0d1a24 640px, #0b151c 100%);
  background-color: #0b151c;
}
.sc-lakedeco { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sc-lakedeco svg { position: absolute; left: 0; width: 100%; display: block; }
.sc-reflection { opacity: 0.2; transform: scaleY(-1); -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 95%); mask-image: linear-gradient(0deg, #000 10%, transparent 95%); }
.sc-shore { bottom: 0; height: 84px; opacity: 0.55; }
:root[data-theme="dark"] .sc-shore { opacity: 0.4; }

.sc-leaf { position: fixed; top: -40px; pointer-events: none; z-index: 0; opacity: 0.6; animation: sc-fall linear infinite; }
@keyframes sc-fall {
  0% { transform: translate(0, -40px) rotate(0deg); }
  25% { transform: translate(30px, 25vh) rotate(90deg); }
  50% { transform: translate(-20px, 50vh) rotate(200deg); }
  75% { transform: translate(25px, 75vh) rotate(290deg); }
  100% { transform: translate(-10px, 105vh) rotate(380deg); }
}
@media (prefers-reduced-motion: reduce) { .sc-leaf { display: none; } }
