:root {
  --tile-espiral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='30'%3E%3Cdefs%3E%3ClinearGradient id='l' gradientUnits='userSpaceOnUse' x1='21' y1='0' x2='15.5' y2='0'%3E%3Cstop offset='0' stop-color='%23A9B2C5'/%3E%3Cstop offset='1' stop-color='%23E3E7EF'/%3E%3C/linearGradient%3E%3CclipPath id='c'%3E%3Cpath d='M0 0H28V8H17V30H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle cx='14' cy='22.5' r='4.3' fill='%2318224A' opacity='.85'/%3E%3Cg clip-path='url(%23c)' fill='none' stroke-linecap='round'%3E%3Cpath d='M20.4 10V7.2C20.4 4.2 18.6 2.6 16.3 2.6C13 2.6 11.2 5.4 10.9 9.4C10.6 14 11.8 18.6 14 22.5' stroke='%2318224A' stroke-width='4.4'/%3E%3Cpath d='M20.4 10V7.2C20.4 4.2 18.6 2.6 16.3 2.6C13 2.6 11.2 5.4 10.9 9.4C10.6 14 11.8 18.6 14 22.5' stroke='url(%23l)' stroke-width='2.2'/%3E%3C/g%3E%3C/svg%3E");
  --tile-rabiscos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340' fill='none' stroke='white' stroke-opacity='.15' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M42 28l7 15 17 2-12 11 3 17-15-8-15 8 3-17-12-11 17-2z'/%3E%3Cpath d='M250 40c10-12 28-6 26 8 8-8 24-2 20 12-3 12-24 22-30 26-8-6-26-18-26-30 0-8 4-14 10-16z'/%3E%3Cpath d='M150 70c6-6 14 0 10 8s-20 8-24-3 5-26 20-24 26 17 20 33-28 24-42 13'/%3E%3Cpath d='M30 170h34M30 190h34M40 160v40M54 160v40'/%3E%3Cpath d='M300 150l-18 30h16l-20 34'/%3E%3Cpath d='M120 170c16 24 40 28 66 18M172 178l14 10-14 10'/%3E%3Cpath d='M40 280l14-34 14 34M46 268h16'/%3E%3Cpath d='M140 250h22a10 10 0 0 1 0 20h-22zM140 270h26a11 11 0 0 1 0 22h-26z'/%3E%3Ccircle cx='260' cy='280' r='26'/%3E%3Cpath d='M250 272v2M270 272v2M248 288c7 8 17 8 24 0'/%3E%3C/svg%3E");
}
/* A página do convite (ferramentas/site.mjs): a capa do caderno do jogo, com a espiral em cima, a logo, a frase,
   o cartão com o código da sala e o botão de entrar. As cores, as fontes e os desenhos da capa (os rabiscos e a
   espiral) são os mesmos do jogo: o ferramentas/site.mjs copia os desenhos de jogo/css/jogo.css para o começo
   deste arquivo. */

@font-face { font-family: 'Outfit'; font-weight: 700; src: url('/fontes/Outfit-Bold.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'National Park'; font-weight: 400; src: url('/fontes/NationalPark-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'National Park'; font-weight: 700; src: url('/fontes/NationalPark-Bold.woff') format('woff'); font-display: swap; }

:root {
  --capa: #0E8A63;
  --capa-funda: #0A6B4D;
  --papel: #FFFEF8;
  --tinta: #18224A;
  --tinta-2: #535E88;
  --amarelo: #FFD23F;
  --pauta: #BCD9EF;
  --titulo: 'Outfit', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --corpo: 'National Park', 'Trebuchet MS', 'Segoe UI', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--capa-funda); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--corpo);
  color: var(--tinta);
  background-color: var(--capa);
  background-image:
    var(--tile-rabiscos),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .04) 0 2px, transparent 2px 5px);
}
[hidden] { display: none !important; }

.espiral {
  flex: none;
  height: 30px;
  background-image: var(--tile-espiral), linear-gradient(to bottom, var(--capa-funda) 0, var(--capa-funda) 8px, transparent 8px);
  background-size: 28px 30px, 100% 100%;
  background-repeat: repeat-x, no-repeat;
  background-position: center top, 0 0;
}

.corpo {
  flex: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 20px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.marca { text-align: center; }
.logo { display: block; width: min(100%, 360px); height: auto; margin: 0 auto; }
.frase { margin: 10px 0 0; color: #fff; font-weight: 700; font-size: 17px; line-height: 1.3; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }

/* O cartão: o papel do caderno, com a margem vermelha e as linhas azuis, como as folhas do jogo. Tudo nele mede
   linhas inteiras (--linha), então cada linha de texto fica em cima de uma linha do papel. */
.cartao {
  --linha: 32px;
  position: relative;
  padding: var(--linha) 18px var(--linha) 30px;
  background-color: var(--papel);
  background-image:
    linear-gradient(to right, transparent 17px, rgba(239, 107, 107, .55) 17px 19px, transparent 19px),
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--linha) - 1px), var(--pauta) calc(var(--linha) - 1px) var(--linha));
  border: 3px solid var(--tinta);
  border-radius: 16px 20px 16px 18px / 20px 16px 18px 16px;
  box-shadow: 0 5px 0 var(--tinta);
  text-align: center;
}
.chamada { margin: 0; font-family: var(--titulo); font-weight: 700; font-size: 20px; line-height: var(--linha); text-wrap: balance; }

