/* Modern velvet UNO table — Poco X6 Pro / 412×915 first */
.game-panel.is-uno .game-bar { display: none; }
.game-panel.is-uno { background: transparent; padding: 0 0 8px; }
.game-mount-uno {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  width: 100%;
  height: 100%;
}
.uno-wrap {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 22px 22px 18px 18px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255, 70, 160, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(40, 10, 50, 0.65), transparent 70%),
    linear-gradient(180deg, rgba(18, 8, 24, 0.88), rgba(8, 4, 14, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 170, 210, 0.16), 0 16px 40px rgba(0,0,0,.45);
  padding: 8px 8px 6px;
  gap: 4px;
}
.uno-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 56px;
  padding: 2px 4px 2px 8px;
}
.uno-badge {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.uno-badge-name { font-size: 0.78rem; font-weight: 800; color: #ffe8f3; letter-spacing: 0.01em; }
.uno-badge-n { font-size: 0.68rem; color: #ffb9dc; opacity: 0.9; }
.uno-opp-fan {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  height: 52px;
}
.uno-opp-card {
  width: 28px;
  height: 42px;
  margin-left: -12px;
  border-radius: 5px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
  transform: rotate(var(--r, 0deg));
}
.uno-opp-card:first-child { margin-left: 0; }
.uno-exit {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,180,210,.35);
  background: rgba(12,8,14,.8);
  color: #ffe8f3;
  font: inherit;
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
}

.uno-table {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 2px 8px;
}
.uno-pile, .uno-discard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #ffe8f3;
  padding: 0;
  cursor: pointer;
}
.uno-pile img, .uno-discard img {
  width: 74px;
  height: 111px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.55));
  pointer-events: none;
}
.uno-discard { cursor: default; }
.uno-discard::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 55px;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--uno-glow, rgba(255,80,160,.35)), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.uno-discard img { transform: rotate(-8deg); }
.uno-pile[disabled] { opacity: 0.55; cursor: default; }
.uno-count {
  position: absolute;
  right: -6px;
  top: 4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff4f9a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.uno-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 92px;
}
.uno-color-pill {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 0 16px var(--uno-glow, rgba(255,80,160,.5));
}
.uno-color-pill.is-red { background: #e5191c; --uno-glow: rgba(229,25,28,.55); }
.uno-color-pill.is-yellow { background: #f6d000; --uno-glow: rgba(246,208,0,.5); }
.uno-color-pill.is-green { background: #1ca638; --uno-glow: rgba(28,166,56,.5); }
.uno-color-pill.is-blue { background: #1472e6; --uno-glow: rgba(20,114,230,.55); }
.uno-wrap { --uno-glow: rgba(255,80,160,.45); }
.uno-wrap.is-red { --uno-glow: rgba(229,25,28,.55); }
.uno-wrap.is-yellow { --uno-glow: rgba(246,208,0,.5); }
.uno-wrap.is-green { --uno-glow: rgba(28,166,56,.5); }
.uno-wrap.is-blue { --uno-glow: rgba(20,114,230,.55); }
.uno-turn {
  font-size: 0.74rem;
  color: #ffe8f3;
  text-align: center;
  line-height: 1.25;
  max-width: 120px;
  font-weight: 600;
}

.uno-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 38px;
}
.uno-btn {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,160,210,.4);
  background: rgba(20,12,16,.88);
  color: #ffe8f3;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}
.uno-btn:disabled { opacity: 0.3; cursor: default; }
.uno-btn.uno-call {
  background: linear-gradient(180deg, #ff5a5a, #c41414);
  border-color: #ffd36a;
  color: #fff;
  letter-spacing: 0.06em;
}
.uno-btn.uno-call.is-armed, .uno-btn.uno-call:not(:disabled) {
  animation: unoPulse 1s ease-in-out infinite;
}
@keyframes unoPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255, 210, 80, .0); transform: scale(1); }
  50% { box-shadow: 0 0 0 6px rgba(255, 210, 80, .28); transform: scale(1.05); }
}

.uno-hand {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 16px 12px 8px;
  min-height: 136px;
  flex-shrink: 0;
  scrollbar-width: none;
}
.uno-hand::-webkit-scrollbar { display: none; }
.uno-card {
  flex: 0 0 auto;
  width: 74px;
  height: 111px;
  margin-left: -22px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(10px);
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.45));
  position: relative;
  opacity: 0.72;
}
.uno-card:first-child { margin-left: 0; }
.uno-card img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.uno-card.is-playable {
  opacity: 1;
  transform: translateY(-16px);
  filter: drop-shadow(0 10px 12px rgba(255, 90, 180, .4)) drop-shadow(0 2px 2px rgba(0,0,0,.4));
  z-index: 2;
}
.uno-card.is-playable::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  box-shadow: 0 0 0 2.5px #ffe36a, 0 0 14px rgba(255, 230, 120, .55);
  pointer-events: none;
}
.uno-card:disabled { cursor: default; }
.uno-card.is-drawn { z-index: 3; }

.uno-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 3, 8, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 16px;
  backdrop-filter: blur(8px);
}
.uno-overlay[hidden] { display: none !important; }
.uno-modal {
  width: min(92vw, 340px);
  background: rgba(20, 10, 18, 0.96);
  border: 1px solid rgba(255,160,210,.4);
  border-radius: 20px;
  padding: 18px 16px 16px;
  text-align: center;
  color: #fff8fb;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.uno-modal h2 { margin: 0 0 8px; font-size: 1.15rem; }
.uno-modal p { margin: 0 0 14px; font-size: 0.9rem; color: #ffd6ea; }
.uno-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uno-pick {
  height: 52px;
  border-radius: 16px;
  border: 2px solid #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.uno-pick.is-red { background: #e5191c; }
.uno-pick.is-yellow { background: #f6d000; color: #2a1a00; text-shadow: none; }
.uno-pick.is-green { background: #1ca638; }
.uno-pick.is-blue { background: #1472e6; }
.uno-win-actions { display: flex; gap: 8px; }
.uno-win-actions .uno-btn { flex: 1; height: 42px; }

@media (max-height: 700px) {
  .uno-pile img, .uno-discard img { width: 64px; height: 96px; }
  .uno-card { width: 64px; height: 96px; }
  .uno-hand { min-height: 118px; }
}
