/* ——— DELICIOUS — Ferris-wheel UI (video reference) ——— */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800;900&display=swap');

.game-shell.del-mode {
  max-width: 480px;
  margin: 0 auto;
  background: #070b24;
}
.game-shell.del-mode .game-top {
  display: none;
}
.game-shell.del-mode .game-stage {
  padding: 0;
  max-width: 100%;
  width: 100%;
  min-height: 100dvh;
}

.del-screen {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  color: #fff;
  font-family: Outfit, system-ui, sans-serif;
  overflow: hidden;
}
.del-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  filter: brightness(0.9) saturate(1.1);
}
.del-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 150, 70, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(6, 8, 28, 0.2) 0%, transparent 28%, rgba(6, 8, 28, 0.5) 100%);
}
.del-ui {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100svh;
  padding: max(6px, env(safe-area-inset-top)) 8px max(6px, env(safe-area-inset-bottom));
  gap: 4px;
  box-sizing: border-box;
}

/* Header — yellow circles + pink G like video */
.del-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.del-top-r {
  display: flex;
  align-items: center;
  gap: 5px;
}
.del-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff3a8;
  background: radial-gradient(circle at 35% 28%, #ffe566, #ffc010 55%, #e09000);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 10px rgba(255, 200, 40, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.del-btn.back {
  background: radial-gradient(circle at 35% 28%, #ff6a4a, #e02020 60%, #9a1010);
  border-color: #ffd080;
  color: #ffe566;
  font-size: 1.25rem;
  line-height: 1;
}
.del-btn.off {
  opacity: 0.45;
  filter: grayscale(0.5);
}
.del-bal-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(180deg, #2a2040, #120c22);
  border: 2px solid #e8b0ff;
  border-radius: 999px;
  padding: 2px 10px 2px 3px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 12px rgba(200, 100, 255, 0.35);
}
.del-bal-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: transparent !important;
}
.del-bal-pill b {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.del-ping {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.6rem;
  color: #6dff8a;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(80, 255, 140, 0.6);
}
.del-ping::before {
  content: '📶';
  font-size: 0.55rem;
}

.del-logo-wrap {
  display: grid;
  place-items: center;
  margin: -4px 0 -8px;
  z-index: 5;
}
.del-logo {
  height: clamp(64px, 16vw, 92px);
  width: auto;
  max-width: min(92vw, 380px);
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 0 16px rgba(255, 180, 60, 0.75));
}

