/* Violet plaque — tunable via /tools/violet-plaque-tuner.html
   Perf: rim = border-box clip (no mask/::after). No filter:blur/drop-shadow.
   Bloom (if on) ≈ soft outer box-shadow via --pd-vp-bloom-shadow. */

:root {
  --pd-vp-r: 17px;
  --pd-vp-rim-w: 0.5px;

  --pd-vp-rim-0: #897897;
  --pd-vp-rim-1: #c49aff;
  --pd-vp-rim-2: #50495b;
  --pd-vp-rim-3: #71608a;
  --pd-vp-rim-glow-a: 0.7;
  --pd-vp-rim-glow-blur: 3px;
  --pd-vp-rim-glow2-a: 0.35;
  --pd-vp-rim-glow2-blur: 8px;

  --pd-vp-top-color: rgba(98, 71, 150, 0.78);
  --pd-vp-top-mid: rgba(63, 44, 104, 0.45);
  --pd-vp-top-size: 110%;
  --pd-vp-top-height: 52%;
  --pd-vp-top-fade: 75%;
  --pd-vp-center-color: rgba(0, 0, 0, 1);
  --pd-vp-center-size: 120%;
  --pd-vp-center-fade: 100%;
  --pd-vp-base-0: #332254;
  --pd-vp-base-1: #21123f;
  --pd-vp-base-2: #130a2b;
  --pd-vp-base-3: #1b0f38;

  --pd-vp-inset-a: 0.08;
  --pd-vp-inset-side-a: 0.08;
  --pd-vp-inset-bot-a: 0.12;
  --pd-vp-glow-a: 0.28;
  --pd-vp-glow-blur: 18px;
  --pd-vp-drop-y: 10px;
  --pd-vp-drop-blur: 28px;
  --pd-vp-drop-a: 0.48;

  --pd-vp-bloom-inset: 6px;
  --pd-vp-bloom-blur: 8px;
  --pd-vp-bloom-opacity: 0.18;
  --pd-vp-bloom-0: rgba(236, 205, 255, 0.55);
  --pd-vp-bloom-1: rgba(180, 138, 240, 0.32);
  --pd-vp-bloom-2: rgba(122, 91, 182, 0.18);
  --pd-vp-bloom-3: rgba(176, 124, 255, 0.4);
  --pd-vp-bloom-shadow:
    0 0 9.2px 2.4px rgba(180, 138, 240, 0.162),
    0 0 18px rgba(236, 205, 255, 0.09);

  --pd-vp-fill:
    radial-gradient(
      var(--pd-vp-top-size) var(--pd-vp-top-height) at 50% 0%,
      var(--pd-vp-top-color) 0%,
      var(--pd-vp-top-mid) 34%,
      transparent var(--pd-vp-top-fade)
    ),
    radial-gradient(
      var(--pd-vp-center-size) var(--pd-vp-center-size) at 50% 55%,
      var(--pd-vp-center-color),
      transparent var(--pd-vp-center-fade)
    ),
    linear-gradient(
      180deg,
      var(--pd-vp-base-0) 0%,
      var(--pd-vp-base-1) 35%,
      var(--pd-vp-base-2) 70%,
      var(--pd-vp-base-3) 100%
    );
  --pd-vp-inset:
    inset 14px 0 24px rgba(145, 104, 210, var(--pd-vp-inset-side-a)),
    inset -14px 0 24px rgba(145, 104, 210, var(--pd-vp-inset-side-a)),
    inset 0 -16px 20px rgba(90, 60, 150, var(--pd-vp-inset-bot-a));
  --pd-vp-glow:
    0 0 var(--pd-vp-rim-glow2-blur) rgba(158, 101, 255, var(--pd-vp-rim-glow2-a)),
    0 0 var(--pd-vp-glow-blur) rgba(158, 101, 255, var(--pd-vp-glow-a)),
    0 var(--pd-vp-drop-y) var(--pd-vp-drop-blur) rgba(0, 0, 0, var(--pd-vp-drop-a));
  --pd-vp-rim: linear-gradient(
    180deg,
    var(--pd-vp-rim-0) 0%,
    var(--pd-vp-rim-1) 10%,
    var(--pd-vp-rim-2) 50%,
    var(--pd-vp-rim-3) 100%
  );
  --pd-vp-bg-clip: padding-box, padding-box, padding-box, border-box;
  --pd-vp-shadow: var(--pd-vp-inset), var(--pd-vp-bloom-shadow), var(--pd-vp-glow);
}

html.pd-vp-rim-glow-primary {
  --pd-vp-glow:
    0 0 var(--pd-vp-rim-glow-blur) rgba(223, 184, 255, var(--pd-vp-rim-glow-a)),
    0 0 var(--pd-vp-rim-glow2-blur) rgba(158, 101, 255, var(--pd-vp-rim-glow2-a)),
    0 0 var(--pd-vp-glow-blur) rgba(158, 101, 255, var(--pd-vp-glow-a)),
    0 var(--pd-vp-drop-y) var(--pd-vp-drop-blur) rgba(0, 0, 0, var(--pd-vp-drop-a));
}

html.pd-vp-inset-top {
  --pd-vp-inset:
    inset 0 22px 48px rgba(185, 146, 255, var(--pd-vp-inset-a)),
    inset 14px 0 24px rgba(145, 104, 210, var(--pd-vp-inset-side-a)),
    inset -14px 0 24px rgba(145, 104, 210, var(--pd-vp-inset-side-a)),
    inset 0 -16px 20px rgba(90, 60, 150, var(--pd-vp-inset-bot-a));
}

/* ---- Shared plaque recipe ---- */
.pd-violet-plaque,
.ios-menu-panel,
.ios-modes-panel,
.ios-rewards-panel,
.ios-learn-panel,
.ios-support-panel,
.ios-friends-panel,
.ios-friend-chat-panel,
.ios-account-panel,
.ios-combos-panel,
.ios-lb-panel,
.ios-stats-panel,
.ios-boxes-panel,
.ios-boxes-preview-panel,
.ios-pass-panel,
.ios-quests-panel,
.ios-streak-panel,
.ios-sort-panel,
.ios-bh-panel,
.ios-clan-panel,
.ios-deck-slot-actions,
.ios-bresult-sheet,
.ios-menu-group,
.ios-modes-hero,
.ios-modes-group,
.ios-modes-event,
.ios-rewards-group,
.ios-rewards-hero,
.ios-arenas-slide,
.ios-arenas-cp,
.ios-arenas-summary,
.ios-acc-profile,
.ios-acc-group,
.ios-friends-add,
.ios-friends-invite,
.ios-friends-list,
.ios-combos-card,
.ios-combos-group,
.ios-combos-info,
.ios-combos-detail,
.ios-lb-summary,
.ios-lb-list-host,
.ios-lb-group,
.ios-support-hero,
.ios-stats-card,
.ios-boxes-chest,
.ios-boxes-empty,
.ios-boxes-all-done,
.ios-pass-hero,
.ios-pass-featured,
.ios-quests-summary,
.ios-quests-group,
.ios-streak-summary,
.ios-streak-hero,
.ios-streak-history,
.ios-streak-next,
.ios-sort-group,
.ios-bh-card,
.ios-bh-empty,
.ios-clan-hero,
.ios-clan-info-card,
.ios-bresult-trophy,
.ios-bresult-progress,
.ios-bresult-reward,
.ios-shop-hero,
.ios-shop-tile,
.ios-shop-today__card,
.ios-shop-carousel__card,
.cd2-dialog-card.glass-card,
.cd2-auth-card.glass-card,
#cd2Settings .cd2-sheet-panel.glass-card,
#cd2Profile .cd2-sheet-panel.glass-card,
#cd2SigilPicker .cd2-sheet-panel.glass-card,
.platform-card,
.install-guide,
.install-status,
.ios-cards-seg,
.ios-cards-kpi__card,
.ios-cards-pick-bar,
.ios-cards-auto-btn,
.ios-deck-slot,
.ios-col-card,
.cv2-compose__pill {
  position: relative;
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: var(--pd-vp-r, 14px) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  /* No filter / mask / isolation — cheapest path */
  filter: none !important;
  isolation: auto;
}

