/* Clay: the site's own identity - soft, chunky, toy-like (ui-ux-pro-max
   "Claymorphism", "Casual Puzzle Game" palette). Baloo 2 for display and the
   tile letters, Nunito for text; both carry every Turkish letter (checked
   against their cmap tables - Fredoka, the first pick, lacks İ Ş ş Ğ ğ). */

@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/Baloo2-latin-ext.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/Baloo2-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --bg: #fdf2f8;
  --bg-deep: #fce7f3;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --link: #be185d;
  --pink: #ec4899;
  --pink-strong: #db2777;
  --pink-edge: #9d174d;
  --violet: #7c3aed;
  --violet-edge: #5b21b6;
  --gold: #f59e0b;
  --slot: #f9d9e8;
  --edge: #f3cfe0;
  --rim: rgba(255, 255, 255, 0.85);
  --card-rim: rgba(255, 255, 255, 0.55);
  --drop: rgba(157, 23, 77, 0.16);
  --mint: #c9f3e1;
  --mint-edge: #7fd6b0;
  --lilac: #e6ddff;
  --lilac-edge: #b9a6f6;
  --peach: #ffdccd;
  --peach-edge: #f5ae93;
  --butter: #fff0b8;
  --butter-edge: #efcc5a;
  --blob-1: #ffd6c8;
  --blob-2: #cfe8ff;
  --blob-3: #cff5e3;
  --blob-4: #e7dcff;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --arrive: cubic-bezier(0.33, 1, 0.68, 1);
  --leave: cubic-bezier(0.32, 0, 0.67, 0);
  --display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --text: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1a1022;
    --bg-deep: #22142c;
    --card: #2b1c37;
    --ink: #fbeef6;
    --ink-2: #d4bfd0;
    --link: #f9a8d4;
    --slot: #150b1b;
    --edge: #120914;
    --rim: rgba(255, 255, 255, 0.08);
    --card-rim: rgba(255, 255, 255, 0.07);
    --drop: rgba(0, 0, 0, 0.45);
    --mint: #173f33;
    --mint-edge: #0d2a21;
    --lilac: #2e2552;
    --lilac-edge: #1c1638;
    --peach: #45261f;
    --peach-edge: #2c1712;
    --butter: #3f3513;
    --butter-edge: #29220a;
    --blob-1: #4a2233;
    --blob-2: #1f2c4a;
    --blob-3: #173b31;
    --blob-4: #332654;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The one utility that must win over every component's display. */
html:not([data-show="tr"]) .only-tr,
html[data-show="tr"] .only-en {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 10px;
}

.wrap {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* A clay surface: a white rim on top, a soft drop below, a darker lip. */
.clay {
  border: 3px solid var(--rim);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 6px 0 var(--edge), 0 18px 34px var(--drop);
}

/* Chunky buttons: they sit on a thick lip and sink into it when pressed. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.4rem;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  background: var(--pink-strong);
  box-shadow: 0 6px 0 var(--pink-edge), 0 12px 22px var(--drop);
  color: #ffffff;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms var(--arrive), box-shadow 140ms var(--arrive);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--pink-edge), 0 6px 12px var(--drop);
  transition-duration: 90ms;
}

.btn.soft {
  border-color: var(--rim);
  background: var(--card);
  box-shadow: 0 6px 0 var(--edge), 0 12px 22px var(--drop);
  color: var(--ink);
}

.btn.soft:active {
  box-shadow: 0 2px 0 var(--edge), 0 6px 12px var(--drop);
}

.btn.ink {
  border-color: rgba(255, 255, 255, 0.18);
  background: #1e293b;
  box-shadow: 0 6px 0 #0b1120, 0 12px 22px var(--drop);
}

.btn.ink:active {
  box-shadow: 0 2px 0 #0b1120, 0 6px 12px var(--drop);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
}

/* Top strip. */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

.mark {
  display: flex;
  gap: 5px;
  margin-right: auto;
  text-decoration: none;
}

.mark span,
.digits span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 38px;
  border: 2px solid var(--rim);
  border-radius: 11px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--edge);
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.mark span:first-child {
  background: var(--pink);
  box-shadow: 0 4px 0 var(--pink-edge);
  color: #ffffff;
}

