:root {
  --ink: #052f38;
  --ink-deep: #05262d;
  --muted: #315b67;
  --line: #d8e1df;
  --line-strong: #c4d2cf;
  --surface: #ffffff;
  --page: #fbfffe;
  --soft-mint: #effbf8;
  --mint: #bff0e1;
  --mint-strong: #005e66;
  --coral: #ff5b4c;
  --coral-soft: #fff2ec;
  --amber: #fff0bf;
  --peach: #ffd0bc;
  --violet: #ded2ff;
  --shadow: 0 16px 32px rgba(4, 44, 49, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 91, 76, 0.24);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto auto auto;
  align-items: center;
  min-height: 92px;
  gap: 28px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.site-header > *,
.layout > *,
.hero-copy > *,
.content-band > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 16px;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 22px rgba(255, 91, 76, 0.2);
}

.brand-mark svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.brand-text {
  display: grid;
  gap: 2px;
  font-size: 24px;
  font-weight: 800;
}

.brand-text em {
  color: var(--coral);
  font-style: normal;
}

.header-note {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  min-height: 40px;
  gap: 10px;
  padding: 0 16px;
  border-radius: 7px;
  background: #fff1df;
  color: #2d3839;
  font-size: 14px;
  font-weight: 700;
}

.header-note span:first-child {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #ae5527;
  border-radius: 50%;
  color: #ae5527;
  font-size: 12px;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 48px;
  color: #082d35;
  font-size: 14px;
  font-weight: 800;
}

.main-nav a:hover {
  color: var(--coral);
}

.header-action,
.primary-action,
.secondary-action,
.chip,
.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 800;
}

.header-action {
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 22px rgba(255, 91, 76, 0.22);
}

.layout {
  display: grid;
  grid-template-columns: 414px minmax(0, 1fr);
  width: min(100%, 1440px);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.control-rail {
  min-width: 0;
  padding: 32px 28px 28px;
  border-right: 1px solid var(--line);
  background: linear-gradient(130deg, #f2fffb 0%, #fbfffe 65%);
}

.control-rail h2,
.content-band h2 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
}

.control-group {
  margin-top: 27px;
}

.control-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
  color: #0a5260;
  font-weight: 800;
}

.control-icon {
  width: 20px;
  color: #0d7787;
  text-align: center;
  font-size: 22px;
  line-height: 1;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.chip-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chip,
.segmented button,
select {
  min-height: 42px;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #0b3541;
  font-size: 13px;
}

.chip {
  padding: 0 12px;
}

.chip.is-active {
  border-color: transparent;
  background: var(--mint);
}

.chip.accent.is-active {
  background: var(--coral);
  color: #fff;
}

.chip.teal.is-active,
.segmented button.is-active {
  border-color: var(--mint-strong);
  background: var(--mint-strong);
  color: #fff;
  box-shadow: 0 9px 18px rgba(0, 94, 102, 0.18);
}

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

select {
  width: 100%;
  padding: 0 14px;
  border-radius: 7px;
  color: #0c2635;
  font-weight: 700;
}

.timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#timer-toggle {
  appearance: none;
  position: relative;
  width: 46px;
  height: 24px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
}

#timer-toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(4, 44, 49, 0.24);
  content: "";
  transition: transform 140ms ease;
}

#timer-toggle:checked {
  background: #38c68f;
}

#timer-toggle:checked::after {
  transform: translateX(22px);
}

.primary-action {
  width: 100%;
  min-height: 48px;
  gap: 12px;
  margin-top: 28px;
  border: 0;
  background: var(--coral);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 13px 24px rgba(255, 91, 76, 0.24);
}

.rail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 12px;
}

.secondary-action {
  min-height: 44px;
  gap: 10px;
  border: 1px solid #0d6b78;
  background: #fff;
  color: #08404d;
}

.prompt-workspace {
  min-width: 0;
  padding: 34px 28px 28px;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink-deep);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.hero-copy p {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.round-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  border-radius: 8px;
  background: #fff0c7;
}

.round-summary div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px 18px;
}

.round-summary div + div {
  border-left: 1px solid rgba(169, 116, 35, 0.24);
}

.round-summary div:last-child {
  column-gap: 8px;
  padding-right: 12px;
}

.summary-icon {
  display: grid;
  grid-row: span 2;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid #0d6f78;
  border-radius: 50%;
  color: #0d6f78;
  font-size: 22px;
  line-height: 1;
}

.round-summary span:not(.summary-icon) {
  font-size: 13px;
  font-weight: 800;
}

.round-summary strong {
  min-width: 0;
  color: #071c29;
  font-size: 22px;
  line-height: 1;
}

#summary-timer {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.board-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.prompt-card {
  position: relative;
  display: grid;
  min-height: 158px;
  align-content: center;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: #071b29;
  text-align: center;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.prompt-card:hover {
  border-color: var(--coral);
  transform: translateY(-2px);
}

