/* Estilos compartilhados do site Pom Studios. */
:root {
  --bg: #000000;
  --fg: #fff3d6;
  --muted: #b3a98f;
  --gold: #f6b93b;
  --line: #2b2415;
  --row-hover: #120e06;
  --display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
:lang(ja) { --display: "Fredoka", "Noto Sans JP", ui-rounded, system-ui, sans-serif; --body: "Hanken Grotesk", "Noto Sans JP", system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.55; }
.wrap { max-width: 60rem; margin-inline: auto; padding-inline: clamp(16px, 5vw, 40px); padding-block: 16px 32px; }

/* Cabeçalho: marca à esquerda; menu e idioma no canto superior direito */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px 16px; margin-bottom: clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.brand img { border-radius: 8px; }
.top-right { display: flex; align-items: center; gap: 8px; }
.menu-inline, .drop ul { list-style: none; margin: 0; padding: 0; }
.menu-inline { display: flex; gap: 4px; }
.menu-inline a { display: block; padding: 6px 12px; border-radius: 99px; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.menu-inline a:hover, .menu-inline a:focus-visible, .menu-inline a[aria-current] { color: var(--gold); }
.drop { position: relative; }
.drop summary { list-style: none; cursor: pointer; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--fg); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; user-select: none; }
.drop summary::-webkit-details-marker { display: none; }
.drop summary::after { content: "▾"; margin-left: 6px; color: var(--gold); }
.drop[open] summary, .drop summary:hover { border-color: var(--gold); }
.drop ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 10rem; padding: 6px; background: #120e06; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.6); }
.drop li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--fg); text-decoration: none; font-size: 0.95rem; }
.drop li a:hover, .drop li a:focus-visible { background: var(--row-hover); color: var(--gold); }
.drop li a[aria-current] { color: var(--gold); font-weight: 600; }
.menu-m { display: none; }
.drop summary:focus-visible, .brand:focus-visible, .menu-inline a:focus-visible, .drop li a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Home */
.hero { display: flex; flex-wrap: wrap-reverse; align-items: center; gap: clamp(16px, 4vw, 48px); }
.hero-text { flex: 1 1 22rem; min-width: 0; }
.hero-logo { flex: 0 1 20rem; min-width: 0; margin-inline: auto; }
.hero-logo img { display: block; width: 100%; height: auto; border-radius: 24px; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 12px; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 5.5vw, 3.25rem); line-height: 1.08; margin: 0 0 16px; text-wrap: balance; }
.lead { color: var(--muted); max-width: 36rem; margin: 0 0 12px; }
.lead:last-child { margin-bottom: 0; }
.apps { margin-top: clamp(32px, 6vw, 64px); scroll-margin-top: 16px; }
h2 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; margin: 0 0 8px; }
.list { border-top: 1px solid var(--line); }
.app { position: relative; display: grid; grid-template-columns: 80px 1fr auto; gap: 8px 24px; align-items: center; padding: 24px 12px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background-color .15s; }
.app:hover, .app:focus-within { background: var(--row-hover); }
.app-link { text-decoration: none; }
.app-link::after { content: ""; position: absolute; inset: 0; }
.app-link:focus-visible { outline: none; }
.app:has(.app-link:focus-visible) { outline: 2px solid var(--gold); outline-offset: -2px; }
.app-stores { grid-column: 2; list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.app-stores a { display: block; }
.app-stores img { height: 40px; width: auto; display: block; }
.app-icon { grid-row: 1 / span 2; width: 80px; height: 80px; border-radius: 18px; display: block; object-fit: cover; border: 1px solid var(--line); }
.app-name { grid-column: 2; font-family: var(--display); font-weight: 600; font-size: 1.75rem; line-height: 1.1; margin: 0; }
.tag { display: inline-block; margin-left: 10px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 99px; font-family: var(--body); font-size: 0.75rem; font-weight: 500; color: var(--muted); vertical-align: middle; letter-spacing: 0.02em; }
.app-desc { grid-column: 2; margin: 0; color: var(--muted); max-width: 36rem; }
.app-link { grid-column: 3; grid-row: 1 / span 2; color: var(--gold); font-weight: 600; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.app-note { grid-column: 2; margin: 4px 0 0; padding: 6px 10px; font-size: .9rem; color: var(--gold); border-left: 2px solid var(--gold); background: var(--row-hover); max-width: 36rem; }
.app.has-note .app-icon { grid-row: 1 / span 3; }
.app-link span { transition: transform .15s; }
.app:hover .app-link span { transform: translateX(4px); }
.soon { padding: 24px 12px; color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Rodapé */
footer { margin-top: 40px; color: var(--muted); font-size: 0.85rem; }
footer a { color: var(--muted); }
footer a:hover, footer a:focus-visible { color: var(--gold); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.linklike:hover, .linklike:focus-visible { color: var(--gold); }

/* Páginas de texto (privacidade, termos) */
.doc > h1, .doc > h2, .doc > p, .doc > ul, .doc > .tablewrap, .doc > .back, .doc > footer { max-width: 44rem; }
.back { display: inline-block; margin-bottom: 24px; color: var(--gold); text-decoration: none; font-weight: 600; }
.back:hover { text-decoration: underline; }
.doc h1 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
.doc h2 { font-size: 1.2rem; margin: 32px 0 8px; color: var(--fg); }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 1.2rem; }
.doc a { color: var(--gold); }
.doc footer a { color: var(--muted); }
.doc .updated { font-size: 0.9rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 8px 0; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.doc th { color: var(--fg); font-weight: 600; }
.doc .tablewrap { overflow-x: auto; }

/* Banner de cookies */
.consent { position: fixed; z-index: 30; left: 16px; right: 16px; bottom: 16px; max-width: 30rem; margin-left: auto; padding: 20px; background: #120e06; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.6); }
.consent[hidden] { display: none; }
.consent-title { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin: 0 0 6px; }
.consent-text { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.consent-text a { color: var(--gold); }
.consent-actions { display: flex; gap: 12px; }
.btn { flex: 1 1 0; padding: 10px 16px; border-radius: 99px; border: 1.5px solid var(--gold); background: transparent; color: var(--gold); font: 600 0.95rem var(--body); cursor: pointer; }
.btn-primary { background: var(--gold); color: #000; }
.btn:hover { filter: brightness(1.12); }
.btn:focus-visible, .linklike:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

@media (max-width: 640px) {
  .menu-inline { display: none; }
  .menu-m { display: block; }
  .top-right { gap: 8px; }
  .menu-m ul { right: 0; }
}
@media (max-width: 560px) {
  .app { grid-template-columns: 64px 1fr; gap: 8px 16px; }
  .app-icon { width: 64px; height: 64px; border-radius: 14px; grid-row: 1; }
  .app-name { grid-column: 2; }
  .app-desc { grid-column: 1 / -1; }
  .app-link { grid-column: 1 / -1; grid-row: auto; }
  .app-note { grid-column: 1 / -1; }
  .app-stores { grid-column: 1 / -1; }
  .app.has-note .app-icon { grid-row: 1; }
  .tag { display: table; margin: 8px 0 0; }
  .consent { left: 8px; right: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .app, .app-link span { transition: none; } }

/* Pagina de app (jogo) */
.game .back { margin-bottom: 16px; }
.game-hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 4vw, 40px); margin-bottom: clamp(24px, 5vw, 48px); }
.game-icon { width: clamp(112px, 22vw, 192px); height: auto; aspect-ratio: 1; border-radius: 28px; border: 1px solid var(--line); object-fit: cover; display: block; }
.game-head { flex: 1 1 18rem; min-width: 0; }
.stores { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; flex-direction: column; padding: 8px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--row-hover); line-height: 1.25; }
.store span { font-weight: 600; }
.store small { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.game-sec { margin-top: clamp(28px, 5vw, 48px); }
.game-sec h2 { margin-bottom: 14px; }
.video-ph { aspect-ratio: 16 / 9; max-width: 44rem; display: grid; place-items: center; align-content: center; gap: 12px; border: 1px dashed var(--line); border-radius: 16px; background: var(--row-hover); color: var(--muted); text-align: center; padding: 16px; }
.video-ph p { margin: 0; max-width: 26rem; }
.play { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold); position: relative; }
.play::after { content: ""; position: absolute; left: 22px; top: 16px; border-left: 16px solid var(--gold); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.shots { list-style: none; padding: 4px 16px 16px; margin: 0 -16px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; -webkit-overflow-scrolling: touch; }
.shots:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.phone { flex: 0 0 auto; width: clamp(170px, 54vw, 230px); scroll-snap-align: start; }
.phone-frame { position: relative; padding: 16px 8px 8px; border-radius: 34px; background: linear-gradient(150deg, #4b4b53 0%, #17171a 45%, #0b0b0d 100%); box-shadow: 0 0 0 1px #5a5a63, 0 0 0 3px #0b0b0d, 0 14px 40px rgba(0,0,0,.65); }
.phone-frame::before { content: ""; position: absolute; top: 5px; left: 50%; width: 30%; height: 9px; transform: translateX(-50%); border-radius: 99px; background: #000; }
.phone-frame::after { content: ""; position: absolute; right: -5px; top: 22%; width: 3px; height: 15%; border-radius: 0 3px 3px 0; background: #3a3a41; }
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 26px; background: #000; }
@media (min-width: 52rem) {
  .shots { overflow: visible; justify-content: center; margin: 0; padding: 4px 0 16px; gap: 24px; }
  .phone { flex: 1 1 0; max-width: 240px; width: auto; }
}
.badge { display: block; line-height: 0; }
.badge img { height: 48px; width: auto; display: block; }
.prose { max-width: 44rem; }
.prose h3 { font-family: var(--display); font-weight: 500; font-size: 1.1rem; margin: 28px 0 8px; color: var(--fg); }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; }
.prose strong { color: var(--fg); font-weight: 600; }
.game .tablewrap, .game .legal-links, .game .note { max-width: 44rem; }
.game table.info { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.game table.info th, .game table.info td { text-align: left; vertical-align: top; padding: 10px 10px; border-bottom: 1px solid var(--line); }
.game table.info th { color: var(--fg); font-weight: 600; width: 9rem; }
.game table.info td { color: var(--muted); }
.legal-links { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.legal-links a, .game .back { color: var(--gold); }
.game .note { color: var(--muted); font-size: 0.9rem; }
.game footer a { color: var(--muted); }
.doc > h3 { max-width: 44rem; font-family: var(--display); font-weight: 500; font-size: 1.05rem; margin: 22px 0 6px; color: var(--fg); }
.doc code { font-size: 0.9em; padding: 1px 5px; border-radius: 4px; background: var(--row-hover); color: var(--fg); }
@media (max-width: 36rem) { .game table.info th { width: 6.5rem; } }

/* Video do jogo (arquivo proprio, sem YouTube) */
.vid { display: block; width: 100%; aspect-ratio: 600 / 1298; object-fit: contain; border-radius: 26px; background: #000; }

/* Empresa responsavel (rodape) */
footer .company { display: block; margin-top: 6px; font-size: 0.78rem; opacity: .8; }

/* Prints que ja sao pecas de arte (com aparelho desenhado): sem moldura de celular */
.shots.art .phone-frame { padding: 0; border-radius: 18px; background: none; box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0,0,0,.5); overflow: hidden; }
.shots.art .phone-frame::before, .shots.art .phone-frame::after { display: none; }
.shots.art .phone-frame img { border-radius: 18px; }
.game-note { margin-top: 14px; }
@media (min-width: 900px) { .shots.art .phone { max-width: 210px; } }

/* Paginas de SEO do SCC */
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 8px 0 20px; }
.crumbs a { color: var(--gold); }
.seo { max-width: 44rem; }
.seo h1 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); margin-bottom: 12px; }
.seo .lead { font-size: 1.1rem; color: var(--fg); margin: 0 0 8px; }
.seo h2 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; margin: 32px 0 8px; color: var(--fg); }
.seo p, .seo li { color: var(--muted); }
.seo ul, .seo ol { padding-left: 1.3rem; }
.seo li { margin: 4px 0; }
.seo a { color: var(--gold); }
.seo strong { color: var(--fg); font-weight: 600; }
.seo-page .game-sec { max-width: 44rem; }
.seo-page .game-sec h2 { font-size: 1.2rem; }
.seo-cta { max-width: 44rem; margin-top: 40px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--row-hover); }
.seo-cta h2 { margin: 0 0 6px; font-size: 1.2rem; }
.seo-cta p { margin: 0; color: var(--muted); }
.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item summary { cursor: pointer; padding: 12px 0; font-family: var(--display); font-weight: 500; font-size: 1.1rem; color: var(--fg); }
.faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.faq-item[open] summary { color: var(--gold); }
.faq-item p { margin: 0 0 14px; }
.seo .updated { font-size: 0.9rem; color: var(--muted); margin: 0 0 16px; }
.seo h3 { font-family: var(--display); font-weight: 500; font-size: 1.1rem; margin: 22px 0 6px; color: var(--fg); }
.seo .tablewrap { overflow-x: auto; margin: 12px 0; }
.seo table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.seo th, .seo td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.seo th { color: var(--fg); font-weight: 600; }
.seo .callout { border-left: 3px solid var(--gold); padding: 8px 14px; background: var(--row-hover); border-radius: 0 8px 8px 0; color: var(--fg); }
.seo figure { margin: 18px 0; }
.seo figure img { max-width: min(100%, 300px); height: auto; border-radius: 12px; border: 1px solid var(--line); }
.seo figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.toc { max-width: 44rem; border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; margin: 8px 0 8px; background: var(--row-hover); }
.toc strong { color: var(--fg); font-size: 0.95rem; }
.toc ul { margin: 6px 0 0; padding-left: 1.1rem; }
.toc li { margin: 2px 0; font-size: 0.95rem; }
.toc a { color: var(--gold); }
.guides li { display: grid; gap: 2px; }
.guides .blurb { color: var(--muted); font-size: 0.95rem; }
html { scroll-behavior: smooth; }
.seo h2[id] { scroll-margin-top: 16px; }

/* Contato na home */
.contact { padding: 8px 12px 32px; max-width: 760px; }
.contact h2 { font-size: 1.15rem; margin: 0 0 6px; }
.contact p { margin: 0; color: var(--muted); line-height: 1.6; }
.contact a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.award { margin: 0; line-height: 0; }
.award a { display: inline-block; line-height: 0; }
.award img { display: block; width: 250px; max-width: 100%; height: auto; aspect-ratio: 250 / 54; }
/* Tabelas largas de guias (habilidades, campanha) no celular */
@media (max-width: 36rem) {
  .seo table { font-size: 0.8rem; }
  .seo th, .seo td { padding: 6px 4px; }
  .seo td:first-child, .seo th:first-child { padding-left: 2px; }
}
