/* Creating the captain: one question per page over the night sea, then the awakening. The card is frosted night
   glass with a pewter edge; the type is the house's (IM Fell for titles, the text face for the rest). */
html.em-criacao, html.em-criacao body { background: #071823; }
.criacao { position: fixed; inset: 0; overflow: hidden auto; }
.cr-mar, .cr-placa, .cr-veu { position: fixed; inset: 0; width: 100%; height: 100%; }
.cr-placa { background: center / cover no-repeat; opacity: 0; transition: opacity .9s ease; }
.cr-placa.vista { opacity: 1; }
/* a quiet dark under the card's half of the screen, so the words always read */
.cr-veu { background: linear-gradient(180deg, rgba(5, 17, 24, .1) 0%, rgba(5, 17, 24, .35) 45%, rgba(5, 17, 24, .7) 100%); pointer-events: none; }

.cr-passos { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cr-passos li { width: 26px; height: 4px; border-radius: 2px; background: rgba(217, 232, 227, .22); transition: background-color .4s ease, width .4s ease; }
.cr-passos li.feito { background: rgba(140, 199, 194, .7); }
.cr-passos li.agora { width: 40px; background: var(--perola); }

.cr-palco { position: relative; z-index: 1; min-height: 100%; display: flex; align-items: safe flex-end; justify-content: center;
  padding: 64px 16px max(24px, env(safe-area-inset-bottom)); outline: none; }
@media (min-width: 900px) { .cr-palco { align-items: safe center; padding: 72px 24px 48px; } }

.cr-cartao {
  width: min(560px, 100%); padding: 26px 22px 22px; display: grid; gap: 14px;
  border: 1px solid rgba(203, 196, 180, .28); border-radius: 18px 22px 20px 16px;
  background: linear-gradient(180deg, rgba(14, 40, 52, .78), rgba(8, 26, 36, .86));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(239, 230, 218, .08);
  backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1);
}
@media (min-width: 900px) { .cr-cartao { padding: 34px 34px 28px; gap: 16px; } }
.cr-aviso { font: italic 15px/1.4 var(--letra-titulo); color: var(--espuma); padding-bottom: 10px; border-bottom: 1px solid rgba(203, 196, 180, .18); }
.cr-numero { font: 600 13px/1 var(--letra-meta); letter-spacing: .14em; text-transform: uppercase; color: var(--espuma); }
.cr-cartao h1 { font-size: clamp(28px, 7vw, 40px); text-wrap: balance; }
.cr-cartao h1:focus-visible { outline: none; box-shadow: none; }
.cr-sub { color: var(--nevoa-baixa); text-wrap: pretty; }

.cr-campo { display: grid; gap: 6px; }
.cr-campo label { font-size: 16px; color: var(--perola); }
.cr-campo textarea.campo { resize: vertical; min-height: 112px; }
.cr-campo .campo { background: rgba(5, 17, 24, .6); }
.cr-campo .campo[aria-invalid="true"] { border-color: var(--lilas); }
.cr-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cr-ex { font-size: 15px; font-style: italic; color: var(--nevoa-baixa); }
.cr-conta { font: 13px/1 var(--letra-meta); color: var(--nevoa-baixa); white-space: nowrap; }
.cr-erro { padding: 10px 12px; border-left: 3px solid var(--lilas); border-radius: 4px; background: rgba(185, 166, 201, .12); color: var(--perola); }
.cr-acoes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 4px; }
.cr-acoes .botao { min-width: 150px; }

/* the crews: watercolour cards on paper (the nymphs' style), like a small deck; the chosen one is lifted and edged */
.cr-cartas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .cr-cartas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cr-carta { position: relative; display: grid; grid-template-rows: auto 1fr; padding: 0; text-align: left; cursor: pointer; overflow: hidden;
  border: 1px solid rgba(190, 148, 64, .35); border-radius: 10px 12px 11px 9px; background: #F4EEE3; color: #2A3238;
  font: 14px/1.3 var(--letra-texto); box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease; }
.cr-carta-arte { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.cr-carta-texto { display: grid; gap: 2px; padding: 8px 10px 10px; }
.cr-carta strong { font: 400 18px/1.15 var(--letra-titulo); color: #1F2930; }
.cr-carta-texto span { color: #4D5A60; }
.cr-carta:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .4); }
.cr-carta:active { transform: translateY(-1px) scale(.985); }
.cr-carta[aria-pressed="true"] { transform: translateY(-5px); border-color: #BE9440;
  box-shadow: 0 0 0 2px #E6C46E, 0 12px 28px rgba(0, 0, 0, .45), 0 0 34px rgba(230, 196, 110, .25); }
.cr-carta[aria-pressed="true"]::after { content: ''; position: absolute; top: 8px; right: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: #E6C46E; box-shadow: 0 0 10px 3px rgba(230, 196, 110, .7); }
.cr-carta:focus-visible { outline: 2px solid var(--espuma); outline-offset: 3px; }

/* the awakening */
.cr-acordado { text-align: center; }
.cr-acordado .cr-acoes { justify-content: center; }
.cr-quem { color: var(--nevoa-baixa); text-wrap: pretty; }
.cr-citacao { margin: 4px 0 0; padding: 0; font: italic 400 clamp(20px, 5vw, 24px)/1.45 var(--letra-titulo); color: var(--perola); min-height: 3em; text-wrap: balance; }
.cr-pintura { font-size: 15px; font-style: italic; color: var(--nevoa-baixa); }
.cr-fala::before { content: '“'; } .cr-fala:not(:empty)::after { content: '”'; }

@media (prefers-reduced-motion: reduce) {
  .cr-placa, .cr-passos li, .cr-carta { transition: none; }
  .cr-carta:hover, .cr-carta[aria-pressed="true"] { transform: none; }
}

/* the crews need room: the card is wider on that page */
.cr-cartao:has(.cr-cartas) { width: min(880px, 100%); }

.cr-quantas { font: 13px/1 var(--letra-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--espuma); }
.cr-carta.cheia { opacity: .55; }
.cr-carta.cheia:hover { opacity: .8; }

.cr-som { position: fixed; z-index: 3; top: max(10px, env(safe-area-inset-top)); right: 12px; background: rgba(5, 17, 24, .45); }
@media (max-width: 899px) { .cr-passos { left: 16px; transform: none; } }
