/* ¡Joga Phasa!: shared styles for the hub pages (home, About, Feedback, Privacy).
   Colours come from the owner's mango logo (2026-10-31): sunny mango-yellow sky, navy outlines,
   orange "Joga", green "Phasa", teal leaf. Phone first; wider screens get more columns further down.
   The --sky* names are kept from the Folkard version so every page picks up the new colours. */

@font-face {
  font-family: "Fredoka";
  src: url("brand/fredoka-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --sky: #1f8a43;        /* bold leaf green behind the logo (owner: green + orange, not pastel) */
  --sky-deep: #146b31;
  --sky-light: #3cbf5f;
  --sky-soft: #e5f6dc;   /* soft green for quiet cards */
  --joga-sky: #ace3fb;   /* the game logos' own sky tile (Joga!, ¡Vamos!, Allez!) */
  --cream: #f7fcf4;     /* page background: crisp white with a hint of green (owner disliked the beige) */
  --white: #ffffff;
  --navy: #141a3a;       /* the logo's outlines */
  --navy-soft: #4b5170;
  --orange: #ff8a1f;     /* "Joga" */
  --orange-deep: #e0531a; /* the mango's red side */
  --sun: #ffd23c;
  --green: #57b52f;      /* "Phasa" */
  --blue: #1b7a37;       /* links: deep green, dark enough to read */
  --line: #d6e9cd;      /* light green-grey borders */
  --green-deep: #2f7d1c;
  --error: #b3261e;
  --display: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: ui-rounded, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 17px/1.55 var(--body);
}

a { color: var(--blue); font-weight: 600; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 16px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: 0.005em; text-wrap: balance; }

/* Hero: the logo (see-through sticker) on a warm mango sky */
.hero { background: radial-gradient(110% 70% at 50% 18%, var(--sky-light) 0%, var(--sky) 52%, var(--sky-deep) 100%); color: var(--white); padding-block: 12px 56px; text-align: center; }
.hero-logo { display: block; width: 100%; max-width: 420px; height: auto; margin: 6px auto 0; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28)); }
.hero .tagline { font: italic 500 clamp(16px, 4.4vw, 20px)/1.2 var(--display); color: #eafbe1; margin: 14px auto 28px; position: relative; letter-spacing: 0.01em; }
.hero h1 { font-size: clamp(32px, 8.5vw, 54px); line-height: 1.08; margin: 4px 0 12px; color: var(--white); text-shadow: 0 2px 0 var(--navy); }
.hero h1 em { font-style: normal; color: var(--orange); text-shadow: 0 3px 0 var(--navy), 0 -2px 0 var(--navy), 2px 0 0 var(--navy), -2px 0 0 var(--navy); }
.hero p { font-size: 19px; margin: 0 auto; max-width: 30em; color: var(--white); }
.hero .usp { font: 600 clamp(19px, 5vw, 24px)/1.35 var(--display); color: var(--white); max-width: 24em; margin: 0 auto 14px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin: 20px 0 0; padding: 0; list-style: none; }
/* Plain facts with orange ticks, not pill shapes (owner: they looked like buttons) */
.pills li { display: inline-flex; align-items: center; gap: 6px; color: var(--white); font-size: 16px; font-weight: 600; cursor: default; }
.pills li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); color: var(--navy); font-size: 13px; font-weight: 800; }

/* Game cards (redesigned 2026-10-31: green logo panels, orange Play buttons, three across on computers) */
.games { background: var(--cream); border-radius: 32px 32px 0 0; margin-top: -28px; padding-block: 34px 8px; position: relative; }
.games h2 { font-size: 28px; margin: 0 0 20px; color: var(--sky-deep); display: inline-block; border-bottom: 5px solid var(--orange); padding-bottom: 2px; }
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
.card { background: var(--white); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden;
  box-shadow: 0 2px 0 var(--line), 0 12px 28px rgba(20, 107, 49, 0.14); }
.card p { margin: 0; }
.flags { display: flex; flex-shrink: 0; }
.flags img { width: 42px; height: 31px; border-radius: 7px; object-fit: cover; box-shadow: 0 0 0 2px var(--white); }
.flags img + img { margin-left: -10px; }
.joga-head { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* Each game's logo on a green panel across the top of its card (the logos have white sticker edges, so they pop) */
.joga-logo { margin: 0; width: 100%; padding: 14px 18px; background: radial-gradient(120% 120% at 30% 10%, var(--sky-light) 0%, var(--sky) 60%, var(--sky-deep) 100%);
  border-bottom: 5px solid var(--orange); }
.joga-logo img { display: block; width: 100%; max-width: 300px; height: auto; aspect-ratio: 2 / 1; object-fit: contain; margin: 0 auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25)); }
.card .lang { display: flex; align-items: center; gap: 10px; margin: 0; padding-inline: 20px; font: 600 22px/1.1 var(--display); color: var(--sky-deep); }
.card .lang .flags img { width: 34px; height: 25px; }
.games-intro { margin: -4px 0 22px; max-width: 46em; font-size: 18px; }
.card .variant { margin: -4px 0 0; padding-inline: 20px; color: var(--navy-soft); font-size: 15px; }
.card .btn { margin: auto 20px 22px; }
/* Coming soon: a row of small flag chips */
.soon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 6px; }
.soon-row h3 { margin: 0 6px 0 0; font-size: 20px; color: var(--sky-deep); }
.soon-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 2px dashed var(--green); border-radius: 999px; padding: 6px 14px 6px 8px;
  font: 600 16px/1 var(--display); color: var(--navy); }
