/* Cafe Stock — paper, ink and one warm gold; a dark espresso panel for the moments that matter.
   Built for people who are not used to computer systems: big targets, few words, pictures first. */
:root {
  --bg: #f4f2ed; --card: #fbfaf7; --ink: #0d0e10; --mut: #6d6b64; --line: #dfdcd3; --line2: #c8c4b8;
  --gold: #b98a3e; --gold-soft: #f1e7d3; --esp: #160d08; --crema: #f3e9dc;
  --in: #1f7a52; --in-soft: #dff1e7; --bad: #b3392c; --bad-soft: #f8e2de;
  --k: var(--ink);
  --font: "Instrument Sans", "Noto Sans Ethiopic", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.auth { padding: 0; }
body.k-in { --k: var(--in); } body.k-count { --k: var(--gold); } body.k-waste { --k: var(--bad); }
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; letter-spacing: -.035em; line-height: 1.05; font-weight: 600; }
h1 { font-size: 30px; } h2 { font-size: 19px; letter-spacing: -.02em; }
html:lang(am) :is(h1, h2), html:lang(ti) :is(h1, h2), html:lang(ar) :is(h1, h2) { letter-spacing: 0; line-height: 1.3; }
small { font-size: 13px; color: var(--mut); } .mut { color: var(--mut); } .small { font-size: 13.5px; }
.grow { flex: 1; } .r { text-align: end; } .center { justify-content: center; margin: 14px auto; display: flex; }
.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
[dir=rtl] .ic:has(use[href$="chevron-left"]), [dir=rtl] .ic:has(use[href$="chevron-right"]), [dir=rtl] .ic:has(use[href$="arrow-right"]) { transform: scaleX(-1); }
.wrap { max-width: 600px; margin: 0 auto; padding: 14px 16px 20px; } .wrap.wide { max-width: 1120px; }
.row { display: flex; gap: 8px; align-items: center; } .between { justify-content: space-between; }
.stack { display: grid; gap: 14px; } .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 16px 0; }

/* ---------- top bar and bottom tabs ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar-b { display: flex; align-items: center; gap: 10px; min-width: 0; } .bar-b b { display: block; font-size: 15px; letter-spacing: -.02em; line-height: 1.2; } .bar-b small { display: block; line-height: 1.2; }
.bar-logo { width: 38px; height: 38px; border-radius: 50%; background: var(--esp); color: var(--crema); display: grid; place-items: center; }
.ibtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; font-size: 17px; transition: background .15s, transform .1s; }
.ibtn:active { transform: scale(.92); background: var(--gold-soft); }
.menu { position: relative; } .menu summary { list-style: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; font-size: 17px; } .menu summary::-webkit-details-marker { display: none; }
.menu-b { position: absolute; inset-inline-end: 0; top: 52px; background: var(--card); border: 1px solid var(--line2); border-radius: 16px; padding: 6px; min-width: 170px; box-shadow: 0 24px 50px -28px rgba(13,14,16,.5); animation: pop .18s var(--ease); }
.menu-b a { display: block; padding: 11px 14px; border-radius: 10px; font-size: 16px; } .menu-b a.on { background: var(--ink); color: var(--bg); }
.tabs { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabs a { flex: 1; max-width: 140px; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; color: var(--mut); font-size: 12px; font-weight: 500; }
.tabs a .ic { width: 24px; height: 24px; } .tabs a.on { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.toasts { position: fixed; z-index: 50; top: 12px; left: 0; right: 0; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: 14.5px; animation: toast 3.4s var(--ease) forwards; }

/* ---------- buttons and fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink); font: 500 15.5px var(--font); cursor: pointer; transition: transform .1s, background .15s, border-color .15s; }
.btn:active { transform: scale(.96); } .btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.big { min-height: 60px; font-size: 18px; width: 100%; } .btn.sm { min-height: 38px; padding: 6px 13px; font-size: 14px; } .btn.in { background: var(--in); border-color: var(--in); color: #fff; }
.btn:disabled { opacity: .35; }
.quiet { background: none; border: 0; color: var(--mut); font: 500 14.5px var(--font); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 10px 4px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--mut); }
input, select { width: 100%; height: 52px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); padding: 0 14px; font: 17px var(--font); outline: none; }
input:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13,14,16,.1); }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--ink); } label.check { display: flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--ink); }
.err { background: var(--bad-soft); color: var(--bad); padding: 12px 16px; border-radius: 14px; margin: 0; animation: shake .4s; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--gold-soft); white-space: nowrap; } .tag.bad { background: var(--bad-soft); color: var(--bad); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; } .card.pad0 { padding: 0; overflow: hidden; } .card h2 { margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.sec { margin: 26px 2px 10px; font-size: 14px; letter-spacing: 0; color: var(--mut); font-weight: 500; display: flex; gap: 7px; align-items: center; }
.none { color: var(--mut); padding: 18px 4px; } .empty { text-align: center; padding: 70px 10px; } .empty b { font-size: 72px; letter-spacing: -.05em; }

/* ---------- the cup: steam that never stops, quietly ---------- */
.cup { position: relative; width: 150px; flex: none; } .cup svg { display: block; width: 100%; }
.st { position: absolute; bottom: 72%; width: 9px; height: 64px; border-radius: 50%; background: linear-gradient(to top, rgba(243,233,220,.75), rgba(243,233,220,0)); filter: blur(5px); animation: steam 3.6s ease-in-out infinite; transform-origin: bottom; }
.s1 { left: 30%; } .s2 { left: 44%; animation-delay: 1.1s; height: 84px; } .s3 { left: 58%; animation-delay: 2.2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(14px) scaleX(1); } 35% { opacity: .9; } 100% { opacity: 0; transform: translateY(-46px) scaleX(2.6) rotate(8deg); } }

