/* O site do Reevy, no visual do launcher (launcher/src/Reevy.Launcher/Styles/Theme.axaml): a madeira escura flutua sobre o mundo (o dock, as placas, as letras em creme),
   o papel é para a leitura calma (moldura de madeira), o ouro é o que chama (o botão de baixar) e a tipografia é a Fredoka do jogo. Os tons são os do Theme.tss do jogo. */

@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --wood-500: #a0703f;
  --wood-600: #7a4d2a;
  --wood-700: #5d3920;
  --wood-800: #432a17;
  --wood-900: #2b180c;
  --night: #1b0f07;
  --paper-100: #f7e9c9;
  --paper-200: #ecd7aa;
  --paper-300: #c9a56f;
  --ink-900: #3b2819;
  --ink-500: #7d6549;
  --cream: #ffe9b0;
  --gold-300: #ffd25e;
  --gold-500: #f0a93a;
  --gold-deep: #b86d00;
  --gold: linear-gradient(180deg, #ffe08a 0%, #ffd25e 45%, #f0a93a 100%);
  --dock: linear-gradient(180deg, rgba(74, 45, 24, 0.92), rgba(43, 24, 12, 0.96));

  /* o ritmo do carrossel: o mesmo do launcher (Slides.cs) */
  --hold: 6500ms;
  --fade: 1400ms;
  --cycle: 7900ms;
  --kenburns: 9300ms;

  --font: "Fredoka", ui-rounded, "Segoe UI Variable Rounded", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 520px at 50% -8%, var(--wood-800), transparent 70%), var(--night);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--gold-300); color: var(--ink-900); }
:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--gold-300); color: var(--ink-900); font-weight: 700; text-decoration: none; transition: top 0.15s; }
.skip:focus { top: 12px; }

.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 2 * var(--gutter)); }

/* ---- botões ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-family: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 0; }
.btn svg { flex: none; }

/* o botão dourado dos botões do jogo: pílula com o "degrau" de baixo e o contorno de madeira */
.btn-play {
  position: relative;
  height: 68px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: 1.45rem;
  color: var(--ink-900);
  background: var(--gold);
  border: 2.5px solid var(--wood-700);
  box-shadow: 0 6px 0 var(--gold-deep), 0 6px 0 2.5px var(--wood-700), 0 16px 30px rgba(0, 0, 0, 0.45), inset 0 3px 0 rgba(255, 255, 255, 0.42);
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}
.btn-play::after { content: ""; position: absolute; inset: 6px -6px 14px; z-index: -1; border-radius: 999px; background: var(--gold-300); filter: blur(22px); opacity: 0.1; animation: glow 2.4s ease-in-out infinite; }
.btn-play:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn-play:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--gold-deep), 0 2px 0 2.5px var(--wood-700), 0 8px 16px rgba(0, 0, 0, 0.4), inset 0 3px 0 rgba(255, 255, 255, 0.35); }
@keyframes glow { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.55; } }

.btn-gold { color: var(--ink-900); background: var(--gold); border-radius: 999px; box-shadow: 0 3px 0 var(--gold-deep), 0 3px 0 1.5px var(--wood-700), inset 0 2px 0 rgba(255, 255, 255, 0.4); transition: transform 0.12s ease, filter 0.15s ease; }
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn-small { height: 42px; padding: 0 22px; font-size: 1rem; }

/* ---- a barra de cima ---- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); transition: background 0.25s ease, box-shadow 0.25s ease; }
.topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 15, 7, 0.72), rgba(27, 15, 7, 0)); transition: opacity 0.25s; }
.topbar.is-solid { background: rgba(43, 24, 12, 0.94); box-shadow: 0 1px 0 rgba(160, 112, 63, 0.45), 0 10px 30px rgba(0, 0, 0, 0.35); backdrop-filter: blur(8px); }
.topbar.is-solid::before { opacity: 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.75rem; line-height: 1; text-decoration: none; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55); }
.brand img { filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45)); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; font-weight: 400; }
.nav a { text-decoration: none; opacity: 0.9; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); padding: 6px 2px; background: linear-gradient(var(--gold-300), var(--gold-300)) bottom / 0 2px no-repeat; transition: background-size 0.2s ease, opacity 0.2s; }
.nav a:hover { opacity: 1; background-size: 100% 2px; }

/* ---- o carrossel (o herói) ---- */
.hero { position: relative; height: clamp(640px, 100vh, 940px); height: clamp(640px, 100svh, 940px); overflow: hidden; background: var(--wood-900); isolation: isolate; }
.slides { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity var(--fade) ease-in-out; }
.slide.is-active { opacity: 1; }
/* a imagem é um pouco maior que a área e se move devagar: nunca aparece a borda */
.slide img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
.slide.is-active img, .slide.is-leaving img { animation: var(--kenburns) linear both; }
.slide:nth-child(4n + 1).is-active img, .slide:nth-child(4n + 1).is-leaving img { animation-name: kb-a; }
.slide:nth-child(4n + 2).is-active img, .slide:nth-child(4n + 2).is-leaving img { animation-name: kb-b; }
.slide:nth-child(4n + 3).is-active img, .slide:nth-child(4n + 3).is-leaving img { animation-name: kb-c; }
.slide:nth-child(4n + 4).is-active img, .slide:nth-child(4n + 4).is-leaving img { animation-name: kb-d; }
@keyframes kb-a { from { transform: scale(1) translate(2.4%, 0.4%); } to { transform: scale(1.09) translate(-2.4%, -0.6%); } }
@keyframes kb-b { from { transform: scale(1.09) translate(-2%, 1.2%); } to { transform: scale(1.01) translate(2%, 0); } }
@keyframes kb-c { from { transform: scale(1.02) translate(0, 2%); } to { transform: scale(1.1) translate(2%, -1.8%); } }
@keyframes kb-d { from { transform: scale(1.1) translate(2.6%, 0.6%); } to { transform: scale(1) translate(-1.4%, -0.4%); } }
.hero.is-paused .slide img, .hero.is-paused .bar.is-active i { animation-play-state: paused; }