/* No pseudo layers (was mask-rim + blur bloom) */
.pd-violet-plaque::before,
.pd-violet-plaque::after,
.ios-menu-panel::before,
.ios-menu-panel::after,
.ios-modes-panel::before,
.ios-modes-panel::after,
.ios-rewards-panel::before,
.ios-rewards-panel::after,
.ios-menu-group::before,
.ios-menu-group::after,
.ios-modes-hero::before,
.ios-modes-hero::after,
.ios-modes-group::before,
.ios-modes-group::after,
.ios-modes-event::before,
.ios-modes-event::after,
.ios-rewards-group::before,
.ios-rewards-group::after,
.ios-arenas-slide::before,
.ios-arenas-slide::after,
.ios-arenas-cp::before,
.ios-arenas-cp::after,
.ios-acc-profile::before,
.ios-acc-profile::after,
.ios-acc-group::before,
.ios-acc-group::after,
.ios-friends-add::before,
.ios-friends-add::after,
.ios-friends-invite::before,
.ios-friends-invite::after,
.ios-friends-list::before,
.ios-friends-list::after,
.ios-combos-card::before,
.ios-combos-card::after,
.ios-lb-summary::before,
.ios-lb-summary::after,
.ios-lb-list-host::before,
.ios-lb-list-host::after,
.ios-lb-group::before,
.ios-lb-group::after,
.ios-support-hero::before,
.ios-support-hero::after,
.ios-stats-card::before,
.ios-stats-card::after,
.cd2-dialog-card.glass-card::before,
.cd2-dialog-card.glass-card::after,
#cd2Settings .cd2-sheet-panel.glass-card::before,
#cd2Settings .cd2-sheet-panel.glass-card::after,
.platform-card::before,
.platform-card::after,
.install-guide::before,
.install-guide::after,
.install-status::before,
.install-status::after,
.ios-cards-seg::before,
.ios-cards-seg::after,
.ios-cards-auto-btn::before,
.ios-cards-auto-btn::after,
.ios-cards-kpi__card::before,
.ios-cards-kpi__card::after,
.ios-cards-pick-bar::before,
.ios-cards-pick-bar::after,
.ios-deck-slot::before,
.ios-deck-slot::after,
.ios-col-card::before,
.ios-col-card::after,
.cv2-compose__pill::before,
.cv2-compose__pill::after {
  content: none !important;
  display: none !important;
  filter: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  background: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
}

/* Extra plaque targets: kill leftover ::before/::after fills */
.ios-learn-panel::before,
.ios-learn-panel::after,
.ios-support-panel::before,
.ios-support-panel::after,
.ios-friends-panel::before,
.ios-friends-panel::after,
.ios-friend-chat-panel::before,
.ios-friend-chat-panel::after,
.ios-account-panel::before,
.ios-account-panel::after,
.ios-combos-panel::before,
.ios-combos-panel::after,
.ios-lb-panel::before,
.ios-lb-panel::after,
.ios-stats-panel::before,
.ios-stats-panel::after,
.ios-boxes-panel::before,
.ios-boxes-panel::after,
.ios-boxes-preview-panel::before,
.ios-boxes-preview-panel::after,
.ios-pass-panel::before,
.ios-pass-panel::after,
.ios-quests-panel::before,
.ios-quests-panel::after,
.ios-streak-panel::before,
.ios-streak-panel::after,
.ios-sort-panel::before,
.ios-sort-panel::after,
.ios-bh-panel::before,
.ios-bh-panel::after,
.ios-clan-panel::before,
.ios-clan-panel::after,
.ios-deck-slot-actions::before,
.ios-deck-slot-actions::after,
.ios-bresult-sheet::before,
.ios-bresult-sheet::after,
.ios-rewards-hero::before,
.ios-rewards-hero::after,
.ios-arenas-summary::before,
.ios-arenas-summary::after,
.ios-boxes-chest::before,
.ios-boxes-chest::after,
.ios-boxes-empty::before,
.ios-boxes-empty::after,
.ios-boxes-all-done::before,
.ios-boxes-all-done::after,
.ios-pass-hero::before,
.ios-pass-hero::after,
.ios-pass-featured::before,
.ios-pass-featured::after,
.ios-combos-group::before,
.ios-combos-group::after,
.ios-combos-info::before,
.ios-combos-info::after,
.ios-combos-detail::before,
.ios-combos-detail::after,
.ios-quests-summary::before,
.ios-quests-summary::after,
.ios-quests-group::before,
.ios-quests-group::after,
.ios-streak-summary::before,
.ios-streak-summary::after,
.ios-streak-hero::before,
.ios-streak-hero::after,
.ios-streak-history::before,
.ios-streak-history::after,
.ios-streak-next::before,
.ios-streak-next::after,
.ios-sort-group::before,
.ios-sort-group::after,
.ios-bh-card::before,
.ios-bh-card::after,
.ios-bh-empty::before,
.ios-bh-empty::after,
.ios-clan-hero::before,
.ios-clan-hero::after,
.ios-clan-info-card::before,
.ios-clan-info-card::after,
.ios-bresult-trophy::before,
.ios-bresult-trophy::after,
.ios-bresult-progress::before,
.ios-bresult-progress::after,
.ios-shop-hero::before,
.ios-shop-hero::after,
.ios-shop-tile::before,
.ios-shop-tile::after,
.ios-shop-today__card::before,
.ios-shop-today__card::after,
.ios-shop-carousel__card::before,
.ios-shop-carousel__card::after,
.cd2-auth-card.glass-card::before,
.cd2-auth-card.glass-card::after,
#cd2Profile .cd2-sheet-panel.glass-card::before,
#cd2Profile .cd2-sheet-panel.glass-card::after,
#cd2SigilPicker .cd2-sheet-panel.glass-card::before,
#cd2SigilPicker .cd2-sheet-panel.glass-card::after {
  content: none !important;
  display: none !important;
  filter: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  background: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
}

/* ---- Sheet panels: violet plaque (replaces flat black) ---- */
html.pd-v2 #cd2Root #cd2Menu .ios-menu-panel,
html.pd-v2 #cd2Root #cd2Modes .ios-modes-panel,
html.pd-v2 #cd2Root #cd2Rewards .ios-rewards-panel,
html.pd-v2 #cd2Root #cd2Learn .ios-learn-panel,
html.pd-v2 #cd2Root #cd2Support .ios-support-panel,
html.pd-v2 #cd2Root #cd2Friends .ios-friends-panel,
html.pd-v2 #cd2Root #cd2FriendChat .ios-friend-chat-panel,
html.pd-v2 #cd2Root #cd2Account .ios-account-panel,
html.pd-v2 #cd2Root #cd2Combinations .ios-combos-panel,
html.pd-v2 #cd2Root #cd2Leaderboard .ios-lb-panel,
html.pd-v2 #cd2Root #cd2Stats .ios-stats-panel,
html.pd-v2 #cd2Root #cd2SurpriseBoxes .ios-boxes-panel,
html.pd-v2 #cd2Root #cd2BoxPreview .ios-boxes-preview-panel,
html.pd-v2 #cd2Root #cd2SeasonPass .ios-pass-panel,
html.pd-v2 #cd2Root #cd2ChampionPath .ios-pass-panel,
html.pd-v2 #cd2Root #cd2ArenaGlory .ios-pass-panel,
html.pd-v2 #cd2Root #cd2GoldPass .ios-pass-panel,
html.pd-v2 #cd2Root #cd2DailyQuests .ios-quests-panel,
html.pd-v2 #cd2Root #cd2LoginStreak .ios-streak-panel,
html.pd-v2 #cd2Root #cd2SortSheet .ios-sort-panel,
html.pd-v2 #cd2Root #cd2BattleHistory .ios-bh-panel,
html.pd-v2 #cd2Root #cd2ClanDetails .ios-clan-panel,
html.pd-v2 #cd2Root #cd2DeckSlotActions .ios-deck-slot-actions,
html.pd-v2 #cd2Root #cd2Settings .cd2-sheet-panel,
html.pd-v2 #cd2Root #cd2Profile .cd2-sheet-panel,
html.pd-v2 #cd2Root #cd2SigilPicker .cd2-sheet-panel,
html.pd-v2 #cd2Root #cd2BattleResult .ios-bresult-sheet,
html.pd-v2 #cd2Root #cd2Auth .cd2-auth-card,
html.pd-v2 #cd2Root #cd2Dialog .cd2-dialog-card {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  filter: none !important;
  border-top: none !important;
}

