/* ============================= */
/* DESIGN TOKENS                 */
/* Change these to restyle the   */
/* shared components below.      */
/* ============================= */

:root {
  --color-lavender: #b3a0ff;
  --color-lime: #c7ff27;
  --color-pink: #ff77bc;
  --color-cream: #fff8ed;
  --color-white: #fff;
  --color-ink: #111;
  --color-focus: #f3ffd1;
  --color-yellow: #ffd23f;
  --color-orange: #ff8a1f;

  --border: 3px solid var(--color-ink);

  --shadow-sm: 4px 4px 0 var(--color-ink);
  --shadow-md: 5px 5px 0 var(--color-ink);
  --shadow-lg: 10px 10px 0 var(--color-ink);

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --font-main: Arial, sans-serif;
  --font-mono: monospace;
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #b3a0ff;
  color: #111;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}


/* MAIN HERO */

.hero {
  min-height: 100vh;
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 60px 30px;
}


/* TITLE */

.hero-title {
  position: relative;
  text-align: center;
  z-index: 2;
}

h1 {
  margin: 0;

  font-size: clamp(6rem, 15vw, 13rem);
  line-height: 0.72;
  letter-spacing: -0.08em;
  font-weight: 900;
}

.subtitle {
  margin-top: 40px;
  font-size: 1.2rem;
  font-weight: 700;
}


/* BUTTON */

button {
  margin-top: 20px;
  padding: 20px 35px;

  background: #c7ff27;
  color: #111;

  border: 3px solid #111;
  border-radius: 14px;

  box-shadow: 8px 8px 0 #111;

  font-size: 1rem;
  font-weight: 900;

  cursor: pointer;
}

button:hover {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 #111;
}


/* GAME OVER STICKER */

.game-over {
  position: absolute;

  right: -40px;
  top: 45%;

  padding: 10px 25px;

  background: #ff77bc;

  border: 3px solid #111;
  box-shadow: 5px 5px 0 #111;

  font-size: 1.5rem;
  font-weight: 900;

  transform: rotate(-7deg);
}


/* HUMAN CARD */

.human-card {
  position: absolute;

  right: calc(100% - 10px);
  top: 4%;

  width: 250px;
  padding: 20px;

  background: #fff8ed;

  border: 3px solid #111;
  border-radius: 12px;

  box-shadow: 8px 8px 0 #111;

  transform: rotate(-4deg);

  font-family: monospace;
  font-weight: bold;

  z-index: 3;
}

.human-card p {
  margin: 10px 0;
}

.card-header {
  margin: -20px -20px 18px;
  padding: 12px 18px;

  background: #c7ff27;

  border-bottom: 3px solid #111;

  font-size: 1rem;
}


/* THERAPIST NOTE */

.therapist-note {
  position: absolute;

  right: 6%;
  top: 12%;

  padding: 25px;

  background: #ff77bc;

  border: 3px solid #111;
  box-shadow: 7px 7px 0 #111;

  font-family: monospace;
  font-weight: 900;
  line-height: 1.4;

  transform: rotate(4deg);

  z-index: 3;
}


/* RANDOM CHAOS */

.tiny-chaos {
  position: absolute;
  font-size: 3rem;
  font-weight: bold;
}

.chaos-one {
  left: 20%;
  bottom: 15%;
}

.chaos-two {
  right: 18%;
  bottom: 20%;

  color: #c7ff27;
  -webkit-text-stroke: 2px #111;
}


/* MOBILE */

@media (max-width: 800px) {

  .hero {
    min-height: 100vh;
    padding: 50px 20px;

    flex-direction: column;
    justify-content: flex-start;
  }

  .human-card {
    position: relative;

    left: auto;
    right: auto;
    top: auto;

    width: 90%;
    margin-bottom: 70px;
  }

  h1 {
    font-size: 25vw;
  }

  /* Tuck under the title, clear of the subtitle */
  .game-over {
    right: 0;
    top: 92px;
  }

  .subtitle {
    margin-top: 80px;
  }

  .therapist-note {
    display: none;
  }

  .tiny-chaos {
    display: none;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  background: #b9a7ff;
  color: #111;
  font-family: Arial, sans-serif;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
}

h1 {
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.85;
  margin: 0;
  letter-spacing: -0.06em;
}

p {
  font-size: 1.2rem;
  font-weight: bold;
}

button {
  margin-top: 25px;
  padding: 18px 30px;

  background: #c8ff36;
  color: #111;

  border: 3px solid #111;
  border-radius: 12px;

  font-size: 1rem;
  font-weight: 900;

  box-shadow: 7px 7px 0 #111;
  cursor: pointer;
}

button:hover {
  transform: translate(3px, 3px);
  box-shadow: 4px 4px 0 #111;
}

/* ============================= */
/* SCREENS                       */
/* ============================= */

/* Hidden screens stay hidden, even if a class sets "display" */
[hidden] {
  display: none !important;
}

/* A full-height screen that pops in when shown */
.screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 90px 30px 70px;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: left;

  animation: screen-pop 0.35s ease-out;
}

@keyframes screen-pop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* REDUCED MOTION – for people who turned off animations in their system:
   screens change instantly, nothing slides, fades or scrolls smoothly.
   Everyone else keeps the animations above. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.screen-title {
  margin: 0;

  font-size: clamp(3.2rem, 10vw, 5.5rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.screen-subtitle {
  margin: 12px 0 30px;
}

/* BACK button in the top-left corner of a screen */
.screen-back {
  position: absolute;
  top: 25px;
  left: 25px;
}

/* Heading for a section inside a screen */
.section-title {
  margin: 36px 0 16px;

  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}


/* ============================= */
/* COMPONENTS                    */
/* ============================= */

/* PANEL – a bordered card with a hard shadow */

.panel {
  --panel-padding: 30px;

  position: relative;
  padding: 0 var(--panel-padding) 34px;

  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Coloured bar across the top of a panel */
.panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;

  margin: 0 calc(-1 * var(--panel-padding)) 24px;
  padding: 12px var(--panel-padding);

  border-bottom: var(--border);
  border-radius: calc(var(--radius-lg) - 3px) calc(var(--radius-lg) - 3px) 0 0;

  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 1rem;
}


/* MINI CARD – a small coloured box, e.g. one person's slot */

.mini-card {
  position: relative;
  padding: 26px 16px 18px;

  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}


/* BADGE – small dark tag sitting on a card's top edge */

.badge {
  position: absolute;
  top: -16px;
  left: 14px;

  padding: 3px 10px;

  background: var(--color-ink);
  color: var(--color-lime);

  border-radius: 6px;

  font-family: var(--font-mono);
  font-weight: 900;
}


/* STICKER – a tilted label. Position it with a layout class. */

.sticker {
  position: absolute;
  padding: 10px 18px;

  border: var(--border);
  box-shadow: var(--shadow-md);

  font-family: var(--font-mono);
  font-weight: 900;
  white-space: nowrap;

  z-index: 3;
}


/* FORM FIELDS */

.field {
  margin-bottom: 24px;
}

.field-label {
  display: block;
  margin-bottom: 8px;

  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 900;
}

/* Used for text inputs, number inputs and selects */
.text-input {
  width: 100%;
  padding: 14px 16px;

  background: var(--color-white);
  color: var(--color-ink);

  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);

  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: bold;
}

.text-input:focus {
  outline: none;
  background: var(--color-focus);
}

select.text-input {
  cursor: pointer;
}

/* Puts inputs next to each other with equal widths */
.input-row {
  display: flex;
  gap: 14px;
}

.input-row > * {
  flex: 1;
}


/* A button that can't be used right now looks flat and faded */
button:disabled,
button:disabled:hover {
  opacity: 0.4;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}


/* BUTTON SIZES (the base look comes from the "button" rule above) */

.button-wide {
  width: 100%;
  margin-top: 10px;
  padding: 22px 20px;

  font-size: 1.15rem;
}

.button-small {
  margin: 0;
  padding: 10px 18px;

  box-shadow: var(--shadow-md);

  font-size: 0.9rem;
}

.button-small:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--color-ink);
}


