/* whatisthis.at — the page is the game's drawing desk.
   Colours are the start menu's; type is the game's own Fredoka. Served as
   /assets/site.css by src/routes/site.ts; the art under /assets/img is made by
   tools/site-assets.mjs from the game's textures and real captures. Edit
   here — nothing generates this file. */

/* The game's face, served from this host: never a font CDN, which would ship
   every visitor's IP to a third party before they read a word. */
@font-face { font-family: "Fredoka"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Fredoka_Medium.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Fredoka_SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Fredoka_Bold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #fdf3d8;
  --paper-deep: #f8e2ac;
  --cream: #fffaee;
  --navy: #1e2358;
  --navy-soft: #474c7d;
  --purple: #7b3ff2;
  --purple-deep: #5428bd;
  --gold: #ffb320;
  --orange: #f37a1f;
  --blue: #1f6fe0;
  --green: #2ea83a;
  --pink: #e8488f;
  --font: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--navy);
  background-color: var(--paper);
  /* Watercolour splashes down the whole page, in the menu's paint colours.
     Pure CSS: one image fewer, and it stretches with the page. */
  background-image:
    radial-gradient(38rem 24rem at 4% 38%, rgba(123, 63, 242, 0.13), transparent 70%),
    radial-gradient(34rem 22rem at 98% 52%, rgba(243, 122, 31, 0.14), transparent 70%),
    radial-gradient(30rem 22rem at 0% 72%, rgba(31, 111, 224, 0.12), transparent 70%),
    radial-gradient(32rem 20rem at 100% 88%, rgba(232, 72, 143, 0.12), transparent 70%),
    radial-gradient(28rem 18rem at 50% 100%, rgba(255, 179, 32, 0.18), transparent 70%);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 700; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: var(--purple-deep); }
a:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--cream); color: var(--navy);
  padding: 10px 16px; border-radius: 12px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- the plates: the start menu's own cards as 9-slice frames ---------- */

/* The texture's cream middle fills the plate, its hand-drawn outline is the
   border. The slice is in texture pixels, the border width in layout ones. */
.card {
  border: 22px solid transparent;
  border-image: url("/assets/img/art/card-blue.webp") 40 fill / 22px stretch;
  color: var(--navy);
  filter: drop-shadow(0 10px 14px rgba(110, 72, 18, 0.18));
}
.card-blue   { border-image-source: url("/assets/img/art/card-blue.webp"); }
.card-orange { border-image-source: url("/assets/img/art/card-orange.webp"); }
.card-purple { border-image-source: url("/assets/img/art/card-purple.webp"); }
.card-green  { border-image-source: url("/assets/img/art/card-green.webp"); }

/* ---------- hero: the desk ---------- */

.hero {
  position: relative;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) clamp(56px, 9vw, 112px);
  background: var(--paper-deep) url("/assets/img/art/desk.webp") center top / cover no-repeat;
}
/* The desk fades into the page's paper instead of ending on a hard line. */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(rgba(253, 243, 216, 0), var(--paper));
  pointer-events: none;
}

.topbar {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topnav {
  list-style: none; margin: 0; padding: 0;
  display: none; gap: 8px; flex-wrap: wrap;
}
.topnav a, .lang {
  display: inline-block;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding: 6px 14px 5px; border-radius: 999px;
}
.topnav a {
  color: var(--navy);
  background: rgba(255, 250, 238, 0.86);
  box-shadow: 0 0 0 2px rgba(30, 35, 88, 0.12);
}
.lang {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(#9a6cf7, var(--purple));
  border-bottom: 3px solid var(--purple-deep);
  box-shadow: 0 4px 10px rgba(84, 40, 189, 0.3);
}
@media (min-width: 760px) { .topnav { display: flex; } }

/* The copy sits in the desk's empty middle, like the start menu's title and
   buttons; the doodles stay visible at both edges. */
.hero-copy {
  max-width: 720px; margin: 0 auto;
  padding-top: clamp(8px, 2.4vw, 24px);
  text-align: center;
}

.logo { margin: 0 auto; width: min(520px, 90%); }
.logo img { width: 100%; filter: drop-shadow(0 8px 10px rgba(84, 40, 189, 0.22)); }

/* "Draw & Guess" on the menu's pink brush stroke. The stroke fills the
   middle ~57% of its texture, hence the 175% width. */
.subtitle { margin-top: -4px; }
.subtitle span {
  display: inline-block;
  padding: 6px 34px 8px;
  font-weight: 700; font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--purple-deep);
  background: url("/assets/img/art/banner.webp") center / 175% 100% no-repeat;
}

.tagline {
  margin-top: 16px;
  font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 2.7rem);
  line-height: 1.12;
  color: var(--navy);
  text-shadow: 0 2px 0 rgba(255, 250, 238, 0.9);
}
.lede {
  max-width: 34em; margin: 12px auto 0;
  font-size: clamp(1.02rem, 1.7vw, 1.15rem);
  color: var(--navy-soft);
  background: rgba(255, 250, 238, 0.78);
  border-radius: 18px; padding: 10px 14px;
}

.badges {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  align-items: center; justify-content: center;
  margin-top: 20px;
}
.badge { display: inline-block; line-height: 0; }
/* The stores' official artwork, unmodified, at one shared height. Google's
   file carries its own padding, so it is drawn larger and pulled in. */
.badge img { height: 54px; width: auto; }
.badge-play img { height: 80px; margin: -13px -10px; }
.free {
  margin-top: 12px;
  font-weight: 600; color: var(--purple-deep);
}

