:root {
  --table-color: rgb(38, 38, 38);
  --card-width: clamp(48px, 11vw, 82px);
  --card-height: calc(var(--card-width) * 1.25);
}

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

body {
  background-color: var(--table-color);
  font-family: sans-serif;
  min-height: 100dvh;
}

body.is-turn-transition {
  overflow: hidden;
}

html,
body {
  min-height: 100%;
}

body.no-guidance-mode .modal-action,
body.no-guidance-mode .modal-info {
  display: none !important;
}

.p1-board {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px 12px 0 0;
  transition:
    box-shadow 220ms ease,
    opacity 220ms ease,
    filter 220ms ease;
}

.p1-board.active {
  box-shadow:
    0 0 30px white,
    inset 0 0 25px white;
}

.p1-board.deactivated::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 99999;
}

.p2-board {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 12px 12px;
  transition:
    box-shadow 220ms ease,
    opacity 220ms ease,
    filter 220ms ease;
}

body.multiplayer-mode .p2-board {
  transform: translateX(-50%) rotate(180deg);
}

.p2-board.active {
  box-shadow:
    0 0 30px white,
    inset 0 0 25px white;
}

.p1-board.deactivated,
.p2-board.deactivated {
  opacity: 0.72;
  filter: saturate(0.78);
}

body.is-turn-transition .p1-board,
body.is-turn-transition .p2-board,
body.is-turn-transition .player-hand,
body.is-turn-transition .player-turn-badge,
body.is-turn-transition .game-points-layer {
  transition-duration: 360ms;
}

body.is-turn-transition .player-hand {
  filter: brightness(1.06);
}

body.is-turn-transition.turn-player1 .p1-board.active,
body.is-turn-transition.turn-player2 .p2-board.active {
  filter: brightness(1.08);
}

.p2-board.deactivated::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 99999;
}

.card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  background-color: #f0f0f0;
  text-align: center;
  border: 1px solid black;
  height: var(--card-height);
  width: var(--card-width);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(
      30deg,
      black 12%,
      transparent 12.5%,
      transparent 87%,
      black 87.5%,
      black
    ),
    linear-gradient(
      150deg,
      black 12%,
      transparent 12.5%,
      transparent 87%,
      black 87.5%,
      black
    ),
    linear-gradient(
      30deg,
      black 12%,
      transparent 12.5%,
      transparent 87%,
      black 87.5%,
      black
    ),
    linear-gradient(
      150deg,
      black 12%,
      transparent 12.5%,
      transparent 87%,
      black 87.5%,
      black
    ),
    linear-gradient(
      60deg,
      rgba(68, 76, 247, 0.4666666667) 25%,
      transparent 25.5%,
      transparent 75%,
      rgba(68, 76, 247, 0.4666666667) 75%,
      rgba(68, 76, 247, 0.4666666667)
    ),
    linear-gradient(
      60deg,
      rgba(68, 76, 247, 0.4666666667) 25%,
      transparent 25.5%,
      transparent 75%,
      rgba(68, 76, 247, 0.4666666667) 75%,
      rgba(68, 76, 247, 0.4666666667)
    );
  background-size: 30px 15px;
  background-position:
    0 0,
    0 0,
    18px 32px,
    18px 32px,
    0 0,
    18px 32px;
  opacity: 0.2;
  z-index: 3;
}

