/* Обереги онлайн: облик оболочки — тот же, что у игры (css/ui.css): тёмный дуб и кожа, старая бронза, плашки НРИ из ui/.
   Размеры в rem: у игры 1rem = высота окна / 56 (не меньше 12px), поэтому всё растёт и сжимается вместе со столом.
   Телефон — горизонтально; кнопки не ниже 44px. */
:root { --ol-gold: #f0c96a; --ol-soul: #9fd8ff; --r-common: #cfc6b4; --r-rare: #6fb6ff; --r-epic: #c58cff; --r-legend: #ffb347; }

/* режим «По сети» самой игры — для Foundry; здесь сеть через лобби и сервер */
#setup-mode button[data-mode="net"] { display: none !important; }

/* ── вход */
.ol-auth { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 1rem;
  background: radial-gradient(circle at 50% 35%, rgba(40, 28, 16, 0.55), rgba(5, 4, 3, 0.94) 70%), var(--sk-tex) 0 0 / 16rem 16rem repeat, #0b0806; }
.ol-auth.on { display: flex; }
.ol-auth-box { width: min(27rem, 94vw); max-height: 96vh; overflow: auto; text-align: center; }
.ol-auth-box .logo { font-size: 3.2rem; line-height: 0.95; }
.ol-auth-box .sub { font-size: 1.05rem; margin: 0.3rem 0 0.8rem; }
.ol-auth-tabs { margin: 0 auto 0.6rem; }
.ol-field { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 0.2rem; margin: 0.45rem 0; color: var(--muted); font-size: 0.95rem; }
.ol-field input, .ol-inv-row input, .ol-pw input, .ol-souls-search {
  font-family: var(--font); font-size: 1.15rem; color: var(--gold-hi); background: rgba(8, 6, 4, 0.78); border: 1px solid rgba(184, 137, 74, 0.55);
  box-shadow: inset 0 2px 0.375rem rgba(0, 0, 0, 0.7); border-radius: 0.35rem; padding: 0.55rem 0.7rem; min-height: 44px; outline: none; user-select: text; }
.ol-field input:focus, .ol-inv-row input:focus, .ol-pw input:focus, .ol-souls-search:focus { border-color: var(--ol-gold); box-shadow: inset 0 2px 0.375rem rgba(0, 0, 0, 0.7), 0 0 0.5rem rgba(240, 200, 110, 0.35); }
#ol-auth-go { width: 100%; margin-top: 0.4rem; min-height: 48px; }
.ol-err { min-height: 1.3em; color: #ff9a7a; font-size: 1rem; margin-top: 0.3rem; }
.ol-note { color: var(--muted); font-size: 0.9rem; line-height: 1.4; margin: 0.4rem 0; font-style: italic; }
.ol-wait { color: var(--gold-hi); font-size: 1.3rem; margin: 1rem 0; }
.ol-wait:empty { display: none; }

/* ── лобби: главное меню игры. Слева — ты и кнопки, справа — кто в сети; середина свободна: стол живой */
#menu.ol { padding: 0; justify-content: stretch; align-items: stretch;
  background: linear-gradient(90deg, rgba(5, 6, 10, 0.9) 0%, rgba(5, 6, 10, 0.5) 30%, rgba(5, 6, 10, 0) 48%, rgba(5, 6, 10, 0) 58%, rgba(5, 6, 10, 0.55) 74%, rgba(5, 6, 10, 0.85) 100%); }
.ol-lobby { flex: 1; display: flex; justify-content: space-between; align-items: stretch; gap: 1rem; padding: max(1.2rem, env(safe-area-inset-top)) max(1.6rem, env(safe-area-inset-right)) 1.2rem max(1.6rem, env(safe-area-inset-left)); pointer-events: none; min-height: 0; }
.ol-left, .ol-right { pointer-events: auto; display: flex; flex-direction: column; min-height: 0; }
.ol-left { width: 23rem; justify-content: center; gap: 0.35rem; }
.ol-left .logo { font-size: 3.3rem; line-height: 0.95; margin-bottom: 0.4rem; }
.ol-right { width: 25rem; justify-content: center; }
.ol-side { max-height: 100%; overflow: auto; padding: 0.7rem 0.9rem; }
.ol-h { color: var(--gold-hi); font-size: 1.15rem; margin: 0.45rem 0 0.35rem; padding-bottom: 0.45rem; text-shadow: 0 1px 0.1875rem #000;
  background: var(--sk-div-mid) left 1.5rem bottom -2px / auto 0.75rem no-repeat, var(--sk-div-rod) left bottom -2px / 100% 0.75rem no-repeat; }
.ol-h:first-child { margin-top: 0; }
.ol-h span { color: var(--muted); font-size: 0.95rem; }

.ol-plate { display: flex; align-items: center; gap: 0.8rem; text-align: left; cursor: pointer; color: var(--ink); font-family: var(--font); width: 100%;
  border: 0.8125rem solid transparent; border-image: var(--sk-card) 32 / 0.8125rem / 0 stretch; background: rgba(10, 8, 6, 0.55); background-clip: padding-box; padding: 0.2rem 0.4rem; }
.ol-plate:hover { filter: brightness(1.12); }
.ol-plate-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ol-plate-body > b { font-size: 1.35rem; color: var(--gold-hi); font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-lv { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.ol-lv i, .ol-q i { display: block; height: 0.45rem; border-radius: 1rem; background: linear-gradient(90deg, #f0c96a var(--p), rgba(255, 255, 255, 0.1) var(--p)); box-shadow: inset 0 1px 2px #000; }
.ol-lv small { font-size: 0.75rem; }
.ol-money { display: flex; gap: 0.9rem; margin-top: 0.15rem; font-size: 1.1rem; }
.ol-gold, .ol-souls, .ol-xp { white-space: nowrap; }
.ol-gold::before { content: ''; display: inline-block; width: 0.9em; height: 0.9em; margin-right: 0.3em; vertical-align: -0.1em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c0, #e0aa38 45%, #8a5a14); box-shadow: 0 0 0.35em rgba(255, 200, 90, 0.6); }
.ol-souls::before { content: ''; display: inline-block; width: 0.75em; height: 0.95em; margin-right: 0.3em; vertical-align: -0.1em; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #e6f8ff, #74c4ff 45%, rgba(60, 120, 220, 0.4)); box-shadow: 0 0 0.45em rgba(120, 200, 255, 0.8); }
.ol-gold { color: var(--ol-gold); }
.ol-souls { color: var(--ol-soul); }
.ol-xp { color: #b8e08a; }

.ol-face { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #1d1710;
  box-shadow: 0 0 0 0.15rem #6e5230, 0 0 0 0.25rem #c9a160, 0 0.15rem 0.5rem rgba(0, 0, 0, 0.6); color: var(--gold-hi); font-size: 1.2rem; }
.ol-face img { width: 100%; height: 100%; object-fit: cover; }
.ol-face.big { width: 4.2rem; height: 4.2rem; font-size: 2rem; }
.ol-face.huge { width: 6.5rem; height: 6.5rem; font-size: 3rem; }

.ol-find { min-height: 3.6rem; margin-top: 0.4rem !important; font-size: 1.6rem !important; }
.ol-find small { display: block; font-size: 0.85rem; color: var(--muted); }
.ol-find.waiting { animation: ol-pulse 1.6s ease-in-out infinite; }
@keyframes ol-pulse { 50% { box-shadow: 0 0 1.6rem rgba(240, 200, 110, 0.75), 0 0.375rem 1rem rgba(0, 0, 0, 0.5); } }
.ol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.4rem; }
.ol-grid .btn { margin: 0.2rem 0 !important; font-size: 1.1rem !important; min-height: 44px; white-space: nowrap; }
.ol-badge { display: inline-block; min-width: 1.3em; margin-left: 0.4em; padding: 0 0.3em; border-radius: 1em; background: #b0331f; color: #fff; font-size: 0.8em; font-weight: normal; }
.ol-badge:empty { display: none; }
.ol-elsewhere { display: flex; align-items: center; gap: 0.6rem; color: #ffd2a0; font-size: 0.95rem; }
.ol-elsewhere:empty { display: none; }

.ol-inv-row { display: flex; gap: 0.4rem; align-items: center; margin-bottom: 0.3rem; }
.ol-inv-row input { flex: 1; min-width: 0; font-size: 1rem; padding: 0.4rem 0.6rem; }
.ol-inv-row .btn { margin: 0; font-size: 1rem; }
.ol-list { display: flex; flex-direction: column; gap: 0.15rem; }
.ol-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0.2rem; border-bottom: 1px dashed rgba(255, 255, 255, 0.07); min-height: 44px; }
.ol-row.me { opacity: 0.75; }
.ol-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ol-row-body b { font-weight: normal; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-row-body b i { color: var(--muted); font-size: 0.85em; }
.ol-row-body small { color: var(--muted); font-size: 0.8rem; }
.btn.mini-btn { margin: 0; font-size: 0.95rem; padding: 0 0.5rem; min-height: 40px; }
.ol-empty { color: var(--muted); font-style: italic; font-size: 0.9rem; padding: 0.4rem 0.2rem; line-height: 1.4; }
.ol-quests { display: flex; flex-direction: column; gap: 0.45rem; }
.ol-q { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 0.6rem; font-size: 0.92rem; }
.ol-q i { grid-column: 1 / -1; grid-row: 2; }
.ol-q small { grid-column: 2; grid-row: 1; color: var(--muted); white-space: nowrap; }
.ol-q.done span { color: #b8e08a; text-decoration: line-through; text-decoration-color: rgba(184, 224, 138, 0.5); }
.ol-q-note { color: var(--muted); font-size: 0.78rem; font-style: italic; }

/* ── плашки поверх всего */
.ol-banner { position: fixed; left: 50%; top: max(0.6rem, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 65; display: none; max-width: 92vw; text-align: center;
  padding: 0.35rem 1rem; color: #ffe0c8; font-size: 1rem; border: 0.625rem solid transparent; border-image: var(--sk-plaque) 22 fill / 0.625rem / 0 stretch; text-shadow: 0 1px 2px #000; pointer-events: none; }
.ol-banner.on { display: block; }
.ol-away { top: 4.2rem; color: #ffd8a0; }
.ol-chip { position: fixed; right: max(0.8rem, env(safe-area-inset-right)); bottom: 0.8rem; z-index: 64; display: none; align-items: center; gap: 0.6rem; padding: 0.2rem 0.4rem 0.2rem 0.9rem;
  border: 0.625rem solid transparent; border-image: var(--sk-tile-on) 26 fill / 0.625rem / 0 stretch; color: #ffe7a8; font-size: 1rem; box-shadow: 0 0 1rem rgba(240, 200, 110, 0.35); }
.ol-chip.on { display: flex; }
.ol-chip button { background: none; border: 0; color: #ffd2c4; font-size: 1.3rem; cursor: pointer; min-width: 44px; min-height: 40px; }
.ol-toast { position: fixed; left: 50%; bottom: 12vh; transform: translate(-50%, 1rem); z-index: 75; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  max-width: 90vw; padding: 0.4rem 1.1rem; color: var(--ink); font-size: 1.05rem; text-align: center; border: 0.625rem solid transparent; border-image: var(--sk-plaque) 22 fill / 0.625rem / 0 stretch; text-shadow: 0 1px 2px #000; }
.ol-toast.on { opacity: 1; transform: translate(-50%, 0); }
.ol-toast.bad { color: #ffc4b4; }
.ol-toast.ok { color: #e8f4c8; }
.ol-rotate { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; text-align: center; padding: 2rem; color: var(--ink);
  background: radial-gradient(circle at 50% 40%, #241a10, #050403 75%); font-size: 18px; }
.ol-rotate b { display: block; color: var(--gold-hi); font-size: 26px; margin-bottom: 8px; font-weight: normal; }
.ol-rotate div::before { content: '⟳'; display: block; font-size: 64px; color: var(--gold); margin-bottom: 12px; }
@media (orientation: portrait) and (max-width: 820px) and (pointer: coarse) { .ol-rotate { display: flex; } }

.ol-inv-text { display: flex; align-items: center; gap: 1rem; text-align: left; font-size: 1.1rem; line-height: 1.4; margin: 0.4rem 0 0.8rem; }
.ol-inv-text small { color: var(--muted); }
.ol-watch-close { margin-top: 1rem; }

/* ── награда в окне итога */
.ol-reward { margin: 0.2rem 0 0.6rem; padding: 0.5rem 0.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.ol-rw-main { font-size: 1.4rem; display: flex; gap: 1rem; justify-content: center; }
.ol-rw-up { color: var(--gold-hi); margin-top: 0.3rem; }
.ol-rw-q { color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }
.ol-rw-q.done { color: #b8e08a; }
.ol-rw-note { color: var(--muted); font-style: italic; font-size: 0.88rem; margin-top: 0.3rem; }

/* ── лавка */
.ol-shop, .ol-prof { display: flex; flex-direction: column; height: min(92vh, 52rem); }
.ol-top { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.ol-top h2 { margin: 0; }
.ol-tabs { flex-wrap: wrap; }
.ol-tabs button { min-height: 44px; }
.ol-tabs b { font-weight: normal; color: #fff; background: #b0331f; border-radius: 1em; padding: 0 0.35em; font-size: 0.8em; }
.ol-tabs b:empty { display: none; }
.ol-purse { margin-left: auto; display: flex; gap: 1rem; font-size: 1.25rem; }
.ol-shop-body { flex: 1; overflow: auto; margin-top: 0.6rem; padding-right: 0.3rem; -webkit-overflow-scrolling: touch; }
.ol-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0.8rem; }
.ol-pack { display: flex; flex-direction: column; gap: 0.5rem; border: 0.8125rem solid transparent; border-image: var(--sk-card) 32 / 0.8125rem / 0 stretch; background: rgba(10, 8, 6, 0.6); background-clip: padding-box; padding: 0.3rem 0.5rem; }
.ol-pack-art { height: 6.5rem; border-radius: 0.4rem; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 120%, var(--pc, #6a4a20), transparent 70%), linear-gradient(160deg, #2a1d10, #120c07); box-shadow: inset 0 0 1.5rem rgba(0, 0, 0, 0.8); }
.ol-pack-art::before { content: ''; position: absolute; width: 4.4rem; height: 5.8rem; border-radius: 0.4rem; transform: rotate(-8deg) translateX(-1.2rem);
  background: linear-gradient(160deg, #3a2a16, #1a120a); border: 2px solid var(--pc, #b8894a); box-shadow: 0 0.3rem 0.8rem #000; }
.ol-pack-art::after { content: ''; position: absolute; width: 4.4rem; height: 5.8rem; border-radius: 0.4rem; transform: rotate(7deg) translateX(1.2rem);
  background: radial-gradient(circle at 50% 45%, var(--pc, #b8894a) 0 0.9rem, transparent 1rem), linear-gradient(160deg, #3a2a16, #1a120a); border: 2px solid var(--pc, #b8894a); box-shadow: 0 0.3rem 0.8rem #000; }
.ol-pack-art span { position: absolute; z-index: 2; right: 0.6rem; bottom: 0.35rem; font-size: 1.15rem; color: #fff3d0; text-shadow: 0 0 0.5rem #000, 0 0 1rem var(--pc); }
.ol-pack-small { --pc: #a08060; }
.ol-pack-house { --pc: #6fb6ff; }
.ol-pack-wanderer { --pc: #c58cff; }
.ol-pack-treasury { --pc: #ffb347; }
.ol-pack-body { display: flex; flex-direction: column; gap: 0.25rem; }
.ol-pack-body b { color: var(--gold-hi); font-weight: normal; font-size: 1.3rem; }
.ol-pack-body small { color: #cfc6b4; font-size: 0.92rem; line-height: 1.35; }
.ol-pack-house select { font-family: var(--font); font-size: 1rem; background: #0c0a08; color: var(--gold-hi); border: 1px solid var(--line); border-radius: 0.4rem; padding: 0.3rem; min-height: 40px; }
.ol-odds { font-size: 0.85rem; color: var(--muted); }
.ol-odds summary { cursor: pointer; color: var(--gold); min-height: 32px; display: flex; align-items: center; }
.ol-odds div { margin: 0.2rem 0; line-height: 1.5; }
.ol-r { display: inline-block; margin-right: 0.5rem; white-space: nowrap; }
.ol-r.common { color: var(--r-common); } .ol-r.rare { color: var(--r-rare); } .ol-r.epic { color: var(--r-epic); } .ol-r.legend { color: var(--r-legend); }
.ol-pack-buy { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; }
.ol-pack-buy .ol-gold { font-size: 1.4rem; margin-right: auto; }
.ol-pack-buy .btn { margin: 0; font-size: 1.05rem !important; min-height: 44px; }
.ol-buydeck { display: flex; flex-direction: column; }
.ol-buydeck .deck-tile { flex: 1; cursor: default; }
.ol-deck-buy { display: flex; align-items: center; gap: 0.6rem; padding: 0.2rem 0.4rem; }
.ol-deck-buy .ol-gold { font-size: 1.2rem; margin-right: auto; }
.ol-deck-buy .btn { margin: 0; min-height: 44px; }
.ol-souls-top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ol-souls-top .ol-note { flex: 1 1 26rem; font-style: normal; }
.ol-souls-search { width: 100%; margin: 0.5rem 0; }
.ol-craft { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.7rem; }
.ol-craft-card { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.4rem; border-radius: 0.5rem; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.06); }
.ol-craft-card img { width: 100%; border-radius: 0.5rem; }
.ol-craft-card b { font-weight: normal; color: var(--ink); font-size: 0.95rem; }
.ol-craft-card small { display: block; color: var(--muted); font-size: 0.8rem; }
.ol-craft-card.rare small { color: var(--r-rare); } .ol-craft-card.epic small { color: var(--r-epic); } .ol-craft-card.legend small { color: var(--r-legend); }
.ol-craft-btns { display: flex; flex-direction: column; gap: 0.15rem; }
.ol-craft-btns .btn { margin: 0; font-size: 0.9rem; min-height: 40px; padding: 0 0.4rem; }

/* ── открытие набора (простая раскладка; 3D — отдельный модуль KKI.PackOpen) */
#ol-open { z-index: 55; background: radial-gradient(circle at 50% 45%, rgba(40, 28, 14, 0.85), rgba(4, 3, 2, 0.96) 70%); }
.ol-open-box { width: min(76rem, 96vw); max-height: 96vh; overflow: auto; display: flex; flex-direction: column; align-items: stretch; gap: 0.6rem; padding: 0.5rem; }
.ol-open-title { text-align: center; color: var(--gold-hi); font-size: 2rem; text-shadow: 0 0 1rem rgba(240, 200, 110, 0.5); }
.ol-open-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; perspective: 80rem; }
.ol-oc { width: 11.5rem; aspect-ratio: 63 / 88; background: none; border: 0; padding: 0; cursor: pointer; animation: ol-deal .5s ease-out both; animation-delay: calc(var(--i) * 0.09s); }
@keyframes ol-deal { from { opacity: 0; transform: translateY(-3rem) rotate(-6deg) scale(0.8); } }
.ol-oc-in { position: relative; display: block; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.2, .8, .3, 1.2); transform-style: preserve-3d; }
.ol-oc.open .ol-oc-in { transform: rotateY(180deg); }
.ol-oc-back, .ol-oc-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 0.6rem; }
.ol-oc-back { background: radial-gradient(circle at 50% 45%, #c9a160 0 1.2rem, transparent 1.3rem), repeating-linear-gradient(45deg, rgba(255, 220, 150, 0.06) 0 0.4rem, transparent 0.4rem 0.8rem), linear-gradient(160deg, #3a2a16, #140d07);
  border: 0.2rem solid #8a6a3a; box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.7); }
.ol-oc.rare .ol-oc-back { box-shadow: 0 0 1rem rgba(111, 182, 255, 0.55), 0 0.5rem 1.2rem rgba(0, 0, 0, 0.7); }
.ol-oc.epic .ol-oc-back { box-shadow: 0 0 1.3rem rgba(197, 140, 255, 0.7), 0 0.5rem 1.2rem rgba(0, 0, 0, 0.7); }
.ol-oc.legend .ol-oc-back, .ol-oc.sp .ol-oc-back { box-shadow: 0 0 1.8rem rgba(255, 179, 71, 0.9), 0 0.5rem 1.2rem rgba(0, 0, 0, 0.7); animation: ol-glow 1.4s ease-in-out infinite; }
@keyframes ol-glow { 50% { filter: brightness(1.35); } }
.ol-oc-face { transform: rotateY(180deg); overflow: visible; }
.ol-oc-face img { width: 100%; height: 100%; object-fit: contain; border-radius: 0.6rem; }
.ol-oc.open.legend .ol-oc-face img { box-shadow: 0 0 2.2rem rgba(255, 179, 71, 0.85); }
.ol-oc.open.epic .ol-oc-face img { box-shadow: 0 0 1.6rem rgba(197, 140, 255, 0.75); }
.ol-oc.open.rare .ol-oc-face img { box-shadow: 0 0 1.1rem rgba(111, 182, 255, 0.6); }
.ol-oc-face em { position: absolute; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 0.8rem; padding: 0.05rem 0.5rem; border-radius: 1rem; white-space: nowrap; box-shadow: 0 0.2rem 0.5rem #000; }
.ol-new { top: -0.6rem; background: #2f7a2a; color: #eaffd8; }
.ol-sp { bottom: 2.2rem; color: #10131f; background: linear-gradient(90deg, #ff9ae6, #a9b8ff, #8ff0ff, #fff3a0); }
.ol-sl { bottom: -0.6rem; background: #1a3c66; color: #d8f0ff; }
.ol-open-foot { text-align: center; color: var(--muted); font-size: 1rem; min-height: 1.3em; }

/* ── профиль */
.ol-prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; overflow: auto; flex: 1; margin-top: 0.6rem; }
.ol-prof-head { display: flex; align-items: center; gap: 1rem; }
.ol-prof-head b { display: block; font-size: 1.6rem; color: var(--gold-hi); font-weight: normal; }
.ol-prof-head small { display: block; color: var(--muted); }
.ol-heroes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; }
.ol-hero { background: none; border: 0; padding: 0.2rem; cursor: pointer; border-radius: 50%; min-height: 44px; }
.ol-hero .ol-face { width: 3.6rem; height: 3.6rem; }
.ol-hero.sel .ol-face { box-shadow: 0 0 0 0.15rem #f0c96a, 0 0 1rem rgba(255, 210, 120, 0.7); }
.ol-check { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; min-height: 44px; cursor: pointer; }
.ol-check input { width: 1.3rem; height: 1.3rem; accent-color: #c9a160; }
.ol-pw { display: flex; flex-direction: column; gap: 0.4rem; }
.ol-pw small { color: var(--muted); font-size: 0.85rem; }
.ol-pw .btn { margin: 0; align-self: flex-start; min-height: 44px; }
.ol-sessions { display: flex; flex-direction: column; gap: 0.2rem; }
.ol-sess { padding: 0.3rem 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.07); }
.ol-sess b { font-weight: normal; display: block; }
.ol-sess small { color: var(--muted); font-size: 0.85rem; }
.ol-sess.cur b { color: var(--gold-hi); }
.ol-prof-out { margin-top: 1rem; flex-wrap: wrap; }
.btn.danger { color: #ffb4a0; }

/* ── низкие окна: телефон горизонтально (высота 320–500px). 1rem тут 12px — подтянуть крупное */
@media (max-height: 500px) {
  .ol-lobby { padding-top: max(0.5rem, env(safe-area-inset-top)); padding-bottom: 0.5rem; gap: 0.6rem; }
  .ol-left { width: 19.5rem; gap: 0.15rem; }
  .ol-left .logo { font-size: 2.2rem; margin-bottom: 0.1rem; }
  .ol-right { width: 21rem; }
  .ol-plate { border-width: 0.6rem; }
  .ol-face.big { width: 3.2rem; height: 3.2rem; }
  .ol-find { min-height: 46px; font-size: 1.35rem !important; }
  .ol-shop, .ol-prof { height: 96vh; }
  .ol-prof-grid { gap: 1rem; }
  .ol-auth-box .logo { font-size: 2.4rem; }
  .ol-auth-box .sub { display: none; }
  .ol-field { margin: 0.25rem 0; }
  .ol-oc { width: 9rem; }
  .panel.wide.ol-shop, .panel.wide.ol-prof { width: 98vw; padding: 0.4rem 0.6rem; }
}
/* узко (телефон, маленький планшет): лобби — колонки уже, середина под стол исчезает */
@media (max-width: 900px) {
  #menu.ol { background: linear-gradient(90deg, rgba(5, 6, 10, 0.88), rgba(5, 6, 10, 0.7)); }
  .ol-lobby { justify-content: center; }
  .ol-left { width: auto; flex: 1 1 18rem; max-width: 22rem; }
  .ol-right { width: auto; flex: 1 1 18rem; max-width: 24rem; }
  .ol-prof-grid { grid-template-columns: 1fr; }
}
