/* apps.dcp.pt — faixa de topo forte em azul-escuro, cartões claros com imagem. */
:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #556074;
  --line: #e2e6ee;
  --soft: #eef1f6;
  --navy: #0b1736;
  --brand: #3b82f6;
  --amber: #fbbf24;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 10px 30px -12px rgba(15,23,42,.18);
  --radius: 18px;
  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070d1c;
    --surface: #0f182b;
    --text: #e8ecf4;
    --muted: #9aa6ba;
    --line: #1c2740;
    --soft: #16213a;
    --navy: #0a1430;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.ico { flex: none; }

/* Topo + hero numa só faixa */
.top { color: #fff; padding-top: env(safe-area-inset-top);
  background: radial-gradient(700px 360px at 85% -20%, rgba(59,130,246,.55), transparent 70%),
              radial-gradient(500px 300px at 0% 120%, rgba(251,191,36,.18), transparent 70%), var(--navy); }
.top-in { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; }
.brand img { border-radius: 8px; }
.dim { opacity: .6; font-weight: 700; }
.lang { font-size: .8rem; font-weight: 700; letter-spacing: .08em; padding: 6px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; }
.lang:hover { background: rgba(255,255,255,.1); }
.hero { padding-top: 20px; padding-bottom: 32px; }
.hero h1 { margin: 0; max-width: 900px; font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.08; font-weight: 900; letter-spacing: -.015em; }
.lead { margin: 16px 0 0; max-width: 720px; font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: #c7d2e8; }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pill { font-weight: 700; font-size: .92rem; color: #dbe4f5; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.pill:hover { background: rgba(255,255,255,.16); }
.pill.on { background: var(--amber); border-color: var(--amber); color: var(--navy); }

/* Cartões */
main.wrap { padding-top: 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent); }
.card[hidden] { display: none; }

.shot { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: var(--soft); cursor: zoom-in; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .35s; }
.card:hover .shot img { transform: scale(1.03); }
.shot-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(10,20,48,.75); color: #fff; font-size: .78rem; font-weight: 700; }
.shot-empty { cursor: default; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff;
  background: radial-gradient(300px 200px at 80% 0%, rgba(255,255,255,.25), transparent 70%), linear-gradient(145deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); }
.shot-empty span { font-size: 1.9rem; font-weight: 900; }
.shot-empty small { font-size: .8rem; opacity: .85; }

.card-body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; border-top: 4px solid var(--c); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.card h2 { margin: 0; margin-right: auto; font-size: 1.45rem; font-weight: 900; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.tag-private { color: var(--muted); background: var(--soft); }
@media (prefers-color-scheme: dark) { .tag { color: color-mix(in srgb, var(--c) 55%, #fff); } }
.tagline { margin: 12px 0 6px; font-size: 1.05rem; font-weight: 700; }
.desc { margin: 0; color: var(--muted); }
.card h3 { margin: 18px 0 10px; font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.features li { display: flex; gap: 10px; align-items: flex-start; }
.features .ico { margin-top: 4px; color: var(--c); }
@media (prefers-color-scheme: dark) { .features .ico { color: color-mix(in srgb, var(--c) 55%, #fff); } }
.card-foot { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.peek { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: none; font-weight: 700; font-size: .9rem; cursor: pointer; }
.peek:hover { border-color: var(--c); }
.open { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; padding: 10px 15px; border-radius: 10px; background: var(--c); color: #fff; }
.open small { font-weight: 400; opacity: .8; }
.open:hover { filter: brightness(1.1); }
@media (max-width: 420px) { .open small { display: none; } }

/* Arcade */
.arcade { margin: 48px 0 64px; }
.arcade-card { display: flex; align-items: center; gap: 24px; padding: 28px 32px; border-radius: 20px; color: #fff; background: radial-gradient(500px 240px at 0% 0%, #6d3df5 0%, transparent 70%), radial-gradient(500px 260px at 100% 100%, #ec4899 0%, transparent 65%), #1d1440; box-shadow: var(--shadow); transition: transform .15s; }
.arcade-card:hover { transform: translateY(-2px); }
.arcade-icon { width: 64px; height: 64px; flex: none; border-radius: 16px; display: grid; place-items: center; background: #ffc93c; color: #160f2e; }
.arcade-text { flex: 1; }
.eyebrow { margin: 0 0 4px; color: #ffc93c; font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.arcade-text h2 { margin: 0; font-size: 1.6rem; font-weight: 900; }
.arcade-text p:last-child { margin: 4px 0 0; color: #d9d2f5; }
.arcade-cta { display: inline-flex; align-items: center; gap: 8px; flex: none; font-weight: 700; padding: 11px 18px; border-radius: 12px; background: #fff; color: #1d1440; }
@media (max-width: 720px) {
  .arcade-card { flex-direction: column; align-items: flex-start; padding: 24px; }
  .grid { grid-template-columns: 1fr; }
}

/* Galeria */
.lightbox { width: min(1200px, 100vw); height: min(900px, 100dvh); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 16px; background: #060b18; color: #fff; display: none; flex-direction: column; }
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(3,7,18,.85); backdrop-filter: blur(4px); }
@media (max-width: 720px) { .lightbox { border-radius: 0; } }
.lb-top { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; padding-top: max(12px, env(safe-area-inset-top)); }
.lb-title { font-weight: 900; font-size: 1.1rem; }
.lb-pos { color: #9aa6ba; font-size: .9rem; margin-right: auto; }
.lb-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 56px; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; }
.lb-btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { font-size: 1.1rem; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); justify-content: center; }
.lb-thumbs img { height: 56px; border-radius: 6px; opacity: .45; cursor: pointer; border: 2px solid transparent; }
.lb-thumbs img.on { opacity: 1; border-color: var(--amber); }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-thumbs { display: none; }
@media (max-width: 720px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { display: none; } }

/* Rodapé */
.foot { border-top: 1px solid var(--line); padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .88rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
