@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;600;700;800&display=swap');

:root {
  --paper: #F1EFE8;
  --ink: #111111;
  --accent: #FF4D24;
  --acid: #DFFF37;
  --line: rgba(17,17,17,.22);
  --muted: rgba(17,17,17,.58);
  --pad: clamp(20px, 3.4vw, 56px);
  --radius: 999px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

html { background: var(--paper); }

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(255,77,36,.08), transparent 24rem),
    radial-gradient(circle at 90% 85%, rgba(223,255,55,.14), transparent 26rem),
    var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  overflow-x: hidden;
}

button, a { font: inherit; }

button { color: inherit; }

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  z-index: 30;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--pad);
  position: relative;
}

.topbar,
.footer,
.result-meta {
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .045em;
  font-size: clamp(10px, .9vw, 13px);
}

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}

.brand {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-dot { color: var(--accent); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  transition: background .3s ease, transform .3s ease;
}

.status.is-ok .status-dot {
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(223,255,55,.25);
}

.screen {
  width: 100%;
  min-height: 0;
  position: relative;
}

.screen-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 34vw);
  align-items: end;
  gap: clamp(28px, 5vw, 84px);
  padding: clamp(50px, 8vh, 100px) 0 clamp(36px, 6vh, 72px);
}

.eyebrow {
  position: absolute;
  top: clamp(24px, 3vh, 40px);
  left: 0;
  font-family: "DM Mono", monospace;
  font-size: clamp(10px, .85vw, 12px);
  letter-spacing: .08em;
}

.home-title {
  margin: 0;
  font-size: clamp(64px, 10.7vw, 184px);
  line-height: .78;
  letter-spacing: -.078em;
  font-weight: 800;
  max-width: 8ch;
  text-transform: uppercase;
}

.home-title-accent {
  color: var(--accent);
  display: inline-block;
  position: relative;
}

.home-title-accent::after {
  content: "";
  position: absolute;
  left: .06em;
  right: -.08em;
  bottom: .06em;
  height: .07em;
  background: var(--ink);
  transform: rotate(-1.6deg);
}

.action-zone {
  align-self: center;
  justify-self: end;
  width: min(100%, 430px);
}

