/* 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); }
/* the note from Revy and the wish box */
.pl-intro { margin: 0 0 22px; }
.pl-tldr-tag { margin: 0 0 8px; text-align: center; font: 600 12px var(--mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--ember-2, #ffb26b); }
.pl-tldr { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.pl-tldr li { padding: 10px 14px 10px 36px; position: relative; border: 1px solid var(--line, rgba(239,230,218,.1)); border-radius: 12px; background: var(--bg-2, #151112); color: var(--ink, #efe6da); font-size: 16px; line-height: 1.45; }
.pl-tldr li::before { content: ""; position: absolute; left: 14px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--ember, #ff6a1f); box-shadow: 0 0 10px rgba(255, 106, 31, .6); }
.pl-note { margin: 0 0 20px; padding: 18px 20px; border-left: 3px solid var(--ember, #ff6a1f); border-radius: 0 14px 14px 0; background: rgba(255, 106, 31, .06); }
.pl-note p { margin: 0 0 12px; font-family: var(--serif, Georgia, serif); font-size: 19px; line-height: 1.55; color: var(--ink, #efe6da); }
.pl-note a { color: var(--ember-2, #ffb26b); }
.pl-note footer { margin-top: 10px; font: 500 13px var(--mono, monospace); letter-spacing: .06em; color: var(--ink-3, #7d7369); }
.pl-work h2 { margin: 0 0 6px; font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 26px; color: var(--ink, #efe6da); }
.pl-work p { margin: 0 0 12px; color: var(--ink-2, #b9ada0); line-height: 1.55; font-size: 16px; }
.pl-nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pl-nums li { padding: 12px 8px; text-align: center; border: 1px solid var(--line, rgba(239,230,218,.1)); border-radius: 12px; background: var(--bg-2, #151112); }
.pl-nums b { display: block; font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 30px; color: var(--ember-2, #ffb26b); }
.pl-nums span { font-size: 12px; color: var(--ink-3, #7d7369); line-height: 1.3; }
.pl-wish { margin: 22px 0 0; padding: 20px 18px; border: 1px solid rgba(255, 106, 31, .3); border-radius: 20px; background: var(--bg-2, #151112); }
.pl-wish[hidden] { display: none; }
.pl-wish h2 { margin: 0 0 4px; font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 26px; color: var(--ember-2, #ffb26b); }
.pl-wish p { margin: 0 0 12px; color: var(--ink-2, #b9ada0); font-size: 14px; line-height: 1.5; }
.pl-wish textarea { width: 100%; min-height: 130px; box-sizing: border-box; resize: vertical; padding: 12px; border: 1px solid var(--line-2, rgba(239,230,218,.18)); border-radius: 12px; background: #070506; color: var(--ink, #efe6da); font: 16px/1.5 var(--sans, system-ui, sans-serif); }
.pl-wish textarea:focus { outline: 2px solid var(--ember, #ff6a1f); outline-offset: 1px; }
.pl-wish-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.pl-wish-n { font: 12px var(--mono, monospace); color: var(--ink-3, #7d7369); }
.pl-wish .pl-btn { width: auto; min-width: 140px; min-height: 46px; margin: 0; font-size: 16px; border-radius: 12px; }
.pl-wish .pl-ok { color: var(--ember-2, #ffb26b); font-size: 14px; margin: 8px 0 0; min-height: 1em; }
@media (max-width: 420px) { .pl-nums { grid-template-columns: 1fr; } }
@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; } }
