:root {
  --green: #1EDA76;
  --dark-teal: #002828;
  --turquoise: #1EDA76;
  --pale: #C8DCDC;
  --white: #FFFFFF;
  --dark-bg: #00141E;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-soft: #F6F9F9;
  --text: #002828;
  --muted: #587071;
  --border: #D9E4E4;
  --ad-bg: #F6F9F9;
  --ad-text: #7F999A;
  --footer-text: #002828;
  --button-radius: 10px;
  --card-radius: 14px;
}

html[data-theme="dark"] {
  --bg: #00141E;
  --surface: #00141E;
  --surface-soft: #08252D;
  --text: #FFFFFF;
  --muted: #AFC3C4;
  --border: #24434A;
  --ad-bg: #08252D;
  --ad-text: #789498;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  height: 78px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--green);
  background: var(--bg);
}
.brand img { width: 177px; height: auto; }
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.theme-toggle svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme-toggle:focus-visible,
.button:focus-visible,
.text-button:focus-visible,
.floating-camera:focus-visible,
a:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }

.app-frame {
  min-height: calc(100vh - 78px);
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) 196px;
  gap: clamp(36px, 6vw, 110px);
  padding: 44px 0 36px;
  position: relative;
}
.sponsor-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
}
.sponsor-box {
  border: 1px solid var(--border);
  background: var(--ad-bg);
  color: var(--ad-text);
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
}
.sponsor-box span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.sponsor-small { height: 132px; }
.sponsor-tall { height: 370px; }
.mobile-ad { display: none; }

.workspace {
  width: min(920px, 100%);
  justify-self: center;
  min-width: 0;
  padding-top: 0;
}
.view { width: 100%; }
.hidden { display: none !important; }
.intro { max-width: 640px; }
.steps-line {
  margin: 0 0 10px;
  font-size: clamp(20px, 1.35vw, 23px);
  line-height: 1.25;
  font-weight: 500;
  color: var(--text);
}
h1, h2 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: .94;
}
h1 { font-size: clamp(56px, 4.4vw, 76px); }
h2 { font-size: clamp(46px, 4vw, 68px); }
.subcopy {
  max-width: 610px;
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
.upload-actions {
  display: flex;
  gap: 12px;
  margin-top: 31px;
}
.button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--button-radius);
  border: 1px solid transparent;
  font-weight: 750;
  font-size: 15px;
  cursor: pointer;
  transition: transform .16s ease, opacity .16s ease, background-color .16s ease, border-color .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .38; }
.button-primary { background: var(--green); color: var(--dark-teal); }
.button-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button-compact { min-width: 144px; }
.text-button {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.text-button:disabled { opacity: .25; cursor: default; }
.counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  min-height: 44px;
}
.counter-row strong {
  font-size: 13px;
  letter-spacing: .02em;
}
.preview-pair {
  margin-top: 18px;
  min-height: 116px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.preview-card {
  position: relative;
  display: inline-block;
  max-width: 46%;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}
.preview-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 215px;
  object-fit: contain;
}
.preview-number {
  position: absolute;
  left: 9px;
  top: 9px;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--dark-teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.start-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
}
.status-message { margin: 0; font-size: 14px; color: var(--muted); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.compare-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.duel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  min-height: 430px;
}
.picture-choice {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  min-width: 0;
  max-width: calc(50% - 10px);
  transition: opacity .34s ease, filter .34s ease;
}
.image-wrap,
.winner-card {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: var(--card-radius);
  box-shadow: inset 0 0 34px rgba(0, 40, 40, .18), 0 10px 28px rgba(0, 40, 40, .08);
  background: var(--surface-soft);
}
.image-wrap::after,
.winner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 34px rgba(0, 20, 30, .20);
}
.picture-choice img {
  width: auto;
  height: auto;
  max-width: min(100%, 430px);
  max-height: 470px;
  object-fit: contain;
}
.choice-caption {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 750;
  text-align: left;
}
.picture-choice.is-winner { transform: none; }
.picture-choice.is-loser {
  opacity: .16;
  filter: saturate(.15) brightness(.46);
}
.picture-choice.is-loser .image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 40, .72);
  z-index: 2;
}
.compare-note { margin: 19px 0 0; text-align: center; color: var(--muted); font-size: 14px; }

