@font-face { font-family: "FredokaCard"; font-weight: 600; font-display: swap; src: url("fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "FredokaCard"; font-weight: 700; font-display: swap; src: url("fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
[hidden] { display: none !important; }

/* Layout: a living meadow (sun, clouds, swaying grass, a baby dragon at play) plays clear for 5 seconds as an opening scene,
   then softens into a blurred backdrop while frosted-glass panels carry the feed: hero, filter rail, post cards, side panel. */
:root {
  color-scheme: light;
  --sky: #8fd3ff;
  --sky-deep: #3aa8f0;
  --meadow: #5cc95a;
  --leaf: #2f8f4e;
  --sun: #ffd23f;
  --coral: #ff7a59;
  --coral-deep: #e8563a;
  --plum: #6b4fd8;
  --ink: #1d2433;
  --ink-soft: #4a5468;
  --glass: rgba(255, 255, 255, 0.74);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(29, 36, 51, 0.1);
  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, Menlo, monospace;
  --r: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--sky); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 12px; }

/* ---------- the meadow ---------- */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
#meadow { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); display: block;
  transition: filter 1.6s cubic-bezier(.4, 0, .2, 1), transform 1.6s cubic-bezier(.4, 0, .2, 1); }
body.ready #meadow { filter: blur(14px) saturate(1.15) brightness(1.04); transform: scale(1.04); }
.veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05) 40%, rgba(255, 255, 255, .25)); }
body.ready .veil { opacity: 1; }

/* opening title, shown during the 5 second scene */
.intro { position: fixed; inset: 0; z-index: 30; display: grid; place-items: start center; padding: 14vh 16px 0; pointer-events: none; transition: opacity .8s; }
.intro-card { pointer-events: auto; display: grid; justify-items: center; gap: 12px; text-align: center; }
.intro-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 6vw, 64px); line-height: 1; color: var(--ink); letter-spacing: -0.01em;
  text-shadow: 0 0 2px #fff, 0 0 18px rgba(255, 255, 255, .95), 0 0 40px rgba(255, 255, 255, .8); animation: pop .9s .4s cubic-bezier(.3, 1.5, .5, 1) both; }
.intro-sub { color: var(--ink); font-weight: 800; background: rgba(255, 255, 255, .78); padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(6px); animation: pop .9s .7s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes pop { from { transform: translateY(18px) scale(.92); opacity: 0; } }
.skip { border: 0; cursor: pointer; padding: 9px 18px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--ink); font-weight: 800; font-size: 14px;
  box-shadow: 0 6px 18px -6px rgba(29, 36, 51, .35); display: inline-flex; align-items: center; gap: 10px; }
.skip svg { width: 18px; height: 18px; transform: rotate(-90deg); }
.skip circle.track { stroke: rgba(29, 36, 51, .15); }
.skip circle.bar { stroke: var(--coral); stroke-dasharray: 44; stroke-dashoffset: 44; animation: count 5s linear forwards; }
@keyframes count { to { stroke-dashoffset: 0; } }
body.ready .intro { opacity: 0; visibility: hidden; transition: opacity .8s, visibility 0s .8s; }

/* the site */
.site { position: relative; z-index: 1; opacity: 0; transform: translateY(24px); transition: opacity 1s .35s, transform 1.2s .35s cubic-bezier(.2, .8, .2, 1); visibility: hidden; }
body.ready .site { opacity: 1; transform: none; visibility: visible; }
.shell { padding-inline: 16px; }
.wrap { max-width: 1160px; margin: 0 auto; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: calc(16px + env(safe-area-inset-top, 0px)) 0; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; display: block; flex: none; filter: drop-shadow(0 6px 12px rgba(29, 36, 51, .3)); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.sample-flag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--sun);
  padding: 7px 12px; border-radius: 999px; box-shadow: 0 6px 16px -8px rgba(29, 36, 51, .4); white-space: nowrap; }

.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: end; padding-block: 44px 28px; }
.hero-main { padding: 34px; border-radius: 32px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 30px 60px -30px rgba(29, 36, 51, .35); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf);
  background: rgba(92, 201, 90, .18); padding: 6px 12px; border-radius: 999px; }
.eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: var(--meadow); box-shadow: 0 0 0 0 rgba(92, 201, 90, .7); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(92, 201, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 201, 90, 0); } }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6.2vw, 74px); line-height: .98; letter-spacing: -0.02em; margin: 18px 0 16px; text-wrap: balance; }
h1 .pop { color: var(--coral-deep); display: inline-block; transform-origin: 50% 80%; }
body.ready h1 .pop { animation: wiggle 1.4s 1.2s ease-in-out; }
@keyframes wiggle { 20% { transform: rotate(-4deg) scale(1.04); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } }
.lede { color: var(--ink-soft); font-size: 18px; font-weight: 600; max-width: 44ch; margin: 0; }

