/* Escape Velocity: Plus (plus.js). The blur and the veil over a locked part, the Plus page, the Plus card on the Donate page, the
 * comparison on the Community page, and the wall drawn as a real brick wall (it replaces the card look in styles2.css; the
 * markup and class names are the same, so the wall's own code is untouched). Loaded after the other style sheets. */

/* ---------- a locked part: blurred, with a card over it ---------- */
.plus-badge { display: inline-block; vertical-align: middle; padding: .1rem .5rem; border-radius: 999px; background: var(--brand); color: var(--on-primary, #fff);
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.plus-lock { position: relative; margin-top: .8rem; border-radius: 12px; overflow: hidden; }
.plus-lock.plus-tall { min-height: 13.5rem; }
.plus-blur { filter: blur(7px) saturate(.85); opacity: .78; user-select: none; pointer-events: none; }
.plus-veil { position: absolute; inset: 0; display: grid; place-items: center; padding: .8rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--card-solid, var(--panel)) 22%, transparent), color-mix(in srgb, var(--card-solid, var(--panel)) 62%, transparent)); }
.plus-veil-in { display: grid; gap: .45rem; justify-items: center; max-width: 25rem; padding: 1rem 1.2rem 1.1rem; text-align: center; border-radius: 14px;
  background: color-mix(in srgb, var(--card-solid, var(--panel)) 92%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plus-veil-in p { margin: 0; font-size: .96rem; line-height: 1.45; }
.plus-tease { font-size: 1.02rem; }
.plus-more { display: inline-block; margin-top: .5rem; font-weight: 600; }
.plus-lock:has(.plus-veil-in) .plus-blur { min-height: 9rem; }

/* ---------- the Plus page ---------- */
.plus-price { display: grid; gap: .9rem; }
.plus-price .chips { margin: 0; }
.plus-price .chip small { font-weight: 600; opacity: .85; margin-left: .3rem; }
.plus-amount { margin: 0; font-size: 2.1rem; line-height: 1.1; }
.plus-amount .num { font-weight: 750; letter-spacing: -.02em; }
.plus-fine { margin: 0; font-size: .9rem; line-height: 1.5; }
.plus-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.plus-list, .plus-free { list-style: none; margin: .3rem 0 1rem; padding: 0; display: grid; gap: .85rem; }
.plus-list li { display: grid; gap: .15rem; position: relative; padding-left: 1.7rem; }
.plus-list li > span { color: var(--muted); line-height: 1.45; }
.plus-list li::before, .plus-free li::before { content: "\2713"; position: absolute; left: 0; top: .02rem; display: grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--brand-soft, var(--chip)); color: var(--brand-text, var(--brand)); font-size: .8rem; font-weight: 800; }
.plus-free { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .6rem 1.4rem; }
.plus-free li { position: relative; padding-left: 1.7rem; line-height: 1.4; }
.plus-back { margin-bottom: 1rem; }

/* ---------- the Plus card on the Donate page ---------- */
.plus-donate { border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--g1) 9%, var(--card-solid, var(--panel))), color-mix(in srgb, var(--g2) 6%, var(--card-solid, var(--panel)))); }
.plus-donate-in { display: flex; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.plus-donate-in > div:first-child { flex: 1 1 22rem; }
.plus-donate-in h2 { margin-top: 0; }
.plus-donate-in p { margin: .3rem 0 0; }
.plus-donate-act { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Plus members next to everyone else ---------- */
.cmp-rows { display: grid; gap: 1.1rem; margin-top: .6rem; }
.cmp-label { display: block; margin-bottom: .35rem; font-weight: 650; }
.cmp-pair { display: grid; grid-template-columns: 7.5rem 1fr 4.2rem; align-items: center; gap: .6rem; margin-top: .3rem; }
.cmp-who { font-size: .92rem; color: var(--muted); }
.cmp-pair .num { text-align: right; }
.cmp-bar { display: block; height: .8rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.cmp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--g1), var(--g2)); }
.cmp-pair.other .cmp-bar i { background: color-mix(in srgb, var(--ink) 38%, transparent); }
.cmp-note { margin: 1rem 0 0; font-size: .92rem; }
@media (max-width: 600px) { .cmp-pair { grid-template-columns: 5.6rem 1fr 3.6rem; gap: .45rem; } }

/* ---------- the wall, as a wall ---------- */
.wall-card::before { display: none; }                                   /* no glow behind it: the wall is the picture */
.wall { gap: 4px; padding: 6px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 20%, var(--card-solid, var(--panel))); box-shadow: inset 0 2px 9px rgba(0, 0, 0, .3); }
.wall .brick { --b: #8a3524; --tone: #fff; flex: 2 1 10.5rem; min-height: 3.5rem; gap: .35rem; padding: .5rem .75rem .45rem; border: 0; border-radius: 3px; color: #fff;
  background-color: var(--b);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .26)),
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.6px), radial-gradient(rgba(0, 0, 0, .16) 1px, transparent 1.6px);
  background-size: auto, 7px 7px, 11px 11px; background-position: 0 0, 0 0, 3px 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 1px 0 rgba(0, 0, 0, .28); }
