/* Falcon Social Online Casino — "Golden Dunes at Dusk"
   Own CSS convention: fx- prefix for components, --fx- for tokens.
   Structurally distinct from any sibling site. */

:root {
  --fx-sand: #E3A94F;
  --fx-sand-lo: #c98e3a;
  --fx-sand-hi: #f3c878;
  --fx-indigo: #2B2350;
  --fx-indigo-deep: #1b1638;
  --fx-indigo-soft: #3a3066;
  --fx-teal: #1E7F76;
  --fx-teal-hi: #2ba99d;
  --fx-cream: #F8F0E0;
  --fx-cream-dim: #d9cfb8;
  --fx-ink: #14101f;
  --fx-line: rgba(227, 169, 79, 0.20);
  --fx-panel: rgba(43, 35, 80, 0.62);
  --fx-radius: 18px;
  --fx-display: "Archivo Black", "Arial Black", sans-serif;
  --fx-body: "Archivo", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--fx-body);
  color: var(--fx-cream);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1000px 520px at 85% -8%, rgba(227, 169, 79, 0.16), transparent 62%),
    radial-gradient(820px 460px at 8% 4%, rgba(30, 127, 118, 0.12), transparent 60%),
    linear-gradient(178deg, var(--fx-indigo) 0%, var(--fx-indigo-deep) 48%, #110d24 100%);
}

a { color: var(--fx-sand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--fx-sand-hi); }
img { max-width: 100%; display: block; }

.fx-wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* decorative dune horizon, used on hero + game shells */
.fx-dunes { position: relative; }
.fx-dunes::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 100% at 18% 130%, rgba(227,169,79,.20), transparent 55%),
    radial-gradient(120% 100% at 82% 140%, rgba(30,127,118,.16), transparent 55%);
  mask: radial-gradient(140% 92% at 50% 145%, #000 60%, transparent 62%);
}

/* ---------- header ---------- */
.fx-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(20, 16, 31, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fx-line);
}
.fx-head .fx-wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.fx-logo { display: flex; align-items: center; gap: 12px; }
.fx-logo svg { width: 42px; height: 42px; flex: none; }
.fx-logo b {
  font-family: var(--fx-display); font-size: 22px; letter-spacing: .5px;
  line-height: 1; color: var(--fx-cream); display: block;
}
.fx-logo i {
  font-style: normal; font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--fx-sand); display: block; margin-top: 3px;
}
.fx-menu { display: flex; align-items: center; gap: 22px; }
.fx-menu a.fx-mlink {
  color: var(--fx-cream-dim); font-weight: 700; font-size: 15px;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.fx-menu a.fx-mlink:hover { color: var(--fx-cream); border-color: var(--fx-sand); }

.fx-purse {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--fx-panel); border: 1px solid var(--fx-line);
  border-radius: 999px; padding: 6px 14px; font-weight: 800; color: var(--fx-sand-hi);
}
.fx-purse .fx-coin {
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--fx-sand-hi), var(--fx-sand-lo));
  box-shadow: inset 0 0 0 2px rgba(20,16,31,.35);
}
.fx-age {
  font-family: var(--fx-display); font-size: 13px; color: var(--fx-ink);
  background: var(--fx-sand); border-radius: 8px; padding: 4px 8px; letter-spacing: .5px;
}

/* ---------- buttons ---------- */
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--fx-display); letter-spacing: .6px; cursor: pointer;
  border: none; border-radius: 12px; color: var(--fx-ink);
  background: linear-gradient(180deg, var(--fx-sand-hi), var(--fx-sand));
  box-shadow: 0 6px 0 var(--fx-sand-lo), 0 12px 24px rgba(0,0,0,.34);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
