﻿/* Tariff Wars v4.1 (layout preserved) */
.container {
  position: relative;
  max-width: 1200px;
  margin: 20px auto 40px;
  padding: 20px;
  background: rgba(10,10,10,0.82);
  border: 2px solid #00cccc;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0,255,255,.3);
  text-align: center;
}
.game-info {
  border: 1px solid #00cccc;
  border-radius: 10px;
  background: rgba(0, 30, 30, 0.6);
  color: #e0fafa;
  padding: 15px 20px;
  width: fit-content;
  margin: 10px auto 20px;
  box-shadow: 0 0 15px rgba(0,255,255,0.2);
}
.game-info h3 { color: #00cccc; margin-bottom: 5px; }
.game-info ul { list-style: none; padding: 0; margin: 0; }
.game-info li { margin: 4px 0; }

#leader-frames {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 120px;
  margin: 6px auto 12px;
}
.portrait-frame {
  position: relative;
  width: 260px; height: 260px;
  border: 2px solid #00cccc;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(0,40,40,0.6), rgba(0,0,0,0.2));
  box-shadow: 0 0 20px rgba(0,255,255,0.25), inset 0 0 12px rgba(0,255,255,0.15);
}
.portrait-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.35));
}
#aura-left, #aura-right {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: lighter;
  mask-image: radial-gradient(circle at center, rgba(255,255,255,1) 78%, rgba(255,255,255,0) 100%);
}

#tariffwars-stage {
  position: relative;
  width: 900px; height: 540px;
  margin: 0 auto 16px;
  border: 2px solid #00cccc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,255,255,0.35);
  background: url("/minigames/tariffwars/images/bg-plate.png") center/cover no-repeat;
}
#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display:block; }

#scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-family: 'Cinzel', serif;
  color: #00cccc;
}
#versus {
  font-size: 1.4em;
  padding: 6px 10px;
  border: 1px solid #00cccc;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,255,255,0.25);
}
.tariff {
  font-size: 1.4em;
  padding: 6px 10px;
  border: 1px solid #00cccc;
  border-radius: 10px;
  box-shadow: inset 0 0 8px rgba(0,255,255,0.25);
  min-width: 92px;
}
.tariff.bump { animation: tw-bump 350ms ease; }
@keyframes tw-bump {
  0% { transform: scale(1); text-shadow: 0 0 0 rgba(0,255,255,0); }
  40%{ transform: scale(1.08); text-shadow: 0 0 18px rgba(0,255,255,0.7); }
  100%{transform: scale(1); text-shadow: 0 0 0 rgba(0,255,255,0); }
}
.tariff.left  { justify-self: end; }
.tariff.right { justify-self: start; }

#sound-toggle {
  position: absolute; top: 15px; right: 20px;
  font-size: 22px; color: #00cccc;
  background: transparent; border: 1px solid #00cccc;
  border-radius: 8px; padding: 2px 6px;
  text-shadow: 0 0 10px #00cccc;
  transition: transform 0.2s ease;
}
#sound-toggle:hover { transform: scale(1.12); }

#match-history { margin-top: 18px; }
#history-table {
  width: 100%; max-width: 720px; margin: 0 auto;
  border-collapse: collapse; background: rgba(15,15,15,0.92);
  border: 1px solid #00cccc; box-shadow: 0 0 10px rgba(0,255,255,0.2);
}
#history-table th, #history-table td { padding: 8px 10px; border: 1px solid #00cccc; font-size: 0.95em; }
#history-table th { background: #00cccc; color: #000; }

body { background-attachment: fixed; }

@media (max-width: 980px) {
  #tariffwars-stage { width: 95%; height: 520px; }
  #leader-frames { gap: 32px; }
  .portrait-frame { width: 220px; height: 220px; }
}

