/* Paw Escape website. The game's own palette and lettering: sky blues, gold
   and orange, M PLUS Rounded 1c. English and Greek live side by side in the
   page; the language switch shows one of them (see lang.js). */

:root {
  --sky: #3b9bf5;
  --sky-deep: #1a3f96;
  --ink: #0e1a36;
  --navy: #16254a;
  --card: #ffffff;
  --text: #13213f;
  --muted: #55658a;
  --line: #dfe7f6;
  --gold: #ffd166;
  --orange: #ff9f1c;
  --orange-deep: #c96f00;
  --green: #3ccf6e;
  --pink: #ff6b8b;
  --page: #f3f7ff;
  --radius: 24px;
  --shadow: 0 18px 40px rgba(16, 39, 94, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Nunito", "Avenir Next", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sky-deep); }

/* One language at a time. */
html:not([data-lang="en"]) [data-l="en"],
html:not([data-lang="el"]) [data-l="el"],
html:not([data-lang="de"]) [data-l="de"],
html:not([data-lang="fr"]) [data-l="fr"],
html:not([data-lang="es"]) [data-l="es"],
html:not([data-lang="it"]) [data-l="it"],
html:not([data-lang="pt"]) [data-l="pt"] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(26, 63, 150, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff;
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.top nav { display: flex; gap: 18px; margin-left: auto; }
.top nav a { color: #e4ecff; text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.top nav a:hover { color: var(--gold); }
.langs { position: relative; display: flex; }
.langs select {
  appearance: none; -webkit-appearance: none;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffd166' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 10px;
  color: #fff; font: inherit; font-weight: 800; font-size: 0.85rem;
  padding: 7px 32px 7px 14px;
}
.langs select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.langs option { color: #1a2440; background: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.doc .note { font-size: 0.9rem; font-style: italic; color: #5a6584; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 209, 102, 0.35), transparent 60%),
    linear-gradient(180deg, var(--sky) 0%, #2a6fd6 45%, var(--sky-deep) 100%);
}
.hero::after {
  /* Soft paw prints drifting across the sky. */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='white'%3E%3Cellipse cx='32' cy='44' rx='15' ry='12'/%3E%3Ccircle cx='13' cy='27' r='7'/%3E%3Ccircle cx='24' cy='15' r='7'/%3E%3Ccircle cx='40' cy='15' r='7'/%3E%3Ccircle cx='51' cy='27' r='7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 64px; transform: rotate(-12deg) scale(1.4);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
.eyebrow { display: inline-block; background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; }
.hero h1 {
  margin: 14px 0 6px; font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: 1; font-weight: 900; letter-spacing: 0.01em;
  color: var(--gold); text-shadow: 0 5px 0 #b86d00, 0 14px 30px rgba(10, 20, 60, 0.35);
}
.hero .tagline { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 800; margin: 18px 0 10px; }
.hero .lead { color: #e4ecff; font-size: 1.08rem; max-width: 34em; margin: 0 0 28px; }

.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 22px 10px 16px;
  border-radius: 18px; text-decoration: none; font-weight: 800; line-height: 1.15;
}
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 0.72rem; font-weight: 700; opacity: 0.85; }
.store.play { background: var(--orange); color: #3b2200; box-shadow: 0 6px 0 var(--orange-deep); }
.store.play:hover { transform: translateY(-1px); }
.store.play:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--orange-deep); }
.store.soon { background: rgba(255, 255, 255, 0.12); color: #fff; border: 2px solid rgba(255, 255, 255, 0.35); cursor: default; }

.phone {
  justify-self: center; width: min(300px, 78vw); aspect-ratio: 9 / 16; border-radius: 40px; padding: 10px;
  background: #0e1a36; box-shadow: 0 30px 60px rgba(8, 18, 50, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  transform: rotate(3deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; }

/* Facts strip */
.facts { margin-top: -34px; position: relative; z-index: 2; }
.facts ul {
  list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
.facts li { text-align: center; padding: 6px; }
.facts b { display: block; font-size: 2rem; font-weight: 900; color: var(--sky-deep); line-height: 1.1; }
.facts span { color: var(--muted); font-weight: 700; font-size: 0.95rem; }

/* Sections */
section.block { padding: 84px 0 0; }
.block h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; margin: 0 0 8px; color: var(--navy); line-height: 1.15; }
.block .intro { color: var(--muted); font-size: 1.08rem; margin: 0 0 32px; max-width: 40em; }

.moves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.move { background: var(--card); border-radius: var(--radius); padding: 22px 20px; box-shadow: 0 8px 24px rgba(16, 39, 94, 0.08); }
.move .icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 12px;
  background: linear-gradient(180deg, #5db2ff, var(--sky-deep)); color: #fff;
}
.move .icon svg { width: 28px; height: 28px; }
.move h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 800; }
.move p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.world { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4.4; box-shadow: var(--shadow); background: var(--navy); }
.world img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.world figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10, 22, 58, 0.88));
}
.world b { display: block; font-size: 1.25rem; font-weight: 900; }
.world span { font-size: 0.92rem; color: #dce6ff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .shot { width: min(340px, 80vw); aspect-ratio: 3 / 4; justify-self: center; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); border: 8px solid #fff; }
.split .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chips li { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 0.95rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.family {
  background: linear-gradient(135deg, #fff6df, #ffe7c2); border-radius: 32px; padding: 44px; display: grid;
  grid-template-columns: auto 1fr; gap: 32px; align-items: center;
}
.family .badge {
  width: 120px; height: 120px; border-radius: 36px; display: grid; place-items: center;
  background: var(--orange); color: #fff; box-shadow: 0 8px 0 var(--orange-deep);
}
.family .badge svg { width: 70px; height: 70px; }
.family h2 { margin-bottom: 12px; }

.help { background: var(--navy); color: #fff; border-radius: 32px; padding: 44px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.help h2 { color: #fff; margin: 0 0 6px; }
.help p { margin: 0; color: #c9d6f5; }
.help .links { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-block; padding: 12px 22px; border-radius: 16px; font-weight: 800; text-decoration: none; background: rgba(255, 255, 255, 0.12); color: #fff; }
.pill.gold { background: var(--gold); color: #3b2200; }

footer { padding: 56px 0 40px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); font-weight: 700; text-decoration: none; }
footer a:hover { color: var(--sky-deep); }

/* Policy pages */
.doc-head { background: linear-gradient(180deg, var(--sky), var(--sky-deep)); color: #fff; padding: 56px 0 90px; }
.doc-head .wrap { max-width: 860px; }
.doc-head h1 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.8rem); font-weight: 900; overflow-wrap: break-word; hyphens: auto; }
.doc-head p { margin: 6px 0 0; color: #dce6ff; }
.doc { max-width: 820px; margin: -60px auto 0; background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 40px 44px; }
.doc h2 { color: var(--navy); font-size: 1.3rem; font-weight: 900; margin: 34px 0 6px; }
.doc h2:first-child { margin-top: 0; }
.doc li { margin-bottom: 6px; }
.doc .summary { background: var(--page); border-radius: 18px; padding: 18px 22px 8px; }
.doc .summary ul { padding-left: 20px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .phone { transform: none; width: min(260px, 70vw); }
  .moves, .worlds { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .shot { order: 2; }
  .family { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .family .badge { margin: 0 auto; }
  .family .ticks { text-align: left; }
}

@media (max-width: 640px) {
  .top nav { display: none; }
  .langs { margin-left: auto; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .moves, .worlds { gap: 12px; }
  .move { padding: 18px 16px; }
  .world b { font-size: 1.05rem; }
  .world span { display: none; }
  .help { padding: 32px 24px; }
  .doc { padding: 28px 22px; border-radius: 22px; margin: -60px 16px 0; }
  section.block { padding-top: 64px; }
}