.fx-btn:hover { filter: brightness(1.05); }
.fx-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--fx-sand-lo), 0 6px 14px rgba(0,0,0,.34); }
.fx-btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: 0 6px 0 var(--fx-sand-lo); }
.fx-btn--teal { background: linear-gradient(180deg, var(--fx-teal-hi), var(--fx-teal)); color: var(--fx-cream); box-shadow: 0 6px 0 #155a53, 0 12px 24px rgba(0,0,0,.34); }
.fx-btn--teal:active { box-shadow: 0 2px 0 #155a53, 0 6px 14px rgba(0,0,0,.34); }
.fx-btn--sm { font-size: 13px; padding: 9px 16px; }
.fx-btn--md { font-size: 15px; padding: 12px 22px; }
.fx-btn--lg { font-size: 19px; padding: 16px 36px; border-radius: 14px; }

/* ---------- hero ---------- */
.fx-hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.fx-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: .42;
  mask: linear-gradient(180deg, #000 55%, transparent 100%);
}
.fx-hero .fx-wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center;
}
.fx-hero h1 {
  font-family: var(--fx-display); font-size: clamp(40px, 6.4vw, 76px);
  line-height: .98; letter-spacing: -.5px; text-transform: uppercase;
}
.fx-hero h1 em { font-style: normal; color: var(--fx-sand); }
.fx-hero .fx-lede {
  margin: 20px 0 26px; font-size: 19px; line-height: 1.55; max-width: 46ch;
  color: var(--fx-cream-dim);
}
.fx-hero .fx-lede strong { color: var(--fx-sand-hi); }
.fx-hero-note {
  margin-top: 18px; font-size: 12.5px; letter-spacing: .3px; color: var(--fx-cream-dim);
  border-left: 3px solid var(--fx-teal); padding-left: 12px;
}
.fx-hero-art { position: relative; }
.fx-hero-art img {
  width: 100%; max-width: 440px; margin-left: auto;
  filter: drop-shadow(0 28px 40px rgba(0,0,0,.5));
  animation: fx-float 6s ease-in-out infinite;
}
@keyframes fx-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* twinkling dusk stars */
.fx-stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fx-stars span {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--fx-cream); opacity: .7;
  animation: fx-twinkle 3.4s ease-in-out infinite;
}
@keyframes fx-twinkle { 0%,100% { opacity: .15; transform: scale(.6); } 50% { opacity: .9; transform: scale(1); } }

/* ---------- generic section ---------- */
.fx-section { padding: 60px 0; position: relative; z-index: 2; }
.fx-shead { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.fx-shead h2 {
  font-family: var(--fx-display); font-size: clamp(26px, 3.4vw, 38px);
  text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
.fx-shead .fx-bar { flex: 1; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--fx-sand), transparent); }

