/* ---- Oyun Odaları (gerçekçi temalı kartlar) ---- */
#app.app-wide { max-width: 1240px; }
.games-note { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin-top: 14px; padding: 0 4px; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 14px; }
.game-card { position: relative; border-radius: 20px; padding: 12px; min-height: 238px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; color: var(--text); text-decoration: none; border: 1px solid rgba(255,255,255,.10); background: rgba(26,29,39,.72); transition: transform .25s cubic-bezier(.2,.8,.3,1), border-color .25s, box-shadow .25s; }
.gc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 2; }
.gc-name { font-weight: 900; font-size: 16.5px; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.gc-live-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; color: #e6fff5; background: rgba(0,0,0,.4); border: 1px solid rgba(46,204,113,.45); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.gc-soon-badge { font-size: 10.5px; font-weight: 800; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.22); color: #d5d9e6; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.gc-art { position: relative; flex: 1; min-height: 116px; display: flex; align-items: center; justify-content: center; z-index: 1; }
.gc-desc { font-size: 12px; color: #c9cee0; line-height: 1.45; position: relative; z-index: 2; }
.gc-desc-soon { color: #9aa3b8; }
.gc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 2; }
.gc-cap { font-size: 12px; font-weight: 800; color: #ffd166; white-space: nowrap; }

/* Şans Çarkı canlı kartı */
.gc-live.gc-wheel-card { background: linear-gradient(165deg, #45227a 0%, #221340 52%, #2a1745 100%); border-color: rgba(164,77,255,.5); }
.gc-live.gc-wheel-card:hover { transform: translateY(-4px); border-color: rgba(255,209,102,.55); box-shadow: 0 18px 44px rgba(142,92,246,.32); }
.gc-wheel3d { position: relative; width: 122px; height: 122px; filter: drop-shadow(0 12px 20px rgba(0,0,0,.55)); }
.gc-wheel-svg { width: 100%; height: 100%; display: block; }
.gc-spinning { animation: gcWheelSpin 16s linear infinite; transform-origin: 50% 50%; }
@keyframes gcWheelSpin { to { transform: rotate(360deg); } }
.gc-pin { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 20px solid #ff5a3c; filter: drop-shadow(0 0 3px rgba(255,90,60,.8)) drop-shadow(0 2px 4px rgba(0,0,0,.5)); z-index: 3; }

/* Parıltılar */
.gc-sparkle { position: absolute; color: #ffe98a; font-size: 13px; opacity: .6; z-index: 2; text-shadow: 0 0 10px rgba(255,233,138,.9); animation: gcTwinkle 2.6s ease-in-out infinite; pointer-events: none; }
.gc-sparkle.s1 { top: 10px; left: 10%; }
.gc-sparkle.s2 { bottom: 26%; right: 9%; animation-delay: .9s; }
.gc-sparkle.s3 { top: 44%; left: 5%; font-size: 10px; animation-delay: 1.6s; }
@keyframes gcTwinkle { 0%,100% { opacity: .2; transform: scale(.75) rotate(0deg); } 50% { opacity: 1; transform: scale(1.2) rotate(20deg); } }

/* Koltuk önizleme avatarları */
.gc-avatars { display: flex; align-items: center; }
.gc-av { width: 27px; height: 27px; border-radius: 50%; border: 2px solid #242836; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 12px; background: #1a1d27; margin-left: -9px; }
.gc-av:first-child { margin-left: 0; }
.gc-av img { width: 100%; height: 100%; object-fit: cover; }
.gc-av-plus { color: #97a0b8; background: #2a2f3d; border-color: #3d4358; font-weight: 800; }

/* --- Balon (Yakında) --- */
.gc-balon { background: linear-gradient(180deg, #2a1746 0%, #6d2a63 48%, #d95f56 100%); }
.gc-balon:hover { border-color: rgba(255,154,92,.5); }
.gc-multiplier { font-size: 32px; font-weight: 900; color: #fff; text-shadow: 0 4px 22px rgba(255,140,90,.65); letter-spacing: 1px; }
.gc-pulse { animation: gcPulse 2.2s ease-in-out infinite; }
@keyframes gcPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.gc-balloon { position: absolute; left: 10%; bottom: -8px; font-size: 30px; animation: gcFloat 4.6s ease-in-out infinite; }
@keyframes gcFloat { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-16px) rotate(5deg); } }

/* --- Mayın Tarlası (Yakında) --- */
.gc-mayin { background: linear-gradient(165deg, #11452a 0%, #0a2a18 100%); }
.gc-mayin:hover { border-color: rgba(46,204,113,.45); }
.gc-grid-bg { position: absolute; inset: -6px; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 25px), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 25px); }
.gc-tile { position: absolute; width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; color: #d9ffe3; background: linear-gradient(145deg, #2e9b53, #1d6b38); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 4px 10px rgba(0,0,0,.45); }
.gc-tile.t1 { top: 12%; left: 16%; }
.gc-tile.t2 { top: 40%; right: 16%; background: linear-gradient(145deg, #f4f4ec, #cbcbc0); color: #d63a3a; }
.gc-tile.t3 { bottom: 8%; left: 42%; }
.gc-bomb { position: absolute; top: 26%; left: 6%; font-size: 28px; animation: gcFloat 3.8s ease-in-out infinite; }

/* --- Altın Partisi (Yakında) --- */
.gc-altin { background: radial-gradient(circle at 50% 62%, #96630f 0%, #4a2f0b 55%, #2a1a06 100%); }
.gc-altin:hover { border-color: rgba(255,209,102,.5); }
.gc-glow { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,215,100,.5), transparent 68%); animation: gcGlow 2.8s ease-in-out infinite; }
@keyframes gcGlow { 0%,100% { opacity: .45; transform: scale(.88); } 50% { opacity: 1; transform: scale(1.15); } }
.gc-coin { font-size: 36px; filter: drop-shadow(0 4px 14px rgba(255,215,100,.55)); animation: gcFloat 4.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .gc-spinning, .gc-pulse, .gc-balloon, .gc-bomb, .gc-glow, .gc-coin, .gc-sparkle { animation: none; }
}

/* ---- Oyun odası (Şans Çarkı) — mobilde tek kolon, geniş ekranda sol panel + oyun + sohbet ---- */
.game-room { display: grid; grid-template-columns: 1fr; grid-template-areas: "main" "side" "chat"; gap: 14px; }
.room-side-left { grid-area: side; display: flex; flex-direction: column; gap: 12px; }
.gr-main { grid-area: main; min-width: 0; }
.chat-panel { grid-area: chat; }
@media (min-width: 1100px) {
  .game-room { grid-template-columns: 230px 1fr 290px; grid-template-areas: "side main chat"; align-items: start; }
  .chat-panel { position: sticky; top: 74px; height: min(640px, calc(100vh - 210px)); margin-top: 0; }
  .gr-side { max-width: 300px; }
}
.gr-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gr-back { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 700; background: var(--card2); padding: 7px 12px; border-radius: 999px; transition: color .2s; }
.gr-back:hover { color: var(--text); }
.gr-title { font-size: 19px; font-weight: 900; flex: 1; text-align: center; }
.gr-online { font-size: 12px; font-weight: 700; color: #55efc4; white-space: nowrap; }
.gr-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.gr-strip-empty { color: var(--muted); font-size: 13px; padding: 18px 6px; width: 100%; text-align: center; }
.gp-card { position: relative; flex: 0 0 auto; width: 86px; text-align: center; }
.gp-card.me .gp-name { color: #ffd166; }
.gp-bet { position: absolute; top: -6px; left: -4px; z-index: 2; display: inline-flex; align-items: center; gap: 2px; background: #1a1d27; border: 1px solid #ffd16666; color: #ffd166; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.gp-ph { width: 74px; height: 74px; margin: 0 auto; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 30px; background: linear-gradient(160deg,#2a2f3d,#1a1d27); border: 2px solid #323848; }
.gp-card.me .gp-ph { border-color: #ffd166; }
.gp-ph img { width: 100%; height: 100%; object-fit: cover; }
.gp-name { font-size: 11.5px; font-weight: 700; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-status { text-align: center; font-size: 20px; font-weight: 900; color: #fff; margin: 10px 0 16px; text-shadow: 0 2px 12px rgba(142,92,246,.45); }
.gr-wheel-zone { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; }
.wheel-wrap { position: relative; width: min(320px, 78vw); aspect-ratio: 1; flex: 0 0 auto; }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid #f5a623; filter: drop-shadow(0 2px 5px rgba(0,0,0,.5)); z-index: 3; }
.wheel-disc { width: 100%; height: 100%; transition: transform 4.2s cubic-bezier(.12,.72,.09,1); will-change: transform; }
.gr-side { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; margin: 0 auto; }
.bet-panel { background: rgba(26,29,39,.6); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 14px; }
.bp-balance { display: flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 900; color: #ffd166; margin-bottom: 8px; }
.bp-label { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.bp-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 8px; }
.bet-btn { display: flex; align-items: center; justify-content: center; gap: 2px; background: var(--grad); border: none; color: #fff; font-weight: 800; font-size: 14px; padding: 10px 0; border-radius: 999px; cursor: pointer; transition: filter .15s, transform .1s; }
.bet-btn svg { width: 14px; height: 14px; }
.bet-btn:hover { filter: brightness(1.12); }
.bet-btn:active { transform: scale(.97); }
.bet-btn:disabled { background: #3a3f50; color: #7c8398; cursor: not-allowed; filter: none; }
.bp-my { margin-top: 10px; font-size: 12.5px; color: #b8bdcf; }
.bp-my b { color: #ffd166; }
.bp-hint { color: var(--muted); font-size: 11px; margin-top: 6px; }
.odds-box { background: rgba(26,29,39,.6); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 10px 14px; font-size: 12.5px; color: #b8bdcf; }
.odds-box summary { cursor: pointer; font-weight: 700; }
.odds-list { margin-top: 8px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.odd-row { display: contents; }
.odd-row span:last-child { text-align: right; font-weight: 700; color: var(--text); }
.odd-chip { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; min-width: 42px; }
.gr-winners { text-align: center; min-height: 24px; font-size: 14.5px; color: #ffe29a; margin: 14px 0 4px; line-height: 1.55; }

/* ---- Günün Kazananları ---- */
.daily-panel { background: rgba(26,29,39,.6); backdrop-filter: blur(12px); border: 1px solid rgba(255,209,102,.22); border-radius: 16px; padding: 16px; text-align: center; }
.dp-head { font-size: 15.5px; font-weight: 900; color: #ffd166; }
.dp-desc { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 6px 0 12px; }
.podium { display: flex; justify-content: center; gap: 14px; margin: 10px 0; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 92px; }
.pod-medal { font-size: 17px; }
.pod-ph { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 22px; background: linear-gradient(160deg,#2a2f3d,#1a1d27); border: 2px solid #ffd16688; }
.pod.p1 .pod-ph { border-color: #ffd166; width: 62px; height: 62px; }
.pod-ph img { width: 100%; height: 100%; object-fit: cover; }
.pod-name { font-size: 11.5px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-net { font-size: 12px; font-weight: 800; color: #ffd166; }
.podium-empty { color: var(--muted); font-size: 12.5px; padding: 8px 0; }
.dp-sub { font-size: 12px; font-weight: 800; color: #b8bdcf; margin-top: 8px; }
.dp-reset { color: #ffd166; font-size: 12.5px; font-weight: 800; margin-top: 10px; }

/* ---- Sol panel: Dinleyiciler / Katılımcılar ---- */
.room-side-left { display: flex; flex-direction: column; gap: 12px; }
.ls-panel { background: rgba(26,29,39,.6); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 14px; }
.ls-title { font-weight: 900; font-size: 14.5px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.ls-count { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 12px 8px; }
.ls-item { text-align: center; min-width: 0; }
.ls-av { position: relative; width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; background: linear-gradient(160deg,#2a2f3d,#1a1d27); border: 2px solid #323848; overflow: visible; }
.ls-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ls-bet { position: absolute; top: -7px; right: -10px; z-index: 2; background: linear-gradient(135deg,#ffd166,#ffb347); color: #5a3d00; font-size: 10px; font-weight: 900; padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(0,0,0,.25); }
.ls-name { font-size: 11px; color: #cfd4e2; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-sen { color: var(--primary); font-weight: 700; }
.ls-empty { color: var(--muted); font-size: 12px; padding: 6px 0; }

/* ---- Oda sohbeti ---- */
.chat-panel { background: rgba(26,29,39,.6); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; display: flex; flex-direction: column; height: 320px; margin-top: 14px; }
.cp-head { padding: 12px 14px; font-weight: 900; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 7px; }
.chat-msg { font-size: 13px; line-height: 1.5; color: #cfd4e2; word-break: break-word; }
.chat-msg.mine .cm-from { color: #ffd166; }
.cm-from { font-weight: 800; color: #9aa3c0; margin-right: 4px; }
.chat-empty { color: var(--muted); text-align: center; margin-top: 40px; font-size: 13px; }
.chat-inputrow { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.chat-inputrow input { flex: 1; background: var(--card2); border: 1px solid #323848; color: var(--text); border-radius: 999px; padding: 10px 14px; font-size: 13px; outline: none; min-width: 0; }
.chat-inputrow input:focus { border-color: var(--primary); }
.chat-inputrow button { background: var(--grad); border: none; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 15px; cursor: pointer; flex: 0 0 auto; }

@media (max-width: 560px) {
  .games-grid { grid-template-columns: 1fr; }
  .wheel-wrap { width: min(260px, 82vw); }
  .gr-status { font-size: 17px; }
}

/* ---- Canlı koltuklar (Sohbete Katıl) ---- */
.seat-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 8px; }
.sh-title { font-weight: 900; font-size: 14px; }
.seat-count { font-size: 12px; font-weight: 800; color: #ffd166; background: rgba(255,209,102,.1); border: 1px solid rgba(255,209,102,.3); padding: 2px 10px; border-radius: 999px; }
.seat-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.seat-strip::-webkit-scrollbar { display: none; }
.seat-card { position: relative; flex: 0 0 auto; width: 70px; }
.seat-ph { position: relative; width: 100%; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 24px; background: linear-gradient(160deg,#2a2f3d,#1a1d27); border: 2px solid #323848; }
.seat-card.self .seat-ph { border-color: #2ecc71; box-shadow: 0 0 0 2px rgba(46,204,113,.25); }
.seat-ph img { width: 100%; height: 100%; object-fit: cover; }
.seat-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seat-coins { position: absolute; top: 4px; left: 4px; z-index: 3; display: inline-flex; align-items: center; gap: 1px; background: #1a1d27cc; border: 1px solid #ffd16655; color: #ffd166; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 999px; }
.seat-coins svg { width: 11px; height: 11px; }
.seat-muted { position: absolute; top: 4px; right: 4px; z-index: 3; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; background: rgba(255,91,91,.9); color: #fff; border-radius: 50%; font-size: 9px; }
.seat-muted svg { width: 10px; height: 10px; }
.seat-exit { position: absolute; top: 4px; right: 4px; z-index: 4; width: 18px; height: 18px; border: none; border-radius: 50%; background: rgba(255,91,91,.92); color: #fff; font-size: 9px; font-weight: 900; cursor: pointer; }
.seat-name { margin-top: -12px; position: relative; z-index: 2; background: #12141ccc; color: #fff; font-size: 10px; font-weight: 700; text-align: center; padding: 3px 3px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-actions { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; z-index: 3; }
.seat-ctl { width: 24px; height: 24px; border: none; border-radius: 50%; background: #12141ccc; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.seat-ctl svg { width: 11px; height: 11px; }
.seat-ctl:hover { background: #2a2f3d; }
.seat-empty { cursor: pointer; }
.seat-empty .seat-ph { background: #1e2f55; border-color: #2c4478; display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.seat-empty:hover .seat-ph { background: #27406f; border-color: #3a5a94; }
.se-plus { font-size: 18px; color: #7f95c4; font-weight: 300; line-height: 1; }

/* Katılım modalı */
.seat-modal { position: fixed; inset: 0; z-index: 200; background: rgba(10,12,18,.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.seat-modal-box { background: #1a1d27; border: 1px solid #323848; border-radius: 20px; padding: 26px 22px; width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.sm-title { font-size: 18px; font-weight: 900; }
.sm-sub { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-bottom: 6px; }
.sm-btn { background: var(--grad); border: none; color: #fff; font-weight: 800; font-size: 15px; padding: 13px 0; border-radius: 999px; cursor: pointer; transition: filter .15s, transform .1s; }
.sm-btn.sm-video { background: linear-gradient(135deg, #2ecc71, #16a085); }
.sm-btn:hover { filter: brightness(1.1); }
.sm-btn:active { transform: scale(.98); }
.sm-cancel { background: transparent; border: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 6px 0; }
.sm-cancel:hover { color: var(--text); }
