/* cartas (zoom desde el cubo) y paneles de contenido */
.deck {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow: auto;
  background: rgb(8 7 12 / .82); backdrop-filter: blur(8px);
  padding: max(1rem, env(safe-area-inset-top)) 1rem 1rem;
}
.deck[hidden] { display: none; }
.deck__inner {
  width: min(1100px, 100%); display: grid; gap: 1.4rem; justify-items: center;
  transform-origin: var(--ox, 50%) var(--oy, 40%);
  animation: zoom-in 620ms var(--ease-out-expo) both;
}
@keyframes zoom-in { from { transform: scale(.05); opacity: 0; filter: blur(6px); } 60% { opacity: 1; filter: none; } }
.deck__title { margin: 0; font: 700 clamp(1.4rem, 1rem + 1.4vw, 2rem) var(--font-pixel); color: var(--text); letter-spacing: -.04em; text-transform: lowercase; }
.cards { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: clamp(.6rem, 1.5vw, 1.1rem); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cards li { animation: deal 520ms var(--ease-out-expo) both; }
.cards li:nth-child(2) { animation-delay: 60ms; } .cards li:nth-child(3) { animation-delay: 120ms; }
.cards li:nth-child(4) { animation-delay: 180ms; } .cards li:nth-child(5) { animation-delay: 240ms; } .cards li:nth-child(6) { animation-delay: 300ms; }
@keyframes deal { from { transform: translateY(40px) rotate(-6deg); opacity: 0; } }
.card {
  --c: var(--signal);
  width: 100%; aspect-ratio: 5 / 7; cursor: pointer; display: grid; grid-template-rows: 1fr auto auto; gap: .35rem;
  padding: .7rem; text-align: left; border: 0; border-radius: 6px;
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 4px 0 var(--c);
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal);
}
.card:hover, .card:focus-visible { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--c), inset 0 4px 0 var(--c); }
.card__art { display: block; border-radius: 4px; background: var(--ink); overflow: hidden; }
.card__art canvas { width: 100%; height: 100%; image-rendering: pixelated; object-fit: contain; }
.card__name { font-weight: 600; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(.9rem, .8rem + .4vw, 1.05rem); }
.card__tag { font: 500 .72rem var(--font-pixel); text-transform: lowercase; color: var(--muted); }

/* panel */
.panel {
  width: min(980px, 94vw); max-height: 90dvh; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: var(--ink); color: var(--text); box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
}
.panel::backdrop { background: rgb(8 7 12 / .8); backdrop-filter: blur(8px); }
.panel[open] { animation: zoom-in 520ms var(--ease-out-expo); }
.panel__body { max-height: 90dvh; overflow: auto; padding: clamp(1.2rem, 3vw, 2.4rem); }
.panel__close {
  position: absolute; right: .8rem; top: .8rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--signal); color: var(--ink); font-weight: 900;
}
.panel h2 { margin: 0 2.5rem .5rem 0; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.3rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; }
.panel h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
.lede { color: var(--muted); max-width: 60ch; margin: 0 0 1.4rem; }
.note { color: var(--muted); font-size: .85rem; margin-top: 1rem; }

.dl {
  display: inline-flex; align-items: center; gap: .4em; margin-top: .6rem; padding: .7em 1.1em; border-radius: 10px;
  background: var(--c, var(--signal)); color: var(--ink); font-weight: 800; text-decoration: none; font-size: .9rem;
  box-shadow: none;
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast);
}
.dl:hover { transform: translateY(-2px); }
.dl:active { transform: translateY(1px); }
.dl--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.dl.is-pending { opacity: .45; pointer-events: none; }

.styles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.styles video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; margin-bottom: .5rem; }
.styles h3 { font-size: 1rem; }

.plugins { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plugin { padding: 1.4rem; border-radius: 14px; background: color-mix(in oklab, var(--c) 14%, var(--ink)); box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--c) 50%, transparent); }
.plugin h3 { font-size: 1.5rem; color: var(--c); }
.plugin p { color: var(--muted); }

.feature { padding: 1.4rem; border-radius: 14px; background: color-mix(in oklab, var(--c) 12%, var(--ink)); }
.feature h3 { font-size: 1.6rem; color: var(--c); }
.feature p { max-width: 60ch; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: .7rem; }

.sites { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.site { --c: var(--signal); display: grid; grid-template-columns: 7rem 1fr auto; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: 14px; text-decoration: none; color: var(--text); background: var(--ink); box-shadow: inset 0 0 0 2px var(--line); transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-normal) var(--ease-out-expo); }
.site:hover { background: var(--c); color: var(--ink); transform: translateX(6px); }
.site__kind { font: .7rem var(--font-pixel); text-transform: lowercase; }
.site__name { font-size: clamp(1.3rem, 1rem + 1.6vw, 2.2rem); font-weight: 900; letter-spacing: -.03em; font-variation-settings: "wdth" 115; }
.site__go { font-size: 1.5rem; }