.wall .brick.t1 { --b: #7c3022; }
.wall .brick.t2 { --b: #963c29; }
.wall .brick.t3 { --b: #6f2c1f; }
.wall .brick.t4 { --b: #8e3a27; }
.wall .brick.s { flex: 1 1 7.5rem; }
.wall .brick.m { flex: 2 1 11rem; }
.wall .brick.l { flex: 3 1 15.5rem; }
.wall .brick-msg { font-size: .92rem; line-height: 1.35; font-weight: 500; color: #fff; }
.wall .brick-msg::before { display: inline; height: auto; margin-right: .2rem; font-size: 1.5rem; line-height: 0; vertical-align: -.3em; color: #fff; opacity: .55; }
.wall .brick-by { font-size: .82rem; gap: .1rem .45rem; color: #fff; }
.wall .brick-by .when { font-size: .78rem; color: rgba(255, 255, 255, .88); }
.wall .brick-face { width: 1.45rem; height: 1.45rem; font-size: .76rem; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .15); color: #fff; }
.wall .brick-btc { top: .5rem; right: .7rem; color: #ffe08a; }
.wall .brick-tag { border-color: rgba(255, 255, 255, .8); color: #fff; font-size: .66rem; padding: 0 .45rem; }
.wall .brick.first { flex: 4 1 15rem; border: 0; background-color: #9a3d25;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 0 0 2px #ffd479, 0 0 20px rgba(255, 196, 80, .4); }
.wall .brick.first .brick-msg { font-size: 1.06rem; line-height: 1.34; font-weight: 600; }
.wall .brick.first .brick-msg::before { color: #ffe08a; opacity: .9; }
.wall .brick.mine:not(.first) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 0 0 2px var(--brand); }
.wall .brick.lead { flex: 2 1 13rem; min-height: 3.5rem; padding: 0; background: var(--card-solid, var(--panel)); border: 2px dashed color-mix(in srgb, var(--brand) 60%, transparent); box-shadow: none; color: var(--ink); }
.wall .brick.lead button { min-height: 3.3rem; padding: .4rem .75rem; border-radius: 2px; grid-template-columns: auto 1fr; align-items: center; column-gap: .65rem; }
.wall .brick.lead .lead-plus { grid-row: span 2; margin: 0; }
.wall .brick.lead b, .wall .brick.lead .lead-sub { grid-column: 2; }
.wall .brick.lead .lead-sub { font-size: .8rem; line-height: 1.25; }
.wall .brick.ghost { min-height: 3.5rem; border: 0; background: rgba(0, 0, 0, .16); background-image: none; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .38); }
@media (max-width: 600px) { .wall .brick.s { flex-basis: 6.2rem; } .wall .brick.first .brick-msg { font-size: 1rem; } }

/* laying: when the wall comes into view the bricks drop in from the top, one after another, and the newest one glows */
.wall .brick:nth-child(1) { --i: 0; } .wall .brick:nth-child(2) { --i: 1; } .wall .brick:nth-child(3) { --i: 2; } .wall .brick:nth-child(4) { --i: 3; }
.wall .brick:nth-child(5) { --i: 4; } .wall .brick:nth-child(6) { --i: 5; } .wall .brick:nth-child(7) { --i: 6; } .wall .brick:nth-child(8) { --i: 7; }
.wall .brick:nth-child(9) { --i: 8; } .wall .brick:nth-child(10) { --i: 9; } .wall .brick:nth-child(11) { --i: 10; } .wall .brick:nth-child(12) { --i: 11; }
.wall .brick:nth-child(n + 12) { --i: 11; }
@media (prefers-reduced-motion: no-preference) {
  body:not(.no-anim) .wall.wait .brick { opacity: 0; }
  body:not(.no-anim) .wall.laid .brick { animation: brickLay .5s cubic-bezier(.2, .9, .25, 1.1) both; animation-delay: calc(var(--i, 0) * 50ms); }
  body:not(.no-anim) .wall.laid .brick.new { animation: brickIn .6s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: 0s; }
  body:not(.no-anim) .wall.laid .brick.first { animation: brickLay .5s cubic-bezier(.2, .9, .25, 1.1) both, brickGlow 3.2s ease-in-out 1.2s infinite alternate; animation-delay: 0s, 1.2s; }
  body:not(.no-anim) .wall:not(.laid):not(.wait) .brick.first { animation: brickGlow 3.2s ease-in-out infinite alternate; }
}
@media (prefers-reduced-motion: no-preference) { body:not(.no-anim) .wall.still .brick { animation: none; opacity: 1; } body:not(.no-anim) .wall.still .brick.first { animation: brickGlow 3.2s ease-in-out infinite alternate; } }
/* the "Your name here" brick is a button: it is never hidden or moving while someone is about to press it */
body:not(.no-anim) .wall .brick.lead, body:not(.no-anim) .wall.laid .brick.lead, body:not(.no-anim) .wall.wait .brick.lead { animation: none; opacity: 1; transform: none; }
@keyframes brickLay { from { opacity: 0; transform: translateY(-1.2rem) rotate(-1.5deg) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes brickGlow { from { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 0 0 2px #ffd479, 0 0 12px rgba(255, 196, 80, .25); }
  to { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 0 0 2px #ffe08a, 0 0 26px rgba(255, 200, 90, .6); } }
@media print { .plus-veil { display: none; } .plus-blur { filter: none; opacity: 1; } }
