/* Pylerium Studio public showcase: page layout. Cards and details live in showcase.css. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 16px/1.6 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: #A5B4FC; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
::selection { background: rgba(139,92,246,.35); color: #fff; }

/* Ambient background */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.ambient .orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .32; }
.ambient .o1 { width: 620px; height: 620px; left: 8%; top: -260px; background: #7C3AED; }
.ambient .o2 { width: 520px; height: 520px; right: 4%; top: 80px; background: #0EA5B7; opacity: .22; }
.ambient .o3 { width: 560px; height: 560px; left: 40%; top: 1100px; background: #4F46E5; opacity: .14; }
.ambient .gridlines { position: absolute; inset: 0; opacity: .045;
  background-image: linear-gradient(to right, #94A3B8 1px, transparent 1px), linear-gradient(to bottom, #94A3B8 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(#000, transparent 900px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(18px) saturate(1.4); background: rgba(7,8,14,.72); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-bottom-color: var(--line); background: rgba(7,8,14,.86); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 17px; }
.brand .mark { width: 36px; height: 36px; }
.brand small { display: block; font: 500 10.5px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: -2px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links .gh { display: inline-flex; align-items: center; gap: 7px; color: var(--soft); border: 1px solid var(--line); margin-left: 6px; }
.nav-links .gh .i { font-size: 15px; }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font-size: 18px; place-items: center; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav-links { display: none; position: absolute; left: 12px; right: 12px; top: 64px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border-radius: 16px; background: rgba(13,16,28,.97); border: 1px solid var(--line2); box-shadow: 0 30px 60px rgba(0,0,0,.6); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .gh { margin: 6px 0 0; justify-content: center; }
}

/* Hero */
.hero { padding-top: 76px; padding-bottom: 8px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 500 11.5px var(--mono); letter-spacing: .08em;
  color: #C4B5FD; background: rgba(139,92,246,.1); border: 1px solid rgba(167,139,250,.25); }
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(45,212,191,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(45,212,191,0); } 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0); } }
.hero h1 { margin: 22px auto 18px; max-width: 920px; font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; }
.hero .lead { margin: 0 auto; max-width: 660px; font-size: clamp(16px, 2vw, 19px); color: var(--muted); line-height: 1.6; }
.ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 13px; font-weight: 700; font-size: 15px; text-decoration: none; transition: .25s var(--ease); }
.btn.primary { color: #070912; background: linear-gradient(120deg, #A78BFA, #7DD3FC 55%, #5EEAD4); box-shadow: 0 14px 34px -14px rgba(139,92,246,.9), inset 0 1px 0 rgba(255,255,255,.4); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(125,211,252,.8); }
.btn.ghost { color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line2); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 820px; margin: 56px auto 0; border-radius: 18px; overflow: hidden;
  background: var(--line); border: 1px solid var(--line); }
.stat { background: rgba(12,14,24,.92); padding: 18px 16px; text-align: center; }
.stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.stat span { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; } .hero { padding-top: 56px; } .wrap { padding-left: 16px; padding-right: 16px; } }

/* Sections */
section.block { padding-top: 72px; padding-bottom: 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head .kicker { font: 600 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.sec-head h2 { margin: 6px 0 0; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.03em; line-height: 1.1; font-weight: 800; }
.sec-head p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }
.featured { display: grid; gap: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 10px; border: 0; background: none; color: var(--muted); font: 600 13px var(--font); cursor: pointer; transition: .2s; }
.tab:hover { color: var(--text); }
.tab.on { color: #fff; background: linear-gradient(120deg, rgba(139,92,246,.35), rgba(56,189,248,.22)); box-shadow: inset 0 0 0 1px rgba(167,139,250,.35); }
.tab em { font: 600 10.5px var(--mono); font-style: normal; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--soft); }
.search { position: relative; flex: 0 1 300px; min-width: 200px; }
.search .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; }
.search input { width: 100%; padding: 11px 14px 11px 38px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); font: 500 14px var(--font); outline: none; transition: .2s; }
.search input:focus { border-color: rgba(45,212,191,.5); background: rgba(255,255,255,.05); box-shadow: 0 0 0 4px rgba(45,212,191,.1); }
.empty { display: none; text-align: center; padding: 60px 20px; border-radius: var(--r); border: 1px dashed var(--line2); color: var(--muted); }
.empty.show { display: block; }
.pcard.hide { display: none; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pr { padding: 24px; border-radius: var(--r); background: linear-gradient(180deg, rgba(20,24,41,.8), rgba(13,16,28,.9)); border: 1px solid var(--line); }
.pr .app-ico { margin-bottom: 16px; }
.pr h3 { margin: 0 0 6px; font-size: 17px; }
.pr p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* Support */
.support { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 34px; border-radius: 24px;
  background: radial-gradient(600px 240px at 0% 0%, rgba(139,92,246,.22), transparent 70%), radial-gradient(500px 220px at 100% 100%, rgba(45,212,191,.16), transparent 70%), rgba(13,16,28,.9);
  border: 1px solid rgba(167,139,250,.22); }
.support h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.02em; }
.support p { margin: 0; color: var(--muted); max-width: 560px; }

/* Footer */
footer.site { margin-top: 80px; border-top: 1px solid var(--line); background: rgba(5,6,10,.6); }
footer.site .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 28px 24px; }
footer.site .brand { font-size: 15px; }
footer.site .brand .mark { width: 28px; height: 28px; }
footer.site .copy-note { color: var(--dim); font-size: 13px; }
footer.site nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
footer.site nav a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
footer.site nav a:hover { color: var(--text); }