.ok-button {
  width: min(100%, 410px);
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  padding: 40px;
  box-shadow: 12px 12px 0 var(--ink);
  transition:
    transform .22s cubic-bezier(.2,.8,.2,1),
    box-shadow .22s cubic-bezier(.2,.8,.2,1),
    background .22s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ok-button:hover {
  transform: translate(-4px, -4px) rotate(-1.2deg);
  box-shadow: 18px 18px 0 var(--ink);
  background: var(--acid);
}

.ok-button:active {
  transform: translate(8px, 8px) scale(.985);
  box-shadow: 4px 4px 0 var(--ink);
}

.ok-button-label {
  font-size: clamp(30px, 4.2vw, 68px);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.065em;
  text-align: center;
  max-width: 5ch;
}

.ok-button-arrow {
  position: absolute;
  right: 17%;
  bottom: 15%;
  font-size: clamp(28px, 4vw, 52px);
  transition: transform .22s ease;
}

.ok-button:hover .ok-button-arrow {
  transform: translate(8px, 8px);
}

.microcopy {
  margin: 28px 0 0;
  max-width: 30ch;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  line-height: 1.55;
  text-transform: uppercase;
}

/* Result */

.screen-result {
  padding: clamp(34px, 5vh, 60px) 0 clamp(30px, 5vh, 58px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.quote-wrap {
  display: grid;
  align-content: center;
  padding: clamp(40px, 7vh, 90px) 0;
  position: relative;
}

.quote {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(54px, 8.2vw, 140px);
  line-height: .91;
  letter-spacing: -.066em;
  font-weight: 800;
  text-wrap: balance;
  position: relative;
  z-index: 2;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: clamp(90px, 14vw, 230px);
  line-height: .5;
  color: var(--accent);
  position: absolute;
  left: -.03em;
  top: 17%;
  opacity: .98;
  transform: rotate(-7deg);
}

.quote-mark-end {
  left: auto;
  right: 0;
  top: auto;
  bottom: 11%;
  color: var(--acid);
  -webkit-text-stroke: 1px var(--ink);
}

.result-footer {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  gap: 30px;
  align-items: flex-end;
  justify-content: space-between;
}

.confirmation {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -.03em;
}

.fix-count {
  margin-top: 7px;
  font-family: "DM Mono", monospace;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .06em;
}

.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.text-action {
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 12px 17px;
  min-width: 92px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: .05em;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.text-action:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.text-action span { margin-left: 7px; }

/* footer */

.footer {
  min-height: 64px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  color: var(--muted);
}

.footer-note { text-align: center; }

.footer #localTime { text-align: right; }

.coffee-link {
  justify-self: center;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}

.coffee-link strong {
  color: var(--ink);
  font-weight: 500;
}

.coffee-link:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.coffee-link:hover strong { color: var(--accent); }

/* processing */

.processing {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  padding: var(--pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.processing.is-active {
  opacity: 1;
  visibility: visible;
}

.processing-inner {
  width: min(920px, 100%);
}

.processing-label,
.processing-percentage {
  font-family: "DM Mono", monospace;
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: .08em;
}

.processing-message {
  margin: clamp(30px, 5vh, 70px) 0;
  max-width: 14ch;
  font-weight: 800;
  font-size: clamp(42px, 7vw, 104px);
  line-height: .9;
  letter-spacing: -.06em;
  text-transform: uppercase;
}

.processing-track {
  width: 100%;
  height: 12px;
  border: 1px solid rgba(241,239,232,.5);
}

.processing-bar {
  width: 0;
  height: 100%;
  background: var(--acid);
}

.processing-percentage {
  margin-top: 12px;
  text-align: right;
}

/* toast */

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 18px);
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(241,239,232,.2);
  padding: 11px 15px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

[hidden] { display: none !important; }

.reveal {
  animation: reveal .62s cubic-bezier(.16,1,.3,1) both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(38px) rotate(.25deg); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .screen-home {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 64px;
  }

  .home-title {
    font-size: clamp(66px, 20vw, 128px);
  }

  .action-zone {
    width: 100%;
    justify-self: stretch;
    display: grid;
    justify-items: center;
  }

  .ok-button {
    width: min(82vw, 390px);
  }

  .microcopy { text-align: center; }

  .quote {
    font-size: clamp(48px, 15vw, 100px);
  }

  .result-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .text-action {
    flex: 1 1 28%;
  }

  .footer {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
    padding: 12px 0;
  }

  .coffee-link {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
  }

  .footer > span:first-child {
    grid-column: 1;
    grid-row: 2;
  }

  .footer #localTime {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 520px) {
  :root { --pad: 17px; }

  .topbar { min-height: 62px; }

  .home-title {
    font-size: clamp(59px, 19.4vw, 94px);
  }

  .screen-home {
    gap: 32px;
    padding-bottom: 28px;
  }

  .eyebrow { top: 17px; }

  .ok-button {
    width: min(78vw, 330px);
    box-shadow: 8px 8px 0 var(--ink);
  }

  .ok-button-label {
    font-size: clamp(31px, 12vw, 50px);
  }

  .quote-wrap {
    padding: 32px 0;
  }

  .quote {
    font-size: clamp(44px, 14.5vw, 72px);
  }

  .result-meta {
    gap: 12px;
    flex-direction: column;
  }

  .result-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .text-action {
    min-width: 0;
    padding-inline: 8px;
  }

  .footer {
    min-height: 56px;
  }
}

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


/* ===============================================================
   V7 — GLOBAL OK / ARTIFACT SYSTEM
   Existing visual system above is intentionally preserved.
   =============================================================== */

.global-count-line {
  display: block;
  margin-top: 12px;
  color: var(--ink);
}

.global-count-line strong {
  color: var(--accent);
  font-weight: 500;
}

.ok-button.is-holding {
  transform: translate(3px, 3px) scale(.99);
  box-shadow: 7px 7px 0 var(--ink);
}

.ok-button.is-deep-hold {
  background: var(--acid);
  transform: translate(7px, 7px) scale(.975);
  box-shadow: 3px 3px 0 var(--ink);
}

.result-meta {
  gap: 20px;
}

.result-meta > span:nth-child(2) {
  margin-left: auto;
}

.fingerprint {
  position: absolute;
  top: clamp(28px, 4vh, 54px);
  right: 1%;
  width: clamp(92px, 11vw, 150px);
  color: var(--ink);
  opacity: .88;
  z-index: 1;
}

.fingerprint svg,
.gift-fingerprint svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.quote {
  padding-right: min(10vw, 150px);
}

.quote-long {
  font-size: clamp(44px, 6.4vw, 108px);
  max-width: 17ch;
}

.quote-very-long {
  font-size: clamp(34px, 4.7vw, 78px);
  line-height: .98;
  max-width: 21ch;
}

.artifact-meta {
  margin-top: 6px;
  font-family: "DM Mono", monospace;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .055em;
}

.result-controls {
  display: grid;
  justify-items: end;
  gap: 10px;
  max-width: min(100%, 590px);
}

.gift-action {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 13px 18px;
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: .055em;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.gift-action:hover {
  background: var(--acid);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--ink);
}

.gift-action span {
  float: right;
}

/* Gift transfer dialog */

.gift-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: var(--pad);
}

.gift-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,.84);
  backdrop-filter: blur(4px);
}

.gift-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 14px 14px 0 var(--accent);
  padding: clamp(25px, 4vw, 48px);
}

.gift-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.gift-kicker,
.gift-code,
.gift-note {
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.gift-kicker {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 18px;
}

.gift-card h3 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(42px, 6.5vw, 84px);
  line-height: .88;
  letter-spacing: -.06em;
}

.gift-fingerprint {
  position: absolute;
  right: clamp(28px, 5vw, 54px);
  top: clamp(85px, 12vw, 130px);
  width: 120px;
  color: var(--ink);
}

.gift-quote {
  margin: clamp(34px, 6vh, 58px) 0 22px;
  max-width: 28ch;
  font-size: clamp(22px, 3vw, 35px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 700;
}

.gift-code {
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.gift-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.gift-primary {
  flex: 1 1 auto;
  border: 1px solid var(--ink);
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 13px 18px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: .055em;
  transition: background .18s ease, transform .18s ease;
}

.gift-primary:hover {
  background: var(--acid);
  transform: translateY(-2px);
}

.gift-primary span {
  float: right;
}

.gift-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .result-controls {
    width: 100%;
    max-width: none;
    justify-items: stretch;
  }

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

  .quote {
    padding-right: 0;
  }

  .fingerprint {
    top: 14px;
    right: 0;
    width: 78px;
    opacity: .55;
  }

  .result-meta > span:nth-child(2) {
    margin-left: 0;
  }

  .gift-fingerprint {
    opacity: .38;
    width: 90px;
  }
}

@media (max-width: 520px) {
  .result-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-long {
    font-size: clamp(38px, 11vw, 58px);
  }

  .quote-very-long {
    font-size: clamp(30px, 8.7vw, 45px);
  }

  .gift-card {
    box-shadow: 8px 8px 0 var(--accent);
  }

  .gift-card h3 {
    font-size: clamp(38px, 13vw, 62px);
  }

  .gift-fingerprint {
    display: none;
  }

  .gift-actions {
    flex-direction: column;
  }
}


/* ===============================================================
   V8 — iOS SHARE + GIFT FLOW FIXES
   =============================================================== */

.text-action,
.gift-action,
.gift-primary,
.ok-button {
  -webkit-appearance: none;
  appearance: none;
  -webkit-touch-callout: none;
}

.gift-actions {
  flex-wrap: wrap;
}

.gift-actions .text-action {
  flex: 0 1 auto;
}

/* Safari/iOS can visually overemphasize tiny arrow glyphs next to URL-like
   actions. V8 removes redundant diagonal arrows from SHARE/COPY/SEND links. */
@supports (-webkit-touch-callout: none) {
  .coffee-link,
  .agency-link,
  .text-action,
  .gift-primary {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 520px) {
  .gift-actions .gift-primary,
  .gift-actions .text-action {
    width: 100%;
  }
}


/* ===============================================================
   V9 — iOS MOBILE + SHARE FIX
   =============================================================== */

/* Pure CSS arrow: avoids iOS blue emoji rendering. */
.ok-button-arrow {
  position: absolute;
  right: 17%;
  bottom: 17%;
  width: clamp(28px, 5vw, 48px);
  height: clamp(28px, 5vw, 48px);
  font-size: 0 !important;
}

.ok-button-arrow::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 4px;
  left: 8%;
  top: 46%;
  background: var(--ink);
  transform: rotate(45deg);
  transform-origin: center;
  border-radius: 1px;
}

.ok-button-arrow::after {
  content: "";
  position: absolute;
  width: 38%;
  height: 38%;
  right: 5%;
  bottom: 5%;
  border-right: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}

.ok-button:hover .ok-button-arrow {
  transform: translate(6px, 6px);
}

/* Reliable share chooser with native + WhatsApp + copy routes. */
.share-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: var(--pad);
}

.share-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,.84);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.share-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  padding: clamp(26px, 4vw, 46px);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--accent);
}

