/* In-phone Draughts — warm wooden table, maple and walnut board, ivory and ebony pieces */

.wondalife-phone-screen.is-app:has(.dr-app) {
  background: #120a05;
}
.wondalife-phone-screen.is-app:has(.dr-app) .wondalife-phone-status {
  color: #fbf3e6;
}
.wondalife-phone-screen.is-app:has(.dr-app) .wondalife-phone-signal::before {
  background: #fbf3e6;
  box-shadow: 4px 0 0 #fbf3e6, 8px -2px 0 #fbf3e6, 12px -4px 0 #fbf3e6;
}
.wondalife-phone-screen.is-app:has(.dr-app) .wondalife-phone-battery {
  border-color: #fbf3e6;
}
.wondalife-phone-screen.is-app:has(.dr-app) .wondalife-phone-battery::before,
.wondalife-phone-screen.is-app:has(.dr-app) .wondalife-phone-battery::after {
  background: #fbf3e6;
}
.wondalife-phone-screen.is-app:has(.dr-app) .wondalife-phone-homebar {
  background: rgba(251, 243, 230, 0.35);
}
.wondalife-phone-screen.is-app .wondalife-phone-body:has(.dr-app) {
  padding: 0 0 22px;
  overflow: hidden;
  height: 100%;
}

.dr-app {
  --gold: #f2c94c;
  --sq-light: #f3dfb4;
  --sq-dark: #94592a;
  --ring-target: rgba(255, 255, 255, 0.9);
  --ring-jump: #4ade80;
  --ring-must: #fb923c;
  --ring-last: rgba(255, 214, 90, 0.55);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
  background:
    radial-gradient(120% 70% at 50% 0%, #3a2413 0%, #1c1009 55%, #0d0704 100%);
  color: #fbf3e6;
  font-family: Poppins, "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  z-index: 4;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Header */
.dr-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px;
  flex-shrink: 0;
}
.dr-head__title {
  min-width: 0;
}
.dr-head h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-top: 0.4em;
  margin-top: -0.4em;
}
.dr-head__icon {
  display: inline-block;
  width: 1.55em;
  height: 1.55em;
  margin: -0.4em 0 0 -0.15em;
  vertical-align: -0.42em;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.45));
}
.dr-head p {
  margin: 1px 0 0;
  font-size: 10.5px;
  color: rgba(251, 243, 230, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dr-head__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.dr-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;
}
.dr-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: #f4ece0;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  touch-action: none;
}
.dr-hold span {
  position: relative;
}
.dr-hold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #c62f3d, #e5484d);
  transform: scaleX(0);
  transform-origin: left center;
}
.dr-hold.is-holding::before {
  animation: dr-hold 1.2s linear both;
  animation-delay: var(--hold-delay, 0ms);
}
@keyframes dr-hold {
  to { transform: scaleX(1); }
}
.dr-live {
  font-size: 10.5px;
  font-weight: 600;
  color: #ff8a8a;
}

/* Players */
.dr-players {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  padding: 0 10px 6px;
  flex-shrink: 0;
}
.dr-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;
}
.dr-player--right {
  flex-direction: row-reverse;
  padding: 5px 5px 5px 12px;
  text-align: right;
}
.dr-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);
}
.dr-player.is-winner {
  border-color: rgba(74, 222, 128, 0.8);
  background: rgba(74, 222, 128, 0.08);
}
.dr-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);
}
.dr-player.is-active .dr-player__av {
  background: conic-gradient(var(--gold) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.14) 0);
}
.dr-player__av img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(180deg, #f1e4cf, #cdb894);
  border: 2px solid #1c1009;
}
.dr-follow {
  position: absolute;
  top: 31px;
  left: 31px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 2px solid #1c1009;
  border-radius: 999px;
  background: #1fb36a;
  color: #fff;
  font: 700 11px/1 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
}
.dr-player--right .dr-follow {
  left: auto;
  right: 31px;
}
.dr-follow.is-on {
  background: #f2c94c;
  color: #1c1606;
  font-size: 9px;
}
.dr-player__txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.dr-player__txt strong {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dr-player__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(251, 243, 230, 0.72);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dr-player--right .dr-player__meta {
  justify-content: flex-end;
}
.dr-player__meta em {
  margin-left: 3px;
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
}
.dr-player__meta em.is-low {
  color: #ff7a7a;
}
.dr-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: dr-bubble 2.6s ease-out both;
  pointer-events: none;
}
@keyframes dr-bubble {
  0% { opacity: 0; transform: scale(0.3); }
  12% { opacity: 1; transform: scale(1.25); }
  20% { transform: scale(1); }
  80% { opacity: 1; transform: translateY(-4px); }
  100% { opacity: 0; transform: translateY(-12px) scale(0.9); }
}

