/* frutopica.net — dressed like the game itself: its sky, its cream cards with their chunky edges, its ribbons, its
   outlined Fredoka lettering and glossy green buttons. Calm where people read (support, privacy), playful elsewhere. */
@font-face { font-family: 'Fredoka'; src: url('/fonts/fredoka.woff2') format('woff2'); font-weight: 300 700; font-stretch: 75% 125%; font-display: swap; }

:root {
  --cream: #fff8ec;
  --card: #fffbf2;
  --edge: #f0d7b0;
  --edge-dark: #e2c08e;
  --ink: #5b3b1f;
  --soft: #87674a;
  --green: #43ad35;
  --green-dark: #2d8a22;
  --orange: #f08a24;
  --pink: #e8578a;
  --pink-dark: #b83a63;
  --blue: #3d8fe0;
  --blue-dark: #2667b0;
  --sky-top: #8ccfff;
  --sky-bottom: #dff2ff;
  --focus: #1f6fd1;
  --outline: #7a4a20;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; }
  .cloud { display: none; }
}
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 2px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, .brand, .btn, .pill, .ribbon, nav { font-family: 'Fredoka', ui-rounded, system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.15; font-weight: 600; text-wrap: balance; }
p, li { text-wrap: pretty; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; inset-inline-start: 12px; top: 8px; z-index: 50; background: #fff; padding: 8px 14px; border-radius: 10px; }
/* (hidden by clipping, not by pushing it off the page: a far-off box widens a right-to-left page) */
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- header and footer */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 251, 242, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 2px solid var(--edge); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 22px; font-weight: 600; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 6px rgba(90, 60, 30, .2); }
.top nav { display: flex; gap: 2px 4px; flex-wrap: wrap; font-weight: 500; font-size: 16px; }
.top nav a { color: var(--soft); text-decoration: none; padding: 7px 12px; border-radius: 999px; }
.top nav a:hover { color: var(--ink); background: #f7e9d2; }
.top nav a[aria-current] { color: #fff; background: var(--orange); }
@media (max-width: 600px) { .top .wrap { padding-top: 8px; padding-bottom: 8px; } .top nav { font-size: 15px; } .top nav a { padding: 5px 9px; } .brand { font-size: 20px; } .brand img { width: 34px; height: 34px; } }

footer { margin-top: 80px; background: #f4e3c8; border-top: 3px solid var(--edge); color: var(--soft); font-size: 15px; }
footer .wrap { padding-top: 34px; padding-bottom: 40px; display: grid; grid-template-columns: auto 1fr; gap: 18px 40px; align-items: start; }
footer .brand { font-size: 20px; }
footer p { margin: 8px 0 0; max-width: 24em; }
footer nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 22px; justify-self: end; width: min(100%, 520px); }
footer nav a { color: var(--soft); text-decoration: none; padding: 4px 0; }
footer nav a:hover { color: var(--ink); text-decoration: underline; }
footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--edge-dark); padding-top: 14px; margin: 0; font-size: 14px; max-width: none; }
@media (max-width: 700px) { footer .wrap { grid-template-columns: 1fr; } footer nav { justify-self: start; } }