/* Modes special-event cards = violet plaque */
html.pd-v2 #cd2Root #cd2Modes .ios-modes-event {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
}

/* Remaining inner cards / groups / heroes across sheets + tabs */
html.pd-v2 #cd2Root .ios-rewards-hero,
html.pd-v2 #cd2Root .ios-learn-panel .ios-menu-group,
html.pd-v2 #cd2Root .ios-boxes-chest,
html.pd-v2 #cd2Root .ios-boxes-empty,
html.pd-v2 #cd2Root .ios-boxes-all-done,
html.pd-v2 #cd2Root .ios-pass-hero,
html.pd-v2 #cd2Root .ios-pass-featured,
html.pd-v2 #cd2Root .ios-combos-group,
html.pd-v2 #cd2Root .ios-combos-info,
html.pd-v2 #cd2Root .ios-combos-detail,
html.pd-v2 #cd2Root .ios-quests-summary,
html.pd-v2 #cd2Root .ios-quests-group,
html.pd-v2 #cd2Root .ios-streak-summary,
html.pd-v2 #cd2Root .ios-streak-hero,
html.pd-v2 #cd2Root .ios-streak-history,
html.pd-v2 #cd2Root .ios-streak-next,
html.pd-v2 #cd2Root .ios-sort-group,
html.pd-v2 #cd2Root .ios-bh-card,
html.pd-v2 #cd2Root .ios-bh-empty,
html.pd-v2 #cd2Root .ios-clan-hero,
html.pd-v2 #cd2Root .ios-clan-info-card,
html.pd-v2 #cd2Root .ios-arenas-summary,
html.pd-v2 #cd2Root .ios-bresult-trophy,
html.pd-v2 #cd2Root .ios-bresult-progress,
html.pd-v2 #cd2Root .ios-bresult-reward,
html.pd-v2 #cd2Root .ios-shop-hero,
html.pd-v2 #cd2Root .ios-shop-tile,
html.pd-v2 #cd2Root .ios-shop-today__card,
html.pd-v2 #cd2Root .ios-shop-carousel__card {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  filter: none !important;
}

html.pd-v2 #cd2Root #cd2Arenas .ios-arenas-panel {
  background: #0c0a12 !important;
  background-color: #0c0a12 !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 22px 22px 0 0 !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45) !important;
  inset: auto !important;
  top: auto !important;
  bottom: auto !important;
  height: min(88dvh, 760px) !important;
  max-height: 88dvh !important;
}

html.pd-v2 #cd2Root .ios-arenas-done {
  display: none !important;
}

html.pd-v2 #cd2Root .cd2-sheet-bg-video-wrap,
html.pd-v2 #cd2Root .cd2-sheet-bg-video {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.pd-v2 #cd2Root #cd2Arenas .ios-arenas-chrome {
  background: transparent !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-bottom: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  box-shadow: var(--pd-vp-shadow) !important;
}

html.pd-v2 #cd2Root #cd2Menu .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2Friends .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2FriendChat .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2Account .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2Modes .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2Rewards .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2Learn .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2Support .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2Arenas .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2Combinations .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2Leaderboard .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2Stats .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2SurpriseBoxes .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2BoxPreview .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2SeasonPass .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2ChampionPath .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2ArenaGlory .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2GoldPass .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2DailyQuests .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2LoginStreak .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2SortSheet .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2BattleHistory .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2ClanDetails .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2DeckSlotActions .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2Settings .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2Profile .cd2-sheet-backdrop,
html.pd-v2 #cd2Root #cd2SigilPicker .cd2-sheet-backdrop {
  background: rgba(0, 0, 0, 0.85) !important;
}

html.pd-v2 #cd2Root #cd2Dialog {
  background: rgba(0, 0, 0, 0.92) !important;
}

html.pd-v2 #cd2Root .cd2-menu-ring,
html.pd-v2 #cd2Root .cd2-menu-ring__video {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.ios-menu-group {
  overflow: hidden;
  contain: layout style;
}

.ios-modes-hero,
.ios-modes-group,
.ios-modes-event,
.ios-rewards-group,
.ios-arenas-slide,
.ios-arenas-cp,
.ios-acc-group,
.ios-friends-list,
.ios-lb-summary,
.ios-lb-list-host,
.ios-lb-group,
.ios-support-hero,
.ios-stats-card,
#cd2Settings .cd2-sheet-panel.glass-card {
  overflow: hidden;
  contain: layout style;
}

.ios-arenas-slide--current {
  box-shadow:
    var(--pd-vp-inset),
    0 0 0 1px rgba(231, 200, 255, 0.35),
    0 0 28px rgba(158, 101, 255, 0.42),
    0 10px 28px rgba(0, 0, 0, 0.48) !important;
}

.ios-acc-profile,
.ios-friends-add,
.ios-friends-invite,
.ios-combos-card,
.cd2-dialog-card.glass-card,
.platform-card,
.install-guide,
.install-status {
  overflow: visible;
  z-index: 0;
}

.ios-acc-group--tertiary,
.ios-acc-group--dev,
.ios-combos-card--named,
.ios-combos-card--premium,
.ios-combos-card--mod {
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
}

.cd2-dialog-card.glass-card,
.platform-card,
.install-guide,
.install-status {
  color: #fff;
}

html.ios-install-page,
body.install-body {
  background: #000 !important;
  background-image: none !important;
}

body.install-body {
  background: #000 !important;
  background-image: none !important;
}

.platform-card.is-active {
  box-shadow:
    var(--pd-vp-inset),
    0 0 0 1px rgba(231, 200, 255, 0.45),
    0 0 24px rgba(158, 101, 255, 0.4),
    0 10px 28px rgba(0, 0, 0, 0.48) !important;
  color: #fff !important;
}

/* ---- Cards screen: tabs / KPI / sigil tiles ---- */
html.pd-v2 #cd2Root .ios-cards-seg {
  gap: 0;
  padding: 4px !important;
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 17px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
}

html.pd-v2 #cd2Root .ios-cards-seg__btn {
  color: rgba(235, 235, 245, 0.48) !important;
  min-height: var(--ios-cards-seg-h, 48px) !important;
  font-size: 16px !important;
  padding: 7px 17px !important;
  border-radius: 13px !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

html.pd-v2 #cd2Root .ios-cards-seg__btn.active {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(180, 138, 240, 0.45) 0%, rgba(98, 71, 150, 0.58) 100%) !important;
  background-image: linear-gradient(180deg, rgba(180, 138, 240, 0.45) 0%, rgba(98, 71, 150, 0.58) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(236, 205, 255, 0.28),
    0 4px 12px rgba(90, 42, 150, 0.28) !important;
}

