:root {
  color-scheme: light;
  --ink: #26333a;
  --muted: #667477;
  --paper: #f7f1e8;
  --sand: #e8dccd;
  --foam: #f8fbf8;
  --driftwood: #9b8067;
  --driftwood-dark: #66513f;
  --blue: #8fb3bf;
  --blue-deep: #486f7b;
  --seaglass: #b8d3cf;
  --sunwash: #e9c58c;
  --lagoon: #1aa7b8;
  --aqua: #74d7df;
  --coral: #ff7968;
  --mango: #ffd166;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.72);
  --line: rgba(38, 51, 58, 0.14);
  --shadow: 0 18px 50px rgba(77, 63, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(116, 215, 223, 0.28), transparent 34%),
    linear-gradient(120deg, rgba(255, 209, 102, 0.24), transparent 44%),
    linear-gradient(220deg, rgba(255, 121, 104, 0.16), transparent 46%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(calc(100% - 24px), 1180px);
  min-height: 66px;
  margin: 12px auto 0;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    linear-gradient(120deg, rgba(116, 215, 223, 0.28), rgba(255, 209, 102, 0.14) 56%, rgba(255, 121, 104, 0.14));
  box-shadow: 0 24px 54px rgba(31, 125, 143, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px) saturate(170%);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  position: relative;
  isolation: isolate;
  max-width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 4px 8px 4px 6px;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  font-weight: 900;
}

.brand::before,
.brand::after {
  display: none;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: clamp(78px, 10vw, 128px);
  height: clamp(36px, 4vw, 48px);
  overflow: visible;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(31, 125, 143, 0.16));
}

.brand-text {
  color: var(--ink);
  font-family: "Marker Felt", "Cooper Black", "Trebuchet MS", ui-rounded, system-ui, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.78rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.78),
    0 10px 22px rgba(31, 125, 143, 0.14);
  white-space: nowrap;
}

.site-header nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.site-header nav a {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.36);
  color: rgba(38, 51, 58, 0.78);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.site-header nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 22px rgba(31, 125, 143, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transform: translateY(-1px);
}

.site-header nav a.header-cta {
  border-color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 42%),
    linear-gradient(135deg, var(--coral), #ff9f43 54%, var(--mango));
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 121, 104, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: auto;
  padding: clamp(28px, 5vw, 72px) clamp(18px, 5vw, 72px) clamp(36px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(244, 238, 220, 0.92)),
    linear-gradient(135deg, rgba(184, 211, 207, 0.2), rgba(233, 197, 140, 0.16));
  position: relative;
  overflow: hidden;
}

.hero h2 {
  text-align: center;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 253, 248, 0.72);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.tag {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.5rem, 9vw, 7.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-copy p:not(.eyebrow),
.section-heading + p,
.intro-grid > p,
.daily-copy p {
  color: var(--muted);
}

.hero-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 24px 0;
  font-size: 1.2rem;
}

.hero-actions,
.daily-copy,
.submission-form {
  display: grid;
  gap: 14px;
}

.hero-actions {
  grid-template-columns: repeat(2, max-content);
}

.button {
  display: inline-flex;
  max-width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 12px 18px;
  box-shadow: 0 12px 28px rgba(31, 125, 143, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  font-weight: 950;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-command {
  min-width: 44px;
  padding: 8px;
  font-size: clamp(1.28rem, 2.2vw, 1.75rem);
  line-height: 1;
}

.button.primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, var(--lagoon), #2ec4b6 58%, #48bfe3);
  color: #fff;
}

.button.secondary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.32)),
    linear-gradient(135deg, rgba(116, 215, 223, 0.58), rgba(255, 209, 102, 0.34));
  color: var(--ink);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(31, 125, 143, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.hero-board {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 22px);
  width: min(100%, 1120px);
  min-height: 0;
  border: 1px solid rgba(38, 51, 58, 0.18);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 34px);
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 251, 248, 0.42)),
    rgba(232, 220, 205, 0.38);
  box-shadow: 0 18px 46px rgba(77, 63, 48, 0.12);
}

.hero-pages,
.hero-page,
.hero-page::after {
  position: absolute;
  inset: 0;
}

