:root {
  color-scheme: dark;
  --ink: #08120f;
  --deep: #102016;
  --cedar: #1f5f46;
  --leaf: #3cd07d;
  --sky: #38c2f0;
  --gold: #f4c85a;
  --amber: #d9902f;
  --ruby: #b9474b;
  --grape: #7b5cff;
  --paper: #f5ead0;
  --muted: #b9c7bd;
  --line: rgba(244, 200, 90, 0.22);
  --panel: rgba(13, 29, 26, 0.9);
  --panel-2: rgba(19, 44, 38, 0.84);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 118px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  background:
    linear-gradient(90deg, rgba(244, 200, 90, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(56, 194, 240, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(60, 208, 125, 0.12) 0%, transparent 24%),
    linear-gradient(160deg, #07100e 0%, #102016 43%, #162039 100%);
  background-size: 64px 64px, 64px 64px, auto;
  color: #fffaf0;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1180px, calc(100% - 40px));
  margin: 10px auto 0;
  padding: 10px clamp(14px, 3vw, 40px);
  background:
    linear-gradient(90deg, rgba(17, 42, 36, 0.96), rgba(9, 21, 25, 0.96)),
    linear-gradient(135deg, rgba(185, 71, 75, 0.14), rgba(56, 194, 240, 0.1));
  border: 1px solid rgba(244, 200, 90, 0.24);
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--leaf), var(--gold));
  color: #07100e;
  font-weight: 950;
  font-size: 1.08rem;
  box-shadow: 0 10px 28px rgba(60, 208, 125, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.9rem;
}

.brand small {
  color: var(--muted);
  margin-top: 1px;
  font-size: 0.76rem;
}

.top-sponsor {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(360px, 34vw);
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(244, 200, 90, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 200, 90, 0.14), rgba(185, 71, 75, 0.12)),
    rgba(245, 234, 208, 0.07);
  color: #f8f1dc;
  font-size: 0.82rem;
  font-weight: 850;
}

.top-sponsor img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
  padding: 3px;
}

.top-sponsor strong {
  color: var(--gold);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav a {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  color: #e9f7ed;
  font-weight: 800;
  font-size: 0.88rem;
}

.topnav a:hover {
  border-color: var(--line);
  background: rgba(244, 200, 90, 0.08);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  gap: 18px;
  align-items: stretch;
  min-height: 250px;
  margin-bottom: 18px;
}

.intro-copy {
  min-height: 100%;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(31, 95, 70, 0.86), rgba(23, 42, 78, 0.78)),
    linear-gradient(45deg, rgba(185, 71, 75, 0.24), transparent 44%),
    repeating-linear-gradient(45deg, rgba(244, 200, 90, 0.08) 0 2px, transparent 2px 18px);
  box-shadow: var(--shadow);
}

.intro-copy h1 {
  max-width: 860px;
  margin: 5px 0 12px;
  font-size: clamp(1.34rem, 2.25vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.intro-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #e5efe7;
  font-size: 0.94rem;
  line-height: 1.55;
}

.sponsor-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(244, 200, 90, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(60, 208, 125, 0.12), rgba(244, 200, 90, 0.12)),
    rgba(5, 12, 18, 0.42);
  color: #f6f0de;
  font-weight: 850;
  font-size: 0.86rem;
}

.sponsor-strip img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.sponsor-strip strong {
  color: var(--gold);
}

.scripture-card {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 210px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(244, 200, 90, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 244, 215, 0.96), rgba(238, 211, 153, 0.92)),
    linear-gradient(120deg, rgba(185, 71, 75, 0.22), rgba(56, 194, 240, 0.12));
  color: #1c1710;
  box-shadow: var(--shadow);
}

