  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #f6f6f8; color: #1a1a1a; }
  .movebar { background: #111; color: #fff; }
  .movebar-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; font-size: 14px; }
  .movebar a { color: #ffd166; font-weight: 700; text-decoration: none; }
  .movebar a:hover { text-decoration: underline; }
  .movebar .movebar-btn { background: #ff3b30; color: #fff; padding: 7px 16px; border-radius: 8px; font-size: 13px; white-space: nowrap; }
  .movebar .movebar-btn:hover { text-decoration: none; opacity: .9; }
  .topbar { background: #fff; border-bottom: 1px solid #eee; }
  .topbar-inner { max-width: 1200px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 20px; }
  .logo { font-size: 22px; font-weight: 800; letter-spacing: .3px; color: #222; white-space: nowrap; }
  .logo em { color: #ff3b30; font-style: normal; }
  .search { flex: 1; display: flex; position: relative; }
  .search input { flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px 0 0 8px; font-size: 14px; outline: none; }
  .search button { padding: 10px 18px; border: none; background: #ff3b30; color: #fff; font-size: 14px; font-weight: 600; border-radius: 0 8px 8px 0; cursor: pointer; }
  .search-echo { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid #e6e6ec; border-radius: 12px; box-shadow: 0 16px 40px rgba(20,20,40,.18); padding: 13px 16px 14px; display: none; z-index: 80; }
  .search-echo.on { display: block; animation: echoIn .16s ease-out; }
  .search-echo-kicker { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: #9a9aa5; margin-bottom: 7px; }
  .search-echo-text { font-size: 15px; line-height: 1.5; color: #222; min-height: 44px; }
  .search-echo-text::after { content: '▍'; color: #ff3b30; margin-left: 1px; animation: caret 1s steps(1) infinite; }
  .search-echo.t9 .search-echo-text { color: #ff3b30; font-weight: 700; }
  .search-echo.t9 .search-echo-text::after { content: ''; }
  @keyframes echoIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes caret { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
  .user { color: #555; font-size: 13px; white-space: nowrap; }
  @media (max-width: 700px) {
    .topbar-inner { flex-wrap: wrap; gap: 10px; }
    .search { flex: 1 0 100%; order: 3; }
  }
  .topbar-inner2 { max-width: 1200px; margin: 0 auto; padding: 8px 16px 12px; display: flex; gap: 8px; flex-wrap: wrap; }
  .chip { background: #fff; border: 1px solid #e3e3e8; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: #444; cursor: pointer; text-decoration: none; }
  .chip.act { background: #222; color: #fff; border-color: #222; }
  .container { max-width: 1200px; margin: 20px auto; padding: 0 16px 60px; }
  .banner { background: linear-gradient(90deg,#ff9a8b,#ff6a88 60%,#ff99ac); border-radius: 14px; color: #fff; padding: 22px 26px; margin-bottom: 24px; }
  .banner h1 { font-size: 20px; margin-bottom: 6px; }
  .banner p { font-size: 14px; opacity: .92; }
  .banner .snake-hint { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; opacity: 1; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.28); padding: 6px 11px; border-radius: 8px; cursor: pointer; user-select: none; }
  .banner .snake-hint b { background: #fff; color: #e14b6a; border-radius: 4px; padding: 0 5px; font-size: 12px; }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; position: relative; }
  .card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.07); transition: transform .15s ease, box-shadow .15s ease; position: relative; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
  .pic { position: relative; background: #f0f0f3; aspect-ratio: 1/1; min-height: 200px; display: flex; align-items: center; justify-content: center; }
  .pic img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
  .pic img.ph-img { width: 100%; height: 100%; object-fit: cover; }
  .badge { position: absolute; top: 10px; left: 10px; background: #ff3b30; color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 3px 8px; }
  .fav { position: absolute; top: 10px; right: 10px; background: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; }
  .body { padding: 12px 14px 14px; }
  .name { font-size: 14px; line-height: 1.35; font-weight: 600; min-height: 38px; }
  .desc { font-size: 12.5px; color: #777; margin-top: 4px; line-height: 1.4; }
  .rating { margin-top: 8px; font-size: 12.5px; color: #666; }
  .rating b { color: #ff9f1a; }
  .prices { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; }
  .price { font-size: 18px; font-weight: 800; }
  .old { font-size: 13px; color: #999; text-decoration: line-through; }
  .btn { width: 100%; margin-top: 12px; padding: 10px; border: none; border-radius: 8px; background: #ff3b30; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
  .btn.sec { background: #fff; color: #ff3b30; border: 1px solid #ff3b30; }
  .card { isolation: isolate; }
  .cart-wrap { position: relative; margin-top: 6px; }
  .cart-wrap .btn.sec { margin-top: 0; }
  .cart-btn { position: relative; z-index: 2; overflow: visible; }
  .cart-jordan { position: absolute; left: 0; top: 100%; width: 100%; height: auto; display: block; pointer-events: none; z-index: 1; opacity: 0; transform-origin: 50% 100%; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); will-change: transform, opacity; }
  .cart-jordan.jump { animation: jordanJump .78s cubic-bezier(.25,.8,.35,1) both; }
  @keyframes jordanJump {
    0%   { opacity: 0; transform: translateY(0) rotate(-6deg) scale(.92); }
    10%  { opacity: 1; }
    30%  { transform: translateY(-95%) rotate(4deg) scale(1.02); }
    50%  { transform: translateY(-142%) rotate(-2deg) scale(1); }
    68%  { transform: translateY(-120%) rotate(2deg) scale(1); }
    90%  { opacity: 1; transform: translateY(-8%) rotate(0) scale(.98); }
    100% { opacity: 0; transform: translateY(0) rotate(0) scale(.92); }
  }
  footer { border-top: 1px solid #eee; background: #fff; color: #999; font-size: 13px; text-align: center; padding: 24px 16px; margin-top: 32px; }
  footer a { color: #ff3b30; text-decoration: none; }
  footer a:hover { text-decoration: underline; }

  /* ----- cookie-баннер и consent mode ----- */
  .cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: rgba(18,20,28,.97); color: #fff; border-top: 1px solid rgba(255,255,255,.14); box-shadow: 0 -10px 30px rgba(0,0,0,.18); }
  .cookie-done .cookie-bar { display: none; }
  .cookie-inner { max-width: 1200px; margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .cookie-text { font-size: 13px; line-height: 1.45; color: #e9e9ef; }
  .cookie-latin { color: #ffd166; font-style: italic; white-space: nowrap; }
  .cookie-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
  .cookie-accept { border: none; border-radius: 8px; background: #ff3b30; color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 9px 18px; cursor: pointer; }
  .cookie-accept:hover { opacity: .9; }
  .cookie-necessary { border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; padding: 9px 14px; cursor: pointer; white-space: nowrap; }
  .cookie-necessary:hover { background: rgba(255,255,255,.08); border-color: #fff; }
  .cookie-link { border: 0; background: none; color: #ff3b30; font: inherit; font-size: 13px; padding: 0; cursor: pointer; vertical-align: baseline; }
  .cookie-link:hover { text-decoration: underline; }
  @media (max-width: 600px) {
    .cookie-inner { flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
    .cookie-actions { flex-direction: column; align-items: stretch; }
    .cookie-accept, .cookie-necessary { width: 100%; }
  }

  /* ----- окно оплаты ----- */
  .ovl { position: fixed; inset: 0; background: rgba(18,18,24,.55); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 1000; }
  .ovl.on { display: flex; }
  .pay { background: #fff; border-radius: 16px; width: 100%; max-width: 420px; max-height: 92vh; overflow: auto; padding: 22px; position: relative; box-shadow: 0 24px 70px rgba(0,0,0,.4); }
  .pay-x { position: absolute; top: 8px; right: 12px; border: none; background: none; font-size: 26px; line-height: 1; color: #aaa; cursor: pointer; }
  .pay-x:hover { color: #333; }
  .pay-h { font-size: 19px; font-weight: 800; }
  .pay-sub { color: #666; font-size: 13.5px; margin-top: 4px; line-height: 1.35; }
  .pay-sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding: 12px 14px; background: #f6f6f8; border-radius: 10px; font-size: 14px; }
  .pay-sum b { font-size: 20px; }
  .pay-qr { text-align: center; margin-top: 16px; }
  .pay-qr img { width: 200px; height: 200px; border: 1px solid #eee; border-radius: 10px; background: #fff; }
  .pay-qrcap { font-size: 12px; color: #888; margin-top: 6px; }
  .pay-joke { margin-top: 16px; background: #fff7e6; border: 1px solid #ffe0a3; border-radius: 10px; padding: 12px 14px; }
  .pay-joke-h { font-size: 11.5px; font-weight: 700; color: #b26a00; text-transform: uppercase; letter-spacing: .4px; }
  .pay-joke-t { font-size: 13.5px; color: #4a3a1a; margin-top: 6px; line-height: 1.45; white-space: pre-line; }
  .pay-status { margin-top: 12px; font-size: 13.5px; color: #0a7d33; min-height: 18px; font-weight: 600; white-space: pre-line; }

  /* ----- лайтбокс карточки товара ----- */
  .pic { cursor: zoom-in; }
  .fav { cursor: pointer; }
  .lb { position: fixed; inset: 0; background: rgba(12,12,16,.78); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 1100; }
  .lb.on { display: flex; }
  .lb-box { background: #fff; border-radius: 16px; width: 100%; max-width: 920px; max-height: 92vh; overflow: hidden; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.5); display: flex; flex-direction: column; }
  .lb-img { background: #f0f0f3; display: flex; align-items: center; justify-content: center; padding: 14px; flex: 0 0 auto; }
  .lb-img img { max-width: 100%; max-height: 46vh; object-fit: contain; display: block; }
  .lb-info { padding: 16px 18px 20px; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .lb-name { font-size: 17px; font-weight: 800; line-height: 1.35; padding-right: 34px; }
  .lb-desc { font-size: 14px; color: #666; margin-top: 8px; line-height: 1.5; }
  .lb-rating { margin-top: 8px; font-size: 13px; color: #666; }
  .lb-rating b { color: #ff9f1a; }
  .lb-prices { margin-top: 10px; display: flex; align-items: baseline; gap: 10px; }
  .lb-prices .price { font-size: 24px; }
  .lb-prices .old { font-size: 14px; }
  @media (min-width: 760px) {
    .lb-box { flex-direction: row; max-height: 88vh; }
    .lb-img { flex: 1 1 58%; padding: 22px; }
    .lb-img img { max-height: 78vh; }
    .lb-info { flex: 1 1 42%; padding: 26px; overflow: auto; }
  }
  .rating.rev-link { cursor: pointer; }
  .rating.rev-link:hover { color: #ff3b30; }
  .rating.rev-link b { text-decoration: underline; text-decoration-style: dotted; }
  .rev-box { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: 88vh; overflow: hidden; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.5); display: flex; flex-direction: column; }
  .rev-head { padding: 18px 20px 12px; border-bottom: 1px solid #eee; }
  .rev-title { font-size: 18px; font-weight: 800; padding-right: 34px; }
  .rev-prod { font-size: 13px; color: #777; margin-top: 3px; }
  .rev-summary { margin-top: 8px; font-size: 13.5px; color: #666; }
  .rev-summary b { color: #ff9f1a; }
  .rev-list { padding: 6px 20px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 0; }
  .rev-item { padding: 14px 0; border-bottom: 1px solid #f0f0f2; }
  .rev-item:last-child { border-bottom: none; }
  .rev-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .rev-author { font-weight: 700; font-size: 13.5px; }
  .rev-date { font-size: 12px; color: #aaa; white-space: nowrap; }
  .rev-stars { margin-top: 3px; }
  .st { position: relative; display: inline-block; font-size: 15px; letter-spacing: 1px; color: #e4e4e8; white-space: nowrap; line-height: 1; }
  .st .f { position: absolute; left: 0; top: 0; overflow: hidden; color: #ff9f1a; white-space: nowrap; }
  .rev-score { font-size: 12px; color: #999; }
  .rev-text { font-size: 14px; color: #333; line-height: 1.5; margin-top: 7px; white-space: pre-line; }

  /* ----- лайки, уровень, сортировка ----- */
  .fav { top: 10px; right: 10px; height: 30px; width: auto; min-width: 30px; padding: 0 9px; border: none; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-family: inherit; color: #444; box-shadow: 0 1px 4px rgba(0,0,0,.12); -webkit-appearance: none; appearance: none; transition: transform .12s ease, background .12s ease; }
  .fav .fav-ic { font-size: 15px; line-height: 1; color: #b9b9c0; }
  .fav .fav-n { font-size: 12.5px; font-weight: 700; color: #666; }
  .fav:hover { transform: scale(1.06); }
  .fav.on { background: #ffe9ea; }
  .fav.on .fav-ic, .fav.on .fav-n { color: #ff3b30; }
  .fav.pop { animation: favpop .35s ease; }
  @keyframes favpop { 0% { transform: scale(1); } 40% { transform: scale(1.38); } 100% { transform: scale(1); } }
  .lvl { display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #f2f2f5; color: #666; }
  .lvl.l2 { background: #e8f7ec; color: #1f8a45; }
  .lvl.l3 { background: #fff0e0; color: #b3460f; }
  .lvl.l4 { background: #efe7ff; color: #6a35c9; }
  .sortbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
  .sortbar-l { font-size: 13px; color: #888; }
  .sortchip { font-size: 13px; text-decoration: none; color: #444; background: #fff; border: 1px solid #e3e3e8; border-radius: 999px; padding: 6px 14px; }
  .sortchip.act { background: #222; color: #fff; border-color: #222; }

  /* ----- пасхалка: питон ----- */
  #snakeGame { position: fixed; inset: 0; z-index: 1600; display: none; touch-action: none; }
  .snake-hud { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1601; display: none; background: rgba(0,10,4,.72); color: #29ff6a; font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; font-size: 13px; font-weight: 700; letter-spacing: .5px; padding: 8px 14px; border: 1px solid rgba(41,255,106,.35); border-radius: 999px; box-shadow: 0 0 18px rgba(41,255,106,.25); white-space: nowrap; cursor: pointer; user-select: none; }
  .snake-link { cursor: pointer; user-select: none; }

  /* ----- пасхалка: «ничто…» — товар, которого не было (баг Матрицы) ----- */
  .card-void { background: #05100a; border: 1px solid rgba(41,255,106,.30); box-shadow: 0 0 0 1px rgba(41,255,106,.10), 0 8px 22px rgba(0,0,0,.35); }
  .card-void:hover { box-shadow: 0 0 0 1px rgba(41,255,106,.18), 0 10px 28px rgba(0,0,0,.45); }
  .card-void .pic { background: #000; }
  .card-void .body { background: #05100a; }
  .void-img { filter: saturate(1.3) contrast(1.06); }
  .void-badge { background: #06210f; color: #29ff6a; border: 1px solid rgba(41,255,106,.55); text-shadow: 0 0 7px rgba(41,255,106,.8); }
  .void-name { position: relative; color: #29ff6a; font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; letter-spacing: .5px; text-shadow: 0 0 9px rgba(41,255,106,.55); }
  .void-name::before, .void-name::after { content: attr(data-text); position: absolute; left: 0; top: 0; pointer-events: none; }
  .void-name::before { color: #ff2d55; transform: translate(-1.5px, -1px); opacity: .55; animation: voidglitch 3.1s infinite steps(1); }
  .void-name::after { color: #00e5ff; transform: translate(1.5px, 1px); opacity: .45; animation: voidglitch 2.4s infinite reverse steps(1); }
  @keyframes voidglitch {
    0%, 91%, 100% { clip-path: inset(0 0 0 0); }
    92% { clip-path: inset(0 0 62% 0); }
    94% { clip-path: inset(55% 0 0 0); }
    96% { clip-path: inset(22% 0 30% 0); }
    98% { clip-path: inset(0 0 8% 0); }
  }
  .void-desc { color: #29ff6a; font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; opacity: .82; word-break: break-word; text-shadow: 0 0 6px rgba(41,255,106,.32); }
  .card-void .rating { color: #1f8a45; }
  .card-void .rating b { color: #29ff6a; }
  .card-void .rating.rev-link:hover { color: #29ff6a; }
  .card-void .price { color: #29ff6a; text-shadow: 0 0 10px rgba(41,255,106,.35); }
  .card-void .old { color: #1f8a45; }
  .card-void .fav { background: rgba(5,16,10,.72); }
  .card-void .fav .fav-ic, .card-void .fav .fav-n { color: #29ff6a; }
  .card-void .fav.on { background: rgba(41,255,106,.16); }
  .card-void .fav.on .fav-ic, .card-void .fav.on .fav-n { color: #ff2d55; }
  /* модалка отзывов «ничто…» */
  #rev.void .rev-box { background: #05100a; border: 1px solid rgba(41,255,106,.30); }
  #rev.void .rev-head { border-bottom-color: rgba(41,255,106,.20); }
  #rev.void .rev-title, #rev.void .rev-prod, #rev.void .rev-summary { color: #29ff6a; }
  #rev.void .rev-summary b { color: #29ff6a; }
  #rev.void .rev-item { border-bottom-color: rgba(41,255,106,.14); }
  #rev.void .rev-author, #rev.void .rev-date { color: #1f8a45; }
  #rev.void .rev-text { color: #29ff6a; font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; word-break: break-word; text-shadow: 0 0 6px rgba(41,255,106,.32); }
  #rev.void .rev-score { color: #1f8a45; }
  #rev.void .pay-x { color: #29ff6a; }

  /* ----- пасхалка: ТЕТРИС из катаны ----- */
  .tetris { position: fixed; inset: 0; z-index: 1600; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(0,0,0,.74); padding: 14px; touch-action: none; }
  .tetris.on { display: flex; }
  .tetris-top { position: relative; width: 100%; max-width: 360px; display: flex; justify-content: center; }
  .tetris-hud { background: rgba(0,10,4,.85); color: #29ff6a; font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; font-size: 13px; font-weight: 700; letter-spacing: .5px; padding: 8px 14px; border: 1px solid rgba(41,255,106,.35); border-radius: 999px; box-shadow: 0 0 18px rgba(41,255,106,.25); white-space: nowrap; cursor: pointer; user-select: none; }
  .tetris-x { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(41,255,106,.35); background: rgba(0,10,4,.85); color: #29ff6a; font-size: 20px; line-height: 1; cursor: pointer; -webkit-appearance: none; appearance: none; }
  #tetrisCanvas { display: block; border-radius: 10px; box-shadow: 0 0 0 1px rgba(41,255,106,.30), 0 0 30px rgba(41,255,106,.18); }
  .tetris-hint { color: #7dffa6; font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; font-size: 11.5px; opacity: .82; text-align: center; }
  .tetris-pad { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; width: 100%; max-width: 340px; }
  .tp-btn { -webkit-appearance: none; appearance: none; touch-action: none; user-select: none; height: 58px; border-radius: 14px; border: 1px solid rgba(41,255,106,.35); background: rgba(0,20,10,.72); color: #29ff6a; font-size: 24px; font-weight: 700; cursor: pointer; }
  .tp-btn:active { background: rgba(41,255,106,.18); }
  .tp-rot { border-radius: 999px; font-size: 26px; }
  .tp-down { grid-column: 2; height: 44px; font-size: 18px; }

  /* ----- пасхалка: призрачный трамвай №432 (ЕХО, Макс Фрай) ----- */
  .tram-layer { position:absolute; inset:0; z-index:6; pointer-events:none; user-select:none; overflow:visible; }
  .tram-rail { position:absolute; left:0; width:100%; height:2px; opacity:0; pointer-events:none;
               transition:opacity .6s ease; box-shadow:0 0 5px rgba(120,110,150,.35); }
  .tram-rail.on { opacity:.85; }
  .tram-rail.r2 { height:1px; opacity:0; }
  .tram-rail.r2.on { opacity:.45; }
  .tram-img { position:absolute; left:0; top:0; height:24px; width:auto; pointer-events:none;
              transform:translate3d(-9999px,0,0); filter:drop-shadow(0 2px 2px rgba(0,0,0,.22));
              will-change:transform; opacity:1; transition:opacity .5s ease; }
  /* невидимая увеличенная зона нажатия — на мобильном в трамвай легко попасть пальцем */
  .tram-hit { position:absolute; left:0; top:0; width:56px; height:56px; z-index:2;
              pointer-events:auto; cursor:crosshair; touch-action:manipulation;
              transform:translate3d(-9999px,0,0); }
  .tram-stop { position:absolute; left:0; top:0; transform:translate3d(-9999px,0,0);
               background:#1b1b22; color:#fff; border:1px solid #ff3b30; border-radius:8px;
               padding:6px 10px 7px; box-shadow:0 6px 18px rgba(0,0,0,.25); opacity:0;
               transition:opacity .22s ease; width:min(260px,76vw); pointer-events:none; }
  .tram-stop.on { opacity:1; }
  .tram-stop-kicker { font-size:9px; letter-spacing:.08em; text-transform:uppercase; color:#ff8a80; margin-bottom:3px;
                      text-shadow:0 0 6px rgba(255,90,70,.6); }

  /* лампочное табло: бегущая строка + точечная матрица поверх текста */
  .tram-stop-viewport { position:relative; height:17px; line-height:17px; overflow:hidden;
    -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
    mask-image:linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%); }
  .tram-stop-viewport::after { content:""; position:absolute; inset:0; pointer-events:none;
    background-image:radial-gradient(circle, rgba(0,0,0,.7) .8px, transparent 1px);
    background-size:3px 3px; opacity:.5; }
  .tram-stop-track { display:inline-flex; white-space:nowrap; will-change:transform;
    animation:tram-marquee 6s linear infinite; animation-play-state:paused; }
  .tram-stop.on .tram-stop-track { animation-play-state:running; }
  .tm-msg, .tm-sep { display:inline-block; font-family:ui-monospace, "Courier New", monospace;
    font-size:12px; font-weight:700; letter-spacing:.06em; color:#ff6a52;
    text-shadow:0 0 3px rgba(255,90,60,.95), 0 0 9px rgba(255,60,40,.45); }
  .tm-sep { padding:0 16px; color:#ffb199; }
  @keyframes tram-marquee { from { transform:translate3d(0,0,0); } to { transform:translate3d(-50%,0,0); } }
  @media (max-width:520px) {
    .tram-img { height:20px; }
    .tram-hit { width:72px; height:72px; }
    .tram-stop { padding:5px 8px 6px; }
    .tm-msg, .tm-sep { font-size:11px; }
    .tm-sep { padding:0 12px; }
  }

  /* ----- мини-игра: билет трамвая №432 ----- */
  .ticket-game { position:fixed; inset:0; z-index:1800; display:none; align-items:center; justify-content:center;
                 background:transparent; padding:14px; cursor:pointer; user-select:none; }
  .ticket-game.on { display:flex; }
  .ticket-wrap { position:relative; display:inline-block; line-height:0;
                 height:min(88vh,760px); max-width:96vw;
                 filter:drop-shadow(0 18px 26px rgba(0,0,0,.55)) drop-shadow(0 4px 9px rgba(0,0,0,.45)); }
  .ticket-bg { position:relative; z-index:1; display:block; height:100%; width:auto; max-width:96vw; }
  /* цифры 1..9 — отдельные прозрательные картинки в окошках */
  .ticket-reels { position:absolute; z-index:2; left:26.3%; top:65.7%; width:58.6%;
                  display:flex; pointer-events:none; }
  .ticket-reel { position:relative; flex:0 0 auto; overflow:hidden; }
  .ticket-strip { position:absolute; left:0; top:0; width:100%; will-change:transform; }
  .ticket-digit { display:block; width:100%; height:100%; object-fit:contain; }
  .ticket-caption { position:absolute; left:50%; bottom:-46px; transform:translateX(-50%); line-height:1.25;
                    background:#1b1b22; color:#ffd166; border:1px solid #ff3b30; border-radius:999px;
                    padding:8px 16px; font:700 13px/1.25 ui-monospace,"Cascadia Mono",Consolas,"Courier New",monospace;
                    letter-spacing:.03em; white-space:nowrap; text-align:center;
                    box-shadow:0 6px 20px rgba(0,0,0,.5); }
  .ticket-caption.win { color:#fff; text-shadow:0 0 8px rgba(255,90,60,.9); }
  @media (max-width:520px) {
    .ticket-wrap { height:min(82vh,620px); }
    .ticket-caption { font-size:11px; bottom:-40px; padding:6px 10px; }
  }
