/* Falak Arcade worlds — one look per collection of games. Loaded after kit.css.
   A game page picks its world on the root element: <html lang="en" data-world="americana">.
   Worlds: (none) = Starlight, the original lapis and gold · americana · fiesta · world (Old World classics).
   Each world re-points the engine's colour tokens, so the bar, panels, chips and buttons follow along,
   and adds a few extra colours (--w-*) for the game's own art. */

@font-face {
  font-family: "Alfa Slab One";
  src: url("../../assets/fonts/alfa-slab-one-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Chango";
  src: url("../../assets/fonts/chango-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../../assets/fonts/cinzel-700-latin.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}

/* ---------------------------------------------------------------- Americana: ballpark lights, diner mustard */
html[data-world="americana"] {
  --lapis: #13233F;
  --lapis-deep: #0B162B;
  --lapis-raise: #1D3358;
  --ultramarine: #2F5FA8;
  --gold: #FFC43D;
  --gold-soft: #FFD978;
  --parchment: #FFF1D6;
  --mist: #B9C6DC;
  --mist-dim: #8696B3;
  --hairline: rgba(255, 196, 61, 0.24);
  --font-display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
  --w-red: #E5383B;
  --w-cream: #FFF1D6;
  --w-navy: #13233F;
  --w-mustard: #FFC43D;
  --w-sky: #6FB7E9;
  --w-grass: #3FA65A;
  --w-wood: #B9773B;
}
html[data-world="americana"] body.fa {
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 196, 61, 0.2), rgba(19, 35, 63, 0) 70%),
    repeating-linear-gradient(90deg, rgba(255, 241, 214, 0.04) 0 1px, transparent 1px 26px),
    var(--lapis);
}

/* ---------------------------------------------------------------- Fiesta: papel picado, marigold and hot pink */
html[data-world="fiesta"] {
  --lapis: #2A0F3D;
  --lapis-deep: #1B0829;
  --lapis-raise: #40185B;
  --ultramarine: #7B3FBF;
  --gold: #FFB627;
  --gold-soft: #FFD166;
  --parchment: #FFF3E0;
  --mist: #D9BFE6;
  --mist-dim: #A98BBA;
  --hairline: rgba(255, 182, 39, 0.26);
  --font-display: "Chango", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --w-pink: #FF3D8B;
  --w-marigold: #FFB627;
  --w-turquoise: #19C9B6;
  --w-lime: #B5E61D;
  --w-purple: #7B3FBF;
  --w-cream: #FFF3E0;
  --w-red: #E8452C;
}
html[data-world="fiesta"] body.fa {
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 61, 139, 0.34), rgba(42, 15, 61, 0) 70%),
    radial-gradient(3px 3px at 14% 24%, rgba(255, 182, 39, 0.7), transparent 60%),
    radial-gradient(3px 3px at 82% 16%, rgba(25, 201, 182, 0.7), transparent 60%),
    radial-gradient(3px 3px at 66% 74%, rgba(255, 61, 139, 0.6), transparent 60%),
    radial-gradient(3px 3px at 26% 86%, rgba(181, 230, 29, 0.55), transparent 60%),
    radial-gradient(3px 3px at 92% 56%, rgba(255, 182, 39, 0.55), transparent 60%),
    var(--lapis);
}

/* ---------------------------------------------------------------- Old World: jade cloth, ivory pieces, vermilion */
html[data-world="world"] {
  --lapis: #0E2F2B;
  --lapis-deep: #08201D;
  --lapis-raise: #17463F;
  --ultramarine: #1F7A63;
  --gold: #EAD9A8;
  --gold-soft: #F6ECCB;
  --parchment: #F1EAD6;
  --mist: #B5CBC2;
  --mist-dim: #86A199;
  --hairline: rgba(234, 217, 168, 0.24);
  --font-display: "Cinzel", "Trajan Pro", Optima, Georgia, serif;
  --w-vermilion: #E2553A;
  --w-ivory: #EAD9A8;
  --w-jade: #1F7A63;
  --w-bronze: #B8893B;
  --w-ink: #0B1F1C;
  --w-bone: #F1EAD6;
  --w-wood: #8A5A33;
}
html[data-world="world"] body.fa {
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(234, 217, 168, 0.17), rgba(14, 47, 43, 0) 70%),
    repeating-linear-gradient(0deg, rgba(241, 234, 214, 0.03) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(241, 234, 214, 0.03) 0 1px, transparent 1px 32px),
    var(--lapis);
}