.share-close {
  position: absolute;
  top: 13px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
}

.share-kicker,
.share-note {
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.share-kicker {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 18px;
}

.share-card h3 {
  margin: 0 0 28px;
  max-width: 9ch;
  font-size: clamp(42px, 6.5vw, 76px);
  line-height: .89;
  letter-spacing: -.06em;
}

.share-options {
  display: grid;
  gap: 9px;
}

.share-option {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 13px 18px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: .055em;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.share-option-primary {
  background: var(--accent);
}

.share-option:hover {
  background: var(--ink);
  color: var(--paper);
}

.share-option-primary:hover {
  background: var(--acid);
  color: var(--ink);
}

.css-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.share-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

/* Prevent the hero word EVERYTHING from clipping on phones. */
@media (max-width: 820px) {
  .screen-home {
    overflow: hidden;
  }

  .home-title {
    width: 100%;
    max-width: none;
    font-size: clamp(58px, 16.2vw, 104px);
    line-height: .82;
    letter-spacing: -.074em;
  }
}

@media (max-width: 520px) {
  .home-title {
    font-size: clamp(50px, 15.3vw, 75px);
    letter-spacing: -.069em;
  }

  .screen-home {
    padding-top: 56px;
  }

  .ok-button {
    width: min(75vw, 312px);
  }

  .share-card {
    box-shadow: 7px 7px 0 var(--accent);
  }
}

@media (max-width: 390px) {
  .home-title {
    font-size: 14.9vw;
  }

  .ok-button {
    width: min(73vw, 286px);
  }
}


/* V12 — city/country reveal */
.artifact-meta {
  max-width: 80ch;
  text-wrap: balance;
}


/* ===============================================================
   V13 — LIVE OK SYSTEM STATS
   Quiet, real data. No fake movement, no exposed hold instructions.
   =============================================================== */

.live-stats {
  width: min(520px, 100%);
  margin-top: 20px;
  border-top: 1px solid rgba(17, 17, 17, .34);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 8px 0 7px;
  border-bottom: 1px solid rgba(17, 17, 17, .16);
}

.live-stat-label {
  opacity: .58;
}

.live-stat-value {
  max-width: 260px;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-stat:first-child .live-stat-value {
  color: var(--accent);
}

.live-stat-value.is-fresh {
  animation: statFresh .5s ease-out;
}

@keyframes statFresh {
  0% {
    opacity: .28;
    transform: translateY(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .live-stats {
    width: 100%;
    margin-top: 16px;
    font-size: 10px;
  }

  .live-stat {
    gap: 12px;
    padding: 7px 0 6px;
  }

  .live-stat-value {
    max-width: 54vw;
  }
}






/* ===============================================================
   V16 — VISIBLE WORLD FIELD
   Map is anchored to the whole hero, not the button container.
   It never participates in layout and cannot move the centered composition.
   =============================================================== */

.screen-home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.home-title,
.action-zone,
.eyebrow {
  position: relative;
  z-index: 3;
}

.world-field {
  position: absolute;
  z-index: 1;
  pointer-events: none;

  /* Right-side hero placement */
  right: 1.5%;
  top: 20%;
  width: min(49vw, 820px);
  aspect-ratio: 2 / 1;

  opacity: .94;
  overflow: visible;
}

.world-field-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Structural world silhouette — intentionally visible, but subordinate */
.world-structure-dot {
  fill: rgba(17,17,17,.27);
}

/* Real activity is the only green layer */
.world-ok-dot {
  fill: var(--acid);
  stroke: rgba(17,17,17,.78);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.world-ok-pulse {
  fill: none;
  stroke: var(--acid);
  stroke-width: 3.2;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  animation: worldOkPulse 2.4s ease-out 2;
}

.world-field-label,
.world-field-latest {
  position: absolute;
  z-index: 2;
  right: 0;
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 9px;
  pointer-events: none;
}

.world-field-label {
  top: -16px;
  color: rgba(17,17,17,.42);
}

.world-field-latest {
  bottom: -18px;
  color: rgba(17,17,17,.52);
  max-width: 76%;
  text-align: right;
}

@keyframes worldOkPulse {
  0% {
    opacity: .94;
    transform: scale(.45);
  }
  100% {
    opacity: 0;
    transform: scale(4.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-ok-pulse {
    animation: none;
    opacity: .55;
  }
}

/* The orange button visually sits above the map */
.ok-button,
.live-stats {
  position: relative;
  z-index: 4;
}

@media (max-width: 1100px) {
  .world-field {
    right: -4%;
    top: 24%;
    width: 55vw;
    opacity: .82;
  }
}

@media (max-width: 820px) {
  .world-field {
    right: -18%;
    top: 43%;
    width: 102vw;
    opacity: .48;
  }

  .world-structure-dot {
    fill: rgba(17,17,17,.20);
  }

  .world-field-label,
  .world-field-latest {
    display: none;
  }
}

@media (max-width: 520px) {
  .world-field {
    right: -34%;
    top: 48%;
    width: 132vw;
    opacity: .38;
  }
}


/* V17 — markup/structure repair */
@media (min-width: 1101px) {
  .world-field {
    right: 2.2%;
    top: 21%;
    width: min(45vw, 760px);
  }
}


/* ===============================================================
   V18 — DETERMINISTIC HERO LAYOUT
   Goal:
   - desktop: hero title LEFT, button/stats RIGHT, map in right background
   - mobile: stacked, centered CTA, map quieter and UX-friendly
   This block intentionally overrides earlier hero tweaks.
   =============================================================== */

.screen-home {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "title side";
  align-items: center;
  column-gap: clamp(34px, 5vw, 92px);
  row-gap: 24px;
  min-height: calc(100svh - 160px);
  padding: clamp(74px, 10vh, 110px) 0 clamp(34px, 5vh, 60px);
  isolation: isolate;
  overflow: hidden;
}

.eyebrow {
  position: absolute;
  top: 28px;
  left: 0;
  z-index: 6;
}

.home-title {
  grid-area: title;
  align-self: center;
  justify-self: start;
  position: relative;
  z-index: 5;
  margin: 0;
  max-width: 7.2ch;
  font-size: clamp(74px, 9vw, 176px);
  line-height: .80;
  letter-spacing: -.078em;
  text-wrap: balance;
}

.action-zone {
  grid-area: side;
  align-self: end;
  justify-self: end;
  position: relative;
  z-index: 6;
  width: min(100%, 430px);
  display: grid;
  justify-items: center;
}

.ok-button {
  width: min(100%, 410px);
}

.live-stats {
  width: min(100%, 420px);
  margin-top: 22px;
}

.world-field {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  right: 0;
  top: 14%;
  width: min(47vw, 760px);
  aspect-ratio: 2 / 1;
  opacity: .92;
  overflow: visible;
}

.world-field-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.world-structure-dot {
  fill: rgba(17,17,17,.23);
}

.world-ok-dot {
  fill: var(--acid);
  stroke: rgba(17,17,17,.76);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.world-ok-pulse {
  fill: none;
  stroke: var(--acid);
  stroke-width: 3.1;
  vector-effect: non-scaling-stroke;
}

.world-field-label,
.world-field-latest {
  position: absolute;
  right: 0;
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 9px;
  pointer-events: none;
  z-index: 2;
}

.world-field-label {
  top: -16px;
  color: rgba(17,17,17,.40);
}

.world-field-latest {
  bottom: -18px;
  max-width: 76%;
  text-align: right;
  color: rgba(17,17,17,.50);
}

/* Slightly tighter on medium desktop/laptop widths */
@media (max-width: 1280px) {
  .screen-home {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr);
    column-gap: clamp(26px, 4vw, 64px);
  }

  .home-title {
    font-size: clamp(72px, 8.5vw, 152px);
    max-width: 7.6ch;
  }

  .world-field {
    top: 18%;
    width: min(45vw, 680px);
    opacity: .86;
  }

  .action-zone {
    width: min(100%, 400px);
  }

  .ok-button {
    width: min(100%, 372px);
  }
}

/* Tablet: keep left/right concept, but soften map and keep CTA safe */
@media (max-width: 980px) {
  .screen-home {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    min-height: auto;
    padding-top: 86px;
  }

  .home-title {
    font-size: clamp(66px, 8vw, 124px);
    max-width: 8ch;
  }

  .action-zone {
    width: min(100%, 360px);
  }

  .ok-button {
    width: min(100%, 330px);
  }

  .world-field {
    right: -4%;
    top: 20%;
    width: min(48vw, 520px);
    opacity: .74;
  }

  .world-field-label,
  .world-field-latest {
    display: none;
  }
}

/* Mobile UX: stacked, centered CTA, map becomes quiet background only */
@media (max-width: 820px) {
  .screen-home {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "side";
    align-items: start;
    min-height: auto;
    row-gap: 26px;
    padding-top: 78px;
    padding-bottom: 28px;
  }

  .home-title {
    justify-self: start;
    align-self: start;
    max-width: 100%;
    font-size: clamp(58px, 16.2vw, 106px);
    line-height: .82;
    letter-spacing: -.073em;
  }

  .action-zone {
    justify-self: center;
    align-self: start;
    width: 100%;
    max-width: 420px;
  }

  .ok-button {
    width: min(80vw, 340px);
  }

  .live-stats {
    width: min(100%, 420px);
    margin-top: 18px;
  }

  .world-field {
    right: -16%;
    top: 34%;
    width: 108vw;
    opacity: .34;
  }

  .world-structure-dot {
    fill: rgba(17,17,17,.17);
  }
}

@media (max-width: 520px) {
  .screen-home {
    row-gap: 22px;
    padding-top: 62px;
    padding-bottom: 20px;
  }

  .eyebrow {
    top: 18px;
  }

  .home-title {
    font-size: clamp(50px, 15.3vw, 76px);
    max-width: 9ch;
  }

  .action-zone {
    max-width: 100%;
  }

  .ok-button {
    width: min(76vw, 310px);
    box-shadow: 8px 8px 0 var(--ink);
  }

  .world-field {
    right: -30%;
    top: 39%;
    width: 132vw;
    opacity: .27;
  }
}

@media (max-width: 390px) {
  .home-title {
    font-size: 14.6vw;
  }

  .ok-button {
    width: min(74vw, 290px);
  }

  .world-field {
    right: -36%;
    top: 40%;
    width: 142vw;
  }
}


/* ===============================================================
   V19 — MAP PANEL IN LEFT BLANK AREA
   Desktop:
   - Hero title on the left
   - CTA/stats on the right
   - World contour map in the lower-left blank area
   - Only real OK events appear as dots/pulses
   Mobile:
   - Title, CTA, then map panel
   - map stays readable and touch-safe
   =============================================================== */

.screen-home {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "title side"
    "map side";
  align-items: start;
  column-gap: clamp(34px, 4.5vw, 80px);
  row-gap: clamp(18px, 2.8vw, 34px);
  min-height: calc(100svh - 160px);
  padding: clamp(74px, 9vh, 108px) 0 32px;
  isolation: isolate;
  overflow: hidden;
}

.eyebrow {
  position: absolute;
  top: 28px;
  left: 0;
  z-index: 7;
}

.home-title {
  grid-area: title;
  align-self: start;
  justify-self: start;
  position: relative;
  z-index: 5;
  margin: 0;
  max-width: 7.4ch;
  font-size: clamp(76px, 9.2vw, 176px);
  line-height: .80;
  letter-spacing: -.078em;
  text-wrap: balance;
}

.action-zone {
  grid-area: side;
  align-self: center;
  justify-self: end;
  position: relative;
  z-index: 6;
  width: min(100%, 430px);
  display: grid;
  justify-items: center;
}

.ok-button {
  width: min(100%, 410px);
}

.live-stats {
  width: min(100%, 420px);
  margin-top: 22px;
}

.world-field {
  grid-area: map;
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  min-height: 250px;
  align-self: end;
  justify-self: start;
  pointer-events: none;
  padding: 20px 18px 18px;
  border-top: 1px solid rgba(17,17,17,.18);
  border-bottom: 1px solid rgba(17,17,17,.16);
  overflow: hidden;
}

.world-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 62%, rgba(198, 255, 0, .10), transparent 42%),
    linear-gradient(to right, rgba(17,17,17,.02), rgba(17,17,17,0));
  pointer-events: none;
}

.world-field-svg {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 210px;
  overflow: visible;
}

.world-contour-line {
  fill: none;
  stroke: rgba(17,17,17,.16);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.world-ok-dot {
  fill: var(--acid);
  stroke: rgba(17,17,17,.78);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.world-ok-pulse {
  fill: none;
  stroke: var(--acid);
  stroke-width: 3.1;
  vector-effect: non-scaling-stroke;
  animation: worldOkPulse 2.4s ease-out 2;
}

.world-field-label,
.world-field-latest {
  position: absolute;
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 9px;
  pointer-events: none;
  z-index: 3;
}

.world-field-label {
  top: 8px;
  right: 8px;
  color: rgba(17,17,17,.42);
}

.world-field-latest {
  right: 10px;
  bottom: 8px;
  max-width: 74%;
  text-align: right;
  color: rgba(17,17,17,.48);
}

@keyframes worldOkPulse {
  0% { opacity: .94; transform: scale(.45); }
  100% { opacity: 0; transform: scale(4.4); }
}

@media (prefers-reduced-motion: reduce) {
  .world-ok-pulse { animation: none; opacity: .55; }
}

@media (max-width: 1280px) {
  .screen-home {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    column-gap: clamp(24px, 3.6vw, 56px);
  }

  .home-title {
    font-size: clamp(72px, 8.4vw, 152px);
  }

  .world-field {
    width: min(100%, 680px);
    min-height: 228px;
  }

  .world-field-svg {
    height: 188px;
  }
}

@media (max-width: 980px) {
  .screen-home {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 350px);
    padding-top: 86px;
  }

  .home-title {
    font-size: clamp(64px, 8vw, 126px);
  }

  .action-zone {
    width: min(100%, 360px);
  }

  .ok-button {
    width: min(100%, 330px);
  }

  .world-field {
    width: min(100%, 100%);
    min-height: 210px;
    padding: 18px 14px 14px;
  }

  .world-field-svg {
    height: 172px;
  }
}

@media (max-width: 820px) {
  .screen-home {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "side"
      "map";
    row-gap: 24px;
    min-height: auto;
    padding-top: 78px;
    padding-bottom: 26px;
  }

  .home-title {
    max-width: 100%;
    font-size: clamp(58px, 16.2vw, 106px);
    line-height: .82;
    letter-spacing: -.073em;
  }

  .action-zone {
    justify-self: center;
    width: 100%;
    max-width: 420px;
  }

  .ok-button {
    width: min(80vw, 340px);
  }

  .live-stats {
    width: min(100%, 420px);
    margin-top: 18px;
  }

  .world-field {
    width: 100%;
    min-height: 190px;
    padding: 16px 10px 12px;
    border-top-color: rgba(17,17,17,.14);
  }

  .world-field-svg {
    height: 152px;
  }

  .world-field-label,
  .world-field-latest {
    font-size: 8px;
  }

  .world-contour-line {
    stroke: rgba(17,17,17,.13);
  }
}

@media (max-width: 520px) {
  .screen-home {
    row-gap: 22px;
    padding-top: 62px;
    padding-bottom: 20px;
  }

  .eyebrow { top: 18px; }

  .home-title {
    font-size: clamp(50px, 15.3vw, 76px);
    max-width: 9ch;
  }

  .action-zone {
    max-width: 100%;
  }

  .ok-button {
    width: min(76vw, 310px);
    box-shadow: 8px 8px 0 var(--ink);
  }

  .world-field {
    min-height: 178px;
    padding: 14px 8px 10px;
  }

  .world-field-svg {
    height: 138px;
  }
}

@media (max-width: 390px) {
  .home-title { font-size: 14.6vw; }
  .ok-button { width: min(74vw, 290px); }
  .world-field { min-height: 166px; }
  .world-field-svg { height: 128px; }
}


/* ===============================================================
   V20 — HARD OVERRIDE / MAP PANEL ACTUALLY IN LEFT BLANK AREA
   This block intentionally uses higher specificity + !important
   to beat the accumulated earlier hero experiments.
   =============================================================== */

#homeScreen.screen-home {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 420px) !important;
  grid-template-rows: auto auto !important;
  grid-template-areas:
    "title side"
    "map side" !important;
  align-items: start !important;
  column-gap: clamp(34px, 4.6vw, 74px) !important;
  row-gap: clamp(18px, 2.4vw, 28px) !important;
  min-height: calc(100svh - 160px) !important;
  padding-top: clamp(74px, 9vh, 108px) !important;
  padding-bottom: 28px !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

#homeScreen > .eyebrow {
  position: absolute !important;
  top: 28px !important;
  left: 0 !important;
  z-index: 7 !important;
}

#homeScreen > .home-title {
  grid-area: title !important;
  position: relative !important;
  z-index: 5 !important;
  align-self: start !important;
  justify-self: start !important;
  margin: 0 !important;
  max-width: 7.5ch !important;
  font-size: clamp(74px, 9vw, 176px) !important;
  line-height: .80 !important;
  letter-spacing: -.078em !important;
}

#homeScreen > .action-zone {
  grid-area: side !important;
  position: relative !important;
  z-index: 6 !important;
  align-self: center !important;
  justify-self: end !important;
  width: min(100%, 420px) !important;
  display: grid !important;
  justify-items: center !important;
}

#homeScreen > .action-zone .ok-button {
  width: min(100%, 405px) !important;
}

#homeScreen > .action-zone .live-stats {
  width: min(100%, 405px) !important;
  margin-top: 20px !important;
}

#homeScreen > .world-field {
  grid-area: map !important;
  position: relative !important;
  z-index: 2 !important;
  justify-self: start !important;
  align-self: end !important;
  width: min(100%, 760px) !important;
  min-height: 258px !important;
  margin: 0 !important;
  padding: 20px 18px 18px !important;
  border-top: 1px solid rgba(17,17,17,.18) !important;
  border-bottom: 1px solid rgba(17,17,17,.16) !important;
  pointer-events: none !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 78% 62%, rgba(198,255,0,.10), transparent 44%),
    linear-gradient(to right, rgba(17,17,17,.02), rgba(17,17,17,0)) !important;
}

