/* Hazır masa kartları, çip pencereleri (günlük bonus / çip bitti / davet), oyuncu çağırma, masadan ayrılma uyarısı. */

/* ---- Hazır masalar ---- */
.tables-panel .scroll { overflow-x: hidden; }
.tl-label { margin: 6px 14px 8px; }
.rt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; padding: 0 8px 10px; }
.rt-card { min-width: 0; }
.rt-card { --tc: #22c55e; position: relative; display: grid; gap: 10px; padding: 14px; border-radius: 18px; overflow: hidden; isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--tc) 45%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 22%, var(--surface-2)) 0%, var(--surface-2) 62%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .14); transition: transform .14s, box-shadow .14s; }
.rt-card::before { content: ''; position: absolute; right: -34px; top: -34px; width: 110px; height: 110px; border-radius: 50%; z-index: -1; background: radial-gradient(circle, color-mix(in srgb, var(--tc) 38%, transparent), transparent 70%); }
.rt-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .22); }
.rt-card.free { --tc: #94a3b8; } .rt-card.green { --tc: #22c55e; } .rt-card.violet { --tc: #a855f7; } .rt-card.gold { --tc: #f59e0b; }
.rt-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rt-top b { font-size: .95rem; } .rt-cap { font-size: .68rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--tc) 22%, transparent); color: var(--text); white-space: nowrap; }
.rt-stake { display: grid; gap: 1px; } .rt-stake small { font-size: .68rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.rt-stake strong { font-size: 1.55rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--tc) 70%, var(--text)); }
.rt-seats { display: flex; gap: 6px; flex-wrap: wrap; }
.rt-seat { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed color-mix(in srgb, var(--tc) 55%, var(--line-strong)); color: var(--dim); font-size: .95rem; overflow: hidden; }
.rt-seat.f { border: 2px solid var(--tc); } .rt-seat .avatar { width: 100%; height: 100%; } .rt-seat .avatar img { border-radius: 50%; }
.rt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rt-count { font-size: .74rem; color: var(--dim); font-weight: 700; }
.rt-join { background: var(--tc); color: #fff; border-color: transparent; font-weight: 800; }
.rt-card.free .rt-join { color: #0f172a; } .rt-join.poor { background: var(--surface); color: var(--dim); border: 1px solid var(--line-strong); }

/* ---- Çip pencereleri ---- */
.modal:has(.wl-card) { width: min(420px, 100%); }
.wl-card { display: grid; gap: 12px; justify-items: center; text-align: center; }
.wl-card h3 { margin: 0; font-size: 1.25rem; } .wl-card p { margin: 0; line-height: 1.5; }
.wl-ico { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent) 8%, transparent)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); animation: wl-pop .55s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes wl-pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.wl-plus { color: #16a34a; }
.wl-balance { display: grid; gap: 2px; width: 100%; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.wl-balance span { font-size: .72rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; } .wl-balance div { font-size: 1.8rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.wl-perks { width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 6px; }
.wl-perks ul { margin: 0; padding-left: 4px; list-style: none; display: grid; gap: 7px; font-size: .88rem; line-height: 1.4; }
.wl-actions { flex-wrap: wrap; width: 100%; justify-content: center; }
.wl-meta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; font-size: .9rem; } .wl-meta span { padding: 2px 10px; border-radius: 999px; background: var(--surface-2); }
.wl-timer { width: 100%; height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; } .wl-timer i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: wl-timer linear forwards; }
@keyframes wl-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.leave-stake { display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #ef4444 12%, var(--surface-2)); border: 1px solid color-mix(in srgb, #ef4444 40%, var(--line)); }
.leave-stake b { font-size: 1.25rem; color: var(--danger); } .leave-stake span { font-size: .85rem; line-height: 1.4; }

/* ---- Yönetim: güvenlik ve hesap notları ---- */
.ad-note { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .84rem; line-height: 1.45; }
.ad-note.warn { border-color: color-mix(in srgb, #f59e0b 55%, var(--line)); background: color-mix(in srgb, #f59e0b 10%, var(--surface-2)); }
.ad-card.sec-open { border-left: 3px solid var(--danger); }

.room-share { display: flex; gap: 8px; flex-wrap: wrap; }
.room-share .btn { text-decoration: none; display: inline-flex; align-items: center; }

/* ---- Yönetim: hediye satırları ---- */
.ad-gift { align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ad-gift .input { width: auto; flex: 1 1 150px; min-width: 110px; } .ad-gift .input.num { flex: 0 0 110px; width: 110px; } .ad-gift input[aria-label="Emoji"] { flex: 0 0 64px; width: 64px; min-width: 64px; }

/* ---- Hızlı tepkiler ---- */
.rx-btn { font-size: 1.05rem; padding-inline: 10px; }
.rx-pop { position: fixed; z-index: 250; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; width: min(300px, calc(100vw - 16px)); border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: gift-in .14s ease-out; }
.rx-item { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); cursor: pointer; } .rx-item:hover, .rx-item:focus-visible { background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); outline: none; }
.rx-item span { font-size: 1.5rem; line-height: 1.1; } .rx-item small { font-size: .62rem; color: var(--dim); text-align: center; line-height: 1.15; }
.rx-bubble { position: fixed; z-index: 260; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(8, 13, 24, .88); color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); pointer-events: none; white-space: nowrap; transform: translate(-50%, -110%); animation: rx-float 2.5s ease-out forwards; }
.rx-bubble span { font-size: 1.5rem; line-height: 1; } .rx-bubble b { font-size: .8rem; } .rx-bubble small { opacity: .7; font-size: .7rem; }
@keyframes rx-float { 0% { opacity: 0; transform: translate(-50%, -60%) scale(.6); } 12% { opacity: 1; transform: translate(-50%, -115%) scale(1.08); } 22% { transform: translate(-50%, -110%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -190%) scale(1); } }
@keyframes gift-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rx-bubble { animation-duration: 2.5s; } }

/* ---- Hediye seçici ve hediye animasyonu ---- */
.modal:has(.gp) { width: min(480px, 100%); }
.gp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; max-height: 44vh; overflow-y: auto; }
.gp-item { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; color: var(--text); transition: transform .12s, border-color .12s; }
.gp-item:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--accent); } .gp-item.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.gp-item.poor { opacity: .45; cursor: not-allowed; } .gp-emo { font-size: 2rem; line-height: 1.1; } .gp-item b { font-size: .8rem; } .gp-item small { color: var(--dim); font-size: .72rem; }
.gift-pop { position: fixed; left: 50%; top: 38%; z-index: 300; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; pointer-events: none; animation: gift-pop 3.1s ease-out forwards; }
.gift-pop span { font-size: clamp(4rem, 14vw, 7rem); filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .4)); }
.gift-pop b { padding: 5px 14px; border-radius: 999px; background: rgba(8, 13, 24, .8); color: #fff; font-size: .9rem; }
@keyframes gift-pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.3) rotate(-15deg); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(4deg); } 24% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -90%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .gift-pop { animation-duration: 3s; } }
.pf-gifts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pf-gift { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .85rem; } .pf-gift b { font-size: .78rem; color: var(--dim); }

/* ---- E-posta penceresi ---- */
.em-state { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .86rem; line-height: 1.4; }
.em-state.ok { border-color: color-mix(in srgb, #22c55e 50%, var(--line)); } .em-state.wait { border-color: color-mix(in srgb, #f59e0b 50%, var(--line)); }

/* ---- Oyuncu çağır ---- */
.modal:has(.ip) { width: min(460px, 100%); }
.ip-list { display: grid; gap: 6px; max-height: 46vh; overflow-y: auto; }
.ip-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ip-who { display: grid; min-width: 0; flex: 1; } .ip-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ip-who small { color: var(--dim); font-size: .72rem; }
.room-stake { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(90deg, color-mix(in srgb, #f59e0b 18%, transparent), transparent); border: 1px solid color-mix(in srgb, #f59e0b 35%, var(--line)); font-size: .84rem; line-height: 1.4; }
.room-stake b { font-size: 1.1rem; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .wl-ico, .wl-timer i { animation: none; } .rt-card { transition: none; } }
