Files
LihonT/src/web/assets/site/oa.css
cheb0chik 2907c99c44 LihonT 3 Luna alpha 1: the lock, the journal of entries and the front-camera picture
Lock for the whole app, every chat or chosen chats, opened by the phone's own fingerprint, face or lock-screen code. A journal of entries
(time, result, wrong fingers, chats opened) with optional front-camera pictures kept in a private folder, and a clear-all button.
Also: the mascot and the promo scripts for this release.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 15:11:30 +03:00

211 lines
16 KiB
CSS

/* LihonT site, the light look: a white ground, near-black type, pill buttons, soft cards without outlines, pastel tiles and one
candy-coloured word. Used by the home page, /pay/ and /pet/. The class names are the ones the pages already had. */
:root {
--bg: #ffffff; --ink: #0d0d0f; --card: #ffffff; --soft: #f4f4f6; --soft-2: #ececf0; --muted: #6b6b73; --line: rgba(13, 13, 15, .08);
--inv-bg: #0d0d0f; --inv-ink: #ffffff; --inv-muted: rgba(255, 255, 255, .72); --main-bg: #0d0d0f; --main-ink: #ffffff; --main-muted: rgba(255, 255, 255, .72);
--lift: 0 1px 2px rgba(20, 20, 40, .05), 0 14px 36px rgba(20, 20, 40, .09);
--lift-hi: 0 2px 4px rgba(20, 20, 40, .06), 0 22px 50px rgba(20, 20, 40, .14);
--coral: #ffe0e0; --yellow: #fff0c8; --mint: #dcf5e6; --violet: #7a4fd0; --sky: #deeaff; --pink: #ffe0ee; --peach: #ffe6d8;
--on-accent: #0d0d0f;
--candy: linear-gradient(92deg, #ff6396 0%, #ffa028 26%, #6ccb52 50%, #4f9dff 74%, #b574ff 100%);
--ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #0d0d0f; --ink: #f5f5f7; --card: #17171a; --soft: #1c1c20; --soft-2: #26262b; --muted: #a0a0a8; --line: rgba(255, 255, 255, .1);
--inv-bg: #f5f5f7; --inv-ink: #0d0d0f; --inv-muted: rgba(13, 13, 15, .7); --main-bg: linear-gradient(135deg, #1d1d24, #23202e); --main-ink: #f5f5f7; --main-muted: rgba(245, 245, 247, .7);
--lift: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .45); --lift-hi: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 50px rgba(0, 0, 0, .6);
--coral: #4a2a2e; --yellow: #45391c; --mint: #1f3f2e; --violet: #8f6be0; --sky: #23314f; --pink: #4a2638; --peach: #47301f;
--on-accent: #f5f5f7;
}
}
:root[data-theme="dark"] {
--bg: #0d0d0f; --ink: #f5f5f7; --card: #17171a; --soft: #1c1c20; --soft-2: #26262b; --muted: #a0a0a8; --line: rgba(255, 255, 255, .1);
--inv-bg: #f5f5f7; --inv-ink: #0d0d0f; --inv-muted: rgba(13, 13, 15, .7); --main-bg: linear-gradient(135deg, #1d1d24, #23202e); --main-ink: #f5f5f7; --main-muted: rgba(245, 245, 247, .7);
--lift: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .45); --lift-hi: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 50px rgba(0, 0, 0, .6);
--coral: #4a2a2e; --yellow: #45391c; --mint: #1f3f2e; --violet: #8f6be0; --sky: #23314f; --pink: #4a2638; --peach: #47301f;
--on-accent: #f5f5f7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
font-family: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.06; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
code, .mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.page { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--inv-bg); color: var(--inv-ink); padding: 8px 14px; border-radius: 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
/* the one coloured word */
h1 em, .candy {
font-style: normal; font-weight: 800; background: var(--candy); -webkit-background-clip: text; background-clip: text; color: transparent;
background-size: 200% 100%; animation: candy 9s ease-in-out infinite alternate; padding-right: .04em;
}
@keyframes candy { to { background-position: 100% 0; } }
/* cards, buttons, chips */
.sticker, .card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--lift); }
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 22px; border: 0;
border-radius: 999px; background: var(--soft); color: var(--ink); font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none;
cursor: pointer; transition: transform .18s var(--ease), background .18s, box-shadow .18s;
}
.btn:hover { background: var(--soft-2); transform: translateY(-1px); }
.btn { white-space: nowrap; }
@media (max-width: 520px) { .top__end > a[data-confetti] { display: none; } .btn--lg { white-space: normal; text-align: center; } }
.btn:active { transform: scale(.97); }
.btn--yellow, .btn--mint { background: var(--inv-bg); color: var(--inv-ink); }
.btn--yellow:hover, .btn--mint:hover { background: var(--inv-bg); box-shadow: var(--lift); }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 1.06rem; }
.btn--flat { background: transparent; }
.btn--block { display: flex; width: 100%; }
.icon-btn { width: 44px; height: 44px; padding: 0; min-height: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: .86rem; }
.chip--y { background: var(--yellow); } .chip--m { background: var(--mint); } .chip--p { background: var(--pink); } .chip--s { background: var(--sky); }
.chip--v { background: var(--violet); color: #fff; }
/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.top__in:not(.page) { width: min(1120px, 100% - 32px); margin-inline: auto; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; }
.brand b { font-weight: 700; margin-left: -10px; }
.nav { display: none; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--muted); transition: color .15s, background .15s; }
.nav a:hover, .nav a.on { color: var(--ink); background: var(--soft); }
.top__end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav + .top__end { margin-left: 8px; }
@media (min-width: 980px) { .nav { display: flex; } .menu-btn { display: none; } }
.drawer { position: fixed; inset: 64px 0 auto 0; z-index: 19; display: none; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--lift); }
.drawer.open { display: grid; gap: 2px; }
.drawer a { padding: 12px 16px; border-radius: 14px; font-weight: 600; text-decoration: none; }
.drawer a:hover { background: var(--soft); }
/* hero: the words in the middle, a row of tiles under them */
.hero { padding: 72px 0 24px; display: grid; gap: 22px; justify-items: center; text-align: center; }
.hero h1 { font-size: clamp(2.7rem, 8.4vw, 5.6rem); max-width: 14ch; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); max-width: 56ch; }
.hero .cluster { justify-content: center; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.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; }
@keyframes rise { from { transform: translateY(18px); } }
.hero .eyebrow { justify-self: center; }
.tiles { display: flex; justify-content: center; align-items: center; gap: clamp(10px, 2vw, 22px); padding: 34px 0 30px; width: 100%; }
.tile { flex: 0 1 200px; aspect-ratio: 1; border-radius: 22%; display: grid; place-items: center; box-shadow: var(--lift); animation: tile 6s ease-in-out infinite; position: relative; overflow: hidden; }
.tile:nth-child(1) { background: var(--sky); transform: rotate(-5deg); animation-delay: -1s; }
.tile:nth-child(2) { background: var(--pink); animation-delay: -2.5s; }
.tile:nth-child(3) { background: var(--peach); flex-basis: 250px; z-index: 1; box-shadow: var(--lift-hi); animation-delay: -4s; }
.tile:nth-child(4) { background: var(--yellow); animation-delay: -3s; }
.tile:nth-child(5) { background: var(--mint); transform: rotate(5deg); animation-delay: -5s; }
@keyframes tile { 50% { translate: 0 -10px; } }
.tile svg, .tile img { width: 62%; height: 62%; object-fit: contain; }
.tile .pet { width: 84%; height: 84%; }
.tile .say { padding: .5em .9em; border-radius: 1.2em; font-weight: 600; font-size: clamp(.6rem, 1.5vw, .95rem); color: #fff; background: linear-gradient(120deg, #7a4fd0, #b574ff); }
.tile .say + .say { margin-top: 8%; background: var(--card); color: var(--ink); justify-self: start; }
.tile .stack2 { display: grid; width: 76%; justify-items: end; }
.tile small { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font-size: clamp(.55rem, 1.2vw, .78rem); font-weight: 600; color: var(--muted); }
@media (max-width: 640px) { .tile:nth-child(1), .tile:nth-child(5) { display: none; } }
/* a quiet line of words that runs */
.marquee { overflow: hidden; white-space: nowrap; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee div { display: inline-block; padding: 12px 0; font-weight: 600; font-size: clamp(1.3rem, 3vw, 2rem); letter-spacing: -.02em; color: var(--muted); opacity: .55; animation: run 40s linear infinite; }
@keyframes run { to { transform: translateX(-50%); } }
/* sections */
section.block { padding: 72px 0; }
.eyebrow { display: inline-flex; margin-bottom: 4px; }
.head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.head h2, .block > .page > h2 { font-size: clamp(2rem, 5.4vw, 3.5rem); }
.head p { font-size: 1.12rem; }
.head .chip, .eyebrow { justify-self: start; width: fit-content; }
.notes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.note { padding: 28px; display: grid; gap: 12px; align-content: start; transition: transform .25s var(--ease), box-shadow .25s; }
.note:hover { transform: translateY(-4px); box-shadow: var(--lift-hi); }
.note__tag { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; color: var(--on-accent); }
.note h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* code and two columns */
.code { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; background: var(--soft); border-radius: 20px; overflow-x: auto; }
.code code { white-space: normal; word-break: break-all; font-size: .88rem; flex: 1 1 260px; min-width: 0; }
.code button { flex: none; background: var(--card); box-shadow: 0 1px 2px rgba(20, 20, 40, .08); }
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.howto { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--lift); background: var(--card); border: 1px solid var(--line); }
/* downloads */
.dl { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dl__card { padding: 30px; display: grid; gap: 16px; align-content: start; }
.dl__card h3 { font-size: 1.4rem; }
.dl__card--main { background: var(--main-bg); color: var(--main-ink); grid-column: 1 / -1; border-color: var(--line); padding: clamp(28px, 5vw, 48px); }
.dl__card--main .muted { color: var(--main-muted); }
.dl__card--main .btn { background: rgba(255, 255, 255, .14); color: var(--main-ink); }
.dl__card--main .btn:hover { background: rgba(255, 255, 255, .22); }
.dl__card--main .btn--yellow, .dl__card--main .btn--yellow:hover { background: #ffffff; color: #0d0d0f; }
.dl__card--main .chip { background: var(--candy); color: #fff; }
.sha { font-size: .8rem; word-break: break-all; opacity: .6; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 18px; text-decoration: none; background: var(--soft); color: var(--ink); font-weight: 600; transition: background .15s, transform .2s var(--ease); }
.file:hover { background: var(--soft-2); transform: translateX(4px); }
.file small { display: block; font-weight: 400; color: var(--muted); }
.versions { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.file .tag { font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--candy); color: #fff; margin-left: 6px; vertical-align: 2px; }
.note__tag img { width: 44px; height: 44px; object-fit: contain; }
/* community */
.comments { display: grid; gap: 14px; }
.comment { display: flex; gap: 14px; padding: 18px; align-items: flex-start; border-radius: 24px; }
.avatar { width: 44px; height: 44px; flex: none; background: var(--pink); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; border-radius: 50%; }
.comment:nth-child(2) .avatar { background: var(--sky); border-radius: 34% 66% 55% 45% / 45% 45% 55% 55%; }
.comment b img { width: 18px; height: 18px; vertical-align: -3px; margin-left: 4px; }
/* questions */
.faq { display: grid; gap: 10px; max-width: 860px; }
details.sticker { box-shadow: none; background: var(--soft); border-color: transparent; border-radius: 22px; transition: background .2s; }
details.sticker[open] { background: var(--card); border-color: var(--line); box-shadow: var(--lift); }
summary { padding: 18px 22px; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--card); font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); background: var(--soft); }
details > div { padding: 0 22px 22px; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 40px 0 96px; margin-top: 48px; }
footer .row, footer .page { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer nav a { font-weight: 500; text-decoration: none; color: var(--muted); } footer nav a:hover { color: var(--ink); }
footer .note-line { margin-top: 20px; font-size: .86rem; display: grid; gap: 4px; flex-basis: 100%; }
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 18; box-shadow: var(--lift-hi); }
canvas#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
/* the small pages: one column in the middle */
body.solo { min-height: 100vh; display: flex; flex-direction: column; }
body.solo main { flex: 1; padding: 56px 0 40px; }
body.solo .page { width: min(720px, 100% - 32px); }
body.solo .hero { padding: 0; margin-bottom: 36px; gap: 18px; }
body.solo .hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); max-width: none; }
body.solo footer { padding: 28px 0; margin-top: 0; }
.card { padding: 30px; display: grid; gap: 18px; }
.card h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.stack { display: grid; gap: 12px; }
.heart { width: 132px; height: 132px; animation: beat 1.6s ease-in-out infinite; filter: drop-shadow(0 16px 24px rgba(255, 99, 150, .35)); }
@keyframes beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.1); } 55% { transform: scale(.98); } }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; }
.reveal { opacity: 1; transform: none; }
}