html.pd-v2 #cd2Root .ios-cards-auto-btn {
  overflow: hidden;
  contain: layout style;
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 12px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow:
    inset 0 1px 0 rgba(236, 205, 255, 0.22),
    var(--pd-vp-shadow) !important;
  color: #fff !important;
  filter: none !important;
}

html.pd-v2 #cd2Root .ios-cards-auto-btn > * {
  position: relative;
  z-index: 1;
}

html.pd-v2 #cd2Root .ios-cards-auto-btn:active {
  background-image:
    linear-gradient(180deg, rgba(180, 138, 240, 0.35) 0%, rgba(98, 71, 150, 0.5) 100%),
    var(--pd-vp-rim) !important;
  transform: scale(0.97);
}

html.pd-v2 #cd2Root .ios-cards-kpi__card {
  overflow: hidden;
  contain: layout style;
}

html.pd-v2 #cd2Root .ios-cards-kpi__card--accent .ios-cards-kpi__value,
html.pd-v2 #cd2Root .ios-cards-kpi__stat--accent .ios-cards-kpi__value {
  color: #e9d5ff !important;
}

html.pd-v2 #cd2Root .ios-cards-kpi__card > * {
  position: relative;
  z-index: 1;
}

/* Cards pick/place mode banner plaque */
html.pd-v2 #cd2Root .ios-cards-pick-bar {
  overflow: hidden;
  contain: layout style;
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: var(--pd-vp-r, 14px) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  filter: none !important;
}

html.pd-v2 #cd2Root .ios-cards-pick-bar > * {
  position: relative;
  z-index: 1;
}

html.pd-v2 #cd2Root .ios-cards-pick-bar__hint {
  color: #f5f0ff !important;
}

html.pd-v2 #cd2Root .ios-cards-pick-bar__hint b {
  color: #e9d5ff !important;
  font-weight: 800;
}

html.pd-v2 #cd2Root .ios-cards-pick-bar__cancel {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 11px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow:
    inset 0 1px 0 rgba(236, 205, 255, 0.22),
    0 4px 12px rgba(90, 42, 150, 0.28) !important;
  color: #fff !important;
  filter: none !important;
}

html.pd-v2 #cd2Root .ios-cards-pick-bar__cancel:active {
  background-image:
    linear-gradient(180deg, rgba(180, 138, 240, 0.35) 0%, rgba(98, 71, 150, 0.5) 100%),
    var(--pd-vp-rim) !important;
  transform: scale(0.97);
}

/* Clan top info plaque — fully tappable */
html.pd-v2 #cd2Root .cv2-topbar__plaque {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: var(--pd-vp-r, 14px) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  filter: none !important;
}

html.pd-v2 #cd2Root .cv2-topbar__plaque > * {
  position: relative;
  z-index: 1;
}

/* Clan chat compose plaque */
html.pd-v2 #cd2Root .cv2-compose__pill {
  overflow: visible;
  min-height: 44px;
  height: auto;
  padding: 4px 4px 4px 6px !important;
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: var(--pd-vp-r, 14px) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  filter: none !important;
}

html.pd-v2 #cd2Root .cv2-compose__pill:focus-within {
  box-shadow:
    var(--pd-vp-inset),
    0 0 0 1px rgba(231, 200, 255, 0.35),
    0 0 20px rgba(158, 101, 255, 0.32),
    0 10px 24px rgba(0, 0, 0, 0.48) !important;
}

html.pd-v2 #cd2Root .cv2-compose__pill > * {
  position: relative;
  z-index: 1;
}

html.pd-v2 #cd2Root .cv2-compose__emoji {
  color: #e9d5ff;
  background: transparent !important;
}

html.pd-v2 #cd2Root .cv2-compose__emoji svg,
html.pd-v2 #cd2Root .fcv2-compose__emoji svg {
  display: block;
  width: 22px;
  height: 22px;
}

html.pd-v2 #cd2Root .cv2-compose__emoji.active,
html.pd-v2 #cd2Root .fcv2-compose__emoji.active {
  color: #fff;
  background: rgba(191, 90, 242, 0.22) !important;
}

html.pd-v2 #cd2Root .cv2-compose__cardreq {
  color: #e9d5ff;
  background: transparent !important;
}

html.pd-v2 #cd2Root .cv2-compose__cardreq:active {
  color: #fff;
  background: rgba(191, 90, 242, 0.22) !important;
}

html.pd-v2 #cd2Root .fcv2-compose__pill {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: var(--pd-vp-r, 14px) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
}

html.pd-v2 #cd2Root .fcv2-compose__emoji {
  color: #e9d5ff;
  background: transparent !important;
}

html.pd-v2 #pdLegacyMount #clanMemberModal .sheet-card,
html.pd-v2 #clanMemberModal .sheet-card {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 18px 18px 0 0 !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
}

html.pd-v2 #pdLegacyMount #clanMemberModal .player-card-actions .btn,
html.pd-v2 #clanMemberModal .player-card-actions .btn {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 12px !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  color: #f5f0ff !important;
}

/* ---- Sigil info modal → bottom sheet with handle ---- */
html.pd-v2-engine #pdLegacyMount #sigilInfoModal.active,
html.pd-v2 #sigilInfoModal.active {
  background: rgba(0, 0, 0, 0.72) !important;
  align-items: flex-end !important;
  justify-content: stretch !important;
  padding: 0 !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-stack,
html.pd-v2 #sigilInfoModal .sigil-info-stack {
  width: 100% !important;
  max-width: 100% !important;
  align-self: flex-end !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal.active .sigil-info-stack,
html.pd-v2 #sigilInfoModal.active .sigil-info-stack {
  transform: translate3d(0, 0, 0) !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal:not(.active) .sigil-info-stack,
html.pd-v2 #sigilInfoModal:not(.active) .sigil-info-stack {
  transform: translate3d(0, 110%, 0) !important;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1) !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal.is-dragging .sigil-info-stack,
html.pd-v2 #sigilInfoModal.is-dragging .sigil-info-stack {
  transition: none !important;
  transform: translate3d(0, var(--cd2-sheet-dy, 0px), 0) !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal.active .sigil-info-card,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal.active .card.sigil-info-card,
html.pd-v2-engine #pdLegacyMount > #app.pd-v2-overlay-host #sigilInfoModal.active .card,
html.pd-v2 #sigilInfoModal.active .sigil-info-card {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 28px 28px 0 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  filter: none !important;
  color: #fff !important;
  width: 100% !important;
  max-width: 100% !important;
  height: min(88dvh, 760px) !important;
  max-height: 88dvh !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 12px 14px calc(8px + var(--safe-bottom, 0px)) !important;
  margin: 0 !important;
  transform: none !important;
}

@media (min-width: 431px) {
  html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-stack,
  html.pd-v2 #sigilInfoModal .sigil-info-stack {
    max-width: 390px !important;
    margin: 0 auto !important;
  }
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-card::before,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-card::after {
  content: none !important;
  display: none !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal #sigilInfoName,
html.pd-v2 #sigilInfoModal #sigilInfoName {
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  paint-order: normal !important;
  color: #fff !important;
  font-weight: 800 !important;
}

