:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #393047;
  background: #f7f6fb;
  font-synthesis: none;
  --purple: #7956cc;
  --muted: #8d819d;
  --border: #e9e2f2;
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --content-top: var(--tg-content-safe-area-inset-top, 0px);
  --content-bottom: var(--tg-content-safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid #af8ddf; outline-offset: 3px; }
button:active:not(:disabled) { scale: .97; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
h1 { font-size: 32px; line-height: 1.15; letter-spacing: -1.2px; font-weight: 750; }
h1 > span { color: var(--purple); }
h1:focus { outline: none; }
svg.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex-shrink: 0; }
button svg { pointer-events: none; }
.app-shell { max-width: 480px; margin: auto; min-height: 100svh; padding: calc(var(--safe-top) + var(--content-top)) 20px calc(94px + var(--safe-bottom) + var(--content-bottom)); }
.app-shell[aria-busy="true"] { cursor: progress; }
.app-shell[aria-busy="true"]::after { content: "Загружаем прогресс…"; position: fixed; z-index: 20; top: calc(var(--safe-top) + var(--content-top) + 8px); left: 50%; transform: translateX(-50%); padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); box-shadow: 0 4px 16px #39304714; font-size: 12px; white-space: nowrap; pointer-events: none; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 7px; font-size: 29px; font-weight: 800; letter-spacing: -1.8px; }
.brand > span { margin-left: -7px; color: var(--purple); }
.brand img { border-radius: 11px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.wallet-button { display: flex; align-items: center; gap: 5px; min-height: 40px; padding: 7px 9px; border: 1px solid #e1d4ef; border-radius: 14px; background: #eee4fa; color: #8058b2; font-size: 12px; }
.wallet-button > span { font-size: 17px; }
.wallet-button > strong { max-width: 65px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-wallet { display: flex; align-items: center; gap: 15px; margin: 23px 0 12px; padding: 22px; background: #eee4f8; border: 1px solid #e1d1ee; border-radius: 23px; }
.shop-wallet > div { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.shop-wallet span, .shop-wallet small { color: #9b7fb1; font-size: 12px; }
.shop-wallet strong { color: #7956bb; font-size: 35px; }
.package-list { display: grid; gap: 11px; margin-top: 15px; }
.package-button { display: flex; align-items: center; justify-content: space-between; border: 1px solid #e4d6f0; background: #fff; border-radius: 18px; min-height: 78px; padding: 17px; text-align: left; }
.package-button strong { font-size: 21px; color: #8061ad; }
.package-button small { font-size: 11px; color: #9f8cb0; display: block; margin-top: 5px; }
.package-button > span:last-child { color: #ab8a45; font-size: 15px; font-weight: 650; background: #fff6df; border-radius: 11px; padding: 10px; white-space: nowrap; }
.terms-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; line-height: 1.8; color: #93819e; margin: 18px 2px; }
.terms-consent input { width: 20px; height: 20px; accent-color: #7956cc; flex-shrink: 0; }
.inline-button { display: inline; border: 0; padding: 0; background: none; font-size: inherit; color: #7956cc; text-decoration: underline; }
.shop-benefits { padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: #fff9; font-size: 12px; line-height: 1.8; }
.shop-benefits p { color: #97849f; margin-top: 8px; }
.shop-notice { color: #a080aa; font-size: 12px; line-height: 1.7; }
.history-heading { font-size: 16px; margin: 22px 0 12px; }
.history-row { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #90799f; }
.history-row strong { color: #705185; }
.history-row small { font-size: 10px; overflow-wrap: anywhere; }
.history-empty { color: #a291ad; font-size: 12px; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 14px; background: #ffffffb3; color: #8f78aa; flex-shrink: 0; }
.profile { border: 0; background: none; display: flex; align-items: center; gap: 8px; padding: 0; min-height: 44px; }
.avatar, .big-avatar { display: grid; place-items: center; background: #e8ddf7; color: var(--purple); font-weight: 650; border: 3px solid white; border-radius: 50%; width: 42px; height: 42px; }
.profile-label { display: none; }
.screen { animation: screen-in .32s cubic-bezier(.2,.7,.2,1) both; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 7px; color: #9483a5; font-size: 10px; font-weight: 650; letter-spacing: 1.7px; }
.status-dot { width: 6px; height: 6px; background: #9db993; border-radius: 50%; }
.home-hero { text-align: center; padding: 25px 4px 20px; }
.hero-art { position: relative; width: 240px; height: 158px; margin: 12px auto 6px; }
.hero-orbit { position: absolute; width: 190px; height: 125px; top: 16px; left: 25px; background: #eee5fa; border-radius: 50%; transform: rotate(-12deg); }
.hero-art > .fruit-art { position: absolute; width: 110px; left: 59px; top: 12px; filter: drop-shadow(0 14px 10px #805e9b24); animation: fruit-float 4s ease-in-out infinite; }
.hero-art > .fruit-art.second { width: 80px; left: 140px; top: 49px; animation-delay: -1.5s; }
.hero-art > .fruit-art.third { width: 63px; left: 8px; top: 61px; animation-delay: -2.5s; }
.hero-spark { position: absolute; right: 13px; top: 6px; color: #b49ad3; font-size: 25px; animation: sparkle 3s ease-in-out infinite; }
.hero-spark.second { left: 22px; right: auto; top: 16px; font-size: 18px; animation-delay: -1s; }
.home-hero h1 { font-size: 39px; }
.home-hero > p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-top: 14px; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; border: 0; border-radius: 17px; background: linear-gradient(110deg, #9771d5, #7956c5); color: #fff; font-weight: 650; font-size: 15px; padding: 14px 20px; box-shadow: 0 7px 16px #7956cc26; transition: scale .15s, box-shadow .2s; }
.play-button { margin-top: 24px; min-height: 60px; }
.play-button > span:last-child { margin-left: auto; }
.play-button > span:first-child { margin-right: auto; }
.continue-meta { font-size: 11px; color: #9e90ae; margin-top: 11px; }
.text-button { min-height: 44px; border: 0; background: none; color: var(--purple); font-size: 13px; padding: 10px; }
.daily-card { position: relative; background: linear-gradient(125deg,#eee5f9,#f3edf9); border: 1px solid #e4d7f0; border-radius: 23px; padding: 21px; overflow: hidden; }
.card-eyebrow { display: flex; align-items: center; gap: 6px; color: #9b7ab9; font-size: 9px; font-weight: 650; letter-spacing: 1.4px; }
.card-eyebrow .icon { width: 16px; height: 16px; }
.daily-copy { position: relative; z-index: 1; }
.daily-card h2 { font-size: 24px; letter-spacing: -.7px; color: #715294; margin: 10px 0 7px; }
.daily-card p { color: #947ea8; font-size: 12px; line-height: 1.65; }
.daily-art { position: absolute; width: 120px; height: 120px; right: 9px; top: 12px; }
.daily-art > .fruit-art { position: absolute; width: 76px; left: 0; top: 9px; transform: rotate(-12deg); }
.daily-art > .fruit-art.second { width: 65px; top: 45px; left: 51px; transform: rotate(18deg); }
.art-spark { position: absolute; right: 7px; top: 5px; color: #b397ce; }
.daily-button { display: flex; align-items: center; justify-content: space-between; border: 0; border-top: 1px solid #ddd0ed; background: transparent; width: 100%; min-height: 48px; font-size: 13px; font-weight: 650; color: #805ba8; margin-top: 15px; padding: 12px 0 4px; }
.daily-button .icon { width: 18px; height: 18px; }
.daily-timer { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 10px; color: #9c86b0; font-variant-numeric: tabular-nums; padding-top: 7px; }
.daily-timer .icon { width: 13px; height: 13px; }
.home-links { display: flex; justify-content: space-between; padding: 11px 0; gap: 8px; }
.home-links button { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; min-height: 44px; color: #9582a7; font-size: 12px; padding: 6px; }
.home-links .icon { width: 17px; height: 17px; }
.home-links strong { color: #80629c; }
.bottom-nav { position: fixed; bottom: calc(var(--safe-bottom) + var(--content-bottom) + 12px); left: 50%; transform: translateX(-50%); width: min(440px, calc(100% - 32px)); display: grid; grid-template-columns: repeat(4,1fr); z-index: 4; background: #fffc; backdrop-filter: blur(20px); border: 1px solid #e8e0f0; border-radius: 23px; padding: 7px; box-shadow: 0 5px 30px #51346a0c; }
.bottom-nav button { display: flex; align-items: center; flex-direction: column; gap: 5px; min-height: 51px; padding: 6px 2px; border: 0; border-radius: 16px; background: transparent; color: #a294af; font-size: 10px; transition: background .2s, color .2s; }
.bottom-nav button[aria-current="page"] { background: #f0e8fa; color: var(--purple); font-weight: 650; }
.game-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0 18px; }
.game-heading > div { flex: 1; text-align: center; }
.game-heading h1 { font-size: 23px; margin-top: 5px; letter-spacing: -.5px; }
.game-heading small { color: #9a89ab; font-size: 8px; font-weight: 650; letter-spacing: 1.4px; }
.game-card { background: #fffc; border: 1px solid var(--border); padding: 18px 12px 0; border-radius: 24px; box-shadow: 0 8px 24px #51366a04; }
.scoreboard { display: grid; grid-template-columns: 1fr .8fr 1fr; text-align: center; padding: 0 5px 17px; }
.scoreboard > div { display: flex; flex-direction: column; gap: 7px; }
.scoreboard > div:first-child { text-align: left; }
.scoreboard > div:last-child { text-align: right; }
.scoreboard span { color: #9a88a8; font-size: 11px; }
.scoreboard strong { font-size: 29px; line-height: 1.1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.scoreboard > div:first-child strong { color: var(--purple); }
.moves-stat { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.tiny-star { color: #ad94cc !important; }
.progress-track { position: relative; height: 6px; border-radius: 5px; background: #eee8f6; margin: 0 5px 20px; }
.progress-track > div { width: 0; height: 100%; border-radius: 5px; background: linear-gradient(90deg,#b194df,#8660ca); transition: width .4s ease; }
.progress-star { position: absolute; right: -1px; top: -8px; background: #fff; padding-left: 3px; color: #b195d2; font-size: 18px; }
.board-wrap { position: relative; margin: auto; width: 100%; max-width: max(160px, calc(var(--tg-viewport-stable-height, 100svh) - var(--game-chrome, 390px) - var(--safe-top) - var(--content-top) - var(--safe-bottom) - var(--content-bottom))); }
.board { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 4px; padding: 6px; background: #f0eaf7; border: 1px solid #e8dff1; border-radius: 15px; user-select: none; overflow: hidden; }
.tile { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-width: 0; padding: 2px; border: 1px solid #fff; border-bottom: 3px solid #e1d7ec; border-radius: 8px; background: linear-gradient(145deg,#fff,#faf7fe); touch-action: none; transition: background .15s, box-shadow .15s; }
.tile svg { position: relative; z-index: 1; width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 2px 1px #58415815); }
.tile.selected { background: #e9dbfc; border-color: #a680da; box-shadow: inset 0 0 0 1px #a680da; z-index: 1; }
.tile.selected svg { transform: scale(1.08) rotate(-7deg); }
.tile.hinted { animation: hint 1s ease-in-out infinite; z-index: 1; }
.tile.invalid { animation: shake .28s; }
.board.busy .tile { pointer-events: none; }
.board.busy .tile:active { scale: 1; }
.board-effects { position: absolute; z-index: 2; inset: 0; pointer-events: none; overflow: hidden; }
.point-burst { position: absolute; left: 50%; top: 40%; color: #7956cc; text-shadow: 0 2px white, 1px 0 white, -1px 0 white; font-size: 25px; font-weight: 800; animation: points-up .85s ease-out forwards; }
.combo-banner { position: absolute; z-index: 2; left: 50%; top: 43%; transform: translate(-50%,-50%) scale(.8); opacity: 0; pointer-events: none; padding: 12px 19px; white-space: nowrap; border-radius: 16px; background: #7956ccee; color: #fff; font-size: 20px; font-weight: 750; box-shadow: 0 8px 35px #7956cc44; transition: opacity .2s, transform .2s; }
.combo-banner.visible { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.game-status { min-height: 39px; display: grid; place-items: center; font-size: 10px; color: #a594b3; text-align: center; }
.game-controls { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 18px 0 0; }
.game-controls button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 77px; border: 1px solid var(--border); border-radius: 19px; background: #fff9; color: #9178ac; font-size: 11px; }
.control-icon { width: 33px; height: 28px; display: grid; place-items: center; }
.control-badge { position: absolute; top: 10px; right: 12px; border-radius: 6px; background: #ede3f9; color: #8862b3; font-size: 10px; padding: 2px 5px; }
.game-bottom-note { font-size: 10px; color: #ad9fbb; text-align: center; margin-top: 19px; }
.game-bottom-note > span { color: #b397ce; margin-right: 5px; }
body[data-screen="game"] .topbar { height: 53px; }
body[data-screen="game"] .brand { font-size: 24px; }
body[data-screen="game"] .brand img { width: 27px; height: 27px; }
body[data-screen="game"] .bottom-nav { display: none; }
body[data-screen="game"] .app-shell { padding-bottom: calc(16px + var(--safe-bottom) + var(--content-bottom)); }
.detail-screen { padding-top: 29px; }
.detail-screen .eyebrow { justify-content: flex-start; font-size: 9px; }
.detail-screen h1 { margin: 13px 0; font-size: 31px; }
.screen-intro { font-size: 13px; color: var(--muted); line-height: 1.6; }
.stats-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px; background: linear-gradient(135deg,#f2e9fc,#ede3f7); border: 1px solid #e2d5ef; border-radius: 25px; margin-top: 25px; }
.stats-hero > span:first-child { width: 56px; height: 56px; display: grid; place-items: center; background: #fff9; border-radius: 18px; color: #bd9a61; }
.stats-hero .icon { width: 29px; height: 29px; }
.stats-hero > span { font-size: 13px; color: #9b80b2; }
.stats-hero > strong { font-size: 47px; color: #7956bb; letter-spacing: -2px; }
.stats-hero > small { color: #a18ab4; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 15px 0; }
.stats-grid > div { display: flex; flex-direction: column; gap: 10px; padding: 22px 17px; background: #fff; border: 1px solid var(--border); border-radius: 20px; }
.stats-grid .icon { color: #a58abd; }
.stats-grid strong { font-size: 28px; }
.stats-grid > div > span:last-child { font-size: 11px; color: var(--muted); }
.info-card { display: flex; align-items: center; gap: 15px; padding: 20px; background: #fffc; border: 1px solid var(--border); border-radius: 20px; }
.info-card > span { color: #a88abf; }
.info-card strong { font-size: 13px; font-weight: 600; }
.info-card p { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 5px; }
.privacy-note { font-size: 11px; color: #a092ab; line-height: 1.8; margin: 20px 5px; }
.profile-card { display: flex; align-items: center; flex-direction: column; padding: 26px; gap: 14px; margin: 20px 0; }
.big-avatar { width: 84px; height: 84px; font-size: 29px; box-shadow: 0 8px 25px #7956cc15; }
.profile-card h2 { font-size: 24px; }
.profile-badge { font-size: 11px; color: #9370b0; background: #eae0f6; border-radius: 20px; padding: 7px 13px; }
.settings-list { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 4px 17px; margin-top: 17px; }
.settings-list button { display: flex; align-items: center; gap: 12px; border: 0; background: none; width: 100%; min-height: 59px; padding: 10px 0; text-align: left; font-size: 13px; }
.settings-list button + button { border-top: 1px solid var(--border); }
.settings-list .icon { color: #a58cbb; width: 19px; height: 19px; }
.settings-list button > :last-child { margin-left: auto; }
.settings-list strong { font-weight: 500; font-size: 11px; color: #9e8bab; }
dialog { color: #393047; background: #fefcff; border: 1px solid var(--border); border-radius: 27px; padding: 0; width: min(420px,calc(100% - 24px)); max-height: calc(100dvh - var(--safe-top) - var(--content-top) - var(--safe-bottom) - var(--content-bottom) - 24px); box-shadow: 0 30px 100px #31204930; }
dialog[open] { animation: sheet-in .28s cubic-bezier(.2,.7,.2,1); }
dialog::backdrop { background: #2e22485c; backdrop-filter: blur(7px); }
.modal-inner { padding: 32px 26px calc(26px + var(--safe-bottom)); text-align: center; position: relative; }
.sheet-handle { width: 34px; height: 4px; border-radius: 4px; background: #ded1e9; margin: -19px auto 22px; }
.modal-close { position: absolute; right: 12px; top: 12px; border: 0; background: none; }
.modal-art { width: 66px; margin: 0 auto 17px; }
.modal-art .icon { width: 56px; height: 56px; color: var(--purple); }
.modal-inner h2 { font-size: 26px; letter-spacing: -.6px; margin-bottom: 14px; }
.modal-inner p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.modal-inner ol { text-align: left; padding-left: 20px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.modal-inner li { padding: 5px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 23px; }
.secondary-button { min-height: 48px; border: 1px solid var(--border); background: #fff; border-radius: 15px; font-size: 13px; color: #957fa7; padding: 11px; }
.modal-stat { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 13px 0; font-size: 13px; color: var(--muted); }
.modal-stat strong { color: var(--purple); }
.result-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.result-confetti span { position: absolute; top: -10px; left: var(--x); width: 7px; height: 12px; background: var(--color); border-radius: 2px; animation: confetti 1.8s var(--delay) ease-out both; }
.toast { position: fixed; bottom: calc(94px + var(--safe-bottom) + var(--content-bottom)); left: 50%; transform: translate(-50%,20px); opacity: 0; pointer-events: none; z-index: 10; border: 1px solid #e6dcee; box-shadow: 0 10px 50px #3d245522; padding: 14px 20px; background: #fff; border-radius: 16px; font-size: 12px; color: #806a96; width: max-content; max-width: min(410px,calc(100% - 28px)); text-align: center; transition: opacity .2s, transform .2s; }
body[data-screen="game"] .toast { bottom: calc(20px + var(--safe-bottom) + var(--content-bottom)); }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.low-moves { color: #cf728e !important; }
@keyframes screen-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(35px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fruit-float { 0%,100% { transform: translateY(0) rotate(-9deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes sparkle { 0%,100% { opacity: .5; scale: .8; } 50% { opacity: 1; scale: 1.1; } }
@keyframes hint { 50% { box-shadow: inset 0 0 0 2px #ad8cdb; background: #e8dcf8; } }
@keyframes shake { 25%,75% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@keyframes points-up { from { opacity: 1; transform: translate(-50%,0) scale(.8); } 35% { opacity: 1; transform: translate(-50%,-22px) scale(1.1); } to { opacity: 0; transform: translate(-50%,-65px) scale(1); } }
@keyframes confetti { from { transform: translateY(0) rotate(0); opacity: 1; } to { transform: translateY(450px) rotate(540deg); opacity: 0; } }
@media (max-width: 360px) {
  .app-shell { padding-left: 12px; padding-right: 12px; }
  .brand img { display: none; }
  .home-hero h1 { font-size: 35px; }
  .game-card { padding-left: 8px; padding-right: 8px; }
  .board { gap: 3px; padding: 5px; }
  .tile { border-radius: 6px; padding: 1px; }
  .scoreboard strong { font-size: 25px; }
  .detail-screen h1 { font-size: 27px; }
  .daily-art { right: 0; transform: scale(.85); transform-origin: right center; }
}
@media (max-height: 740px) {
  :root { --game-chrome: 310px; }
  body[data-screen="game"] .topbar { height: 44px; }
  .game-heading { padding: 4px 0 10px; }
  .game-heading h1 { font-size: 20px; }
  .game-card { padding-top: 13px; }
  .scoreboard { padding-bottom: 12px; }
  .scoreboard > div { gap: 4px; }
  .scoreboard strong { font-size: 25px; }
  .progress-track { margin-bottom: 14px; }
  .game-status { min-height: 29px; font-size: 9px; }
  .game-controls { margin-top: 12px; }
  .game-controls button { min-height: 64px; gap: 3px; }
  .game-bottom-note { margin-top: 12px; }
  .home-hero { padding-top: 16px; }
  .hero-art { height: 131px; transform: scale(.9); margin-top: 5px; margin-bottom: 0; }
}
@media (max-height: 620px) {
  :root { --game-chrome: 285px; }
  .game-bottom-note { display: none; }
  .game-heading { padding-bottom: 7px; }
  .game-heading .icon-button { width: 40px; height: 40px; min-width: 44px; }
  .game-card { padding-top: 10px; }
  .scoreboard strong { font-size: 23px; }
  .scoreboard span { font-size: 10px; }
  .game-controls { margin-top: 8px; }
  .game-controls button { min-height: 51px; flex-direction: row; font-size: 10px; gap: 3px; }
  .control-badge { position: static; }
  .control-icon { width: 25px; }
}
@media (min-width: 721px) {
  .app-shell { padding-top: 20px; }
  .topbar { margin-bottom: 12px; }
  .profile-label { display: flex; flex-direction: column; gap: 3px; text-align: left; }
  .profile-label strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .profile-label small { font-size: 9px; color: var(--muted); }
  dialog { margin: auto; }
}
@media (max-width: 720px) {
  dialog { margin: auto auto calc(var(--safe-bottom) + var(--content-bottom) + 10px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
[hidden] { display: none !important; }
.telegram-gate { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 16px; padding: 32px; background: #f7f6fb; }
.telegram-gate p { max-width: 360px; }
