/* CRD Team Hub — Loy Krathong 2026. Scoped to .loy-theme. */
.loy-theme {
  --loy-gold:#e3b76e;
  --loy-water:#0a6769;
  --loy-water-deep:#064a61;
}
.loy-theme .hero.loy-hero {
  min-height: 480px;
  padding-bottom: 172px;
  background:
    radial-gradient(circle at 88% 1%,rgba(255,225,153,.35),transparent 25%),
    linear-gradient(120deg,rgba(255,255,252,.98),rgba(233,248,243,.97) 65%,rgba(254,241,218,.94));
  border-color:rgba(11,122,85,.16);
}
.loy-theme .hero.loy-hero::after { background:linear-gradient(145deg,rgba(241,186,93,.20),rgba(10,114,113,.08)); }
.loy-theme .hero.loy-hero > :not(.loy-scene) { z-index:3; }
.loy-theme .hero.loy-hero .hero-copy,
.loy-theme .hero.loy-hero .hero-panel { position:relative; }
.loy-theme .hero.loy-hero .hero-panel { backdrop-filter:blur(9px); }
.loy-theme .hero.loy-hero .eyebrow,
.loy-theme .welcome .eyebrow { color:#a46b23; letter-spacing:1px; }
.loy-theme .hero.loy-hero h1 span { color:#0c8b69; }
.loy-theme .hero.loy-hero .team-orbit { z-index:2; }
.loy-theme .loy-welcome { margin-bottom:12px; }
.loy-theme .loy-welcome h1 { filter:drop-shadow(0 9px 16px rgba(11,122,85,.08)); }
.loy-theme .loy-welcome + .loy-scene { margin:0 auto 35px; }

/* All decorations are noninteractive: search/buttons remain clickable. */
.loy-scene {
  position:absolute;
  left:0;right:0;bottom:0;
  height:162px;
  overflow:hidden;
  pointer-events:none;
  isolation:isolate;
  border-radius:0 0 33px 33px;
  z-index:1;
}
.loy-scene--home {
  position:relative;
  width:min(1020px,100%);
  height:222px;
  border-radius:24px;
  box-shadow:0 18px 38px rgba(7,74,97,.13);
  background:linear-gradient(180deg,#e7f5ee 0%,#f9f5e7 40%,#a8d8cb 41%);
}
.loy-scene--home .loy-moon { top:16px;right:17%; }
.loy-moon {
  position:absolute; width:45px;height:45px;right:10%;top:-11px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#fffdea 0%,#ffe4a5 62%,#efbe78 100%);
  box-shadow:0 0 30px 13px rgba(255,219,149,.32);
  animation:loyMoonGlow 6s ease-in-out infinite;
}
.loy-stars { position:absolute;inset:0 0 50%; }
.loy-stars i {position:absolute;width:3px;height:3px;border-radius:50%;background:#e7b567;box-shadow:0 0 9px #ffdb9a;animation:loyTwinkle 3s ease-in-out infinite alternate;}
.loy-stars i:nth-child(1){left:8%;top:20%}.loy-stars i:nth-child(2){left:19%;top:54%;animation-delay:1s}
.loy-stars i:nth-child(3){left:34%;top:16%;animation-delay:1.9s}.loy-stars i:nth-child(4){left:49%;top:39%;animation-delay:.5s}
.loy-stars i:nth-child(5){left:67%;top:10%;animation-delay:1.4s}.loy-stars i:nth-child(6){left:77%;top:48%;animation-delay:2.3s}
.loy-stars i:nth-child(7){left:93%;top:21%;animation-delay:1.2s}
.loy-river {
  position:absolute;inset:28px 0 0;
  background:
    radial-gradient(ellipse at 75% 19%,rgba(255,217,132,.34),transparent 27%),
    repeating-linear-gradient(-5deg,transparent 0 16px,rgba(230,255,238,.06) 17px 19px,transparent 21px 32px),
    linear-gradient(180deg,#5aaba6 0%,#157f83 30%,#0b6576 67%,#063f5d 100%);
  clip-path:polygon(0 12%,10% 7%,22% 13%,35% 8%,49% 14%,64% 8%,79% 12%,91% 8%,100% 12%,100% 100%,0 100%);
}
.loy-scene--home .loy-river { inset:73px 0 0; }
.loy-ripples,.loy-light-path {position:absolute;inset:0;}
.loy-ripples {
 background:repeating-linear-gradient(177deg,transparent 0 14px,rgba(202,251,234,.16) 15px 16px,transparent 18px 30px);
 background-size:240px 80px;
 animation:loyWater 14s linear infinite;
}
.loy-light-path {
  left:63%;width:29%;
  background:repeating-linear-gradient(177deg,rgba(255,221,157,.08) 0 5px,transparent 6px 19px,rgba(255,235,180,.26) 20px 21px,transparent 22px 32px);
  transform:skewX(-19deg);
  filter:blur(2px);
  animation:loyWater 19s linear infinite reverse;
}
.loy-drifter {
  position:absolute;
  left:-130px;
  width:112px;height:108px;
  will-change:transform;
  animation:loyDrift var(--duration,28s) linear infinite;
  animation-delay:var(--delay,0s);
  filter:drop-shadow(0 9px 7px rgba(0,30,40,.16));
}
.loy-bob { width:100%;height:100%;animation:loyBob 3.6s ease-in-out infinite; }
.loy-boat-art { width:100%;height:100%;overflow:visible; }
.loy-flame {transform-origin:90px 40px;animation:loyFlicker 1.8s ease-in-out infinite;}
.loy-reflection {position:absolute;left:35%;bottom:0;width:30%;height:7px;border-radius:100%;background:rgba(255,223,153,.38);filter:blur(4px);}
.loy-drifter--1 {--duration:33s;--delay:-8s;bottom:5px;z-index:4;}
.loy-drifter--2 {--duration:42s;--delay:-24s;bottom:24px;z-index:3;transform:scale(.84);opacity:.92;}
.loy-drifter--3 {--duration:37s;--delay:-32s;bottom:-7px;z-index:5;}
.loy-drifter--4 {--duration:48s;--delay:-12s;bottom:37px;z-index:2;opacity:.8;}
.loy-drifter--5 {--duration:39s;--delay:-3s;bottom:14px;z-index:3;opacity:.95;}
.loy-drifter--2 .loy-bob,.loy-drifter--4 .loy-bob {transform:scale(.78);}
.loy-scene-caption { position:absolute;left:22px;bottom:11px;z-index:8;font-size:10px;font-weight:700;letter-spacing:2px;color:rgba(238,255,242,.73);text-shadow:0 1px 4px rgba(0,40,50,.35); }
@keyframes loyDrift {from {translate:0 0;}to {translate:calc(100vw + 280px) 0;}}
@keyframes loyBob {0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(6px) rotate(2deg)}}
@keyframes loyWater {to{background-position:240px 80px}}
@keyframes loyMoonGlow {50%{box-shadow:0 0 37px 18px rgba(255,219,149,.46)}}
@keyframes loyTwinkle {to{opacity:.2;transform:scale(.55)}}
@keyframes loyFlicker {50%{transform:rotate(5deg) scale(.91)}}

/* Existing dark-mode toggle continues to work. */
[data-theme="dark"] .loy-theme .hero.loy-hero,
.loy-theme[data-theme="dark"] .hero.loy-hero {
  background:linear-gradient(125deg,#182c2a 0%,#11332f 62%,#302e26 100%);
}
@media(max-width:850px){
  .loy-theme .hero.loy-hero{padding-bottom:170px;min-height:510px;}
  .loy-theme .hero.loy-hero .team-orbit{opacity:.52;}
}
@media(max-width:600px){
  .loy-theme .hero.loy-hero{padding-bottom:142px;min-height:0;}
  .loy-scene{height:132px;border-radius:0 0 25px 25px;}
  .loy-scene--home{height:180px;border-radius:20px;}
  .loy-scene--home .loy-river{inset:58px 0 0;}
  .loy-scene-caption{font-size:8px;letter-spacing:1px;}
  .loy-theme .hero.loy-hero .team-orbit{opacity:.35;}
}
@media(prefers-reduced-motion:reduce){
  .loy-theme .loy-scene *, .loy-theme .loy-scene *::before, .loy-theme .loy-scene *::after {animation:none!important;}
  .loy-drifter--1{left:8%;}.loy-drifter--2{left:32%;}.loy-drifter--3{left:58%;}.loy-drifter--4{left:76%;}.loy-drifter--5{display:none;}
}
