/* ============================================================
   Sketch Aura — O MURAL (a pele da Trilha do Esboço).

   O Line virou lousa, o Vision virou mesa de luz. O Sketch vira o
   MURAL DE CORTIÇA do ateliê: a parede onde o artista prega as ideias
   e os thumbnails antes de escolher o desenho. Cada fase é um papel
   preso com alfinete, e o mural vai se enchendo com os rabiscos DELA
   (a fase feita mostra o último desenho que ela fez ali).

   Usa o molde do Box (shared/campanha.css). As regras de sempre:
   rosa = a única próxima ação (o alfinete rosa é a fase de agora, o
   quadrinho da vez), ouro = o que ela ganhou, azul de lápis de
   rascunho = o que está disponível, papel só pro desenho, madeira
   escura na moldura. A escolhida ganha moldura grossa ESCURA, não rosa.

   Só vale com a trilha na tela (html.st-mural, que o trilha.js liga).
   Sem a porta, o Sketch segue igual ao de hoje.
   ============================================================ */

:root {
  --cp-edge:     #170D06;
  --cp-night:    #2A190D;
  --cp-slab:     #4A2E1A;
  --cp-slab-hi:  #694428;
  --cp-slab-lo:  #36210F;
  --cp-slab-top: #573721;
  --cp-text:     #F6F2E9;
  --cp-text-dim: #DCC7AA;
  --cp-bevel-hi: rgba(255, 222, 180, .18);
  /* o lápis azul de rascunho = o que está disponível */
  --cp-mat-1: #D6ECFF; --cp-mat-2: #7FB8E6; --cp-mat-3: #4A8CC4; --cp-mat-4: #245A8A;
  --cp-stone-1: #9C8D7A; --cp-stone-2: #736553; --cp-stone-3: #52463A; --cp-stone-4: #3A3028;

  --st-papel: #FBF8F1;
  --st-papel-2: #F1EADB;
  --st-grafite: #2A2724;
  --st-azul: #5B9BD5;
  --st-alfinete: #CFC4B4;

  /* a cortiça: grão escuro, grão claro, manchas grandes (ruído de SVG, feTurbulence) e o fundo em dois tons */
  --st-cortica:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.035 0 0 0 0 0.01 4.6 0 0 0 -2.75'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23f)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.66 0 0 0 0 0.46 0 0 0 0 0.28 3.8 0 0 0 -2.55'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23f)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.09' numOctaves='2' seed='21' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.09 0 0 0 0 0.04 2.4 0 0 0 -1.15'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23f)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #4E3320 0%, #432B19 55%, #3A2515 100%);
}

.st-story[hidden], .st-livres-t[hidden], .st-pedido__foto[hidden], .st-pedido__ex[hidden],
.st-flash[hidden], .st-folha[hidden], .st-escolha[hidden], .st-papelmode[hidden], .st-tira[hidden],
.st-noquadro[hidden], .st-gotas[hidden], .st-ajuda[hidden], .st-resultado[hidden], .st-porque[hidden],
.cp-porta__erro[hidden], .cp-ov[hidden], .st-aviso[hidden], .st-link[hidden] { display: none !important; }

/* ============================================================
   A CORTIÇA (o fundo) — na home com a trilha, no mapa e na fase
   ============================================================ */
html.st-mural { color-scheme: dark; }
html.st-mural body, .st-tela, .st-play { background: var(--st-cortica); background-color: #432B19; }
.st-tela::before, .st-play::before, html.st-mural #main-screen::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(10, 5, 2, .55) 100%);
}
html.st-mural #main-screen { background: transparent; }
/* os tokens do Sketch viram madeira na home (o chip de perfil e o waffle acompanham) */
html.st-mural #main-screen {
  --cream: #2A190D; --cream-soft: #36210F; --paper: #4A2E1A;
  --ink: #F6F2E9; --ink-soft: #DCC7AA; --muted: #9C8D7A;
  --border: #694428; --border-soft: #573721; --pink-soft: rgba(255, 45, 110, .18);
}
html.st-mural #btn-theme { display: none; }

/* ============================================================
   A HOME com a trilha
   ============================================================ */
html.st-mural #main-screen > .flex-grow { justify-content: flex-start; overflow-y: auto; padding-top: 8px; padding-bottom: 90px; position: relative; z-index: 1; }
html.st-mural #main-screen .title-main { font-size: clamp(3.2rem, 9vw, 5.2rem) !important; color: var(--cp-text); text-shadow: 0 4px 0 var(--cp-marca-3, #7E0B3E), 0 7px 16px rgba(0, 0, 0, .45); }
html.st-mural #main-screen .title-sub { font-size: clamp(1.8rem, 4.5vw, 2.8rem) !important; }
html.st-mural #main-screen .f-hand.mt-10 { margin-top: 1.6rem; color: var(--cp-text-dim); }

.st-story {
  position: relative; width: min(560px, 100%); margin: 40px auto 18px; padding: 38px 18px 18px;
  border-radius: 22px; text-align: left; background: var(--cp-slab-bg); box-shadow: var(--cp-slab-shadow);
}
.st-story__rot { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); font-size: 21px; }
.st-story__corpo { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; }
.st-story .cp-escudo { width: 76px; height: 76px; }
.st-story .cp-escudo svg { width: 52px; height: 52px; }
.st-story .cp-jogar { width: 100%; margin-top: 16px; }
.st-story__mais { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.st-story__porta { margin: 4px 0 14px; color: var(--cp-text-dim); font-size: 14px; font-weight: 600; }
/* TRANCADA: o convite com os 4 mundos do caminho e a senha numa linha no pé do cartão */
.st-tranca__x { margin: 2px 4px 0; text-align: center; font-size: 14.5px; line-height: 1.5; font-weight: 600; color: var(--cp-text); }
.st-tranca__mundos { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: none; }
/* o caminho: uma linha tracejada ligando os mundos */
.st-tranca__mundos::before { content: ''; position: absolute; left: 12%; right: 12%; top: 33px; border-top: 2.5px dashed rgba(255, 222, 180, .28); }
.st-tranca__mundos li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; min-width: 0; }
.st-tranca__arte {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--st-papel);
  box-shadow: 0 0 0 3px var(--cp-edge), 0 0 0 7px var(--cp-slab-lo), 0 0 0 9px var(--cp-edge);
}
.st-tranca__arte svg { width: 46px; height: 46px; display: block; opacity: .82; }
.st-tranca__mundos li:not(:first-child) .st-tranca__arte svg { opacity: .45; filter: grayscale(1); }
.st-tranca__n { margin-top: 6px; font: 800 10.5px/1 'Poppins', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--cp-text-dim); }
.st-tranca__nome { font: 400 15px/1.1 'Lilita One', 'Poppins', sans-serif; color: var(--cp-text); text-shadow: var(--cp-tx-s, 0 2px 0 var(--cp-edge)); }
.st-tranca__senha {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  margin-top: 20px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--cp-night);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(0, 0, 0, .35), 0 1.5px 0 var(--cp-bevel-hi);
}
.st-tranca__cad { display: grid; place-items: center; color: var(--cp-text-dim); }
.st-tranca__cad svg { width: 20px; height: 20px; }
.st-tranca__rot { font: 700 13.5px/1.2 'Poppins', sans-serif; color: var(--cp-text-dim); white-space: nowrap; }
.st-tranca__senha input {
  min-width: 0; padding: 10px 12px; border: 0; border-radius: 10px; font: 700 15px/1 'Poppins', sans-serif;
  color: var(--cp-text); background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1.5px rgba(255, 222, 180, .14);
}
.st-tranca__senha input:focus { outline: 2.5px solid var(--cp-text); outline-offset: 1px; }
.st-tranca__senha .cp-btn { min-height: 42px; font-size: 15px; padding: 0 16px; }
.st-tranca__senha .cp-porta__erro { grid-column: 1 / -1; margin: 0; }
/* trancada: a trilha em cima e os modos livres embaixo, lado a lado */
html.st-mural:not(.st-aberta) .st-home-grid { grid-template-columns: minmax(0, 720px); }
html.st-mural:not(.st-aberta) .st-livres__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.st-mural:not(.st-aberta) .st-modo { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; padding: 14px; }
.st-story__fim { margin-top: 14px; color: var(--cp-text-dim); font-size: 14px; line-height: 1.5; text-align: center; }

