/* flametale.dev: warm plum and cream, like Squadlings. Fredoka (OFL) is served from this site. */
@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url('/fonts/fredoka-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('/fonts/fredoka-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #2b1f24;
  --bg-2: #33252b;
  --panel: #3d2c33;
  --line: #57404a;
  --ink: #f6ead8;
  --dim: #c9b6a6;
  --accent: #ffb04a;
  --accent-ink: #3a2208;
  --ember: #f0703c;
  --sky: #8ec9f0;
  --radius: 18px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffc878; }
h1, h2, h3, .brand, .btn, .eyebrow, .tag, .stats strong { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; letter-spacing: 0.005em; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 0 0 18px; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 24px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.muted { color: var(--dim); }
.small { font-size: 14px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--dim); max-width: 46ch; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center img { margin: 0 auto 12px; }
.section { padding-top: 56px; padding-bottom: 8px; }
.section-title { margin-bottom: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: 14px; letter-spacing: 0.12em; margin-bottom: 10px; }
.eyebrow a { text-decoration: none; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(43, 31, 36, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(87, 64, 74, 0.6); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 22px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--dim); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 16px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); background: var(--panel); }

/* buttons */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: 12px 22px; border-radius: 999px; font-size: 17px; box-shadow: 0 3px 0 #c97a1c; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 4px 0 #c97a1c; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #c97a1c; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--accent); color: var(--ink); }

/* hero */
.hero { background: radial-gradient(900px 480px at 78% 30%, rgba(255, 176, 74, 0.18), transparent 70%), radial-gradient(700px 400px at 10% 0%, rgba(142, 201, 240, 0.10), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero-icon { border-radius: 22px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.hero-art { position: relative; height: 360px; }
.isle { position: absolute; left: 50%; bottom: 40px; width: 360px; max-width: 92%; height: 70px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, #7fbf5a, #4f8a3c 70%, transparent 72%); box-shadow: 0 34px 0 -14px #6b4a32, 0 52px 0 -22px #4e3424; }
.walker { position: absolute; left: 50%; bottom: 78px; width: 230px; transform: translateX(-50%); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3)); }
.side { position: absolute; bottom: 82px; width: 120px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.3)); animation: bob 2.6s ease-in-out infinite; }
.side-l { left: calc(50% - 200px); }
.side-r { left: calc(50% + 90px); animation-delay: -1.3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .side { animation: none; } html { scroll-behavior: auto; } }
.hero-shot .shot { max-width: 300px; margin: 0 auto; }

/* games */
.games { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 760px; }
.game { display: flex; gap: 20px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.game.feature { background: linear-gradient(140deg, #4a3138, var(--panel)); }
.game-icon { width: 88px; height: 88px; border-radius: 20px; flex: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.tag { color: var(--sky); font-size: 14px; margin-bottom: 6px; }

/* news */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.posts.list { grid-template-columns: 1fr; margin-top: 26px; }
.post-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.post-card time { color: var(--dim); font-size: 14px; }
.post-card h3 { font-size: 21px; margin: 6px 0 8px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--dim); margin: 0; }

/* call to action */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, #5a2f2a, #3d2c33 60%); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; }
.cta h2 { margin-bottom: 6px; }
.cta p { color: var(--dim); margin: 0; }

/* game page */
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.stats strong { display: block; font-size: 40px; color: var(--accent); line-height: 1.1; }
.stats span { color: var(--dim); }
.features { display: grid; gap: 48px; }
.feature-row { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; }
.feature-row.flip { grid-template-columns: 300px 1fr; }
.feature-row.flip > div { order: 2; }
.feature-row p { color: var(--dim); max-width: 52ch; }
.shot { margin: 0; }
.shot img { border-radius: 22px; border: 6px solid #1c1418; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); background: #1c1418; }
.shot figcaption { color: var(--dim); font-size: 14px; text-align: center; margin-top: 10px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.monster-strip { display: flex; justify-content: center; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 10px 0; }
.monster-strip img { width: 170px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3)); }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 0; font-family: 'Fredoka', system-ui, sans-serif; font-weight: 500; font-size: 19px; }
.faq details p { color: var(--dim); }

/* articles */
.prose h2 { margin-top: 34px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .btn { margin-top: 6px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2 { margin-top: 0; font-size: 24px; }
.card p { color: var(--dim); }
.card .btn { word-break: break-all; }

/* footer */
.foot { margin-top: 80px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 34px 0 20px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.foot-in .brand { font-size: 19px; margin-bottom: 8px; }
.foot-nav { display: flex; gap: 6px 18px; flex-wrap: wrap; align-content: flex-start; max-width: 460px; }
.foot-nav a { color: var(--dim); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); }

/* phones and tablets */
@media (max-width: 900px) {
  .hero-in, .games, .feature-row, .feature-row.flip { grid-template-columns: 1fr; }
  .feature-row.flip > div { order: 0; }
  .feature-row .shot, .hero-shot .shot { max-width: 280px; margin: 0 auto; }
  .posts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-art { height: 300px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top-in { padding-top: 8px; padding-bottom: 8px; }
  .nav a { padding: 6px 9px; font-size: 15px; }
  .game { flex-direction: column; padding: 20px; }
  .contact-cards { grid-template-columns: 1fr; }
  .cta { padding: 24px; }
  .side { width: 90px; }
  .side-l { left: calc(50% - 150px); }
  .side-r { left: calc(50% + 62px); }
  .walker { width: 180px; }
  .isle { width: 300px; }
}
