/* Ink on lavender glass, with a hairline rim and no halo outside the button. */
html.site-pattern-b :is(.world-actions .button, .learning-cta .button.primary, .full-plan .plan-button.primary) {
  --glass-ink: #f2eafa;
  --glass-rim: #8b71b6;
  --glass-top: rgb(116 83 161 / 28%);
  --glass-bottom: rgb(78 57 107 / 24%);
  --glass-keyline: rgb(237 216 255 / 16%);
  color: var(--glass-ink);
  border: 1px solid var(--glass-rim);
  background: linear-gradient(156deg, var(--glass-top), var(--glass-bottom)), #1c1922eb;
  box-shadow: inset 0 1px 0 var(--glass-keyline), inset 0 -1px 0 rgb(161 122 206 / 14%);
  text-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
html.site-pattern-b .learning-cta .button.primary {
  --glass-rim: #74588e;
  --glass-ink: #faf4ff;
  background-color: #30263c;
}
@media (hover:hover) and (pointer:fine) {
  html.site-pattern-b :is(.world-actions .button, .learning-cta .button.primary, .full-plan .plan-button.primary):hover {
    border-color: #c5a6e6;
    background-color: #342b40;
    box-shadow: inset 0 1px 0 rgb(242 229 255 / 27%), inset 0 0 8px rgb(195 156 238 / 10%);
  }
}
html.site-pattern-b :is(.world-actions .button, .learning-cta .button.primary, .full-plan .plan-button.primary):active {
  border-color: #d1b5ed;
  background-color: #392d47;
}
html.site-pattern-b :is(.world-actions .button, .learning-cta .button.primary, .full-plan .plan-button.primary):focus-visible {
  outline: 2px solid var(--scene-ink, #d8c4f2);
  outline-offset: 4px;
}

/* Give the card grid and the action line a pause at editorial transitions. */
html.site-pattern-b .world-footer { margin-top: 32px; }
html.site-pattern-b .world-value > p { margin-bottom: 20px; }
html.site-pattern-b .world-hero { padding-bottom: 42px; }
html.site-pattern-b .polish-catalog { padding-top: 108px; }
html.site-pattern-b .polish-catalog > .section-heading { margin-bottom: 51px; }
html.site-pattern-b .showcase-grid { gap: 25px; }
@media (min-width: 1001px) and (max-height: 780px) {
  html.site-pattern-b .world-footer { margin-top: 21px; }
  html.site-pattern-b .world-value > p { margin-bottom: 14px; }
  html.site-pattern-b .world-hero { padding-bottom: 29px; }
}
@media (max-width: 1000px) {
  html.site-pattern-b .world-footer { margin-top: 26px; }
  html.site-pattern-b .polish-catalog { padding-top: 75px; }
  html.site-pattern-b .polish-catalog > .section-heading { margin-bottom: 43px; }
  html.site-pattern-b .showcase-grid { gap: 20px; }
}
@media (max-width: 600px) {
  html.site-pattern-b .world-footer { margin-top: 20px; }
  html.site-pattern-b .world-value > p { margin-bottom: 16px; }
  html.site-pattern-b .world-hero { padding-bottom: 33px; }
  html.site-pattern-b .world-actions .button { min-height: 44px; }
  html.site-pattern-b .polish-catalog { padding-top: 57px; }
  html.site-pattern-b .polish-catalog > .section-heading { margin-bottom: 32px; }
  html.site-pattern-b .showcase-grid { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html.site-pattern-b :is(.world-actions .button, .learning-cta .button.primary, .full-plan .plan-button.primary) { transition: none; }
}

/* A case link keeps the colour of its card all the way through activation. */
html.site-pattern-b .case-proof .proof-cta {
  --link-edge: color-mix(in srgb, var(--scene-accent) 70%, var(--scene-panel));
  color: var(--scene-accent);
  background: transparent;
  border-color: var(--link-edge);
  -webkit-tap-highlight-color: transparent;
}
html.site-pattern-b .case-proof .proof-cta:is(:active, :focus-visible, .is-touch-active) {
  color: var(--scene-ink);
  border-color: var(--scene-accent);
  box-shadow: inset 0 0 0 1px var(--link-edge), 0 0 11px rgb(170 131 218 / 17%);
}

/* A slim caption along the top edge is part of the FULL plan's frame. */
html.site-pattern-b .full-plan .full-label {
  color: #e2d6ef;
  background: linear-gradient(106deg, rgb(44 37 54 / 92%), rgb(57 45 72 / 90%));
  border: 1px solid rgb(181 153 209 / 52%);
  border-bottom: 0;
  font-weight: 600;
  line-height: 1.6;
}

/* The selected scene uses the same dark trim as PLAY/PAUSE.
   A short inner rule remains visible when animation is paused. */
html.site-pattern-b .world-scene-select button {
  position: relative;
  color: #c3b9ce;
  background: rgb(22 19 28 / 65%);
  border-color: #59525f;
  -webkit-tap-highlight-color: transparent;
}
html.site-pattern-b .world-scene-select button[aria-pressed="true"] {
  color: #f1e8ff;
  background: linear-gradient(155deg, rgb(122 90 160 / 15%), transparent 78%), #17131d;
  border-color: #bca3d5;
  box-shadow: inset 0 1px 0 rgb(237 216 255 / 18%), 0 0 0 1px rgb(196 160 235 / 17%), 0 0 9px rgb(170 125 215 / 25%);
}
html.site-pattern-b .world-scene-select button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 13px;
  bottom: 3px;
  left: calc(50% - 6.5px);
  border-radius: 2px;
  background: #dac4ef;
}
html.site-pattern-b .world-scene-select button:is(:active, :focus-visible, .is-touch-active) {
  border-color: #e9d8ff;
  color: #f5effb;
  box-shadow: 0 0 1px 1px #dfc5ff75, 0 0 12px #b68ce54d;
}
html.site-pattern-b .world-scene-select button:focus-visible {
  outline: 2px solid #e8d6ff;
  outline-offset: 3px;
}
html.site-pattern-b .case-proof .proof-cta:focus-visible {
  outline: 2px solid var(--scene-accent);
  outline-offset: 3px;
}
html.site-pattern-b :is(.case-proof .proof-cta, .world-scene-select button, .join-banner .button.light).is-touch-active {
  transition: none;
}
@media (hover: hover) and (pointer: fine) {
  html.site-pattern-b .case-proof .proof-cta:hover {
    color: var(--scene-ink);
    border-color: var(--scene-accent);
    box-shadow: inset 0 0 0 1px var(--link-edge), 0 0 11px rgb(170 131 218 / 17%);
  }
  html.site-pattern-b .world-scene-select button:hover {
    color: #f5effb;
    border-color: #dfc9f4;
    box-shadow: 0 0 1px 1px #dfc5ff5c, 0 0 10px #b68ce53d;
  }
}
@media (pointer: coarse) {
  html.site-pattern-b .world-scene-select button { min-height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  html.site-pattern-b :is(.world-scene-select button, .join-banner .button.light, .case-proof .proof-cta) {
    transition: box-shadow 150ms ease, border-color 150ms ease, color 150ms ease;
  }
}