.hero-pages {
  z-index: 0;
  height: 100%;
  transform-style: preserve-3d;
}

.hero-page {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform-origin: left center;
  transform: rotateY(0.01deg);
  will-change: opacity, transform, filter;
  animation: page-turn-cycle 147s ease-in-out infinite;
  backface-visibility: hidden;
}

.hero-page::after {
  content: "";
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 62%, rgba(255, 250, 232, 0.46) 78%, rgba(38, 31, 26, 0.22) 100%);
  opacity: 0;
  transform-origin: right center;
  animation: page-curl-shadow 147s ease-in-out infinite;
}

.page-sunset {
  background-image: url("backgrounds/sunset-background.png");
}

.page-hawaiian {
  background-image: url("backgrounds/hawaiian-background.png");
  animation-delay: -126s;
}

.page-hawaiian::after {
  animation-delay: -126s;
}

.page-tuscany {
  background-image: url("backgrounds/tuscany-background.png");
  animation-delay: -105s;
}

.page-tuscany::after {
  animation-delay: -105s;
}

.page-tidepool {
  background-image: url("backgrounds/tidepool-background.png");
  animation-delay: -84s;
}

.page-tidepool::after {
  animation-delay: -84s;
}

.page-africa {
  background-image: url("backgrounds/africa-wateringhole-background.png");
  animation-delay: -63s;
}

.page-africa::after {
  animation-delay: -63s;
}

.page-garden {
  background-image: url("backgrounds/garden-background.png");
  animation-delay: -42s;
}

.page-garden::after {
  animation-delay: -42s;
}

.page-forest {
  background-image: url("backgrounds/forest-background.png");
  animation-delay: -21s;
}

.page-forest::after {
  animation-delay: -21s;
}

.hero-board::before,
.hero-board::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero-board::before {
  z-index: -1;
  inset: auto 22px 18px;
  height: 16px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(154, 128, 103, 0.64), rgba(102, 81, 63, 0.72));
  box-shadow: 0 8px 18px rgba(77, 63, 48, 0.18);
  opacity: 1;
}

.hero-board::after {
  display: none;
}

.cover {
  position: relative;
  z-index: 2;
  top: auto;
  left: auto;
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 14px 26px rgba(43, 58, 62, 0.18);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-drag: none;
  animation: none;
  transform: none;
  transition: filter 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out;
}

.cover:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 5px;
}

.cover:hover {
  filter: saturate(1.06) contrast(1.03);
  box-shadow: 0 18px 34px rgba(77, 63, 48, 0.24);
  transform: translateY(-4px);
}

@keyframes book-rain {
  0% {
    transform:
      translate3d(var(--fall-sway-start, 0px), -18%, 0)
      rotate(var(--cover-rotation, 0deg));
    opacity: 0;
  }

  8% {
    opacity: 0.94;
  }

  50% {
    transform:
      translate3d(var(--fall-sway-mid, 24px), 330%, 0)
      rotate(var(--cover-rotation-mid, 3deg));
  }

  92% {
    opacity: 0.94;
  }

  100% {
    transform:
      translate3d(var(--fall-sway-end, -20px), 690%, 0)
      rotate(var(--cover-rotation, 0deg));
    opacity: 0;
  }
}

@keyframes page-turn-cycle {
  0%,
  3% {
    opacity: 0;
    transform: rotateY(-26deg) translateX(8%);
    filter: brightness(1.02) saturate(0.98);
  }

  7%,
  20% {
    opacity: 1;
    transform: rotateY(0.01deg) translateX(0);
    filter: brightness(1) saturate(1);
  }

  24%,
  100% {
    opacity: 0;
    transform: rotateY(30deg) translateX(-7%);
    filter: brightness(0.94) saturate(0.94);
  }
}

@keyframes page-curl-shadow {
  0%,
  4%,
  19%,
  100% {
    opacity: 0;
  }

  6%,
  22% {
    opacity: 0.82;
  }
}