.soon-chip img { width: 28px; height: 21px; border-radius: 5px; object-fit: cover; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--orange); color: var(--navy);
  font: 600 20px/1 var(--display); text-decoration: none;
  box-shadow: 0 5px 0 var(--orange-deep);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { background: var(--sun); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--orange-deep); }
.badge { align-self: flex-start; background: var(--white); color: var(--navy-soft); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; }

/* Footer */
.site-footer { margin-top: 48px; padding-block: 28px 40px; background: var(--sky-deep); color: var(--sky-soft); border-top: 6px solid var(--orange); font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
.site-footer a { color: var(--sun); }
.site-footer a:hover { color: var(--white); }
.site-footer .email { color: var(--sun); font-weight: 600; }
.site-footer p { margin: 0; }

/* Privacy notice and other text pages */
.page-header { background: radial-gradient(120% 140% at 15% 0%, var(--sky-light) 0%, var(--sky) 60%, var(--sky-deep) 100%); padding-block: 4px; border-bottom: 5px solid var(--sky-deep); }
.page-header a { display: inline-block; }
.page-header img { display: block; height: 96px; width: auto; margin-block: 6px; filter: drop-shadow(0 3px 5px rgba(20, 26, 58, 0.15)); }
.prose { max-width: 40em; padding-block: 24px 0; }
.prose h1 { font-size: clamp(30px, 7vw, 42px); line-height: 1.1; margin: 8px 0 6px; }
.prose h2 { font-size: 22px; margin: 30px 0 6px; }
.prose p, .prose li { margin: 0 0 10px; }
.updated { color: var(--navy-soft); font-size: 15px; margin-top: 0; }

/* Top navigation (landing page hero and inner-page headers) */
.top-nav { display: flex; gap: 6px; }
.top-nav a { color: var(--navy); text-decoration: none; font: 600 16px/1 var(--display); padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); }
.top-nav a:hover, .top-nav a[aria-current="page"] { background: var(--white); box-shadow: 0 0 0 2px var(--orange); }
.hero .top-nav { justify-content: flex-end; padding-top: 4px; }
.page-header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.page-header-row .top-nav { margin-left: auto; } /* stays on the right even when it wraps under the logo */
@media (max-width: 480px) {
  .page-header img { height: 88px; }
  .top-nav { gap: 4px; }
  .top-nav a { font-size: 15px; padding: 8px 11px; }
}

/* About page */
.about-intro { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.about-intro h1 { margin: 0; }
.eyebrow { margin: 0 0 4px; font: 600 14px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); }
.photo { position: relative; margin: 22px 0; border-radius: var(--radius); overflow: hidden; background: var(--sky-soft); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.photo-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center; font-size: 14px; font-weight: 600; color: var(--navy-soft); border: 2px dashed var(--sky); border-radius: inherit; }
.photo.portrait { flex: 0 0 auto; width: 104px; height: 104px; margin: 0; border-radius: 50%; border: 4px solid var(--orange); }
.photo.portrait .photo-empty { font-size: 11px; border: 0; }
.prose.about { max-width: none; }
.travel-strip { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.travel-strip li { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.travel-strip img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; border: 3px solid var(--white); box-shadow: 0 2px 0 var(--line); }
.travel-strip span { font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--navy-soft); text-align: center; }
.callout { font: italic 600 19px/1.5 var(--body); color: var(--sky-deep); border-left: 5px solid var(--green); padding: 2px 0 2px 14px; }
.mission { font: 600 20px/1.4 var(--display); color: var(--sky-deep); background: var(--sky-soft); border: 3px solid var(--green); border-radius: var(--radius); padding: 16px 18px; }
.signoff { font: 600 22px/1.2 var(--display); margin-top: 28px !important; }
.tagline-end { font-style: italic; color: var(--navy-soft); }

/* Feedback page */
.prose.wide { max-width: none; }
.feedback-layout { display: grid; gap: 24px; margin-top: 8px; }
.feedback-card { background: var(--white); border: 3px solid var(--orange); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { font: 600 18px/1.2 var(--display); padding: 0; margin-bottom: 4px; }
.optional { font: 500 15px var(--body); color: var(--navy-soft); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea { font: inherit; color: var(--navy); background: var(--cream); border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--sky); border-color: var(--blue); }
.hint { margin: 0; font-size: 14px; color: var(--navy-soft); }
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 42px; line-height: 1; color: var(--line); cursor: pointer; transition: transform 0.1s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--orange); }
.stars input:focus-visible + label { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
.stars label:active { transform: scale(1.15); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trap { position: absolute; left: -9999px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--orange-deep); flex-shrink: 0; }
.feedback-card .btn { align-self: flex-start; border: 0; cursor: pointer; }
.feedback-card .btn:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--green-deep); }
.form-status.error { color: var(--error); }
.reviews h2 { font-size: 24px; margin: 0 0 12px; }
.review-list { display: grid; gap: 14px; }
.review-card { margin: 0; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; }
.review-card blockquote { margin: 6px 0 8px; font-size: 17px; }
.review-card figcaption { color: var(--navy-soft); font-weight: 600; font-size: 15px; }
.review-stars { margin: 0; color: var(--orange); font-size: 22px; letter-spacing: 2px; }
.review-empty { background: var(--sky-soft); border: 2px dashed var(--sky); border-radius: var(--radius); padding: 22px; text-align: center; }
.review-empty p { margin: 0; }
.review-empty .review-stars { color: var(--sky); margin-bottom: 6px; }

/* Wider screens */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-block: 16px 64px; }
  .photo.portrait { width: 140px; height: 140px; }
  .travel-strip { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .feedback-layout { grid-template-columns: 3fr 2fr; align-items: start; }
  .feedback-card { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
