/* =========================================================
   CABOODLLE DESIGN SYSTEM
   Shared styles for the homepage and future feature pages.
   ========================================================= */

:root {
  color-scheme: light;
  --cream: #fff9ed;
  --paper: #fffdf7;
  --ink: #292d46;
  --ink-soft: #555970;
  --muted: #77798b;
  --line: #e9e3d7;
  --yellow: #f4c84b;
  --yellow-soft: #f9e8a5;
  --mint: #c9e2d7;
  --mint-deep: #7cae9a;
  --lilac: #dcd4f1;
  --lilac-deep: #a99bd4;
  --coral: #f1d1cb;
  --coral-deep: #d98e83;
  --white: #ffffff;

  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, monospace;

  --container: 1160px;
  --page-gutter: clamp(20px, 5vw, 72px);
  --section-space: clamp(64px, 8vw, 104px);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --pill: 999px;

  --shadow-soft: 0 8px 30px rgb(41 45 70 / 5%);
  --shadow-hover: 0 16px 34px rgb(41 45 70 / 10%);
  --focus-ring: 0 0 0 3px var(--cream), 0 0 0 6px var(--lilac-deep);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body, button, input { font-family: var(--font-body); }

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

a { color: inherit; text-decoration: none; }

button, input { font: inherit; }

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

a:focus-visible, button:focus-visible, input:focus-visible, label:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

::selection { background: var(--yellow-soft); color: var(--ink); }

.container {
  width: min(var(--container), calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
}

.section-space { padding-block: var(--section-space); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
}
.skip-link:focus { transform: translateY(0); }

/* Announcement and shared header */
.announcement-bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 5px 16px;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .055em;
}
.announcement-bar p { margin: 0; }
.announcement-spark { color: var(--yellow); font-size: 13px; }

.site-header {
  position: relative;
  z-index: 20;
  background: var(--cream);
  border-bottom: 1px solid rgb(41 45 70 / 7%);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
}
.brand-name {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: 1;
}
.brand-period { color: #e6ad23; }
.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
  transform: rotate(-8deg);
}
.brand-mark span { border-radius: 5px; }
.brand-mark span:nth-child(1) { background: var(--yellow); border-radius: 8px 4px 4px 4px; }
.brand-mark span:nth-child(2) { background: var(--lilac-deep); border-radius: 4px 8px 4px 4px; }
.brand-mark span:nth-child(3) { background: var(--mint-deep); border-radius: 4px 4px 4px 8px; }
.brand-mark span:nth-child(4) { background: var(--coral-deep); border-radius: 4px 4px 8px 4px; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 38px);
  margin-inline: auto;
}
.main-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
  transition: color .18s ease;
}
.main-nav a:hover { color: var(--ink); }
.header-search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--paper);
  font-size: 13px;
  font-weight: 800;
  transition: border-color .18s ease, background .18s ease;
}
.header-search-link:hover { border-color: var(--ink); background: var(--white); }
.header-search-link svg, .search-box > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.menu-toggle, .menu-button { display: none; }