/* Shared violet plaque recipe for every chip / panel / button inside the sheet */
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-level,
html.pd-v2 #sigilInfoModal .sigil-info-level,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-tag,
html.pd-v2 #sigilInfoModal .sigil-info-tag,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-slide__inner,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-slide__inner--desc,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-slide__inner--demo,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-slide__inner--stats,
html.pd-v2 #sigilInfoModal .sigil-info-slide__inner,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-carousel,
html.pd-v2 #sigilInfoModal .sigil-info-carousel,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-shards--foot .sigil-card-progress,
html.pd-v2 #sigilInfoModal .sigil-info-shards--foot .sigil-card-progress,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-btn--upgrade,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-btn--deck,
html.pd-v2 #sigilInfoModal .sigil-info-btn--upgrade,
html.pd-v2 #sigilInfoModal .sigil-info-btn--deck,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-close-btn,
html.pd-v2 #sigilInfoModal .sigil-info-close-btn,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-upgrade-pick__card,
html.pd-v2 #sigilInfoModal .sigil-upgrade-pick__card,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-upgrade-pick__actions .btn,
html.pd-v2 #sigilInfoModal .sigil-upgrade-pick__actions .btn,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-demo__banner,
html.pd-v2 #sigilInfoModal .sigil-demo__banner,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-demo__result,
html.pd-v2 #sigilInfoModal .sigil-demo__result,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-demo__hint,
html.pd-v2 #sigilInfoModal .sigil-demo__hint,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-demo__overlay-banner,
html.pd-v2 #sigilInfoModal .sigil-demo__overlay-banner {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: var(--pd-vp-r, 14px) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  filter: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: none !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-level,
html.pd-v2 #sigilInfoModal .sigil-info-level,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-tag,
html.pd-v2 #sigilInfoModal .sigil-info-tag {
  border-radius: 12px !important;
  padding: 5px 12px !important;
  font-weight: 700 !important;
  box-shadow: var(--pd-vp-inset), 0 0 10px rgba(158, 101, 255, 0.22) !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-tag--rarity,
html.pd-v2 #sigilInfoModal .sigil-info-tag--rarity,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-tag--rarity.rarity-common,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-tag--rarity.rarity-rare,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-tag--rarity.rarity-epic,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-tag--rarity.rarity-legendary,
html.pd-v2 #sigilInfoModal .sigil-info-tag--rarity.rarity-common,
html.pd-v2 #sigilInfoModal .sigil-info-tag--rarity.rarity-rare,
html.pd-v2 #sigilInfoModal .sigil-info-tag--rarity.rarity-epic,
html.pd-v2 #sigilInfoModal .sigil-info-tag--rarity.rarity-legendary,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-tag--type,
html.pd-v2 #sigilInfoModal .sigil-info-tag--type {
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  color: #fff !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-carousel,
html.pd-v2 #sigilInfoModal .sigil-info-carousel {
  min-height: min(320px, 42dvh) !important;
  max-height: min(560px, 64dvh) !important;
  border-radius: 18px !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-slide__inner,
html.pd-v2 #sigilInfoModal .sigil-info-slide__inner {
  border-radius: 16px !important;
  box-shadow: var(--pd-vp-inset), 0 0 18px rgba(122, 91, 182, 0.18) !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-dot.is-active,
html.pd-v2 #sigilInfoModal .sigil-info-dot.is-active {
  background: #c49aff !important;
  box-shadow: 0 0 10px rgba(196, 154, 255, 0.7) !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-shards--foot .sigil-card-progress,
html.pd-v2 #sigilInfoModal .sigil-info-shards--foot .sigil-card-progress {
  border-radius: 14px !important;
  width: 100% !important;
  margin: 0 !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-shards--foot .sigil-shard-bar,
html.pd-v2 #sigilInfoModal .sigil-info-shards--foot .sigil-shard-bar {
  background: linear-gradient(180deg, rgba(40, 28, 68, 0.95), rgba(18, 10, 36, 0.98)) !important;
  border: 0.5px solid rgba(214, 160, 255, 0.28) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45) !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-shards--foot .sigil-shard-bar > div,
html.pd-v2 #sigilInfoModal .sigil-info-shards--foot .sigil-shard-bar > div,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-shards--foot .sigil-card-progress.sigil-shard-bar--need .sigil-shard-bar > div,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-shards--foot .sigil-card-progress.sigil-shard-bar--ready .sigil-shard-bar > div,
html.pd-v2 #sigilInfoModal .sigil-info-shards--foot .sigil-card-progress.sigil-shard-bar--need .sigil-shard-bar > div,
html.pd-v2 #sigilInfoModal .sigil-info-shards--foot .sigil-card-progress.sigil-shard-bar--ready .sigil-shard-bar > div {
  background: linear-gradient(180deg, #e9d5ff 0%, #c49aff 40%, #8b5cf6 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 12px rgba(196, 154, 255, 0.55) !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-shards--foot .sigil-card-upgrade-arrow,
html.pd-v2 #sigilInfoModal .sigil-info-shards--foot .sigil-card-upgrade-arrow {
  background: linear-gradient(180deg, #e9d5ff, #8b5cf6) !important;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 0 8px rgba(196, 154, 255, 0.5)) !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-btn--upgrade,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-btn--deck,
html.pd-v2 #sigilInfoModal .sigil-info-btn--upgrade,
html.pd-v2 #sigilInfoModal .sigil-info-btn--deck,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-close-btn,
html.pd-v2 #sigilInfoModal .sigil-info-close-btn,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-upgrade-pick__actions .btn,
html.pd-v2 #sigilInfoModal .sigil-upgrade-pick__actions .btn {
  min-height: 48px !important;
  border-radius: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-btn--upgrade:disabled,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-btn--deck:disabled,
html.pd-v2 #sigilInfoModal .sigil-info-btn--upgrade:disabled,
html.pd-v2 #sigilInfoModal .sigil-info-btn--deck:disabled {
  opacity: 0.45 !important;
  filter: none !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .close-x,
html.pd-v2 #sigilInfoModal .close-x,
html.pd-v2-engine #pdLegacyMount #sigilInfoModal .modal-card-close,
html.pd-v2 #sigilInfoModal .modal-card-close {
  display: none !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-close-btn,
html.pd-v2 #sigilInfoModal .sigil-info-close-btn {
  display: none !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .sigil-info-head,
html.pd-v2 #sigilInfoModal .sigil-info-head {
  padding-right: 0 !important;
}

html.pd-v2-engine #pdLegacyMount #sigilInfoModal .ios-sigil-info-grabber,
html.pd-v2 #sigilInfoModal .ios-sigil-info-grabber {
  width: 96px !important;
  height: 42px !important;
  margin: 0 auto 4px !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* Clan chat plaques + send + select/create violet */
html.pd-v2 #cd2Root .cv2-compose__send,
html.pd-v2 #cd2Root .fcv2-compose__send {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 12px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  color: #f3e8ff !important;
  filter: none !important;
}

html.pd-v2 #cd2Root .cv2-compose__send svg {
  margin-left: 1px;
  transform: none;
}

html.pd-v2 #cd2Root .cv2-bubble,
html.pd-v2 #cd2Root .fcv2-bubble {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 16px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  color: #f5f0ff !important;
  filter: none !important;
}

/* Per-sender plaque tint — --chat-sender-h from JS (stable hash of userId) */
html.pd-v2 #cd2Root .cv2-bubble--sender,
html.pd-v2 #cd2Root .fcv2-bubble--sender {
  --pd-vp-top-color: hsla(var(--chat-sender-h, 268), 50%, 50%, 0.76);
  --pd-vp-top-mid: hsla(var(--chat-sender-h, 268), 38%, 33%, 0.42);
  --pd-vp-base-0: hsl(var(--chat-sender-h, 268), 36%, 35%);
  --pd-vp-base-1: hsl(var(--chat-sender-h, 268), 38%, 26%);
  --pd-vp-base-2: hsl(var(--chat-sender-h, 268), 34%, 18%);
  --pd-vp-base-3: hsl(var(--chat-sender-h, 268), 38%, 22%);
  --pd-vp-rim-0: hsl(var(--chat-sender-h, 268), 22%, 66%);
  --pd-vp-rim-1: hsl(var(--chat-sender-h, 268), 62%, 82%);
  --pd-vp-rim-2: hsl(var(--chat-sender-h, 268), 16%, 34%);
  --pd-vp-rim-3: hsl(var(--chat-sender-h, 268), 24%, 58%);
  --pd-vp-rim-glow-a: 0.38;
  --pd-vp-glow-a: 0.12;
}