.result-view { text-align: left; }
.result-copy { margin-bottom: 24px; }
.result-layout {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.winner-card {
  max-width: min(650px, 100%);
}
.winner-card img { width: auto; max-width: 100%; max-height: 500px; }
.analysis-panel { min-width: 0; max-width: 500px; }
.analysis-kicker {
  margin: 0 0 8px;
  color: var(--turquoise);
  font-size: 14px;
  font-weight: 800;
}
.analysis-panel h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1;
  letter-spacing: -.035em;
}
.score-line {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}
.analysis-text {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--border);
}
.metric {
  min-height: 72px;
  padding: 13px 15px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric span { color: var(--muted); font-size: 13px; font-weight: 650; }
.metric strong { color: var(--text); font-size: 22px; line-height: 1; }
.analysis-method {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.result-actions { display: flex; gap: 12px; margin-top: 26px; }

.floating-camera { display: none; }

.site-footer {
  background: var(--green);
  color: var(--footer-text);
  padding: 44px 42px 38px;
}
.footer-inner {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  align-items: center;
}
.footer-brand img { width: 166px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 26px;
  font-size: 15px;
  font-weight: 700;
}
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.coffee-placeholder { cursor: default; }
.copyright { grid-column: 1 / -1; margin: 8px 0 0; font-size: 13px; }

/* Internal pages */
.info-main {
  min-height: calc(100vh - 78px);
  padding: 72px 24px 90px;
}
.info-wrap { width: min(880px, 100%); margin: 0 auto; }
.info-kicker { font-size: 18px; margin: 0 0 12px; font-weight: 650; }
.info-wrap h1 { font-size: clamp(52px, 7vw, 84px); }
.info-body { margin-top: 40px; font-size: 17px; line-height: 1.72; color: var(--muted); }
.info-body h2 { margin: 42px 0 12px; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; }
.info-body p { margin: 0 0 20px; }
.info-body a { color: var(--turquoise); font-weight: 700; }
.info-body ul { padding-left: 22px; }
.creator-note {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}
.back-link { display: inline-block; margin-top: 34px; font-weight: 750; text-decoration: none; }

@media (max-width: 1180px) {
  .app-frame {
    grid-template-columns: 150px minmax(0, 1fr) 150px;
    gap: 28px;
    width: min(1120px, calc(100% - 32px));
  }
  .sponsor-small { height: 112px; }
  .sponsor-tall { height: 330px; }
  h1 { font-size: clamp(50px, 5.4vw, 68px); }
}

@media (max-width: 820px) {
  .site-header { height: 68px; padding: 0 18px; }
  .brand img { width: 148px; }
  .theme-toggle { width: 40px; height: 40px; }
  .app-frame {
    min-height: calc(100vh - 68px);
    display: block;
    width: 100%;
    padding: 18px 18px 84px;
  }
  .sponsor-rail { display: none; }
  .workspace { width: 100%; padding: 0; }
  .mobile-ad {
    display: grid;
    width: 100%;
    height: 72px;
    border-radius: 12px;
    margin-bottom: 24px;
  }
  .mobile-ad-bottom { margin: 28px 0 0; }
  .steps-line { font-size: 19px; }
  h1 { font-size: clamp(45px, 13vw, 64px); }
  h2 { font-size: clamp(42px, 12vw, 58px); }
  .subcopy { margin-top: 16px; font-size: 15px; }
  .upload-actions { margin-top: 24px; }
  .button { min-height: 48px; }
  .counter-row { margin-top: 12px; }
  .preview-pair { min-height: 104px; gap: 10px; }
  .preview-card { max-width: calc(50% - 5px); }
  .preview-card img { max-height: 210px; }
  .start-row { margin-top: 14px; align-items: flex-end; }
  .duel {
    min-height: 330px;
    gap: 10px;
    align-items: center;
  }
  .picture-choice { max-width: calc(50% - 5px); }
  .picture-choice img { max-width: 100%; max-height: 390px; }
  .choice-caption { font-size: 14px; margin-top: 9px; }
  .compare-heading { margin-bottom: 20px; align-items: center; }
  .result-layout { grid-template-columns: 1fr; gap: 24px; }
  .winner-card { max-width: min(520px, 100%); }
  .analysis-panel { max-width: none; }
  .floating-camera {
    display: grid;
    place-items: center;
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: var(--green);
    color: var(--dark-teal);
    box-shadow: 0 10px 26px rgba(0, 40, 40, .18);
    cursor: pointer;
    z-index: 4;
  }
  .floating-camera svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .site-footer { padding: 36px 20px 32px; }
  .footer-inner { display: block; }
  .footer-brand img { width: 150px; }
  .footer-nav { justify-content: flex-start; margin-top: 24px; gap: 14px 22px; }
  .copyright { margin-top: 28px; }
  .info-main { min-height: calc(100vh - 68px); padding: 54px 20px 70px; }
}

@media (max-width: 420px) {
  .site-header { padding: 0 14px; }
  .app-frame { padding: 16px 14px 80px; }
  .mobile-ad { height: 62px; margin-bottom: 20px; }
  .steps-line { font-size: 18px; }
  h1 { font-size: 45px; }
  .subcopy { line-height: 1.48; }
  .start-row { gap: 10px; }
  .status-message { max-width: 145px; font-size: 13px; }
  .button-compact { min-width: 132px; padding-inline: 15px; }
  .duel { min-height: 290px; }
  .picture-choice img { max-height: 330px; }
  .compare-note { margin-top: 14px; }
  .metric { min-height: 68px; padding: 12px; }
}


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

/* Pichoose v4 refinements */
.site-header {
  padding: 0 24px;
}
.header-inner {
  width: min(1400px, 100%);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.theme-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green);
}
.theme-toggle svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  stroke-width: 1.25;
}
.theme-toggle:hover { opacity: .76; }
.app-frame { width: min(1400px, calc(100% - 48px)); }

