:root {
  --ink: #12201d;
  --muted: #64746d;
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(29, 59, 50, 0.14);
  --green: #138360;
  --teal: #1a9ca4;
  --blue: #2f66c9;
  --gold: #e0a326;
  --coral: #d95f49;
  --violet: #6946a8;
  --deep: #0d2c2a;
  --shadow: 0 22px 55px rgba(18, 32, 29, 0.14);
}

/* Premium SCOW Park board center: replaces flat emoji props with layered CSS assets. */
.city-plaza {
  align-content: start !important;
  justify-items: center !important;
  gap: 4px !important;
  padding: clamp(10px, 1.5vw, 18px) !important;
  border: 3px solid rgba(255, 255, 255, 0.82) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(ellipse at 50% 26%, rgba(255, 255, 255, 0.98), rgba(236, 247, 255, 0.88) 36%, rgba(200, 219, 225, 0.58) 100%),
    linear-gradient(180deg, #f9fdff, #ccdde3) !important;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.7),
    inset 0 -20px 34px rgba(23, 43, 50, 0.14),
    0 20px 45px rgba(15, 35, 42, 0.2) !important;
}

.city-plaza::before {
  inset: 16% 10% 10% !important;
  border: 0 !important;
  border-radius: 999px !important;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(34, 130, 73, 0.18), transparent 55%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent) !important;
  box-shadow: inset 0 0 42px rgba(24, 50, 61, 0.1) !important;
}

.city-plaza::after,
.arena-orbit,
.skyline {
  display: none !important;
}

.city-title {
  z-index: 9 !important;
  margin-top: 0 !important;
  font-size: clamp(1rem, 2.35vw, 2rem) !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
  color: #10141a !important;
  text-shadow:
    0 3px 0 rgba(255, 255, 255, 0.82),
    0 9px 14px rgba(23, 43, 50, 0.16) !important;
}

.city-subtitle {
  z-index: 9 !important;
  margin-top: auto !important;
  color: rgba(15, 30, 36, 0.68) !important;
  font-size: clamp(0.52rem, 1.2vw, 0.78rem) !important;
}

.city-plaza .trophy-stage {
  z-index: 12 !important;
  width: clamp(48px, 7vw, 86px) !important;
  height: clamp(38px, 5.6vw, 72px) !important;
  margin-top: -2px;
}

.city-plaza .trophy-base {
  display: grid !important;
  width: clamp(56px, 8vw, 94px) !important;
  height: clamp(16px, 2.2vw, 24px) !important;
  place-items: center !important;
  color: #fff !important;
  border: 2px solid #f4a51f !important;
  background: linear-gradient(180deg, #744020, #2a160d) !important;
  font-size: clamp(0.46rem, 1vw, 0.72rem) !important;
  font-weight: 950 !important;
  text-transform: none;
}

.scow-park-center,
.scow-park-center * {
  box-sizing: border-box;
}

.scow-park-center {
  position: absolute !important;
  left: 7% !important;
  right: 7% !important;
  top: 24% !important;
  bottom: 9% !important;
  z-index: 5 !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 48% / 42% !important;
  background:
    radial-gradient(circle at 50% 40%, rgba(155, 236, 129, 0.98) 0 20%, transparent 21%),
    radial-gradient(circle at 36% 28%, rgba(255, 121, 198, 0.55) 0 4%, transparent 6%),
    radial-gradient(circle at 64% 30%, rgba(255, 121, 198, 0.48) 0 4%, transparent 6%),
    radial-gradient(ellipse at 50% 46%, #76d864 0 32%, #4db659 33% 48%, #2f343b 49% 63%, #f2f4f2 64% 68%, transparent 69%),
    linear-gradient(180deg, #dff7de, #98d28b) !important;
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.58),
    inset 0 -28px 48px rgba(15, 35, 42, 0.2),
    0 22px 36px rgba(15, 35, 42, 0.24) !important;
  transform: perspective(900px) rotateX(8deg);
}

.scow-road-ring {
  position: absolute;
  inset: 14% 8%;
  border: clamp(14px, 3vw, 30px) solid #343840;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.62),
    0 0 0 4px rgba(255, 255, 255, 0.72),
    0 18px 26px rgba(10, 21, 28, 0.22);
}

.scow-road-ring::before {
  position: absolute;
  inset: calc(clamp(14px, 3vw, 30px) * -0.64);
  content: "";
  border: 2px dashed rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  animation: scowLaneMove 7s linear infinite;
}

.scow-road-inner {
  position: absolute;
  inset: 30% 25%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(236, 226, 178, 0.42), rgba(255, 255, 255, 0.12));
  border: 2px solid rgba(255, 255, 255, 0.42);
}

@keyframes scowLaneMove {
  to { transform: rotate(360deg); }
}

.scow-path {
  position: absolute;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(236, 226, 178, 0), #f3dfb0, rgba(236, 226, 178, 0));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.path-a {
  left: 28%;
  top: 52%;
  width: 43%;
  transform: rotate(-22deg);
}

.path-b {
  left: 30%;
  top: 42%;
  width: 38%;
  transform: rotate(25deg);
}

.scow-pond {
  position: absolute;
  right: 28%;
  bottom: 18%;
  width: 23%;
  height: 18%;
  border-radius: 54% 46% 58% 42%;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.74), transparent 12%),
    linear-gradient(145deg, #5de8ff, #0989cc 68%, #076c9f);
  box-shadow:
    inset 0 -8px 16px rgba(0, 46, 86, 0.24),
    0 0 0 4px rgba(255, 255, 255, 0.56),
    0 8px 16px rgba(0, 82, 120, 0.24);
  animation: scowWater 2s ease-in-out infinite alternate;
}

.scow-fountain {
  position: absolute;
  left: 46%;
  top: 36%;
  width: 12%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #e7ffff 0 16%, #73e4ff 17% 43%, #078ac9 44% 66%, #d9f8ff 67%);
  box-shadow:
    inset 0 -8px 12px rgba(0, 65, 112, 0.28),
    0 0 0 4px rgba(255, 255, 255, 0.58),
    0 10px 18px rgba(0, 73, 118, 0.25);
}

.scow-fountain i,
.scow-fountain b {
  position: absolute;
  left: 50%;
  bottom: 54%;
  display: block;
  width: 8%;
  height: 52%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(77, 220, 255, 0.18));
  transform-origin: bottom;
  animation: scowSpray 1.1s ease-in-out infinite alternate;
}

.scow-fountain i { transform: translateX(-50%) rotate(-18deg); }
.scow-fountain b { transform: translateX(-50%) rotate(18deg); animation-delay: -0.35s; }