/* BUTTON – medium size, e.g. inside a bar */

.button-medium {
  margin: 0;
  padding: 14px 22px;

  font-size: 1rem;
}

/* A row of buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}


/* TEXTAREA – same look as .text-input, can grow taller */

textarea.text-input {
  resize: vertical;
  line-height: 1.4;
}


/* CHOICE CHIPS – radio buttons that look like tags.
   Markup: <label class="chip"><input type="radio"><span>TEXT</span></label> */

.choice-group {
  margin: 0 0 24px;
  padding: 0;
  min-width: 0;
  border: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
  cursor: pointer;
}

/* Hide the real radio circle but keep it usable with a keyboard */
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip span {
  display: inline-block;
  padding: 8px 14px;

  background: var(--color-white);

  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);

  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 900;
}

.chip input:checked + span {
  background: var(--color-lime);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--color-ink);
}

.chip input:focus-visible + span {
  outline: 3px dashed var(--color-ink);
  outline-offset: 3px;
}


/* TOGGLE BUTTON – a button that stays pressed, like a checked chip.
   Selected state comes from aria-pressed="true". */

.toggle-button[aria-pressed="true"] {
  background: var(--color-lime);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--color-ink);
}


/* SELECT CARD – a big toggle button.
   Selected state comes from aria-pressed="true". */

