@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fredoka:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  --ink: #101827;
  --ink-soft: #18243a;
  --paper: #f8faf4;
  --muted: #9eabc0;
  --lime: #c8ff4d;
  --aqua: #6bddff;
  --sun: #ffd557;
  --coral: #ff7a69;
  --violet: #a98bff;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 22px 60px rgba(2, 7, 18, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: #f6f8ff;
  background:
    radial-gradient(circle at 10% 0%, rgba(107, 221, 255, 0.15), transparent 26rem),
    radial-gradient(circle at 92% 32%, rgba(200, 255, 77, 0.1), transparent 25rem),
    var(--ink);
  font: 16px/1.5 'DM Sans', system-ui, sans-serif;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: 0.6rem;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header,
main,
footer {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font: 600 1.25rem/1 'Fredoka', sans-serif;
}

.brand-mark {
  width: 2.15rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border-radius: 0.7rem 0.7rem 0.7rem 0.2rem;
  transform: rotate(-5deg);
  box-shadow: 0 0 24px rgba(200, 255, 77, 0.2);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.sound-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--lime);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  cursor: pointer;
  font: 700 1.2rem/1 'Fredoka', sans-serif;
}
.sound-button[aria-pressed="false"] { color: #8b96a8; }
.sound-button:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

.guest-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #cdd5e3;
  font-size: 0.88rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200, 255, 77, 0.1);
}

.button,
.icon-button {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}

.button:hover,
.icon-button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.button:active,
.icon-button:active { transform: translateY(0); }
.button:focus-visible,
.icon-button:focus-visible,
.game-tab:focus-visible,
.garden-cell:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

.button {
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 0.85rem;
}

.button-quiet { color: #eaf0fb; background: rgba(255, 255, 255, 0.08); }
.button-dark { width: 100%; color: white; background: var(--ink); }
.button-light { color: var(--ink); background: white; white-space: nowrap; }
.button-outline { color: white; background: transparent; border: 1px solid rgba(255, 255, 255, 0.22); }
.button:disabled { cursor: not-allowed; opacity: 0.42; transform: none; filter: none; }

.game-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.game-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 76px;
  padding: 0.8rem 1rem;
  color: #d8e0ed;
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  cursor: pointer;
}

.game-tab::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: -1px;
  height: 3px;
  background: transparent;
  border-radius: 1rem 1rem 0 0;
}

.game-tab.active {
  color: white;
  background: rgba(255, 255, 255, 0.095);
  border-color: rgba(255, 255, 255, 0.2);
}
.game-tab.active::after { background: var(--lime); }
.game-tab strong, .game-tab small { display: block; }
.game-tab strong { font: 600 1.03rem/1.2 'Fredoka', sans-serif; }
.game-tab small { margin-top: 0.18rem; color: var(--muted); font-size: 0.78rem; }