/* Mini discs: colour key in the player card, and the stack of pieces each side has taken */
.dr-mini {
  display: inline-block;
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.45);
}
.dr-mini--w {
  background: radial-gradient(circle at 38% 32%, #fff 0%, #f1e4c9 55%, #cdb38a 100%);
}
.dr-mini--b {
  background: radial-gradient(circle at 38% 32%, #6b6b6b 0%, #262626 55%, #0b0b0b 100%);
  box-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

/* Board stage: the board takes the largest square that fits between the two side rows. */
.dr-stage {
  --board: min(100cqw - 16px, 100cqh - 60px);
  flex: 1;
  min-height: 0;
  container-type: size;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
}
.dr-side {
  width: var(--board);
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dr-side__cue {
  white-space: nowrap;
}
.dr-caps {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 16px;
}
.dr-caps .dr-mini {
  width: 13px;
  height: 13px;
  margin-right: -5px;
}
.dr-caps b {
  margin-left: 10px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(251, 243, 230, 0.8);
  font-variant-numeric: tabular-nums;
}

.dr-board {
  --n: 10;
  position: relative;
  width: var(--board);
  height: var(--board);
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  grid-template-rows: repeat(var(--n), 1fr);
  border-radius: 6px;
  background: var(--sq-light);
  box-shadow:
    0 0 0 5px #4a2a12,
    0 0 0 6px #6d4220,
    0 0 0 7px rgba(0, 0, 0, 0.5),
    0 16px 32px rgba(0, 0, 0, 0.55);
  touch-action: manipulation;
}
.dr-sq {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  margin: 0;
  font: inherit;
  color: inherit;
}
.dr-sq.is-light {
  background: linear-gradient(135deg, #f7e7c3 0%, #edd6a6 100%);
}
.dr-sq.is-dark {
  background: linear-gradient(135deg, #a3672f 0%, #85501f 100%);
  cursor: default;
}
.dr-sq.is-mine {
  cursor: pointer;
}
.dr-sq::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dr-sq.is-last::before {
  background: var(--ring-last);
}
.dr-sq.is-trail::before {
  background: rgba(255, 214, 90, 0.28);
}
.dr-sq.is-selected::before {
  background: rgba(255, 168, 20, 0.7);
}
.dr-sq.is-ghost::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 120, 120, 0.85);
  pointer-events: none;
}
.dr-sq.is-target,
.dr-sq.is-jump {
  cursor: pointer;
}
.dr-sq.is-target::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32%;
  height: 32%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.dr-sq.is-jump::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 3px solid var(--ring-jump);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6), inset 0 0 8px rgba(74, 222, 128, 0.35);
  animation: dr-jump 1s ease-in-out infinite;
  pointer-events: none;
}
@keyframes dr-jump {
  50% { transform: scale(0.88); }
}
.dr-num {
  position: absolute;
  top: 1px;
  left: 2px;
  z-index: 1;
  font-style: normal;
  font-size: 6.5px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 236, 200, 0.42);
  pointer-events: none;
}
.dr-board--8 .dr-num {
  font-size: 7.5px;
}

/* Pieces: carved discs with a groove ring; kings are a double stack with a gold crown. */
.dr-pc {
  position: absolute;
  inset: 11%;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.dr-pc--w {
  background:
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(150, 120, 75, 0.55) 54%, transparent 60%),
    radial-gradient(circle at 36% 30%, #ffffff 0%, #f4e9d2 45%, #d8c39b 100%);
  box-shadow:
    0 2.5px 0 #a88c5f,
    0 3.5px 4px rgba(0, 0, 0, 0.45),
    inset 0 -2px 3px rgba(120, 90, 40, 0.35);
}
.dr-pc--b {
  background:
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(255, 255, 255, 0.16) 54%, transparent 60%),
    radial-gradient(circle at 36% 30%, #6e6e6e 0%, #2b2b2b 45%, #0c0c0c 100%);
  box-shadow:
    0 2.5px 0 #000,
    0 3.5px 4px rgba(0, 0, 0, 0.55),
    inset 0 1px 2px rgba(255, 255, 255, 0.18);
}
.dr-pc.is-king.dr-pc--w {
  box-shadow:
    0 2.5px 0 #a88c5f,
    0 3px 0 #ead9b6,
    0 5px 0 #a88c5f,
    0 6px 5px rgba(0, 0, 0, 0.45);
}
.dr-pc.is-king.dr-pc--b {
  box-shadow:
    0 2.5px 0 #000,
    0 3px 0 #333,
    0 5px 0 #000,
    0 6px 5px rgba(0, 0, 0, 0.55);
}
.dr-pc.is-king {
  transform: translateY(-2px);
}
.dr-crown {
  display: block;
  width: 58%;
  height: 58%;
}
.dr-crown svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #f5c518;
  stroke: #8a5a05;
  stroke-width: 1.3;
  stroke-linejoin: round;
  filter: drop-shadow(0 0.5px 0 rgba(255, 255, 255, 0.5));
}
.dr-pc.is-dim {
  opacity: 0.38;
}
.dr-pc.is-going {
  animation: dr-going 0.38s ease-in both;
}
@keyframes dr-going {
  0% { opacity: 0.38; transform: scale(1); }
  40% { opacity: 0.6; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(0.2) rotate(30deg); }
}
.dr-pc.is-crowned {
  animation: dr-crowned 0.65s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes dr-crowned {
  0% { transform: translateY(-2px) scale(1); filter: brightness(1); }
  35% { transform: translateY(-6px) scale(1.25); filter: brightness(1.4) drop-shadow(0 0 8px rgba(245, 197, 24, 0.9)); }
  100% { transform: translateY(-2px) scale(1); filter: brightness(1); }
}
.dr-sq.is-must .dr-pc {
  animation: dr-must 1.1s ease-in-out infinite;
}
.dr-sq.is-must::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 2.5px solid var(--ring-must);
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.8);
  animation: dr-jump 1.1s ease-in-out infinite;
  pointer-events: none;
}
@keyframes dr-must {
  50% { transform: translateY(-2px); }
}
.dr-sq.is-nope .dr-pc {
  animation: dr-nope 0.42s ease-in-out both;
}
.dr-sq.is-nope::before {
  background: rgba(239, 68, 68, 0.45);
}
@keyframes dr-nope {
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}

