/* ============================================================
   FiddlersWork — site styles
   Palette + type variables read from CSS custom properties so
   Tweaks can rewrite them live.
   ============================================================ */

:root {
  --fw-blue:       #2EA8E5;
  --fw-blue-deep:  #0F62A6;
  --fw-blue-ink:   #0A2A4A;
  --fw-yellow:     #FFC42E;
  --fw-yellow-hot: #FF8A1F;
  --fw-cream:      #FFF6E3;
  --fw-paper:      #FFFBF1;
  --fw-ink:        #14233A;
  --fw-ink-soft:   #2A3B57;

  --fw-bg:         var(--fw-blue-ink);
  --fw-bg-2:       #0E2647;
  --fw-fg:         #FFFFFF;

  --fw-radius:     22px;
  --fw-radius-lg:  34px;
  --fw-shadow:     0 14px 0 -4px rgba(0,0,0,0.18), 0 30px 60px -25px rgba(0,0,0,0.5);
  --fw-shadow-soft:0 18px 40px -22px rgba(0,0,0,0.45);

  --fw-font-display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --fw-font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --fw-font-hand:    "Caveat", "Comic Sans MS", cursive;
}

/* ---- Reset-ish ---- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Keep anchor jumps clear of the sticky nav bar */
html { scroll-padding-top: 80px; }
body {
  font-family: var(--fw-font-body);
  color: var(--fw-fg);
  background: var(--fw-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
   Halftone dot background (echoes in-game "Made for Artists")
   ============================================================ */
.fw-halftone {
  background-color: var(--fw-bg);
  background-image:
    radial-gradient(circle at center, rgba(255,255,255,0.07) 1.4px, transparent 1.6px),
    radial-gradient(circle at center, rgba(255,255,255,0.04) 1.4px, transparent 1.6px);
  background-size: 18px 18px, 18px 18px;
  background-position: 0 0, 9px 9px;
}
.fw-paper {
  background-color: var(--fw-paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(20,35,58,0.045) 0 1px, transparent 1px 28px);
  color: var(--fw-ink);
}
.fw-cream {
  background-color: var(--fw-cream);
  color: var(--fw-ink);
}

/* ============================================================
   Display type — chunky rounded headings, mimic the wordmark feel
   ============================================================ */
.fw-display {
  font-family: var(--fw-font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-wrap: balance;
}
.fw-display-xl { font-size: clamp(56px, 9vw, 132px); }
.fw-display-l  { font-size: clamp(44px, 6vw, 88px);  }
.fw-display-m  { font-size: clamp(32px, 4vw, 58px);  }
.fw-display-s  { font-size: clamp(24px, 2.6vw, 36px);}

.fw-eyebrow {
  font-family: var(--fw-font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  color: var(--fw-yellow);
}
.fw-eyebrow.--dark { color: var(--fw-blue-deep); }

.fw-hand {
  font-family: var(--fw-font-hand);
  font-weight: 600;
}

/* Stroked/chunky text effect — softly mimics 3D wordmark without recreating it */
.fw-stroked {
  color: #fff;
  text-shadow:
    -2px 0 0 var(--fw-blue-ink),
     2px 0 0 var(--fw-blue-ink),
     0 -2px 0 var(--fw-blue-ink),
     0  2px 0 var(--fw-blue-ink),
     0  6px 0 rgba(0,0,0,0.18);
}
.fw-stroked-yellow {
  color: var(--fw-yellow);
  text-shadow:
    -2px 0 0 var(--fw-blue-ink),
     2px 0 0 var(--fw-blue-ink),
     0 -2px 0 var(--fw-blue-ink),
     0  2px 0 var(--fw-blue-ink),
     0  6px 0 rgba(0,0,0,0.25);
}

/* ============================================================
   Buttons + store badges
   ============================================================ */
.fw-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 0;
  font-family: var(--fw-font-display);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  text-decoration: none;
}
.fw-btn:hover { transform: translateY(-2px); }
.fw-btn:active { transform: translateY(1px); }

.fw-btn--yellow {
  background: var(--fw-yellow);
  color: var(--fw-blue-ink);
  box-shadow: 0 6px 0 var(--fw-yellow-hot), 0 16px 30px -12px rgba(0,0,0,0.4);
}
.fw-btn--yellow:hover { box-shadow: 0 8px 0 var(--fw-yellow-hot), 0 22px 38px -14px rgba(0,0,0,0.45); }
.fw-btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}
.fw-btn--ghost:hover { background: rgba(255,255,255,0.14); }

/* Store badge — image-based, just sized */
.fw-store {
  display: inline-block;
  height: 56px;
  border-radius: 12px;
  transition: transform 120ms ease;
}
.fw-store:hover { transform: translateY(-3px); }
.fw-store img { height: 100%; width: auto; display: block; }

/* ============================================================
   Layout helpers
   ============================================================ */
.fw-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
.fw-section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }

/* Squiggle dividers */
.fw-squiggle {
  display: block;
  width: 100%;
  height: 22px;
  color: currentColor;
  opacity: 0.5;
}

/* ============================================================
   NAV
   ============================================================ */
.fw-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,42,74,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fw-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1240px;
  margin: 0 auto;
}
.fw-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fw-font-display);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}
.fw-nav__mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--fw-yellow);
  display: grid; place-items: center;
  font-family: var(--fw-font-display);
  color: var(--fw-blue-ink);
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 4px 0 var(--fw-yellow-hot);
}
.fw-nav__links { display: flex; gap: 28px; align-items: center; }
.fw-nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  transition: color 120ms ease;
}
.fw-nav__links a:hover { color: #fff; }

/* Hamburger button — hidden on desktop, shown ≤720px */
.fw-nav__burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.fw-nav__burger:hover { background: rgba(255,255,255,0.14); }

@media (max-width: 720px) {
  .fw-nav__burger { display: grid; place-items: center; }
  /* Links collapse into a dropdown panel below the nav bar */
  .fw-nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: rgba(10,42,74,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .fw-nav__links.--open { display: flex; }
  .fw-nav__links a { padding: 14px 28px; font-size: 16px; }
  .fw-nav__links a.fw-nav__cta { color: var(--fw-yellow); }
}

/* ============================================================
   HERO
   ============================================================ */
.fw-hero {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.fw-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 940px) {
  .fw-hero__grid { grid-template-columns: 1fr; }
}
.fw-hero__copy h1 { margin: 0 0 24px; }
.fw-hero__lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 0 32px;
}
.fw-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Floating drawings (the playful wallpaper) */
.fw-floaty {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.25));
  animation: fw-bob 6s ease-in-out infinite;
  z-index: 0;
}
/* Hide the side-edge floaties on narrower screens where they collide
   with the hero headline / canvas. */