/* os véus dão contraste ao texto sem esconder a imagem: madeira escura à esquerda, embaixo e em cima */
.scrim { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.scrim-left { background: linear-gradient(90deg, rgba(27, 15, 7, 0.94) 0%, rgba(43, 24, 12, 0.72) 30%, rgba(0, 0, 0, 0) 66%); }
.scrim-bottom { top: auto; height: 62%; background: linear-gradient(180deg, rgba(27, 15, 7, 0), rgba(27, 15, 7, 0.82)); }
.scrim-top { bottom: auto; height: 160px; background: linear-gradient(180deg, rgba(27, 15, 7, 0.55), rgba(27, 15, 7, 0)); }

.hero-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 96px var(--gutter) clamp(20px, 3vw, 36px); }

.caption { max-width: 640px; transition: opacity 0.4s ease, transform 0.4s ease; }
.caption.is-swapping { opacity: 0; transform: translateY(14px); }
.overline { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; color: var(--gold-300); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.24em; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.overline::before { content: ""; width: 32px; height: 4px; border-radius: 2px; background: var(--gold); }
.slide-title { margin: 0 0 16px; font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; white-space: pre-line; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.62); text-wrap: balance; }
.slide-body { margin: 0; max-width: 34ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; opacity: 0.92; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }

/* as setas, os indicadores (o ativo enche até a troca) e o pausar */
.slide-nav { display: flex; align-items: center; gap: 10px; }
.slide-nav[hidden] { display: none; }
.round { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 233, 176, 0.28); background: rgba(27, 15, 7, 0.45); color: var(--cream); cursor: pointer; backdrop-filter: blur(4px); transition: background 0.15s, transform 0.12s; }
.round:hover { background: rgba(67, 42, 23, 0.85); }
.round:active { transform: scale(0.94); }
.round .i-play { display: none; }
.hero.is-userpaused .round .i-play { display: block; }
.hero.is-userpaused .round .i-pause { display: none; }
.bars { display: flex; gap: 8px; margin: 0 4px; }
.bar { position: relative; width: 52px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
.bar::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 6px; border-radius: 3px; background: rgba(255, 233, 176, 0.32); }
.bar i { position: absolute; left: 0; top: 12px; height: 6px; width: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold-300), #ffb347); transform: scaleX(0); transform-origin: left center; }
.bar.is-active i { animation: bar-fill var(--cycle) linear forwards; }
@keyframes bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* o dock: a placa de madeira com a chamada para baixar (o do launcher, na web) */
.dock { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 22px 18px 26px; border-radius: 26px; background: var(--dock); border: 1.5px solid rgba(160, 112, 63, 0.55); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7); }
.dock::before { content: ""; position: absolute; left: 26px; right: 26px; top: 1px; height: 1.5px; border-radius: 1px; background: rgba(255, 233, 176, 0.22); }
.dock-info { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dock-info p { margin: 0; display: grid; gap: 2px; }
.dock-info strong { font-size: 1.3rem; line-height: 1.2; }
.dock-info span { font-size: 0.95rem; opacity: 0.82; }
.os-note { margin: 0; padding: 12px 18px; border-radius: 16px; background: rgba(255, 179, 71, 0.16); border: 1px solid rgba(255, 197, 107, 0.45); color: #ffd9a0; font-size: 0.95rem; }
.os-note[hidden] { display: none; }

/* ---- as seções ---- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: linear-gradient(180deg, rgba(67, 42, 23, 0.55), rgba(43, 24, 12, 0.85)); border-block: 1px solid rgba(160, 112, 63, 0.3); }
.eyebrow { margin: 0 0 12px; color: var(--gold-300); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.24em; text-transform: uppercase; }
h2 { margin: 0 0 18px; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; text-wrap: balance; }
h3 { margin: 0 0 8px; font-size: 1.3rem; line-height: 1.25; }
.lead { margin: 0 0 28px; max-width: 62ch; font-size: clamp(1.08rem, 1.5vw, 1.25rem); opacity: 0.9; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin: 0 0 clamp(40px, 5vw, 64px); }
.cta-note { opacity: 0.8; }
.fineprint { margin: 22px 0 0; font-size: 0.92rem; opacity: 0.7; }

/* o papel numa moldura de madeira (as configurações do launcher) */
.paper { background: var(--paper-100); color: var(--ink-900); border: 5px solid var(--wood-600); border-radius: 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; }
.step-num { position: absolute; top: -22px; left: 22px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); border: 2.5px solid var(--wood-700); box-shadow: 0 3px 0 var(--gold-deep), 0 8px 14px rgba(0, 0, 0, 0.35); color: var(--ink-900); font-weight: 700; font-size: 1.35rem; }
.step h3 { margin-top: 10px; font-size: 1.45rem; }
.step p { margin: 0 0 18px; }
.shot { margin: auto 0 0; border-radius: 16px; overflow: hidden; border: 3px solid var(--wood-700); background: var(--wood-900); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; font-size: 0.9rem; background: var(--wood-800); }

/* as placas de madeira: o que o jogo tem */
.plates { list-style: none; margin: 0 0 clamp(36px, 5vw, 56px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.plate { padding: 24px 24px 22px; border-radius: 22px; background: var(--dock); border: 1.5px solid rgba(160, 112, 63, 0.5); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); position: relative; }
.plate::before { content: ""; position: absolute; left: 22px; right: 22px; top: 1px; height: 1.5px; background: rgba(255, 233, 176, 0.18); }
.plate img { display: block; height: 58px; width: auto; margin-bottom: 14px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.4)); }
.plate h3 { margin-bottom: 6px; }
.plate p { margin: 0; font-size: 0.98rem; opacity: 0.86; }