.menu {
  display: none;
  gap: 1.25rem;
  font-weight: 800;
}

.menu a {
  color: var(--ink);
  text-decoration: none;
}

.lang {
  display: flex;
  padding: 4px;
  border-radius: 16px;
  background: var(--slot);
  box-shadow: inset 0 3px 6px var(--drop);
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 900;
  text-decoration: none;
}

.lang a[aria-current="true"] {
  background: var(--card);
  box-shadow: 0 3px 0 var(--edge);
  color: var(--ink);
}

/* The hero: floating clay blobs behind the name puzzle. */
.hero {
  position: relative;
  padding: 2.25rem 1rem 3.5rem;
  text-align: center;
}

.blobs {
  position: absolute;
  inset: -6rem -30vw -2rem;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
  animation: drift 18s ease-in-out infinite alternate;
}

.blob:nth-child(1) {
  top: 4%;
  left: 18%;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle at 35% 30%, #ffffff66, var(--blob-1) 55%);
}

.blob:nth-child(2) {
  top: 18%;
  right: 16%;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle at 35% 30%, #ffffff66, var(--blob-2) 55%);
  animation-duration: 22s;
  animation-delay: -6s;
}

.blob:nth-child(3) {
  bottom: 6%;
  left: 30%;
  width: 9rem;
  height: 9rem;
  background: radial-gradient(circle at 35% 30%, #ffffff66, var(--blob-3) 55%);
  animation-duration: 20s;
  animation-delay: -3s;
}

.blob:nth-child(4) {
  bottom: 14%;
  right: 30%;
  width: 7rem;
  height: 7rem;
  background: radial-gradient(circle at 35% 30%, #ffffff66, var(--blob-4) 55%);
  animation-duration: 16s;
  animation-delay: -9s;
}

@keyframes drift {
  to {
    transform: translate(2.5rem, -1.75rem) scale(1.06);
  }
}

.board {
  --gap: 8px;
  --t: clamp(36px, calc((min(100vw, 40rem) - 2rem - 6 * var(--gap)) / 7), 64px);
  --p: calc(var(--t) * 0.94);
}

.answer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--gap) + 6px);
}

.word {
  display: flex;
  gap: var(--gap);
}

.slot {
  width: var(--t);
  height: calc(var(--t) * 1.2);
  border-radius: calc(var(--t) * 0.34);
  background: var(--slot);
  box-shadow: inset 0 3px 6px var(--drop);
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--t);
  height: calc(var(--t) * 1.2);
  border: 3px solid var(--rim);
  border-radius: calc(var(--t) * 0.34);
  background: var(--card);
  box-shadow: 0 5px 0 var(--edge), 0 12px 20px var(--drop);
  color: var(--ink);
  font-family: var(--display);
  font-size: calc(var(--t) * 0.62);
  font-weight: 800;
  line-height: 1;
  transform-origin: 0 0;
}

.word.first .tile {
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--pink);
  box-shadow: 0 5px 0 var(--pink-edge), 0 12px 20px var(--drop);
  color: #ffffff;
}

.stage {
  display: grid;
  margin-top: 2rem;
}

.stage > * {
  grid-area: 1 / 1;
}

.pool {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.pool-row {
  display: flex;
  gap: 8px;
}

.spot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--p);
  height: var(--p);
  border: 3px solid var(--rim);
  border-radius: calc(var(--p) * 0.34);
  background: var(--card);
  box-shadow: 0 4px 0 var(--edge);
  color: var(--ink);
  font-family: var(--display);
  font-size: calc(var(--p) * 0.52);
  font-weight: 700;
  line-height: 1;
  transition: background 120ms, box-shadow 120ms, color 120ms, border-color 120ms;
}

.spot.used {
  border-color: transparent;
  background: var(--slot);
  box-shadow: inset 0 3px 6px var(--drop);
  color: color-mix(in srgb, var(--ink) 30%, transparent);
}

