@font-face {
  font-family: "Figtree Local";
  src: url("/jogo-do-loop/media/Figtree.woff2") format("woff2"), local("Figtree");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --ink: #08090c;
  --ink-soft: #101116;
  --ink-raised: #15161b;
  --paper: #e9e4d7;
  --paper-warm: #dcd4c3;
  --gold: #cba956;
  --gold-light: #e5ca81;
  --gold-dim: #8e7436;
  --muted: #a9a69d;
  --line: rgba(229, 202, 129, .24);
  --line-dark: rgba(8, 9, 12, .18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Figtree Local", Figtree, Arial, Helvetica, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
img, video { display: block; max-width: 100%; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { overflow-wrap: anywhere; }

::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  transform: translateY(-180%);
  padding: .65rem .9rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  transition: transform 160ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(100% - 2.5rem, 1280px); margin-inline: auto; }
.section { position: relative; padding: clamp(4.75rem, 9vw, 9rem) 0; }
.section-heading h2, .route-heading h2, .method-layout h2 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
}
.section-heading > p:not(.section-kicker) { max-width: 42ch; margin: 1.4rem 0 0; color: var(--muted); font-size: 1.06rem; }
.section-kicker, .eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1rem;
  color: var(--gold-light);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow span { width: 28px; height: 1px; background: currentColor; }

.watermark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(6rem, 18vw, 19rem);
  font-weight: 700;
  letter-spacing: -.12em;
  line-height: .7;
  opacity: .035;
  white-space: nowrap;
}
.watermark--one { top: 11rem; right: -5rem; transform: rotate(-8deg); }
.watermark--two { top: 144rem; left: -4rem; font-size: clamp(4rem, 13vw, 13rem); transform: rotate(90deg); transform-origin: left top; }
.watermark--three { top: 295rem; right: -9rem; transform: rotate(-90deg); transform-origin: right top; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(8, 9, 12, .94); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; width: max-content; color: var(--paper); text-decoration: none; }
.wordmark-mark { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--gold); color: var(--gold-light); font-family: var(--serif); font-size: .79rem; }
.wordmark strong, .wordmark em { display: block; font-size: .69rem; letter-spacing: .08em; line-height: 1.05; text-transform: uppercase; }
.wordmark em { color: var(--gold-light); font-family: var(--serif); font-size: .82rem; letter-spacing: .02em; text-transform: none; }
.main-nav { display: flex; justify-content: center; gap: clamp(.8rem, 2vw, 2rem); }
.main-nav a, .header-link { color: var(--paper-warm); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.main-nav a:hover, .header-link:hover { color: var(--gold-light); }
.header-link { justify-self: end; color: var(--gold-light); }

.hero { position: relative; z-index: 1; min-height: min(830px, calc(100vh - 76px)); padding: clamp(4rem, 8vw, 8rem) 0 1.5rem; overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(250px, .73fr); align-items: center; gap: clamp(2.4rem, 7vw, 9rem); }
.hero-copy { position: relative; z-index: 1; max-width: 785px; }
.preview-chip { display: inline-block; margin: 0 0 1.3rem; padding: .38rem .64rem; border: 1px solid rgba(229, 202, 129, .47); border-radius: 999px; color: var(--gold-light); font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; font-family: var(--serif); font-size: clamp(3.05rem, 6.6vw, 7.3rem); font-weight: 400; letter-spacing: -.073em; line-height: .88; }
h1 i { color: var(--gold-light); font-weight: 400; }
.hero-lead { max-width: 50ch; margin: 2rem 0 0; color: var(--paper-warm); font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.55; }
.byline { margin: 1.1rem 0 0; color: var(--muted); font-family: var(--serif); font-size: .95rem; }
.byline strong { color: var(--paper); font-family: var(--sans); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
.hero-actions, .game-actions, .records-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2.2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 46px;
  padding: .78rem 1rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.button:active { transform: scale(.97); }
.button--gold { background: var(--gold); color: var(--ink); }
.button--gold:hover { background: var(--gold-light); }
.button--quiet { border-color: var(--line); background: transparent; color: var(--paper); }
.button--quiet:hover { border-color: var(--gold); background: rgba(203, 169, 86, .11); color: var(--gold-light); }
.button:disabled { cursor: not-allowed; opacity: .42; }
.stage-url { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; max-width: 620px; gap: .7rem; margin-top: 2.8rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.stage-url-label { color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.stage-url code { min-width: 0; color: var(--gold-light); font-size: .75rem; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.copy-button, .text-button { padding: .3rem 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--paper); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.copy-button:hover, .text-button:hover { color: var(--gold-light); }

.hero-figure { position: relative; align-self: stretch; min-height: 440px; margin: 0; border-left: 1px solid var(--line); }
.hero-figure::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, transparent 26%, rgba(8, 9, 12, .08) 100%); content: ""; pointer-events: none; }
.hero-figure img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; filter: sepia(.25) saturate(.76) contrast(1.08) brightness(.73); }
.hero-figure figcaption { position: absolute; z-index: 2; right: 0; bottom: 0; padding: .55rem .7rem; background: var(--ink); color: var(--muted); font-size: .59rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.figure-index { position: absolute; z-index: 2; top: 0; left: 0; display: grid; gap: .3rem; padding: .8rem .75rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(8, 9, 12, .88); color: var(--gold-light); font-size: .6rem; font-weight: 800; letter-spacing: .1em; }
.figure-index span:first-child { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; letter-spacing: 0; }
.hero-rule { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: .7rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .59rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.framing { z-index: 1; border-top: 1px solid var(--line); background: var(--ink-soft); }
.framing-grid { display: grid; grid-template-columns: minmax(100px, .43fr) 1.35fr minmax(190px, .55fr); gap: clamp(2rem, 5vw, 6rem); }
.framing-grid h2 { margin: 0; color: var(--gold-light); font-family: var(--serif); font-size: clamp(2rem, 3.8vw, 3.6rem); font-weight: 400; line-height: .98; letter-spacing: -.055em; }
.framing-grid > div p { max-width: 52ch; margin: 1.3rem 0 0; color: var(--paper-warm); }
.framing-note { align-self: end; padding-left: 1.1rem; border-left: 1px solid var(--gold); }
.framing-note strong { display: block; color: var(--gold-light); font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.framing-note span { display: block; margin-top: .4rem; color: var(--muted); font-size: .81rem; }

.section--dark { z-index: 1; background: #050609; }
.trailer-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 2.5rem clamp(2rem, 7vw, 7rem); }
.trailer-controls { display: flex; align-self: end; justify-content: flex-end; gap: .5rem; }
.trailer-choice { min-height: 54px; padding: .65rem .75rem; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.trailer-choice small { display: block; margin-top: .12rem; color: inherit; font-size: .62rem; }
.trailer-choice:hover, .trailer-choice.is-selected { border-color: var(--gold); background: rgba(203, 169, 86, .1); color: var(--gold-light); }
.video-frame { grid-column: 1 / -1; border: 1px solid var(--line); background: #000; box-shadow: 22px 22px 0 rgba(203, 169, 86, .09); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.media-note { grid-column: 1 / -1; margin: -.7rem 0 0; color: var(--muted); font-size: .76rem; }
.media-note code { color: var(--paper-warm); }

.game-section { z-index: 1; overflow: clip; }
.game-intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.game-actions { margin: 0; justify-content: flex-end; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .43fr); gap: 1.2rem; margin-top: 3rem; }
.consent-panel, .staging-notice { border: 1px solid var(--line); background: var(--ink-soft); }
.consent-panel { padding: clamp(1.15rem, 2vw, 1.65rem); }
.consent-control { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; }
.consent-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fake-checkbox { flex: 0 0 auto; width: 20px; height: 20px; margin-top: .08rem; border: 1px solid var(--gold-dim); background: var(--ink); }
.consent-control input:checked + .fake-checkbox { border-color: var(--gold-light); background: var(--gold); box-shadow: inset 0 0 0 4px var(--ink); }
.consent-control input:focus-visible + .fake-checkbox { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.consent-control strong { display: block; color: var(--paper); font-size: .88rem; }
.consent-control small { display: block; margin-top: .15rem; color: var(--gold-light); font-size: .73rem; }
.consent-copy { max-width: 79ch; margin: 1.1rem 0 0 2.7rem; color: var(--muted); font-size: .78rem; }
.consent-copy p { margin: .55rem 0 0; }
.consent-copy code { color: var(--paper-warm); }
.consent-state { padding: .62rem .72rem; border-left: 2px solid var(--gold-dim); background: rgba(203, 169, 86, .07); color: var(--paper-warm); }
.consent-state[data-tone="ok"] { border-left-color: #9bce85; }
.consent-state[data-tone="warning"] { border-left-color: var(--gold); }
.consent-state[data-tone="error"] { border-left-color: #d77d6a; color: #efb4a6; }
.staging-notice { display: flex; align-items: flex-start; gap: .9rem; padding: 1.25rem; }
.notice-number { color: var(--gold); font-family: var(--serif); font-size: 1.45rem; line-height: 1; }
.staging-notice strong { display: block; color: var(--gold-light); font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.staging-notice p { margin: .38rem 0 0; color: var(--muted); font-size: .78rem; }
.game-shell { position: relative; display: grid; min-height: 550px; margin-top: 1.2rem; place-items: center; border: 1px solid var(--gold-dim); background: #030405; box-shadow: 18px 18px 0 rgba(203, 169, 86, .08); }
.game-shell:focus-visible { outline-offset: 5px; }
.game-placeholder { display: grid; max-width: 37ch; gap: .65rem; padding: 2rem; color: var(--muted); text-align: center; }
.game-placeholder strong { color: var(--paper); font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.game-placeholder p { margin: 0; font-size: .85rem; }
.game-placeholder code { color: var(--gold-light); }
.placeholder-index { color: var(--gold-light); font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.game-shell iframe { width: 100%; height: 720px; border: 0; background: #000; }
.game-keyboard-note { max-width: 80ch; margin: .9rem 0 0; color: var(--muted); font-size: .77rem; }
kbd { padding: .08rem .3rem; border: 1px solid var(--line); color: var(--paper); font-size: .72rem; }

.section--paper { z-index: 1; background: var(--paper); color: var(--ink); }
.route-heading { display: grid; grid-template-columns: .55fr 1.45fr; gap: 2rem; }
.section--paper .section-kicker { color: #6d5720; }
.route-heading h2 { max-width: 20ch; }
.rooms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: clamp(3.5rem, 8vw, 7rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.rooms li { min-height: 270px; padding: 1.1rem; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.room-number { display: block; color: #80651f; font-family: var(--serif); font-size: 1.5rem; }
.rooms h3 { margin: 3.2rem 0 .65rem; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; letter-spacing: -.03em; }
.rooms p { margin: 0; color: #4e4b44; font-size: .85rem; line-height: 1.5; }

.records { z-index: 1; background: var(--ink-raised); }
.records-topline { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.records-actions { margin: 0; justify-content: flex-end; }
.status-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; margin-top: 3rem; padding: .9rem 1.1rem; border: 1px solid var(--line); background: rgba(8, 9, 12, .75); }
.status-panel > div { display: flex; align-items: center; gap: .6rem; }
.status-panel strong { color: var(--paper); font-size: .76rem; }
.status-panel p { margin: 0; color: var(--muted); font-size: .76rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px rgba(169, 166, 157, .15); }
.status-dot.is-ok { background: #9bce85; box-shadow: 0 0 0 3px rgba(155, 206, 133, .13); }
.status-dot.is-error { background: #d77d6a; box-shadow: 0 0 0 3px rgba(215, 125, 106, .13); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: 1.2rem; }
.metric-card { min-height: 132px; padding: 1rem; border: 1px solid var(--line); background: var(--ink); }
.metric-card span { display: block; color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.metric-card span small { color: var(--gold-dim); font-size: .58rem; letter-spacing: .07em; }
.metric-card strong { display: block; margin-top: 1.7rem; color: var(--gold-light); font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2.5rem); font-weight: 400; letter-spacing: -.035em; }
.metrics-meta { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; padding-top: .85rem; color: var(--muted); font-size: .74rem; }
.metrics-meta strong { color: var(--paper-warm); font-weight: 600; }
.history-section { margin-top: 3rem; }
.history-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 210px)) 1fr; gap: 1.2rem; align-items: end; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.history-summary div { padding-right: 1rem; border-right: 1px solid var(--line); }
.history-summary span { display: block; color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.history-summary strong { display: block; margin-top: .5rem; color: var(--gold-light); font-family: var(--serif); font-size: 2.1rem; font-weight: 400; line-height: 1; }
.history-summary p { max-width: 46ch; margin: 0; color: var(--muted); font-size: .78rem; }
.history-list { display: grid; gap: .75rem; margin-top: 1.2rem; }
.empty-history { margin: 0; padding: 1.2rem 0; color: var(--muted); font-size: .87rem; }
.history-card { border: 1px solid var(--line); background: var(--ink); }
.history-card summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 1rem; color: var(--paper); cursor: pointer; list-style: none; }
.history-card summary::-webkit-details-marker { display: none; }
.history-card summary::after { align-self: center; color: var(--gold-light); content: "+"; font-family: var(--serif); font-size: 1.5rem; }
.history-card[open] summary::after { content: "−"; }
.history-title { display: block; font-family: var(--serif); font-size: 1.15rem; }
.history-meta { display: block; margin-top: .25rem; color: var(--muted); font-size: .71rem; }
.history-card > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; padding: 0 1rem 1rem; }
.history-block { min-width: 0; padding-top: .8rem; border-top: 1px solid var(--line); }
.history-block h3 { margin: 0 0 .3rem; color: var(--gold-light); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.history-block p, .history-block ul { margin: 0; color: var(--paper-warm); font-size: .76rem; overflow-wrap: anywhere; }
.history-block ul { padding-left: 1.1rem; }
.history-block li + li { margin-top: .25rem; }

.method-links { z-index: 1; border-top: 1px solid var(--line); background: #090a0e; }
.method-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 8rem); }
.method-link-list { display: grid; align-content: start; border-top: 1px solid var(--line); }
.method-link-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); color: var(--paper); font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.65rem); text-decoration: none; }
.method-link-list a:hover { color: var(--gold-light); }
.language-row { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: clamp(3rem, 6vw, 6rem); padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.language-row > span { max-width: 41ch; }
.language-row small { font-size: inherit; }
.language-row div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem 1rem; }
.language-row a { color: var(--paper-warm); }
.language-row a:hover { color: var(--gold-light); }
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--ink); }
.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; padding-bottom: 1.2rem; color: var(--muted); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 860px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { min-height: 265px; max-width: 680px; margin-left: 9vw; }
  .hero-figure img { min-height: 265px; }
  .framing-grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .framing-note { padding: 1rem 0 0; border-top: 1px solid var(--gold); border-left: 0; }
  .trailer-layout { grid-template-columns: 1fr; }
  .trailer-controls { justify-content: flex-start; }
  .game-intro, .records-topline { grid-template-columns: 1fr; }
  .game-actions, .records-actions { justify-content: flex-start; }
  .privacy-grid { grid-template-columns: 1fr; }
  .route-heading { grid-template-columns: 1fr; }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .rooms li { min-height: 220px; }
  .history-summary { grid-template-columns: repeat(2, 1fr); }
  .history-summary p { grid-column: 1 / -1; }
  .method-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 1.5rem, 1280px); }
  .header-inner { min-height: 64px; }
  .header-link { font-size: .64rem; }
  .hero { padding-top: 3rem; }
  h1 { font-size: clamp(2.75rem, 13vw, 4.45rem); }
  .stage-url { grid-template-columns: 1fr auto; gap: .35rem .7rem; }
  .stage-url-label { grid-column: 1 / -1; }
  .stage-url code { max-width: calc(100vw - 10rem); }
  .hero-rule { align-items: flex-start; font-size: .53rem; }
  .hero-rule span:last-child { text-align: right; }
  .hero-figure { margin-left: 1.5rem; }
  .trailer-controls { flex-wrap: wrap; }
  .game-shell { min-height: 800px; }
  .game-shell iframe { height: 800px; }
  .consent-copy { margin-left: 0; }
  .rooms { grid-template-columns: 1fr; }
  .rooms li { min-height: auto; }
  .rooms h3 { margin-top: 1.6rem; }
  .status-panel { grid-template-columns: 1fr; align-items: start; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card { min-height: 108px; }
  .metric-card strong { margin-top: 1rem; }
  .history-summary { grid-template-columns: 1fr; }
  .history-summary div { padding-bottom: .8rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .history-card > div { grid-template-columns: 1fr; }
  .language-row { display: grid; }
  .language-row div { justify-content: flex-start; }
  .site-footer .container { display: grid; }
}

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

/* Marcas d'água não podem ampliar o documento ou cobrir os controles móveis. */
html { overflow-x: clip; }
@media (max-width: 860px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav { display: flex; grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; padding-bottom: 1rem; }
  .watermark--one { right: 0; transform: none; font-size: 5rem; }
  .watermark--two, .watermark--three { display: none; }
}
.stage-url code { white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }

.watermark { max-width: 90vw; overflow: hidden; white-space: nowrap; }
.watermark--one, .watermark--three { right: 0; transform: none; }

/* Ambiente didático e destaque de lançamento — cópia de avaliação. */
.zero-hero { border-bottom: 1px solid var(--line); }
.zero-hero-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.75fr); gap: clamp(2rem,6vw,6rem); align-items: center; }
.zero-hero h1 { font-size: clamp(3.2rem,6.3vw,6.5rem); }
.zero-statement { position: relative; padding: 2.2rem; border: 1px solid var(--line); background: var(--ink-soft); overflow: hidden; }
.zero-statement > span { display: block; font-family: var(--serif); font-size: 9rem; color: var(--gold); line-height: 1; }
.zero-statement blockquote { margin: 1.5rem 0; font-family: var(--serif); font-size: 2rem; line-height: 1.15; }
.zero-statement em { color: var(--gold-light); }
.zero-statement p, .zero-statement small { color: var(--muted); }
.zero-steps { grid-template-columns: repeat(4,minmax(0,1fr)); }
.zero-footnote { max-width: 90ch; color: #4e4b44; margin-top: 1.7rem; }
.zero-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: 3rem; }
.zero-card { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); background: var(--ink-soft); text-decoration: none; }
.zero-card:hover { border-color: var(--gold); background: var(--ink-raised); }
.zero-card small { color: var(--gold-light); text-transform: uppercase; letter-spacing: .08em; }
.zero-card h3 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; font-weight: 400; margin: 1.5rem 0 .7rem; }
.zero-card p { color: var(--muted); margin: 0 0 1.5rem; }
.zero-card > span { margin-top: auto; color: var(--gold-light); font-size: .8rem; font-weight: 700; }
.zero-reading-note { margin-top: 2rem; padding: 1.5rem; border-left: 2px solid var(--gold); background: var(--ink-soft); }
.zero-reading-note strong { color: var(--gold-light); }
.zero-reading-note p { margin-bottom: 0; color: var(--muted); }
.launch-demo-note { padding: .8rem 1.2rem; background: #272012; color: var(--gold-light); text-align: center; font-size: .8rem; }
.launch-context { text-align: center; padding: 4rem 0; }
.launch-context .section-kicker { justify-content: center; }
.launch-context h1 { font-size: clamp(4rem,12vw,9rem); color: var(--gold-light); }
.launch-context h2 { font-family: var(--serif); font-size: clamp(1.7rem,4vw,3rem); font-weight: 400; }
.launch-context p { max-width: 65ch; margin: 1.4rem auto; color: var(--muted); }
.launch-block { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(180px,.6fr); gap: 2rem; align-items: center; border: 1px solid var(--gold-dim); background: linear-gradient(100deg,#19160f,#08090c); padding: clamp(1.5rem,4vw,3.5rem); margin-bottom: 2rem; }
.launch-block h2 { font-family: var(--serif); font-size: clamp(2.3rem,4.5vw,4.2rem); font-weight: 400; line-height: 1; margin: 0 0 1rem; }
.launch-block p { color: var(--paper-warm); max-width: 64ch; }
.launch-block img { width: 100%; max-height: 310px; object-fit: cover; border: 1px solid var(--line); }
.launch-block .hero-actions { margin-top: 1.5rem; }
.launch-links { display: flex; gap: .9rem; flex-wrap: wrap; }
@media(max-width:860px) {
 .zero-hero-grid { grid-template-columns: 1fr; }
 .zero-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .zero-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .launch-block { grid-template-columns: minmax(0,1fr); }
 .launch-block img { max-height: 210px; }
}
@media(max-width:560px) {
 .zero-links, .zero-steps { grid-template-columns: minmax(0,1fr); }
 .zero-statement { padding: 1.5rem; }
 .zero-statement > span { font-size: 6rem; }
 .zero-steps h3 { margin-top: 1.3rem; }
}

.launch-block .media-note { margin: 1.25rem 0 0; color: var(--muted); }

/* Biblioteca pública relacionada ao Axioma Zero. */
.reading-library { background: var(--ink-soft); border-top: 1px solid var(--line); }
.reading-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 1rem; margin: 2rem 0; }
.reading-toolbar label { display: block; font-size: .85rem; color: var(--paper-warm); }
.reading-toolbar input { display: block; width: 100%; margin-top: .6rem; padding: .9rem; min-height: 48px; color: var(--paper); background: var(--ink); border: 1px solid var(--gold-dim); border-radius: 0; }
.reading-toolbar button { min-height: 48px; }
.reading-meta { color: var(--muted); font-size: .8rem; }
.reading-jump { display: flex; flex-wrap: wrap; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.reading-jump a { color: var(--gold-light); padding: .5rem 0; font-size: .85rem; }
.reading-group { margin-top: 3rem; scroll-margin-top: 1rem; }
.reading-group > h3 { font-family: var(--serif); font-size: 2rem; font-weight: 400; color: var(--gold-light); margin: 0 0 .5rem; }
.reading-group > p { max-width: 76ch; color: var(--muted); }
.reading-card .reading-tag { margin-bottom: 1rem; letter-spacing: .08em; font-size: .65rem; text-transform: uppercase; color: var(--gold-light); }
.reading-card h4 { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; line-height: 1.15; margin: 0 0 .7rem; }
.reading-card .reading-source { font-size: .72rem; overflow-wrap: anywhere; margin-top: auto; color: var(--muted); }
.reading-card .reading-action { display: block; margin-top: 1rem; color: var(--gold-light); font-size: .8rem; }
.reading-card[hidden], .reading-group[hidden], #readingEmpty[hidden] { display: none; }
#readingEmpty { border-left: 2px solid var(--gold); padding: 1rem; }
@media(max-width:560px) { .reading-toolbar { grid-template-columns: minmax(0,1fr); } .reading-toolbar button { justify-self: start; } }

#lancamento-150-dias { grid-template-columns: minmax(0,1fr); }
