/* Bazê Games — estilos da área de jogos */
.game-header { display: flex; align-items: center; gap: 20px; margin: 24px 0 30px; --accent: var(--red); }
.game-header .game-ico { width: 68px; height: 68px; border-radius: 18px; font-size: 2rem; flex: 0 0 68px; }

.game-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.game-stage { padding: 26px; min-height: 460px; display: flex; flex-direction: column; }
.game-side { padding: 22px; position: sticky; top: calc(var(--nav-h) + 20px); }
.game-loading { margin: auto; color: var(--muted); }

/* Ranking */
.rank-list { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.rank-list li { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank-list li::before { counter-increment: r; content: counter(r); width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); display: inline-grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .82rem; margin-right: 10px; color: var(--muted); }
.rank-list li:nth-child(1)::before { background: var(--red); color: #fff; }
.rank-name { font-weight: 600; flex: 1; margin-right: auto; }
.rank-score { font-family: var(--font-head); font-weight: 700; color: var(--red); }
.rank-empty { color: var(--muted); }
.rank-empty::before { display: none !important; }

/* HUD comum */
.g-hud { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.g-hud .stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 16px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.g-hud .stat b { color: var(--red); }
.g-msg { text-align: center; font-family: var(--font-head); font-weight: 600; min-height: 26px; margin: 10px 0; }
.g-msg.win { color: var(--ok); }
.g-msg.lose { color: var(--red); }
.g-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: auto; padding-top: 20px; }

/* --- Forca --- */
.hm-word { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }
.hm-letter { width: 40px; height: 52px; border-bottom: 4px solid var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; }
.hm-letter.space { border: 0; }
.hm-hint { text-align: center; color: var(--muted); margin-bottom: 10px; }
.hm-gallows { display: block; margin: 0 auto 10px; }
.hm-keys { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; max-width: 480px; margin: 0 auto; }
.hm-key { aspect-ratio: 1; border: 1.5px solid var(--line-2); background: #fff; border-radius: 10px; font-family: var(--font-head); font-weight: 600; cursor: pointer; transition: .12s; text-transform: uppercase; }
.hm-key:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.hm-key:disabled { opacity: .35; cursor: default; }
.hm-key.ok { background: var(--ok); color: #fff; border-color: var(--ok); opacity: 1; }
.hm-key.no { background: var(--red); color: #fff; border-color: var(--red); opacity: 1; }

/* --- Caça-Letra --- */
.lt-target { text-align: center; margin-bottom: 8px; }
.lt-target .big { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 18px; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; box-shadow: var(--shadow-red); }
.lt-word { text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; letter-spacing: .12em; margin: 24px 0; }
.lt-blank { color: var(--red); border-bottom: 4px solid var(--red); padding: 0 6px; }
.lt-options { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lt-opt { min-width: 64px; height: 64px; border: 2px solid var(--line-2); background: #fff; border-radius: 14px; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; cursor: pointer; transition: .12s; }
.lt-opt:hover { border-color: var(--red); transform: translateY(-2px); }
.lt-opt.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.lt-opt.no { background: var(--red); color: #fff; border-color: var(--red); }

/* --- Cartas (UNO-like) --- */
.uno-table { display: flex; flex-direction: column; gap: 18px; }
.uno-row { text-align: center; }
.uno-row .lbl { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.uno-center { display: flex; align-items: center; justify-content: center; gap: 20px; }
.uno-hand { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; min-height: 90px; }
.uno-card { width: 58px; height: 84px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .12s; border: 3px solid #fff; user-select: none; }
.uno-card:hover { transform: translateY(-8px); }
.uno-card.back { background: #14161B; color: var(--red); }
.uno-card.red { background: #E4002B; } .uno-card.blue { background: #227BE4; }
.uno-card.green { background: #12B76A; } .uno-card.yellow { background: #F79009; }
.uno-card.wild { background: linear-gradient(135deg,#E4002B,#227BE4,#12B76A,#F79009); }
.uno-card.disabled { opacity: .45; cursor: default; transform: none; }
.uno-deck { width: 58px; height: 84px; border-radius: 10px; background: #14161B; color: var(--red); display: grid; place-items: center; font-weight: 700; cursor: pointer; border: 3px dashed rgba(255,255,255,.3); }
.uno-color-pick { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.uno-color-pick button { width: 40px; height: 40px; border-radius: 10px; border: 2px solid #fff; box-shadow: var(--shadow-sm); cursor: pointer; }

/* --- Batalha --- */
.bs-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bs-board-wrap .lbl { text-align: center; font-family: var(--font-head); font-weight: 600; margin-bottom: 10px; }
.bs-board { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; aspect-ratio: 1; max-width: 340px; margin: 0 auto; }
.bs-cell { background: var(--paper-2); border-radius: 5px; cursor: pointer; transition: .1s; position: relative; }
.bs-cell:hover { background: var(--red-soft); }
.bs-cell.ship { background: #9AA2B1; }
.bs-cell.hit { background: var(--red); }
.bs-cell.hit::before,
.bs-cell.hit::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; background: #fff; }
.bs-cell.hit::before { transform: translate(-50%, -50%) rotate(45deg); }
.bs-cell.hit::after { transform: translate(-50%, -50%) rotate(-45deg); }
.bs-cell.miss { background: #cfd6e2; }
.bs-cell.miss::after { content: "•"; color: #fff; position: absolute; inset: 0; display: grid; place-items: center; }
.bs-cell.enemy { cursor: crosshair; }
.bs-cell.locked { pointer-events: none; }

@media (max-width: 900px) {
    .game-layout { grid-template-columns: 1fr; }
    .game-side { position: static; }
    .bs-wrap { grid-template-columns: 1fr; }
    .hm-keys { grid-template-columns: repeat(7, 1fr); }
}
