:root {
  --pcm-gold: #e7a820;
  --pcm-ink: #080807;
  --pcm-panel: rgba(13, 12, 10, 0.98);
  --pcm-line: rgba(231, 168, 32, 0.38);
  --pcm-copy: #d6d0c5;
}

.pcm-lock { overflow: hidden; }
.pcm-shell { position: relative; z-index: 2147483000; }
.pcm-shell[hidden], .pcm-shell [hidden] { display: none !important; }

.pcm-banner {
  position: fixed;
  inset: auto 24px 24px;
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--pcm-line);
  background: linear-gradient(110deg, rgba(8, 8, 7, 0.99), rgba(23, 20, 14, 0.98));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.65), inset 0 1px rgba(255, 211, 113, 0.08);
  color: var(--pcm-copy);
}

.pcm-banner::before, .pcm-panel::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(231, 168, 32, 0.16);
  pointer-events: none;
}

.pcm-banner__signal {
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--pcm-line);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(231, 168, 32, 0.14);
}
.pcm-banner__signal span {
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #72d17c;
  box-shadow: 0 0 16px #72d17c;
  animation: pcm-signal 2.4s ease-in-out infinite;
}

.pcm-kicker {
  margin: 0 0 5px !important;
  color: var(--pcm-gold) !important;
  font: 700 12px/1.2 system-ui, sans-serif !important;
  letter-spacing: 0.18em;
}
.pcm-banner h2, .pcm-panel h2 {
  margin: 0 0 7px;
  color: #fff;
  font: 700 clamp(20px, 2vw, 28px)/1.1 system-ui, sans-serif;
}
.pcm-banner p, .pcm-panel p { margin: 0; color: var(--pcm-copy); line-height: 1.5; }
.pcm-banner a { color: var(--pcm-gold); }
.pcm-banner__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; max-width: 470px; }

.pcm-button, .pcm-open-settings {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--pcm-line);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font: 700 12px/1 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.pcm-button:hover, .pcm-button:focus-visible, .pcm-open-settings:hover, .pcm-open-settings:focus-visible { border-color: var(--pcm-gold); outline: 2px solid transparent; color: #fff; }
.pcm-button--primary { background: var(--pcm-gold); color: #0a0907; border-color: var(--pcm-gold); }
.pcm-button--primary:hover, .pcm-button--primary:focus-visible { color: #0a0907; filter: brightness(1.08); }

.pcm-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(5px); }
.pcm-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(720px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 28px;
  border: 1px solid var(--pcm-line);
  background: var(--pcm-panel);
  box-shadow: 0 30px 100px #000;
  color: var(--pcm-copy);
}
.pcm-panel header, .pcm-panel footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcm-panel > p { position: relative; margin: 12px 0 20px; }
.pcm-panel__close { border: 0; background: transparent; color: #fff; font-size: 34px; cursor: pointer; }
.pcm-choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 15px 0;
  border-top: 1px solid var(--pcm-line);
  color: #fff;
}
.pcm-choice p { margin-top: 5px; font-size: 14px; }
.pcm-choice > span:not(.pcm-switch) { color: var(--pcm-gold); font-size: 12px; text-transform: uppercase; }
.pcm-choice input { position: absolute; opacity: 0; }
.pcm-switch { width: 48px; height: 26px; flex: 0 0 48px; border: 1px solid var(--pcm-line); background: #181713; border-radius: 999px; }
.pcm-switch::after { content: ""; display: block; width: 18px; height: 18px; margin: 3px; border-radius: 50%; background: #827a6c; transition: transform .2s, background .2s; }
.pcm-choice input:checked + .pcm-switch::after { transform: translateX(22px); background: var(--pcm-gold); }
.pcm-choice input:focus-visible + .pcm-switch { outline: 2px solid #fff; outline-offset: 3px; }
.pcm-panel footer { justify-content: flex-end; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--pcm-line); }
.pcm-status { min-height: 1.5em; padding-top: 10px; color: #ffcc6a !important; }

.pcm-embed {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 28px;
  border: 1px dashed var(--pcm-line);
  background: radial-gradient(circle at 50% 50%, rgba(231, 168, 32, 0.08), rgba(0, 0, 0, 0.8));
  text-align: center;
}
.pcm-embed p { margin: 8px 0 18px; }
.pcm-floating-settings { position: fixed; right: 18px; bottom: 18px; z-index: 2147482000; }
.pcm-footer-link { appearance: none; border: 0; background: none; }

@keyframes pcm-signal { 0%, 100% { opacity: .45; transform: scale(.86); } 50% { opacity: 1; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .pcm-banner__signal span { animation: none; } .pcm-switch::after { transition: none; } }
@media (max-width: 860px) {
  .pcm-banner { grid-template-columns: 36px minmax(0, 1fr); inset: auto 12px 12px; padding: 18px; }
  .pcm-banner__signal { width: 34px; }
  .pcm-banner__actions { grid-column: 1 / -1; justify-content: stretch; max-width: none; }
  .pcm-banner__actions .pcm-button { flex: 1 1 150px; }
}
@media (max-width: 520px) {
  .pcm-banner { display: block; max-height: calc(100vh - 24px); overflow: auto; }
  .pcm-banner__signal { float: left; margin: 0 12px 8px 0; }
  .pcm-banner__actions { display: grid; margin-top: 16px; }
  .pcm-panel { padding: 20px; }
  .pcm-choice { align-items: flex-start; }
  .pcm-panel footer .pcm-button { flex: 1 1 100%; }
}
