/* In-phone Ayo — dark green table, carved wooden board */

.wondalife-phone-screen.is-app:has(.ayo-app) {
  background: #08140d;
}
.wondalife-phone-screen.is-app:has(.ayo-app) .wondalife-phone-status {
  color: #f5f7f4;
}
.wondalife-phone-screen.is-app:has(.ayo-app) .wondalife-phone-signal::before {
  background: #f5f7f4;
  box-shadow: 4px 0 0 #f5f7f4, 8px -2px 0 #f5f7f4, 12px -4px 0 #f5f7f4;
}
.wondalife-phone-screen.is-app:has(.ayo-app) .wondalife-phone-battery {
  border-color: #f5f7f4;
}
.wondalife-phone-screen.is-app:has(.ayo-app) .wondalife-phone-battery::before,
.wondalife-phone-screen.is-app:has(.ayo-app) .wondalife-phone-battery::after {
  background: #f5f7f4;
}
.wondalife-phone-screen.is-app:has(.ayo-app) .wondalife-phone-homebar {
  background: rgba(245, 247, 244, 0.35);
}
.wondalife-phone-screen.is-app .wondalife-phone-body:has(.ayo-app) {
  padding: 0 0 22px;
  overflow: hidden;
  height: 100%;
}

.ayo-app {
  --gold: #f2c94c;
  --ring-play: rgba(255, 255, 255, 0.92);
  --ring-origin: #fb923c;
  --ring-skip: #c084fc;
  --ring-trail: #a8a29e;
  --ring-landed: #facc15;
  --ring-captured: #22c55e;
  --ring-forfeit: #f87171;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
  background: radial-gradient(120% 70% at 50% 0%, #163524 0%, #0b1d13 55%, #07120c 100%);
  color: #f5f7f4;
  font-family: Poppins, "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  z-index: 4;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Header */
.ayo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px;
  flex-shrink: 0;
}
.ayo-head__title {
  min-width: 0;
}
.ayo-head h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.ayo-head__icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  margin: -0.35em 0 0 -0.15em;
  vertical-align: -0.38em;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.45));
}
.ayo-head p {
  margin: 1px 0 0;
  font-size: 10.5px;
  color: rgba(245, 247, 244, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ayo-head__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ayo-x {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.ayo-hold {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 11px;
  font: 600 10.5px/1 Poppins, "Segoe UI", sans-serif;
  color: #e8f0e9;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  touch-action: none;
}
.ayo-hold span {
  position: relative;
}
.ayo-hold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #c62f3d, #e5484d);
  transform: scaleX(0);
  transform-origin: left center;
}
.ayo-hold.is-holding::before {
  animation: ayo-hold 1.2s linear both;
  animation-delay: var(--hold-delay, 0ms);
}
@keyframes ayo-hold {
  to { transform: scaleX(1); }
}
.ayo-live {
  font-size: 10.5px;
  font-weight: 600;
  color: #ff8a8a;
}

/* Players: everything stays inside the card. */
.ayo-players {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  padding: 0 10px 6px;
  flex-shrink: 0;
}
.ayo-player {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 12px 5px 5px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid transparent;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ayo-player--right {
  flex-direction: row-reverse;
  padding: 5px 5px 5px 12px;
  text-align: right;
}
.ayo-player.is-active {
  border-color: rgba(242, 201, 76, 0.85);
  background: rgba(242, 201, 76, 0.08);
  box-shadow: 0 0 14px rgba(242, 201, 76, 0.18);
}
.ayo-player__av {
  --pct: 0;
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.ayo-player.is-active .ayo-player__av {
  background: conic-gradient(var(--gold) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.14) 0);
}
.ayo-player__av img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(180deg, #dfe9e3, #b8cbbf);
  border: 2px solid #0b1d13;
}
.ayo-follow {
  position: absolute;
  top: 31px;
  left: 31px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 2px solid #0e2418;
  border-radius: 999px;
  background: #1fb36a;
  color: #fff;
  font: 700 11px/1 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
}
.ayo-player--right .ayo-follow {
  left: auto;
  right: 31px;
}
.ayo-follow.is-on {
  background: #f2c94c;
  color: #1c1606;
  font-size: 9px;
}
.ayo-player__txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.ayo-player__txt strong {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ayo-player__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(245, 247, 244, 0.72);
  white-space: nowrap;
}
.ayo-player--right .ayo-player__meta {
  justify-content: flex-end;
}
.ayo-player__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: -2px 0;
}
.ayo-player__meta b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ayo-player__meta em {
  margin-left: 3px;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.ayo-player__meta em.is-low {
  color: #ff7a7a;
}
.ayo-bubble {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  animation: ayo-bubble 2.6s ease-out both;
  pointer-events: none;
}
@keyframes ayo-bubble {
  0% { opacity: 0; transform: scale(0.3); }
  12% { opacity: 1; transform: scale(1.25); }
  20% { transform: scale(1); }
  82% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.85); }
}

/* Last move, chat and reactions */
.ayo-log {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 4px;
  flex-shrink: 0;
}
.ayo-log__line {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #e9efe9;
  font: 500 11.5px/1.25 Poppins, "Segoe UI", sans-serif;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.ayo-log__line b {
  font-weight: 700;
}
.ayo-log__icon {
  width: 1.35em;
  height: 1.35em;
  margin: -0.3em 0;
  vertical-align: -0.35em;
}
.ayo-react {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 17px;
  cursor: pointer;
}
.ayo-reacts {
  position: absolute;
  right: 10px;
  top: calc(100% + 2px);
  z-index: 12;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: #11291b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  animation: ayo-pop-in 0.18s ease-out both;
}
.ayo-reacts button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 19px;
  cursor: pointer;
}
.ayo-reacts button:hover {
  background: rgba(255, 255, 255, 0.1);
}
@keyframes ayo-pop-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* Board */
.ayo-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
}
.ayo-board-host {
  width: 100%;
}
.ayo-board {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px;
  border-radius: 24px;
  background:
    repeating-linear-gradient(176deg, rgba(90, 40, 10, 0) 0 7px, rgba(90, 40, 10, 0.07) 7px 9px, rgba(90, 40, 10, 0) 9px 17px),
    linear-gradient(180deg, #c98243 0%, #ad662f 48%, #8f4f22 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 222, 176, 0.38),
    inset 0 -3px 0 rgba(60, 25, 5, 0.45),
    0 0 0 1px rgba(50, 20, 4, 0.7),
    0 16px 34px rgba(0, 0, 0, 0.55);
  touch-action: manipulation;
}
.ayo-store {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px 0 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #683615, #80461d);
  box-shadow: inset 0 3px 7px rgba(28, 11, 2, 0.6), inset 0 -1px 0 rgba(255, 210, 160, 0.2);
}
.ayo-store__label {
  flex-shrink: 1;
  max-width: 42%;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 236, 210, 0.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ayo-store__label.is-name {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11.5px;
}
.ayo-store__seeds {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.ayo-store__seeds i {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffdf3, #ecdcb2 55%, #b99a5f);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}
.ayo-store__n {
  min-width: 24px;
  text-align: right;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff4dc;
}
.ayo-store.is-won .ayo-store__n {
  color: #ffe08a;
  text-shadow: 0 0 10px rgba(255, 210, 90, 0.6);
}
.ayo-store__bar {
  position: absolute;
  left: 20px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.ayo-store__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f2c94c, #ffe08a);
  transition: width 0.4s ease;
}
.ayo-store__pop {
  position: absolute;
  right: 48px;
  top: 50%;
  font-size: 15px;
  font-weight: 800;
  color: #ffe08a;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  animation: ayo-store-pop 1.1s ease-out both;
}
@keyframes ayo-store-pop {
  0% { opacity: 0; transform: translateY(-20%) scale(0.6); }
  18% { opacity: 1; transform: translateY(-50%) scale(1.15); }
  70% { opacity: 1; transform: translateY(-70%) scale(1); }
  100% { opacity: 0; transform: translateY(-110%) scale(0.95); }
}

.ayo-pits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px 6px;
  padding: 3px 3px 4px;
}
.ayo-pit {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #2a1305 0%, #3c1c09 46%, #592d11 80%, #6c3916 100%);
  box-shadow:
    inset 0 4px 8px rgba(0, 0, 0, 0.62),
    inset 0 -2px 2px rgba(255, 200, 150, 0.12),
    0 1px 0 rgba(255, 220, 180, 0.28);
  color: inherit;
  font: inherit;
  cursor: default;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
/* Status ring (grey, yellow, green, ...) */
.ayo-pit::after {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: 2;
  border-radius: 50%;
  border: 2.5px solid transparent;
  pointer-events: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
/* Playable glow; moves inside the pit when a status ring is showing too. */
.ayo-pit::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: 1;
  border-radius: 50%;
  border: 2.5px solid transparent;
  pointer-events: none;
}
.ayo-pit.is-play {
  cursor: pointer;
}
.ayo-pit.is-play::before {
  border-color: var(--ring-play);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  animation: ayo-breathe 1.8s ease-in-out infinite;
}
.ayo-pit.is-play.has-mark::before {
  inset: 2px;
  border-width: 1.5px;
  box-shadow: none;
}
@keyframes ayo-breathe {
  50% { box-shadow: 0 0 2px rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.62); }
}
.ayo-pit.is-play:active {
  transform: scale(0.95);
}
.ayo-pit.is-origin::after { border-color: var(--ring-origin); box-shadow: 0 0 9px rgba(251, 146, 60, 0.45); }
.ayo-pit.is-skip::after { border: 2.5px dashed var(--ring-skip); box-shadow: 0 0 9px rgba(192, 132, 252, 0.4); }
.ayo-pit.is-trail::after { border-color: var(--ring-trail); }
.ayo-pit.is-landed::after { border-color: var(--ring-landed); box-shadow: 0 0 12px rgba(250, 204, 21, 0.6); }
.ayo-pit.is-captured::after { border-color: var(--ring-captured); box-shadow: 0 0 14px rgba(34, 197, 94, 0.65); }
.ayo-pit.is-forfeit::after { border-color: var(--ring-forfeit); box-shadow: 0 0 12px rgba(248, 113, 113, 0.55); }
.ayo-pit.is-peek-path::after { border: 2px dashed rgba(214, 211, 209, 0.8); }
.ayo-pit.is-peek-land::after { border: 2.5px dashed var(--ring-landed); }
.ayo-pit.is-peek-cap::after { border: 2.5px dashed #4ade80; box-shadow: 0 0 10px rgba(74, 222, 128, 0.4); }
.ayo-pit.is-peek-forfeit::after { border: 2.5px dashed var(--ring-forfeit); }
.ayo-pit.is-peeking {
  transform: scale(1.05);
}
.ayo-pit.is-blocked {
  opacity: 0.42;
}
.ayo-pit.is-nope {
  animation: ayo-nope 0.4s ease-in-out;
}
.ayo-pit.is-nope::after {
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}
@keyframes ayo-nope {
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

.ayo-seed {
  position: absolute;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 34% 30%, #fffdf3 0%, #eedfb7 52%, #b99a5f 100%);
  box-shadow: 0 1.5px 1.5px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.ayo-seed.is-new {
  animation: ayo-drop 0.24s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
@keyframes ayo-drop {
  from { transform: translate(-50%, -190%) scale(1.3); opacity: 0.3; }
  to { transform: translate(-50%, -50%); opacity: 1; }
}
.ayo-seed.is-flying {
  z-index: 30;
  transition: transform 0.5s cubic-bezier(0.5, 0, 0.6, 1), opacity 0.5s ease-in;
}
.ayo-pit__n {
  position: absolute;
  left: 50%;
  bottom: -4px;
  z-index: 3;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #1c0e05;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  color: #fff;
  font: 700 10.5px/18px Poppins, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
.ayo-pit.is-empty .ayo-pit__n {
  background: transparent;
  box-shadow: none;
  color: rgba(255, 228, 196, 0.3);
}
.ayo-hand {
  position: absolute;
  top: -8px;
  right: -6px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px 1px 3px;
  border-radius: 999px;
  background: #fff4dc;
  color: #3b1d08;
  font: 700 9.5px/14px Poppins, "Segoe UI", sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.ayo-hand i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fffdf3, #e2cf9e 55%, #a88a52);
}
.ayo-peek {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 6;
  padding: 1px 6px;
  border-radius: 999px;
  transform: translateX(-50%);
  font: 700 9.5px/14px Poppins, "Segoe UI", sans-serif;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  animation: ayo-pop-in 0.16s ease-out both;
}
.ayo-peek--cap {
  background: #22c55e;
  color: #fff;
}
.ayo-peek--forfeit {
  background: #ef4444;
  color: #fff;
}

/* Footer */
.ayo-foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 4px 12px 4px;
}
.ayo-prompt {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
  color: rgba(245, 247, 244, 0.72);
  text-align: center;
}
.ayo-prompt.is-you {
  color: #fff;
  font-weight: 600;
}
.ayo-prompt.is-warn {
  color: #ffd166;
}
.ayo-hint {
  margin-top: -3px;
  font-size: 10.5px;
  color: rgba(245, 247, 244, 0.55);
  text-align: center;
}
.ayo-dots {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
}
.ayo-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(245, 247, 244, 0.7);
  animation: ayo-dot 1s ease-in-out infinite;
}
.ayo-dots i:nth-child(2) { animation-delay: 0.15s; }
.ayo-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ayo-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.ayo-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.ayo-act {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #e9efe9;
  font: 600 11px/1.2 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
}
.ayo-act--go {
  background: #1fb36a;
  border-color: transparent;
  color: #fff;
}

/* Sheets: moves, how to play, chat */
.ayo-sheet {
  position: absolute;
  inset: 0;
  z-index: 16;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.45);
}
.ayo-sheet__panel {
  width: 100%;
  max-height: 72%;
  display: flex;
  flex-direction: column;
  padding: 10px 14px 28px;
  border-radius: 20px 20px 0 0;
  background: #0f2418;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: ayo-sheet 0.22s ease-out both;
}
@keyframes ayo-sheet {
  from { transform: translateY(40%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.ayo-sheet__panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ayo-sheet__panel h2 {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ayo-sheet__empty {
  margin: 8px 0;
  font-size: 12px;
  color: rgba(245, 247, 244, 0.65);
}
.ayo-movelist {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  scrollbar-width: thin;
}
.ayo-movelist li {
  display: grid;
  grid-template-columns: 28px minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 8px;
  font-size: 12px;
}
.ayo-movelist li:nth-child(odd) {
  background: rgba(255, 255, 255, 0.04);
}
.ayo-movelist span {
  color: rgba(245, 247, 244, 0.5);
  font-variant-numeric: tabular-nums;
}
.ayo-movelist b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ayo-movelist i {
  font-style: normal;
  color: rgba(245, 247, 244, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ayo-movelist em {
  font-style: normal;
  font-weight: 700;
}
.ayo-movelist em.is-cap {
  color: #4ade80;
}
.ayo-movelist em.is-forfeit {
  color: #f87171;
}
.ayo-movelist li.is-last b {
  color: var(--gold);
}
.ayo-rules {
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 247, 244, 0.25) transparent;
}
.ayo-rules ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(245, 247, 244, 0.85);
}
.ayo-rules b {
  color: #fff;
}
.ayo-rules h3 {
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 247, 244, 0.6);
}
.ayo-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: rgba(245, 247, 244, 0.85);
}
.ayo-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ayo-legend__dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #2a1305, #592d11);
  border: 2.5px solid transparent;
}
.ayo-legend__dot.is-play { border-color: var(--ring-play); box-shadow: 0 0 6px rgba(255, 255, 255, 0.4); }
.ayo-legend__dot.is-origin { border-color: var(--ring-origin); }
.ayo-legend__dot.is-skip { border-style: dashed; border-color: var(--ring-skip); }
.ayo-legend__dot.is-trail { border-color: var(--ring-trail); }
.ayo-legend__dot.is-landed { border-color: var(--ring-landed); box-shadow: 0 0 6px rgba(250, 204, 21, 0.5); }
.ayo-legend__dot.is-captured { border-color: var(--ring-captured); box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
.ayo-legend__dot.is-forfeit { border-color: var(--ring-forfeit); }
.ayo-legend__dot.is-peek { border-style: dashed; border-color: var(--ring-landed); }
.ayo-chat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ayo-chat button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #f5f7f4;
  font: 600 12px/1.3 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
}
.ayo-chat button:active {
  background: rgba(31, 179, 106, 0.3);
}

/* Result */
.ayo-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.ayo-modal__panel {
  width: min(100%, 290px);
  padding: 16px 16px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #16352a, #0b1d13);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: ayo-pop-in 0.25s ease-out both;
}
.ayo-modal__icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: -6px auto 2px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}
.ayo-modal__panel h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 700;
}
.ayo-modal__panel > p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(245, 247, 244, 0.72);
}
.ayo-modal__score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.ayo-modal__score span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 10.5px;
  color: rgba(245, 247, 244, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ayo-modal__score b {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ayo-modal__score i {
  font-style: normal;
  font-size: 18px;
  color: rgba(245, 247, 244, 0.4);
}
.ayo-modal__money {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 15px;
  font-weight: 600;
}
.ayo-modal__money.is-loss {
  background: rgba(150, 50, 50, 0.35);
  color: #ffc9c9;
}
.ayo-modal__money.is-win {
  background: rgba(31, 179, 106, 0.22);
  color: #9ff0c4;
}
.ayo-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 600 12.5px/1.2 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
}
.ayo-btn--go {
  margin-bottom: 8px;
  background: #1fb36a;
  font-size: 13.5px;
}
.ayo-modal__follow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 10px;
  font-size: 12px;
  color: rgba(245, 247, 244, 0.75);
}
.ayo-modal__follow span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ayo-chip {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: #1fb36a;
  color: #fff;
  font: 600 12px/1.2 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
}
.ayo-chip.is-on {
  background: rgba(255, 255, 255, 0.12);
}
.ayo-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ayo-empty {
  padding: 24px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .ayo-seed.is-new,
  .ayo-bubble,
  .ayo-pit.is-play::before,
  .ayo-store__pop,
  .ayo-sheet__panel,
  .ayo-modal__panel,
  .ayo-dots i {
    animation: none;
  }
}