/* conoce a fab: diapositivas que corren al costado */
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; display: grid; gap: 1rem; justify-items: start; align-content: start; padding-right: .5rem; }
.slide__art { width: 100%; aspect-ratio: 16 / 9; height: auto; image-rendering: pixelated; border-radius: 10px; background: #0d0a1c; }
.slide__text { margin: 0; font-size: clamp(1.05rem, .9rem + .8vw, 1.5rem); line-height: 1.35; max-width: 52ch; }
.slide__text strong { color: var(--text); font-weight: 700; }
.slides__nav { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1rem; }
.slides__nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink); cursor: pointer; }
.slides__dots { display: flex; gap: .4rem; }
.slides__dots i { width: 8px; height: 8px; background: var(--line); }
.slides__dots i.on { background: var(--acid); }
.btn-pixel {
  padding: .9rem 1.3rem; border: 0; border-radius: 999px; cursor: pointer; background: var(--text); color: var(--ink);
  font: 600 1rem var(--font-pixel); text-transform: lowercase; box-shadow: none;
  transition: transform var(--duration-fast);
}
.btn-pixel:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--signal-deep); }

.app-frame { width: 100%; height: min(78dvh, 760px); border: 0; border-radius: 10px; background: #000; display: block; }

.final { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.final__col { padding: 1.6rem; border-radius: 16px; background: color-mix(in oklab, var(--c) 14%, var(--ink)); box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--c) 45%, transparent); }
.final__col h3 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); color: var(--c); line-height: 1; margin-bottom: .8rem; }
.final__col p { color: var(--muted); }
.potions { list-style: none; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.potions li { font: .7rem var(--font-pixel); text-transform: lowercase; padding: .45em .7em; border-radius: 999px 999px 6px 6px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--c); }
.potions li::before { content: "⚗ "; color: var(--c); }

/* tarjetas de presets: captura arriba, todo alineado a la izquierda */
.pcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.pcard {
  display: grid; text-align: left; border-radius: 16px; overflow: hidden; background: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 24px 50px -28px rgb(0 0 0 / .9);
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal);
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgb(255 255 255 / .2), 0 30px 60px -28px rgb(122 92 255 / .6); }
.pcard__shot { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; object-position: top left; display: block; background: #0d0b12; border-bottom: 1px solid var(--line); }
.pcard__body { display: grid; justify-items: start; gap: .55rem; padding: 1.3rem 1.4rem 1.5rem; }
.pcard__kind { margin: 0; font-size: .78rem; font-weight: 500; color: var(--violet); letter-spacing: .01em; }
.pcard h3, .pcard__title { font-size: 1.45rem; font-weight: 600; letter-spacing: -.03em; color: var(--text); }
.pcard__body > p { margin: 0; color: var(--muted); line-height: 1.5; max-width: 46ch; }
.pcard__list { margin: .2rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .9rem; color: var(--text); }
.pcard__list li { padding-left: 1rem; position: relative; }
.pcard__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); }
.pcard__meta { font-size: .78rem !important; color: var(--muted); border-top: 1px solid var(--line); padding-top: .7rem; width: 100%; }
.pcard .dl { margin-top: .2rem; }
.pcards--links { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pcard--link { text-decoration: none; color: inherit; }
.pcard--link .pcard__shot { aspect-ratio: 16 / 10; }
.pcard--link .pcard__body { gap: .25rem; }

/* whereis: publicados y proceso */
.tabs { display: flex; gap: .4rem; margin: 0 0 1.2rem; }
.tabs button { padding: .55em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: var(--ink); cursor: pointer; font-weight: 500; }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.flyers { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.flyers[hidden] { display: none; }
.flyer { all: unset; cursor: zoom-in; display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform var(--duration-normal) var(--ease-out-expo); }
.flyer:hover, .flyer:focus-visible { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 0 0 2px var(--signal); }
.flyer img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.flyers--process { counter-reset: paso; }
.flyers--process li { counter-increment: paso; }
.flyers--process p { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); }
.flyers--process p::before { content: counter(paso) ". "; color: var(--text); font-weight: 600; }
.zoom { position: fixed; inset: 0; z-index: 5; margin: 0; display: grid; place-items: center; background: rgb(8 7 12 / .92); cursor: zoom-out; }
.zoom[hidden] { display: none; }
.zoom img { max-width: 92vw; max-height: 88dvh; border-radius: 10px; box-shadow: var(--shadow-card); animation: zoom-in 420ms var(--ease-out-expo); }
.zoom__close { position: absolute; right: 1rem; top: 1rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--signal); color: var(--ink); cursor: pointer; }

/* presets: dos tarjetas lado a lado, solo imagen y título */
.pcards--duo { grid-template-columns: 1fr 1fr; gap: clamp(.6rem, 2vw, 1.2rem); }
.pcards--duo .pcard__shot { aspect-ratio: 3 / 2; }
.pcards--duo .pcard__body { padding: .9rem 1rem 1rem; }
.pcards--duo .pcard__title { font-size: clamp(1rem, .85rem + .8vw, 1.4rem); }

/* video vertical (TikTok) y pantallazos que se desbloquean en el juego */
.app-frame--vertical { aspect-ratio: 9 / 16; width: min(100%, 42dvh); height: auto; margin-inline: auto; }
a.card { text-decoration: none; color: inherit; }
.unlock { display: block; width: 100%; height: auto; border-radius: 10px; margin-block: 12px; }
.unlock img { display: block; width: 100%; height: auto; border-radius: 10px; }