.intro h2 {
  max-width: 34rem;
  margin: 0 auto;
  font-size: clamp(1.45rem, 5.4vw, 2.3rem);
  font-weight: 800;
}

.intro p {
  margin: 0.6rem 0 0;
  color: var(--ink-2);
  font-weight: 700;
}

.intro .actions {
  justify-content: center;
  margin-top: 1.6rem;
}

/* While the puzzle plays - and from the first paint when it is going to
   (html.will-play, set in the page's head) - the pool is there, the words
   wait and the first word is not pink yet. home.js sets and clears these. */
html.will-play .board:not(.ran) .pool,
.board.playing .pool {
  display: flex;
}

html.will-play .board:not(.ran) .intro,
.board.playing .intro {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

html.will-play .board:not(.ran) .tile {
  visibility: hidden;
}

.board.playing .word.first .tile:not(.green) {
  border-color: var(--rim);
  background: var(--card);
  box-shadow: 0 5px 0 var(--edge), 0 12px 20px var(--drop);
  color: var(--ink);
}

.board.playing .tile.waiting {
  visibility: hidden;
}

.board.solved .pool {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 200ms var(--leave), transform 200ms var(--leave);
}

.board.solved .intro {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 260ms var(--arrive) 200ms, transform 420ms var(--bounce) 200ms;
}

.tile.green {
  transform-origin: 50% 50%;
  animation: settle 260ms var(--bounce);
  transition: background 220ms var(--arrive), color 220ms var(--arrive), box-shadow 220ms var(--arrive);
}

.answer.breath {
  animation: breath 160ms ease-in-out;
}

@keyframes settle {
  50% {
    transform: scale(1.08) rotate(-2deg);
  }
}

@keyframes breath {
  50% {
    transform: scale(1.04);
  }
}

/* The numbers, each on its own colored clay badge. */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 30rem;
  margin: 2.75rem auto 0;
  padding: 0;
  list-style: none;
}

.stats .stat:first-child {
  grid-column: 1 / -1;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.1rem 0.9rem;
  border: 3px solid var(--card-rim);
  border-radius: 24px;
}

.stat:nth-child(1) {
  background: var(--butter);
  box-shadow: 0 6px 0 var(--butter-edge), 0 14px 26px var(--drop);
}

.stat:nth-child(2) {
  background: var(--lilac);
  box-shadow: 0 6px 0 var(--lilac-edge), 0 14px 26px var(--drop);
}

.stat:nth-child(3) {
  background: var(--mint);
  box-shadow: 0 6px 0 var(--mint-edge), 0 14px 26px var(--drop);
}

.digits {
  display: inline-flex;
  gap: 4px;
}

.stat p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.stats.armed .digits span {
  opacity: 0;
  transform: translateY(-16px);
}

.stats.in .digits span {
  opacity: 1;
  transform: none;
  transition: opacity 180ms var(--arrive), transform 360ms var(--bounce);
  transition-delay: calc(var(--i, 0) * 45ms);
}

/* Sections. */
.band {
  padding-top: 4.5rem;
}

.band > h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 800;
}

.band > .lede {
  max-width: 36rem;
  margin: 0 0 1.75rem;
  color: var(--ink-2);
  font-weight: 700;
}

/* The games: each on a clay card in its own color. */
.games {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 3px solid var(--card-rim);
  border-radius: 32px;
}

.game.mint {
  background: var(--mint);
  box-shadow: 0 8px 0 var(--mint-edge), 0 20px 36px var(--drop);
}

.game.lilac {
  background: var(--lilac);
  box-shadow: 0 8px 0 var(--lilac-edge), 0 20px 36px var(--drop);
}

.game.peach {
  background: var(--peach);
  box-shadow: 0 8px 0 var(--peach-edge), 0 20px 36px var(--drop);
}

.game.butter {
  background: var(--butter);
  box-shadow: 0 8px 0 var(--butter-edge), 0 20px 36px var(--drop);
}

.game .art {
  display: flex;
  justify-content: center;
  height: 250px;
  padding-top: 1.75rem;
  overflow: hidden;
}