.preview-pair {
  align-items: center;
  justify-content: flex-start;
}
.preview-vs {
  flex: 0 0 auto;
  min-width: 48px;
  text-align: center;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--green);
}

.duel {
  position: relative;
  gap: clamp(24px, 4vw, 54px);
}
.vs-badge {
  flex: 0 0 auto;
  width: clamp(48px, 5vw, 72px);
  height: clamp(48px, 5vw, 72px);
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: clamp(26px, 2.7vw, 42px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.07em;
  transform: rotate(-4deg);
  user-select: none;
}
.picture-choice { max-width: calc(50% - 42px); }

.score-block {
  margin-top: 17px;
  display: flex;
  align-items: baseline;
  gap: 13px;
  color: var(--green);
}
.score-block span {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}
.score-block strong {
  font-size: clamp(46px, 4.2vw, 68px);
  line-height: .9;
  font-weight: 900;
  letter-spacing: -.055em;
  color: var(--green);
}
.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pictag-promo {
  margin-top: 20px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface-soft);
}
.pictag-promo strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}
.pictag-promo p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.pictag-link {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-teal);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
html[data-theme="dark"] .pictag-link {
  background: var(--green);
  color: var(--dark-teal);
}

.footer-brand img { width: 166px; }

@media (max-width: 820px) {
  .site-header { padding: 0 18px; }
  .header-inner { width: 100%; }
  .theme-toggle,
  .theme-toggle svg { width: 42px; height: 42px; }
  .preview-vs { min-width: 32px; font-size: 19px; }
  .preview-pair { gap: 8px; }
  .duel { gap: 8px; min-height: 310px; }
  .vs-badge {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }
  .picture-choice { max-width: calc(50% - 26px); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-block strong { font-size: 54px; }
  .pictag-promo {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .site-header { padding: 0 14px; }
  .duel { gap: 6px; min-height: 270px; }
  .vs-badge { width: 30px; height: 30px; font-size: 18px; }
  .picture-choice { max-width: calc(50% - 21px); }
  .choice-caption { font-size: 12px; }
}

@media (max-width: 340px) {
  .metric-grid { grid-template-columns: 1fr; }
}


/* Desktop v4.1 deployment fidelity: keep the original three-column composition stable. */
@media (min-width: 821px) {
  .sponsor-rail-left { grid-column: 1; }
  .workspace { grid-column: 2; }
  .sponsor-rail-right { grid-column: 3; }
}
/* User-supplied theme glyph: 32px visual inside the original v4.1 42px control footprint. */
.theme-toggle { width:42px; height:42px; display:grid; place-items:center; }
.theme-toggle img { width:32px; height:32px; max-width:none; }


/* Pichoose v8 requested refinements */
.site-header { border-bottom-color: var(--green); }
.header-inner,
.footer-inner { width: min(1400px, 100%); }
.app-frame { width: min(1400px, calc(100% - 48px)); }
.header-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.theme-toggle { background:transparent !important; border:0 !important; border-radius:0 !important; padding:0 !important; }
.theme-toggle img { display:block; width:32px !important; height:32px !important; object-fit:contain; }
.info-body a { color:var(--green); }
.back-arrow { width:44px; height:44px; display:inline-grid; place-items:center; color:var(--green); border:1px solid var(--green); border-radius:10px; }
.back-arrow svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.pictag-link.pictag-brand-button { min-height:0; padding:0; border:0; background:transparent !important; border-radius:10px; overflow:hidden; }
.pictag-brand-button img { width:210px; height:auto; max-width:100%; }
@media (max-width: 1450px) and (min-width: 821px) {
  .app-frame { gap:clamp(26px,3.1vw,44px); grid-template-columns:180px minmax(0,1fr) 180px; }
}


/* Pichoose v9 — authoritative desktop mockup alignment */
@media (min-width: 821px) {
  html, body { min-height: 100%; }
  body { min-height: 100vh; display: flex; flex-direction: column; }

  .site-header {
    flex: 0 0 78px;
    height: 78px;
    min-height: 78px;
    padding: 0 24px;
    border-bottom: 1px solid var(--green);
  }
  .header-inner {
    width: min(1200px, calc(100% - 48px));
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
  }
  .brand img { width: 177px; height: auto; }
  html[data-theme="dark"] .site-header .brand img { filter: brightness(0) invert(1); }
  .header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0; }
  .theme-toggle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: block !important;
    line-height: 0;
  }
  .theme-toggle img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain;
  }

  .app-frame {
    flex: 1 0 auto;
    min-height: 0;
    width: min(1200px, calc(100% - 48px));
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    padding: 50px 0 36px;
    position: relative;
  }
  .workspace {
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-self: auto;
    padding: 0;
  }
  .upload-view { width: 720px; max-width: 100%; }
  .intro { width: 700px; max-width: 100%; }
  .steps-line { margin-bottom: 42px; font-size: 22px; line-height: 1.2; }
  .upload-view .intro .steps-line { margin-bottom: 44px; }
  .upload-view h1 {
    font-size: 68px;
    line-height: .91;
    letter-spacing: -.055em;
  }
  .subcopy {
    width: 680px;
    max-width: 100%;
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.55;
  }
  .upload-actions { margin-top: 39px; }
  .counter-row {
    width: 260px;
    margin-top: 18px;
    min-height: 44px;
  }
  .preview-pair {
    width: 720px;
    min-height: 116px;
    margin-top: 10px;
    justify-content: flex-start;
  }
  .start-row {
    width: 720px;
    justify-content: flex-start;
    margin-top: 12px;
  }
  .status-message { display: none; }
  .button-compact { min-width: 144px; }

  /* Ad rails live in the outer margins and never affect the 1200px product grid. */
  .sponsor-rail {
    display: none;
    position: absolute;
    top: 50px;
    width: 220px;
    gap: 14px;
    z-index: 1;
  }
  .sponsor-rail.is-live { display: flex; }
  .sponsor-rail-left { right: calc(100% + 34px); left: auto; }
  .sponsor-rail-right { left: calc(100% + 34px); right: auto; }
  .sponsor-box { display: none; width: 100%; }
  .sponsor-box.is-live { display: block; }
  .sponsor-box.is-live ins { width: 100%; height: 100%; }
  @media (max-width: 1759px) {
    .sponsor-rail.is-live { display: none; }
  }

  .compare-view,
  .result-view { width: 100%; }
  .compare-heading { width: 100%; }
  .duel { width: 100%; }
  .result-layout { width: 100%; }

  .site-footer {
    flex: 0 0 164px;
    min-height: 164px;
    height: 164px;
    padding: 26px 24px 22px;
  }
  .footer-inner {
    width: min(1200px, calc(100% - 48px));
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 48px;
    row-gap: 4px;
    align-content: start;
    align-items: center;
  }
  .footer-brand { align-self: start; }
  .footer-brand img { width: 166px; height: auto; }
  .footer-nav { align-self: center; gap: 10px 26px; }
  .copyright { grid-column: 1; margin: 2px 0 0; align-self: start; }

  /* Internal pages share the same 1200px desktop alignment. */
  .info-main {
    flex: 1 0 auto;
    min-height: 0;
    width: min(1200px, calc(100% - 48px));
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0 90px;
  }
  .info-wrap { width: 100%; max-width: none; margin: 0; }
  .info-body { width: min(880px, 100%); }
  .info-body a,
  .back-link { color: var(--green); }
}