html.pd-v2 #cd2Root .cv2-bubble--mine,
html.pd-v2 #cd2Root .fcv2-bubble--mine {
  background-image:
    linear-gradient(
      180deg,
      hsla(var(--chat-sender-h, 350), 70%, 78%, 0.28) 0%,
      hsla(var(--chat-sender-h, 350), 52%, 44%, 0.12) 100%
    ),
    var(--pd-vp-fill),
    var(--pd-vp-rim) !important;
}

/* Sent sticker messages — same violet plaque as text bubbles, tight even padding */
html.pd-v2 #cd2Root .cv2-bubble--sticker,
html.pd-v2 #cd2Root .fcv2-bubble--sticker {
  padding: 8px 8px 6px !important;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: 100%;
}

html.pd-v2 #cd2Root .cv2-bubble--sticker .cv2-bubble__foot,
html.pd-v2 #cd2Root .fcv2-bubble--sticker .fcv2-bubble__foot {
  align-self: flex-end;
  margin-top: 0;
  width: 100%;
}

html.pd-v2 #cd2Root .cv2-bubble--sticker .chat-sticker-shell:not(.sticker-pick--framed),
html.pd-v2 #cd2Root .fcv2-bubble--sticker .chat-sticker-shell:not(.sticker-pick--framed) {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
}

html.pd-v2 #cd2Root .cv2-bubble--sticker .chat-sticker-shell--image .chat-sticker-img,
html.pd-v2 #cd2Root .fcv2-bubble--sticker .chat-sticker-shell--image .chat-sticker-img {
  background: transparent !important;
  border-radius: 10px !important;
}

html.pd-v2 #cd2Root .cv2-bubble--sticker .chat-sticker-shell--white-bg .chat-sticker-img,
html.pd-v2 #cd2Root .fcv2-bubble--sticker .chat-sticker-shell--white-bg .chat-sticker-img {
  background: rgba(255, 255, 255, 0.92) !important;
}

html.pd-v2 #cd2Root .cv2-reply-bar__inner,
html.pd-v2 #cd2Root .cv2-card,
html.pd-v2 #cd2Root .cv2-card--shard,
html.pd-v2 #cd2Root .cv2-card--vote,
html.pd-v2 #cd2Root .cv2-card--2v2,
html.pd-v2 #cd2Root .cv2-quote {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 14px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  filter: none !important;
}

html.pd-v2 #cd2Root .cv2-topbar__plaque {
  min-height: 72px !important;
  margin-top: 0 !important;
  transform: translateX(-15px);
}

html.pd-v2 #cd2Root .cv2-topbar__plaque:active {
  transform: translateX(-15px) scale(0.985);
}

html.pd-v2 #cd2Root .screen[data-screen="clan"] .cd2-clan-row,
html.pd-v2 #cd2Root .screen[data-screen="clan"] .cd2-clan-create,
html.pd-v2 #cd2Root .screen[data-screen="clan"] .cd2-clan-actions,
html.pd-v2 #cd2Root .screen[data-screen="clan"] .cd2-empty-state.cd2-clan-noclan,
html.pd-v2 #cd2Root #cd2ClanDetails .ios-clan-settings-group,
html.pd-v2 #cd2Root #cd2ClanDetails .ios-clan-hero,
html.pd-v2 #cd2Root #cd2ClanDetails .ios-clan-info-card,
html.pd-v2 #cd2Root #cd2ClanDetails .ios-clan-member {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: var(--pd-vp-r, 14px) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  filter: none !important;
}

html.pd-v2 #cd2Root .screen[data-screen="clan"] .cd2-empty-state.cd2-clan-noclan {
  padding: 18px 16px !important;
  text-align: left !important;
}

html.pd-v2 #cd2Root .screen[data-screen="clan"] .cd2-clan-search,
html.pd-v2 #cd2Root #cd2ClanDetails .ios-clan-field__input {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 12px !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  color: #fff !important;
}

html.pd-v2 #cd2Root .ios-clan-seg-toggle,
html.pd-v2 #cd2Root .cd2-clan-privacy-toggle {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
}

html.pd-v2 #cd2Root .cv2-react,
html.pd-v2 #cd2Root .cv2-act {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
}

/* Sticker send plaque + join/leave system plaques */
html.pd-v2 #cd2Root .cd2-clan-sticker-tray,
html.pd-v2 #cd2Root .fcv2-sticker-tray,
html.pd-v2 #cd2Root .cv2-sys {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: var(--pd-vp-r, 14px) !important;
  border-top-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  filter: none !important;
}

html.pd-v2 #cd2Root .cv2-sys {
  color: rgba(245, 240, 255, 0.82) !important;
}

html.pd-v2 #cd2Root .cv2-sys small {
  color: rgba(235, 225, 255, 0.55) !important;
}

/* Sticker selection window — violet picks + deck chrome */
html.pd-v2 #cd2Root .pd-sticker-tray {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

html.pd-v2 #cd2Root .pd-sticker-tray__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

html.pd-v2 #cd2Root .pd-sticker-tray__title,
html.pd-v2 #cd2Root .pd-sticker-tray__rest-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(235, 225, 255, 0.62);
}

html.pd-v2 #cd2Root .pd-sticker-tray__edit,
html.pd-v2 #cd2Root .pd-sticker-tray__save,
html.pd-v2 #cd2Root .sticker-pick,
html.pd-v2 #cd2Root .sticker-tray-page-btn {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 12px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  filter: none !important;
  color: #f3e8ff !important;
}

html.pd-v2 #cd2Root .pd-sticker-tray__edit {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 13px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

html.pd-v2 #cd2Root .pd-sticker-tray__edit.active {
  background-image:
    linear-gradient(180deg, rgba(158, 101, 255, 0.28) 0%, rgba(90, 42, 150, 0.16) 100%),
    var(--pd-vp-fill),
    var(--pd-vp-rim) !important;
}

html.pd-v2 #cd2Root .pd-sticker-tray__edit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 12px !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
}

html.pd-v2 #cd2Root .pd-sticker-tray__edit-bar.hide {
  display: none !important;
}

html.pd-v2 #cd2Root .pd-sticker-tray__hint {
  font-size: 11px;
  color: rgba(235, 225, 255, 0.7);
}

html.pd-v2 #cd2Root .pd-sticker-tray__save {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

html.pd-v2 #cd2Root .sticker-tray-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

html.pd-v2 #cd2Root .sticker-tray-grid--rest {
  padding-bottom: 4px;
}

html.pd-v2 #cd2Root .sticker-pick {
  aspect-ratio: 1;
  min-height: 0;
  padding: 3px !important;
  cursor: pointer;
}

html.pd-v2 #cd2Root .sticker-pick--main {
  background-image:
    linear-gradient(180deg, rgba(158, 101, 255, 0.2) 0%, rgba(90, 42, 150, 0.1) 100%),
    var(--pd-vp-fill),
    var(--pd-vp-rim) !important;
}

html.pd-v2 #cd2Root .sticker-pick--selected {
  outline: 1.5px solid rgba(220, 190, 255, 0.85);
  outline-offset: 1px;
}

html.pd-v2 #cd2Root .sticker-pick--empty {
  opacity: 0.35;
  pointer-events: none;
  box-shadow: none !important;
}