/* Dialog */
dialog.app-dlg { width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line2); border-radius: 24px; color: var(--text);
  background: linear-gradient(180deg, #11142299, #0B0D17), #0B0D17; box-shadow: 0 50px 120px rgba(0,0,0,.85); overflow: hidden; }
dialog.app-dlg[open] { display: flex; flex-direction: column; animation: dlgIn .35s var(--ease); }
dialog.app-dlg::backdrop { background: rgba(3,4,8,.72); backdrop-filter: blur(8px); animation: fadeIn .3s; }
.dlg-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(139,92,246,.4) transparent; }
.dlg-close { position: absolute; right: 16px; top: 16px; z-index: 3; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(10,12,20,.8);
  color: var(--soft); font-size: 18px; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); }
.dlg-close:hover { color: #fff; background: rgba(255,255,255,.1); }
.detail .d-head { padding-right: 70px; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
@media (max-width: 640px) { dialog.app-dlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; } }

/* Reveal on scroll */
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border-radius: 12px; background: #1A1F33; border: 1px solid var(--line2); font-size: 14px; transition: .3s; z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Announcement ---------- */
.announce { position: relative; z-index: 41; font-size: 14px; border-bottom: 1px solid var(--line); }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding-top: 6px; padding-bottom: 6px; text-align: center; flex-wrap: wrap; }
.announce .i { font-size: 16px; flex: none; }
.announce a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #fff; text-decoration: none; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.12); }
.announce a:hover { background: rgba(255,255,255,.2); }
.announce .ann-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 9px; background: none; color: inherit; opacity: .7; cursor: pointer; display: grid; place-items: center; font-size: 15px; }
.announce .ann-x:hover { opacity: 1; background: rgba(255,255,255,.1); }
.tone-violet { background: linear-gradient(90deg, rgba(124,58,237,.35), rgba(56,189,248,.25)); color: #EDE9FE; }
.tone-teal { background: linear-gradient(90deg, rgba(20,184,166,.32), rgba(56,189,248,.22)); color: #CCFBF1; }
.tone-amber { background: linear-gradient(90deg, rgba(245,158,11,.32), rgba(251,113,133,.24)); color: #FEF3C7; }
.tone-rose { background: linear-gradient(90deg, rgba(244,63,94,.32), rgba(167,139,250,.24)); color: #FFE4E6; }
@media (max-width: 640px) { .announce .wrap { padding-right: 44px; justify-content: flex-start; text-align: left; } }

/* ---------- Supply caffeine ---------- */
.caffeine { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px 13px 20px; border-radius: 13px; font-weight: 800; font-size: 15px; text-decoration: none;
  color: #1B0F02; background: linear-gradient(120deg, #FCD34D, #F59E0B 45%, #FB923C); box-shadow: 0 14px 34px -14px rgba(245,158,11,.95), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .25s var(--ease), box-shadow .25s, filter .2s; }
.caffeine:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: 0 20px 40px -14px rgba(251,146,60,.95); filter: saturate(1.1); }
.caffeine .i { font-size: 18px; }
.caffeine.sm { padding: 8px 14px 8px 12px; font-size: 13.5px; border-radius: 11px; margin-left: 6px; }
.caffeine.sm .i { font-size: 16px; }
.steam { position: absolute; left: 22px; top: -2px; width: 16px; height: 14px; pointer-events: none; }
.caffeine.sm .steam { left: 13px; }
.steam i { position: absolute; bottom: 0; width: 3px; height: 9px; border-radius: 3px; background: rgba(255,240,210,.85); opacity: 0; animation: steam 2.4s infinite ease-out; }
.steam i:nth-child(1) { left: 1px; } .steam i:nth-child(2) { left: 6px; animation-delay: .8s; } .steam i:nth-child(3) { left: 11px; animation-delay: 1.6s; }
.caffeine:hover .steam i { animation-duration: 1.4s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px) scaleY(.6); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-12px) scaleY(1.2) skewX(10deg); } }
@media (max-width: 760px) { .nav-links .caffeine.sm { margin: 6px 0 0; justify-content: center; } }

.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 11px; }
.btn.yt { color: #fff; background: #FF0033; box-shadow: 0 12px 30px -14px rgba(255,0,51,.9); }
.btn.yt:hover { filter: brightness(1.1); transform: translateY(-1px); }
.socials.center { justify-content: center; margin-top: 26px; }

/* ---------- Videos ---------- */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vgrid .vcard:first-child { grid-column: span 2; grid-row: span 2; }
.vgrid .vcard:first-child .vmeta h3 { font-size: 20px; }
@media (max-width: 900px) { .vgrid { grid-template-columns: 1fr 1fr; } .vgrid .vcard:first-child { grid-row: auto; } }
@media (max-width: 600px) { .vgrid { grid-template-columns: 1fr; } .vgrid .vcard:first-child { grid-column: auto; } }
.shorts-head { display: flex; align-items: center; justify-content: space-between; margin: 40px 0 14px; }
.shorts-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; }
.shorts-head h3 .i { color: #FF3355; }
.rail-btns { display: flex; gap: 8px; }
.rail-btns .ibtn { cursor: pointer; }
.shorts { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: none; }
.shorts::-webkit-scrollbar { display: none; }
dialog.short-dlg { padding: 0; border: 0; background: transparent; overflow: visible; max-height: 100dvh; }
dialog.short-dlg[open] { animation: dlgIn .3s var(--ease); }
dialog.short-dlg::backdrop { background: rgba(3,4,8,.85); backdrop-filter: blur(10px); }
.short-stage { width: min(420px, 92vw, calc((100dvh - 60px) * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 40px 100px rgba(0,0,0,.8); }
.short-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.short-dlg .dlg-close { right: -54px; top: 0; }
@media (max-width: 640px) { .short-dlg .dlg-close { right: 8px; top: 8px; } }

/* ---------- Embeds ---------- */
#embeds .embeds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.embed-block.w-full { grid-column: 1 / -1; }
.embed-box { border-radius: 14px; overflow: hidden; display: grid; justify-items: center; }
.embed-box > * { max-width: 100%; }
.embed-box iframe { display: block; width: 100%; border: 0; border-radius: 14px; background: #05060A; }
.embed-block { padding: 22px; border-radius: var(--r); background: linear-gradient(180deg, rgba(20,24,41,.8), rgba(13,16,28,.9)); border: 1px solid var(--line); min-width: 0; }
.embed-block h3 { margin: 0 0 4px; font-size: 19px; }
.embed-block > p { margin: 0 0 14px; color: var(--muted); }
@media (max-width: 760px) { #embeds .embeds { grid-template-columns: 1fr; } }
.embed-block.is-card { padding: 0; background: none; border: 0; }
.embed-block.is-card > h3, .embed-block.is-card > p { padding: 0 4px; }
/* Card embeds (Product Hunt and links): drawn in the site's style instead of a third-party widget */
.ecard { --pv: #8B5CF6; position: relative; display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: var(--r); text-decoration: none; color: var(--text); overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--pv) 22%, transparent), transparent 55%), linear-gradient(180deg, rgba(20,24,41,.85), rgba(13,16,28,.92));
  border: 1px solid color-mix(in srgb, var(--pv) 30%, var(--line)); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.ecard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--pv) 60%, transparent); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--pv) 70%, transparent); }
.ecard.pv-producthunt { --pv: #FF6154; }
.ec-ico { flex: none; width: 72px; height: 72px; border-radius: 18px; object-fit: cover; box-shadow: 0 12px 30px -12px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.08); }
.ec-ico.gen { display: grid; place-items: center; background: color-mix(in srgb, var(--pv) 18%, #0B0E18); color: var(--pv); } .ec-ico.gen .i { width: 34px; height: 34px; }
.ec-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.ec-kicker { display: inline-flex; align-items: center; gap: 6px; font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--pv) 80%, white); }
.ec-kicker .i { width: 15px; height: 15px; }
.ec-body b { font-size: 21px; letter-spacing: -.01em; }
.ec-text { color: var(--soft); font-size: 15px; line-height: 1.5; }
.ec-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #fff; background: var(--pv); box-shadow: 0 10px 28px -12px var(--pv); }
.ec-btn .i { width: 16px; height: 16px; transition: transform .25s var(--ease); } .ecard:hover .ec-btn .i { transform: translateX(3px); }
@media (max-width: 640px) { .ecard { flex-wrap: wrap; } .ec-ico { width: 56px; height: 56px; } .ec-btn { width: 100%; justify-content: center; } }

/* ---------- Latest posts (social feed from Connectors) ---------- */
#news .follow { display: flex; flex-wrap: wrap; gap: 8px; }
#news .follow .i { width: 16px; height: 16px; }
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feed { grid-template-columns: 1fr; } }
.fcard { --pc: #8B5CF6; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r); color: var(--text); text-decoration: none; min-width: 0;
  background: linear-gradient(180deg, rgba(20,24,41,.82), rgba(13,16,28,.92)); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.fcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pc) 55%, transparent); }
