:root {
  --bg-1: #0c2e34;
  --bg-2: #1e4f58;
  --felt: #1a6e54;
  --felt-dark: #135340;
  --gold: #f2c96d;
  --ivory: #f3ead6;
  --ink: #13262f;
  --danger: #e95454;
  --overlay-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ivory);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(242, 201, 109, 0.15), transparent 35%),
    linear-gradient(155deg, var(--bg-1), var(--bg-2));
}

body.splash-active {
  overflow: hidden;
}

body.splash-active .table-wrap {
  transform: scale(0.985);
  filter: blur(3px) brightness(0.62);
  pointer-events: none;
}

.game-hub {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.game-hub-panel {
  width: min(92vw, 640px);
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.game-hub-panel h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.95;
  color: var(--gold);
  text-shadow:
    0 3px 0 rgba(44, 26, 3, 0.7),
    0 18px 38px rgba(0, 0, 0, 0.44);
}

.game-hub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: min(100%, 460px);
}

.game-hub-link {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(180deg, #ffe4a6, var(--gold));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 120ms ease, filter 120ms ease;
}

.game-hub-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.online-hud {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.7fr) minmax(170px, 0.7fr);
}

.online-link-button {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(180deg, #ffe4a6, var(--gold));
}

.online-presence-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  max-width: min(340px, calc(100vw - 36px));
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 900;
  background: linear-gradient(180deg, #fff3cf, var(--gold));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.online-presence-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.online-lobby-panel {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(110px, 0.55fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 29, 35, 0.52);
  backdrop-filter: blur(4px);
}

.online-lobby-panel label {
  display: grid;
  gap: 5px;
  color: rgba(243, 234, 214, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.online-lobby-panel-joined {
  opacity: 0.76;
}

.online-name-gate {
  min-height: min(62vh, 520px);
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.08) 8px,
      rgba(255, 255, 255, 0.02) 8px,
      rgba(255, 255, 255, 0.02) 16px
    ),
    linear-gradient(180deg, var(--felt), var(--felt-dark));
  padding: 20px;
}

.online-name-card {
  width: min(100%, 440px);
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.online-name-card h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 7vw, 4rem);
  color: var(--gold);
}

.online-name-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
}

.online-hub {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
}

.online-lobby-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.online-create-panel,
.online-open-lobbies,
.online-chat-panel,
.online-waiting-panel {
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 29, 35, 0.52);
  backdrop-filter: blur(4px);
  padding: 12px;
}

.online-create-panel {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.online-create-panel label {
  display: grid;
  gap: 5px;
  color: rgba(243, 234, 214, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.global-create-panel {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.global-lobby-row {
  align-items: stretch;
  flex-wrap: wrap;
}

.global-lobby-row > div:first-child {
  flex: 1 1 220px;
  min-width: 0;
}

.global-lobby-actions {
  display: flex;
  flex: 1 1 180px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.game-label {
  display: inline-grid;
  place-items: center;
  min-width: 74px;
  margin-right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  background: linear-gradient(180deg, #ffe4a6, var(--gold));
}

.global-waiting-panel {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.global-lupfen-settings,
.global-game-settings {
  grid-column: 1 / -1;
}

.global-waiting-panel > .inline-controls {
  grid-column: 1 / -1;
  justify-content: flex-start;
  flex-wrap: wrap;
  min-width: 0;
}

.global-waiting-panel > .inline-controls button {
  flex: 0 1 auto;
}

.online-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.online-panel-head h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--gold);
}

.online-panel-head span {
  min-width: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  background: linear-gradient(180deg, #ffe4a6, var(--gold));
}

.online-lobby-list,
.online-chat-messages {
  display: grid;
  gap: 8px;
}

.online-lobby-row,
.online-player-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.075);
}

.online-lobby-row div {
  display: grid;
  gap: 2px;
}

.online-lobby-row strong,
.online-player-row strong {
  color: #fff4d3;
}

.online-lobby-row span,
.online-player-row span,
.online-empty-state {
  color: rgba(243, 234, 214, 0.74);
  font-size: 0.9rem;
  font-weight: 700;
}

.online-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  min-height: 420px;
}

.online-chat-messages {
  align-content: start;
  overflow: auto;
  padding-right: 4px;
}

.online-chat-message {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.075);
}

.online-chat-message strong {
  color: var(--gold);
}

.online-chat-message span {
  overflow-wrap: anywhere;
}

.online-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.online-waiting-panel {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) minmax(260px, 360px) auto;
  gap: 12px 16px;
  align-items: center;
}

.online-waiting-panel strong {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 2rem;
  color: var(--gold);
}

.online-waiting-panel p {
  margin: 0;
  font-weight: 800;
  color: rgba(243, 234, 214, 0.86);
}

.online-lobby-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 104px)) minmax(118px, 1fr);
  gap: 8px;
  align-items: end;
  justify-content: end;
  min-width: 0;
}

.online-lobby-settings .settings-field,
.online-lobby-settings .settings-toggle {
  margin: 0;
  min-width: 0;
}

.online-lobby-settings .settings-field span,
.online-lobby-settings .settings-toggle span {
  font-size: 0.66rem;
  line-height: 1.15;
}

.online-lobby-settings .settings-field {
  gap: 4px;
}

.online-lobby-settings .settings-field input {
  width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  text-align: right;
}

.online-lobby-settings .settings-toggle {
  min-height: 32px;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.075);
}

.online-lobby-settings .settings-toggle:last-child {
  grid-column: 1 / -1;
}

.online-waiting-panel > .inline-controls {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
}

.online-waiting-panel > .inline-controls button {
  padding: 9px 11px;
}

.online-waiting-panel .secondary-button {
  background: linear-gradient(180deg, rgba(243, 234, 214, 0.2), rgba(243, 234, 214, 0.08));
  color: #fff4d3;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.online-waiting-panel.global-waiting-panel > .inline-controls {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: flex-start;
  justify-self: stretch;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.online-waiting-panel.global-waiting-panel > .inline-controls button {
  flex: 0 0 auto;
}

.online-game-points {
  font-family: "Cinzel", serif;
  color: var(--gold);
  font-weight: 800;
}

.lupfen-wrap {
  max-width: 1120px;
}

.lupfen-wrap .hud {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
}

.lupfen-table {
  min-height: min(76vh, 760px);
  grid-template-rows: auto auto minmax(300px, 1fr) auto;
  gap: 14px;
  position: relative;
}

.lupfen-table .status-panel {
  align-self: start;
}

#gamePanel.lupfen-table .status-panel {
  display: none;
}