/* Hero */
.hero { padding-top: clamp(58px, 7vw, 90px); padding-bottom: clamp(52px, 6vw, 76px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(36px, 7vw, 88px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .075em;
  line-height: 1.5;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--coral-deep);
  box-shadow: 0 0 0 4px rgb(217 142 131 / 15%);
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(44px, 5.6vw, 72px);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .99;
}
.highlight-word {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}
.highlight-word::after {
  position: absolute;
  z-index: -1;
  right: -5px;
  bottom: 2px;
  left: -3px;
  height: 34%;
  border-radius: 5px;
  background: var(--yellow);
  content: "";
  transform: rotate(-1.8deg);
}
.hero-description {
  max-width: 480px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.75;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 540px;
  min-height: 64px;
  padding: 7px 8px 7px 19px;
  border: 1px solid #e6dfd2;
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 0 9px 25px rgb(41 45 70 / 4%);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-box:focus-within {
  border-color: var(--lilac-deep);
  box-shadow: 0 0 0 3px rgb(169 155 212 / 22%);
}
.search-box > svg { flex: 0 0 19px; color: var(--muted); }
.search-box input {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.search-box input::placeholder { color: #9393a0; }
.search-box input:focus-visible { box-shadow: none; }
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition: background .18s ease, transform .18s ease;
}
.search-submit:hover { background: #f0bd31; transform: translateY(-1px); }
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.hero-meta > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.meta-star { color: #d5a41e; font-size: 15px; }
.meta-divider { width: 3px; height: 3px; border-radius: 50%; background: #b7b3aa; }

/* CSS illustration: intentionally built from shapes, not image assets */
.hero-art {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-art::before {
  position: absolute;
  z-index: -2;
  width: min(100%, 430px);
  aspect-ratio: 1;
  border-radius: 44% 56% 60% 40% / 49% 42% 58% 51%;
  background: #f6edda;
  content: "";
  transform: rotate(-8deg);
}
.art-orbit {
  position: absolute;
  z-index: -1;
  width: 82%;
  aspect-ratio: 1;
  border: 1px dashed rgb(41 45 70 / 15%);
  border-radius: 50%;
}
.orbit-one { transform: rotate(22deg) scaleY(.78); }
.orbit-two { width: 68%; transform: rotate(-28deg) scaleY(.8); }
.art-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(41 45 70 / 6%);
  border-radius: 22px;
  box-shadow: 0 16px 45px rgb(41 45 70 / 10%);
}
.card-word {
  top: 14%;
  left: 4%;
  width: 238px;
  padding: 21px 21px 18px;
  background: var(--paper);
  transform: rotate(-7deg);
}
.mini-label, .art-caption, .art-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
}
.mini-label { color: var(--muted); }
.letter-tiles { display: flex; gap: 7px; margin: 16px 0 13px; }
.tile {
  display: grid;
  width: 49px;
  height: 51px;
  place-items: center;
  border-radius: 10px;
  font-size: 25px;
  font-weight: 900;
  box-shadow: inset 0 -3px rgb(41 45 70 / 6%);
}
.tile-yellow { background: var(--yellow); }
.tile-lilac { background: var(--lilac); }
.tile-mint { background: var(--mint); }
.card-caption { color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.card-quote {
  right: 3%;
  bottom: 13%;
  width: 222px;
  min-height: 192px;
  justify-content: center;
  padding: 20px 24px;
  background: var(--lilac);
  transform: rotate(7deg);
}
.quote-mark { height: 34px; color: var(--lilac-deep); font-family: Georgia, serif; font-size: 60px; line-height: 1; }
.card-quote p { margin: 0 0 15px; font-size: 25px; font-weight: 900; letter-spacing: -.055em; line-height: 1.08; }
.quote-underline { width: 72px; height: 5px; border-radius: var(--pill); background: var(--coral-deep); transform: rotate(-3deg); }
.art-sticker {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 7px 15px rgb(41 45 70 / 9%);
}
.sticker-spark {
  top: 9%;
  right: 16%;
  width: 59px;
  height: 59px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 35px;
  transform: rotate(10deg);
}
.sticker-smile {
  right: 4%;
  top: 42%;
  width: 45px;
  height: 45px;
  background: var(--mint);
  font-size: 29px;
  transform: rotate(8deg);
}
.art-doodle { position: absolute; color: var(--coral-deep); }
.doodle-one { bottom: 18%; left: 13%; font-size: 29px; transform: rotate(-14deg); }
.doodle-two { top: 18%; right: 7%; font-size: 31px; transform: rotate(-20deg); }
.art-caption { position: absolute; bottom: 1%; left: 14%; color: var(--muted); font-size: 8px; }
.art-caption span { margin-left: 5px; color: var(--coral-deep); font-size: 15px; }

/* Buttons are shared with future tools and pages */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #414664; }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: var(--yellow); }

/* Surprise strip */
.surprise-strip { background: var(--yellow); }
.surprise-inner {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 105px;
  padding-block: 18px;
}
.surprise-icon {
  display: grid;
  width: 47px;
  height: 47px;
  flex: 0 0 47px;
  place-items: center;
  border: 1px solid rgb(41 45 70 / 17%);
  border-radius: 15px;
  font-size: 29px;
  transform: rotate(-7deg);
}
.surprise-copy { display: flex; flex-direction: column; gap: 2px; }
.surprise-copy strong { font-size: 16px; font-weight: 900; letter-spacing: -.025em; }
.surprise-copy span { color: #55513e; font-size: 13px; }
.surprise-inner .button { margin-left: auto; }

/* Section headings and category cards */
.explore-section { padding-bottom: clamp(66px, 8vw, 104px); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 29px;
}
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2, .prompt-copy h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.12;
}
.section-aside { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.category-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 324px;
  flex-direction: column;
  padding: 20px 20px 22px;
  overflow: hidden;
  border: 1px solid rgb(41 45 70 / 5%);
  border-radius: var(--radius-md);
  transition: transform .2s ease, box-shadow .2s ease;
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.category-play { background: #f8e8a8; }
.category-create { background: #d9e9df; }
.category-discover { background: #e4dcf5; }
.category-tools { background: #f3d9d3; }
.category-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.category-number { font-family: var(--font-mono); font-size: 9px; letter-spacing: .055em; font-weight: 500; }
.arrow-circle {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border: 1px solid rgb(41 45 70 / 18%);
  border-radius: 50%;
  font-size: 15px;
  transition: background .18s ease, transform .18s ease;
}
.category-card:hover .arrow-circle { background: var(--paper); transform: rotate(45deg); }
.category-illustration {
  position: relative;
  display: flex;
  height: 112px;
  align-items: center;
  justify-content: center;
  margin: 8px 0 8px;
}
.game-tile {
  position: absolute;
  display: grid;
  width: 49px;
  height: 53px;
  place-items: center;
  border: 1px solid rgb(41 45 70 / 7%);
  border-radius: 11px;
  background: var(--paper);
  box-shadow: 0 5px 0 rgb(41 45 70 / 9%);
  font-size: 25px;
  font-weight: 900;
}
.game-tile-a { left: calc(50% - 72px); transform: rotate(-12deg) translateY(6px); }
.game-tile-b { z-index: 1; transform: translateY(-6px) rotate(4deg); background: var(--ink); color: var(--yellow); }
.game-tile-c { right: calc(50% - 72px); transform: rotate(12deg) translateY(7px); }
.illustration-spark { position: absolute; top: 10px; right: 17%; color: #c08b16; font-size: 22px; }
.paint-shape { position: absolute; display: block; width: 53px; height: 67px; border: 2px solid var(--ink); border-radius: 48% 52% 46% 54%; }
.paint-shape-one { background: var(--yellow); transform: rotate(-29deg) translateX(-27px); }
.paint-shape-two { background: var(--coral); transform: rotate(22deg) translateX(9px) translateY(3px); }
.paint-shape-three { width: 35px; height: 42px; background: var(--lilac); transform: rotate(5deg) translate(34px, -8px); }
.create-pencil { position: absolute; z-index: 1; top: 16px; right: 24%; color: var(--ink); font-size: 33px; transform: rotate(14deg); }
.planet-main { width: 68px; height: 68px; border: 2px solid var(--ink); border-radius: 50%; background: var(--mint); box-shadow: inset -10px -7px rgb(41 45 70 / 7%); }
.planet-small { position: absolute; top: 21px; right: 28%; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 50%; background: var(--coral); }
.planet-ring { position: absolute; width: 105px; height: 36px; border: 2px solid var(--ink); border-radius: 50%; transform: rotate(-24deg); }
.planet-star { position: absolute; top: 5px; left: 24%; color: #8976c5; font-size: 24px; }
.tool-window { position: relative; display: flex; width: 108px; height: 76px; align-items: flex-start; gap: 5px; padding: 10px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); transform: rotate(-5deg); box-shadow: 0 5px 0 rgb(41 45 70 / 9%); }
.tool-window i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral-deep); }
.tool-window i:nth-child(2) { background: var(--yellow); }
.tool-window i:nth-child(3) { background: var(--mint-deep); }
.tool-window b { position: absolute; right: 15px; bottom: 7px; display: grid; width: 37px; height: 37px; place-items: center; border-radius: 10px; background: var(--mint); font-size: 24px; }
.tool-spark { position: absolute; top: 6px; right: 20%; color: #d08b7e; font-size: 24px; }
.category-card h3 { margin: 3px 0 5px; font-size: 20px; font-weight: 900; letter-spacing: -.045em; }
.category-card p { max-width: 220px; margin-bottom: 18px; color: #55576a; font-size: 12px; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 11px; font-weight: 900; }
.text-link span { transition: transform .18s ease; }
.category-card:hover .text-link span { transform: translateX(4px); }

/* Featured items */
.featured-section { padding-top: 0; }
.featured-heading { margin-bottom: 28px; }
.plain-link { flex-shrink: 0; margin-bottom: 4px; color: var(--ink-soft); font-size: 12px; font-weight: 900; }
.plain-link span { margin-left: 5px; }
.plain-link:hover { color: var(--ink); }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-art {
  position: relative;
  display: grid;
  height: 185px;
  place-items: center;
  overflow: hidden;
}
.word-art { background: #f7e8ab; }
.word-art::before { position: absolute; width: 190px; height: 190px; border: 1px dashed rgb(41 45 70 / 18%); border-radius: 50%; content: ""; }
.word-chip {
  position: absolute;
  display: grid;
  width: 49px;
  height: 54px;
  place-items: center;
  border: 1px solid rgb(41 45 70 / 10%);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 5px 0 rgb(41 45 70 / 10%);
  font-size: 25px;
  font-weight: 900;
}
.chip-one { transform: translate(-60px, -8px) rotate(-12deg); }
.chip-two { transform: translate(-19px, 8px) rotate(7deg); background: var(--lilac); }
.chip-three { transform: translate(22px, -8px) rotate(-4deg); background: var(--mint); }
.chip-four { transform: translate(63px, 6px) rotate(12deg); background: var(--coral); }
.art-label { position: absolute; right: 13px; bottom: 12px; font-size: 8px; }
.quote-art { background: #d9e9df; }
.quote-art-paper {
  position: relative;
  display: flex;
  width: 144px;
  height: 144px;
  flex-direction: column;
  justify-content: center;
  padding: 17px 20px;
  border: 1px solid rgb(41 45 70 / 9%);
  background: var(--paper);
  box-shadow: 0 8px 18px rgb(41 45 70 / 8%);
  transform: rotate(-5deg);
}
.quote-art-paper > span { height: 29px; color: var(--coral-deep); font-family: Georgia, serif; font-size: 53px; line-height: 1; }
.quote-art-paper p { margin: 2px 0 10px; font-size: 23px; font-weight: 900; letter-spacing: -.055em; line-height: 1; }
.quote-art-paper i { width: 55px; height: 4px; border-radius: var(--pill); background: var(--yellow); }
.quote-art-star { position: absolute; top: 24px; right: 20%; color: #e4b52e; font-size: 34px; }
.facts-art { background: #e4dcf5; }
.fact-sun { position: absolute; top: 25px; left: 24%; color: #a99bd4; font-size: 42px; }
.fact-note { z-index: 1; display: grid; width: 135px; height: 96px; place-items: center; border: 1.5px solid var(--ink); border-radius: 15px; background: var(--yellow); box-shadow: 5px 6px 0 var(--ink); font-size: 20px; font-weight: 900; letter-spacing: -.04em; line-height: 1.05; text-align: center; transform: rotate(4deg); }
.fact-orbit { position: absolute; width: 195px; height: 80px; border: 1px solid rgb(41 45 70 / 45%); border-radius: 50%; transform: rotate(-30deg); }
.fact-dot { position: absolute; right: 23%; bottom: 26px; width: 13px; height: 13px; border-radius: 50%; background: var(--coral-deep); }
.feature-info { position: relative; padding: 19px 20px 22px; }
.feature-tags { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.tag { padding: 4px 8px; border-radius: 5px; font-family: var(--font-mono); font-size: 8px; font-weight: 500; letter-spacing: .04em; }
.tag-play { background: #f8e8a8; }
.tag-create { background: #d9e9df; }
.tag-discover { background: #e4dcf5; }
.time-tag { color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: .04em; }
.feature-info h3 { margin: 0 26px 4px 0; font-size: 19px; font-weight: 900; letter-spacing: -.04em; }
.feature-info p { margin: 0; color: var(--muted); font-size: 12px; }
.feature-arrow { position: absolute; right: 20px; bottom: 21px; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background .18s ease; }
.feature-card:hover .feature-arrow { background: var(--yellow); }

/* Creative prompt callout */
.prompt-banner { overflow: hidden; background: var(--ink); color: var(--cream); }
.prompt-inner { position: relative; display: flex; align-items: center; gap: 25px; min-height: 220px; padding-block: 42px; }
.prompt-scribble { display: grid; width: 67px; height: 67px; flex: 0 0 67px; place-items: center; border-radius: 20px; background: var(--yellow); color: var(--ink); font-size: 42px; transform: rotate(-8deg); }
.prompt-copy { position: relative; z-index: 1; }
.prompt-copy .eyebrow { margin-bottom: 10px; color: #c9cada; }
.prompt-copy h2 { margin-bottom: 7px; font-size: clamp(25px, 3vw, 35px); }
.prompt-copy > p:last-child { margin: 0; color: #c9cada; font-size: 13px; }
.prompt-inner .button { margin-left: auto; position: relative; z-index: 1; }
.prompt-decoration { position: absolute; right: 6%; bottom: -49px; color: rgb(255 249 237 / 5%); font-size: 210px; line-height: 1; }

/* Footer */
.site-footer { background: #f6f0e5; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 35px; padding-block: 55px 44px; }
.footer-brand .brand-name { font-size: 25px; }
.footer-brand-block > p { margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-column h2 { margin: 0 0 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.footer-column a { color: var(--ink-soft); font-size: 12px; }
.footer-column a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-note { position: relative; align-self: start; padding: 17px 18px; border: 1px solid #e6ddce; border-radius: 15px; background: rgb(255 253 247 / 55%); }
.footer-note p { margin: 0; font-size: 13px; font-weight: 900; line-height: 1.6; }
.footer-doodle { position: absolute; top: -13px; right: 13px; color: #c8a02c; font-size: 23px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 59px; border-top: 1px solid #e6ddce; color: var(--muted); font-size: 10px; }
.footer-made span { color: var(--coral-deep); }

/* Responsive behaviour */
@media (min-width: 1400px) {
  :root { --container: 1200px; }
  .hero-art { min-height: 460px; }
  .card-word { left: 7%; }
  .card-quote { right: 6%; }
}

@media (max-width: 1000px) {
  :root { --page-gutter: clamp(22px, 4vw, 40px); }
  .header-inner { gap: 22px; }
  .main-nav { gap: 21px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(310px, .85fr); gap: 25px; }
  .hero h1 { font-size: clamp(43px, 6vw, 60px); }
  .hero-art { min-height: 370px; }
  .card-word { left: 0; width: 210px; }
  .card-quote { right: 0; width: 195px; min-height: 170px; }
  .tile { width: 42px; height: 45px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { min-height: 300px; padding: 20px 23px 22px; }
  .category-illustration { height: 100px; }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-note { display: none; }
}

@media (max-width: 700px) {
  :root { --page-gutter: 22px; --section-space: 66px; }
  html { scroll-padding-top: 76px; }
  .announcement-bar { min-height: 32px; gap: 7px; font-size: 9px; letter-spacing: .025em; }
  .announcement-spark { font-size: 11px; }
  .header-inner { min-height: 70px; gap: 13px; }
  .brand { gap: 8px; }
  .brand-mark { width: 24px; height: 24px; gap: 2px; }
  .brand-mark span { border-radius: 4px; }
  .brand-name { font-size: 24px; }
  .menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .menu-button {
    display: flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
  }
  .menu-button span { width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .18s ease, opacity .18s ease; }
  .menu-toggle:focus-visible + .menu-button { box-shadow: var(--focus-ring); }
  .menu-toggle:checked + .menu-button span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle:checked + .menu-button span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked + .menu-button span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 9px var(--page-gutter) 17px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    box-shadow: 0 14px 20px rgb(41 45 70 / 5%);
  }
  .menu-toggle:checked ~ .main-nav { display: flex; flex-direction: column; }
  .main-nav a { padding: 12px 3px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .main-nav a:last-child { border-bottom: 0; }
  .header-search-link { width: 40px; min-height: 40px; flex: 0 0 40px; padding: 0; border-radius: 12px; }
  .header-search-link span { display: none; }
  .hero { padding-top: 52px; padding-bottom: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 15px; }
  .hero-copy { position: relative; z-index: 1; }
  .eyebrow { margin-bottom: 14px; font-size: 9px; }
  .hero h1 { margin-bottom: 17px; font-size: clamp(45px, 12vw, 62px); }
  .hero-description { max-width: 510px; margin-bottom: 22px; font-size: 15px; line-height: 1.7; }
  .search-box { min-height: 58px; gap: 9px; padding: 6px 6px 6px 13px; border-radius: 14px; }
  .search-box input { font-size: 12px; }
  .search-submit { min-height: 43px; gap: 6px; padding-inline: 13px; border-radius: 10px; font-size: 12px; }
  .hero-meta { gap: 9px; margin-top: 13px; font-size: 10px; }
  .hero-art { min-height: 320px; margin: 3px 0 0; }
  .hero-art::before { width: min(90%, 350px); }
  .art-orbit { width: 82%; }
  .orbit-two { width: 68%; }
  .card-word { top: 10%; left: 5%; width: 205px; padding: 17px; }
  .letter-tiles { margin: 12px 0 10px; }
  .tile { width: 42px; height: 44px; font-size: 22px; }
  .card-quote { right: 4%; bottom: 9%; width: 180px; min-height: 155px; padding: 15px 19px; }
  .card-quote p { font-size: 22px; }
  .quote-mark { height: 27px; font-size: 50px; }
  .sticker-spark { top: 4%; right: 13%; width: 48px; height: 48px; font-size: 29px; }
  .sticker-smile { top: 42%; right: 2%; width: 38px; height: 38px; font-size: 24px; }
  .doodle-one { bottom: 12%; left: 9%; }
  .art-caption { bottom: 0; left: 8%; font-size: 7px; }
  .surprise-inner { min-height: 0; gap: 12px; padding-block: 17px; }
  .surprise-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; font-size: 24px; }
  .surprise-copy strong { font-size: 13px; }
  .surprise-copy span { font-size: 10px; }
  .surprise-inner .button { min-height: 41px; gap: 9px; padding-inline: 13px; font-size: 11px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 23px; }
  .section-heading h2 { font-size: clamp(29px, 7.5vw, 38px); }
  .section-aside { margin: 0; font-size: 11px; }
  .category-grid { gap: 11px; }
  .category-card { min-height: 278px; padding: 15px 14px 17px; border-radius: 17px; }
  .category-number { font-size: 8px; }
  .arrow-circle { width: 26px; height: 26px; flex-basis: 26px; }
  .category-illustration { height: 91px; margin: 8px 0; }
  .game-tile { width: 41px; height: 45px; font-size: 21px; }
  .game-tile-a { left: calc(50% - 61px); }
  .game-tile-c { right: calc(50% - 61px); }
  .paint-shape { width: 42px; height: 57px; }
  .paint-shape-one { transform: rotate(-29deg) translateX(-20px); }
  .paint-shape-two { transform: rotate(22deg) translateX(6px) translateY(3px); }
  .paint-shape-three { width: 29px; height: 36px; transform: rotate(5deg) translate(27px, -8px); }
  .create-pencil { right: 18%; font-size: 28px; }
  .planet-main { width: 57px; height: 57px; }
  .planet-ring { width: 88px; height: 30px; }
  .planet-small { right: 22%; width: 18px; height: 18px; }
  .planet-star { left: 15%; }
  .tool-window { width: 93px; height: 66px; }
  .tool-window b { right: 10px; width: 31px; height: 31px; font-size: 20px; }
  .category-card h3 { margin-top: 1px; font-size: 17px; line-height: 1.2; }
  .category-card p { margin-bottom: 13px; font-size: 11px; line-height: 1.5; }
  .text-link { gap: 5px; font-size: 10px; }
  .featured-section { padding-top: 0; }
  .featured-heading { gap: 13px; }
  .featured-heading .plain-link { margin-top: 2px; }
  .featured-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { display: grid; grid-template-columns: minmax(115px, .78fr) minmax(0, 1.22fr); border-radius: 17px; }
  .feature-art { height: 100%; min-height: 174px; }
  .word-chip { width: 35px; height: 40px; border-radius: 8px; font-size: 18px; }
  .chip-one { transform: translate(-41px, -6px) rotate(-12deg); }
  .chip-two { transform: translate(-14px, 7px) rotate(7deg); }
  .chip-three { transform: translate(14px, -6px) rotate(-4deg); }
  .chip-four { transform: translate(41px, 6px) rotate(12deg); }
  .art-label { right: 7px; bottom: 8px; font-size: 6px; }
  .quote-art-paper { width: 105px; height: 125px; padding: 12px 13px; }
  .quote-art-paper p { font-size: 19px; }
  .quote-art-star { right: 10%; font-size: 26px; }
  .fact-note { width: 100px; height: 78px; font-size: 16px; }
  .fact-orbit { width: 140px; height: 65px; }
  .feature-info { display: flex; flex-direction: column; justify-content: center; padding: 15px 15px 17px; }
  .feature-tags { flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
  .tag { padding: 4px 6px; font-size: 7px; }
  .time-tag { font-size: 7px; }
  .feature-info h3 { margin-right: 0; font-size: 17px; line-height: 1.2; }
  .feature-info p { padding-right: 3px; font-size: 11px; line-height: 1.5; }
  .feature-arrow { right: 11px; bottom: 9px; width: 24px; height: 24px; font-size: 12px; }
  .prompt-inner { align-items: flex-start; flex-wrap: wrap; gap: 15px; padding-block: 36px; }
  .prompt-scribble { width: 49px; height: 49px; flex-basis: 49px; border-radius: 15px; font-size: 31px; }
  .prompt-copy { flex: 1; min-width: 0; }
  .prompt-copy .eyebrow { margin-bottom: 8px; font-size: 8px; }
  .prompt-copy h2 { font-size: 26px; }
  .prompt-copy > p:last-child { max-width: 280px; font-size: 11px; }
  .prompt-inner .button { margin: 7px 0 0 64px; min-height: 43px; font-size: 12px; }
  .prompt-decoration { right: -10px; bottom: -27px; font-size: 130px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-block: 42px 32px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-brand-block > p { margin-top: 10px; }
  .footer-column h2 { margin-bottom: 4px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding-block: 14px; font-size: 9px; }
}

@media (max-width: 380px) {
  :root { --page-gutter: 16px; }
  .brand-name { font-size: 22px; }
  .header-inner { gap: 9px; }
  .hero h1 { font-size: 43px; }
  .search-box { gap: 6px; padding-left: 10px; }
  .search-box > svg { width: 16px; }
  .search-submit { padding-inline: 10px; }
  .hero-art { min-height: 290px; }
  .card-word { width: 188px; }
  .card-quote { width: 164px; }
  .category-card { padding-inline: 11px; }
  .category-card h3 { font-size: 16px; }
  .category-card p { font-size: 10px; }
  .feature-card { grid-template-columns: minmax(105px, .75fr) minmax(0, 1.25fr); }
  .feature-info { padding-inline: 12px; }
  .feature-info h3 { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* My corner: personal portfolio category */
.category-my { background: #f0dfd7; }
.portfolio-sheet {
  position: absolute;
  display: block;
  width: 79px;
  height: 91px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 5px 0 rgb(41 45 70 / 10%);
}
.sheet-back {
  background: var(--lilac);
  transform: translate(-15px, 2px) rotate(-12deg);
}
.sheet-front {
  overflow: hidden;
  transform: translate(8px, -2px) rotate(7deg);
}
.portfolio-sun {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--yellow);
}
.portfolio-hill {
  position: absolute;
  bottom: -10px;
  width: 76px;
  height: 49px;
  border: 1.5px solid var(--ink);
  border-radius: 50% 50% 0 0;
}
.hill-one { left: -20px; background: var(--mint-deep); transform: rotate(15deg); }
.hill-two { right: -28px; bottom: -15px; background: var(--coral); transform: rotate(-17deg); }
.portfolio-star {
  position: absolute;
  top: 5px;
  left: 20%;
  color: var(--coral-deep);
  font-size: 22px;
}
.portfolio-pencil {
  position: absolute;
  right: 17%;
  bottom: 8px;
  z-index: 2;
  color: var(--ink);
  font-size: 26px;
  transform: rotate(12deg);
}

@media (max-width: 1000px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   CABOODLLE INNER-PAGE SYSTEM
   Shared layout for games, tools, discovery and portfolio pages
   ========================================================= */

.page-shell {
  padding: clamp(1.8rem, 4vw, 3.2rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.page-container {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.35rem;
  color: var(--muted, #77758a);
  font-size: .82rem;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--ink, #292d46); text-decoration: underline; }
.breadcrumbs .breadcrumb-separator { opacity: .55; }

.page-intro {
  max-width: 760px;
  margin-bottom: 2rem;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .8rem;
  color: var(--ink, #292d46);
  font: 500 .72rem/1.2 "DM Mono", monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.page-eyebrow::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--yellow, #f4c84b);
}
.page-title {
  max-width: 800px;
  margin: 0 0 .85rem;
  color: var(--ink, #292d46);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.page-description {
  max-width: 690px;
  margin: 0;
  color: var(--muted, #626176);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.75;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-top: 1.15rem;
}
.page-pill {
  display: inline-flex;
  align-items: center;
  padding: .42rem .75rem;
  border-radius: 999px;
  background: var(--lilac, #dcd4f1);
  color: var(--ink, #292d46);
  font: 500 .7rem/1.2 "DM Mono", monospace;
  letter-spacing: .035em;
}
.page-pill.mint { background: var(--mint, #c9e2d7); }
.page-pill.coral { background: var(--coral, #f1d1cb); }
.page-pill.yellow { background: var(--yellow, #f4c84b); }

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 1.5rem;
}
.page-main-column { min-width: 0; }
.page-sidebar { display: grid; gap: 1rem; }

.surface-card {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line, #e9e1d2);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 8px 28px rgb(41 45 70 / 4%);
}
.surface-card + .surface-card { margin-top: 1rem; }
.surface-card h2,
.surface-card h3 {
  margin-top: 0;
  color: var(--ink, #292d46);
}
.surface-card p { line-height: 1.7; }
.surface-card p:last-child { margin-bottom: 0; }

.page-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 1.1rem;
}
.page-section-heading h2 {
  margin: 0;
  color: var(--ink, #292d46);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -.035em;
}
.page-section-heading p {
  margin: .4rem 0 0;
  color: var(--muted, #77758a);
  line-height: 1.6;
}

.page-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .8rem 1.1rem;
  border: 0;
  border-radius: .85rem;
  background: var(--yellow, #f4c84b);
  color: var(--ink, #292d46);
  font: 800 .95rem/1.2 "Nunito Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.page-action:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgb(41 45 70 / 10%); }
.page-action:focus-visible,
.page-secondary-action:focus-visible,
.page-text-link:focus-visible {
  outline: 3px solid var(--ink, #292d46);
  outline-offset: 3px;
}
.page-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1rem;
  border: 1px solid var(--line, #e9e1d2);
  border-radius: .85rem;
  background: #fff;
  color: var(--ink, #292d46);
  font: 800 .92rem/1.2 "Nunito Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.page-text-link { color: var(--ink, #292d46); font-weight: 800; text-underline-offset: 3px; }

.page-note {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--cream, #fff9ed);
  color: var(--ink, #292d46);
  line-height: 1.65;
}
.page-note strong { display: block; margin-bottom: .25rem; }

.related-list { display: grid; gap: .75rem; }
.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line, #e9e1d2);
  border-radius: .9rem;
  color: var(--ink, #292d46);
  text-decoration: none;
  font-weight: 800;
}
.related-link span { color: var(--muted, #77758a); font-size: .85rem; font-weight: 600; }
.related-link:hover { background: var(--cream, #fff9ed); }

.page-empty-state {
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px dashed #d7cdbb;
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 55%);
  text-align: center;
}
.page-empty-state .empty-icon { margin-bottom: .6rem; font-size: 2rem; }
.page-empty-state h2 { margin: 0 0 .5rem; color: var(--ink, #292d46); }
.page-empty-state p { max-width: 520px; margin: 0 auto 1.2rem; color: var(--muted, #77758a); line-height: 1.7; }

.page-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 1.3rem;
  background: var(--mint, #c9e2d7);
}
.page-bottom-cta h2 { margin: 0 0 .35rem; color: var(--ink, #292d46); font-size: clamp(1.3rem, 3vw, 1.8rem); }
.page-bottom-cta p { margin: 0; color: #4d5d59; line-height: 1.6; }

@media (max-width: 800px) {
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .page-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .page-container { width: min(100% - 1.5rem, 1120px); }
  .breadcrumbs { margin-bottom: 1rem; }
  .page-sidebar { grid-template-columns: minmax(0, 1fr); }
  .page-bottom-cta { align-items: flex-start; flex-direction: column; }
  .page-section-heading { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .page-action { transition: none; }
  .page-action:hover { transform: none; }
}

/* PLAY LANDING PAGE */

.play-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.play-game-card {
  overflow: hidden;
  border: 1px solid var(--line, #e9e1d2);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 8px 28px rgb(41 45 70 / 4%);
}

.play-game-art {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.5rem;
}

.play-game-art-word {
  background: var(--lilac, #dcd4f1);
}

.play-game-art-missing {
  background: var(--mint, #c9e2d7);
}

.play-game-art > span {
  width: 58px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--ink, #292d46);
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: 0 5px 0 rgb(41 45 70 / 12%);
  transform: rotate(-4deg);
}

.play-game-art > span:nth-child(even) {
  transform: translateY(-8px) rotate(4deg);
}

.play-game-content {
  padding: 1.4rem;
}

.play-game-content h3 {
  margin: 1rem 0 .5rem;
  color: var(--ink, #292d46);
  font-size: 1.5rem;
  font-weight: 900;
}

.play-game-content p {
  min-height: 3.4em;
  margin: 0 0 1.25rem;
  color: var(--muted, #77758a);
  line-height: 1.7;
}

.page-action-disabled {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: .8rem 1.1rem;
  border-radius: .85rem;
  background: #f0eee9;
  color: #77758a;
  font-weight: 800;
}

@media (max-width: 600px) {
  .play-game-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .play-game-art {
    min-height: 155px;
  }

  .play-game-content p {
    min-height: 0;
  }
}

/* Word Scramble — original game styling */
.scramble-card {
  text-align: center;
}

.scramble-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font: 500 .72rem/1.4 "DM Mono", monospace;
  letter-spacing: .04em;
}

.scramble-prompt {
  margin: 1.5rem 0 .35rem !important;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.scramble-help {
  margin: 0;
  color: var(--muted);
}

.letter-tiles-game {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  margin: 1.6rem 0;
  padding: 1.2rem;
  border: 1px dashed #d7cdbb;
  border-radius: 1.1rem;
  background: var(--cream);
  color: var(--ink);
  font-size: clamp(1.5rem, 5vw, 2.35rem);
  font-weight: 900;
  letter-spacing: .13em;
}

.answer-form {
  display: flex;
  justify-content: center;
  gap: .65rem;
  max-width: 560px;
  margin: 0 auto;
}

.answer-form input {
  min-width: 0;
  flex: 1;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: #fff;
  color: var(--ink);
  font: 700 1rem/1.3 "Nunito Sans", sans-serif;
  box-sizing: border-box;
}

.answer-form input:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 2px;
}

.answer-form button:disabled,
.game-controls button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.game-feedback {
  min-height: 1.6em;
  margin: 1rem 0;
  color: var(--muted);
  font-weight: 700;
}

.game-feedback.success {
  color: #277454;
}

.game-feedback.error {
  color: #a33e3e;
}

.game-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
}

@media (max-width: 560px) {
  .answer-form {
    flex-direction: column;
  }

  .answer-form .page-action {
    width: 100%;
  }

  .letter-tiles-game {
    letter-spacing: .08em;
  }
}