  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  html, body { height: 100%; }
  body { background: #dcdad5; font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
  .note { font-size: 12px; color: #6b6a66; text-align: center; max-width: 400px; line-height: 1.4; }

  /* Чёрный рынок */
  .shop-heading { display: flex; align-items: center; justify-content: space-between; }
  .shop-heading-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--amber); background: rgba(242,184,75,.1); font-size: 25px; }
  .shop-wallet { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-color: rgba(242,184,75,.18); }
  .shop-wallet > div { min-width: 0; }
  .shop-wallet span, .shop-wallet small, .shop-daily small { display: block; }
  .shop-wallet span { font-size: 14px; font-weight: 650; }
  .shop-wallet small, .shop-daily small { margin-top: 4px; color: var(--mut); font-size: 11px; line-height: 1.35; }
  .shop-wallet b { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 19px; }
  .shop-wallet svg { width: 19px; height: 19px; }
  .shop-daily { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-color: rgba(74,222,128,.2); }
  .shop-daily b { display: block; margin-top: 3px; font-size: 18px; }
  .newcomer-shield { display: flex; align-items: center; gap: 11px; border-color: rgba(93,158,242,.28); background: linear-gradient(145deg, rgba(93,158,242,.1), var(--s1) 72%); }
  .newcomer-shield-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 13px; background: rgba(93,158,242,.12); font-size: 21px; }
  .newcomer-shield b, .newcomer-shield small { display: block; }
  .newcomer-shield b { font-size: 14px; }
  .newcomer-shield small { margin-top: 4px; color: var(--mut); font-size: 11px; line-height: 1.35; }
  .slave-protection { color: var(--amber) !important; }
  .slave-protection.ready { color: var(--green) !important; }
  .new-player-discount { margin: 10px 0; padding: 10px 12px; border: 1px solid rgba(110,205,151,.22); border-radius: 12px; background: rgba(110,205,151,.08); color: #8ed6a9; font-size: 12px; line-height: 1.35; }
  .shop-boost-active { border-color: rgba(74,222,128,.3); background: linear-gradient(145deg, rgba(74,222,128,.11), var(--s1) 72%); }
  .shop-boost-active b, .shop-boost-active small { display: block; }
  .shop-boost-active small { margin-top: 4px; color: var(--mut); font-size: 12px; }
  .shop-offer { border-color: rgba(242,184,75,.28); background: linear-gradient(145deg, rgba(242,184,75,.1), var(--s1) 70%); }
  .shop-offer b { display: block; margin-top: 5px; font-size: 16px; }
  .shop-offer small { display: block; margin-top: 5px; color: var(--mut); font-size: 11px; line-height: 1.35; }
  .shop-offer-note { margin-top: 8px; }
  .seg.shop-section-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 16px; padding: 4px; border-radius: 16px; }
  .seg.shop-section-tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 46px; padding: 0 6px; font-size: 12px; white-space: nowrap; }
  .seg.shop-section-tabs button.on { background: var(--s3); color: var(--text); box-shadow: inset 0 0 0 1px rgba(242,184,75,.16); }
  .shop-tab-count { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: var(--s2); color: var(--mut); font-size: 11px; line-height: 1.2; }
  .seg.shop-section-tabs button.on .shop-tab-count { color: var(--amber); }
  .shop-tab-mark { color: var(--amber); font-size: 13px; }
  .shop-section-content { min-width: 0; }
  .shop-catalog-heading { align-items: end; margin-bottom: 10px; }
  .shop-catalog-heading small { display: block; margin-top: 3px; color: var(--mut); font-size: 11px; }
  .shop-category-grid { display: flex; gap: 8px; margin: 0 -2px 13px; padding: 0 2px 6px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(242,184,75,.38) transparent; touch-action: pan-x; }
  .shop-category-grid::-webkit-scrollbar { height: 4px; }
  .shop-category-grid::-webkit-scrollbar-track { background: transparent; }
  .shop-category-grid::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(242,184,75,.38); }
  .shop-category-tab { position: relative; display: grid; flex: 0 0 clamp(136px, 40vw, 178px); grid-template-columns: 20px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: center; column-gap: 7px; row-gap: 3px; min-width: 0; min-height: 58px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, var(--s1), #141417); color: var(--mut); font: inherit; text-align: left; cursor: pointer; scroll-snap-align: start; transition: background .15s, border-color .15s, transform .15s; }
  .shop-category-tab:active { transform: scale(.98); }
  .shop-category-tab.on { border-color: rgba(242,184,75,.42); background: linear-gradient(145deg, rgba(242,184,75,.14), rgba(242,184,75,.045)); color: var(--text); }
  .shop-category-icon { grid-row: 1 / span 2; width: 20px; color: var(--amber); font-size: 16px; text-align: center; }
  .shop-category-label { min-width: 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 650; line-height: 1.15; }
  .shop-category-count { grid-column: 2; color: var(--mut); font-size: 10px; line-height: 1; }
  .shop-inventory-list { margin-bottom: 12px; }
  .other-slave-row { gap: 8px; padding-right: 9px; }
  .other-slave-main { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
  .other-slave-main .mid { min-width: 0; }
  .other-slave-main .mid b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .other-slave-main .mid small { display: block; margin-top: 3px; color: var(--mut); font-size: 10px; line-height: 1.25; }
  .other-slave-action { display: flex; align-items: center; justify-content: center; flex: none; min-width: 78px; max-width: 106px; }
  .other-slave-buy { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 42px; height: auto; padding: 5px 7px; border-radius: 12px; background: var(--amber); color: #1a1205; font-size: 9px; line-height: 1.1; white-space: normal; }
  .other-slave-buy b { font-size: 10px; }
  .other-slave-buy:disabled { opacity: .58; }
  .other-slave-wait { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; text-align: center; }
  .other-slave-wait small { color: var(--mut); font-size: 9px; line-height: 1.1; }
  .other-slave-wait b { color: var(--amber); font-size: 9px; line-height: 1.2; }
  .other-slave-tag { color: var(--mut); font-size: 10px; text-align: center; }
  .shop-catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 11px; }
  .shop-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 15px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(155deg, #19191e, #111114 78%); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
  .shop-card.rarity-uncommon { border-color: rgba(110,205,151,.24); }
  .shop-card.rarity-rare { border-color: rgba(93,158,242,.28); }
  .shop-card.rarity-epic { border-color: rgba(185,123,242,.3); }
  .shop-item-head { display: flex; align-items: center; gap: 11px; min-width: 0; }
  .shop-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: none; border-radius: 14px; background: var(--s2); font-size: 22px; }
  .shop-item-title { flex: 1; min-width: 0; }
  .shop-item-title b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
  .shop-item-title small { display: block; margin-top: 3px; color: var(--mut); font-size: 11px; }
  .shop-owned { color: var(--green); font-size: 10px; text-align: right; }
  .shop-card p { margin-top: 12px; color: #d3d2d9; font-size: 13px; line-height: 1.45; }
  .shop-effect { display: flex; gap: 6px; margin-top: 9px; color: var(--mut); font-size: 11px; line-height: 1.4; }
  .shop-effect b { flex: none; color: #b9b8c0; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .035em; }
  .shop-price-line { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 12px; }
  .shop-price-line s { color: var(--mut); }
  .shop-price-line b { color: var(--amber); }
  .shop-price-line span { color: var(--green); font-size: 10px; }
  .shop-locked { margin-top: 9px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.035); color: var(--mut); font-size: 11px; line-height: 1.35; }
  .shop-effect.detail { padding: 11px; border-radius: 12px; background: var(--s2); }
  .shop-actions { display: flex; align-items: center; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
  .shop-actions .textbtn { width: auto; min-height: 40px; height: 40px; padding: 0 10px; margin: 0; border: 1px solid var(--line); border-radius: 12px; font-size: 11px; }
  .shop-actions .mini, .shop-actions .ghost { min-height: 40px; height: auto; padding: 0 12px; font-size: 11px; }
  .shop-actions .shop-buy { background: var(--amber); color: #1a1205; }
  .shop-actions .shop-use { background: var(--s3); color: var(--text); }
  .shop-actions .shop-ad { border-color: rgba(242,184,75,.3); color: var(--amber); }
  .shop-actions .shop-more { color: var(--mut); }
  .shop-actions button:disabled { opacity: .55; }
  .shop-target-label { display: block; margin-top: 14px; color: var(--mut); font-size: 12px; }
  .shop-target { display: block; width: 100%; height: 44px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--s2); color: var(--text); font: inherit; }
  .shop-ad-detail { margin-top: 10px; border-color: rgba(242,184,75,.3); color: var(--amber); }
  .shop-inventory-row .mini { height: 34px; padding: 0 10px; font-size: 11px; }
  .shop-stars-panel { padding: 15px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(155deg, #19191e, #111114 78%); }
  .shop-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .shop-panel-heading h2 { margin-top: 4px; font-size: 18px; }
  .shop-stars-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 1px solid rgba(242,184,75,.24); border-radius: 14px; background: rgba(242,184,75,.1); color: var(--amber); font-size: 23px; }
  .shop-panel-copy { margin-top: 10px; color: var(--mut); font-size: 12px; line-height: 1.45; }
  .shop-stars-panel .packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
  .shop-stars-panel .pack { min-width: 0; min-height: 90px; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 15px; }
  .shop-stars-panel .pack .amt { min-width: 0; font-size: 15px; }
  .shop-stars-panel .pack .amt svg { width: 17px; height: 17px; flex: none; }
  .shop-stars-panel .pack .price { align-self: flex-end; padding: 6px 9px; font-size: 12px; }
  .shop-panel-heading + .shop-panel-copy + .packs { margin-top: 14px; }
  .shop-boost-active { margin-bottom: 10px; }
  .market-badge { display: inline-flex; vertical-align: 1px; margin-left: 5px; padding: 2px 5px; border-radius: 7px; background: rgba(242,184,75,.12); color: var(--amber); font-size: 11px; line-height: 1.25; }
  .role-chip { display: inline-flex; vertical-align: 1px; margin-left: 5px; padding: 2px 6px; border-radius: 7px; background: rgba(110,205,151,.12); color: #8ed6a9; font-size: 10px; font-weight: 650; line-height: 1.25; white-space: nowrap; }
  .role-chip.role-admin { background: rgba(93,158,242,.14); color: #9fc3ff; }
  .av-frame_iron { box-shadow: 0 0 0 2px #9da4ae, 0 0 0 4px rgba(157,164,174,.2); }
  .av-frame_copper { box-shadow: 0 0 0 2px #c38354, 0 0 0 4px rgba(195,131,84,.22); }
  .av-frame_ember { box-shadow: 0 0 0 2px #fa7455, 0 0 0 4px rgba(250,116,85,.22); }
  .av-frame_night { box-shadow: 0 0 0 2px #a984e8, 0 0 0 4px rgba(169,132,232,.22); }
  @media (max-width: 360px) {
    .shop-card { padding: 12px; }
    .shop-actions { gap: 5px; }
    .shop-actions .mini, .shop-actions .ghost { padding: 0 8px; font-size: 10px; }
    .other-slave-row { padding-left: 9px; }
    .other-slave-action { min-width: 72px; }
    .other-slave-main { gap: 7px; }
    .other-slave-main .mid small { font-size: 9px; }
  }

  /* ===== Токены ===== */
  .phone {
    --bg: #0b0b0d; --s1: #141417; --s2: #1c1c20; --s3: #27272c;
    --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.16);
    --text: #f5f5f7; --mut: #8e8e98;
    --green: #4ade80; --amber: #f2b84b; --red: #ff7a7a;
    width: 390px; max-width: 100%; height: 800px; max-height: calc(100vh - 80px);
    background: var(--bg); color: var(--text); border-radius: 30px; overflow: hidden; position: relative;
    display: flex; flex-direction: column; justify-content: flex-start; overflow-anchor: none; box-shadow: 0 24px 60px rgba(0,0,0,.28);
    font-variant-numeric: tabular-nums;
  }
  @media (max-width: 430px) {
    body { padding: 0; display: block; background: #0b0b0d; }
    .phone { width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; box-shadow: none; }
    .note { display: none; }
  }

  .view { flex: 1; min-height: 0; overflow-y: auto; padding: calc(22px + env(safe-area-inset-top, 0px)) 20px 28px; display: flex; flex-direction: column; gap: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .view::-webkit-scrollbar { display: none; }
  .view.tasks-screen { overflow: hidden; }
  .tasks-page { display: flex; flex-direction: column; gap: 20px; height: 100%; min-height: 0; }
  .task-list-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; }
  .task-list-scroll::-webkit-scrollbar { display: block; width: 4px; }
  .task-list-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 4px; }
  .view.enter { animation: fade .2s ease; }
  @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes flash { 0% { background: rgba(74,222,128,.22); } 100% { background: transparent; } }
  @keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
  @keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
  @keyframes halo-pulse { from { opacity: .55; transform: scale(.82); } to { opacity: 1; transform: scale(1.08); } }
  @keyframes coin-flip { 0% { transform: rotateY(0) translateY(0); } 24% { transform: rotateY(540deg) translateY(-28px); } 60% { transform: rotateY(1260deg) translateY(-5px); } 100% { transform: rotateY(var(--coin-final, 1800deg)) translateY(0); } }
  @keyframes dice-tumble { 0% { transform: rotateX(0) rotateY(0) rotateZ(0) translateY(0); } 28% { transform: rotateX(220deg) rotateY(250deg) rotateZ(15deg) translateY(-23px); } 65% { transform: rotateX(540deg) rotateY(620deg) rotateZ(-10deg) translateY(-9px); } 100% { transform: rotateX(720deg) rotateY(720deg) rotateZ(0) translateY(0); } }
  @keyframes wheel-spin { 0% { transform: rotate(0); } 100% { transform: rotate(var(--wheel-to, 1800deg)); } }
  @keyframes tile-open { from { transform: scale(.75) rotateY(70deg); opacity: .6; } to { transform: scale(1) rotateY(0); opacity: 1; } }
  @keyframes tile-reveal { from { transform: scale(.94); filter: brightness(1); } to { transform: scale(1.04); filter: brightness(1.5); } }
  @keyframes mine-hit { 0% { transform: scale(.8) rotate(-7deg); } 55% { transform: scale(1.1) rotate(5deg); } 100% { transform: scale(1) rotate(0); } }
  @keyframes climber-bounce { from { transform: translateX(-50%) translateY(0); } to { transform: translateX(-50%) translateY(-7px); } }
  @keyframes result-pop { 0% { transform: scale(.94); opacity: .5; } 70% { transform: scale(1.025); } 100% { transform: scale(1); opacity: 1; } }
  @keyframes result-sparkle { 0% { opacity: 0; transform: scale(.75); } 32% { opacity: .75; transform: scale(1.06); } 100% { opacity: 0; transform: scale(1.3); } }

  button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

  svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  svg.i.coin { color: var(--amber); stroke-width: 1.8; }

  .title { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
  .lbl { font-size: 13px; color: var(--mut); font-weight: 500; }
  .cap { font-size: 13px; color: var(--mut); line-height: 1.45; }

  .av { position: relative; overflow: hidden; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 650; color: #fff; flex: none; }
  .av-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .av.lg { width: 48px; height: 48px; font-size: 18px; }
  .av.xl { width: 60px; height: 60px; font-size: 22px; }

  .head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .who-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
  .who b { display: block; font-size: 17px; font-weight: 650; }
  .who span { font-size: 13px; color: var(--mut); }
  .bell { position: relative; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--s1); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
  .bell:active { background: var(--s2); }
  .bell .dot { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: #1a1205; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

  .bal { display: flex; align-items: center; gap: 10px; font-size: 54px; font-weight: 700; letter-spacing: -.03em; margin-top: 8px; line-height: 1; transform-origin: left center; }
  .bal.pop { animation: pop .4s ease; }
  .bal svg { width: 36px; height: 36px; }
  .inc { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--green); }
  .inc svg { width: 16px; height: 16px; stroke-width: 2.2; }

  .card { background: var(--s1); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
  .c-amt { display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
  .c-amt svg { width: 26px; height: 26px; }

  .primary { width: 100%; height: 54px; border: 0; border-radius: 16px; background: var(--text); color: #0b0b0d; font: inherit; font-size: 16px; font-weight: 650; cursor: pointer; transition: transform .12s ease, opacity .12s ease; margin-top: 16px; }
  .primary:active { transform: scale(.98); }
  .primary:disabled { background: var(--s3); color: var(--mut); cursor: default; transform: none; }
  .ghost { height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .12s; }
  .ghost:active { background: var(--s2); }
  .ghost:disabled { color: var(--mut); border-color: var(--line); cursor: default; }
  .ghost.big { height: 44px; padding: 0 16px; font-size: 14px; }
  .textbtn { width: 100%; height: 48px; border: 0; background: none; color: var(--mut); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 4px; }

  .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { background: var(--s1); border: 1px solid var(--line); border-radius: 22px; padding: 16px; text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 16px; min-height: 118px; transition: background .12s; }
  .tile:active { background: var(--s2); }
  .tile:disabled { opacity: .5; cursor: default; }
  .tile .ib { width: 38px; height: 38px; border-radius: 12px; background: var(--s2); display: grid; place-items: center; }
  .tile b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
  .tile small { display: block; font-size: 12px; color: var(--mut); margin-top: 3px; }

  /* Подсказка новичку */
  .tip-h { display: flex; justify-content: space-between; align-items: center; }
  .tip-h b { font-size: 16px; font-weight: 650; }
  .steps { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
  .steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35; }
  .steps li span { width: 24px; height: 24px; border-radius: 50%; background: var(--s3); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }

  /* Цель */
  .goal { display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: background .12s; }
  .goal:active { background: var(--s2); }
  .g-top { display: flex; align-items: center; gap: 12px; }
  .g-lbl { font-size: 12px; font-weight: 600; color: var(--mut); margin-bottom: 2px; }
  .g-lbl.ok { color: var(--green); }

  .o-lbl { font-size: 12px; font-weight: 600; color: var(--red); }
  .o-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; cursor: pointer; }
  .free { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--green); }
  .free svg { width: 18px; height: 18px; stroke-width: 2.2; }

  .sh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
  .sh h2 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
  .sh span { font-size: 13px; color: var(--mut); }
  .group { background: var(--s1); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
  .item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 66px; border-bottom: 1px solid var(--line); width: 100%; font: inherit; color: inherit; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; }
  .item:last-child { border-bottom: 0; }
  .item[data-player], button.item { cursor: pointer; transition: background .12s; }
  .item[data-player]:active, button.item:active { background: var(--s2); }
  a.item { text-decoration: none; }
  .item.flash { animation: flash 1.6s ease; }
  .item.has-upgrade { border-bottom: 0; }
  .upgrade-inline { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px 12px 68px; border-bottom: 1px solid var(--line); background: var(--s1); }
  .upgrade-inline:last-child { border-bottom: 0; }
  .upgrade-inline > span { min-width: 0; color: var(--mut); font-size: 12px; line-height: 1.35; }
  .upgrade-inline .mini { flex: none; }
  .mini:disabled { opacity: .58; cursor: default; }
  @media (max-width: 360px) { .upgrade-inline { padding-left: 16px; } }
  .mid { flex: 1; min-width: 0; }
  .mid b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mid small { display: block; font-size: 13px; color: var(--mut); margin-top: 2px; }
  .val { text-align: right; font-size: 15px; font-weight: 650; white-space: nowrap; }
  .val.g { color: var(--green); }
  .val small { display: block; font-size: 12px; color: var(--mut); font-weight: 400; margin-top: 2px; }
  .ib2 { width: 38px; height: 38px; border-radius: 12px; background: var(--s2); display: grid; place-items: center; flex: none; }
  .chev { width: 18px; height: 18px; color: var(--mut); }

  .empty { text-align: center; padding: 26px 18px; }
  .empty b { display: block; font-size: 16px; font-weight: 650; }
  .empty p { font-size: 14px; color: var(--mut); line-height: 1.45; margin-top: 6px; }
  .empty .ghost { margin-top: 14px; }

  .seg { display: flex; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 3px; }
  .seg button { flex: 1; height: 38px; border: 0; border-radius: 11px; background: none; color: var(--mut); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
  .seg button.on { background: var(--s3); color: var(--text); }

  .rating-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 10px; }
  .rating-period-tabs { min-width: 0; }
  .rating-general-wrap { position: relative; min-width: 0; }
  .rating-general-trigger { width: 100%; min-height: 46px; display: grid; grid-template-columns: 1fr auto; gap: 0 8px; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--s1); color: var(--mut); font: inherit; text-align: left; cursor: pointer; }
  .rating-general-trigger span { grid-column: 1; font-size: 11px; line-height: 1.2; }
  .rating-general-trigger b { grid-column: 1; color: var(--text); font-size: 13px; line-height: 1.2; }
  .rating-general-trigger i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 17px; }
  .rating-general-trigger.on { border-color: rgba(242,184,75,.32); }
  .rating-general-menu { position: absolute; z-index: 8; top: calc(100% + 6px); right: 0; left: 0; padding: 5px; border: 1px solid var(--line2); border-radius: 15px; background: #1a1a1e; box-shadow: 0 14px 34px rgba(0,0,0,.38); }
  .rating-general-menu button { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; }
  .rating-general-menu button.on { background: var(--s3); color: var(--amber); }

  .rating-view-tabs { margin: 12px 0; }
  .rating-view-tabs button { min-width: 0; }
  .rating-view-tabs button span { margin-left: 5px; color: var(--mut); font-size: 11px; }
  .rating-view-tabs button.on span { color: var(--amber); }
  .market-intro { margin: 0 0 12px; line-height: 1.45; }
  .market-wallet { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; margin-bottom: 18px; }
  .market-wallet > span { color: var(--mut); font-size: 13px; }
  .market-wallet > b { display: flex; align-items: center; gap: 6px; font-size: 16px; }
  .market-wallet svg, .market-offer-stats svg { width: 16px; height: 16px; color: var(--amber); vertical-align: -3px; }
  .market-offer-list { display: grid; gap: 10px; }
  .market-offer-card { padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: var(--s1); }
  .market-offer-profile { width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .market-offer-profile .mid { flex: 1; }
  .market-offer-profile .mid b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .market-offer-profile .mid small { display: block; margin-top: 3px; color: var(--mut); font-size: 12px; }
  .market-offer-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; padding: 10px 11px; border-radius: 13px; background: var(--s2); }
  .market-offer-stats > div { min-width: 0; }
  .market-offer-stats small { display: block; color: var(--mut); font-size: 11px; }
  .market-offer-stats b { display: block; margin-top: 4px; font-size: 14px; }
  .market-offer-stats div:first-child b { color: var(--amber); }
  .market-offer-stats div:first-child > small:last-child { margin-top: 3px; }
  .market-offer-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
  .market-offer-actions .cap { margin: 0; font-size: 11px; }
  .market-offer-actions .mini { flex: none; }
  .market-empty { margin-top: 6px; padding: 20px 16px; }
  .market-empty b { font-size: 15px; }
  .market-empty p { margin: 5px 0 0; color: var(--mut); font-size: 13px; line-height: 1.4; }
  @media (max-width: 360px) {
    .rating-view-tabs button { font-size: 12px; }
    .market-offer-card { padding: 11px; }
    .market-offer-actions .cap { font-size: 10px; }
  }

  .chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
  .chip.amber { color: var(--amber); background: rgba(242,184,75,.12); }
  .chip.me { color: var(--text); background: var(--s3); margin-left: 8px; font-weight: 500; }

  .task { padding: 16px; border-bottom: 1px solid var(--line); }
  .t-row { display: flex; align-items: center; gap: 14px; }
  .task:last-child { border-bottom: 0; }
  .task .meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
  .task .meta em { font-style: normal; font-size: 13px; color: var(--mut); }
  .task-link { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
  .task-link:active { opacity: .72; }
  .pbar { height: 4px; background: var(--s3); border-radius: 4px; margin-top: 10px; overflow: hidden; }
  .pbar i { display: block; height: 100%; background: var(--text); border-radius: 4px; transition: width .3s ease; }
  .goal .pbar { margin-top: 0; }
  .goal .pbar i { background: var(--amber); }
  .mini { height: 38px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--text); color: #0b0b0d; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; }
  .mini:active { transform: scale(.97); }
  .okmark { width: 30px; height: 30px; border-radius: 50%; background: rgba(74,222,128,.14); color: var(--green); display: grid; place-items: center; flex: none; }
  .okmark svg { width: 16px; height: 16px; stroke-width: 2.4; }
  .claimall { margin-top: 0; height: 50px; }

  .daily-chain { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid rgba(242,184,75,.2); border-radius: 17px; background: linear-gradient(135deg, rgba(242,184,75,.09), var(--s1) 76%); }
  .daily-chain b, .daily-chain small { display: block; }
  .daily-chain b { font-size: 14px; }
  .daily-chain small { margin-top: 3px; color: var(--mut); font-size: 12px; }
  .daily-chain.ready { border-color: rgba(74,222,128,.38); }
  .daily-chain-reward { flex: none; color: var(--amber); font-weight: 700; white-space: nowrap; }
  .daily-chain.claimed .daily-chain-reward { color: var(--green); }
  .mission-page { gap: 14px; }
  .mission-intro { display: flex; align-items: center; gap: 11px; padding: 13px; }
  .mission-emoji { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 13px; background: rgba(242,184,75,.11); font-size: 21px; }
  .mission-intro b, .mission-intro small { display: block; }
  .mission-intro b { font-size: 14px; }
  .mission-intro small { margin-top: 3px; color: var(--mut); font-size: 11px; line-height: 1.35; }
  .mission-cap { flex: none; color: var(--amber); font-size: 13px; font-weight: 700; }
  .mission-list { display: grid; gap: 10px; padding: 1px; }
  .mission-card { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, var(--s1), #111114); }
  .mission-card.ready { border-color: rgba(74,222,128,.34); }
  .mission-card.done { border-color: rgba(74,222,128,.18); }
  .mission-top { display: flex; align-items: flex-start; gap: 10px; }
  .mission-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--s2); font-size: 18px; }
  .mission-copy { min-width: 0; flex: 1; }
  .mission-copy b { display: block; font-size: 14px; }
  .mission-copy small { display: block; margin-top: 4px; color: var(--mut); font-size: 11px; line-height: 1.4; }
  .mission-cancel { width: 32px; height: 32px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: var(--s2); color: var(--mut); font-size: 21px; line-height: 1; }
  .mission-state { color: var(--mut); font-size: 11px; white-space: nowrap; }
  .mission-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
  .mission-time, .mission-progress { color: var(--mut); font-size: 11px; }
  .mission-progress { margin-left: auto; font-variant-numeric: tabular-nums; }

  .me-card { display: flex; justify-content: space-between; align-items: center; }
  .me-card .big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; margin-top: 6px; }
  .rrow { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 68px; border-bottom: 1px solid var(--line); }
  .rrow:last-child { border-bottom: 0; }
  .rrow.me { background: rgba(255,255,255,.05); }
  .rrow[data-player] { cursor: pointer; transition: background .12s; }
  .rrow[data-player]:active { background: var(--s2); }
  .rk { width: 22px; text-align: center; font-size: 15px; font-weight: 650; color: var(--mut); }
  .rrow.top .rk { color: var(--text); }
  .rrow .mid small.prize { color: var(--amber); font-weight: 600; }

  /* Профиль игрока */
  .back { display: flex; }
  .pl-head { display: flex; align-items: center; gap: 14px; }
  .pl-identity { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
  .pl-name { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
  .pl-head span { font-size: 13px; color: var(--mut); }
  .tg-user { font-size: 13px; color: #9dbdff; text-decoration: none; cursor: pointer; }
  .tg-user:active { opacity: .72; }
  .tg-user.missing { color: var(--mut); cursor: default; }
  .stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
  .stat3 > div, .stat2 > div { min-width: 0; }
  .stat3 span, .stat2 span { display: block; font-size: 12px; color: var(--mut); }
  .stat3 b, .stat2 b { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 700; margin-top: 4px; }
  .stat2 b svg { width: 16px; height: 16px; }
  .traits { display: flex; flex-wrap: wrap; gap: 8px; }
  .trait { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; }
  .trait b { display: block; font-size: 13px; font-weight: 600; }
  .trait small { display: block; font-size: 12px; color: var(--mut); margin-top: 2px; }
  .owned-tag { font-size: 14px; font-weight: 600; color: var(--green); text-align: center; padding: 6px 0; }
  .link-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
  .link-row:active { opacity: .7; }

  /* Скелетон */
  .skel { border-radius: 18px; background: linear-gradient(90deg, var(--s1) 30%, var(--s2) 50%, var(--s1) 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }

  /* Навигация */
  .nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 6px calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); flex: none; }
  .nav button { background: none; border: 0; color: var(--mut); font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; padding: 4px 0; }
  .nav .pill { position: relative; width: min(58px, 100%); height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .15s; }
  .nav em { font-style: normal; font-size: 11px; font-weight: 500; }
  .nav button.on { color: var(--text); }
  .nav button.on .pill { background: var(--s3); }
  .nav button.on em { font-weight: 650; }
  .nav .badge { position: absolute; top: -3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--amber); color: #1a1205; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

  /* Подтверждения, события */
  .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10; }
  .scrim.on { opacity: 1; pointer-events: auto; }
  .sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82%; overflow-y: auto; background: var(--s1); border-top: 1px solid var(--line); border-radius: 26px 26px 0 0; padding: 10px 20px calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); transition: transform .26s cubic-bezier(.2,.8,.2,1); z-index: 11; }
  .sheet.on { transform: none; }
  .sheet .grab { width: 38px; height: 4px; border-radius: 4px; background: var(--s3); margin: 0 auto 18px; }
  .sheet h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
  .sheet p { font-size: 14px; color: var(--mut); line-height: 1.45; margin-top: 8px; }
  .sheet .primary { margin-top: 20px; }
  .ev { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
  .ev:last-child { border-bottom: 0; }
  .ev i { width: 8px; height: 8px; border-radius: 50%; background: var(--s3); margin-top: 6px; flex: none; }
  .ev.new i { background: var(--amber); }
  .ev small { display: block; font-size: 12px; color: var(--mut); margin-top: 3px; }

  .toast { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(8px); background: var(--text); color: #0b0b0d; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; transition: .22s; pointer-events: none; white-space: nowrap; z-index: 12; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
  .toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
  .flyer { position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 9; }
  .flyer svg { width: 22px; height: 22px; }


  /* ===== Магазин, мини-игры, уведомления ===== */
  .head-btns { display: flex; gap: 8px; }
  .icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--s1); color: var(--text); display: grid; place-items: center; cursor: pointer; position: relative; flex: none; }
  .icon-btn:active { background: var(--s2); }
  .icon-btn .dot { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: #1a1205; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
  .packs { display: flex; flex-direction: column; gap: 10px; }
  .pack { display: flex; align-items: center; gap: 14px; background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 16px; width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
  .pack:active { background: var(--s2); }
  .pack .amt { flex: 1; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
  .pack .amt svg { width: 20px; height: 20px; }
  .pack .price { font-size: 14px; font-weight: 650; background: var(--s3); border-radius: 12px; padding: 9px 12px; white-space: nowrap; }
  .star { color: var(--amber); font-weight: 700; }
  .chips { display: flex; gap: 8px; flex-wrap: wrap; }
  .chips button { height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
  .chips button.on { background: var(--text); color: #0b0b0d; border-color: var(--text); }
  .game-tabs { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin: -4px -2px 0; padding: 4px 2px 7px; }
  .game-tabs::-webkit-scrollbar { display: none; }
  .game-tabs button { height: 52px; min-width: 70px; flex: 1 0 70px; border-radius: 14px; border: 1px solid var(--line); background: var(--s1); color: var(--mut); font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: .18s; }
  .game-tabs button span { font-size: 17px; line-height: 1; }
  .game-tabs button.on { background: linear-gradient(145deg, rgba(242,184,75,.2), rgba(39,37,43,.85)); border-color: rgba(242,184,75,.45); color: var(--text); }
  .game-tabs button:disabled:not(.on) { opacity: .43; }
  .game-back { margin-bottom: -8px; }
  .game-heading { display: flex; align-items: center; gap: 12px; }
  .game-heading > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .game-heading b { font-size: 18px; }
  .game-heading small { color: var(--mut); font-size: 12px; line-height: 1.35; }
  .game-emoji { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 25px; background: linear-gradient(145deg, rgba(242,184,75,.2), rgba(105,69,130,.2)); border: 1px solid rgba(255,255,255,.08); flex: none; }
  .game-balance { margin-top: -12px; }
  .game-balance b { color: var(--text); }
  .game-card { display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
  .game-card .desc { font-size: 13px; color: var(--mut); line-height: 1.45; }
  .game-card .primary { margin-top: 0; }
  .game-card button:disabled { opacity: .46; cursor: default; }
  .bet-block { display: flex; flex-direction: column; gap: 10px; }
  .bet-caption { display: flex; align-items: baseline; justify-content: space-between; color: var(--mut); font-size: 13px; }
  .bet-caption b { color: var(--text); font-size: 16px; }
  .bet-caption b span { color: var(--mut); font-size: 12px; font-weight: 500; }
  .game-card .chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .game-card .chips button { height: 38px; min-width: 0; padding: 0 4px; font-size: 12px; }
  .game-action { box-shadow: 0 8px 24px rgba(242,184,75,.11); }
  .game-card .game-seg { margin: 0; }
  .game-card .game-seg button { font-size: 13px; }
  .game-card .grid-opts button { height: 48px; }
  .game-card .cashout { margin: 0; height: 48px; border-color: rgba(74,222,128,.3); color: var(--green); }
  .result { border-radius: 18px; padding: 15px; text-align: center; font-size: 22px; font-weight: 750; letter-spacing: -.01em; position: relative; overflow: hidden; }
  .result.win { background: rgba(74,222,128,.12); color: var(--green); }
  .result.lose { background: rgba(255,122,122,.1); color: var(--red); }
  .result small { display: block; font-size: 13px; font-weight: 500; color: var(--mut); margin-top: 4px; }
  .result.celebrate { animation: result-pop .45s cubic-bezier(.2,.8,.2,1); }
  .result.celebrate::after { content: '✦  ✨  ✦'; position: absolute; inset: 0; color: rgba(242,184,75,.65); font-size: 16px; letter-spacing: 24px; display: grid; place-items: center; pointer-events: none; animation: result-sparkle .85s ease-out both; }
  .grid-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .grid-opts button { height: 56px; border-radius: 14px; border: 1px solid var(--line2); background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
  .grid-opts button.on { background: var(--text); color: #0b0b0d; border-color: var(--text); }
  .fine { font-size: 12px; color: var(--mut); line-height: 1.45; text-align: center; }
  .ladder-steps { display: flex; gap: 6px; }
  .ladder-steps i { flex: 1; height: 8px; border-radius: 4px; background: var(--s3); }
  .ladder-steps i.done { background: var(--green); }
  .coin-stage, .dice-stage, .wheel-scene { min-height: 190px; border-radius: 18px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(ellipse at 50% 42%, rgba(242,184,75,.13), transparent 57%), linear-gradient(145deg, #1c1b22, #111114); border: 1px solid rgba(255,255,255,.045); }
  .coin-stage { perspective: 750px; }
  .coin-halo { position: absolute; width: 142px; height: 38px; bottom: 35px; border-radius: 50%; background: rgba(242,184,75,.15); filter: blur(14px); animation: halo-pulse 1.8s ease-in-out infinite alternate; }
  .coin-token { width: 104px; height: 104px; border-radius: 50%; position: relative; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 12px 16px rgba(0,0,0,.3)); }
  .coin-token[data-side="tails"] { transform: rotateY(180deg); }
  .coin-stage.is-flipping .coin-token[data-side="tails"] { --coin-final: 1980deg; }
  .coin-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; border: 5px double #ffe2a1; color: #3a2405; font-size: 14px; font-weight: 900; letter-spacing: .08em; background: radial-gradient(circle at 36% 28%, #ffe8af, #f4bd4f 52%, #bd741b); box-shadow: inset 0 0 0 4px rgba(255,255,255,.19), inset 0 -7px 10px rgba(104,56,4,.2); }
  .coin-back { transform: rotateY(180deg); background: radial-gradient(circle at 36% 28%, #ead7ff, #a581d1 52%, #634187); border-color: #f0dcff; color: #27183a; }
  .coin-stage.is-flipping .coin-token { animation: coin-flip .74s cubic-bezier(.15,.75,.12,1) both; }
  .scene-caption { position: relative; z-index: 1; color: var(--mut); font-size: 12px; font-weight: 600; }
  .coin-choices { margin-top: -2px; }
  .dice-stage { perspective: 800px; }
  .dice-cube { width: 84px; height: 84px; position: relative; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
  .dice-cube[data-roll="1"] { transform: rotateX(0) rotateY(0); }
  .dice-cube[data-roll="6"] { transform: rotateY(180deg); }
  .dice-cube[data-roll="3"] { transform: rotateY(-90deg); }
  .dice-cube[data-roll="4"] { transform: rotateY(90deg); }
  .dice-cube[data-roll="2"] { transform: rotateX(-90deg); }
  .dice-cube[data-roll="5"] { transform: rotateX(90deg); }
  .dice-cube.is-rolling { animation: dice-tumble .74s cubic-bezier(.15,.75,.12,1) both; }
  .dice-face { position: absolute; inset: 0; border-radius: 17px; padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); background: linear-gradient(145deg, #fff, #d5d7e2); border: 1px solid rgba(255,255,255,.75); box-shadow: inset -5px -5px 12px rgba(66,68,83,.15), inset 4px 4px 10px rgba(255,255,255,.85); }
  .dice-face:nth-child(1) { transform: translateZ(42px); }
  .dice-face:nth-child(2) { transform: rotateY(180deg) translateZ(42px); }
  .dice-face:nth-child(3) { transform: rotateY(90deg) translateZ(42px); }
  .dice-face:nth-child(4) { transform: rotateY(-90deg) translateZ(42px); }
  .dice-face:nth-child(5) { transform: rotateX(90deg) translateZ(42px); }
  .dice-face:nth-child(6) { transform: rotateX(-90deg) translateZ(42px); }
  .dice-face i { border-radius: 50%; width: 10px; height: 10px; align-self: center; justify-self: center; }
  .dice-face i.pip { background: #272933; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
  .dice-picks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .dice-picks button { min-width: 0; height: 50px; padding: 3px; border: 1px solid var(--line2); border-radius: 12px; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; }
  .dice-picks button.on { background: linear-gradient(145deg, #f7d788, #d99532); color: #251908; border-color: transparent; }
  .dice-picks small { display: block; font-size: 9px; color: var(--mut); }
  .dice-picks button.on small { color: #60400f; }
  .wheel-scene { min-height: 250px; gap: 5px; }
  .wheel-ring { width: 190px; height: 190px; border-radius: 50%; background: var(--wheel-paint); border: 8px solid #f5c767; box-shadow: 0 0 0 4px #714b1d, 0 12px 28px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.4); display: grid; place-items: center; position: relative; transition: transform .3s; }
  .wheel-ring::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; }
  .wheel-ring.is-spinning { animation: wheel-spin 1.08s cubic-bezier(.08,.72,.1,1) forwards; }
  .wheel-ring:not(.is-spinning) { transform: rotate(var(--wheel-to, 0deg)); }
  .wheel-center { width: 54px; height: 54px; border: 4px solid #ffe4a9; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 25%, #40363d, #17151a 72%); box-shadow: 0 2px 8px #0009; color: #ffe3a1; font-size: 12px; font-weight: 800; z-index: 1; }
  .wheel-center span { max-width: 46px; overflow: hidden; text-overflow: ellipsis; }
  .wheel-pin { color: #fff0bc; text-shadow: 0 2px 6px #000; position: absolute; z-index: 2; top: 10px; left: 50%; transform: translateX(-50%); font-size: 24px; line-height: 1; }
  .wheel-odds-row { display: flex; flex-wrap: wrap; gap: 6px; }
  .wheel-odds { flex: 1 1 21%; min-width: 54px; padding: 7px 4px; text-align: center; border: 1px solid var(--line); border-radius: 10px; color: var(--mut); font-size: 10px; background: var(--bg); }
  .wheel-odds b { display: block; color: var(--text); font-size: 12px; margin-top: 2px; }
  .risk-options, .mine-count-options { display: flex; gap: 7px; }
  .risk-options button, .mine-count-options button { flex: 1; height: 38px; border-radius: 12px; border: 1px solid var(--line2); background: transparent; color: var(--mut); font: inherit; font-size: 12px; font-weight: 650; }
  .risk-options button.on, .mine-count-options button.on { color: #241706; background: linear-gradient(145deg, #f9d98b, #d89938); border-color: transparent; }
  .ladder-scene { border-radius: 18px; padding: 15px; background: radial-gradient(ellipse at 50% 0%, rgba(111,91,169,.27), transparent 65%), linear-gradient(160deg, #22202b, #111114); overflow: hidden; }
  .ladder-scene.is-moving .ladder-climber { animation: climber-bounce .52s ease-in-out infinite alternate; }
  .ladder-sky { display: flex; justify-content: space-between; height: 22px; font-size: 15px; opacity: .82; }
  .ladder-track { height: 52px; position: relative; display: flex; align-items: center; margin: 8px 8px 4px; }
  .ladder-track::before { content: ''; position: absolute; left: 0; right: 0; height: 5px; border-radius: 4px; background: #383643; }
  .ladder-fill { position: absolute; height: 5px; border-radius: 4px; background: linear-gradient(90deg, #4ade80, #f2d277); box-shadow: 0 0 12px rgba(74,222,128,.48); transition: width .48s cubic-bezier(.2,.8,.2,1); }
  .ladder-node { position: absolute; z-index: 1; top: 50%; transform: translate(-50%,-50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #303039; border: 2px solid #55535f; color: #b5b3bf; font-size: 10px; font-style: normal; font-weight: 700; transition: .25s; }
  .ladder-node.done { background: #226a4a; border-color: #64e499; color: white; box-shadow: 0 0 12px rgba(74,222,128,.3); }
  .ladder-node.next { border-color: #f2c565; color: #f2c565; }
  .ladder-climber { position: absolute; z-index: 2; top: -1px; transform: translateX(-50%); font-size: 24px; filter: drop-shadow(0 3px 3px #0008); transition: left .5s cubic-bezier(.2,.8,.2,1); }
  .ladder-readout { display: flex; justify-content: space-between; gap: 8px; color: var(--mut); font-size: 11px; }
  .ladder-readout b { color: var(--amber); font-size: 12px; }
  .mine-scene { border-radius: 17px; padding: 12px; background: radial-gradient(ellipse at 50% 0%, rgba(64,166,130,.18), transparent 64%), #101215; border: 1px solid rgba(100,226,174,.12); }
  .mine-scene.is-revealing .mine-cell { animation: tile-reveal .38s ease-in-out infinite alternate; }
  .mine-head { display: flex; align-items: center; gap: 9px; margin: 0 2px 11px; }
  .mine-head > span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(74,222,128,.13); font-size: 19px; }
  .mine-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .mine-head b { font-size: 14px; color: #9df1c2; }
  .mine-head small { color: var(--mut); font-size: 10px; }
  .mine-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .mine-cell { aspect-ratio: 1; min-width: 0; padding: 0; border: 1px solid rgba(183,214,197,.15); border-radius: 10px; background: linear-gradient(145deg, #273a32, #1c2925); color: #7da994; font-size: 15px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 3px 5px #0005; transition: transform .15s, border-color .2s, background .2s; }
  .mine-cell:not(:disabled):active { transform: scale(.91); }
  .mine-cell:disabled { opacity: 1; }
  .mine-cell.opened { background: linear-gradient(145deg, #23583e, #173e2c); border-color: rgba(100,230,157,.55); color: #a9ffd0; animation: tile-open .24s ease-out both; }
  .mine-cell.mine { background: linear-gradient(145deg, #813b3b, #462426); border-color: rgba(255,122,122,.65); animation: mine-hit .34s ease-out both; }
  .mine-cell.revealing { animation: tile-reveal .48s ease-in-out infinite alternate; }
  .mine-cell span { display: inline-block; }
  .mine-payout { display: flex; justify-content: space-between; align-items: center; color: var(--mut); font-size: 12px; padding: 0 2px; }
  .mine-payout b { color: #9df1c2; font-size: 14px; }
  .game-launch-list { overflow: hidden; background: var(--s1); border: 1px solid var(--line); border-radius: 18px; }
  .game-launch { width: 100%; min-height: 68px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; cursor: pointer; }
  .game-launch:last-child { border-bottom: 0; }
  .game-launch:active { background: var(--s2); }
  .game-launch-emoji { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 13px; background: linear-gradient(145deg, rgba(242,184,75,.18), rgba(105,69,130,.16)); font-size: 23px; }
  .game-launch .mid { display: flex; flex-direction: column; gap: 3px; }
  .game-launch small { color: var(--mut); font-size: 11px; }
  .notes .n { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
  .notes .n:last-child { border-bottom: 0; }
  .notes .n small { display: block; font-size: 12px; color: var(--mut); margin-top: 3px; }

  .legal-check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--text); }
  .legal-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: #f2b84b; flex: none; }
  .legal-warning { border-color: rgba(255,122,122,.3); }
  .legal-warning b { display: block; color: var(--red); }
  .legal-warning p { margin-top: 7px; color: var(--mut); font-size: 14px; line-height: 1.45; }
  .nav[hidden] { display: none; }
  .legal-doc { width: min(780px, 100%); margin: auto; padding: 28px clamp(18px, 5vw, 44px); background: #141417; color: #f5f5f7; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; line-height: 1.55; }
  .legal-doc h1 { font-size: 30px; line-height: 1.18; margin: 20px 0 14px; }
  .legal-doc h2 { font-size: 19px; margin: 24px 0 8px; }
  .legal-doc p, .legal-doc li { font-size: 15px; color: #d7d7db; margin: 10px 0; }
  .legal-doc ul { padding-left: 22px; }
  .legal-doc a { color: #f2b84b; }
  .legal-doc .legal-draft { padding: 12px 14px; border: 1px solid rgba(255,122,122,.35); border-radius: 12px; color: #ff9a9a; font-weight: 750; font-size: 12px; letter-spacing: .04em; }
  .legal-doc .legal-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #a5a5af; }
  @media (max-width: 600px) { body:has(.legal-doc) { padding: 0; background: #141417; } .legal-doc { min-height: 100%; border: 0; border-radius: 0; padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px)); } }

  /* ===== Игровой зал: компактная навигация и поле в пределах экрана ===== */
  .view.game-screen {
    gap: 0;
    position: relative;
    top: 0;
    align-self: stretch;
    padding: calc(10px + env(safe-area-inset-top, 0px)) clamp(12px, 4vw, 18px) calc(12px + env(safe-area-inset-bottom, 0px));
    background: radial-gradient(ellipse at 50% -10%, rgba(90,76,121,.22), transparent 48%), #0b0b0d;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.28) transparent;
  }
  .view.game-screen::-webkit-scrollbar { display: block; width: 3px; }
  .view.game-screen::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 4px; }
  .game-shell { width: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 11px; }
  .game-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; }
  .game-topbar .ghost { height: 40px; padding: 0 13px; border-radius: 14px; color: #e6e5eb; border-color: rgba(255,255,255,.13); }
  .game-wallet { height: 36px; min-width: 112px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 13px; background: rgba(242,184,75,.1); border: 1px solid rgba(242,184,75,.18); white-space: nowrap; }
  .game-wallet svg { width: 17px; height: 17px; }
  .game-wallet b { font-size: 14px; }
  .game-wallet small { color: var(--mut); font-size: 10px; }
  .game-lobby-heading { padding: 3px 2px 0; }
  .game-lobby-heading > span, .game-kicker { display: block; color: var(--amber); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
  .game-lobby-heading h1 { margin-top: 2px; font-size: clamp(26px, 7vw, 31px); line-height: 1.1; letter-spacing: -.035em; }
  .game-lobby-heading p { max-width: 390px; margin-top: 5px; color: var(--mut); font-size: 12px; line-height: 1.35; }
  .game-active-note { padding: 9px 11px; border: 1px solid rgba(242,184,75,.22); border-radius: 13px; color: #efd69e; background: rgba(242,184,75,.08); font-size: 11px; line-height: 1.35; }
  .game-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .game-tile {
    min-width: 0; min-height: 126px; padding: 11px 12px 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
    border: 1px solid rgba(255,255,255,.08); border-radius: 18px; color: var(--text); background: linear-gradient(150deg, #1a1a20, #131316 75%);
    text-align: left; font: inherit; cursor: pointer; transition: transform .14s ease, border-color .18s ease, filter .18s ease;
  }
  .game-tile:active:not(:disabled) { transform: scale(.975); }
  .game-tile.featured.wheel { border-color: rgba(242,184,75,.28); background: radial-gradient(ellipse at 100% 0%, rgba(214,143,47,.16), transparent 58%), linear-gradient(150deg, #211d1b, #141316 76%); }
  .game-tile.featured.mines { border-color: rgba(94,211,150,.25); background: radial-gradient(ellipse at 100% 0%, rgba(61,171,118,.16), transparent 58%), linear-gradient(150deg, #19201d, #131616 76%); }
  .game-tile.resume { border-color: rgba(242,184,75,.68); background: radial-gradient(ellipse at 100% 0%, rgba(242,184,75,.2), transparent 62%), linear-gradient(150deg, #29231a, #171518 76%); box-shadow: 0 0 0 1px rgba(242,184,75,.22), 0 8px 25px rgba(242,184,75,.12); }
  .game-tile:disabled { opacity: .42; cursor: default; }
  .game-tile-top { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 1px; }
  .game-tile-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; font-size: 21px; background: rgba(255,255,255,.055); }
  .game-tile-top small { padding: 4px 7px; border-radius: 8px; color: #f2d18f; background: rgba(242,184,75,.1); font-size: 8px; font-weight: 800; letter-spacing: .09em; }
  .game-tile.featured.mines .game-tile-top small { color: #9ce8bb; background: rgba(74,222,128,.1); }
  .game-tile > b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.2; }
  .game-tile-desc { display: -webkit-box; overflow: hidden; color: var(--mut); font-size: 10px; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .game-tile-played { display: block; margin-top: 5px; color: var(--amber); font-size: 10px; }
  .game-variety-card { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 11px 12px; border: 1px solid rgba(242,184,75,.18); border-radius: 15px; background: linear-gradient(145deg, rgba(242,184,75,.09), var(--s1)); }
  .game-variety-card > span { font-size: 21px; }
  .game-variety-card > div { flex: 1; min-width: 0; }
  .game-variety-card b, .game-variety-card small { display: block; }
  .game-variety-card small { margin-top: 3px; color: var(--mut); font-size: 11px; }
  .game-tile-link { width: 100%; margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; color: #e9c77d; font-size: 10px; font-weight: 700; }
  .game-tile-link i { font-size: 17px; font-style: normal; line-height: 10px; }
  .game-tile.featured.mines .game-tile-link { color: #9be8b9; }
  .game-menu-grid > .game-tile:last-child { grid-column: 1 / -1; width: calc(50% - 4.5px); justify-self: center; }
  .game-responsible { color: #777781; font-size: 10px; line-height: 1.3; text-align: center; }
  .game-hub-entry { width: 100%; min-height: 66px; padding: 10px 13px; border: 1px solid rgba(242,184,75,.2); border-radius: 18px; background: radial-gradient(ellipse at 100% 0%, rgba(242,184,75,.1), transparent 60%), var(--s1); color: var(--text); display: flex; align-items: center; gap: 11px; text-align: left; font: inherit; cursor: pointer; }
  .game-hub-entry:active { background-color: var(--s2); }
  .game-hub-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(242,184,75,.1); font-size: 23px; flex: none; }
  .game-hub-entry .mid b { font-size: 14px; }
  .game-hub-entry .mid small { font-size: 11px; }
  .game-hub-count { display: flex; align-items: center; gap: 5px; color: var(--amber); font-size: 13px; font-weight: 700; }
  .game-hub-count i { color: var(--mut); font-size: 21px; font-style: normal; }

  .game-detail { gap: 9px; }
  .game-heading { min-height: 47px; gap: 10px; }
  .game-heading .game-emoji { width: 42px; height: 42px; border-radius: 14px; font-size: 22px; }
  .game-heading > div { gap: 1px; }
  .game-heading b { font-size: 17px; line-height: 1.1; }
  .game-heading small:not(.game-kicker) { color: var(--mut); font-size: 10px; line-height: 1.25; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
  .game-kicker { margin-bottom: 2px; font-size: 8px; letter-spacing: .11em; }
  .game-card { position: relative; gap: 10px; padding: 12px; border-radius: 21px; border-color: rgba(255,255,255,.075); background: linear-gradient(160deg, rgba(26,26,32,.96), rgba(17,17,20,.98) 72%); box-shadow: 0 12px 35px rgba(0,0,0,.18); overflow: visible; }
  .game-card-wheel { border-color: rgba(242,184,75,.15); background: radial-gradient(ellipse at 50% 0%, rgba(168,107,40,.11), transparent 42%), linear-gradient(160deg, #1a191d, #121214 72%); }
  .game-card-mines { border-color: rgba(100,230,157,.15); background: radial-gradient(ellipse at 50% 0%, rgba(46,138,96,.11), transparent 43%), linear-gradient(160deg, #171d1a, #121415 72%); }
  .game-card .desc { font-size: 11px; line-height: 1.35; }
  .game-card .primary { height: 48px; min-height: 48px; border-radius: 15px; font-size: 14px; }
  .game-card .game-action { box-shadow: 0 6px 18px rgba(242,184,75,.1); }
  .game-card .cashout { height: 44px; }
  .game-fine { color: #85858e; font-size: 10px; line-height: 1.3; text-align: center; }
  .game-control-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: #e6e5eb; font-size: 12px; font-weight: 700; }
  .game-control-label small { color: var(--mut); font-size: 9px; font-weight: 450; text-align: right; }
  .game-card .bet-block { gap: 7px; }
  .game-card .bet-caption { font-size: 11px; }
  .game-card .bet-caption b { font-size: 13px; }
  .game-card .chips { gap: 6px; }
  .game-card .chips button { height: 38px; border-radius: 11px; font-size: 11px; }
  .risk-options, .mine-count-options { gap: 7px; }
  .game-card .risk-options button, .game-card .mine-count-options button { min-height: 42px; height: 42px; border-radius: 13px; font-size: 11px; }
  .game-card .risk-options button { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.035); color: #b9b8c1; }
  .game-card .risk-options button.on { color: #281b08; border-color: transparent; background: linear-gradient(145deg, #f9d98b, #d89938); }
  .game-card .wheel-scene { min-height: 174px; padding: 8px 0 6px; gap: 4px; border-radius: 19px; background: radial-gradient(ellipse at 50% 44%, rgba(242,184,75,.14), transparent 58%), linear-gradient(145deg, #201d21, #111114); }
  .game-card .wheel-ring { width: 142px; height: 142px; border-width: 7px; box-shadow: 0 0 0 3px #714b1d, 0 9px 22px rgba(0,0,0,.36), inset 0 0 0 2px rgba(255,255,255,.4); }
  .game-card .wheel-center { width: 48px; height: 48px; font-size: 11px; }
  .game-card .wheel-pin { top: 6px; font-size: 21px; }
  .game-card .scene-caption { font-size: 10px; }
  .game-card .wheel-odds-row { gap: 5px; }
  .game-card .wheel-odds { min-width: 49px; padding: 5px 3px; border-radius: 9px; font-size: 9px; }
  .game-card .wheel-odds b { font-size: 11px; margin-top: 1px; }
  .game-card-mines .mine-scene { padding: 10px; border-radius: 18px; border-color: rgba(100,226,174,.14); background: radial-gradient(ellipse at 50% 0%, rgba(64,166,130,.19), transparent 65%), linear-gradient(155deg,#121b17,#101215 80%); }
  .game-card-mines .mine-head { gap: 8px; margin: 0 1px 9px; }
  .game-card-mines .mine-head > span { width: 31px; height: 31px; border-radius: 10px; font-size: 17px; }
  .game-card-mines .mine-head b { font-size: 13px; }
  .game-card-mines .mine-head small { font-size: 9px; }
  .game-card-mines .mine-head small.mine-result.win { color: #9df1c2; }
  .game-card-mines .mine-head small.mine-result.lose { color: #ff9999; }
  .game-card-mines .mine-grid { gap: clamp(4px, 1.4vw, 6px); }
  .game-card-mines .mine-grid { width: min(100%, 257px); margin: 0 auto; }
  .game-card-mines .mine-cell { min-width: 0; border-radius: clamp(7px, 2.5vw, 11px); font-size: clamp(14px, 4vw, 18px); touch-action: manipulation; background: linear-gradient(145deg, #29453a, #1c3028); border-color: rgba(136,210,170,.17); color: #8eb49f; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 6px #0006; }
  .game-card-mines .mine-cell:not(:disabled):hover { border-color: rgba(127,239,177,.55); filter: brightness(1.13); }
  .game-card-mines .mine-cell.opened { background: radial-gradient(circle at 38% 25%, #328459, #16452e 74%); border-color: rgba(119,246,175,.6); color: #caffdc; }
  .game-card-mines .mine-cell.mine { background: linear-gradient(145deg,#a04747,#53282a); border-color: rgba(255,140,140,.7); }
  .game-card-mines .mine-footer { position: sticky; bottom: calc(-12px - env(safe-area-inset-bottom, 0px)); z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 10px 0 2px; background: linear-gradient(180deg, rgba(18,22,20,0), rgba(18,22,20,.97) 20%); }
  .game-card-mines .mine-payout { min-height: 24px; font-size: 11px; }
  .game-card-mines .mine-payout b { color: #9df1c2; font-size: 13px; }
  .game-card-mines .game-cashout { color: #062416; background: linear-gradient(145deg,#9bf0bc,#55cc89); font-weight: 750; box-shadow: 0 7px 18px rgba(74,222,128,.14); }
  .game-card-mines .game-cashout:disabled { color: #80858a; background: #2b3230; }
  .game-card .result { padding: 10px 12px; font-size: 18px; }
  .game-card .result small { font-size: 11px; }
  .game-card .dice-stage, .game-card .coin-stage { min-height: 158px; }
  .game-card .coin-token { width: 88px; height: 88px; }
  .game-card .dice-cube { width: 74px; height: 74px; }
  .game-card .dice-face { padding: 10px; }
  .game-card .dice-face:nth-child(1) { transform: translateZ(37px); }
  .game-card .dice-face:nth-child(2) { transform: rotateY(180deg) translateZ(37px); }
  .game-card .dice-face:nth-child(3) { transform: rotateY(90deg) translateZ(37px); }
  .game-card .dice-face:nth-child(4) { transform: rotateY(-90deg) translateZ(37px); }
  .game-card .dice-face:nth-child(5) { transform: rotateX(90deg) translateZ(37px); }
  .game-card .dice-face:nth-child(6) { transform: rotateX(-90deg) translateZ(37px); }
  .game-card .ladder-scene { padding: 12px; }
  .game-card .ladder-readout { font-size: 10px; }
  .game-card .game-seg button { min-height: 42px; }

  @media (max-width: 360px) {
    .view.game-screen { padding-left: 11px; padding-right: 11px; }
    .game-shell { gap: 9px; }
    .game-menu-grid { gap: 7px; }
    .game-tile { min-height: 120px; padding: 10px; }
    .game-tile > b { font-size: 13px; }
    .game-card { padding: 10px; gap: 9px; }
    .game-card .wheel-ring { width: 132px; height: 132px; }
  }
  @media (max-height: 720px) {
    .view.game-screen { padding-top: calc(4px + env(safe-area-inset-top, 0px)); padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px)); }
    .game-shell, .game-detail { gap: 5px; }
    .game-lobby-heading p { margin-top: 3px; }
    .game-tile { min-height: 116px; }
    .game-heading { min-height: 40px; }
    .game-heading .game-emoji { width: 38px; height: 38px; }
    .game-card { gap: 6px; padding: 10px; }
    .game-card .wheel-scene { min-height: 156px; }
    .game-card .wheel-ring { width: 128px; height: 128px; }
    .game-card .mine-scene { padding: 8px; }
    .game-card .mine-count-options button { min-height: 40px; height: 40px; }
    .game-card-mines .mine-head { margin-bottom: 7px; }
    .game-card .chips button { height: 36px; }
  }
/* Optional access to the same profile from Yandex Games. */

/* Уникальная коллекция и неделя вербовки */
.unique-menu-group .item { min-height: 62px; }
.unique-menu-group .ib2 { color: var(--amber); }
.unique-intro, .unique-wallet { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; border-color: rgba(242,184,75,.2); background: linear-gradient(145deg, rgba(242,184,75,.08), var(--s1) 75%); }
.unique-intro b, .unique-intro small, .unique-wallet small { display: block; }
.unique-intro b { font-size: 15px; }
.unique-intro small, .unique-wallet small { margin-top: 4px; color: var(--mut); font-size: 11px; line-height: 1.4; }
.unique-count { flex: none; color: var(--amber); font-weight: 750; }
.unique-route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 20px; }
.unique-route-grid .ghost { display: flex; align-items: center; justify-content: space-between; min-width: 0; height: 44px; padding: 0 11px; font-size: 11px; }
.unique-route-grid .ghost span { color: var(--amber); }
.unique-list { display: grid; gap: 10px; }
.unique-card, .unique-market-card { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(150deg, var(--s1), #121214 80%); }
.unique-card.legendary, .unique-catalog-card.legendary { border-color: rgba(242,184,75,.38); }
.unique-card.epic, .unique-catalog-card.epic { border-color: rgba(153,117,255,.32); }
.unique-card.rare, .unique-catalog-card.rare { border-color: rgba(108,177,230,.24); }
.unique-art { position: relative; display: grid; flex: 0 0 76px; width: 76px; height: 76px; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: radial-gradient(circle at 30% 20%, #403525, #171719 72%); color: var(--amber); }
.unique-art.legendary { box-shadow: inset 0 0 0 1px rgba(242,184,75,.28); }
.unique-art.epic { background: radial-gradient(circle at 30% 20%, #332849, #171719 72%); color: #c5a8ff; }
.unique-art.rare { background: radial-gradient(circle at 30% 20%, #213346, #171719 72%); color: #a6d8ff; }
.unique-art > span { position: absolute; z-index: 0; font-size: 26px; }
.unique-art .unique-photo { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.unique-art.sm { flex-basis: 48px; width: 48px; height: 48px; border-radius: 14px; }
.unique-art.sm > span { font-size: 19px; }
.unique-copy { flex: 1; min-width: 0; }
.unique-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.unique-card-heading b, .unique-card-heading small { display: block; }
.unique-card-heading b { font-size: 14px; line-height: 1.25; }
.unique-card-heading small { margin-top: 3px; color: var(--mut); font-size: 10px; line-height: 1.3; overflow-wrap: anywhere; }
.unique-copy p { margin-top: 8px; color: #c4c2cb; font-size: 11px; line-height: 1.4; }
.unique-effect { margin-top: 8px; padding: 8px 9px; border-radius: 11px; background: rgba(255,255,255,.045); color: var(--amber); font-size: 10px; line-height: 1.35; }
.unique-active { flex: none; padding: 4px 7px; border: 1px solid rgba(74,222,128,.2); border-radius: 999px; background: rgba(74,222,128,.1); color: #8de5ac; font-size: 9px; font-weight: 700; }
.unique-selection, .unique-listed { display: block; margin-top: 7px; color: var(--mut); font-size: 10px; line-height: 1.35; }
.unique-listed { color: var(--amber); }
.unique-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.unique-actions button { flex: 1 1 auto; min-width: 90px; min-height: 36px; height: auto; padding: 6px 9px; font-size: 10px; white-space: normal; }
.unique-actions .mini { border: 1px solid rgba(242,184,75,.28); background: rgba(242,184,75,.1); color: var(--amber); }
.unique-actions button:disabled { opacity: .48; }
.unique-empty { margin: 10px 0; border-style: dashed; border-color: var(--line2); }
.unique-empty b { font-size: 14px; }
.unique-empty p { margin-top: 6px; color: var(--mut); font-size: 11px; line-height: 1.45; }
.unique-catalog-title { margin-top: 22px; }
.unique-catalog-title span { max-width: 48%; text-align: right; font-size: 10px; }
.unique-catalog { display: grid; gap: 7px; }
.unique-catalog-card { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 16px; background: var(--s1); }
.unique-catalog-card .mid { min-width: 0; }
.unique-catalog-card .mid b, .unique-catalog-card .mid small { display: block; }
.unique-catalog-card .mid b { font-size: 12px; }
.unique-catalog-card .mid small { margin-top: 3px; color: var(--mut); font-size: 10px; line-height: 1.35; }
.unique-open { width: 100%; margin-top: 10px; }
.unique-disabled { margin: 8px 0; color: #edc878; font-size: 11px; line-height: 1.4; }
.unique-wallet { margin-bottom: 8px; }
.unique-wallet > span b { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 20px; }
.unique-wallet .i { width: 19px; height: 19px; }
.unique-wallet > small { max-width: 120px; text-align: right; }
.unique-market-note { margin: 8px 0 12px; }
.unique-market-card { align-items: flex-start; }
.unique-market-buyrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.unique-market-buyrow > b { display: flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--amber); font-size: 15px; }
.unique-market-buyrow .i { width: 17px; height: 17px; }
.unique-market-buyrow .primary { width: auto; min-height: 40px; height: auto; margin: 0; padding: 8px 13px; font-size: 11px; white-space: nowrap; }
.unique-target-list { margin-top: 13px; }
.unique-target-choice { min-height: 60px; }
.unique-price-label { display: block; margin-top: 14px; color: var(--mut); font-size: 12px; }
.unique-price-label input, .unique-copy-input { display: block; width: 100%; height: 48px; margin-top: 7px; padding: 0 13px; border: 1px solid var(--line2); border-radius: 13px; outline: none; background: var(--s2); color: var(--text); font: inherit; font-size: 16px; }
.unique-price-label input:focus, .unique-copy-input:focus { border-color: rgba(242,184,75,.52); }
.recruitment-hero { border-color: rgba(242,184,75,.28); background: radial-gradient(ellipse at 10% 0%, rgba(242,184,75,.12), transparent 55%), var(--s1); }
.recruitment-hero-top { display: flex; align-items: center; gap: 11px; }
.recruitment-hero-top > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: rgba(242,184,75,.11); font-size: 22px; }
.recruitment-hero-top b, .recruitment-hero-top small { display: block; }
.recruitment-hero-top b { font-size: 16px; }
.recruitment-hero-top small { margin-top: 4px; color: var(--mut); font-size: 10px; }
.recruitment-hero > p, .recruitment-rules p { margin-top: 10px; color: var(--mut); font-size: 11px; line-height: 1.45; }
.recruitment-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 14px; }
.recruitment-stats > div { min-width: 0; padding: 9px 6px; border-radius: 12px; background: rgba(255,255,255,.045); text-align: center; }
.recruitment-stats b, .recruitment-stats small { display: block; }
.recruitment-stats b { color: var(--amber); font-size: 16px; }
.recruitment-stats small { margin-top: 3px; color: var(--mut); font-size: 9px; line-height: 1.25; }
.recruitment-link { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px; margin-top: 12px; }
.recruitment-link > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9ecbff; font-size: 10px; }
.recruitment-link button { min-height: 35px; height: auto; padding: 5px 8px; font-size: 9px; }
.recruitment-rules { margin: 10px 0 18px; }
.recruitment-rules > b { font-size: 13px; }
.recruitment-rules p + p { margin-top: 7px; }
.unique-reward-list { display: grid; gap: 7px; }
.unique-reward-row { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 15px; background: var(--s1); }
.reward-threshold { display: grid; flex: none; width: 31px; height: 31px; place-items: center; border-radius: 10px; background: rgba(242,184,75,.12); color: var(--amber); font-size: 12px; font-weight: 750; }
.unique-reward-row .mid { flex: 1; min-width: 0; }
.unique-reward-row .mid b, .unique-reward-row .mid small { display: block; }
.unique-reward-row .mid b { font-size: 12px; }
.unique-reward-row .mid small { margin-top: 3px; color: var(--mut); font-size: 10px; }
.unique-leaderboard .item { min-height: 54px; }
.leader-place { display: grid; flex: none; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: var(--s2); color: var(--amber); font-size: 11px; font-weight: 750; }
.unique-event-foot { margin-top: 12px; text-align: center; }
@media (max-width: 360px) {
  .unique-art { flex-basis: 62px; width: 62px; height: 62px; border-radius: 15px; }
  .unique-card, .unique-market-card { gap: 9px; padding: 10px; }
  .unique-route-grid { grid-template-columns: 1fr; }
  .recruitment-link { grid-template-columns: minmax(0, 1fr) auto; }
  .recruitment-link > span { grid-column: 1 / -1; }
}
