@font-face {
  font-family: OswaldJack;
  src: url("oswald.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: BarlowMesa;
  src: url("barlow.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: BarlowMesa;
  src: url("barlowsemi.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0A1208;
  --lime: #B8FF2E;
  --jack: #111111;
  --leaf: #D8E8C4;
  --mute: #6E7A58;
  --felt: #141A12;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

html, body {
  min-height: 100%;
  background: var(--ink);
  color: var(--leaf);
  font-family: BarlowMesa, "Segoe UI", sans-serif;
  overflow: hidden;
}

html, body, input, textarea, button {
  -webkit-text-decoration-skip: none;
  text-decoration-skip-ink: none;
}

::spelling-error { text-decoration: none; }
::grammar-error { text-decoration: none; }
::selection { background: var(--lime); color: var(--ink); }

button, a, u, em, strong, h1, h2, h3, p, span, li, small, b, dt, dd {
  text-decoration: none;
}

img { display: block; max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

[hidden] { display: none !important; }

.slash-field {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(148deg, rgba(10,18,8,.28), rgba(17,17,17,.72)),
    url("slash.webp") center / cover no-repeat;
  pointer-events: none;
}

.slash-field.dim { opacity: .5; }
.slash-field.room { opacity: .9; }

.veil {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: start center;
  align-content: start;
  overflow: auto;
  z-index: 8;
  background: var(--ink);
  padding: calc(18px + env(safe-area-inset-top)) 0 calc(20px + env(safe-area-inset-bottom));
}

#splash.veil {
  place-items: center;
  align-content: center;
  overflow: hidden;
}

.splash-core,
.naipe-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(92vw, 42rem);
  padding: 0 12px;
}

.splash-mark {
  width: min(44vw, 168px);
  filter: drop-shadow(0 10px 24px rgba(184,255,46,.28));
}

.kicker {
  margin-top: 14px;
  font-size: .68rem;
  letter-spacing: .16em;
  word-spacing: .28em;
  text-transform: uppercase;
  color: var(--lime);
}

h1, h2 {
  font-family: OswaldJack, Impact, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  word-spacing: .18em;
  color: var(--lime);
}

h1 {
  font-size: clamp(2rem, 8vw, 3.4rem);
  margin-top: 6px;
}

h2 {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  margin: 6px 0 10px;
}

.splash-line,
.lead,
.note,
.hub-kicker,
.hub-foot {
  line-height: 1.5;
}

.splash-line { color: var(--leaf); margin-top: 6px; }

.splash-bar {
  display: block;
  width: 140px;
  height: 3px;
  margin-top: 22px;
  background: var(--jack);
  overflow: hidden;
  transform: skewX(-28deg);
}

.splash-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  animation: slashfill 1.5s linear forwards;
}

@keyframes slashfill {
  to { width: 100%; }
}

.naipe-pips {
  display: flex;
  gap: 8px;
  list-style: none;
  margin-bottom: 16px;
}

.naipe-pips li {
  width: 28px;
  height: 8px;
  background: var(--jack);
  transform: skewX(-32deg);
  box-shadow: inset 0 0 0 1px rgba(184,255,46,.25);
}

.naipe-pips li.on { background: var(--lime); }

.naipe-sheet {
  width: 100%;
}

.lead {
  color: var(--leaf);
  margin: 0 auto 16px;
  max-width: 34rem;
  word-spacing: .12em;
}

.note {
  color: var(--mute);
  font-size: .9rem;
  margin-top: 12px;
}

.flip-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  perspective: 720px;
}

.flip-tile {
  width: min(38vw, 148px);
  height: min(46vw, 176px);
  position: relative;
  transform-style: preserve-3d;
  transition: transform .45s ease;
}

.flip-tile.is-up { transform: rotateY(180deg); }

.flip-back,
.flip-front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
  background: var(--jack);
  box-shadow: inset 0 0 0 2px var(--lime);
}