/* ---------------------------------------------------------------- engine surfaces follow the world */
/* Sakura (Japan and East Asia), Safari (Africa), Bazaar (India and South Asia) */
@font-face { font-family: "Shippori Mincho B1"; src: url("../../assets/fonts/shippori-mincho-b1-800-latin.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Rammetto One"; src: url("../../assets/fonts/rammetto-one-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Yatra One"; src: url("../../assets/fonts/yatra-one-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
html[data-world="sakura"] {
  --lapis: #221A38;
  --lapis-deep: #161026;
  --lapis-raise: #33284F;
  --ultramarine: #7A4E9E;
  --gold: #F6A6C1;
  --gold-soft: #FBD3E0;
  --parchment: #FBF3EA;
  --mist: #C9BEDC;
  --mist-dim: #9A8FB3;
  --hairline: rgba(246, 166, 193, 0.26);
  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", Georgia, serif;
  --w-blossom: #F6A6C1;
  --w-torii: #E0452F;
  --w-paper: #FBF3EA;
  --w-matcha: #8DB255;
  --w-indigo: #2E3A7C;
  --w-ink: #161026;
  --w-gold: #D9B25F;
}
html[data-world="sakura"] body.fa { background: radial-gradient(110% 55% at 50% -10%, rgba(246, 166, 193, 0.20), rgba(34, 26, 56, 0) 70%), radial-gradient(circle at 12% 30%, rgba(246, 166, 193, 0.10) 0 3px, transparent 4px), radial-gradient(circle at 78% 62%, rgba(246, 166, 193, 0.08) 0 4px, transparent 5px), var(--lapis); background-size: auto, 220px 260px, 300px 340px, auto; }
html[data-world="sakura"] .fa-title { font-weight: 800; letter-spacing: 0.01em; }
html[data-world="safari"] {
  --lapis: #2B1A10;
  --lapis-deep: #1C1009;
  --lapis-raise: #43291A;
  --ultramarine: #C4532D;
  --gold: #F2A03D;
  --gold-soft: #F8C987;
  --parchment: #FBEFD9;
  --mist: #D9C2A3;
  --mist-dim: #A88F70;
  --hairline: rgba(242, 160, 61, 0.28);
  --font-display: "Rammetto One", "Arial Black", Impact, sans-serif;
  --w-sunset: #F28C28;
  --w-ochre: #E8B04A;
  --w-clay: #C4532D;
  --w-leaf: #7BA05B;
  --w-sky: #3F8FA6;
  --w-cream: #FBEFD9;
  --w-earth: #1C1009;
}
html[data-world="safari"] body.fa { background: radial-gradient(120% 60% at 50% -12%, rgba(242, 140, 40, 0.26), rgba(43, 26, 16, 0) 70%), repeating-linear-gradient(135deg, rgba(251, 239, 217, 0.035) 0 2px, transparent 2px 22px), var(--lapis); background-size: auto, auto; }
html[data-world="safari"] .fa-title { font-weight: 400; letter-spacing: 0.01em; }
html[data-world="bazaar"] {
  --lapis: #3A0E1E;
  --lapis-deep: #260813;
  --lapis-raise: #56182E;
  --ultramarine: #B0245A;
  --gold: #FFB13B;
  --gold-soft: #FFD592;
  --parchment: #FFF4E0;
  --mist: #E2B9C4;
  --mist-dim: #B58795;
  --hairline: rgba(255, 177, 59, 0.28);
  --font-display: "Yatra One", "Trebuchet MS", system-ui, sans-serif;
  --w-saffron: #FF9933;
  --w-turmeric: #F4C430;
  --w-magenta: #D81B78;
  --w-peacock: #1FA2A6;
  --w-leaf: #3F9B4B;
  --w-cream: #FFF4E0;
  --w-wine: #260813;
}
html[data-world="bazaar"] body.fa { background: radial-gradient(120% 60% at 50% -12%, rgba(255, 153, 51, 0.24), rgba(58, 14, 30, 0) 70%), radial-gradient(circle at 50% 50%, rgba(255, 244, 224, 0.045) 0 2px, transparent 3px), var(--lapis); background-size: auto, 26px 26px, auto; }
html[data-world="bazaar"] .fa-title { font-weight: 400; letter-spacing: 0.01em; }
/* Kitchen: games about cooking and food, for kids and grown-ups */
@font-face { font-family: "Lilita One"; src: url("../../assets/fonts/lilita-one-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
html[data-world="kitchen"] {
  --lapis: #23291C;
  --lapis-deep: #171C12;
  --lapis-raise: #364029;
  --ultramarine: #5E7A3A;
  --gold: #FFD45C;
  --gold-soft: #FFE9A6;
  --parchment: #FFF6E3;
  --mist: #CFD6BC;
  --mist-dim: #9AA385;
  --hairline: rgba(255, 212, 92, 0.26);
  --font-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --w-butter: #FFD45C;
  --w-tomato: #F0523D;
  --w-mint: #9BD3B0;
  --w-cream: #FFF6E3;
  --w-crust: #D9A05B;
  --w-berry: #C2456B;
  --w-pan: #171C12;
}
html[data-world="kitchen"] body.fa { background: radial-gradient(120% 60% at 50% -12%, rgba(255, 212, 92, 0.20), rgba(35, 41, 28, 0) 70%), linear-gradient(rgba(255, 246, 227, 0.035) 2px, transparent 2px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(255, 246, 227, 0.035) 2px, transparent 2px) 0 0 / 44px 44px, var(--lapis); }
html[data-world="kitchen"] .fa-title { font-weight: 400; letter-spacing: 0.01em; }
html[data-world] .fa-chip,
html[data-world] .kit-dock-btn,
html[data-world] .fa-dock .fa-seg {
  background: var(--lapis-raise);
  background: color-mix(in srgb, var(--lapis-raise) 82%, transparent);
}
html[data-world] .kit-dock-btn:active { background: var(--ultramarine); }
html[data-world] .kit-dock-btn[aria-pressed="true"] { background: var(--gold); }
@media (hover: hover) { html[data-world] .kit-dock-btn:hover { background: var(--ultramarine); } }
html[data-world] .fa-overlay {
  background: var(--lapis-deep);
  background: color-mix(in srgb, var(--lapis-deep) 84%, transparent);
}
html[data-world] .fa-panel { background: linear-gradient(180deg, var(--lapis-raise) 0%, var(--lapis) 100%); }
html[data-world] .fa-seg { background: var(--lapis-deep); }
html[data-world] .fa-toast { background: var(--lapis-raise); }
html[data-world] .fa-toast.is-gold { background: var(--gold); }
/* Heavy display faces read better a touch smaller and without extra weight. */
html[data-world="americana"] .fa-title,
html[data-world="fiesta"] .fa-title { font-weight: 400; letter-spacing: 0.01em; }
html[data-world="world"] .fa-title { font-weight: 700; letter-spacing: 0.04em; }
