@font-face {
  font-family:Fredoka;
  src:url('assets/fredoka.ttf') format('truetype');
  font-weight:300 700;
  font-display:swap;
}
@font-face {
  font-family:Montserrat;
  src:url('assets/montserrat.ttf') format('truetype');
  font-weight:100 900;
  font-display:swap;
}
:root {
  --ink:#08758e;
  --deep:#084c65;
  --sky:#cef3fc;
  --paper:#fffdf8;
  --pink:#fa7b97;
  --brown:#493233;
  --body:Montserrat,Arial,sans-serif;
  --display:Fredoka,Arial,sans-serif;
}
* {
  box-sizing:border-box;
}
html {
  background:var(--sky);
  scroll-behavior:smooth;
  scroll-padding-top:35px;
}
body {
  margin:0;
  min-height:100svh;
  background:var(--brown);
  color:var(--deep);
  font:400 16px/1.65 var(--body);
}
button,input {
  font:inherit;
}
button,a,summary {
  -webkit-tap-highlight-color:transparent;
}
a {
  color:inherit;
  text-underline-offset:5px;
}
button,summary {
  cursor:pointer;
}
img {
  max-width:100%;
  height:auto;
  display:block;
}
h1,h2,h3,p {
  margin:0;
}
h1,h2,h3 {
  font-family:var(--display);
  line-height:1.06;
  font-weight:650;
}
h2 {
  font-size:clamp(38px,4.4vw,64px);
}
h3 {
  font-size:32px;
}
p+p {
  margin-top:16px;
}
.wrap {
  width:min(1140px,calc(100% - 72px));
  margin-inline:auto;
}
.skip-link {
  position:fixed;
  left:16px;
  top:-100px;
  z-index:99;
  padding:12px 20px;
  background:white;
}
.skip-link:focus {
  top:10px;
}
:focus-visible {
  outline:3px solid #944aaf;
  outline-offset:6px;
}
.header-area {
  display:flow-root;
  background:var(--sky);
}
html.footer-visible {
  background:var(--brown);
}
.header {
  margin-top:38px;
  position:relative;
  z-index:3;
  display:flex;
  align-items:center;
  min-height:64px;
  background:#fffdfd;
  border-radius:40px;
  padding-left:28px;
  box-shadow:0 3px 0 #c4e9f0;
}
.brand {
  width:112px;
  flex-shrink:0;
  position:relative;
  margin-block:-15px;
}
.header nav {
  display:flex;
  align-items:center;
  justify-content:space-evenly;
  flex:1;
  padding:0 18px;
}
.header nav a {
  text-decoration:none;
  font:600 18px var(--display);
  padding:18px 12px;
  border-radius:20px;
  color:var(--ink);
}
.header nav a:hover {
  background:#e7f8fc;
}
.search-toggle {
  align-self:stretch;
  border:0;
  width:76px;
  border-radius:0 40px 40px 0;
  background:var(--ink);
  color:white;
  display:grid;
  place-items:center;
}
.search-toggle[hidden],.menu-toggle[hidden] {
  display:none;
}
.magnifier {
  width:23px;
  height:23px;
  border:3px solid white;
  border-radius:50%;
  position:relative;
}
.magnifier:after {
  content:'';
  position:absolute;
  width:11px;
  height:3px;
  background:white;
  transform:rotate(-46deg);
  bottom:-6px;
  left:-7px;
}
.menu-toggle {
  display:none;
}
.hero {
  height:430px;
  text-align:center;
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding-top:15px;
  background:url('assets/sky.png') center 16%/100% auto;
}
.hero h1 {
  width:360px;
  z-index:1;
  transform:rotate(-3deg);
}
.hero p {
  z-index:1;
  margin-top:23px;
  font:500 21px var(--display);
  color:var(--ink);
}
.cloud-edge {
  position:absolute;
  bottom:-1px;
  left:0;
  width:100%;
  height:80px;
  background:radial-gradient(ellipse 90px 70px at 50% 100%,var(--paper) 99%,transparent 100%) 0 0/160px 80px repeat-x;
}
.learn {
  background:var(--paper);
  padding:48px 0 85px;
}
.learn-inner {
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:90px;
  max-width:960px;
}
.app-preview {
  position:relative;
  display:grid;
  justify-items:center;
  padding:10px 25px 22px;
}
.preview-circle {
  position:absolute;
  inset:85px -15px 80px;
  background:#e1f6fc;
  border-radius:50%;
  transform:rotate(-12deg);
}
.app-screen {
  position:relative;
  width:260px;
  border:7px solid white;
  border-radius:34px;
  box-shadow:0 15px 45px #117b921b;
  transform:rotate(-4deg);
}
.preview-label {
  position:absolute;
  bottom:0;
  right:-5px;
  padding:10px 20px;
  background:#fff0b8;
  border:3px solid white;
  border-radius:14px;
  font:500 18px var(--display);
  transform:rotate(-5deg);
  color:#735529;
}
.app-heading {
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:19px;
}
.app-icon {
  width:76px;
  border-radius:0;
}
.eyebrow {
  font-size:12px;
  font-weight:800;
  letter-spacing:2px;
  color:var(--ink);
}
.learn h2 {
  color:var(--ink);
  margin-bottom:25px;
}
.learn h2 span {
  color:#ed6d88;
}
.learn-copy>p {
  max-width:425px;
  line-height:1.65;
}
.subjects {
  font-size:14px;
  font-weight:600;
  color:#3f6876;
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-height:54px;
  padding:12px 25px;
  border-radius:30px;
  font:600 21px/1.2 var(--display);
  text-decoration:none;
  color:white;
  border:0;
  transition:transform .18s,box-shadow .18s;
}
.pink {
  background:#dc476e;
  box-shadow:0 6px 0 #af3555;
}
.red {
  background:#eb334e;
  box-shadow:0 6px 0 #b6263b;
}
.button:hover {
  transform:translateY(-3px);
  filter:brightness(1.035);
}
.button:active {
  transform:translateY(3px);
  box-shadow:0 2px 0 #af3555;
}
.learn .button {
  margin-top:28px;
}
.release-note {
  display:block;
  font-size:12px;
  margin-top:20px;
  color:#596f77;
}
.app-details {
  max-width:860px;
  margin-top:38px;
  font-size:15px;
}
.app-details summary {
  width:fit-content;
  margin:auto;
  color:var(--ink);
  font-weight:600;
}
.app-details>div {
  margin-top:24px;
  padding:28px;
  background:#eaf7fa;
  border-radius:24px;
}
.app-details h3 {
  margin-bottom:12px;
}
.channel {
  position:relative;
  padding:90px 0 65px;
  background:#a7e9fb;
}
.top-edge {
  top:-1px;
  bottom:auto;
  transform:rotate(180deg);
}
.sticker {
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  flex-direction:column;
  margin:0 auto -23px;
  transform:rotate(-4deg);
  font-size:clamp(30px,5.8vw,75px);
  line-height:.96;
  filter:drop-shadow(0 5px 0 #682b1e);
  text-align:center;
}
.sticker span,.sticker strong {
  color:#ee382d;
  -webkit-text-stroke:9px white;
  paint-order:stroke fill;
  font-weight:700;
  text-shadow:2px 2px 0 #982911;
}
.sticker strong {
  color:#ff9427;
  font-size:.92em;
  margin-top:6px;
}
.channel-panel {
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:50px;
  align-items:center;
  background:#e1f5ff;
  border:11px solid var(--paper);
  border-radius:38px;
  padding:90px 50px 60px;
}
.video-cover {
  position:relative;
  display:block;
  border:7px solid white;
  border-radius:20px;
  box-shadow:0 7px 0 #60bbcd;
  transform:rotate(-2deg);
  overflow:hidden;
}
.video-cover img {
  aspect-ratio:16/9;
  object-fit:cover;
}
.play {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  margin:auto;
  width:67px;
  height:49px;
  border-radius:15px;
  background:#e92a48;
  color:white;
  font-size:24px;
  box-shadow:0 3px 10px #0003;
  opacity:0;
  transition:opacity .2s;
}
.video-cover:hover .play,.video-cover:focus-visible .play {
  opacity:1;
}
.channel-copy h3 {
  font-size:clamp(30px,3.2vw,45px);
  color:var(--ink);
  margin:14px 0 20px;
}
.channel-copy p {
  font-size:15px;
  max-width:320px;
}
.channel-copy .button {
  margin-top:25px;
  font-size:19px;
  white-space:nowrap;
}
.series-line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  padding:33px 28px 0;
  scroll-margin-top:30px;
}
.series-line h3 {
  font-size:26px;
  margin-bottom:8px;
}
.series-line p {
  font-size:14px;
}
.series-line>a {
  font-family:var(--display);
  font-size:20px;
  font-weight:600;
  white-space:nowrap;
}
.games {
  padding:70px 0 0;
  background:linear-gradient(#a7e9fb,#57d1f3 70%,#b7eecb);
  text-align:center;
}
.games h2 {
  margin-top:14px;
  color:var(--ink);
}
.section-intro {
  max-width:580px;
  margin:20px auto 42px;
}
.games-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  text-align:left;
}
.game-card {
  display:grid;
  grid-template-columns:150px 1fr;
  align-items:start;
  gap:25px;
  background:#fff8f8;
  border:6px solid #fffdf8;
  border-radius:30px;
  padding:30px;
  box-shadow:0 8px 0 #08758e18;
}
.game-card.teka {
  background:#fff6db;
}
.game-card>img {
  width:150px;
  transform:rotate(-5deg);
}
.game-card.teka>img {
  transform:rotate(5deg);
}
.tag {
  font-size:12px;
  font-weight:800;
  letter-spacing:1.1px;
  color:#6a5361;
}
.game-card h3 {
  font-size:32px;
  margin:10px 0 12px;
}
.game-card p {
  font-size:14px;
  line-height:1.6;
}
.game-card details {
  margin-top:18px;
}
.game-card summary {
  font:600 19px var(--display);
  color:#a42951;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.teka summary {
  color:#796000;
}
summary::-webkit-details-marker {
  display:none;
}
.game-card details[open] summary {
  margin-bottom:15px;
}
.game-card details[open] summary span {
  transform:rotate(45deg);
}
.farewell {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:50px;
  padding:65px 0 0;
  overflow:hidden;
}
.farewell img {
  height:285px;
  width:auto;
  object-fit:contain;
  align-self:flex-end;
}
.farewell h3 {
  font-size:37px;
  color:var(--ink);
  margin-bottom:26px;
}
.farewell>div {
  padding-bottom:35px;
}
footer {
  position:relative;
  background:var(--brown);
  color:#f4dddd;
  padding:66px 0 70px;
  border-top:12px solid #328771;
}
.footer-inner {
  display:grid;
  grid-template-columns:1.25fr .7fr 1fr;
  gap:80px;
}
.footer-brand img {
  width:190px;
  max-height:130px;
  object-fit:contain;
}
.footer-brand p {
  font-size:12px;
  margin-top:25px;
  color:#d7babb;
}
.footer-inner h2 {
  font-size:24px;
  color:white;
  margin-bottom:15px;
}
.footer-inner nav a {
  display:block;
  text-decoration:none;
  margin-bottom:4px;
  font-size:15px;
}
.footer-inner a:hover {
  text-decoration:underline;
}
.family>p {
  font-size:14px;
  margin-bottom:20px;
}
.family details {
  font-size:13px;
  margin-bottom:18px;
}
.family summary {
  color:#ffe8b5;
  line-height:1.5;
}
.family details p {
  margin-top:12px;
}
.family>a {
  font-size:15px;
}
dialog {
  border:0;
  border-radius:28px;
  background:var(--paper);
  color:var(--deep);
  padding:30px;
  width:min(540px,calc(100% - 32px));
  max-height:80vh;
  box-shadow:0 25px 100px #084c6540;
}
dialog::backdrop {
  background:#08384985;
  backdrop-filter:blur(5px);
}
.dialog-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:22px;
}
.dialog-head h2 {
  font-size:30px;
}
.close-dialog {
  border:0;
  background:#e1f5ff;
  width:44px;
  height:44px;
  flex-shrink:0;
  border-radius:50%;
  font-size:28px;
  color:var(--ink);
}
dialog label {
  font-size:14px;
  display:block;
  margin-bottom:8px;
}
dialog input {
  width:100%;
  border:2px solid #a5d6de;
  border-radius:15px;
  padding:14px;
  background:white;
  color:var(--deep);
}
#search-results {
  margin-top:18px;
}
#search-results a {
  display:block;
  padding:12px 8px;
  text-decoration:none;
  border-bottom:1px solid #d5e9eb;
  font-family:var(--display);
  font-size:21px;
}
#search-results a:hover {
  background:#e1f5ff;
}
#search-results small {
  display:block;
  font:13px var(--body);
  margin-top:4px;
}
@media(min-width:1500px) {
  .hero {
    background-size:1500px auto;
  }
}
@media(max-width:1000px) {
  .wrap {
    width:calc(100% - 48px);
  }
  .learn-inner {
    gap:45px;
  }
  .channel-panel {
    gap:30px;
    padding:80px 30px 42px;
  }
  .game-card {
    grid-template-columns:110px 1fr;
    padding:25px;
    gap:18px;
  }
  .game-card>img {
    width:110px;
  }
  .footer-inner {
    gap:40px;
  }
  .channel-copy .button {
    font-size:17px;
    padding-inline:18px;
  }
}
/* Mobile layout: independent spacing and full-width reading areas. */
@media (max-width: 720px) {
  html { scroll-padding-top: 24px; }
  body { -webkit-text-size-adjust: 100%; }
  .wrap { width: calc(100% - 40px); }
  .header {
    margin-top: max(18px, env(safe-area-inset-top));
    min-height: 66px;
    padding: 8px 10px 8px 16px;
    flex-wrap: wrap;
    border-radius: 24px;
  }
  .brand { width: 90px; margin-block: 0; padding-block: 5px; }
  .menu-toggle:not([hidden]) {
    display: flex; align-items: center; gap: 10px;
    min-height: 44px; margin-left: auto; padding: 12px;
    border: 0; background: transparent; color: var(--ink);
    font: 600 1.125rem var(--display);
  }
  .menu-bars { width: 18px; height: 14px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
  .menu-bars::after { content: ''; position: absolute; top: 4px; left: 0; width: 100%; border-top: 2px solid currentColor; }
  .menu-toggle[aria-expanded='true'] { background: #e1f5ff; border-radius: 14px; }
  .search-toggle { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; align-self: center; border-radius: 50%; margin-left: 4px; }
  .magnifier { width: 18px; height: 18px; border-width: 2px; }
  .magnifier::after { width: 8px; height: 2px; bottom: -4px; left: -5px; }
  .header nav { width: 100%; flex: auto; order: 4; padding: 12px; }
  .header nav a { min-height: 48px; display: flex; align-items: center; padding: 12px 16px; font-size: 1.125rem; }
  .js .header nav { display: none; }
  .js .header nav.is-open {
    display: grid; grid-template-columns: 1fr 1fr;
    position: absolute; top: calc(100% + 10px); left: 0;
    width: 100%; border-radius: 24px; background: var(--paper);
    box-shadow: 0 12px 25px #084c6526; border: 2px solid white;
  }
  .hero { height: auto; min-height: 300px; padding: 45px 20px 68px; background-size: 720px auto; }
  .hero h1 { width: min(250px, 76vw); }
  .hero p { font-size: 1.125rem; line-height: 1.35; max-width: 290px; margin-top: 20px; }
  .cloud-edge {
    height: 42px;
    background: radial-gradient(ellipse 62px 40px at 50% 100%, var(--paper) 98%, transparent 100%) 0 0 / 110px 42px repeat-x;
  }
  .learn { padding: 26px 0 42px; }
  .learn-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .learn-copy { grid-row: 1; text-align: center; }
  .app-heading { justify-content: center; gap: 12px; margin-bottom: 16px; }
  .app-icon { width: 64px; height: 64px; object-fit: contain; border-radius: 0; }
  .eyebrow { font-size: .75rem; letter-spacing: 1.4px; }
  .learn h2 { font-size: clamp(2.5rem, 10.7vw, 3rem); line-height: 1.04; margin-bottom: 22px; }
  .learn-copy > p { max-width: 420px; margin-inline: auto; font-size: 1rem; line-height: 1.65; }
  .learn-copy > p.subjects { font-size: .875rem; line-height: 1.8; margin-top: 16px; }
  .button { min-height: 52px; max-width: 100%; padding: 14px 20px; font-size: 1.25rem; line-height: 1.25; }
  .learn .button { width: 100%; max-width: 350px; margin-top: 22px; }
  .release-note { max-width: 310px; margin: 18px auto 0; font-size: .8125rem; line-height: 1.6; }
  .app-preview { width: 280px; max-width: 100%; margin-inline: auto; padding: 10px 28px 28px; }
  .preview-circle { inset: 65px 0 65px; transform: none; }
  .app-screen { width: 200px; border-width: 5px; border-radius: 28px; transform: rotate(-3deg); }
  .preview-label { bottom: 0; right: 0; padding: 8px 14px; font-size: 1rem; }
  .app-details { margin-top: 20px; font-size: 1rem; }
  .app-details summary {
    min-height: 48px; width: 100%; padding: 12px 16px;
    border: 1px solid #b2dce4; border-radius: 16px;
    text-align: center; font-size: .9375rem; line-height: 1.5;
  }
  .app-details > div { margin-top: 12px; padding: 22px; }
  .app-details h3 { font-size: 1.75rem; line-height: 1.15; }
  .channel { padding: 64px 0 32px; }
  .sticker { font-size: clamp(1.5rem, 6.7vw, 2.25rem); line-height: 1.2; margin: 0 auto 22px; transform: rotate(-3deg); }
  .sticker span { white-space: nowrap; }
  .sticker strong { font-size: 1.38em; margin-top: 2px; }
  .sticker span, .sticker strong { -webkit-text-stroke-width: 5px; text-shadow: 1px 2px 0 #982911; }
  .channel-panel {
    grid-template-columns: minmax(0, 1fr); padding: 18px 18px 28px;
    gap: 27px; border-width: 5px; border-radius: 28px; text-align: left;
  }
  .video-cover { border-width: 4px; border-radius: 14px; transform: none; }
  .channel-copy h3 { font-size: 2rem; line-height: 1.1; margin: 12px 0 18px; }
  .channel-copy p { font-size: 1rem; line-height: 1.65; max-width: none; }
  .channel-copy .button { width: 100%; margin-top: 22px; font-size: 1.125rem; white-space: normal; }
  .play { opacity: 1; width: 52px; height: 40px; font-size: 19px; }
  .series-line { flex-direction: column; align-items: stretch; text-align: left; padding: 28px 4px 0; gap: 12px; }
  .series-line h3 { font-size: 1.625rem; line-height: 1.2; }
  .series-line p { font-size: .9375rem; line-height: 1.65; }
  .series-line > a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-size: 1.125rem; white-space: normal; }
  .games { padding-top: 32px; }
  .games h2 { font-size: clamp(2rem, 8.4vw, 2.5rem); line-height: 1.12; margin-top: 12px; }
  .section-intro { font-size: 1rem; margin: 18px auto 28px; }
  .games-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .game-card {
    grid-template-columns: 88px minmax(0, 1fr); gap: 20px;
    padding: 22px; border-width: 4px; border-radius: 26px; align-items: center;
  }
  .game-card > img { width: 88px; align-self: center; transform: rotate(-3deg); }
  .game-card.teka > img { transform: rotate(3deg); }
  .game-card .tag { font-size: .6875rem; line-height: 1.45; letter-spacing: .4px; }
  .game-card h3 { font-size: 1.75rem; line-height: 1.1; margin: 10px 0 12px; }
  .game-card p { font-size: .9375rem; line-height: 1.65; }
  .game-card details { margin-top: 12px; }
  .game-card summary { min-height: 48px; font-size: 1.125rem; border-top: 1px solid #084c6518; padding-top: 8px; }
  .game-card details[open] summary { margin-bottom: 12px; }
  .farewell { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 40px 0 32px; overflow: visible; }
  .farewell > div { display: contents; }
  .farewell img { width: 110px; height: auto; max-width: 100%; align-self: center; }
  .farewell h3 { font-size: 1.625rem; line-height: 1.15; text-align: left; margin: 0; }
  .farewell h3 br { display: none; }
  .farewell .button { grid-column: 1 / -1; width: 100%; }
  footer { padding: 36px 0 max(32px, env(safe-area-inset-bottom)); border-top-width: 8px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-brand { display: flex; align-items: center; gap: 24px; }
  .footer-brand img { width: 110px; max-height: none; }
  .footer-brand > a { flex: 0 0 110px; }
  .footer-brand p { margin: 0; font-size: .75rem; line-height: 1.7; }
  .footer-inner nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .footer-inner h2 { font-size: 1.5rem; margin-bottom: 10px; }
  .footer-inner nav h2 { grid-column: 1 / -1; }
  .footer-inner nav a { display: flex; align-items: center; min-height: 44px; margin: 0; font-size: 1rem; }
  .family { grid-column: auto; max-width: none; }
  .family > p, .family details { font-size: .9375rem; line-height: 1.65; }
  .family summary { display: flex; align-items: center; min-height: 48px; padding: 8px 0; }
  .family > a { display: flex; align-items: center; min-height: 44px; font-size: 1rem; }
  dialog { width: calc(100% - 24px); padding: 22px; border-radius: 24px; max-height: 85dvh; }
  .dialog-head h2 { font-size: 1.75rem; line-height: 1.15; }
  dialog input { font-size: 16px; }
  #search-results a { min-height: 48px; }
  #search-results small { font-size: .875rem; line-height: 1.5; }
}
@media (max-width: 359px) {
  .wrap { width: calc(100% - 32px); }
  .game-card { padding: 18px; grid-template-columns: 74px minmax(0, 1fr); gap: 10px 14px; }
  .game-card > img { width: 74px; }
  .game-card h3 { font-size: 1.5rem; }
  .farewell { grid-template-columns: 88px minmax(0, 1fr); }
  .farewell img { width: 88px; }
  .footer-brand { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; }
}