.card .before-label {
  position: absolute;
  top: 3px;
  left: 3px;
  font-size: 1rem;
  background-color: white;
  color: black;
  width: 20px;
  height: 15px;
  border-radius: 20px;
  padding: 5px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card .before-label.underlined {
  text-decoration: underline;
}

.card .after-label {
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-size: 1rem;
  background-color: white;
  color: black;
  width: 20px;
  height: 15px;
  border-radius: 20px;
  padding: 5px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(180deg);
  transition: transform 0.3s;
  perspective: 600px;
}

.card .after-label.underlined {
  text-decoration: underline;
}

.card .val-label {
  color: #000;
  text-shadow: 0 0 10px #fff;
}

.card .val-label.underlined {
  text-decoration: underline;
}

.card.green {
  background-color: #008000;
}

.card.yellow {
  background-color: #ffff00;
}

.card.red {
  background-color: #ff0000;
}

.card.lightblue {
  background-color: #00ffff;
}

.card.blue {
  background-color: #0000ff;
  color: #fff;
}

.card.covered {
  width: var(--card-width);
  height: var(--card-height);
  position: relative;
  color: #fff;
  background: linear-gradient(#008000, #ff0000);
}

.card.covered::after {
  content: "SKYJO";
  position: absolute;
  transform: rotate(45deg);
  font-size: 0.8rem;
  letter-spacing: 2px;
  z-index: 20;
  background: transparent;
  color: #fff;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card.covered::before {
  content: "";
  position: absolute;
  background: linear-gradient(to right, #ffff00, #0000ff);
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0.4;
}

.card.card-stack {
  box-shadow:
    2px 0 1px gray,
    4px 0 1px gray,
    1px 0 2px black,
    10px 0 1px gray,
    -10px 0 3px black;
  border: 1px solid rgba(255, 255, 255, 0.586);
}

.card.is-interactive,
.middle-pile.is-interactive .card,
.middle-pile.is-interactive {
  cursor: pointer;
}

.card.is-empty {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.7);
}

.card.is-empty::after {
  content: "";
  background-image: none;
}

.card.is-empty::before {
  content: "";
  display: none;
}

.card.discover-effect {
  animation: card-flip 0.7s cubic-bezier(0.4, 0.2, 0.2, 1) forwards;
  backface-visibility: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@keyframes card-flip {
  0% {
    transform: rotateY(180deg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  40% {
    transform: rotateY(90deg) scale(1.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  }
  60% {
    transform: rotateY(45deg) scale(1.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  }
  100% {
    transform: rotateY(0deg) scale(1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
}
.point-label {
  color: white;
  background-color: rgba(255, 255, 255, 0.25);
  padding: 3px;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
}

.point-label.player1 {
  position: fixed;
  bottom: 0;
  left: 10px;
}

.point-label.player2 {
  position: fixed;
  top: 0;
  left: 10px;
}

body.multiplayer-mode .point-label.player2 {
  top: 8px;
}

.gridfield {
  display: grid;
  grid-template-columns: repeat(4, var(--card-width));
  grid-template-rows: var(--card-height) var(--card-height) var(--card-height);
  background-color: rgba(251, 251, 251, 0.113);
  width: min(96vw, 460px);
  height: auto;
  min-height: calc(var(--card-height) * 3 + 54px);
  gap: 12px;
  padding: 14px;
  justify-content: center;
  align-content: center;
  margin: 0 auto;
}

.gridfield .grid-card {
  grid-column: span 1;
}

.middle {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0 80px;
  width: 100%;
  max-width: 540px;
  min-height: 120px;
  background-color: rgba(0, 149, 255, 0.2);
  border-radius: 18px;
  padding: 14px 20px;
}

.middle-pile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.middle-pile .middle-label {
  color: white;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.middle-pile.is-interactive {
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

body.multiplayer-mode.turn-player1 .middle-pile {
  flex-direction: column;
}

body.multiplayer-mode.turn-player2 .middle-pile {
  flex-direction: column-reverse;
}

body.multiplayer-mode.turn-player2 .middle-pile .middle-label,
body.multiplayer-mode.turn-player2 .middle-pile .card {
  transform: rotate(180deg);
}

body.multiplayer-mode.turn-player2 #player_card_ablage {
  transform: rotate(180deg) !important;
}

body.multiplayer-mode.turn-player2 #player_card_ablage:hover {
  transform: rotate(180deg) translateY(-2px) !important;
}

body.multiplayer-mode.turn-player2 #player_card_ablage.highlight {
  transform: rotate(180deg) translateY(-2px) !important;
}

.player-hand {
  position: fixed;
  left: 50%;
  bottom: 305px;
  transform: translateX(-50%);
  width: min(92vw, 420px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(10, 18, 28, 0.78);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease,
    filter 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.player-hand.is-active {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(255, 255, 255, 0.08);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.player-hand-title {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 6px;
}

.player-hand-copy {
  transition: transform 180ms ease;
  transform-origin: center center;
}

.player-turn-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.player-turn-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #9fd3ff;
  box-shadow: 0 0 12px rgba(159, 211, 255, 0.85);
}

.player-hand-text {
  font-size: 0.92rem;
  line-height: 1.35;
}

.player-hand-card-slot {
  flex: 0 0 auto;
  min-width: calc(var(--card-width) + 12px);
  min-height: calc(var(--card-height) + 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
}

.player-hand-card-slot.has-card {
  background: rgba(255, 255, 255, 0.12);
}

.hand-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.player-hand.is-active .hand-card {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

body.multiplayer-mode.turn-player1 .player-hand {
  border-color: rgba(66, 210, 152, 0.32);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(66, 210, 152, 0.12);
}

body.multiplayer-mode.turn-player1 .player-turn-badge {
  background: rgba(66, 210, 152, 0.16);
  border-color: rgba(66, 210, 152, 0.32);
}

body.multiplayer-mode.turn-player1 .player-turn-badge::before {
  background: #42d298;
  box-shadow: 0 0 12px rgba(66, 210, 152, 0.75);
}

body.multiplayer-mode.turn-player2 .player-hand {
  border-color: rgba(255, 172, 76, 0.34);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(255, 172, 76, 0.12);
  transform: translateX(-50%) rotate(180deg);
}

body.multiplayer-mode.turn-player2 .player-hand-copy {
  transform: none;
}

body.multiplayer-mode.turn-player2 .player-turn-badge {
  background: rgba(255, 172, 76, 0.18);
  border-color: rgba(255, 172, 76, 0.34);
}

body.multiplayer-mode.turn-player2 .player-turn-badge::before {
  background: #ffac4c;
  box-shadow: 0 0 12px rgba(255, 172, 76, 0.75);
}

.game-points-layer {
  background: linear-gradient(to bottom, rgb(0, 136, 255), rgb(38, 98, 101));
  border: 1px solid rgba(255, 255, 255, 0.541);
  width: 55px;
  height: 60px;
  border-radius: 8px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
}

.game-points-layer h4 {
  letter-spacing: 3px;
}

.game-points-layer p {
  font-size: 1.5rem;
}

.game-points-layer--ki {
  position: fixed;
  top: -35%;
  left: 1%;
}

.game-points-layer--player {
  position: fixed;
  top: -35%;
  left: 85%;
}

body.multiplayer-mode .game-points-layer--ki h4,
body.multiplayer-mode .game-points-layer--player h4 {
  letter-spacing: 1px;
}

.decision-modal {
  display: none;
}

.decision-modal.active {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: lightblue;
  padding: 50px;
  z-index: 99999;
  border-radius: 8px;
}

.decision-modal.active .option {
  background-color: black;
  color: white;
  padding: 10px;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.modal {
  display: none;
}

.modal.active {
  display: block;
  position: fixed;
  top: 80%;
  left: 50%;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 35px white;
  width: 95%;
  max-width: 600px;
}

.modal.active.modal-action {
  transform: translate(-50%, -50%) rotate(0);
  z-index: 999999999;
  background-color: rgba(240, 240, 240, 0.8039215686);
  color: black;
}

.modal.active.modal-action .action-button {
  background-color: black;
  color: white;
  margin: 15px 0;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: inset 0 0 15px white;
  cursor: pointer;
  animation: button-animation 4s ease-in-out infinite;
}

.modal.active.modal-info {
  background-color: lightblue;
  color: black;
  z-index: 99999;
  transform: translate(-50%, -50%) rotate(0deg);
}

.modal.active.modal-start {
  inset: 0;
  top: auto;
  left: auto;
  transform: none;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000000;
  padding: 24px;
  border-radius: 0;
  box-shadow: none;
}

.modal.active.modal-start .start-inner {
  background: rgba(10, 30, 46, 0.98);
  padding: 30px;
  border-radius: 12px;
  max-width: 520px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.modal.active.modal-start .start-inner h2 {
  margin: 0;
  font-size: 1.4rem;
  text-align: center;
}

.modal.active.modal-start .start-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.modal.active.modal-start .start-btn {
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.modal.active.modal-start .start-btn:hover,
.modal.active.modal-start .start-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
  filter: brightness(1.03);
}

.modal.active.modal-start .start-btn-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.modal.active.modal-start .start-btn-subtitle {
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0.92;
}

.modal.active.modal-start .start-btn#btn_new_game {
  background: #008000;
  color: white;
}

.modal.active.modal-start .start-btn#btn_continue_game {
  background: #0066cc;
  color: white;
}

.modal.active.modal-start .start-btn#btn_new_game_no_help {
  background: #b04c00;
  color: white;
}

.modal.active.modal-start .start-btn#btn_multiplayer {
  background: #ff8c00;
  color: white;
}

.modal.active.p1 {
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
}

.modal.active.modal-endgame {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  inset: 0;
  top: auto;
  left: auto;
  transform: none;
  width: 100%;
  height: 100%;
  z-index: 999999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 32px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal.active.modal-endgame.is-summary {
  justify-content: center;
  padding-top: 32px;
  padding-bottom: 32px;
}

.modal.active.modal-endgame .btn {
  background-color: #008000;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 2rem;
  font-weight: bold;
  box-shadow:
    inset 0 0 25px white,
    0 0 45px white;
  border: 1px solid white;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 10px;
  margin-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
}

.modal.active.modal-endgame #lbl_finishText {
  color: white;
  font-size: 1.5rem;
  text-align: center;
  line-height: 23px;
  text-shadow: 0 0 26px black;
  max-width: 680px;
}

.modal.active.modal-endgame.is-summary #lbl_finishText {
  font-size: 1.2rem;
  line-height: 1.4;
  max-width: 760px;
}

.modal.active.modal-endgame-winner {
  inset: 0;
  top: auto;
  left: auto;
  transform: none;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000000000;
  padding: 24px;
  border-radius: 0;
  box-shadow: none;
}

.winner-card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.98);
  color: #111;
  border-radius: 18px;
  padding: 26px 24px;
  text-align: center;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

.winner-card-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 10px;
}

.winner-card h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.winner-card p {
  font-size: 1rem;
  line-height: 1.45;
}

.winner-card-btn {
  margin-top: 18px;
  border: none;
  border-radius: 12px;
  background: #008000;
  color: white;
  padding: 12px 18px;
  min-width: 140px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.endgame-stats {
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.endgame-stats.is-empty {
  display: none;
}

.endgame-stat-card,
.endgame-rule-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 16px 18px;
  color: white;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.endgame-stat-card h4,
.endgame-rule-card h4 {
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.endgame-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.94rem;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.endgame-stat-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.endgame-stat-row strong {
  font-size: 1rem;
}

.endgame-rule-card p {
  font-size: 0.94rem;
  line-height: 1.45;
}

.endgame-round-score-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 150000000;
  opacity: 0;
  transition: opacity 520ms ease;
}

.endgame-round-score-layer.active {
  opacity: 1;
}

.endgame-round-score-layer.is-exit {
  opacity: 0;
}

.endgame-round-score-chip {
  position: absolute;
  --chip-y: -50%;
  transform: translate(-50%, var(--chip-y)) scale(0.82);
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(
    155deg,
    rgba(0, 0, 0, 0.86),
    rgba(26, 43, 56, 0.9)
  );
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 24px 34px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  text-align: center;
  color: white;
  opacity: 0;
  filter: blur(2px);
}

.endgame-round-score-chip.is-visible {
  animation: round-score-chip-enter 720ms cubic-bezier(0.2, 0.85, 0.2, 1)
    forwards;
}

.endgame-round-score-chip.is-doubling {
  animation: round-score-chip-pulse 1100ms ease;
}

.endgame-round-score-chip.player1 {
  border-color: rgba(66, 210, 152, 0.55);
  box-shadow:
    0 24px 34px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(66, 210, 152, 0.3) inset,
    0 0 26px rgba(66, 210, 152, 0.24);
}

.endgame-round-score-chip.player2 {
  border-color: rgba(255, 172, 76, 0.56);
  box-shadow:
    0 24px 34px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 172, 76, 0.3) inset,
    0 0 26px rgba(255, 172, 76, 0.24);
}

.endgame-round-score-label {
  font-size: 0.7rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  opacity: 0.8;
}

.endgame-round-score-value {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.1;
  margin-top: 3px;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.34);
}

.endgame-round-score-multiplier {
  margin: 8px auto 0;
  width: -moz-fit-content;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: scale(0.82);
}

.endgame-round-score-multiplier.is-active {
  animation: round-score-multiplier-pop 1080ms cubic-bezier(0.2, 0.85, 0.2, 1)
    forwards;
}

@keyframes round-score-chip-enter {
  0% {
    opacity: 0;
    filter: blur(2px);
    transform: translate(-50%, calc(var(--chip-y) + 10%)) scale(0.8);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, var(--chip-y)) scale(1);
  }
}
@keyframes round-score-chip-pulse {
  0% {
    transform: translate(-50%, var(--chip-y)) scale(1);
  }
  50% {
    transform: translate(-50%, calc(var(--chip-y) - 4%)) scale(1.05);
  }
  100% {
    transform: translate(-50%, var(--chip-y)) scale(1);
  }
}
@keyframes round-score-multiplier-pop {
  0% {
    opacity: 0;
    transform: scale(0.76);
  }
  55% {
    opacity: 1;
    transform: scale(1.14);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 640px) {
  .modal.active.modal-endgame {
    align-items: stretch;
    padding: 20px 14px max(24px, env(safe-area-inset-bottom, 0px) + 12px);
  }
  .modal.active.modal-start .start-inner {
    width: 100%;
    padding: 24px 18px;
  }
  .modal.active.modal-endgame #lbl_finishText {
    font-size: 1.2rem;
    line-height: 1.35;
  }
  .modal.active.modal-endgame .btn {
    align-self: center;
    font-size: 1.35rem;
    letter-spacing: 2px;
  }
  .winner-card {
    padding: 22px 18px;
  }
}
@keyframes button-animation {
  0% {
    outline: 0 solid #fff;
  }
  50% {
    outline: 7px solid #e90505;
  }
  100% {
    outline: 0 solid #fff;
  }
}
.disable-area {
  display: none;
}

.disable-area.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  z-index: 99999999;
}

.flying-card {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  transform-origin: top left;
  will-change: transform;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.slot-hidden-during-flight {
  visibility: hidden;
}

.highlight {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.38),
    0 0 18px rgba(255, 243, 176, 0.7) !important;
  transform: translateY(-2px);
}

/* Optional: dezente Hervorhebung der Ablage beim Flugziel */
#player_card_ablage.highlight {
  outline: 2px dashed rgba(0, 0, 0, 0.2);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .middle {
    top: 52%;
    width: calc(100vw - 24px);
    max-width: none;
    flex-direction: row;
    gap: 14px;
    padding: 12px;
  }
  .middle-pile {
    width: auto;
    flex: 1 1 0;
  }
  .player-hand {
    top: calc(52% - 155px);
    bottom: auto;
    width: calc(100vw - 24px);
    gap: 12px;
    padding: 12px;
  }
  .player-hand-text {
    font-size: 0.84rem;
  }
  .player-turn-badge {
    font-size: 0.66rem;
    letter-spacing: 1.4px;
  }
  .game-points-layer--player {
    left: auto;
    right: 1%;
  }
}

/*# sourceMappingURL=style.css.map */
