* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, rgba(212, 175, 55, 0.12), transparent 35%),
    #070707;
  color: #f5f5f5;
}

.game-header {
  padding: 18px 24px;
  background: #050505;
  border-bottom: 3px solid #d4af37;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 50;
}

.header-content {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.brand-area {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  font-size: 34px;
  line-height: 1;
}

.game-header h1 {
  margin: 0;
  font-size: 42px;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.game-header p {
  margin: 4px 0 0;
  color: #bfbfbf;
  font-size: 14px;
}

.rules-area {
  position: relative;
}

.rules-btn {
  width: auto;
  padding: 12px 18px;
}

.rules-box {
  position: absolute;
  right: 0;
  top: 52px;
  width: 390px;
  background: #111;
  border: 2px solid #d4af37;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

.rules-box h3 {
  margin: 0 0 10px;
  color: #d4af37;
  text-transform: uppercase;
}

.rules-box ul {
  margin: 0;
  padding-left: 18px;
  color: #ddd;
  line-height: 1.45;
  font-size: 14px;
}

.hidden {
  display: none;
}

.game-layout {
  display: flex;
  gap: 24px;
  padding: 24px;
  justify-content: center;
  align-items: flex-start;
}

.board-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.match-title {
  width: 100%;
  max-width: 900px;
  margin-bottom: 12px;
  padding: 12px 18px;
  background: #111;
  border: 2px solid #272727;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
}

.team-name {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 20px;
}

.red-name {
  color: #ff3b5f;
}

.blue-name {
  color: #2f7cff;
}

.versus {
  color: #d4af37;
  font-weight: 900;
  font-size: 16px;
}

.board-wrapper {
  background: #111;
  padding: 18px;
  border: 2px solid #d4af37;
  border-radius: 18px;
  box-shadow:
    0 0 20px rgba(212, 175, 55, 0.22),
    inset 0 0 16px rgba(255, 255, 255, 0.03);
}

.board {
  display: grid;
  grid-template-columns: repeat(11, 62px);
  grid-template-rows: repeat(5, 62px);
  border: 4px solid #f5f5f5;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 50%, transparent 50%),
    #1b7333;
  background-size: 124px 124px;
  position: relative;
  overflow: visible;
}

.cell {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.cell::after {
  content: attr(data-coord);
  position: absolute;
  top: 3px;
  left: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.72);
  z-index: 5;
}

.cell.shooting-zone {
  background: rgba(47, 124, 255, 0.22);
}

.cell.shooting-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 2px solid rgba(47, 124, 255, 0.75);
  border-right: 2px solid rgba(47, 124, 255, 0.35);
  pointer-events: none;
  z-index: 2;
}

.cell.shooting-line-start {
  box-shadow: inset 4px 0 0 rgba(47, 124, 255, 0.95);
}

.cell.shooting-line-end {
  box-shadow: inset -4px 0 0 rgba(47, 124, 255, 0.95);
}

.court-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.center-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(-50%);
}

.center-circle {
  position: absolute;
  width: 105px;
  height: 105px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.center-spot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.penalty-left {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100px;
  height: 170px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-left: none;
  border-radius: 0 90px 90px 0;
  transform: translateY(-50%);
}

.penalty-right {
  position: absolute;
  right: 0;
  top: 50%;
  width: 100px;
  height: 170px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-right: none;
  border-radius: 90px 0 0 90px;
  transform: translateY(-50%);
}

.goal-box-left {
  position: absolute;
  left: 0;
  top: 50%;
  width: 42px;
  height: 84px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-left: none;
  transform: translateY(-50%);
}

.goal-box-right {
  position: absolute;
  right: 0;
  top: 50%;
  width: 42px;
  height: 84px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-right: none;
  transform: translateY(-50%);
}

.penalty-spot-left,
.penalty-spot-right {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.penalty-spot-left {
  left: 78px;
}

.penalty-spot-right {
  right: 78px;
}

.visual-goal-left,
.visual-goal-right {
  position: absolute;
  width: 16px;
  height: 92px;
  top: 50%;
  transform: translateY(-50%);
  border: 3px solid #fff;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.35) 0,
      rgba(255,255,255,0.35) 2px,
      transparent 2px,
      transparent 9px
    );
}

.visual-goal-left {
  left: -17px;
  border-right: none;
}

.visual-goal-right {
  right: -17px;
  border-left: none;
}

.player {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.55),
    inset 0 0 8px rgba(255, 255, 255, 0.22);
  z-index: 10;
  position: relative;
  transition: transform 0.12s ease, outline 0.12s ease, opacity 0.12s ease;
}

.player.red {
  background: #ff2f6d;
}

.player.blue {
  background: #1e63ff;
}

.player.selected {
  outline: 4px solid #d4af37;
  transform: scale(1.1);
}

.player.moved {
  opacity: 0.65;
}

.player.special-used {
  filter: grayscale(0.45);
}

.player.ball-owner::before {
  content: "⚽";
  position: absolute;
  top: -18px;
  right: -8px;
  font-size: 18px;
}

.ball {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff 0 30%, #dcdcdc 31% 55%, #111 56% 62%, #fff 63%);
  border: 3px solid #111;
  position: absolute;
  bottom: 4px;
  right: 4px;
  z-index: 20;
}

.panel {
  width: 330px;
  background: #131313;
  border: 2px solid #2e2e2e;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  position: sticky;
  top: 18px;
}

.panel h2 {
  color: #d4af37;
  margin-top: 0;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.score-card {
  background: #090909;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  border: 1px solid #2d2d2d;
}

.score-card span {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-card strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
}

.red-card strong {
  color: #ff2f6d;
}

.blue-card strong {
  color: #1e63ff;
}

.mode-box,
.action-area,
.status-box {
  background: #090909;
  border: 1px solid #292929;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
}

.mode-box h3,
.action-area h3 {
  margin: 0 0 10px;
  color: #d4af37;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

.mode-box p {
  margin: 0 0 10px;
  color: #f4e3a4;
  font-size: 13px;
}

.mode-buttons,
.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mode-active {
  background: #f0cb50;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}

.setup-buttons {
  margin-bottom: 12px;
}

.wide-button {
  grid-column: 1 / -1;
}

button {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 12px;
  background: #d4af37;
  color: #111;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 12px;
}

button:hover {
  background: #f0cb50;
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  background: #1c1c1c;
  color: #666;
  border: 1px solid #333;
  cursor: not-allowed;
  opacity: 0.8;
}

button:disabled:hover {
  background: #1c1c1c;
}

button.secondary-active {
  background: #f0cb50;
  color: #111;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}

.message {
  min-height: 120px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #f4e3a4;
  padding: 12px;
  border-radius: 14px;
  line-height: 1.35;
  margin: 0 0 12px;
}

.status-box p {
  margin: 6px 0;
  font-size: 14px;
}

.coin-decision {
  background: #090909;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.coin-decision p {
  margin: 0 0 10px;
  color: #f4e3a4;
  font-weight: 700;
}

.coin-decision button {
  margin-top: 8px;
}

.coin-spin {
  display: inline-block;
  animation: coinFlip 0.7s linear infinite;
}

@keyframes coinFlip {
  0% {
    transform: rotateY(0deg) scale(1);
  }

  50% {
    transform: rotateY(180deg) scale(1.25);
  }

  100% {
    transform: rotateY(360deg) scale(1);
  }
}

.bottom-info {
  width: 100%;
  max-width: 900px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.selected-player-card,
.stats-help-card {
  background: #111;
  border: 2px solid #2b2b2b;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.45);
}

.selected-player-card h3,
.stats-help-card h3 {
  margin: 0 0 10px;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.player-stats {
  color: #ddd;
}

.player-stats p {
  margin: 6px 0;
  font-size: 14px;
}

.player-stats .name {
  font-weight: 900;
  color: #d4af37;
  text-transform: uppercase;
}

.player-stats .special {
  color: #f4e3a4;
  font-weight: 700;
}

.player-stats .stat-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.player-stats .stat-pill {
  background: #090909;
  border: 1px solid #303030;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}

.player-stats .stat-pill strong {
  color: #d4af37;
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stats-grid div {
  background: #090909;
  border: 1px solid #292929;
  padding: 10px;
  border-radius: 12px;
}

.stats-grid strong {
  color: #d4af37;
  display: block;
  font-size: 16px;
}

.stats-grid span {
  color: #ccc;
  font-size: 12px;
}

@media (max-width: 1050px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .rules-area {
    width: 100%;
  }

  .rules-btn {
    width: 100%;
  }

  .rules-box {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .game-layout {
    flex-direction: column;
    align-items: center;
    padding: 16px;
  }

  .game-header h1 {
    font-size: 34px;
  }

  .board {
    grid-template-columns: repeat(11, 34px);
    grid-template-rows: repeat(5, 34px);
  }

  .cell {
    width: 34px;
    height: 34px;
  }

  .cell::after {
    font-size: 7px;
  }

  .player {
    width: 27px;
    height: 27px;
    font-size: 9px;
    border-width: 2px;
  }

  .player.ball-owner::before {
    top: -14px;
    right: -7px;
    font-size: 13px;
  }

  .ball {
    width: 16px;
    height: 16px;
    border-width: 2px;
  }

  .center-circle {
    width: 62px;
    height: 62px;
  }

  .penalty-left,
  .penalty-right {
    width: 52px;
    height: 98px;
  }

  .goal-box-left,
  .goal-box-right {
    width: 24px;
    height: 52px;
  }

  .penalty-spot-left {
    left: 40px;
  }

  .penalty-spot-right {
    right: 40px;
  }

  .visual-goal-left,
  .visual-goal-right {
    width: 10px;
    height: 52px;
  }

  .visual-goal-left {
    left: -11px;
  }

  .visual-goal-right {
    right: -11px;
  }

  .panel {
    width: 100%;
    max-width: 430px;
    position: static;
  }

  .bottom-info {
    grid-template-columns: 1fr;
    max-width: 430px;
  }

  .player-stats .stat-line {
    grid-template-columns: 1fr 1fr;
  }
}


/* Overlay de dados */
.dice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.dice-overlay.hidden {
  display: none;
}

.dice-box {
  width: min(520px, 100%);
  background: #101010;
  border: 3px solid #d4af37;
  border-radius: 22px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.28), 0 18px 55px rgba(0, 0, 0, 0.75);
}

.dice-box h2 {
  margin: 0 0 6px;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dice-subtitle {
  margin: 0 0 16px;
  color: #ddd;
  line-height: 1.35;
}

.dice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.dice-side {
  background: #090909;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 14px;
}

.dice-name {
  margin: 0 0 8px;
  color: #f4e3a4;
  font-weight: 900;
}

.dice-face {
  width: 78px;
  height: 78px;
  margin: 0 auto 10px;
  border-radius: 18px;
  background: #f5f5f5;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 900;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.28), 0 8px 18px rgba(0,0,0,0.4);
  user-select: none;
}

.dice-face.rolling {
  animation: diceShake 0.16s linear infinite;
}

@keyframes diceShake {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(8deg) scale(1.06); }
  50% { transform: rotate(-8deg) scale(0.98); }
  75% { transform: rotate(6deg) scale(1.04); }
  100% { transform: rotate(0deg) scale(1); }
}

.dice-stat,
.dice-total,
.dice-final-text {
  margin: 6px 0 0;
  color: #ddd;
  font-size: 14px;
}

.dice-total {
  color: #d4af37;
  font-weight: 900;
}

.dice-roll-btn,
.dice-accept-btn {
  font-size: 14px;
  padding: 13px;
  margin-top: 4px;
}

.dice-final-text {
  min-height: 22px;
  color: #f4e3a4;
  font-weight: 700;
}

@media (max-width: 520px) {
  .dice-row {
    grid-template-columns: 1fr;
  }

  .dice-face {
    width: 64px;
    height: 64px;
    font-size: 34px;
  }
}


/* Overlay de microcinemáticas */
.cinematic-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(212, 175, 55, 0.14), transparent 45%),
    rgba(0, 0, 0, 0.82);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.cinematic-overlay.hidden {
  display: none;
}

.cinematic-box {
  width: min(680px, 100%);
  background: #0d0d0d;
  border: 3px solid #d4af37;
  border-radius: 24px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 0 42px rgba(212, 175, 55, 0.30), 0 18px 60px rgba(0, 0, 0, 0.85);
}

.cinematic-box h2 {
  margin: 0 0 6px;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cinematic-subtitle {
  margin: 0 0 16px;
  color: #e7e7e7;
  line-height: 1.35;
  font-weight: 700;
}

.cinematic-scene {
  margin: 0 auto 16px;
}

.cinematic-field {
  height: 260px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 50%, transparent 50%),
    radial-gradient(circle at center, rgba(255,255,255,0.12), transparent 20%),
    linear-gradient(135deg, #134d28, #092a18);
  background-size: 72px 72px, auto, auto;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.65);
}

.cinematic-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 42%, rgba(255,255,255,0.14) 48%, transparent 54%);
  animation: cinematicFlash 1.15s ease-out forwards;
  pointer-events: none;
}

.cinematic-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,0.75) 49.5% 50.5%, transparent 50.5%),
    radial-gradient(circle at center, transparent 0 44px, rgba(255,255,255,0.65) 45px 48px, transparent 49px);
  opacity: 0.55;
}

.cinematic-goal {
  position: absolute;
  right: 10px;
  top: 72px;
  width: 38px;
  height: 116px;
  border: 3px solid #fff;
  border-left: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.28) 0 3px, transparent 3px 12px);
  box-shadow: 0 0 16px rgba(255,255,255,0.18);
}

.cinematic-player {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 4px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0,0,0,0.55), inset 0 0 12px rgba(255,255,255,0.22);
}