.scripture-card span {
  color: #7c4c14;
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.scripture-card strong {
  margin: 8px 0;
  color: #102016;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
}

.scripture-card p {
  margin: 0;
  color: #3f3321;
  line-height: 1.42;
  font-size: 0.9rem;
}

.daily-verse-section {
  margin-bottom: 18px;
}

.daily-verse-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 200, 90, 0.32);
  border-radius: 8px;
  padding: clamp(18px, 2.4vw, 26px);
  background:
    linear-gradient(135deg, rgba(14, 58, 45, 0.96), rgba(14, 35, 66, 0.92)),
    linear-gradient(90deg, rgba(185, 71, 75, 0.22), transparent 52%),
    repeating-linear-gradient(45deg, rgba(244, 200, 90, 0.08) 0 1px, transparent 1px 18px);
  box-shadow: var(--shadow);
}

.daily-verse-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(244, 200, 90, 0.12));
  pointer-events: none;
}

.daily-verse-card > * {
  position: relative;
}

.daily-verse-card blockquote {
  margin: 18px 0;
  padding: 0 0 0 18px;
  border-left: 4px solid var(--gold);
  color: #fff8e8;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.45;
  font-weight: 800;
}

.daily-commentary {
  border: 1px solid rgba(148, 247, 183, 0.22);
  border-radius: 8px;
  padding: 15px;
  background: rgba(5, 12, 18, 0.55);
}

.daily-commentary strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.daily-commentary p {
  margin: 0;
  color: #e9f6ec;
  line-height: 1.55;
}

.children-section {
  margin-bottom: 18px;
}

.kids-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(56, 194, 240, 0.28);
  border-radius: 8px;
  padding: clamp(18px, 2.6vw, 28px);
  background:
    linear-gradient(135deg, rgba(17, 42, 36, 0.96), rgba(20, 35, 74, 0.92)),
    linear-gradient(90deg, rgba(244, 200, 90, 0.12), rgba(123, 92, 255, 0.12));
  box-shadow: var(--shadow);
}

.kids-hero > div:first-child {
  align-self: center;
}

.kids-hero h2 {
  max-width: 720px;
  margin: 6px 0 10px;
  font-size: clamp(1.28rem, 1.9vw, 2rem);
  line-height: 1.12;
}

.kids-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #e9f6ec;
  line-height: 1.56;
}

.kids-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.kids-tags span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(244, 200, 90, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(5, 12, 18, 0.34);
  color: #fff4cf;
  font-weight: 900;
  font-size: 0.84rem;
}

.kids-stage {
  position: relative;
  min-height: 190px;
  border: 1px solid rgba(244, 200, 90, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(56, 194, 240, 0.28), rgba(244, 200, 90, 0.14) 54%, rgba(31, 95, 70, 0.58)),
    #102016;
}

.kids-stage span,
.story-art span {
  position: absolute;
  display: block;
}

.stage-sun,
.art-sun {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7ba 0 32%, #f4c85a 34% 68%, rgba(244, 200, 90, 0.26) 70%);
  box-shadow: 0 0 34px rgba(244, 200, 90, 0.45);
}

.stage-sun {
  top: 24px;
  right: 34px;
}

.stage-scroll {
  left: 34px;
  bottom: 36px;
  width: 96px;
  height: 62px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f5ead0, #d9902f);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.stage-scroll::before,
.stage-scroll::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 18px;
  height: 76px;
  border-radius: 999px;
  background: #fff1c8;
}

.stage-scroll::before {
  left: -8px;
}

.stage-scroll::after {
  right: -8px;
}

.stage-hill {
  bottom: -32px;
  width: 180px;
  height: 100px;
  border-radius: 50% 50% 0 0;
  background: rgba(60, 208, 125, 0.44);
}

.stage-hill.one {
  left: 42px;
}

.stage-hill.two {
  right: -24px;
  background: rgba(56, 194, 240, 0.3);
}

.stage-child {
  bottom: 36px;
  width: 19px;
  height: 42px;
  border-radius: 999px 999px 8px 8px;
  background: #7b5cff;
}

.stage-child::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 1px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #c98c62;
}

.stage-child.one {
  right: 106px;
}

