.ac-game-sos-template #masthead,
.ac-game-sos-template .site-header,
.ac-game-sos-template .main-header-bar,
.ac-game-sos-template .ast-mobile-header-wrap,
.ac-game-sos-template .ast-above-header-wrap,
.ac-game-sos-template .ast-below-header-wrap,
.ac-game-sos-template #colophon,
.ac-game-sos-template .site-footer,
.ac-game-sos-template footer,
.ac-game-sos-template .ast-footer-overlay {
  display: none !important;
}

.ac-game-sos-template,
.ac-game-sos-template body {
  background: #020617 !important;
}

.ac-game-sos-template .site-content,
.ac-game-sos-template .ast-container,
.ac-game-sos-template #content,
.ac-game-sos-template #primary,
.ac-game-sos-template .content-area,
.ac-game-sos-template .entry-content {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ac-game-sos-template .entry-header,
.ac-game-sos-template .entry-title,
.ac-game-sos-template .post-thumb,
.ac-game-sos-template .ast-breadcrumbs-wrapper {
  display: none !important;
}

.game-sos-app {
  --bg: #07111f;
  --bg2: #0f172a;
  --panel: rgba(15, 23, 42, 0.94);
  --panel-2: rgba(2, 6, 23, 0.88);
  --border: rgba(148, 163, 184, 0.34);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --yellow: #facc15;
  --red: #ef4444;
  --green: #22c55e;
  --blue: #38bdf8;
  width: min(1840px, calc(100% - 24px));
  margin: 12px auto 38px;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.game-sos-app *,
.game-sos-app *::before,
.game-sos-app *::after {
  box-sizing: border-box;
}

.game-sos-app [hidden] {
  display: none !important;
}

.game-sos-own-header,
.game-sos-hero,
.game-sos-card,
.game-sos-action-panel,
.game-sos-modal-card {
  border: 1px solid var(--border);
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.16), transparent 35%), linear-gradient(135deg, var(--bg), var(--bg2));
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.26);
}