.lupfen-opponents {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
  justify-self: center;
  width: min(100%, 920px);
}

.lupfen-seat {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  padding: 8px;
  position: relative;
}

.lupfen-seat.inactive-seat {
  visibility: hidden;
  pointer-events: none;
}

.lupfen-seat .hand {
  min-height: 108px;
  align-content: center;
}

.lupfen-seat .zone-head {
  margin-bottom: 6px;
}

.lupfen-seat .trick-pile-points {
  min-height: 0;
  font-size: 0.8rem;
}

.lupfen-seat.lifter-seat {
  border-color: rgba(242, 201, 109, 0.78);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.18),
    0 0 0 2px rgba(242, 201, 109, 0.28);
}

.lupfen-seat.status-seat::after {
  content: attr(data-status);
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a1800;
  background: linear-gradient(180deg, #fff0b9, #f2c96d);
}

.lupfen-seat.disconnected-seat {
  opacity: 0.72;
}

.lupfen-seat.disconnected-seat::after {
  color: #f7fbff;
  background: linear-gradient(180deg, #64748b, #334155);
}

.player-message {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 35;
  width: max-content;
  min-width: 78px;
  max-width: calc(100% - 16px);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at top, rgba(242, 201, 109, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(11, 34, 39, 0.98), rgba(8, 23, 27, 0.98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  text-align: center;
  color: #fff4d3;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -8px) scale(0.96);
}

.player-message.show {
  animation: player-message-in 180ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.player-message.hide {
  animation: player-message-out 180ms ease forwards;
}

.table-message-control {
  position: relative;
  z-index: 180;
  display: flex;
  justify-content: flex-end;
}

.table-message-toggle {
  border-radius: 10px;
}

.table-message-menu {
  position: absolute;
  z-index: 260;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 6px;
  width: min(210px, calc(100vw - 24px));
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at top, rgba(242, 201, 109, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(14, 45, 49, 0.98), rgba(7, 24, 28, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.table-message-menu[hidden] {
  display: none;
}

.table-message-menu button {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  text-align: left;
  font-size: 0.82rem;
}

.lupfen-center-zone {
  position: relative;
  width: min(100%, 760px);
  justify-self: center;
  grid-template-columns: minmax(260px, 0.88fr) minmax(300px, 1.12fr);
  align-items: stretch;
}

.lupfen-pot-area {
  grid-template-columns: auto auto;
  grid-template-rows: auto auto 1fr;
  justify-content: center;
  align-content: center;
  min-height: 230px;
  border-radius: 999px;
  padding: 20px;
  background:
    radial-gradient(circle at center, rgba(242, 201, 109, 0.18), transparent 62%),
    rgba(0, 0, 0, 0.24);
}

.lupfen-pot-area .talon-controls {
  grid-column: 1 / -1;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 38px;
  align-content: center;
}

.lupfen-pot-display {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-bottom: 6px;
  font-family: "Cinzel", serif;
}

.lupfen-pot-display span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 234, 214, 0.74);
}

.lupfen-pot-display strong {
  color: var(--gold);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.lupfen-pot-display em {
  min-height: 1.2em;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
  color: rgba(243, 234, 214, 0.82);
}

.lupfen-trick-area {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 230px;
  border-radius: 999px;
}

.lupfen-trick-area .inactive-seat {
  visibility: hidden;
  pointer-events: none;
}

.lupfen-bottom-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
  justify-self: center;
  width: min(100%, 920px);
}

.online-lupfen-top {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.online-lupfen-bottom {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.lupfen-seat-placeholder {
  min-height: 170px;
  visibility: hidden;
  pointer-events: none;
}

.lupfen-table-card-played .card,
.lupfen-table-card-held .card {
  transform-origin: center;
}

.lupfen-table-card-played .card {
  animation: lupfen-card-pop 520ms cubic-bezier(0.18, 0.92, 0.28, 1) both;
}

.lupfen-table-card-held .card {
  animation: lupfen-trick-hold 920ms ease both;
}

.lupfen-seat-player {
  width: 100%;
  text-align: center;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.36)),
    radial-gradient(ellipse at center, rgba(242, 201, 109, 0.2), transparent 54%),
    linear-gradient(155deg, #071d22, #155145 54%, #09272d);
}

.splash-screen::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.055) 1px,
      transparent 1px,
      transparent 22px
    );
  animation: splash-table-sweep 9s linear infinite;
}

.splash-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%, rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.splash-screen.closing {
  animation: splash-exit 680ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.splash-content {
  position: relative;
  z-index: 3;
  width: min(92vw, 680px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
  animation: splash-title-in 820ms cubic-bezier(0.18, 0.92, 0.28, 1) both;
}

.splash-kicker {
  margin: 0;
  color: rgba(243, 234, 214, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.splash-content h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(3.4rem, 12vw, 8.2rem);
  line-height: 0.92;
  color: var(--gold);
  text-shadow:
    0 3px 0 rgba(44, 26, 3, 0.7),
    0 18px 38px rgba(0, 0, 0, 0.44);
}

.splash-start-btn {
  margin-top: 10px;
  min-width: 190px;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  animation: splash-button-pulse 1200ms ease-in-out infinite alternate;
}

.splash-card-fan {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(84vw, 620px);
  height: min(58vh, 430px);
  transform: translate(-50%, -46%);
  pointer-events: none;
}

.splash-card {
  position: absolute;
  left: 50%;
  top: 51%;
  width: clamp(82px, 13vw, 128px);
  height: clamp(118px, 18.5vw, 184px);
  border-radius: 12px;
  border: 2px solid rgba(241, 217, 170, 0.9);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%),
    linear-gradient(180deg, #8e1d26, #4d1015);
  background-size: 13px 13px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
  transform-origin: 50% 115%;
  animation: splash-card-deal 880ms cubic-bezier(0.18, 0.92, 0.28, 1) both;
}

.splash-card:nth-child(1) {
  transform: translate(-50%, -50%) rotate(-30deg) translateY(24px);
  animation-delay: 80ms;
}

.splash-card:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-15deg) translateY(2px);
  animation-delay: 150ms;
}

.splash-card:nth-child(3) {
  transform: translate(-50%, -50%) rotate(0deg) translateY(-8px);
  animation-delay: 220ms;
}

.splash-card:nth-child(4) {
  transform: translate(-50%, -50%) rotate(15deg) translateY(2px);
  animation-delay: 290ms;
}

.splash-card:nth-child(5) {
  transform: translate(-50%, -50%) rotate(30deg) translateY(24px);
  animation-delay: 360ms;
}

.splash-card-face {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fffdf8, #efe6d1);
  color: #4d1015;
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
}

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

.splash-suits img {
  position: absolute;
  width: clamp(34px, 5vw, 58px);
  height: clamp(34px, 5vw, 58px);
  opacity: 0.62;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.34));
  animation: splash-suit-float 4.8s ease-in-out infinite;
}

.splash-suits img:nth-child(1) {
  left: 17%;
  top: 23%;
}

.splash-suits img:nth-child(2) {
  right: 19%;
  top: 21%;
  animation-delay: 420ms;
}

.splash-suits img:nth-child(3) {
  left: 21%;
  bottom: 18%;
  animation-delay: 820ms;
}

.splash-suits img:nth-child(4) {
  right: 17%;
  bottom: 20%;
  animation-delay: 1240ms;
}

.table-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.debug-panel {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 29, 35, 0.52);
  backdrop-filter: blur(4px);
  padding: 12px;
}

.debug-panel h3 {
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  color: var(--gold);
}

.debug-panel ul {
  margin: 0;
  padding-left: 18px;
  max-height: 220px;
  overflow: auto;
  font-size: 0.9rem;
}

.debug-panel li + li {
  margin-top: 4px;
}

.hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.9fr) minmax(260px, 1.35fr);
  gap: 12px;
  align-items: stretch;
  position: relative;
  z-index: 120;
}

