/* Minijogos da Hina — usa as cores do style.css. */
.jg-body { min-height: 100dvh; background: var(--bg); color: var(--text); overscroll-behavior: none; }
.jg-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; max-width: 760px; margin: 0 auto; }
.jg-quem { color: var(--muted); font-size: 13px; text-align: right; }
.jg-main { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.jg-cabeca h1 { margin: 6px 0 4px; font-family: var(--font-display); font-size: clamp(28px, 7vw, 40px); }
.jg-sub { color: var(--muted); margin: 0 0 16px; }
.jg-abas { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.jg-abas button { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: var(--radius-pill); padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.jg-abas button[aria-pressed="true"] { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.jg-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.jg-card { display: flex; flex-direction: column; gap: 6px; text-align: left; border: 1px solid var(--line); background: var(--glass), var(--surface-glass); border-radius: var(--radius); padding: 14px; color: var(--text); font: inherit; cursor: pointer; transition: border-color var(--fast), transform var(--fast); }
.jg-card:hover, .jg-card:focus-visible { border-color: var(--accent-line); transform: translateY(-1px); }
.jg-card[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.jg-card .jg-emoji { font-size: 28px; line-height: 1; }
.jg-card strong { font-size: 15px; }
.jg-card small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.jg-card .jg-melhor { color: var(--warn); font-size: 12px; }
.jg-barra { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.jg-barra strong { flex: 1; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-placar { color: var(--muted); font-size: 13px; white-space: nowrap; }
.jg-voltar { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 17px; cursor: pointer; }
.jg-palco { display: flex; justify-content: center; }
.jg-palco canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: min(62dvh, 560px); border-radius: 12px; border: 1px solid var(--line); background: #120f1a; touch-action: none; image-rendering: pixelated; -webkit-user-select: none; user-select: none; }
.jg-controles { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 14px auto 0; max-width: 420px; touch-action: none; -webkit-user-select: none; user-select: none; }
.jg-dpad { display: grid; grid-template-columns: repeat(3, 54px); grid-template-rows: repeat(3, 54px); gap: 4px; }
.jg-dpad .cima { grid-area: 1 / 2; } .jg-dpad .esq { grid-area: 2 / 1; } .jg-dpad .dir { grid-area: 2 / 3; } .jg-dpad .baixo { grid-area: 3 / 2; }
.jg-ab { display: flex; gap: 12px; margin-left: auto; }
.jg-btn { border: 1px solid var(--accent-line); background: var(--surface); color: var(--text); border-radius: 14px; font: 600 18px var(--font-body); touch-action: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.jg-btn.on { background: var(--accent-soft); transform: scale(.96); }
.jg-ab .jg-btn { width: 68px; height: 68px; border-radius: 50%; font-size: 20px; }
.jg-ab .jg-btn.a { background: var(--grad-primary); border-color: transparent; }
.jg-dica { color: var(--faint); font-size: 12.5px; text-align: center; margin: 12px 0 0; }
.jg-msg { color: var(--accent); font-size: 13px; text-align: center; min-height: 1.2em; margin: 6px 0 0; }
.jg-rank { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: var(--surface); }
.jg-rank summary { cursor: pointer; font-weight: 600; }
.jg-rank ol { margin: 10px 0 0; padding-left: 22px; color: var(--muted); }
.jg-rank li { margin: 3px 0; }
.jg-rank li b { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .jg-controles.so-toque { display: none; } }
@media (max-width: 380px) { .jg-dpad { grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 48px); } .jg-ab .jg-btn { width: 60px; height: 60px; } }