.cinematic-player.red {
  background: #ff2f6d;
}

.cinematic-player.blue {
  background: #1e63ff;
}

.cinematic-player.neutral {
  background: #d4af37;
  color: #111;
}

.cinematic-actor {
  left: 78px;
  bottom: 48px;
}

.cinematic-target {
  right: 96px;
  bottom: 48px;
}

.cinematic-hidden {
  display: none;
}

.cinematic-ball-mini {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff 0 30%, #dcdcdc 31% 55%, #111 56% 62%, #fff 63%);
  border: 3px solid #111;
  left: 165px;
  bottom: 80px;
  z-index: 4;
}

.cinematic-impact {
  position: absolute;
  left: 50%;
  top: 36px;
  transform: translateX(-50%) scale(0.5);
  color: #d4af37;
  font-size: 42px;
  font-weight: 1000;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.65), 4px 5px 0 rgba(0,0,0,0.55);
  opacity: 0;
  animation: impactPop 0.85s ease-out forwards;
  animation-delay: 0.45s;
  z-index: 8;
}

.cinematic-tag {
  position: absolute;
  left: 16px;
  top: 14px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(212,175,55,0.55);
  border-radius: 999px;
  color: #f4e3a4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}

.cinematic-continue-btn {
  font-size: 14px;
  padding: 13px;
}

/* Variantes de jugada */
.cinematic-scene.pass_success .cinematic-ball-mini {
  animation: passBall 1.05s ease-out forwards;
}

.cinematic-scene.pass_success .cinematic-target {
  animation: receiveMove 1.05s ease-out forwards;
}

.cinematic-scene.pass_failed .cinematic-ball-mini,
.cinematic-scene.loose_ball .cinematic-ball-mini {
  animation: looseBounce 1.15s ease-out forwards;
}

.cinematic-scene.pass_intercepted .cinematic-ball-mini {
  animation: interceptedBall 1.05s ease-out forwards;
}

.cinematic-scene.pass_intercepted .cinematic-target {
  animation: interceptJump 1.05s ease-out forwards;
}

.cinematic-scene.steal_success .cinematic-actor {
  animation: stealSlide 1.05s ease-out forwards;
}

.cinematic-scene.steal_success .cinematic-ball-mini {
  animation: stealBall 1.05s ease-out forwards;
}

.cinematic-scene.steal_evaded .cinematic-actor {
  animation: missSlide 1.05s ease-out forwards;
}

.cinematic-scene.steal_evaded .cinematic-target {
  animation: evadeMove 1.05s ease-out forwards;
}

.cinematic-scene.shot_goal .cinematic-ball-mini,
.cinematic-scene.empty_goal .cinematic-ball-mini {
  animation: shotGoalBall 1.05s cubic-bezier(.2,.7,.2,1) forwards;
}

.cinematic-scene.shot_goal .cinematic-goal,
.cinematic-scene.empty_goal .cinematic-goal {
  animation: goalPulse 1.05s ease-out forwards;
}

.cinematic-scene.shot_saved .cinematic-ball-mini {
  animation: savedBall 1.05s ease-out forwards;
}

.cinematic-scene.shot_saved .cinematic-target {
  animation: keeperDive 1.05s ease-out forwards;
}

.cinematic-scene.shot_blocked .cinematic-ball-mini {
  animation: blockedBall 1.05s ease-out forwards;
}

.cinematic-scene.shot_blocked .cinematic-target {
  animation: blockStep 1.05s ease-out forwards;
}

.cinematic-scene.loose_claimed .cinematic-actor {
  animation: claimBallMove 1.05s ease-out forwards;
}

.cinematic-scene.loose_claimed .cinematic-ball-mini {
  animation: claimedBall 1.05s ease-out forwards;
}

@keyframes cinematicFlash {
  0% { transform: translateX(-120%); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

@keyframes impactPop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.45) rotate(-4deg); }
  55% { opacity: 1; transform: translateX(-50%) scale(1.12) rotate(2deg); }
  100% { opacity: 1; transform: translateX(-50%) scale(1) rotate(0deg); }
}