.title-box,
.score-box,
.controls,
.table {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 29, 35, 0.52);
  backdrop-filter: blur(4px);
}

.title-box {
  padding: 12px;
}

.title-box h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 2rem;
  color: var(--gold);
}

.title-box p {
  margin: 4px 0 0;
  letter-spacing: 0.05em;
}

.score-box {
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.score-box .label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.85;
}

.controls {
  padding: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.controls button {
  white-space: nowrap;
}

button {
  border: 0;
  border-radius: 10px;
  min-height: 42px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  background: linear-gradient(180deg, #ffe4a6, var(--gold));
  transition: transform 120ms ease, filter 120ms ease;
}

select {
  border: 0;
  border-radius: 10px;
  min-height: 42px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, #fff3cf, #f1dca2);
}

input {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  box-sizing: border-box;
  max-width: 100%;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, #fff3cf, #f1dca2);
}

.controls label {
  font-weight: 700;
  color: var(--ivory);
}

button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.initially-hidden {
  display: none;
}

.table {
  padding: 14px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.08) 8px,
      rgba(255, 255, 255, 0.02) 8px,
      rgba(255, 255, 255, 0.02) 16px
    ),
    linear-gradient(180deg, var(--felt), var(--felt-dark));
  display: grid;
  gap: 12px;
}

.status-panel {
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 8px;
}

.status-panel p {
  margin: 5px;
}

.opponent-zone,
.player-zone {
  position: relative;
  text-align: left;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  padding: 10px;
}

.opponent-zone h2,
.player-zone h2 {
  margin: 0;
  font-family: "Cinzel", serif;
}

.zone-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 2px 0 10px;
}

.zone-hand-wrap {
  width: 100%;
}

.center-zone {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.talon-area,
.trick-area {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 12px;
  padding: 12px;
  min-height: 150px;
}

.talon-area {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 12px;
  align-items: center;
}

.talon-controls {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.pile {
  width: 70px;
  height: 100px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(180deg, #8f1820, #530f14);
  position: relative;
}

.pile::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.trump-card-slot,
.table-card {
  width: 70px;
  height: 100px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
}

.trick-area {
  display: flex;
  justify-content: space-around;
}

.trick-label {
  display: block;
  margin-bottom: 6px;
  text-align: center;
  font-size: 0.85rem;
}

.hand {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  min-height: 144px;
}

.trick-pile-panel {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-width: 96px;
}

.trick-pile-panel.compact {
  min-width: 86px;
  gap: 8px;
}

.won-pile {
  position: relative;
  width: 76px;
  height: 110px;
}

.won-pile-empty {
  width: 70px;
  height: 100px;
  margin: 0 auto;
  border-radius: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.won-pile-card {
  position: absolute;
  inset: auto 0 0 0;
  width: 70px;
  height: 100px;
  margin: 0 auto;
  border-radius: 10px;
  border: 2px solid rgba(241, 217, 170, 0.75);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%),
    linear-gradient(180deg, #7b1c23, #4d0f14);
  background-size: 12px 12px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.22);
}

.won-pile-card.top {
  border-color: rgba(242, 201, 109, 0.86);
}

.trick-pile-points {
  min-height: 2.8em;
  display: grid;
  gap: 3px;
  align-content: start;
  font-size: 0.9rem;
}

.trick-pile-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 234, 214, 0.74);
}

.trick-pile-score {
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  color: var(--gold);
}

.trick-pile-hidden {
  font-size: 0.85rem;
  color: rgba(243, 234, 214, 0.8);
}

.player-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 46px;
}

.player-card-wrap.meld-pair-card::before,
.player-card-wrap.meld-pair-card::after {
  content: none;
}

.meld-chip {
  position: absolute;
  top: 2px;
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #2a1800;
  background: linear-gradient(180deg, #fff0b9, #f2c96d);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.meldable-card {
  border-color: #f2c96d;
  box-shadow:
    0 0 0 2px rgba(242, 201, 109, 0.42),
    0 10px 18px rgba(0, 0, 0, 0.32);
}

.card,
.face-card {
  width: 70px;
  height: 100px;
  border-radius: 10px;
  border: 2px solid #d7c9a5;
  background: linear-gradient(180deg, #fffdf8, #efe6d1);
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.player-hand .card:not(:disabled):hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.38);
}

.player-hand .card.selected-card {
  transform: translateY(-10px);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.34),
    0 0 0 3px rgba(242, 201, 109, 0.72);
}

.zwanzigab-table .player-card-wrap.exchange-selectable {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.zwanzigab-table .player-card-wrap.deal-card {
  pointer-events: auto;
}

.zwanzigab-table .player-card-wrap.exchange-selectable .card {
  pointer-events: none;
}

.zwanzigab-table .player-card-wrap.exchange-selected .card {
  transform: translateY(-10px);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.34),
    0 0 0 3px rgba(242, 201, 109, 0.72);
}