.select-card {
  margin: 0;
  padding: 16px;
  min-height: 130px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;

  background: var(--color-white);

  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);

  text-align: left;
}

.select-card[aria-pressed="true"] {
  background: var(--color-lime);
}

.select-card-status {
  padding: 2px 8px;

  background: var(--color-white);

  border: 2px solid var(--color-ink);
  border-radius: 6px;

  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
}

.select-card[aria-pressed="true"] .select-card-status {
  background: var(--color-ink);
  color: var(--color-lime);
}

.select-card-title {
  font-size: 1.15rem;
  font-weight: 900;
}

.select-card-count {
  margin-top: auto;

  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}


/* LIST ITEM – one row in a list of saved things */

.item-list {
  display: grid;
  gap: 16px;

  margin: 20px 0 0;
  padding: 0;

  list-style: none;
}

.list-item {
  padding: 16px;

  background: var(--color-white);

  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.list-item-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.list-item-meta {
  margin: 0 0 6px;

  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: bold;
}


/* OPTION ROW – a text input with a small remove button */

.option-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.option-row .text-input {
  flex: 1;
}


/* NOTES AND MESSAGES */

.note {
  margin: 16px 0 0;

  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: bold;
}

.form-error {
  margin: 0 0 14px;
  padding: 8px 12px;

  background: var(--color-pink);
  color: var(--color-ink);
  border: var(--border);

  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* An error under an input inside a coloured mini card */
.form-error-on-card {
  margin: 12px 0 0;
  background: var(--color-white);
}

.card-title {
  margin: 0 0 16px;

  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 900;
}


/* ACTION BAR – sticks to the bottom of the screen while scrolling */

.action-bar {
  position: sticky;
  bottom: 16px;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  margin-top: 36px;
  padding: 14px 16px;

  background: var(--color-ink);
  color: var(--color-white);

  border-radius: var(--radius-md);
  box-shadow: 5px 5px 0 var(--color-pink);

  z-index: 4;
}

.counter {
  margin: 0;

  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 900;
}


/* PROGRESS BAR – a chunky <progress> element */

.progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.progress-row .counter {
  white-space: nowrap;
}

.progress-bar {
  flex: 1;
  height: 24px;

  appearance: none;
  background: var(--color-white);

  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);

  overflow: hidden;
}

.progress-bar::-webkit-progress-bar {
  background: var(--color-white);
}

.progress-bar::-webkit-progress-value {
  background: var(--color-lime);
  border-right: var(--border);
}

.progress-bar::-moz-progress-bar {
  background: var(--color-lime);
}


/* QUESTION TEXT – one big question on its own */

.question-text {
  margin: 0 0 22px;

  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}


/* DONE STATE – centred drawing, title and buttons */

.done-state {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding-top: 10px;
  text-align: center;
}

.done-title {
  margin: 18px 0 0;

  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.done-state .note {
  margin-top: 10px;
}

.done-state .button-row {
  justify-content: center;
  margin-top: 26px;
}


/* FLASH NOTE – a small tilted message that appears for a moment */

.flash-note {
  margin: 22px 0 0;
  padding: 8px 14px;

  background: var(--color-pink);

  border: var(--border);
  box-shadow: var(--shadow-sm);

  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 900;

  transform: rotate(-2deg);
}


/* DIALOG – a panel that opens on top of the page (a <dialog>) */

.dialog {
  width: min(520px, calc(100% - 32px));
  color: var(--color-ink);
  text-align: left;
}

.dialog::backdrop {
  background: rgba(17, 17, 17, 0.55);
}

.dialog .note {
  margin: 0;
}

.dialog .button-row {
  margin-top: 26px;
}

/* Clear focus ring for the dialog's buttons */
.dialog button:focus-visible,
.start-over-button:focus-visible {
  outline: 3px solid var(--color-ink);
  outline-offset: 4px;
}


/* ============================= */
/* UTILITIES                     */
/* ============================= */

.bg-lime     { background: var(--color-lime); }
.bg-pink     { background: var(--color-pink); }
.bg-cream    { background: var(--color-cream); }
.bg-lavender { background: var(--color-lavender); }
.bg-white    { background: var(--color-white); }

.tilt-left   { transform: rotate(-1.5deg); }
.tilt-right  { transform: rotate(1.5deg); }

/* Read by screen readers, invisible on screen */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;

  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Titles and the question get focus from app.js only so screen readers
   start reading there. They aren't controls, so no focus ring. */
[tabindex="-1"]:focus {
  outline: none;
}


/* ============================= */
/* NEW GAME SCREEN – LAYOUT      */
/* Only placement lives here.    */
/* ============================= */

.new-game-panel {
  width: 100%;
  max-width: 620px;
  transform: rotate(-1deg);
  z-index: 2;
}

.new-game-humans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}

.new-game-sticker-top {
  top: -44px;
  right: -40px;
  transform: rotate(7deg);
}

.new-game-sticker-side {
  top: 62%;
  left: -78px;
  transform: rotate(-9deg);
}

.new-game-sticker-bottom {
  bottom: -26px;
  right: 40px;
  transform: rotate(-4deg);
}

.new-game-star-one {
  left: 8%;
  top: 20%;
}

.new-game-star-two {
  right: 9%;
  bottom: 14%;

  color: var(--color-lime);
  -webkit-text-stroke: 2px var(--color-ink);
}


/* ============================= */
/* EXIT INTERVIEW SCREEN – LAYOUT */
/* ============================= */

.interview-panel {
  width: 100%;
  max-width: 860px;
}

.interview-sticker {
  top: -44px;
  right: -24px;
  transform: rotate(5deg);
}

.interview-editor {
  margin-top: 20px;
}

/* "Pick at least one question" message on its own line in the bar */
.action-bar-error {
  flex-basis: 100%;
  margin: 0;
}


/* ============================= */
/* PREVIEW SCREEN – LAYOUT       */
/* ============================= */

.preview-panel {
  width: 100%;
  max-width: 680px;
}

.preview-sticker {
  top: -44px;
  right: -24px;
  transform: rotate(-5deg);
}

/* Names typed in THE LORE, shown small in the header */
.preview-context {
  text-transform: uppercase;
}

.question-card {
  padding: 22px 20px;
}

.question-card .choice-group {
  margin-bottom: 0;
}

/* PREFER NOT TO ANSWER sits under the answer controls */
.decline-button {
  margin-top: 22px;
}


/* INVITE CREATED */

.invite-panel {
  width: 100%;
  max-width: 620px;
}

.invite-sticker {
  top: -44px;
  right: -24px;
  transform: rotate(-5deg);
}

.invite-link {
  font-family: var(--font-mono);
}

.invite-panel .flash-note {
  width: fit-content;
}

/* STATUS – where both humans are (no answers, only statuses) */

.status-card {
  margin-bottom: 18px;
}

.status-list {
  display: grid;
  gap: 12px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;

  font-family: var(--font-mono);
  font-weight: bold;
}

/* Same look as .badge, but in the flow of the row (a <dd>, so no indent) */
.status-tag {
  margin: 0;
  padding: 3px 10px;

  background: var(--color-ink);
  color: var(--color-lime);

  border-radius: 6px;

  font-family: var(--font-mono);
  font-weight: 900;
  white-space: nowrap;
}


/* INVITE OPENED – Human B's first screen.
   A calmer screen: no tilt, no stickers, no doodles. */

.consent-panel,
.human-a-panel,
.human-b-panel {
  width: 100%;
  max-width: 640px;
}

.consent-title {
  margin: 0 0 26px;

  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.rule-list {
  display: grid;
  gap: 10px;

  margin: 0;
  padding-left: 20px;

  line-height: 1.4;
}

.kindness-card {
  margin-top: 26px;
  padding: 30px 20px;

  text-align: center;
}

.kindness-lead {
  margin: 0;

  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 900;
}

.kindness-words {
  margin: 16px 0 0;

  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.consent-actions {
  margin-top: 30px;
}

/* Names typed in THE LORE can be long – wrap instead of overflowing */
.long-text {
  overflow-wrap: anywhere;
}

.question-nav {
  justify-content: space-between;
  margin-top: 26px;
}


/* NEW GAME – MOBILE */

/* START OVER – top-right corner of the page */

.start-over-button {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 5;
}


@media (max-width: 800px) {

  /* In the page flow above the screen, so it can't cover anything */
  .start-over-button {
    position: relative;
    top: auto;
    right: auto;

    align-self: flex-end;
    margin: 16px 16px 0;
  }

  .screen {
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 16px 60px;
  }

  .panel {
    --panel-padding: 18px;
    box-shadow: 7px 7px 0 var(--color-ink);
  }

  .sticker {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .screen-back {
    position: relative;
    top: auto;
    left: auto;

    align-self: flex-start;
    margin-bottom: 45px;
  }

  .new-game-panel {
    transform: none;
  }

  .new-game-humans {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .new-game-sticker-top {
    top: -38px;
    right: -6px;
  }

  .new-game-sticker-side {
    top: -40px;
    left: -6px;
  }

  .new-game-sticker-bottom {
    right: 16px;
  }

  .interview-sticker {
    top: -40px;
    right: -6px;
  }

  .preview-sticker {
    top: -40px;
    right: -6px;
  }

  .invite-sticker {
    top: -40px;
    right: -6px;
  }

  .question-text {
    font-size: 1.3rem;
  }

  .progress-row {
    gap: 10px;
  }

  .progress-row .counter {
    font-size: 0.9rem;
  }

  /* At most two columns; one when the longest pack title won't fit in two */
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(170px, calc(50% - 6px))), 1fr));
    gap: 12px;
  }

  .select-card {
    min-height: 110px;
    padding: 12px;
  }

  .select-card-title {
    font-size: 1rem;
  }

  .action-bar {
    gap: 8px;
    padding: 10px 12px;
  }

  .counter {
    font-size: 0.9rem;
  }

  .action-bar .button-medium {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}



/* ============================= */
/* ILLUSTRATIONS                 */
/* The drawings live in the      */
/* illustration library at the   */
/* top of index.html.            */
/* ============================= */

/* The hidden library itself takes up no space */
.illo-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Colours used inside the drawings */
.ill-outline {
  stroke: var(--color-ink);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ill-yellow   { fill: var(--color-yellow); }
.ill-orange   { fill: var(--color-orange); }
.ill-pink     { fill: var(--color-pink); }
.ill-lime     { fill: var(--color-lime); }
.ill-white    { fill: var(--color-white); }
.ill-none     { fill: none; }
.ill-ink      { fill: var(--color-ink); stroke: none; }


/* ILLUSTRATION – one placed drawing */

.illo {
  display: block;
  flex-shrink: 0;
  height: auto;
  pointer-events: none;
}

.illo-sm { width: 44px; }
.illo-md { width: 80px; }
.illo-lg { width: 130px; }

/* Doodles only appear where there is spare space (see mobile rules) */
.doodle {
  position: absolute;
}


/* EMPTY STATE – a small drawing next to a note */

.empty-state {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.empty-state .note {
  margin: 0;
}


/* HOME – placement */

.home-duck {
  position: absolute;
  right: 7%;
  bottom: 5%;
}

.home-flower {
  left: 9%;
  bottom: 30%;
}

.home-squiggle {
  left: 32%;
  bottom: 7%;
}

.home-plant {
  left: 4%;
  bottom: 5%;
}

.home-bird {
  right: 30%;
  top: 7%;
}


/* THE LORE – placement */

/* Peeks out from behind the card's left edge */
.lore-duck {
  position: absolute;
  right: calc(100% + 3px);
  top: 18%;
}

/* Peeks out quietly from the left edge of the invite */
.consent-duck {
  position: absolute;
  right: calc(100% + 3px);
  top: 42%;
}

.lore-flower {
  left: 11%;
  bottom: 16%;
}

.lore-squiggle {
  right: 6%;
  top: 16%;
}

.lore-plant {
  right: 15%;
  bottom: 5%;
}


/* CHAPTER 02 – placement */

.interview-plant {
  left: 5%;
  bottom: 8%;
}

.interview-flower {
  right: 5%;
  top: 34%;
}


/* CHAPTER 03 – placement */

.preview-squiggle {
  left: 6%;
  top: 22%;
}

.preview-bird {
  right: 7%;
  bottom: 12%;
}


/* ILLUSTRATIONS – smaller screens */

@media (max-width: 1100px) {

  .doodle {
    display: none;
  }
}

@media (max-width: 800px) {

  /* Room at the bottom of HOME for the duck */
  .hero {
    padding-bottom: 170px;
  }

  /* Leans in from the left edge, partly off-screen */
  .home-duck {
    width: 100px;
    left: -24px;
    right: auto;
    bottom: 26px;
    transform: rotate(8deg);
  }

  /* No spare space beside the card on phones */
  .lore-duck {
    display: none;
  }

  .consent-duck {
    display: none;
  }

  .empty-state .illo {
    width: 64px;
  }
}