/* a faixa da coleção: as espécies passam em loop devagar */
.species { display: flex; overflow: hidden; padding: 18px 0; border-radius: 22px; background: var(--paper-100); border: 5px solid var(--wood-600); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); -webkit-mask-image: none; }
.species-track { flex: 0 0 auto; min-width: 100%; display: flex; align-items: center; justify-content: space-around; gap: 34px; margin: 0; padding: 0 17px; list-style: none; animation: marquee 70s linear infinite; }
.species-track li { flex: none; }
.species-track img { display: block; height: 64px; width: auto; }
.species:hover .species-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 38px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); border: 2px solid var(--wood-700); box-shadow: 0 2px 0 var(--gold-deep); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: 9px; width: 8px; height: 5px; border-left: 2.5px solid var(--ink-900); border-bottom: 2.5px solid var(--ink-900); transform: rotate(-45deg); }
.ticks strong { display: block; font-size: 1.12rem; }
.shot-big { margin: 0; border-width: 4px; border-radius: 22px; }

/* as perguntas */
.faq { display: grid; gap: 14px; margin-top: 26px; }
.faq details { padding: 0; border-width: 4px; border-radius: 20px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 1.12rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 3px solid var(--wood-600); border-bottom: 3px solid var(--wood-600); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -1px); }
.faq p { margin: 0; padding: 0 22px 20px; }
.faq code { padding: 2px 7px; border-radius: 6px; background: var(--paper-200); font-size: 0.92em; }

.final { padding-top: clamp(40px, 6vw, 72px); }
.dock-big { padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 40px); }
.dock-big strong { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.dock-big span { font-size: 1.05rem; }

.footer { padding: 36px 0 44px; background: var(--wood-900); border-top: 1px solid rgba(160, 112, 63, 0.4); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.footer .brand { font-size: 1.4rem; text-shadow: none; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.footer nav a { text-decoration: none; opacity: 0.85; }
.footer nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer p { flex-basis: 100%; margin: 0; font-size: 0.9rem; opacity: 0.6; }

/* ---- telas menores ---- */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 40px; max-width: 560px; margin-inline: auto; }
  .plates { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .topbar { justify-content: space-between; }
  .btn-small { margin-left: auto; }
  .hero-inner { padding-top: 84px; gap: 14px; }
  .dock { flex-direction: column; align-items: stretch; padding: 18px; }
  .dock .btn-play { width: 100%; height: 62px; }
  .dock-info img { width: 40px; height: 40px; }
  .plates { grid-template-columns: 1fr; }
  .bar { width: 38px; }
  .slide-nav { gap: 6px; }
  .footer nav { margin-left: 0; }
}
@media (max-height: 700px) and (min-width: 721px) { .slide-body { display: none; } }

/* quem pede menos movimento não vê o zoom nem a troca automática: as imagens mudam só quando a pessoa pede */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition-duration: 0.01ms; }
  .slide img, .bar.is-active i, .btn-play::after { animation: none !important; }
  .bar.is-active i { transform: scaleX(1); }
  .caption { transition: none; }
  .species { overflow-x: auto; }
  .species-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 14px; }
  .species-track[aria-hidden="true"] { display: none; }
}

/* a página 404 */
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.lost { width: min(560px, 100% - 40px); padding: 48px 0; display: grid; justify-items: center; gap: 14px; }
.lost h1 { margin: 6px 0 0; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; text-wrap: balance; }
.lost p { margin: 0 0 14px; opacity: 0.88; }
.lost img { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
