/* UNO: lobby (open games, latest results, create panel), game room and table. */
.uno-lobby {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--s5);
  align-items: start;
}
.uno-main {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.uno-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--s2);
}
.uno-sec-head h2 {
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.uno-sec-head .icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}
.uno-bar {
  width: 4px;
  height: 22px;
  border-radius: 4px;
}
.uno-bar.y {
  background: #f5c518;
}
.uno-bar.g {
  background: #22c55e;
}
.uno-count {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--text-dim);
}
.uno-list {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(17, 19, 22, 0.88);
  overflow: hidden;
}
.uno-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 42px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.uno-empty.small {
  padding: 22px;
  border: 0;
}
.uno-empty .icon {
  width: 34px;
  height: 34px;
}
.uno-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.uno-row:last-child {
  border-bottom: 0;
}
.uno-row.result:hover {
  background: var(--surface-2);
}
.uno-player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.uno-side {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.6;
}
.uno-side.won {
  opacity: 1;
  font-weight: 700;
}
.uno-crown {
  width: 15px;
  height: 15px;
  color: #f5c518;
}
.uno-crown svg {
  width: 100%;
  height: 100%;
}
.uno-vs {
  font-size: 11px;
  color: var(--text-dim);
}
.uno-row-bet {
  margin-left: auto;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
.uno-ago {
  width: 64px;
  text-align: right;
  font-size: 11px;
  color: var(--text-dim);
}
.uno-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(245, 197, 24, 0.45);
  background: rgba(245, 197, 24, 0.1);
}
.uno-active[hidden] {
  display: none;
}
.uno-create-panel {
  position: sticky;
  top: calc(var(--topbar-h) + var(--s4));
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--s5);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(17, 19, 22, 0.94);
  box-shadow: var(--shadow-1);
}
.uno-create-panel h2 {
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.uno-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.uno-bet-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface-0);
}
.uno-bet-wrap > span {
  width: 20px;
  height: 20px;
}
.uno-bet-wrap .coin {
  width: 20px;
  height: 20px;
}
.uno-bet-wrap .input {
  border: 0;
  background: transparent;
  font-size: var(--fs-lg);
  min-height: 48px;
  box-shadow: none;
}
.uno-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.uno-chip {
  padding: 9px 0;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-1);
  color: var(--text);
  font-size: var(--fs-xs);
  font-weight: 700;
  cursor: pointer;
}
.uno-chip.max {
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
}
.uno-win {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.uno-win-val {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
.uno-create,
.uno-join {
  background: linear-gradient(180deg, #22c55e, #15803d);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn.uno-create:not(:disabled),
.btn.uno-join:not(:disabled) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 22px -10px #22c55e;
}
.uno-create .plus {
  font-size: 20px;
  line-height: 1;
}

/* Room: waiting for an opponent */
.uno-room {
  margin-top: var(--s3);
  padding: var(--s6) var(--s4);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(17, 19, 22, 0.92);
}
.uno-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.uno-versus {
  display: flex;
  align-items: flex-start;
  gap: var(--s6);
  margin-bottom: var(--s5);
}
.uno-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 110px;
}
.uno-seat-av {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 20px;
  border: 2px solid var(--line-strong);
  background: var(--surface-0);
}
.uno-seat.empty .uno-seat-av {
  border-style: dashed;
  color: var(--text-dim);
}
.uno-seat.empty .icon {
  width: 40px;
  height: 40px;
}
.uno-vs-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  color: var(--text-dim);
}
.uno-vs-mid .icon {
  width: 26px;
  height: 26px;
}
.uno-bet-big {
  font-size: 34px;
  font-weight: 800;
}
.uno-bet-big .coin {
  width: 34px;
  height: 34px;
}
.uno-wait .green {
  color: #4ade80;
}
.uno-wait-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2);
  margin-top: var(--s4);
}
.uno-botbtn {
  background: linear-gradient(180deg, #b46cf7, #9333ea);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.uno-fair {
  margin-top: var(--s3);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(17, 19, 22, 0.92);
}
.uno-fair summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
}
.uno-fair summary .icon {
  width: 16px;
  height: 16px;
  color: #22c55e;
}
.uno-fair-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
}
.uno-hash code {
  display: block;
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface-0);
  font-size: 12px;
  word-break: break-all;
}