#homeScreen > .world-field::before,
#homeScreen > .world-field::after {
  display: none !important;
  content: none !important;
}

#homeScreen > .world-field .world-field-svg {
  display: block !important;
  width: 100% !important;
  height: 210px !important;
  overflow: visible !important;
}

#homeScreen > .world-field .world-contour-line {
  fill: none !important;
  stroke: rgba(17,17,17,.17) !important;
  stroke-width: 1.15 !important;
  vector-effect: non-scaling-stroke !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

#homeScreen > .world-field .world-ok-dot {
  fill: var(--acid) !important;
  stroke: rgba(17,17,17,.78) !important;
  stroke-width: 1.35 !important;
  vector-effect: non-scaling-stroke !important;
}

#homeScreen > .world-field .world-ok-pulse {
  fill: none !important;
  stroke: var(--acid) !important;
  stroke-width: 3.1 !important;
  vector-effect: non-scaling-stroke !important;
}

#homeScreen > .world-field .world-field-label,
#homeScreen > .world-field .world-field-latest {
  position: absolute !important;
  z-index: 3 !important;
  font-family: "DM Mono", monospace !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  font-size: 9px !important;
  pointer-events: none !important;
}

#homeScreen > .world-field .world-field-label {
  top: 8px !important;
  right: 10px !important;
  color: rgba(17,17,17,.42) !important;
}

