.pip-guide {
  --pip-state: #a2b68c;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin: 0 0 16px;
  border: 1px solid #414c36;
  border-radius: 16px;
  background: linear-gradient(105deg, #1d2920, #141a17 60%);
  color: #f3f7ed;
}
.pip-guide[data-state="ready"] { --pip-state: #c5f66a; }
.pip-guide[data-state="waiting"] { --pip-state: #f1c374; }
.pip-guide[data-state="blocked"] { --pip-state: #ff9490; }
.pip-guide img { width: 58px; height: 64px; object-fit: contain; }
.pip-guide strong { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.pip-guide strong::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--pip-state);
  box-shadow: 0 0 10px var(--pip-state);
}
.pip-guide p { margin: 4px 0 0; color: #d2ddca; font-size: .87rem; line-height: 1.45; overflow-wrap: anywhere; }
.pip-planet .hero-art { opacity: .6; }
.pip-planet-mascot {
  position: absolute;
  z-index: 1;
  inset-inline-end: max(6%, calc((100vw - 1180px) / 2));
  bottom: 10%;
  width: min(35vw, 475px);
  height: 82%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 28px #060b07b0);
  pointer-events: none;
}
.pip-planet .hero-content, .pip-planet .hero-footer { z-index: 2; }
@media (max-width: 760px) {
  .pip-planet-mascot {
    position: relative;
    display: block;
    inset: auto;
    width: min(64vw, 285px);
    height: auto;
    margin: 0 auto 28px;
  }
}
@media (max-width: 760px) {
  .pip-planet .hero-content { padding-block: 46px 22px; }
}
.pip-market { scroll-margin-top: 96px; }
.pip-market a { display: inline-block; margin-top: 8px; color: #c5f66a; font-size: .84rem; text-underline-offset: 3px; }
.pip-guide [hidden] { display: none; }
/* Reactions use the approved artwork; reduced-motion users keep a static pose. */
.pip-guide { transition: border-color .2s ease, box-shadow .2s ease; border-color: color-mix(in srgb, var(--pip-state) 35%, #293128); }
.pip-guide img { transform-origin: 50% 85%; transition: filter .25s ease, transform .25s ease; }
.pip-guide[data-state="tracking"] { --pip-state: #c5f66a; }
.pip-guide[data-state="analyzing"] { --pip-state: #b3ceff; }
.pip-guide[data-state="positive"] { --pip-state: #c5f66a; }
.pip-guide[data-state="negative"] { --pip-state: #ff9490; }
.pip-guide[data-state="neutral"] { --pip-state: #e8edf0; }
.pip-guide[data-state="tracking"] img { animation: pip-attention 3.6s ease-in-out infinite; }
.pip-guide[data-state="analyzing"] strong::before { animation: pip-scan 1.4s ease-in-out infinite; }
.pip-guide[data-state="blocked"] img { filter: saturate(.7); }
.pip-guide[data-state="ready"] img { transform: rotate(-3deg); }
#pipMarketClose { border-inline-start: 2px solid currentColor; padding-inline-start: 10px; margin-top: 12px; }
#pipMarketClose[data-result="positive"] { color: #c5f66a; }
#pipMarketClose[data-result="negative"] { color: #ff9490; }
#pipMarketClose[data-result="neutral"] { color: #e8edf0; }
@keyframes pip-attention { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes pip-scan { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
 .pip-guide, .pip-guide img, .pip-guide strong::before { animation: none !important; transition: none !important; transform: none !important; }
}

/* Floating contact is an explicit handoff to the existing Telegram bot. */
.pip-support {
  position: fixed;
  z-index: 70;
  inset-inline-end: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  color: #f2f8ed;
  font-family: inherit;
}
.pip-support-trigger {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  min-height: 52px;
  padding: 2px 16px 2px 8px;
  border: 1px solid #98c75b;
  border-radius: 32px;
  background: #1a281d;
  color: #e9facf;
  box-shadow: 0 8px 26px #080e0bd5;
  cursor: pointer;
  list-style: none;
  font-size: .88rem;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}
.pip-support-trigger::-webkit-details-marker { display: none; }
.pip-support-trigger:hover, .pip-support[open] .pip-support-trigger { background: #2a3b23; }
.pip-support-trigger:focus-visible, .pip-support-link:focus-visible { outline: 2px solid #c5f66a; outline-offset: 3px; }
.pip-support-trigger img, .pip-support-intro img { object-fit: contain; flex: none; }
.pip-support-sr { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pip-support-card {
  box-sizing: border-box;
  position: absolute;
  inset-inline-end: 0;
  bottom: calc(100% + 12px);
  width: min(310px, calc(100vw - 40px));
  max-height: min(360px, calc(100vh - 150px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border: 1px solid #49613e;
  border-radius: 18px;
  background: linear-gradient(135deg, #203020, #121915 75%);
  box-shadow: 0 12px 32px #060d08b0;
}
.pip-support-intro { display: flex; align-items: center; gap: 12px; }
.pip-support-intro h2 { margin: 3px 0 0; color: #f2f8ed; font-size: 1.2rem; line-height: 1.2; letter-spacing: -.02em; }
.pip-support-kicker { color: #bdd79f; font-size: .62rem; letter-spacing: .13em; font-weight: bold; }
.pip-support-card p { margin: 10px 0 14px; color: #dde7d9; font-size: .85rem; line-height: 1.5; }
.pip-support-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 11px; background: #c5f66a; color: #14220d; font-size: .84rem; font-weight: 800; text-decoration: none; }
.pip-support-link:hover { background: #d9ff97; }
@media (max-width: 760px) {
  .pip-support { inset-inline-end: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .pip-support-dashboard { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .pip-support-card { width: min(310px, calc(100vw - 28px)); }
}