.section {
  padding: clamp(54px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: end;
}

.intro-grid > p {
  margin: 0;
  font-size: 1.2rem;
}

.publisher-scene {
  min-height: clamp(360px, 48vw, 560px);
  display: flex;
  align-items: end;
  justify-content: flex-start;
  padding: clamp(56px, 8vw, 118px) clamp(18px, 6vw, 88px);
  background:
    linear-gradient(90deg, rgba(17, 31, 35, 0.2), rgba(17, 31, 35, 0.02) 48%, rgba(17, 31, 35, 0.12)),
    url("backgrounds/surfs-up-background.png") center / cover no-repeat;
  background-size: auto, 106%;
  animation: surf-scene-drift 34s ease-in-out infinite alternate;
}

.publisher-copy {
  width: fit-content;
  max-width: min(560px, 100%);
  padding: clamp(17px, 2.5vw, 26px) clamp(20px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.52), transparent 32%),
    linear-gradient(135deg, rgba(255, 249, 236, 0.36), rgba(217, 244, 241, 0.16)),
    rgba(255, 248, 230, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -18px 44px rgba(255, 248, 224, 0.14),
    0 24px 74px rgba(18, 40, 44, 0.2);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

.publisher-copy p {
  margin: 0;
  color: rgba(38, 51, 58, 0.88);
  font-size: clamp(1.04rem, 1.42vw, 1.24rem);
  line-height: 1.62;
  font-weight: 500;
}

@keyframes surf-scene-drift {
  from {
    background-position: center, 49% 50%;
  }

  to {
    background-position: center, 54% 48%;
  }
}

.section-heading {
  max-width: 980px;
  margin-bottom: 32px;
}

.section-heading.centered {
  max-width: 760px;
  margin: 0;
  text-align: center;
}

.section-heading.centered p {
  margin: 12px auto 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.text-link {
  width: max-content;
  margin-top: auto;
  color: var(--blue-deep);
  font-weight: 950;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.daily-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(248, 253, 255, 0.9), rgba(231, 250, 249, 0.88) 50%, rgba(255, 231, 170, 0.36)),
    linear-gradient(220deg, rgba(255, 121, 104, 0.12), transparent 44%);
}

.coloring-panel {
  display: grid;
  gap: 18px;
}

.driftwood-title-box {
  position: relative;
  width: min(100%, 560px);
  padding: clamp(14px, 2.4vw, 24px) clamp(18px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.34)),
    linear-gradient(135deg, rgba(116, 215, 223, 0.34), rgba(255, 209, 102, 0.22) 56%, rgba(255, 121, 104, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 20px 44px rgba(31, 125, 143, 0.16);
  backdrop-filter: blur(20px) saturate(150%);
}

.driftwood-title-box::before,
.driftwood-title-box::after {
  display: none;
}

.driftwood-title-box::before {
  left: 14px;
}

.driftwood-title-box::after {
  right: 14px;
}

.driftwood-title-box h2 {
  max-width: 16ch;
  margin: 0 auto;
  color: var(--ink);
  font-family: "Marker Felt", "Cooper Black", "Trebuchet MS", ui-rounded, system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.96;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.82),
    0 10px 24px rgba(31, 125, 143, 0.16);
}

.coloring-panel p {
  max-width: 54ch;
}

.daily-intro {
  margin: 0;
  color: rgba(38, 51, 58, 0.76);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  font-weight: 650;
}

.coloring-toolbar,
.tool-group,
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.coloring-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  padding: 14px;
  border: 1px solid var(--glass-line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42)),
    linear-gradient(150deg, rgba(116, 215, 223, 0.24), rgba(255, 209, 102, 0.14) 62%, rgba(255, 121, 104, 0.1));
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 24px 60px rgba(31, 125, 143, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.creator-toolbar {
  position: relative;
  gap: 10px;
}

.tool-group {
  padding: 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.action-group,
.utility-group {
  flex: 1 1 220px;
}

.color-group {
  flex: 2 1 360px;
}

.brush-group {
  flex: 1 1 240px;
}

.creator-topbar {
  justify-content: space-between;
}

.tool-dock {
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.44);
}

.tool-button {
  display: inline-grid;
  min-width: 58px;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 8px 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42)),
    linear-gradient(135deg, rgba(116, 215, 223, 0.28), rgba(255, 209, 102, 0.16));
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(31, 125, 143, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 950;
  line-height: 1.05;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.tool-button:hover,
.tool-button.is-active {
  border-color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, var(--coral), #ff9f43 52%, var(--mango));
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 121, 104, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transform: translateY(-1px);
}

.tool-button:disabled,
.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.color-puck {
  min-width: 50px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, var(--puck-color) 0 38%, rgba(255, 255, 255, 0.82) 39% 48%, transparent 49%),
    conic-gradient(#f26f63, #f7c65f, #7bbf9e, #65a9d7, #b78bd8, #f26f63);
}

.color-puck:hover,
.color-puck.is-active {
  background:
    radial-gradient(circle at 50% 50%, var(--puck-color) 0 38%, rgba(255, 255, 255, 0.82) 39% 48%, transparent 49%),
    conic-gradient(#f26f63, #f7c65f, #7bbf9e, #65a9d7, #b78bd8, #f26f63);
}

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

.color-group.popover-panel[hidden] {
  display: none;
}

.popover-panel {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--glass-strong);
  box-shadow: 0 18px 34px rgba(31, 125, 143, 0.14);
}

.color-group.popover-panel {
  position: fixed;
  top: var(--popover-top, 120px);
  left: var(--popover-left, 16px);
  z-index: 80;
  display: grid;
  width: min(var(--popover-width, 292px), calc(100vw - 24px));
  gap: 13px;
  padding: 14px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48)),
    linear-gradient(145deg, rgba(116, 215, 223, 0.24), rgba(255, 209, 102, 0.16) 58%, rgba(255, 121, 104, 0.12));
  box-shadow: 0 26px 64px rgba(31, 125, 143, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px) saturate(170%);
  animation: glass-pop 150ms ease-out;
}