/* ---------- lobby ---------- */
.fx-lobby { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fx-card {
  display: block; background: var(--fx-panel); border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius); overflow: hidden; color: var(--fx-cream);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.fx-card:hover { transform: translateY(-6px); border-color: var(--fx-sand); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.fx-card-cover { aspect-ratio: 16 / 10; background-size: cover; background-position: center;
  background-color: var(--fx-indigo-soft); }
.fx-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.fx-card-foot h3 { font-family: var(--fx-display); font-size: 18px; }
.fx-card-foot p { font-size: 12.5px; color: var(--fx-cream-dim); margin-top: 3px; }

/* ---------- features ---------- */
.fx-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fx-feat {
  background: var(--fx-panel); border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius); padding: 26px 24px;
}
.fx-feat .fx-ico {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px;
  border-radius: 14px; background: rgba(30,127,118,.22); border: 1px solid var(--fx-line);
  margin-bottom: 16px;
}
.fx-feat h3 { font-family: var(--fx-display); font-size: 18px; margin-bottom: 8px; }
.fx-feat p { color: var(--fx-cream-dim); font-size: 14.5px; line-height: 1.55; }

/* ---------- daily bonus ---------- */
.fx-daily {
  display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: center;
  background: linear-gradient(120deg, rgba(30,127,118,.20), rgba(43,35,80,.55));
  border: 1px solid var(--fx-line); border-radius: 24px; padding: 30px;
}
.fx-daily img { filter: drop-shadow(0 18px 26px rgba(0,0,0,.45)); }
.fx-daily h2 { font-family: var(--fx-display); font-size: 26px; text-transform: uppercase; margin-bottom: 10px; }
.fx-daily p { color: var(--fx-cream-dim); line-height: 1.6; margin-bottom: 18px; max-width: 56ch; }
.fx-daily-state { margin-top: 14px; font-weight: 700; font-size: 13.5px; color: var(--fx-sand-hi); }

/* ---------- game shell ---------- */
.fx-game { padding: 30px 0 64px; position: relative; z-index: 2; }
.fx-game-top { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.fx-back { font-weight: 800; font-size: 14px; }
.fx-game-top h1 { font-family: var(--fx-display); font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; }

.fx-machine {
  background: linear-gradient(180deg, rgba(43,35,80,.78), rgba(27,22,56,.85));
  border: 1px solid var(--fx-line); border-radius: 24px; padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 50px rgba(0,0,0,.45);
}
.fx-reels {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  background: var(--fx-indigo-deep); border: 2px solid var(--fx-sand-lo);
  border-radius: 16px; padding: 12px;
}
.fx-reel {
  position: relative; height: 318px; overflow: hidden; border-radius: 10px;
  background: linear-gradient(180deg, rgba(20,16,31,.9), rgba(43,35,80,.5));
  box-shadow: inset 0 14px 22px -14px #000, inset 0 -14px 22px -14px #000;
}
.fx-reel.fx-flash { animation: fx-flash 0.7s ease; }
@keyframes fx-flash {
  0%,100% { box-shadow: inset 0 14px 22px -14px #000, inset 0 -14px 22px -14px #000; }
  50% { box-shadow: inset 0 0 0 3px var(--fx-sand-hi), 0 0 26px rgba(227,169,79,.6); }
}
.fx-band { display: flex; flex-direction: column; will-change: transform; }
.fx-slot { display: grid; place-items: center; padding: 6px; }
.fx-slot img { width: 84%; max-width: 96px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
.fx-reel.fx-blur .fx-band { filter: blur(2.5px); }

.fx-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 18px; flex-wrap: wrap;
}
.fx-bet {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--fx-indigo-deep); border: 1px solid var(--fx-line);
  border-radius: 14px; padding: 8px 12px;
}
.fx-bet .fx-bet-lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--fx-cream-dim); }
.fx-bet button {
  width: 34px; height: 34px; border-radius: 9px; border: none; cursor: pointer;
  font-family: var(--fx-display); font-size: 18px; color: var(--fx-ink);
  background: var(--fx-sand); transition: filter .12s ease;
}
.fx-bet button:hover { filter: brightness(1.1); }
.fx-bet #fx-bet-value { font-family: var(--fx-display); font-size: 20px; min-width: 76px; text-align: center; color: var(--fx-sand-hi); }
.fx-win {
  flex: 1; text-align: center; font-family: var(--fx-display); font-size: 22px;
  color: var(--fx-sand-hi); min-height: 28px; letter-spacing: .5px;
}
.fx-win.fx-pop { animation: fx-pop .5s ease; }
@keyframes fx-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.18); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- paytable ---------- */
.fx-paytable { margin-top: 34px; background: var(--fx-panel); border: 1px solid var(--fx-line); border-radius: 20px; padding: 24px; }
.fx-paytable h2 { font-family: var(--fx-display); font-size: 22px; text-transform: uppercase; margin-bottom: 16px; }
.fx-paytable table { width: 100%; border-collapse: collapse; }
.fx-paytable th, .fx-paytable td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--fx-line); font-size: 14.5px; }
.fx-paytable th { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fx-cream-dim); }
.fx-paytable td img { width: 42px; }
.fx-paytable .fx-note { margin-top: 14px; font-size: 12.5px; color: var(--fx-cream-dim); line-height: 1.55; }