@media (max-width: 1180px) {
  .fw-floaty--wide { display: none; }
}
@keyframes fw-bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 2deg)); }
}

/* ============================================================
   Draw canvas (interactive easter egg)
   ============================================================ */
.fw-draw-card {
  position: relative;
  background: #fff;
  border-radius: var(--fw-radius-lg);
  box-shadow: var(--fw-shadow);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-width: 480px;
  margin: 0 auto;
  border: 6px solid #fff;
}
.fw-draw-card__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), transparent);
  pointer-events: none;
  z-index: 3;
}
.fw-draw-card__word {
  font-family: var(--fw-font-display);
  color: var(--fw-blue-ink);
  font-size: 14px;
  font-weight: 600;
}
.fw-draw-card__word b { color: var(--fw-yellow-hot); font-size: 22px; display:block; }
.fw-draw-card canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  cursor: crosshair;
  touch-action: none;
}
.fw-draw-card__tools {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--fw-blue-ink);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 3;
}
.fw-draw-card__swatches { display: flex; gap: 8px; align-items: center; }
.fw-swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: transform 100ms ease;
  padding: 0;
}
.fw-swatch:hover { transform: scale(1.1); }
.fw-swatch.--active {
  border-color: var(--fw-yellow);
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--fw-blue-ink), 0 0 0 4px var(--fw-yellow);
}
.fw-draw-card__clear {
  background: rgba(255,255,255,0.1);
  border: 0;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--fw-font-display);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.fw-draw-card__clear:hover { background: rgba(255,255,255,0.2); }