#homeScreen > .world-field .world-field-latest {
  right: 10px !important;
  bottom: 8px !important;
  max-width: 74% !important;
  text-align: right !important;
  color: rgba(17,17,17,.48) !important;
}

@media (max-width: 1280px) {
  #homeScreen.screen-home {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 392px) !important;
    column-gap: clamp(24px, 3.8vw, 54px) !important;
  }

  #homeScreen > .home-title {
    font-size: clamp(72px, 8.3vw, 150px) !important;
  }

  #homeScreen > .world-field {
    width: min(100%, 680px) !important;
    min-height: 236px !important;
  }

  #homeScreen > .world-field .world-field-svg {
    height: 188px !important;
  }
}

@media (max-width: 980px) {
  #homeScreen.screen-home {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 350px) !important;
    padding-top: 86px !important;
  }

  #homeScreen > .home-title {
    font-size: clamp(64px, 8vw, 126px) !important;
  }

  #homeScreen > .action-zone {
    width: min(100%, 350px) !important;
  }

  #homeScreen > .action-zone .ok-button {
    width: min(100%, 330px) !important;
  }

  #homeScreen > .world-field {
    width: 100% !important;
    min-height: 214px !important;
    padding: 18px 14px 14px !important;
  }

  #homeScreen > .world-field .world-field-svg {
    height: 172px !important;
  }
}