.tab-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 1rem;
  font-size: 1.6rem;
}
.garden-icon { background: var(--lime); }
.orbit-icon { background: var(--aqua); }
.alchemy-icon { background: var(--violet); }
.word-icon { background: #ffb7e1; font-size: 1rem; font-weight: 800; }
.courier-icon { background: #9ee7f5; }
.echo-icon { background: #ff9d8e; }
.numbers-icon { background: #ffd87a; font-size: 1rem; font-weight: 800; }
.tempo-icon { background: #97f3c1; }
.lantern-icon { background: #ffd788; }
.snack-icon { background: #ffae91; }
.detective-icon { background: #9ec8ff; }
.kingdom-icon { background: #c4b2ff; }

.friend-challenge {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1rem;
  padding: 0.75rem 3rem 0.75rem 0.9rem;
  color: var(--ink);
  background: linear-gradient(100deg, var(--aqua), #b9f2ff);
  border-radius: 1rem;
}
.friend-challenge[hidden] { display: none; }
.challenge-icon { width: 42px; aspect-ratio: 1; display: grid; place-items: center; background: rgba(255,255,255,0.55); border-radius: 0.75rem; font-size: 1.3rem; }
.friend-challenge strong, .friend-challenge small { display: block; }
.friend-challenge small { margin-top: 0.12rem; color: #42546b; }
.challenge-dismiss { position: absolute; top: 0.3rem; right: 0.45rem; color: #354153; background: transparent; border: 0; cursor: pointer; font-size: 1.25rem; }

.play-shell {
  min-height: 650px;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  color: var(--ink);
  background: var(--paper);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.game-panel[hidden] { display: none; }

.game-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.game-heading h1,
.daily-strip h2 {
  margin: 0;
  font: 700 clamp(2rem, 5vw, 3.4rem)/1 'Fredoka', sans-serif;
  letter-spacing: -0.035em;
}
.game-heading p:not(.eyebrow) { max-width: 38rem; margin: 0.65rem 0 0; color: #5c6778; }

.journey-hud {
  margin: 1rem 0 1.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 26, 48, 0.14);
  border-radius: 16px;
  background: linear-gradient(105deg, rgba(200, 255, 77, 0.2), rgba(107, 221, 255, 0.13));
}
.journey-copy,
.journey-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.journey-phase { font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #34415a; }
.journey-time { color: var(--ink); font-size: 0.94rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.journey-progress { height: 8px; margin: 0.55rem 0 0.65rem; overflow: hidden; border-radius: 999px; background: rgba(15, 26, 48, 0.14); }
.journey-progress > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9bdc22, #18abc7); transition: width 250ms linear; }
.journey-note { color: #526078; font-size: 0.78rem; line-height: 1.35; }
.journey-start { flex: 0 0 auto; min-height: 36px; padding: 0.45rem 0.75rem; border: 1px solid rgba(15, 26, 48, 0.2); border-radius: 10px; background: var(--ink); color: white; font: inherit; font-size: 0.76rem; font-weight: 850; cursor: pointer; }
.journey-start:disabled { cursor: default; opacity: 0.68; }
.eyebrow { margin: 0 0 0.35rem; color: #5b6675; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.icon-button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: #e8ebdf;
  border-radius: 50%;
  font: 700 1.1rem/1 'Fredoka', sans-serif;
}

.game-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: stretch; }

.score-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
  color: white;
  background: #233148;
  border-radius: 1.3rem;
}

.score-row {
  padding: 0.5rem 0.3rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.score-row span, .score-row strong { display: block; }
.score-row span { color: #aeb9cb; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.score-row strong { margin-top: 0.1rem; font: 600 2rem/1.1 'Fredoka', sans-serif; }
.best-row strong { color: var(--sun); }

.next-plant {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  flex: 1;
  min-height: 116px;
  padding: 0.7rem;
  color: #aeb9cb;
  font-size: 0.8rem;
}

.game-actions { display: grid; gap: 0.5rem; width: 100%; }

#next-plant-preview { font-size: 3.25rem; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.2)); }

.garden-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  padding: clamp(0.7rem, 2vw, 1.5rem);
  background: #dff2ba;
  border-radius: 1.5rem;
  background-image: radial-gradient(rgba(58, 96, 53, 0.09) 1.5px, transparent 1.5px);
  background-size: 17px 17px;
}

.garden-board {
  width: min(100%, 475px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.28rem, 1vw, 0.55rem);
  padding: clamp(0.45rem, 1vw, 0.8rem);
  background: #8cbd71;
  border: 6px solid #58854e;
  border-radius: 1.35rem;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.16), 0 16px 24px rgba(52, 89, 43, 0.18);
}

.garden-cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  color: #23412e;
  background: #679957;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.12), inset 0 -3px rgba(35, 65, 46, 0.16);
}
.garden-cell:not(.filled):hover { background: #75aa61; }
.garden-cell.filled { cursor: default; background: #f5e9bb; }
.garden-cell.just-grown { animation: bloom 420ms cubic-bezier(.2, .8, .2, 1); }
.plant { display: block; font-size: clamp(1.25rem, 5vw, 2.6rem); line-height: 1; filter: drop-shadow(0 5px 4px rgba(29, 50, 24, 0.15)); }

.game-message {
  position: absolute;
  inset: auto 1rem 1rem;
  min-height: 24px;
  color: #2f5c38;
  text-align: center;
  font-weight: 700;
  pointer-events: none;
}

.orbit-layout { grid-template-columns: 190px minmax(0, 1fr); }
.orbit-score-card { background: #1c2a49; }
.control-hint { display: grid; place-items: center; gap: 0.45rem; flex: 1; color: #aeb9cb; font-size: 0.82rem; text-align: center; }
.combo-badge {
  color: var(--aqua);
  font: 600 1.05rem/1.1 'Fredoka', sans-serif;
  transition: transform 160ms ease, color 160ms ease;
}
.combo-badge.hot { color: var(--sun); transform: scale(1.08); }
.key-cap { padding: 0.35rem 0.6rem; color: white; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 0.5rem; font-weight: 700; }

.orbit-canvas-wrap {
  position: relative;
  min-height: 480px;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #0b1430;
  cursor: pointer;
  touch-action: manipulation;
}
#orbit-canvas { width: 100%; height: 100%; min-height: 480px; display: block; }

.orbit-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.4rem;
  color: white;
  text-align: center;
  background: rgba(7, 14, 38, 0.35);
  backdrop-filter: blur(3px);
}
.orbit-overlay.hidden { display: none; }
.orbit-overlay-icon { color: var(--aqua); font-size: 3.5rem; animation: pulse 1.8s ease-in-out infinite; }
.orbit-overlay strong { font: 600 1.5rem/1.2 'Fredoka', sans-serif; }
.orbit-overlay span:last-child { color: #b8c5df; font-size: 0.9rem; }

.alchemy-layout { grid-template-columns: 190px minmax(0, 1fr); }
.alchemy-score-card { background: #3a2850; }
.recipe-count { display: grid; place-items: center; gap: 0.2rem; flex: 1; text-align: center; }
.recipe-count strong { color: #e2c9ff; font: 600 1.25rem/1.1 'Fredoka', sans-serif; }
.recipe-count span { color: #c5b3d7; font-size: 0.75rem; }
.alchemy-order-count { display: grid; place-items: center; gap: 0.15rem; text-align: center; }
.alchemy-order-count strong { color: var(--sun); font: 600 1.2rem/1 'Fredoka', sans-serif; }
.alchemy-order-count span { color: #c5b3d7; font-size: 0.72rem; }
.alchemy-lab {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(260px, 1.1fr);
  gap: 1rem;
  min-height: 610px;
  padding: clamp(0.9rem, 2vw, 1.35rem);
  color: white;
  background:
    radial-gradient(circle at 20% 0%, rgba(200, 162, 255, 0.25), transparent 18rem),
    linear-gradient(145deg, #20142e, #362044);
  border-radius: 1.5rem;
}
.cauldron-stage { display: grid; place-content: center; justify-items: center; gap: 0.8rem; min-height: 280px; }
.ingredient-slots { display: flex; align-items: center; gap: 0.55rem; }
.ingredient-slot {
  width: 64px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 2px dashed rgba(255, 255, 255, 0.28);
  border-radius: 1rem;
  font-size: 2rem;
}
.ingredient-slot.filled { background: rgba(255, 255, 255, 0.16); border-style: solid; border-color: #dcc1ff; }
.plus-sign { color: #cbb1dd; font: 700 1.2rem/1 'Fredoka', sans-serif; }
.cauldron {
  position: relative;
  width: 148px;
  height: 112px;
  display: grid;
  place-items: center;
  margin-top: 0.6rem;
  background: #15101c;
  border: 5px solid #0b0810;
  border-radius: 18px 18px 68px 68px;
  box-shadow: inset 0 6px rgba(255,255,255,0.08), 0 16px 25px rgba(0,0,0,0.32);
}
.cauldron::before, .cauldron::after { content: ''; position: absolute; bottom: -12px; width: 18px; height: 24px; background: #0b0810; border-radius: 0 0 8px 8px; }
.cauldron::before { left: 25px; transform: rotate(10deg); }
.cauldron::after { right: 25px; transform: rotate(-10deg); }
#potion-result { font-size: 3.3rem; filter: drop-shadow(0 0 18px rgba(169, 139, 255, 0.7)); }
.cauldron.brewing { animation: cauldron-brew 480ms ease; }
.alchemy-message { min-height: 24px; color: #e6d7ef; text-align: center; }
.ingredient-tray { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 0.55rem; align-content: end; }
.ingredient-button {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 0.2rem;
  padding: 0.55rem;
  color: white;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0.85rem;
  cursor: pointer;
}
.ingredient-button:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.ingredient-button:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.ingredient-button.locked { opacity: 0.55; cursor: not-allowed; filter: grayscale(0.5); }
.ingredient-button.locked:hover { background: rgba(255,255,255,0.08); transform: none; }
.ingredient-button span { font-size: 1.65rem; }
.ingredient-button small { color: #d2c4db; font-size: 0.7rem; }
.alchemy-order { grid-column: 1; display: grid; align-content: start; gap: 0.45rem; padding: 0.85rem; background: rgba(255, 216, 122, 0.12); border: 1px solid rgba(255, 216, 122, 0.24); border-radius: 0.9rem; }
.alchemy-order p { margin: 0; color: #ffe39b; }
.alchemy-order > div { display: flex; align-items: center; gap: 0.7rem; }
.alchemy-order-icon { font-size: 2rem; }
.alchemy-order strong, .alchemy-order small { display: block; }
.alchemy-order strong { color: #fff8df; font-size: 0.9rem; }
.alchemy-order small { margin-top: 0.2rem; color: #d9cbb0; font-size: 0.72rem; }
.recipe-book { grid-column: 2; grid-row: 2; display: grid; gap: 0.6rem; align-content: start; padding-top: 0.25rem; }
.recipe-book-heading { display: flex; justify-content: space-between; align-items: baseline; color: #f4ebfb; font-weight: 700; }
.recipe-book-heading small { color: #bcacc9; font-weight: 500; }
.recipe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.recipe-card { display: flex; align-items: center; gap: 0.55rem; min-height: 52px; padding: 0.55rem 0.65rem; background: rgba(255,255,255,0.08); border-radius: 0.7rem; }
.recipe-card.locked { color: #a99ab5; }
.recipe-card.unavailable { opacity: 0.58; }
.recipe-card .recipe-icon { font-size: 1.45rem; }
.recipe-card strong, .recipe-card small { display: block; }
.recipe-card strong { font-size: 0.78rem; }
.recipe-card small { color: #bcacc9; font-size: 0.66rem; }

.micro-layout { grid-template-columns: 190px minmax(0, 1fr); }
.micro-stage {
  min-height: 480px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 2.5rem);
  border-radius: 1.5rem;
  overflow: hidden;
}
.micro-kicker { margin: 0; color: #5f6a7a; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.micro-message { min-height: 24px; color: #465366; text-align: center; }
.micro-stat { display: grid; place-items: center; gap: 0.2rem; flex: 1; color: #bac4d4; text-align: center; }
.micro-stat strong { color: white; font: 600 1.35rem/1 'Fredoka', sans-serif; }
.micro-stat span { font-size: 0.72rem; }

.word-score-card { background: #56314d; }
.word-stage { background: linear-gradient(150deg, #ffe1f1, #f2c8e8); }
.word-scramble { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }
.word-letter { min-width: 48px; min-height: 58px; display: grid; place-items: center; color: #44243e; background: white; border-radius: 0.8rem; box-shadow: 0 8px 18px rgba(73, 37, 66, 0.12); font: 700 1.65rem/1 'Fredoka', sans-serif; text-transform: uppercase; }
.word-hint { min-height: 24px; margin: 0; color: #704a68; text-align: center; }
.word-form { width: min(100%, 430px); display: grid; gap: 0.4rem; }
.word-form label { color: #5f3d57; font-size: 0.78rem; font-weight: 700; }
.word-form > div { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; }
.word-form input { min-width: 0; min-height: 48px; padding: 0.65rem 0.8rem; color: var(--ink); background: white; border: 2px solid transparent; border-radius: 0.8rem; font-size: 1.05rem; }
.word-form input:focus { outline: 3px solid #9d4e88; border-color: white; }

.courier-score-card { background: #224558; }
.courier-stage { align-content: stretch; background: linear-gradient(#b9efff, #edfaff); }
.courier-board { width: min(100%, 440px); height: 370px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(6, 1fr); gap: 0.35rem; padding: 0.6rem; background: rgba(255,255,255,0.3); border: 2px solid rgba(35,77,98,0.12); border-radius: 1.2rem; }
.courier-cell { display: grid; place-items: center; background: rgba(255,255,255,0.2); border-radius: 0.6rem; font-size: 1.75rem; }
.courier-cell.plane { background: rgba(255,213,87,0.42); }
.courier-controls { width: min(100%, 520px); display: grid; grid-template-columns: 1fr minmax(130px, 1.3fr) 1fr; align-items: center; gap: 0.6rem; }

.echo-score-card { background: #293854; }
.echo-stage { background: #dce6f5; }
.echo-grid { width: min(82vw, 390px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.echo-pad { border: 4px solid rgba(16,24,39,0.13); border-radius: 1.6rem; cursor: pointer; opacity: 0.72; font: 700 1.25rem/1 'Fredoka', sans-serif; transition: transform 120ms ease, opacity 120ms ease, filter 120ms ease; }
.echo-pad:hover { opacity: 0.9; }
.echo-pad.active { opacity: 1; transform: scale(1.045); filter: brightness(1.22) drop-shadow(0 0 18px currentColor); }
.echo-pad:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; }
.pad-lime { color: #416211; background: var(--lime); }
.pad-aqua { color: #125c73; background: var(--aqua); }
.pad-sun { color: #765c08; background: var(--sun); }
.pad-coral { color: #7b271d; background: var(--coral); }

.numbers-score-card { background: #4f4022; }
.numbers-stage { background: linear-gradient(145deg, #fff1bc, #f7dc86); }
.number-target { width: 112px; aspect-ratio: 1; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 50%; box-shadow: 0 12px 26px rgba(16,24,39,0.2); font: 700 2.5rem/1 'Fredoka', sans-serif; }
.number-grid { width: min(100%, 480px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.number-tile { min-height: 84px; color: #5a430d; background: rgba(255,255,255,0.75); border: 3px solid transparent; border-radius: 50% 50% 45% 45%; cursor: pointer; font: 700 1.6rem/1 'Fredoka', sans-serif; }
.number-tile:hover { transform: translateY(-2px); background: white; }
.number-tile.selected { color: white; background: #7756a8; border-color: white; }
.number-tile:focus-visible { outline: 4px solid #7756a8; outline-offset: 3px; }

.tempo-score-card { background: #1d493e; }
.tempo-stage { background: linear-gradient(150deg, #c8f6dc, #9ee8c4); }
.tempo-meter { position: relative; width: min(100%, 580px); height: 88px; background: rgba(16,24,39,0.14); border: 5px solid white; border-radius: 99px; box-shadow: inset 0 5px 15px rgba(16,24,39,0.1); }
.tempo-zone { position: absolute; left: 43%; top: 0; bottom: 0; width: 14%; background: var(--sun); border-left: 3px solid white; border-right: 3px solid white; }
.tempo-marker { position: absolute; left: 0; top: 50%; width: 34px; aspect-ratio: 1; background: var(--coral); border: 4px solid white; border-radius: 50%; box-shadow: 0 5px 13px rgba(16,24,39,0.22); transform: translate(-50%, -50%); }
.tempo-tap { width: 132px; aspect-ratio: 1; color: white; background: var(--ink); border: 8px solid rgba(255,255,255,0.75); border-radius: 50%; cursor: pointer; box-shadow: 0 12px 0 #07101c; font: 700 1.2rem/1 'Fredoka', sans-serif; }
.tempo-tap:active { transform: translateY(8px); box-shadow: 0 4px 0 #07101c; }
.tempo-tap:disabled { cursor: not-allowed; opacity: 0.45; }

.lantern-score-card { background: #47351e; }
.lantern-stage { background: radial-gradient(circle at 50% 35%, #263c59, #101b32 72%); }
.lantern-stage .micro-kicker, .lantern-stage .micro-message { color: #f7e2aa; }
.lantern-grid { width: min(82vw, 430px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; }
.lantern-tile { position: relative; display: grid; place-items: center; color: #718198; background: #17253c; border: 2px solid #3b4b62; border-radius: 1rem; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.03); }
.lantern-tile strong { font: 700 clamp(2rem, 7vw, 3.2rem)/1 'Fredoka', sans-serif; }
.lantern-tile > span { position: absolute; z-index: 1; top: 0.35rem; left: 0.45rem; font-size: 1.1rem; }
.lantern-tile.lit { color: #ffe59c; background: #503f25; border-color: #ffd86b; box-shadow: 0 0 20px rgba(255,216,107,.25), inset 0 0 18px rgba(255,216,107,.12); }
.lantern-tile:focus-visible { outline: 4px solid var(--aqua); outline-offset: 2px; }

.snack-score-card { background: #62382f; }
.snack-stage { background: linear-gradient(150deg, #ffe5be, #ffb99e); }
#snack-canvas { width: min(100%, 560px); height: auto; border: 4px solid rgba(115,65,43,.18); border-radius: 1.25rem; touch-action: manipulation; cursor: pointer; }

.detective-score-card { background: #273552; }
.detective-stage { background: radial-gradient(circle at 50% 15%, #eef5ff, #c1d2e8); }
.detective-grid { width: min(100%, 520px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.detective-object { min-height: 108px; color: var(--ink); background: rgba(255,255,255,.78); border: 3px solid transparent; border-radius: 1.1rem; cursor: pointer; box-shadow: 0 9px 22px rgba(24,42,69,.11); font-size: clamp(2rem, 7vw, 3rem); }
.detective-object:disabled { cursor: default; opacity: 1; }
.detective-object:not(:disabled):hover { transform: translateY(-3px); background: white; }
.detective-object.correct { background: #dbff9b; border-color: #689713; }
.detective-object.wrong { background: #ffd0c9; border-color: #be493c; }
.detective-object:focus-visible { outline: 4px solid #335d91; outline-offset: 2px; }

.kingdom-score-card { background: #34412c; }
.kingdom-stage { background: linear-gradient(145deg, #e5f2c7, #b7d69f); }
.kingdom-next { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.85rem; color: #33422d; background: rgba(255,255,255,.68); border-radius: 99px; }
.kingdom-next span { font-size: 0.78rem; font-weight: 700; }
.kingdom-next strong { font: 600 1rem/1 'Fredoka', sans-serif; }
.kingdom-grid { width: min(82vw, 450px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.45rem; padding: 0.6rem; background: rgba(64,89,44,.14); border-radius: 1.25rem; }
.kingdom-tile { display: grid; place-items: center; color: #638053; background: rgba(255,255,255,.35); border: 2px dashed rgba(67,93,50,.28); border-radius: 0.8rem; cursor: pointer; font-size: clamp(1.35rem, 5vw, 2.4rem); }
.kingdom-tile:not(:disabled):hover { background: rgba(255,255,255,.68); transform: translateY(-2px); }
.kingdom-tile.built { background: #f7f4d8; border-style: solid; border-color: rgba(67,93,50,.2); }
.kingdom-tile:focus-visible { outline: 4px solid #355a28; outline-offset: 2px; }

.ad-slot {
  min-height: 310px;
  margin: 1rem 0;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  padding: 0.8rem 0;
  color: #6f7a8c;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
}
.ad-slot span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; }
.ad-slot p { margin: 0.18rem 0 0; font-size: 0.8rem; }
.ad-unit { width: 300px; min-height: 250px; margin-inline: auto; }
.ad-unit [data-admedia-spot] { width: 300px; min-height: 250px; margin-inline: auto; }

.daily-strip {
  display: grid;
  grid-template-columns: 1.2fr minmax(220px, 1fr) auto;
  align-items: center;
  gap: 2rem;
  margin: 1rem 0 2.2rem;
  padding: 1.25rem 1.4rem;
  color: var(--ink);
  background: var(--sun);
  border-radius: 1.3rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}
.daily-strip .eyebrow { color: #796419; }
.daily-label-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.35rem; }
.daily-label-row .eyebrow { margin: 0; }
.streak-pill {
  padding: 0.22rem 0.48rem;
  color: #5c4c13;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}
.daily-strip h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.daily-progress { display: grid; gap: 0.4rem; }
.progress-copy { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.82rem; }
.progress-track { height: 9px; background: rgba(54, 43, 5, 0.16); border-radius: 99px; overflow: hidden; }
.progress-track span { display: block; width: 0%; height: 100%; background: var(--ink); border-radius: inherit; transition: width 300ms ease; }

.discover-section { margin: 0 0 2.2rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.05 'Fredoka', sans-serif; }
.discover-actions { max-width: 430px; display: flex; align-items: center; justify-content: flex-end; gap: 0.8rem; }
.discover-actions p { margin: 0; color: #9eabc0; font-size: 0.9rem; }
.discover-actions .button { flex: 0 0 auto; }
.discover-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.discover-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 104px;
  padding: 0.9rem;
  color: var(--ink);
  text-align: left;
  border: 0;
  border-radius: 1.1rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  text-decoration: none;
}
.discover-card:hover { transform: translateY(-3px); }
.discover-card:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.discover-card.garden-card { background: #dff2ba; }
.discover-card.orbit-card { background: #bfefff; }
.discover-card.alchemy-card { background: #dec9ff; }
.discover-card.word-card { background: #ffcfe9; }
.discover-card.courier-card { background: #bceefa; }
.discover-card.echo-card { background: #ffc8bf; }
.discover-card.numbers-card { background: #ffe6a8; }
.discover-card.tempo-card { background: #bdf2d4; }
.discover-card.lantern-card { background: #ffe0a3; }
.discover-card.snack-card { background: #ffc2ac; }
.discover-card.detective-card { background: #c6dcff; }
.discover-card.kingdom-card { background: #d7ccff; }
.discover-art { width: 52px; aspect-ratio: 1; display: grid; place-items: center; background: rgba(255,255,255,0.55); border-radius: 0.9rem; font-size: 1.75rem; }
.discover-card strong, .discover-card small { display: block; }
.discover-card strong { font: 600 1rem/1.15 'Fredoka', sans-serif; }
.discover-card small { margin-top: 0.25rem; color: #556174; font-size: 0.72rem; }
.card-arrow { font-size: 1.25rem; }
.collection-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.collection-links a { padding: 0.55rem 0.75rem; color: #dce5f2; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; font-size: 0.82rem; font-weight: 750; text-decoration: none; }
.collection-links a:hover { color: var(--ink); background: var(--aqua); }

.leaderboard-card {
  margin: 0 0 2.2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  color: var(--ink);
  background: #edf0e7;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1.3rem;
}
.leaderboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.leaderboard-heading h2 { margin: 0; font: 700 clamp(1.4rem, 3vw, 2rem)/1.1 'Fredoka', sans-serif; }
.leaderboard-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.25rem; background: #dfe5d5; border-radius: 0.75rem; }
.leaderboard-tab {
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  color: #5c6778;
  background: transparent;
  border: 0;
  border-radius: 0.58rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}
.leaderboard-tab.active { color: var(--ink); background: white; box-shadow: 0 5px 14px rgba(16, 24, 39, 0.08); }
.leaderboard-tab:focus-visible { outline: 3px solid #4c9eb8; outline-offset: 2px; }
.leaderboard-list { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.leaderboard-entry {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 0.72rem;
}
.leaderboard-rank {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  color: #5c6778;
  background: #e4e8dc;
  border-radius: 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
}
.leaderboard-entry:first-child .leaderboard-rank { color: #6e5710; background: var(--sun); }
.leaderboard-player strong, .leaderboard-player span { display: block; }
.leaderboard-player strong { font-size: 0.88rem; }
.leaderboard-player span { color: #778293; font-size: 0.7rem; }
.leaderboard-score { font: 600 1.1rem/1 'Fredoka', sans-serif; }
.leaderboard-empty { padding: 1.1rem; color: #6f7a8c; text-align: center; background: rgba(255,255,255,0.5); border-radius: 0.75rem; }
.leaderboard-note { margin: 0.75rem 0 0; color: #778293; font-size: 0.75rem; text-align: center; }

.answers-section { margin: 0 0 2.2rem; }
.answers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.answers-grid details { padding: 0.95rem 1rem; color: var(--ink); background: #edf0e7; border-radius: 0.9rem; }
.answers-grid summary { cursor: pointer; font-weight: 800; }
.answers-grid p { margin: 0.6rem 0 0; color: #5c6778; font-size: 0.88rem; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2fr);
  gap: 1.4rem 2rem;
  padding: 1.5rem 0 2rem;
  color: #8390a4;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}
.footer-summary, .footer-network { display: grid; align-content: start; gap: 0.45rem; }
.footer-summary strong, .footer-network > strong { color: white; font-family: 'Fredoka', sans-serif; font-size: 0.94rem; }
.footer-projects, .footer-links { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; }
.footer-projects a, .footer-links a, .footer-links button { padding: 0; color: #aab4c4; background: transparent; border: 0; cursor: pointer; font: inherit; text-decoration: none; }
.footer-projects a:hover, .footer-links a:hover, .footer-links button:hover { color: white; text-decoration: underline; }
.footer-links { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.offline-status.is-offline { color: var(--sun); }

html.embed-mode body { min-height: 0; background: var(--ink); }
html.embed-mode .site-header,
html.embed-mode .skip-link,
html.embed-mode .game-switcher,
html.embed-mode .ad-slot,
html.embed-mode .daily-strip,
html.embed-mode .discover-section,
html.embed-mode .leaderboard-card,
html.embed-mode .answers-section,
html.embed-mode .site-footer,
html.embed-mode .analytics-consent,
html.embed-mode .analytics-manage { display: none !important; }
html.embed-mode main { width: 100%; }
html.embed-mode .friend-challenge { width: min(100% - 1rem, 760px); margin: 0.5rem auto; }
html.embed-mode .play-shell { min-height: 100vh; margin: 0; padding: clamp(1rem, 3vw, 2rem); border-radius: 0; box-shadow: none; }

dialog {
  width: min(440px, calc(100% - 2rem));
  padding: 1.5rem;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(4, 10, 22, 0.72); backdrop-filter: blur(4px); }
.dialog-close { float: right; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #e7eadf; cursor: pointer; font-size: 1.4rem; }
#dialog-content h2 { margin: 0 0 0.6rem; font: 700 1.8rem/1.1 'Fredoka', sans-serif; }
#dialog-content p, #dialog-content li { color: #596577; }
#dialog-content ol { padding-left: 1.3rem; }
.settings-group { display: grid; gap: 0.65rem; margin: 1rem 0; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem; background: #edf0e7; border-radius: 0.8rem; }
.setting-row span strong, .setting-row span small { display: block; }
.setting-row span small { margin-top: 0.12rem; color: #697485; font-size: 0.72rem; }
.setting-row select { min-height: 40px; padding: 0.4rem 0.55rem; color: var(--ink); background: white; border: 1px solid #cbd1c2; border-radius: 0.55rem; }
.toggle-switch { min-width: 56px; min-height: 34px; padding: 0.25rem; color: var(--ink); background: #cbd1c2; border: 0; border-radius: 99px; cursor: pointer; }
.toggle-switch[aria-pressed="true"] { background: var(--lime); }
.policy-copy h3 { margin: 1rem 0 0.35rem; font: 600 1rem/1.2 'Fredoka', sans-serif; }
.policy-copy p { margin: 0.3rem 0; font-size: 0.85rem; }

.profile-intro {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
  padding: 0.9rem;
  background: #eaf0de;
  border-radius: 1rem;
}
.profile-avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border-radius: 1rem;
  font-size: 1.6rem;
}
.profile-intro strong, .profile-intro span { display: block; }
.profile-intro strong { font: 600 1.05rem/1.2 'Fredoka', sans-serif; }
.profile-intro span { margin-top: 0.15rem; color: #697485; font-size: 0.8rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem; margin: 1rem 0 1.2rem; }
.stat-tile { padding: 0.75rem 0.55rem; text-align: center; background: #edf0e7; border-radius: 0.8rem; }
.stat-tile strong, .stat-tile span { display: block; }
.stat-tile strong { font: 600 1.35rem/1.1 'Fredoka', sans-serif; }
.stat-tile span { margin-top: 0.2rem; color: #697485; font-size: 0.72rem; }
.achievement-title { margin: 0 0 0.55rem; font: 600 1rem/1.2 'Fredoka', sans-serif; }
.achievement-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
.achievement {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem;
  color: #354153;
  background: #edf0e7;
  border-radius: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.achievement.locked { opacity: 0.48; filter: grayscale(1); }
.achievement-icon { font-size: 1.25rem; }
.profile-note { margin-bottom: 0 !important; font-size: 0.82rem; }
.account-card {
  display: grid;
  gap: 0.85rem;
  margin: 1.1rem 0 0.75rem;
  padding: 1rem;
  background: #eaf0de;
  border: 1px solid #d3dcc2;
  border-radius: 1rem;
}
.account-card h3 { margin: 0; font: 600 1.05rem/1.2 'Fredoka', sans-serif; }
.account-card p { margin: 0.25rem 0 0 !important; font-size: 0.84rem; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 0.2rem; background: #dce4cd; border-radius: 0.75rem; }
.account-tabs button { min-height: 40px; color: #596577; background: transparent; border: 0; border-radius: 0.58rem; cursor: pointer; font-weight: 800; }
.account-tabs button[aria-selected="true"] { color: var(--ink); background: white; box-shadow: 0 3px 12px rgba(28, 39, 54, 0.1); }
.account-form { display: grid; gap: 0.75rem; }
.account-form label { display: grid; gap: 0.3rem; color: #354153; font-size: 0.82rem; font-weight: 800; }
.account-form input { width: 100%; min-height: 44px; padding: 0.65rem 0.75rem; color: var(--ink); background: white; border: 1px solid #bdc8ad; border-radius: 0.68rem; font: inherit; font-size: 1rem; }
.account-form input:focus { outline: 3px solid rgba(105, 208, 167, 0.3); border-color: #4b9678; }
.account-message { min-height: 1.25rem; color: #596577; }
.account-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.account-connected { border-color: #8fc7a9; background: #e5f3e9; }

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 1.3rem;
  max-width: min(90vw, 420px);
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: 0.8rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  text-align: center;
  transform: translate(-50%, calc(100% + 3rem));
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}
.toast.visible { transform: translate(-50%, 0); opacity: 1; }

@keyframes bloom {
  0% { transform: scale(0.5) rotate(-12deg); }
  60% { transform: scale(1.2) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes pulse { 50% { transform: scale(1.1); filter: drop-shadow(0 0 18px rgba(107, 221, 255, 0.65)); } }
@keyframes cauldron-brew {
  0%, 100% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-4deg) scale(1.03); }
  65% { transform: rotate(4deg) scale(1.06); }
}

body.high-contrast {
  --paper: #ffffff;
  --muted: #d6dce7;
  --line: rgba(255,255,255,0.35);
  background: #000;
}
body.high-contrast .play-shell,
body.high-contrast .leaderboard-card { border: 3px solid #000; }
body.high-contrast .game-heading p:not(.eyebrow),
body.high-contrast #dialog-content p,
body.high-contrast #dialog-content li { color: #273244; }
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }

@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  .guest-pill { display: none; }
  .game-layout, .orbit-layout { grid-template-columns: 1fr; }
  .alchemy-layout { grid-template-columns: 1fr; }
  .micro-layout { grid-template-columns: 1fr; }
  .score-card { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; }
  .score-row { border: 0; border-right: 1px solid rgba(255,255,255,0.12); padding: 0.1rem 0.7rem; }
  .next-plant { min-height: 70px; grid-row: 1; grid-column: 3; padding: 0; }
  #next-plant-preview { font-size: 2.4rem; }
  .score-card .button { grid-column: 1 / -1; }
  .score-card .game-actions { grid-column: 1 / -1; }
  .control-hint { grid-column: 3; grid-row: 1; }
  .garden-wrap, .orbit-canvas-wrap, #orbit-canvas { min-height: min(86vw, 520px); }
  .daily-strip { grid-template-columns: 1fr; gap: 1rem; }
  .daily-strip .button { width: 100%; }
  .leaderboard-heading { align-items: stretch; flex-direction: column; }
  .leaderboard-tabs { width: 100%; }
  .leaderboard-tab { flex: 1; }
  .alchemy-lab { min-height: 0; }
  .friend-challenge { grid-template-columns: auto minmax(0, 1fr); }
  .friend-challenge .button { grid-column: 1 / -1; }
  .discover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .answers-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 0.5rem; }
  .discover-actions { max-width: none; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header, main, footer { width: min(100% - 1rem, 1160px); }
  .brand span:last-child { display: none; }
  .sound-button { width: 42px; height: 42px; }
  .button-quiet { padding-inline: 0.8rem; }
  .game-tab { min-height: 68px; padding: 0.55rem; gap: 0.55rem; }
  .tab-icon { width: 42px; height: 42px; border-radius: 0.8rem; }
  .game-tab small { display: none; }
  .game-tab { justify-content: center; }
  .game-tab > span:last-child { display: none; }
  .install-button { display: none !important; }
  .play-shell { min-height: 0; padding: 1rem; border-radius: 1.4rem; }
  .game-heading h1 { font-size: 2.15rem; }
  .game-heading p:not(.eyebrow) { font-size: 0.9rem; }
  .journey-footer { align-items: flex-start; flex-direction: column; }
  .journey-start { width: 100%; }
  .garden-wrap { padding: 0.4rem; }
  .garden-board { border-width: 4px; border-radius: 1rem; }
  .garden-cell { border-radius: 0.5rem; }
  .site-footer { grid-template-columns: 1fr; }
  .achievement-list { grid-template-columns: 1fr; }
  .alchemy-lab { grid-template-columns: 1fr; }
  .recipe-book { grid-column: 1; }
  .recipe-book, .alchemy-order { grid-row: auto; }
  .ingredient-tray { align-content: start; }
  .footer-links { grid-column: 1; }
  .game-switcher { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .micro-stage { min-height: min(112vw, 480px); }
  .courier-controls { grid-template-columns: 1fr 1fr; }
  .courier-controls .micro-message { grid-column: 1 / -1; grid-row: 1; }
  .word-form > div { grid-template-columns: 1fr; }
  .word-letter { min-width: 39px; min-height: 48px; font-size: 1.35rem; }
  .discover-grid { grid-template-columns: 1fr; }
  html.embed-mode .play-shell { padding: 0.75rem; border-radius: 0; }
}

.discover-card{grid-template-columns:minmax(0,1fr) auto}.discover-card .discover-thumbnail{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:#101827;border-radius:12px;grid-column:1/-1}
.daily-feature{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:24px;margin:24px 0;padding:24px;background:#e8ffd4;color:#101827;border-radius:24px}
.daily-feature h2{font-size:clamp(24px,4vw,34px);line-height:1.15}.daily-feature p{line-height:1.5}.daily-feature img{width:100%;height:auto;border-radius:16px}.daily-feature a{text-decoration:none}
html.embed-mode .daily-feature{display:none}
@media(max-width:680px){.daily-feature{grid-template-columns:1fr}.daily-feature>a{display:none}}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
