/* KIBU studio texture layer.
   Load after a page's own <style>. It moves the page into the leather and brass world:
   warm light from the upper left, brass contours, leather grain, stitched cards. */
:root{
  --navy:#F4EAD2; --navy-deep:#120D09;
  --cream:transparent;
  --card:linear-gradient(170deg,rgba(46,33,22,.94),rgba(20,14,9,.96));
  --line:rgba(232,196,120,.24);
  --gold:#B8893E; --gold-bright:#E8C478;
  --ink:#F4EAD2; --ink-soft:rgba(244,234,210,.74);
}
html{background:#17110C}
body{background:transparent!important;position:relative}
body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:
    radial-gradient(1100px 800px at -5% -10%,rgba(232,196,120,.16),transparent 62%),
    radial-gradient(900px 700px at 110% 110%,rgba(110,31,43,.18),transparent 60%),
    url('/images/studio/topo-brass.svg') 0 0/900px 900px,
    url('/images/studio/leather.webp') 0 0/512px 512px,
    #17110C}
body::after{content:"";position:fixed;inset:0;z-index:90;pointer-events:none;opacity:.55;mix-blend-mode:overlay;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 .94 0 0 0 0 .82 0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}

/* top bar and hero: warm the navy veil into leather, keep a scrim under the title */
.kb-topbar{background:linear-gradient(180deg,rgba(14,10,7,.96),rgba(14,10,7,.86))!important;border-bottom:1px solid rgba(232,196,120,.25)!important}
.topbar{background:linear-gradient(180deg,#F3D79A,#B8893E)!important;box-shadow:0 1px 0 rgba(0,0,0,.6)}
.hero{background:#120D09!important}
.hero-veil{background:linear-gradient(180deg,rgba(18,13,9,.55) 0%,rgba(18,13,9,.72) 55%,rgba(23,17,12,.96) 100%)!important}
.hero-aurora{opacity:.35;filter:sepia(.8) saturate(1.4) hue-rotate(-12deg)}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;z-index:4;background:repeating-linear-gradient(90deg,rgba(232,196,120,.55) 0 10px,transparent 10px 18px)}

/* cards become stitched leather panels */
.card,.step,.p-card,.terms,.theme,.infra-note,.app-card{position:relative;
  box-shadow:inset 0 1px 0 rgba(255,230,180,.10),0 0 0 1px rgba(232,196,120,.28),0 18px 38px rgba(0,0,0,.5)!important;border-color:rgba(232,196,120,.28)!important}
.step::after,.p-card::after,.terms::after{content:"";position:absolute;inset:7px;border-radius:9px;border:1px dashed rgba(232,196,120,.22);pointer-events:none}
.p-card{border-top:4px solid #C99A4C!important}

/* buttons get bevel and depth */
.btn-appstore,.btn-play,.cta-band a,a.btn,.btn{box-shadow:inset 0 1px 0 rgba(255,236,190,.22),inset 0 -2px 0 rgba(0,0,0,.3),0 8px 18px rgba(0,0,0,.45)}
.btn-appstore,.btn-play{background:linear-gradient(180deg,#34261A,#1C140D)!important;border:1px solid rgba(232,196,120,.45)!important}
.btn-appstore:hover,.btn-play:hover{border-color:#E8C478!important}
.cta-band{background:linear-gradient(170deg,#3A2A1A,#1A130C)!important;box-shadow:0 0 0 1px rgba(232,196,120,.35),0 24px 50px rgba(0,0,0,.5)}

/* section labels read as engraved brass */
.section-label,.eyebrow{color:#E8C478!important;text-shadow:0 1px 0 rgba(0,0,0,.6)}
.section-label::before{background:radial-gradient(circle at 35% 30%,#F3D79A,#B8893E 60%,#7A5A26)!important;border-radius:50%!important}

footer{background:linear-gradient(180deg,rgba(8,6,4,.5),rgba(8,6,4,.9))!important;border-top:1px dashed rgba(232,196,120,.3)}
.btn-gold{color:#2A1B08!important;background:linear-gradient(180deg,#F3D79A,#D9AE5C 50%,#B8893E)!important;box-shadow:inset 0 1px 0 rgba(255,250,230,.75),inset 0 -2px 0 rgba(90,60,20,.45),0 8px 18px rgba(0,0,0,.45)!important}
.chips span{background:rgba(14,10,7,.5)!important;color:rgba(244,234,210,.86)!important}
.browser-bar .url{color:#6B5A44!important}

/* ===== world: USA (navy, gold, a quiet red, white and blue motif) ===== */
html[data-world="usa"]{background:#0E1626}
html[data-world="usa"]{--card:linear-gradient(170deg,rgba(34,54,94,.94),rgba(12,22,42,.97));--line:rgba(232,196,120,.26);--teal:#E8C478}
html[data-world="usa"] body::before{background:
    radial-gradient(1100px 800px at -5% -10%,rgba(232,196,120,.15),transparent 62%),
    radial-gradient(900px 600px at 105% 105%,rgba(178,34,52,.16),transparent 60%),
    linear-gradient(180deg,rgba(16,30,58,.86),rgba(8,16,32,.92)),
    url('/images/studio/topo-brass.svg') 0 0/900px 900px,
    url('/images/studio/leather.webp') 0 0/512px 512px,
    #0E1626}
html[data-world="usa"] .kb-topbar{background:linear-gradient(180deg,rgba(10,19,38,.97),rgba(10,19,38,.88))!important}
html[data-world="usa"] .topbar{background:linear-gradient(90deg,#B22234 0 33%,#F4EAD2 33% 66%,#3C5A9A 66%)!important;height:3px!important}
html[data-world="usa"] .hero{background:#0A1326!important}
html[data-world="usa"] .hero-veil{background:linear-gradient(180deg,rgba(10,19,38,.5) 0%,rgba(10,19,38,.7) 55%,rgba(12,22,42,.97) 100%)!important}
html[data-world="usa"] .hero .eyebrow{color:#E8C478!important}
html[data-world="usa"] .f-card{border-top:3px solid #C99A4C!important;position:relative}
html[data-world="usa"] .f-card::after{content:"";position:absolute;inset:7px;border-radius:9px;border:1px dashed rgba(232,196,120,.2);pointer-events:none}
html[data-world="usa"] .f-card h3{color:#F4EAD2!important;text-shadow:0 1px 0 rgba(0,0,0,.6)}
html[data-world="usa"] .btn-appstore{color:#2A1B08!important;background:linear-gradient(180deg,#F3D79A,#D9AE5C 50%,#B8893E)!important;border:0!important;box-shadow:inset 0 1px 0 rgba(255,250,230,.75),inset 0 -2px 0 rgba(90,60,20,.45),0 8px 18px rgba(0,0,0,.45)!important}
html[data-world="usa"] .btn-appstore svg{fill:#2A1B08!important}
html[data-world="usa"] .cta-band{background:linear-gradient(170deg,#22365E,#0C1830)!important}
html[data-world="usa"] footer{background:linear-gradient(180deg,rgba(6,12,26,.5),rgba(6,12,26,.92))!important}

/* very large screens and zoomed-out browsers: scale the whole design so it fills the glass */
@media (min-width:2000px){html{zoom:1.22}}
@media (min-width:2400px){html{zoom:1.46}}
@media (min-width:2800px){html{zoom:1.7}}
@media (min-width:3200px){html{zoom:1.94}}
@media (min-width:3600px){html{zoom:2.18}}
@media (min-width:4200px){html{zoom:2.55}}
@media (min-width:5000px){html{zoom:3.05}}