.game .art img {
  width: 62%;
  max-width: 250px;
  height: auto;
  align-self: flex-start;
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.25);
  transform: rotate(-5deg);
}

.game .phone {
  width: 210px;
  height: fit-content;
  padding: 7px;
  border-radius: 36px;
  background: #111827;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.32);
  transform: rotate(-5deg);
}

.game .phone img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 29px;
  box-shadow: none;
  transform: none;
}

.game .body {
  padding: 1.5rem 1.4rem 1.75rem;
  background: color-mix(in srgb, var(--card) 72%, transparent);
}

.game-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.game-head img {
  width: 58px;
  height: 58px;
  flex: none;
  border: 3px solid var(--rim);
  border-radius: 18px;
  box-shadow: 0 4px 0 rgba(15, 23, 42, 0.12);
}

.game-head h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
}

.game .body > p {
  margin: 0.9rem 0 1.4rem;
  color: var(--ink);
  font-weight: 600;
}

.games.armed .game {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
}

.games.armed .game.in {
  opacity: 1;
  transform: none;
  transition: opacity 260ms var(--arrive), transform 560ms var(--bounce);
}

/* What I do: four small clay cards with a line icon each. */
.skills {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem;
}

.skill .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 17px;
  box-shadow: inset 0 -4px 0 rgba(15, 23, 42, 0.1);
  color: var(--ink);
}

.skill:nth-child(1) .icon {
  background: var(--mint);
}

.skill:nth-child(2) .icon {
  background: var(--lilac);
}

.skill:nth-child(3) .icon {
  background: var(--butter);
}

.skill:nth-child(4) .icon {
  background: var(--peach);
}

.skill .icon svg {
  width: 26px;
  height: 26px;
}

.skill h3 {
  margin: 0.1rem 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.skill p {
  margin: 0;
  color: var(--ink-2);
  font-weight: 600;
  line-height: 1.5;
}

/* Contact: one violet clay slab. */
.contact {
  padding: 2rem 1.5rem 2.25rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 32px;
  background: var(--violet);
  box-shadow: 0 8px 0 var(--violet-edge), 0 20px 36px var(--drop);
  color: #ffffff;
  text-align: center;
}

.contact h2 {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 800;
}

.contact p {
  max-width: 30rem;
  margin: 0.5rem auto 1.4rem;
  color: #ede9fe;
  font-weight: 700;
}

.contact .mail {
  display: block;
  margin-bottom: 1.4rem;
  color: #ffffff;
  font-family: var(--display);
  font-size: clamp(1.25rem, 5.6vw, 2rem);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

footer {
  padding: 2.5rem 0 3rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

footer .note {
  max-width: 30rem;
  margin: 0.4rem auto 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

footer .note a {
  color: inherit;
}

@media (min-width: 40rem) {
  .menu {
    display: flex;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 44rem;
  }

  .stats .stat:first-child {
    grid-column: auto;
  }

  .skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .games .game:first-child {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .games .game:first-child .art {
    order: 2;
    height: 100%;
    min-height: 340px;
  }

  .games .game:first-child .body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
  }

  /* Three small cards under the wide one: the odd one out spans the row. */
  .games .game:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 60rem) {
  .games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .games .game:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .blob {
    animation: none;
  }
}

/* ------------------------------------------------------------------ */
/* The inner pages: games list, a game's page, its legal pages, 404.   */
/* ------------------------------------------------------------------ */

/* Pages with one <article> per language show only the chosen one. */
html[data-show="tr"] article[lang="en"],
html[data-show="en"] article[lang="tr"] {
  display: none;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 1.5rem 0 1rem;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 700;
}

.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--link);
}

.page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 800;
}

.page-lede {
  max-width: 36rem;
  margin: 0 0 2rem;
  color: var(--ink-2);
  font-weight: 700;
}

/* A game's own page: its card, larger, with the phone. */
.app-hero {
  display: grid;
  overflow: hidden;
  border: 3px solid var(--card-rim);
  border-radius: 34px;
  background: var(--mint);
  box-shadow: 0 8px 0 var(--mint-edge), 0 20px 36px var(--drop);
}

.app-hero .art {
  display: flex;
  justify-content: center;
  height: 270px;
  padding-top: 1.75rem;
  overflow: hidden;
}

.app-hero .phone {
  width: 220px;
  height: fit-content;
  padding: 7px;
  border-radius: 36px;
  background: #111827;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.32);
  transform: rotate(-5deg);
}

.app-hero .phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 29px;
}

