/* OctoHub Games: portal de jogos simples e divertido (jogos primeiro). Carrega depois de site.css.
   Layout: topo → grade de jogos (grande + alto + mistério) → onde jogar → sobre (lula espiando) → contato → rodapé. */
body.oh {
  --bg: #17151d; --bg2: #1d1a25; --card: #221f2b; --card2: #2a2635; --ink: #f5f3fa; --muted: #b9b3c9; --line: rgba(255,255,255,.08);
  --accent: #8b5cf6; --accent2: #6d3ef0; --lilas: #c4b5fd; --ciano: #5ff3ff; --amarelo: #ffd23f; --rosa: #ff5c9a; --verde: #34d399;
  --f-titulo: "Fredoka", "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  background-image: radial-gradient(rgba(139,92,246,.10) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}
html:has(body.oh) { background: var(--bg, #17151d); }
body.oh .botao:not(.fantasma) { background: var(--accent); color: #fff; box-shadow: 0 6px 0 #4c1d95, 0 14px 30px -12px rgba(139,92,246,.6); border-radius: 999px; }
body.oh .botao:not(.fantasma):hover { transform: translateY(-2px); }
body.oh .botao:not(.fantasma):active { transform: translateY(3px); box-shadow: 0 2px 0 #4c1d95; }
body.oh .selo { color: var(--lilas); }

/* Logo: polvo + nome */
.oh-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.oh-logo img { width: 44px; height: 44px; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.oh-logo:hover img { transform: rotate(-10deg) scale(1.08); }
.oh-logo-txt { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.oh-logo-octo { font: 700 24px/1 var(--f-titulo); letter-spacing: -.01em; }
.oh-logo-octo b { font-weight: 700; color: var(--accent); }
.oh-logo-games { font: 800 9px/1 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); }
.rodape .oh-logo img { width: 36px; height: 36px; }
.marca-rodape.oh-logo { font: inherit; margin-bottom: 12px; }
body.oh .topo.solido { background: rgba(23,21,29,.86); }

/* Palco: título + grade de jogos */
.oh-palco { position: relative; isolation: isolate; padding: calc(var(--topo-h) + env(safe-area-inset-top, 0px) + 28px) 0 56px; overflow: hidden; }
.oh-titulo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
.oh-titulo h1 { font: 700 clamp(34px, 5vw, 58px)/1.02 var(--f-titulo); letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.oh-titulo p { color: var(--muted); margin: 0; font-size: 16px; }
.oh-marca-texto { color: var(--accent); position: relative; white-space: nowrap; isolation: isolate; }
.oh-marca-texto::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: .04em; height: .16em; border-radius: 99px; background: var(--amarelo); opacity: .9; z-index: -1; transform: rotate(-1.5deg); }

.oh-grade { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .oh-grade { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr auto; } .oh-jogo-grande { grid-row: span 2; } }
@media (min-width: 1100px) { .oh-grade { grid-template-columns: 2.2fr 1fr 1fr; grid-template-rows: none; } .oh-jogo-grande { grid-row: auto; } }

.oh-jogo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; border-radius: 22px; overflow: hidden; isolation: isolate;
  text-decoration: none; color: #fff; background: var(--card); border: 3px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 0 rgba(0,0,0,.35); transition: transform .35s cubic-bezier(.3,1.5,.5,1), box-shadow .35s, border-color .25s; }
.oh-jogo-grande { min-height: 320px; }
@media (min-width: 760px) { .oh-jogo-grande { min-height: 380px; } }
@media (min-width: 1100px) { .oh-jogo-grande, .oh-jogo-alto, .oh-misterio { aspect-ratio: auto; min-height: 460px; } }
.oh-jogo.clicavel:hover { transform: translateY(-6px) rotate(-.6deg); border-color: var(--accent); box-shadow: 0 14px 0 rgba(0,0,0,.35), 0 0 0 6px rgba(139,92,246,.18); }
.oh-jogo.clicavel:active { transform: translateY(0) scale(.99); }
.oh-capa-link:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }
.oh-arte { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.oh-jogo-grande .oh-arte { object-position: 70% 30%; }
.oh-jogo-alto .oh-arte { object-position: 50% 30%; }
.oh-jogo.clicavel:hover .oh-arte { transform: scale(1.06); }
.oh-jogo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,8,16,.92) 0%, rgba(10,8,16,.45) 38%, transparent 62%); }
/* brilho que passa no hover */
.oh-jogo.clicavel::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent); transform: skewX(-18deg); }
.oh-jogo.clicavel:hover::before { animation: oh-brilho .9s ease; }
@keyframes oh-brilho { to { left: 130%; } }

.oh-info { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; padding-right: 92px; }
.oh-nome { font: 700 clamp(26px, 3vw, 36px)/1 var(--f-titulo); text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.oh-nome.warbreak { font: 400 clamp(32px, 4.2vw, 54px)/1 "Russo One", "Arial Black", sans-serif; font-style: italic; letter-spacing: .01em; }
.oh-nome.warbreak b { font-weight: 400; color: #ff8c1a; }
.oh-tipo { font-size: 14px; color: rgba(255,255,255,.8); font-weight: 600; }
.oh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.oh-play { position: absolute; right: 18px; bottom: 18px; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); box-shadow: 0 5px 0 #4c1d95; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.oh-play.rosa { background: var(--rosa); box-shadow: 0 5px 0 #a3134f; }
.oh-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.oh-jogo.clicavel:hover .oh-play { transform: scale(1.12) rotate(-8deg); }

.oh-selos { position: absolute; left: 16px; top: 16px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 110px); }
.oh-selo { display: inline-flex; align-items: center; gap: 6px; font: 800 11px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 99px; background: rgba(10,8,16,.66); backdrop-filter: blur(6px); color: #fff; }
.oh-selo.online i { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 0 rgba(52,211,153,.7); }
.oh-adesivo { position: absolute; right: 14px; top: 14px; z-index: 2; font: 700 15px/1 var(--f-titulo); padding: 9px 13px; border-radius: 12px;
  color: #1b1030; transform: rotate(8deg); box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.oh-adesivo.amarelo { background: var(--amarelo); }
.oh-adesivo.rosa { background: var(--rosa); color: #fff; }
.oh-jogo.clicavel:hover .oh-adesivo { animation: oh-balanca .5s ease; }
@keyframes oh-balanca { 25% { transform: rotate(14deg) scale(1.08); } 60% { transform: rotate(2deg); } 100% { transform: rotate(8deg); } }

.oh-misterio { justify-content: space-between; background: repeating-linear-gradient(135deg, #241f31 0 18px, #201b2c 18px 36px); border: 3px dashed rgba(196,181,253,.28); box-shadow: none; }
.oh-misterio::after { display: none; }
.oh-interrogacao { flex: 1; display: grid; place-items: center; font: 700 120px/1 var(--f-titulo); color: var(--lilas); opacity: .85; text-shadow: 0 6px 0 rgba(0,0,0,.3); }
.oh-misterio .oh-info { padding-right: 22px; }
.oh-misterio .oh-tipo { color: var(--muted); }

/* Onde jogar */
.oh-lojas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.oh-lojas-rotulo { font: 800 12px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.oh-loja { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 10px; border-radius: 99px; background: var(--card); border: 2px solid var(--line);
  color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .25s cubic-bezier(.3,1.6,.5,1), border-color .2s; }
.oh-loja svg { width: 22px; height: 22px; }
.oh-loja .cg { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #6842ff; color: #fff; font: 800 11px/1 "Plus Jakarta Sans", sans-serif; }
a.oh-loja:hover { transform: translateY(-3px); border-color: var(--accent); }
.oh-loja.breve { opacity: .7; }
.oh-loja small { font-weight: 600; color: var(--muted); font-size: 12px; }

/* Enfeites flutuando no palco */
.oh-enfeites { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.oh-enfeites .e { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); color: var(--c); }
.oh-enfeites .bola { border-radius: 50%; background: var(--c); opacity: .7; }
.oh-enfeites .estrela { background: var(--c); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); opacity: .8; }
.oh-enfeites .mais { background: linear-gradient(var(--c), var(--c)) center / 100% 30% no-repeat, linear-gradient(var(--c), var(--c)) center / 30% 100% no-repeat; opacity: .75; border-radius: 3px; }

/* Sobre: a lula espiando no canto do card */
.oh-sobre { padding: 24px 0 24px; }
.oh-sobre-card { position: relative; display: grid; grid-template-columns: 1fr; border-radius: 28px; overflow: hidden; background: var(--card); border: 3px solid rgba(255,255,255,.06); box-shadow: 0 8px 0 rgba(0,0,0,.3); }
@media (min-width: 860px) { .oh-sobre-card { grid-template-columns: 1.2fr .8fr; } }
.oh-sobre-txt { padding: 34px 28px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 860px) { .oh-sobre-txt { padding: 48px 52px; } }
.oh-sobre-txt h2 { font: 700 clamp(28px, 3.6vw, 42px)/1.05 var(--f-titulo); margin: 0; }
.oh-sobre-txt p { color: var(--muted); font-size: 16.5px; max-width: 54ch; margin: 0; }
.oh-fatos { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 8px 0 0; }
.oh-fatos li { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--card2); }
.oh-fatos b { font: 700 22px/1 var(--f-titulo); color: var(--amarelo); }
.oh-fatos span { color: var(--muted); font-size: 13px; font-weight: 600; }
.oh-sobre-lula { position: relative; min-height: 280px; background: #040406; }
.oh-sobre-lula #lula { position: absolute; inset: 0; }
.oh-sobre-lula::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--card) 0%, transparent 22%); }
@media (max-width: 859px) { .oh-sobre-lula::after { background: linear-gradient(180deg, var(--card) 0%, transparent 25%); } }
html.sem-lula .oh-sobre-lula { background: radial-gradient(60% 55% at 60% 55%, rgba(139,92,246,.3), transparent 70%), #040406; }

/* Contato */
.oh-contato { padding: 24px 0 64px; }
.oh-contato-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 28px; border-radius: 24px;
  background: linear-gradient(110deg, #3b1d8f, #6d3ef0 55%, #8b5cf6); box-shadow: 0 8px 0 #2a136b; }
.oh-contato-card h2 { font: 700 clamp(24px, 3vw, 34px)/1.1 var(--f-titulo); margin: 0 0 4px; }
.oh-contato-card p { margin: 0; color: rgba(255,255,255,.85); }
.oh-contato-card .botao:not(.fantasma) { background: #fff; color: #3b1d8f; box-shadow: 0 6px 0 #c9b8ff; }

body.oh .rodape { background: #120f18; }

@media (prefers-reduced-motion: no-preference) {
  .oh-enfeites .e { animation: oh-flutua 6s ease-in-out infinite; animation-delay: var(--d); }
  .oh-selo.online i { animation: oh-pulso 1.8s ease-out infinite; }
  .oh-interrogacao { animation: oh-pula 2.6s ease-in-out infinite; }
}
@keyframes oh-flutua { 50% { transform: translateY(-14px) rotate(25deg); } }
@keyframes oh-pulso { to { box-shadow: 0 0 0 8px rgba(52,211,153,0); } }
@keyframes oh-pula { 50% { transform: translateY(-10px) rotate(-6deg); } }

@media (max-width: 759px) { .oh-enfeites .e:nth-child(n+5) { display: none; } .oh-jogo { min-height: 280px; } }

/* Cartão inteiro clicável (link esticado) e os botões de loja do jogo por cima dele */
.oh-capa-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.oh-capa-link:focus-visible { outline: 3px solid var(--amarelo); outline-offset: -3px; }
.oh-adesivo, .oh-selos { z-index: 2; pointer-events: none; }
.oh-info { position: relative; z-index: 2; pointer-events: none; }
.oh-lojas-jogo { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; pointer-events: auto; }
.oh-lojas-jogo .oh-loja { min-height: 40px; padding: 6px 14px 6px 8px; font-size: 13px; background: rgba(16,12,24,.78); backdrop-filter: blur(6px); border-color: rgba(255,255,255,.14); color: #fff; }
.oh-lojas-jogo .oh-loja svg { width: 20px; height: 20px; }
.oh-lojas-jogo .oh-loja.breve { opacity: .8; }
.oh-lojas-jogo .oh-loja small { color: rgba(255,255,255,.7); }