.fw-draw-card__hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: rgba(20,35,58,0.35);
  font-family: var(--fw-font-hand);
  font-size: 32px;
  text-align: center;
  z-index: 1;
  transition: opacity 300ms ease;
}

/* ============================================================
   Stats strip
   ============================================================ */
.fw-stats {
  background: var(--fw-yellow);
  color: var(--fw-blue-ink);
  padding: 36px 0;
  position: relative;
  overflow: hidden;
}
.fw-stats__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}
@media (max-width: 760px) {
  .fw-stats__row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
.fw-stat__num {
  font-family: var(--fw-font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  color: var(--fw-blue-ink);
}
.fw-stat__label {
  font-family: var(--fw-font-display);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  color: var(--fw-blue-deep);
}

/* ============================================================
   Game feature blocks
   ============================================================ */
.fw-game {
  position: relative;
}
.fw-game__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.fw-game__grid.--reverse { grid-template-columns: 1.1fr 1fr; }
@media (max-width: 920px) {
  .fw-game__grid,
  .fw-game__grid.--reverse { grid-template-columns: 1fr; }
}
.fw-game__phones {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 16px;
  perspective: 1200px;
}
.fw-phone {
  width: 100%;
  max-width: 260px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
  border: 6px solid #1a1a1a;
  background: #1a1a1a;
  transition: transform 400ms ease;
}
.fw-phone img { display:block; width: 100%; height: 100%; object-fit: cover; }
.fw-phone--back {
  position: absolute;
  left: 50%;
  transform: translate(-95%, 12%) rotate(-8deg);
  max-width: 220px;
  opacity: 0.85;
  filter: brightness(0.8);
  z-index: 0;
}
.fw-phone--front {
  position: relative;
  z-index: 1;
  transform: rotate(2deg);
}
.fw-phone--back-r {
  position: absolute;
  left: 50%;
  transform: translate(-5%, 12%) rotate(8deg);
  max-width: 220px;
  opacity: 0.85;
  filter: brightness(0.8);
  z-index: 0;
}

.fw-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}
.fw-mode {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 16px;
}
.fw-mode__t {
  font-family: var(--fw-font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fw-yellow);
  margin-bottom: 4px;
}
.fw-mode__d {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.fw-game__copy h2 { margin: 16px 0 18px; }
.fw-game__lede {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
}
.fw-game__rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--fw-font-display);
  font-weight: 600;
  color: rgba(255,255,255,0.82);
}
.fw-stars { color: var(--fw-yellow); letter-spacing: 2px; font-size: 18px; }

