/* =========================================================
   Fortune Smash Gala — Carnival Tower Stack Landing
   Differentiated layout: vertical tower spine + beach carnival
   Palette from game art: sky blue + sand gold + ocean teal
   ========================================================= */

:root {
  --sky: #4ba4f4;
  --sky-deep: #1a7fd4;
  --sky-soft: #a8d8ff;
  --ocean: #00aeef;
  --sand: #fdc858;
  --sand-deep: #e8a820;
  --orange: #ff8c00;
  --cream: #fff8e7;
  --wood: #c4783a;
  --wood-dark: #8b4e22;
  --ink: #1a3a5c;
  --ink-soft: #3d5a7a;
  --white: #ffffff;
  --ice: #7ec8f8;
  --gold: #ffd700;
  --shadow: 0 12px 32px rgba(26, 63, 92, 0.18);
  --radius-block: 22px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(180deg, #6ec1f5 0%, #8ed0f8 28%, #c8e9fb 52%, #f5e6b8 78%, #f0d78a 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

.fsg-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.fsg-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ---- Ambient sky ---- */
.fsg-sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.fsg-sunburst {
  position: absolute;
  top: -10%;
  left: 50%;
  width: min(90vw, 720px);
  height: min(90vw, 720px);
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 216, 80, 0.25) 30%,
    transparent 68%
  );
  animation: fsg-pulse 8s ease-in-out infinite;
}

.fsg-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  filter: blur(2px);
}

.fsg-cloud--1 {
  width: 140px;
  height: 48px;
  top: 12%;
  left: 8%;
  animation: fsg-drift 28s linear infinite;
}

.fsg-cloud--2 {
  width: 100px;
  height: 36px;
  top: 22%;
  right: 12%;
  animation: fsg-drift 36s linear infinite reverse;
}

.fsg-cloud--3 {
  width: 160px;
  height: 52px;
  top: 8%;
  right: 30%;
  opacity: 0.7;
  animation: fsg-drift 42s linear infinite;
}

@keyframes fsg-drift {
  from { transform: translateX(0); }
  to { transform: translateX(40px); }
}

@keyframes fsg-pulse {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

/* ---- Header ---- */
.fsg-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  transition: padding 0.25s var(--ease), background 0.25s var(--ease);
}