html.pd-v2 #cd2Root .sticker-pick:active {
  transform: scale(0.92);
}

html.pd-v2 #cd2Root .screen[data-screen="clan"] .cd2-clan-sticker-tray,
html.pd-v2 #cd2Root .fcv2-sticker-tray {
  max-height: 260px !important;
}

/* Sticker rarity frames — same rim tokens as sg-card, thinner for tray cells */
html.pd-v2 #cd2Root .sticker-pick--framed,
html.pd-v2 #cd2Root .ios-shop-sticker-frame,
html.pd-v2 #cd2Root .sticker-bubble-shell.sticker-pick--framed,
html.pd-v2 #cd2Root .chat-sticker-shell.sticker-pick--framed {
  border: var(--pd-vp-rim-w, 2.5px) solid transparent !important;
  border-radius: 12px !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  filter: none !important;
}

html.pd-v2 #cd2Root .sticker-pick--common,
html.pd-v2 #cd2Root .ios-shop-sticker-frame.sticker-pick--common,
html.pd-v2 #cd2Root .sticker-bubble-shell.sticker-pick--common,
html.pd-v2 #cd2Root .chat-sticker-shell.sticker-pick--common {
  --pd-vp-rim-w: 2.5px;
  --pd-vp-rim-0: #8e8e98;
  --pd-vp-rim-1: #a8a8b2;
  --pd-vp-rim-2: #4e4e58;
  --pd-vp-rim-3: #70707a;
  --pd-vp-bloom-shadow:
    0 0 6px 1px rgba(110, 110, 120, 0.28),
    0 0 12px 2px rgba(70, 70, 80, 0.14);
  --pd-vp-glow:
    0 0 0 1px rgba(120, 120, 130, 0.4),
    0 0 8px 1px rgba(90, 90, 100, 0.28),
    0 3px 8px rgba(0, 0, 0, 0.35);
  --pd-vp-shadow: var(--pd-vp-inset), var(--pd-vp-bloom-shadow), var(--pd-vp-glow);
}

html.pd-v2 #cd2Root .sticker-pick--rare,
html.pd-v2 #cd2Root .ios-shop-sticker-frame.sticker-pick--rare,
html.pd-v2 #cd2Root .sticker-bubble-shell.sticker-pick--rare,
html.pd-v2 #cd2Root .chat-sticker-shell.sticker-pick--rare {
  --pd-vp-rim-w: 2.75px;
  --pd-vp-rim-0: #8ad4ff;
  --pd-vp-rim-1: #d8f2ff;
  --pd-vp-rim-2: #1a7ad8;
  --pd-vp-rim-3: #4eb0f8;
  --pd-vp-bloom-shadow:
    0 0 8px 2px rgba(60, 180, 255, 0.45),
    0 0 16px 3px rgba(40, 150, 255, 0.22);
  --pd-vp-glow:
    0 0 0 1px rgba(110, 210, 255, 0.55),
    0 0 10px 2px rgba(50, 180, 255, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.35);
  --pd-vp-shadow: var(--pd-vp-inset), var(--pd-vp-bloom-shadow), var(--pd-vp-glow);
}

html.pd-v2 #cd2Root .sticker-pick--epic,
html.pd-v2 #cd2Root .ios-shop-sticker-frame.sticker-pick--epic,
html.pd-v2 #cd2Root .sticker-bubble-shell.sticker-pick--epic,
html.pd-v2 #cd2Root .chat-sticker-shell.sticker-pick--epic {
  --pd-vp-rim-w: 2.75px;
  --pd-vp-rim-0: #e090ff;
  --pd-vp-rim-1: #ffb0ea;
  --pd-vp-rim-2: #9a28d8;
  --pd-vp-rim-3: #f070e0;
  --pd-vp-bloom-shadow:
    0 0 8px 2px rgba(230, 80, 240, 0.45),
    0 0 16px 3px rgba(220, 60, 200, 0.24);
  --pd-vp-glow:
    0 0 0 1px rgba(240, 140, 255, 0.6),
    0 0 10px 2px rgba(220, 70, 240, 0.48),
    0 3px 8px rgba(0, 0, 0, 0.38);
  --pd-vp-shadow: var(--pd-vp-inset), var(--pd-vp-bloom-shadow), var(--pd-vp-glow);
}

html.pd-v2 #cd2Root .sticker-pick--legendary,
html.pd-v2 #cd2Root .ios-shop-sticker-frame.sticker-pick--legendary,
html.pd-v2 #cd2Root .sticker-bubble-shell.sticker-pick--legendary,
html.pd-v2 #cd2Root .chat-sticker-shell.sticker-pick--legendary {
  --pd-vp-rim-w: 3px;
  --pd-vp-rim-0: #ffe08a;
  --pd-vp-rim-1: #40e8ff;
  --pd-vp-rim-2: #ff48c8;
  --pd-vp-rim-3: #b060ff;
  --pd-vp-rim: linear-gradient(
    125deg,
    #ffe9a0 0%,
    #ffd060 12%,
    #40e8ff 28%,
    #ff48c8 52%,
    #c070ff 78%,
    #ffe9a0 100%
  );
  --pd-vp-bloom-shadow:
    0 0 9px 2px rgba(255, 200, 80, 0.42),
    0 0 16px 3px rgba(64, 220, 255, 0.28);
  --pd-vp-glow:
    0 0 0 1px rgba(255, 220, 120, 0.55),
    0 0 10px 2px rgba(255, 72, 200, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.4);
  --pd-vp-shadow: var(--pd-vp-inset), var(--pd-vp-bloom-shadow), var(--pd-vp-glow);
}

html.pd-v2 #cd2Root .sticker-pick--main.sticker-pick--framed {
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
}

html.pd-v2 #cd2Root .ios-shop-sticker-frame {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 4px;
  box-sizing: border-box;
}

html.pd-v2 #cd2Root .ios-shop-sticker-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* Thrown / chat stickers — image inset inside rarity rim */
html.pd-v2 #cd2Root .sticker-bubble-shell--image.sticker-pick--framed,
html.pd-v2 #cd2Root .chat-sticker-shell--image.sticker-pick--framed {
  padding: 3px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  --pd-vp-fill: transparent !important;
}

html.pd-v2 #cd2Root .chat-sticker-shell--image.sticker-pick--framed .chat-sticker-img {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 8px !important;
  overflow: hidden;
}

html.pd-v2 #cd2Root .sticker-bubble-shell--image.sticker-pick--framed .sticker-bubble-img {
  border-radius: 10px;
}



/* ---- Player / friend / clan-member action sheet ---- */
html.pd-v2 #cd2Root #cd2PlayerActions .ios-player-actions-panel {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 22px 22px 0 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  color: #f5f0ff !important;
  padding: 8px 14px calc(14px + var(--safe-bottom, 0px)) !important;
}

html.pd-v2 #cd2Root .ios-player-actions-head {
  text-align: center;
  padding: 4px 8px 10px;
}

html.pd-v2 #cd2Root .ios-player-actions-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff !important;
}

html.pd-v2 #cd2Root .ios-player-actions-sub {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(235, 225, 255, 0.62);
}

html.pd-v2 #cd2Root .ios-player-actions-sub--battle {
  color: #fbbf24;
  font-weight: 800;
}

html.pd-v2 #cd2Root .ios-player-actions-sub.hide {
  display: none !important;
}

html.pd-v2 #cd2Root .ios-player-actions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html.pd-v2 #cd2Root .ios-player-actions-btn {
  display: block;
  width: 100%;
  min-height: 48px;
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 14px !important;
  padding: 12px 14px;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  color: #f5f0ff !important;
  font-family: 'SF Pro Text', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

