/* Shared multi-module shell — Dual Clash Fortress Side Wings, Mobile HUD Dock & Custom Tactical Dropdowns */

/* ==========================================================================
   1. Balanced Stage Clearance for Fixed Side Wings on Wide Screens
   ========================================================================== */
@media (min-width: 1400px) {
  .wrap {
    max-width: 1500px;
    padding-inline: 118px;
  }
}
@media (min-width: 1240px) and (max-width: 1399px) {
  .wrap {
    max-width: 1380px;
    padding-left: 112px;
    padding-right: 20px;
  }
}

/* ==========================================================================
   2. Right Fortress Crest Pill in Header (balances Wiki & Progress masthead)
   ========================================================================== */
.mast-crest {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 240, 195, .14) 0%, rgba(12, 19, 32, .42) 100%);
  border: 1.5px solid rgba(245, 185, 56, .45);
  box-shadow: inset 0 1px 0 rgba(255, 244, 204, .25), 0 3px 10px rgba(0, 0, 0, .24);
  color: #f8fafc;
  flex-shrink: 0;
}
.mast-crest img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .42));
}
.mast-crest-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.mast-crest-copy b {
  font-size: .875rem;
  font-weight: 800;
  color: #fde68a;
  letter-spacing: .015em;
}
.mast-crest-copy small {
  font-size: .75rem;
  color: #d4dfec;
}

/* ==========================================================================
   3. Left Fixed Clash Command Totem (>=1240px) -> Bottom Mobile HUD Dock (<1240px)
      Locked in ONE fixed position — NEVER jumps when switching modules!
   ========================================================================== */
.coc-dock-wrap {
  position: fixed;
  top: 50%;
  left: max(12px, calc(50% - 740px));
  transform: translateY(-50%);
  z-index: 55;
  pointer-events: none;
}

.coc-dock {
  pointer-events: auto;
  position: relative;
  width: 94px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 8px 11px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 9px 9px, #f9d571 0 2px, #7c4707 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 9px) 9px, #f9d571 0 2px, #7c4707 2.5px, transparent 3.2px),
    radial-gradient(circle at 9px calc(100% - 9px), #f9d571 0 2px, #7c4707 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), #f9d571 0 2px, #7c4707 2.5px, transparent 3.2px),
    linear-gradient(180deg, #2b3549 0%, #1b2434 52%, #111724 100%);
  border: 2.5px solid #dfa025;
  box-shadow:
    0 0 0 2px #4c2b04,
    0 18px 40px rgba(18, 13, 6, .34),
    0 6px 14px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 241, 184, .5),
    inset 0 -4px 0 rgba(6, 9, 16, .88);
}

/* Molten top rim glint */
.coc-dock::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fff3b0 50%, transparent);
  pointer-events: none;
}

.coc-dock-crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px 0 6px;
  border-bottom: 1px solid rgba(251, 191, 36, .24);
}
.coc-dock-crest img {
  width: 30px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .48));
}
.coc-dock-crest span {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fde68a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.coc-dock-sep {
  height: 1px;
  margin-inline: 10px;
  background: linear-gradient(90deg, transparent 0%, rgba(251, 191, 36, .34) 50%, transparent 100%);
  pointer-events: none;
}

.coc-dock a {
  --plaque-top: #ffdf73;
  --plaque-mid: #f09e15;
  --plaque-bot: #c66a05;
  --plaque-lip: #6c3702;
  --plaque-glow: rgba(251, 191, 36, .52);
  --plaque-text-shadow: 0 1.5px 0 #5b2c02, 0 0 8px rgba(91, 44, 2, .45);

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px 8px;
  border-radius: 14px;
  text-decoration: none;
  color: #cbd7e7;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(10, 15, 26, .48) 100%);
  border: 1.5px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .38);
  transition: transform .18s cubic-bezier(.22, 1.28, .36, 1), background .18s, border-color .18s, box-shadow .18s, color .18s;
  user-select: none;
}

.coc-dock a[data-route="wiki"] {
  --plaque-top: #d890ff;
  --plaque-mid: #9637ee;
  --plaque-bot: #6a1db8;
  --plaque-lip: #390b6a;
  --plaque-glow: rgba(168, 85, 247, .55);
  --plaque-text-shadow: 0 1.5px 0 #31095c, 0 0 8px rgba(49, 9, 92, .45);
}