.fw-stores { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ============================================================
   Gallery wall
   ============================================================ */
.fw-gallery {
  background: var(--fw-cream);
  color: var(--fw-ink);
  position: relative;
}
.fw-gallery__head {
  text-align: center;
  margin-bottom: 56px;
}
.fw-gallery__head h2 { color: var(--fw-blue-ink); margin: 14px 0; }
.fw-gallery__head p { font-size: 18px; color: var(--fw-ink-soft); max-width: 580px; margin: 0 auto; }

.fw-wall {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.fw-art {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 30px -18px rgba(20,35,58,0.4);
  padding: 12px 12px 36px;
  position: relative;
  transition: transform 200ms ease;
}
.fw-art:hover { transform: translateY(-4px) rotate(0deg) !important; }
.fw-art img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #fff;
}
.fw-art__cap {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--fw-font-hand);
  font-size: 18px;
  color: var(--fw-ink-soft);
}
.fw-art__pin {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #c0392b);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Hero row: 3 large; supporting row: 4 smaller. */
.fw-art--hero  { grid-column: span 4; }
.fw-art--small { grid-column: span 3; }
.fw-wall .fw-art:nth-child(1)  { transform: rotate(-2deg); }
.fw-wall .fw-art:nth-child(2)  { transform: rotate(1.5deg); }
.fw-wall .fw-art:nth-child(3)  { transform: rotate(-1deg); }
.fw-wall .fw-art:nth-child(4)  { transform: rotate(2deg); }
.fw-wall .fw-art:nth-child(5)  { transform: rotate(-1.5deg); }
.fw-wall .fw-art:nth-child(6)  { transform: rotate(1deg); }
.fw-wall .fw-art:nth-child(7)  { transform: rotate(-2deg); }
@media (max-width: 760px) {
  .fw-art--hero,
  .fw-art--small { grid-column: span 6 !important; transform: none !important; }
}

/* ============================================================
   Word Hunt secondary block
   ============================================================ */
.fw-word {
  background: linear-gradient(180deg, var(--fw-bg) 0%, #082040 100%);
  position: relative;
}
.fw-word__card {
  background: linear-gradient(160deg, #1a3d6e 0%, #0a2a4a 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--fw-radius-lg);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--fw-shadow-soft);
  position: relative;
  overflow: hidden;
}
@media (max-width: 820px) {
  .fw-word__card { grid-template-columns: 1fr; }
}
.fw-wh-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  background: rgba(255,255,255,0.04);
  padding: 14px;
  border-radius: 16px;
  max-width: 360px;
  margin: 0 auto;
}
.fw-wh-cell {
  aspect-ratio: 1;
  background: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--fw-font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--fw-blue-ink);
  position: relative;
}
.fw-wh-cell.--hot {
  background: var(--fw-yellow);
  color: var(--fw-blue-ink);
  box-shadow: 0 0 0 3px var(--fw-yellow-hot);
}

/* ============================================================
   About
   ============================================================ */
.fw-about {
  background: var(--fw-paper);
  color: var(--fw-ink);
}
.fw-about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 820px) {
  .fw-about__grid { grid-template-columns: 1fr; }
}
.fw-about__lede {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--fw-ink);
  margin: 16px 0 24px;
  font-family: var(--fw-font-display);
  font-weight: 500;
}
.fw-about__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fw-ink-soft);
  max-width: 580px;
}
.fw-about__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.fw-pillar {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(20,35,58,0.06);
  box-shadow: 0 10px 30px -22px rgba(20,35,58,0.4);
}
.fw-pillar h4 {
  font-family: var(--fw-font-display);
  font-size: 20px;
  margin: 6px 0 6px;
  color: var(--fw-blue-deep);
}
.fw-pillar p { font-size: 14px; line-height: 1.5; color: var(--fw-ink-soft); margin: 0; }

/* Contact card */
.fw-contact {
  background: var(--fw-blue-ink);
  border-radius: var(--fw-radius-lg);
  padding: clamp(40px, 5vw, 64px);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.fw-contact h2 { color: #fff; margin: 0 0 12px; }
.fw-contact p {
  color: rgba(255,255,255,0.72);
  font-size: 18px;
  margin: 0 auto 24px;
  max-width: 440px;
}
.fw-contact__email {
  display: inline-block;
  background: var(--fw-yellow);
  color: var(--fw-blue-ink);
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--fw-font-display);
  font-weight: 600;
  font-size: 18px;
  box-shadow: 0 6px 0 var(--fw-yellow-hot);
  transition: transform 150ms ease;
}
.fw-contact__email:hover { transform: translateY(-2px); }

/* ============================================================
   Footer
   ============================================================ */
.fw-footer {
  background: #061a31;
  color: rgba(255,255,255,0.6);
  padding: 56px 0 28px;
  font-size: 14px;
}
.fw-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fw-footer__brand {
  display: flex; align-items: center; gap: 12px;
  color: #fff; font-family: var(--fw-font-display); font-weight: 700;
  font-size: 18px;
}
.fw-footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.fw-footer__nav a { color: rgba(255,255,255,0.7); }
.fw-footer__nav a:hover { color: #fff; }
.fw-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
}
.fw-footer__legal { display: flex; gap: 18px; }

/* small sticker */
.fw-pencil-mark {
  display: inline-block;
  transform: rotate(-8deg);
  color: var(--fw-yellow);
}
