diff --git a/static/index.html b/static/index.html
index 8c74942..a4e8dd9 100644
--- a/static/index.html
+++ b/static/index.html
@@ -6,7 +6,7 @@
Пожитки
-
+
diff --git a/static/styles.css b/static/styles.css
index 30dd101..fc6d98f 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -10,6 +10,10 @@
--danger: #ff9188;
--line: rgba(255, 255, 255, .18);
--shadow: 0 18px 55px rgba(0, 0, 0, .2);
+ --app-safe-top: max(var(--tg-content-safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px), env(safe-area-inset-top));
+ --app-safe-right: max(var(--tg-content-safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px), env(safe-area-inset-right));
+ --app-safe-bottom: max(var(--tg-content-safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom));
+ --app-safe-left: max(var(--tg-content-safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px), env(safe-area-inset-left));
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: var(--text);
background: var(--bg);
@@ -22,7 +26,10 @@
html, body {
margin: 0;
+ width: 100%;
+ max-width: 100%;
min-height: 100%;
+ overflow-x: hidden;
background: var(--bg);
overscroll-behavior: none;
overscroll-behavior-y: none;
@@ -34,10 +41,10 @@ body {
min-height: 100vh;
min-height: 100dvh;
padding:
- max(14px, var(--tg-content-safe-area-inset-top, 0px), env(safe-area-inset-top))
- max(18px, var(--tg-content-safe-area-inset-right, 0px), env(safe-area-inset-right))
- calc(108px + max(var(--tg-content-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom)))
- max(18px, var(--tg-content-safe-area-inset-left, 0px), env(safe-area-inset-left));
+ max(14px, var(--app-safe-top))
+ max(18px, var(--app-safe-right))
+ calc(108px + var(--app-safe-bottom))
+ max(18px, var(--app-safe-left));
overflow-x: hidden;
background: transparent;
}
@@ -74,7 +81,7 @@ button:focus { outline: none; }
button:focus-visible { outline: 2px solid rgba(255, 255, 255, .72); outline-offset: 2px; }
button:active { filter: brightness(.88); }
-.shell { display: flex; flex-direction: column; width: min(100%, 560px); min-height: calc(var(--tg-viewport-stable-height, 100dvh) - 126px - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-bottom, 0px)); margin: 0 auto; }
+.shell { display: flex; flex-direction: column; width: min(100%, 560px); min-height: calc(var(--tg-viewport-stable-height, 100dvh) - 126px - var(--app-safe-top) - var(--app-safe-bottom)); margin: 0 auto; overflow-x: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 26px; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.eyebrow { margin: 0 0 3px; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 750; color: var(--muted); }
h1, h2, p { margin-top: 0; }
@@ -83,7 +90,7 @@ h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.user-chip { display: flex; align-items: center; gap: 8px; max-width: 48%; padding: 5px 11px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; }
.mini-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: rgba(0, 0, 0, .28); color: var(--text); }
-.view-stage { display: flex; flex: 1; flex-direction: column; min-width: 0; }
+.view-stage { display: flex; flex: 1; flex-direction: column; width: 100%; min-width: 0; }
.view-stage.transition-forward { animation: view-stage-from-right .3s cubic-bezier(.22, 1, .36, 1); }
.view-stage.transition-backward { animation: view-stage-from-left .3s cubic-bezier(.22, 1, .36, 1); }
.view { display: none; padding-top: 0; }
@@ -186,7 +193,7 @@ h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.leader-percent.negative { color: var(--danger); }
.friend-hint { margin: 13px 18px; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
-.bottom-nav { position: fixed; z-index: 10; right: max(12px, var(--tg-content-safe-area-inset-right, 0px), env(safe-area-inset-right)); bottom: max(12px, var(--tg-content-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom)); left: max(12px, var(--tg-content-safe-area-inset-left, 0px), env(safe-area-inset-left)); display: flex; align-items: stretch; gap: 10px; width: auto; max-width: 540px; height: 62px; margin: 0 auto; }
+.bottom-nav { position: fixed; z-index: 10; right: max(12px, calc(var(--app-safe-right) + 8px)); bottom: max(12px, calc(var(--app-safe-bottom) + 8px)); left: max(12px, calc(var(--app-safe-left) + 8px)); display: flex; align-items: stretch; gap: 10px; width: auto; max-width: 540px; height: 62px; margin: 0 auto; }
.nav-tabs { display: grid; flex: 1; grid-template-columns: repeat(3, 1fr); gap: 4px; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(50px); -webkit-backdrop-filter: blur(50px); }
.nav-tabs button { display: grid; place-items: center; gap: 1px; min-width: 0; padding: 2px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 650; }
.nav-tabs button > span { font-size: 20px; line-height: 26px; }
@@ -195,7 +202,7 @@ h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.app-action:disabled { opacity: .72; cursor: default; }
.form-open .nav-tabs { display: none; }
.form-open .app-action { flex-basis: 100%; width: 100%; border-radius: 999px; font-size: 16px; font-weight: 800; }
-.toast { position: fixed; z-index: 20; left: 50%; bottom: calc(92px + max(var(--tg-content-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom))); max-width: calc(100% - 36px); padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px; transform: translate(-50%, 20px); background: rgba(0, 0, 0, .62); color: var(--text); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 12px; box-shadow: var(--shadow); backdrop-filter: blur(50px); -webkit-backdrop-filter: blur(50px); }
+.toast { position: fixed; z-index: 20; left: 50%; bottom: calc(100px + var(--app-safe-bottom)); max-width: calc(100% - 36px); padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px; transform: translate(-50%, 20px); background: rgba(0, 0, 0, .62); color: var(--text); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 12px; box-shadow: var(--shadow); backdrop-filter: blur(50px); -webkit-backdrop-filter: blur(50px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.hero-card,