.color-group.popover-panel::before {
  position: absolute;
  top: -7px;
  left: clamp(18px, var(--popover-anchor-x, 50%), calc(100% - 18px));
  width: 14px;
  aspect-ratio: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-left: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.76);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.color-group.popover-panel.is-above::before {
  top: auto;
  bottom: -7px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

@keyframes glass-pop {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.brush-settings {
  display: grid;
  grid-template-columns: 1fr;
}

.autosave-note {
  color: var(--lagoon);
  font-size: 0.86rem;
  font-weight: 900;
}

.swatch {
  width: 36px;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(31, 125, 143, 0.16), 0 9px 18px rgba(31, 125, 143, 0.14);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.swatch:hover,
.recent-color:hover {
  transform: translateY(-1px);
}

.swatch.is-active {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--lagoon), 0 12px 22px rgba(31, 125, 143, 0.22);
}

.button.is-active {
  border-color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, var(--coral), #ff9f43 52%, var(--mango));
  color: #fff;
}

.custom-color-control,
.brush-control {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 900;
}

.custom-color-control input {
  width: 42px;
  height: 42px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.brush-control input {
  flex: 1 1 120px;
  width: min(180px, 42vw);
  accent-color: var(--lagoon);
}

.brush-size-preview {
  --brush-size-preview: 12px;
  flex: 0 0 46px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.36)),
    linear-gradient(135deg, rgba(116, 215, 223, 0.22), rgba(255, 209, 102, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 18px rgba(31, 125, 143, 0.12);
}

.brush-size-preview::after {
  width: var(--brush-size-preview);
  max-width: 42px;
  min-width: 6px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--marker-color, #f26f63);
  content: "";
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 6px 14px rgba(31, 125, 143, 0.18);
}

.signature-control {
  max-width: 440px;
}

.coloring-workspace {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 68px rgba(31, 125, 143, 0.16);
  overflow: hidden;
}

.coloring-page-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background:
    linear-gradient(45deg, rgba(26, 167, 184, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(26, 167, 184, 0.035) 25%, transparent 25%),
    #fff;
  background-size: 18px 18px;
}

.stage-fit-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.5)),
    linear-gradient(135deg, rgba(116, 215, 223, 0.42), rgba(255, 209, 102, 0.22));
  color: var(--ink);
  box-shadow: 0 16px 32px rgba(31, 125, 143, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(160%);
}

.coloring-page-stage.is-zoomed .stage-fit-button {
  display: grid;
}

.coloring-zoom-layer {
  --zoom-scale: 1;
  --pan-x: 0px;
  --pan-y: 0px;
  --page-aspect: 0.726;
  position: relative;
  display: grid;
  width: min(100%, calc(760px * var(--page-aspect)));
  aspect-ratio: var(--page-aspect);
  place-items: center;
  transform: translate(var(--pan-x), var(--pan-y)) scale(var(--zoom-scale));
  transform-origin: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.coloring-zoom-layer img,
.coloring-zoom-layer canvas {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.coloring-zoom-layer canvas {
  touch-action: none;
  mix-blend-mode: multiply;
  cursor: none;
}

.marker-cursor {
  position: absolute;
  z-index: 3;
  left: var(--marker-x, -120px);
  top: var(--marker-y, -120px);
  display: none;
  width: var(--brush-preview-size, 18px);
  height: var(--brush-preview-size, 18px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(38, 51, 58, 0.78);
  border-radius: 999px;
  background: rgba(242, 111, 99, 0.22);
  background: color-mix(in srgb, var(--marker-color, #f26f63) 24%, transparent);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(38, 51, 58, 0.18);
}

.marker-cursor.is-visible {
  display: block;
}

.marker-cursor.is-hidden {
  display: none;
}

.marker-cursor.is-eraser {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.3);
}

.marker-cursor.is-fill {
  width: 34px;
  height: 34px;
  background: rgba(242, 111, 99, 0.18);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--marker-color, #f26f63) 30%, transparent), transparent),
    rgba(255, 255, 255, 0.28);
}

.marker-body,
.marker-tip {
  display: none;
}

.marker-cursor.is-fill::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 999px;
  background: var(--marker-color, #f26f63);
}

.coloring-workspace figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.36)),
    linear-gradient(135deg, rgba(116, 215, 223, 0.36), rgba(255, 209, 102, 0.34));
  font-weight: 950;
}

.source-book-card {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  max-width: min(100%, 210px);
  padding: 4px 7px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.38)),
    linear-gradient(135deg, rgba(116, 215, 223, 0.28), rgba(255, 209, 102, 0.2));
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.source-book-card:hover {
  box-shadow: 0 12px 24px rgba(31, 125, 143, 0.16);
  transform: translateY(-1px);
}

.source-book-card img {
  width: 26px;
  aspect-ratio: 0.75;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 3px 8px rgba(38, 51, 58, 0.18);
}

.source-book-card span {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-section {
  background:
    radial-gradient(circle at 86% 12%, rgba(233, 197, 140, 0.36), transparent 32%),
    linear-gradient(180deg, #eef5f4 0%, #f7f1e8 100%);
}

.gallery-section .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  max-width: none;
  margin-bottom: 24px;
}

.vibe-gallery-logo {
  display: block;
  width: min(420px, 88vw);
  height: auto;
}

.submission-form {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42)),
    linear-gradient(145deg, rgba(116, 215, 223, 0.18), rgba(255, 209, 102, 0.12));
  box-shadow: 0 20px 48px rgba(31, 125, 143, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 8px 20px rgba(31, 125, 143, 0.08);
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 1.5em;
  margin: 0;
  color: var(--lagoon);
  font-weight: 800;
}

.fan-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  border: 1px dashed rgba(38, 51, 58, 0.28);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.68);
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.gallery-empty.is-hidden {
  display: none;
}