.coc-dock a[data-route="progress"] {
  --plaque-top: #78ea58;
  --plaque-mid: #24b637;
  --plaque-bot: #138424;
  --plaque-lip: #094913;
  --plaque-glow: rgba(34, 197, 94, .54);
  --plaque-text-shadow: 0 1.5px 0 #084110, 0 0 8px rgba(8, 65, 16, .42);
}

.coc-dock a:focus:not(:focus-visible) { outline: none; }

.coc-dock a:hover:not([aria-current="page"]) {
  color: #ffffff;
  border-color: rgba(251, 191, 36, .48);
  background: linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, rgba(18, 27, 44, .65) 100%);
  transform: translateY(-2px);
}

.coc-dock-art {
  position: relative;
  width: 42px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  z-index: 2;
}
.coc-dock-art::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--plaque-glow) 0%, transparent 72%);
  opacity: 0;
  transform: scale(.75);
  transition: opacity .2s, transform .22s;
  pointer-events: none;
}
.coc-dock-art img {
  position: relative;
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .52));
  transition: transform .22s cubic-bezier(.22, 1.35, .36, 1), filter .2s;
}
.coc-dock a:hover .coc-dock-art::before { opacity: .78; transform: scale(1.1); }
.coc-dock a:hover .coc-dock-art img { transform: translateY(-4px) scale(1.14) rotate(-3deg); }

.coc-dock-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.coc-dock-copy strong {
  font-size: .9375rem;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}
.coc-dock-copy small {
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.15;
  color: #93a6be;
  white-space: nowrap;
}

.coc-dock-pip {
  position: absolute;
  top: -6px;
  right: -4px;
  z-index: 4;
  padding: 1px 6px;
  border-radius: 999px;
  font-style: normal;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 800;
  color: #3d2002;
  background: linear-gradient(180deg, #fff1a8 0%, #f5b423 100%);
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  white-space: nowrap;
}

/* Active Clash 3D Glossy Plaque */
.coc-dock a[aria-current="page"] {
  color: #ffffff;
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(180deg, var(--plaque-top) 0%, var(--plaque-mid) 52%, var(--plaque-bot) 100%);
  border: 1.5px solid rgba(255, 250, 224, .78);
  box-shadow:
    0 5px 0 var(--plaque-lip),
    0 10px 22px rgba(0, 0, 0, .42),
    0 0 18px var(--plaque-glow),
    inset 0 2px 0 rgba(255, 255, 255, .64);
}
.coc-dock a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  right: 4px;
  height: 46%;
  border-radius: 11px 11px 14px 14px / 9px 9px 7px 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .05) 100%);
  pointer-events: none;
  z-index: 1;
}
.coc-dock a[aria-current="page"]:active {
  transform: translateY(2px) scale(1.01);
  box-shadow: 0 1px 0 var(--plaque-lip), 0 4px 10px rgba(0, 0, 0, .35);
}
.coc-dock a[aria-current="page"] .coc-dock-copy strong {
  color: #ffffff;
  text-shadow: var(--plaque-text-shadow);
}
.coc-dock a[aria-current="page"] .coc-dock-copy small {
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .38);
}
.coc-dock a[aria-current="page"] .coc-dock-art::before { opacity: 1; transform: scale(1.18); }
.coc-dock a[aria-current="page"] .coc-dock-art img {
  transform: translateY(-3px) scale(1.14);
  animation: coc-dock-bob 2.8s ease-in-out infinite;
}

@keyframes coc-dock-bob {
  0%, 100% { transform: translateY(-3px) scale(1.14); }
  50% { transform: translateY(-6px) scale(1.16); }
}

/* ==========================================================================
   4. Right Fixed Clash Tactical Wing (Symmetrical on >=1400px widescreen!)
   ========================================================================== */
.coc-wing-right {
  position: fixed;
  top: 50%;
  right: max(12px, calc(50% - 740px));
  transform: translateY(-50%);
  z-index: 50;
  pointer-events: none;
}

.coc-wing-panel {
  pointer-events: auto;
  position: relative;
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  padding: 10px 8px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 9px 9px, #f9d571 0 2px, #7c4707 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 9px) 9px, #f9d571 0 2px, #7c4707 2.5px, transparent 3.2px),
    radial-gradient(circle at 9px calc(100% - 9px), #f9d571 0 2px, #7c4707 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), #f9d571 0 2px, #7c4707 2.5px, transparent 3.2px),
    linear-gradient(180deg, #2b3549 0%, #1b2434 52%, #111724 100%);
  border: 2.5px solid #dfa025;
  box-shadow:
    0 0 0 2px #4c2b04,
    0 18px 40px rgba(18, 13, 6, .3),
    0 6px 14px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 241, 184, .48),
    inset 0 -4px 0 rgba(6, 9, 16, .88);
}
.coc-wing-panel::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fff3b0 50%, transparent);
  pointer-events: none;
}

