/* The Ashen Crown pledge: a fundraiser-style goal bar in the site's ember and gold (pledge.js). Pledges, never money.
   Self-hosted, no third-party loads. Motion is a slow shimmer and a small spark; prefers-reduced-motion turns it all off. */
.pl-box { text-align: center; }
.pl-num { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; line-height: 1; }
.pl-count { font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: clamp(76px, 24vw, 132px); color: var(--ember-2, #ffb26b); text-shadow: 0 0 28px rgba(255, 106, 31, .35); font-variant-numeric: tabular-nums; }
.pl-word { font-family: var(--serif, Georgia, serif); font-size: clamp(24px, 7vw, 36px); color: var(--ink, #efe6da); }
.pl-sub { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 18px; font-family: var(--mono, monospace); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2, #b9ada0); }
.pl-sub b { color: var(--ink, #efe6da); font-weight: 600; }
.pl-bar { position: relative; height: 30px; border-radius: 999px; background: #070506; border: 1px solid var(--line-2, rgba(239,230,218,.18)); box-shadow: inset 0 2px 8px rgba(0,0,0,.7); }
.pl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #b8461a, var(--ember, #ff6a1f) 55%, var(--ember-2, #ffb26b)); box-shadow: 0 0 18px rgba(255, 106, 31, .45); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.pl-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 235, 200, .35) 50%, transparent 70%); transform: translateX(-100%); animation: pl-shimmer 4.5s ease-in-out infinite; }
.pl-tip { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle, #fff3dc 10%, var(--ember-2, #ffb26b) 45%, transparent 72%); opacity: 0; transition: left 1.1s cubic-bezier(.2, .8, .2, 1), opacity .4s; pointer-events: none; }
.pl-box.has .pl-tip { opacity: 1; }
.pl-box.spark .pl-tip { animation: pl-spark .9s ease-out; }
.pl-ticks { position: relative; height: 40px; margin-top: 8px; }
.pl-tick { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--mono, monospace); font-size: 12px; color: var(--ink-3, #7d7369); white-space: nowrap; }
.pl-tick::before { content: ""; display: block; width: 1px; height: 7px; margin: 0 auto 3px; background: var(--ink-3, #7d7369); }
.pl-tick.first { transform: none; } .pl-tick.first::before { margin-left: 0; }
.pl-tick.goal { color: var(--ember-2, #ffb26b); font-weight: 600; transform: translateX(-100%); text-align: right; }
.pl-tick.goal::before { margin-right: 0; margin-left: auto; width: 2px; background: var(--ember-2, #ffb26b); }
.pl-more { margin: 4px 0 0; font-size: clamp(18px, 5vw, 22px); color: var(--ink, #efe6da); }
.pl-more b { color: var(--ember-2, #ffb26b); font-weight: 600; }
.pl-line { margin: 6px 0 0; color: var(--ink-2, #b9ada0); line-height: 1.5; font-size: 16px; }
.pl-stages { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; list-style: none; margin: 22px 0 0; padding: 0; }
.pl-stage { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid var(--line, rgba(239,230,218,.1)); border-radius: 999px; font-size: 13px; color: var(--ink-3, #7d7369); background: var(--bg-2, #151112); text-align: left; }
.pl-stage svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-stage b { color: var(--ink-2, #b9ada0); font-family: var(--mono, monospace); font-weight: 600; }
.pl-stage.reached { color: var(--ember-2, #ffb26b); border-color: rgba(255, 106, 31, .5); }
.pl-stage.reached b { color: var(--ember-2, #ffb26b); }
.pl-act { margin-top: 24px; }
.pl-btn { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 420px; min-height: 60px; margin: 0 auto; padding: 0 24px; border: 0; border-radius: 16px; background: var(--ember, #ff6a1f); color: #1a0d05; font: 600 20px var(--sans, system-ui, sans-serif); text-decoration: none; cursor: pointer; box-shadow: 0 6px 28px rgba(255, 106, 31, .3); }
.pl-btn:hover, .pl-btn:active { background: var(--ember-2, #ffb26b); }
.pl-btn[disabled] { opacity: .6; cursor: wait; }
.pl-done { margin: 0 auto; max-width: 420px; padding: 16px 18px; border: 1px solid rgba(255, 106, 31, .5); border-radius: 16px; background: rgba(255, 106, 31, .08); }
.pl-done h3 { margin: 0 0 4px; font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 30px; color: var(--ember-2, #ffb26b); }
.pl-done p { margin: 0; color: var(--ink-2, #b9ada0); font-size: 15px; line-height: 1.5; }
.pl-share { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 12px; padding: 0 20px; border: 1px solid var(--line-2, rgba(239,230,218,.18)); border-radius: 999px; background: transparent; color: var(--ink, #efe6da); font: 500 15px var(--sans, system-ui, sans-serif); text-decoration: none; cursor: pointer; }
.pl-undo { display: inline-block; margin-top: 10px; padding: 8px; background: none; border: 0; color: var(--ink-3, #7d7369); font-size: 13px; text-decoration: underline; cursor: pointer; }
.pl-err { color: #ff9b8a; font-size: 14px; margin: 10px 0 0; min-height: 1em; }
/* the compact block: the home page's Ashen Crown section and the vote page */
.pl-box.small { padding: 26px 22px; border: 1px solid rgba(255, 106, 31, .3); border-radius: var(--radius, 14px); background: linear-gradient(180deg, rgba(255, 106, 31, .08), transparent); }
.pl-box.small .pl-count { font-size: clamp(56px, 16vw, 84px); }
.pl-box.small .pl-word { font-size: clamp(20px, 5vw, 26px); }
.pl-box.small .pl-bar { height: 22px; }
.pl-box.small .pl-stages { display: none; }
.pl-box.small .pl-btn { min-height: 54px; font-size: 18px; }
.pl-box.small .pl-title { font-family: var(--serif, Georgia, serif); font-size: clamp(26px, 6vw, 34px); margin: 0 0 14px; font-weight: 400; color: var(--ink, #efe6da); }
.pl-box.small .pl-title em { color: var(--ember-2, #ffb26b); }
.pl-home { margin-top: 48px; }
/* the /pledge page */
.pl-main { max-width: 640px; margin: 0 auto; padding: 88px 16px 48px; }
.pl-main h1 { font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: clamp(34px, 9vw, 52px); line-height: 1.05; margin: 0 0 18px; text-align: center; }
.pl-main h1 em { color: var(--ember-2, #ffb26b); }
.pl-hero { padding: 26px 18px 28px; border: 1px solid rgba(255, 106, 31, .3); border-radius: 20px; background: radial-gradient(120% 90% at 50% 0%, rgba(255, 106, 31, .12), transparent 70%), var(--bg-2, #151112); }
.pl-fine { margin: 26px 0 0; text-align: center; color: var(--ink-3, #7d7369); font-size: 14px; line-height: 1.5; }
.pl-fine a { color: var(--ink-2, #b9ada0); }
@keyframes pl-shimmer { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes pl-spark { 0% { transform: scale(1); } 40% { transform: scale(3.2); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pl-fill, .pl-tip { transition: none; } .pl-fill::after, .pl-box.spark .pl-tip { animation: none; } }