/* ---------- sign in ---------- */
.auth main { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr .9fr; }
.auth-art { background: radial-gradient(70% 60% at 80% 20%, #5a3118 0%, transparent 60%), radial-gradient(90% 80% at 0% 100%, #3a1d0e 0%, transparent 60%), var(--esp); color: var(--crema); padding: clamp(22px, 4vw, 54px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; }
.auth-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: var(--esp); }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(14,8,5,.5) 0%, rgba(14,8,5,0) 32%, rgba(14,8,5,.25) 58%, rgba(14,8,5,.9) 100%); }
.auth-t { position: relative; z-index: 2; margin-top: auto; }
.auth-art .cup { width: clamp(120px, 22vw, 240px); margin-top: 8vh; animation: rise 1s var(--ease) backwards; }
.auth-t h1 { font-size: clamp(46px, 7vw, 108px); font-weight: 500; letter-spacing: -.055em; line-height: .92; animation: rise 1s var(--ease) .15s backwards; } .auth-t p { margin: 16px 0 0; color: rgba(243,233,220,.65); animation: rise 1s var(--ease) .3s backwards; }
.auth-f { padding: 22px clamp(18px, 4vw, 54px) 30px; display: flex; flex-direction: column; gap: 18px; justify-content: center; max-width: 520px; width: 100%; margin: 0 auto; }
.auth-f h2 { font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.langs { display: flex; gap: 6px; flex-wrap: wrap; } .langs a { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line2); font-size: 15.5px; } .langs a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.code { text-align: center; letter-spacing: .4em; font: 600 30px ui-monospace, Menlo, monospace; height: 70px; text-transform: uppercase; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.person { display: grid; justify-items: center; gap: 8px; padding: 18px 8px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); font: 500 15.5px var(--font); color: var(--ink); cursor: pointer; animation: pop .45s var(--ease) backwards; animation-delay: calc(var(--i) * 45ms + .2s); transition: transform .12s, border-color .15s; }
.person:active { transform: scale(.94); border-color: var(--ink); }
.av { width: 58px; height: 58px; border-radius: 50%; background: var(--esp); color: var(--crema); display: grid; place-items: center; font-size: 24px; font-weight: 600; } .av.sm { width: 34px; height: 34px; font-size: 14px; display: inline-grid; vertical-align: middle; }
.pinbox { display: grid; gap: 16px; justify-items: center; animation: rise .4s var(--ease); } .pinbox[hidden] { display: none; }
.dots { display: flex; gap: 12px; min-height: 18px; } .dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); animation: pop .2s var(--ease); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(330px, 100%); }
.pad button { height: 68px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); font: 500 26px var(--font); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform .08s, background .12s; touch-action: manipulation; }
.pad button:active, .pad button.hit { transform: scale(.92); background: var(--gold-soft); } .pad .ok { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.foot { margin-top: 8px; }
@media (max-width: 820px) { .auth main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } .auth-art { flex-direction: row; align-items: flex-end; padding: 22px 20px; min-height: 40vh; } .auth-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: var(--esp); }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(14,8,5,.5) 0%, rgba(14,8,5,0) 32%, rgba(14,8,5,.25) 58%, rgba(14,8,5,.9) 100%); }
.auth-t { position: relative; z-index: 2; margin-top: auto; }
.auth-art .cup { margin: 0; width: 96px; order: 2; } .auth-t h1 { font-size: 44px; } .auth-f { justify-content: flex-start; } }