html.pd-v2 #cd2Root .ios-player-actions-btn:active {
  transform: scale(0.985);
  filter: brightness(1.08);
}

html.pd-v2 #cd2Root .ios-player-actions-btn--danger {
  color: #ff8b8b !important;
}

html.pd-v2 #cd2Root .ios-player-actions-btn--muted {
  color: rgba(235, 225, 255, 0.72) !important;
}

html.pd-v2 #cd2Root .ios-player-actions-btn--spectate {
  color: #ffe9a8 !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
}

/* Clan role titles / settings inputs — never white */
html.pd-v2 #cd2Root #cd2ClanDetails #cd2ClanRoleTitlesWrap,
html.pd-v2 #cd2Root #cd2ClanDetails .ios-clan-settings-group {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
}

html.pd-v2 #cd2Root #cd2ClanDetails .ios-clan-field__input,
html.pd-v2 #cd2Root #cd2ClanDetails #cd2ClanRoleTitlesWrap .ios-clan-field__input,
html.pd-v2 #cd2Root #cd2ClanDetails select.ios-clan-field__input {
  -webkit-appearance: none !important;
  appearance: none !important;
  color-scheme: dark !important;
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 12px !important;
  background-color: #1b0f38 !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #e9d5ff !important;
}

html.pd-v2 #cd2Root #cd2ClanDetails .ios-clan-field__input:-webkit-autofill,
html.pd-v2 #cd2Root #cd2ClanDetails .ios-clan-field__input:-webkit-autofill:hover,
html.pd-v2 #cd2Root #cd2ClanDetails .ios-clan-field__input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #1b0f38 inset !important;
  box-shadow: 0 0 0 1000px #1b0f38 inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #e9d5ff !important;
  transition: background-color 99999s ease-out;
}

html.pd-v2 #cd2Root #cd2ClanDetails .ios-clan-field__label {
  color: rgba(235, 225, 255, 0.62) !important;
}

/* Clan member profile modal → violet bottom sheet + grabber */
html.pd-v2 #pdLegacyMount #clanMemberModal.active,
html.pd-v2 #clanMemberModal.active {
  background: rgba(0, 0, 0, 0.72) !important;
  align-items: flex-end !important;
  justify-content: stretch !important;
  padding: 0 !important;
}

html.pd-v2 #pdLegacyMount #clanMemberModal .clan-member-stack,
html.pd-v2 #clanMemberModal .clan-member-stack {
  width: 100% !important;
  max-width: 100% !important;
  align-self: flex-end !important;
}

html.pd-v2 #pdLegacyMount #clanMemberModal.active .clan-member-stack,
html.pd-v2 #clanMemberModal.active .clan-member-stack {
  transform: translate3d(0, 0, 0) !important;
}

html.pd-v2 #pdLegacyMount #clanMemberModal:not(.active) .clan-member-stack,
html.pd-v2 #clanMemberModal:not(.active) .clan-member-stack {
  transform: translate3d(0, 110%, 0) !important;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1) !important;
}

html.pd-v2 #pdLegacyMount #clanMemberModal.is-dragging .clan-member-stack,
html.pd-v2 #clanMemberModal.is-dragging .clan-member-stack {
  transition: none !important;
  transform: translate3d(0, var(--cd2-sheet-dy, 0px), 0) !important;
}

html.pd-v2 #pdLegacyMount #clanMemberModal .sheet-card,
html.pd-v2 #clanMemberModal .sheet-card {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 22px 22px 0 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  width: 100% !important;
  max-width: 100% !important;
  height: min(88dvh, 760px) !important;
  max-height: 88dvh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 12px 14px calc(12px + var(--safe-bottom, 0px)) !important;
  transform: none !important;
}

html.pd-v2 #pdLegacyMount #clanMemberModal .ios-clan-member-grabber,
html.pd-v2 #clanMemberModal .ios-clan-member-grabber {
  width: 96px !important;
  height: 42px !important;
  margin: 0 auto 4px !important;
  display: grid !important;
  place-items: center !important;
  background: transparent !important;
  border: 0 !important;
}

@media (min-width: 431px) {
  html.pd-v2 #pdLegacyMount #clanMemberModal .clan-member-stack,
  html.pd-v2 #clanMemberModal .clan-member-stack {
    max-width: 390px !important;
    margin: 0 auto !important;
  }
}

/* ---- Clan shard request sheet ---- */
html.pd-v2 #cd2Root #cd2ClanShardRequest .ios-clan-shard-panel {
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 22px 22px 0 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  color: #f5f0ff !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 6px 12px calc(12px + var(--safe-bottom, 0px)) !important;
}

html.pd-v2 #cd2Root .ios-clan-shard-head {
  flex-shrink: 0;
  text-align: center;
  padding: 4px 6px 12px;
}

html.pd-v2 #cd2Root .ios-clan-shard-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f3e8ff !important;
}

html.pd-v2 #cd2Root .ios-clan-shard-hint {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  color: rgba(243, 232, 255, 0.72);
}

html.pd-v2 #cd2Root .ios-clan-shard-limits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

html.pd-v2 #cd2Root .ios-clan-shard-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(196, 154, 255, 0.32);
  background: rgba(0, 0, 0, 0.28);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(236, 205, 255, 0.92);
}

html.pd-v2 #cd2Root .ios-clan-shard-note {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(235, 225, 255, 0.5);
}

html.pd-v2 #cd2Root .ios-clan-shard-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 154, 255, 0.35) transparent;
}

html.pd-v2 #cd2Root .ios-clan-shard-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: max-content !important;
  align-items: start !important;
  gap: 12px !important;
  max-height: none !important;
  padding: 2px 2px 10px;
  margin: 0 !important;
}

html.pd-v2 #cd2Root .ios-clan-shard-grid .clan-shard-empty {
  grid-column: 1 / -1;
  padding: 28px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: rgba(235, 225, 255, 0.62);
}

html.pd-v2 #cd2Root .ios-clan-shard-grid .clan-shard-pick {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 6px 10px !important;
  border: var(--pd-vp-rim-w, 0.5px) solid transparent !important;
  border-radius: 16px !important;
  background-color: transparent !important;
  background-image: var(--pd-vp-fill), var(--pd-vp-rim) !important;
  background-origin: border-box !important;
  background-clip: var(--pd-vp-bg-clip) !important;
  -webkit-background-clip: var(--pd-vp-bg-clip) !important;
  box-shadow: var(--pd-vp-shadow) !important;
  cursor: pointer;
  text-align: inherit;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
}

html.pd-v2 #cd2Root .ios-clan-shard-grid .clan-shard-pick:active {
  transform: scale(0.97);
  filter: brightness(1.08);
}

html.pd-v2 #cd2Root .ios-clan-shard-grid .clan-shard-pick:focus-visible {
  outline: 2px solid rgba(196, 154, 255, 0.75);
  outline-offset: 2px;
}

html.pd-v2 #cd2Root .ios-clan-shard-grid .clan-shard-pick .sigil-card-stack {
  gap: 6px;
}

html.pd-v2 #cd2Root .ios-clan-shard-grid .sigil-card-panel,
html.pd-v2 #cd2Root .ios-clan-shard-grid .sigil-card-overlay {
  overflow: hidden;
  max-width: 100%;
}

html.pd-v2 #cd2Root .ios-clan-shard-grid .sigil-card-lvl {
  display: block;
  max-width: 100%;
  font-size: 11px !important;
  line-height: 1.15 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.pd-v2 #cd2Root .ios-clan-shard-grid .clan-shard-pick__need {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  min-width: 28px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(176, 124, 255, 0.95), rgba(122, 91, 182, 0.92));
  border: 1px solid rgba(236, 205, 255, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: -0.02em;
  color: #fff;
  pointer-events: none;
}
