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

:root {
  --color-x: #4ecdc4;
  --color-o: #ff6b6b;
  --color-bg: #1a1a2e;
  --color-surface: #16213e;
  --color-text: #eee;
  --color-muted: #888;
  --color-accent: #4ecdc4;
  --color-stop: #ff6b6b;
  --player-color: var(--color-muted);
}

html, body {
  touch-action: manipulation;
  overscroll-behavior: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  height: 100dvh;
  overflow: hidden;
  position: fixed;
  width: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

#app {
  height: 100dvh;
  width: 100%;
  position: relative;
}

/* === SCREENS === */
.screen {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: env(safe-area-inset-top, 20px);
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.screen.active {
  display: flex;
}

/* Scrollable screens (adedanha) */
.screen-scrollable {
  overflow-y: auto;
  position: relative;
  justify-content: flex-start;
}

.screen-scrollable.active {
  display: flex;
}

/* === LOADING SCREEN === */
.loading-content {
  text-align: center;
}

/* === NAME SCREEN === */
.name-content {
  text-align: center;
  width: 100%;
  max-width: 360px;
}

.brand-title {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-x), var(--color-o));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.1rem;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  text-align: right;
}

.name-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#input-name {
  background: var(--color-surface);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 1.3rem;
  color: var(--color-text);
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

#input-name:focus {
  border-color: var(--color-accent);
}

#input-name::placeholder {
  color: var(--color-muted);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 16px;
  padding: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:active {
  transform: scale(0.95);
}

.error-text {
  color: var(--color-stop);
  font-size: 0.9rem;
  min-height: 1.5rem;
  margin-top: 0.5rem;
}

/* === LOBBY SCREEN === */
.lobby-content {
  text-align: center;
  width: 100%;
  max-width: 360px;
}