/* Cards */
.uno-card {
  --uc: #e1251b;
  position: relative;
  flex: none;
  width: 74px;
  height: 108px;
  border-radius: 10px;
  border: 4px solid #fff;
  background: var(--uc);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  color: #fff;
  user-select: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.uno-card.c-r {
  --uc: #e1251b;
}
.uno-card.c-y {
  --uc: #f5c518;
}
.uno-card.c-g {
  --uc: #2fa84f;
}
.uno-card.c-b {
  --uc: #1f6fe0;
}
.uno-card.c-w,
.uno-card.back {
  --uc: #1b1b1f;
}
.uno-oval {
  position: absolute;
  inset: 12px 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  transform: rotate(28deg);
  overflow: hidden;
}
.uno-oval b {
  transform: rotate(-28deg);
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--uc);
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.25);
}
.uno-card.c-y .uno-oval b {
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.35);
}
.uno-card.c-w .uno-oval b {
  position: relative;
  color: #fff;
  -webkit-text-stroke: 1.5px #000;
}
.uno-wheel {
  position: absolute;
  inset: 0;
  background: conic-gradient(#e1251b 0 25%, #1f6fe0 0 50%, #2fa84f 0 75%, #f5c518 0);
}
.uno-card.back .uno-oval {
  background: #e1251b;
}
.uno-card.back .uno-oval b {
  color: #f5c518;
  font-size: 18px;
  -webkit-text-stroke: 1px #000;
}
.uno-corner {
  position: absolute;
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.uno-corner.tl {
  top: 3px;
  left: 5px;
}
.uno-corner.br {
  right: 5px;
  bottom: 3px;
  transform: rotate(180deg);
}
.uno-card.small {
  width: 46px;
  height: 68px;
  border-width: 3px;
  border-radius: 7px;
}
.uno-card.small .uno-oval {
  inset: 7px 5px;
}
.uno-card.small .uno-oval b {
  font-size: 15px;
}
.uno-card.small.back .uno-oval b {
  font-size: 10px;
}
.uno-card.small .uno-corner {
  display: none;
}
.uno-card.playable {
  cursor: pointer;
  transform: translateY(-14px);
  box-shadow: 0 0 0 3px #f5c518, 0 0 22px rgba(245, 197, 24, 0.65), 0 10px 18px rgba(0, 0, 0, 0.5);
}
.uno-card.playable:hover {
  transform: translateY(-24px) scale(1.06);
}
.uno-card.landed {
  animation: card-land 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}
@keyframes card-land {
  from {
    transform: translateY(-80px) rotate(-30deg) scale(1.2);
    opacity: 0;
  }
}

/* Table */
.uno-table {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) 0;
  border-radius: 20px;
  background: radial-gradient(70% 60% at 50% 50%, rgba(47, 191, 113, 0.14), transparent 70%);
}
.uno-top-row,
.uno-bottom-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.uno-n {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.uno-hand {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 18px 10px 4px;
}
.uno-hand .uno-card + .uno-card {
  margin-left: -18px;
}
.uno-hand.opp .uno-card + .uno-card {
  margin-left: -26px;
}
.uno-center {
  display: flex;
  align-items: center;
  gap: var(--s6);
  margin: var(--s3) 0;
}
.uno-draw {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.uno-draw:disabled {
  cursor: default;
  opacity: 0.7;
}
.uno-draw:not(:disabled):hover .uno-card {
  transform: translateY(-6px);
  box-shadow: 0 0 0 3px #fff, 0 0 20px rgba(255, 255, 255, 0.5);
}
.uno-deck-n {
  position: absolute;
  right: -10px;
  bottom: -10px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 11px;
  font-weight: 700;
}
.uno-pile {
  position: relative;
  padding: 10px;
  border-radius: 18px;
  box-shadow: 0 0 0 3px var(--pc, #fff), 0 0 34px var(--pc, #fff);
}
.uno-pile.color-r {
  --pc: #e1251b;
}
.uno-pile.color-y {
  --pc: #f5c518;
}
.uno-pile.color-g {
  --pc: #2fa84f;
}
.uno-pile.color-b {
  --pc: #1f6fe0;
}
.uno-pile .uno-card {
  width: 92px;
  height: 134px;
}
.uno-color-dot {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--pc);
}
.uno-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}
.uno-status b {
  font-size: var(--fs-xl);
}
.uno-table.my-turn .uno-status b {
  color: #f5c518;
}
.uno-timer {
  height: 6px;
  border-radius: 6px;
  background: var(--surface-3);
  overflow: hidden;
}
.uno-timer i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f5c518, #22c55e);
  transition: width 1s linear;
}
.uno-picker-bg {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
}
.uno-picker {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5);
  border-radius: 20px;
  background: #15171b;
  text-align: center;
}
.uno-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.uno-pick {
  width: 120px;
  height: 70px;
  border: 3px solid #fff;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.uno-pick.c-r {
  background: #e1251b;
}
.uno-pick.c-y {
  background: #f5c518;
  color: #3b2a00;
}
.uno-pick.c-g {
  background: #2fa84f;
}
.uno-pick.c-b {
  background: #1f6fe0;
}
@media (max-width: 960px) {
  .uno-lobby {
    grid-template-columns: 1fr;
  }
  .uno-create-panel {
    position: static;
  }
  .uno-center {
    gap: var(--s3);
    flex-wrap: wrap;
    justify-content: center;
  }
  .uno-card {
    width: 58px;
    height: 86px;
  }
}