.tally { display: grid; gap: 14px; }
.chip { padding: 20px 22px; border-radius: 26px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 24px 50px -30px rgba(29, 36, 51, .35); display: flex; align-items: center; gap: 16px; }
.chip b { font-family: var(--font-display); font-size: 46px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; min-width: 1.4ch; }
.chip span { font-weight: 700; color: var(--ink-soft); }
.chip.hot { background: linear-gradient(135deg, var(--coral), #ff9b6b); border-color: rgba(255, 255, 255, .5); color: #fff; }
.chip.hot span { color: rgba(255, 255, 255, .92); }
.chip.sun b { color: var(--plum); }
.bump { animation: bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* filter rail */
.rail { position: sticky; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 10; padding: 10px; border-radius: 999px; margin-bottom: 26px;
  background: var(--glass-strong); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px -22px rgba(29, 36, 51, .45);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.group { display: flex; flex-wrap: wrap; gap: 4px; }
.tab { border: 0; background: none; padding: 9px 16px; border-radius: 999px; color: var(--ink-soft); cursor: pointer; font-weight: 800; font-size: 14px; transition: background .25s, color .25s, transform .15s; }
.tab:hover { background: rgba(29, 36, 51, .06); color: var(--ink); }
.tab:active { transform: scale(.96); }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; }
.right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.switch { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); cursor: pointer; font-size: 14px; font-weight: 800; user-select: none; padding: 6px 8px; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: rgba(29, 36, 51, .14); position: relative; cursor: pointer; transition: background .25s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.switch input:checked { background: var(--meadow); }
.switch input:checked::after { transform: translateX(16px); }

/* feed */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
/* Posts sit in a grid: 3 columns on laptops, 2 on tablets, 1 on phones */
.trail { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; align-items: stretch; perspective: 1400px; min-width: 0; }
.trail > .hour { grid-column: 1 / -1; }
.trail > .post { padding: 14px 14px 12px; gap: 10px; height: 250px; grid-template-rows: auto 86px auto auto; align-content: space-between; }
.progress-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 18px; margin: -10px 0 22px; border-radius: 999px;
  background: var(--glass-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 34px -24px rgba(29, 36, 51, .45); font-weight: 700; }
.progress-strip strong { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.progress-strip #progress-text { color: var(--ink-soft); font-size: 14px; }
.progress-strip .meter { flex: 1 1 160px; margin: 0; }
.progress-strip .meter-label { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.hour { justify-self: start; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  background: var(--glass-strong); padding: 6px 12px; border-radius: 999px; margin-top: 8px; box-shadow: 0 6px 14px -8px rgba(29, 36, 51, .35); }
.hour b { color: var(--coral-deep); }

.post { position: relative; border-radius: var(--r); padding: 20px 20px 16px; display: grid; gap: 12px;
  background: rgba(255, 255, 255, .94); border: 1px solid rgba(29, 36, 51, .06);
  box-shadow: 0 1px 2px rgba(29, 36, 51, .06), 0 8px 24px -16px rgba(29, 36, 51, .35);
  transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s cubic-bezier(.2, .7, .2, 1), border-color .22s, opacity .3s, filter .3s;
  animation: enter .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 35ms); will-change: transform; }
@keyframes enter { from { transform: translateY(10px); opacity: 0; } }
.post:hover { transform: translateY(-3px); border-color: rgba(255, 122, 89, .35);
  box-shadow: 0 2px 4px rgba(29, 36, 51, .06), 0 18px 36px -18px rgba(29, 36, 51, .4); }
@media (hover: none), (prefers-reduced-motion: reduce) { .post:hover { transform: none; } }
.post.team { background: linear-gradient(135deg, #fff8dc, #ffffff 60%); border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255, 210, 63, .45), 0 24px 44px -26px rgba(29, 36, 51, .45); }
.post.flash { box-shadow: 0 0 0 4px var(--coral), 0 24px 44px -26px rgba(29, 36, 51, .45); }
.post.opened { opacity: .6; filter: grayscale(.6); }
.post.leaving { transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .3s ease; transform: scale(.96); opacity: 0; pointer-events: none; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; transform: translateZ(26px); }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12); }
.names { min-width: 0; display: grid; }
.names strong { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.names span { color: var(--ink-soft); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.tag { white-space: nowrap; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(107, 79, 216, .12); color: var(--plum); }
.tag.team { background: var(--sun); color: var(--ink); }
time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.text { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; transform: translateZ(16px); }
.text .at { color: var(--sky-deep); font-weight: 800; }
.quote { border-radius: 16px; padding: 12px 14px; color: var(--ink-soft); font-size: 14px; font-weight: 600; background: rgba(143, 211, 255, .2); border: 1px dashed rgba(58, 168, 240, .45); transform: translateZ(10px); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; transform: translateZ(22px); }
.counts { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 0; font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.97); }
.btn-go { background: var(--coral); color: #fff; box-shadow: 0 5px 0 var(--coral-deep), 0 14px 24px -12px rgba(232, 86, 58, .9); }
.btn-go:active { box-shadow: 0 2px 0 var(--coral-deep); }
.btn-soft { background: rgba(29, 36, 51, .07); color: var(--ink); }
.btn-soft:hover { background: rgba(29, 36, 51, .12); }
.btn svg { width: 14px; height: 14px; }

aside.side { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.side-actions { display: grid; gap: 10px; }
@media (max-width: 760px) { aside.side { grid-template-columns: 1fr; } .progress-strip { border-radius: 22px; } }
.panel { border-radius: var(--r); padding: 20px; background: var(--glass-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -28px rgba(29, 36, 51, .45); }
.panel h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.panel p { margin: 0; color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.meter { margin-top: 14px; height: 14px; border-radius: 999px; background: rgba(29, 36, 51, .08); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: repeating-linear-gradient(-45deg, var(--meadow) 0 10px, #73d871 10px 20px);
  transition: width .9s cubic-bezier(.3, 1.4, .5, 1); animation: stripes 1s linear infinite; background-size: 28px 28px; }
@keyframes stripes { to { background-position: 28px 0; } }
.meter-label { margin-top: 8px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.steps { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: var(--ink-soft); font-size: 15px; font-weight: 600; counter-increment: s; align-items: start; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--sky-deep); }
.steps li:nth-child(2)::before { background: var(--coral); }
.steps li:nth-child(3)::before { background: var(--meadow); }
.replay { margin-top: 2px; }

.empty { text-align: center; padding: 50px 20px; border-radius: var(--r); background: var(--glass-strong); display: grid; gap: 6px; justify-items: center; }
.empty h2 { font-family: var(--font-display); font-size: 32px; margin: 4px 0 0; }
.empty p { color: var(--ink-soft); margin: 0; font-weight: 600; }

.note { margin-top: 22px; padding: 16px 18px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.note strong { color: var(--ink); }
footer { padding-block: 34px 48px; text-align: center; color: var(--ink); font-size: 14px; font-weight: 700; display: grid; gap: 4px; }
footer span { opacity: .75; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  aside.side { position: static; grid-row: 1; }
  aside .how { display: none; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-block: 28px 20px; }
  .hero-main { padding: 24px; border-radius: 26px; }
  .tally { grid-template-columns: 1fr 1fr; }
  .chip { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; }
  .chip b { font-size: 38px; }
  .rail { border-radius: 26px; position: static; }
  .sample-flag { font-size: 10px; padding: 6px 9px; }
}
@media (max-width: 420px) {
  .post { padding: 16px 14px 14px; }
  .counts { gap: 10px; }
  .tab { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- post cards (same size, drawn from stored post data) ---------- */
.card-head { display: flex; align-items: center; gap: 10px; min-width: 0; transform: translateZ(20px); }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; object-fit: cover; background: rgba(29, 36, 51, .08); box-shadow: 0 0 0 2px #fff; }
.avatar.blank { display: grid; place-items: center; font-weight: 800; color: var(--plum); }
.who { display: grid; gap: 1px; align-content: center; min-width: 0; line-height: 1.25; color: inherit; text-decoration: none; }
.who .name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .handle { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who:hover .name { text-decoration: underline; }
.xmark { margin-left: auto; flex: none; width: 18px; height: 18px; color: var(--ink); opacity: .75; }
.xmark:hover { opacity: 1; }
.xmark svg { width: 100%; height: 100%; display: block; }
.post .text { color: var(--ink); text-decoration: none; font-size: 14.5px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; min-height: 0; align-self: start; max-height: calc(1.45em * 4); }
.post .text:hover { color: #000; }
.meta { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.meta time { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.tag.media { background: rgba(255, 122, 89, .14); color: var(--coral-deep); }
.trail .foot .btn { padding-top: 8px; padding-bottom: 8px; }
.more { display: flex; margin: 10px auto 0; }

/* ---------- admin ---------- */
.admin-wrap { padding-block: 24px 40px; display: grid; gap: 16px; }
.admin-wrap h1 { font-size: 40px; margin: 8px 0 0; }
.alert { background: #fff1ec; border: 2px solid var(--coral); padding: 12px 16px; border-radius: 16px; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--glass-strong); border-radius: 20px; padding: 16px; display: grid; gap: 2px; font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.stat-num { font-family: var(--font-display); font-size: 32px; color: var(--ink); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.field { display: grid; gap: 6px; margin: 12px 0; font-weight: 700; }
input[type="text"], input[type="password"], textarea { font: inherit; padding: 10px 14px; border-radius: 14px; border: 2px solid rgba(29, 36, 51, .12); background: #fff; color: var(--ink); }
.inline-form input[type="text"] { flex: 1 1 220px; }
textarea { width: 100%; resize: vertical; margin: 10px 0; }
.list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; word-break: break-all; font-weight: 600; }
.table-wrap { overflow-x: auto; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tag-ok { background: rgba(92, 201, 90, .2); color: var(--leaf); }
.tag-error, .tag-rate_limited { background: #ffe1d9; color: var(--coral-deep); }
.tag-skipped_budget, .tag-stopped_budget, .tag-page_limit { background: #fff3c4; color: #8a6400; }
.error { color: var(--coral-deep); font-weight: 700; }
.narrow { max-width: 400px; margin: 60px auto; }
body.static-page .site { opacity: 1; transform: none; visibility: visible; }
body.static-page #meadow { filter: blur(14px) saturate(1.15) brightness(1.04); transform: scale(1.04); }
.admin-wrap > * { min-width: 0; }
.admin-wrap { grid-template-columns: minmax(0, 1fr); }

/* ---------- community pulse ---------- */
.pulse { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "head head" "stats chart"; gap: 12px 22px; padding: 16px 20px 14px; margin: -8px 0 22px;
  border-radius: var(--r); background: var(--glass-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 34px -24px rgba(29, 36, 51, .45); }
.pulse-head { grid-area: head; display: flex; align-items: baseline; gap: 10px; }
.pulse-head strong { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.pulse-head span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.pulse-stats { grid-area: stats; display: grid; grid-template-columns: repeat(4, minmax(84px, auto)); gap: 10px; }
.stat { display: grid; align-content: center; gap: 2px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .7); }
.stat b { font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--ink); }
.stat:nth-child(1) b { color: var(--coral-deep); } .stat:nth-child(2) b { color: var(--plum); } .stat:nth-child(3) b { color: #b88700; } .stat:nth-child(4) b { color: var(--leaf); }
.stat span { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.pulse-chart { grid-area: chart; display: grid; grid-template-rows: 1fr auto; gap: 6px; min-width: 0; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 3px; height: 70px; overflow: hidden; }
.bars i { display: block; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--coral), #ffb199); opacity: .85; transition: height .6s cubic-bezier(.2, .9, .3, 1.2); }
.bars i.peak { background: linear-gradient(180deg, var(--plum), #a996ff); opacity: 1; }
.bars i.zero { background: rgba(29, 36, 51, .1); }
.bars-foot { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); }
.bars-foot #p-peak { color: var(--plum); font-weight: 700; }
@media (max-width: 900px) {
  .pulse { grid-template-columns: 1fr; grid-template-areas: "head" "stats" "chart"; }
  .pulse-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- keepers reached ---------- */
.reach { font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; background: rgba(92, 201, 90, .16); color: var(--leaf); }
.reach.none { background: rgba(107, 79, 216, .1); color: var(--plum); }
.hot { margin-bottom: 18px; }
.hot-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px 4px; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.hot-title span { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.hot .post { box-shadow: 0 0 0 3px rgba(255, 122, 89, .55), 0 24px 44px -26px rgba(29, 36, 51, .45); }
.pinned-row .post { box-shadow: 0 0 0 3px rgba(255, 210, 63, .7), 0 24px 44px -26px rgba(29, 36, 51, .45); }

/* ---------- my keeper card ---------- */
.keeper-btn { justify-content: center; }
body.modal-open { overflow: hidden; }
.keeper-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(6, 8, 28, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.keeper-modal[hidden] { display: none; }
.keeper-box { width: min(1000px, 100%); display: grid; gap: 14px; }
.keeper-frame { --rx: 0deg; --ry: 0deg; --sx: 50%; --sy: 50%; position: relative; border-radius: 18px; transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .15s ease-out; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); animation: card-in .7s cubic-bezier(.2, .9, .3, 1.2); }
.keeper-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--sx) var(--sy), rgba(255, 255, 255, .5), transparent 42%); }
.keeper-frame canvas { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; border-radius: 18px; background: #7cc8ff; }
@keyframes card-in { from { opacity: 0; transform: perspective(1200px) rotateX(18deg) translateY(30px) scale(.94); } }
.keeper-ask, .keeper-forge { justify-self: center; width: min(560px, 100%); background: #fff; border-radius: 28px; padding: 28px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); position: relative; }
.keeper-ask h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 28px; }
.keeper-ask p { margin: 0 0 16px; color: var(--ink-soft); font-weight: 600; }
.keeper-row { display: flex; gap: 10px; flex-wrap: wrap; }
.keeper-row input { flex: 1 1 200px; min-width: 0; border: 2px solid #e3e7f2; border-radius: 999px; padding: 12px 18px; font: 700 16px var(--font-body, inherit); outline: none; }
.keeper-row input:focus { border-color: var(--plum); }
.keeper-x { position: absolute; top: 14px; right: 16px; border: 0; background: none; color: var(--ink-soft); font-weight: 800; cursor: pointer; }
.keeper-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.keeper-steps li { display: flex; align-items: center; gap: 12px; font-weight: 800; color: #b3b9cc; transition: color .3s; }
.keeper-steps li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #e3e7f2; flex: none; transition: all .3s; }
.keeper-steps li.doing { color: var(--ink); }
.keeper-steps li.doing::before { border-color: var(--coral); border-top-color: transparent; animation: spin .8s linear infinite; }
.keeper-steps li.done { color: var(--leaf); }
.keeper-steps li.done::before { background: var(--meadow); border-color: var(--meadow); }
@keyframes spin { to { transform: rotate(360deg); } }
.keeper-note { margin: 0; color: #e7e4ff; font-weight: 700; font-size: 14px; text-align: center; }
.keeper-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.keeper-actions .btn-soft { background: rgba(255, 255, 255, .92); color: var(--ink); }

/* ---------- keeper directory ---------- */
.kp-block { margin-bottom: 22px; }
.kp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; margin-bottom: 18px; }
.kp-card { padding: 14px; gap: 12px; grid-template-rows: auto auto auto; }
.kp-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kp-card .btn { padding: 8px 14px; font-size: 13.5px; }
.kp-when { font-size: 13px; font-weight: 700; color: var(--leaf); }
.kp-when.quiet { color: var(--ink-soft); }
.kp-search { border: 2px solid #e3e7f2; border-radius: 999px; padding: 8px 14px; font: 700 14px var(--font-body); min-width: 0; width: min(260px, 100%); outline: none; background: #fff; }
.kp-search:focus { border-color: var(--plum); }
.kp-note { background: #fff3c4; color: #7a5600; font-weight: 800; padding: 10px 16px; border-radius: 16px; margin: 0 0 14px; }
.kp-add { display: grid; gap: 10px; margin: 8px 0 14px; }
.kp-add h3 { margin: 0 0 4px; }
.kp-add p { margin: 0; color: var(--ink-soft); font-weight: 600; }
.kp-msg { min-height: 1.4em; font-weight: 800; }
.kp-msg.ok { color: var(--leaf); }
.kp-msg.no { color: var(--coral-deep); }
.kp-rules { text-align: center; color: var(--ink-soft); font-weight: 700; font-size: 14px; margin: 0 0 20px; }
.kp-team { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.kp-card .meta { justify-content: flex-start; }

/* ---------- day and night ----------
   The meadow follows each visitor's own clock. Text that sits straight on the scene flips to a light ink once the sky is dark. */
body { transition: background-color 1.2s; }
body.dark-sky { background: #141a45; --on-sky: #f2f4ff; --on-sky-soft: rgba(242, 244, 255, .78); }
.brand, footer, .hot-title { color: var(--on-sky, var(--ink)); transition: color 1.2s, text-shadow 1.2s; }
.hot-title span, .kp-rules { color: var(--on-sky-soft, var(--ink-soft)); transition: color 1.2s; }
body.dark-sky .hot-title { text-shadow: 0 1px 8px rgba(6, 10, 34, .6); }
body.dark-sky .intro-title { color: #fff; text-shadow: 0 0 2px rgba(6, 10, 34, .6), 0 0 22px rgba(6, 10, 34, .7); }
body.ready.dark-sky .veil { opacity: .2; }
body.ready.lapse #meadow { filter: blur(3px) saturate(1.1); transform: scale(1.01); }

.bar-right { display: flex; align-items: center; gap: 10px; }
.sky-pill { border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--glass-strong); color: var(--ink); font-weight: 800; font-size: 13px; box-shadow: 0 6px 16px -8px rgba(29, 36, 51, .4);
  transition: background .6s, color .6s, transform .2s cubic-bezier(.3, 1.5, .5, 1); }
.sky-pill:hover { transform: translateY(-1px); }
.sky-pill b { font-family: var(--font-mono); font-weight: 700; font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.sky-hint { font-size: 12px; font-weight: 700; color: var(--ink-soft); padding-left: 8px; border-left: 1px solid var(--line); transition: color .6s; }
.sky-pill[aria-pressed="true"] .sky-hint { display: none; }
.bar-right .btn-soft { white-space: nowrap; background: var(--glass-strong); box-shadow: 0 6px 16px -8px rgba(29, 36, 51, .4); transition: background .6s, color .6s; }
body.dark-sky .bar-right .btn-soft { background: rgba(20, 26, 69, .72); color: #f2f4ff; }
.sky-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: #ffd23f; box-shadow: 0 0 0 3px rgba(255, 210, 63, .3), 0 0 10px rgba(255, 190, 40, .7);
  transition: background .8s, box-shadow .8s; }
.sky-pill[data-phase="dawn"] .sky-dot, .sky-pill[data-phase="dusk"] .sky-dot { background: #ff9a5a; box-shadow: 0 0 0 3px rgba(255, 154, 90, .3), 0 0 10px rgba(255, 120, 60, .7); }
.sky-pill[data-phase="night"] .sky-dot { background: transparent; box-shadow: inset -4px -2px 0 0 #f4f1ff, 0 0 10px rgba(210, 220, 255, .5); }
body.dark-sky .sky-pill { background: rgba(20, 26, 69, .72); color: #f2f4ff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.dark-sky .sky-hint { color: rgba(242, 244, 255, .7); border-color: rgba(242, 244, 255, .2); }
@media (max-width: 560px) { .sky-hint, #sky-label { display: none; } .sky-pill { padding: 7px 10px; } .brand { font-size: 19px; } .bar-right { gap: 8px; } }
@media (max-width: 480px) { .bar-right .btn { padding: 8px 12px; font-size: 13px; } .wide-only { display: none; } .bar-right .btn { text-transform: capitalize; } }

/* ---------- locked Keeper card ---------- */
.keeper-locked { background: rgba(29, 36, 51, .08); color: var(--ink-soft); cursor: not-allowed; box-shadow: none; gap: 8px; }
.keeper-locked span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.keeper-locked:hover { transform: none; }

/* ---------- suggestion mailbox: always within reach, bottom right ---------- */
.mailbox { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; text-decoration: none;
  background: var(--glass-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px -14px rgba(29, 36, 51, .55), inset 0 0 0 1px rgba(255, 255, 255, .7);
  opacity: 0; transform: translateY(12px); visibility: hidden;
  transition: opacity .6s .8s, transform .6s .8s cubic-bezier(.2, .8, .2, 1), visibility 0s .8s, box-shadow .25s, background .6s; }
body.ready .mailbox { opacity: 1; transform: none; visibility: visible; }
.mailbox:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -16px rgba(29, 36, 51, .6), inset 0 0 0 1px rgba(255, 255, 255, .7); transition-delay: 0s; }
.mailbox-flag { transform-origin: 47.5px 34px; transform: rotate(80deg); transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.mailbox:hover .mailbox-flag, .mailbox:focus-visible .mailbox-flag { transform: rotate(0deg); }
.mailbox-letter { transform: translateY(6px); opacity: 0; transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.mailbox:hover .mailbox-letter, .mailbox:focus-visible .mailbox-letter { transform: translateY(-4px); opacity: 1; }
.mailbox-tip { position: absolute; right: calc(100% + 10px); white-space: nowrap; padding: 7px 12px; border-radius: 999px; font-weight: 800; font-size: 13px;
  background: var(--ink); color: #fff; opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .25s, transform .25s; }
.mailbox:hover .mailbox-tip, .mailbox:focus-visible .mailbox-tip { opacity: 1; transform: none; }
body.dark-sky .mailbox { background: rgba(20, 26, 69, .72); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .15); }
@media (max-width: 560px) { .mailbox { width: 56px; height: 56px; border-radius: 18px; } .mailbox svg { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { .mailbox, .mailbox-flag, .mailbox-letter { transition: none; } }
/* side buttons sit on the scene, so give them their own glass that follows the sky */
.side-actions .btn-soft, .keeper-locked { background: var(--glass-strong); box-shadow: 0 10px 24px -16px rgba(29, 36, 51, .5); transition: background .6s, color .6s, transform .2s; }
body.dark-sky .side-actions .btn-soft, body.dark-sky .keeper-locked { background: rgba(20, 26, 69, .72); color: #f2f4ff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.dark-sky .mailbox-tip { background: #fff; color: var(--ink); }
.mailbox svg { width: 48px; height: 48px; }

/* ---------- New in the hatchery: a sideways strip of first time posters ---------- */
.welcome-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.newbie { flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px;
  background: rgba(255, 255, 255, .94); box-shadow: 0 12px 26px -18px rgba(29, 36, 51, .5); border: 1px solid rgba(29, 36, 51, .06);
  animation: enter .5s calc(var(--i, 0) * 60ms) cubic-bezier(.2, .8, .2, 1) both; }
.newbie-who { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.newbie-text { display: grid; line-height: 1.2; }
.newbie-text b { font-size: 14px; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newbie-text small { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.newbie-hi { padding: 7px 14px; font-size: 13px; box-shadow: 0 3px 0 var(--coral-deep); }

/* ---------- FAQ ---------- */
.faq { margin-top: 28px; }
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 20px; background: var(--glass-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px -24px rgba(29, 36, 51, .5); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--ink-soft); border-bottom: 2.5px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p, .faq details ul { margin: 0 0 14px; color: var(--ink-soft); font-weight: 600; line-height: 1.6; }
.faq details ul { padding-left: 20px; display: grid; gap: 6px; }
.faq details > :last-child { margin-bottom: 18px; }
.faq-link { display: block; margin-top: 12px; font-size: 13px; font-weight: 800; color: var(--plum); text-decoration: none; }
.faq-link:hover { text-decoration: underline; }
.faq { scroll-margin-top: 90px; }

/* ---------- realistic meadow (photo mode) ----------
   Layers: soft pre-blurred renders (always), sharp renders + video (only while the clear scene is on screen),
   then the particle canvas. No live CSS blur anywhere, so scrolling stays smooth. */
.photo { position: absolute; inset: 0; overflow: hidden; background: #8fd3ff; }
.ph { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: 32% 58%;
  opacity: 0; transition: opacity 1.4s ease; will-change: opacity; }
.ph.soft { inset: -3%; width: 106%; height: 106%; }
.photo:not(.sharp-on) .ph.sharp { opacity: 0 !important; transition: opacity 1.6s cubic-bezier(.4, 0, .2, 1); }
.ph.clip { object-fit: cover; object-position: 32% 58%; opacity: 0; transition: opacity .9s ease; }
.ph.clip.on { opacity: 1; }
.photo:not(.sharp-on) .ph.clip { opacity: 0; transition: opacity 1.6s cubic-bezier(.4, 0, .2, 1); }
/* a slow push-in while the clear scene is showing, for the renders without a video */
.photo.sharp-on .ph.sharp { animation: drift 14s ease-out both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.photo-mode #meadow { inset: 0; width: 100%; height: 100%; filter: none !important; transform: none !important; }
.photo-mode body.ready .veil, html.photo-mode body.ready .veil { opacity: .55; }
body.dark-sky .photo { background: #121842; }
@media (max-aspect-ratio: 4/5) { .ph, .ph.clip { background-position: 26% 60%; object-position: 26% 60%; } }
@media (prefers-reduced-motion: reduce) { .photo.sharp-on .ph.sharp { animation: none; } }

/* ---------- language picker ---------- */
.lang-pick { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; cursor: pointer;
  background: var(--glass-strong); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(29, 36, 51, .4); transition: background .6s, color .6s; }
.lang-pick select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; font-size: 13px;
  cursor: pointer; padding: 0 2px; max-width: 9.5em; }
.lang-pick select:focus-visible { outline: none; }
.lang-pick:focus-within { outline: 3px solid var(--plum); outline-offset: 2px; }
.lang-pick option { color: #1d2433; }
body.dark-sky .lang-pick { background: rgba(20, 26, 69, .72); color: #f2f4ff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tag.tr-link { text-decoration: none; background: rgba(58, 168, 240, .14); color: #1f6fae; }
.tag.tr-link:hover { background: rgba(58, 168, 240, .24); }
@media (max-width: 560px) { .lang-pick select { max-width: 5.2em; } .lang-pick { padding: 7px 8px; } }
html[lang="ko"] h1, html[lang="zh"] h1, html[lang="ko"] .lede { word-break: keep-all; }

/* ---------- pdtools crumb: home / tool ---------- */
.crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crumbs .hub-word { opacity: .78; font-weight: 600; }
.crumb-sep { color: var(--on-sky-soft, var(--ink-soft)); font-weight: 700; opacity: .6; }
.brand.crumb { font-size: 20px; }
@media (max-width: 560px) { .crumbs .hub-word, .crumb-sep { display: none; } .brand.crumb { font-size: 17px; } .crumbs { gap: 8px; } }

/* =========================================================================================
   Premium glass pass: layered frosted panels with a lit top edge, real 3D icons,
   glossy controls and richer cards. Only transform and opacity animate, so it stays smooth.
   ========================================================================================= */
:root {
  --glass-hi: linear-gradient(160deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .72) 45%, rgba(255, 255, 255, .62) 100%);
  --rim: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(29, 36, 51, .06);
  --lift: 0 1px 2px rgba(29, 36, 51, .06), 0 10px 24px -14px rgba(29, 36, 51, .28), 0 34px 64px -34px rgba(29, 36, 51, .45);
}
.ico { display: inline-block; flex: none; object-fit: contain; vertical-align: middle;
  filter: drop-shadow(0 6px 8px rgba(29, 36, 51, .22)); user-select: none; -webkit-user-drag: none; }

/* panels */
.hero-main, .chip.sun, .rail, .progress-strip, .pulse, .panel, .faq details, .empty, .side-actions .btn-soft, .keeper-locked {
  background: var(--glass-hi); border: 0; box-shadow: var(--rim), var(--lift); position: relative; }
.hero-main::before, .pulse::before, .panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 0% 0%, rgba(255, 255, 255, .55), transparent 55%); }
.hero-main > *, .pulse > *, .panel > * { position: relative; }
.hero-main { padding: 38px 38px 34px; }
h1 { text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
h1 .pop { color: #ef5530; text-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 6px 18px rgba(239, 85, 48, .25); }

/* counters */
.chip { gap: 18px; padding: 18px 24px 18px 18px; }
.chip .ico { width: 64px; height: 64px; transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.chip:hover .ico { transform: translateY(-3px) rotate(-6deg) scale(1.05); }
.chip.hot { background: linear-gradient(135deg, #ff9466 0%, #ff6d47 48%, #f0532f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -10px 24px rgba(180, 40, 10, .25), 0 22px 44px -22px rgba(232, 69, 42, .75); }
.chip.hot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), transparent 46%); }
.chip { position: relative; overflow: hidden; }
.chip.hot .ico { filter: drop-shadow(0 8px 12px rgba(120, 30, 0, .45)); }
.chip b { text-shadow: 0 2px 0 rgba(0, 0, 0, .06); }
.chip.sun b { color: #6246dc; }

/* filter rail */
.rail { padding: 8px; }
.tab { transition: background .25s, color .25s, transform .15s, box-shadow .25s; }
.tab[aria-pressed="true"] { background: linear-gradient(180deg, #34405a, #1b2232); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 14px -6px rgba(29, 36, 51, .7); }
.switch input { background: linear-gradient(180deg, rgba(29, 36, 51, .2), rgba(29, 36, 51, .1)); box-shadow: inset 0 2px 4px rgba(29, 36, 51, .18); }
.switch input:checked { background: linear-gradient(180deg, #4fc04d, #74da72); box-shadow: inset 0 2px 4px rgba(20, 90, 30, .35), 0 0 12px rgba(92, 201, 90, .45); }
.switch input::after { background: linear-gradient(180deg, #fff, #eef1f6); box-shadow: 0 2px 5px rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .06); }

/* progress */
.progress-strip { padding: 10px 18px 10px 12px; }
.progress-strip .ico { width: 34px; height: 34px; margin-right: -4px; }
.meter { box-shadow: inset 0 2px 4px rgba(29, 36, 51, .12); }
.meter i { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 12px rgba(92, 201, 90, .5); }

/* community pulse */
.pulse { padding: 18px 22px 16px; }
.pulse-head { align-items: center; }
.pulse-head .ico { width: 32px; height: 32px; }
.stat { grid-template-columns: auto 1fr; grid-template-areas: "i n" "i l"; column-gap: 10px; align-items: center; padding: 12px 16px 12px 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .7)); box-shadow: var(--rim), 0 10px 20px -16px rgba(29, 36, 51, .45);
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.stat:hover { transform: translateY(-2px); }
.stat .ico { grid-area: i; width: 40px; height: 40px; }
.stat b { grid-area: n; } .stat span { grid-area: l; }
.bars i { background: linear-gradient(180deg, #ffa07f, #ff7a59 55%, #f05c3a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); opacity: .92; }
.bars i.peak { background: linear-gradient(180deg, #b6a4ff, #7b5cf0 55%, #5a3fd0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 14px rgba(107, 79, 216, .45); }

/* section titles */
.hot-title { align-items: center; }
.hot-title .ico { width: 34px; height: 34px; margin-right: -2px; }
.panel h3, .kp-add h3 { display: flex; align-items: center; gap: 10px; }
.panel h3 .ico { width: 32px; height: 32px; }
.empty .ico { width: 72px; height: 72px; }
.keeper-locked .ico { width: 24px; height: 24px; filter: drop-shadow(0 3px 4px rgba(29, 36, 51, .25)) grayscale(.15); }
.lang-pick .ico { width: 20px; height: 20px; filter: drop-shadow(0 2px 3px rgba(29, 36, 51, .25)); }

/* post and keeper cards */
.post { background: linear-gradient(165deg, #ffffff 0%, #fbfcff 55%, #f4f6fb 100%); border: 0;
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(29, 36, 51, .05), 0 1px 2px rgba(29, 36, 51, .06), 0 14px 30px -20px rgba(29, 36, 51, .45); }
/* hover: a clean lift and a soft coral rim, no shine overlay */
.post:hover { border: 0; box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 122, 89, .28), 0 2px 4px rgba(29, 36, 51, .06), 0 26px 44px -22px rgba(29, 36, 51, .5); }
.post.team { background: linear-gradient(160deg, #fff9e3 0%, #ffffff 55%, #fffaf0 100%);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 2px #ffd666, 0 0 0 5px rgba(255, 210, 63, .25), 0 24px 44px -26px rgba(150, 110, 0, .55); }
.hot .post { box-shadow: inset 0 1px 0 #fff, 0 0 0 2px rgba(255, 122, 89, .7), 0 0 0 5px rgba(255, 122, 89, .16), 0 24px 44px -26px rgba(29, 36, 51, .45); }
.pinned-row .post { box-shadow: inset 0 1px 0 #fff, 0 0 0 2px #ffd666, 0 0 0 5px rgba(255, 210, 63, .22), 0 24px 44px -26px rgba(150, 110, 0, .5); }
.avatar { box-shadow: 0 0 0 2px #fff, 0 4px 10px -3px rgba(29, 36, 51, .4); }
.tag { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.tag.team { background: linear-gradient(180deg, #ffe27a, #ffc93a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 6px -2px rgba(180, 130, 0, .5); }
.newbie { background: linear-gradient(165deg, #fff, #f6f8fc); border: 0; box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(29, 36, 51, .05), 0 14px 28px -18px rgba(29, 36, 51, .5); }

/* buttons */
.btn-go { background: linear-gradient(180deg, #ff9670 0%, #ff7a59 45%, #f0603d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 0 #cf4a2c, 0 14px 24px -12px rgba(232, 86, 58, .9); text-shadow: 0 1px 0 rgba(150, 40, 10, .3); }
.btn-go:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 0 #cf4a2c; }
.btn-soft { background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(240, 243, 249, .9)); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(29, 36, 51, .08), 0 4px 10px -6px rgba(29, 36, 51, .35); }
.btn-soft:hover { background: linear-gradient(180deg, #fff, #f3f5fa); }
.steps li::before { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 4px 8px -3px rgba(29, 36, 51, .35); }
.sky-pill, .lang-pick { box-shadow: var(--rim), 0 8px 18px -10px rgba(29, 36, 51, .45); }

/* night: the same glass, tinted with the sky */
body.dark-sky .side-actions .btn-soft, body.dark-sky .keeper-locked { background: linear-gradient(160deg, rgba(36, 44, 100, .82), rgba(20, 26, 69, .72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 30px -18px rgba(0, 0, 0, .7); }

/* ---------- the mailbox: a real photo in a gold rimmed porthole ---------- */
.mailbox { width: 112px; height: 112px; border-radius: 50%; padding: 4px; overflow: visible;
  background: conic-gradient(from 210deg, #fff3c4, #e2a93b, #fff1b8, #b9822a, #ffe08a, #fff3c4);
  box-shadow: 0 18px 34px -14px rgba(29, 36, 51, .6), 0 0 0 1px rgba(255, 255, 255, .5); }
.mailbox:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 26px 44px -16px rgba(29, 36, 51, .65), 0 0 0 1px rgba(255, 255, 255, .6), 0 0 28px rgba(255, 210, 63, .45); }
.mb-media { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #6b5130;
  box-shadow: inset 0 0 0 2px rgba(80, 50, 10, .35); isolation: isolate; }
.mb-media::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 2;
  background: radial-gradient(80% 60% at 30% 18%, rgba(255, 255, 255, .35), transparent 55%); }
.mb-still, .mb-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-clip { opacity: 0; transition: opacity .35s ease; }
.mailbox.playing .mb-clip { opacity: 1; }
body.dark-sky .mailbox { background: conic-gradient(from 210deg, #fff3c4, #e2a93b, #fff1b8, #b9822a, #ffe08a, #fff3c4); }
.mailbox-tip { right: calc(100% + 12px); }
@media (max-width: 560px) { .mailbox { width: 84px; height: 84px; padding: 3px; } }

@media (max-width: 760px) {
  .chip .ico { width: 44px; height: 44px; }
  .chip { padding: 14px; gap: 6px; }
  .stat .ico { width: 32px; height: 32px; }
}

/* one line posts: a bigger quote style line that fills the card instead of leaving a gap */
.post.short .text { align-self: center; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.22; letter-spacing: -.005em;
  max-height: none; -webkit-line-clamp: 3; line-clamp: 3; padding-left: 14px; position: relative; }
.post.short .text::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--coral), #ffc56b); }
.post.team.short .text::before { background: linear-gradient(180deg, #ffd23f, #f0a92a); }