/* The moving piece flies over the board, one hop at a time. */
.dr-fly {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  animation: dr-slide var(--hop-ms, 230ms) cubic-bezier(0.25, 0.8, 0.35, 1) both;
}
.dr-fly.is-hop {
  animation-name: dr-hop;
}
.dr-fly .dr-pc {
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.4));
}
@keyframes dr-slide {
  from { transform: translate(calc(var(--dx) * 100%), calc(var(--dy) * 100%)); }
  to { transform: none; }
}
@keyframes dr-hop {
  0% { transform: translate(calc(var(--dx) * 100%), calc(var(--dy) * 100%)) scale(1); }
  50% { transform: translate(calc(var(--dx) * 50%), calc(var(--dy) * 50%)) scale(1.3); }
  100% { transform: none; }
}

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

/* Sheets: moves, rules, chat */
.dr-sheet {
  position: absolute;
  inset: 0;
  z-index: 16;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.45);
}
.dr-sheet__panel {
  width: 100%;
  max-height: 72%;
  display: flex;
  flex-direction: column;
  padding: 10px 14px 28px;
  border-radius: 20px 20px 0 0;
  background: #24160b;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: dr-sheet 0.22s ease-out both;
}
@keyframes dr-sheet {
  from { transform: translateY(40%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.dr-sheet__panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.dr-sheet__panel h2 {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dr-sheet__empty,
.dr-sheet__note {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(251, 243, 230, 0.6);
}
.dr-sheet__empty {
  font-size: 12px;
}
.dr-movelist {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  scrollbar-width: thin;
}
.dr-movelist li {
  display: grid;
  grid-template-columns: 34px 1fr 1fr;
  align-items: center;
  padding: 3px 4px;
  border-radius: 8px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.dr-movelist li:nth-child(odd) {
  background: rgba(255, 255, 255, 0.04);
}
.dr-movelist span {
  color: rgba(251, 243, 230, 0.5);
}
.dr-movelist b {
  font-weight: 600;
}
.dr-movelist b.is-last {
  color: var(--gold);
}
.dr-movelist em {
  font-style: normal;
  font-weight: 700;
  color: #4ade80;
}
.dr-rules {
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 243, 230, 0.25) transparent;
}
.dr-rules ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(251, 243, 230, 0.85);
}
.dr-rules b {
  color: #fff;
}
.dr-rules h3 {
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(251, 243, 230, 0.6);
}
.dr-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: rgba(251, 243, 230, 0.85);
}
.dr-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dr-legend__dot {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(135deg, #a3672f 0%, #85501f 100%);
}
.dr-legend__dot::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.dr-legend__dot.is-must::after { inset: 2px; border: 2px solid var(--ring-must); }
.dr-legend__dot.is-target::after { inset: 7px; background: rgba(255, 255, 255, 0.6); }
.dr-legend__dot.is-jump::after { inset: 3px; border: 2.5px solid var(--ring-jump); }
.dr-legend__dot.is-last { box-shadow: inset 0 0 0 20px var(--ring-last); }
.dr-legend__dot.is-ghost::after { inset: 4px; border: 2px dashed rgba(255, 120, 120, 0.85); }
.dr-chat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dr-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: #fbf3e6;
  font: 600 12px/1.3 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
}
.dr-chat button:active {
  background: rgba(31, 179, 106, 0.3);
}

/* Result */
.dr-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);
}
.dr-modal__panel {
  width: min(100%, 290px);
  padding: 18px 16px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #3a2413, #1c1009);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: dr-pop 0.25s ease-out both;
}
.dr-modal__icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: -6px auto 4px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}
.dr-modal__panel h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 700;
}
.dr-modal__panel p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(251, 243, 230, 0.72);
}
.dr-modal__score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.dr-modal__score span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 10.5px;
  color: rgba(251, 243, 230, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dr-modal__score b {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.dr-modal__score i {
  font-style: normal;
  font-size: 18px;
  color: rgba(251, 243, 230, 0.4);
}
.dr-modal__money {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 15px;
  font-weight: 600;
}
.dr-modal__money.is-loss {
  background: rgba(150, 50, 50, 0.35);
  color: #ffc9c9;
}
.dr-modal__money.is-win {
  background: rgba(31, 179, 106, 0.22);
  color: #9ff0c4;
}
.dr-modal__follow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 10px;
  font-size: 12px;
  color: rgba(251, 243, 230, 0.75);
}
.dr-modal__follow span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dr-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;
}
.dr-chip.is-on {
  background: rgba(255, 255, 255, 0.12);
}
.dr-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;
}
.dr-btn--go {
  margin-bottom: 8px;
  background: #1fb36a;
  font-size: 13.5px;
}
.dr-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

@media (prefers-reduced-motion: reduce) {
  .dr-fly,
  .dr-bubble,
  .dr-pc.is-going,
  .dr-pc.is-crowned,
  .dr-sq.is-must .dr-pc,
  .dr-sq.is-must::after,
  .dr-sq.is-jump::after,
  .dr-sheet__panel,
  .dr-modal__panel {
    animation: none;
  }
}