.fcard.p-x { --pc: #E7E9EA; } .fcard.p-mastodon { --pc: #8C8DFF; } .fcard.p-devto { --pc: #A5B4FC; } .fcard.p-telegram { --pc: #2AABEE; } .fcard.p-linkedin { --pc: #0A66C2; }
.fc-top { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.fc-net { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 28%, transparent); }
.fc-net .i { width: 17px; height: 17px; }
.fc-top time { margin-left: auto; color: var(--muted); font: 500 12px var(--mono); }
.fc-img { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #05060A; border: 1px solid var(--line); }
.fc-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fcard h3 { margin: 0; font-size: 16.5px; line-height: 1.35; }
.fcard p { margin: 0; color: var(--soft); font-size: 14.5px; line-height: 1.55; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.fc-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 4px; color: var(--muted); font: 600 12px var(--mono); }
.fc-foot span { display: inline-flex; align-items: center; gap: 5px; } .fc-foot .i { width: 14px; height: 14px; }
.fc-foot .sp { flex: 1; }
.fc-foot em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; color: color-mix(in srgb, var(--pc) 75%, white); }
.fcard:hover .fc-foot em .i { transform: translateX(3px); } .fc-foot em .i { transition: transform .25s var(--ease); }

/* ---------- Community ---------- */
.comm { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.comm-card { position: relative; padding: 32px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(500px 260px at 0% 0%, rgba(245,158,11,.18), transparent 70%), radial-gradient(500px 260px at 100% 100%, rgba(236,72,153,.14), transparent 70%), rgba(13,16,28,.92);
  border: 1px solid rgba(251,191,36,.25); }
.comm-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; font-size: 26px; color: #1B0F02; background: linear-gradient(135deg, #FDE68A, #F59E0B); box-shadow: 0 12px 30px -10px rgba(245,158,11,.8); margin-bottom: 16px; }
.comm-ico.ok { background: linear-gradient(135deg, #5EEAD4, #38BDF8); box-shadow: 0 12px 30px -10px rgba(45,212,191,.7); }
.comm-ico.big { width: 64px; height: 64px; font-size: 30px; }
.comm-card h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.02em; }
.comm-card > p { margin: 0 0 18px; color: var(--soft); }
.comm-card ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
.comm-card li { display: flex; gap: 10px; color: var(--soft); font-size: 14.5px; }
.comm-card li .i { color: #FBBF24; margin-top: 4px; }
.comm-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { display: block; margin-top: 14px; color: var(--dim); font-size: 12.5px; }
.comm-side { display: flex; flex-direction: column; gap: 22px; }
.comm-stat { padding: 26px; border-radius: 22px; background: rgba(13,16,28,.9); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.comm-stat b { font-size: 44px; line-height: 1; font-weight: 800; }
.comm-stat b .i { width: 40px; height: 40px; color: #F9A8D4; }
.comm-stat strong { font-size: 17px; font-weight: 700; color: var(--text, #F1F5F9); margin-top: 6px; }
.comm-stat span { color: var(--muted); line-height: 1.55; }
.wall { padding: 22px; border-radius: 22px; background: rgba(13,16,28,.9); border: 1px solid var(--line); }
.wall h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 15px; color: #FDE68A; }
.wall h4 em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: #FDE68A; background: rgba(245,158,11,.12); border: 1px solid rgba(251,191,36,.25); }
.wall p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.wall-names { display: flex; flex-wrap: wrap; gap: 8px; }
.wall-names span { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #FEF3C7; background: rgba(245,158,11,.12); border: 1px solid rgba(251,191,36,.25); }
@media (max-width: 860px) { .comm { grid-template-columns: 1fr; } .comm-card { padding: 24px; } }
.support-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.support .socials { margin-top: 16px; }

/* ---------- App pages ---------- */
.app-main { padding-top: 24px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px 8px 8px; border-radius: 10px; margin-bottom: 14px; }
.back:hover { color: #fff; background: rgba(255,255,255,.05); }
.app-sheet { border-radius: 26px; border: 1px solid var(--line2); background: linear-gradient(180deg, #11142288, #0B0D17); box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); overflow: hidden; }
.app-sheet .detail .d-head { padding-right: 28px; }

/* ---------- Submission form ---------- */
dialog.form-dlg { width: min(720px, calc(100vw - 24px)); }
.sub { padding: 30px 30px 26px; }
.sub-hero { margin-bottom: 20px; padding-right: 40px; }
.sub-hero h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; }
.sub-hero p { margin: 0; color: var(--muted); }
.sub .fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.sub .fld > span { font: 600 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sub .fld small { text-transform: none; letter-spacing: 0; font-family: var(--font); color: var(--dim); }
.sub input:not([type=checkbox]):not([type=file]), .sub select, .sub textarea { width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(5,6,11,.6); color: var(--text); font: 500 14.5px var(--font); outline: none; }
.sub textarea { resize: vertical; line-height: 1.5; }
.sub input:focus, .sub select:focus, .sub textarea:focus { border-color: rgba(45,212,191,.55); box-shadow: 0 0 0 4px rgba(45,212,191,.1); }
.sub select option { background: #11142A; }
.sub .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sub-grid { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: start; }
.ip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 16px; border: 1.5px dashed var(--line2); cursor: pointer; text-align: center; font-size: 13px; font-weight: 600; color: var(--soft); transition: .2s; }
.ip:hover, .ip.over { border-color: rgba(45,212,191,.6); background: rgba(45,212,191,.05); }
.ip small { color: var(--dim); font-weight: 400; font-size: 11px; }
.ip-img { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 26px; color: var(--teal); overflow: hidden; margin-bottom: 4px; }
.ip-img img { width: 100%; height: 100%; object-fit: cover; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soft); margin: 4px 0 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: #2DD4BF; margin-top: 2px; flex: none; }
.err { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; padding: 10px 12px; border-radius: 11px; font-size: 13.5px; color: #FECDD3; background: rgba(244,63,94,.12); border: 1px solid rgba(251,113,133,.3); }
.sub-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sub-actions .btn { border: 0; cursor: pointer; font-family: inherit; }
.linkbtn { border: 0; background: none; color: var(--muted); font: 500 13px var(--font); cursor: pointer; text-decoration: underline; margin-left: auto; }
.unlock { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.unlock .fld { flex: 1; min-width: 240px; margin: 0 !important; }
.unlock .btn { border: 0; cursor: pointer; font-family: inherit; }
.unlock input { font-family: var(--mono) !important; letter-spacing: .08em; text-transform: uppercase; }
.unlock .err { flex-basis: 100%; order: 3; margin: 0; }
.sub-alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14px; }
.sub-alt p { margin: 0; }
.sub.done { text-align: center; padding: 44px 30px; }
.sub.done .comm-ico { margin: 0 auto 16px; }
.sub.done p { color: var(--soft); max-width: 480px; margin: 0 auto 10px; }
.sub.done .btn { cursor: pointer; font-family: inherit; margin-top: 10px; }
button.btn { font-family: inherit; cursor: pointer; border: 0; }
button.btn.ghost { border: 1px solid var(--line2); }
@media (max-width: 600px) { .sub { padding: 24px 18px; } .sub .f2, .sub-grid { grid-template-columns: 1fr; } .ip { flex-direction: row; justify-content: flex-start; text-align: left; } .ip-img { width: 56px; height: 56px; } }
.toast { display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); }
.toast .i { color: #FBBF24; flex: none; }

/* entrance: content is always visible; only the hero gets a one-time intro */
.hero > * { animation: rise .8s var(--ease) both; }
.hero > *:nth-child(2) { animation-delay: .06s; } .hero > *:nth-child(3) { animation-delay: .12s; } .hero > *:nth-child(4) { animation-delay: .18s; } .hero > *:nth-child(5) { animation-delay: .24s; } .hero > *:nth-child(6) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.sec-head { margin-bottom: 22px; }

/* ---------- Floating "Supply caffeine" badge ---------- */
.cafe-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 8px; border-radius: 999px;
  text-decoration: none; color: #1B0F02; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; max-width: 260px;
  background: linear-gradient(120deg, #FDE68A, #FBBF24 40%, #F59E0B 75%, #FB923C); box-shadow: 0 18px 40px -12px rgba(245,158,11,.9), 0 0 0 1px rgba(255,255,255,.25) inset;
  transform: translateY(120px); opacity: 0; transition: transform .6s var(--ease), opacity .4s, max-width .45s var(--ease), padding .45s var(--ease), box-shadow .25s; }
.cafe-float.in { transform: none; opacity: 1; }
.cafe-float:hover { box-shadow: 0 22px 46px -10px rgba(251,146,60,1), 0 0 0 1px rgba(255,255,255,.35) inset; transform: translateY(-3px); }
.cf-cup { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #1B0F02; color: #FCD34D; flex: none; font-size: 20px; }
.cf-cup .steam { left: 13px; top: -5px; }
.cf-cup .steam i { background: rgba(252,211,77,.9); }
.cafe-float.mini { max-width: 56px; padding: 0 8px; }
.cafe-float.mini:hover { max-width: 260px; padding: 0 20px 0 8px; }
.cafe-float:hover .cf-cup .i { animation: tilt .6s var(--ease); }
@keyframes tilt { 40% { transform: rotate(-14deg); } 80% { transform: rotate(6deg); } }
body:has(dialog[open]) .cafe-float { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .cafe-float { right: 14px; bottom: 14px; height: 50px; } .cafe-float .cf-cup { width: 36px; height: 36px; } }

.nav-links a.caffeine, .nav-links a.caffeine:hover { color: #1B0F02; background: linear-gradient(120deg, #FCD34D, #F59E0B 45%, #FB923C); padding: 8px 14px 8px 12px; }
.nav-links a.caffeine:hover { filter: brightness(1.06); }

/* energy-drink fizz: bubbles rise from the can instead of steam */
.steam i { width: 4px; height: 4px; border-radius: 50%; animation: fizz 2.1s infinite ease-out; }
.steam i:nth-child(1) { --dx: -3px; } .steam i:nth-child(2) { --dx: 1px; animation-delay: .7s; } .steam i:nth-child(3) { --dx: 3px; animation-delay: 1.4s; }
@keyframes fizz { 0% { opacity: 0; transform: translate(0, 5px) scale(.4); } 25% { opacity: .95; } 100% { opacity: 0; transform: translate(var(--dx, 1px), -13px) scale(1.1); } }

/* ---------- paid downloads: /download/ page ---------- */
.dl-main { padding: 56px 0 90px; min-height: 62vh; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dl-card { width: min(720px, 100%); border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(170deg, rgba(20,24,41,.92), rgba(10,12,20,.94)); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); padding: 34px; }
.dl-state { text-align: center; padding: 26px 8px; }
.dl-state h1 { margin: 16px 0 8px; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; }
.dl-state p { margin: 0 auto; max-width: 460px; color: var(--muted); }
.dl-spin { display: inline-block; width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--teal); animation: dlspin .8s linear infinite; }
@keyframes dlspin { to { transform: rotate(360deg); } }
.dl-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; flex: none; background: rgba(248,113,113,.12); color: #FCA5A5; border: 1px solid rgba(248,113,113,.3); }
.dl-ico .i { width: 26px; height: 26px; }
.dl-ico.ok { background: rgba(45,212,191,.12); color: #5EEAD4; border-color: rgba(45,212,191,.35); }
.dl-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.dl-ok { display: flex; flex-direction: column; gap: 20px; }
.dl-test { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; color: #FDE68A; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.25); }
.dl-test .i { width: 16px; height: 16px; flex: none; }
.dl-head { display: flex; gap: 16px; align-items: center; }
.dl-head small { color: var(--teal); font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.dl-head h1 { margin: 2px 0 4px; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.03em; line-height: 1.1; }
.dl-head p { margin: 0; color: var(--muted); font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dl-files { display: flex; flex-direction: column; gap: 10px; }
.dl-file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: inherit; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.dl-file:hover { border-color: rgba(45,212,191,.45); background: rgba(45,212,191,.05); transform: translateY(-1px); }
.dl-file.main { border-color: rgba(139,92,246,.4); background: linear-gradient(120deg, rgba(139,92,246,.1), rgba(45,212,191,.06)); }
.dl-ext { flex: none; display: grid; place-items: center; min-width: 52px; height: 40px; padding: 0 8px; border-radius: 11px; font: 700 11.5px var(--mono); letter-spacing: .04em; color: #C4B5FD; background: rgba(139,92,246,.14); border: 1px solid rgba(139,92,246,.3); }
.dl-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-name b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-name small { color: var(--muted); font-size: 12.5px; }
.dl-file .btn { pointer-events: none; }
.dl-empty { display: flex; gap: 10px; align-items: center; padding: 16px; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); }
.dl-empty p { margin: 0; }
.dl-notes { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: rgba(255,255,255,.02); }
.dl-notes summary { cursor: pointer; font-weight: 600; }
.dl-notes div { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.dl-keep { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(56,189,248,.06); border: 1px solid rgba(56,189,248,.22); font-size: 13.5px; color: #BAE6FD; }
.dl-keep > .i { width: 18px; height: 18px; flex: none; color: #7DD3FC; }
.dl-keep > div { flex: 1; }
.dl-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.dl-meta .btn { margin-left: auto; }
.dl-foot { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; text-align: center; max-width: 620px; }
.dl-foot .i { width: 15px; height: 15px; flex: none; }
.dl-nojs { text-align: center; color: var(--muted); }
@media (max-width: 560px) { .dl-card { padding: 22px 18px; border-radius: 20px; } .dl-file { flex-wrap: wrap; } .dl-file .btn { width: 100%; justify-content: center; } .dl-keep { flex-wrap: wrap; } }
.dl-card button.btn { cursor: pointer; font: inherit; font-weight: 700; color: var(--text); }
.dl-card .btn.sm { font-size: 13px; }
.dl-card { --a1: #8B5CF6; }
.dl-card, .dl-card * { box-sizing: border-box; }
.dl-main > * { max-width: 100%; }
.dl-foot { display: block; }
.dl-foot .i { vertical-align: -2px; margin-right: 6px; }
.dl-main ~ .cafe-float { display: none; }
.dl-ico .i, .dl-file .btn .i, .dl-keep .btn .i, .dl-ctas .btn .i, .dl-meta .btn .i { flex: none; }

/* ---------- perks (cards live in shared/showcase.css) ---------- */
.perk-cta { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px dashed var(--line2); --a1: #8B5CF6; --a2: #38BDF8; }
.perk-cta > div { flex: 1; } .perk-cta b { font-size: 16px; } .perk-cta p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.perk-cta .btn { border: 0; cursor: pointer; font-family: inherit; }
#perks .sec-head .btn { border: 1px solid var(--line2); cursor: pointer; font-family: inherit; }
@media (max-width: 640px) { .perk-cta { flex-direction: column; align-items: flex-start; } }

/* vault + drops dialog */
.perk-dlg .dlg-scroll { position: relative; }
.perk-hero-ico { background: linear-gradient(135deg, #C4B5FD, #8B5CF6); box-shadow: 0 12px 30px -10px rgba(139,92,246,.8); color: #0A0C16; }
.perk-wait { display: flex; gap: 10px; align-items: center; padding: 30px 4px; color: var(--muted); }
.perk-wait .spinner, .perk-dlg .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: #A78BFA; animation: perkspin .8s linear infinite; display: inline-block; }
@keyframes perkspin { to { transform: rotate(360deg); } }
.perk-owned { display: grid; gap: 14px; }
.perk-own { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--a1) 12%, transparent), rgba(255,255,255,.02)); border: 1px solid color-mix(in srgb, var(--a1) 35%, transparent); }
.perk-own .perk-top > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.perk-own .perk-top b { font-size: 16px; }
.perk-text { color: var(--soft); font-size: 14.5px; line-height: 1.6; }
.perk-text p { margin: 0 0 8px; }
.perk-secret { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line2); }
.perk-secret small { flex-basis: 100%; font: 600 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.perk-secret code { flex: 1; min-width: 0; font: 600 15px var(--mono); letter-spacing: .06em; color: #fff; overflow-wrap: anywhere; }
.perk-secret code.perk-blob { font-size: 11px; letter-spacing: 0; font-weight: 400; color: var(--soft); max-height: 70px; overflow: auto; }
.perk-secret .btn, .perk-row .btn { border: 1px solid var(--line2); cursor: pointer; font-family: inherit; }
.perk-note { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; color: var(--soft); background: rgba(56,189,248,.07); border: 1px solid rgba(56,189,248,.2); }
.perk-note .i { flex: none; margin-top: 2px; color: #7DD3FC; }
.perk-own .perk-note { margin: 0; }
.perk-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.perk-acts:empty { display: none; }
.perk-acts .btn-acc { background: linear-gradient(120deg, var(--a1), var(--a2)); color: #0A0C16; border: 0; cursor: pointer; font-family: inherit; }
.perk-fine { margin: 16px 0 0; font-size: 13px; color: var(--dim); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.perk-fine a, .linkish { color: var(--soft); background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.perk-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.perk-row .btn { border: 0; cursor: pointer; font-family: inherit; }
.perk-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .perk-f2 { grid-template-columns: 1fr; } }
.perk-win { text-align: center; padding-right: 0 !important; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.perk-win .comm-ico { width: 74px; height: 74px; font-size: 34px; border-radius: 22px; animation: perkpop .7s cubic-bezier(.2,1.6,.4,1) both; }
.perk-kicker { display: inline-flex; gap: 6px; align-items: center; padding: 5px 11px; border-radius: 999px; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #FDE68A; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); }
@keyframes perkpop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.perk-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.perk-confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: perkfall linear forwards; }
@keyframes perkfall { to { transform: translateY(110vh) rotate(720deg); opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .perk, .perk-glow, .perk-win .comm-ico { transition: none; animation: none; } .perk-confetti { display: none; } }

/* ======================================================================= donation button: styles and labels */
.caffeine.st-violet, .cafe-float.st-violet { color: #fff; background: linear-gradient(120deg, #A78BFA, #8B5CF6 50%, #6366F1); box-shadow: 0 14px 34px -14px rgba(139,92,246,.95), inset 0 1px 0 rgba(255,255,255,.35); }
.caffeine.st-pink, .cafe-float.st-pink { color: #fff; background: linear-gradient(120deg, #F9A8D4, #EC4899 50%, #DB2777); box-shadow: 0 14px 34px -14px rgba(236,72,153,.9), inset 0 1px 0 rgba(255,255,255,.35); }
.caffeine.st-teal, .cafe-float.st-teal { color: #04201C; background: linear-gradient(120deg, #99F6E4, #2DD4BF 50%, #38BDF8); box-shadow: 0 14px 34px -14px rgba(45,212,191,.9), inset 0 1px 0 rgba(255,255,255,.45); }
.caffeine.st-mono, .cafe-float.st-mono { color: #0B0D16; background: linear-gradient(120deg, #fff, #E2E6F3); box-shadow: 0 14px 34px -14px rgba(255,255,255,.5), inset 0 1px 0 #fff; }
.caffeine.st-outline, .cafe-float.st-outline { color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line2); box-shadow: none; }
.caffeine.st-outline:hover { border-color: rgba(255,255,255,.3); box-shadow: 0 16px 34px -18px rgba(0,0,0,.8); }
.nav-links a.caffeine.st-violet, .nav-links a.caffeine.st-pink { color: #fff; } .nav-links a.caffeine.st-teal { color: #04201C; } .nav-links a.caffeine.st-mono { color: #0B0D16; background: #fff; }
.nav-links a.caffeine.st-violet { background: linear-gradient(120deg, #A78BFA, #6366F1); } .nav-links a.caffeine.st-pink { background: linear-gradient(120deg, #F472B6, #DB2777); } .nav-links a.caffeine.st-teal { background: linear-gradient(120deg, #5EEAD4, #38BDF8); }
.nav-links a.caffeine.st-outline { color: var(--text); background: transparent; border: 1px solid var(--line2); }
.cafe-float.st-violet .cf-cup, .cafe-float.st-pink .cf-cup { background: rgba(0,0,0,.35); color: #fff; } .cafe-float.st-teal .cf-cup { background: #04201C; color: #5EEAD4; }
.cafe-float.st-mono .cf-cup { background: #0B0D16; color: #fff; } .cafe-float.st-outline { backdrop-filter: blur(14px); background: rgba(13,16,28,.85); } .cafe-float.st-outline .cf-cup { background: rgba(255,255,255,.08); color: #FCD34D; }
.caffeine.no-steam .steam { display: none; }
.caffeine .cf-s { display: none; }
.cafe-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.cafe-sub { color: var(--muted); font-size: 12.5px; max-width: 260px; text-align: center; line-height: 1.4; }
.cafe-float.side-left { right: auto; left: 22px; }
.cafe-float.fc-always { max-width: 56px; padding: 0 8px; } .cafe-float.fc-always:hover { max-width: 260px; padding: 0 20px 0 8px; }
@media (max-width: 760px) {
  .caffeine[data-short] .cf-l { display: none; } .caffeine[data-short] .cf-s { display: inline; }
  .cafe-float.fm-hide { display: none; }
  .cafe-float.fm-mini { max-width: 50px; padding: 0 7px; } .cafe-float.fm-mini .cf-txt { opacity: 0; }
  .cafe-float.side-left { left: 14px; }
  body.m-bar .cafe-float { bottom: calc(82px + env(safe-area-inset-bottom)); }
}

/* ======================================================================= navigation: when the top links fold into the menu */
.nav-links a.on { color: var(--text); background: rgba(255,255,255,.06); }
.menu-btn { transition: background .2s, border-color .2s; } .menu-btn:active { transform: scale(.96); }
body.m-open .menu-btn { background: rgba(139,92,246,.16); border-color: rgba(139,92,246,.45); }
@media (max-width: 1100px) { body.bp-1100 .menu-btn { display: grid; } body.bp-1100 .nav-links { display: none; } }
@media (max-width: 980px) { body.bp-980 .menu-btn { display: grid; } body.bp-980 .nav-links { display: none; } }
@media (max-width: 860px) { body.bp-860 .menu-btn { display: grid; } body.bp-860 .nav-links { display: none; } }
@media (min-width: 641px) and (max-width: 760px) {
  body.bp-640 .menu-btn { display: none; }
  body.bp-640 .nav-links { display: flex; position: static; flex-direction: row; padding: 0; background: none; border: 0; box-shadow: none; overflow-x: auto; scrollbar-width: none; }
  body.bp-640 .nav-links a { padding: 8px 10px; white-space: nowrap; }
}
@media (max-width: 640px) { body.bp-640 .menu-btn { display: grid; } body.bp-640 .nav-links { display: none; } }

/* ======================================================================= the mobile menu */
.m-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(3,4,8,.55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.m-scrim.in { opacity: 1; pointer-events: auto; }
.m-menu { position: fixed; z-index: 91; top: 0; bottom: 0; right: 0; width: min(380px, 88vw); display: flex; flex-direction: column; gap: 14px; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(17,20,36,.98), rgba(9,11,20,.98));
  border-left: 1px solid var(--line2); box-shadow: -30px 0 80px rgba(0,0,0,.55); transform: translateX(104%); visibility: hidden; transition: transform .38s var(--ease), visibility 0s linear .38s; }
.m-menu.m-left { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--line2); box-shadow: 30px 0 80px rgba(0,0,0,.55); transform: translateX(-104%); }
.m-menu.in { transform: none; visibility: visible; transition: transform .38s var(--ease), visibility 0s; }
.m-menu.m-full { width: 100vw; border: 0; transform: translateY(-14px) scale(.985); opacity: 0; transition: transform .32s var(--ease), opacity .25s, visibility 0s linear .32s; }
.m-menu.m-full.in { transform: none; opacity: 1; transition: transform .32s var(--ease), opacity .25s, visibility 0s; }
.m-menu.m-drop { top: calc(68px + env(safe-area-inset-top)); bottom: auto; left: 10px; right: 10px; width: auto; max-height: calc(100dvh - 86px); border-radius: 20px; border: 1px solid var(--line2);
  padding-top: 14px; transform: translateY(-10px); opacity: 0; transition: transform .28s var(--ease), opacity .22s, visibility 0s linear .28s; }
.m-menu.m-drop.in { transform: none; opacity: 1; transition: transform .28s var(--ease), opacity .22s, visibility 0s; }
.m-menu.m-drop .m-head { display: none; }
body.m-open { overflow: hidden; } body.m-open .m-menu { touch-action: pan-y; }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.m-head .brand small { display: none; }
.m-x { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); color: var(--text); display: grid; place-items: center; font-size: 18px; cursor: pointer; flex: none; }
.m-title { margin: 0; color: var(--muted); font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.m-search { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255,255,255,.035); color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; text-align: left; }
.m-search .i { color: var(--sky); font-size: 18px; }
.m-list { display: flex; flex-direction: column; gap: 3px; }
.m-list a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border-radius: 14px; color: var(--soft); text-decoration: none; font-size: 16px; font-weight: 600; transition: background .2s, color .2s;
  opacity: 0; transform: translateX(10px); }
.m-menu.in .m-list a { opacity: 1; transform: none; transition: background .2s, color .2s, opacity .35s var(--ease), transform .35s var(--ease); }
.m-menu.in .m-list a:nth-child(2) { transition-delay: 0s, 0s, .03s, .03s; } .m-menu.in .m-list a:nth-child(3) { transition-delay: 0s, 0s, .06s, .06s; } .m-menu.in .m-list a:nth-child(4) { transition-delay: 0s, 0s, .09s, .09s; }
.m-menu.in .m-list a:nth-child(5) { transition-delay: 0s, 0s, .12s, .12s; } .m-menu.in .m-list a:nth-child(n+6) { transition-delay: 0s, 0s, .15s, .15s; }
.m-list a:active, .m-list a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.m-list a.on { background: linear-gradient(90deg, rgba(139,92,246,.18), rgba(56,189,248,.06)); color: var(--text); box-shadow: inset 2px 0 0 var(--violet); }
.m-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--teal); font-size: 16px; flex: none; }
.m-list a.on .m-ico { color: #C4B5FD; border-color: rgba(139,92,246,.4); }
.m-lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-list em { font: 600 11.5px var(--mono); font-style: normal; color: var(--muted); padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.06); }
.m-chev { color: var(--dim); font-size: 14px; }
.m-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .m-acts .m-act:only-child { grid-column: 1 / -1; }
.m-act { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); color: var(--text); font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.m-act .i { color: var(--violet); }
.m-exts { display: flex; flex-direction: column; gap: 6px; }
.m-ext { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); color: var(--soft); text-decoration: none; font-weight: 600; }
.m-foot { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.m-donate { justify-content: center; width: 100%; min-height: 52px; }
.m-foot .cafe-sub { align-self: center; margin-top: -6px; }
.m-foot .socials { justify-content: center; flex-wrap: wrap; }
body.m-open .cafe-float, body.m-open .m-bar, body.m-open .m-top { opacity: 0; pointer-events: none; }

/* ======================================================================= bottom bar and back to top (phones) */
.m-bar, .m-top { display: none; }
@media (max-width: 760px) {
  .m-bar { position: fixed; z-index: 70; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; gap: 2px; padding: 6px;
    border-radius: 20px; background: rgba(13,16,28,.9); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--line2); box-shadow: 0 20px 50px rgba(0,0,0,.55); transition: transform .35s var(--ease), opacity .3s; }
  .m-bar.away { transform: translateY(130%); opacity: 0; }
  .m-bar a, .m-bar button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 0 4px; border: 0; border-radius: 14px; background: none;
    color: var(--muted); font: inherit; font-size: 10.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
  .m-bar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-bar .i { font-size: 19px; } .m-bar .on { color: var(--text); background: rgba(139,92,246,.16); } .m-bar .on .i { color: #C4B5FD; }
  body.m-bar main, body.m-bar footer.site { padding-bottom: 76px; }
  .m-top { position: fixed; z-index: 65; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); display: grid; place-items: center; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%;
    border: 1px solid var(--line2); background: rgba(13,16,28,.88); backdrop-filter: blur(12px); color: var(--text); font-size: 18px; cursor: pointer; opacity: 0; transform: translateY(20px); pointer-events: none; transition: .3s var(--ease); }
  .m-top.in { opacity: 1; transform: none; pointer-events: auto; }
  body.m-bar .m-top { bottom: calc(86px + env(safe-area-inset-bottom)); }

  /* ---------------------------------------------------------------- mobile layout options (Site settings, Mobile and menu) */
  body.m-compact .hero { padding-top: 34px; } body.m-compact .hero h1 { margin: 16px auto 12px; font-size: clamp(32px, 9vw, 44px); } body.m-compact .hero .lead { font-size: 15.5px; }
  body.m-compact .ctas { gap: 10px; } body.m-compact .ctas > * { flex: 1 1 100%; justify-content: center; } body.m-compact .ctas .cafe-wrap .caffeine { width: 100%; justify-content: center; }
  body.m-compact .stats { margin-top: 28px; }
  body.m-nostats .hero .stats { display: none; }
  body.m-cards-two .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.m-noann .announce { display: none !important; }
  body.m-calm .ambient { display: none; } body.m-calm .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  body.m-sticky #apps .filters { position: sticky; top: 68px; z-index: 30; margin-left: -16px; margin-right: -16px; padding: 10px 16px; background: rgba(7,8,14,.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  body.m-sticky #apps .filters .search { flex: 1 1 100%; }
  .btn, .tab { min-height: 44px; } .tabs { -webkit-overflow-scrolling: touch; }
}
@media (prefers-reduced-motion: reduce) { .m-menu, .m-list a, .m-bar, .m-top, .m-scrim { transition: none !important; } }
