
:root {
  --ludo-size: min(92vmin, 640px);
  --ludo-text: #ffffff;
  --ludo-muted: #e6edf7;
  --ludo-red: #f31313;
  --ludo-red-deep: #a80611;
  --ludo-green: #008f2e;
  --ludo-green-deep: #00641f;
  --ludo-blue: #065fc7;
  --ludo-blue-deep: #003d91;
  --ludo-yellow: #ffd719;
  --ludo-yellow-deep: #c69600;
  --ludo-wood: #b36a19;
  --ludo-wood-dark: #5f2d05;
}

.ludoHome,
.ludoInviteHome,
.ludoResultHome {
  position: fixed;
  inset: 0;
  z-index: 99999;
  direction: rtl;
  color: var(--ludo-text);
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
  background:
    radial-gradient(900px 620px at 50% -10%, rgba(255,255,255,.16), transparent 64%),
    radial-gradient(760px 520px at 112% 108%, rgba(0,143,46,.16), transparent 58%),
    radial-gradient(760px 520px at -12% 108%, rgba(6,95,199,.18), transparent 58%),
    linear-gradient(135deg, #14172a, #0b1020 58%, #070812);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ludoHome {
  overflow: auto;
  padding: 14px 8px 18px;
}

.ludoHome.hideLudo {
  width: 74px;
  height: 64px;
  inset: auto 12px 16px auto;
  overflow: hidden;
  border-radius: 18px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,.42);
}

.ludoHome.hideLudo .ludo-shell,
.ludoHome.hideLudo .ludo-topbar,
.ludoHome.hideLudo .ludo-side-panel {
  display: none;
}

.ludoHome.hideLudo::after {
  content: '🎲';
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 30px;
  background: linear-gradient(180deg, #ffffff, #d6e2ff);
  color: #172033;
}

.ludo-shell {
  width: min(98vw, 1120px);
  margin: 0 auto;
}

.ludo-topbar {
  width: min(96vw, 930px);
  min-height: 60px;
  margin: 8px auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(42, 32, 28, .92), rgba(18, 19, 32, .90));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 34px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.16);
}

.ludo-top-title {
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ludo-top-subtitle {
  font-size: 12px;
  color: var(--ludo-muted);
  margin-top: 3px;
}

.ludo-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ludo-icon-btn,
.ludo-btn,
.ludo-piece {
  appearance: none;
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease, background .18s ease;
}

.ludo-icon-btn {
  width: 44px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

.ludo-icon-btn:hover,
.ludo-btn:hover,
.ludo-piece:hover {
  transform: translateY(-1px);
}

.ludo-icon-btn:active,
.ludo-btn:active,
.ludo-piece:active {
  transform: translateY(1px);
}

.ludo-icon-btn.danger {
  background: rgba(239,68,68,.20);
}

.ludo-game-area {
  display: grid;
  grid-template-columns: minmax(320px, var(--ludo-size)) minmax(250px, 360px);
  justify-content: center;
  align-items: start;
  gap: 16px;
}

#ludo.ludo-board-shell {
  width: var(--ludo-size);
  height: var(--ludo-size);
  margin: 0 auto;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 24px;
  background:
    linear-gradient(145deg, #efaa3a, #a65b13 52%, #612d07);
  box-shadow:
    0 24px 55px rgba(0,0,0,.55),
    inset 0 2px 0 rgba(255,255,255,.42),
    inset 0 -8px 18px rgba(57,25,2,.44);
  border: 4px solid #5f2d05;
  position: relative;
}

#ludo.ludo-board-shell::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 18px;
  border: 3px solid rgba(255,213,99,.95);
  pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(83,36,3,.48);
}

.ludo-board {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  grid-template-rows: repeat(15, 1fr);
  gap: 1px;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 17px;
  overflow: hidden;
  background: #6b3a0b;
  box-shadow:
    inset 0 0 0 4px rgba(45,20,0,.78),
    inset 0 0 0 7px rgba(255,255,255,.38);
  position: relative;
}

.ludo-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(95, 55, 18, .44);
  background: #fff;
}

