:root{
  --aipan-red:#a6241b;--aipan-white:#fffaf0;
  --culture-accent:#c93425;--culture-accent2:#fff6e8;--culture-ink:#6e1712;
  --culture-gradient:linear-gradient(135deg,#6e1712 0%,#a6241b 24%,#d84a32 42%,#fffaf0 50%,#c93425 58%,#7d1712 100%);
  --culture-wash:radial-gradient(circle at 8% 0%,rgba(166,36,27,.13),transparent 30%),radial-gradient(circle at 100% 90%,rgba(255,250,240,.06),transparent 26%);
  --frame-width:clamp(10px,1.05vw,17px);--frame-inset:2px;--motif-depth:clamp(7px,.78vw,12px);
  --culture-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='48' viewBox='0 0 128 48'%3E%3Crect width='128' height='48' fill='%23a6241b'/%3E%3Cg fill='none' stroke='%23fffaf0' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='24' r='11'/%3E%3Ccircle cx='24' cy='24' r='5'/%3E%3Cpath d='M24 4v8M24 36v8M4 24h8M36 24h8M10 10l6 6M32 32l6 6M38 10l-6 6M16 32l-6 6M52 24h76M58 14l10 10-10 10M76 14l10 10-10 10M94 14l10 10-10 10M112 14l10 10-10 10'/%3E%3Cpath d='M24 13c4 3 6 6 6 11s-2 8-6 11c-4-3-6-6-6-11s2-8 6-11Z'/%3E%3C/g%3E%3Cg fill='%23fffaf0'%3E%3Ccircle cx='24' cy='24' r='1.8'/%3E%3Ccircle cx='5' cy='5' r='1.4'/%3E%3Ccircle cx='43' cy='43' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-culture-theme="pichoda"]{
  --culture-accent:#d93b25;--culture-accent2:#ffe36e;--culture-ink:#8b1b16;
  --culture-gradient:linear-gradient(135deg,#8f1d17 0%,#d63324 18%,#f2bd28 38%,#ffe774 55%,#ef9c14 72%,#9f231a 100%);
  --culture-wash:radial-gradient(circle at 8% 0%,rgba(242,189,40,.16),transparent 32%),radial-gradient(circle at 92% 100%,rgba(169,33,27,.11),transparent 28%);
  --culture-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='48' viewBox='0 0 120 48'%3E%3Crect width='120' height='48' fill='%23f2bd28'/%3E%3Cg fill='%23a9211b'%3E%3Ccircle cx='24' cy='24' r='10'/%3E%3Ccircle cx='60' cy='24' r='7'/%3E%3Ccircle cx='96' cy='24' r='10'/%3E%3C/g%3E%3Cg fill='none' stroke='%23fff5bd' stroke-width='2'%3E%3Ccircle cx='24' cy='24' r='5'/%3E%3Cpath d='M24 6v7M24 35v7M6 24h7M35 24h7M60 9l6 15-6 15-6-15Z M96 6v36M78 24h36'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-culture-theme="baal-mithai"]{
  --culture-accent:#6d3a29;--culture-accent2:#f7ead4;--culture-ink:#2e1810;
  --culture-gradient:linear-gradient(135deg,#25120d 0%,#4a261b 22%,#6d3a29 42%,#f3dfc7 50%,#8c553c 63%,#321912 100%);
  --culture-wash:radial-gradient(circle at 10% 0%,rgba(109,58,41,.18),transparent 34%),radial-gradient(circle at 100% 90%,rgba(247,234,212,.07),transparent 30%);
  --culture-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48'%3E%3Crect width='96' height='48' fill='%23523123'/%3E%3Cg fill='%23fff7e9'%3E%3Ccircle cx='8' cy='9' r='3'/%3E%3Ccircle cx='24' cy='19' r='3'/%3E%3Ccircle cx='42' cy='8' r='3'/%3E%3Ccircle cx='60' cy='21' r='3'/%3E%3Ccircle cx='79' cy='9' r='3'/%3E%3Ccircle cx='14' cy='38' r='3'/%3E%3Ccircle cx='35' cy='34' r='3'/%3E%3Ccircle cx='56' cy='40' r='3'/%3E%3Ccircle cx='84' cy='34' r='3'/%3E%3C/g%3E%3Cpath d='M0 24h96' stroke='%2385533e' stroke-width='2'/%3E%3C/svg%3E");
}
html[data-culture-theme="kaafal"]{
  --culture-accent:#c33147;--culture-accent2:#88aa55;--culture-ink:#401116;
  --culture-gradient:linear-gradient(135deg,#15371f 0%,#3f6f39 23%,#7fa255 40%,#c43246 57%,#8c1e31 78%,#1b3821 100%);
  --culture-wash:radial-gradient(circle at 8% 0%,rgba(196,50,70,.16),transparent 32%),radial-gradient(circle at 100% 90%,rgba(127,162,85,.10),transparent 32%);
  --culture-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='48'%3E%3Crect width='112' height='48' fill='%231b3821'/%3E%3Cg fill='%23bd3040'%3E%3Ccircle cx='22' cy='18' r='7'/%3E%3Ccircle cx='34' cy='29' r='7'/%3E%3Ccircle cx='73' cy='17' r='7'/%3E%3Ccircle cx='87' cy='29' r='7'/%3E%3C/g%3E%3Cg fill='%237fa255'%3E%3Cellipse cx='13' cy='32' rx='9' ry='4' transform='rotate(-28 13 32)'/%3E%3Cellipse cx='46' cy='13' rx='9' ry='4' transform='rotate(28 46 13)'/%3E%3Cellipse cx='62' cy='34' rx='9' ry='4' transform='rotate(-26 62 34)'/%3E%3Cellipse cx='100' cy='13' rx='9' ry='4' transform='rotate(26 100 13)'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-culture-theme="ghughutiya"]{
  --culture-accent:#e0b34f;--culture-accent2:#f2d88e;--culture-ink:#10100e;
  --culture-gradient:linear-gradient(135deg,#0e0e0d 0%,#211914 28%,#5d321f 42%,#e7bc5b 54%,#7f4b29 72%,#17120f 100%);
  --culture-wash:radial-gradient(circle at 8% 0%,rgba(231,188,91,.13),transparent 30%),radial-gradient(circle at 95% 100%,rgba(89,50,31,.14),transparent 28%);
  --culture-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='48'%3E%3Crect width='112' height='48' fill='%23231b16'/%3E%3Cg fill='none' stroke='%23e7bc5b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 12c8 8 8 16 0 24M28 8l8 8-8 8 8 8-8 8M56 10c8 4 12 10 12 14s-4 10-12 14M86 8l8 8-8 8 8 8-8 8'/%3E%3C/g%3E%3Cg fill='%23f3d488'%3E%3Ccircle cx='17' cy='24' r='2'/%3E%3Ccircle cx='47' cy='24' r='2'/%3E%3Ccircle cx='77' cy='24' r='2'/%3E%3Ccircle cx='106' cy='24' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-culture-theme="kaale-kowa"]{
  --culture-accent:#202329;--culture-accent2:#f0c35d;--culture-ink:#050607;
  --culture-gradient:linear-gradient(135deg,#050607 0%,#151a1d 38%,#a6241b 47%,#f0c35d 54%,#252a2f 68%,#060708 100%);
  --culture-wash:radial-gradient(circle at 7% 0%,rgba(240,195,93,.11),transparent 31%),radial-gradient(circle at 98% 100%,rgba(166,36,27,.11),transparent 27%);
  --culture-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='48'%3E%3Crect width='144' height='48' fill='%23151a1d'/%3E%3Cg fill='%23f1c563'%3E%3Cpath d='M15 31c7-11 15-13 24-8-7 0-11 3-12 8 8-4 15-3 21 4-12-1-21 1-28 7Z'/%3E%3Cpath d='M75 30c8-12 16-14 25-8-8 0-12 3-13 8 9-4 17-2 22 5-12-1-22 1-29 7Z'/%3E%3Ccircle cx='31' cy='20' r='2'/%3E%3Ccircle cx='91' cy='19' r='2'/%3E%3C/g%3E%3Cpath d='M0 8h144' stroke='%23a6241b' stroke-width='3'/%3E%3C/svg%3E");
}
html[data-culture-theme="buransh"]{
  --culture-accent:#ba2039;--culture-accent2:#f4b3bf;--culture-ink:#50111e;
  --culture-gradient:linear-gradient(135deg,#3b0b13 0%,#7f1629 25%,#ba2039 45%,#f4b3bf 54%,#d94b63 66%,#4d0d19 100%);
  --culture-wash:radial-gradient(circle at 7% 0%,rgba(186,32,57,.17),transparent 30%),radial-gradient(circle at 100% 90%,rgba(244,179,191,.08),transparent 26%);
  --culture-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='48'%3E%3Crect width='112' height='48' fill='%231d3325'/%3E%3Cg fill='%23c32945'%3E%3Ccircle cx='22' cy='24' r='8'/%3E%3Ccircle cx='16' cy='17' r='7'/%3E%3Ccircle cx='30' cy='17' r='7'/%3E%3Ccircle cx='17' cy='31' r='7'/%3E%3Ccircle cx='29' cy='31' r='7'/%3E%3Ccircle cx='78' cy='24' r='8'/%3E%3Ccircle cx='72' cy='17' r='7'/%3E%3Ccircle cx='86' cy='17' r='7'/%3E%3Ccircle cx='73' cy='31' r='7'/%3E%3Ccircle cx='85' cy='31' r='7'/%3E%3C/g%3E%3Cg fill='%23ffd7df'%3E%3Ccircle cx='23' cy='24' r='2.5'/%3E%3Ccircle cx='79' cy='24' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-culture-theme="ringaal"]{
  --culture-accent:#a9873f;--culture-accent2:#e6d29d;--culture-ink:#4a3a1d;
  --culture-gradient:linear-gradient(135deg,#4b3a1c 0%,#806735 24%,#b79a58 46%,#e6d29d 54%,#a9873f 70%,#59461f 100%);
  --culture-wash:radial-gradient(circle at 7% 0%,rgba(169,135,63,.14),transparent 31%),radial-gradient(circle at 98% 100%,rgba(230,210,157,.07),transparent 28%);
  --culture-pattern:repeating-linear-gradient(45deg,#806735 0 7px,#b79a58 7px 14px,#d8c487 14px 21px,#6b572f 21px 28px);
}

/* The frame is an overlay, never part of document flow. This prevents viewport changes from shifting layout. */
body{background-image:var(--culture-wash),var(--app-bg,none);background-attachment:fixed}
body::after{content:"";position:fixed;box-sizing:border-box;inset:var(--frame-inset);z-index:9999;pointer-events:none;border:var(--frame-width) solid transparent;border-image:var(--culture-gradient) 1;filter:drop-shadow(0 0 5px rgba(0,0,0,.34));transition:border-width .18s ease,filter .18s ease}
body::before{content:"";position:fixed;box-sizing:border-box;inset:calc(var(--frame-inset) + var(--frame-width) - 3px);z-index:9998;pointer-events:none;border:3px solid transparent;border-image:var(--culture-pattern) 18 round;opacity:.96;transition:inset .18s ease}
.aipan-divider{height:clamp(13px,1.1vw,18px);border-radius:999px;background:var(--culture-gradient);position:relative;overflow:hidden;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--culture-accent2) 65%,transparent),0 4px 14px rgba(0,0,0,.22)}
.aipan-divider::after{content:"";position:absolute;inset:2px;background:var(--culture-pattern);background-size:auto 100%;opacity:.72;border-radius:inherit}
.section,.today,.topbar,.sidebar,.aiResults,.mapFrame,.accessCard,.atlasPerson,.monkeyPanel,.monkeyMapSection,.superPanel,.supportCard{position:relative}
.section:before,.today:before,.aiResults:before,.superPanel:before{content:"";position:absolute;pointer-events:none;inset:3px;border-radius:inherit;border:1px solid color-mix(in srgb,var(--culture-accent) 42%,transparent);opacity:.55}
.section:after,.superPanel:after{content:"";position:absolute;pointer-events:none;left:18px;right:18px;top:0;height:4px;background:var(--culture-gradient);opacity:.52;border-radius:999px}
.cultureThemePicker{display:flex;align-items:center;gap:4px;position:relative}.cultureThemePicker>button{height:40px!important;min-width:42px}.cultureMenu{position:absolute;right:0;top:47px;z-index:100;width:238px;border:1px solid color-mix(in srgb,var(--culture-accent) 35%,var(--line));border-radius:16px;background:color-mix(in srgb,var(--panel) 94%,black);padding:8px;box-shadow:var(--shadow);display:none}.cultureThemePicker.open .cultureMenu{display:grid;gap:4px}.cultureMenu button{display:grid!important;grid-template-columns:32px 1fr!important;text-align:left!important;align-items:center!important;height:auto!important;padding:9px!important}.cultureSwatch{width:28px;height:28px;border-radius:8px;border:1px solid rgba(255,255,255,.20);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}
.themeAipan{background:linear-gradient(135deg,#6e1712,#d84a32 45%,#fffaf0 52%,#a6241b)!important;color:#fffaf0!important}.themePichoda{background:linear-gradient(135deg,#a9211b,#f2bd28 46%,#ffe36e 66%,#d93b25)!important;color:#64120f!important}.themeBaal{background:linear-gradient(135deg,#25120d,#6d3a29 48%,#f7ead4 56%,#4a261b)!important;color:#fff!important}.themeKaafal{background:linear-gradient(135deg,#173f28,#7fa255 44%,#c43246 60%,#6e1725)!important;color:#fff!important}.themeGhughutiya{background:linear-gradient(135deg,#17120f,#5d321f 44%,#e7bc5b 60%,#241812)!important;color:#f6d98e!important}.themeKaaleKowa{background:linear-gradient(135deg,#050607,#22262b 48%,#f0c35d 58%,#a6241b)!important;color:#f6d77e!important}.themeBuransh{background:linear-gradient(135deg,#3b0b13,#ba2039 50%,#f4b3bf 60%,#6b1221)!important;color:#ffe8ed!important}.themeRingaal{background:linear-gradient(135deg,#4b3a1c,#a9873f 48%,#e6d29d 58%,#59461f)!important;color:#fff4ce!important}
.hero h1{display:block!important;min-height:0!important;white-space:normal!important}.hero h1>span{display:inline!important}.hero h1>br{display:block!important}.hero h1::before,.hero h1::after{content:none!important}
.heroSlides{position:absolute;z-index:8;left:18px;right:18px;top:15px;display:flex;align-items:center;gap:7px;pointer-events:none}.heroSlides>*{pointer-events:auto}.heroDots{display:flex;gap:5px}.heroDots button{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:#ffffff55;cursor:pointer}.heroDots button.active{width:25px;border-radius:999px;background:var(--culture-accent2)}.heroArrow{width:30px;height:30px;border:1px solid #ffffff33;border-radius:50%;background:#06111aaa;color:white;cursor:pointer}.heroCaption{margin-left:auto;display:grid;background:#06111acc;border:1px solid #ffffff22;border-radius:10px;padding:6px 9px;max-width:230px}.heroCaption b{font-size:9px}.heroCaption small{font-size:7px;color:#aebcc5}
@media(max-width:760px){.heroCaption{display:none}.heroSlides{top:10px;left:12px;right:12px}.cultureMenu{right:-28px;width:min(238px,82vw)}}
@media(prefers-reduced-motion:reduce){body::after,body::before{transition:none}.heroPhoto{transition:none!important;transform:none!important}}