.lobby-room-code {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-label-ctrl {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Game grid — unified for active + soon */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 1rem;
}

.game-card {
  background: var(--color-surface);
  border: 3px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px 10px;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.game-card:not(.soon):active {
  transform: scale(0.95);
}

.game-card.selected {
  border-color: var(--color-accent);
  background: rgba(78, 205, 196, 0.12);
  box-shadow: 0 0 24px rgba(78, 205, 196, 0.15);
}

.game-card-emoji {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.game-card-name {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.1;
}

.game-card-desc {
  font-size: 0.65rem;
  color: var(--color-muted);
}

/* Soon cards */
.game-card.soon {
  opacity: 0.45;
  cursor: not-allowed;
}

.soon-badge {
  position: absolute;
  top: 6px;
  right: -20px;
  background: #e6a817;
  color: #1a1a2e;
  font-size: 0.5rem;
  font-weight: 800;
  padding: 2px 24px;
  transform: rotate(35deg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-ready {
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 16px;
  padding: 14px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 0.8rem;
}

.btn-ready:active:not(:disabled) {
  transform: scale(0.95);
}

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

.btn-ready.is-ready {
  background: rgba(78, 205, 196, 0.2);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.ctrl-badges {
  display: flex;
  gap: 4px;
  align-items: center;
}

.ctrl-ready-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #4caf50;
  background: rgba(76, 175, 80, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
}

.ctrl-player-tag.is-ready {
  border-color: rgba(76, 175, 80, 0.5);
}

.lobby-status {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  min-height: 1.5rem;
}

.lobby-status.consensus-ready {
  color: var(--color-accent);
  font-weight: 700;
}

.lobby-player-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}

.ctrl-player-tag {
  background: var(--color-surface);
  border: 2px solid rgba(78, 205, 196, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: pop-in 0.3s ease-out;
}

.ctrl-player-tag.has-vote {
  border-color: rgba(78, 205, 196, 0.4);
}

.ctrl-vote-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(78, 205, 196, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
}

.ctrl-player-tag.me {
  border-color: var(--color-accent);
  background: rgba(78, 205, 196, 0.1);
}

.lobby-wait {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* === JOGO DA VELHA SCREENS === */
.waiting-content {
  text-align: center;
}

.waiting-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.connecting {
  color: var(--color-muted);
  font-size: 1.2rem;
}

.assigned-content {
  text-align: center;
  animation: pop-in 0.5s ease-out;
}

.assigned-label {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.assigned-symbol {
  font-size: 6rem;
  font-weight: 900;
  color: var(--player-color);
  line-height: 1;
  margin-bottom: 1rem;
}

.assigned-waiting {
  color: var(--color-muted);
  font-size: 1rem;
}

#screen-game {
  gap: 1.5rem;
  padding: 15px;
}

#turn-indicator {
  text-align: center;
  padding: 12px 24px;
  border-radius: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

#turn-indicator.my-turn {
  background: var(--player-color);
  color: var(--color-bg);
  animation: pulse-turn 1.5s ease-in-out infinite;
}

#turn-indicator.not-my-turn {
  background: var(--color-surface);
  color: var(--color-muted);
}

@keyframes pulse-turn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

#controller-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  width: min(85vw, 85dvh - 120px);
  height: min(85vw, 85dvh - 120px);
  max-width: 400px;
  max-height: 400px;
}

.ctrl-cell {
  background: var(--color-surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  border: 3px solid transparent;
  transition: all 0.15s ease;
  min-height: 60px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ctrl-cell.available {
  border-color: rgba(255, 255, 255, 0.1);
}

.ctrl-cell.my-turn.available {
  border-color: var(--player-color);
  opacity: 1;
}

.ctrl-cell.my-turn.available:active {
  transform: scale(0.93);
  background: rgba(255, 255, 255, 0.1);
}

.ctrl-cell.taken {
  opacity: 0.7;
}

.ctrl-cell .cell-x { color: var(--color-x); }
.ctrl-cell .cell-o { color: var(--color-o); }

.ctrl-cell.not-my-turn {
  opacity: 0.5;
}

.gameover-content {
  text-align: center;
  animation: pop-in 0.4s ease-out;
}

#result-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

#result-text {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

#btn-rematch {
  background: var(--player-color);
  color: var(--color-bg);
  border: none;
  border-radius: 16px;
  padding: 16px 48px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

#btn-rematch:active {
  transform: scale(0.95);
}

#btn-rematch.requested {
  opacity: 0.6;
  pointer-events: none;
}

#rematch-status {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  min-height: 1.5rem;
}

.full-content {
  text-align: center;
}

.full-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* === ADEDANHA SCREENS (Controller) === */
.adedanha-play-content {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 80px; /* space for sticky stop button */
}

.adedanha-play-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.adedanha-play-round {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 600;
}

.adedanha-play-letter {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}

.adedanha-play-timer {
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.adedanha-play-timer.timer-urgent {
  color: var(--color-stop);
  animation: pulse-timer 0.5s ease-in-out infinite;
}

.adedanha-play-timer.timer-grace {
  color: #ffd700;
}

@keyframes pulse-timer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.adedanha-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  padding-left: 4px;
}

.adedanha-input {
  background: var(--color-surface);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1.1rem;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  width: 100%;
}

.adedanha-input:focus {
  border-color: var(--color-accent);
}

.adedanha-input::placeholder {
  color: var(--color-muted);
  opacity: 0.5;
}

.btn-stop {
  position: sticky;
  bottom: 0;
  background: var(--color-stop);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 18px;
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 2px;
  width: 100%;
  max-width: 420px;
  margin-top: 0.5rem;
}

.btn-stop:active:not(:disabled) {
  transform: scale(0.95);
}

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

.btn-stop.stopped {
  background: var(--color-muted);
  opacity: 0.6;
}

/* Adedanha wait */
.adedanha-wait-content {
  text-align: center;
}

.adedanha-wait-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.adedanha-wait-text {
  color: var(--color-muted);
  font-size: 1rem;
  margin-top: 1rem;
}

/* Adedanha validation (controller) */
.adedanha-validate-content {
  width: 100%;
  max-width: 420px;
}

.adedanha-validate-content h2 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: var(--color-accent);
}

.validate-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.ctrl-validate-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 1rem;
}

.validate-cat-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
  padding: 8px 4px 4px;
  margin-top: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.validate-row {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border-radius: 8px;
  padding: 10px 12px;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s;
}

.validate-row:active {
  transform: scale(0.98);
}

.validate-row.eliminated {
  opacity: 0.35;
  text-decoration: line-through;
}

.validate-name {
  font-size: 0.8rem;
  color: var(--color-muted);
  min-width: 50px;
}

.validate-answer {
  flex: 1;
  font-weight: 600;
}

.validate-x {
  color: var(--color-stop);
  font-weight: 900;
  font-size: 1.1rem;
  min-width: 20px;
  text-align: center;
}

/* Adedanha results (controller) */
.adedanha-results-content {
  width: 100%;
  max-width: 420px;
}

.adedanha-results-content h2 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.ctrl-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.ctrl-result-row {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border-radius: 10px;
  padding: 10px 14px;
  gap: 10px;
}

.ctrl-result-cat {
  font-size: 0.8rem;
  color: var(--color-muted);
  min-width: 70px;
  font-weight: 600;
}

.ctrl-result-answer {
  flex: 1;
  font-weight: 600;
}

.ctrl-result-pts {
  font-weight: 700;
  font-size: 0.9rem;
}

.ctrl-result-row.pts-10 .ctrl-result-pts { color: var(--color-accent); }
.ctrl-result-row.pts-5 .ctrl-result-pts { color: #ffd700; }
.ctrl-result-row.pts-0 .ctrl-result-pts { color: var(--color-muted); }

.ctrl-results-scores {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ctrl-score-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--color-surface);
}

.ctrl-score-row.me {
  border: 2px solid var(--color-accent);
  background: rgba(78, 205, 196, 0.1);
}

/* Adedanha final (controller) */
.adedanha-final-content {
  text-align: center;
  width: 100%;
  max-width: 360px;
}

.adedanha-final-content h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffd700, var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ctrl-final-ranking {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ctrl-final-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 14px 16px;
  animation: pop-in 0.4s ease-out;
}

.ctrl-final-rank-item.me {
  border: 2px solid var(--color-accent);
}

.rank-pos {
  font-weight: 900;
  font-size: 1.2rem;
  min-width: 30px;
  text-align: center;
}

.rank-name {
  flex: 1;
  font-weight: 700;
  text-align: left;
}

.rank-pts {
  font-weight: 600;
  color: var(--color-accent);
}

/* === ANIMATIONS === */
@keyframes pop-in {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.shake {
  animation: shake 0.3s ease-in-out;
}

/* ============================================================================
   MONOPOLY FNAF — CONTROLLER STYLES
   ============================================================================ */

:root {
  --fnaf-purple: #7b4789;
  --fnaf-neon-green: #39ff14;
  --fnaf-gold: #ffd700;
}

/* --- Shared Monopoly Screen Base --- */
.monopoly-wait-content,
.monopoly-turn-content,
.monopoly-buy-content,
.monopoly-build-content,
.monopoly-trade-content,
.monopoly-trade-recv-content,
.monopoly-mortgage-content,
.monopoly-card-content,
.monopoly-jail-content,
.monopoly-bankrupt-content,
.monopoly-gameover-content {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* --- Waiting Screen --- */
.monopoly-wait-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.monopoly-wait-title {
  font-size: 1.5rem;
  color: var(--fnaf-purple);
  text-shadow: 0 0 10px rgba(123, 71, 137, 0.4);
}

.monopoly-wait-turn {
  font-size: 1.1rem;
  color: var(--color-muted);
  animation: pulse-text 2s infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.monopoly-wait-info {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 1rem;
  width: 100%;
}

/* --- My Info Block (shared) --- */
.my-token {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.my-cash {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fnaf-gold);
}

.my-props {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* --- Turn Screen --- */
.monopoly-turn-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.monopoly-your-turn {
  font-size: 1.6rem;
  text-align: center;
  color: var(--fnaf-neon-green);
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
  margin-bottom: 0.5rem;
}

.monopoly-my-info {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.monopoly-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.monopoly-actions .btn-primary,
.monopoly-actions .btn-secondary,
.monopoly-actions .btn-danger {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.monopoly-actions .btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.monopoly-actions .btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.1);
}

.monopoly-actions .btn-danger {
  background: rgba(255, 107, 107, 0.15);
  color: var(--color-stop);
  border: 1px solid var(--color-stop);
}

.monopoly-actions .btn-primary:active,
.monopoly-actions .btn-secondary:active,
.monopoly-actions .btn-danger:active {
  transform: scale(0.96);
}

.btn-large {
  padding: 18px !important;
  font-size: 1.3rem !important;
}

/* --- Buy Screen --- */
.monopoly-buy-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.monopoly-buy-content h2 {
  font-size: 1.5rem;
}

.monopoly-buy-details {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 1rem;
  width: 100%;
}

.buy-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fnaf-gold);
}

.buy-rent {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.monopoly-buy-buttons {
  display: flex;
  gap: 0.8rem;
  width: 100%;
}

.monopoly-buy-buttons .btn-primary {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  background: var(--color-accent);
  color: var(--color-bg);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.monopoly-buy-buttons .btn-secondary {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.monopoly-buy-buttons .btn-primary:active,
.monopoly-buy-buttons .btn-secondary:active {
  transform: scale(0.96);
}

/* --- Build Screen --- */
.monopoly-build-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.monopoly-build-content h2 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.monopoly-build-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.build-item {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 4px solid var(--color-muted);
}

.build-name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
}

.build-houses {
  font-size: 0.8rem;
  color: var(--fnaf-neon-green);
}

.btn-small {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-small.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-small.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-small.btn-danger {
  background: rgba(255, 107, 107, 0.15);
  color: var(--color-stop);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-small:active {
  transform: scale(0.95);
}

/* --- Trade Screen --- */
.monopoly-trade-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.monopoly-trade-content h2 {
  text-align: center;
  font-size: 1.3rem;
}

.monopoly-trade-content select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 1rem;
}

.monopoly-trade-content label {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.monopoly-trade-buttons {
  display: flex;
  gap: 0.6rem;
}

.monopoly-trade-buttons .btn-primary,
.monopoly-trade-buttons .btn-secondary {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.monopoly-trade-buttons .btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.monopoly-trade-buttons .btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.1);
}

/* --- Trade Received --- */
.monopoly-trade-recv-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.monopoly-trade-recv-content h2 {
  font-size: 1.3rem;
  color: var(--fnaf-gold);
}

/* --- Mortgage Screen --- */
.monopoly-mortgage-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.monopoly-mortgage-content h2 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.mortgage-item {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.mortgage-item.mortgaged {
  opacity: 0.6;
}

/* --- Card Screen (Mini-Games / Hallucinations) --- */
.monopoly-card-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.monopoly-card-type {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.monopoly-card-type.minigame {
  color: var(--fnaf-neon-green);
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
}

.monopoly-card-type.hallucination {
  color: var(--fnaf-purple);
  text-shadow: 0 0 12px rgba(123, 71, 137, 0.5);
}

.monopoly-card-text {
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 300px;
}

.monopoly-card-content .btn-primary {
  padding: 14px 40px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  background: var(--color-accent);
  color: var(--color-bg);
  cursor: pointer;
  transition: transform 0.15s ease;
}

/* --- Jail Screen --- */
.monopoly-jail-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.monopoly-jail-content h2 {
  font-size: 1.5rem;
  color: #ff8c00;
}

.monopoly-jail-info {
  font-size: 1rem;
  color: var(--color-muted);
}

.monopoly-jail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 300px;
}

.monopoly-jail-actions .btn-primary,
.monopoly-jail-actions .btn-secondary {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.monopoly-jail-actions .btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.monopoly-jail-actions .btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.1);
}

/* --- Bankrupt Screen --- */
.monopoly-bankrupt-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.monopoly-bankrupt-content h2 {
  font-size: 2rem;
  color: var(--color-stop);
}

.monopoly-bankrupt-content p {
  font-size: 1rem;
  color: var(--color-muted);
}

/* --- Game Over Screen --- */
.monopoly-gameover-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
}

.monopoly-gameover-content h2 {
  font-size: 1.8rem;
  color: var(--fnaf-gold);
}

.monopoly-gameover-content .ranking-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--color-surface);
  border-radius: 10px;
  width: 100%;
  max-width: 350px;
}

.monopoly-gameover-content .ranking-item.me {
  border: 2px solid var(--color-accent);
}

.monopoly-gameover-content .ranking-item.winner {
  background: linear-gradient(135deg, #2d1b4e, #1a2035);
  border: 2px solid var(--fnaf-gold);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.ranking-pos {
  font-size: 1.3rem;
  font-weight: 900;
  min-width: 2.5rem;
}

.ranking-token {
  font-size: 1.3rem;
}

.ranking-name {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
}

.ranking-assets {
  font-size: 1rem;
  color: var(--fnaf-gold);
  font-weight: 700;
}

/* --- Debt Warning --- */
.debt-warning {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid var(--color-stop);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.debt-warning p:first-child {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-stop);
}

/* --- Trade Props List --- */
.trade-props-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem 0;
}

.trade-props-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--color-surface);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.trade-props-list input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.monopoly-trade-content h3 {
  font-size: 1rem;
  color: var(--color-accent);
  margin-top: 0.5rem;
}

.monopoly-trade-content input[type="number"] {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px;
  font-size: 1rem;
}

/* --- Notification Slide --- */
@keyframes slideDown {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