/* a trilha e os modos livres lado a lado (o desenho da home do Line) */
.st-home-grid { display: grid; gap: 26px; width: min(900px, 100%); margin: 40px auto 0; grid-template-columns: minmax(0, 560px) 300px; justify-content: center; align-items: start; text-align: left; }
.st-home-grid .st-story { width: 100%; margin: 0; }
.st-livres { display: flex; flex-direction: column; gap: 12px; }
.st-livres-t { margin: 0; padding-left: 4px; font: 400 18px/1 'Lilita One', 'Poppins', sans-serif; color: var(--cp-text-dim); text-shadow: var(--cp-tx-s, 0 2px 0 var(--cp-edge)); }
.st-livres__lista { display: grid; gap: 16px; }
.st-modo {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 13px; align-items: center;
  width: 100%; padding: 14px 14px 15px; border: 0; border-radius: 18px; cursor: pointer; text-align: left;
  color: var(--cp-text); font: inherit; letter-spacing: normal; text-transform: none;
  background: linear-gradient(180deg, var(--cp-slab-hi) 0, var(--cp-slab) 100%);
  box-shadow: inset 0 1.5px 0 var(--cp-bevel-hi), 0 0 0 2.5px var(--cp-edge), 0 6px 0 2.5px var(--cp-edge), 0 14px 24px rgba(0, 0, 0, .3);
  transition: transform 70ms ease-out, box-shadow 70ms ease-out, filter 120ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .st-modo:hover { filter: brightness(1.08); } }