@keyframes scowWater {
  to { filter: brightness(1.16) saturate(1.15); transform: scale(1.02); }
}

@keyframes scowSpray {
  to { height: 72%; opacity: 0.55; }
}

.scow-sign {
  position: absolute;
  left: 42%;
  top: 53%;
  z-index: 8;
  display: grid;
  width: 18%;
  height: 13%;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #26313a, #111920);
  box-shadow: 0 10px 14px rgba(8, 18, 22, 0.28);
  font-size: clamp(0.42rem, 1.08vw, 0.84rem);
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
}

.scow-car {
  position: absolute;
  z-index: 7;
  width: clamp(18px, 4.4vw, 38px);
  height: clamp(10px, 2.35vw, 20px);
  border-radius: 45% 38% 34% 34%;
  background: var(--car, #e94135);
  box-shadow:
    inset 0 4px 5px rgba(255, 255, 255, 0.34),
    inset 0 -5px 5px rgba(0, 0, 0, 0.22),
    0 6px 8px rgba(0, 0, 0, 0.28);
  animation: scowCarDrive 4.8s ease-in-out infinite alternate;
}

.scow-car::before {
  position: absolute;
  left: 28%;
  top: 15%;
  width: 42%;
  height: 42%;
  content: "";
  border-radius: 45% 45% 26% 26%;
  background: linear-gradient(135deg, #eaffff, #356783);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.scow-car::after {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -16%;
  height: 34%;
  content: "";
  background:
    radial-gradient(circle at 12% 50%, #111 0 22%, transparent 24%),
    radial-gradient(circle at 88% 50%, #111 0 22%, transparent 24%);
}

.scow-car i {
  position: absolute;
  right: 7%;
  top: 35%;
  display: block;
  width: 14%;
  height: 14%;
  border-radius: 50%;
  background: rgba(255, 246, 178, 0.95);
  box-shadow: 0 0 7px rgba(255, 237, 128, 0.9);
}

.car-red { --car: linear-gradient(180deg, #ff5b48, #bd261e); left: 20%; top: 35%; transform: rotate(-19deg); }
.car-blue { --car: linear-gradient(180deg, #35a9ff, #0a4fa5); left: 34%; top: 21%; transform: rotate(12deg); animation-delay: -1.2s; }
.car-yellow { --car: linear-gradient(180deg, #ffd84b, #d57a00); right: 24%; top: 31%; transform: rotate(-16deg); animation-delay: -2s; }
.car-purple { --car: linear-gradient(180deg, #a66bff, #5d24b7); right: 22%; bottom: 24%; transform: rotate(-20deg); animation-delay: -3.3s; }

@keyframes scowCarDrive {
  to { translate: 4px -3px; filter: brightness(1.12); }
}

.scow-tree {
  position: absolute;
  z-index: 6;
  width: clamp(18px, 4.5vw, 44px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, #d7ff93 0 12%, transparent 13%),
    radial-gradient(circle at 48% 42%, #38b64e 0 42%, #13742f 74%);
  box-shadow:
    inset -5px -8px 8px rgba(5, 67, 26, 0.24),
    0 9px 13px rgba(17, 80, 35, 0.24);
  animation: scowTreeBreathe 2.5s ease-in-out infinite alternate;
}

.scow-tree b {
  position: absolute;
  left: 44%;
  bottom: -17%;
  width: 13%;
  height: 32%;
  border-radius: 4px;
  background: linear-gradient(180deg, #945b24, #5f3516);
}

.scow-tree::before,
.scow-tree::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: inherit;
}

.scow-tree::before { left: -18%; top: 20%; width: 62%; height: 62%; }
.scow-tree::after { right: -12%; top: 14%; width: 60%; height: 60%; }
.scow-tree.t1 { left: 37%; top: 27%; }
.scow-tree.t2 { left: 55%; top: 26%; animation-delay: -0.4s; }
.scow-tree.t3 { left: 27%; top: 47%; animation-delay: -0.9s; }
.scow-tree.t4 { right: 31%; top: 50%; animation-delay: -1.3s; }
.scow-tree.t5 { left: 43%; bottom: 18%; animation-delay: -1.8s; }
.scow-tree.t6 { right: 42%; bottom: 27%; animation-delay: -2.1s; }

@keyframes scowTreeBreathe {
  to { transform: translateY(-2px) scale(1.03); filter: brightness(1.05); }
}

.scow-bench {
  position: absolute;
  z-index: 7;
  width: clamp(24px, 5vw, 48px);
  height: clamp(7px, 1.5vw, 14px);
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, #b96b2d 0 18%, #7e441d 19% 25%);
  box-shadow: 0 5px 7px rgba(58, 31, 17, 0.28);
}

.scow-bench::before,
.scow-bench::after {
  position: absolute;
  bottom: -38%;
  width: 10%;
  height: 55%;
  content: "";
  background: #4b2c18;
}

.scow-bench::before { left: 18%; }
.scow-bench::after { right: 18%; }
.scow-bench.b1 { left: 32%; top: 55%; transform: rotate(-10deg); }
.scow-bench.b2 { right: 29%; top: 44%; transform: rotate(13deg); }

.scow-lamp {
  position: absolute;
  z-index: 8;
  width: 4px;
  height: clamp(20px, 4vw, 38px);
  border-radius: 999px;
  background: linear-gradient(180deg, #1c2329, #050709);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.24);
}

.scow-lamp::before {
  position: absolute;
  left: 50%;
  top: -22%;
  width: clamp(8px, 1.6vw, 15px);
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, #fff9b9 0 28%, #ffd04d 45%, rgba(255, 208, 77, 0.05) 72%);
  box-shadow: 0 0 13px rgba(255, 221, 100, 0.82);
  transform: translateX(-50%);
}

.scow-lamp.l1 { left: 35%; top: 39%; }
.scow-lamp.l2 { right: 36%; top: 40%; }
.scow-lamp.l3 { left: 46%; bottom: 18%; }
.scow-lamp.l4 { right: 45%; top: 27%; }

.scow-flower {
  position: absolute;
  z-index: 6;
  width: clamp(32px, 7vw, 74px);
  height: clamp(18px, 3.4vw, 36px);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 48%, #ff5fb4 0 8%, transparent 9%),
    radial-gradient(circle at 34% 35%, #fff05c 0 6%, transparent 7%),
    radial-gradient(circle at 52% 55%, #ff7ccb 0 8%, transparent 9%),
    radial-gradient(circle at 70% 38%, #fff05c 0 6%, transparent 7%),
    radial-gradient(circle at 86% 52%, #ff5fb4 0 8%, transparent 9%);
  filter: drop-shadow(0 5px 5px rgba(27, 88, 40, 0.22));
}

.scow-flower.f1 { left: 28%; top: 31%; transform: rotate(-12deg); }
.scow-flower.f2 { right: 28%; top: 34%; transform: rotate(13deg); }

@media (max-width: 760px) {
  .city-plaza {
    padding: 6px !important;
    border-radius: 10px !important;
  }

  .city-title {
    font-size: clamp(0.58rem, 3.4vw, 0.92rem) !important;
    line-height: 1 !important;
  }

  .city-subtitle {
    display: none !important;
  }

  .city-plaza .trophy-stage {
    width: 42px !important;
    height: 36px !important;
  }

  .city-plaza .trophy-cup {
    width: 26px !important;
    height: 22px !important;
  }

  .city-plaza .trophy-base {
    width: 48px !important;
    height: 14px !important;
    border-width: 1px !important;
    font-size: 0.42rem !important;
  }

  .scow-park-center {
    left: 5% !important;
    right: 5% !important;
    top: 28% !important;
    bottom: 6% !important;
    transform: perspective(500px) rotateX(7deg);
  }

  .scow-road-ring {
    border-width: 10px;
  }

  .scow-sign {
    border-width: 1px;
    border-radius: 4px;
    font-size: clamp(0.28rem, 1.9vw, 0.42rem);
  }

  .scow-lamp,
  .scow-flower,
  .scow-bench.b2,
  .scow-tree.t6,
  .car-purple {
    display: none !important;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px 88px),
    linear-gradient(30deg, rgba(255, 255, 255, 0.26) 0 1px, transparent 1px 92px),
    radial-gradient(circle at 14% 10%, rgba(26, 156, 164, 0.22), transparent 26rem),
    radial-gradient(circle at 90% 12%, rgba(224, 163, 38, 0.2), transparent 22rem),
    linear-gradient(135deg, #f7faf8 0%, #e8f0eb 56%, #dfe9e4 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.scene-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.scene-bg::before {
  position: absolute;
  inset: auto -8% 0;
  height: 34vh;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(19, 131, 96, 0.16) 8% 12%, transparent 12% 20%),
    linear-gradient(180deg, transparent 0, rgba(13, 44, 42, 0.08));
  transform: skewY(-2deg);
}

.sky-coin {
  position: absolute;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #fff3bc;
  background:
    radial-gradient(circle at 35% 28%, #fff4af, var(--gold) 58%, #a86618);
  box-shadow: inset 0 -6px 0 rgba(112, 67, 11, 0.2), 0 18px 30px rgba(13, 44, 42, 0.14);
  font-weight: 950;
  opacity: 0.55;
  animation: floatCoin 7s ease-in-out infinite;
}

.coin-a {
  left: 6%;
  top: 20%;
}

.coin-b {
  right: 9%;
  top: 18%;
  animation-delay: -2s;
}

.coin-c {
  right: 24%;
  bottom: 12%;
  animation-delay: -4s;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.app {
  width: min(1360px, calc(100% - 24px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.hud,
.board-wrap,
.side > section,
.portfolio {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hud {
  position: relative;
  overflow: hidden;
}

.hud::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.55) 45%, transparent 52% 100%);
  animation: shineSweep 6s ease-in-out infinite;
  pointer-events: none;
}

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: inset 0 -9px 14px rgba(0, 0, 0, 0.18), 0 14px 24px rgba(19, 131, 96, 0.24);
  font-weight: 950;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  line-height: 1;
}

h2 {
  font-size: 1rem;
}

.brand p,
.board-top p,
.section-title span,
.log p,
.mini-status {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 10px;
  width: min(100%, 520px);
}

.stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #ffffff, #f4f8f6);
  box-shadow: inset 0 -3px 0 rgba(18, 32, 29, 0.05);
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stats strong {
  display: block;
  margin-top: 3px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  margin-top: 18px;
}

.board-wrap,
.portfolio,
.side > section {
  padding: 16px;
}

.board-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 44, 42, 0.32) transparent;
}

.board-wrap::-webkit-scrollbar {
  height: 8px;
}

.board-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(13, 44, 42, 0.28);
}

.board-top,
.section-title,
.mini-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.small-btn {
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: #edf5f1;
  font-weight: 850;
}

.sound-btn {
  margin-left: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.sound-btn.muted {
  color: var(--ink);
  background: #dfe7e3;
}

.board {
  display: grid;
  grid-template-columns: 1.35fr repeat(9, minmax(0, 1fr)) 1.35fr;
  grid-template-rows: 1.35fr repeat(9, minmax(0, 1fr)) 1.35fr;
  gap: 7px;
  width: min(100%, 860px);
  aspect-ratio: 1;
  min-height: auto;
  margin: 24px auto 14px;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(209, 230, 221, 0.85)),
    linear-gradient(45deg, rgba(19, 131, 96, 0.07) 25%, transparent 25% 50%, rgba(19, 131, 96, 0.07) 50% 75%, transparent 75%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.66),
    inset 0 -10px 0 rgba(13, 44, 42, 0.04),
    0 26px 54px rgba(13, 44, 42, 0.16);
  transform: none;
  transform-origin: center top;
  animation: boardBreathe 5.5s ease-in-out infinite;
}

.tile {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(18, 32, 29, 0.12);
  border-radius: 8px;
  padding: 6px;
  color: var(--ink);
  text-align: left;
  background: linear-gradient(180deg, #ffffff, #eef6f2);
  box-shadow: 0 6px 0 #c5d5ce, 0 12px 16px rgba(13, 44, 42, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tile::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), transparent 46%);
  pointer-events: none;
}

.tile::after {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 6px;
  content: "";
  background: var(--green);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.tile:hover {
  transform: translateY(-3px);
}

.tile-start,
.tile-lucky,
.tile-pack {
  background: linear-gradient(180deg, #fff6dc, #efc864);
}

.tile-start::after,
.tile-lucky::after,
.tile-pack::after {
  background: var(--gold);
}

.tile-business,
.tile-creator,
.tile-media {
  background: linear-gradient(180deg, #e6fff7, #a8dfcf);
}

.tile-business::after,
.tile-creator::after,
.tile-media::after {
  background: var(--green);
}

.tile-basketball,
.tile-sports {
  background: linear-gradient(180deg, #fff0d9, #e79a57);
}

.tile-basketball::after,
.tile-sports::after {
  background: var(--coral);
}

.tile-auction {
  background: linear-gradient(180deg, #f3ecff, #cbb7ef);
}

.tile-auction::after {
  background: var(--violet);
}

.tile-tax,
.tile-raid {
  background: linear-gradient(180deg, #ffece8, #efb2a5);
}

.tile-tax::after,
.tile-raid::after {
  background: #b8332e;
}

.tile-shield {
  background: linear-gradient(180deg, #edf8ff, #bde4ee);
}

.tile-shield::after {
  background: var(--blue);
}

.domain,
.biz,
.badge,
.owned,
.token {
  position: relative;
  z-index: 1;
}

.domain {
  max-width: 95%;
  overflow-wrap: anywhere;
  font-size: 0.54rem;
  font-weight: 900;
  line-height: 1.08;
}

.biz {
  color: rgba(18, 32, 29, 0.72);
  font-size: 0.48rem;
  font-weight: 800;
}

.badge {
  position: absolute;
  right: 5px;
  bottom: 2px;
  color: rgba(18, 32, 29, 0.22);
  font-size: 1.1rem;
  font-weight: 950;
}

.owned {
  width: fit-content;
  border-radius: 999px;
  padding: 2px 5px;
  color: #fff;
  background: var(--green);
  font-size: 0.52rem;
  font-weight: 900;
}

.token {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 34% 24%, #ffd38f, var(--coral) 48%, #982d2b);
  box-shadow: 0 8px 0 #852421, 0 16px 20px rgba(217, 95, 73, 0.34);
  font-size: 0.46rem;
  font-weight: 950;
  animation: tokenHop 0.42s ease both, tokenGlow 1.8s ease-in-out infinite;
}

.center-city {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  cursor: default;
}

.city-plaza {
  grid-column: 2 / 11;
  grid-row: 2 / 11;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.52), transparent 9rem),
    linear-gradient(145deg, rgba(47, 102, 201, 0.18), rgba(26, 156, 164, 0.22) 45%, rgba(224, 163, 38, 0.18));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    inset 0 -14px 0 rgba(13, 44, 42, 0.05);
  overflow: hidden;
}

.city-plaza::before {
  position: absolute;
  inset: 14%;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.08),
    0 0 40px rgba(224, 163, 38, 0.22);
  animation: arenaPulse 3s ease-in-out infinite;
}

.city-plaza::after {
  position: absolute;
  inset: -30%;
  content: "";
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.22), transparent 34%);
  animation: arenaSweep 7s linear infinite;
}

.city-title,
.city-subtitle {
  position: relative;
  z-index: 2;
  color: var(--deep);
  text-align: center;
  font-weight: 950;
}

.city-title {
  font-size: 1.45rem;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6);
}

.city-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
}

.skyline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 7px;
  height: 110px;
}

.arena-orbit {
  position: absolute;
  inset: 18%;
  z-index: 1;
  border-radius: 50%;
  animation: orbitSpin 8s linear infinite;
}

.arena-orbit i {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(224, 163, 38, 0.9);
}

.arena-orbit i:nth-child(1) {
  left: 50%;
  top: -6px;
}

.arena-orbit i:nth-child(2) {
  right: 4%;
  bottom: 18%;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(26, 156, 164, 0.9);
}

.arena-orbit i:nth-child(3) {
  left: 4%;
  bottom: 18%;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(47, 102, 201, 0.9);
}

.trophy-stage {
  position: relative;
  z-index: 2;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  animation: trophyFloat 2.8s ease-in-out infinite;
}

.trophy-cup {
  position: relative;
  display: block;
  width: 54px;
  height: 46px;
  border-radius: 8px 8px 18px 18px;
  background:
    radial-gradient(circle at 35% 20%, #fff6b6, transparent 24%),
    linear-gradient(180deg, #ffe889, var(--gold) 62%, #a96317);
  box-shadow: inset 0 -7px 0 rgba(111, 67, 14, 0.18), 0 12px 20px rgba(13, 44, 42, 0.18);
}

.trophy-cup::before,
.trophy-cup::after {
  position: absolute;
  top: 8px;
  width: 22px;
  height: 22px;
  content: "";
  border: 6px solid var(--gold);
  border-radius: 50%;
}

.trophy-cup::before {
  left: -18px;
}

.trophy-cup::after {
  right: -18px;
}

.trophy-base {
  display: block;
  width: 66px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8f5d22, #573814);
  box-shadow: 0 6px 12px rgba(13, 44, 42, 0.2);
}

.skyline i {
  display: block;
  width: 24%;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, var(--teal), var(--green));
  box-shadow: inset 6px 0 0 rgba(255, 255, 255, 0.22), 0 8px 0 rgba(13, 44, 42, 0.14);
}

.skyline i:nth-child(1) {
  height: 48%;
}

.skyline i:nth-child(2) {
  height: 76%;
  background: linear-gradient(180deg, var(--gold), #b97625);
}

.skyline i:nth-child(3) {
  height: 58%;
}

.side {
  display: grid;
  align-content: start;
  gap: 10px;
}

.side > section {
  padding: 12px;
}

.dice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.die {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: inset 0 -12px 24px rgba(0, 0, 0, 0.16), 0 10px 0 #1b477d;
  font-size: 2.4rem;
  font-weight: 950;
  position: relative;
  overflow: hidden;
}

.die::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 42%);
}

.die.rolling {
  animation: diceTumble 0.16s linear infinite;
}

.roll-btn {
  width: 100%;
  margin-top: 12px;
  border-radius: 8px;
  padding: 14px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 0 #0c5a42, 0 18px 26px rgba(19, 131, 96, 0.23);
  font-weight: 950;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.roll-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.roll-btn:active:not(:disabled) {
  transform: translateY(5px);
  box-shadow: 0 3px 0 #0c5a42, 0 10px 18px rgba(19, 131, 96, 0.18);
}

.roll-btn:disabled {
  cursor: not-allowed;
  background: #9dadab;
  box-shadow: none;
}

.dice-panel p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 132px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 35%),
    linear-gradient(145deg, var(--violet), var(--blue) 48%, var(--green));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 0 var(--deep), var(--shadow);
  transform-style: preserve-3d;
}

.feature-card::after {
  position: absolute;
  top: -35%;
  left: -18%;
  width: 74px;
  height: 210%;
  content: "";
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(25deg);
}

.feature-card span,
.feature-card strong,
.feature-card small {
  position: relative;
  z-index: 1;
}

.feature-card span {
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card strong {
  overflow-wrap: anywhere;
  font-size: 1.32rem;
  line-height: 1;
}

.feature-card small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.feature-card.flip {
  animation: cardFlip 0.54s ease both;
}

.log p {
  margin-top: 8px;
  line-height: 1.45;
}

.tournament-panel h2 {
  margin-bottom: 10px;
}

.mode-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mode {
  border-radius: 8px;
  padding: 9px 8px;
  color: var(--ink);
  background: #edf5f1;
  font-size: 0.78rem;
  font-weight: 900;
}

.mode.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 5px 0 var(--deep);
}

.leaderboard {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.leaderboard div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f2f7f4;
}

.leaderboard span {
  color: var(--muted);
  font-weight: 800;
}

.tournament-progress {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.tournament-progress span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.tournament-progress div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfeae5;
}

.tournament-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green), var(--blue));
  transition: width 0.35s ease;
}

.portfolio {
  margin-top: 18px;
}

.standings-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.standings-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.standing {
  display: grid;
  grid-template-columns: 34px 42px 1fr auto;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: linear-gradient(180deg, #ffffff, #f2f7f4);
  box-shadow: inset 0 -4px 0 rgba(13, 44, 42, 0.04);
}

.standing.player {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, var(--blue), var(--green));
  box-shadow: 0 7px 0 var(--deep), 0 16px 22px rgba(13, 44, 42, 0.16);
}

.rank,
.stand-avatar {
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 950;
}

.rank {
  height: 34px;
  background: rgba(13, 44, 42, 0.08);
}

.stand-avatar {
  height: 42px;
  background: radial-gradient(circle at 35% 24%, #fff6bd, var(--gold) 54%, #a86618);
  box-shadow: inset 0 -5px 0 rgba(108, 67, 11, 0.18);
}

.standing em {
  font-style: normal;
  font-weight: 950;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.domain-card {
  position: relative;
  display: grid;
  min-height: 136px;
  align-content: space-between;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 13px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(145deg, #18477f, var(--green));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 0 var(--deep), 0 16px 22px rgba(13, 44, 42, 0.16);
  transition: transform 0.18s ease;
}

.domain-card::after {
  position: absolute;
  top: -45%;
  left: -28%;
  width: 58px;
  height: 210%;
  content: "";
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(24deg);
}

.domain-card:hover {
  transform: translateY(-4px);
}

.domain-card span,
.domain-card strong,
.domain-card small,
.domain-card em {
  position: relative;
  z-index: 1;
}

.domain-card span,
.domain-card em {
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.domain-card strong {
  overflow-wrap: anywhere;
  font-size: 1.12rem;
  line-height: 1.04;
}

.domain-card small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.card-pack,
.card-lucky {
  background: linear-gradient(145deg, var(--violet), var(--gold));
}

.card-basketball,
.card-sports {
  background: linear-gradient(145deg, #a34a30, var(--gold));
}

.card-auction {
  background: linear-gradient(145deg, var(--violet), var(--blue));
}

.reward-fx {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}

.burst {
  position: absolute;
  left: 50%;
  top: 22%;
  min-width: 128px;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 16px 28px rgba(13, 44, 42, 0.24);
  text-align: center;
  font-weight: 950;
  animation: burstUp 1.15s ease forwards;
}

.burst::before,
.burst::after {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.burst::before {
  left: -18px;
  animation: sparkLeft 0.8s ease forwards;
}

.burst::after {
  right: -18px;
  animation: sparkRight 0.8s ease forwards;
}

.burst.points {
  background: var(--blue);
}

.burst.loss {
  background: var(--coral);
}

.confetti {
  position: absolute;
  width: 9px;
  height: 13px;
  border-radius: 3px;
  opacity: 0;
  transform: translate(0, 0) rotate(0deg);
  animation: confettiPop 0.95s ease-out forwards;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 44, 42, 0.48);
  backdrop-filter: blur(8px);
}

.modal.hidden {
  display: none;
}

.setup-game {
  width: min(500px, 100%);
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 12px;
  color: var(--ink);
  background: #f7fbf9;
  font: inherit;
  font-weight: 850;
}

.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 12px;
  color: var(--ink);
  background: #f7fbf9;
  font: inherit;
  font-weight: 850;
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.avatar {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 24%, #ffffff, #e8f4ef 58%, #c8ddd4);
  box-shadow: 0 6px 0 #b9ccc4;
  font-size: 1.8rem;
  transition: transform 0.15s ease;
}

.avatar.active,
.avatar:hover {
  transform: translateY(-3px);
  background:
    radial-gradient(circle at 35% 24%, #fff5b0, var(--gold) 58%, #ad6b19);
  box-shadow: 0 8px 0 #7e4f14, 0 16px 20px rgba(13, 44, 42, 0.15);
}

.mini-game {
  width: min(440px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f3f8f6);
  box-shadow: 0 30px 74px rgba(13, 44, 42, 0.35);
}

.admin-game {
  width: min(760px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.admin-json {
  width: 100%;
  min-height: 96px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #f7fbf9;
  font: inherit;
  resize: vertical;
}

.admin-separator {
  width: 100%;
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.admin-list p {
  color: var(--muted);
}

.admin-question-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  padding: 10px;
  background: #f2f7f4;
}

.admin-question-row span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pack-game {
  width: min(620px, 100%);
}

.court {
  position: relative;
  height: 262px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at center bottom, rgba(255, 255, 255, 0.23), transparent 44%),
    linear-gradient(180deg, var(--teal) 0%, var(--green) 58%, #96572a 58%, #c87b36 100%);
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.1);
}

.board-glass {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 104px;
  height: 64px;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(-50%);
}

.hoop {
  position: absolute;
  top: 88px;
  left: 50%;
  width: 76px;
  height: 17px;
  border: 5px solid var(--coral);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.ball {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 45%, rgba(92, 44, 16, 0.38) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(92, 44, 16, 0.38) 45% 55%, transparent 55%),
    radial-gradient(circle at 34% 28%, #ffca85, #d87528 62%, #8f3f17);
  box-shadow: 0 10px 16px rgba(13, 44, 42, 0.26);
  transform: translateX(-50%);
}

.ball.make {
  animation: shotMake 0.72s ease-in-out both;
}

.ball.miss {
  animation: shotMiss 0.72s ease-in-out both;
}

.mini-status {
  margin-bottom: 12px;
}

.mini-status strong {
  color: var(--green);
}

.pack-stage {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.28), transparent 22rem),
    linear-gradient(145deg, #1a486c, #138360 58%, #e0a326);
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.1);
}

.sealed-pack {
  position: relative;
  display: grid;
  width: min(220px, 74%);
  min-height: 130px;
  place-items: center;
  justify-self: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 35%),
    linear-gradient(145deg, var(--violet), var(--blue) 52%, var(--gold));
  box-shadow: 0 12px 0 var(--deep), 0 24px 28px rgba(13, 44, 42, 0.28);
  transform: rotate(-2deg);
}

.sealed-pack::before,
.sealed-pack::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.2);
}

.sealed-pack::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(255, 255, 255, 0.18) 14% 18%, transparent 18% 82%, rgba(255, 255, 255, 0.18) 82% 86%, transparent 86%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.12) 14px 18px);
}

.sealed-pack::after {
  left: -20%;
  top: 45%;
  width: 140%;
  height: 16px;
  transform: rotate(-12deg);
}

.sealed-pack span,
.sealed-pack strong {
  position: relative;
  z-index: 1;
}

.sealed-pack span {
  align-self: end;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.sealed-pack strong {
  align-self: start;
  font-size: 2rem;
  line-height: 1;
}

.sealed-pack.open {
  animation: ripPack 0.75s ease both;
}

.pack-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pack-reward {
  position: relative;
  display: grid;
  min-height: 160px;
  align-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 13px;
  color: #fff;
  text-align: left;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(145deg, #1a486c, #0d2c2a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 0 rgba(13, 44, 42, 0.72);
  opacity: 0.58;
  transform: translateY(22px) rotateY(0deg);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.pack-reward.deal {
  opacity: 1;
  animation: dealCard 0.42s ease both;
}

.pack-reward:not(:disabled):hover {
  transform: translateY(-5px);
}

.pack-reward span,
.pack-reward strong,
.pack-reward small {
  position: relative;
  z-index: 1;
}

.pack-reward span {
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pack-reward strong {
  overflow-wrap: anywhere;
  font-size: 2rem;
  line-height: 1;
}

.pack-reward small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.pack-reward.revealed {
  animation: revealCard 0.52s ease both;
  opacity: 1;
}

.pack-reward.rarity-common.revealed {
  background: linear-gradient(145deg, #1b5b4b, var(--green));
}

.pack-reward.rarity-rare.revealed {
  background: linear-gradient(145deg, var(--blue), var(--teal));
}

.pack-reward.rarity-epic.revealed {
  background: linear-gradient(145deg, var(--violet), var(--blue));
}

.pack-reward.rarity-legendary.revealed {
  background: linear-gradient(145deg, #8e3f2e, var(--gold));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 8px 0 #7a4d14, 0 0 30px rgba(224, 163, 38, 0.42);
}

.trivia-game {
  width: min(560px, 100%);
}

.question-card {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  border-radius: 8px;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(145deg, var(--blue), var(--green));
  box-shadow: 0 9px 0 var(--deep), 0 18px 24px rgba(13, 44, 42, 0.18);
}

.question-card span {
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-card strong {
  font-size: 1.18rem;
  line-height: 1.18;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.answer {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #f2f7f4);
  font-weight: 850;
  text-align: left;
  transition: transform 0.15s ease, background 0.15s ease;
}

.answer:hover:not(:disabled) {
  transform: translateY(-2px);
}

.answer.correct {
  color: #fff;
  background: var(--green);
}

.answer.wrong {
  color: #fff;
  background: var(--coral);
}

.result-game {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.result-badge {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 35% 24%, #fff3ad, var(--gold) 48%, #a86618);
  box-shadow: inset 0 -10px 0 rgba(108, 67, 11, 0.18), 0 16px 30px rgba(13, 44, 42, 0.22);
  font-weight: 950;
  animation: trophyFloat 2.4s ease-in-out infinite;
}

.result-badge.loss {
  background:
    radial-gradient(circle at 35% 24%, #ffc4b8, var(--coral) 52%, #8e2d26);
}

.result-game p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.45;
}

.result-score {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-score div {
  border-radius: 8px;
  padding: 12px;
  background: #f2f7f4;
}

.result-score span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.result-score strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

.wheel-stage {
  position: relative;
  display: grid;
  height: 320px;
  place-items: center;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.28), transparent 9rem),
    linear-gradient(145deg, #163c72, var(--green));
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.12);
}

.pointer {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  border-right: 18px solid transparent;
  border-left: 18px solid transparent;
  border-top: 34px solid var(--gold);
  filter: drop-shadow(0 5px 0 rgba(13, 44, 42, 0.28));
  transform: translateX(-50%);
}

.creator-wheel {
  position: relative;
  width: min(250px, 80vw);
  height: min(250px, 80vw);
  border: 10px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background:
    conic-gradient(
      var(--gold) 0deg 60deg,
      var(--teal) 60deg 120deg,
      var(--violet) 120deg 180deg,
      var(--green) 180deg 240deg,
      var(--coral) 240deg 300deg,
      var(--blue) 300deg 360deg
    );
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.2),
    0 14px 0 var(--deep),
    0 26px 34px rgba(13, 44, 42, 0.28);
  transition: transform 2.35s cubic-bezier(0.12, 0.72, 0.16, 1);
}

.creator-wheel::before {
  position: absolute;
  inset: 50%;
  width: 54px;
  height: 54px;
  content: "";
  border: 8px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: var(--deep);
  box-shadow: 0 6px 0 rgba(13, 44, 42, 0.28);
  transform: translate(-50%, -50%);
}

.creator-wheel span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 94px;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transform-origin: 0 0;
}

.creator-wheel span:nth-child(1) {
  transform: rotate(30deg) translate(42px, -8px) rotate(-30deg);
}

.creator-wheel span:nth-child(2) {
  transform: rotate(90deg) translate(42px, -8px) rotate(-90deg);
}

.creator-wheel span:nth-child(3) {
  transform: rotate(150deg) translate(42px, -8px) rotate(-150deg);
}

.creator-wheel span:nth-child(4) {
  transform: rotate(210deg) translate(42px, -8px) rotate(-210deg);
}

.creator-wheel span:nth-child(5) {
  transform: rotate(270deg) translate(42px, -8px) rotate(-270deg);
}

.creator-wheel span:nth-child(6) {
  transform: rotate(330deg) translate(42px, -8px) rotate(-330deg);
}

.pulse {
  animation: statPulse 0.38s ease;
}

@keyframes tokenHop {
  0% {
    transform: translateY(12px) scale(0.86);
  }
  58% {
    transform: translateY(-8px) scale(1.08);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes tokenGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(224, 163, 38, 0));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(224, 163, 38, 0.75));
  }
}

@keyframes floatCoin {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-22px) rotate(10deg);
  }
}

@keyframes shineSweep {
  0%,
  55% {
    transform: translateX(-120%);
  }
  78%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes boardBreathe {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.08) brightness(1.02);
  }
}

@keyframes arenaPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes arenaSweep {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes orbitSpin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes trophyFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

@keyframes diceTumble {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(9deg);
  }
  100% {
    transform: translateY(0) rotate(-9deg);
  }
}

@keyframes cardFlip {
  0% {
    transform: rotateY(0deg);
  }
  44% {
    transform: rotateY(86deg) translateY(-4px);
  }
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes burstUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 28px) scale(0.86);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -70px) scale(1.08);
  }
}

@keyframes sparkLeft {
  100% {
    opacity: 0;
    transform: translate(-34px, -24px) scale(0.4);
  }
}

@keyframes sparkRight {
  100% {
    opacity: 0;
    transform: translate(34px, -24px) scale(0.4);
  }
}

@keyframes confettiPop {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.7);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) rotate(420deg) scale(0.9);
  }
}

@keyframes statPulse {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
    color: var(--green);
  }
}

@keyframes shotMake {
  0% {
    transform: translate(-50%, 0) scale(1);
  }
  55% {
    transform: translate(-50%, -154px) scale(0.84) rotate(260deg);
  }
  100% {
    transform: translate(-50%, -118px) scale(0.56) rotate(380deg);
  }
}

@keyframes shotMiss {
  0% {
    transform: translate(-50%, 0) scale(1);
  }
  52% {
    transform: translate(42px, -146px) scale(0.84) rotate(240deg);
  }
  100% {
    transform: translate(122px, 8px) scale(0.95) rotate(420deg);
  }
}

@keyframes ripPack {
  0% {
    opacity: 1;
    transform: rotate(-2deg) scale(1);
  }
  48% {
    opacity: 1;
    transform: rotate(4deg) scale(1.08);
    filter: brightness(1.2);
  }
  100% {
    opacity: 0.22;
    transform: translateY(-10px) rotate(10deg) scale(0.86);
    filter: brightness(1.35);
  }
}

@keyframes dealCard {
  0% {
    opacity: 0;
    transform: translateY(-28px) scale(0.82) rotate(-4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes revealCard {
  0% {
    transform: rotateY(0deg) scale(1);
  }
  44% {
    transform: rotateY(86deg) scale(1.04);
  }
  100% {
    transform: rotateY(0deg) scale(1);
  }
}

@media (max-width: 930px) {
  .hud,
  .layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stats,
  .domain-grid,
  .standings-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .board {
    width: min(100%, 820px);
  }
}

@media (max-width: 640px) {
  .app {
    width: min(100% - 18px, 1220px);
    padding-top: 10px;
  }

  .brand {
    align-items: flex-start;
  }

  .hud,
  .board-top,
  .section-title,
  .mini-status {
    align-items: stretch;
    flex-direction: column;
  }

  .board-top .small-btn {
    width: 100%;
    margin-left: 0;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .stats,
  .domain-grid,
  .standings-list {
    grid-template-columns: 1fr;
  }

  .board {
    width: 100%;
    aspect-ratio: 1;
    gap: 3px;
    padding: 5px;
    transform: none;
  }

  .pack-cards {
    grid-template-columns: 1fr;
  }

  .tile {
    border-radius: 5px;
    padding: 3px;
    box-shadow: 0 2px 0 #c5d5ce, 0 5px 8px rgba(13, 44, 42, 0.08);
  }

  .tile::after {
    height: 4px;
  }

  .domain {
    font-size: clamp(0.34rem, 1.5vw, 0.5rem);
    line-height: 1;
  }

  .biz {
    display: none;
  }

  .badge {
    font-size: 0.68rem;
  }

  .token {
    width: 16px;
    height: 16px;
    font-size: 0.38rem;
  }

  .city-plaza {
    padding: 6px;
  }

  .city-title {
    font-size: clamp(0.72rem, 3.1vw, 0.95rem);
  }

  .city-subtitle {
    font-size: clamp(0.48rem, 2vw, 0.62rem);
  }

  .skyline {
    height: 48px;
  }

  .trophy-stage {
    width: 58px;
    height: 58px;
  }

  .trophy-cup {
    width: 38px;
    height: 32px;
  }

  .trophy-cup::before,
  .trophy-cup::after {
    width: 14px;
    height: 14px;
    border-width: 4px;
  }

  .trophy-cup::before {
    left: -12px;
  }

  .trophy-cup::after {
    right: -12px;
  }

  .trophy-base {
    width: 46px;
    height: 10px;
  }

  .board-wrap {
    padding: 10px;
  }

  .answer-grid,
  .result-score,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    align-items: start;
    overflow: auto;
  }

  .mini-game {
    margin: 10px 0;
  }
}


/* SCOW GO V6 REAL CINEMATIC PATCH */
body.scow-camera { animation: scowCamera 0.65s ease; }
@keyframes scowCamera { 0%{transform:scale(1)} 38%{transform:scale(1.025)} 100%{transform:scale(1)} }

.board-wrap.scow-board-focus { animation: scowBoardFocus 0.7s ease; }
@keyframes scowBoardFocus { 0%{transform:scale(1)} 45%{transform:scale(1.035)} 100%{transform:scale(1)} }

.board {
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 215, 92, 0.22), transparent 22%),
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(186, 225, 212, .92)) !important;
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,.7),
    inset 0 -18px 0 rgba(13,44,42,.08),
    0 34px 70px rgba(13,44,42,.24) !important;
}

.tile {
  border-radius: 14px !important;
  border: 2px solid rgba(255,255,255,.82) !important;
  border-bottom: 8px solid rgba(13,44,42,.22) !important;
  transition: transform .22s cubic-bezier(.22,1.45,.36,1), filter .22s ease, box-shadow .22s ease !important;
}

.tile .badge { font-size: 1.65rem !important; filter: drop-shadow(0 5px 5px rgba(0,0,0,.18)); }

.tile.scow-step {
  animation: scowTileStep .30s cubic-bezier(.22,1.45,.36,1) !important;
  z-index: 12;
}
@keyframes scowTileStep {
  0% { transform: translateY(0) scale(1); filter: brightness(1); }
  45% { transform: translateY(-13px) scale(1.10); filter: brightness(1.22); box-shadow: 0 0 0 5px rgba(255,255,255,.45), 0 0 35px rgba(224,163,38,.95), 0 18px 24px rgba(0,0,0,.28); }
  100% { transform: translateY(0) scale(1); filter: brightness(1); }
}

.tile.scow-land {
  animation: scowTileLand .48s ease !important;
  z-index: 20;
}
@keyframes scowTileLand {
  0% { transform: scale(1); }
  30% { transform: scale(1.17) translateY(-14px); box-shadow: 0 0 0 7px rgba(255,255,255,.5), 0 0 42px rgba(224,163,38,1); }
  60% { transform: scale(.96); }
  100% { transform: scale(1); }
}

.token {
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  color: transparent !important;
  background: radial-gradient(circle at 35% 25%, #fff, #ffe57b 55%, #e0a326) !important;
  border: 4px solid #17346e !important;
  box-shadow: 0 10px 18px rgba(0,0,0,.35), 0 0 20px rgba(224,163,38,.9) !important;
  animation: scowTokenIdle .7s infinite alternate !important;
}
.token::after { content:"🏆"; color:#17346e; font-size:22px; line-height:1; }
@keyframes scowTokenIdle { to { transform: translateY(-7px) scale(1.06); } }

.tile.scow-step .token, .tile.scow-land .token {
  animation: scowTokenHop .30s cubic-bezier(.22,1.55,.36,1) !important;
}
@keyframes scowTokenHop {
  0% { transform: translateY(0) scale(1); }
  48% { transform: translateY(-24px) scale(1.18); }
  100% { transform: translateY(0) scale(1); }
}

.roll-btn { animation: scowRollGlow 1s infinite alternate !important; }
@keyframes scowRollGlow {
  to { transform: translateY(-2px) scale(1.035); box-shadow: 0 0 36px rgba(19,131,96,.48), 0 14px 28px rgba(13,44,42,.22); filter: brightness(1.12); }
}

.die.rolling { animation: scowDiceBounce .12s infinite alternate !important; }
@keyframes scowDiceBounce { to { transform: translateY(-7px) rotate(6deg) scale(1.05); } }

.scow-cinematic-text {
  position: fixed;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  font-size: clamp(34px, 8vw, 72px);
  font-weight: 1000;
  color: #ffe77a;
  text-shadow: 0 6px 0 rgba(0,0,0,.35), 0 0 30px rgba(224,163,38,.95);
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
}
.scow-cinematic-text.show { animation: scowTextPop 1s ease forwards; }
@keyframes scowTextPop {
  0% { opacity:0; transform:translate(-50%,-50%) scale(.35) rotate(-7deg); }
  35% { opacity:1; transform:translate(-50%,-50%) scale(1.22) rotate(3deg); }
  100% { opacity:0; transform:translate(-50%,-50%) scale(.92) rotate(0); }
}

.scow-screen-flash {
  position: fixed;
  inset: 0;
  z-index: 99990;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255,231,122,.45), transparent 62%);
}
.scow-screen-flash.show { animation: scowFlash .55s ease; }
@keyframes scowFlash { 0%{opacity:0} 35%{opacity:1} 100%{opacity:0} }

.scow-wallet-coin {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8b5, #ffd438 58%, #c98000);
  box-shadow: 0 0 12px rgba(255,216,92,.9);
  z-index: 99998;
  pointer-events: none;
  animation: scowWalletCoin .95s ease forwards;
}
@keyframes scowWalletCoin {
  to { left: 88vw; top: 7vh; transform: scale(.42) rotate(650deg); opacity: .1; }
}

body.scow-impact { animation: scowImpact .30s ease; }
@keyframes scowImpact {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.trophy-stage, .skyline, .city-plaza { animation: scowCenterAlive 2.2s ease-in-out infinite alternate; }
@keyframes scowCenterAlive { to { filter: brightness(1.12); transform: translateY(-3px); } }

@media (max-width: 760px) {
  .board { gap: 4px !important; padding: 8px !important; }
  .tile { padding: 3px !important; }
  .tile .domain { font-size: .55rem !important; }
  .tile .biz { display: none !important; }
  .token { width: 34px !important; height: 34px !important; }
  .token::after { font-size: 18px; }
}

/* Final mobile override: keep v6 playable on real phone widths. */
@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .app {
    width: 100%;
    padding: 8px;
  }

  .hud,
  .layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .hud {
    gap: 10px;
    padding: 10px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand h1 {
    font-size: 1.32rem;
  }

  .brand p {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px;
    width: 100%;
  }

  .board-wrap {
    width: 100%;
    overflow: hidden !important;
    padding: 8px !important;
  }

  .board-top {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 7px;
  }

  .board-top > div {
    grid-column: 1 / -1;
  }

  .board-top .small-btn {
    width: 100%;
    margin: 0;
    padding: 8px 6px;
    font-size: 0.78rem;
  }

  .board {
    width: 100% !important;
    max-width: calc(100vw - 16px) !important;
    aspect-ratio: 1 / 1 !important;
    gap: 3px !important;
    padding: 5px !important;
    border-radius: 14px !important;
  }

  .tile {
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 5px !important;
    border-width: 1px !important;
    border-bottom-width: 3px !important;
    padding: 3px !important;
    box-shadow: 0 2px 0 rgba(13, 44, 42, 0.18), 0 4px 7px rgba(13, 44, 42, 0.08) !important;
  }

  .tile::after {
    height: 3px !important;
  }

  .tile .domain,
  .domain {
    display: block;
    font-size: clamp(0.28rem, 1.45vw, 0.46rem) !important;
    line-height: 1 !important;
    max-height: 1.95em;
    overflow: hidden;
    overflow-wrap: anywhere;
  }

  .tile .biz,
  .biz,
  .owned {
    display: none !important;
  }

  .tile .badge,
  .badge {
    right: 2px !important;
    bottom: 0 !important;
    font-size: clamp(0.48rem, 2.2vw, 0.72rem) !important;
  }

  .token {
    left: 2px !important;
    bottom: 2px !important;
    width: 15px !important;
    height: 15px !important;
    border-width: 2px !important;
  }

  .token::after {
    font-size: 9px !important;
  }

  .city-plaza {
    padding: 6px !important;
    gap: 4px;
  }

  .city-title {
    font-size: clamp(0.7rem, 4vw, 1rem) !important;
    line-height: 1.05;
  }

  .city-subtitle {
    font-size: clamp(0.48rem, 2.4vw, 0.66rem) !important;
  }

  .trophy-stage {
    width: 54px !important;
    height: 54px !important;
  }

  .trophy-cup {
    width: 34px !important;
    height: 28px !important;
  }

  .trophy-base {
    width: 42px !important;
    height: 9px !important;
  }

  .skyline {
    height: 42px !important;
  }

  .side,
  .domain-grid,
  .standings-list,
  .answer-grid,
  .result-score,
  .admin-grid {
    grid-template-columns: 1fr !important;
  }

  .mini-game {
    width: min(100%, calc(100vw - 16px)) !important;
    max-height: 92vh;
    overflow: auto;
    margin: 8px 0;
  }
}

/* Keep the premium center steady after older v6 animation rules load. */
.city-plaza {
  animation: none !important;
}

.city-plaza .trophy-stage {
  animation: trophyFloat 2.8s ease-in-out infinite !important;
}