.coc-wing-crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px 0 4px;
}
.coc-wing-crest img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5));
}
.coc-wing-crest b {
  font-size: .8125rem;
  font-weight: 850;
  color: #fde68a;
  line-height: 1.15;
}
.coc-wing-crest small {
  font-family: var(--mono);
  font-size: .6875rem;
  color: #93a6be;
}

.coc-wing-divider {
  height: 1px;
  margin-inline: 8px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, .34), transparent);
}

.coc-wing-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 7px;
  border-radius: 12px;
  color: #d6e1f0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(10, 15, 26, .48) 100%);
  border: 1.5px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .16s cubic-bezier(.22, 1.3, .36, 1), background .16s, border-color .16s, color .16s;
}
.coc-wing-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .48));
  transition: transform .18s cubic-bezier(.22, 1.35, .36, 1);
}
.coc-wing-btn span {
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}
.coc-wing-btn:hover {
  color: #fffbeb;
  border-color: rgba(251, 191, 36, .56);
  background: linear-gradient(180deg, rgba(251, 191, 36, .22) 0%, rgba(180, 105, 14, .22) 100%);
  transform: translateY(-2px);
}
.coc-wing-btn:hover img { transform: translateY(-2px) scale(1.14); }
.coc-wing-btn:active { transform: translateY(0); }

.coc-wing-top {
  padding-block: 6px;
  color: #fde68a;
}

@media (max-width: 1399px) {
  .coc-wing-right { display: none; }
}
@media (min-width: 1240px) and (max-width: 1399px) {
  .coc-dock-wrap { left: 10px; }
  .coc-dock { width: 88px; padding: 9px 7px; }
}

/* Below 1240px: Left Command Totem morphs smoothly into Floating Bottom Clash HUD Dock */
@media (max-width: 1239px) {
  .coc-dock-wrap {
    top: auto;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    max-width: calc(100vw - 20px);
  }
  .coc-dock {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 20px;
  }
  .coc-dock-crest { display: none; }
  .coc-dock-sep {
    width: 2px;
    height: 28px;
    margin: 0;
    background: linear-gradient(180deg, transparent, rgba(251, 191, 36, .34), transparent);
  }
  .coc-dock a {
    flex-direction: row;
    min-width: 142px;
    height: 52px;
    padding: 0 14px 0 10px;
    gap: 9px;
  }
  .coc-dock-art { margin-top: -10px; }
  .coc-dock-copy { align-items: flex-start; text-align: left; }
  .coc-dock a[aria-current="page"] { transform: translateY(-5px); }
  .coc-dock a[aria-current="page"]:active { transform: translateY(-1px); }
}

/* ==========================================================================
   5. Custom Clash Tactical Dropdown UI (All <select> across all 3 modules)
   ========================================================================== */
select.coc-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.coc-dd-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  min-width: 122px;
  max-width: 100%;
  padding: 5px 6px 5px 12px;
  border-radius: 10px;
  border: 1.5px solid #d4c5aa;
  background: linear-gradient(180deg, #fffefb 0%, #f6efe2 100%);
  color: #1c2432;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  box-shadow: 0 2px 0 #d9ccb4, inset 0 1px 0 #ffffff;
  transition: border-color .15s, box-shadow .15s, background .15s, transform .1s;
  cursor: pointer;
}

