:root {
  --bg: #0d0a09;
  --surface: #181311;
  --surface-2: #241b18;
  --gold: #d4af37;
  --gold-light: #f3d778;
  --bronze: #9e732b;
  --ivory: #f2e7d0;
  --crimson: #8c1d1d;
  --crimson-bright: #b82929;
  --text: #efe5d3;
  --muted: #a69682;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top center, #2b1311 0%, var(--bg) 62%);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.brand-title {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 5px;
  color: var(--ivory);
  text-shadow: 0 2px 16px rgba(140, 29, 29, 0.55);
}

.brand-title.small {
  font-size: 26px;
  letter-spacing: 3px;
}

/* GOMBOK */
.btn {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
}

.btn-gold {
  background: linear-gradient(135deg, #e5c358, #b58927);
  color: #1c1208;
  border-color: #f7df8d;
}

.btn-gold:hover:not(:disabled) {
  background: linear-gradient(135deg, #f3d778, #c79a32);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--ivory);
  border-color: rgba(212, 175, 55, 0.35);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--gold);
}

.btn-danger {
  background: var(--crimson);
  color: var(--ivory);
  border-color: #d45252;
}

.btn-danger:hover:not(:disabled) {
  background: var(--crimson-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: rgba(212, 175, 55, 0.25);
}

.btn-mini {
  background: var(--surface-2);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
}

.btn-mini:hover:not(:disabled) {
  border-color: var(--gold);
}

.btn-mini:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-icon, .eye-btn {
  background: var(--surface-2);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
}

/* LOGIN & LOBBY */
.screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card, .lobby-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.65);
}

.lobby-card {
  max-width: 680px;
}

.subtitle, .lobby-hint {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 22px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.field input, .select-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 7px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: #100c0b;
  color: var(--ivory);
  font-size: 15px;
}

.select-input {
  width: auto;
  padding: 8px 12px;
  font-size: 13px;
}

.field input:focus, .select-input:focus {
  outline: none;
  border-color: var(--gold);
}

.error-box {
  background: rgba(140, 29, 29, 0.3);
  border: 1px solid var(--crimson-bright);
  color: #ffd3d3;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
  margin-bottom: 14px;
}

.lobby-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.lobby-players {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.lobby-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid rgba(212, 175, 55, 0.18);
  padding: 10px 14px;
  border-radius: 8px;
}

.lobby-player-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seat-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #140f0d;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.badge-host { background: var(--gold); color: #1a1006; }
.badge-you { background: #3b2a17; color: var(--ivory); border: 1px solid var(--bronze); }
.badge-off { background: #3d1c1c; color: #f5b3b3; }

.lobby-row-actions {
  display: flex;
  gap: 6px;
}

.lobby-host-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* SZEREP ELOSZTÁS DOBOZ A LOBBYBAN */
.lobby-role-box {
  background: #130e0c;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lobby-role-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.lobby-role-head strong {
  color: var(--ivory);
  margin-right: 8px;
}

.role-sum-hint {
  font-size: 12px;
  color: var(--gold-light);
}

.role-sum-hint.warn {
  color: #ff7a7a;
  font-weight: 700;
}

.role-steppers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.role-stepper {
  background: var(--surface-2);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.role-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--ivory);
}

.gold-txt {
  color: var(--gold-light);
}

.stepper-ctrl {
  display: flex;
  align-items: center;
  gap: 7px;
}

.stepper-ctrl strong {
  min-width: 18px;
  text-align: center;
  font-size: 14px;
}

.lobby-role-summary {
  background: rgba(140, 29, 29, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--gold-light);
  margin-bottom: 12px;
  text-align: center;
}

.lobby-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lobby-controls .btn {
  flex: 1;
}

.lobby-test-box {
  background: #120d0c;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lobby-test-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}

.lobby-test-info strong {
  color: var(--gold-light);
  font-size: 13px;
}

.lobby-test-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wait-msg {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 10px;
}

/* 3 OSZLOPOS JÁTÉKTÉR */
.game-layout {
  display: grid;
  grid-template-columns: 240px 1fr 270px;
  gap: 16px;
  padding: 16px;
  max-width: 1580px;
  margin: 0 auto;
  min-height: 100vh;
  align-items: start;
}

.sidebar {
  background: var(--surface);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 16px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 8px;
}

.panel-header h2 {
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
}

.card-slot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 6px;
}

.svg-card-box svg {
  width: 100%;
  height: auto;
  display: block;
}

.allies-box {
  background: var(--surface-2);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 10px;
}

.allies-list {
  font-size: 13px;
  color: var(--ivory);
}

.ally-item {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.15);
}

.ally-item:last-child {
  border-bottom: none;
}

/* TESZTKÖR VEZÉRLŐSÁV */
.test-bar {
  background: #140d0c;
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.test-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.test-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ivory);
}