.prompt-card.is-featured {
  border: 2px solid var(--coral);
  background: linear-gradient(140deg, #fff8f4 0%, #ffffff 70%);
  box-shadow: 0 14px 28px rgba(255, 91, 76, 0.1);
}

.prompt-card.is-featured::after {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  content: "✓";
}

.prompt-title {
  margin: 0 auto;
  max-width: 210px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.tag-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 16px;
  border-radius: 8px;
  color: #16242b;
  font-size: 12px;
  font-weight: 800;
}

.tag.funny,
.tag.animals {
  background: var(--peach);
}

.tag.kids,
.tag.easy {
  background: var(--mint);
}

.tag.movies,
.tag.medium {
  background: var(--amber);
}

.tag.hard {
  background: var(--violet);
}

.board-tip {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  padding: 22px 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.board-tip span:first-child {
  color: #f2a900;
  font-size: 22px;
  line-height: 1;
}

.content-band {
  display: grid;
  grid-template-columns: 1.14fr 1fr 1fr;
  align-items: start;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 28px;
  gap: 28px;
}

.content-band > article {
  min-width: 0;
}

.content-band > article:not(.wide-panel):not(:first-child) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.content-band h3 {
  margin: 0 0 8px;
  color: #0d5663;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.section-copy,
.use-grid p,
.review-panel p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.wide-panel {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}

.use-grid section {
  min-width: 0;
}

.how-flow {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.how-flow li:not(.arrow) {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.how-flow span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #aeeedb;
  color: #0e5361;
  font-weight: 800;
}

.how-flow strong {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #0d6b78;
  font-size: 35px;
}

.how-flow p {
  margin: 0;
  max-width: 160px;
  color: #173d4a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.how-flow .arrow {
  color: #0d6b78;
  font-size: 34px;
  font-weight: 800;
}

.examples-panel table {
  width: 100%;
  margin-top: 14px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #153641;
  font-size: 13px;
  font-weight: 700;
}

.examples-panel th,
.examples-panel td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.examples-panel tr:last-child th,
.examples-panel tr:last-child td {
  border-bottom: 0;
}

.examples-panel th {
  width: 92px;
  color: #0d5663;
  text-align: left;
}

.examples-panel tr:nth-child(1) th {
  background: #d8f6ee;
}

.examples-panel tr:nth-child(2) th {
  background: #fff0bd;
}

.examples-panel tr:nth-child(3) th {
  background: #ffd9c7;
}

.examples-panel tr:nth-child(4) th {
  background: #fff0bd;
}

.examples-panel tr:nth-child(5) th {
  background: #eee5ff;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  gap: 16px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #0d2633;
  font-weight: 800;
  text-align: left;
}

.faq-answer {
  margin-top: -8px;
  padding: 0 16px 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.more-copy {
  margin: 18px 0 0;
  color: #65787d;
  font-size: 13px;
  font-weight: 700;
}

.more-copy a {
  color: #0aa386;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 0 30px;
  background: #006069;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.site-footer span:first-child {
  font-size: 24px;
}

.site-footer small {
  font-size: 13px;
  font-weight: 600;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  transform: translateY(20px);
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  background: #052f38;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-note,
  .main-nav {
    display: none;
  }

  .layout {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .hero-copy {
    grid-template-columns: 1fr;
  }

  .round-summary {
    max-width: 520px;
  }

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

  .content-band {
    grid-template-columns: 1fr;
  }

  .content-band > article:not(:first-child) {
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .wide-panel {
    grid-column: 1;
  }

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

@media (max-width: 760px) {
  .site-header {
    min-height: 74px;
    padding: 12px 16px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-text {
    font-size: 18px;
  }

  .header-action {
    min-height: 42px;
    padding: 0 14px;
  }

  .header-action span:last-child {
    display: none;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .control-rail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .prompt-workspace {
    padding: 32px 16px 22px;
  }

  .hero-copy h1 {
    font-size: 38px;
    white-space: normal;
  }

  .round-summary {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .round-summary div + div {
    border-top: 1px solid rgba(169, 116, 35, 0.24);
    border-left: 0;
  }

  .prompt-grid {
    grid-template-columns: 1fr;
  }

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

  .chip,
  .segmented button,
  .secondary-action {
    width: 100%;
  }

  .rail-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .content-band {
    padding: 24px 16px;
  }

  .use-grid {
    grid-template-columns: 1fr;
  }

  .how-flow {
    grid-template-columns: 1fr;
  }

  .how-flow .arrow {
    transform: rotate(90deg);
  }

  .site-footer {
    grid-template-columns: auto 1fr;
    min-height: 82px;
  }

  .site-footer small {
    grid-column: 2;
  }
}