/* ---------------------------------------------------------------- the hero: the game's sky, its island, its balloons */
.hero { position: relative; overflow: hidden; background: linear-gradient(var(--sky-top), #b6e1ff 45%, var(--sky-bottom)); padding: 34px 0 96px; }
.hero + .wrap > .section:first-child { padding-top: 34px; }
.hero::before {
  content: ''; position: absolute; left: -12%; top: -38%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(rgba(255, 252, 220, .9), rgba(255, 245, 200, 0) 65%); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 20px; }
.hero .logo { width: min(520px, 100%); filter: drop-shadow(0 6px 10px rgba(60, 90, 130, .25)); }
.hero h1 { font-size: clamp(30px, 4.2vw, 48px); margin: 14px 0 12px; }
.hero .lead { font-size: clamp(17px, 1.9vw, 20px); color: #36506b; max-width: 30em; margin: 0; }
.hero .assure { margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; color: #45627f; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero .assure li::before { content: '✓'; color: var(--green-dark); font-weight: 700; margin-inline-end: 6px; }
.scene { position: relative; aspect-ratio: 1 / 1.02; }
.scene .island { position: absolute; left: 50%; top: 2%; width: 72%; aspect-ratio: 552 / 709; transform: translateX(-50%); animation: float 6s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(50, 90, 140, .25)); }
.scene .island img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* (the island's three fruit, in their own idle loops from the game, standing in its meadow: the front grass is over them) */
.scene .island .fr { inset: auto; height: auto; }
.scene .island .blueberry { left: 14.1%; top: 48.11%; width: 32.2%; }
.scene .island .strawberry { left: 34.95%; top: 52.58%; width: 25.39%; }
.scene .island .cherry { left: 53.18%; top: 55.59%; width: 23.82%; }
.scene .balloon { position: absolute; width: 20%; animation: drift 7s ease-in-out infinite; }
.scene .balloon.a { left: 0; top: 6%; }
.scene .balloon.b { right: 0; top: 16%; animation-delay: -3.5s; animation-duration: 8s; }
.cloud { position: absolute; pointer-events: none; opacity: .95; animation: sail linear infinite; left: -14%; }
.cloud.c1 { width: 120px; top: 10%; animation-duration: 80s; }
.cloud.c2 { width: 96px; top: 66%; animation-duration: 105s; animation-delay: -60s; }
.hero .bank { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 100px; }
@keyframes float { 50% { transform: translate(-50%, -14px); } }
@keyframes drift { 50% { transform: translate(6px, -18px) rotate(2deg); } }
@keyframes sail { to { transform: translateX(130vw); } }
@media (max-width: 860px) {
  .hero { padding-top: 22px; padding-bottom: 92px; text-align: center; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .logo { margin: 0 auto; width: min(440px, 92%); }
  .hero .lead { margin: 0 auto; }
  .hero .stores, .hero .assure { justify-content: center; }
  .scene { width: min(420px, 100%); margin: 0 auto; }
}

.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px 11px; border-radius: 16px;
  background: #1f2430; color: #fff; font-weight: 600; font-size: 18px; line-height: 1.1; text-align: start;
  box-shadow: 0 4px 0 #0c0f15, 0 8px 18px rgba(20, 30, 50, .2);
}
.pill small { display: block; font-weight: 500; font-size: 12px; color: #c9d2e0; }
.pill svg { width: 24px; height: 24px; flex: none; }
/* (a store the game is out on: its pill is a link) */
a.pill { text-decoration: none; cursor: pointer; }
a.pill:hover { transform: translateY(-1px); filter: brightness(1.15); }
a.pill:active { transform: translateY(2px); box-shadow: 0 2px 0 #0c0f15, 0 4px 10px rgba(20, 30, 50, .2); }

/* ---------------------------------------------------------------- sections */
.section { padding-top: 72px; }
.head { text-align: center; margin-bottom: 30px; }
.ribbon {
  position: relative; display: inline-block; margin: 0; padding: 9px 34px 11px; border-radius: 18px; border: 3px solid #fff; color: #fff;
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: .01em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 0 1px rgba(0, 0, 0, .3);
  background: linear-gradient(#f57ea4, var(--pink)); box-shadow: 0 5px 0 var(--pink-dark), 0 10px 22px rgba(184, 58, 99, .22);
}
.ribbon.green { background: linear-gradient(#69c95a, var(--green)); box-shadow: 0 5px 0 var(--green-dark), 0 10px 22px rgba(45, 138, 34, .22); }
.ribbon.blue { background: linear-gradient(#63a9ee, var(--blue)); box-shadow: 0 5px 0 var(--blue-dark), 0 10px 22px rgba(38, 103, 176, .22); }
.ribbon.orange { background: linear-gradient(#f7a64e, var(--orange)); box-shadow: 0 5px 0 #c06612, 0 10px 22px rgba(192, 102, 18, .22); }
.head p { color: var(--soft); max-width: 36em; margin: 18px auto 0; font-size: 18px; }

.card { background: var(--card); border: 3px solid var(--edge); border-radius: 26px; box-shadow: inset 0 2px 0 #fff, 0 6px 0 var(--edge-dark); }

/* the friends */
.friends { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.friend { text-align: center; padding: 18px 18px 22px; }
.face { position: relative; width: 148px; aspect-ratio: 1; margin: -4px auto 6px; border-radius: 50%; background: radial-gradient(#fff 55%, #fbe9cf); }
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .25s, transform .25s; }
.face .happy { opacity: 0; }
.friend:hover .face .happy { opacity: 1; transform: translateY(-4px) rotate(-3deg); }
.friend:hover .face .calm { opacity: 0; }
.friend h3 { font-size: 26px; margin: 4px 0 0; }
.friend .role { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 500; color: var(--orange); margin: 2px 0 8px; }
.friend p { margin: 0; color: var(--soft); font-size: 16px; }
@media (max-width: 960px) { .friends { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .friends { gap: 12px; } .friend { padding: 14px 10px 18px; } .face { width: 108px; } .friend h3 { font-size: 22px; } .friend p { font-size: 14.5px; } }

.visitors { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px 26px; padding: 20px 26px; }
.visitors .row { display: flex; gap: 10px; }
.visitors .row img { width: 72px; height: 72px; border-radius: 50%; background: #fff; border: 3px solid var(--edge); }
.visitors h3 { margin: 0 0 4px; font-size: 22px; }
.visitors p { margin: 0; color: var(--soft); }
@media (max-width: 760px) { .visitors { grid-template-columns: 1fr; text-align: center; } .visitors .row { justify-content: center; } .visitors .row img { width: 58px; height: 58px; } }

/* how it plays */
.plays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.play { padding: 22px 24px 24px; }
.play .num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; font: 700 20px/1 'Fredoka', system-ui, sans-serif; box-shadow: 0 3px 0 #c06612; }
.play h3 { font-size: 23px; margin: 12px 0 6px; }
.play p { margin: 0 0 14px; color: var(--soft); font-size: 16px; }
.icons { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-start; margin: 0; padding: 0; list-style: none; }
.icons li { margin: 0; text-align: center; font: 500 13px/1.2 'Fredoka', system-ui, sans-serif; color: var(--soft); width: 74px; }
.icons img { width: 60px; height: 60px; object-fit: contain; margin: 0 auto 4px; filter: drop-shadow(0 3px 3px rgba(90, 60, 30, .18)); }
.elements { margin-top: 20px; padding: 16px 24px; display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; justify-content: center; }
.elements p { margin: 0; font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; font-size: 19px; }
.elements .row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.elements img { width: 44px; height: 44px; object-fit: contain; }
@media (max-width: 900px) { .plays { grid-template-columns: 1fr; } }

/* screens */
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.phones li { margin: 0; }
.phone { position: relative; padding: 9px; border-radius: 38px; background: linear-gradient(#3b3f4a, #20232b); box-shadow: 0 14px 30px rgba(60, 40, 20, .25), inset 0 0 0 2px #50545f; }
.phone img { border-radius: 30px; aspect-ratio: 390 / 844; width: 100%; object-fit: cover; background: #dff1ff; }
.phones h3 { text-align: center; margin: 14px 0 0; font-size: 19px; }
.phones p { text-align: center; margin: 3px 0 0; font-size: 15px; color: var(--soft); line-height: 1.45; }
@media (max-width: 960px) { .phones { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .phones { gap: 18px 12px; } .phone { padding: 6px; border-radius: 26px; } .phone img { border-radius: 21px; } .phones h3 { font-size: 16px; } .phones p { font-size: 13.5px; } }

/* the seasons */
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.season { position: relative; overflow: hidden; margin: 0; }
.season img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 3px solid var(--edge); }
.season div { padding: 12px 16px 16px; }
.season h3 { margin: 0; font-size: 22px; }
.season p { margin: 4px 0 0; color: var(--soft); font-size: 15px; }
.season .now { position: absolute; top: 10px; right: 10px; padding: 3px 12px 4px; border-radius: 999px; background: var(--green); color: #fff; font: 600 14px/1.3 'Fredoka', system-ui, sans-serif; border: 2px solid #fff; box-shadow: 0 2px 0 var(--green-dark); }
.season .now[hidden] { display: none; }
.season.is-now { border-color: #8fd27f; box-shadow: inset 0 2px 0 #fff, 0 6px 0 var(--green-dark); }
@media (max-width: 960px) { .seasons { grid-template-columns: repeat(2, 1fr); } }

/* Pip's Places */
.places { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; padding: 32px 40px; }
.places h3 { font-size: 30px; margin: 0 0 8px; }
.places p { color: var(--soft); margin: 0 0 14px; }
.rooms { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.rooms li { display: flex; align-items: center; gap: 10px; font-family: 'Fredoka', system-ui, sans-serif; font-weight: 500; background: #fff; border: 2px solid var(--edge); border-radius: 14px; padding: 7px 12px; margin: 0; }
.rooms li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #d9f0d3; }
@media (max-width: 860px) { .places { grid-template-columns: 1fr; padding: 24px 20px; text-align: center; } .places .phone { margin: 0 auto; max-width: 230px; } .rooms { text-align: start; } }
@media (max-width: 480px) { .rooms { grid-template-columns: 1fr; } }

/* every day */
.daily { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.day { display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin: 0; }
.day img { width: 54px; height: 54px; object-fit: contain; flex: none; }
.day h3 { margin: 0; font-size: 19px; }
.day p { margin: 2px 0 0; color: var(--soft); font-size: 15px; line-height: 1.45; }
@media (max-width: 960px) { .daily { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .daily { grid-template-columns: 1fr; } }

/* parents */
.parents { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; padding: 0; list-style: none; }
.trust { padding: 22px 24px; display: flex; gap: 16px; margin: 0; }
.trust img { width: 60px; height: 60px; object-fit: contain; flex: none; }
.trust h3 { margin: 2px 0 4px; font-size: 20px; }
.trust p { margin: 0; color: var(--soft); font-size: 16px; }
.parents-more { text-align: center; margin: 22px 0 0; color: var(--soft); }
@media (max-width: 760px) { .parents { grid-template-columns: 1fr; } }

/* the last word */
.cta { margin-top: 80px; position: relative; overflow: hidden; text-align: center; padding: 44px 20px 50px; border-radius: 34px; background: linear-gradient(#8ccfff, #d6efff); border: 4px solid #fff; box-shadow: 0 8px 0 #9cc9ec, 0 18px 40px rgba(60, 120, 180, .2); }
.cta .logo { width: min(400px, 86%); margin: 0 auto; }
.cta h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 14px 0 6px; }
.cta p { margin: 0 auto; color: #36506b; max-width: 30em; }
.cta .stores { justify-content: center; }
.cta .bob { position: absolute; width: 70px; animation: bob 3.4s ease-in-out infinite; }
.cta .bob.l { left: 5%; top: 18%; } .cta .bob.r { right: 6%; bottom: 16%; animation-delay: -1.7s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-5deg); } }
@media (max-width: 640px) { .cta .bob { display: none; } }

/* ---------------------------------------------------------------- reading pages */
.page-hero { background: linear-gradient(#bfe4ff, var(--cream)); padding: 38px 0 24px; }
.page-hero .wrap { display: flex; align-items: center; gap: 20px; }
.page-hero img { width: 96px; height: 96px; flex: none; border-radius: 50%; background: #fff; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(60, 90, 130, .2); }
.page-hero h1 { font-size: clamp(32px, 5vw, 46px); margin: 0; }
.page-hero p { margin: 4px 0 0; color: #45627f; }
@media (max-width: 560px) { .page-hero img { width: 68px; height: 68px; } }
.page h2 { font-size: 26px; margin: 40px 0 8px; }
.page h3 { font-size: 20px; margin: 24px 0 6px; }
.page ul { padding-inline-start: 1.25em; }
.page li { margin: 5px 0; }
.box { background: var(--card); border: 3px solid var(--edge); border-radius: 22px; padding: 20px 24px; margin: 22px 0; box-shadow: inset 0 2px 0 #fff, 0 5px 0 var(--edge-dark); }
.box > :first-child { margin-top: 0; } .box > :last-child { margin-bottom: 0; }
.toc { font-family: 'Fredoka', system-ui, sans-serif; }
.toc ol { columns: 2; column-gap: 28px; margin: 6px 0 0; padding-inline-start: 1.3em; }
.toc li { margin: 3px 0; break-inside: avoid; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 0; background: #fff; }
th, td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--edge); }
th { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; background: #f8ebd6; }
.scroll { overflow-x: auto; border: 3px solid var(--edge); border-radius: 18px; margin: 12px 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 48px; margin: 14px 0; }
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: #fff; font: 700 17px/32px 'Fredoka', system-ui, sans-serif; text-align: center; box-shadow: 0 3px 0 #c06612;
}
details { background: var(--card); border: 3px solid var(--edge); border-radius: 18px; padding: 2px 20px; margin: 12px 0; box-shadow: 0 4px 0 var(--edge-dark); }
details summary { cursor: pointer; font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; font-size: 18px; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--orange); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { border-bottom: 2px dashed var(--edge); margin-bottom: 8px; }

/* ---------------------------------------------------------------- forms */
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; }
label small { font-weight: 400; color: var(--soft); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--edge-dark); border-radius: 14px; padding: 11px 14px; width: 100%; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 4px rgba(240, 138, 36, .25); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn {
  justify-self: start; display: inline-block; border: 3px solid #fff; border-radius: 999px; padding: 11px 32px 13px; font-size: 19px; font-weight: 600; cursor: pointer; text-decoration: none;
  background: linear-gradient(#6fd05e, var(--green)); color: #fff; box-shadow: 0 5px 0 var(--green-dark), 0 9px 18px rgba(45, 138, 34, .25); text-shadow: 0 2px 0 rgba(30, 90, 20, .5);
}
.btn:hover { color: #fff; filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--green-dark); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.red { background: linear-gradient(#f27b62, #db4a30); box-shadow: 0 5px 0 #a92f1b, 0 9px 18px rgba(169, 47, 27, .25); text-shadow: 0 2px 0 rgba(120, 30, 10, .5); }
.status { min-height: 1.6em; font-weight: 600; margin: 0; }
.status.ok { color: var(--green-dark); } .status.bad { color: #c0392b; }

/* not found */
.lost { text-align: center; padding-top: 50px; }
.lost img { margin: 0 auto 10px; width: 130px; }
.lost h1 { font-size: 40px; margin: 0; }

/* ---------------------------------------------------------------- motion: between pages, as a page opens, as it scrolls */
@view-transition { navigation: auto; }
.top { view-transition-name: top; }
::view-transition-old(root) { animation: 160ms ease-in both vt-out; }
::view-transition-new(root) { animation: 340ms cubic-bezier(.2, .8, .2, 1) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@keyframes pop { from { opacity: 0; transform: scale(.86) rotate(-2deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes arrive { from { opacity: 0; transform: translateY(30px) scale(.94); } }
.hero .logo { animation: pop .75s cubic-bezier(.2, 1.4, .4, 1) both; }
.hero h1 { animation: rise .6s .12s cubic-bezier(.2, .8, .2, 1) both; }
.hero .lead { animation: rise .6s .2s cubic-bezier(.2, .8, .2, 1) both; }
.hero .stores { animation: rise .6s .28s cubic-bezier(.2, .8, .2, 1) both; }
.hero .assure { animation: rise .6s .36s cubic-bezier(.2, .8, .2, 1) both; }
.scene { animation: arrive 1s .15s cubic-bezier(.2, .8, .2, 1) both; }
.page-hero img { animation: pop .65s cubic-bezier(.2, 1.4, .4, 1) both; }
.page-hero h1 { animation: rise .55s .08s cubic-bezier(.2, .8, .2, 1) both; }
.page-hero p { animation: rise .55s .16s cubic-bezier(.2, .8, .2, 1) both; }
.page > * { animation: rise .5s .2s cubic-bezier(.2, .8, .2, 1) both; }
.btn, .pill { transition: transform .15s, filter .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
details { transition: box-shadow .2s; }

/* (as the page scrolls, each part rises into place; where a browser can't tie motion to scrolling, it is simply there) */
@supports (animation-timeline: view()) {
  .head, .friend, .visitors, .play, .elements, .phones li, .season, .places, .day, .trust, .cta {
    animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 38%;
  }
  @keyframes reveal { from { opacity: 0; transform: translateY(28px) scale(.97); } }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------------------------------------------------------------- languages */
.topr { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; justify-content: flex-end; }
.langs { position: relative; font-family: 'Fredoka', system-ui, sans-serif; }
.langs summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; color: var(--soft); font-weight: 500; border: 2px solid var(--edge); background: #fff; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: var(--ink); border-color: var(--edge-dark); }
.langs ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 8px; list-style: none; min-width: 170px;
  background: var(--card); border: 3px solid var(--edge); border-radius: 18px; box-shadow: 0 5px 0 var(--edge-dark), 0 14px 30px rgba(90, 60, 30, .18); }
.langs li { margin: 0; }
.langs a { display: block; padding: 7px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
.langs a:hover { background: #f7e9d2; }
.langs a[aria-current] { background: var(--orange); color: #fff; }
@media (max-width: 600px) { .langs summary span { display: none; } .langs summary { padding: 6px 9px; } }

/* (Chinese and Arabic: Fredoka has no such letters; each script gets its own system faces, and Arabic reads right to left) */
html[lang="zh"] body { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
html[lang="zh"] :is(h1, h2, h3, .ribbon, .btn, .pill, nav, .langs) { font-family: 'Fredoka', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="ar"] body { font-family: "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; line-height: 1.75; }
html[lang="ar"] :is(h1, h2, h3, .ribbon, .btn, .pill, nav, .langs) { font-family: "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; }
[dir="rtl"] .hero::before { left: auto; right: -12%; }
[dir="rtl"] details summary::after { margin-inline-start: 0; }
/* (the language menu is a details element too: none of the FAQ boxes' dress) */
details.langs { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; border-radius: 0; }
details.langs summary { font-size: 16px; }
details.langs summary::after { content: none; }
details.langs[open] summary { border-bottom: 2px solid var(--edge-dark); margin-bottom: 0; }
/* (on a phone: the language button beside the name, the links on a row of their own under them) */
@media (max-width: 600px) {
  .topr { display: contents; }
  .top .langs { order: 1; margin-inline-start: auto; }
  .top nav { order: 2; width: 100%; justify-content: space-between; }
}

/* numbers that must read left to right inside Arabic text (phone numbers, codes) */
a[href^="tel:"], .ltr { direction: ltr; unicode-bidi: isolate; }

/* long words (German compounds, emails, Latin codes in Chinese) wrap instead of pushing the page wider; hyphenated by the page's language */
.page { overflow-wrap: break-word; hyphens: auto; }
.page a, .page td { overflow-wrap: anywhere; }
.page-hero .wrap > div { min-width: 0; }
.page-hero h1, h1, h2 { overflow-wrap: break-word; hyphens: auto; }