.game-sos-own-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-radius: 20px;
  margin-bottom: 10px;
  position: sticky;
  top: 8px;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.game-sos-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.game-sos-brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: linear-gradient(180deg, #facc15, #eab308);
  color: #111827;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.game-sos-kicker {
  margin: 0 0 5px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-sos-own-header h1,
.game-sos-card h2,
.game-sos-modal-card h2,
.game-sos-board-hud h2 {
  margin: 0;
  color: #fff;
  line-height: 1.05;
}

.game-sos-own-header h1 {
  font-size: clamp(19px, 2.2vw, 31px);
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.game-sos-header-rules {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.game-sos-header-rules span {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  text-align: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.game-sos-hero {
  border-radius: 18px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.game-sos-hero p {
  max-width: 1100px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.game-sos-panel,
.game-sos-game {
  margin-top: 12px;
}

.game-sos-game {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.game-sos-card {
  border-radius: 22px;
  padding: clamp(14px, 1.45vw, 22px);
}

.game-sos-section-head,
.game-sos-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.game-sos-section-head-compact {
  margin-bottom: 10px;
}

.game-sos-count {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
  min-width: 180px;
}

.game-sos-count select,
.game-sos-player-row input[type="text"],
.game-sos-player-row input[type="color"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  padding: 12px 14px;
  font-weight: 800;
  outline: none;
}

.game-sos-count select option {
  color: #111827;
}

.game-sos-players-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.game-sos-player-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 74px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.game-sos-player-num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.16);
  color: var(--yellow);
  font-weight: 950;
}

.game-sos-player-row input[type="color"] {
  height: 46px;
  padding: 4px;
  cursor: pointer;
}

.game-sos-actions,
.game-sos-board-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.game-sos-actions {
  margin-top: 18px;
}

.game-sos-board-actions {
  justify-content: center;
  align-items: center;
}

.game-sos-board-actions-top {
  margin: 0 0 10px;
}

.game-sos-board-actions-bottom {
  margin: 12px 0 0;
}

.game-sos-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 950;
  cursor: pointer;
  transition: 0.16s;
}

.game-sos-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.game-sos-btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.game-sos-btn-primary {
  background: linear-gradient(180deg, #facc15, #eab308);
  color: #111827;
}

.game-sos-btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid var(--border);
}

.game-sos-btn-danger {
  background: linear-gradient(180deg, #fb7185, #e11d48);
  color: #fff;
}

.game-sos-btn-good {
  background: linear-gradient(180deg, #34d399, #059669);
  color: #fff;
}

.game-sos-players-strip {
  padding-bottom: 16px;
}

.game-sos-players-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 10px;
}

.game-sos-player-card {
  min-height: 132px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 13px 14px 13px 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  position: relative;
  overflow: hidden;
}

.game-sos-player-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--player-color, #fff);
}

.game-sos-player-card.active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.15), 0 0 24px rgba(250, 204, 21, 0.22);
}

.game-sos-player-card.eliminated {
  opacity: 0.58;
  filter: grayscale(0.7);
}

.game-sos-player-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 9px;
  color: #fff;
  font-size: 16px;
}

.game-sos-player-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.game-sos-player-card dt,
.game-sos-player-card dd {
  margin: 0;
}

.game-sos-player-card dd {
  color: #fff;
  font-weight: 950;
  text-align: right;
}

.game-sos-status-badge {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.game-sos-board-card {
  padding: clamp(10px, 1.2vw, 18px);
}

.game-sos-table-area {
  min-width: 0;
}

.game-sos-board-stage {
  position: relative;
}

.game-sos-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(11, minmax(78px, 1fr));
  grid-template-rows: repeat(11, minmax(74px, 1fr));
  gap: 6px;
  min-height: 820px;
  border-radius: 24px;
  padding: 9px;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.16) 25%, transparent 25% 50%, rgba(250, 204, 21, 0.16) 50% 75%, transparent 75%) 0 0 / 48px 48px, #0b1220;
  border: 2px solid rgba(250, 204, 21, 0.28);
  overflow: hidden;
}

.game-sos-board-center {
  grid-column: 2 / 11;
  grid-row: 2 / 11;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 26px;
  padding: clamp(20px, 3vw, 40px);
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.14), transparent 45%), linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.86));
  border: 1px solid var(--border);
}