.fan-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 48px rgba(31, 125, 143, 0.14);
}

.fan-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  background: #fff;
}

.fan-gallery figcaption {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
}

.fan-gallery span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.vibe-button {
  min-height: 42px;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.22)),
    linear-gradient(135deg, var(--mango), var(--coral));
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(255, 121, 104, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-weight: 950;
  cursor: pointer;
}

.vibe-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(255, 121, 104, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 72px);
  background: #26333a;
  color: #fff;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.72);
}

.daily-section {
  grid-template-columns: minmax(280px, 0.52fr) minmax(380px, 1.2fr);
  align-items: start;
}

.coloring-panel {
  position: sticky;
  top: 92px;
}

.creator-toolbar {
  gap: 8px;
}

.creator-topbar,
.utility-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
}

.creator-topbar .button,
.utility-group .button {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
}

.tool-dock {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(52px, 1fr));
  gap: 7px;
}

.tool-button {
  min-width: 0;
  min-height: 46px;
  padding: 7px 6px;
}

.tool-button.compact {
  min-height: 34px;
  font-size: 1.35rem;
}

.zoom-button {
  font-size: 1.25rem;
  line-height: 1;
}

.recent-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.recent-color-row::before {
  content: "Recent";
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recent-color-row[hidden] {
  display: none;
}

.recent-color {
  width: 28px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: var(--recent-color);
  box-shadow: 0 0 0 1px rgba(38, 51, 58, 0.18), 0 5px 12px rgba(102, 81, 63, 0.14);
  cursor: pointer;
}

.brush-settings {
  transition: opacity 160ms ease, transform 160ms ease;
}

.brush-settings.is-hidden {
  display: none;
}

.page-drawer {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  left: 14px;
  right: 14px;
  max-height: min(68vh, 620px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.5)),
    linear-gradient(145deg, rgba(116, 215, 223, 0.22), rgba(255, 209, 102, 0.16));
  box-shadow: 0 28px 68px rgba(31, 125, 143, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px) saturate(160%);
}