.test-bar-title strong {
  color: var(--gold-light);
}

.test-bar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.test-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.test-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.test-pill {
  background: var(--surface-2);
  color: var(--ivory);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.test-pill:hover {
  border-color: var(--gold);
}

.test-pill.active {
  background: var(--crimson);
  border-color: var(--gold-light);
  font-weight: 700;
}

.test-pill.dead {
  opacity: 0.48;
  text-decoration: line-through;
}

.need-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px var(--gold-light);
}

/* KÖZÉPSŐ PANEL */
.center-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.top-status-bar {
  background: var(--surface);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.round-pill {
  background: var(--crimson);
  color: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.phase-status {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
  text-align: center;
  flex: 1;
}

.deck-pills {
  display: flex;
  gap: 8px;
}

.deck-pill {
  background: var(--surface-2);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
  color: var(--muted);
}

.deck-pill strong {
  color: var(--ivory);
}

/* JÁTÉKOS SZÉKEK */
.table-seats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}

.seat-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.seat-card.is-me {
  border-color: rgba(243, 215, 120, 0.6);
}

.seat-card.is-dead {
  opacity: 0.45;
  background: #120d0d;
  border-color: #4f1c1c;
}

.seat-card.is-selectable {
  cursor: pointer;
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

.seat-card.is-selectable:hover {
  transform: translateY(-2px);
  background: #291e1a;
}

.seat-card.is-targeted {
  border-color: #ff3838 !important;
  box-shadow: 0 0 18px rgba(255, 56, 56, 0.55) !important;
}

.seat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.seat-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ivory);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.conn-dot.on { background: #46c46e; }
.conn-dot.off { background: #c94040; }

.seat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.seat-plaque svg {
  width: 100%;
  max-width: 135px;
  height: auto;
  display: block;
}

.seat-crosshair {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(140, 29, 29, 0.25);
  border-radius: 9px;
  pointer-events: none;
  animation: pulseRed 1.1s infinite ease-in-out;
}

.seat-crosshair svg {
  width: 68px;
  height: 68px;
}

.seat-vote-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  align-self: flex-start;
  background: #2b211a;
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

/* TÁBLÁK */
.boards-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.board-mount svg {
  width: 100%;
  height: auto;
  display: block;
}

/* AKCIÓ ZÓNA */
.action-zone {
  background: var(--surface);
  border: 1.5px solid rgba(212, 175, 55, 0.32);
  border-radius: 12px;
  padding: 18px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.action-title {
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 18px;
  color: var(--gold-light);
  letter-spacing: 1.5px;
}

.action-sub {
  font-size: 13px;
  color: var(--muted);
  max-width: 560px;
}

.cards-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.interactive-card {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 4px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.interactive-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.3);
}

.votes-reveal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.revealed-vote-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: popIn 0.25s ease;
}

.revealed-vote-card .voter-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ivory);
}

/* 3. OPCIÓ: OPTIKAI CÉLZÓPULT SVG ANIMÁCIÓK */
.exec-console-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  user-select: none;
}

.svg-hotspot {
  cursor: pointer;
  transition: filter 0.15s ease;
}

.svg-hotspot:hover {
  filter: brightness(1.16);
}

.svg-locked {
  cursor: not-allowed;
}

.scope-rings {
  transform-origin: 132px 118px;
  transition: transform 0.32s cubic-bezier(0.2, 1.2, 0.4, 1);
}

.scope-rings.locked {
  transform: scale(1.06);
}

.scope-reticle {
  transform-origin: 132px 118px;
  animation: scopeScan 4s ease-in-out infinite;
}

.scope-reticle.locked {
  animation: none;
  transform: scale(0.92);
  transition: transform 0.24s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.flip-cover {
  transform-origin: 318px 48px;
  transition: transform 0.26s cubic-bezier(0.3, 1.2, 0.4, 1), opacity 0.24s ease;
}

.flip-cover.open {
  transform: scaleY(0.16) translateY(-10px);
  opacity: 0.5;
}

@keyframes scopeScan {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(3px, -2px); }
  66% { transform: translate(-3px, 2px); }
}

/* JOBB OLDALSÁV WIDGETEK */
.widget-box {
  background: var(--surface-2);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.widget-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
}

.bell-btn, .notebook-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease;
}

.bell-btn:hover, .notebook-btn:hover {
  transform: scale(1.06);
}

.bell-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.bell-meta {
  font-size: 12px;
  color: var(--muted);
}

.bell-countdown {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-light);
}

.unread-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  background: #ff3b3b;
  border-radius: 50%;
  border: 2px solid var(--surface-2);
}

.aid-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aid-head-btns {
  display: flex;
  gap: 5px;
}