.st-modo:active { transform: translateY(4px); box-shadow: inset 0 1.5px 0 var(--cp-bevel-hi), 0 0 0 2.5px var(--cp-edge), 0 2px 0 2.5px var(--cp-edge); }
.st-modo:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.st-modo__ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--cp-night); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(0, 0, 0, .35), 0 1.5px 0 var(--cp-bevel-hi); color: var(--cp-text); }
.st-modo__ic svg { width: 34px; height: 34px; display: block; }
.st-modo__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-modo__nome { font: 400 20px/1.05 'Lilita One', 'Poppins', sans-serif; color: var(--cp-text); text-shadow: var(--cp-tx-s, 0 2px 0 var(--cp-edge)); }
.st-modo__desc { font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--cp-text-dim); }
/* "tem gente desenhando agora" (multiplayer.js) vira a linha dourada do cartão, como o recorde no Line */
.st-modo #mp-live-indicator { justify-content: flex-start !important; margin-top: 2px !important; font: 700 12px/1.2 'Poppins', sans-serif !important; color: var(--cp-gold-2) !important; }
/* trilha trancada: o treino com foto é a única próxima ação, então é ele o rosa */
html.st-mural:not(.st-aberta) #btn-play.st-modo {
  background: linear-gradient(180deg, var(--cp-pink-2) 0 44%, var(--cp-pink-3) 44%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .3), 0 0 0 2.5px var(--cp-edge), 0 6px 0 2.5px var(--cp-edge), 0 14px 26px -6px var(--cp-pink-glow);
}
html.st-mural:not(.st-aberta) #btn-play .st-modo__ic { background: var(--cp-pink-4); color: #fff; }
html.st-mural:not(.st-aberta) #btn-play .st-modo__nome { text-shadow: 0 2px 0 var(--cp-pink-4); }
html.st-mural:not(.st-aberta) #btn-play .st-modo__desc { color: #FFE3EC; }
@media (max-width: 900px) {
  .st-home-grid { grid-template-columns: minmax(0, 560px); gap: 22px; }
}
@media (max-width: 560px) {
  .st-home-grid { margin-top: 34px; }
  .st-tranca__mundos { gap: 4px; }
  .st-tranca__mundos::before { top: 26px; }
  .st-tranca__arte { width: 52px; height: 52px; box-shadow: 0 0 0 2.5px var(--cp-edge), 0 0 0 5.5px var(--cp-slab-lo), 0 0 0 7.5px var(--cp-edge); }
  .st-tranca__arte svg { width: 36px; height: 36px; }
  .st-tranca__nome { font-size: 12.5px; }
  .st-tranca__n { font-size: 9.5px; }
  .st-tranca__senha { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px; }
  .st-tranca__rot { grid-column: 1 / -1; order: -1; white-space: normal; }
  html.st-mural:not(.st-aberta) .st-livres__lista { grid-template-columns: minmax(0, 1fr); }
  html.st-mural:not(.st-aberta) .st-modo { grid-template-columns: 46px minmax(0, 1fr); align-content: center; }
  .st-livres__lista { gap: 12px; }
  .st-modo { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .st-modo__ic { width: 46px; height: 46px; border-radius: 13px; }
  .st-modo__ic svg { width: 30px; height: 30px; }
  .st-modo__nome { font-size: 18px; }
  .st-modo__desc { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .st-modo { transition: none; } }

/* ============================================================
   O MAPA e O MURAL das fases
   ============================================================ */
.st-tela { overflow-y: auto; overflow-x: hidden; }
.st-tela > * { position: relative; z-index: 1; }
.st-tela__topo { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; max-width: 820px; margin: 0 auto; width: 100%; }
.st-voltar {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  font: 700 14px/1 'Poppins', sans-serif; color: var(--cp-text-dim); background: var(--cp-night); border: 0; box-shadow: var(--cp-well-shadow);
}
.st-voltar:hover { color: var(--cp-text); }
.st-voltar svg { width: 16px; height: 16px; }

html.st-mural .cp-fases {
  background: var(--st-cortica); background-color: #432B19;
  box-shadow: inset 0 0 0 3px var(--cp-edge), inset 0 4px 12px rgba(0, 0, 0, .55), 0 1.5px 0 var(--cp-bevel-hi);
  gap: 18px 14px; padding: 20px 14px 16px;
}
/* cada fase é um papel preso com alfinete */
html.st-mural .cp-fase {
  --giro: -1.2deg; --pino: var(--st-alfinete);
  color: var(--st-grafite); background: var(--st-papel); border-radius: 3px 3px 6px 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 10px 14px -8px rgba(0, 0, 0, .7), 0 2px 3px rgba(0, 0, 0, .25);
  transform: rotate(var(--giro)); padding-top: 14px;
}
html.st-mural .cp-fase:nth-child(3n+2) { --giro: .9deg; }
html.st-mural .cp-fase:nth-child(3n) { --giro: -.4deg; }
html.st-mural .cp-fase::before {
  content: ''; position: absolute; left: 50%; top: -7px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, rgba(255, 255, 255, .8) 0 1.6px, transparent 2.6px), var(--pino);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25), 0 3px 3px rgba(0, 0, 0, .45);
}
html.st-mural .cp-fase:active { transform: rotate(var(--giro)) translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 5px 8px -6px rgba(0, 0, 0, .7); }
@media (hover: hover) { html.st-mural .cp-fase:hover { filter: none; transform: rotate(0deg) translateY(-2px); } }
html.st-mural .cp-fase__nome { color: var(--st-grafite); }
html.st-mural .cp-fase__art { background: transparent; box-shadow: none; padding: 0; border-radius: 4px; overflow: hidden; }
html.st-mural .cp-fase__art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(42, 39, 36, .14); background: #fff; }
html.st-mural .cp-fase__pe .cp-st i { color: #D8CDBB; text-shadow: none; }
html.st-mural .cp-fase__pe .cp-st i.on { color: var(--cp-gold-2); text-shadow: 0 1px 0 var(--cp-gold-4); -webkit-text-stroke: .6px var(--cp-gold-4); }
html.st-mural .cp-fase__agora { color: #fff; background: var(--cp-pink-2); box-shadow: 0 2px 0 var(--cp-pink-4); text-shadow: 0 1px 0 var(--cp-pink-4); }
html.st-mural .cp-fase--agora { --pino: var(--cp-pink-2); box-shadow: 0 0 0 3px var(--cp-pink-2), 0 12px 22px -8px var(--cp-pink-glow), 0 2px 3px rgba(0, 0, 0, .25); }
html.st-mural .cp-fase--feita { --pino: var(--cp-gold-2); }
html.st-mural .cp-fase--fechada { background: #D8CFC0; box-shadow: 0 6px 10px -8px rgba(0, 0, 0, .7); --pino: var(--cp-stone-2); }
html.st-mural .cp-fase--fechada .cp-fase__nome { color: #6E6254; }
html.st-mural .cp-fase--fechada .cp-fase__art { opacity: .45; filter: grayscale(1); }
html.st-mural .cp-fase--fechada .cp-fase__trava { color: #8A7C6B; }
html.st-mural .cp-fase--prova:not(.cp-fase--agora) { box-shadow: inset 0 0 0 2px rgba(214, 138, 12, .7), 0 10px 14px -8px rgba(0, 0, 0, .7), 0 2px 3px rgba(0, 0, 0, .25); }
html.st-mural .cp-fase--papel .cp-fase__pe::after { color: #8A7C6B; }
html.st-mural .cp-escudo { background: var(--st-papel); }
/* a fase que acabou de ir pro mural prega com animação */
html.st-mural .cp-fase.is-pregou { animation: stPregou .7s cubic-bezier(.3, 1.5, .5, 1) .15s both; }
html.st-mural .cp-fase.is-pregou::before { animation: stPino .45s ease-out .75s both; }
@keyframes stPregou { from { transform: translateY(-60px) rotate(-14deg) scale(1.15); opacity: 0; } to { transform: rotate(var(--giro)); opacity: 1; } }
@keyframes stPino { 0% { transform: scale(1.8); } 60% { transform: scale(.85); } 100% { transform: scale(1); } }

/* ============================================================
   A MESA DA FASE
   ============================================================ */
.st-play { display: none; flex-direction: column; }
.st-play.active { display: flex; }
.st-play > * { position: relative; z-index: 1; }
/* o topo em três partes: sair e a fase | o RELÓGIO no meio | as rodadas e o Pronto */
.st-topo {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 62px; padding: 8px 12px;
  background: linear-gradient(180deg, var(--cp-slab-top), var(--cp-slab)); box-shadow: 0 3px 0 var(--cp-edge), 0 8px 18px rgba(0, 0, 0, .35);
  color: var(--cp-text); z-index: 3;
}
.st-ic {
  flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px; cursor: pointer;
  color: var(--cp-text-dim); background: var(--cp-night); box-shadow: var(--cp-well-shadow);
}
.st-ic:hover { color: var(--cp-text); }
.st-ic svg { width: 20px; height: 20px; }
/* tudo na mesma linha (sem isso o relógio caía pra uma segunda linha) */
.st-topo > * { grid-row: 1; }
#st-sair { grid-column: 1; }
.st-topo__fase { grid-column: 2; min-width: 0; display: flex; align-items: center; gap: 8px; }
#st-relogio { grid-column: 3; }
#st-rodadas { grid-column: 4; justify-self: end; }
#st-pronto { grid-column: 5; }
.st-topo__fase .cp-cube { width: 34px; height: 38px; padding-top: 5px; font-size: 12px; }
.st-topo__nome { font: 400 18px/1.1 'Lilita One', 'Poppins', sans-serif; text-shadow: var(--cp-tx-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-rodadas { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; flex: 0 0 auto; }
.st-rodadas li { width: 10px; height: 10px; border-radius: 50%; background: var(--cp-night); box-shadow: 0 0 0 1.5px var(--cp-edge), inset 0 2px 0 rgba(0, 0, 0, .5); }
.st-rodadas li.is-feita { background: var(--cp-gold-2); }
.st-rodadas li.is-agora { background: var(--cp-text); transform: scale(1.25); }
/* o relógio: a pílula no meio do topo, os segundos escritos grandes e a
   barra esvaziando do lado. Nos últimos 5 s o número fica laranja e pulsa. */
.st-relogio {
  display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 99px;
  background: var(--cp-night); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .5), 0 0 0 2px var(--cp-edge), 0 2px 0 2px var(--cp-bevel-hi);
}
.st-relogio > b {
  min-width: 88px; padding: 7px 14px 6px; border-radius: 99px; text-align: center;
  font: 400 34px/1 'Lilita One', 'Poppins', sans-serif; font-variant-numeric: tabular-nums; color: var(--st-grafite);
  background: linear-gradient(180deg, #FFFDF6 0 40%, #EFE6D4 40%); box-shadow: 0 0 0 2px var(--cp-edge), 0 3px 0 2px var(--cp-edge);
}
.st-relogio__trilho { position: relative; width: 150px; height: 16px; border-radius: 99px; overflow: hidden; background: rgba(0, 0, 0, .35); box-shadow: inset 0 2px 0 rgba(0, 0, 0, .45); }
.st-relogio__trilho > i {
  position: absolute; inset: 0; transform-origin: left center; border-radius: 99px;
  background: linear-gradient(180deg, #FFFDF6 0 34%, #EADFC9 34%); transition: transform .1s linear;
}
.st-relogio.is-fim > b { color: #fff; background: linear-gradient(180deg, #FFB25E 0 40%, #FF8A1F 40%); text-shadow: 0 1px 0 #9A4A00; animation: stPulso .5s ease-in-out infinite alternate; }
.st-relogio.is-fim .st-relogio__trilho > i { background: linear-gradient(180deg, #FFD9A8 0 34%, #FF9A3C 34%); }
/* dos 10 aos 6 segundos: âmbar (atenção); nos últimos 5, laranja pulsando */
.st-relogio.is-pouco > b { color: #7A3E00; background: linear-gradient(180deg, #FFF1C9 0 40%, #FFD37A 40%); }
.st-relogio.is-pouco .st-relogio__trilho > i { background: linear-gradient(180deg, #FFE6A8 0 34%, #FFC83D 34%); }
.st-relogio.is-suave .st-relogio__trilho > i { background: linear-gradient(180deg, var(--cp-mat-1) 0 34%, var(--cp-mat-2) 34%); }
.st-relogio.is-livre { opacity: .35; }
.st-relogio.is-livre .st-relogio__trilho > i { transform: scaleX(0) !important; }
.st-relogio.is-livre > b { color: transparent; }
@keyframes stPulso { from { transform: scale(1); } to { transform: scale(1.1); } }

/* a barrinha de ferramentas da mesa (o mesmo desenho do Box): − ponto +,
   desfazer quando a fase deixa, enquadrar. Na borda esquerda do quadro. */
.st-ferr {
  position: absolute; left: 12px; top: 50%; z-index: 3; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 16px;
  background: var(--cp-slab-bg); box-shadow: inset 0 2px 0 var(--cp-bevel-hi), 0 0 0 2.5px var(--cp-edge), 0 4px 0 2.5px var(--cp-edge), 0 10px 22px rgba(0, 0, 0, .35);
}
.st-ferr[hidden] { display: none !important; }
.st-ferr__b {
  width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 11px; cursor: pointer;
  color: var(--cp-text-dim); background: transparent; -webkit-tap-highlight-color: transparent;
}
.st-ferr__b:hover { background: rgba(255, 222, 180, .12); color: var(--cp-text); }
.st-ferr__b:disabled { opacity: .35; cursor: default; }
.st-ferr__b[hidden] { display: none !important; }
.st-ferr__b svg { width: 22px; height: 22px; }
.st-ferr__b--sm { width: 34px; height: 28px; font: 400 22px/1 'Lilita One', 'Poppins', sans-serif; color: var(--cp-text); }
.st-ferr__ponto { height: 22px; display: grid; place-items: center; }
.st-ferr__ponto i { display: block; border-radius: 50%; background: var(--cp-text); box-shadow: 0 0 0 1.5px var(--cp-edge); transition: width .15s ease, height .15s ease; }
.st-ferr__sep { width: 24px; height: 2px; border-radius: 2px; background: rgba(255, 222, 180, .2); margin: 2px 0; }
.st-topo .cp-btn { min-height: 42px; font-size: 16px; padding: 0 14px; }
.st-topo .cp-btn[hidden] { display: none !important; }

.st-mesa { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 16px; padding: 16px; }
/* no computador o cartão do pedido FLUTUA em cima da folha infinita e dá pra
   arrastar pela alça (pedido do Lucas, 26/set); no celular ele mora em cima */
@media (min-width: 761px) {
  .st-mesa { display: block; position: relative; padding: 0; }
  .st-mesa > .st-quadro { position: absolute; inset: 8px; }
  .st-pedido { position: absolute; z-index: 15; left: var(--px, 92px); top: var(--py, 112px); width: 272px; max-height: calc(100% - 128px); }
  .st-pedido.is-arrastando { transform: rotate(0deg) scale(1.02); box-shadow: 0 24px 36px -12px rgba(0, 0, 0, .8), 0 2px 4px rgba(0, 0, 0, .3); }
}
.st-pedido__alca { position: absolute; left: 0; right: 40px; top: 0; height: 30px; cursor: grab; touch-action: none; z-index: 1; }
.st-pedido.is-arrastando .st-pedido__alca { cursor: grabbing; }
.st-pedido__min {
  position: absolute; right: 6px; top: 8px; z-index: 2; width: 30px; height: 26px; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 8px; cursor: pointer; color: #8A7C6B; background: transparent;
}
.st-pedido__min svg { width: 16px; height: 16px; }
.st-pedido__min:hover { background: var(--st-papel-2); color: var(--st-grafite); }
.st-pedido.is-min > :not(.st-pedido__alca):not(.st-pedido__min):not(.st-pedido__rot):not(.st-pedido__t) { display: none !important; }
.st-pedido.is-min .st-pedido__min svg path { d: path('M6 12h12M12 6v12'); }
@media (max-width: 760px) { .st-pedido__alca, .st-pedido__min { display: none; } }
/* o pedido é um papel preso com fita rosa */
.st-pedido {
  position: relative; align-self: start; padding: 26px 18px 16px; border-radius: 3px 3px 8px 8px;
  color: var(--st-grafite); background: var(--st-papel); transform: rotate(-.8deg);
  box-shadow: 0 14px 20px -12px rgba(0, 0, 0, .75), 0 2px 4px rgba(0, 0, 0, .3);
  max-height: 100%; overflow: auto;
}
.st-pedido::before {
  content: ''; position: absolute; left: 50%; top: -10px; width: 96px; height: 24px; margin-left: -48px; transform: rotate(-3deg);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 6px, transparent 6px 12px), color-mix(in srgb, var(--cp-marca-1, #E0357A) 88%, transparent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.st-pedido__rot { display: flex; align-items: center; gap: 6px; font: 700 11.5px/1 'Poppins', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8A7C6B; margin-bottom: 8px; }
.st-pedido__rot svg { width: 18px; height: 18px; color: var(--st-grafite); }
.st-pedido__t { font-family: 'Angela Notes', 'Caveat', cursive; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.05; color: var(--st-grafite); overflow-wrap: anywhere; }
.st-pedido__t.is-novo { animation: stNovo .32s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stNovo { from { transform: scale(.82); opacity: .2; } to { transform: none; opacity: 1; } }
.st-pedido__x { margin-top: 8px; font-size: 14px; line-height: 1.45; color: #4A433C; font-weight: 500; }
.st-pedido__x:empty { display: none; }
.st-pedido__foto { position: relative; margin-top: 12px; border-radius: 4px; overflow: hidden; background: #E9E1D3; }
.st-pedido__foto img { display: block; width: 100%; max-height: 38vh; object-fit: contain; background: #fff; }
.st-foto__some { position: absolute; left: 8px; top: 8px; padding: 5px 9px; border-radius: 99px; font: 700 12px/1 'Poppins', sans-serif; color: #fff; background: rgba(23, 13, 6, .8); }
.st-foto__some:empty { display: none; }
.st-pedido__foto.is-some img { animation: stSome .5s ease-in forwards; }
@keyframes stSome { to { opacity: 0; filter: blur(8px); } }
.st-foto__credito { display: block; padding: 5px 8px; font-size: 11px; color: #6E6254; }
.st-foto__credito a { color: inherit; }
.st-pedido__ex { margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed #D8CDBB; }
.st-pedido__ex svg { display: block; width: 100%; max-height: 130px; }
.st-pedido__ex span { display: block; margin-top: 4px; font-family: 'Angela Notes', 'Caveat', cursive; font-weight: 700; text-transform: uppercase; font-size: 16px; line-height: 1.1; color: var(--st-azul); }
.st-regras { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.st-regras:empty { display: none; }
.st-regras li { padding: 5px 9px; border-radius: 99px; font: 700 12px/1 'Poppins', sans-serif; color: #5A5046; background: var(--st-papel-2); box-shadow: inset 0 0 0 1.5px #D8CDBB; }
.st-pedido__botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.st-pedido__botoes:not(:has(:not([hidden]))) { display: none; }
/* a ajuda de trava (e o "Me dá um jeito") */
.st-ajuda { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #EAF3FC; box-shadow: inset 0 0 0 1.5px #B9D7F2; animation: stNovo .3s ease-out; }
.st-ajuda__t { font-family: 'Angela Notes', 'Caveat', cursive; font-weight: 700; text-transform: uppercase; font-size: 19px; line-height: 1.1; color: #2A5D8F; }
.st-ajuda__t span { font-family: 'Poppins', sans-serif; text-transform: none; font-size: 13px; font-weight: 600; color: #4A6E92; }
.st-meda { border: 0; cursor: pointer; padding: 8px 12px; border-radius: 10px; font: 700 14px/1 'Poppins', sans-serif; color: #fff; background: var(--cp-mat-3); box-shadow: 0 3px 0 var(--cp-mat-4); }
/* os links pequenos (trocar foto, ver de perto, espiar, salvar a folha) */
.st-link {
  display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 10px;
  font: 700 13.5px/1 'Poppins', sans-serif; color: var(--cp-text); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25);
}
.st-link svg { width: 17px; height: 17px; flex: 0 0 auto; }
.st-link:hover { background: rgba(255, 255, 255, .18); }
.st-link--escuro { color: var(--st-grafite); background: var(--st-papel-2); box-shadow: inset 0 0 0 1.5px #D8CDBB; }
.st-link--escuro:hover { background: #E8DFCD; }
.st-link:disabled { opacity: .45; cursor: default; }
/* a tinta: pingos de grafite, o gasto fica vazado */
.st-gotas { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.st-gotas__rot { font: 700 11px/1 'Poppins', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #8A7C6B; margin-right: 4px; }
.st-gotas i { width: 13px; height: 16px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: transparent; box-shadow: inset 0 0 0 2px #B9AE9C; transition: background .15s ease, transform .2s ease; }
.st-gotas i.on { background: var(--st-grafite); box-shadow: none; }
.st-gotas--mini { margin: 0 0 0 4px; gap: 3px; }
.st-gotas--mini i { width: 8px; height: 10px; }
.st-gotas--quadro { position: absolute; right: 24px; top: 70px; z-index: 9; margin: 0; padding: 8px 10px; border-radius: 12px; background: var(--st-papel); box-shadow: 0 0 0 2px var(--cp-edge), 0 8px 16px rgba(0, 0, 0, .4); }
.st-gotas--quadro i { width: 17px; height: 21px; }

/* o quadro: a tira de miniaturas em cima e o papel do motor embaixo */
.st-quadro { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.st-tira { flex: 0 0 auto; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 2px 4px; }
.st-tira__q {
  width: 46px; height: 34px; border-radius: 4px; display: grid; place-items: center; overflow: hidden; background: rgba(251, 248, 241, .18);
  box-shadow: inset 0 0 0 1.5px rgba(251, 248, 241, .35); font: 800 12px/1 'Poppins', sans-serif; color: var(--cp-text-dim);
}
.st-tira__q img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.st-tira__q.is-feito { box-shadow: 0 0 0 2px var(--cp-edge), 0 4px 8px rgba(0, 0, 0, .4); animation: stNovo .3s ease-out; }
.st-tira__q.is-agora { background: var(--st-papel); color: var(--cp-pink-2); box-shadow: 0 0 0 3px var(--cp-pink-2); }
/* a folha do Box (css/folha.css) ocupa o quadro; a folga é pra moldura rosa dela */
.st-quadro__papel { position: relative; flex: 1 1 auto; min-height: 0; display: flex; padding: 11px; }
#st-folha-mesa { flex: 1 1 0; }
.st-play.is-papel #st-folha-mesa { visibility: hidden; }
/* o botão de seguir: na folha é o rosa de baixo; o do topo só vale no papel e sobre a foto */
.st-play:not(.is-papel):not(.is-sobre) #st-pronto { display: none !important; }
/* o pedido dentro do quadro, clarinho; some no primeiro traço */
.st-noquadro {
  position: absolute; left: 50%; top: 14px; z-index: 3; transform: translateX(-50%); max-width: calc(100% - 120px);
  padding: 6px 14px 4px; border-radius: 8px; pointer-events: none; text-align: center;
  font-family: 'Angela Notes', 'Caveat', cursive; font-weight: 700; text-transform: uppercase; font-size: clamp(20px, 3vw, 30px); line-height: 1.05;
  color: rgba(42, 39, 36, .78); background: rgba(251, 248, 241, .78); box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  transition: opacity .4s ease, transform .4s ease;
}
.st-noquadro.is-some { opacity: 0; transform: translate(-50%, -8px); }
/* o aviso de "aqui não tem borracha" */
.st-aviso {
  position: absolute; left: 50%; bottom: 96px; z-index: 21; transform: translateX(-50%); max-width: calc(100% - 24px);
  padding: 10px 14px; border-radius: 12px; font: 700 14px/1.35 'Poppins', sans-serif; text-align: center; color: var(--st-grafite);
  background: var(--st-papel); box-shadow: 0 0 0 2px var(--cp-edge), 0 8px 18px rgba(0, 0, 0, .45); animation: cpAviso .25s cubic-bezier(.3, 1.4, .5, 1);
}

/* a revelação do fim da grade: a linha de fatos num papel, em cima dos desenhos */
.st-revela {
  position: absolute; left: 50%; bottom: 34px; z-index: 22; transform: translateX(-50%) rotate(-1deg); width: max-content; max-width: min(640px, calc(100% - 40px));
  padding: 14px 20px 12px; border-radius: 4px 4px 10px 10px; text-align: center; pointer-events: none;
  font-family: 'Angela Notes', 'Caveat', cursive; font-weight: 700; text-transform: uppercase; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.1;
  color: var(--st-grafite); background: var(--st-papel); box-shadow: 0 0 0 2px var(--cp-edge), 0 16px 26px -10px rgba(0, 0, 0, .7);
}
.st-revela[hidden] { display: none; }
/* na revelação o cartão sai da frente dos desenhos */
.st-play.is-revelando .st-pedido { opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.st-revela.is-entra { animation: stEntraR .4s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes stEntraR { from { transform: translateX(-50%) translateY(20px) rotate(-5deg) scale(.9); opacity: 0; } to { transform: translateX(-50%) rotate(-1deg); opacity: 1; } }
/* o tempo que sobrou quando ela toca Pronto antes ("+9 s") */
#st-relogio { position: relative; }
.st-ganhou {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); pointer-events: none; white-space: nowrap;
  padding: 4px 10px; border-radius: 99px; font: 800 14px/1 'Poppins', sans-serif; color: var(--cp-edge); background: var(--cp-gold-2);
  box-shadow: 0 0 0 2px var(--cp-edge); animation: stGanhou 1.25s ease-out forwards;
}
@keyframes stGanhou { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 18px); } }
/* a carta que ela já escolheu antes (o bicho dela) */
.st-carta.is-lembra { box-shadow: 0 0 0 3px var(--cp-gold-2), 0 12px 22px -8px rgba(0, 0, 0, .8); }
.st-carta__seu { display: block; margin-top: 4px; font: 800 11px/1 'Poppins', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--cp-gold-4); }
/* a comparação longa: o primeiro bicho dela e o de hoje */
.st-compara { margin-top: 16px; }
.st-compara__par { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.st-compara__par .st-folha__item img { aspect-ratio: auto; }
.st-compara__fato { margin-top: 10px; font-family: 'Angela Notes', 'Caveat', cursive; font-weight: 700; text-transform: uppercase; font-size: 22px; line-height: 1.1; color: var(--st-grafite); text-align: center; }
/* o caderno do mundo, no resultado da prova */
.st-caderno { margin: 14px 0; padding: 14px; border-radius: 12px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 2px rgba(255, 222, 180, .12); text-align: center; }
.st-caderno__t { font: 400 22px/1.1 'Lilita One', 'Poppins', sans-serif; color: var(--cp-text); text-shadow: var(--cp-tx-s); }
.st-caderno__minis { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.st-caderno__minis figure { margin: 0; width: 76px; }
.st-caderno__minis img { display: block; width: 76px; height: 57px; object-fit: cover; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px var(--cp-edge); }
.st-caderno__minis figcaption { margin-top: 3px; font: 700 11px/1 'Poppins', sans-serif; color: var(--cp-text-dim); }
.st-caderno__x { margin-top: 10px; font-family: 'Angela Notes', 'Caveat', cursive; font-weight: 700; text-transform: uppercase; font-size: 20px; color: var(--cp-gold-1); }

/* no papel: o quadro vira o desenho de como dividir a folha */
.st-papelmode { position: absolute; inset: 11px; z-index: 19; border-radius: 16px; display: grid; place-items: center; padding: 20px; background: var(--st-papel); color: var(--st-grafite); text-align: center; }
.st-papelmode__in { width: min(520px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.st-papelmode svg { width: min(360px, 90%); height: auto; }
.st-papelmode p { font-size: 15px; line-height: 1.5; font-weight: 600; color: #4A433C; }

/* a camada de cima do quadro: olhar a foto, escolher, as cartas */
.st-escolha { position: absolute; inset: 11px; z-index: 20; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow: auto; background: color-mix(in srgb, #170D06 90%, transparent); }
.st-escolha__t { font: 400 24px/1.1 'Lilita One', 'Poppins', sans-serif; color: var(--cp-text); text-shadow: var(--cp-tx-rosa-m, var(--cp-tx-s)); text-align: center; }
.st-escolha__x { color: var(--cp-text-dim); font-size: 14px; text-align: center; line-height: 1.45; }
.st-escolha__barra { display: flex; justify-content: center; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-escolha__grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; align-content: start; }
.st-escolha__op { position: relative; padding: 6px; border: 0; border-radius: 6px; cursor: pointer; background: var(--st-papel); box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .8); transition: transform .2s ease, box-shadow .2s ease; justify-self: center; }
.st-escolha__op img { display: block; width: 100%; height: auto; background: #fff; }
.st-escolha__op span { display: block; margin-top: 4px; font: 700 12px/1.2 'Poppins', sans-serif; color: #6E6254; text-align: left; }
.st-escolha__op:hover { transform: translateY(-3px) rotate(-1deg); }
/* a escolhida: moldura grossa ESCURA (rosa é só o quadrinho da vez) */
.st-escolha__op.is-sel { box-shadow: 0 0 0 5px var(--st-grafite), 0 12px 22px -8px rgba(0, 0, 0, .8); transform: scale(1.06); }
/* de longe: os quadrinhos minúsculos, como thumb de verdade; o tocado cresce */
.is-longe .st-escolha__grade { grid-template-columns: repeat(auto-fill, minmax(112px, 132px)); justify-content: center; gap: 16px; }
.is-longe .st-escolha__op { padding: 4px; }
.is-longe .st-escolha__op span { font-size: 11px; }
.is-longe .st-escolha__op.is-sel { transform: scale(1.3); z-index: 2; }
/* a altura vem do quadro (flex com altura definida), nunca da tela: foto em pé não vaza */
.st-olhar { flex: 1 1 0; min-height: 0; display: flex; gap: 12px; justify-content: center; align-items: stretch; }
.st-olhar figure { margin: 0; flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.st-olhar img { display: block; max-width: 100%; max-height: calc(100% - 26px); min-height: 0; object-fit: contain; border-radius: 4px; background: #fff; box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .8); }
/* a foto de guardar vai sumindo aos poucos (olhar de verdade, sem tempo morto) */
.st-olhar__foto img { animation: stGuarda var(--some, 12s) linear forwards; }
@keyframes stGuarda { 0%, 55% { opacity: 1; } 100% { opacity: .15; filter: blur(2px); } }
.st-olhar figcaption { font-size: 11.5px; color: var(--cp-text-dim); text-align: center; }
.st-olhar figcaption b { color: var(--cp-text); font-size: 13px; margin-right: 4px; }
.st-olhar__seu img { max-height: 70%; }
.st-olhar__acoes { display: flex; justify-content: center; }
.st-cartas { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; width: min(640px, 100%); margin: 6px auto 0; }
.st-carta {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px 12px; border: 0; border-radius: 4px 4px 8px 8px; cursor: pointer;
  color: var(--st-grafite); background: var(--st-papel); box-shadow: 0 12px 20px -10px rgba(0, 0, 0, .8); transition: transform .15s ease, box-shadow .15s ease;
}
.st-carta:nth-child(odd) { transform: rotate(-1.4deg); }
.st-carta:nth-child(even) { transform: rotate(1.2deg); }
.st-carta:hover { transform: translateY(-4px) rotate(0); }
.st-carta__art svg { width: 96px; height: auto; display: block; }
.st-carta__t { font-family: 'Angela Notes', 'Caveat', cursive; font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1.05; }
.st-carta.is-sel { box-shadow: 0 0 0 5px var(--st-grafite), 0 12px 22px -8px rgba(0, 0, 0, .8); transform: scale(1.05); }
/* os dados de ideia (2.4 e 4.2): a máquina de shared/dados-ideia.css na caixa de escolha */
.st-dados { width: min(640px, 100%); margin: 4px auto 0; color: var(--cp-text); }
.st-dados .adi__frase { font-size: clamp(17px, 2.6vw, 23px); }
.st-dados__vai { display: flex; justify-content: center; margin-top: 4px; }

/* a passagem: só quando a regra muda (e a abertura, com o tosco) */
.st-flash { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, #170D06 72%, transparent); animation: cpFade .12s ease-out; overflow: auto; }
.st-flash__papel { width: min(480px, 100%); padding: 26px 22px 22px; text-align: center; color: var(--st-grafite); background: var(--st-papel); border-radius: 4px 4px 10px 10px; transform: rotate(-1.2deg); box-shadow: 0 20px 30px -14px rgba(0, 0, 0, .85); animation: stEntra .28s cubic-bezier(.3, 1.4, .5, 1); }
.st-flash__n { font: 700 12px/1 'Poppins', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8A7C6B; }
.st-flash__t { margin-top: 10px; font-family: 'Angela Notes', 'Caveat', cursive; font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 7vw, 44px); line-height: 1.02; }
.st-flash__x { margin-top: 10px; font-size: 14px; line-height: 1.45; color: #4A433C; font-weight: 600; }
.st-flash__tosco { margin: 14px auto 0; padding-top: 12px; border-top: 1.5px dashed #D8CDBB; max-width: 320px; }
.st-flash__tosco svg { display: block; width: 100%; max-height: 150px; }
.st-flash__tosco span { display: block; margin-top: 4px; font-family: 'Angela Notes', 'Caveat', cursive; font-weight: 700; text-transform: uppercase; font-size: 17px; color: var(--st-azul); }
.st-flash__acoes { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; }
.st-flash .st-link { color: #6E6254; background: transparent; box-shadow: none; text-decoration: underline; }
@keyframes stEntra { from { transform: rotate(-6deg) scale(.86); opacity: 0; } to { transform: rotate(-1.2deg); opacity: 1; } }

/* ============================================================
   A FOLHA: o fim da fase
   ============================================================ */
.st-folha { position: absolute; inset: 0; z-index: 7; overflow: auto; padding: 18px 16px 130px; background: var(--st-cortica); background-color: #432B19; }
.st-folha__in { width: min(860px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.st-folha__t { text-align: center; font: 400 clamp(28px, 7vw, 40px)/1.05 'Lilita One', 'Poppins', sans-serif; color: var(--cp-text); text-shadow: var(--cp-tx-rosa, var(--cp-tx-l)); }
.st-folha__conta { text-align: center; font: 600 15px/1.3 'Poppins', sans-serif; color: var(--cp-text-dim); }
.st-folha__conta b { font: 400 22px/1 'Lilita One', 'Poppins', sans-serif; color: var(--cp-gold-2); text-shadow: var(--cp-tx-s); margin-right: 4px; }
.st-folha__x { text-align: center; color: var(--cp-text-dim); font-size: 14.5px; line-height: 1.5; font-weight: 600; }
.st-folha__papel { padding: 16px; border-radius: 4px 4px 10px 10px; background: var(--st-papel); color: var(--st-grafite); box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .85); }
.st-folha__papel:not(.st-folha__escolha) { transform: rotate(-.4deg); }
.st-folha__grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; align-items: start; }
.st-folha__item { margin: 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.st-folha__item img { display: block; width: 100%; height: auto; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(42, 39, 36, .16); }
.st-folha__item figcaption { font-family: 'Angela Notes', 'Caveat', cursive; font-weight: 700; text-transform: uppercase; font-size: 16px; line-height: 1.05; color: #4A433C; }
.st-folha__vazio { display: grid; place-items: center; aspect-ratio: 4 / 3; border: 2px dashed #D8CDBB; border-radius: 4px; font: 700 12px/1 'Poppins', sans-serif; color: #9C8D7A; }
.st-folha__grande, .st-folha__largo { grid-column: 1 / -1; }
.st-folha__grande img { max-height: 62vh; object-fit: contain; }
/* um grupo é uma comparação (antes e depois, desenho e foto): ocupa a linha toda, lado a lado */
.st-folha__grupo { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.st-folha__grupo > .st-folha__item { flex: 1 1 180px; max-width: 340px; }
.st-folha__grupo > .st-folha__grande { flex: 3 1 320px; max-width: none; }
.st-folha__grupo > .st-folha__foto { flex: 0 1 150px; }
.st-folha__foto img { max-height: 180px; object-fit: cover; }
.st-folha__mini { max-width: 150px; }
.st-folha__ferr { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.st-folha__escolha { display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s ease; }
.st-folha__escolha.is-pede { box-shadow: 0 0 0 4px var(--cp-pink-2), 0 18px 30px -14px rgba(0, 0, 0, .85); }
.st-folha__pergunta { font: 400 22px/1.1 'Lilita One', 'Poppins', sans-serif; color: var(--st-grafite); }
.st-folha__dica { font-size: 13.5px; color: #6E6254; font-weight: 600; text-align: center; }
.st-folha__escolha .st-escolha__op { box-shadow: 0 0 0 1.5px #D8CDBB, 0 8px 14px -8px rgba(0, 0, 0, .4); }
.st-folha__escolha .st-escolha__op.is-sel { box-shadow: 0 0 0 5px var(--st-grafite), 0 12px 22px -8px rgba(0, 0, 0, .5); }
.st-porque { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.st-porque p { flex-basis: 100%; text-align: center; font: 700 12px/1 'Poppins', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8A7C6B; }
.st-chip { border: 0; cursor: pointer; padding: 8px 12px; border-radius: 99px; font: 600 13px/1.1 'Poppins', sans-serif; color: var(--st-grafite); background: var(--st-papel-2); box-shadow: inset 0 0 0 1.5px #D8CDBB; }
.st-chip.is-sel { color: #fff; background: var(--st-grafite); box-shadow: none; }
.st-fotopapel { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.st-fotopapel__prev img { display: block; max-width: 100%; max-height: 50vh; border-radius: 4px; }
.st-folha__apagar { text-align: center; font-size: 13.5px; line-height: 1.45; color: var(--cp-text-dim); font-weight: 600; font-style: italic; }

.st-confere { padding: 16px 16px 18px; border-radius: 18px; background: var(--cp-slab-bg); box-shadow: var(--cp-slab-shadow); display: flex; flex-direction: column; gap: 10px; transition: opacity .3s ease; }
.st-confere.is-feito { opacity: .65; }
.st-confere__topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st-confere__t { font: 400 20px/1.2 'Lilita One', 'Poppins', sans-serif; color: var(--cp-text); text-shadow: var(--cp-tx-s); }
.st-confere__st { display: inline-flex; gap: 4px; font-size: 26px; line-height: 1; }
.st-confere__st i { font-style: normal; color: var(--cp-night); text-shadow: 0 1px 0 var(--cp-bevel-hi), 0 -1px 0 rgba(0, 0, 0, .6); }
.st-confere__st i.on { color: var(--cp-gold-2); text-shadow: var(--cp-tx-s); }
.st-confere__st i.pop { animation: cpStar .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.st-confere__x { font-size: 13.5px; line-height: 1.45; color: var(--cp-text-dim); font-weight: 600; }
.st-item {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  background: var(--cp-night); box-shadow: var(--cp-well-shadow); color: var(--cp-text); font-size: 15px; font-weight: 600; line-height: 1.4;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.st-item input { position: absolute; opacity: 0; pointer-events: none; }
.st-item__caixa { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--st-papel); box-shadow: inset 0 2px 0 rgba(0, 0, 0, .15), 0 0 0 2px var(--cp-edge); color: transparent; }
.st-item__caixa svg { width: 22px; height: 22px; }
.st-item input:checked + .st-item__caixa { color: var(--st-grafite); }
.st-item input:checked + .st-item__caixa svg { animation: stRisca .22s ease-out; }
.st-item input:focus-visible + .st-item__caixa { outline: 3px solid #fff; outline-offset: 2px; }
@keyframes stRisca { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* o resultado ali mesmo, depois do "Pronto, conferi" */
.st-resultado { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 6px 0 4px; animation: cpOpen .25s ease-out; }
.st-resultado__t { font: 400 clamp(30px, 7vw, 42px)/1 'Lilita One', 'Poppins', sans-serif; color: var(--cp-text); text-shadow: var(--cp-tx-rosa, var(--cp-tx-l)); }
.st-resultado__x { font-size: 14px; color: var(--cp-text-dim); }
.st-resultado .cp-premio, .st-resultado .cp-painel { width: 100%; }
.st-amanha { width: 100%; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 4px 4px 10px 10px; text-align: left; color: var(--st-grafite); background: var(--st-papel); box-shadow: 0 14px 22px -12px rgba(0, 0, 0, .85); transform: rotate(.6deg); }
.st-amanha__rot { font: 700 12px/1 'Poppins', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #8A7C6B; }
.st-amanha b { font: 400 21px/1.15 'Lilita One', 'Poppins', sans-serif; }
.st-amanha span:last-child { font-size: 13.5px; line-height: 1.45; color: #4A433C; }
.st-folha__acoes {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; justify-content: center; align-items: center; gap: 12px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--cp-edge) 92%, transparent) 34%);
}
.st-folha__acoes .cp-btn--go { flex: 0 1 360px; min-height: 58px; }
.st-folha__acoes .cp-btn--go svg { width: 22px; height: 22px; }

/* ============================================================
   CELULAR
   ============================================================ */
@media (max-width: 760px) {
  .st-mesa { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 10px; padding: 10px; }
  .st-pedido { transform: none; padding: 14px 14px 10px; max-height: 30vh; }
  .st-pedido::before { width: 70px; height: 18px; margin-left: -35px; top: -7px; }
  .st-pedido__t { font-size: 25px; }
  .st-pedido__x { margin-top: 4px; font-size: 13px; }
  .st-pedido__foto img { max-height: 20vh; }
  .st-pedido__ex svg { max-height: 90px; }
  .st-regras { margin-top: 8px; }
  .st-topo { gap: 8px; padding: 6px 8px; min-height: 52px; }
  .st-topo__nome { font-size: 15px; }
  .st-rodadas { display: none; }
  .st-relogio { gap: 6px; padding: 3px 8px 3px 3px; }
  .st-relogio > b { min-width: 66px; font-size: 26px; padding: 5px 9px 4px; }
  .st-relogio__trilho { width: 52px; height: 11px; }
  /* a barrinha desce pro pé do quadro, deitada (como no Box) */
  .st-ferr { top: auto; bottom: 10px; left: 10px; transform: none; flex-direction: row; padding: 4px; gap: 2px; }
  .st-ferr__b { width: 38px; height: 38px; }
  .st-ferr__b--sm { width: 30px; height: 30px; }
  .st-ferr__ponto { width: 26px; height: 30px; }
  .st-ferr__sep { width: 2px; height: 22px; margin: 0 2px; }
  .st-aviso { bottom: auto; top: 58px; }
  /* com foto, o cartão fica deitado: o texto de um lado, a foto do outro */
  .st-pedido.tem-foto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%); column-gap: 12px; align-items: start; }
  .st-pedido.tem-foto > :not(.st-pedido__foto) { grid-column: 1; }
  .st-pedido.tem-foto .st-pedido__foto { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; }
  .st-pedido.tem-foto .st-pedido__foto img { max-height: 22vh; }
  .st-pedido.tem-foto .st-pedido__t { font-size: 22px; }
  .st-topo .cp-btn { min-height: 40px; font-size: 15px; padding: 0 12px; }
  .st-tira__q { width: 34px; height: 26px; font-size: 11px; }
  .st-tira { gap: 5px; }
  .st-noquadro { max-width: calc(100% - 90px); top: 10px; font-size: 20px; }
  .st-cartas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-carta__art svg { width: 72px; }
  .st-carta__t { font-size: 20px; }
  .st-olhar { gap: 8px; }
}
@media (max-width: 420px) {
  .st-topo__fase .cp-cube { display: none; }
  .st-folha__grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .st-escolha__grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .is-longe .st-escolha__grade { grid-template-columns: repeat(3, minmax(0, 100px)); }
  .st-story { padding: 36px 14px 16px; }
  .st-story__corpo { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; }
  .st-story .cp-escudo { width: 62px; height: 62px; }
  .st-folha__grupo > .st-folha__item { flex-basis: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-flash__papel, .st-relogio.is-fim > i, .st-item input:checked + .st-item__caixa svg, .st-pedido__t.is-novo, .st-olhar__foto img,
  html.st-mural .cp-fase.is-pregou, html.st-mural .cp-fase.is-pregou::before, .st-confere__st i.pop { animation: none; }
  html.st-mural .cp-fase { transform: none; }
}

/* ============================================================
   O MODO CONFIGURAÇÃO (?config): as referências escolhidas à dedo
   (js/trilha-refs.js). Tela do Lucas, não do aluno.
   ============================================================ */
.st-refs { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; background: var(--st-cortica); background-color: #432B19; color: var(--cp-text); }
.st-refs__topo { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 16px; background: linear-gradient(180deg, var(--cp-slab-top), var(--cp-slab)); box-shadow: 0 3px 0 var(--cp-edge); }
.st-refs__t { font: 400 24px/1.1 'Lilita One', 'Poppins', sans-serif; text-shadow: var(--cp-tx-s); }
.st-refs__x { margin-top: 3px; font-size: 13px; color: var(--cp-text-dim); max-width: 620px; }
.st-refs__acoes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-refs__conta { font: 600 13px/1.3 'Poppins', sans-serif; color: var(--cp-text-dim); }
.st-refs__sujo { font: 700 12px/1 'Poppins', sans-serif; color: var(--cp-gold-2); }
.st-refs__sujo[hidden] { display: none; }
.st-refs__link { border: 0; background: none; padding: 0; color: var(--cp-gold-2); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.st-refs__corpo { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 14px; padding: 14px; }
.st-refs__lista { min-height: 0; overflow: auto; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.st-refs__lista input { width: 100%; margin-bottom: 8px; padding: 9px 12px; border-radius: 10px; border: 0; font: 600 14px/1 'Poppins', sans-serif; color: var(--cp-text); background: rgba(0, 0, 0, .35); }
.st-refs__g { margin: 12px 4px 6px; font: 700 11px/1 'Poppins', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--cp-text-dim); }
.st-refs__li { position: relative; display: block; width: 100%; text-align: left; padding: 8px 34px 8px 10px; margin-bottom: 3px; border: 0; border-radius: 9px; cursor: pointer; color: var(--cp-text); background: transparent; font: 600 13.5px/1.25 'Poppins', sans-serif; }
.st-refs__li small { display: block; font-size: 11px; color: var(--cp-text-dim); font-weight: 500; }
.st-refs__li b { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; font: 800 11px/1 'Poppins', sans-serif; color: var(--cp-edge); background: var(--cp-gold-2); }
.st-refs__li:hover { background: rgba(255, 222, 180, .08); }
.st-refs__li.is-sel { background: rgba(255, 222, 180, .16); box-shadow: inset 3px 0 0 var(--cp-pink-2); }
.st-refs__item { min-height: 0; overflow: auto; padding: 16px; border-radius: 14px; background: var(--st-papel); color: var(--st-grafite); }
.st-refs__nome { font: 400 24px/1.1 'Lilita One', 'Poppins', sans-serif; }
.st-refs__dica { margin-top: 6px; font-size: 13px; color: #5A5046; }
.st-refs__dica code { padding: 1px 6px; border-radius: 6px; background: var(--st-papel-2); font-size: 12.5px; }
.st-refs__sub { margin-top: 14px; font: 700 12px/1 'Poppins', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8A7C6B; }
.st-refs__esc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.st-refs__esc figure { position: relative; margin: 0; }
.st-refs__esc img { display: block; height: 110px; width: auto; border-radius: 6px; box-shadow: 0 0 0 3px var(--st-grafite); }
.st-refs__esc button { position: absolute; right: -8px; top: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; font: 800 16px/1 'Poppins', sans-serif; color: #fff; background: var(--st-grafite); }
.st-refs__vazio { font-size: 13.5px; color: #8A7C6B; }
.st-refs__busca { display: flex; gap: 8px; margin-top: 16px; }
.st-refs__busca input { flex: 1 1 auto; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 2px solid #D8CDBB; font: 600 14px/1 'Poppins', sans-serif; color: var(--st-grafite); background: #fff; }
.st-refs__res { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.st-refs__foto { position: relative; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #E9E1D3; aspect-ratio: 1; }
.st-refs__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-refs__foto span { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 15px/1 'Poppins', sans-serif; color: #fff; background: var(--cp-pink-2); }
.st-refs__foto.is-on { box-shadow: 0 0 0 4px var(--cp-pink-2); }
.st-refs__mais { display: flex; justify-content: center; margin-top: 12px; }
.st-refs__mais [hidden] { display: none; }
@media (max-width: 760px) {
  .st-refs__corpo { grid-template-columns: minmax(0, 1fr); grid-template-rows: 34vh minmax(0, 1fr); padding: 10px; gap: 10px; }
  .st-refs__res { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
}

/* o tempo na folha: a barra no alto do papel (esvazia junto com a pílula) e,
   nos últimos 5 segundos, o número grande no canto */
.st-tempo { position: absolute; left: 34px; right: 34px; top: 11px; height: 8px; z-index: 8; border-radius: 0 0 8px 8px; overflow: hidden; pointer-events: none; background: rgba(42, 39, 36, .12); }
.st-tempo[hidden], .st-contagem[hidden] { display: none; }
.st-tempo > i { position: absolute; inset: 0; transform-origin: left center; background: rgba(42, 39, 36, .72); transition: transform .1s linear, background .2s ease; }
.st-tempo.is-pouco > i { background: #F0A92A; }
.st-tempo.is-fim > i { background: #FF8A1F; animation: stTempoFim .5s ease-in-out infinite alternate; }
@keyframes stTempoFim { from { opacity: 1; } to { opacity: .55; } }
.st-contagem {
  position: absolute; right: 44px; top: 112px; z-index: 8; pointer-events: none;
  font: 400 110px/1 'Lilita One', 'Poppins', sans-serif; color: #FF8A1F; opacity: .9;
  text-shadow: 0 4px 0 #9A4A00, 0 10px 24px rgba(0, 0, 0, .25); -webkit-text-stroke: 3px #7A3E00;
}
.st-contagem.is-pula { animation: stContagem .9s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stContagem { 0% { transform: scale(1.6); opacity: 0; } 25% { transform: scale(1); opacity: .95; } 100% { transform: scale(.92); opacity: .75; } }
@media (max-width: 760px) {
  .st-tempo { left: 22px; right: 22px; height: 7px; }
  .st-contagem { right: 26px; top: 64px; font-size: 76px; -webkit-text-stroke: 2px #7A3E00; }
}
@media (prefers-reduced-motion: reduce) { .st-tempo.is-fim > i, .st-contagem.is-pula { animation: none; } }
