/* Paper buttons, site-wide (10-23, option C; the user chose it after Grok's review).
   The capsule's outline and jelly squeeze stay; its glossy art goes. Each button is deep matte paper with
   fine fibre, a lit top edge and a second, darker paper layer 3-4 px below-right, so it reads as two
   cut papers stacked. Free-chart buttons are forest green; Qimen buttons are deep plum everywhere.
   Labels: cream on green 8.2:1, on plum 7.9:1; the buttons against the page 7.9:1 and 7.6:1 (was about 1.2:1). Hover lifts the paper a little; pressing pushes it onto
   the layer below; release springs back (~250 ms). The hit area never moves. Loaded last on every page. */
:root {
  --paper-fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .35' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23f)'/%3E%3C/svg%3E");
  --btn-face: linear-gradient(#335646, #2a4a3c); --btn-lip: #a9c8b266; --btn-base: #14261e; --btn-under: #1d342a; --btn-ink: #fbf4e6;
}
.droplet.qimen-capsule { --btn-face: linear-gradient(#5a4a77, #4b3d66); --btn-lip: #d6c9ec66; --btn-base: #2a2140; --btn-under: #352a4c; }

/* the glossy capsule art, glints and refraction are not used */
.droplet .reference-capsule, .droplet .droplet-highlight, .droplet .droplet-edge, .droplet .water-refraction,
.droplet .refracted-paper, .droplet .droplet-surface::before, .droplet .droplet-surface::after, .droplet::after { display: none !important; }
.droplet { filter: none !important; }

/* 10-23 18:25 (user: the edge lines flickered during the bounce): no hairline box-shadows and no animated
   shadows. The lit lip and the lower edge are soft 3 px gradients inside the face, and the second paper is
   a solid offset of the face itself, so it squeezes and springs with it (18:30: the user wanted the lower
   paper to move too); solid shapes do not shimmer the way the hairlines did. */
.droplet .droplet-surface {
  border-radius: 999px !important; overflow: visible !important;
  background:
    linear-gradient(to bottom, var(--btn-lip) 0, transparent 3px),
    linear-gradient(to top, rgb(0 0 0 / .22) 0, transparent 3px),
    var(--paper-fibre), var(--btn-face) !important;
  background-blend-mode: normal, normal, soft-light, normal !important;
  box-shadow: 3px 4px 0 var(--btn-under), 4px 6px 9px #2a201440 !important;
  translate: 0 0; will-change: transform, translate;
  transition: translate 250ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 250ms cubic-bezier(.34, 1.56, .64, 1) !important;
}
.droplet .droplet-label {
  color: var(--btn-ink) !important; -webkit-text-fill-color: var(--btn-ink) !important;
  background: none !important; -webkit-text-stroke: 0 !important; filter: none !important; text-shadow: none !important;
  translate: 0 0; transition: translate 250ms cubic-bezier(.34, 1.56, .64, 1) !important;
}
/* hover: the jelly squeeze and both papers rising 2 px together; their offset never changes (18:34: the lower paper's edge widening
   on hover read as a thin line appearing and disappearing; 18:51: rise together) */
@media (hover: hover) {
  .droplet:hover .droplet-surface, .droplet:hover .droplet-label { translate: 0 -2px; }
}
.droplet:active .droplet-surface, .droplet[data-jelly-pressed="true"] .droplet-surface { translate: 2px 3px; transition-duration: 80ms !important;
  box-shadow: 1px 1px 0 var(--btn-under), 1px 2px 3px #2a201430 !important; }
.droplet:active .droplet-label, .droplet[data-jelly-pressed="true"] .droplet-label { translate: 2px 3px; transition-duration: 80ms !important; }
.droplet:focus-visible { outline: 2px solid #2c4a3e; outline-offset: 5px; border-radius: 999px; }
.droplet.qimen-capsule:focus-visible { outline-color: #4b3d66; }
.droplet[disabled], .droplet[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.droplet[disabled] .droplet-surface, .droplet[disabled] .droplet-label { translate: 0 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .droplet .droplet-surface, .droplet .droplet-label { transition: none !important; }
  .droplet:hover .droplet-surface, .droplet:hover .droplet-label { translate: 0 0; }
  .droplet:active .droplet-surface, .droplet[data-jelly-pressed="true"] .droplet-surface,
  .droplet:active .droplet-label, .droplet[data-jelly-pressed="true"] .droplet-label { translate: 1px 1px; }
}
@media (forced-colors: active) {
  .droplet .droplet-surface { background: ButtonFace !important; box-shadow: none !important; border: 1px solid ButtonText; }
  .droplet .droplet-label { color: ButtonText !important; -webkit-text-fill-color: ButtonText !important; }
}