.aid-card-mount {
  width: 100%;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.aid-card-mount svg, .aid-zoom-mount svg {
  width: 100%;
  height: auto;
  display: block;
}

.aid-zoom-mount {
  width: min(100%, 480px);
}

/* NEM-BLOKKOLÓ OVERLAYEK (10..0 ÉS CÉLKERESZT) */
.bell-urgent-hud {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  pointer-events: none;
}

.bell-urgent-inner {
  background: rgba(110, 14, 14, 0.92);
  border: 2px solid var(--gold-light);
  border-radius: 12px;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 0 32px rgba(255, 50, 50, 0.7);
  animation: pulseRed 0.75s infinite;
}

.bell-urgent-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--ivory);
}

.bell-urgent-num {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--gold-light);
}

.targeted-overlay {
  position: fixed;
  inset: 0;
  z-index: 850;
  pointer-events: none;
  border: 6px solid rgba(220, 38, 38, 0.75);
  box-shadow: inset 0 0 90px rgba(180, 15, 15, 0.65);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
}

.targeted-banner {
  background: rgba(24, 8, 8, 0.9);
  border: 2px solid #ff4747;
  border-radius: 12px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: pulseRed 0.9s infinite;
}

.targeted-banner svg {
  width: 44px;
  height: 44px;
}

.targeted-text {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  color: #ff9c9c;
  letter-spacing: 2px;
}

/* MODALOK & GRAND REVEAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 5, 0.85);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
}

.modal-dialog.modal-lg {
  max-width: 620px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.modal-head h3 {
  font-family: Georgia, serif;
  color: var(--gold-light);
  letter-spacing: 1.5px;
}

.close-x {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  padding: 18px;
  max-height: 78vh;
  overflow-y: auto;
}

.center-flex {
  display: flex;
  justify-content: center;
}

.setting-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}

.setting-row.row-inline {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.sep {
  border: none;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  margin: 14px 0;
}

.host-menu-section h4 {
  color: var(--gold-light);
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.host-kick-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.kick-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
}

/* GRAND REVEAL */
.grand-reveal-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px;
  border-radius: 18px;
  background: #140d0c;
  border: 2px solid var(--gold);
  animation: grandPop 0.65s cubic-bezier(0.2, 0.9, 0.3, 1);
  max-width: 380px;
  width: 100%;
  text-align: center;
}

.grand-reveal-content.aura-vajda {
  box-shadow: 0 0 70px rgba(212, 175, 55, 0.65), 0 0 110px rgba(184, 41, 41, 0.75);
}

.grand-reveal-content.aura-kiseret {
  box-shadow: 0 0 55px rgba(184, 41, 41, 0.6);
}

.grand-reveal-content.aura-polgar {
  box-shadow: 0 0 55px rgba(242, 231, 208, 0.35);
}

.grand-reveal-svg svg {
  width: 210px;
  height: auto;
  display: block;
}

.grand-reveal-allies {
  font-size: 13px;
  color: var(--ivory);
}

/* ESEMÉNYNAPLÓ */
.logbook-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-entry {
  background: var(--surface-2);
  border-left: 3px solid var(--gold);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.log-entry.polgar { border-left-color: var(--ivory); }
.log-entry.vajda, .log-entry.danger { border-left-color: #d93b3b; }
.log-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}

/* TUTORIAL (SOHA NEM TAKAR ÉS MINDIG KATTINTHATÓ!) */
.tutorial-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(5, 3, 3, 0.76);
  backdrop-filter: blur(2px);
}

.tutorial-card {
  position: fixed;
  z-index: 1350;
  max-width: 400px;
  background: var(--surface);
  border: 2px solid var(--gold-light);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  transition: top 0.2s ease, left 0.2s ease;
}

.tutorial-card h3 {
  font-family: Georgia, serif;
  color: var(--ivory);
  margin-bottom: 8px;
}

.tutorial-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.tutorial-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.tutorial-highlight {
  z-index: 1220 !important;
  pointer-events: none !important;
  box-shadow: 0 0 0 3px var(--gold-light), 0 0 34px rgba(243, 215, 120, 0.7) !important;
}

.tutorial-highlight:not(.sidebar) {
  position: relative;
}

.sidebar:has(.tutorial-highlight) {
  z-index: 1220 !important;
}

.sidebar:has(.tutorial-highlight) > *:not(.tutorial-highlight) {
  opacity: 0.25;
  filter: brightness(0.6);
}

/* TOAST */
.toast-container {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #241b18;
  border: 1px solid var(--gold);
  color: var(--ivory);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.toast.error {
  background: #591111;
  border-color: #ff5c5c;
}

@keyframes pulseRed {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.86; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes grandPop {
  0% { opacity: 0; transform: scale(0.72) rotateY(30deg); }
  65% { opacity: 1; transform: scale(1.04) rotateY(0deg); }
  100% { transform: scale(1); }
}

@media (max-width: 1120px) {
  .game-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .left-panel, .right-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
  .panel-header, .right-top-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .role-steppers {
    grid-template-columns: 1fr;
  }
}