.stage-child.two {
  right: 70px;
  background: #b9474b;
}

.stage-star {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff7ba;
}

.stage-star.one {
  top: 28px;
  left: 44px;
}

.stage-star.two {
  top: 58px;
  left: 86px;
}

.kids-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.kid-story-card {
  overflow: hidden;
  border: 1px solid rgba(244, 200, 90, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 32, 56, 0.95), rgba(8, 18, 15, 0.94)),
    linear-gradient(135deg, rgba(60, 208, 125, 0.12), rgba(244, 200, 90, 0.1));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.kid-story-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 200, 90, 0.46);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.26);
}

.story-art {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(56, 194, 240, 0.3), rgba(244, 200, 90, 0.18) 54%, rgba(60, 208, 125, 0.3));
}

.story-creation .story-art {
  background: linear-gradient(180deg, rgba(84, 199, 255, 0.5), rgba(255, 231, 142, 0.35) 55%, rgba(60, 208, 125, 0.42));
}

.story-noah .story-art {
  background: linear-gradient(180deg, rgba(56, 194, 240, 0.44), rgba(123, 92, 255, 0.18) 48%, rgba(31, 95, 70, 0.4));
}

.story-david .story-art {
  background: linear-gradient(180deg, rgba(244, 200, 90, 0.4), rgba(185, 71, 75, 0.18) 56%, rgba(120, 79, 42, 0.42));
}

.story-daniel .story-art {
  background: linear-gradient(180deg, rgba(74, 57, 27, 0.56), rgba(16, 32, 56, 0.48) 52%, rgba(8, 18, 15, 0.72));
}

.story-jonah .story-art {
  background: linear-gradient(180deg, rgba(56, 194, 240, 0.5), rgba(16, 92, 118, 0.5) 54%, rgba(6, 42, 62, 0.8));
}

.story-kindness .story-art {
  background: linear-gradient(180deg, rgba(255, 231, 142, 0.38), rgba(217, 144, 47, 0.2) 52%, rgba(31, 95, 70, 0.45));
}

.kid-story-card h3,
.kid-story-card p,
.kid-story-card .story-ref,
.story-actions {
  margin-left: 16px;
  margin-right: 16px;
}

.story-ref {
  display: inline-flex;
  margin-top: 15px;
  color: #fff0b8;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kid-story-card h3 {
  margin-top: 7px;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.kid-story-card p {
  min-height: 54px;
  margin-top: 0;
  margin-bottom: 14px;
  color: #e5efe7;
  line-height: 1.46;
}

.story-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.story-actions .chip,
.story-actions .ghost-btn {
  min-width: 0;
  padding: 8px;
  font-size: 0.8rem;
}

.art-cloud {
  width: 62px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.86);
}

.art-cloud::before,
.art-cloud::after {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: inherit;
}

.art-cloud::before {
  left: 9px;
}

.art-cloud::after {
  right: 11px;
}

.art-cloud.left {
  top: 28px;
  left: 22px;
}

.art-cloud.right {
  top: 42px;
  right: 24px;
}

.art-hill,
.art-valley {
  bottom: -24px;
  left: -8%;
  width: 116%;
  height: 82px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(90deg, rgba(60, 208, 125, 0.62), rgba(31, 95, 70, 0.8));
}

.art-path,
.art-road {
  left: 42%;
  bottom: -28px;
  width: 58px;
  height: 110px;
  border-radius: 50% 50% 0 0;
  background: rgba(245, 234, 208, 0.7);
  transform: rotate(10deg);
}

.art-rainbow {
  top: 24px;
  left: 50%;
  width: 132px;
  height: 76px;
  border: 12px solid #f4c85a;
  border-bottom: 0;
  border-radius: 132px 132px 0 0;
  transform: translateX(-50%);
  box-shadow: inset 0 8px 0 #b9474b, inset 0 18px 0 #38c2f0;
}