@media (max-width: 820px) {
  #homeScreen.screen-home {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas:
      "title"
      "side"
      "map" !important;
    row-gap: 24px !important;
    min-height: auto !important;
    padding-top: 78px !important;
    padding-bottom: 24px !important;
  }

  #homeScreen > .home-title {
    max-width: 100% !important;
    font-size: clamp(58px, 16vw, 104px) !important;
    line-height: .82 !important;
    letter-spacing: -.073em !important;
  }

  #homeScreen > .action-zone {
    justify-self: center !important;
    align-self: start !important;
    width: 100% !important;
    max-width: 420px !important;
  }

  #homeScreen > .action-zone .ok-button {
    width: min(80vw, 340px) !important;
  }

  #homeScreen > .action-zone .live-stats {
    width: min(100%, 420px) !important;
    margin-top: 18px !important;
  }

  #homeScreen > .world-field {
    width: 100% !important;
    min-height: 192px !important;
    padding: 16px 10px 12px !important;
  }

  #homeScreen > .world-field .world-field-svg {
    height: 152px !important;
  }

  #homeScreen > .world-field .world-field-label,
  #homeScreen > .world-field .world-field-latest {
    font-size: 8px !important;
  }

  #homeScreen > .world-field .world-contour-line {
    stroke: rgba(17,17,17,.13) !important;
  }
}