.game-sos-board-center h3 {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(42px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.game-sos-board-center p {
  display: none;
}

.game-sos-board-hud {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: min(760px, calc(100% - 250px));
  max-height: calc(100% - 210px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: clamp(14px, 1.4vw, 22px);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

.game-sos-topbar {
  margin-bottom: 12px;
}

.game-sos-turn-info {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.game-sos-dice-box {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.game-sos-die {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  font-size: 30px;
  font-weight: 950;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.1), 0 12px 22px rgba(0, 0, 0, 0.25);
}

.game-sos-action-panel {
  border-radius: 18px;
  padding: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.game-sos-action-panel strong {
  display: block;
  color: #fff;
  margin-bottom: 5px;
}

.game-sos-action-panel p {
  margin: 0 0 8px;
  line-height: 1.45;
}

.game-sos-action-panel .game-sos-actions {
  margin-top: 12px;
}

.game-sos-square {
  --square-bg: #334155;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 3px;
  min-width: 0;
  min-height: 74px;
  padding: 8px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(160deg, color-mix(in srgb, var(--square-bg) 92%, white 8%), color-mix(in srgb, var(--square-bg) 70%, black 30%));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 7px 16px rgba(0, 0, 0, 0.18);
}

@supports not (background: color-mix(in srgb, #000 50%, #fff 50%)) {
  .game-sos-square {
    background: var(--square-bg);
  }
}

.game-sos-square.type-inicio { --square-bg: #16a34a; }
.game-sos-square.type-local { --square-bg: #0369a1; }
.game-sos-square.type-companhia { --square-bg: #c2410c; }
.game-sos-square.type-desafio { --square-bg: #6d28d9; }
.game-sos-square.type-noticia { --square-bg: #ca8a04; }
.game-sos-square.type-multa,
.game-sos-square.type-va_para_prisao { --square-bg: #b91c1c; }
.game-sos-square.type-bonus,
.game-sos-square.type-ferias { --square-bg: #15803d; }
.game-sos-square.type-prisao { --square-bg: #475569; }

.game-sos-square.owned {
  box-shadow: inset 0 0 0 3px var(--owner-color, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 7px 16px rgba(0, 0, 0, 0.18);
}

.game-sos-square-num {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.game-sos-square-name {
  color: #fff;
  font-size: clamp(10px, 0.78vw, 13px);
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.game-sos-square-meta {
  color: rgba(255, 255, 255, 0.82);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.08;
}

.game-sos-pins {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-self: end;
  min-height: 18px;
}

.game-sos-pin {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--pin-color);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.38);
}

.game-sos-pin.current {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}

.game-sos-log-card {
  max-height: 260px;
  overflow: hidden;
}

.game-sos-log {
  display: grid;
  gap: 8px;
  max-height: 170px;
  overflow: auto;
  margin: 0;
  padding: 0 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.game-sos-log li::marker {
  color: var(--yellow);
  font-weight: 900;
}

.game-sos-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.game-sos-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(4px);
}

.game-sos-modal-card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 24px;
  padding: clamp(20px, 4vw, 32px);
}

.game-sos-modal-body {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.game-sos-modal-body p {
  margin: 0 0 12px;
}

.game-sos-news-type {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.game-sos-news-type.boa {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.game-sos-news-type.ruim {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.game-sos-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.game-sos-question-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.game-sos-question-options button {
  width: 100%;
  text-align: left;
}

.game-sos-final-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.game-sos-final-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.game-sos-noscript {
  margin-top: 20px;
}

@media (max-width: 1380px) {
  .game-sos-board {
    grid-template-columns: repeat(11, minmax(64px, 1fr));
    grid-template-rows: repeat(11, minmax(64px, 1fr));
    min-height: 720px;
  }

  .game-sos-board-hud {
    width: min(680px, calc(100% - 210px));
  }
}

@media (max-width: 1080px) {
  .game-sos-own-header,
  .game-sos-section-head,
  .game-sos-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .game-sos-header-rules {
    justify-content: flex-start;
  }

  .game-sos-own-header h1 {
    white-space: normal;
  }

  .game-sos-players-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-sos-board {
    grid-template-columns: repeat(11, minmax(52px, 1fr));
    grid-template-rows: repeat(11, minmax(56px, 1fr));
    min-height: 640px;
  }

  .game-sos-board-hud {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-height: none;
    transform: none;
    margin-top: 10px;
  }
}

@media (max-width: 820px) {
  .game-sos-app {
    width: min(100% - 12px, 100%);
    margin-top: 8px;
  }

  .game-sos-header-rules span {
    font-size: 12px;
    padding: 7px 10px;
  }

  .game-sos-players-form,
  .game-sos-players-panel {
    grid-template-columns: 1fr;
  }

  .game-sos-board {
    grid-template-columns: repeat(11, minmax(38px, 1fr));
    grid-template-rows: repeat(11, minmax(46px, 1fr));
    gap: 3px;
    min-height: 540px;
    padding: 5px;
  }

  .game-sos-square {
    min-height: 46px;
    padding: 4px;
    border-radius: 8px;
  }

  .game-sos-square-name,
  .game-sos-square-meta,
  .game-sos-square-num {
    font-size: 8px;
  }

  .game-sos-pin {
    width: 12px;
    height: 12px;
    border-width: 1px;
  }

  .game-sos-board-center {
    padding: 12px;
    border-radius: 16px;
  }

  .game-sos-board-center h3 {
    font-size: 34px;
  }

  .game-sos-dice-box {
    justify-content: flex-start;
  }

  .game-sos-die {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
}
