/* Daily Isles game page. The look follows the game: a pastel daytime sky, cream "stickers" with a thick
   ink outline and a hard drop shadow, and a rounded coral-and-green logo set in Fredoka.
   Nunito is declared in /assets/css/studio.css; the studio header and footer come from studio.css. */

@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/fredoka-latin-700-normal.woff2) format("woff2"); }

:root {
  --d-ink: #2a2350;
  --d-ink-soft: #5d5689;
  --d-paper: #fff8ec;
  --d-coral: #ff5d73;
  --d-grass: #6fd35a;
  --d-gold: #ffc531;
  --d-blue: #4b8df8;
  --d-font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --d-logo: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --d-wrap: 1120px;
  --d-gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.di { margin: 0; background: #fff6e8; color: var(--d-ink); font: 700 17px/1.55 var(--d-font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.di img { max-width: 100%; display: block; }
.di main a { color: var(--d-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.di main :focus-visible { outline: 3px solid var(--d-coral); outline-offset: 3px; border-radius: 8px; }
.d-wrap { width: min(var(--d-wrap), 100%); margin: 0 auto; padding: 0 var(--d-gutter); }
.d-card { background: var(--d-paper); border: 3px solid var(--d-ink); border-radius: 22px; box-shadow: 0 5px 0 var(--d-ink); }

/* ---------- hero: the game's sky ---------- */
.d-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(#5aa6f2 0%, #a9d6ff 50%, #ffe2c6 86%, #fff6e8 100%); }
.d-hero::before, .d-hero::after { /* two clouds drifting by */
  content: ""; position: absolute; z-index: -1; background: #fff; border-radius: 999px; opacity: .92;
  box-shadow: 40px -18px 0 6px #fff, 86px 2px 0 -4px #fff; }
.d-hero::before { width: 120px; height: 38px; top: 104px; right: -50px; }
.d-hero::after { width: 90px; height: 30px; bottom: 190px; left: -40px; opacity: .8; }
.d-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.di .d-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--d-ink); text-decoration: none; font-weight: 900; font-size: 19px; }
.d-brand img { width: 40px; height: 40px; border-radius: 11px; border: 2.5px solid var(--d-ink); }
.d-top nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.di .d-top nav a { color: var(--d-ink); text-decoration: none; font-weight: 900; font-size: 15px; padding: 8px 12px; border-radius: 12px; }
.di .d-top nav a:hover { background: rgba(255, 255, 255, .5); }

.d-hero-grid { display: grid; gap: 18px; align-items: center; padding-top: 10px; }
.d-hero-copy { text-align: center; }
.d-logo { margin: 6px 0 0; display: flex; flex-direction: column; align-items: center; font: 700 clamp(78px, 19vw, 136px)/.84 var(--d-logo); letter-spacing: -.01em;
  -webkit-text-stroke: 9px var(--d-ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--d-ink); }
.d-logo span { display: block; }
.d-logo .a { color: var(--d-coral); transform: rotate(-5deg); }
.d-logo .b { color: var(--d-grass); transform: rotate(3deg) translateX(14%); }
.d-tagline { margin: 24px 0 0; font-weight: 900; font-size: clamp(20px, 2.6vw, 25px); color: #fff; -webkit-text-stroke: 5px var(--d-ink); paint-order: stroke fill; }
.d-intro { margin: 14px auto 0; max-width: 36ch; font-size: 18px; font-weight: 800; }
.d-cta { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.d-note { margin: 0; font-size: 14px; font-weight: 800; color: var(--d-ink-soft); }

.d-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; height: clamp(300px, 64vw, 540px); }
.d-phones img { width: clamp(150px, 40vw, 252px); height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 26px; border: 4px solid var(--d-ink); box-shadow: 0 7px 0 var(--d-ink); }
.d-phones img:first-child { transform: rotate(-6deg) translate(16px, 30px); }
.d-phones img:last-child { transform: rotate(5deg) translate(-16px, 64px); }

/* ---------- the store button ---------- */
.di .d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 10px 26px; border-radius: 999px;
  text-decoration: none; color: #fff; font-weight: 900; font-size: 21px; background: var(--d-coral); border: 3px solid var(--d-ink); box-shadow: 0 5px 0 var(--d-ink);
  -webkit-text-stroke: 1.2px var(--d-ink); paint-order: stroke fill; transition: transform .06s ease, box-shadow .06s ease; }
.di .d-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--d-ink); }
.d-btn svg { width: 22px; height: 22px; flex: none; }
.d-btn .bt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.d-btn small { font-size: 12px; font-weight: 900; }
.di .d-btn.is-soon { background: var(--d-paper); color: var(--d-ink); -webkit-text-stroke: 0; cursor: default; }
.di .d-btn.is-soon:active { transform: none; box-shadow: 0 5px 0 var(--d-ink); }

/* ---------- sections ---------- */
.di main section { padding: 64px 0; }
.d-h2 { margin: 0 0 8px; font: 700 clamp(34px, 5vw, 48px)/1.05 var(--d-logo); letter-spacing: -0.01em; }
.d-lead { margin: 0 0 28px; color: var(--d-ink-soft); font-size: 18px; max-width: 58ch; }

.d-moves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.d-moves li { padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.d-moves svg { width: 64px; height: 48px; flex: none; }
.d-moves b { display: block; font-size: 20px; font-weight: 900; }
.d-moves span { color: var(--d-ink-soft); }
.d-fair { margin: 24px 0 0; max-width: 62ch; }
.d-fair strong { color: #2f8a2a; }

/* the critter cast: one per number */
.d-cast { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
.d-cast li { display: grid; justify-items: center; gap: 4px; text-align: center; }
.d-cast img { width: 100%; max-width: 96px; height: auto; }
.d-cast span { font-weight: 900; font-size: 14px; line-height: 1.2; }

/* the week, easiest to hardest */
.d-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); gap: 12px; }
.d-week li { padding: 14px 14px 16px; display: grid; gap: 4px; }
.d-week b { font: 700 22px/1 var(--d-logo); }
.d-week span { color: var(--d-ink-soft); font-size: 15px; }
.d-pips { display: flex; gap: 3px; margin: 4px 0 2px; }
.d-pips i { width: 12px; height: 7px; border-radius: 4px; background: #e3def0; }
.d-pips i.on { background: var(--d-coral); }

.d-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.d-modes .d-card { padding: 22px; }
.d-modes h3 { margin: 0 0 6px; font: 700 26px/1.1 var(--d-logo); }
.d-modes p { margin: 0 0 12px; color: var(--d-ink-soft); }
.d-modes ul { margin: 0; padding-left: 20px; }
.d-modes li + li { margin-top: 4px; }
.d-share { margin: 14px 0 0; padding: 12px 14px; background: #fff; border: 3px dashed #cfc7e4; border-radius: 14px; font-weight: 800; font-size: 15px; line-height: 1.5; }

.d-isles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.d-isles li { padding: 8px 8px 12px; display: grid; gap: 2px; }
.d-isles img { width: 100%; height: auto; aspect-ratio: 600 / 420; border-radius: 14px; border: 2.5px solid var(--d-ink); margin-bottom: 8px; }
.d-isles b { font-size: 18px; font-weight: 900; padding: 0 4px; }
.d-isles span { color: var(--d-ink-soft); font-size: 15px; padding: 0 4px; }

.d-strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--d-gutter) 22px; margin: 0 calc(var(--d-gutter) * -1); scrollbar-width: thin; }
.d-strip figure { flex: 0 0 auto; width: min(230px, 62vw); margin: 0; scroll-snap-align: center; }
.d-strip img { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 22px; border: 3px solid var(--d-ink); box-shadow: 0 5px 0 var(--d-ink); }
.d-strip figcaption { margin-top: 12px; text-align: center; font-weight: 900; }
.d-hint { margin: 0; font-size: 14px; color: var(--d-ink-soft); }

.d-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.d-facts li { background: var(--d-paper); border: 3px solid var(--d-ink); border-radius: 20px; padding: 16px 18px; }
.d-facts p { margin: 0; }
.d-facts b { display: block; font-size: 18px; font-weight: 900; }
.d-facts span { color: var(--d-ink-soft); }

.di main .d-get { text-align: center; background: linear-gradient(#fff6e8, #ffe2c6); padding-bottom: 80px; }
.d-get .d-lead { margin-left: auto; margin-right: auto; }
.d-privacy { margin: 18px 0 0; font-size: 15px; }

@media (min-width: 900px) {
  .d-hero-grid { grid-template-columns: 1.05fr 1fr; padding-bottom: 0; }
  .d-hero-copy { text-align: left; padding-bottom: 40px; }
  .d-logo { align-items: flex-start; }
  .d-intro { margin-left: 0; }
  .d-cta { align-items: flex-start; }
  .d-cast { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .d-cast img { width: 100%; max-width: 110px; height: auto; }
  .d-week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .d-top nav a[href="#daily"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