.ludo-cell::before {
  content: '';
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(255,255,255,.78), transparent 52%, rgba(0,0,0,.05));
}

.ludo-empty {
  background: #faf7ef;
}

.ludo-track {
  background: linear-gradient(145deg, #fffdf7, #eee8dd);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), inset 0 -1px 0 rgba(80,49,15,.12);
}

.ludo-zone-red,
.ludo-zone-green,
.ludo-zone-blue,
.ludo-zone-yellow {
  border-color: rgba(0,0,0,.12);
}

.ludo-zone-red {
  background: linear-gradient(145deg, #ff2b2b, #ed1010 60%, #b60812);
}

.ludo-zone-green {
  background: linear-gradient(145deg, #17b94f, #078d31 60%, #006a23);
}

.ludo-zone-blue {
  background: linear-gradient(145deg, #1576e8, #075fc6 60%, #004099);
}

.ludo-zone-yellow {
  background: linear-gradient(145deg, #ffe95a, #ffd719 62%, #d49d00);
}

.ludo-home-red {
  background: linear-gradient(145deg, #ff2d2d, #ef1515 60%, #b80814);
}

.ludo-home-green {
  background: linear-gradient(145deg, #17b94f, #078d31 60%, #006a23);
}

.ludo-home-blue {
  background: linear-gradient(145deg, #1576e8, #075fc6 60%, #004099);
}

.ludo-home-yellow {
  background: linear-gradient(145deg, #ffe95a, #ffd719 62%, #d49d00);
}

/* white rounded home panels like the reference */
.ludo-zone-red .ludo-home-dot,
.ludo-zone-green .ludo-home-dot,
.ludo-zone-blue .ludo-home-dot,
.ludo-zone-yellow .ludo-home-dot {
  width: 72%;
  height: 72%;
}

.ludo-home-dot {
  width: 68%;
  height: 68%;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.95);
  box-shadow:
    0 4px 9px rgba(0,0,0,.22),
    inset 0 2px 1px rgba(255,255,255,.76),
    inset 0 -3px 5px rgba(0,0,0,.18);
  z-index: 2;
}

.ludo-home-dot-red {
  background: radial-gradient(circle at 32% 25%, #fff, #ff8c8c 18%, #f31313 52%, #a80611 100%);
}

.ludo-home-dot-green {
  background: radial-gradient(circle at 32% 25%, #fff, #93f7af 18%, #049734 52%, #00641f 100%);
}

.ludo-home-dot-blue {
  background: radial-gradient(circle at 32% 25%, #fff, #81bcff 18%, #065fc7 52%, #003d91 100%);
}

.ludo-home-dot-yellow {
  background: radial-gradient(circle at 32% 25%, #fff, #fff08b 18%, #ffd719 52%, #c69600 100%);
}

/* create the white rounded panels in the four homes */
.ludo-zone-red:nth-child(1),
.ludo-zone-green:nth-child(10),
.ludo-zone-blue:nth-child(136),
.ludo-zone-yellow:nth-child(145) {
  position: relative;
}

.ludo-center {
  background: transparent;
  border: 0;
  overflow: visible;
}

.ludo-center::before {
  display: none;
}

.ludo-center-mark {
  position: absolute;
  inset: -1px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 2px 4px rgba(0,0,0,.18);
  transform: rotate(45deg) scale(1.42);
  z-index: 1;
}

.ludo-center-mark .q {
  display: block;
}

.ludo-center-mark .q.red { background: var(--ludo-red); }
.ludo-center-mark .q.green { background: var(--ludo-green); }
.ludo-center-mark .q.yellow { background: var(--ludo-yellow); }
.ludo-center-mark .q.blue { background: var(--ludo-blue); }

.ludo-center-logo {
  display: none;
}

.ludo-safe::after {
  display: none;
}

.ludo-star .ludo-cell-mark {
  position: relative;
  z-index: 4;
  font-size: clamp(15px, 2.5vmin, 24px);
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.9)) drop-shadow(0 2px 1px rgba(0,0,0,.25));
}

.ludo-star-red .ludo-cell-mark { color: var(--ludo-red); }
.ludo-star-green .ludo-cell-mark { color: var(--ludo-green); }
.ludo-star-blue .ludo-cell-mark { color: var(--ludo-blue); }
.ludo-star-yellow .ludo-cell-mark { color: var(--ludo-yellow-deep); }

.ludo-arrow .ludo-cell-mark {
  position: relative;
  z-index: 4;
  font-size: clamp(16px, 2.5vmin, 25px);
  line-height: 1;
  font-weight: 900;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.85)) drop-shadow(0 2px 1px rgba(0,0,0,.20));
}

.ludo-arrow-red .ludo-cell-mark { color: var(--ludo-red); }
.ludo-arrow-green .ludo-cell-mark { color: var(--ludo-green); }
.ludo-arrow-blue .ludo-cell-mark { color: var(--ludo-blue); }
.ludo-arrow-yellow .ludo-cell-mark { color: var(--ludo-yellow-deep); }

.ludo-start {
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,.74),
    inset 0 0 0 5px rgba(70,45,14,.48);
}

.ludo-start-red {
  background: linear-gradient(145deg, #ff2d2d, #ef1515 60%, #b80814);
}

.ludo-start-yellow {
  background: linear-gradient(145deg, #ffe95a, #ffd719 62%, #d49d00);
}

.ludo-piece {
  position: relative;
  width: 86%;
  height: 86%;
  min-width: 22px;
  min-height: 22px;
  max-width: 45px;
  max-height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  cursor: default;
  box-shadow: 0 6px 12px rgba(0,0,0,.30);
  animation: ludoPiecePop .18s ease;
  background: transparent;
}

.ludo-piece-shadow,
.ludo-piece-gloss,
.ludo-piece-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.ludo-piece-shadow {
  inset: 3px;
  opacity: .35;
  filter: blur(6px);
  transform: translateY(2px);
}

.ludo-piece-gloss {
  inset: 4px 6px auto 6px;
  height: 43%;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.18));
  border-radius: 50% 50% 45% 45%;
  z-index: 2;
}

.ludo-piece-core {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(10px, 1.9vmin, 15px);
  font-weight: 900;
  z-index: 3;
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}

.ludo-piece-red {
  background: radial-gradient(circle at 34% 27%, #fff, #ff7979 20%, #f31313 55%, #8f0712 100%);
  border: 2px solid rgba(255,255,255,.80);
}

.ludo-piece-yellow {
  background: radial-gradient(circle at 34% 27%, #fff, #fff06e 20%, #ffd719 55%, #b77900 100%);
  border: 2px solid rgba(255,255,255,.80);
}

.ludo-piece-red .ludo-piece-shadow { background: rgba(100, 0, 14, .7); }
.ludo-piece-yellow .ludo-piece-shadow { background: rgba(140, 95, 0, .7); }
.ludo-piece-red .ludo-piece-core { color: #fff; }
.ludo-piece-yellow .ludo-piece-core { color: #2d2000; }

.ludo-piece.can-move {
  cursor: pointer;
  outline: 3px solid rgba(255,255,255,.96);
  animation: ludoPiecePulse .75s ease-in-out infinite alternate;
}

.ludo-cell .ludo-piece:nth-of-type(1) { transform: translate(-13%, -13%); }
.ludo-cell .ludo-piece:nth-of-type(2) { transform: translate(13%, -13%); }
.ludo-cell .ludo-piece:nth-of-type(3) { transform: translate(-13%, 13%); }
.ludo-cell .ludo-piece:nth-of-type(4) { transform: translate(13%, 13%); }

.ludo-stack-label {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 8;
  min-width: 19px;
  padding: 0 4px;
  border-radius: 10px;
  text-align: center;
  line-height: 16px;
  color: #fff;
  background: rgba(0,0,0,.78);
  font-size: 10px;
  font-weight: 900;
}

@keyframes ludoPiecePulse {
  from { box-shadow: 0 0 8px 2px rgba(255,255,255,.85), 0 7px 15px rgba(0,0,0,.32); }
  to { box-shadow: 0 0 16px 7px rgba(34,211,238,.95), 0 7px 15px rgba(0,0,0,.32); transform: scale(1.08); }
}

@keyframes ludoPiecePop {
  from { opacity: .18; transform: scale(.78); }
  to { opacity: 1; transform: scale(1); }
}

.ludo-side-panel {
  min-height: 420px;
  border-radius: 24px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(180deg, rgba(30,34,58,.92), rgba(12,16,31,.88));
  box-shadow: 0 16px 38px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.12);
}

.ludo-side-section + .ludo-side-section {
  margin-top: 12px;
}

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

.ludo-section-title {
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 8px;
}

.ludo-turn-badge {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--ludo-muted);
  white-space: nowrap;
}

.ludo-turn-badge[data-color="red"] {
  color: #fff;
  background: rgba(243,19,19,.34);
}

.ludo-turn-badge[data-color="yellow"] {
  color: #221600;
  background: rgba(255,215,25,.88);
}

.ludo-player-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 11px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  overflow: hidden;
}

.ludo-player-card-red { box-shadow: inset 4px 0 0 rgba(243,19,19,.82); }
.ludo-player-card-yellow { box-shadow: inset 4px 0 0 rgba(255,215,25,.92); }

.ludo-player-card.is-turn {
  border-color: rgba(34,211,238,.65);
  box-shadow: 0 0 0 3px rgba(34,211,238,.12), 0 10px 24px rgba(0,0,0,.24), inset 4px 0 0 rgba(34,211,238,.92);
}

.ludo-player-ribbon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}

.ludo-avatar {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(255,255,255,.1) center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 6px 14px rgba(0,0,0,.30);
}

.ludo-avatar.large {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.ludo-player-info {
  min-width: 0;
}

.ludo-player-head {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.ludo-player-name {
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  unicode-bidi: plaintext;
}

.ludo-player-turn {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #00131b;
  background: linear-gradient(180deg, #67f0ff, #22d3ee);
  font-weight: 900;
}

.ludo-player-meta {
  font-size: 11px;
  color: var(--ludo-muted);
  margin-top: 4px;
}

.ludo-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
  margin-top: 7px;
}

.ludo-progress > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
}

.ludo-dice-box {
  display: grid;
  place-items: center;
  margin: 4px auto 0;
  width: 128px;
  min-height: 138px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(226,232,240,.96));
  color: #171b2f;
  box-shadow: 0 16px 32px rgba(0,0,0,.32), inset 0 1px 0 #fff;
  font-weight: 900;
  user-select: none;
  padding: 14px 12px;
  box-sizing: border-box;
}

.ludo-dice-box.is-rolling {
  animation: ludoDiceShake .46s ease-in-out infinite;
}

.ludo-dice-face {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #edf2fb 75%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -2px 3px rgba(0,0,0,.06), 0 6px 14px rgba(0,0,0,.15);
}

.pip {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: transparent;
}

.pip.on {
  background: radial-gradient(circle at 32% 32%, #495670, #111827 72%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.24), 0 1px 0 rgba(255,255,255,.2);
}

.pip-tl { top: 14px; left: 14px; }
.pip-tr { top: 14px; right: 14px; }
.pip-ml { top: calc(50% - 7px); left: 14px; }
.pip-mr { top: calc(50% - 7px); right: 14px; }
.pip-c  { top: calc(50% - 7px); left: calc(50% - 7px); }
.pip-bl { bottom: 14px; left: 14px; }
.pip-br { bottom: 14px; right: 14px; }

.ludo-dice-caption {
  margin-top: 10px;
  font-size: 12px;
  color: #374151;
  text-align: center;
}

@keyframes ludoDiceShake {
  0%, 100% { transform: rotate(0) scale(1); }
  20% { transform: rotate(-10deg) scale(1.05); }
  40% { transform: rotate(8deg) scale(.98); }
  60% { transform: rotate(-6deg) scale(1.03); }
  80% { transform: rotate(5deg) scale(.99); }
}

.ludo-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.ludo-btn {
  min-width: 102px;
  padding: 11px 14px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(180deg, #5ea3ff, #3b82f6);
  box-shadow: 0 8px 18px rgba(59,130,246,.32);
}

.ludo-btn.green {
  background: linear-gradient(180deg, #44d37b, #16a34a);
  box-shadow: 0 8px 18px rgba(34,197,94,.30);
}

.ludo-btn.red {
  background: linear-gradient(180deg, #ff6666, #dc2626);
  box-shadow: 0 8px 18px rgba(239,68,68,.30);
}

.ludo-btn.ghost {
  color: #fff;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}

.ludo-btn:disabled {
  opacity: .46;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ludo-help,
.ludo-history {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--ludo-muted);
  font-size: 12px;
  line-height: 1.78;
  padding: 11px;
}

.ludo-history {
  max-height: 180px;
  overflow: auto;
}

.ludo-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ludo-history-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 8px;
  align-items: start;
}

.ludo-history-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  background: linear-gradient(180deg, #67f0ff, #22d3ee);
}

.ludo-empty-note {
  color: #b9c3d8;
}

.ludoInviteHome,
.ludoResultHome {
  display: grid;
  place-items: center;
  padding: 16px;
}

.ludoInviteCard,
.ludoResultCard {
  width: min(92vw, 450px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(33,39,67,.94), rgba(18,22,40,.90));
  box-shadow: 0 18px 46px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.14);
  padding: 20px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ludoInviteCard::before,
.ludoResultCard::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #eab308, #ef4444, #3b82f6);
}

.ludoInviteDecor {
  width: 100%;
  height: 74px;
  margin: 10px 0 2px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 50%, rgba(239,68,68,.28), transparent 20%),
    radial-gradient(circle at 38% 50%, rgba(34,197,94,.24), transparent 20%),
    radial-gradient(circle at 62% 50%, rgba(250,204,21,.22), transparent 20%),
    radial-gradient(circle at 85% 50%, rgba(59,130,246,.22), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.ludoInviteTitle,
.ludoResultTitle {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.ludoInviteUser {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 11px 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
}

.ludoInviteText,
.ludoResultText {
  color: var(--ludo-muted);
  font-size: 13px;
  line-height: 1.78;
}

@media (max-width: 920px) {
  .ludo-game-area {
    grid-template-columns: 1fr;
  }

  .ludo-side-panel,
  .ludo-topbar {
    width: min(96vw, var(--ludo-size));
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 460px) {
  .ludoHome {
    padding: 6px 0 12px;
  }

  .ludo-topbar {
    width: min(100vw, 100%);
    border-radius: 0 0 18px 18px;
    margin-top: 0;
  }

  #ludo.ludo-board-shell {
    width: min(96vw, 560px);
    height: min(96vw, 560px);
    padding: 8px;
    border-radius: 22px;
  }

  .ludo-board {
    padding: 4px;
    gap: 1px;
    border-radius: 15px;
  }

  .ludo-cell {
    border-radius: 2px;
  }

  .ludo-piece {
    min-width: 16px;
    min-height: 16px;
    border-width: 1px;
  }

  .ludo-dice-box {
    width: 112px;
    min-height: 126px;
  }

  .ludo-dice-face {
    width: 82px;
    height: 82px;
  }

  .pip {
    width: 12px;
    height: 12px;
  }
}