.page-drawer[hidden] {
  display: none;
}

.page-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.68);
}

.page-list {
  display: grid;
  gap: 16px;
  max-height: calc(min(68vh, 620px) - 59px);
  overflow: auto;
  padding: 12px;
}

.page-group {
  display: grid;
  gap: 8px;
}

.page-group h3 {
  color: var(--lagoon);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.page-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.page-choice {
  display: grid;
  gap: 3px;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(31, 125, 143, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
}

.page-choice span {
  font-weight: 900;
  line-height: 1.12;
}

.page-choice small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.page-choice:hover,
.page-choice.is-current {
  border-color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44)),
    linear-gradient(135deg, rgba(116, 215, 223, 0.38), rgba(255, 209, 102, 0.26));
}

.page-choice.has-saved-artwork small {
  color: var(--coral);
}

.coloring-workspace {
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(31, 125, 143, 0.14);
}

.coloring-page-stage {
  min-height: min(76vh, 860px);
}

.page-loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--ink);
}

.page-loading[hidden] {
  display: none;
}

.loading-spinner {
  width: 38px;
  aspect-ratio: 1;
  border: 4px solid rgba(26, 167, 184, 0.18);
  border-top-color: var(--lagoon);
  border-radius: 999px;
  animation: spin 850ms linear infinite;
}

.coloring-zoom-layer img.is-loading {
  opacity: 0.18;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1180px) {
  .intro-grid,
  .daily-section,
  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .hero-board {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 0;
  }

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

  .coloring-panel {
    position: static;
    width: 100%;
  }

  .daily-section {
    gap: 24px;
    align-items: stretch;
  }

  .coloring-toolbar {
    max-width: none;
  }

  .coloring-workspace {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    top: 8px;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 0;
    width: calc(100% - 20px);
    margin-top: 8px;
    padding: 8px;
    border-radius: 22px;
  }

  .brand {
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex: 1 1 100%;
  }

  .brand-mark {
    width: min(28vw, 96px);
    height: 38px;
  }

  .brand-text {
    font-size: clamp(1.28rem, 7vw, 1.72rem);
    white-space: nowrap;
  }

  .site-header nav {
    flex: 1 1 100%;
    justify-content: center;
    gap: 6px;
  }

  .site-header nav a {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 0.84rem;
  }

  .hero-actions,
  .fan-gallery {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 10ch;
    font-size: 3.4rem;
  }

  .hero-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
  }

  .publisher-scene {
    align-items: center;
    justify-content: center;
    background-size: auto, cover;
  }

  .button,
  .text-link {
    width: 100%;
  }

  .creator-topbar,
  .utility-group {
    grid-template-columns: 1fr 1fr;
  }

  .tool-dock {
    grid-template-columns: repeat(4, minmax(58px, 1fr));
  }

  .coloring-page-stage {
    min-height: 62vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-board {
    display: grid;
  }

  .hero-page,
  .hero-page::after {
    animation: none;
  }

  .hero-page:not(.page-sunset),
  .hero-page::after {
    display: none;
  }

  .page-sunset {
    opacity: 1;
    transform: none;
  }

  .cover {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
  }

  .publisher-scene {
    animation: none;
  }
}