.art-ark {
  left: 50%;
  bottom: 38px;
  width: 100px;
  height: 42px;
  border-radius: 0 0 38px 38px;
  background: #8b5a2b;
  transform: translateX(-50%);
}

.art-ark::before {
  content: "";
  position: absolute;
  left: 32px;
  top: -28px;
  border-left: 34px solid transparent;
  border-right: 34px solid transparent;
  border-bottom: 31px solid #d9902f;
}

.art-water,
.art-wave {
  left: 0;
  right: 0;
  bottom: 16px;
  height: 18px;
  background: repeating-linear-gradient(90deg, rgba(56, 194, 240, 0.75) 0 28px, rgba(56, 194, 240, 0.35) 28px 56px);
}

.art-wave.one {
  bottom: 34px;
}

.art-wave.two {
  bottom: 14px;
  opacity: 0.7;
}

.art-figure,
.art-helper {
  bottom: 38px;
  left: 47%;
  width: 22px;
  height: 48px;
  border-radius: 999px 999px 8px 8px;
  background: #3cd07d;
}

.art-figure::before,
.art-helper::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #b77955;
}

.art-figure.david {
  left: 44%;
  background: #7b5cff;
}

.art-stone {
  left: 35%;
  bottom: 42px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f5ead0;
}

.art-den {
  inset: 16px 22px 30px;
  border-radius: 60px 60px 12px 12px;
  background: linear-gradient(180deg, rgba(8, 18, 15, 0.78), rgba(61, 47, 13, 0.76));
}

.art-lion {
  bottom: 34px;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: #d9902f;
}

.art-lion::before {
  content: "";
  position: absolute;
  right: -8px;
  top: -7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f4c85a;
}

.art-lion.one {
  left: 34px;
}

.art-lion.two {
  right: 36px;
}

.art-fish {
  right: 38px;
  bottom: 45px;
  width: 92px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(90deg, #38c2f0, #7b5cff);
}

.art-fish::after {
  content: "";
  position: absolute;
  left: -18px;
  top: 9px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 25px solid #38c2f0;
}

.art-boat {
  left: 28px;
  top: 38px;
  width: 76px;
  height: 26px;
  border-radius: 0 0 32px 32px;
  background: #8b5a2b;
}

.art-tree {
  right: 38px;
  bottom: 36px;
  width: 16px;
  height: 62px;
  background: #8b5a2b;
}

.art-tree::before {
  content: "";
  position: absolute;
  left: -24px;
  top: -22px;
  width: 64px;
  height: 48px;
  border-radius: 50%;
  background: #3cd07d;
}

.eyebrow {
  margin: 0 0 6px;
  color: #94f7b7;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.8rem;
}

.tool-grid,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
  gap: 18px;
  margin-bottom: 18px;
}

.split-section {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}

.panel,
.results-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 43, 38, 0.94), rgba(10, 22, 26, 0.93)),
    linear-gradient(135deg, rgba(56, 194, 240, 0.08), rgba(244, 200, 90, 0.05));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.lookup-panel {
  background:
    linear-gradient(180deg, rgba(18, 43, 38, 0.96), rgba(10, 22, 26, 0.94)),
    linear-gradient(120deg, rgba(60, 208, 125, 0.1), rgba(56, 194, 240, 0.08));
}

.guidance-panel {
  background:
    linear-gradient(180deg, rgba(21, 35, 62, 0.94), rgba(10, 22, 26, 0.93)),
    linear-gradient(120deg, rgba(123, 92, 255, 0.12), rgba(244, 200, 90, 0.08));
}

.panel {
  padding: clamp(16px, 2vw, 22px);
}

.panel-heading,
.results-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel h2,
.results-header h2 {
  margin: 0;
  font-size: clamp(1.02rem, 1.25vw, 1.28rem);
  line-height: 1.16;
}