/* ---------- UNO animations ---------- */
.uno-pile .uno-card.from-me {
  animation: card-from-me 0.42s cubic-bezier(0.25, 1.4, 0.5, 1);
}
.uno-pile .uno-card.from-opp {
  animation: card-from-opp 0.5s cubic-bezier(0.25, 1.4, 0.5, 1);
}
@keyframes card-from-me {
  from {
    transform: translateY(160px) rotate(25deg) scale(0.8);
    opacity: 0;
  }
}
@keyframes card-from-opp {
  from {
    transform: translateY(-180px) rotate(-200deg) scale(0.6);
    opacity: 0;
  }
}
.uno-card.fresh {
  animation: card-draw 0.5s cubic-bezier(0.25, 1.3, 0.5, 1) calc(var(--k) * 0.12s) backwards;
}
@keyframes card-draw {
  from {
    transform: translate(-260px, -220px) rotate(-60deg) scale(0.5);
    opacity: 0;
  }
}
.uno-card.fresh-opp {
  animation: card-draw-opp 0.45s ease-out calc(var(--k) * 0.1s) backwards;
}
@keyframes card-draw-opp {
  from {
    transform: translate(-200px, 200px) rotate(40deg) scale(0.6);
    opacity: 0;
  }
}
.uno-ghost {
  position: fixed;
  z-index: 150;
  margin: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.3, 0.9, 0.4, 1), opacity 0.45s;
}
.uno-hand {
  position: relative;
}
.uno-hand.hit .uno-card {
  animation: hand-hit 0.5s ease-out;
  filter: grayscale(0.6) brightness(0.6);
  transition: filter 0.6s 1.2s;
}
@keyframes hand-hit {
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}
.uno-skip {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: skip-life 1.8s ease-out forwards;
}
.uno-skip-sign {
  font-size: 150px;
  line-height: 0.9;
  font-weight: 900;
  color: #ef4444;
  text-shadow: 0 0 30px rgba(239, 68, 68, 0.9), 0 6px 0 #7f1d1d;
}
.uno-skip b {
  padding: 4px 16px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.14em;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.7);
}
.uno-skip.small .uno-skip-sign {
  font-size: 80px;
}
.uno-skip.small b {
  font-size: 12px;
}
@keyframes skip-life {
  0% {
    transform: scale(2.4) rotate(-25deg);
    opacity: 0;
  }
  15% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0;
  }
}