.fsg-header.is-scrolled {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.fsg-nav {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.85rem 0.55rem 0.75rem;
  background: rgba(255, 248, 231, 0.88);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.fsg-header.is-scrolled .fsg-nav {
  box-shadow: 0 8px 24px rgba(26, 63, 92, 0.2);
}

.fsg-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.fsg-brand img {
  border-radius: 12px;
  box-shadow: 0 4px 0 rgba(26, 127, 212, 0.35);
  flex-shrink: 0;
}

.fsg-brand__name {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
}

.fsg-brand__fortune { color: var(--sky-deep); }
.fsg-brand__smash {
  background: linear-gradient(180deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.5px rgba(26, 58, 92, 0.15);
}
.fsg-brand__gala { color: var(--ink); }

.fsg-nav__links {
  display: none;
  gap: 0.15rem;
}

.fsg-nav__links a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.fsg-nav__links a:hover,
.fsg-nav__links a:focus-visible {
  color: var(--sky-deep);
  background: rgba(75, 164, 244, 0.12);
  outline: none;
}

.fsg-nav__end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fsg-burger {
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 12px;
  background: rgba(75, 164, 244, 0.15);
}

.fsg-burger span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.fsg-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.fsg-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.fsg-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.fsg-drawer {
  position: fixed;
  top: calc(var(--header-h) + 0.5rem);
  left: 1rem;
  right: 1rem;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.fsg-drawer[hidden] { display: none !important; }

.fsg-drawer a {
  padding: 0.85rem 1rem;
  font-weight: 700;
  border-radius: 14px;
  background: rgba(75, 164, 244, 0.08);
}

.fsg-drawer a:hover { background: rgba(75, 164, 244, 0.18); }

/* ---- Buttons ---- */
.fsg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 800;
  border-radius: 16px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, filter 0.2s;
}

.fsg-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.fsg-btn:active {
  transform: translateY(2px);
}

.fsg-btn--cannon {
  padding: 0.65rem 1.15rem;
  color: var(--white);
  background: linear-gradient(180deg, #ffb347 0%, var(--orange) 55%, #e07000 100%);
  border: 2px solid #fff3d0;
  box-shadow:
    0 5px 0 #c45e00,
    0 8px 16px rgba(224, 112, 0, 0.35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.fsg-btn--cannon:hover {
  box-shadow:
    0 6px 0 #c45e00,
    0 12px 20px rgba(224, 112, 0, 0.4);
}

.fsg-btn--cannon:active {
  box-shadow: 0 2px 0 #c45e00;
}

.fsg-btn--store {
  padding: 0.55rem 1.1rem;
  min-width: 168px;
  color: var(--white);
  background: linear-gradient(180deg, #2a2a2a, #111);
  border: 2px solid #444;
  border-radius: 14px;
  box-shadow: 0 6px 0 #000, 0 10px 20px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.fsg-btn--store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 1rem;
}

.fsg-btn--store small {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.85;
}

.fsg-btn--store i {
  font-size: 1.55rem;
}

.fsg-btn--play {
  background: linear-gradient(180deg, #3d9a3d, #1f6b1f);
  border-color: #5cbc5c;
  box-shadow: 0 6px 0 #145014, 0 10px 20px rgba(20, 80, 20, 0.3);
}

.fsg-btn--block {
  width: 100%;
  margin-top: 0.35rem;
}

.fsg-nav__end .fsg-btn--cannon {
  display: none;
}

/* ---- Main / Hero ---- */
#fsg-main {
  position: relative;
  z-index: 1;
}

.fsg-hero {
  position: relative;
  min-height: min(100dvh, 920px);
  padding: calc(var(--header-h) + 1.25rem) 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fsg-hero__stage {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.fsg-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.9rem;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky-deep);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(26, 127, 212, 0.15);
}

.fsg-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.fsg-display__line {
  display: block;
  color: var(--white);
  text-shadow:
    0 2px 0 #1a7fd4,
    0 4px 0 #1568b0,
    0 8px 18px rgba(26, 58, 92, 0.35),
    -2px -2px 0 #1a5f9e,
    2px 2px 0 #1a5f9e;
}

.fsg-display__line--accent {
  background: linear-gradient(180deg, #ffe566 0%, #ffb020 45%, #ff7a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #1a5f9e) drop-shadow(0 6px 12px rgba(26, 58, 92, 0.3));
  -webkit-text-stroke: 1px rgba(26, 95, 158, 0.35);
}

.fsg-hero__lead {
  max-width: 34ch;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.fsg-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero right visual — fan phones + short pedestal (balanced vs copy) */
.fsg-visual {
  position: relative;
  width: min(100%, 340px);
  margin: 0 auto;
  padding-bottom: 1.25rem;
}

.fsg-phones {
  position: relative;
  z-index: 3;
  height: clamp(320px, 52vw, 440px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.fsg-phone {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: var(--sky-soft);
  aspect-ratio: 405 / 720;
  box-shadow:
    0 14px 28px rgba(26, 58, 92, 0.28),
    inset 0 0 0 1px rgba(75, 164, 244, 0.2);
}

.fsg-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fsg-phone--main {
  position: relative;
  z-index: 3;
  width: min(58%, 210px);
  animation: fsg-float 4.5s ease-in-out infinite;
}

.fsg-phone--side {
  position: absolute;
  bottom: 8%;
  width: min(42%, 150px);
  z-index: 1;
  opacity: 0.92;
  filter: saturate(0.95) brightness(0.97);
}

.fsg-phone--left {
  left: 0;
  transform: rotate(-12deg) translateY(12px);
  z-index: 2;
}

.fsg-phone--right {
  right: 0;
  transform: rotate(12deg) translateY(18px);
  z-index: 1;
}

@keyframes fsg-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.fsg-pedestal {
  position: relative;
  z-index: 2;
  margin-top: -6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fsg-pedestal__plank {
  width: 72%;
  height: 14px;
  background: linear-gradient(180deg, #e8b070, var(--wood) 45%, var(--wood-dark));
  border-radius: 6px;
  box-shadow: 0 5px 10px rgba(139, 78, 34, 0.35);
}

.fsg-pedestal__leg {
  width: 22px;
  height: 36px;
  background: linear-gradient(90deg, #9a5a28, #d4894a 42%, #8b4e22);
  border-radius: 0 0 5px 5px;
  box-shadow: 3px 0 6px rgba(0, 0, 0, 0.12);
}

.fsg-pedestal__glow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 36px;
  background: radial-gradient(ellipse at center, rgba(253, 200, 88, 0.75) 0%, transparent 70%);
  pointer-events: none;
}

/* Wave */
.fsg-wave {
  color: rgba(255, 248, 231, 0.95);
  line-height: 0;
  margin-top: -1px;
}

.fsg-wave svg {
  width: 100%;
  height: 48px;
  display: block;
}

/* ---- Features: stacked spine ---- */
.fsg-features {
  position: relative;
  padding: 3.5rem 1.25rem 4rem;
  background: linear-gradient(180deg, rgba(255, 248, 231, 0.95) 0%, #fff3d0 100%);
}

.fsg-section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.fsg-section-head--light .fsg-h2,
.fsg-section-head--light p {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(26, 58, 92, 0.35);
}

.fsg-section-head p {
  margin-top: 0.65rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.fsg-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.fsg-h2 em {
  font-style: normal;
  background: linear-gradient(180deg, #ffe566, #ff8c00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Vertical stacked blocks on a peg spine — NOT a grid */
.fsg-spine {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fsg-spine__peg {
  width: 14px;
  height: 28px;
  background: linear-gradient(90deg, #9a5a28, #d4894a, #8b4e22);
  border-radius: 4px;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.12);
}

.fsg-block {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-block);
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow), inset 0 2px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.25s var(--ease);
}

.fsg-block:hover {
  transform: translateY(-3px) rotate(-0.5deg);
}

.fsg-block--ice {
  background: linear-gradient(145deg, #b8e4ff, #6ec1f5 60%, #4ba4f4);
  color: var(--ink);
}

.fsg-block--wood {
  background: linear-gradient(145deg, #f0c090, #d4894a 55%, #c4783a);
  color: #3d2208;
}

.fsg-block--gold {
  background: linear-gradient(145deg, #ffe566, #fdc858 50%, #ff8c00);
  color: #4a2a00;
}

.fsg-block--ocean {
  background: linear-gradient(145deg, #7ee0ff, #00aeef 55%, #1a7fd4);
  color: #062a44;
}

.fsg-block__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  font-size: 1.35rem;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.fsg-block__body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.fsg-block__body p {
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.92;
}

/* Alternate slight offsets for tower feel */
.fsg-block:nth-of-type(odd) { transform: rotate(-1deg); }
.fsg-block:nth-of-type(even) { transform: rotate(1deg); }
.fsg-block:nth-of-type(odd):hover { transform: translateY(-3px) rotate(-1.5deg); }
.fsg-block:nth-of-type(even):hover { transform: translateY(-3px) rotate(1.5deg); }

/* ---- Screenshots boardwalk ---- */
.fsg-shots {
  padding: 4rem 0 3.5rem;
  background:
    linear-gradient(180deg, var(--sky) 0%, var(--ocean) 55%, #3d9fd4 100%);
  overflow: hidden;
}

.fsg-boardwalk {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.fsg-shot {
  flex: 0 0 min(220px, 62vw);
  scroll-snap-align: center;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 36px rgba(10, 50, 90, 0.4);
  transform: rotate(-2deg);
  background: var(--sky-soft);
  transition: transform 0.3s var(--ease);
}

.fsg-shot--lift {
  transform: rotate(2deg) translateY(-18px);
}

.fsg-shot:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.03);
}

.fsg-shot img {
  width: 100%;
  aspect-ratio: 405 / 720;
  object-fit: cover;
}

/* ---- How to play ---- */
.fsg-play {
  padding: 4rem 1.25rem;
  background: linear-gradient(180deg, #fff3d0, var(--cream));
}

.fsg-steps {
  display: grid;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 2.5rem;
}

.fsg-step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.fsg-step__can {
  width: 72px;
  height: 88px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f5f5f5, #d8d8d8);
  border-radius: 12px 12px 10px 10px;
  border: 3px solid #9ad8f5;
  box-shadow:
    0 10px 0 rgba(26, 58, 92, 0.12),
    inset 0 -8px 0 rgba(0, 174, 239, 0.25),
    0 0 24px rgba(0, 174, 239, 0.35);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sky-deep);
  position: relative;
}

.fsg-step__can::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 14px;
  background: linear-gradient(180deg, #d4894a, #8b4e22);
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.fsg-step__can--gold {
  background: linear-gradient(180deg, #ffe566, #e8a820);
  border-color: #ff8c00;
  color: #6a3a00;
  box-shadow:
    0 10px 0 rgba(139, 78, 34, 0.2),
    inset 0 -8px 0 rgba(255, 140, 0, 0.3),
    0 0 28px rgba(255, 200, 40, 0.5);
}

.fsg-step h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 1.1rem 0 0.4rem;
}

.fsg-step p {
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 22ch;
  margin: 0 auto;
}

.fsg-banner {
  max-width: 920px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.fsg-banner img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

/* ---- Download ---- */
.fsg-download {
  padding: 2rem 1.25rem 4.5rem;
  background: linear-gradient(180deg, var(--cream), #f5e6b8);
}

.fsg-download__card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(160deg, #ffffff 0%, #e8f6ff 100%);
  border-radius: 32px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 16px 40px rgba(26, 127, 212, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
  position: relative;
}

.fsg-download__card::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--sand), transparent 40%, var(--sky-soft));
  z-index: -1;
  opacity: 0.6;
}

.fsg-download__icon {
  margin: 0 auto 1rem;
  border-radius: 22px;
  box-shadow: 0 8px 0 rgba(26, 127, 212, 0.25);
}

.fsg-download__card .fsg-h2 {
  margin-bottom: 0.5rem;
}

.fsg-download__card > p {
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.fsg-download__card .fsg-hero__ctas {
  justify-content: center;
}

/* ---- Footer ---- */
.fsg-footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem 2rem;
  background: linear-gradient(180deg, #1a7fd4, #0d5a9e);
  color: rgba(255, 255, 255, 0.92);
}

.fsg-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.fsg-brand--footer {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.fsg-brand--footer img {
  border-radius: 10px;
}

.fsg-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.fsg-footer__links a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.fsg-footer__links a:hover {
  opacity: 1;
  color: var(--sand);
}

.fsg-footer__copy {
  font-size: 0.88rem;
  opacity: 0.75;
  font-weight: 600;
}

/* ---- Modal ---- */
.fsg-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.fsg-modal[hidden] { display: none !important; }

.fsg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 40, 70, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.fsg-modal__panel {
  position: relative;
  width: min(100%, 400px);
  padding: 2.25rem 1.75rem 1.75rem;
  text-align: center;
  background: linear-gradient(180deg, #fff8e7, #ffe9a8);
  border-radius: 28px;
  border: 3px solid #fff;
  box-shadow: 0 24px 48px rgba(10, 40, 70, 0.35);
  overflow: hidden;
}

.fsg-modal__burst {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 200, 40, 0.5), transparent 70%);
  pointer-events: none;
}

.fsg-modal__x {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.fsg-modal__x:hover {
  background: rgba(0, 0, 0, 0.06);
}

.fsg-modal__panel h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
  position: relative;
}

.fsg-modal__panel p {
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.35rem;
  position: relative;
}

.fsg-modal__panel .fsg-btn {
  position: relative;
  min-width: 140px;
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .fsg-nav__end .fsg-btn--cannon {
    display: inline-flex;
  }

  .fsg-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .fsg-visual {
    width: min(100%, 380px);
  }

  .fsg-phones {
    height: 460px;
  }
}

@media (min-width: 900px) {
  .fsg-burger { display: none; }

  .fsg-nav__links {
    display: flex;
  }

  .fsg-hero {
    padding-bottom: 2.5rem;
  }

  .fsg-hero__stage {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    gap: 2.5rem;
    align-items: center;
  }

  .fsg-visual {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: 0;
  }

  .fsg-phones {
    height: 480px;
  }

  .fsg-phone--main {
    width: 220px;
  }

  .fsg-phone--side {
    width: 158px;
  }

  .fsg-boardwalk {
    justify-content: center;
    overflow: visible;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
  }

  .fsg-shot {
    flex: 0 0 180px;
  }
}

@media (min-width: 1100px) {
  .fsg-shot {
    flex: 0 0 200px;
  }

  .fsg-hero__stage {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 420px);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .fsg-sunburst,
  .fsg-cloud,
  .fsg-phone--main {
    animation: none !important;
  }

  .fsg-btn,
  .fsg-block,
  .fsg-shot {
    transition: none !important;
  }
}
