/* A identidade do projeto aparece dentro do diário. */
[hidden] {
  display: none !important;
}
/* Rasgos em pixels: o recorte não cresce junto com a altura do conteúdo. */
.torn {
  clip-path: none;
  --paper-edges:
    linear-gradient(#000 0 0) center / calc(100% - 12px) calc(100% - 12px) no-repeat,
    url('../textures/paper-top.svg') top left / 64px 6px repeat-x,
    url('../textures/paper-bottom.svg') bottom left / 64px 6px repeat-x,
    url('../textures/paper-left.svg') top left / 6px 64px repeat-y,
    url('../textures/paper-right.svg') top right / 6px 64px repeat-y;
  -webkit-mask: var(--paper-edges);
  mask: var(--paper-edges);
}
.inner-hero {
  justify-content: center;
}
.nav .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.nav .brand-symbol {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  background: var(--ink);
  mask: url('../projects/tcg/simbolo-header.svg') center / contain no-repeat;
}
.nav .brand-name {
  color: var(--ink);
}
.nav-toggle {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px;
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
}
.menu-burger {
  display: block;
  margin: auto;
}
.tcg-card-cover img {
  width: 65%;
  height: 80%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.brand-card-cover:not(.tcg-card-cover) img {
  width: 80%;
  height: 90%;
  object-fit: contain;
}
.brand-card-cover::before,
.brand-card-cover::after {
  display: none;
}
.cover-light strong {
  color: var(--ink);
  text-shadow: none;
}
.tcg-card-cover::before,
.tcg-card-cover::after,
.tcg-case-cover::before {
  display: none;
}
.tcg-case-cover {
  background: #333333;
}
.tcg-case-cover strong {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.tcg-case-cover img {
  width: min(65vw, 360px);
  max-height: 90%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.tcg-margin-note {
  border-left: 3px solid var(--red);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
}
.tcg-margin-note p:last-child {
  margin-bottom: 0;
}
.tcg-evolution {
  margin: 36px 0 0;
}
.tcg-evolution img {
  display: block;
  width: 100%;
  height: auto;
  background: white;
}
.tcg-evolution figcaption {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.5;
}
.tcg-palette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.tcg-swatch {
  padding: 28px 20px;
  border: 1px solid #333333;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tcg-swatch-dark {
  background: #333333;
  color: #ffffff;
}
.tcg-swatch-light {
  background: #ffffff;
  color: #333333;
}
.tcg-symbol-stage {
  display: flex;
  justify-content: center;
  background: #ffffff;
  padding: 28px;
  margin: 35px 0;
}
.tcg-symbol-stage img {
  width: min(100%, 340px);
  height: auto;
}
.tcg-reveal {
  display: block;
  width: 100%;
  height: auto;
  background: #333333;
  margin: 24px 0 12px;
}

#tcg-motion {
  scroll-margin-top: 150px;
}

.tcg-vimeo-player {
  aspect-ratio: 16 / 9;
  margin: 28px 0 12px;
}

.tcg-vimeo-cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  width: 100%;
  height: 100%;
  padding: 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.tcg-vimeo-cover img {
  width: min(35%, 200px);
  height: auto;
}

.tcg-vimeo-cover:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tcg-vimeo-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.tcg-vimeo-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.vimeo-thumbnail-player {
  aspect-ratio: 1;
  max-width: 620px;
  margin-inline: auto;
}

.tcg-vimeo-cover.vimeo-thumbnail-cover {
  position: relative;
  display: block;
  padding: 0;
  background: transparent;
}

.tcg-vimeo-cover .vimeo-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.vimeo-play-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  background: #181a23d9;
  color: #ffffff;
  text-align: center;
  line-height: 1.4;
}

/* Títulos internos mais compactos no desktop; mantém a escala atual no mobile. */
@media (min-width: 851px) {
  main h2 {
    font-size: clamp(3rem, 5.5vw, 5rem);
  }
}

@media (max-width: 550px) {
  .nav {
    flex-wrap: wrap;
  }
  .nav .logo {
    flex: 1;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .tcg-palette {
    gap: 10px;
  }
  .tcg-swatch {
    padding: 20px 12px;
  }
}