/* All Pichoose links/accent links use the primary green. */
.info-body a,
.analysis-kicker { color: var(--green); }


/* Pichoose v10 — interaction, footer-fold and copy refinements */
.button {
  min-height: 52px;
  padding-inline: 24px;
  font-size: 16px;
  transition: background-color .16s ease, border-color .16s ease, opacity .16s ease;
}
.button:hover:not(:disabled) {
  transform: none;
  background: #00F576;
  border-color: #00F576;
  color: var(--dark-teal);
}
.button-primary:hover:not(:disabled),
.button-secondary:hover:not(:disabled) {
  background: #00F576;
  border-color: #00F576;
  color: var(--dark-teal);
}
.subcopy {
  font-size: 17px;
  line-height: 1.55;
}
.subcopy span { display: block; }
.counter-row strong { font-size: 14px; }
.upload-actions {
  align-items: center;
  gap: 14px;
}
.start-row { display: none; }
.button-compact { min-width: 150px; }

/* Back controls are icon-only with a 32px arrow and no visible container outline. */
.back-arrow {
  width: 44px;
  height: 44px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0;
}
.back-arrow svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.8;
}

/* About creator block no longer draws a separator. */
.creator-note {
  border-top: 0;
  padding-top: 0;
}

/* The Buy Me a Coffee script is intentionally left completely unpositioned by Pichoose. */