.app-hero .body {
  padding: 1.6rem 1.4rem 1.9rem;
  background: color-mix(in srgb, var(--card) 72%, transparent);
}

.app-hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 800;
}

.app-hero .body > p {
  margin: 0.9rem 0 1.4rem;
  font-weight: 600;
}

/* A paper card for reading: the support answers, the policy, the terms. */
.doc {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.6rem 1.3rem 2rem;
  border: 3px solid var(--rim);
  border-radius: 30px;
  background: var(--card);
  box-shadow: 0 6px 0 var(--edge), 0 18px 34px var(--drop);
  line-height: 1.65;
}

.doc h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.9rem, 6.5vw, 2.6rem);
  font-weight: 800;
}

.doc h2 {
  margin: 2.1rem 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.doc > h2:first-child {
  margin-top: 0;
  font-size: clamp(1.9rem, 6.5vw, 2.6rem);
}

.doc h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.doc p,
.doc ul {
  margin: 0.55rem 0;
}

.doc ul {
  padding-left: 1.3rem;
}

.doc li + li {
  margin-top: 0.35rem;
}

.doc code {
  padding: 0.05rem 0.35rem;
  border-radius: 7px;
  background: var(--slot);
  font-size: 0.9em;
}

.doc .updated {
  margin-top: 0;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 700;
}

.doc .summary {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem 1rem 2.1rem;
  border: 3px solid var(--card-rim);
  border-radius: 22px;
  background: var(--lilac);
  box-shadow: 0 5px 0 var(--lilac-edge);
}

.doc .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.doc .links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border: 3px solid var(--rim);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 5px 0 var(--edge), 0 10px 18px var(--drop);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms var(--arrive), box-shadow 140ms var(--arrive);
}

.doc .links a:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--edge), 0 4px 10px var(--drop);
  transition-duration: 90ms;
}

/* Support questions: clay boxes that open when tapped. */
.faq {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc .faq {
  margin: 1.2rem 0 0;
  padding: 0;
}

.faq li + li {
  margin-top: 0.9rem;
}

.faq details {
  border: 3px solid var(--rim);
  border-radius: 22px;
  background: var(--bg);
  box-shadow: 0 4px 0 var(--edge);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.6rem 1.1rem;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  width: 22px;
  height: 22px;
  flex: none;
  transition: transform 220ms var(--bounce);
}

.faq details[open] summary svg {
  transform: rotate(180deg);
}

.faq details p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  color: var(--ink-2);
  font-weight: 600;
}

.faq details[open] p {
  animation: open 220ms var(--arrive);
}

@keyframes open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.support-contact {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 3px solid var(--card-rim);
  border-radius: 22px;
  background: var(--butter);
  box-shadow: 0 5px 0 var(--butter-edge);
  font-weight: 700;
}

.support-contact a {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* Not found. */
.lost {
  max-width: 30rem;
  margin: 3rem auto 0;
  padding: 2rem 1.5rem 2.25rem;
  text-align: center;
}

.lost .digits {
  justify-content: center;
  margin-bottom: 1rem;
}

.lost h1 {
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
  font-weight: 800;
}

.lost p {
  margin: 0 0 1.4rem;
  color: var(--ink-2);
  font-weight: 700;
}

@media (min-width: 40rem) {
  .doc {
    padding: 2.4rem 2.6rem 2.6rem;
  }

  .app-hero {
    grid-template-columns: 1fr 1fr;
  }

  .app-hero .art {
    order: 2;
    height: 100%;
    min-height: 380px;
  }

  .app-hero .body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq summary svg,
  .faq details[open] p {
    transition: none;
    animation: none;
  }
}
