/* Porcelain, not plum (loops thread, Nov 14, 2026). See js/loops-porcelain.js.
   1 Porcelain glaze: cream porcelain, gold hairline rim, a soft light from above.
   2 Butter glaze:    warmer butter-cream, double gold rim, embossed.
   3 Glazed tile:     cream tile with a slow gold sheen that drifts across (transform only). */
html[data-porc] .lp-porc {
  --lp-plum: #4A1942; --lp-ink: #2D1928; --lp-gold: #8F6A1C; --lp-rim: rgba(212, 168, 67, .62);
  background: radial-gradient(130% 90% at 50% 0%, #fffdf8 0%, #fdf8f0 52%, #f5ead7 100%) !important;
  color: var(--lp-ink) !important;
  border: 1px solid var(--lp-rim) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -18px 40px rgba(212, 168, 67, .08), 0 14px 34px -18px rgba(74, 25, 66, .22) !important;
  position: relative; isolation: isolate;
}
/* full-width bands keep square sides; only the rim lines stay */
html[data-porc] section.lp-porc, html[data-porc] footer.lp-porc { border-width: 1px 0 !important; }
html[data-porc] .lp-porc::before, html[data-porc] .lp-porc::after { opacity: .18; }
html[data-porc] .lp-porc .lp-plum { color: var(--lp-plum) !important; }
html[data-porc] .lp-porc .lp-ink { color: var(--lp-ink) !important; }
html[data-porc] .lp-porc .lp-gold { color: var(--lp-gold) !important; }
html[data-porc] .lp-porc .lp-gold::placeholder { color: rgba(45, 25, 40, .5); }
html[data-porc] .lp-porc .lp-chip {
  background: rgba(255, 255, 255, .72) !important; border-color: rgba(212, 168, 67, .55) !important;
  box-shadow: inset 0 1px 0 #fff, 0 2px 8px -4px rgba(74, 25, 66, .18) !important;
}
html[data-porc] .lp-porc .lp-flat { background-image: radial-gradient(120% 90% at 50% 10%, #fffdf8, #f6ecdc) !important; }
html[data-porc] .lp-porc input.lp-chip, html[data-porc] .lp-porc textarea.lp-chip, html[data-porc] .lp-porc select.lp-chip { color: var(--lp-ink) !important; }
html[data-porc] .lp-porc input::placeholder, html[data-porc] .lp-porc textarea::placeholder { color: rgba(45, 25, 40, .5) !important; }

/* 2 Butter glaze */
html[data-porc="2"] .lp-porc {
  background: linear-gradient(180deg, #fff9ec 0%, #fbefd4 60%, #f4e1b6 100%) !important;
  border: 1px solid rgba(212, 168, 67, .8) !important;
  box-shadow: inset 0 0 0 4px #fff9ec, inset 0 0 0 5px rgba(212, 168, 67, .45), inset 0 2px 0 rgba(255, 255, 255, .9), 0 16px 36px -20px rgba(74, 25, 66, .28) !important;
}
html[data-porc="2"] section.lp-porc, html[data-porc="2"] footer.lp-porc { box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(212, 168, 67, .6) !important; }

/* 3 Glazed tile: a gold sheen drifts across now and then */
html[data-porc="3"] .lp-porc { overflow: hidden; background: linear-gradient(165deg, #fffdf9 0%, #fbf3e6 55%, #f3e6cf 100%) !important; }
html[data-porc="3"] .lp-porc > .lp-sheen { position: absolute; inset: -20% auto -20% -40%; width: 38%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 236, 190, .0) 20%, rgba(255, 233, 180, .55) 50%, rgba(255, 236, 190, 0) 80%, transparent 100%);
  transform: translate3d(-120%, 0, 0) skewX(-14deg); animation: lpSheen 7s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes lpSheen { 0%, 62% { transform: translate3d(-120%, 0, 0) skewX(-14deg); } 100% { transform: translate3d(420%, 0, 0) skewX(-14deg); } }
@media (prefers-reduced-motion: reduce) { html[data-porc="3"] .lp-porc > .lp-sheen { animation: none; opacity: 0; } }

/* critic r1: a waiting button reads as waiting, not broken: cream face, plum outline and plum words */
html[data-porc] .lp-porc button:disabled, html[data-porc] .lp-porc .cta:disabled {
  background: #fffaf0 !important; color: var(--lp-plum) !important; border: 1.5px solid rgba(74, 25, 66, .55) !important;
  box-shadow: none !important; opacity: 1 !important; -webkit-text-fill-color: var(--lp-plum);
}

/* Round 2 (objects, not boxes). Judges: "replace repeated boxes with purposeful porcelain objects".
   html[data-porc-obj="a|b"]; "a" won with both judges and is the default (?obj=b to compare, ?obj=0 for none).
   a: the tracking lookup is one porcelain ticket (hero + lookup card joined by a gold perforation);
      the calendar's next flavor is a sealed porcelain envelope with a wax "?" seal.
   b: the tracking hero is a pickup tag on a gold cord that settles in with a small swing;
      the calendar's next flavor is a gold-rimmed porcelain coin that turns slowly to show its "?". */

/* ---- a: ticket ---- */
html[data-porc-obj="a"] .thank-you-hero.lp-porc { border-radius: 22px 22px 0 0 !important; margin-bottom: 0 !important; border-bottom: 0 !important;
  -webkit-mask: radial-gradient(circle 13px at 0 100%, #0000 98%, #000) top left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 100%, #0000 98%, #000) top right / 51% 100% no-repeat;
          mask: radial-gradient(circle 13px at 0 100%, #0000 98%, #000) top left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 100%, #0000 98%, #000) top right / 51% 100% no-repeat; }
html[data-porc-obj="a"] .thank-you-hero.lp-porc + .lookup-card { border-radius: 0 0 22px 22px; margin-top: 0; border: 1px solid rgba(212, 168, 67, .62); border-top: 0;
  background: radial-gradient(130% 90% at 50% 100%, #fffdf8 0%, #fdf8f0 60%, #f7eedf 100%);
  -webkit-mask: radial-gradient(circle 13px at 0 0, #0000 98%, #000) top left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 0, #0000 98%, #000) top right / 51% 100% no-repeat;
          mask: radial-gradient(circle 13px at 0 0, #0000 98%, #000) top left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 0, #0000 98%, #000) top right / 51% 100% no-repeat; }
html[data-porc-obj="a"] .thank-you-hero.lp-porc + .lookup-card::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; border-top: 2px dashed rgba(212, 168, 67, .75); }
html[data-porc-obj="a"] .thank-you-hero.lp-porc + .lookup-card h2 { letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: #4A1942; }

html[data-porc-obj="a"] .gk-mystery.lp-porc { min-height: 220px; border-radius: 10px !important; overflow: hidden; }
html[data-porc-obj="a"] .gk-mystery.lp-porc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 58%; opacity: 1 !important; z-index: 0;
  background: linear-gradient(180deg, #fffdf8, #f3e6cf); clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 6px 8px rgba(74, 25, 66, .12)); border-radius: 0; width: auto; top: 0; left: 0; }
html[data-porc-obj="a"] .gk-mystery.lp-porc::after { content: ""; position: absolute; inset: 0; opacity: 1 !important; z-index: 0; border-radius: 0; width: auto; height: auto;
  background: linear-gradient(32deg, transparent 49.5%, rgba(212, 168, 67, .7) 50%, transparent 50.5%), linear-gradient(-32deg, transparent 49.5%, rgba(212, 168, 67, .7) 50%, transparent 50.5%); }
html[data-porc-obj="a"] .gk-mystery.lp-porc { min-height: 228px; }
html[data-porc-obj="a"] .gk-mystery.lp-porc > div { position: relative; z-index: 1; margin-top: 2.2rem; }
html[data-porc-obj="a"] .gk-mystery.lp-porc p { margin-top: 1rem; font-weight: 600; color: #4A1942 !important; background: rgba(255, 253, 248, .92); display: inline-block; padding: .2rem .7rem; border-radius: 4px; }
/* the date tag is a postmark stamped on the envelope, not a pill */
html[data-porc-obj="a"] .gk-mystery.lp-porc .gp-tag { position: absolute; top: -2.6rem; right: -.4rem; transform: rotate(9deg); background: transparent !important; box-shadow: none !important;
  border: 1.5px dashed rgba(74, 25, 66, .65) !important; border-radius: 50% !important; width: 64px; height: 64px; display: grid; place-items: center; padding: 0 .3rem; font-size: .52rem; line-height: 1.15; letter-spacing: .08em; color: #4A1942 !important; -webkit-text-fill-color: #4A1942; }
html[data-porc-obj="a"] .gk-mystery.lp-porc b.q { width: 84px; height: 84px; margin: 0 auto .5rem; border-radius: 50%; display: grid; place-items: center; font-size: 2.9rem !important;
  color: #fff7e6 !important; background: radial-gradient(circle at 35% 30%, #7a3a68, #4A1942 62%, #2E0F29) !important; box-shadow: 0 0 0 2px #fffaf0, 0 0 0 3.5px #D4A843, 0 8px 16px rgba(74, 25, 66, .3), inset 0 0 0 5px rgba(255, 250, 240, .14), inset 0 0 0 6px rgba(233, 203, 126, .8) !important; border: 0 !important; -webkit-text-fill-color: #fff7e6;
  animation: lpSeal 3.6s ease-in-out infinite; }
@keyframes lpSeal { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(3deg) scale(1.04); } }

/* ---- b: tag and coin ---- */
html[data-porc-obj="b"] .thank-you-hero.lp-porc { border-radius: 16px 16px 26px 26px !important; margin-top: 46px !important; overflow: visible !important; transform-origin: 50% -40px;
  animation: lpSwing 1.6s cubic-bezier(.3, 1.6, .5, 1) both; }
html[data-porc-obj="b"] .thank-you-hero.lp-porc::before { content: ""; position: absolute; top: 16px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; opacity: 1 !important;
  background: #f3e6cf; box-shadow: inset 0 2px 3px rgba(74, 25, 66, .3), 0 0 0 2px rgba(212, 168, 67, .8); right: auto; }
html[data-porc-obj="b"] .thank-you-hero.lp-porc::after { content: ""; position: absolute; top: -46px; left: 50%; bottom: auto; width: 2px; height: 72px; margin-left: -1px; border-radius: 1px; opacity: 1 !important;
  background: linear-gradient(#D4A843, #b8902f); }
html[data-porc-obj="b"] .thank-you-hero.lp-porc > :first-child { margin-top: 18px; }
@keyframes lpSwing { 0% { transform: rotate(7deg); opacity: 0; } 30% { opacity: 1; } 55% { transform: rotate(-3deg); } 80% { transform: rotate(1.2deg); } 100% { transform: rotate(0); } }

html[data-porc-obj="b"] .gk-mystery.lp-porc b.q { width: 112px; height: 112px; margin: 0 auto .6rem; border-radius: 50%; display: grid; place-items: center; font-size: 3.6rem !important; color: #4A1942 !important;
  background: radial-gradient(circle at 35% 30%, #fffdf8, #f3e6cf 70%) !important; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px rgba(212, 168, 67, .85), inset 0 -8px 16px rgba(143, 106, 28, .18), 0 10px 22px -8px rgba(74, 25, 66, .35) !important; border: 0 !important;
  animation: lpCoin 5.5s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes lpCoin { 0%, 70% { transform: perspective(400px) rotateY(0); } 85% { transform: perspective(400px) rotateY(180deg) scaleX(-1); } 100% { transform: perspective(400px) rotateY(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html[data-porc-obj] .gk-mystery.lp-porc b.q, html[data-porc-obj] .thank-you-hero.lp-porc { animation: none !important; }
}