.flip-front { transform: rotateY(180deg); }
.flip-back i {
  width: 42%;
  height: 42%;
  background: var(--lime);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.flip-tile img { width: 54%; }
.flip-tile b {
  font-family: OswaldJack, sans-serif;
  color: var(--lime);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cta,
.act,
.back {
  font-family: OswaldJack, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  padding: 12px 22px;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  margin-top: 18px;
}

.cta:disabled {
  opacity: .35;
  cursor: default;
}

.choices {
  display: grid;
  gap: 10px;
  width: min(100%, 28rem);
  margin: 0 auto;
}

.choices button {
  text-align: left;
  padding: 12px 14px;
  background: var(--jack);
  color: var(--leaf);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(184,255,46,.35);
}

.choices button.is-right {
  background: var(--lime);
  color: var(--ink);
}

.choices button.is-wrong {
  opacity: .45;
}

#club {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: var(--ink);
}

.mast {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 10px;
}

.mast img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.mast p {
  font-size: .52rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mast strong {
  font-family: OswaldJack, sans-serif;
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lime);
}

.tally {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.tally div {
  min-width: 48px;
  padding: 6px 8px 4px;
  background: var(--jack);
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  text-align: center;
}

.tally dt {
  font-size: .55rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

.tally dd {
  font-family: OswaldJack, sans-serif;
  font-size: 1.15rem;
  color: var(--lime);
}

.hub {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px calc(18px + env(safe-area-inset-bottom));
}

.hub-kicker,
.hub-foot {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
}

.hub-foot { margin-top: 18px; max-width: 22rem; line-height: 1.45; }

.diag {
  --cut: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: 14px 10px;
  width: min(94vw, 34rem);
  margin-top: 16px;
  transform: skewY(-7deg);
}

.laje {
  position: relative;
  min-height: 138px;
  padding: 18px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background:
    linear-gradient(160deg, rgba(184,255,46,.12), rgba(17,17,17,.2)),
    var(--jack);
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  box-shadow: inset 0 0 0 2px rgba(184,255,46,.55);
  transform: skewX(-10deg);
}

.laje:nth-child(n+4) {
  transform: skewX(-10deg) translateX(10%);
}

.laje img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  transform: skewX(10deg) skewY(7deg);
}

.laje em,
.laje small {
  transform: skewX(10deg) skewY(7deg);
  text-align: center;
}

.laje em {
  font-family: OswaldJack, sans-serif;
  font-style: normal;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lime);
}

.laje small {
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}

.laje:hover,
.laje.is-lit {
  box-shadow: inset 0 0 0 3px var(--lime), 0 0 18px rgba(184,255,46,.22);
}

.pane {
  position: fixed;
  inset: 0;
  z-index: 4;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(10,18,8,.55), rgba(17,17,17,.78)),
    url("felt.webp") center / cover;
  display: flex;
  flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
}

.pane.is-in { animation: panein .36s ease; }

@keyframes panein {
  from { transform: translate(18px, -12px) skewX(-4deg); }
  to { transform: none; }
}

.back {
  align-self: flex-start;
  margin-top: 0;
  margin-bottom: 10px;
}

.pane-body {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.pane-body .lead,
.pane-body .note { width: min(100%, 36rem); }

.fan-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 148px;
  width: 100%;
  max-width: 520px;
  padding: 0 6px;
}

.leaf {
  width: 56px;
  height: 88px;
  margin: 0 -4px;
  border-radius: 8px;
  background:
    url("card.webp") center 72% / 34px no-repeat,
    var(--jack);
  box-shadow: 0 0 0 1px var(--lime), 0 10px 16px rgba(0,0,0,.35);
  color: var(--lime);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 5px 10px;
  transform: rotate(var(--tilt)) translateY(var(--lift));
  transition: transform .2s ease;
}

.leaf.is-hold {
  transform: rotate(var(--tilt)) translateY(calc(var(--lift) - 16px));
  box-shadow: 0 0 0 2px var(--lime), 0 0 16px rgba(184,255,46,.3);
}

.leaf .rk {
  font-family: OswaldJack, sans-serif;
  font-size: 1.05rem;
  line-height: 1;
}

.leaf .su {
  font-size: .58rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.leaf.copas, .leaf.ouros { color: var(--lime); }
.leaf.espadas, .leaf.paus { color: var(--leaf); }

.acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 28rem);
}

.stats div {
  background: var(--jack);
  padding: 10px 6px;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.stats b {
  font-family: OswaldJack, sans-serif;
  font-size: 1.4rem;
  color: var(--lime);
}

.stats p {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}

.escala {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(100%, 34rem);
}

.post {
  min-height: 148px;
  padding: 12px 10px;
  background: var(--jack);
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(184,255,46,.4);
  text-align: left;
}

.post.is-on {
  box-shadow: inset 0 0 0 2px var(--lime);
}

.post img { width: 36px; height: 36px; object-fit: contain; }
.post strong {
  display: block;
  font-family: OswaldJack, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 6px 0 4px;
}
.post span { font-size: .82rem; color: var(--leaf); line-height: 1.4; }

.noite-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 28rem;
  transform: skewY(-6deg);
}

.noite-laje {
  flex: 1;
  min-height: 110px;
  background: var(--jack);
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
  box-shadow: inset 0 0 0 2px rgba(184,255,46,.4);
  display: grid;
  place-items: center;
}

.noite-laje img { width: 48px; opacity: 0; transition: opacity .2s ease; }
.noite-laje.is-lime img,
.noite-laje.is-show img { opacity: 1; }
.noite-laje.is-miss { opacity: .35; }
.noite-laje.is-hit {
  box-shadow: inset 0 0 0 3px var(--lime), 0 0 16px rgba(184,255,46,.28);
}

.selo-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 6px;
}

.selo-row i {
  width: 18px;
  height: 18px;
  background: var(--jack);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: inset 0 0 0 1px rgba(184,255,46,.35);
}

.selo-row i.on { background: var(--lime); }

.livro {
  width: min(100%, 28rem);
  text-align: left;
  display: grid;
  gap: 8px;
}

.livro li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--jack);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.livro b { color: var(--lime); font-family: OswaldJack, sans-serif; }

.verso {
  font-family: OswaldJack, sans-serif;
  font-size: 1.2rem;
  color: var(--lime);
  max-width: 22rem;
}

@media (max-width: 420px) {
  .laje { min-height: 112px; padding: 12px 6px; }
  .laje img { width: 36px; height: 36px; }
  .laje em { font-size: .92rem; }
  .leaf { width: 58px; height: 92px; }
}

@media (min-width: 820px) {
  .diag { width: min(88vw, 44rem); }
  .laje { min-height: 168px; }
}