/* Ferris wheel arena */
.del-arena {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 0;
  overflow: visible;
  margin-top: -4px;
}
.del-wheel {
  position: relative;
  width: min(96vw, 400px);
  aspect-ratio: 1;
  overflow: visible;
}
.del-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}
.del-seat {
  position: absolute;
  width: 23%;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  z-index: 2;
}
.del-seat:disabled {
  cursor: default;
}
.del-pod {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffffff, #f2f2f8 65%, #dddde8);
  border: 3px solid #ff5a3a;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(255, 200, 100, 0.35);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.del-pod img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  background: transparent !important;
}
.del-mult {
  font-size: 0.52rem;
  font-weight: 800;
  color: #1a1208;
  background: rgba(255, 236, 160, 0.92);
  border-radius: 4px;
  padding: 1px 4px;
  text-shadow: none;
  white-space: nowrap;
  line-height: 1.15;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.del-hot {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 0.5rem;
  font-weight: 900;
  background: linear-gradient(180deg, #ff6a40, #e02020);
  color: #fff;
  border-radius: 4px;
  padding: 1px 5px;
  z-index: 3;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.04em;
}
.del-stake {
  position: absolute;
  bottom: 14px;
  font-style: normal;
  font-size: 0.52rem;
  font-weight: 900;
  background: #e8b923;
  color: #2a1608;
  border-radius: 6px;
  padding: 1px 5px;
  z-index: 2;
}
.del-seat.has-bet .del-pod {
  box-shadow: 0 0 0 3px #4dff8a, 0 4px 14px rgba(0, 0, 0, 0.5);
}
.del-seat.is-hl .del-pod {
  outline: 3px solid #fff;
  box-shadow: 0 0 24px rgba(255, 220, 100, 1);
  transform: scale(1.08);
}
.del-seat.is-win .del-pod {
  animation: delWinPulse 0.55s ease infinite alternate;
}
@keyframes delWinPulse {
  from {
    box-shadow: 0 0 12px #ffe08a;
  }
  to {
    box-shadow: 0 0 28px #ff9f2e;
  }
}

.del-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffe0b8, #ff9a48 48%, #e06020 82%, #a03810);
  border: 4px solid #ffd080;
  box-shadow:
    0 0 0 4px rgba(255, 180, 60, 0.35),
    0 0 28px rgba(255, 140, 40, 0.7),
    inset 0 3px 10px rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  z-index: 3;
  overflow: hidden;
}
.del-hub-bowl {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  opacity: 0.38;
  filter: saturate(1.1);
  pointer-events: none;
  background: transparent !important;
}
.del-hub-txt {
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.12;
  padding: 4px;
}
.del-hub-txt span {
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.del-hub-txt small {
  display: block;
  margin-top: 2px;
  font-size: 0.6rem;
  font-weight: 800;
  color: #ffe08a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.del-timer {
  display: inline-block;
  margin-top: 5px;
  min-width: 44px;
  padding: 3px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a01830, #6a0820);
  border: 1px solid #ffe08a;
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Salad / Pizza platforms under wheel */
.del-platform {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 4px;
  width: min(94vw, 380px);
  margin-top: -18px;
  z-index: 4;
  padding: 0 8px 2px;
}
.del-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 900;
  font-size: 0.78rem;
  text-shadow: 0 1px 3px #000;
}
.del-group img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}
.del-group:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.del-played {
  font-size: 0.6rem;
  color: #9ec8ff;
  text-align: center;
  padding-bottom: 14px;
  line-height: 1.2;
}
.del-played b {
  color: #ffe08a;
  font-size: 0.95rem;
}

/* Chips — white squares + pink G */
.del-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 7px 8px;
}
.del-chip {
  min-width: 64px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: linear-gradient(180deg, #ffffff, #f0eef8);
  color: #2a1840;
  font-weight: 900;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
.del-chip img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  background: transparent !important;
}
.del-chip.active {
  border-color: #4aa8ff;
  box-shadow: 0 0 0 2px rgba(74, 168, 255, 0.45), 0 3px 8px rgba(0, 0, 0, 0.25);
}
.del-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.del-today {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(90deg, #b44dff, #ff4d9a);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(255, 80, 160, 0.35);
}
.del-today img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  background: transparent !important;
}
.del-today b {
  color: #fff6c8;
}

.del-resultbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(40, 36, 56, 0.88);
  border-radius: 8px;
  padding: 5px 6px;
  color: #fff;
}
.del-result-lab {
  font-size: 0.65rem;
  font-weight: 900;
  color: #cbb8ff;
  flex-shrink: 0;
}
.del-hist-track {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.del-hist {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.del-hist img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  background: transparent !important;
}
.del-hist.new {
  outline: 2px solid #3b8cff;
}
.del-hist i {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 0.36rem;
  font-weight: 900;
  background: #3b8cff;
  color: #fff;
  padding: 0 3px;
  border-radius: 2px;
}
.del-hist-empty {
  font-size: 0.75rem;
  color: #888;
}
.del-repeat {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  padding: 5px 9px;
  background: #5a6070;
  color: #fff;
  font-weight: 900;
  font-size: 0.68rem;
  cursor: pointer;
}
.del-repeat:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.del-rankbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(12, 10, 28, 0.92);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  cursor: pointer;
}
.del-rank-l {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.del-rank-l em {
  font-style: normal;
}
.del-rankbar b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffe08a;
}
.del-rankbar img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  background: transparent !important;
}

.del-modal {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 6, 20, 0.75);
}
.del-card {
  width: min(360px, 100%);
  max-height: 80dvh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(70, 190, 110, 0.95), rgba(28, 90, 55, 0.97));
  border: 2px solid #ffe08a;
  border-radius: 16px;
  padding: 12px;
  color: #fff;
}
.del-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #ff7aa8, #e83d7a);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.del-card-head h3 {
  margin: 0;
  font-size: 0.95rem;
}
.del-card-head button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #e23;
  font-weight: 900;
  cursor: pointer;
}
.del-card ol {
  margin: 0;
  padding-left: 18px;
  font-size: 0.78rem;
  line-height: 1.45;
}
.del-rank-table {
  text-align: left;
}
.del-rt {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  padding: 6px 4px;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  align-items: center;
}
.del-rt.head {
  font-weight: 900;
  color: #ffe08a;
}
.del-rt.me {
  background: rgba(255, 220, 100, 0.2);
}
.del-rt img {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  background: transparent !important;
}

@media (max-width: 380px) {
  .del-seat {
    width: 25%;
  }
  .del-mult {
    font-size: 0.44rem;
  }
  .del-hub-txt span {
    font-size: 0.58rem;
  }
  .del-group img {
    width: 52px;
    height: 52px;
  }
  .del-logo {
    height: clamp(56px, 15vw, 78px);
  }
}