.coc-dd-trigger:hover:not(:disabled) {
  border-color: #d9971d;
  background: linear-gradient(180deg, #ffffff 0%, #fff7df 100%);
  box-shadow: 0 2px 0 #e3ba64, 0 4px 12px rgba(217, 151, 29, .16), inset 0 1px 0 #ffffff;
}

.coc-dd-trigger.is-open {
  border-color: #d9971d;
  background: linear-gradient(180deg, #fffdf7 0%, #fef4d4 100%);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .24), 0 2px 0 #d9971d;
}

.coc-dd-trigger:active:not(:disabled) { transform: translateY(1px); }

.coc-dd-trigger.is-disabled,
.coc-dd-trigger:disabled {
  opacity: .56;
  cursor: not-allowed;
  background: #efe8da;
  border-color: #ddd2be;
  box-shadow: none;
}

.coc-dd-trigger.is-placeholder .coc-dd-value {
  color: #6f6657;
  font-weight: 600;
}

.coc-dd-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coc-dd-arrow {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #8a4f06;
  background: linear-gradient(180deg, #fef3c7 0%, #f8d677 100%);
  border: 1px solid #e6b342;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
  transition: transform .18s ease, background .15s, color .15s, border-color .15s;
}
.coc-dd-trigger.is-disabled .coc-dd-arrow {
  background: #e5dccb;
  border-color: #d2c5ae;
  color: #9c917e;
  box-shadow: none;
}
.coc-dd-trigger.is-open .coc-dd-arrow {
  transform: rotate(180deg);
  color: #ffffff;
  background: linear-gradient(180deg, #f5b324 0%, #d47b08 100%);
  border-color: #b46104;
  box-shadow: inset 0 1px 0 rgba(255, 245, 200, .55);
}

/* Dark Fortress Banner Variant (auto-applied inside .pv-banner) */
.coc-dd-trigger.is-dark {
  color: #f8fafc;
  background: linear-gradient(180deg, #273b53 0%, #172536 100%);
  border: 1.5px solid rgba(251, 191, 36, .46);
  box-shadow: 0 2px 0 #0b131e, inset 0 1px 0 rgba(255, 242, 198, .2);
}
.coc-dd-trigger.is-dark:hover:not(:disabled) {
  border-color: #f5b82e;
  background: linear-gradient(180deg, #304763 0%, #1d2e42 100%);
  box-shadow: 0 2px 0 #0b131e, 0 0 14px rgba(251, 191, 36, .24), inset 0 1px 0 rgba(255, 242, 198, .28);
}
.coc-dd-trigger.is-dark.is-open {
  border-color: #fbbf24;
  background: linear-gradient(180deg, #344e6e 0%, #1f3249 100%);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, .28), 0 2px 0 #0b131e;
}
.coc-dd-trigger.is-dark .coc-dd-arrow {
  color: #fde68a;
  background: rgba(245, 158, 11, .22);
  border-color: rgba(251, 191, 36, .45);
  box-shadow: none;
}
.coc-dd-trigger.is-dark.is-open .coc-dd-arrow {
  color: #2c1702;
  background: linear-gradient(180deg, #ffe27a 0%, #f09e16 100%);
  border-color: #fde68a;
}

/* Context sizing */
.cw-range-fields label .coc-dd-trigger,
.pv-tools label .coc-dd-trigger,
.cf-grid label .coc-dd-trigger,
.cf-target .coc-dd-trigger,
.cmp-pick .coc-dd-trigger { width: 100%; }
.cw-inline-select .coc-dd-trigger { min-width: 138px; }
.cw-stat-pick .coc-dd-trigger { min-width: 132px; }
.pv-account-pick .coc-dd-trigger { min-width: 168px; }
.pv-controls label .coc-dd-trigger { min-width: 126px; }

/* Portaled Tactical Obsidian-Gold Dropdown Menu */
.coc-dd-menu {
  position: fixed;
  z-index: 140;
  display: flex;
  flex-direction: column;
  padding: 5px;
  border-radius: 14px;
  background: linear-gradient(180deg, #212f44 0%, #141d2c 100%);
  border: 2px solid #dfa025;
  box-shadow:
    0 0 0 1.5px rgba(74, 41, 4, .82),
    0 18px 40px rgba(8, 13, 24, .48),
    0 4px 12px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 240, 182, .32);
  overflow: hidden;
  transform-origin: top center;
  animation: coc-dd-pop .14s cubic-bezier(.2, .85, .3, 1);
}
.coc-dd-menu.is-up {
  transform-origin: bottom center;
  animation-name: coc-dd-pop-up;
}
@keyframes coc-dd-pop {
  from { opacity: 0; transform: translateY(-5px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes coc-dd-pop-up {
  from { opacity: 0; transform: translateY(5px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.coc-dd-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c88b1e rgba(255, 255, 255, .06);
}
.coc-dd-list::-webkit-scrollbar { width: 6px; }
.coc-dd-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, .05); border-radius: 999px; }
.coc-dd-list::-webkit-scrollbar-thumb { background: #c88b1e; border-radius: 999px; }

.coc-dd-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #e8eff8;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.coc-dd-opt-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coc-dd-opt-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.coc-dd-opt.is-focused:not(:disabled),
.coc-dd-opt:hover:not(:disabled) {
  background: rgba(251, 191, 36, .18);
  border-color: rgba(251, 191, 36, .36);
  color: #fffbeb;
}
.coc-dd-opt.is-selected {
  background: linear-gradient(90deg, rgba(245, 158, 11, .32) 0%, rgba(245, 158, 11, .12) 100%);
  border-color: rgba(251, 191, 36, .56);
  color: #fde68a;
  font-weight: 750;
}
.coc-dd-opt.is-selected .coc-dd-check { color: #fbbf24; }
.coc-dd-opt.is-disabled,
.coc-dd-opt:disabled {
  color: #7c8ea8;
  opacity: .52;
  cursor: not-allowed;
}
.coc-dd-opt.is-disabled .coc-dd-lock { color: #8c9db6; }

/* ==========================================================================
   6. Shared Shell Helpers, Clearances, & Mobile HUD Breakpoint
   ========================================================================== */
.route-status {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface, #fffdf8);
  border: 1.5px solid var(--line, #e2d7c2);
  box-shadow: var(--shadow-card);
  color: var(--muted, #5e5548);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}
.route-status button {
  padding: 6px 12px;
  border-radius: 8px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-weight: 700;
}
.route-status button:hover { background: #fde68a; }

.feature-page {
  padding-top: 16px;
  padding-bottom: 32px;
  min-height: 62vh;
}
.feature-page:focus { outline: none; }

.site-disclaimer {
  margin-top: 8px;
  padding-top: 14px;
  padding-bottom: 34px;
  color: #6e6353;
  font-size: .8125rem;
  line-height: 1.55;
  border-top: 1px solid var(--line, #e2d7c2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}
[data-module="gifts"] .site-disclaimer {
  border-top: 0;
  padding-top: 0;
  margin-top: -10px;
}

@media (max-width: 1239px) {
  .site-disclaimer { padding-bottom: 104px; }
  #toast { bottom: 96px; z-index: 85; }
}
@media (max-width: 1023px) {
  .side.open { z-index: 75; }
  .mast-inner { flex-wrap: wrap; row-gap: 10px; }
  .mast-actions { margin-left: auto; }
  .feature-page { padding-top: 12px; }
}

/* Quick-trial button in #gifts ribbon */
#trial.trial-btn {
  white-space: nowrap;
  color: #14532d;
  background: linear-gradient(180deg, #e7fce9 0%, #c8f5cf 100%);
  border: 1.5px solid #68d483;
  box-shadow: 0 2px 0 #95e0a8;
  font-weight: 750;
}
#trial.trial-btn:hover {
  background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #22c55e;
  color: #14532d;
}
#trial.trial-btn svg { color: #16a34a; }

@media (min-width: 1024px) and (max-width: 1280px) {
  .mast-inner { gap: 10px; }
  .mast-actions { gap: 5px; }
  #trial.trial-btn { padding-inline: 10px; }
  #gifts-page .ribbon { flex-wrap: wrap; row-gap: 8px; }
}

@media (max-width: 767px) {
  .mast .mast-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mast-crest { display: none; }
  .mast .mast-actions { margin: 0; }
  .site-disclaimer { font-size: .78rem; padding-bottom: 94px; }
  .ribbon-actions { flex-wrap: wrap; }
  .pv-account-pick .coc-dd-trigger { flex: 1 1 180px; }

  /* Mobile Native Clash Game Bottom HUD Dock */
  .coc-dock-wrap {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 18px);
    max-width: 410px;
  }
  .coc-dock {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    padding: 5px 6px;
    border-radius: 18px;
  }
  .coc-dock-sep { display: none; }
  .coc-dock a {
    min-width: 0;
    height: 52px;
    padding: 4px 6px 5px;
    gap: 3px;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 12px;
  }
  .coc-dock-art {
    width: 34px;
    height: 30px;
    margin-top: -15px;
  }
  .coc-dock-art img { width: 34px; height: 34px; }
  .coc-dock-copy { align-items: center; text-align: center; }
  .coc-dock-copy strong { font-size: .84375rem; }
  .coc-dock-copy small { display: none; }
  .coc-dock-pip { top: -10px; right: 4px; font-size: .625rem; padding: 0 5px; }
  #toast { bottom: 86px; }
}
@media (max-width: 430px) {
  #gifts-page .ribbon { align-items: stretch; }
  #gifts-page .ribbon-actions { flex-wrap: wrap; }
}