/* The first screenshot rides over the desk's lower edge. */
.hero-shot {
  position: relative;
  width: min(760px, calc(100% - 2 * var(--gutter)));
  margin: calc(-1 * clamp(24px, 5vw, 64px)) auto 0;
}

/* A screenshot on a tablet: the game is landscape, so is the device. */
.frame {
  background: var(--navy);
  padding: clamp(6px, 1.2vw, 10px);
  border-radius: clamp(14px, 2.4vw, 24px);
  box-shadow: 0 0 0 3px #3a4080, 0 18px 34px rgba(30, 35, 88, 0.32);
}
.frame img { width: 100%; border-radius: clamp(8px, 1.4vw, 14px); }

/* ---------- sections ---------- */

.section {
  max-width: var(--max);
  margin: clamp(48px, 8vw, 96px) auto 0;
  padding: 0 var(--gutter);
}
.section-title { text-align: center; font-size: clamp(1.8rem, 4.2vw, 2.6rem); }
/* The menu's lavender swash under the words, like its highlighted labels. */
.section-title span {
  display: inline-block;
  padding: 2px 22px 8px;
  background: url("/assets/img/art/swash-lavender.webp") center 70% / 100% 62% no-repeat;
}
.section-intro {
  text-align: center; max-width: 36em; margin: 12px auto 0;
  color: var(--navy-soft);
}

.cards {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
.card h3 { font-size: 1.35rem; margin: 6px 0 4px; }
.card p { color: var(--navy-soft); }
.card-icon { width: 76px; height: 76px; object-fit: contain; }

.step { position: relative; text-align: center; padding: 6px 4px 8px; }
.step .card-icon { margin: 4px auto 0; width: 88px; height: 88px; }
.step-no {
  position: absolute; left: -6px; top: -8px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.15rem; color: #fff;
  background: linear-gradient(#9a6cf7, var(--purple));
  box-shadow: 0 3px 0 var(--purple-deep);
}
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.mode { display: flex; gap: 14px; align-items: center; padding: 4px 6px; }
.mode .card-icon { flex: 0 0 auto; }
@media (min-width: 760px) { .modes { grid-template-columns: 1fr 1fr; } }

/* Screenshots: a swipeable row on a phone, a grid on anything wider. */
.shots {
  list-style: none; margin: 28px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 520px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.shot { scroll-snap-align: center; }
.shot figure { margin: 0; }
.shot figcaption {
  margin-top: 10px; text-align: center;
  font-weight: 700; font-size: 1.1rem;
}
@media (min-width: 900px) {
  .shots {
    margin: 28px 0 0; padding: 0; overflow: visible;
    grid-auto-flow: row; grid-template-columns: repeat(6, 1fr);
  }
  /* Three on top, two centred below. */
  .shot { grid-column: span 2; }
  .shot:nth-child(4) { grid-column: 2 / span 2; }
  .shot:nth-child(odd) .frame { transform: rotate(-1.2deg); }
  .shot:nth-child(even) .frame { transform: rotate(1.2deg); }
}

/* ---------- get the game ---------- */

.get {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  justify-items: center; text-align: center;
  padding: 10px 8px;
}
.app-icon { width: 120px; border-radius: 28px; box-shadow: 0 10px 20px rgba(30, 35, 88, 0.22); }
.get h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-bottom: 6px; }
.get p { color: var(--navy-soft); max-width: 34em; }
@media (min-width: 720px) {
  .get { grid-template-columns: 150px 1fr; text-align: left; justify-items: start; align-items: center; }
  .app-icon { width: 150px; }
  .get .badges { justify-content: flex-start; }
}

/* ---------- the legal notice page ---------- */

/* The desk as a slim bar: the title art leads home, the switch sits right. */
.hero-slim { padding-bottom: clamp(40px, 6vw, 64px); }
.home { display: block; width: clamp(150px, 26vw, 230px); }
.home img { width: 100%; filter: drop-shadow(0 6px 8px rgba(84, 40, 189, 0.22)); }
.hero-slim + .section { margin-top: clamp(8px, 2vw, 24px); }

.legal-notice { max-width: 640px; margin: 0 auto; padding: 10px 8px 6px; }
.legal-notice h1 { font-size: clamp(1.8rem, 4.2vw, 2.4rem); margin-bottom: 14px; }
.legal-notice address { font-style: normal; display: grid; gap: 2px; }
.legal-notice address strong { font-size: 1.3rem; }
.legal-notice address a { overflow-wrap: anywhere; }
/* The notice's sections (ECG / MedienG), PuzzleBumble's order. */
.legal-notice h2 { font-size: 1.2rem; margin: 22px 0 6px; }
.legal-notice p { margin: 0 0 10px; overflow-wrap: anywhere; }
.legal-notice p a { overflow-wrap: anywhere; }
.imprint-intro { color: var(--navy-soft); font-size: 0.95rem; }
.back, .legal-notice .back { margin-top: 20px; font-weight: 600; }

/* ---------- footer ---------- */

.footer {
  max-width: var(--max);
  margin: clamp(56px, 9vw, 96px) auto 0;
  padding: 0 var(--gutter) max(36px, env(safe-area-inset-bottom));
  text-align: center;
  color: var(--navy-soft);
  font-size: 0.95rem;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer-links a { font-weight: 700; text-decoration: none; color: var(--purple-deep); }
.footer-links a:hover { text-decoration: underline; }
.made-by { margin-top: 18px; }
.footer small { display: block; margin-top: 8px; font-size: 0.78rem; color: #7d7a90; }