.field-label,
label {
  display: block;
  margin: 14px 0 8px;
  color: #f9efd7;
  font-weight: 850;
  font-size: 0.94rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(244, 200, 90, 0.26);
  border-radius: 8px;
  background: rgba(5, 12, 18, 0.72);
  color: #fffaf0;
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 200, 90, 0.16);
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.chip {
  min-height: 39px;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 950;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, var(--leaf), var(--sky));
  color: #06110d;
}

.secondary-btn,
.ghost-btn,
.chip {
  border: 1px solid rgba(244, 200, 90, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #fffaf0;
}

.secondary-btn:hover,
.ghost-btn:hover,
.chip:hover {
  border-color: var(--gold);
  background: rgba(244, 200, 90, 0.12);
}

.wide {
  width: 100%;
  margin-top: 16px;
}

.translation-box,
.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.translation-box label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(244, 200, 90, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #eaf3eb;
  font-size: 0.85rem;
  min-height: 38px;
}

.translation-box input {
  width: auto;
  accent-color: var(--leaf);
}

.status-line {
  min-height: 24px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
}

.flow-list {
  display: grid;
  gap: 12px;
}

.flow-list div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(244, 200, 90, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 200, 90, 0.08), rgba(56, 194, 240, 0.06)),
    rgba(255, 255, 255, 0.05);
}

.flow-list strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(244, 200, 90, 0.16);
  color: var(--gold);
}

.results-shell {
  padding: clamp(16px, 2vw, 22px);
  margin-bottom: 18px;
}

.passage-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.translation-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(244, 200, 90, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(245, 234, 208, 0.96), rgba(238, 218, 177, 0.9));
  color: #17140e;
}

.translation-card h3 {
  margin: 0;
  color: #173624;
  font-size: 1.25rem;
}

.translation-card .ref {
  color: #8f5c17;
  font-weight: 950;
}

.translation-name {
  color: #2f4438;
  font-size: 0.86rem;
}

.translation-card p {
  margin: 0;
  line-height: 1.58;
  font-size: 0.94rem;
}

.translation-card small {
  margin-top: auto;
  color: #6c5d42;
  font-weight: 800;
}

.license-card {
  background:
    linear-gradient(180deg, rgba(245, 234, 208, 0.88), rgba(224, 207, 170, 0.84));
  border-style: dashed;
}

.license-card p {
  color: #6d5932;
}

.formatted-output {
  display: grid;
  gap: 13px;
}

.formatted-output h3 {
  margin: 12px 0 0;
  color: var(--gold);
  font-size: 1rem;
}

.formatted-output p,
.formatted-output li {
  color: #edf5ee;
  line-height: 1.62;
}

.formatted-output p {
  margin: 0;
}

.formatted-output ul {
  margin: 0;
  padding-left: 20px;
}

.empty-state {
  border: 1px dashed rgba(244, 200, 90, 0.28);
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.image-section {
  align-items: stretch;
}

.image-result {
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(244, 200, 90, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 200, 90, 0.14), rgba(31, 95, 70, 0.18), rgba(56, 194, 240, 0.12)),
    #08120f;
}

.image-result img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 32px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.site-footer strong {
  color: #fffaf0;
}

.site-footer a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.78;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-sponsor {
    width: 100%;
    min-width: 0;
  }

  .topnav {
    justify-content: flex-start;
  }

  .intro-band,
  .tool-grid,
  .split-section,
  .kids-hero {
    grid-template-columns: 1fr;
  }

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

  .scripture-card {
    min-height: 180px;
  }
}

@media (max-width: 640px) {
  .topbar,
  main,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .intro-copy {
    padding: 24px;
  }

  .input-row,
  .two-col,
  .kids-story-grid {
    grid-template-columns: 1fr;
  }

  .kids-hero {
    padding: 18px;
  }

  .kids-stage {
    min-height: 160px;
  }

  .story-actions {
    grid-template-columns: 1fr;
  }

  .topnav a {
    padding: 8px 9px;
  }

  .panel-heading,
  .results-header,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .sponsor-strip {
    display: flex;
    width: 100%;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn,
  .chip {
    width: 100%;
  }
}