@media (max-width: 520px) {
  #homeScreen.screen-home {
    row-gap: 22px !important;
    padding-top: 62px !important;
    padding-bottom: 18px !important;
  }

  #homeScreen > .eyebrow {
    top: 18px !important;
  }

  #homeScreen > .home-title {
    font-size: clamp(50px, 15.2vw, 76px) !important;
    max-width: 9ch !important;
  }

  #homeScreen > .action-zone {
    max-width: 100% !important;
  }

  #homeScreen > .action-zone .ok-button {
    width: min(76vw, 310px) !important;
    box-shadow: 8px 8px 0 var(--ink) !important;
  }

  #homeScreen > .world-field {
    min-height: 178px !important;
    padding: 14px 8px 10px !important;
  }

  #homeScreen > .world-field .world-field-svg {
    height: 138px !important;
  }
}

@media (max-width: 390px) {
  #homeScreen > .home-title {
    font-size: 14.5vw !important;
  }

  #homeScreen > .action-zone .ok-button {
    width: min(74vw, 290px) !important;
  }

  #homeScreen > .world-field {
    min-height: 166px !important;
  }

  #homeScreen > .world-field .world-field-svg {
    height: 128px !important;
  }
}


/* ===============================================================
   V21 — MOBILE MAP + SEPARATE RESULT VIEW FIX
   =============================================================== */