.zwanzigab-event-text {
  grid-column: 1 / -1;
  min-height: 2.4em;
  max-width: 250px;
  margin: 0 auto 4px;
  color: #fff4d3;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  animation: zwanzigab-event-pulse 520ms ease both;
}

.zwanzigab-active-seat {
  border-color: rgba(242, 201, 109, 0.9);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.18),
    0 0 0 2px rgba(242, 201, 109, 0.36);
  animation: zwanzigab-turn-glow 1500ms ease-in-out infinite alternate;
}

.zwanzigab-caller-seat .zone-head h2::after {
  content: "Trumpf";
  display: inline-block;
  margin-left: 6px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #2a1800;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff0b9, #f2c96d);
  vertical-align: middle;
}

.zwanzigab-out-seat {
  opacity: 0.58;
  filter: grayscale(0.3);
}

.zwanzigab-seat-exchange {
  animation: zwanzigab-seat-nod 520ms cubic-bezier(0.18, 0.92, 0.28, 1) both;
}

.zwanzigab-seat-leave {
  animation: zwanzigab-seat-fade-back 620ms ease both;
}

.zwanzigab-seat-trump {
  animation: zwanzigab-trump-flash 760ms ease both;
}

.zwanzigab-points-low {
  color: #fff0b9;
}

.zwanzigab-points-locked {
  color: #84f3c3;
}

.zwanzigab-suit-buttons {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
}

.zwanzigab-suit-options {
  display: contents;
}

.zwanzigab-suit-buttons button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
}

.card .rank,
.face-card .rank {
  font-size: 1.2rem;
  line-height: 1;
}

.card .suit,
.face-card .suit {
  font-size: 1.4rem;
}

.suit-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.suit-icon-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: text-bottom;
}

.trump-card-watermark {
  border-style: solid;
  border-color: rgba(242, 201, 109, 0.3);
  background:
    radial-gradient(circle at center, rgba(242, 201, 109, 0.08), transparent 65%),
    rgba(255, 255, 255, 0.08);
}

.trump-watermark {
  display: grid;
  justify-items: center;
  gap: 4px;
  opacity: 0.56;
  text-align: center;
}

.trump-watermark-icon {
  display: grid;
  place-items: center;
}

.trump-watermark-suit {
  width: 34px;
  height: 34px;
  opacity: 0.85;
}

.trump-watermark-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.trump-watermark-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(243, 234, 214, 0.92);
}

.red {
  color: var(--danger);
}

.lead-card {
  border-color: #ffe08a;
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.3),
    0 0 0 4px rgba(242, 201, 109, 0.62),
    0 0 22px rgba(242, 201, 109, 0.48);
  position: relative;
}

.lead-card::after {
  content: "Farbe";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff0b9, #f2c96d);
  color: #2a1800;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-back {
  width: 70px;
  height: 100px;
  border-radius: 10px;
  border: 2px solid #f1d9aa;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%),
    linear-gradient(180deg, #7b1c23, #4d0f14);
  background-size: 12px 12px;
}

.deal-card {
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
  animation: deal-card-in 620ms cubic-bezier(0.18, 0.92, 0.28, 1) both;
  will-change: opacity, transform;
}

.deal-to-ai {
  --deal-y: 170px;
  --deal-rotate: -10deg;
}

.deal-to-player {
  --deal-y: -170px;
  --deal-rotate: 10deg;
}

.deal-trump-card {
  opacity: 0;
  animation: deal-trump-in 520ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.trump-steal-layer {
  position: fixed;
  inset: 0;
  z-index: 850;
  pointer-events: none;
}

.trump-steal-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(242, 201, 109, 0.12), transparent 42%);
  animation: trump-steal-flash 720ms ease-out both;
}

.trump-steal-flyer {
  position: fixed;
  display: grid;
  place-items: center;
  transform-origin: center;
  animation: trump-steal-swap 720ms cubic-bezier(0.18, 0.92, 0.26, 1) both;
  will-change: transform, opacity, filter;
}

.trump-steal-flyer.from-trump {
  animation-delay: 60ms;
}

.trump-steal-flyer.from-hand {
  animation-delay: 20ms;
}

.trump-steal-flyer .face-card {
  width: 100%;
  height: 100%;
  box-shadow:
    0 16px 26px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(242, 201, 109, 0.35);
}

.card-motion-layer {
  position: fixed;
  inset: 0;
  z-index: 840;
  pointer-events: none;
}

.card-motion-flyer {
  position: fixed;
  display: grid;
  place-items: center;
  transform-origin: center;
  animation: card-play-fly 440ms cubic-bezier(0.18, 0.9, 0.22, 1) both;
  will-change: transform, opacity, filter;
}

.card-motion-flyer.play-card-ai {
  animation-delay: 30ms;
}

.card-motion-flyer .face-card {
  width: 100%;
  height: 100%;
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.36),
    0 0 0 2px rgba(255, 255, 255, 0.22);
}

.trick-collect-layer .card-motion-flyer {
  animation: trick-collect-fly 560ms cubic-bezier(0.22, 0.86, 0.24, 1) both;
}

.trick-collect-layer .collect-ai {
  animation-delay: 70ms;
}

.dealing-pile {
  animation: deal-pile-pulse 720ms ease-in-out infinite alternate;
}

.talon-info {
  font-size: 0.95rem;
}

.inline-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.player-actions {
  justify-content: center;
  margin-bottom: 10px;
}

#meldBtn {
  display: none;
}

.settings-modal,
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 20, 23, 0.56);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.settings-modal.open,
.confirm-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.settings-card,
.confirm-card {
  width: min(92vw, 420px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at top, rgba(242, 201, 109, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(11, 34, 39, 0.98), rgba(8, 23, 27, 0.98));
  box-shadow: var(--overlay-shadow);
  padding: 18px;
  display: grid;
  gap: 16px;
}

.confirm-card {
  text-align: center;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.settings-header h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--gold);
}

.settings-close-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
}

.settings-field {
  display: grid;
  gap: 8px;
  text-align: left;
  font-weight: 700;
}

.settings-toggle {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  font-weight: 700;
}

.settings-toggle input {
  width: 18px;
  height: 18px;
}

.confirm-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--gold);
}

.confirm-card h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  color: #fff4d3;
}

.confirm-card p {
  margin: 0;
  color: rgba(243, 234, 214, 0.9);
  font-weight: 600;
  line-height: 1.45;
}

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