@keyframes passBall {
  0% { left: 165px; bottom: 82px; transform: scale(1); }
  100% { left: calc(100% - 165px); bottom: 82px; transform: scale(0.9); }
}

@keyframes receiveMove {
  0%, 65% { transform: translateX(0) scale(1); }
  100% { transform: translateX(-10px) scale(1.08); }
}

@keyframes looseBounce {
  0% { left: 165px; bottom: 82px; transform: rotate(0deg); }
  35% { left: 52%; bottom: 142px; transform: rotate(160deg); }
  70% { left: 64%; bottom: 56px; transform: rotate(300deg); }
  100% { left: 58%; bottom: 76px; transform: rotate(420deg); }
}

@keyframes interceptedBall {
  0% { left: 165px; bottom: 82px; }
  100% { left: 54%; bottom: 112px; }
}

@keyframes interceptJump {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translate(-42px, -28px) scale(1.12); }
  100% { transform: translate(-54px, -12px) scale(1.04); }
}

@keyframes stealSlide {
  0% { transform: translateX(0) rotate(0deg); }
  100% { transform: translateX(110px) rotate(-12deg) scale(1.05); }
}

@keyframes stealBall {
  0% { left: calc(100% - 160px); bottom: 80px; }
  100% { left: 210px; bottom: 78px; }
}