/* ---------- staff home ---------- */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 22px 22px 20px; border-radius: 26px; color: var(--crema); overflow: hidden; background: radial-gradient(80% 90% at 90% 0%, #5a3118 0%, transparent 60%), var(--esp); animation: open .9s cubic-bezier(.7, 0, .2, 1) backwards; }
.hello .cup { width: 104px; order: 2; margin-bottom: -6px; } .hello .date { margin: 0 0 8px; font-size: 13px; color: rgba(243,233,220,.6); }
.hello h1 { font-size: clamp(30px, 8.4vw, 46px); font-weight: 500; letter-spacing: -.045em; } .hello h1 span { display: block; color: rgba(243,233,220,.55); }
.acts { display: grid; gap: 12px; margin-top: 14px; }
.act { position: relative; display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; align-items: center; padding: 18px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); animation: rise .6s var(--ease) backwards; animation-delay: calc(var(--i) * 80ms + .35s); transition: transform .12s; overflow: hidden; }
.act:active { transform: scale(.97); }
.act-i { grid-row: span 2; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 34px; background: var(--ink); color: var(--bg); }
.act b { font-size: 25px; letter-spacing: -.03em; line-height: 1.15; align-self: end; } .act small { font-size: 14.5px; align-self: start; }
.act.in .act-i { background: var(--in); color: #fff; } .act.count .act-i { background: var(--gold); color: #fff; }
.prog { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line); margin-top: 14px; overflow: hidden; } .prog i { display: block; height: 100%; background: var(--gold); border-radius: 3px; animation: growx 1.2s var(--ease) .8s backwards; transform-origin: left; } [dir=rtl] .prog i { transform-origin: right; }
.waste-l { display: flex; align-items: center; gap: 8px; margin: 12px 4px 0; padding: 10px 6px; color: var(--bad); font-size: 14.5px; font-weight: 500; }
.warn { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 15px 18px; border-radius: 20px; background: var(--bad-soft); color: var(--bad); font-size: 16px; animation: rise .6s var(--ease) .7s backwards; } .warn span:nth-child(2) { flex: 1; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--bad); animation: pulse 1.5s infinite; }
.list { list-style: none; margin: 0; padding: 0; } .list li { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line); min-width: 0; } .list li:first-child { border-top: 0; }
.em { font-size: 26px; line-height: 1; } .em.big { font-size: 64px; }
.li-t { flex: 1; min-width: 0; display: grid; } .li-t b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chg { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; } .chg.in { color: var(--in); } .chg.waste { color: var(--bad); } .chg.count { color: var(--gold); }

/* ---------- pick an item ---------- */
.phead { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; flex-wrap: wrap; } .phead h1 { flex: 1; }
.phead input[type=date], .phead input[type=month] { width: auto; height: 44px; }
.kdot { width: 14px; height: 14px; border-radius: 50%; background: var(--k); }
.ask { font-size: 21px; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 500; }
.find { position: relative; display: block; } .find .ic { position: absolute; inset-inline-start: 16px; top: 17px; color: var(--mut); } .find input { padding-inline-start: 46px; border-radius: 999px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; font: 500 14.5px var(--font); color: var(--ink); cursor: pointer; } .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.tile { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 14px 6px 12px; text-align: center; border-radius: 20px; background: var(--card); border: 1px solid var(--line); min-height: 132px; animation: pop .4s var(--ease) backwards; animation-delay: calc(var(--i) * 22ms); transition: transform .1s, border-color .15s; }
.tile:active { transform: scale(.93); border-color: var(--k); }
.tile .em { font-size: 40px; margin-bottom: 6px; } .tile b { font-size: 14.5px; font-weight: 500; line-height: 1.2; } .tile small { font-size: 12.5px; line-height: 1.2; }
.tile .q { margin-top: 6px; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--bg); font-variant-numeric: tabular-nums; }
.tile.low .q { background: var(--bad-soft); color: var(--bad); } .tile.done { border-color: var(--gold); background: var(--gold-soft); }
.tile[hidden] { display: none; }
.tick { position: absolute; top: 8px; inset-inline-end: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 13px; }