/* ---------- legal pages ---------- */
.fx-legal { max-width: 820px; padding-top: 40px; padding-bottom: 60px; position: relative; z-index: 2; }
.fx-legal h1 { font-family: var(--fx-display); font-size: 38px; text-transform: uppercase; margin-bottom: 6px; }
.fx-legal .fx-updated { color: var(--fx-cream-dim); font-size: 13px; margin-bottom: 26px; }
.fx-legal h2 { font-family: var(--fx-display); font-size: 19px; margin: 28px 0 10px; color: var(--fx-sand-hi); }
.fx-legal p, .fx-legal li { color: var(--fx-cream-dim); line-height: 1.7; font-size: 15.5px; }
.fx-legal ul { margin: 8px 0 8px 22px; }
.fx-legal li { margin-bottom: 6px; }

/* ---------- footer ---------- */
.fx-foot { border-top: 1px solid var(--fx-line); background: rgba(17,13,36,.7); margin-top: 40px; position: relative; z-index: 2; }
.fx-foot .fx-wrap { padding-top: 30px; padding-bottom: 30px; }
.fx-banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(227,169,79,.10); border: 1px solid var(--fx-line);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 26px;
  font-size: 14px; color: var(--fx-cream);
}
.fx-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.fx-foot-grid h3 { font-family: var(--fx-display); font-size: 15px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; color: var(--fx-cream); }
.fx-foot-grid p { color: var(--fx-cream-dim); font-size: 13.5px; line-height: 1.65; }
.fx-foot-grid ul { list-style: none; }
.fx-foot-grid li { margin-bottom: 7px; }
.fx-foot-grid a { font-size: 14px; }
.fx-langs { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fx-langs .fx-cur { font-weight: 800; color: var(--fx-sand); padding: 6px 10px; }
.fx-langs a { padding: 8px 10px; color: var(--fx-cream-dim); font-weight: 700; font-size: 13px; }
.fx-langs a:hover { color: var(--fx-cream); }
.fx-copy { margin-top: 22px; font-size: 12.5px; color: var(--fx-cream-dim); }

/* ---------- toast ---------- */
.fx-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 24px);
  background: var(--fx-indigo-soft); border: 1px solid var(--fx-sand);
  color: var(--fx-cream); font-weight: 700; padding: 13px 22px; border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.5); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; z-index: 90; max-width: 88vw; text-align: center;
}
.fx-toast.fx-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .fx-hero .fx-wrap { grid-template-columns: 1fr; text-align: center; }
  .fx-hero-art { order: -1; }
  .fx-hero-art img { margin: 0 auto; max-width: 300px; }
  .fx-hero-note { display: inline-block; text-align: left; }
  .fx-lobby, .fx-feats { grid-template-columns: repeat(2, 1fr); }
  .fx-daily { grid-template-columns: 1fr; text-align: center; }
  .fx-daily img { max-width: 200px; margin: 0 auto; }
  .fx-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .fx-menu { gap: 12px; }
  .fx-menu a.fx-mlink { display: none; }
  .fx-lobby, .fx-feats, .fx-foot-grid { grid-template-columns: 1fr; }
  .fx-reel { height: 220px; }
  .fx-slot img { max-width: 64px; }
  .fx-hero h1 { font-size: 44px; }
}

/* language switcher (injected) */
.lang-switch { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; font-weight: 800; font-size: 0.8rem; letter-spacing: 1px; }
.lang-switch a, .lang-switch .current { display: inline-block; padding: 8px 10px; color: inherit; opacity: 0.65; text-decoration: none; }
.lang-switch a:hover { opacity: 1; }
.lang-switch .current { opacity: 1; font-weight: 900; border-bottom: 2px solid currentColor; }