.confirm-secondary {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.event-modal {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 40;
  width: min(92vw, 520px);
  transform: translate(-50%, -16px);
  opacity: 0;
  pointer-events: none;
}

.event-modal.show {
  animation: event-modal-in 220ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.event-modal.hide {
  animation: event-modal-out 220ms ease forwards;
}

.event-modal-card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 16px 18px 18px;
  background:
    radial-gradient(circle at top, rgba(242, 201, 109, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(11, 34, 39, 0.96), rgba(8, 23, 27, 0.98));
  backdrop-filter: blur(10px);
  box-shadow: var(--overlay-shadow);
  text-align: center;
}

.event-modal-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.event-modal-title {
  margin-top: 6px;
  font-family: "Cinzel", serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: #fff4d3;
}

.event-modal-text {
  min-height: 1.4em;
  margin-top: 6px;
  color: rgba(243, 234, 214, 0.92);
  font-weight: 600;
}

.event-modal-badge {
  display: none;
  width: fit-content;
  margin: 14px auto 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  font-weight: 800;
  color: #2a1800;
  background: linear-gradient(180deg, #fff0b9, #f2c96d);
  box-shadow: 0 8px 24px rgba(242, 201, 109, 0.32);
}

.event-modal-badge.show {
  display: inline-block;
}

.event-modal-cards {
  display: none;
  gap: 12px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 16px;
}

.event-modal-cards.show {
  display: flex;
}

.event-card-stack {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.event-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(243, 234, 214, 0.78);
}

.round-summary-modal {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: block;
  width: min(92vw, 420px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.round-summary-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lupfen-summary-modal {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: auto;
  top: 50%;
  width: min(96%, 620px);
  transform: translate(-50%, calc(-50% + 12px));
}

.lupfen-summary-modal.open {
  transform: translate(-50%, -50%);
}

.round-summary-card {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at top, rgba(242, 201, 109, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(11, 34, 39, 0.9), rgba(8, 23, 27, 0.92));
  box-shadow: var(--overlay-shadow);
  padding: 18px;
  display: grid;
  gap: 12px;
  text-align: center;
  pointer-events: none;
}

.lupfen-summary-modal .round-summary-eyebrow {
  display: none;
}

.lupfen-summary-modal .round-summary-stats {
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.round-summary-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.075);
  font-size: 0.92rem;
}

.round-summary-table th,
.round-summary-table td {
  padding: 7px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.round-summary-table th {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 234, 214, 0.68);
}

.round-summary-table th:nth-child(2),
.round-summary-table td:nth-child(2) {
  text-align: center;
}

.round-summary-table th:nth-child(3),
.round-summary-table td:nth-child(3) {
  text-align: right;
}

.round-summary-table tbody tr:last-child td {
  border-bottom: 0;
}

.round-summary-table td:nth-child(3) {
  color: var(--gold);
  font-weight: 800;
}

.round-summary-potline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.round-summary-potline span {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(243, 234, 214, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.round-summary-potline strong {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: #fff4d3;
}

.round-summary-potline .highlight {
  background: linear-gradient(180deg, rgba(242, 201, 109, 0.2), rgba(242, 201, 109, 0.1));
  border: 1px solid rgba(242, 201, 109, 0.36);
  color: var(--gold);
}

.round-summary-potline .highlight strong {
  color: var(--gold);
  font-size: 1.18rem;
}

.round-summary-modal.open .round-summary-card {
  pointer-events: auto;
}

.round-summary-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--gold);
}

.round-summary-title {
  margin: 0;
  font-family: "Cinzel", serif;
  color: #fff4d3;
}

.round-summary-text {
  margin: 0;
  color: rgba(243, 234, 214, 0.92);
  font-weight: 600;
}

.round-summary-text:empty {
  display: none;
}

.round-summary-stats {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
}

.round-summary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.round-summary-stat {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.95rem;
}

.round-summary-stat strong {
  color: var(--gold);
}

@media (min-width: 901px) {
  .table-wrap {
    max-width: 980px;
    padding: 18px 22px;
    gap: 14px;
  }

  .table {
    padding: 16px 18px;
    gap: 14px;
  }

  .center-zone {
    grid-template-columns: minmax(340px, 1fr) minmax(340px, 1fr);
    gap: 14px;
    align-items: stretch;
  }

  .talon-area,
  .trick-area {
    min-height: 170px;
    height: 100%;
  }

  .talon-area {
    grid-template-rows: 34px auto;
    align-items: start;
  }

  .talon-controls {
    grid-row: 1;
    grid-column: 1 / -1;
    margin: 0;
  }

  .talon-controls button {
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .trick-area {
    display: grid;
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    gap: 10px;
    align-items: start;
  }

  .lupfen-trick-area {
    grid-template-columns: repeat(2, minmax(86px, 1fr));
  }

  .trick-area > div {
    display: grid;
    grid-template-rows: 34px auto;
    justify-items: center;
    align-items: start;
  }

  .trick-label {
    height: 34px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .opponent-zone,
  .player-zone {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 8px;
    align-items: start;
  }

  .opponent-zone {
    grid-template-areas:
      "title pile"
      "hand pile";
  }

  .player-zone {
    grid-template-areas:
      "title pile"
      "actions pile"
      "hand pile";
  }

  .lupfen-bottom-row .player-zone,
  .lupfen-bottom-row .opponent-zone {
    min-width: 0;
  }

  .zone-head {
    display: contents;
  }

  .zone-head h2 {
    grid-area: title;
    align-self: center;
    margin: 0;
  }

  .zone-head .trick-pile-panel.compact {
    grid-area: pile;
    min-width: 92px;
    justify-items: center;
    align-content: start;
  }

  .player-actions {
    grid-area: actions;
    margin: 0;
    justify-content: flex-start;
  }

  .zone-hand-wrap {
    grid-area: hand;
  }

  .opponent-zone .hand,
  .player-zone .hand {
    justify-content: flex-start;
  }
}

@keyframes event-modal-in {
  from {
    opacity: 0;
    transform: translate(-50%, -16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes event-modal-out {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.97);
  }
}

@keyframes player-message-in {
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes player-message-out {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -8px) scale(0.97);
  }
}

@keyframes splash-table-sweep {
  from {
    transform: translateX(-5%) rotate(0deg);
  }
  to {
    transform: translateX(5%) rotate(1deg);
  }
}

@keyframes splash-title-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splash-card-deal {
  from {
    opacity: 0;
    transform: translate(-50%, 36%) rotate(0deg) scale(0.58);
  }
  to {
    opacity: 1;
  }
}

@keyframes splash-suit-float {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg) scale(1);
  }
  50% {
    transform: translateY(-16px) rotate(9deg) scale(1.08);
  }
}

@keyframes splash-button-pulse {
  from {
    transform: translateY(0);
    filter: brightness(1);
  }
  to {
    transform: translateY(-3px);
    filter: brightness(1.08);
  }
}

@keyframes splash-exit {
  to {
    opacity: 0;
    transform: scale(1.04);
    visibility: hidden;
  }
}

@keyframes deal-card-in {
  0% {
    opacity: 0;
    transform: translate(0, var(--deal-y)) rotate(var(--deal-rotate)) scale(0.72);
  }
  58% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

@keyframes deal-trump-in {
  0% {
    opacity: 0;
    transform: translateX(-36px) rotate(-16deg) scale(0.76);
  }
  65% {
    opacity: 1;
    transform: translateX(0) rotate(2deg) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

@keyframes trump-steal-swap {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(-5deg) scale(0.92);
    filter: brightness(1);
  }
  12% {
    opacity: 1;
  }
  48% {
    transform: translate(var(--steal-mid-x), var(--steal-mid-y)) rotate(8deg) scale(1.12);
    filter: brightness(1.18);
  }
  100% {
    opacity: 0;
    transform: translate(var(--steal-dx), var(--steal-dy)) rotate(0deg) scale(1);
    filter: brightness(1);
  }
}

@keyframes trump-steal-flash {
  0%,
  100% {
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
}

@keyframes card-play-fly {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(-4deg) scale(0.92);
    filter: brightness(1);
  }
  14% {
    opacity: 1;
  }
  58% {
    transform: translate(var(--card-mid-x), var(--card-mid-y)) rotate(5deg) scale(1.08);
    filter: brightness(1.08);
  }
  100% {
    opacity: 1;
    transform: translate(var(--card-dx), var(--card-dy)) rotate(0deg) scale(1);
    filter: brightness(1);
  }
}

@keyframes trick-collect-fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  45% {
    transform: translate(var(--card-mid-x), var(--card-mid-y)) rotate(-7deg) scale(1.04);
    filter: brightness(1.08);
  }
  100% {
    opacity: 0;
    transform: translate(var(--card-dx), var(--card-dy)) rotate(7deg) scale(0.86);
    filter: brightness(0.96);
  }
}

@keyframes lupfen-card-pop {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.88);
  }
  60% {
    opacity: 1;
    transform: translateY(3px) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lupfen-trick-hold {
  0% {
    transform: scale(1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
  }
  35% {
    transform: scale(1.05);
    box-shadow:
      0 10px 18px rgba(0, 0, 0, 0.34),
      0 0 0 2px rgba(242, 201, 109, 0.38);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
  }
}

@keyframes zwanzigab-event-pulse {
  0% {
    opacity: 0;
    transform: translateY(5px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes zwanzigab-turn-glow {
  from {
    box-shadow:
      0 12px 26px rgba(0, 0, 0, 0.18),
      0 0 0 2px rgba(242, 201, 109, 0.28);
  }
  to {
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.22),
      0 0 0 3px rgba(242, 201, 109, 0.52);
  }
}

@keyframes zwanzigab-seat-nod {
  0% {
    transform: translateY(0) scale(1);
  }
  42% {
    transform: translateY(-5px) scale(1.015);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes zwanzigab-seat-fade-back {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0.58;
    transform: translateX(8px) scale(0.98);
  }
}

@keyframes zwanzigab-trump-flash {
  0% {
    filter: brightness(1);
  }
  35% {
    filter: brightness(1.22);
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.22),
      0 0 0 3px rgba(242, 201, 109, 0.62);
  }
  100% {
    filter: brightness(1);
  }
}

@keyframes deal-pile-pulse {
  from {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  to {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-screen,
  .splash-screen::before,
  .splash-content,
  .splash-card,
  .splash-suits img,
  .splash-start-btn,
  .player-message,
  .trump-steal-flyer,
  .trump-steal-layer::before,
  .card-motion-flyer,
  .deal-card,
  .deal-trump-card,
  .dealing-pile,
  .zwanzigab-event-text,
  .zwanzigab-active-seat,
  .zwanzigab-seat-exchange,
  .zwanzigab-seat-leave,
  .zwanzigab-seat-trump {
    animation: none;
  }

  .deal-card,
  .deal-trump-card,
  .dealing-pile {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .table-wrap {
    padding: 12px;
    gap: 10px;
  }

  .table {
    padding: 10px;
  }

  .hud {
    grid-template-columns: 1fr;
  }

  .lupfen-wrap .hud {
    grid-template-columns: 1fr;
  }

  .online-hud,
  .online-lobby-panel,
  .online-hub,
  .online-name-form,
  .online-create-panel,
  .online-chat-form {
    grid-template-columns: 1fr;
  }

  .online-waiting-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .online-lobby-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .online-lobby-settings .settings-toggle {
    grid-column: 1 / -1;
  }

  .online-waiting-panel > .inline-controls {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .online-waiting-panel > .inline-controls button {
    flex: 1 1 90px;
  }

  .center-zone {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .zone-head {
    gap: 10px;
  }

  .zone-head .inline-controls button {
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .lupfen-table {
    min-height: auto;
  }

  .lupfen-opponents,
  .lupfen-center-zone {
    grid-template-columns: 1fr;
  }

  .lupfen-opponents {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .lupfen-bottom-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .lupfen-pot-area,
  .lupfen-trick-area {
    border-radius: 18px;
    min-height: 0;
  }

  .lupfen-seat {
    padding: 7px;
  }

  .lupfen-seat h2 {
    font-size: 1rem;
  }

  .lupfen-seat .hand {
    min-height: 88px;
  }

  .lupfen-seat .ai-back {
    width: 48px;
    height: 68px;
  }
}

@media (max-width: 700px) and (orientation: portrait) {
  .table-wrap {
    padding: 8px;
    gap: 8px;
  }

  .table {
    padding: 8px;
    gap: 8px;
  }

  .title-box h1 {
    font-size: 1.45rem;
  }

  .controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .controls button {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .status-panel {
    padding: 6px;
  }

  .status-panel p {
    margin: 3px;
    font-size: 0.82rem;
  }

  .opponent-zone,
  .player-zone {
    padding: 7px;
  }

  .zone-head {
    margin-bottom: 6px;
  }

  .zone-head h2 {
    font-size: 1rem;
  }

  .trick-pile-panel.compact {
    min-width: 64px;
    gap: 2px;
  }

  .trick-pile-panel.compact .won-pile {
    display: none;
  }

  .trick-pile-panel.compact .trick-pile-points {
    min-height: 0;
    gap: 1px;
    text-align: right;
  }

  .player-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
  }

  .player-actions button {
    width: 100%;
    padding: 7px 8px;
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .center-zone {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: stretch;
  }

  .talon-area,
  .trick-area {
    padding: 7px;
    min-height: 0;
  }

  .talon-area {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto auto;
    gap: 6px;
    justify-content: center;
  }

  .talon-controls {
    justify-content: center;
  }

  .talon-controls button {
    padding: 7px 8px;
    font-size: 0.72rem;
  }

  .talon-info {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .trick-area {
    display: grid;
    grid-template-columns: repeat(4, minmax(46px, 1fr));
    gap: 4px;
    justify-items: center;
  }

  .center-zone:not(.lupfen-center-zone) .trick-area {
    grid-template-columns: repeat(2, minmax(56px, max-content));
    justify-content: space-evenly;
    column-gap: 8px;
  }

  .lupfen-trick-area {
    grid-template-columns: repeat(2, minmax(46px, 1fr));
  }

  .lupfen-bottom-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trick-area > div {
    display: grid;
    justify-items: center;
    gap: 4px;
  }

  .trick-label {
    font-size: 0.72rem;
    margin-bottom: 0;
  }

  .hand {
    min-height: 0;
    gap: 4px;
    justify-content: center;
    overflow: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .ai-hand,
  .player-hand {
    justify-content: center;
    align-content: flex-start;
  }

  .card,
  .face-card,
  .ai-back,
  .pile,
  .trump-card-slot,
  .table-card,
  .won-pile-empty,
  .won-pile-card {
    width: 52px;
    height: 74px;
  }

  .won-pile {
    width: 54px;
    height: 78px;
  }

  .trick-pile-panel {
    min-width: 64px;
    gap: 4px;
  }

  .trick-pile-points {
    min-height: 2em;
    font-size: 0.72rem;
  }

  .player-card-wrap {
    padding-top: 32px;
  }

  .player-hand .card {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .meld-chip {
    min-width: 52px;
    font-size: 0.6rem;
    padding: 4px 6px;
    z-index: 3;
  }

  .card .rank,
  .face-card .rank {
    font-size: 0.9rem;
  }

  .card .suit,
  .face-card .suit {
    font-size: 1.05rem;
  }

  .suit-icon {
    width: 16px;
    height: 16px;
  }

  .suit-icon-inline {
    width: 14px;
    height: 14px;
  }

  .round-summary-modal {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }

  .lupfen-summary-modal {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(96%, 620px);
    transform: translate(-50%, calc(-50% + 12px));
  }

  .lupfen-summary-modal.open {
    transform: translate(-50%, -50%);
  }

  .round-summary-card {
    padding: 14px;
    gap: 10px;
  }

  .round-summary-stat {
    font-size: 0.88rem;
  }
}

.lupfen-seat.opponent-zone,
.lupfen-seat.player-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 58px 34px 82px;
  height: 188px;
  min-height: 188px;
  align-items: stretch;
  text-align: center;
  overflow: visible;
}

.lupfen-seat .zone-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  justify-items: center;
  align-items: start;
  min-height: 58px;
  margin: 0;
}

.lupfen-seat .zone-head h2 {
  max-width: 100%;
  margin: 0;
  text-align: center;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.lupfen-seat .zone-head .trick-pile-panel.compact {
  width: 100%;
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
}

.lupfen-seat .player-actions {
  grid-row: 2;
  min-height: 34px;
  margin: 0;
  align-self: center;
  justify-content: center;
}

.lupfen-seat .zone-hand-wrap {
  grid-row: 3;
  min-width: 0;
  align-self: stretch;
  display: grid;
  align-items: center;
}

.lupfen-seat .hand {
  min-height: 82px;
  align-content: center;
  justify-content: center;
}

.lupfen-seat .player-card-wrap {
  padding-top: 0;
}

@media (max-width: 700px) and (orientation: portrait) {
  .lupfen-seat.opponent-zone,
  .lupfen-seat.player-zone {
    grid-template-rows: 46px 22px 74px;
    height: 156px;
    min-height: 156px;
  }

  .lupfen-seat-placeholder {
    min-height: 156px;
  }

  .lupfen-seat .zone-head {
    min-height: 46px;
    gap: 3px;
  }

  .lupfen-seat .zone-head h2 {
    font-size: 0.94rem;
  }

  .lupfen-seat .player-actions {
    min-height: 22px;
  }

  .lupfen-seat .hand {
    min-height: 74px;
  }

  .lupfen-summary-modal .round-summary-stats {
    gap: 5px;
    padding: 8px;
  }

  .round-summary-table {
    font-size: 0.78rem;
  }

  .round-summary-table th,
  .round-summary-table td {
    padding: 5px 6px;
  }

  .round-summary-potline span {
    padding: 7px 8px;
    font-size: 0.66rem;
  }

  .round-summary-potline strong {
    font-size: 0.88rem;
  }

  .round-summary-potline .highlight strong {
    font-size: 1rem;
  }
}

@media (min-width: 701px) {
  .lupfen-seat.opponent-zone,
  .lupfen-seat.player-zone {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 32px 16px 88px;
    column-gap: 12px;
    row-gap: 6px;
    height: 170px;
    min-height: 170px;
    align-items: start;
    text-align: left;
  }

  .lupfen-seat.opponent-zone {
    grid-template-areas:
      "title pile"
      ". pile"
      "hand pile";
  }

  .lupfen-seat.player-zone {
    grid-template-areas:
      "title pile"
      "actions pile"
      "hand pile";
  }

  .lupfen-seat .zone-head {
    display: contents;
    min-height: 0;
    margin: 0;
  }

  .lupfen-seat .zone-head h2 {
    grid-area: title;
    align-self: center;
    text-align: left;
  }

  .lupfen-seat .zone-head .trick-pile-panel.compact {
    grid-area: pile;
    width: auto;
    min-width: 92px;
    justify-items: center;
    align-content: start;
  }

  .lupfen-seat .player-actions {
    grid-area: actions;
    min-height: 16px;
    margin: 0;
    justify-content: flex-start;
  }

  .lupfen-seat .zone-hand-wrap {
    grid-area: hand;
    align-self: start;
  }

  .lupfen-seat .hand {
    min-height: 88px;
    justify-content: flex-start;
    align-content: start;
  }
}

.zwanzigab-table .lupfen-seat.opponent-zone,
.zwanzigab-table .lupfen-seat.player-zone {
  grid-template-rows: 62px 26px 116px;
  height: 218px;
  min-height: 218px;
}

.zwanzigab-table .lupfen-seat .hand {
  min-height: 116px;
  align-content: center;
}

.zwanzigab-table .lupfen-seat-placeholder {
  min-height: 218px;
}

.zwanzigab-table .lupfen-opponents,
.zwanzigab-table .lupfen-bottom-row,
.zwanzigab-table .lupfen-center-zone {
  width: min(100%, 920px);
}

.zwanzigab-table .lupfen-opponents,
.zwanzigab-table .lupfen-bottom-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.zwanzigab-table .trump-card-slot {
  display: none;
}

.zwanzigab-table .lupfen-center-zone {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.zwanzigab-table .zwanzigab-action-strip {
  min-height: 132px;
  border-radius: 16px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  justify-items: stretch;
  gap: 7px;
  background:
    radial-gradient(circle at top, rgba(242, 201, 109, 0.12), transparent 60%),
    rgba(0, 0, 0, 0.22);
}

.zwanzigab-table .zwanzigab-round-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: stretch;
  gap: 3px;
  margin: 0;
  font-family: "Manrope", sans-serif;
}

.zwanzigab-table .zwanzigab-round-info span {
  display: none;
}

.zwanzigab-table .zwanzigab-round-info strong {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  color: #fff4d3;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  line-height: 1.12;
}

.zwanzigab-table .zwanzigab-round-info em {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  color: rgba(243, 234, 214, 0.72);
  font-size: 0.72rem;
  line-height: 1.1;
}

.zwanzigab-table .talon-controls {
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.zwanzigab-table .talon-controls button,
.zwanzigab-table .zwanzigab-suit-buttons button {
  padding: 7px 8px;
  font-size: 0.74rem;
  line-height: 1.05;
}

.zwanzigab-table .zwanzigab-suit-buttons {
  min-height: 0;
  gap: 5px;
}

.zwanzigab-table .pile,
.zwanzigab-table .talon-info {
  display: none;
}

.zwanzigab-table .lupfen-trick-area {
  position: relative;
  min-height: 132px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.13);
}

.zwanzigab-table .lupfen-trick-slot {
  position: relative;
  z-index: 1;
}

.zwanzigab-trump-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 64px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
  color: rgba(243, 234, 214, 0.48);
  font-family: "Manrope", sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zwanzigab-trump-watermark.red {
  color: rgba(255, 195, 174, 0.56);
}

.zwanzigab-trump-watermark-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  opacity: 0.54;
  filter: saturate(1.2) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.zwanzigab-trump-watermark span {
  margin-top: -8px;
  opacity: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.zwanzigab-event-modal .event-modal-card {
  min-width: 220px;
}

.zwanzigab-event-modal .event-modal-badge {
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.zwanzigab-event-modal .event-modal-badge.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zwanzigab-event-modal .event-modal-badge .suit-icon-inline {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
  vertical-align: middle;
}

.zwanzigab-event-modal .event-modal-badge.event-modal-badge-card {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.zwanzigab-event-modal .event-modal-badge.event-modal-badge-card .card {
  width: 72px;
  min-height: 98px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

@media (max-width: 700px) and (orientation: portrait) {
  .zwanzigab-table .lupfen-opponents,
  .zwanzigab-table .lupfen-bottom-row,
  .zwanzigab-table .lupfen-center-zone {
    width: 100%;
    gap: 7px;
  }

  .zwanzigab-table .lupfen-seat.opponent-zone,
  .zwanzigab-table .lupfen-seat.player-zone {
    grid-template-rows: 54px 20px 150px;
    height: 236px;
    min-height: 236px;
  }

  .zwanzigab-table .lupfen-seat-placeholder {
    min-height: 236px;
  }

  .zwanzigab-table .lupfen-seat .hand {
    min-height: 150px;
    align-content: center;
  }

  .zwanzigab-table .lupfen-center-zone {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .zwanzigab-table .zwanzigab-action-strip {
    min-height: 116px;
    padding: 7px;
    gap: 5px;
  }

  .zwanzigab-table .zwanzigab-round-info {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    justify-items: center;
    text-align: center;
  }

  .zwanzigab-table .zwanzigab-round-info span {
    display: none;
  }

  .zwanzigab-table .zwanzigab-round-info strong {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.76rem;
  }

  .zwanzigab-table .zwanzigab-round-info em {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.64rem;
  }

  .zwanzigab-table .talon-controls button,
  .zwanzigab-table .zwanzigab-suit-buttons button {
    flex: 1 1 62px;
    padding: 7px 6px;
    font-size: 0.66rem;
  }

  .zwanzigab-table .lupfen-trick-area {
    min-height: 116px;
    padding: 5px;
    gap: 5px;
  }

  .zwanzigab-table .lupfen-trick-area .trick-label {
    font-size: 0.62rem;
  }

  .zwanzigab-table .lupfen-trick-area .card,
  .zwanzigab-table .lupfen-trick-area .face-card,
  .zwanzigab-table .lupfen-trick-area .table-card {
    width: 44px;
    height: 62px;
  }

  .zwanzigab-trump-watermark-icon {
    width: 40px;
    height: 40px;
  }

  .zwanzigab-trump-watermark {
    width: 52px;
    height: 52px;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }
}

@media (min-width: 701px) {
  .zwanzigab-table .lupfen-seat.opponent-zone,
  .zwanzigab-table .lupfen-seat.player-zone {
    grid-template-rows: 38px 20px 98px;
    height: 176px;
    min-height: 176px;
  }

  .zwanzigab-table .lupfen-seat-placeholder {
    min-height: 176px;
  }

  .zwanzigab-table .lupfen-seat .hand {
    min-height: 98px;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    gap: 7px;
  }

  .zwanzigab-table .lupfen-seat .card,
  .zwanzigab-table .lupfen-seat .ai-back {
    width: 62px;
    height: 88px;
  }
}