/* ---------- how much ---------- */
.qform { display: grid; gap: 14px; } .qitem { display: flex; align-items: center; gap: 16px; } .qitem b { font-size: 24px; letter-spacing: -.03em; display: block; line-height: 1.15; } .qitem small { display: block; }
.have { display: block; margin-top: 4px; font-size: 14px; color: var(--mut); } .have b { display: inline; font-size: 14px; color: var(--ink); letter-spacing: 0; }
.qnum { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 0; }
.qnum output { font-size: clamp(64px, 20vw, 96px); font-weight: 500; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; min-width: 1.2ch; text-align: center; display: inline-block; color: var(--k); }
.qnum output.bump { animation: bump .22s var(--ease); } .unit { font-size: 22px; color: var(--mut); align-self: flex-end; padding-bottom: 12px; }
.rnd { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font-size: 26px; display: grid; place-items: center; cursor: pointer; flex: none; touch-action: manipulation; transition: transform .08s, background .12s; } .rnd:active { transform: scale(.9); background: var(--gold-soft); }
.pad.num { margin: 0 auto; } .pad.num button { height: 60px; }
.more { border: 1px solid var(--line); border-radius: 18px; padding: 4px 16px; background: var(--card); } .more summary { list-style: none; padding: 12px 0; font-weight: 500; display: flex; gap: 8px; align-items: center; cursor: pointer; } .more summary::-webkit-details-marker { display: none; } .more[open] { padding-bottom: 16px; } .more[open] summary .ic { transform: rotate(45deg); } .more label { margin-top: 10px; }
.btn.save { background: var(--k); border-color: var(--k); color: #fff; position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); }

/* ---------- saved ---------- */
.done { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 34px 10px 8px; }
.okmark { width: 132px; height: 132px; } .okmark circle { fill: var(--k); transform-origin: center; animation: pop .5s var(--ease) backwards; } .okmark path { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .45s ease-out .3s forwards; }
.done h1 { font-size: 44px; font-weight: 500; animation: rise .5s var(--ease) .35s backwards; } .dn-i { margin: 0; font-size: 18px; animation: rise .5s var(--ease) .45s backwards; }
.dn-q { margin: 0; font-size: 34px; letter-spacing: -.04em; display: flex; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; animation: rise .5s var(--ease) .55s backwards; } .dn-q span { color: var(--mut); } .dn-q b { font-weight: 600; } .dn-q .ic { align-self: center; color: var(--mut); width: .7em; }
.dn-low { color: var(--bad); background: var(--bad-soft); padding: 10px 16px; border-radius: 999px; margin: 0; display: flex; gap: 8px; align-items: center; }
.done .btn { margin-top: 14px; animation: rise .5s var(--ease) .7s backwards; }
.bean { position: fixed; top: -30px; font-size: 22px; pointer-events: none; z-index: 40; }

/* ---------- owner ---------- */
.onav { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; } .onav::-webkit-scrollbar { display: none; }
.onav a { flex: none; display: inline-flex; gap: 7px; align-items: center; padding: 9px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--mut); } .onav a.on { background: var(--ink); color: var(--bg); }
.shelf { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; color: var(--crema); min-height: clamp(500px, 70vh, 680px); padding: clamp(18px, 2.4vw, 34px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background: radial-gradient(60% 60% at 78% 30%, #6b3c1c 0%, transparent 62%), radial-gradient(80% 80% at 0% 100%, #2b160b 0%, transparent 60%), var(--esp); animation: open 1.2s cubic-bezier(.7, 0, .2, 1) backwards; }
.shelf canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.4s; } .shelf canvas.on { opacity: 1; }
.shelf::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(14,8,5,.82) 0%, rgba(14,8,5,.25) 44%, transparent 66%), linear-gradient(180deg, rgba(14,8,5,.3) 0%, transparent 30%, rgba(14,8,5,.2) 60%, rgba(14,8,5,.88) 100%); }
[dir=rtl] .shelf::after { transform: scaleX(-1); }
.shelf .date { margin: 0 0 14px; font-size: 13px; color: rgba(243,233,220,.65); }
.shelf h1 { font-size: clamp(44px, 6.2vw, 88px); font-weight: 500; letter-spacing: -.055em; line-height: .92; max-width: 13ch; } .shelf h1 span { display: block; color: rgba(243,233,220,.55); }
html:lang(am) .shelf h1, html:lang(ti) .shelf h1, html:lang(ar) .shelf h1, html:lang(am) .auth-t h1, html:lang(ti) .auth-t h1, html:lang(ar) .auth-t h1 { letter-spacing: 0; line-height: 1.15; font-size: clamp(36px, 5.4vw, 76px); }
.cap { display: none; margin: 16px 0 0; font-size: 13px; color: rgba(243,233,220,.66); } .shelf.live .cap { display: block; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: rgba(20,11,6,.45); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); overflow: hidden; animation: rise 1s var(--ease) .9s backwards; }
.strip > * { display: grid; gap: 4px; padding: 18px 22px 20px; border-inline-end: 1px solid rgba(255,255,255,.13); color: #fff; } .strip > *:last-child { border: 0; }
.strip small { color: rgba(243,233,220,.66); font-size: 12.5px; } .strip b { font-size: clamp(34px, 4.2vw, 60px); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; } .strip span { font-size: 12.5px; color: rgba(243,233,220,.66); }
.strip b.hot { color: #ff8f6b; }
.strip.light { background: transparent; border-color: var(--line2); -webkit-backdrop-filter: none; backdrop-filter: none; grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; } .strip.light > * { color: var(--ink); border-color: var(--line); } .strip.light small, .strip.light span { color: var(--mut); } .strip.light b.hot { color: var(--bad); }
@media (max-width: 760px) { .strip, .strip.light { grid-template-columns: 1fr 1fr; } .strip > * { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.13); } .strip.light > * { border-bottom-color: var(--line); } .shelf { border-radius: 22px; min-height: 640px; } }
.bars { display: flex; align-items: stretch; gap: 8px; height: 170px; } .bars > div { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bars u { flex: 1; width: 100%; display: flex; align-items: flex-end; text-decoration: none; } .bars i { display: block; width: 100%; border-radius: 7px; background: var(--ink); transform-origin: bottom; animation: growy .9s var(--ease) backwards; animation-delay: calc(var(--i) * 60ms + .4s); }
.bars b { font-size: 11.5px; font-weight: 500; min-height: 16px; font-variant-numeric: tabular-nums; } .bars span { font-size: 11.5px; color: var(--mut); }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } .hbars li { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto; gap: 12px; align-items: center; } .hbars u { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; display: block; } .hbars i { display: block; height: 100%; background: var(--ink); border-radius: 5px; transform-origin: left; animation: growx .9s var(--ease) backwards; animation-delay: calc(var(--i) * 70ms + .2s); } [dir=rtl] .hbars i { transform-origin: right; } .hbars b { font-variant-numeric: tabular-nums; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; } .tbl th { text-align: start; font-size: 12.5px; font-weight: 500; color: var(--mut); padding: 13px 14px; border-bottom: 1px solid var(--line2); white-space: nowrap; } .tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; } .tbl tr:last-child td { border-bottom: 0; } .tbl .r { text-align: end; font-variant-numeric: tabular-nums; } .tbl .em { font-size: 22px; vertical-align: -3px; } .tbl td.bad, .tbl tr.lowr td:nth-child(3) { color: var(--bad); font-weight: 600; }
.scroll { overflow-x: auto; } .form input.emoji-in { width: 90px; font-size: 30px; text-align: center; height: 64px; }
.epick { display: flex; flex-wrap: wrap; gap: 4px; } .epick button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 22px; cursor: pointer; }
.brs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; } .br { width: 100%; text-align: start; display: grid; gap: 6px; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); font: 15px var(--font); color: var(--ink); cursor: pointer; } .br b { font-size: 18px; letter-spacing: -.02em; } .br.on { background: var(--ink); color: var(--bg); border-color: var(--ink); } .br .tag { justify-self: start; }
.bcode { font: 600 17px ui-monospace, Menlo, monospace; letter-spacing: .14em; background: var(--gold-soft); padding: 6px 12px; border-radius: 10px; } .pin-in { width: 120px; height: 44px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes pop { from { opacity: 0; transform: scale(.8); } }
@keyframes open { from { clip-path: inset(38% 0 38% 0 round 26px); opacity: 0; } 30% { opacity: 1; } to { clip-path: inset(0 0 0 0 round 26px); } }
@keyframes growx { from { transform: scaleX(0); } } @keyframes growy { from { transform: scaleY(0); } }
@keyframes bump { 50% { transform: scale(1.12); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(179,57,44,.55); } 100% { box-shadow: 0 0 0 14px rgba(179,57,44,0); } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes toast { 0% { opacity: 0; transform: translateY(-20px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-20px); } }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); opacity: .2; } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s ease-in both vt-out; } ::view-transition-new(root) { animation: .32s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } } @keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } .st { display: none; } @view-transition { navigation: none; } }
