/* ADIM 234 (madde 16) — 101 OKEY ÇANAĞI. KULLANICI SEÇİMİ: tasarım A "Altın Çanak" (lacivert cam + altın çerçeve, paralarla dolu çanak, büyük altın
   rakamlar, altta galibiyet ilerlemesi). Yer: lobide oyun şeridinin (#gxTabsKap) hemen altı, #lobbyMainCard'ın üstü — YALNIZ 101 Okey sekmesi açıkken.
   Profil penceresinde "Çanak ve İstatistik" sekmesi (.okcp). Canlı artış: yukarıdan para düşer, rakam yuvarlanır, ışık süzülür — yalnız transform /
   opacity; azaltılmış harekette ve Hafif Mod'da (html.ok-lite) sade. Sürekli dönen animasyon YOK (çizim yükü — madde 12 (c) ölçümü). Kod: assets/js/okey-canak.js */
.okc-tanim { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.okc-afis { box-sizing: border-box; margin: 0 0 16px; position: relative; font-family: inherit; }
.okc-afis *, .okcp * { box-sizing: border-box; }
body.gx-game-tab .okc-afis, body.okey-kapali .okc-afis, body:has(#lobbyMainCard[hidden]) .okc-afis { display: none !important; }
/* ADIM 241 (1 Aralık) — afiş artık BEYAZ panelin (#lobbyMainCard) içinde, açık masaların hemen üstünde: tasarım A aynen; yalnız beyaz zemine uyum
   (koyu sitede işe yarayan geniş koyu gölge beyazda kirli duruyordu → dar, lacivert tonlu gölge + ince altın dış çizgi; üstte / altta boşluk). */
#lobbyMainCard .okc-afis { margin: 2px 0 18px; }
#lobbyMainCard .okc-kart { box-shadow: 0 12px 26px -14px rgba(13, 25, 68, .55), 0 2px 6px rgba(13, 25, 68, .12), inset 0 1px 0 rgba(255, 255, 255, .14); }
@media (max-width: 600px) { #lobbyMainCard .okc-afis { margin: 0 0 14px; } }

.okc-kart { position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; padding: 20px 26px 18px; color: #fff;
  background:
    radial-gradient(70% 140% at 9% 45%, rgba(255, 196, 64, .34) 0%, rgba(255, 196, 64, 0) 55%),
    radial-gradient(60% 120% at 100% 0%, rgba(120, 150, 255, .28), rgba(0, 0, 0, 0) 60%),
    linear-gradient(135deg, #0d1944 0%, #1b2d6e 48%, #0f1b4b 100%);
  box-shadow: 0 20px 44px -14px rgba(5, 10, 40, .65), inset 0 1px 0 rgba(255, 255, 255, .14);
  display: grid; grid-template-columns: 178px minmax(0, 1fr) 240px; grid-template-areas: "kase orta yan" "durum durum durum";
  column-gap: 22px; row-gap: 14px; align-items: center; }
/* altın çerçeve (maske — boyama bir kez) */
.okc-kart::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.8px; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, #fff0b8, #c48a26 26%, #fff4cc 50%, #b37b1d 74%, #ffe4a0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* durağan ışık bandı (tasarımdaki gibi) */
.okc-kart::after { content: ""; position: absolute; top: -50%; bottom: -50%; left: 44%; width: 140px; transform: rotate(20deg); pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .13), rgba(255, 255, 255, 0)); }
.okc-fx { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(circle, rgba(255, 236, 170, .9) 0 1px, transparent 1.6px), radial-gradient(circle, rgba(255, 255, 255, .6) 0 .8px, transparent 1.4px);
  background-size: 46px 38px, 29px 31px; background-position: 0 0, 13px 17px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 40%, transparent 70%, #000); mask-image: linear-gradient(90deg, #000, transparent 40%, transparent 70%, #000); }
.okc-kase { grid-area: kase; width: 100%; height: auto; display: block; position: relative; z-index: 1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.okc-orta { grid-area: orta; position: relative; z-index: 1; min-width: 0; }
.okc-etiket { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 13px; letter-spacing: .34em; font-weight: 800; color: #ffd978; }
.okc-canli { letter-spacing: .06em; font-size: 11px; font-weight: 800; padding: 3px 10px 3px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(46, 204, 113, .16); color: #8dffbb; border: 1px solid rgba(46, 204, 113, .5); }
.okc-canli i { width: 7px; height: 7px; border-radius: 50%; background: #2ee57a; box-shadow: 0 0 0 4px rgba(46, 229, 122, .2); }
.okc-tutar { display: flex; align-items: center; gap: 14px; margin: 8px 0 6px; min-width: 0; }
.okc-para { width: 50px; height: 50px; flex: 0 0 auto; filter: drop-shadow(0 0 12px rgba(255, 200, 80, .65)); }
.okc-sayi { font-size: 64px; line-height: 1; font-weight: 900; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(180deg, #fffbe8 0%, #ffe08a 36%, #f0ae32 60%, #ffdf88 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(110, 62, 0, .6)) drop-shadow(0 0 20px rgba(255, 190, 60, .45)); }
.okc-arti { font-size: 14px; font-weight: 900; color: #0e5a2a; background: linear-gradient(180deg, #c6ffda, #5be68f); padding: 4px 11px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(46, 229, 122, .38); transform: translateY(-18px) rotate(-4deg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.okc-arti[hidden] { display: none; }
.okc-alt { font-size: 13.5px; color: rgba(226, 233, 255, .82); }
.okc-yan { grid-area: yan; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.okc-sayac { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.okc-halka { width: 54px; height: 54px; flex: 0 0 auto; }
.okc-sayac .k { font-size: 12px; color: rgba(222, 230, 255, .8); }
.okc-sayac .t { font-size: 23px; font-weight: 800; color: #fff; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.okc-sart { font-size: 12.5px; font-weight: 700; color: #ffe7a6; padding: 8px 12px; border-radius: 12px; background: rgba(255, 200, 80, .10); border: 1px dashed rgba(255, 210, 120, .5); text-align: center; }
.okc-durum { grid-area: durum; position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 11px 14px; border-radius: 16px; background: rgba(0, 0, 0, .24); border: 1px solid rgba(255, 255, 255, .09); }
.okc-kim { font-size: 13px; color: rgba(226, 233, 255, .88); white-space: nowrap; }
.okc-davet { flex: 1; font-weight: 700; color: #ffe7a6; white-space: normal; }
.okc-pip { display: flex; gap: 6px; flex: 1; min-width: 0; }
.okc-pip i { flex: 1; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .11); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45); }
.okc-pip i.on { background: linear-gradient(180deg, #fff2b8, #f2b534); box-shadow: 0 0 10px rgba(255, 196, 64, .6); }
.okc-pip.okc-cubuk { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .11); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45); overflow: hidden; }
.okc-cubuk-dolu { display: block; height: 100%; border-radius: 6px; background: linear-gradient(180deg, #fff2b8, #f2b534); }
.okc-say { font-weight: 800; color: #fff; white-space: nowrap; font-size: 14px; font-variant-numeric: tabular-nums; }
.okc-say small { font-weight: 600; color: rgba(226, 233, 255, .78); font-size: 12.5px; margin-left: 6px; }
.okc-dugme { white-space: nowrap; font-weight: 800; font-size: 14px; color: #3b2700; padding: 10px 16px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(180deg, #ffeaa8, #f1b53a); box-shadow: 0 6px 16px rgba(243, 183, 60, .38), inset 0 1px 0 rgba(255, 255, 255, .75);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .15s ease; }
.okc-dugme:hover { transform: translateY(-1px); color: #3b2700; }
.okc-dugme:focus-visible { outline: 3px solid #ffe7a6; outline-offset: 2px; }
.okc-dugme.okc-ikincil { background: rgba(255, 255, 255, .08); color: #ffe7a6; box-shadow: inset 0 0 0 1px rgba(255, 214, 120, .45); }
.okc-dugme.okc-ikincil:hover { color: #fff3c4; }

/* ---- canlı artış: düşen paralar (transform + opacity), ışık süzmesi (transform), "+tutar" (transform + opacity) — tek seferlik */
.okc-yagmur { position: absolute; left: 26px; top: 0; width: 178px; height: 100%; pointer-events: none; z-index: 3; overflow: hidden; }
.okc-dusen { position: absolute; top: 0; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(circle at 38% 34%, #fffbe2 0, #f3c04b 58%, #c58415 100%); box-shadow: inset 0 0 0 1.5px rgba(154, 100, 16, .8), inset 0 0 0 4px rgba(255, 243, 196, .45);
  animation: okcDus 1.15s cubic-bezier(.35, .05, .6, 1) forwards; }
@keyframes okcDus {
  0% { opacity: 0; transform: translate3d(0, -30px, 0) rotate(0deg) scale(.9); }
  15% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(0, 92px, 0) rotate(200deg) scale(.75); }
}
.okc-isik { position: absolute; top: -40%; bottom: -40%; left: 0; width: 160px; pointer-events: none; z-index: 2; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 244, 200, 0), rgba(255, 244, 200, .38), rgba(255, 244, 200, 0)); transform: translate3d(-200px, 0, 0) rotate(18deg); }
.okc-parla .okc-isik { animation: okcIsik 1.1s ease-out 1; }
@keyframes okcIsik {
  0% { opacity: 0; transform: translate3d(-200px, 0, 0) rotate(18deg); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(1400px, 0, 0) rotate(18deg); }
}
.okc-arti.okc-yeni { animation: okcArti .6s cubic-bezier(.2, 1.4, .4, 1) 1; }
@keyframes okcArti {
  0% { opacity: 0; transform: translateY(-6px) rotate(-4deg) scale(.6); }
  100% { opacity: 1; transform: translateY(-18px) rotate(-4deg) scale(1); }
}

/* ---- tablet */
@media (max-width: 900px) {
  .okc-kart { grid-template-columns: 130px minmax(0, 1fr); grid-template-areas: "kase orta" "yan yan" "durum durum"; padding: 18px 18px 16px; column-gap: 16px; }
  .okc-yan { flex-direction: row; }
  .okc-sayac { flex: 1.2; }
  .okc-sart { flex: 1; display: flex; align-items: center; justify-content: center; }
  .okc-sayi { font-size: 52px; }
  .okc-yagmur { left: 18px; width: 130px; }
}
/* ---- telefon (tasarım A, telefon) */
@media (max-width: 600px) {
  .okc-afis { margin-bottom: 12px; }
  .okc-kart { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "kase orta" "yan yan" "durum durum"; padding: 15px 15px 14px; column-gap: 10px; row-gap: 11px; border-radius: 20px; }
  .okc-etiket { font-size: 10.5px; letter-spacing: .2em; gap: 6px 8px; }
  .okc-canli { font-size: 10px; padding: 2px 8px 2px 6px; }
  .okc-tutar { gap: 8px; margin: 6px 0 4px; }
  .okc-sayi { font-size: 40px; }
  .okc-para { display: none; }
  .okc-arti { font-size: 11.5px; padding: 3px 8px; transform: translateY(-12px) rotate(-4deg); }
  @keyframes okcArti { 0% { opacity: 0; transform: translateY(-4px) rotate(-4deg) scale(.6); } 100% { opacity: 1; transform: translateY(-12px) rotate(-4deg) scale(1); } }
  .okc-alt { font-size: 11.5px; }
  .okc-yan { flex-direction: row; gap: 8px; }
  .okc-sayac { flex: 1.2; padding: 7px 9px; gap: 8px; }
  .okc-halka { width: 38px; height: 38px; }
  .okc-sayac .t { font-size: 18px; }
  .okc-sayac .k { font-size: 10.5px; }
  .okc-sart { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 11px; padding: 6px 8px; }
  .okc-durum { flex-wrap: wrap; gap: 8px 10px; padding: 10px 11px; }
  .okc-say { margin-left: auto; font-size: 13px; }
  .okc-pip { order: 3; flex-basis: 100%; gap: 4px; }
  .okc-pip i { height: 10px; }
  .okc-dugme { order: 4; flex-basis: 100%; font-size: 13px; padding: 9px 12px; }
  .okc-misafir .okc-dugme { flex-basis: calc(50% - 5px); flex-grow: 1; }
  .okc-kim { font-size: 12px; }
  .okc-davet { flex-basis: 100%; }
  .okc-yagmur { left: 15px; width: 96px; }
  .okc-dusen { width: 16px; height: 16px; margin-left: -8px; }
}
@media (max-width: 360px) {
  .okc-sayi { font-size: 34px; }
  .okc-kart { grid-template-columns: 80px minmax(0, 1fr); }
}

/* ---- azaltılmış hareket / Hafif Mod: düşen para, ışık, büyüme yok; ağır gölgeler sade */
@media (prefers-reduced-motion: reduce) {
  .okc-yagmur, .okc-isik { display: none !important; }
  .okc-arti.okc-yeni { animation: none; }
  .okc-dugme { transition: none; }
}
html.ok-lite .okc-yagmur, html.ok-lite .okc-isik { display: none !important; }
html.ok-lite .okc-arti.okc-yeni { animation: none; }
html.ok-lite .okc-sayi { filter: none; }
html.ok-lite .okc-kase, html.ok-lite .okc-para { filter: none; }
html.ok-lite .okc-kart { box-shadow: 0 8px 18px -10px rgba(5, 10, 40, .6); }

/* =============================================================== PROFİL → "Çanak ve İstatistik" (tasarım A profil) */
/* sekme çubuğu tek satır; sığmazsa (telefonda) yana kayar */
.profile-modal-tabs:has(.okc-sekme) { gap: 2px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.profile-modal-tabs:has(.okc-sekme)::-webkit-scrollbar { display: none; }
.profile-modal-tabs:has(.okc-sekme) .profile-tab-btn { flex: 1 0 auto; white-space: nowrap; padding-left: 7px; padding-right: 7px; }
.okcp { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.okcp-hero { border-radius: 16px; padding: 14px 16px; color: #fff; display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden;
  background: radial-gradient(60% 140% at 0% 50%, rgba(255, 196, 64, .35), transparent 60%), linear-gradient(135deg, #0d1944, #1b2d6e);
  box-shadow: inset 0 0 0 1.5px rgba(255, 214, 120, .55); }
.okcp-hero svg { width: 58px; height: 50px; flex: 0 0 auto; }
.okcp-hero .k { font-size: 11px; letter-spacing: .22em; font-weight: 800; opacity: .92; color: #ffe7a6; }
.okcp-hero .v { font-size: 30px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fffbe8, #ffd76e 55%, #f0ae32); -webkit-background-clip: text; background-clip: text; color: transparent; }
.okcp-hero .cd { margin-left: auto; text-align: right; font-size: 11px; opacity: .95; color: rgba(226, 233, 255, .9); }
.okcp-hero .cd b { display: block; font-size: 18px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.okcp-kart { border-radius: 14px; padding: 12px 14px; background: #f5f7fc; border: 1px solid #e2e7f3; color: #1d2b55; }
.okcp-kart h5 { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: #24356e; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.okcp-kart h5 span { font-weight: 700; color: #5b6a8c; font-size: 12px; text-align: right; }
.okcp-pip { display: flex; gap: 5px; }
.okcp-pip i { flex: 1; height: 14px; border-radius: 5px; background: #dfe5f2; }
.okcp-pip i.on { background: linear-gradient(180deg, #ffe48a, #eaa821); box-shadow: 0 0 8px rgba(234, 168, 33, .5); }
.okcp-pip.okcp-cubuk { height: 14px; border-radius: 5px; background: #dfe5f2; overflow: hidden; }
.okcp-pip.okcp-cubuk b { display: block; height: 100%; background: linear-gradient(180deg, #ffe48a, #eaa821); }
.okcp-ilerleme { margin-top: 8px; font-size: 12.5px; color: #43537a; }
.okcp-ilerleme b { color: #1d2b55; }
.okcp-pay { display: flex; align-items: center; gap: 14px; }
.okcp-pay .p { font-size: 34px; font-weight: 900; line-height: 1; color: #a86c08; font-variant-numeric: tabular-nums; }
.okcp-pay .x { font-size: 12px; color: #43537a; line-height: 1.5; }
.okcp-pay .x b { color: #1d2b55; }
.okcp-cubuk2 { margin-top: 9px; height: 8px; border-radius: 4px; background: #dfe5f2; overflow: hidden; }
.okcp-cubuk2 i { display: block; height: 100%; width: 100%; border-radius: 4px; background: linear-gradient(90deg, #ffd76e, #eaa821); transform-origin: left center; }
.okcp-not { margin: 8px 0 0; font-size: 11.5px; color: #5b6a8c; line-height: 1.45; }
.okcp-liste { list-style: none; margin: 0; padding: 0; }
.okcp-liste li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid #e4e9f4; font-size: 12.5px; }
.okcp-liste li:first-child { border-top: 0; }
.okcp-liste .s { color: #5b6a8c; font-variant-numeric: tabular-nums; }
.okcp-liste .m b { color: #1d2b55; }
.okcp-liste .m small { display: block; color: #6f7c99; font-size: 11px; }
.okcp-liste .ok { font-weight: 800; color: #137a43; font-size: 12px; }
.okcp-liste li.okcp-disarida .m b, .okcp-liste li.okcp-disarida .ok { color: #8a96b3; }
.okcp-bos { margin: 2px 0; font-size: 12.5px; color: #5b6a8c; line-height: 1.5; }
.okcp-sayilar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.okcp-sayilar div { border-radius: 12px; padding: 9px 6px; text-align: center; background: #f5f7fc; border: 1px solid #e2e7f3; }
.okcp-sayilar b { display: block; font-size: 19px; font-weight: 900; color: #1d2b55; font-variant-numeric: tabular-nums; }
.okcp-sayilar span { font-size: 10.5px; color: #5b6a8c; }
.okcp-onceki { margin: 0; font-size: 12px; color: #43537a; text-align: center; }
.okcp-onceki b { color: #137a43; }
.okcp-daha { display: block; text-align: center; font-weight: 800; font-size: 13.5px; padding: 11px; border-radius: 12px; text-decoration: none;
  color: #3b2700; background: linear-gradient(180deg, #ffeaa8, #f1b53a); }
.okcp-daha:hover { color: #3b2700; filter: brightness(1.04); }
@media (max-width: 420px) {
  .okcp-sayilar { grid-template-columns: repeat(2, 1fr); }
  .okcp-hero { padding: 12px; gap: 10px; }
  .okcp-hero svg { width: 48px; height: 42px; }
  .okcp-hero .k { font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
  .okcp-hero .v { font-size: 26px; }
}