/* Critical regression fix: V20's #homeScreen display:grid !important
   could beat the generic [hidden] rule, causing HOME + RESULT together. */
#homeScreen[hidden],
#resultScreen[hidden],
#processingOverlay[hidden],
#sharePanel[hidden],
#giftPanel[hidden] {
  display: none !important;
}

/* Real activity must look like a solid green point, not a lime outline. */
#homeScreen .world-ok-dot {
  fill: #168A45 !important;
  stroke: none !important;
  opacity: 1 !important;
}

#homeScreen .world-ok-pulse {
  fill: none !important;
  stroke: #168A45 !important;
  stroke-width: 1.8 !important;
  opacity: .42;
}

/* Keep contour neutral — contour is geography, green means actual OK activity. */
#homeScreen .world-contour-line {
  fill: none !important;
  stroke: rgba(17,17,17,.17) !important;
}

@media (max-width: 820px) {
  /* Full available phone viewport width, not a narrow card inside shell padding. */
  #homeScreen > .world-field {
    box-sizing: border-box !important;
    justify-self: center !important;
    width: calc(100% + (var(--pad) * 2)) !important;
    max-width: none !important;
    margin-left: calc(var(--pad) * -1) !important;
    margin-right: calc(var(--pad) * -1) !important;
    min-height: 220px !important;
    padding: 18px var(--pad) 14px !important;
    overflow: hidden !important;
  }

  #homeScreen > .world-field .world-field-svg {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 1 !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }

  #homeScreen > .world-field .world-field-label {
    right: var(--pad) !important;
    top: 8px !important;
  }

  #homeScreen > .world-field .world-field-latest {
    right: var(--pad) !important;
    bottom: 8px !important;
  }

  /* On phone, keep the real dot dominant; pulse is deliberately subdued. */
  #homeScreen .world-ok-pulse {
    stroke-width: 1.3 !important;
    opacity: .24 !important;
  }
}

@media (max-width: 520px) {
  #homeScreen > .world-field {
    min-height: 205px !important;
    padding-top: 16px !important;
    padding-bottom: 12px !important;
  }

  #homeScreen > .world-field .world-field-label,
  #homeScreen > .world-field .world-field-latest {
    font-size: 8px !important;
  }
}


/* ===============================================================
   V22 — MOBILE WORLD MAP TRUE VIEWPORT CENTERING
   The map panel is centered against the viewport, not its grid parent.
   =============================================================== */

@media (max-width: 820px) {
  #homeScreen > .world-field {
    grid-area: map !important;
    grid-column: 1 / -1 !important;

    position: relative !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;

    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    justify-self: auto !important;
    align-self: start !important;

    box-sizing: border-box !important;
    padding-left: var(--pad) !important;
    padding-right: var(--pad) !important;
  }

  #homeScreen > .world-field .world-field-svg {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
  }

  #homeScreen > .world-field #worldStructureContour,
  #homeScreen > .world-field #worldFieldDots {
    transform: none !important;
  }
}

@media (max-width: 520px) {
  #homeScreen > .world-field {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    padding-left: 17px !important;
    padding-right: 17px !important;
  }
}

/* V24 — one physical world map moves between views */
.artifact-meta { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 5px; max-width: 100%; line-height: 1.5; }
.artifact-meta span { min-width: 0; overflow-wrap: anywhere; }
.result-map { width: min(100%, 760px); margin: 0 0 22px; }
.result-map[hidden] { display: none !important; }
.result-map .world-field { width: 100%; min-height: 0; padding: 20px 18px 18px; margin: 0; overflow: hidden; background: radial-gradient(circle at 78% 62%, rgba(198,255,0,.10), transparent 44%); }
.result-map .world-field-svg { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; overflow: visible; }
.result-map .world-contour-line { fill: none !important; stroke: rgba(17,17,17,.17) !important; stroke-width: 1.15 !important; }
.result-map .world-ok-dot, .result-map .result-you-dot { fill: #168a45 !important; stroke: none !important; opacity: 1 !important; }
.result-map .world-ok-pulse { display: none; }
.result-map-location { display: block; padding: 8px 18px 0; font: 10px/1.4 "DM Mono", monospace; letter-spacing: .06em; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .screen-result { min-width: 0; padding-top: 26px; }
  .artifact-meta { display: grid; gap: 4px; font-size: 10px; }
  .result-footer > div:first-child { min-width: 0; width: 100%; }
  .result-map { width: 100%; }
  .result-map .world-field { padding: 16px 17px 12px; }
}
