:root {
  --bg0: #0C1016; --bg1: #1C2530; --ink: #EEF2F6; --ink2: #C9D1DA; --ink3: #8D99A6;
  --gold: #E2C27D; --gold2: #F1DDAE; --red: #C7333F;
  --glass: rgba(255,255,255,.06); --glass2: rgba(255,255,255,.10); --line: rgba(255,255,255,.14);
  --chrome: linear-gradient(180deg,#FFFFFF 0%,#D5DBE1 48%,#AEB7C1 52%,#E4E8EC 100%);
  --goldg: linear-gradient(180deg,#F6E2AE,#C99A45);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --cw: 64px; --ch: 92px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg0); color: var(--ink); font-family: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-user-select: none; user-select: none; }
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; padding: 0; }
input { font: inherit; }
#app { position: fixed; inset: 0; background: radial-gradient(120% 70% at 50% 25%, var(--bg1) 0%, var(--bg0) 72%); display: flex; flex-direction: column; overflow: hidden; }

/* Umumiy elementlar */
.chrome { background: var(--chrome); color: #121820; border: 1px solid rgba(255,255,255,.8); box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(0,0,0,.45); font-weight: 800; }
.chrome:active { filter: brightness(.92); transform: translateY(1px); }
.chrome[disabled] { opacity: .45; pointer-events: none; }
.glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.pill-btn { height: 52px; border-radius: 18px; padding: 0 20px; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #DDE3EA; }
.lbl { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; color: #9AA6B2; text-transform: uppercase; }
.gold-t { color: var(--gold2); }
.muted { color: var(--ink3); }
.card-panel { padding: 14px 16px; border-radius: 22px; }
.seg { display: grid; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); }
.seg button { height: 42px; border-radius: 12px; font-weight: 800; color: var(--ink2); border: 1px solid transparent; }
.seg button.on { background: var(--chrome); color: #121820; border-color: rgba(255,255,255,.75); box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(0,0,0,.35); }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: linear-gradient(180deg,#fff,#B7C0CA); color: #10151B; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.price { position: absolute; right: -5px; top: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--goldg); color: #2A1C06; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.money { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(226,194,125,.35); background: rgba(226,194,125,.10); font-weight: 800; color: var(--gold2); font-size: 14px; }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 99; max-width: 90vw; padding: 10px 16px; border-radius: 14px; background: rgba(20,26,34,.92); border: 1px solid var(--line); font-weight: 700; font-size: 14px; text-align: center; animation: tin .25s ease; }
@keyframes tin { from { opacity: 0; transform: translate(-50%, -8px); } }
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: min(380px, 100%); border-radius: 24px; padding: 20px; background: rgba(22,28,36,.96); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.modal h2 { margin: 0; font-size: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; }
.field { height: 48px; border-radius: 14px; padding: 0 14px; background: rgba(0,0,0,.3); border: 1px solid var(--line); color: var(--ink); font-size: 16px; width: 100%; -webkit-user-select: text; user-select: text; }
.offline { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 8px; text-align: center; background: #7a1d24; font-size: 13px; font-weight: 700; }

/* Yuqori panel va pastki menyu */
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px 8px; }
.top h1 { margin: 0; font-size: 20px; font-weight: 800; }
.nav { margin: 8px 10px calc(10px + var(--safe-b)); padding: 6px; border-radius: 22px; background: rgba(22,28,36,.8); border: 1px solid var(--line); backdrop-filter: blur(18px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.nav button { height: 54px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 800; color: #9AA6B2; }
.nav button.on { background: var(--chrome); color: #121820; }
.page { padding: 6px 16px 16px; display: flex; flex-direction: column; gap: 14px; }

/* Ochiq o'yinlar ro'yxati */
.room-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; }
.room-item .bet { font-size: 18px; font-weight: 800; color: var(--gold2); min-width: 70px; }
.mode-icons { display: flex; gap: 6px; color: #AEB8C3; }
.hero { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; }

/* Rejim plitkalari */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mode-col { display: flex; flex-direction: column; gap: 3px; padding: 3px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); }
.mode-col button { position: relative; height: 64px; border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--ink2); background: rgba(255,255,255,.04); border: 1px solid transparent; }
.mode-col button.on { background: var(--chrome); color: #121820; border-color: rgba(255,255,255,.75); }
.mode-col button.on::after { content: '✓'; position: absolute; right: 5px; top: 4px; width: 14px; height: 14px; border-radius: 7px; background: var(--goldg); color: #2A1C06; font-size: 9px; display: flex; align-items: center; justify-content: center; }
.bet-track { position: relative; height: 30px; margin: 6px 11px 0; }
.bet-track .rail { position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.4); }
.bet-track .fill { position: absolute; left: 0; top: 13px; height: 4px; border-radius: 2px; background: linear-gradient(90deg,#A57B32,#F1DDAE); }
.bet-track .thumb { position: absolute; top: 3px; width: 24px; height: 24px; margin-left: -12px; border-radius: 12px; background: var(--chrome); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.bet-labels { display: grid; grid-template-columns: repeat(6, 1fr); }
.bet-labels button { height: 30px; font-size: 12px; font-weight: 700; color: var(--ink3); }
.bet-labels button.on { color: var(--gold2); }

/* Kartalar */
.card { position: relative; width: var(--cw); height: var(--ch); border-radius: 10px; background: #F7F8FA; color: #12171D; box-shadow: 0 4px 12px rgba(0,0,0,.45); padding: 5px 6px; display: flex; flex-direction: column; justify-content: space-between; font-weight: 800; flex-shrink: 0; }
.card.red { color: var(--red); }
.card .r { font-size: calc(var(--cw) * .3); line-height: 1; }
.card .s { font-size: calc(var(--cw) * .46); line-height: 1; align-self: center; }
.card .r2 { font-size: calc(var(--cw) * .3); line-height: 1; align-self: flex-end; transform: rotate(180deg); }
.card.trumpc { box-shadow: 0 0 0 1.5px rgba(226,194,125,.7), 0 4px 12px rgba(0,0,0,.45); }
.back { width: var(--cw); height: var(--ch); border-radius: 10px; border: 1.5px solid #9AA6B2; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.back-graphite { background: linear-gradient(160deg,#2E3845,#121820); }
.back-gold { background: repeating-linear-gradient(45deg,#A57B32 0 5px,#C99A45 5px 10px); border-color: #F6E2AE; }
.back-emerald { background: radial-gradient(circle at 50% 40%,#2F6E5A,#123326); border-color: #9FD1BC; }
.back-ruby { background: radial-gradient(circle at 50% 40%,#9E2B3A,#3D0E16); border-color: #F2A0A8; }
.back-royal { background: repeating-linear-gradient(-45deg,#1D2B5A 0 6px,#26386F 6px 12px); border-color: var(--gold); }
/* Binafsha naqshli orqa (o'zimizniki): to'q binafsha fon, och romb to'ri va nuqtalar */
.back-violet { background-color: #3B1C6E; background-image: linear-gradient(45deg, rgba(220,200,255,.22) 25%, transparent 25%, transparent 75%, rgba(220,200,255,.22) 75%), linear-gradient(-45deg, rgba(220,200,255,.22) 25%, transparent 25%, transparent 75%, rgba(220,200,255,.22) 75%), radial-gradient(rgba(255,235,255,.55) .8px, transparent 1px); background-size: 10px 10px, 10px 10px, 5px 5px; background-position: 0 0, 0 0, 2.5px 2.5px; border-color: #D9C6FF; }
.back svg { width: 40%; height: 40%; }

/* O'yin stoli — tik ekran */
.table-scr { position: absolute; inset: 0; overflow: hidden; }
.tb-top { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; z-index: 5; }
.info-pill { height: 38px; padding: 0 14px; border-radius: 19px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; white-space: nowrap; background: rgba(20,26,34,.65); border: 1px solid rgba(255,255,255,.18); }
.info-pill .sep { width: 1px; height: 16px; background: rgba(255,255,255,.18); }
.opps { position: absolute; left: 0; right: 0; top: 60px; display: flex; justify-content: space-around; padding: 0 8px; z-index: 4; }
.opp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 76px; }
.hex { width: 58px; height: 66px; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg,#FFFFFF 0%,#C9D0D8 45%,#8E98A4 55%,#E4E8EC 100%); }
.hex.active { background: linear-gradient(180deg,#F6E2AE 0%,#D9B262 50%,#A57B32 100%); }
.hex-in { width: 52px; height: 59px; clip-path: inherit; background: linear-gradient(160deg,#3E4A59,#161C24); display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 800; color: #E7ECF1; background-size: cover; background-position: center; }
.opp-wrap { position: relative; }
.opp-wrap.glow { filter: drop-shadow(0 0 10px rgba(226,194,125,.7)); }
.opp-wrap .badge { position: absolute; right: -10px; top: 4px; }
.timer-ring { position: absolute; left: -6px; top: -6px; pointer-events: none; z-index: 3; overflow: visible; }
.timer-ring .tspark { filter: drop-shadow(0 0 4px #fff); }
.timer-ring.out { animation: ringout .5s ease forwards; }
@keyframes ringout { 0% { opacity: 1; filter: drop-shadow(0 0 14px #FF5A5F) brightness(2); } 100% { opacity: 0; } }
.opp .nm { font-size: 12px; font-weight: 800; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.chip { font-size: 9.5px; font-weight: 800; letter-spacing: .6px; padding: 2px 7px; border-radius: 8px; text-transform: uppercase; white-space: nowrap; color: var(--ink2); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.chip.g { color: #2A1C06; background: var(--goldg); border-color: transparent; }
.chip.w { color: #121820; background: linear-gradient(180deg,#fff,#B7C0CA); border-color: transparent; }
.bubble { position: absolute; top: 18px; left: 50%; z-index: 20; width: 60px; height: 60px; margin-left: -30px; display: flex; align-items: center; justify-content: center; pointer-events: none; animation: emo 2.6s cubic-bezier(.2,1.4,.4,1) forwards; filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)); }
.bubble .spark { position: absolute; inset: 4px; border-radius: 50%; border: 2px solid rgba(241,221,174,.9); animation: ring .7s ease-out forwards; }
@keyframes emo { 0% { transform: translateY(10px) scale(.2); opacity: 0; } 14% { transform: translateY(-30px) scale(1.25); opacity: 1; } 24% { transform: translateY(-26px) scale(1); } 80% { transform: translateY(-40px) scale(1); opacity: 1; } 100% { transform: translateY(-60px) scale(.8); opacity: 0; } }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.say { position: absolute; bottom: 100%; left: -60px; right: -60px; margin: 0 auto; width: max-content; z-index: 21; max-width: 160px; padding: 6px 10px; border-radius: 14px 14px 14px 4px; background: rgba(247,248,250,.95); color: #121820; font-size: 12px; font-weight: 700; white-space: normal; text-align: left; animation: emo 4s ease forwards; pointer-events: none; }
.bot-tag { font-size: 9px; font-weight: 800; letter-spacing: .8px; padding: 1px 5px; border-radius: 6px; background: rgba(143,176,214,.25); color: #BFD3EA; border: 1px solid rgba(143,176,214,.45); }
.lock-dot { position: absolute; right: -4px; top: -6px; font-size: 11px; }
.chat-log { max-height: 40vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px; -webkit-user-select: text; user-select: text; }
.chat-log .msg { padding: 7px 10px; border-radius: 12px; background: rgba(255,255,255,.07); font-size: 14px; align-self: flex-start; max-width: 85%; }
.chat-log .msg.mine { align-self: flex-end; background: rgba(226,194,125,.16); }
.chat-log .msg b { color: var(--gold2); font-size: 12px; display: block; }
.emoji-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.emoji-row button { height: 40px; border-radius: 10px; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; }
.bet-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bet-chips button { height: 38px; border-radius: 12px; font-weight: 800; color: var(--ink2); background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); }
.bet-chips button.on { background: var(--chrome); color: #121820; border-color: rgba(255,255,255,.75); }
.seat { position: relative; }
.deck-zone { position: absolute; left: 10px; z-index: 3; }
.deck-zone .cnt { position: absolute; left: 4px; top: -26px; }
.deck-zone .trumpcard { position: absolute; left: 20px; top: 14px; transform: rotate(90deg); }
.deck-zone .stack { position: relative; transform: translateX(-26px); }
.trump-only { font-size: 34px; opacity: .8; }
.discard { position: absolute; right: -18px; z-index: 2; }
.field-zone { position: absolute; left: 50%; transform: translateX(-50%); display: grid; gap: 14px 10px; justify-items: center; z-index: 6; }
.pair { position: relative; width: calc(var(--cw) + 16px); height: calc(var(--ch) + 22px); }
.pair .card { position: absolute; left: 0; top: 0; }
.pair .card.def { left: 14px; top: 20px; transform: rotate(8deg); box-shadow: 0 6px 14px rgba(0,0,0,.55); }
.pair.target .card:first-child { box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(226,194,125,.6); }
.pair.expose .card { outline: 2px dashed #ff8c8c; outline-offset: 2px; }
.slot-perevod { width: calc(var(--cw) + 4px); height: calc(var(--ch) + 4px); border-radius: 12px; border: 2px dashed rgba(226,194,125,.75); background: rgba(226,194,125,.08); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--gold2); font-size: 9px; font-weight: 800; letter-spacing: .8px; }
.slot-perevod.target { box-shadow: 0 0 22px rgba(226,194,125,.55); background: rgba(226,194,125,.18); }
.hint { position: absolute; left: 50%; transform: translateX(-50%); z-index: 7; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 14px; background: rgba(20,26,34,.7); border: 1px solid var(--line); white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.hand { position: absolute; left: 0; right: 0; z-index: 10; height: calc(var(--ch) * 1.25); }
.hand .card { position: absolute; bottom: 0; transform-origin: 50% 140%; transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; }
.hand .card.playable { box-shadow: 0 0 0 1.5px rgba(226,194,125,.55), -3px 4px 12px rgba(0,0,0,.5); }
.hand .card.sel { box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgba(226,194,125,.55), -3px 10px 20px rgba(0,0,0,.6); }
.hand .card.dim { filter: brightness(.72); }
.bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 12; padding: 10px 10px calc(14px + var(--safe-b)); border-radius: 22px 22px 0 0; background: rgba(18,24,32,.84); border-top: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(20px); display: flex; align-items: center; gap: 8px; }
.bar .act { min-width: 120px; padding: 0 14px; white-space: nowrap; height: 54px; border-radius: 16px; font-size: 17px; }
.me-av { width: 50px; height: 56px; }
.me-av .hex-in { width: 45px; height: 51px; font-size: 17px; }
.boosts { display: flex; gap: 6px; margin-left: auto; }
.boost { position: relative; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.small-btns { display: flex; gap: 6px; }

/* Yotiq ekran — 3D stol */
.land .felt-wrap { position: absolute; inset: 0; perspective: 700px; perspective-origin: 50% 10%; pointer-events: none; }
.land .felt { position: absolute; left: 50%; top: 40%; width: min(calc(var(--W, 100vw) * .78), 680px); height: min(calc(var(--H, 100vh) * .7), 330px); transform: translateX(-50%) rotateX(52deg); transform-origin: 50% 0%; border-radius: 50%; padding: 6px; background: linear-gradient(180deg,#F2F4F6 0%,#AEB7C1 40%,#6E7884 60%,#D9DEE3 100%); box-shadow: 0 0 40px rgba(226,194,125,.25), 0 60px 80px rgba(0,0,0,.85); }
.land .felt-in { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(60% 60% at 50% 40%, rgba(46,56,70,.92), rgba(12,16,22,.98)); box-shadow: inset 0 0 0 2px rgba(226,194,125,.55), inset 0 0 50px rgba(0,0,0,.7); }
.land .light { position: absolute; left: 50%; top: -60px; width: 460px; height: 320px; transform: translateX(-50%); background: radial-gradient(50% 60% at 50% 0%, rgba(255,226,160,.18), transparent 70%); pointer-events: none; }
.dust { position: absolute; border-radius: 50%; background: #F1D592; pointer-events: none; animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); opacity: .2; } }
.land .opps { top: 54px; left: 120px; right: 120px; }
.land .bar { left: 10px; right: auto; bottom: 10px; border-radius: 22px; border: 1px solid var(--line); padding: 8px; }
.land .act-land { position: absolute; right: 12px; bottom: 12px; z-index: 12; display: flex; gap: 8px; align-items: center; }
.land .act-land .act { min-width: 140px; padding: 0 16px; white-space: nowrap; height: 58px; border-radius: 22px; font-size: 17px; }

/* Natija */
.result { position: absolute; inset: 0; z-index: 50; background: rgba(5,7,10,.72); display: flex; align-items: center; justify-content: center; padding: 20px; }
.result .modal { align-items: center; text-align: center; }
.result .big { font-size: 26px; font-weight: 800; }

/* Kutish xonasi */
.seats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.seat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 18px; font-size: 13px; font-weight: 700; }
.seat.empty { border-style: dashed; color: var(--ink3); }

.emoji-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.emoji-grid button { height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); }
.pkg { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; }
.backs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.backs .it { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 18px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border-radius: 16px; }
.stat b { font-size: 22px; }

.opps .say { bottom: auto; top: 74px; border-radius: 4px 14px 14px 14px; }
.seat .say { bottom: auto; top: 70px; }

.rotwrap { position: fixed; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; z-index: 1; }

/* ===== Ko'rinishni kuchaytirish (joylashuv o'zgarmaydi) ===== */
/* Kartalar: yaltiroq qatlam va aniq soya */
.card { background: linear-gradient(160deg, #FFFFFF 0%, #F4F6F8 55%, #E7EAEE 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.25), 0 6px 14px rgba(0,0,0,.45); }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.65) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(0,0,0,.04) 100%); }
.card .r, .card .r2 { letter-spacing: -.5px; }
.hand .card { transition: transform .18s cubic-bezier(.2,1.2,.4,1), box-shadow .18s ease, filter .18s ease; }
.hand .card.playable { box-shadow: 0 0 0 1.5px rgba(226,194,125,.7), 0 0 14px rgba(226,194,125,.25), -3px 6px 14px rgba(0,0,0,.55); }
.hand .card.sel { box-shadow: 0 0 0 3px #F1DDAE, 0 0 26px rgba(226,194,125,.7), -3px 12px 24px rgba(0,0,0,.65); }

/* Karta orqasi va koloda qalinligi */
.back { box-shadow: inset 0 0 0 3px rgba(0,0,0,.25), inset 0 0 0 4px rgba(226,194,125,.35), 0 6px 12px rgba(0,0,0,.5); }
.deck-zone .stack .back { box-shadow: inset 0 0 0 3px rgba(0,0,0,.25), inset 0 0 0 4px rgba(226,194,125,.35), 1px 1px 0 #0B0F14, 2px 2px 0 #2A333E, 3px 3px 0 #0B0F14, 4px 4px 0 #2A333E, 5px 5px 0 #0B0F14, 8px 10px 16px rgba(0,0,0,.6); }

/* Avatarlar: hajm va porlash */
.hex { filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)); }
.hex-in { box-shadow: inset 0 3px 6px rgba(255,255,255,.14), inset 0 -8px 14px rgba(0,0,0,.45); }
.opp-wrap.glow { filter: drop-shadow(0 0 12px rgba(226,194,125,.85)) drop-shadow(0 0 2px rgba(241,221,174,.9)); }
.chip { backdrop-filter: blur(8px); box-shadow: 0 2px 6px rgba(0,0,0,.35); }

/* Asosiy tugma: navbat kelganda oltin porlash, kutishda shaffof oyna */
.act.chrome:not([disabled]) { animation: actglow 1.8s ease-in-out infinite; }
@keyframes actglow { 0%,100% { box-shadow: inset 0 1px 0 #fff, 0 0 0 0 rgba(226,194,125,0), 0 6px 16px rgba(0,0,0,.5); } 50% { box-shadow: inset 0 1px 0 #fff, 0 0 0 3px rgba(226,194,125,.55), 0 0 26px rgba(226,194,125,.45), 0 6px 16px rgba(0,0,0,.5); } }
.act.chrome[disabled] { opacity: 1; background: rgba(255,255,255,.07); color: #AEB8C3; border-color: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); backdrop-filter: blur(14px); }

/* Ma'lumot paneli va ko'rsatma */
.info-pill { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 18px rgba(0,0,0,.45); backdrop-filter: blur(14px); }
.hint { border-color: rgba(226,194,125,.35); box-shadow: 0 0 18px rgba(226,194,125,.12), 0 6px 16px rgba(0,0,0,.4); backdrop-filter: blur(12px); }

/* Pastki panel va bonus tugmalari */
.bar { box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 -10px 30px rgba(0,0,0,.45); }
.land .bar { box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 30px rgba(0,0,0,.6); }
.boost.chrome { box-shadow: inset 0 1px 0 #fff, inset 0 -3px 6px rgba(0,0,0,.18), 0 4px 10px rgba(0,0,0,.45); }

/* 3D stol: yaltiroq xrom chet, chuqur mato, emblema */
.land .felt { background: linear-gradient(180deg, #FFFFFF 0%, #E9EDF1 18%, #AEB7C1 42%, #5E6873 58%, #9AA4AF 76%, #E4E8EC 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 0 50px rgba(226,194,125,.3), 0 0 120px rgba(226,194,125,.12), 0 70px 90px rgba(0,0,0,.9); }
.land .felt-in { position: relative; overflow: hidden; background:
  radial-gradient(55% 55% at 50% 38%, rgba(60,74,92,.95) 0%, rgba(26,33,43,.97) 55%, rgba(10,13,18,.99) 100%);
  box-shadow: inset 0 0 0 2px rgba(226,194,125,.75), inset 0 0 0 9px rgba(0,0,0,.28), inset 0 0 0 10px rgba(226,194,125,.28), inset 0 0 60px rgba(0,0,0,.75); }
.land .felt-in::before { content: ''; position: absolute; inset: 0; border-radius: 50%; opacity: .5; background: repeating-radial-gradient(circle at 50% 40%, rgba(255,255,255,.025) 0 1px, rgba(0,0,0,0) 1px 3px); }
.land .felt-in::after { content: '♠  ♥  DURAK  ♦  ♣'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-weight: 800; letter-spacing: 5px; font-size: 20px; color: rgba(226,194,125,.14); text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.table-scr.land::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(75% 85% at 50% 45%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%); }
.land .light { background: radial-gradient(50% 60% at 50% 0%, rgba(255,226,160,.26), rgba(255,226,160,0) 70%); }
.land .light::after { content: ''; position: absolute; left: 50%; top: 0; width: 70%; height: 100%; transform: translateX(-50%); background: linear-gradient(180deg, rgba(255,236,190,.08), rgba(255,236,190,0)); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); }
.dust { box-shadow: 0 0 6px rgba(241,213,146,.8); }

/* Yutqazdim tugmasi, aloqasiz/zaxira belgilari */
.giveup { height: 44px; padding: 0 14px; border-radius: 22px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #F2D0D2; border-color: rgba(255,120,120,.35); background: rgba(199,51,63,.16); }
.chip.r { color: #FFD7D9; background: rgba(199,51,63,.35); border-color: rgba(255,120,120,.45); }
.res-t { color: #FFB86B; font-weight: 800; }
.red-t { color: #FF7A7F !important; }
.hint.ap { border-color: rgba(143,176,214,.6); background: rgba(36,64,122,.75); color: #E3EEFF; cursor: pointer; z-index: 15; }
.small-btns .icon-btn { font-size: 20px; font-weight: 800; }

/* Yaratish sahifasi — ixcham, bitta ekranga sig'adi */
.create-c { gap: 9px; padding-top: 2px; }
.create-c .cp { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; border-radius: 18px; }
.create-c .bet-chips { grid-template-columns: repeat(6, 1fr); gap: 4px; }
.create-c .bet-chips button { height: 32px; font-size: 11.5px; border-radius: 10px; }
.create-c .field { height: 40px; font-size: 14px; border-radius: 12px; }
.create-c .c-row { gap: 8px; }
.create-c .c-lbl { width: 74px; font-size: 10.5px; letter-spacing: .8px; flex-shrink: 0; }
.create-c .seg { padding: 3px; gap: 3px; border-radius: 13px; }
.create-c .seg button { height: 34px; border-radius: 10px; font-size: 14px; }
.create-c .modes { gap: 6px; }
.create-c .mode-col { padding: 2px; gap: 2px; border-radius: 13px; }
.create-c .mode-col button { height: 50px; gap: 2px; font-size: 10px; border-radius: 11px; }
.create-c .mode-col button svg { width: 19px; height: 19px; }
.create-c .mode-col button.on::after { width: 12px; height: 12px; font-size: 8px; right: 4px; top: 3px; }

/* Surib tashlash va karta tushish effektlari */
.hand .card { touch-action: none; }
.hand .card.dragging { opacity: .22; filter: grayscale(.4); }
.card.floating { box-shadow: 0 0 0 2px rgba(241,221,174,.9), 0 0 26px rgba(226,194,125,.55), 0 22px 40px rgba(0,0,0,.6); will-change: transform; }
.pair.drop-ok .card:first-child, .slot-perevod.drop-ok { box-shadow: 0 0 0 2px rgba(226,194,125,.6), 0 0 16px rgba(226,194,125,.35); }
.pair.drop-near .card:first-child, .slot-perevod.drop-near { box-shadow: 0 0 0 3px #F1DDAE, 0 0 30px rgba(241,221,174,.8); transform: scale(1.06); transition: transform .12s; }

.card.just { animation: landIn .7s cubic-bezier(.22,.8,.3,1); }
.card.def.just { animation: landDef .75s cubic-bezier(.22,.8,.3,1); }
@keyframes landIn { 0% { transform: translateY(-46px) scale(1.28) rotate(-8deg); opacity: 0; box-shadow: 0 0 0 0 rgba(241,221,174,0), 0 30px 40px rgba(0,0,0,.5); } 55% { opacity: 1; box-shadow: 0 0 0 4px rgba(241,221,174,.7), 0 0 30px rgba(241,221,174,.6); } }
@keyframes landDef { 0% { transform: translate(30px, 40px) scale(1.25) rotate(26deg); opacity: 0; } 55% { opacity: 1; box-shadow: 0 0 0 4px rgba(241,221,174,.7), 0 0 30px rgba(241,221,174,.6); } 100% { transform: rotate(8deg); } }

/* ===== Yangi karta yuzi ===== */
.card { padding: 0; display: block; background: linear-gradient(160deg, #FFFCF4 0%, #FBF5E6 60%, #F3EBD6 100%); color: #1B2333; overflow: hidden; }
.card.red { color: #C0303C; }
.card .ix { position: absolute; left: 4%; top: 3%; display: flex; flex-direction: column; align-items: center; line-height: .9; z-index: 2; }
.card .ix b { font-size: calc(var(--cw) * .27); font-weight: 800; letter-spacing: -1px; }
.card .ix i { font-style: normal; font-size: calc(var(--cw) * .2); margin-top: 1px; }
.card .ix.b { left: auto; top: auto; right: 4%; bottom: 3%; transform: rotate(180deg); }
.card .face { position: absolute; left: 22%; right: 22%; top: 9%; bottom: 9%; }
.card .pip { position: absolute; transform: translate(-50%, -50%); font-size: calc(var(--cw) * .2); line-height: 1; }
.card .pip.f { transform: translate(-50%, -50%) rotate(180deg); }
.card .court { position: absolute; inset: 0; width: 100%; height: 100%; }
.card .ace { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: calc(var(--cw) * .5); }
.card .ace-ring { position: absolute; width: calc(var(--cw) * .48); height: calc(var(--cw) * .48); border-radius: 50%; border: 1.5px solid #D4A94F; box-shadow: inset 0 0 0 3px rgba(212,169,79,.18); }
.card .r, .card .s, .card .r2 { display: none; }
/* Qo'ldagi hamma karta bir xil, aniq ko'rinadi */
.hand .card.playable { box-shadow: inset 0 1px 0 #fff, 0 1px 1px rgba(0,0,0,.25), -3px 6px 14px rgba(0,0,0,.5); }
.hand .card.dim { filter: none; }

/* Raqib profillari — kichikroq */
.opp { width: 66px; gap: 2px; }
.hex.opp-av { width: 50px; height: 56px; }
.hex.opp-av .hex-in { width: 45px; height: 50px; font-size: 17px; }
.opp-wrap .badge { min-width: 19px; height: 19px; font-size: 10px; right: -9px; top: 2px; }
.opp .nm { font-size: 11px; max-width: 70px; }
.opp .chip { font-size: 8.5px; padding: 1px 6px; }
.opp .bot-tag { font-size: 8px; padding: 0 4px; }

/* 1 ga 1 o'yinda raqib profili oldingi katta o'lchamda */
.opp.duel { width: 80px; gap: 3px; }
.opp.duel .badge { min-width: 22px; height: 22px; font-size: 11px; right: -10px; top: 4px; }
.opp.duel .nm { font-size: 12px; max-width: 80px; }
.opp.duel .chip { font-size: 9.5px; padding: 2px 7px; }
.opp.duel .bot-tag { font-size: 9px; padding: 1px 5px; }
.opp-wrap .badge { z-index: 4; }

/* Tasdiqlash oynasi */
.ready-box { align-items: stretch; }
.ready-ring { position: relative; width: 96px; height: 96px; margin: 2px auto; }
.ready-ring svg { filter: drop-shadow(0 0 8px rgba(74,222,128,.35)); }
.ready-ring .rdy-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; }
.ready-seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ready-seats .rs { position: relative; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; opacity: .55; }
.ready-seats .rs.ok { opacity: 1; }
.ready-seats .rs span { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ready-seats .rs i { position: absolute; right: 6px; top: -4px; font-style: normal; width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12px; background: rgba(255,255,255,.12); }
.ready-seats .rs.ok i { background: #4ADE80; color: #0C1016; }

/* O'z profilingizga bosib emoji yuborish */
.me-tap { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.me-tap:active { transform: scale(.94); }
.me-tap .emo-hint { position: absolute; right: -4px; bottom: -2px; z-index: 5; width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #F4F6F8, #B9C2CC); box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.emo-pop { position: absolute; bottom: calc(100% + 14px); left: 50%; margin-left: -116px; width: 232px; z-index: 60; padding: 8px; border-radius: 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: rgba(18,24,32,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 18px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12); transform-origin: 50% 100%; }
.emo-pop.fresh { animation: popin .26s cubic-bezier(.2,1.5,.4,1); }
.emo-pop.fresh button { animation: emoin .3s cubic-bezier(.2,1.6,.4,1) backwards; }
.emo-pop button { height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); transition: transform .12s; }
.emo-pop button:active { transform: scale(1.25); background: rgba(255,255,255,.14); }
@keyframes popin { from { transform: scale(.4) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes emoin { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
.bubble .spark.s2 { animation-delay: .18s; border-color: rgba(255,255,255,.7); opacity: 0; }
.bubble .pt { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 3px; background: #F1DDAE; box-shadow: 0 0 8px #F1DDAE; opacity: 0;
  animation: burst .75s ease-out forwards; }
.bubble .pt:nth-child(odd) { background: #fff; width: 4px; height: 4px; margin: -2px; }
@keyframes burst { 0% { transform: rotate(var(--a)) translateY(0) scale(1.2); opacity: 1; } 100% { transform: rotate(var(--a)) translateY(-46px) scale(.3); opacity: 0; } }

/* ===== Kutish xonasi — stol ko'rinishida ===== */
.nav-badge { position: absolute; top: 4px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #FF5A5F; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px rgba(22,28,36,.9); }
.room-scr .opps { top: 68px; }
.room-scr .tb-top .info-pill { gap: 8px; }
.wait-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.empty-hex { position: relative; width: 58px; height: 58px; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 2.5px dashed rgba(221,227,234,.55); background: rgba(255,255,255,.03); animation: slotPulse 2.4s ease-in-out infinite; }
.empty-hex.can:active { transform: scale(.94); }
.empty-hex .ic { animation: hgFlip 2.4s ease-in-out infinite; }
.plus-bot { position: absolute; right: -8px; bottom: -8px; width: 24px; height: 24px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #F4F6F8, #B9C2CC); box-shadow: 0 2px 6px rgba(0,0,0,.5); }
@keyframes slotPulse { 50% { border-color: rgba(241,221,174,.75); background: rgba(241,221,174,.05); } }
@keyframes hgFlip { 0%, 70% { transform: rotate(0); } 85%, 100% { transform: rotate(180deg); } }
.seat-n { font: italic 800 20px/1 Georgia, 'Times New Roman', serif; color: #E8ECF1; text-shadow: 0 2px 6px rgba(0,0,0,.6); margin-top: 2px; }
.me-n { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); font-size: 16px; }
.rd-ok { position: absolute; z-index: 6; left: 50%; top: -14px; transform: translateX(-30%); font-size: 30px; font-weight: 900; color: #4ADE80; text-shadow: 0 2px 0 #1B7A3D, 0 0 12px rgba(74,222,128,.6); animation: popin .3s cubic-bezier(.2,1.6,.4,1); pointer-events: none; }
.ready-center { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; width: min(320px, 86%); }
.ready-center .ready-ring { width: 104px; height: 104px; }
.wait-dots { display: flex; gap: 8px; margin-bottom: 6px; }
.wait-dots i { width: 10px; height: 10px; border-radius: 5px; background: #F1DDAE; animation: wdot 1.2s ease-in-out infinite; }
.wait-dots i:nth-child(2) { animation-delay: .2s; } .wait-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes wdot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-6px); } }
.invite-pill { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(120px + var(--safe-b)); z-index: 6; height: 54px; padding: 0 22px; border-radius: 27px; display: flex; align-items: center; gap: 14px; white-space: nowrap;
  font: italic 700 19px Georgia, serif; color: #F1DDAE; border: 1.5px solid rgba(241,221,174,.55); }
.invite-pill:active { transform: translateX(-50%) scale(.97); }
.room-me { display: flex; flex-direction: column; margin-left: auto; text-align: right; font-size: 13px; font-weight: 800; min-width: 0; }
.room-me b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.ready-btn.chrome { animation: readyGlow 1s ease-in-out infinite; }
@keyframes readyGlow { 50% { box-shadow: 0 0 0 4px rgba(74,222,128,.35), 0 0 22px rgba(74,222,128,.55); } }
.gift-badge { position: absolute; left: -10px; bottom: -6px; z-index: 5; width: 26px; height: 26px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: rgba(18,24,32,.9); border: 1px solid rgba(241,221,174,.5); animation: popin .35s cubic-bezier(.2,1.6,.4,1); }
.gift-fly { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.opp-wrap[data-a] { cursor: pointer; }

/* ===== Do'stlar ===== */
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; }
.fr-av { position: relative; flex: none; }
.dot { position: absolute; right: -2px; bottom: 2px; width: 12px; height: 12px; border-radius: 6px; background: #5B6672; border: 2px solid #161C24; }
.dot.on { background: #4ADE80; } .dot.play { background: #F5C542; }
.unread { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #FF5A5F; color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.mini { height: 38px; min-width: 38px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.pill-btn.small { height: 44px; font-size: 14px; padding: 0 12px; }
.pill-btn.danger { color: #FF8A8E; }
.dm-log { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.dm-msg { align-self: flex-start; max-width: 78%; padding: 8px 12px 6px; border-radius: 18px 18px 18px 6px; background: rgba(255,255,255,.08); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; word-break: break-word; }
.dm-msg.mine { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: linear-gradient(180deg, rgba(241,221,174,.22), rgba(241,221,174,.12)); border-color: rgba(241,221,174,.35); }
.dm-msg img { max-width: 220px; max-height: 260px; border-radius: 12px; display: block; cursor: zoom-in; }
.dm-msg small { align-self: flex-end; font-size: 10px; opacity: .55; }
.dm-input { display: flex; gap: 8px; align-items: center; padding: 8px 12px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: rgba(18,24,32,.85); }
.notice { position: fixed; z-index: 120; left: 10px; right: 10px; top: calc(10px + var(--safe-t, 0px)); padding: 10px 12px; border-radius: 20px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700;
  background: rgba(22,28,36,.95); box-shadow: 0 14px 34px rgba(0,0,0,.55); animation: noticeIn .35s cubic-bezier(.2,1.3,.4,1); }
@keyframes noticeIn { from { transform: translateY(-120%); } to { transform: none; } }
.prof { align-items: center; }
.prof h2 { text-align: center; }
.prof-av { position: relative; transform: scale(1.35); margin: 10px 0 4px; }
.prof-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.prof-stats div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 14px; background: rgba(255,255,255,.05); }
.prof-stats b { font-size: 17px; } .prof-stats span { font-size: 11px; opacity: .65; text-align: center; }
.prof .pill-btn, .prof .row { width: 100%; }
.gift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gift-grid button { padding: 8px 2px 6px; border-radius: 16px; background: rgba(255,255,255,.05); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; transition: transform .12s; }
.gift-grid button:active { transform: scale(1.12); }
.gift-grid button.poor { opacity: .4; }
.inv-list { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; }
.img-view { padding: 10px; } .img-view img { max-width: 100%; max-height: 100%; border-radius: 12px; }

.nav-badge { right: 18px; }
.notice.in-game { top: auto; bottom: 40%; }
.me-n { left: -12px; top: -8px; bottom: auto; transform: none; font-size: 16px; }
/* Yaratish sahifasi: bo'limlar orasi biroz ochiqroq (baribir bitta ekranga sig'adi) */
.create-c { gap: 16px; padding-top: 6px; }
.create-c .cp { padding: 12px 14px; gap: 10px; }
.create-c .modes { gap: 8px; }

/* Pastki panel (tik ekran): avatar o'rtada va kattaroq, tugmalar ixcham */
.table-scr:not(.land) .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 6px 10px calc(2px + var(--safe-b)); }
.table-scr:not(.land) .bar > .opp-wrap { grid-column: 2; justify-self: center; margin-top: -22px; }
.table-scr:not(.land) .bar .act { justify-self: start; min-width: 0; width: 100%; max-width: 128px; height: 44px; padding: 0 10px; border-radius: 14px; font-size: 14px; font-weight: 800; letter-spacing: .2px; gap: 5px; overflow: hidden; text-overflow: ellipsis; }
.table-scr:not(.land) .bar .act .ic { width: 17px; height: 17px; flex: none; }
.table-scr:not(.land) .bar .act[disabled] { font-size: 13px; font-weight: 700; color: #9AA6B2; }
.table-scr:not(.land) .bar .boosts, .table-scr:not(.land) .bar .room-me { justify-self: end; margin-left: 0; }
.table-scr:not(.land) .bar .boosts { gap: 5px; }
.table-scr:not(.land) .bar .boost { width: 38px; height: 38px; border-radius: 12px; }
.table-scr:not(.land) .bar .boost .ic { width: 17px; height: 17px; }
.table-scr:not(.land) .bar .price { min-width: 16px; height: 16px; font-size: 9px; right: -4px; top: -5px; }
.table-scr:not(.land) .bar .me-av { width: 62px; height: 70px; }
.table-scr:not(.land) .bar .me-av .hex-in { width: 56px; height: 64px; font-size: 21px; }

/* Raqib qo'lidagi kartalar (orqasi) */
.opp-fan { position: relative; margin: -22px auto -4px; z-index: 1; pointer-events: none; }
.opp-fan .back { border-radius: 3px; border-width: 1px; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.55); }
.opp-fan .back svg { width: 60%; height: 60%; }
.opp > .opp-wrap { z-index: 2; }

/* 3D tugmasi va rejim almashish effekti */
.btn3d { width: auto; padding: 0 10px; gap: 4px; display: inline-flex; align-items: center; }
.btn3d b { font-size: 13px; font-weight: 900; color: #121820; letter-spacing: .5px; }
.table-scr.land-in .felt-wrap { animation: tableIn .5s cubic-bezier(.2,1,.3,1); }
.table-scr.land-in, .table-scr.flat-in { animation: fadeIn .35s ease-out; }
@keyframes tableIn { from { transform: perspective(900px) rotateX(0deg) scale(.9); opacity: .2; } }
@keyframes fadeIn { from { opacity: 0; } }

/* Katta tushish zonasi: kartalar o'lchami o'zgarmaydi, faqat zona kattalashadi */
.drop-area { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  width: max(calc(100% + 90px), calc(var(--cw) * 4.4)); height: max(calc(100% + 60px), calc(var(--ch) * 2.4));
  border-radius: 26px; opacity: 0; transition: opacity .15s, background .15s, border-color .15s; border: 2px dashed rgba(226,194,125,.55); }
.field-zone.drop-ok .drop-area { opacity: 1; background: rgba(226,194,125,.04); }
.field-zone.drop-near .drop-area { opacity: 1; border-style: solid; border-color: rgba(241,221,174,.95); background: rgba(226,194,125,.10); box-shadow: 0 0 30px rgba(241,221,174,.25), inset 0 0 30px rgba(241,221,174,.12); }

/* O'yin paytida yozishma oynasi (o'yin to'xtamaydi) */
.dm-sheet { position: absolute; z-index: 40; left: 10px; right: 10px; top: 62px; height: min(46%, 380px); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden;
  background: rgba(16,21,28,.94); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 18px 44px rgba(0,0,0,.65); animation: sheetIn .25s cubic-bezier(.2,1.2,.4,1); }
.dm-sheet.land { left: auto; right: 12px; top: 66px; width: min(46%, 380px); height: calc(100% - 150px); }
@keyframes sheetIn { from { transform: translateY(-14px) scale(.97); opacity: 0; } }
.sheet-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.sheet-top .icon-btn { width: 36px; height: 36px; border-radius: 12px; }
.sheet-body { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.sheet-body .fr-row { padding: 6px 10px; border-radius: 14px; }
.dm-sheet .dm-log { padding: 8px 10px; gap: 6px; }
.dm-sheet .dm-msg { font-size: 14px; padding: 6px 10px 4px; }
.dm-sheet .dm-msg img { max-width: 160px; max-height: 160px; }
.dm-sheet .dm-input { padding: 6px 8px; gap: 6px; }
.dm-sheet .dm-input .field { height: 40px; font-size: 15px; }
.dm-sheet .dm-input .icon-btn { width: 40px; height: 40px; }
.sheet-turn { font-size: 11px; font-weight: 900; color: #121820; background: #4ADE80; padding: 3px 8px; border-radius: 10px; animation: readyGlow 1s ease-in-out infinite; white-space: nowrap; }
.hex.sm { transform: scale(.8); }

.dm-mini { position: absolute; z-index: 40; left: 50%; transform: translateX(-50%); top: 62px; width: min(340px, calc(100% - 20px)); height: 46px; border-radius: 23px; padding: 0 6px 0 14px;
  display: flex; align-items: center; gap: 8px; font-size: 13px; background: rgba(16,21,28,.92); border: 1px solid rgba(241,221,174,.35); box-shadow: 0 10px 26px rgba(0,0,0,.55); animation: sheetIn .2s ease-out; cursor: pointer; }
.dm-mini b { max-width: 90px; flex: none; }
.dm-mini .icon-btn { width: 34px; height: 34px; border-radius: 17px; flex: none; }
.dm-mini.land { left: auto; right: 12px; transform: none; top: 66px; }

.hand .card.pending { opacity: 0; pointer-events: none; }

/* Tepadagi pul/tanga — bosiladigan */
.money.tap { cursor: pointer; position: relative; padding-right: 22px; }
.money.tap:active { transform: scale(.96); }
.money.tap .plus { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; border-radius: 8px; background: var(--goldg, #E2C27D); color: #2A1C06; font-size: 12px; font-weight: 900; line-height: 15px; text-align: center; }
.buy-modal { gap: 12px; max-height: 86vh; overflow-y: auto; }
.buy-list { display: flex; flex-direction: column; gap: 8px; }
.terms { border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 10px 12px; font-size: 13px; }
.terms summary { font-weight: 800; cursor: pointer; }
.terms ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; opacity: .85; line-height: 1.35; }

.confirm-box { align-items: stretch; }
.confirm-art { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 17px; }

/* Do'stlarni taklif qilish — ixcham shriftlar */
.inv-modal { gap: 10px; padding: 16px; }
.inv-modal h2 { font-size: 17px; }
.inv-row { padding: 6px 10px; gap: 8px; border-radius: 14px; }
.inv-row b { font-size: 14px; font-weight: 700; }
.inv-row .mini { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.mini.inv-sent { background: rgba(74,222,128,.12); color: #4ADE80; border: 1px solid rgba(74,222,128,.5); font-weight: 800; opacity: 1; cursor: default; }
.mini.inv-sent .inv-cd { display: inline-block; min-width: 14px; margin-left: 2px; font-variant-numeric: tabular-nums; opacity: .75; }
.inv-modal .pill-btn.small { height: 40px; font-size: 13.5px; }
.invite-pill { height: 44px; padding: 0 18px; font-size: 15px; gap: 10px; }
.invite-pill .ic { width: 18px; height: 18px; }

/* Stol: qatorlar markazdan (flex) */
.field-zone { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; column-gap: 10px; row-gap: 14px; }

/* Almashtirish */
.ex-bal { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.05); font-size: 14px; }
.ex-bal span { display: inline-flex; align-items: center; gap: 6px; }
.ex-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ex-chips button { height: 34px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 12.5px; font-weight: 800; }
.ex-get { text-align: center; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.room-item .bet { display: inline-flex; align-items: center; gap: 4px; }

/* Kesuvchi karta ostidagini ko'proq yopadi (faqat burchagi ko'rinadi) */
.pair { width: calc(var(--cw) + 10px); height: calc(var(--ch) + 14px); }
.pair .card.def { left: 9px; top: 13px; transform: rotate(6deg); }
/* Qoidalar tepada */
.rules-strip { position: absolute; left: 50%; transform: translateX(-50%); top: 56px; z-index: 5; display: flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 10.5px; font-weight: 700; color: #AEB8C3; padding: 3px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.rules-strip i { font-style: normal; opacity: .5; }
.rules-strip.land { top: 52px; }
.table-scr:not(.land):not(.room-scr) .opps { top: 58px; }   /* namuna: raqiblar tepa panel ostida darhol */
/* Ushlangan shuler belgisi */
.caught-tag { position: absolute; left: -10px; top: -6px; z-index: 6; width: 24px; height: 24px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(40,14,14,.92); border: 1.5px solid #FF5A5F; box-shadow: 0 0 10px rgba(255,90,95,.5); animation: popin .3s cubic-bezier(.2,1.6,.4,1); }
/* O'yin paytidagi chat va yozishma — ixchamroq */
.dm-sheet { top: 84px; height: min(36%, 300px); border-radius: 18px; }
.dm-sheet.land { height: calc(100% - 170px); width: min(40%, 330px); }
.dm-sheet .sheet-top { padding: 6px 8px; font-size: 13.5px; }
.dm-sheet .sheet-top .icon-btn { width: 30px; height: 30px; border-radius: 10px; }
.dm-sheet .dm-msg { font-size: 13px; }
.dm-sheet .dm-input .field { height: 36px; font-size: 14px; }
.dm-sheet .dm-input .icon-btn { width: 36px; height: 36px; }
.dm-mini { top: 84px; height: 40px; font-size: 12.5px; }
.chat-modal { padding: 14px; gap: 10px; }
.chat-modal h2 { font-size: 16px; }
.chat-modal .chat-log { max-height: 26vh; font-size: 13px; }
.chat-modal .field { height: 40px; font-size: 14px; }
.chat-modal .pill-btn { height: 42px; font-size: 14px; }
.chat-modal .emoji-row button svg { width: 26px; height: 26px; }
/* Tik ekran: yuqori tugmalar ixcham, hammasi sig'adi */
.table-scr:not(.land) .tb-top { gap: 5px; left: 8px; right: 8px; }
.table-scr:not(.land) .tb-top .icon-btn { width: 40px; height: 40px; border-radius: 13px; }
.table-scr:not(.land) .tb-top .small-btns { gap: 5px; }
.table-scr:not(.land) .tb-top .btn3d { width: auto; padding: 0 8px; }
.table-scr:not(.land) .tb-top .info-pill { padding: 0 10px; gap: 6px; height: 40px; font-size: 13px; }
.land .opps { top: 74px; }
.rules-strip.land { top: 50px; }
.opp-fan { margin: -20px auto 1px; }
.opp .nm { position: relative; z-index: 3; text-shadow: 0 1px 3px rgba(0,0,0,.8); }

/* ===== Profil markazi (egasi namunasi bo'yicha tugmalar to'ri) ===== */
#app.scaled .scroll, #app.scaled > .page { zoom: var(--fscale, 1); }
.prof-hub { gap: 12px; }
.prof-head { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; }
.ph-av { position: relative; flex: none; }
.lvl-badge { position: absolute; right: -6px; bottom: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--goldg, #E2C27D); color: #2A1C06; font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.ph-name { font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); margin-top: 6px; overflow: hidden; }
.xp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #E2C27D, #F1DDAE); border-radius: 3px; }
.ph-bal { display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.ph-bal .bal { position: relative; display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 22px 0 8px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid rgba(226,194,125,.35); font-size: 13px; }
.ph-bal .bal .plus { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; border-radius: 8px; background: var(--goldg, #E2C27D); color: #2A1C06; font-size: 12px; font-weight: 900; line-height: 15px; text-align: center; }
.tile-big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 110px; border-radius: 22px; }
.tile-big b { font-size: 21px; } .tile-big span { font-size: 12.5px; opacity: .7; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { position: relative; height: 104px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.tile b { font-size: 15px; font-weight: 800; }
.tile:active { transform: scale(.97); }
.tile-x { position: absolute; right: 10px; top: 8px; font-size: 13px; font-weight: 800; }
.prem { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 4px; border-radius: 8px; background: linear-gradient(180deg, #F6D77F, #D49A1E); color: #2A1C06; font-size: 10px; font-weight: 900; vertical-align: 1px; box-shadow: 0 0 6px rgba(246,215,127,.6); }
.prem.big { width: 34px; height: 34px; border-radius: 17px; font-size: 20px; margin: 0; }
.sub-top { margin-bottom: 4px; }
.lvl-chip { font-size: 10px; font-weight: 900; padding: 1px 6px; border-radius: 8px; background: rgba(226,194,125,.2); color: #F1DDAE; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.th { position: relative; height: 76px; border-radius: 16px; border: 2px solid rgba(255,255,255,.1); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-size: 13px; }
.th.on { border-color: #F1DDAE; box-shadow: 0 0 14px rgba(241,221,174,.45); }
.th i { position: absolute; top: 10px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 9px; }
.notif-opt { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; text-align: left; }
.notif-opt.on { border-color: rgba(241,221,174,.6); box-shadow: 0 0 0 1px rgba(241,221,174,.4); }
.radio { width: 18px; height: 18px; border-radius: 9px; border: 2px solid #8D99A6; flex: none; }
.radio.on { border-color: #F1DDAE; background: radial-gradient(circle, #F1DDAE 45%, transparent 50%); }
.notif-sample { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(240,242,245,.95); color: #1A1F26; font-size: 13px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.notif-sample b { font-size: 13.5px; } .notif-sample small { opacity: .5; align-self: flex-start; }
.ns-ic { width: 34px; height: 34px; border-radius: 9px; background: #121820; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ach { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; opacity: .45; filter: grayscale(1); }
.ach.done { opacity: 1; filter: none; border-color: rgba(241,221,174,.5); }
.ach span { font-size: 26px; } .ach b { font-size: 13px; }
.rank { width: 28px; text-align: center; font-size: 16px; }
.me-row { border-color: rgba(241,221,174,.6); }
.rules-text { font-size: 14px; line-height: 1.5; }
.pkg.poor { opacity: .45; }
.ex-chips button.on { background: var(--chrome); color: #121820; }
.pw-field { text-align: center; font-size: 28px; letter-spacing: 12px; height: 60px; }
/* Yaratish: yopiq o'yin va Yaratish tugmasi pastda */
.create-bottom { position: sticky; bottom: 0; margin-top: 4px; padding: 10px 12px; border-radius: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 3; }
.create-go { height: 50px; font-size: 17px; }
/* Do'stlar o'yini turi */
.stake-box { position: absolute; left: 12px; right: 12px; bottom: calc(176px + var(--safe-b)); z-index: 7; padding: 10px; border-radius: 18px; display: flex; flex-direction: column; gap: 8px; }
.stake-box .seg button { font-size: 12.5px; height: 36px; }
.stake-show { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(180px + var(--safe-b)); z-index: 6; padding: 8px 14px; border-radius: 14px; text-align: center; font-weight: 800; font-size: 14px; }
.stake-show .dare, .dare-strip { font-weight: 600; font-size: 12.5px; color: #F1DDAE; }
.dare-strip { position: absolute; left: 50%; transform: translateX(-50%); top: 78px; z-index: 5; padding: 2px 10px; border-radius: 10px; background: rgba(226,194,125,.12); white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.dare-strip.land { top: 72px; }
.dare-res { text-align: center; padding: 10px; border-radius: 14px; background: rgba(226,194,125,.1); border: 1px solid rgba(226,194,125,.35); }

/* Do'stlar chati: stiker, tanga, sovg'a, bir martalik rasm, tahrirlash */
.dm-msg { cursor: default; }
.dm-msg.bare { background: none; border: none; box-shadow: none; padding: 2px 4px; }
.dm-msg .edited { font-style: normal; opacity: .75; margin-right: 6px; }
.dm-sticker, .dm-gift { display: flex; align-items: center; gap: 8px; }
.dm-coins { display: inline-flex; align-items: center; gap: 6px; }
.once-box { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px dashed rgba(241,221,174,.5); font-size: 13.5px; color: inherit; }
.once-box.open { background: rgba(241,221,174,.14); font-weight: 800; animation: readyGlow 1.6s ease-in-out infinite; }
.once-box.dim { opacity: .55; border-style: solid; }
.once-box small { opacity: .7; font-size: 11px; }
.once-note { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 14px; background: rgba(0,0,0,.6); font-size: 13px; z-index: 2; }
.img-view img { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.stick-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 6px 8px; background: rgba(18,24,32,.95); border-top: 1px solid var(--line); max-height: 120px; overflow-y: auto; }
.stick-grid button { display: flex; align-items: center; justify-content: center; border-radius: 10px; padding: 2px; }
.stick-grid button:active { background: rgba(255,255,255,.12); }
.plus-menu { position: absolute; left: 10px; bottom: 74px; z-index: 30; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 16px; background: rgba(22,28,36,.97); }
.plus-menu button { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.plus-menu button:active { background: rgba(255,255,255,.1); }
.dm-input { gap: 6px; }
.dm-input .icon-btn { width: 40px; height: 40px; border-radius: 13px; flex: none; }

.ref-link { margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.3); font-family: ui-monospace, monospace; font-size: 12.5px; word-break: break-all; user-select: all; }

/* Kirish / birinchi ishga tushirish */
.gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; overflow-y: auto; max-width: 440px; margin: 0 auto; }
.gate h1 { margin: 0; font-size: 24px; text-align: center; }
.gate .field, .gate .pill-btn { width: 100%; }
.gate a.pill-btn { text-decoration: none; color: inherit; }
.gate-logo { font-size: 60px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); } .gate-logo.big { font-size: 76px; }
.gate-err { color: #FF8A8E; font-size: 13px; text-align: center; }
.ob-dots { display: flex; gap: 7px; } .ob-dots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.2); } .ob-dots i.on { width: 22px; background: #F1DDAE; transition: width .2s; }
.ob-dots.sm { margin: 6px 0 4px; } .ob-dots.sm i { width: 6px; height: 6px; } .ob-dots.sm i.on { width: 16px; }
.ob-g { padding: 12px 8px; border-radius: 18px; display: flex; flex-direction: column; gap: 6px; align-items: center; font-weight: 700; border: 2px solid transparent; }
.ob-g.on { border-color: #F1DDAE; box-shadow: 0 0 14px rgba(241,221,174,.35); }
.cred-box { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.cred-box > div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid rgba(226,194,125,.4); }
.cred-box span { color: #9AA6B2; font-size: 12px; width: 60px; } .cred-box b { flex: 1; font: 700 19px ui-monospace, monospace; letter-spacing: 1px; user-select: all; }
.cred-warn { padding: 10px 12px; border-radius: 14px; background: rgba(255,90,95,.12); border: 1px solid rgba(255,90,95,.4); font-size: 13px; line-height: 1.4; }
.cred-bot { padding: 10px 12px; border-radius: 14px; background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.4); font-size: 13px; line-height: 1.4; }
/* Maslahat oynasi (shishali) */
.hint-layer { position: fixed; inset: 0; z-index: 300; backdrop-filter: blur(2.5px); -webkit-backdrop-filter: blur(2.5px); }
.hint-spot { position: absolute; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(8,12,18,.7), 0 0 0 2px #F1DDAE, 0 0 22px rgba(241,221,174,.55); animation: hintPulse 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes hintPulse { 50% { box-shadow: 0 0 0 9999px rgba(8,12,18,.7), 0 0 0 4px #F1DDAE, 0 0 34px rgba(241,221,174,.8); } }
.hint-card { position: absolute; left: 14px; right: 14px; max-width: 420px; margin: 0 auto; padding: 14px 16px; border-radius: 20px; display: flex; flex-direction: column; gap: 8px; background: rgba(22,28,36,.62); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 16px 40px rgba(0,0,0,.5); font-size: 14px; line-height: 1.4; animation: popin .3s cubic-bezier(.2,1.4,.4,1); }
.hint-card b { font-size: 16px; color: #F1DDAE; } .hint-card .pill-btn { height: 44px; }
.acct { gap: 10px; }

/* Qoidalar — ikonkalar */
.rules-strip { gap: 4px; padding: 3px 8px; }
.rules-strip .ri { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 3px; border-radius: 8px; background: rgba(255,255,255,.07); font-size: 11.5px; font-weight: 800; color: #DDE3EA; }
.rules-strip .ri.stake { font-size: 14px; }
/* Kesuvchi karta ostidagi kartani to'liq yopadi (ko'rinmaydi) */
.pair { width: calc(var(--cw) + 2px); height: calc(var(--ch) + 2px); }
.pair .card.def { left: 1px; top: 1px; transform: none; box-shadow: 0 3px 10px rgba(0,0,0,.55); }

/* Topshiriqlar */
.task-card { padding: 14px; border-radius: 20px; display: flex; flex-direction: column; gap: 12px; }
.task-card.off { opacity: .6; }
.task-reward { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px; border-radius: 14px; background: rgba(226,194,125,.12); border: 1px solid rgba(226,194,125,.4); color: #F1DDAE; flex: none; }
.task-reward b { font-size: 16px; } .task-reward small { font-size: 10.5px; opacity: .8; }
.task-done { text-align: center; font-weight: 800; color: #4ADE80; } .task-done small { display: block; color: #9AA6B2; font-weight: 600; font-size: 12px; }
.task-claim { animation: readyGlow 1.2s ease-in-out infinite; }

.welcome-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 20px; text-align: left; border: 1px solid rgba(241,221,174,.5); background: linear-gradient(180deg, rgba(241,221,174,.14), rgba(241,221,174,.04)); }
.w-line { display: flex; justify-content: space-between; font-size: 13px; }
/* Kesilgan karta: ostidagisining burchagi (raqami va masti) ko'rinadi, ustidagi to'liq */
.pair { width: calc(var(--cw) + 14px); height: calc(var(--ch) + 18px); }
.pair .card.def { left: 14px; top: 18px; transform: rotate(4deg); box-shadow: 0 6px 14px rgba(0,0,0,.55); }

/* Kesilgan karta ko'rinishi (sozlamada tanlanadi) */
.table-scr.cv-hidden { --dx: 1px; --dy: 1px; --rot: 0deg; }
.table-scr.cv-corner { --dx: calc(var(--cw) * .22); --dy: calc(var(--ch) * .12); --rot: 9deg; }   /* namuna: kesuvchi karta o'ngga-pastga siljigan, ~9° burilgan */
.table-scr.cv-half { --dx: 10px; --dy: calc(var(--ch) * .5); --rot: 2deg; }
.table-scr .pair { width: calc(var(--cw) + var(--dx, 14px)); height: calc(var(--ch) + var(--dy, 18px)); }
.table-scr .pair .card.def { left: var(--dx, 14px); top: var(--dy, 18px); transform: rotate(var(--rot, 4deg)); }
.cv-demo { --cw: 52px; --ch: 74px; height: 110px; display: flex; align-items: center; justify-content: center; }
.cv-demo.cv-hidden { --dx: 1px; --dy: 1px; --rot: 0deg; } .cv-demo.cv-corner { --dx: 14px; --dy: 18px; --rot: 4deg; } .cv-demo.cv-half { --dx: 10px; --dy: calc(var(--ch) * .5); --rot: 2deg; }
.cv-demo .pair { position: relative; width: calc(var(--cw) + var(--dx)); height: calc(var(--ch) + var(--dy)); }
.cv-demo .card { position: absolute; width: var(--cw); height: var(--ch); border-radius: 8px; background: #FBF7EC; color: #B4262F; font-size: 14px; display: flex; flex-direction: column; padding: 4px 6px; left: 0; top: 0; box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.cv-demo .card.def { left: var(--dx); top: var(--dy); transform: rotate(var(--rot)); }
/* Profil menyusi — ixchamroq */
.tiles { gap: 8px; } .tile { height: 84px; gap: 6px; border-radius: 17px; } .tile b { font-size: 13.5px; } .tile .ic { width: 26px; height: 26px; }
.tile-big { height: 88px; border-radius: 19px; } .tile-big b { font-size: 18px; } .tile-big span { font-size: 12px; }
.prof-hub { gap: 10px; } .prof-head { padding: 10px 12px; } .ph-name { font-size: 16.5px; }
.ph-bal .bal { height: 26px; font-size: 12.5px; } .tile-x { font-size: 12px; right: 9px; top: 7px; }

.logout-btn { background: rgba(200,40,50,.14); color: #FF6B6B; border: 1px solid rgba(255,90,90,.45); border-radius: 999px; padding: 6px 16px; font-size: 12.5px; font-weight: 600; }
.logout-btn:active { transform: scale(.96); }
.logout-btn { display: inline-flex; align-items: center; gap: 6px; }

/* Qoidalar — chap chetda kichik vertikal ustun (tik ekran) */
.table-scr:not(.land) .rules-strip { left: 6px; transform: none; top: 76px; flex-direction: column; gap: 3px; padding: 4px 3px; border-radius: 12px; background: rgba(12,16,22,.55); z-index: 6; }
.table-scr:not(.land) .rules-strip .ri { min-width: 22px; height: 22px; border-radius: 7px; font-size: 10px; }
.table-scr:not(.land) .rules-strip .ri .ic { width: 14px; height: 14px; }
.table-scr:not(.land) .dare-strip { top: 112px; }
/* Ostidagi kartaning yozuvlari ustidagi karta orqali ko'rinib qolmasin */
.pair .card:first-child { z-index: 1; }
.pair .card.def { z-index: 2; }

/* Logo (bosh sahifa tepasi) */
.brand-wrap { min-width: 0; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand b { font-size: 24px; font-weight: 900; letter-spacing: 2.4px; background: linear-gradient(180deg, #FFF1C7, #D9A02A); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 2px 10px rgba(226,194,125,.25); }
.pbadge { vertical-align: -3px; filter: drop-shadow(0 0 4px rgba(255,255,255,.25)); }
.prem { background: none; box-shadow: none; width: auto; height: auto; margin-left: 4px; }
.prem.big { margin: 0; }
/* Do'kon: yopiq menyular */
.acc { display: flex; flex-direction: column; gap: 8px; }
.acc-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; font-size: 15px; }
.acc-h .chev { transition: transform .2s; opacity: .7; }
.acc.open .acc-h .chev { transform: rotate(180deg); }
.acc-b { display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 6px; }
.shop-gifts button { position: relative; }
.gown, .gift-own span { font-style: normal; font-weight: 800; }
.shop-gifts .gown { position: absolute; top: 2px; right: 4px; font-size: 11px; background: rgba(226,194,125,.9); color: #1A1204; border-radius: 8px; padding: 0 5px; }
.gift-own { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; background: rgba(255,255,255,.05); font-size: 12px; }

.home-top { gap: 6px; padding-left: 12px; padding-right: 12px; }
.home-top .brand { gap: 6px; } .home-top .brand b { font-size: 21px; letter-spacing: 1.6px; }
.home-top .brand svg { width: 36px; height: 36px; }
.home-top .money.tap { padding: 0 24px 0 8px; font-size: 12.5px; gap: 3px; } .home-top .money small { display: none; } .home-top .money .plus { margin-left: 2px; }
.home-top .money { flex-shrink: 0; white-space: nowrap; } .home-top .brand-wrap { flex: 1 1 0; overflow: hidden; }

/* Bozor */
.mk-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; }
.mk-art { width: 56px; height: 64px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mk-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mk-it { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 16px; background: rgba(255,255,255,.05); font-size: 12px; }
.mini { height: 28px; padding: 0 10px; border-radius: 10px; font-size: 12px; font-weight: 800; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chips button { padding: 6px 12px; border-radius: 14px; background: rgba(255,255,255,.07); font-size: 12.5px; font-weight: 700; } .chips button.on { background: var(--goldg, #E2C27D); color: #1A1204; }
.uemo { display: inline-block; }
/* Bonus (sodiqlik) karta orqalari */
.back-bonus1 { background: radial-gradient(circle at 50% 40%,#5B8CFF,#14275E); border-color: #BFD3FF; box-shadow: 0 0 10px rgba(120,160,255,.5); }
.back-bonus2 { background: conic-gradient(from 30deg,#7B3FD1,#D14FA8,#F2B92F,#2FB1D1,#7B3FD1); border-color: #F1DDAE; box-shadow: 0 0 12px rgba(209,79,168,.5); }
.back-bonus3 { background: linear-gradient(135deg,#FFE9A8,#D49A1E 40%,#FFF3C4 55%,#B9770C); border-color: #FFF3C4; box-shadow: 0 0 14px rgba(246,215,127,.8); animation: shimmerB 2.4s linear infinite; background-size: 220% 220%; }
@keyframes shimmerB { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
/* Premium effektlar: sovg'a va emoji */
.gift-fly.prem-fx { filter: drop-shadow(0 0 12px rgba(246,215,127,.95)) drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.gift-fly .gsp { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3px; border-radius: 50%; background: #FFE9A8; box-shadow: 0 0 8px #F6D77F; animation: gspk 1.1s ease-out infinite; transform: rotate(var(--a)) translateX(14px); }
@keyframes gspk { to { transform: rotate(var(--a)) translateX(46px); opacity: 0; } }
.bubble.prem-fx { filter: drop-shadow(0 0 10px rgba(246,215,127,.9)); }

.gleft { font-size: 10.5px; opacity: .75; font-weight: 700; }

/* Karta effektlari — sekinroq va silliq */
@keyframes landIn { 0% { transform: translateY(-34px) scale(1.2) rotate(-6deg); opacity: 0; box-shadow: 0 0 0 0 rgba(241,221,174,0), 0 30px 40px rgba(0,0,0,.4); } 40% { opacity: 1; box-shadow: 0 0 0 4px rgba(241,221,174,.65), 0 0 34px rgba(241,221,174,.55); } 100% { box-shadow: 0 0 0 0 rgba(241,221,174,0); } }
@keyframes landDef { 0% { transform: translate(26px, 34px) scale(1.18) rotate(20deg); opacity: 0; } 40% { opacity: 1; box-shadow: 0 0 0 4px rgba(241,221,174,.65), 0 0 34px rgba(241,221,174,.55); } 100% { transform: rotate(var(--rot, 4deg)); box-shadow: 0 0 0 0 rgba(241,221,174,0); } }
.hand .card { transition: transform .24s cubic-bezier(.25,.9,.3,1), box-shadow .24s ease, filter .24s ease; }

/* Videoga moslash: karta tushganda qo'shimcha sakrash yo'q, uchishning o'zi silliq (JS) */
.card.just, .card.def.just { animation: none; }

/* Bonuslar — bitta tugma, bosilsa yoyiladi */
.bgroup { position: relative; display: flex; align-items: center; }
.bgroup .bitems { position: absolute; right: calc(100% + 6px); bottom: 0; display: flex; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(16,21,28,.92); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px);
  opacity: 0; transform: translateX(14px) scale(.9); transform-origin: right center; pointer-events: none; transition: opacity .2s ease, transform .25s cubic-bezier(.22,.8,.3,1); }
.bgroup.open .bitems { opacity: 1; transform: none; pointer-events: auto; }
.bgroup .bmain.on { box-shadow: 0 0 0 2px #F1DDAE, 0 0 16px rgba(241,221,174,.5); }
.land .bgroup .bitems { right: auto; left: 0; bottom: calc(100% + 6px); flex-direction: column; transform-origin: bottom center; transform: translateY(14px) scale(.9); }
.land .bgroup.open .bitems { transform: none; }
/* Chiqqan kartalar ro'yxati */
.tr-modal { max-width: 420px; }
.tr-grid { display: flex; flex-direction: column; gap: 5px; }
.tr-row { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.tr-c { display: inline-flex; align-items: center; gap: 1px; min-width: 34px; height: 30px; padding: 0 4px; justify-content: center; border-radius: 7px; background: #FBF7EC; color: #12171D; font-weight: 800; font-size: 13px; }
.tr-c.red { color: #C22B36; } .tr-c i { font-style: normal; font-size: 12px; }
.tr-c.live { opacity: .38; animation: trBlink 1.8s ease-in-out infinite; }
@keyframes trBlink { 50% { opacity: .2; } }
.tr-intro { background: rgba(226,194,125,.1); border: 1px solid rgba(226,194,125,.35); border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.45; display: flex; flex-direction: column; gap: 8px; }
.tr-leg { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 12px; color: #AEB8C3; }
.tr-row { flex-wrap: nowrap; gap: 3px; } .tr-c { min-width: 0; width: 34px; padding: 0; font-size: 12px; height: 28px; } .tr-c i { font-size: 10px; }
@media (max-width: 380px) { .tr-c { width: 30px; font-size: 11px; } }

button.brand { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; } button.brand:active { transform: scale(.97); }

/* Shaxsiy profil */
.me-btn { margin-top: 4px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #F1DDAE; background: rgba(226,194,125,.12); border: 1px solid rgba(226,194,125,.35); }
.me-head { display: flex; align-items: center; gap: 12px; }
.me-stats { grid-template-columns: repeat(3, 1fr) !important; display: grid !important; gap: 8px; }
.stat-row { flex-wrap: wrap; }
.tobot { display: flex; flex-direction: column; gap: 10px; }
.tx-list { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; }
.tx-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.tx-row:last-child { border-bottom: 0; }
.tx-row small { display: block; font-size: 11px; }
.tx-ic { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); flex-shrink: 0; }
.tx-row .neg { color: #FF8A8A; } .tx-row .pos { color: #7BE0A6; }
.warn-box { font-size: 12.5px; line-height: 1.4; padding: 8px 10px; border-radius: 12px; background: rgba(255,170,60,.1); border: 1px solid rgba(255,170,60,.4); color: #FFD7A0; text-align: center; }
.me-bal { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 8px; } .me-bal .stat b { font-size: 17px; }
/* Kolleksiya */
.coll-set { display: flex; flex-direction: column; gap: 10px; }
.cc-grid { display: flex; flex-direction: column; gap: 4px; }
.cc-row { display: flex; gap: 3px; justify-content: center; }
.cc { position: relative; width: 32px; height: 44px; border-radius: 6px; background: #FBF7EC; color: #12171D; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; line-height: 1; box-shadow: 0 2px 4px rgba(0,0,0,.4); border: 2px solid var(--setc, #C99A45); }
.cc.red { color: #C22B36; } .cc b { font-weight: 800; } .cc i { font-style: normal; font-size: 12px; }
.cc.miss { opacity: .22; filter: grayscale(1); }
.cc em { position: absolute; top: -6px; right: -6px; font-style: normal; font-size: 9px; font-weight: 800; background: #E2C27D; color: #1A1204; border-radius: 6px; padding: 1px 3px; }
.set-royal { --setc: #2B4C9A; } .set-neon { --setc: #B44CFF; } .set-jade { --setc: #1F9D6B; }
.back-set_royal { background: repeating-linear-gradient(45deg,#1B2E66 0 6px,#24407F 6px 12px); border-color: #F1DDAE; }
.back-set_neon { background: radial-gradient(circle at 30% 30%,#E05CFF,#3A1066 60%,#12062A); border-color: #7FE8FF; box-shadow: 0 0 10px rgba(180,76,255,.45); }
.back-set_jade { background: linear-gradient(135deg,#0F4D36,#1F9D6B 50%,#0B3324); border-color: #BFF2DA; }
.got-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.got-c { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: gotIn .6s cubic-bezier(.22,.8,.3,1) backwards; }
.got-c .cc { width: 64px; height: 90px; font-size: 20px; } .got-c .cc i { font-size: 22px; }
@keyframes gotIn { from { transform: rotateY(90deg) scale(.6); opacity: 0; } }
.q-step { width: 28px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(226,194,125,.15); color: #F1DDAE; font-weight: 800; flex-shrink: 0; }
.streak { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; font-size: 13px; }
.pack-art { position: relative; display: inline-flex; } .pack-art b { position: absolute; right: -6px; bottom: -4px; font-size: 10px; background: #E2C27D; color: #1A1204; border-radius: 6px; padding: 1px 4px; }
.gl { display: inline-flex; font-style: normal; vertical-align: middle; }
.emo-pack { display: flex; align-items: center; gap: 10px; } .emo-prev { display: inline-flex; gap: 2px; } .emo-prev svg { overflow: visible; }
/* Emoji paneli: 5×5, stol o'rtasida (tik va 3D rejimda bir xil, ekrandan chiqmaydi) */
.emo-pop { grid-template-columns: repeat(5, 1fr); width: 262px; margin-left: -131px; }
.emo-pop button { height: 44px; }
.table-scr .emo-pop { position: absolute; left: 50%; top: 50%; bottom: auto; margin: 0; transform: translate(-50%, -50%); z-index: 62; max-height: calc(100% - 24px); overflow-y: auto; }
.table-scr .emo-pop.fresh { animation: emoCenter .26s cubic-bezier(.2,1.4,.4,1); }
@keyframes emoCenter { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }
.emo-back { position: absolute; inset: 0; z-index: 61; background: rgba(0,0,0,.25); }
.land .emo-pop { width: 250px; } .land .emo-pop button { height: 40px; }
/* Suriladigan chat oynasi */
.sheet-top[data-drag] { cursor: grab; touch-action: none; position: relative; }
.drag-dots { position: absolute; left: 50%; top: 3px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: rgba(255,255,255,.25); }
.dm-mini { touch-action: none; cursor: grab; }
.dm-mini-ic { position: absolute; z-index: 40; right: 12px; top: 90px; width: 50px; height: 50px; border-radius: 25px; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.dm-mini-ic .unread { position: absolute; top: -4px; right: -4px; }

/* ===== Kolleksiya yuzlari (o'yinda) ===== */
.card.face-royal { background: linear-gradient(160deg, #FBFBFF 0%, #EEF1FB 60%, #DCE3F5 100%); box-shadow: inset 0 0 0 2px #2B4C9A, inset 0 0 0 4px #F4F6FC, inset 0 0 0 5px #C9A24A, 0 6px 14px rgba(0,0,0,.45); color: #1C2E66; }
.card.face-royal.red { color: #B0182E; }
.card.face-royal .court rect { stroke: #2B4C9A; }
.card.face-neon { background: radial-gradient(120% 100% at 50% 0%, #2A1446 0%, #140A24 70%); box-shadow: inset 0 0 0 1.5px #B44CFF, 0 0 10px rgba(180,76,255,.55), 0 6px 14px rgba(0,0,0,.5); color: #7FF3FF; text-shadow: 0 0 6px rgba(127,243,255,.8); }
.card.face-neon.red { color: #FF5FC8; text-shadow: 0 0 6px rgba(255,95,200,.85); }
.card.face-neon .court { filter: invert(.92) hue-rotate(200deg) saturate(2.2); }
.card.face-neon .ace-ring { border-color: currentColor; box-shadow: 0 0 8px currentColor; }
.card.face-jade { background: linear-gradient(160deg, #F4FBF6 0%, #E1F3E8 60%, #CBE8D6 100%); box-shadow: inset 0 0 0 2px #1F9D6B, inset 0 0 0 3.5px #E9F7EE, inset 0 0 0 4.5px #D4AF37, 0 6px 14px rgba(0,0,0,.45); color: #0E4D36; }
.card.face-jade.red { color: #B8322E; }
.card.face-jade .court rect { stroke: #1F9D6B; }
.face-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 10px; }
.face-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 2px solid transparent; border-radius: 10px; padding: 4px; color: inherit; font: inherit; cursor: pointer; }
.face-opt.on { border-color: var(--accent, #E2C27D); }
.face-opt small { font-size: 11px; }
.card.mini-face { --cw: 34px; --ch: 48px; width: 34px; height: 48px; border-radius: 6px; }
.card.mini-face .ix { font-size: 13px; }

/* ===== Sovg'a effektlari ===== */
.gfx-layer { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; overflow: hidden; animation: gfxDim 3.4s ease forwards; }
@keyframes gfxDim { 0% { background: rgba(0,0,0,0); } 12%, 75% { background: rgba(0,0,0,.55); } 100% { background: rgba(0,0,0,0); } }
.gfx-glow { position: absolute; left: 50%; top: 42%; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gc) 55%, transparent) 0%, transparent 70%); animation: gfxGlow 2.8s ease forwards; }
@keyframes gfxGlow { 0% { transform: scale(.2); opacity: 0; } 30% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.gfx-rays { position: absolute; left: 50%; top: 42%; width: 520px; height: 520px; margin: -260px 0 0 -260px; background: repeating-conic-gradient(rgba(255,217,90,.32) 0 9deg, transparent 9deg 22deg); border-radius: 50%; mask: radial-gradient(circle, #000 20%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); animation: gfxRays 3s linear forwards; }
@keyframes gfxRays { 0% { transform: rotate(0) scale(.3); opacity: 0; } 20% { opacity: 1; } 100% { transform: rotate(140deg) scale(1.15); opacity: 0; } }
.gfx-big { position: absolute; left: 50%; top: 42%; width: 132px; height: 132px; margin: -66px 0 0 -66px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); }
.gfx-big svg, .gfx-big img { width: 100%; height: 100%; }
.gfx-cap { position: absolute; left: 50%; top: calc(42% + 84px); transform: translateX(-50%); background: rgba(0,0,0,.55); backdrop-filter: blur(6px); color: #fff; font-weight: 800; padding: 6px 14px; border-radius: 99px; white-space: nowrap; animation: gfxCap 2.8s ease forwards; }
@keyframes gfxCap { 0%, 15% { opacity: 0; transform: translate(-50%, 10px); } 30%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.gfx-p { position: fixed; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; }

/* ===== Ilova ichidagi admin panel ===== */
.adm-layer { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; background: #0C1016; }
.adm-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 8px; border-bottom: 1px solid #2A3340; color: #EEF2F6; }
.adm-top b { text-align: center; font-size: 16px; }
.adm-frame { flex: 1; width: 100%; border: 0; background: #0C1016; }

/* Bot oynasida qoidalar ikonka bilan */
.ico-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ico-seg button { height: 44px; display: grid; place-items: center; }

/* Telegram / Google bilan kirish */
.pill-btn.tg-btn { background: linear-gradient(180deg, #37AEE2, #1E96C8); color: #fff; border: none; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; }
/* Telegram va Google tugmalari bir xil o'lchamda; «Hisobim bor» biroz kichikroq */
.gate .pill-btn.tg-btn, .gate .pill-btn.g-btn { height: 48px; font-size: 15.5px; border-radius: 16px; }
.pill-btn.g-btn { position: relative; overflow: hidden; background: #fff; color: #1F2329; border: none; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; cursor: pointer; }
.g-overlay { position: absolute; inset: 0; opacity: .011; display: flex; align-items: center; justify-content: center; transform: scale(1.6); }
.gate .pill-btn.sm-btn { height: 42px; font-size: 14px; border-radius: 14px; }

/* Telegram Mini App butun ekran: tepadagi tizim va Telegram tugmalari uchun joy */
html.tg-app #app { top: var(--tg-top, 0px); bottom: var(--tg-bot, 0px); }

/* Stol (tik ekran): avatarlar to'rtburchak (yumaloq burchak), qo'l kartalari panel ostidan chiqib turadi */
.table-scr:not(.land) .hex, .room-scr .hex { clip-path: inset(0 round 14px); border-radius: 14px; width: 62px; height: 62px; padding: 3px; box-sizing: border-box; }
.table-scr:not(.land) .hex-in, .room-scr .hex-in { clip-path: inset(0 round 11px); border-radius: 11px; width: 100%; height: 100%; }
.table-scr:not(.land) .hex.active { background: linear-gradient(180deg,#7CF29A,#22B04B); }
.table-scr:not(.land) .opp-wrap.glow { filter: drop-shadow(0 0 10px rgba(80,230,120,.75)); }
.table-scr:not(.land) .hex.opp-av { width: 58px; height: 58px; }
.table-scr:not(.land) .me-av { width: 60px; height: 60px; }
.table-scr:not(.land) .bar { background: rgba(18,24,32,.97); }

/* Ism avatar ramkasi ichida, pastda kichik; raqib kartalari avatar ORTIDA (pastidan chiqib turadi) */
.nm-in { display: none; }
.table-scr:not(.land) .nm-in { display: block; position: absolute; left: 3px; right: 3px; bottom: 3px; z-index: 3; padding: 2px 3px 3px; border-radius: 0 0 11px 11px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72) 45%); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1.1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.table-scr:not(.land) .opp > .nm { display: none; }
.table-scr:not(.land) .me-tap { position: relative; }
.table-scr:not(.land) .opp-wrap { z-index: 2; }
.table-scr:not(.land) .opp-fan { position: relative; z-index: 1; margin: -30px auto 0; }
/* Koloda: chap chetda qiya turadi, kozir uning ostidan qiyshayib chiqadi */
.table-scr:not(.land) .deck-zone .stack { transform: translateX(-34px) rotate(8deg); }
.table-scr:not(.land) .deck-zone .trumpcard { left: 6px; top: 18px; transform: rotate(-76deg); transform-origin: 50% 50%; z-index: -1; }

/* ===== Standart karta (haqiqiy kartaga o'xshash) ===== */
.card.real { padding: 0; overflow: hidden; background: linear-gradient(170deg, #FFFFFF 0%, #FAFAFA 70%, #F1F2F4 100%); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18), 0 1px 1px rgba(0,0,0,.25), 0 6px 14px rgba(0,0,0,.45); }
.card.real .real-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.card.real.trumpc { box-shadow: 0 0 0 1.5px rgba(226,194,125,.75), 0 4px 12px rgba(0,0,0,.45); }
.dz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.dz-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; text-align: center; min-width: 0; }
.dz-tile.on { box-shadow: inset 0 0 0 2px var(--accent, #E2C27D); }
.dz-tile.locked .card { filter: grayscale(.85) brightness(.75); }
.dz-tile b { font-size: 12.5px; max-width: 100%; }
.dz-tile small { font-size: 11px; min-height: 13px; }
.dz-tile .mini { font-size: 12px; padding: 5px 10px; }
.dz-on { font-size: 12px; font-weight: 800; color: var(--accent, #E2C27D); padding: 5px 0; }
.card.dz-prev { --cw: 52px; --ch: 75px; width: 52px; height: 75px; border-radius: 6px; }

/* Taymer ramka ustida; rol rangi: tushuvchi — ko'k, himoyachi — qizil */
.table-scr:not(.land) .timer-ring.sq { left: 0; top: 0; }
.table-scr:not(.land) .opp-wrap.glow.r-att { filter: drop-shadow(0 0 10px rgba(59,219,110,.75)); }
.table-scr:not(.land) .opp-wrap.glow.r-def { filter: drop-shadow(0 0 10px rgba(255,75,85,.75)); }
.table-scr:not(.land) .opp-wrap.glow .hex.active { background: #1C232C; }
.modal-x { position: sticky; top: 0; float: right; align-self: flex-end; margin-left: auto; margin: -6px -6px 0 0; z-index: 5; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(30,36,44,.92); color: #E8EDF2; font-size: 18px; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.it-sell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.it-sell .mini, .it .mini { font-size: 11.5px; padding: 4px 8px; }

/* Bot belgisi: yozuv o'rniga avatar burchagida kichik robot */
.bot-mark { position: absolute; left: -5px; top: -5px; z-index: 4; width: 18px; height: 18px; border-radius: 6px; background: #5B6573; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
/* Bot bilan o'yin oynasi: bitta ekranga sig'adi, katta «Boshlash» */
.bot-modal { max-height: calc(100dvh - 24px - var(--tg-top, 0px) - var(--tg-bot, 0px)); overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.bot-modal h2 { font-size: 18px; margin: 0; }
.bot-modal h2 .ic { width: 22px; height: 22px; }
.bot-modal .lbl { margin: 4px 0 0; font-size: 11px; }
.bot-modal .buy-list { gap: 6px; }
.bot-modal .buy-list .hero { padding: 7px 12px; min-height: 0; border-radius: 14px; }
.bot-modal .buy-list .hero b { font-size: 14px; }
.bot-modal .buy-list .hero .muted { font-size: 11px !important; line-height: 1.25; }
.bot-modal .seg button { height: 34px; font-size: 13px; }
.bot-modal .ico-seg button { height: 36px; }
.bot-modal .ico-seg button .ic { width: 20px; height: 20px; }
.bot-modal .ico-grid { gap: 6px; }
.bot-modal .modal-x { width: 32px; height: 32px; font-size: 15px; margin: -4px -4px -30px 0; }
.bot-modal .bot-go { height: 58px; font-size: 19px; font-weight: 900; margin-top: 8px; border-radius: 18px; flex-shrink: 0; }

/* ===== Stoldagi profil ko'rinishi (egasi namunasi): qalin ramka, kulrang siluet, kartalar avatar ortida chap-pastda ===== */
.table-scr:not(.land) .hex { padding: 5px; border-radius: 15px; clip-path: inset(0 round 15px); background: linear-gradient(180deg, #F4F6F8 0%, #C9CFD6 55%, #9AA3AD 100%); box-shadow: 0 3px 10px rgba(0,0,0,.45); }
.table-scr:not(.land) .hex-in { border-radius: 10px; clip-path: inset(0 round 10px); background: linear-gradient(180deg, #DADFE4, #B9C0C8); }
.table-scr:not(.land) .hex-in:not([style*="background-image"]) svg { filter: grayscale(1) brightness(.95) contrast(.9); }
.table-scr:not(.land) .opp-wrap.glow .hex.active { background: #12171D; }
.table-scr:not(.land) .nm-in { left: 5px; right: 5px; bottom: 5px; border-radius: 0 0 10px 10px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55) 30%, rgba(0,0,0,.78)); font-size: 12px; font-weight: 800; padding: 3px 4px 2px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.table-scr:not(.land) .opp-fan { margin: -40px 0 0 -30px; transform: scale(1.45) rotate(-6deg); transform-origin: 50% 0; }
.table-scr:not(.land) .opp-wrap > .badge { top: -6px; right: -8px; transform: scale(.85); }

/* Bildirishnoma ekran o'rtasida (Telegram tepasidagi tugmalar va balanslar ustiga chiqmaydi) */
.toast { top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: min(86vw, 360px); padding: 14px 20px; border-radius: 18px; font-size: 15px; line-height: 1.35; background: rgba(16,21,28,.96); box-shadow: 0 12px 40px rgba(0,0,0,.6); z-index: 2147483001; animation: toastMid .22s ease; pointer-events: none; }
@keyframes toastMid { from { opacity: 0; transform: translate(-50%, -50%) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* Internet holati pastda: qizil — aloqa yo'q, yashil — qayta ulandi */
.offline { left: 50%; right: auto; bottom: calc(96px + var(--tg-bot, 0px) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: max-content; max-width: 92vw; padding: 10px 18px; border-radius: 16px; background: #C62832; color: #fff; font-size: 14px; box-shadow: 0 8px 26px rgba(0,0,0,.55); z-index: 2147483000; animation: netIn .25s ease; }
.offline.ok { background: #1F9D55; }
@keyframes netIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Emoji oynasi: har doim bir joyda (stol pastida, qo'l ustida), oq varaq, chap-yuqorida qizil yopish tugmali «quloqcha» */
.table-scr .emo-pop.sheet { position: absolute; left: 50%; top: auto; bottom: calc(var(--hand-h, 150px) + 40px); transform: translateX(-50%); margin: 0 !important; width: min(330px, 84vw); max-height: none; overflow: visible; padding: 12px 12px 14px; border-radius: 0 26px 26px 26px; background: #FFFFFF; border: none; box-shadow: 0 14px 40px rgba(0,0,0,.55); display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; z-index: 62; }
.table-scr .emo-pop.sheet.fresh { animation: emoSheet .24s cubic-bezier(.2,1.3,.4,1); }
@keyframes emoSheet { from { opacity: 0; transform: translate(-50%, 18px) scale(.94); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.emo-pop.sheet .emo-tab { position: absolute; left: 0; top: -40px; width: 52%; height: 44px; background: #FFFFFF; border-radius: 22px 22px 0 0; display: flex; align-items: center; padding-left: 12px; }
.emo-pop.sheet .emo-tab::after { content: ''; position: absolute; right: -18px; bottom: 4px; width: 18px; height: 18px; background: radial-gradient(circle at 100% 0, transparent 17px, #FFFFFF 18px); }
.emo-pop.sheet .emo-x { width: 30px; height: 30px; border-radius: 50%; border: none; background: #F0454F; position: relative; cursor: pointer; box-shadow: 0 2px 5px rgba(240,69,79,.4); }
.emo-pop.sheet .emo-x::before, .emo-pop.sheet .emo-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 15px; height: 2.4px; border-radius: 2px; background: #fff; transform: translate(-50%, -50%) rotate(45deg); }
.emo-pop.sheet .emo-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.emo-pop.sheet button:not(.emo-x) { height: 56px; background: none; border-radius: 14px; }
.emo-pop.sheet button:not(.emo-x) svg { width: 48px; height: 48px; }
.emo-pop.sheet button:not(.emo-x):active { background: rgba(0,0,0,.06); transform: scale(1.18); }
.land .emo-pop.sheet { width: 300px; bottom: 90px; }
.land .emo-pop.sheet button:not(.emo-x) { height: 44px; } .land .emo-pop.sheet button:not(.emo-x) svg { width: 38px; height: 38px; }

/* Raqib kartalari: avatar ichidan tashqariga ochiladigan yelpig'ich (aylanish nuqtasi — avatar markazi) */
.table-scr:not(.land) .opp-fan.radial { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: 0; transform: none; z-index: -1; pointer-events: none; }
.table-scr:not(.land) .opp-fan.radial .back { border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 2px 6px rgba(0,0,0,.6); }
.table-scr:not(.land) .opp { position: relative; }
.table-scr:not(.land) .opp > .opp-wrap { z-index: 2; }

/* Admin tanlaydigan tugma shakli */
html.btn-round .pill-btn, html.btn-round .icon-btn, html.btn-round .mini { border-radius: 999px !important; }
html.btn-square .pill-btn, html.btn-square .icon-btn, html.btn-square .mini, html.btn-square .seg, html.btn-square .seg button { border-radius: 8px !important; }

/* ===== Kolleksiya: haqiqiy mini kartalar, pachka oynasi, karta ochish (aylanib ochiladi) ===== */
.cc2 { position: relative; display: inline-flex; }
.card.cc-c { --cw: 32px; --ch: 46px; width: 32px; height: 46px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.cc2.miss .card { filter: grayscale(1) brightness(.75); opacity: .4; }
.cc2 em { position: absolute; top: -5px; right: -5px; z-index: 2; font-style: normal; font-size: 9px; font-weight: 800; background: #E2C27D; color: #1A1204; border-radius: 6px; padding: 1px 3px; }
.cc-row { gap: 3px; flex-wrap: wrap; }
.pack-modal { max-height: calc(100dvh - 24px - var(--tg-top, 0px) - var(--tg-bot, 0px)); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.pk-head { display: flex; gap: 12px; align-items: center; padding-right: 30px; }
.card.pk-big { --cw: 52px; --ch: 75px; width: 52px; height: 75px; border-radius: 6px; flex-shrink: 0; }
.pk-grid { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.pk-row { display: flex; gap: 3px; }
.pk-done { text-align: center; font-weight: 800; color: #4ADE80; }
.pk-open { height: 54px; font-size: 17px; font-weight: 900; }
.got-c { animation: none; }
.got-c .flip { position: relative; width: 84px; height: 120px; perspective: 600px; }
.got-c .flip > div { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 8px; overflow: hidden; animation: flipB 1s cubic-bezier(.3,.7,.2,1) var(--d, 0ms) both; }
.got-c .flip > .fl-f { animation-name: flipF; }
.got-c .back { border-radius: 8px; }
.card.got-card { --cw: 84px; --ch: 120px; width: 84px; height: 120px; border-radius: 8px; }
@keyframes flipB { 0% { transform: translateY(40px) scale(.6) rotateY(0); opacity: 0; } 30% { transform: translateY(0) scale(1.05) rotateY(0); opacity: 1; } 55% { transform: rotateY(0); } 100% { transform: rotateY(180deg); } }
@keyframes flipF { 0%, 55% { transform: rotateY(-180deg); } 85% { transform: rotateY(12deg) scale(1.08); } 100% { transform: rotateY(0) scale(1); } }

/* Stoldagi kartalar «tirik»: juda sekin, sezilar-sezilmas tebranadi (har biri o'z ritmida) */
@keyframes cardIdle { 0% { translate: 0 0; rotate: 0deg; } 35% { translate: .6px -1.6px; rotate: .7deg; } 70% { translate: -.5px .8px; rotate: -.5deg; } 100% { translate: 0 0; rotate: 0deg; } }
/* Namuna (video) bo'yicha: stoldagi kartalar qimirlamaydi; har karta o'z kichik qiyshayishi bilan yotadi */
.field-zone .pair > .card:not(.def) { transform: rotate(var(--t, 0deg)); }


/* Raqiblar ismi profil tagida TO'LIQ yoziladi (qisqartirilmaydi, kerak bo'lsa 2 qatorga o'tadi) */
.table-scr:not(.land) .opp .nm-in { display: none; }
.table-scr .opp > .nm, .table-scr:not(.land) .opp > .nm { display: block; max-width: 104px; margin-top: 3px; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; word-break: break-word; text-align: center; font-size: 11.5px; line-height: 1.15; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.table-scr .opp.duel > .nm { max-width: 130px; font-size: 12.5px; }

/* Login (Telegram ID) raqami bosiladigan havola bo'lib qolmasin */
.card-panel b { -webkit-touch-callout: none; }
a[href^="tel:"] { pointer-events: none; color: inherit; text-decoration: none; }
/* Klaviatura ochilganda oyna titramasin: maydon tanlanganda oyna tepaga mahkamlanadi */
.modal-bg:has(input:focus, textarea:focus) { align-items: flex-start; padding-top: calc(var(--tg-top, 0px) + 12px); overflow-y: auto; }
/* Kolleksiya → emoji paketlari plitkalari */
.emo-prev.big { gap: 0; height: 40px; align-items: center; } .emo-prev.big svg { width: 34px; height: 34px; margin: 0 -3px; }
.dz-tile.locked .emo-prev { filter: grayscale(.7) brightness(.8); }
.hub-lbl { margin: 4px 2px -4px; font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; opacity: .65; }

/* Stol silliqligi: uchayotgan karta alohida GPU qatlamida; stolda shisha xiralashtirish (backdrop blur) o'chiriladi —
   u har kadrda orqa fonni qayta chizdirib, telefonlarda qotishga sabab bo'lardi. Ko'rinish qoramtir shaffof fon bilan saqlanadi. */
.card.in-flight { will-change: transform, opacity; z-index: 40; box-shadow: 0 14px 24px rgba(0,0,0,.42); }
.table-scr .glass, .table-scr .bar, .table-scr .chip, .table-scr .info-pill, .table-scr .act.chrome[disabled], .table-scr .bgroup .bitems { backdrop-filter: none; -webkit-backdrop-filter: none; }
.table-scr .bar { background: rgba(18,24,32,.94); }
.table-scr .glass { background: rgba(22,28,36,.82); }
.table-scr .card { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* Kartalar tebranishi faqat qo'l bilan tegilmaydigan paytda — animatsiya oson, lekin soya o'zgarmaydi */
.field-zone .card.in-flight { animation: none; }
.field-zone .card.ghost { opacity: 0 !important; animation: none; }
/* O'yinchi qo'ygan rasm stolda to'liq ko'rinsin (yuqoridagi «background» qisqartmasi rasm o'lchamini buzib, rasmning bir burchagi chiqardi) */
.hex-in[style*="background-image"] { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
/* Android ilovasini yuklab olish bo'limi (profil tepasida; iPhone/iPad va APK ichida ko'rinmaydi) */
.apk-banner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; text-decoration: none; color: inherit; border-color: rgba(226,194,125,.35); }
.apk-banner b { display: block; font-size: 14.5px; } .apk-banner small { display: block; font-size: 11.5px; margin-top: 2px; }
.apk-banner .apk-dl { font-size: 20px; }
/* Shpion belgisi (ushlangan shuler) — profilga «yopishadi» va o'yin oxirigacha turadi */
.caught-tag.spy { width: 28px; height: 28px; border-radius: 14px; left: -12px; top: -8px; background: radial-gradient(circle at 50% 40%, #FFE9C2, #E7B868); border: 1.5px solid #C8323C; box-shadow: 0 0 0 2px rgba(200,50,60,.25), 0 2px 8px rgba(0,0,0,.45); animation: none; }
.caught-tag.spy.stick { animation: spyStick 1.5s cubic-bezier(.2,.9,.3,1) both; }
@keyframes spyStick {
  0% { transform: translate(60px, 80px) scale(3.2) rotate(-25deg); opacity: 0; }
  25% { transform: translate(30px, 40px) scale(2.4) rotate(-12deg); opacity: 1; }
  60% { transform: translate(0, 0) scale(.85) rotate(8deg); box-shadow: 0 0 0 10px rgba(200,50,60,.35), 0 0 22px rgba(255,90,95,.8); }
  75% { transform: scale(1.12) rotate(-4deg); }
  100% { transform: scale(1) rotate(0); box-shadow: 0 0 0 2px rgba(200,50,60,.25), 0 2px 8px rgba(0,0,0,.45); }
}

/* Tik rejim: bonus tugmalari avatar ustiga chiqmasin — yashil/bolt tugmasi tepasida ustun bo'lib yoyiladi (yotiq rejim o'zgarmaydi) */
.table-scr:not(.land) .bgroup .bitems { right: 0; left: auto; bottom: calc(100% + 8px); flex-direction: column; transform-origin: bottom center; transform: translateY(14px) scale(.9); z-index: 30; }
.table-scr:not(.land) .bgroup.open .bitems { transform: none; }
/* O'yin yakuni: natija summalari (modal o'rniga) */
.res-amt { position: absolute; left: 50%; top: calc(100% + 3px); transform: translateX(-50%); z-index: 7; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 10px; font-size: 12px; font-weight: 900; white-space: nowrap; background: rgba(10,14,20,.82); color: #DDE3EA; box-shadow: 0 2px 8px rgba(0,0,0,.45); pointer-events: none; animation: resIn .45s cubic-bezier(.2,1.5,.4,1) both; }
.res-amt.pos { color: #3DDC84; border: 1px solid rgba(61,220,132,.55); }
.res-amt.neg { color: #FF5A5F; border: 1px solid rgba(255,90,95,.55); }
.res-amt.mine { top: auto; bottom: calc(100% + 6px); font-size: 14px; }
.res-amt.res-fly { font-size: 20px; padding: 4px 12px; animation: none; transform: translate(-50%, -50%); }
@keyframes resIn { from { opacity: 0; transform: translateX(-50%) scale(.6); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.res-title { position: absolute; left: 50%; top: 40%; z-index: 40; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 22px; border-radius: 18px; background: rgba(10,14,20,.55); backdrop-filter: blur(4px); color: #fff; text-align: center; pointer-events: none; animation: resTitle 3.6s ease both; }
.res-title b { font-size: 22px; font-weight: 900; }
.res-title.won b { color: #E2C27D; } .res-title.lost b { color: #FF7A7E; }
.res-title span { font-size: 13px; opacity: .8; }
@keyframes resTitle { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.7); } 10% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 16% { transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(.96); } }
.res-dare { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); z-index: 39; }
/* Tik rejim: yutuq/yutqazish summasi — yuqoridagi raqibniki avatar va «OLADI» yozuvi tagiga, o'zingiznikini qo'l kartalari tepasiga (egasi belgilagan joylar) */
.table-scr:not(.land) .opp .res-amt { top: calc(100% + 56px); }
.table-scr:not(.land) .res-amt.mine { bottom: calc(100% + 100px); }

/* Tik rejim: raqib ismi avatar tagida aniq markazda, avatarga yopishib turadigan toza "tabletka" */
.table-scr:not(.land) .opp > .nm { position: relative; z-index: 4; display: block; width: fit-content; max-width: 112px; margin: -9px 0 0; align-self: center; flex-shrink: 0; padding: 2px 9px 3px; border-radius: 10px; background: rgba(12,16,22,.78); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 2px 6px rgba(0,0,0,.45); font-size: 11.5px; line-height: 1.15; text-align: center; }
.table-scr:not(.land) .opp.duel > .nm { max-width: 132px; }

/* Kutish xonasi: bo'sh o'ringa bosib o'tib olish */
.wait-slot.can-sit { cursor: pointer; }
.wait-slot.can-sit .empty-hex { outline: 2px dashed rgba(241,221,174,.45); outline-offset: 3px; border-radius: 16px; }
.wait-slot .sit-lbl { white-space: nowrap; text-align: center; font-size: 11px; font-weight: 800; color: #F1DDAE; margin-top: 4px; }
/* ===== O'yin stollari kolleksiyasi: stol rangi (faqat ko'rinish). --t1 markaz, --t2 chet, --tl chiziq ===== */
.tbl-prev { --t1: #2E3846; --t2: #0C1016; --tl: #E2C27D; position: relative; display: block; width: 74px; height: 50px; margin: 0 auto; border-radius: 12px; background: radial-gradient(120% 90% at 50% 30%, var(--t1), var(--t2)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tl) 60%, transparent), 0 3px 8px rgba(0,0,0,.4); overflow: hidden; flex-shrink: 0; }
.tbl-prev i { position: absolute; left: 50%; top: 50%; width: 52%; height: 46%; transform: translate(-50%,-50%); border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tl) 55%, transparent); }
.tbl-prev.sm { width: 46px; height: 34px; border-radius: 9px; }
.tbl-prev.lg { width: 120px; height: 80px; border-radius: 16px; }
.tbl-emerald { --t1: #2E7A52; --t2: #0A2A1B; --tl: #BFE9CF; }
.tbl-royal { --t1: #2F4FA8; --t2: #0B1636; --tl: #F1DDAE; }
.tbl-ruby { --t1: #A8323F; --t2: #34080F; --tl: #F6C0C6; }
.tbl-sand { --t1: #B08A47; --t2: #3A2A10; --tl: #FFF0C4; }
.tbl-violet { --t1: #6E3FC2; --t2: #1B0B3A; --tl: #7FE8FF; }
.tbl-ocean { --t1: #1F8DA8; --t2: #062A38; --tl: #BDF1FF; }
.tbl-blue, .tbl-classic { --t1: #4C7299; --t2: #27415E; --tl: #DCE8F5; }
/* Klassik ko'k: sokin ko'k mato, yengil vinyetka va juda nozik donador tekstura (namuna videodagi his) */
.table-scr.tbl-blue:not(.land) { background: radial-gradient(130% 80% at 50% 30%, #4E7AA3 0%, #3C5F86 55%, #27415E 100%); }
.table-scr.tbl-blue:not(.land)::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .14; background-image: radial-gradient(rgba(255,255,255,.55) .6px, transparent .7px); background-size: 3px 3px; }
.table-scr[class*="tbl-"]:not(.land) { background: radial-gradient(120% 70% at 50% 25%, var(--t1) 0%, var(--t2) 78%); }
.table-scr[class*="tbl-"].land .felt-in { background: radial-gradient(60% 60% at 50% 40%, var(--t1), var(--t2)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tl) 60%, transparent), inset 0 0 50px rgba(0,0,0,.55); }
.table-scr[class*="tbl-"].land { background: radial-gradient(120% 90% at 50% 40%, color-mix(in srgb, var(--t2) 70%, #0C1016), #0C1016); }
.table-scr[class*="tbl-"].land .felt-in::after { color: color-mix(in srgb, var(--tl) 30%, transparent); }
/* Yuklanish effekti (client/loader.js) — ekran markazida */
.dl-boot { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #0C1016; z-index: 1; }

/* Android APK: holat paneli (soat/wifi/kamera) ostidan boshlanadi; env() ishlasa o'shani, bo'lmasa kamida 34px */
html.apk-app #app { top: max(env(safe-area-inset-top, 0px), 34px); }
html.apk-app .notice { top: calc(max(env(safe-area-inset-top, 0px), 34px) + 10px); }
html.apk-app .modal-bg:has(input:focus, textarea:focus) { padding-top: 12px; }
.prof-id { text-align: center; margin: -6px 0 8px; font-size: 13px; } .prof-id b { color: var(--ink); letter-spacing: 1px; }
.fr-row .fr-av[data-a] { cursor: pointer; }

/* Tik rejim o'yin ekrani: vaqt va qoidalar chap tepada ixcham; bosilsa 5 soniya ochiladi */
.table-scr:not(.land) .info-pill.mini { position: absolute; left: 6px; top: 54px; z-index: 7; height: 26px; padding: 0 9px; gap: 6px; font-size: 11.5px; border-radius: 13px; cursor: pointer; transition: height .2s; }
.table-scr:not(.land) .info-pill.mini:not(.open) > :not(.tleft) { display: none; }
.table-scr:not(.land) .info-pill.mini.open { height: 32px; padding: 0 12px; font-size: 13px; }
.table-scr:not(.land) .rules-strip { top: 86px; cursor: pointer; }
.table-scr:not(.land) .rules-strip:not(.open) .ri:not(:first-child) { display: none; }
.table-scr:not(.land) .rules-strip:not(.open)::after { content: '▾'; font-size: 9px; opacity: .6; text-align: center; line-height: 8px; }
/* APK: o'yin paytida holat paneli ostiga ham stol rangi yoyiladi */
html.in-game, html.in-game body { background: color-mix(in srgb, var(--t1, var(--bg1)) 50%, var(--t2, var(--bg0))); }

/* Tik rejim: sms tugmasi pastga (profil yonidagi tugmalar yoniga); tepa paneli ekran chetidan biroz pastroq */
.table-scr:not(.land) .bar .bar-chat .icon-btn { width: 38px; height: 38px; border-radius: 12px; }
.table-scr:not(.land) .bar .boosts { align-items: center; }
.table-scr:not(.land) .tb-top { top: 18px; }
.table-scr:not(.land) .info-pill.mini { top: 66px; }
.table-scr:not(.land) .rules-strip { top: 98px; }

/* Tushish zonasi ko'rinmaydi (faqat tutib turish joyi sifatida ishlaydi) */
.table-scr:not(.land) .drop-area, .table-scr:not(.land) .field-zone.drop-ok .drop-area, .table-scr:not(.land) .field-zone.drop-near .drop-area { opacity: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
/* Tik stol, chap ustun: bayroq, vaqt va qoidalar bir xil kenglikda (40px), bir chiziqda va orasi ochiq */
.table-scr:not(.land) .tb-top { left: 8px; }
.table-scr:not(.land) .info-pill.mini { left: 8px; top: 68px; box-sizing: border-box; width: 40px; height: 32px; padding: 0; gap: 0; justify-content: center; border-radius: 13px; font-size: 12px; }
.table-scr:not(.land) .info-pill.mini.open { width: auto; min-width: 40px; height: 32px; padding: 0 11px; gap: 6px; font-size: 13px; }
.table-scr:not(.land) .rules-strip { left: 8px; top: 110px; box-sizing: border-box; width: 40px; padding: 5px 0 4px; gap: 4px; align-items: center; border-radius: 13px; background: rgba(20,26,34,.65); border: 1px solid rgba(255,255,255,.18); }
.table-scr:not(.land) .rules-strip .ri { min-width: 28px; width: 28px; height: 26px; border-radius: 9px; font-size: 11px; }
.table-scr:not(.land) .rules-strip .ri .ic { width: 17px; height: 17px; }
.table-scr:not(.land) .rules-strip:not(.open)::after { line-height: 9px; margin-top: 1px; }
.table-scr:not(.land) .rules-strip.open { z-index: 20; background: rgba(14,19,26,.94); }
/* Stol maydoni kengroq: kartalar orasi ochiq, bir-biriga tiqilmaydi (karta o'lchami o'zgarmagan) */
.table-scr:not(.land) .field-zone { column-gap: 22px; row-gap: 28px; }

.table-scr:not(.land) .field-zone { column-gap: 18px; row-gap: 22px; }

/* O'yin stoli: Telegram/APK tepa qatori ostida ham stol davom etadi (alohida chiziq qolmaydi) */
html.tg-app.in-game:not(.in-land) #app { top: 0; }
html.tg-app.in-game:not(.in-land) .table-scr { top: var(--tg-top, 0px); }
html.apk-app.in-game:not(.in-land) #app { top: 0; }
html.apk-app.in-game:not(.in-land) .table-scr { top: max(env(safe-area-inset-top, 0px), 34px); }
html.in-game[class*="tbl-"] #app { background: radial-gradient(120% 70% at 50% 25%, var(--t1), var(--t2) 78%); }
.table-scr:not(.land) .tb-top { top: 8px; }
.table-scr:not(.land) .info-pill.mini { top: 58px; }
.table-scr:not(.land) .rules-strip { top: 100px; }

/* Tik rejim: raqib ismi bir qatorda (sig'masa oxiri "…") */
.table-scr:not(.land) .opp > .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; overflow-wrap: normal; max-width: 104px; }
.table-scr:not(.land) .opp.duel > .nm { max-width: 132px; }

/* ⋯ menyudagi qoidalar ro'yxati */
.rules-list { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 16px; }
.rules-list .rl-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.rules-list .rl-row .ri { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 28px; border-radius: 9px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 800; }
/* Tik stol o'lchamlari (referens bo'yicha): raqib avatari ixchamroq */
.table-scr:not(.land) .hex.opp-av { width: 54px; height: 54px; }
/* Stolga uchayotgan karta kloni (body ichida) — qayta chizishdan mustaqil */
.card.fly-clone { box-shadow: 0 14px 24px rgba(0,0,0,.42); transform-origin: 50% 50%; }

/* Navbat ramkasi yumshoq almashadi (150–220 ms) */
.opp-wrap, .opp-wrap .hex, .opp-wrap .hex-in, .me-av { transition: filter .18s ease, box-shadow .18s ease, border-color .18s ease, outline-color .18s ease; }
.hand .card { transition: box-shadow .14s ease; }

/* Animatsiya o'chiq */
html.no-anim *, html.no-anim *::before, html.no-anim *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }

/* «Bito»/«Pas»/«Olaman» yozuvi avatar tepasida (namuna videodagidek, ~1 s) */
.say.pass-tag { background: #fff; color: #1B2536; font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 8px; box-shadow: 0 3px 8px rgba(0,0,0,.35); animation: popin .22s cubic-bezier(.2,1.5,.4,1); }

/* APK o'yin stolida to'liq ekran: tepa panel yashirin, joy bo'shaydi */
html.apk-app.apk-full #app { top: 4px; }
html.apk-app.apk-full .notice { top: 14px; }

/* Sovg'a oynasi → Kolleksiya: do'stga karta berish */
.cg-scroll { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.cg-set b { display: block; font-size: 13px; margin-bottom: 6px; color: #F1DDAE; }
.cg-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.cg-c { position: relative; padding: 0; border: 0; background: none; --cw: 44px; --ch: 62px; display: flex; justify-content: center; }
.cg-c .card { width: var(--cw); height: var(--ch); position: relative; }
.cg-c em { position: absolute; right: -2px; bottom: -4px; font-style: normal; font-size: 10.5px; font-weight: 800; background: #2F6FED; color: #fff; border-radius: 8px; padding: 0 5px; }
.dm-coll .card { --cw: 52px; --ch: 74px; width: 52px; height: 74px; position: relative; }
.confirm-art .card.cc-c { --cw: 64px; --ch: 90px; width: 64px; height: 90px; position: relative; margin: 0 auto; }

/* Sovg'a oynasi: pachkalar / emoji paketlari — bitta muqova, ichiga kirilsa to'liq ko'rinadi */
.cg-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 52vh; overflow-y: auto; }
.cg-pack { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); color: inherit; --cw: 50px; --ch: 70px; }
.cg-pack .card { width: 50px; height: 70px; position: relative; }
.cg-pack b { font-size: 12px; max-width: 100%; } .cg-pack small { font-size: 11px; }
.cg-head { display: flex; align-items: center; gap: 8px; } .cg-head b { flex: 1; text-align: center; }
.cg-scroll .cg-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; margin-bottom: 4px; }
.cg-scroll .cg-c { --cw: 34px; --ch: 48px; } .cg-scroll .cg-c .card { width: 34px; height: 48px; }
.cg-c.miss { opacity: .22; filter: grayscale(1); }
.emo-all { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; justify-items: center; margin-top: 10px; }
.emo-all.locked { opacity: .35; filter: grayscale(.85); }
.emo-open { position: relative; background: none; border: 0; padding: 0; cursor: pointer; }
.emo-open i { position: absolute; right: -4px; bottom: -6px; font-style: normal; font-size: 10px; font-weight: 800; background: rgba(0,0,0,.6); color: #F1DDAE; border-radius: 7px; padding: 0 5px; }
/* Sovg'a oynasi yon tomonga tebranmasin: kartalar to'ri oyna kengligidan oshmaydi, gorizontal surish yo'q */
.modal:has(.cg-scroll), .modal:has(.cg-packs), .modal:has(.emo-all) { overflow-x: hidden; }
.cg-scroll, .cg-packs { overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y; }
.cg-scroll .cg-grid { gap: 2px; }
.cg-scroll .cg-c { --cw: 30px; --ch: 42px; min-width: 0; } .cg-scroll .cg-c .card { width: 30px; height: 42px; }
.cg-scroll .cg-c em { font-size: 9px; padding: 0 3px; right: -1px; bottom: -3px; }
.emo-all { overflow: hidden; }

/* Bozor → Kolleksiya: 36 kartali sotuv to'ri */
.mk-grid .cg-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; margin-bottom: 6px; }
.mk-grid .cg-c { --cw: 34px; --ch: 48px; min-width: 0; flex-direction: column; align-items: center; } .mk-grid .cg-c .card { width: 34px; height: 48px; }
.mk-grid .mk-p { position: static; display: block; margin-top: 2px; font-style: normal; font-size: 9px; font-weight: 800; color: #E2C27D; background: none; padding: 0; white-space: nowrap; }
.mk-grid .mk-have { position: absolute; left: 0; top: 0; font-style: normal; font-size: 9px; font-weight: 900; background: #2EC27E; color: #fff; border-radius: 6px; padding: 0 3px; }
.mk-grid .cg-c.mk-on .card { box-shadow: 0 0 0 1.5px #E2C27D, 0 3px 8px rgba(0,0,0,.45); }

/* ===== Premium imtiyozlari ===== */
.prem-name { background: linear-gradient(90deg, #F6E2AE 0%, #E2C27D 30%, #FFF6D8 50%, #E2C27D 70%, #F6E2AE 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: premShine 3s linear infinite; font-weight: 800; }
@keyframes premShine { from { background-position: 200% 0; } to { background-position: 0 0; } }
.prem-av .hex { box-shadow: 0 0 0 2.5px #E2C27D, 0 0 0 4px rgba(0,0,0,.35), 0 0 14px rgba(226,194,125,.55) !important; }
.prem-enter::before { content: ''; position: absolute; left: 50%; top: 40%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; pointer-events: none; z-index: 8;
  background: radial-gradient(circle, rgba(255,240,190,.95) 0%, rgba(226,194,125,.6) 35%, rgba(226,194,125,0) 70%); animation: premBurst 2.2s ease-out both; animation-delay: var(--pe, 0ms); }
.prem-enter::after { content: '✦ ✦ ✦'; position: absolute; left: 50%; top: -14px; transform: translateX(-50%); color: #FFE9A8; font-size: 14px; letter-spacing: 6px; text-shadow: 0 0 8px rgba(255,220,140,.9); pointer-events: none; z-index: 9; animation: premSpark 2.2s ease-out both; animation-delay: var(--pe, 0ms); }
@keyframes premBurst { 0% { transform: scale(.2); opacity: 1; } 60% { transform: scale(9); opacity: .55; } 100% { transform: scale(12); opacity: 0; } }
@keyframes premSpark { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 25% { opacity: 1; transform: translate(-50%, -6px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -26px) scale(1); } }
.fr-row.prem-row { background: linear-gradient(90deg, rgba(226,194,125,.28), rgba(226,194,125,.08)) !important; border: 1px solid rgba(226,194,125,.55) !important; }
.prem-perks { margin-top: 6px; font-size: 12px; line-height: 1.55; color: #F1DDAE; text-align: left; }

/* Android ilova (o'yin stoli, tik): pastki qora panel pastroq — tizim tugmalari (III ◯ <) panel ustida turadi, bo'sh joy yo'qoladi;
   qo'l kartalari panel ustidan ko'proq chiqadi */
html.apk-app .table-scr:not(.land) .bar { padding-bottom: calc(2px + var(--safe-b) * .45); }
html.apk-app .table-scr:not(.land) { --hand-lift: calc(var(--safe-b) * .45); }

/* O'yin stoli «Mavzu va shrift» sozlamalaridan mustaqil: shrift va o'lcham doim standart */
.table-scr { font-family: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.tbl-prev.tbl-classic::before { content: ''; position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(rgba(255,255,255,.55) .6px, transparent .7px); background-size: 3px 3px; }
/* Telegram (iPhone/Android, to'liq ekran): bildirishnoma Telegram tepa qatori (Yopish · ⌄ ⋯) va soat ostidan chiqadi — yopilib qolmaydi */
html.tg-app .notice:not(.in-game) { top: calc(var(--tg-top, 0px) + 8px); }

/* Chatni ochish so'rovi: kichik, tepa panel ostida, o'yinga xalaqit bermaydi (9 s dan keyin o'zi yo'qoladi) */
.chat-ask { position: fixed; z-index: 110; left: 50%; transform: translateX(-50%); top: calc(var(--tg-top, 0px) + 64px); width: min(92vw, 360px); display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-radius: 16px; background: rgba(14,19,26,.92); border: 1px solid rgba(226,194,125,.45); box-shadow: 0 6px 18px rgba(0,0,0,.45); font-size: 13px; font-weight: 700; animation: tin .25s ease; }
.chat-ask small { opacity: .65; font-weight: 600; } .chat-ask .mini { height: 30px; padding: 0 12px; }
html.apk-app .chat-ask { top: calc(max(env(safe-area-inset-top, 0px), 34px) + 58px); }
