/* Salon ekranları (vitrin, oyun lobisi, oda) — base.css'in üstüne */
.app { position: relative; max-width: 560px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; }
.scr { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(84px + var(--safe-b)); }
.scr.no-nav { padding-bottom: calc(16px + var(--safe-b)); }

/* üst çubuk */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 10px; background: linear-gradient(#0e0805 70%, #0e080500); }
.me-btn { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; text-align: left; }
.me-btn .who { display: flex; flex-direction: column; line-height: 1.15; }
.me-btn .who b { font-size: 15px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-btn .who small { font-size: 12px; color: var(--muted); font-weight: 700; }
.coins { margin-left: auto; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 5px 0 10px; border-radius: 19px; background: linear-gradient(#2a1b12, #120a06); border: 1.5px solid var(--gold-lo); font-weight: 900; font-size: 15px; color: var(--gold-hi); box-shadow: inset 0 1px 0 #ffffff14; }
.coins .coin { width: 20px; height: 20px; }
.coins .plus { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#ffe08a, #e0a72e); color: #3a2208; border: 0; box-shadow: 0 2px 0 #8a5a14; padding: 0; }
.coins .plus svg { width: 16px; height: 16px; }
.chest { position: relative; width: 46px; height: 46px; border: 0; padding: 0; background: none; }
.chest svg { width: 46px; height: 46px; filter: drop-shadow(0 0 10px #f2c14e88); }
.chest .dot { position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--bad); border: 2px solid var(--bg); }
.chest.ready svg { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-3deg); } }

/* vitrin afişi */
.hero { position: relative; margin: 4px 14px 0; aspect-ratio: 16 / 9.6; border-radius: 20px; overflow: hidden; border: 2px solid var(--gold-lo); box-shadow: var(--shadow), 0 0 0 4px #160d08, 0 0 0 5px #a8771f66; touch-action: pan-y; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.hero .slide.on { opacity: 1; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(90deg, #0000 25%, #0e0805cc 70%), linear-gradient(0deg, #0e0805aa, #0000 40%); }
.hero .txt { position: absolute; right: 16px; top: 0; bottom: 0; width: 52%; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; gap: 8px; }
.hero h2 { font-size: clamp(30px, 9vw, 46px); line-height: 1; }
.hero p { margin: 0; font-size: 13px; font-weight: 700; color: var(--soft); text-shadow: 0 1px 3px #000; }
.hero .live { font-size: 12px; font-weight: 800; color: #9fe0b4; display: flex; align-items: center; gap: 6px; }
.hero .live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #6ee08f; box-shadow: 0 0 8px #6ee08f; }
.hero .dots { position: absolute; left: 14px; bottom: 10px; display: flex; gap: 6px; }
.hero .dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: #fff6; }
.hero .dots button.on { background: var(--gold); width: 22px; border-radius: 5px; }
.hero .frame { position: absolute; inset: 6px; border-radius: 15px; border: 1px solid #f2c14e55; pointer-events: none; }

/* raflar */
.shelf { padding: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.shelf .section-title { padding: 0 14px; }
.row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 14px 10px; }
.row::-webkit-scrollbar { display: none; }
.poster { position: relative; flex: none; width: 128px; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; scroll-snap-align: start; color: var(--ink); border: 1.5px solid var(--gold-lo); box-shadow: 0 8px 18px #000a, inset 0 0 0 1px #ffffff14; background: #1a100a; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.poster:active img { transform: scale(1.04); }
.poster .lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 9px 9px; background: linear-gradient(#0000, #0e0805ee 55%); display: flex; flex-direction: column; gap: 3px; }
.poster .lbl b { font-family: var(--font-title); font-weight: 900; font-size: 15px; line-height: 1.05; letter-spacing: .03em; color: var(--gold-hi); text-shadow: 0 2px 4px #000; }
.poster .lbl small { font-size: 11px; font-weight: 800; color: #9fe0b4; display: flex; align-items: center; gap: 5px; }
.poster .lbl small::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6ee08f; }
.poster .lbl small.off { color: var(--muted); } .poster .lbl small.off::before { background: var(--dim); }
.poster .rib { position: absolute; top: 8px; left: 8px; }
.poster.big { width: 150px; }
.invite-card { margin: 22px 14px 0; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(120deg, #1f74b8, #144a7a); border: 1.5px solid #a8dcff66; box-shadow: var(--shadow); color: #fff; text-align: left; width: calc(100% - 28px); }
.invite-card b { font-size: 16px; display: block; } .invite-card small { font-size: 13px; opacity: .9; }
.invite-card svg { width: 40px; height: 40px; flex: none; }

/* alt menü */
.nav { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(560px, 100%); z-index: 30; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 8px calc(8px + var(--safe-b)); background: linear-gradient(#1a100a, #0b0604); border-top: 1.5px solid var(--gold-lo); box-shadow: 0 -8px 20px #000a; }
.nav a { height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 800; color: var(--muted); }
.nav a svg { width: 26px; height: 26px; }
.nav a[aria-current=page] { color: var(--gold-hi); }
.nav a[aria-current=page] svg { filter: drop-shadow(0 0 6px #f2c14e99); }

/* oyun lobisi */
.g-head { position: relative; height: 250px; overflow: hidden; }
.g-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-head .shade { position: absolute; inset: 0; background: linear-gradient(#0e080566, #0e080500 30%, #0e0805 100%); }
.g-head .tb { position: absolute; left: 12px; right: 12px; top: calc(10px + var(--safe-t)); display: flex; justify-content: space-between; }
.g-head .tt { position: absolute; left: 16px; right: 16px; bottom: 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.g-head h1 { font-size: clamp(36px, 11vw, 52px); line-height: 1; }
.g-head p { margin: 0; color: var(--soft); font-weight: 700; font-size: 14px; text-shadow: 0 1px 3px #000; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 8px 14px 0; }
.mode { position: relative; aspect-ratio: 1 / 1.08; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 6px; text-align: center; color: #fff; border: 2px solid; font-weight: 900; font-size: 15px; line-height: 1.1; letter-spacing: .02em; box-shadow: 0 5px 0 var(--sh), 0 10px 20px #000a, inset 0 1px 0 #ffffff40; text-transform: uppercase; }
.mode::after { content: ''; position: absolute; inset: 5px; border-radius: 13px; border: 1px solid #ffffff30; pointer-events: none; }
.mode:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sh), 0 6px 12px #000a; }
.mode .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffffff55, #ffffff10 70%); box-shadow: inset 0 0 0 2px #ffffff55, 0 4px 10px #0006; }
.mode .ic svg { width: 28px; height: 28px; }
.mode.gold { background: linear-gradient(170deg, #ffe08a, #e3a93a 55%, #b87a1e); border-color: #fff0bf; color: #3a2208; --sh: #7a4e10; }
.mode.green { background: linear-gradient(170deg, #2fa866, #17643a 60%, #0b3a20); border-color: #8ff0b4aa; --sh: #072614; }
.mode.dis { filter: grayscale(.8) brightness(.6); }
.stakes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 14px 6px; }
.stakes::-webkit-scrollbar { display: none; }
.stake { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 70px; padding: 8px 6px; border-radius: 14px; border: 1.5px solid #4a3220; background: #1a110b; color: var(--soft); font-weight: 900; font-size: 15px; }
.stake .coin { width: 26px; height: 26px; }
.stake small { font-size: 11px; color: var(--muted); font-weight: 700; }
.stake[aria-pressed=true] { border-color: var(--gold); background: linear-gradient(#3a2816, #1e130b); box-shadow: 0 0 0 2px #f2c14e44, 0 0 14px #f2c14e44; color: var(--gold-hi); }
.code-row { display: flex; gap: 8px; padding: 6px 14px 0; }
.rooms { list-style: none; margin: 0; padding: 0 14px; display: flex; flex-direction: column; gap: 10px; }
.room { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(#2a1b12, #160d08); border: 1px solid #a8771f66; box-shadow: 0 4px 12px #0007; }
.room .info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.room .info b { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.room .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seats-dots { display: flex; gap: 3px; } .seats-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #f6e7c9aa; } .seats-dots i.f { background: var(--gold); border-color: var(--gold); }
.empty-note { margin: 0 14px; padding: 18px; text-align: center; color: var(--muted); border: 1px dashed #4a3220; border-radius: 16px; font-size: 14px; }

/* formlar */
.form { padding: 4px 14px 0; display: flex; flex-direction: column; gap: 16px; }
.toggles { display: flex; flex-direction: column; border-radius: 14px; background: #1a110b; border: 1px solid #4a3220; }
.tg { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: transparent; text-align: left; width: 100%; }
.tg + .tg { border-top: 1px solid #3a2a1e; }
.tg span { flex: 1; display: flex; flex-direction: column; gap: 2px; } .tg small { font-size: 13px; color: var(--muted); }
.sw { flex: none; width: 50px; height: 30px; border-radius: 15px; background: #4a3a2c; position: relative; transition: background .2s; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fffaf0; box-shadow: 0 1px 3px #0008; transition: left .2s; }
.tg[aria-checked=true] .sw { background: var(--ok); } .tg[aria-checked=true] .sw::after { left: 23px; }
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lvl { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 14px; border: 2px solid #4a3220; background: #1a110b; font-weight: 900; }
.lvl small { font-size: 12px; color: var(--muted); font-weight: 700; text-align: center; }
.lvl[aria-checked=true] { border-color: var(--gold); background: linear-gradient(#3a2816, #1e130b); }
.stars { display: flex; gap: 2px; color: var(--gold); } .stars svg { width: 14px; height: 14px; }
.sticky-foot { position: sticky; bottom: 0; margin-top: auto; padding: 12px 14px calc(14px + var(--safe-b)); background: linear-gradient(#0e080500, #0e0805 30%); display: flex; flex-direction: column; gap: 6px; }
.sum { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }

/* bekleme odası */
.room-top { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; align-items: center; padding: calc(10px + var(--safe-t)) 12px 6px; }
.room-top .c { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.room-top h1 { font-size: 18px; font-weight: 900; }
.codechip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; border: 1.5px solid var(--gold-lo); background: #1a110b; color: var(--gold-hi); font-weight: 900; font-size: 13px; letter-spacing: .12em; }
.pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 2px 12px 10px; }
.wtable { position: relative; margin: 0 14px; height: 360px; border-radius: 180px; }
.wtable .felt { position: absolute; inset: 12px; border-radius: 170px; }
.wtable .lamp { position: absolute; left: 50%; top: 50%; width: 70%; height: 60%; transform: translate(-50%, -50%); background: radial-gradient(#ffe3a033, transparent 70%); pointer-events: none; }
.pot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pot .coin { width: 34px; height: 34px; }
.seat { position: absolute; transform: translate(-50%, -50%); width: 92px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.seat .avatar.ok { border-color: var(--ok); }
.seat .chk { position: absolute; right: 16px; top: 36px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); border: 2px solid #0e0805; display: grid; place-items: center; }
.seat .crown { position: absolute; top: -12px; }
.seat .add { width: 56px; height: 56px; border-radius: 50%; border: 2px dashed #f6e7c9; background: #0e080566; color: #f6e7c9; display: grid; place-items: center; box-shadow: 0 0 14px #f2c14e33; }
.seat .add svg { width: 22px; height: 22px; }
.seat .lab { font-size: 11px; font-weight: 900; letter-spacing: .05em; }
.seat .kick { position: absolute; left: 14px; top: 34px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; display: grid; place-items: center; padding: 0; }
.seat .kick svg { width: 12px; height: 12px; }
.chatbox { margin: 12px 14px 0; padding: 10px 12px; border-radius: 16px; background: #1a110b; border: 1px solid #4a3220; display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.msgs { flex: 1; max-height: 170px; overflow: auto; display: flex; flex-direction: column; gap: 5px; }
.msgs p { margin: 0; font-size: 14px; line-height: 1.35; color: var(--soft); }
.msgs p.sys { color: var(--muted); font-style: italic; }
.chat-in { display: flex; gap: 8px; align-items: center; }
.chat-in .input { height: 44px; border-radius: 22px; border-color: #4a3220; }
.quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid #4a3220; background: #21150f; font-size: 13px; font-weight: 800; color: var(--soft); }
.room-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 14px calc(14px + var(--safe-b)); }

/* profil/ödül */
.card-list { display: flex; flex-direction: column; gap: 12px; padding: 6px 14px; }
.reward { display: flex; align-items: center; gap: 14px; }
.reward .big-ic { width: 60px; height: 60px; flex: none; display: grid; place-items: center; }
.reward .big-ic svg { width: 56px; height: 56px; filter: drop-shadow(0 0 10px #f2c14e66); }
.reward .t { flex: 1; display: flex; flex-direction: column; gap: 2px; } .reward .t b { font-size: 16px; } .reward .t small { color: var(--muted); font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.stat-grid div { padding: 10px 4px; border-radius: 12px; background: #ffffff0a; } .stat-grid b { display: block; font-size: 20px; color: var(--gold-hi); } .stat-grid small { color: var(--muted); font-size: 12px; font-weight: 700; }
.splash { position: fixed; inset: 0; display: grid; place-items: center; z-index: 300; background: var(--bg); transition: opacity .4s; }
.splash h1 { font-size: 34px; }