@media (min-width: 821px) and (max-width: 1920px) {
  /* Keep the footer below the initial viewport; users scroll to it. */
  .app-frame {
    flex: 0 0 auto;
    min-height: calc(100vh - 78px);
  }
  .info-main {
    flex: 0 0 auto;
    min-height: calc(100vh - 78px);
  }
}


/* Pichoose v11 — cleaner result screen from 2026-09-04 result mockup */
@media (min-width: 761px) {
  .result-view {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
    gap: 58px;
    align-items: start;
    width: 100%;
    text-align: left;
  }
  .result-left { min-width: 0; }
  .result-copy { margin: 0; }
  .result-copy .steps-line { margin: 0 0 12px; font-size: 22px; }
  .result-copy h2 {
    margin: 0;
    font-size: 68px;
    line-height: .92;
    letter-spacing: -.055em;
  }
  .result-left .winner-card {
    width: min(100%, 540px);
    max-width: 540px;
    margin-top: 162px;
  }
  .result-left .winner-card img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 430px;
    object-fit: contain;
    border-radius: 12px;
  }
  .result-view > .analysis-panel {
    width: 100%;
    max-width: 500px;
    padding-top: 124px;
    margin: 0;
  }
  .result-view .analysis-kicker {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 14px;
    font-weight: 850;
  }
  .result-view .analysis-panel h3 {
    margin: 0;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -.04em;
  }
  .result-view .score-block { margin-top: 31px; }
  .result-view .metric-grid { margin-top: 17px; }
  .result-view .pictag-promo { margin-top: 16px; }
  .result-view .result-actions { margin-top: 26px; }
  .result-view .pictag-brand-button img {
    display: block;
    width: 100%;
    height: auto;
  }
  .result-view .pictag-brand-button {
    width: min(198px, 46%);
    flex: 0 0 auto;
  }
}

/* Pichoose v12 — restore result heading to the winner/image column */
@media (min-width: 761px) {
  .result-left .result-why {
    margin-top: 28px;
  }
  .result-left .result-why .analysis-kicker {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 14px;
    font-weight: 850;
  }
  .result-left .result-why h3 {
    margin: 0;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -.04em;
  }
  .result-left .winner-card {
    margin-top: 74px;
  }
  .result-view > .analysis-panel {
    padding-top: 214px;
  }
}


/* Pichoose v13 — no 3D parallax on desktop. */
.picture-choice,
.picture-choice.is-winner,
.winner-card {
  transform: none !important;
  transform-style: flat !important;
}