/* O código da sala numa fita adesiva amarela, como na sala de espera do jogo, no meio de três linhas do papel. */
.fita-linhas { display: flex; align-items: center; justify-content: center; height: calc(var(--linha) * 3); margin: 0; }
.fita {
  display: inline-block;
  margin: 0;
  padding: 8px 22px;
  background: repeating-linear-gradient(90deg, rgba(255, 233, 122, .95) 0 16px, rgba(255, 226, 90, .95) 16px 32px);
  transform: rotate(-1.6deg);
  box-shadow: 0 3px 8px rgba(24, 34, 74, .25);
  clip-path: polygon(0 0, 2% 12%, 0 25%, 2% 37%, 0 50%, 2% 62%, 0 75%, 2% 87%, 0 100%, 100% 100%, 98% 87%, 100% 75%, 98% 62%, 100% 50%, 98% 37%, 100% 25%, 98% 12%, 100% 0);
}
.codigo { font-weight: 700; -webkit-text-stroke: 1.2px currentColor; font-size: 50px; letter-spacing: .1em; line-height: 1.1; }

.bt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 8px 16px;
  border: 3px solid var(--tinta);
  border-radius: 14px 18px 15px 17px / 17px 14px 18px 15px;
  background: var(--amarelo);
  color: var(--tinta);
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--tinta);
  -webkit-tap-highlight-color: transparent;
}
.bt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tinta); }
.bt:focus-visible { outline: 3px dashed var(--tinta); outline-offset: 4px; }
/* O botão do cartão ocupa duas linhas do papel (a sombra cabe na folga de baixo). */
.cartao .bt { min-height: calc(var(--linha) * 2 - 6px); margin-bottom: 6px; }
.ajuda { margin: 0; color: var(--tinta-2); font-size: 15px; line-height: var(--linha); text-wrap: pretty; }
.ajuda strong { color: var(--tinta); }

/* Baixar o app: num fundo firme, como os atalhos da capa do jogo (os rabiscos não aparecem atrás das letras). */
.baixar { padding: 14px 16px 16px; border-radius: 16px; background: color-mix(in srgb, #000 18%, var(--capa)); text-align: center; color: #fff; }
.baixar p { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.35; }
.bt-loja {
  display: inline-flex;
  width: auto;
  min-height: 46px;
  margin-top: 10px;
  padding: 8px 20px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-family: var(--corpo);
  font-size: 16px;
  box-shadow: none;
}
.bt-loja:active { transform: translateY(1px); box-shadow: none; }
.so-android { margin-top: 10px !important; font-weight: 400 !important; }
/* O aviso contra golpes (a equipe nunca pede senha nem pagamento fora da Google Play). */
.aviso-golpe { margin-top: 12px !important; font-weight: 400 !important; font-size: 14px !important; opacity: .92; }

/* Os links para os textos legais, no pé de todas as páginas. */
.legais { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 14px; line-height: 1.4; }
.legais a { color: #fff; text-decoration: underline; text-underline-offset: 3px; opacity: .92; }
.legais a:focus-visible { outline: 2px dashed #fff; outline-offset: 3px; }

/* Um texto legal (/privacidade, /termos e /excluir-conta): o papel do caderno, mais largo, com o texto à esquerda e
   cada linha em cima de uma linha do papel. */
.corpo-documento { max-width: 760px; justify-content: flex-start; }
.documento { text-align: left; }
.documento h1 { margin: 0; font-family: var(--titulo); font-size: 26px; line-height: calc(var(--linha) * 2); }
.documento h2 { margin: var(--linha) 0 0; font-family: var(--titulo); font-size: 19px; line-height: var(--linha); }
.documento p, .documento li { margin: 0; font-size: 16px; line-height: var(--linha); overflow-wrap: break-word; }
.documento p + p, .documento ul + p, .documento p + ul { margin-top: var(--linha); }
.documento ul { margin: 0; padding-left: 22px; }
.documento a { color: #1F3FB0; overflow-wrap: anywhere; }
.documento-data { color: var(--tinta-2); font-size: 14px !important; }

/* A página inicial (pedido do dono em 02/12): o jogo num celular inclinado, com as letras de STOP em adesivos
   coloridos em volta, e o botão da Google Play solto no verde, no jeito dos botões do jogo. */
.celular { position: relative; margin: 6px auto 4px; width: 62%; max-width: 230px; padding: 8px; border-radius: 30px; background: #1B2440; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); transform: rotate(-3deg); }
.celular img { display: block; width: 100%; height: auto; border-radius: 22px; }
.adesivo { position: absolute; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-family: var(--titulo); font-weight: 800; font-size: 26px; color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.adesivo-s { top: -14px; left: -34px; background: #FF5A5F; transform: rotate(-14deg); }
.adesivo-t { top: 120px; right: -38px; background: #3D8BFF; transform: rotate(12deg); }
.adesivo-o { bottom: 70px; left: -40px; background: #B46BFF; transform: rotate(9deg); }
.adesivo-p { bottom: -14px; right: -26px; background: #FF9A1F; transform: rotate(-10deg); }
.enfeite { position: absolute; z-index: 2; font-size: 22px; line-height: 1; }
.enfeite-estrela { top: 40px; left: -28px; color: #FFE14D; }
.enfeite-brilho { bottom: 150px; right: -30px; color: #7CF0C5; }
[data-pagina="inicio"] .baixar { background: transparent; padding-top: 4px; }
[data-pagina="inicio"] .baixar > p:first-child { font-size: 18px; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
[data-pagina="inicio"] .bt-loja { background: #FF5A5F; color: #fff; border: 3px solid #1B2440; border-radius: 16px; box-shadow: 0 5px 0 #1B2440; font-size: 19px; padding: 12px 26px; margin: 10px 0 4px; }