@keyframes missSlide {
  0% { transform: translateX(0) rotate(0deg); }
  100% { transform: translateX(125px) rotate(-18deg) scale(0.94); }
}

@keyframes evadeMove {
  0% { transform: translate(0,0); }
  55% { transform: translate(-20px,-18px) scale(1.08); }
  100% { transform: translate(26px,-2px) scale(1.05); }
}

@keyframes shotGoalBall {
  0% { left: 165px; bottom: 82px; transform: scale(1); }
  72% { left: calc(100% - 70px); bottom: 132px; transform: scale(0.8); }
  100% { left: calc(100% - 36px); bottom: 118px; transform: scale(0.65); }
}

@keyframes goalPulse {
  0%, 55% { transform: scale(1); box-shadow: 0 0 16px rgba(255,255,255,0.18); }
  100% { transform: scale(1.08); box-shadow: 0 0 30px rgba(212,175,55,0.65); }
}

@keyframes savedBall {
  0% { left: 165px; bottom: 82px; }
  100% { left: calc(100% - 150px); bottom: 130px; }
}

@keyframes keeperDive {
  0% { transform: translate(0,0) rotate(0); }
  100% { transform: translate(-56px,-28px) rotate(-16deg) scale(1.08); }
}

@keyframes blockedBall {
  0% { left: 165px; bottom: 82px; }
  55% { left: calc(100% - 190px); bottom: 110px; }
  100% { left: calc(100% - 230px); bottom: 58px; }
}

@keyframes blockStep {
  0% { transform: translateX(0) scale(1); }
  100% { transform: translateX(-48px) scale(1.12); }
}

@keyframes claimBallMove {
  0% { transform: translateX(0) scale(1); }
  100% { transform: translateX(115px) scale(1.08); }
}

@keyframes claimedBall {
  0% { left: 54%; bottom: 76px; }
  100% { left: 225px; bottom: 76px; }
}

@media (max-width: 520px) {
  .cinematic-field {
    height: 220px;
  }

  .cinematic-player {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }

  .cinematic-actor {
    left: 42px;
  }

  .cinematic-target {
    right: 62px;
  }

  .cinematic-impact {
    font-size: 30px;
  }
}