/* Pichoose v14 — fixed media frames, strict result alignment, ads hidden */
:root { --media-frame:#F1F4F4; }
html[data-theme="dark"] { --media-frame:#0B2730; }

.sponsor-rail,
.sponsor-box,
.mobile-ad,
.ad-slot { display:none !important; }

.preview-card,
.image-wrap,
.winner-card {
  background:var(--media-frame) !important;
  box-shadow:none !important;
  border:0 !important;
}
.preview-card::after,
.image-wrap::after,
.winner-card::after { display:none !important; }

@media (min-width:821px) {
  .preview-card {
    width:300px;
    height:190px;
    max-width:300px;
    flex:0 0 300px;
  }
  .preview-card img {
    width:100%;
    height:100%;
    max-width:none;
    max-height:none;
    object-fit:contain;
    background:var(--media-frame);
  }

  .picture-choice {
    width:470px;
    max-width:470px;
    flex:0 0 470px;
  }
  .image-wrap {
    width:470px;
    height:340px;
    display:block;
  }
  .picture-choice img {
    width:100%;
    height:100%;
    max-width:none;
    max-height:none;
    object-fit:contain;
    background:var(--media-frame);
  }

  .result-view {
    display:grid !important;
    grid-template-columns:540px 500px !important;
    grid-template-rows:auto 400px !important;
    column-gap:110px !important;
    row-gap:68px !important;
    align-items:start !important;
    justify-content:start !important;
    width:1150px !important;
    max-width:100% !important;
  }
  .result-left-head {
    grid-column:1;
    grid-row:1;
    min-width:0;
  }
  .result-copy { margin:0 !important; }
  .result-copy .steps-line { margin:0 0 12px !important; }
  .result-left-head .result-why { margin-top:28px !important; }
  .result-left-head .result-why .analysis-kicker {
    margin:0 0 10px !important;
    color:var(--green) !important;
    font-size:14px !important;
    font-weight:850 !important;
  }
  .result-left-head .result-why h3 {
    margin:0 !important;
    font-size:38px !important;
    line-height:1 !important;
    letter-spacing:-.04em !important;
  }
  .result-view > .winner-card {
    grid-column:1;
    grid-row:2;
    width:540px !important;
    height:400px !important;
    max-width:540px !important;
    max-height:400px !important;
    margin:0 !important;
    border-radius:12px !important;
    overflow:hidden !important;
  }
  .result-view > .winner-card img {
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    max-height:none !important;
    object-fit:contain !important;
    background:var(--media-frame) !important;
    border-radius:0 !important;
  }
  .result-view > .analysis-panel {
    grid-column:2;
    grid-row:2;
    width:500px !important;
    max-width:500px !important;
    padding:0 !important;
    margin:0 !important;
    align-self:start !important;
  }
  .result-view .score-block { margin:0 0 17px !important; }
  .result-view .metric-grid { margin:0 !important; }
  .result-view .pictag-promo { margin-top:16px !important; }
  .result-view .result-actions { margin-top:26px !important; }

  .pictag-link.pictag-brand-button {
    border-radius:0 !important;
    overflow:visible !important;
    background:transparent !important;
  }
  .pictag-brand-button img {
    border-radius:0 !important;
    clip-path:none !important;
  }
}


/* Pichoose v15 — alignment corrections, hidden-state fix, centered VS */
.view.hidden { display:none !important; }
.preview-pair { align-items:center !important; }
.preview-vs,
.vs-badge { align-self:center !important; justify-self:center !important; }

@media (min-width:821px) {
  .result-view {
    grid-template-rows:auto 400px !important;
    row-gap:52px !important;
  }
  .result-view > .winner-card,
  .result-view > .analysis-panel {
    align-self:start !important;
  }
  .result-view > .analysis-panel {
    height:400px !important;
    min-height:400px !important;
    max-height:400px !important;
    display:flex !important;
    flex-direction:column !important;
  }
  .result-view .score-block {
    margin:0 !important;
    min-height:56px !important;
    align-items:flex-start !important;
  }
  .result-view .score-block span { padding-top:13px; }
  .result-view .score-block strong { line-height:.82 !important; }
  .result-view .metric-grid { margin:14px 0 0 !important; }
  .result-view .pictag-promo { margin-top:14px !important; }
  .result-view .result-actions {
    margin-top:auto !important;
    flex:0 0 auto !important;
  }
  .result-view .result-actions .button { min-height:52px !important; }
  .duel { align-items:center !important; }
}
