/* Geger Studio — shared styles. Palette & font follow the KataKita game (lib/theme.dart). */
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --cream: #FBF2E4;
  --card: #FFF9F1;
  --teal: #137C78;
  --teal-dark: #0C5C59;
  --ink: #103B39;
  --ink-soft: #5E7C79;
  --orange: #F0883A;
  --orange-dark: #D06A1F;
  --peach: #FAD6A8;
  --coin: #F6B92B;
  --mint: #CDEBE5;
  --line: #EADBC4;
  --shadow: 0 10px 28px rgba(90, 58, 18, .10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream) url("img/pattern.webp") repeat;
  background-size: 520px;
  color: var(--ink);
  font: 400 17px/1.65 "Fredoka", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); font-weight: 600; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 14px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar { padding: 18px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: 46px; }
.brand span { font-size: 1.45rem; font-weight: 700; color: var(--orange); }
.brand span b { color: var(--teal); font-weight: 700; }
.topnav { display: flex; gap: 6px; }
.topnav a {
  text-decoration: none; color: var(--ink); font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
}
.topnav a:hover { background: var(--card); color: var(--teal); }

/* ---------- chunky game buttons (like KButton) ---------- */
.btn {
  --c: var(--orange); --d: var(--orange-dark);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1.05rem;
  padding: 13px 24px 12px; border-radius: 18px;
  box-shadow: 0 5px 0 var(--d), var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 var(--d), var(--shadow); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--d); }
.btn.teal { --c: var(--teal); --d: var(--teal-dark); }
.btn.ghost { background: var(--card); color: var(--teal); box-shadow: 0 5px 0 var(--line), var(--shadow); }
.btn.ghost:hover { color: var(--teal-dark); box-shadow: 0 7px 0 var(--line), var(--shadow); }

/* ---------- hero ---------- */
.hero { padding: 24px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; }
.eyebrow {
  display: inline-block; background: var(--mint); color: var(--teal-dark);
  font-weight: 600; font-size: .9rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); }
.hero h1 .o { color: var(--orange); }
.hero h1 .t { color: var(--teal); }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); margin: 18px 0 28px; max-width: 32ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .wrap > * { min-width: 0; }
.hero-art { width: 100%; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }

/* ---------- sections ---------- */
section.block { padding: 40px 0; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.section-title h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.section-title .tile {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  background: var(--card); border-radius: 10px; color: var(--teal); font-weight: 700;
  box-shadow: 0 4px 0 var(--line); transform: rotate(-6deg); align-self: center;
}
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--line), var(--shadow);
}

/* game card */
.games { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.games > *, .about > * { min-width: 0; }
.game { display: grid; grid-template-columns: 132px 1fr; gap: 22px; padding: 26px; align-items: start; }
.game .icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 6px 0 var(--teal-dark); }
.game h3 { font-size: 2rem; color: var(--teal); }
.game h3 span { color: var(--orange); }
.game .tag { color: var(--ink-soft); margin: 6px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; padding: 0; list-style: none; }
.chips li {
  background: var(--cream); border: 2px solid var(--line); color: var(--ink);
  padding: 4px 12px; border-radius: 999px; font-weight: 500; font-size: .92rem;
}
.soon {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem;
  color: var(--orange-dark); background: #FDE6CF; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.game .links { display: flex; flex-wrap: wrap; gap: 12px; }
.next {
  padding: 26px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: 3px dashed var(--line); box-shadow: none;
}
.next img { width: 120px; margin-bottom: 10px; }
.next h3 { font-size: 1.35rem; margin-bottom: 6px; }
.next p { color: var(--ink-soft); margin: 0; }

/* about */
.about { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about .card { padding: 22px; }
.about .emoji {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 14px;
  box-shadow: 0 4px 0 rgba(12, 92, 89, .18); transform: rotate(-5deg);
}
.about h3 { font-size: 1.2rem; margin-bottom: 6px; }
.about p { color: var(--ink-soft); margin: 0; }

/* contact */
.contact { position: relative; margin-top: 90px; padding: 40px 28px 34px; text-align: center; background: var(--teal); color: #fff; box-shadow: 0 7px 0 var(--teal-dark), var(--shadow); }
.contact .peek { position: absolute; left: 50%; bottom: calc(100% - 4px); width: 170px; transform: translateX(-50%); }
.contact h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 8px; }
.contact p { color: var(--mint); }
.contact .btn { margin-top: 6px; }

footer { padding: 34px 0 40px; color: var(--ink-soft); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
footer a { color: var(--ink-soft); font-weight: 500; }

/* ---------- privacy page ---------- */
.doc-head { padding: 12px 0 28px; }
.doc-head .wrap { display: grid; grid-template-columns: 1fr 150px; gap: 24px; align-items: center; }
.doc-head h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
.doc-head h1 .t { color: var(--teal); }
.doc-head h1 .o { color: var(--orange); }
.doc-head .meta { color: var(--ink-soft); margin: 10px 0 18px; }
.lang { display: flex; flex-wrap: wrap; gap: 10px; }
.lang a {
  text-decoration: none; background: var(--card); color: var(--teal);
  padding: 8px 16px; border-radius: 999px; box-shadow: 0 4px 0 var(--line);
}
.lang a:hover { transform: translateY(-1px); }
.doc, .doc-head .wrap { width: min(860px, 100% - 32px); }
.doc section { padding: 10px 30px 22px; margin-bottom: 26px; scroll-margin-top: 16px; }
.doc h2 { color: var(--teal); font-size: 1.6rem; margin: 22px 0 12px; }
.doc h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.12rem; font-weight: 600; margin: 22px 0 8px;
}
.doc h3 .n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  background: var(--orange); color: #fff; border-radius: 9px; font-size: .95rem;
  box-shadow: 0 3px 0 var(--orange-dark);
}
.doc p, .doc li { color: #2C4E4B; }
.doc ul { padding-left: 1.2em; margin: 0 0 12px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--orange); }
.back { margin: 0 0 8px; }

@media (max-width: 860px) {
  .hero .wrap, .games { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin-inline: auto; order: -1; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topnav a:not(:last-child) { display: none; }
  .game { grid-template-columns: 1fr; padding: 22px; }
  .game .icon { width: 96px; height: 96px; border-radius: 24px; }
  .doc-head .wrap { grid-template-columns: 1fr 84px; }
  .doc section { padding: 6px 18px 16px; }
  .brand span { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-art { animation: none; } html { scroll-behavior: auto; } }