/* ---------- UNO extra effects ---------- */
.uno-table {
  position: relative;
  overflow: hidden;
  --uc: #475569;
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--uc) 30%, #12301f), #0b1a12 75%);
  transition: background 0.6s;
}
.uno-table.tint-r {
  --uc: #ef4444;
}
.uno-table.tint-y {
  --uc: #eab308;
}
.uno-table.tint-g {
  --uc: #22c55e;
}
.uno-table.tint-b {
  --uc: #3b82f6;
}
.uno-table.my-turn .uno-hand.mine {
  border-radius: 18px;
  animation: uno-turn-glow 1.4s ease-in-out infinite alternate;
}
@keyframes uno-turn-glow {
  from {
    box-shadow: 0 0 0 rgba(255, 210, 61, 0);
  }
  to {
    box-shadow: 0 0 30px rgba(255, 210, 61, 0.45);
  }
}
.uno-wave {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 60px;
  height: 60px;
  margin: -30px;
  border-radius: 50%;
  pointer-events: none;
  animation: uno-wave 1s ease-out forwards;
}
.uno-wave.color-r {
  background: #ef4444;
}
.uno-wave.color-y {
  background: #eab308;
}
.uno-wave.color-g {
  background: #22c55e;
}
.uno-wave.color-b {
  background: #3b82f6;
}
@keyframes uno-wave {
  from {
    opacity: 0.8;
    transform: scale(0.5);
  }
  to {
    opacity: 0;
    transform: scale(22);
  }
}
.uno-rev {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  font-size: 160px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 30px var(--uc);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: uno-rev 1.2s ease-in-out forwards;
}
@keyframes uno-rev {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0) scale(0.4);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-540deg) scale(1.2);
  }
}
.uno-plus {
  position: absolute;
  left: 50%;
  bottom: 18%;
  z-index: 6;
  font-size: 96px;
  font-weight: 900;
  color: #ff4d6d;
  text-shadow: 0 0 24px #ff4d6d, 0 6px 0 #7f1d1d;
  pointer-events: none;
  transform: translateX(-50%);
  animation: uno-plus 1.4s cubic-bezier(0.2, 1.5, 0.4, 1) forwards;
}
.uno-plus.up {
  top: 12%;
  bottom: auto;
  color: #2ee59d;
  text-shadow: 0 0 24px #2ee59d, 0 6px 0 #14532d;
}
@keyframes uno-plus {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(3);
  }
  20%,
  70% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px);
  }
}
.uno-shout {
  position: absolute;
  z-index: 7;
  padding: 6px 18px;
  border-radius: 999px 999px 999px 4px;
  background: #ffd23d;
  color: #1a1000;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.05em;
  box-shadow: 0 0 30px rgba(255, 210, 61, 0.8);
  pointer-events: none;
  animation: uno-shout 1.8s cubic-bezier(0.2, 1.6, 0.4, 1) forwards;
}
.uno-shout.me {
  left: 8%;
  bottom: 22%;
}
.uno-shout.opp {
  right: 8%;
  top: 14%;
  background: #ef4444;
  color: #fff;
}
@keyframes uno-shout {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-20deg);
  }
  15%,
  80% {
    opacity: 1;
    transform: scale(1) rotate(-6deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.2) rotate(-6deg);
  }
}
.uno-yourturn {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  z-index: 6;
  padding: 8px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 61, 0.9), transparent);
  color: #1a1000;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-align: center;
  pointer-events: none;
  animation: uno-yourturn 1.3s ease-out forwards;
}
@keyframes uno-yourturn {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  25%,
  70% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Dealing at the start, and the "thinking" dots for the other player. */
.uno-card.dealt {
  animation: uno-deal 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.1) var(--d) backwards;
}
.uno-card.dealt-opp {
  animation: uno-deal-opp 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.1) var(--d) backwards;
}
.uno-card.dealt-top {
  animation: uno-deal-top 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) var(--d) backwards;
}
@keyframes uno-deal {
  from {
    opacity: 0;
    transform: translate(-180px, -240px) rotate(-200deg) scale(0.5);
  }
}
@keyframes uno-deal-opp {
  from {
    opacity: 0;
    transform: translate(-180px, 200px) rotate(160deg) scale(0.5);
  }
}
@keyframes uno-deal-top {
  0% {
    opacity: 0;
    transform: rotateY(180deg) scale(0.4);
  }
  60% {
    transform: rotateY(0) scale(1.25);
  }
}
.uno-thinking::after {
  content: "";
  display: inline-block;
  width: 1.4em;
  text-align: left;
  animation: uno-dots 1.2s steps(4) infinite;
}
@keyframes uno-dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}

/* Nothing to play: the deck blinks and says Draw! */
.uno-draw {
  position: relative;
}
.uno-draw.must-draw .uno-card {
  animation: uno-must-draw 0.8s ease-in-out infinite alternate;
}
@keyframes uno-must-draw {
  from {
    box-shadow: 0 0 0 3px #ffd23d, 0 0 10px #ffd23d;
    transform: translateY(0);
  }
  to {
    box-shadow: 0 0 0 5px #ffd23d, 0 0 34px #ffd23d;
    transform: translateY(-6px) scale(1.05);
  }
}
.uno-draw-hint {
  position: absolute;
  left: 50%;
  top: -30px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #ffd23d;
  color: #1a1000;
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: uno-hint 0.8s ease-in-out infinite alternate;
}
@keyframes uno-hint {
  to {
    transform: translateX(-50%) translateY(-5px);
  }
}
.uno-card.fresh,
.uno-card.fresh-opp {
  animation: none;
}
