:root {
  --bg: #14101e; --panel: #1d1729; --panel2: #271f37; --line: #3a2f52;
  --text: #f1ecf8; --muted: #a79cba; --gold: #f2b632; --gold2: #ffd968;
  --up: #2fd07a; --dn: #ff5a6a;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overscroll-behavior: none; }
#c { position: fixed; inset: 0; touch-action: none; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.hidden { display: none !important; }

/* üst bar */
#top { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: linear-gradient(180deg, rgba(20,16,30,.92), rgba(20,16,30,.6)); backdrop-filter: blur(6px); z-index: 5; }
.logo { height: 26px; width: auto; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.logo span, .biglogo span { color: var(--gold); }
#roomName { flex: 1; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#online { font-size: 12px; color: var(--up); white-space: nowrap; }
#ticker { position: fixed; top: 42px; left: 0; right: 0; display: flex; gap: 14px; padding: 5px 12px; font-size: 12px;
  overflow-x: auto; scrollbar-width: none; background: rgba(20,16,30,.55); z-index: 5; white-space: nowrap; }
#ticker::-webkit-scrollbar { display: none; }
#ticker b { color: var(--gold); }
#ticker i { font-style: normal; font-weight: 700; }
.up { color: var(--up); } .dn { color: var(--dn); }

/* sağ dock */
#dock { position: fixed; right: 10px; top: 84px; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
#dock button { width: 54px; height: 54px; border-radius: 16px; background: rgba(29,23,41,.88); border: 1px solid var(--line);
  font-size: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
#dock small { font-size: 9.5px; color: var(--muted); margin-top: 3px; }
#dock button:active { transform: scale(.94); }

/* sohbet */
#log { position: fixed; left: 10px; right: 76px; bottom: calc(66px + var(--safe-b)); display: flex; flex-direction: column; gap: 3px;
  pointer-events: none; z-index: 4; }
#log .line { align-self: flex-start; max-width: 100%; font-size: 12.5px; padding: 4px 9px; border-radius: 10px;
  background: rgba(20,16,30,.62); animation: fadeLine 14s forwards; overflow-wrap: anywhere; }
#log .line b { font-weight: 700; }
#log .v1 b { color: #e09a5b; } #log .v2 b { color: #cfd8e4; } #log .v3 b { color: var(--gold2); }
#log .v4 b { background: linear-gradient(90deg, #7ff0ff, #c9a6ff, #ff9ee8); -webkit-background-clip: text; background-clip: text; color: transparent; }
#log .v3 { border: 1px solid rgba(255,210,74,.35); } #log .v4 { border: 1px solid rgba(201,182,255,.45); }
@keyframes fadeLine { 0%, 75% { opacity: 1 } 100% { opacity: .25 } }

#bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 10px calc(10px + var(--safe-b));
  background: linear-gradient(0deg, rgba(20,16,30,.95), rgba(20,16,30,.75)); z-index: 6; }
#bar input { flex: 1; min-width: 0; height: 42px; border-radius: 21px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); padding: 0 16px; font-size: 16px; outline: none; }
#bar input:focus { border-color: var(--gold); }
#bar button { width: 42px; height: 42px; border-radius: 21px; background: var(--panel2); font-size: 20px; flex: none; }
#bSend { background: var(--gold) !important; color: #1a1420; font-weight: 800; }

#emotes { position: fixed; left: 10px; bottom: calc(64px + var(--safe-b)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; z-index: 7; }
#emotes button { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted); padding: 6px 10px; border-radius: 12px; background: var(--panel2); }
#emotes span { font-size: 22px; }

/* panel */
#sheet { position: fixed; inset: 0; background: rgba(8,6,14,.55); z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
.sheetInner { position: relative; width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto; background: var(--panel);
  border-radius: 22px 22px 0 0; border: 1px solid var(--line); padding: 18px 16px calc(18px + var(--safe-b)); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0 } }
#sheetClose { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 17px; background: var(--panel2); }
#sheetBody h2 { margin: 0 40px 12px 0; font-size: 19px; }
#sheetBody h2 small { font-family: Georgia, serif; font-style: italic; color: var(--gold); font-weight: 400; font-size: 13px; margin-left: 6px; }
.hint { color: var(--muted); font-size: 13px; margin: -4px 0 12px; }
.soon { color: var(--muted); font-size: 12px; text-align: center; margin-top: 14px; }
.primary { display: block; width: 100%; height: 48px; border-radius: 14px; margin-top: 14px; font-weight: 800; font-size: 16px;
  color: #1a1420; background: linear-gradient(180deg, var(--gold2), var(--gold)); }

/* harita */
.rooms { display: flex; flex-direction: column; gap: 8px; }
.room { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel2); text-align: left; border: 1px solid transparent; }
.room.here { border-color: var(--gold); }
.ri { font-size: 28px; } .rn { flex: 1; font-weight: 700; } .rn small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.rc { font-size: 13px; color: var(--up); }

/* dolap */
.wtop { display: flex; align-items: center; gap: 12px; background: radial-gradient(circle at 30% 60%, #2c2340, #1a1426); border-radius: 18px; padding: 6px; border: 1px solid var(--line); }
#wPrev, #pPrev { width: 132px; height: 150px; flex: none; }
.wbrand { flex: 1; min-width: 0; }
.bname { font-family: Georgia, "Times New Roman", serif; font-size: 21px; letter-spacing: 2px; font-weight: 700; }
.btag { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 2px; }
.bitem { margin-top: 10px; font-size: 14px; font-weight: 600; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0 10px; scrollbar-width: none; }
.tab { padding: 7px 13px; border-radius: 18px; background: var(--panel2); font-size: 13px; white-space: nowrap; color: var(--muted); }
.tab.on { background: var(--gold); color: #1a1420; font-weight: 700; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sw { width: 32px; height: 32px; border-radius: 16px; border: 2px solid rgba(255,255,255,.15); }
.sw.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.item { position: relative; display: flex; flex-direction: column; align-items: center; padding: 6px 4px 8px; border-radius: 14px;
  background: var(--panel2); border: 1px solid transparent; }
.item canvas { width: 64px; height: 72px; }
.item.on { border-color: var(--gold); background: #2f2540; }
.item.locked { opacity: .55; } .item.locked canvas { filter: grayscale(.6); }
.item .brand { font-family: Georgia, serif; font-size: 9.5px; letter-spacing: 1px; color: var(--gold); margin-top: 2px; text-align: center; }
.item .iname { font-size: 11.5px; text-align: center; line-height: 1.2; }
.vtag { position: absolute; top: 5px; right: 5px; font-size: 9px; padding: 2px 5px; border-radius: 8px; background: rgba(0,0,0,.45); }
/* marka renkleri */
.br-maison .bname, .item.br-maison .brand { color: #d8b25a; }
.br-cold .bname, .item.br-cold .brand { color: #9fe2ff; }
.br-whale .bname, .item.br-whale .brand { color: #8fb3ff; }
.br-lambo .bname, .item.br-lambo .brand { color: #ffcf3f; font-style: italic; }
.br-bull .bname, .item.br-bull .brand { background: linear-gradient(90deg, #fff1a8, #e9b830, #a8740a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.br-diamond .bname, .item.br-diamond .brand { background: linear-gradient(90deg, #7ff0ff, #c9a6ff, #ff9ee8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.br-degen .bname, .item.br-degen .brand { color: #ff6b8b; font-family: system-ui; font-weight: 900; }
.br-satoshi .bname, .item.br-satoshi .brand { color: #f7931a; }
.br-basic .bname, .item.br-basic .brand { color: var(--muted); }

/* VIP */
.vcard { background: var(--panel2); border-radius: 16px; padding: 12px; margin-bottom: 10px; border: 1px solid transparent; }
.vcard.on { border-color: var(--gold); }
.vhead { font-weight: 800; font-size: 16px; } .vhead em { font-style: normal; color: var(--gold); font-size: 13px; }
.vcard.v1 .vhead { color: #e09a5b; } .vcard.v2 .vhead { color: #d6dee8; } .vcard.v3 .vhead { color: var(--gold2); }
.vcard.v4 .vhead { background: linear-gradient(90deg, #7ff0ff, #c9a6ff, #ff9ee8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vprev { width: 100%; height: 60px; display: block; margin: 6px 0; }
.vcard ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.vtest { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: #3a2f52; font-size: 13px; }

/* profil */
.prof { display: flex; gap: 12px; align-items: center; }
.pname { margin: 0 !important; }
.pvip { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.pname.v3, .pvip.v3 { color: var(--gold2); } .pname.v4 span { background: linear-gradient(90deg, #7ff0ff, #c9a6ff, #ff9ee8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.worn { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.worn b { font-family: Georgia, serif; letter-spacing: 1px; font-size: 11px; margin-right: 4px; }
.pact { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.pact button { padding: 12px 6px; border-radius: 14px; background: var(--panel2); font-size: 13.5px; font-weight: 600; }
.pact small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; }

/* giriş */
#login { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(circle at 50% 30%, #3a2a5c 0%, #14101e 70%); }
.lcard { width: 100%; max-width: 360px; text-align: center; }
.biglogo { font-size: 44px; font-weight: 900; letter-spacing: .5px; }
.slogan { color: var(--muted); margin: 6px 0 22px; }
#loginName { width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-size: 17px; padding: 0 16px; outline: none; text-align: center; }
#loginMsg { color: var(--dn); min-height: 20px; font-size: 13px; }
.tiny { font-size: 11px; color: var(--muted); }

#toast { position: fixed; left: 50%; top: 92px; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; z-index: 30;
  background: rgba(29,23,41,.96); border: 1px solid var(--gold); padding: 9px 16px; border-radius: 20px; font-size: 13.5px; transition: .25s; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.tgbtn { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 14px; text-decoration: none; font-weight: 800; font-size: 16.5px;
  background: linear-gradient(180deg, #45b4f5, #229ed9); color: #fff; margin-bottom: 6px; }
#tgWait p { font-size: 14px; color: #ddd5ea; margin: 10px 0 6px; }
.tgcode { font-size: 34px; font-weight: 900; letter-spacing: 8px; color: var(--gold); margin: 4px 0 2px; }
#guestBox { margin-top: 12px; } #guestBox .primary { width: 100%; margin-top: 8px; }
.cpcur { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.cpcur button { padding: 14px 10px; border-radius: 14px; background: var(--panel2); font-weight: 800; font-size: 15px; border: 1.5px solid transparent; }
.cpcur button small { display: block; font-weight: 600; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.cpbox { background: var(--panel2); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.cpbox .lbl { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.cpbox .val { font-weight: 800; font-size: 15px; word-break: break-all; display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 3px; }
.cpbox .val button { flex: none; padding: 6px 10px; border-radius: 10px; background: #3a2f52; font-size: 12px; font-weight: 700; }
.cpbox.memo { border: 1.5px solid var(--gold); } .cpbox.memo .val { font-size: 22px; letter-spacing: 2px; color: var(--gold); }
.cpqr { display: flex; justify-content: center; margin-top: 12px; } .cpqr canvas, .cpqr img { background: #fff; padding: 8px; border-radius: 12px; width: 180px; height: 180px; image-rendering: pixelated; }
.cpgo { display: block; text-align: center; margin-top: 12px; padding: 13px; border-radius: 14px; font-weight: 800; text-decoration: none; background: linear-gradient(180deg, #45b4f5, #229ed9); color: #fff; }
.cpcheck { width: 100%; margin-top: 8px; padding: 12px; border-radius: 14px; font-weight: 800; background: linear-gradient(180deg, #ffd968, #f2b632); color: #1a1420; }
.cpstat { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
.tglink { display: inline-block; margin: 4px 0 10px; color: #6ab7ff; text-decoration: none; font-weight: 600; font-size: 14px; }

/* v2: görsel tabanlı dünya */
.room img { width: 92px; height: 52px; object-fit: cover; border-radius: 10px; flex: none; background: #0f0c18; }
.room.locked { opacity: .6; }
.item img { width: 72px; height: 100px; object-fit: contain; }
.item.fx .fxi { font-size: 34px; height: 100px; display: flex; align-items: center; }
#wPrev, #pPrev { width: 130px; height: 150px; }

/* arkadaşlar + fısıltı + jeton */
#coins { font-size: 12.5px; color: var(--gold2); background: rgba(242,182,50,.12); border: 1px solid rgba(242,182,50,.35); padding: 3px 9px; border-radius: 12px; cursor: pointer; white-space: nowrap; }
#dock button { position: relative; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--dn); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.flist h3 { font-size: 13px; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
.frow { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--panel2); border-radius: 14px; margin-bottom: 8px; }
.frow .finfo { flex: 1; min-width: 0; }
.frow .finfo small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.frow .fn { font-weight: 700; }
.fn.v3 { color: var(--gold2); } .fn.v4 { background: linear-gradient(90deg, #7ff0ff, #c9a6ff, #ff9ee8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.frow button { height: 36px; min-width: 40px; padding: 0 10px; border-radius: 12px; background: #3a2f52; font-size: 16px; }
.frow button.ok { background: var(--gold); color: #1a1420; font-weight: 800; font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 5px; background: #5a5070; flex: none; }
.dot.on { background: var(--up); box-shadow: 0 0 8px var(--up); }
.wbox { display: flex; gap: 8px; }
.wbox input { flex: 1; min-width: 0; height: 46px; border-radius: 14px; border: 1px solid #7b4dff; background: var(--panel); color: var(--text); padding: 0 14px; font-size: 16px; outline: none; }
.wbox button { padding: 0 18px; border-radius: 14px; background: linear-gradient(180deg, #9b7bff, #7b4dff); color: #fff; font-weight: 800; }
#log .line.whisper { background: rgba(80,40,140,.78); border: 1px dashed rgba(201,182,255,.7); }
#log .line.whisper b { color: #d9ccff; }
.pact button.done { color: var(--up); }
.pact button.okb { background: var(--gold); color: #1a1420; }

/* masa oyunları */
#playBtn { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(70px + var(--safe-b)); z-index: 7; padding: 12px 22px; border-radius: 24px;
  background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1420; font-weight: 800; font-size: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.4); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 6px 26px rgba(242,182,50,.55); } }
.tvroot canvas { width: 100%; max-width: 520px; aspect-ratio: 360 / 300; display: block; margin: 0 auto; border-radius: 12px; touch-action: manipulation; }
.tvhead { display: flex; justify-content: center; margin: 6px 0; font-size: 14px; }
.tvp { display: flex; align-items: center; gap: 6px; }
.tvturn { color: var(--up); font-size: 12px; }
.chk { width: 14px; height: 14px; border-radius: 7px; display: inline-block; border: 1px solid #000; }
.chk.w { background: #f2ecdf; } .chk.b { background: #1d1d28; border-color: #777; }
.tvmsg { text-align: center; min-height: 20px; color: var(--gold2); font-weight: 700; font-size: 14px; }
.tvbtns { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.tvbtns button { padding: 11px 18px; border-radius: 14px; background: var(--panel2); font-weight: 700; }
.tvbtns button.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1420; }
.tvbtns button.big { font-size: 18px; padding: 13px 30px; }
.tvbtns button.ghost { background: none; color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); font-size: 13px; }

/* okey */
.sheetInner.wide { max-width: 720px; }
.ok-table { background: radial-gradient(circle at 50% 45%, #2f6b52, #1d4535); border-radius: 18px; padding: 10px; border: 3px solid #5a3418; }
.ok-row { display: flex; justify-content: center; align-items: center; gap: 8px; }
.ok-row.mid { justify-content: space-between; margin-top: 8px; }
.ok-opp { background: rgba(0,0,0,.28); border-radius: 12px; padding: 6px 8px; text-align: center; min-width: 76px; border: 2px solid transparent; }
.ok-opp.turn { border-color: var(--gold); box-shadow: 0 0 12px rgba(242,182,50,.5); }
.ok-opp b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
.ok-opp small { font-size: 11px; color: #cfe; }
.ok-top { display: flex; justify-content: center; margin-top: 4px; min-height: 34px; }
.ok-center { display: flex; gap: 8px; align-items: center; }
.ok-pile, .ok-left, .ok-ind { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: #dfe; }
.ok-pile { width: 46px; height: 62px; border-radius: 8px; background: repeating-linear-gradient(0deg, #efe6cf 0 4px, #d9cfb5 4px 5px); color: #333; justify-content: center; font-weight: 800; font-size: 15px; border: 2px solid transparent; }
.ok-pile small { color: #555; font-size: 9px; font-weight: 600; }
.ok-pile.can, .ok-left.can { border: 2px solid var(--gold); border-radius: 10px; box-shadow: 0 0 12px rgba(242,182,50,.6); cursor: pointer; }
.ok-left { padding: 2px 4px; border: 2px solid transparent; }
.ok-tile { width: 30px; height: 42px; border-radius: 6px; background: linear-gradient(180deg, #fffaf0, #eadfc6); box-shadow: 0 2px 0 #b9ab8a, 0 3px 6px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center; position: relative; font-weight: 900; font-size: 18px; font-family: system-ui; }
.ok-tile.mini { width: 24px; height: 33px; font-size: 14px; }
.ok-tile.empty { background: rgba(0,0,0,.15); box-shadow: none; }
.ok-tile.joker { background: linear-gradient(180deg, #fff6c9, #f0d77a); }
.ok-tile.joker i { position: absolute; top: 1px; right: 3px; font-size: 9px; color: #b8860b; font-style: normal; }
.ok-tile.fake span { font-size: 20px; }
.ok-rack { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; margin-top: 10px; padding: 8px 6px; border-radius: 12px;
  background: linear-gradient(180deg, #8a5a32, #6b4423); box-shadow: inset 0 -4px 0 #4a2a12; }
.ok-slot { aspect-ratio: 30 / 42; border-radius: 5px; background: rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ok-slot .ok-tile { width: 100%; height: 100%; font-size: clamp(12px, 3.4vw, 18px); }
.ok-slot.sel .ok-tile { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--gold), 0 6px 10px rgba(0,0,0,.4); }
.ok-wait { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ok-seat { padding: 14px; border-radius: 12px; background: var(--panel2); text-align: center; color: var(--muted); }
.ok-seat.full { color: var(--text); border: 1px solid var(--gold); }
.ok-win { text-align: center; margin: 8px 0; } .ok-win div { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; margin-top: 4px; }
.ok-timer { margin-left: 8px; color: var(--muted); } .ok-timer.low { color: var(--dn); }
.tvbtns button.fin { background: linear-gradient(180deg, #4be08f, #23a865); color: #062; }

/* engelle / şikâyet / moderasyon */
.pact2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pact2 button { padding: 10px; border-radius: 12px; background: none; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pmod { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; padding: 10px; border-radius: 12px; background: rgba(255,90,106,.08); border: 1px dashed rgba(255,90,106,.4); }
.pmod span { font-size: 12px; color: var(--dn); font-weight: 700; width: 100%; }
.pmod button { padding: 7px 10px; border-radius: 10px; background: var(--panel2); font-size: 12.5px; }
.pmod button.danger { background: #7a1f2b; }
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.rr { padding: 12px 8px; border-radius: 12px; background: var(--panel2); font-size: 13.5px; border: 1px solid transparent; }
.rr.on { border-color: var(--dn); background: rgba(255,90,106,.15); }
#rNote { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 0 12px; font-size: 15px; outline: none; }
.primary:disabled { opacity: .45; }

/* ses + DJ */
#snd { font-size: 16px; padding: 2px 6px; border-radius: 10px; background: rgba(255,255,255,.06); }
#djBar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(66px + var(--safe-b)); z-index: 7; display: flex; gap: 6px; align-items: center;
  padding: 8px 10px; border-radius: 18px; background: rgba(20,16,30,.92); border: 1px solid #ff4fd8; box-shadow: 0 0 20px rgba(255,79,216,.35); max-width: calc(100vw - 20px); overflow-x: auto; }
#djBar span { font-weight: 800; color: #ff9ee8; font-size: 13px; white-space: nowrap; }
#djBar button { padding: 8px 10px; border-radius: 12px; background: var(--panel2); font-size: 12.5px; white-space: nowrap; }
#djBar button.on { background: #7b4dff; }
#djBar button.drop { background: linear-gradient(180deg, #ff7a59, #e2334a); font-weight: 800; }

/* kurallar + rehber */
#terms { position: fixed; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(circle at 50% 30%, rgba(58,42,92,.97), rgba(20,16,30,.98) 70%); }
.tcard { width: 100%; max-width: 420px; }
.tcard .biglogo { font-size: 36px; text-align: center; }
.tcard h3 { text-align: center; margin: 4px 0 12px; }
.tcard ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.tcard li { background: var(--panel); border-radius: 12px; padding: 10px 12px; font-size: 14.5px; }
.tlink { display: block; text-align: center; color: #8fc1ff; font-size: 14px; margin-bottom: 12px; }
.tcheck { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.tcheck input { width: 22px; height: 22px; flex: none; accent-color: var(--gold); }
#coach { position: fixed; inset: 0; z-index: 22; pointer-events: none; }
#coach .cbox { position: absolute; left: 50%; transform: translateX(-50%); width: min(340px, calc(100vw - 32px)); pointer-events: auto;
  background: rgba(29,23,41,.97); border: 1.5px solid var(--gold); border-radius: 18px; padding: 14px 16px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: up .25s ease-out; }
#coachText { font-size: 15px; line-height: 1.45; }
.cbtns { display: flex; justify-content: space-between; margin-top: 12px; }
.cbtns button { padding: 9px 14px; border-radius: 12px; color: var(--muted); }
.cbtns .cnext { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1420; font-weight: 800; }
#coachDots { display: flex; gap: 5px; justify-content: center; margin-top: 8px; }
#coachDots i { width: 6px; height: 6px; border-radius: 3px; background: #4a3f60; } #coachDots i.on { background: var(--gold); width: 16px; }
.coach-hi { position: relative; z-index: 23; box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(242,182,50,.7) !important; animation: hi 1.2s infinite; }
@keyframes hi { 50% { box-shadow: 0 0 0 5px var(--gold), 0 0 36px rgba(242,182,50,.9); } }
.room .rn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room .rn small { overflow: hidden; text-overflow: ellipsis; }
#roomName { min-width: 0; }

/* mağaza */
.hint.warn { color: var(--dn); font-weight: 700; }
.packs { display: flex; flex-direction: column; gap: 10px; }
.pack { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; text-align: left; padding: 14px 16px; border-radius: 16px; background: var(--panel2); border: 1.5px solid transparent; }
.pack.best { border-color: var(--gold); }
.pack .pc { font-size: 20px; font-weight: 900; }
.pack small { grid-column: 1; color: var(--muted); font-size: 12.5px; }
.pack .pstar { grid-row: 1 / span 2; grid-column: 2; align-self: center; background: linear-gradient(180deg, #ffd968, #f2b632); color: #1a1420; font-weight: 900; padding: 9px 14px; border-radius: 12px; }
.ptag { position: absolute; top: -9px; left: 14px; font-size: 10.5px; font-weight: 800; background: #7b4dff; color: #fff; padding: 2px 8px; border-radius: 8px; }
.ptag.gold { background: var(--gold); color: #1a1420; }
.ptag2 { position: absolute; top: 5px; left: 5px; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 8px; background: rgba(242,182,50,.92); color: #1a1420; }
.vbuy { width: 100%; margin-top: 10px; padding: 11px; border-radius: 12px; font-weight: 800; background: linear-gradient(180deg, #ffd968, #f2b632); color: #1a1420; }

/* evler */
#homeBar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(66px + var(--safe-b)); z-index: 7; display: flex; gap: 6px; align-items: center;
  padding: 8px 10px; border-radius: 18px; background: rgba(20,16,30,.92); border: 1px solid var(--gold); max-width: calc(100vw - 20px); overflow-x: auto; }
#homeBar span { font-weight: 800; font-size: 13px; color: var(--gold2); white-space: nowrap; padding: 0 4px; }
#homeBar button { padding: 9px 12px; border-radius: 12px; background: var(--panel2); font-size: 13px; white-space: nowrap; }
#homeBar button.go { background: linear-gradient(180deg, #4be08f, #23a865); color: #062; font-weight: 800; }
#homeBar button.no { background: #5a2430; color: #fbb; }
.room.home { width: 100%; margin-bottom: 10px; border: 1px dashed var(--gold); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.fcard { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px; border-radius: 14px; background: var(--panel2); text-align: center; }
.fcard img { width: 80px; height: 64px; object-fit: contain; }
.fcard b { font-size: 12px; line-height: 1.2; } .fcard small { font-size: 11px; color: var(--muted); }
.fcard button { margin-top: 4px; padding: 7px 10px; border-radius: 10px; background: #3a2f52; font-size: 12.5px; font-weight: 700; width: 100%; }
.fcard button.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1420; }

/* şehir haritası */
.sheetInner.mapsheet { max-width: 480px; padding-left: 10px; padding-right: 10px; }
.citymap { position: relative; width: 100%; aspect-ratio: 768 / 1376; max-height: 72vh; margin: 0 auto; border-radius: 16px; overflow: hidden; }
.citymap img { width: 100%; height: 100%; object-fit: cover; display: block; }
@supports (aspect-ratio: 1) { .citymap { width: min(100%, calc(72vh * 768 / 1376)); } }
.mpin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; animation: pinIn .35s ease-out backwards; }
.mpin .mi { position: relative; width: 34px; height: 34px; border-radius: 17px; display: flex; align-items: center; justify-content: center; font-size: 17px;
  background: rgba(20,16,30,.88); border: 2px solid var(--gold); box-shadow: 0 3px 10px rgba(0,0,0,.5); }
.mpin .mn { font-size: 10.5px; font-weight: 800; color: #fff; white-space: nowrap; padding: 1px 6px; border-radius: 8px; background: rgba(20,16,30,.78); }
.mpin .mc { position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--up); color: #062; font-size: 10px; font-weight: 900; font-style: normal; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.mpin.here .mi { border-color: var(--up); box-shadow: 0 0 0 3px rgba(47,208,122,.35), 0 0 16px rgba(47,208,122,.7); }
.mpin.locked .mi { border-color: #8a7a9a; } .mpin.soonpin { opacity: .65; } .mpin.soonpin .mi { border-style: dashed; }
.mpin:active .mi { transform: scale(.9); }
@keyframes pinIn { from { opacity: 0; transform: translate(-50%, -30%); } }

/* hediye + lider tablosu */
.gifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gft { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 14px; background: var(--panel2); }
.gft span { font-size: 34px; } .gft b { font-size: 13px; } .gft small { color: var(--gold2); font-weight: 700; }
.pstats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 12.5px; }
.pstats span { background: var(--panel2); padding: 5px 9px; border-radius: 10px; color: var(--muted); } .pstats b { color: var(--text); }
.pstats .pg { width: 100%; color: var(--text); }
.pact { grid-template-columns: 1fr 1fr 1fr 1fr !important; }
.lb { display: flex; flex-direction: column; gap: 6px; }
.lbrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel2); }
.lbrow.me { border: 1px solid var(--gold); } .lbrow .rk { width: 26px; text-align: center; font-weight: 800; } .lbrow .fn { flex: 1; font-weight: 700; }
#dock { max-height: calc(100vh - 170px); overflow-y: auto; scrollbar-width: none; }

/* görevler + popüler evler */
.qrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--panel2); margin-bottom: 8px; }
.qrow.done { opacity: .6; } .qrow.bonus { border: 1px dashed var(--gold); }
.qi { font-size: 22px; width: 28px; text-align: center; } .qt { flex: 1; min-width: 0; } .qt b { font-size: 13.5px; font-weight: 700; }
.qbar { height: 6px; border-radius: 3px; background: #3a2f52; margin-top: 6px; overflow: hidden; } .qbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.qr { font-size: 12px; color: var(--gold2); font-weight: 700; white-space: nowrap; }
.ghostbtn { background: var(--panel2) !important; color: var(--text) !important; border: 1px solid var(--gold); }
.gobtn { padding: 7px 12px; border-radius: 10px; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1420; font-weight: 800; }
.hv { color: var(--up); font-weight: 600; }
#homeBar button.liked { background: #5a2440; }
#dock button { width: 50px; height: 50px; font-size: 20px; } #dock { gap: 6px; }
.applogo { width: 128px; height: 128px; display: block; margin: 0 auto 8px; border-radius: 28px; filter: drop-shadow(0 8px 24px rgba(242,182,50,.35)); }

.wordmark { display: block; width: min(300px, 82vw); height: auto; margin: 0 auto 6px; filter: drop-shadow(0 10px 28px rgba(242,182,50,.28)); }
.wordmark.small { width: min(220px, 70vw); margin-bottom: 4px; }

/* ===================== Görsel cila (oyun teması) ===================== */
html, body { font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#sheetBody h2, .tcard h3, .primary, #dock small, .tab, .askBox p { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; }
#sheetBody h2 { font-size: 22px; font-weight: 800; letter-spacing: .2px; }

/* üst bar */
#top { padding: 7px 10px; gap: 8px; background: linear-gradient(180deg, rgba(28,20,44,.96), rgba(20,16,30,.72)); border-bottom: 1px solid rgba(242,182,50,.18); }
#roomName { font-weight: 700; color: #e8def8; font-size: 13px; }
#coins { display: flex; align-items: center; gap: 4px; padding: 2px 10px 2px 3px; font-size: 13.5px; font-weight: 800;
  background: linear-gradient(180deg, rgba(255,217,104,.22), rgba(242,182,50,.10)); border: 1px solid rgba(255,217,104,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
#coins img { width: 22px; height: 22px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
#coins.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.18) } 60% { transform: scale(.96) } }
#snd { width: 30px; height: 30px; padding: 3px; display: grid; place-items: center; background: rgba(255,255,255,.07); border-radius: 10px; }
#snd img { width: 100%; height: 100%; }
#snd.off img { filter: grayscale(1) brightness(.75); opacity: .7; }
#snd.off::after { content: ''; position: absolute; width: 22px; height: 2.5px; background: #ff5a6a; border-radius: 2px; transform: rotate(-40deg); }
#snd { position: relative; }

/* sağ dock: parlak oyun düğmeleri */
#dock { gap: 7px; right: 8px; }
#dock button { width: 58px; height: 60px; border-radius: 18px; position: relative;
  background: linear-gradient(180deg, #4a2f86 0%, #2c1d52 100%); border: 1.5px solid rgba(255,217,104,.5);
  box-shadow: 0 4px 0 #1a1033, 0 6px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .08s; }
#dock button img { width: 36px; height: 36px; margin-top: -2px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
#dock small { font-size: 10.5px; font-weight: 700; color: #f6ecff; margin-top: 0; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
#dock button:active { transform: translateY(3px); box-shadow: 0 1px 0 #1a1033, 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25); }
.badge { box-shadow: 0 0 0 2px #2c1d52; }

/* alt sohbet çubuğu */
#bar button { display: grid; place-items: center; padding: 6px; }
#bar button img { width: 100%; height: 100%; }
#bEmote { background: linear-gradient(180deg, #4a2f86, #2c1d52) !important; border: 1.5px solid rgba(255,217,104,.45) !important; }
#bSend { background: linear-gradient(180deg, var(--gold2), var(--gold)) !important; box-shadow: 0 3px 0 #a5761a; }
#bSend:active { transform: translateY(2px); box-shadow: 0 1px 0 #a5761a; }
#bar input { border-radius: 22px; background: rgba(29,23,41,.95); border: 1.5px solid var(--line); }

/* paneller */
.sheetInner { background: linear-gradient(180deg, #251c3a 0%, #1b1529 120px); border: 1.5px solid rgba(255,217,104,.28); border-bottom: 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.45); animation: sheetUp .32s cubic-bezier(.2,1.25,.4,1); }
.sheetInner::before { content: ''; position: absolute; left: 50%; top: 7px; width: 42px; height: 4px; margin-left: -21px; border-radius: 2px; background: rgba(255,255,255,.18); }
@keyframes sheetUp { from { transform: translateY(70px); opacity: .2 } }
#sheet { animation: fadeIn .2s ease; backdrop-filter: blur(2px); }
@keyframes fadeIn { from { opacity: 0 } }
#sheetClose { background: rgba(255,255,255,.08); font-weight: 800; }
.primary { font-family: "Baloo 2", "Nunito", sans-serif; font-size: 17px; letter-spacing: .2px; box-shadow: 0 4px 0 #a5761a, 0 8px 18px rgba(242,182,50,.25); transition: transform .08s; }
.primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #a5761a; }
.tab { font-weight: 700; }

/* onay penceresi */
.askWrap { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: rgba(8,6,14,.6); backdrop-filter: blur(3px); animation: fadeIn .18s ease; }
.askWrap.out { opacity: 0; transition: opacity .18s; }
.askBox { width: 100%; max-width: 330px; text-align: center; padding: 22px 18px 16px; border-radius: 22px;
  background: linear-gradient(180deg, #2d2147, #1d1729); border: 1.5px solid rgba(255,217,104,.4); box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: pop .3s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.8); opacity: 0 } }
.askIcon { font-size: 40px; line-height: 1; margin-bottom: 6px; }
.askBox p { margin: 0 0 16px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.askBtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.askBtns button { height: 46px; border-radius: 14px; font-weight: 800; font-family: "Baloo 2", sans-serif; font-size: 16px; margin: 0; }
.askBtns .ghost { background: rgba(255,255,255,.08); }
.askBtns .danger { background: linear-gradient(180deg, #ff6b7a, #d93a4d); color: #fff; box-shadow: 0 3px 0 #8a1f2c; }
.askBtns .primary { height: 46px; margin: 0; }

/* yükleme ekranı */
#loading { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(circle at 50% 38%, #3d2a66 0%, #1a1230 55%, #100c1a 100%); transition: opacity .45s; }
#loading.done { opacity: 0; pointer-events: none; }
#loading img { width: min(280px, 74vw); animation: float 2.4s ease-in-out infinite; filter: drop-shadow(0 12px 30px rgba(242,182,50,.3)); }
@keyframes float { 50% { transform: translateY(-8px) } }
#loading .lbar { width: min(220px, 60vw); height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid rgba(255,217,104,.3); }
#loading .lbar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #ffd968, #f2b632); box-shadow: 0 0 12px #f2b632; transition: width .25s; }
#loading .ltip { color: #bfb2d6; font-size: 13.5px; font-weight: 600; min-height: 20px; text-align: center; padding: 0 24px; }

/* ödül efekti */
.rewardFx { position: fixed; z-index: 35; pointer-events: none; width: 26px; height: 26px; }
.toast { font-family: "Nunito", sans-serif; font-weight: 700; }
#sheetBody h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#sheetBody h2 .hic { width: 34px; height: 34px; flex: none; margin: -4px 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
#log .sys { background: linear-gradient(90deg, rgba(122,72,210,.85), rgba(60,36,110,.75)); border: 1px solid rgba(255,217,104,.45); }
#log .sys b { color: var(--gold2); }
.ptag2.own { background: rgba(47,208,122,.18) !important; color: #7dffb5 !important; }
.gocard { border: 1.5px dashed rgba(255,217,104,.55) !important; background: rgba(255,217,104,.06) !important; justify-content: center; gap: 6px; }
.gocard .iname { white-space: normal; font-size: 11.5px; line-height: 1.25; }
.gocard .gobtn { font-weight: 800; color: #1a1420; background: linear-gradient(180deg, var(--gold2), var(--gold)); padding: 4px 8px; border-radius: 10px; font-size: 11px; }
.tiers { display: flex; flex-direction: column; gap: 10px; }
.tcard2 { display: flex; gap: 12px; padding: 10px; border-radius: 16px; background: var(--panel2); border: 1.5px solid transparent; }
.tcard2.here { border-color: var(--gold); }
.timg { width: 112px; height: 80px; flex: none; border-radius: 12px; background-size: 150%; background-position: center 60%; background-color: #120e1c; }
.tinfo { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.tinfo b { font-family: "Baloo 2", sans-serif; font-size: 16px; }
.tinfo small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.tinfo .tsz { color: #c9b8ff; }
.tinfo button { margin-top: 6px; align-self: flex-start; padding: 7px 12px; border-radius: 11px; background: rgba(255,255,255,.1); font-weight: 800; font-size: 13px; }
.tinfo button.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1420; box-shadow: 0 3px 0 #a5761a; }
.tinfo .lockb { background: rgba(160,120,255,.18); color: #d9c8ff; }
.tbadge { margin-top: 6px; align-self: flex-start; padding: 6px 10px; border-radius: 10px; background: rgba(47,208,122,.16); color: #7dffb5; font-weight: 800; font-size: 12.5px; }
.treat { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.treat img { height: 120px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.treat h2 { margin: 0 0 2px !important; }
#quick { position: fixed; left: 0; right: 0; bottom: calc(62px + var(--safe-b)); z-index: 7; display: flex; gap: 6px; padding: 6px 10px; overflow-x: auto; scrollbar-width: none;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .15s, transform .15s; }
#quick::-webkit-scrollbar { display: none; }
#quick.on { opacity: 1; transform: none; pointer-events: auto; }
#quick button { flex: none; padding: 7px 12px; border-radius: 16px; background: rgba(45,33,71,.95); border: 1px solid rgba(255,217,104,.4); font-weight: 700; font-size: 13px; white-space: nowrap; }
#quick button:active { transform: scale(.95); background: rgba(242,182,50,.3); }
body.quickon #log { bottom: calc(108px + var(--safe-b)); }
#log { transition: bottom .15s; }

/* ===== Taşma koruması (iPhone Telegram: yazı büyütme + yedek font) ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.item, .fcard, .tcard2, .room, .qrow, .pact button, .pact2 button, .tvbtns button, .tab, .ptag2, .vtag, .mpin, .gocard, .askBox, .lcard, .tcard, .pstats > *, .tinfo, .tinfo button { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.item, .fcard, .pact button, .tcard2 { overflow: hidden; }
.item .iname, .item .brand, .fcard b, .fcard small { display: block; max-width: 100%; overflow-wrap: anywhere; line-height: 1.2; }
.ptag2, .vtag { max-width: calc(100% - 8px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dock small { max-width: 54px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; letter-spacing: -.2px; }
#dock button { overflow: hidden; }
.tabs { flex-wrap: wrap; }
.tab { white-space: nowrap; }
#sheetBody h2 small { white-space: nowrap; }
.mn { white-space: nowrap; }
@media (max-width: 370px) {
  #sheetBody h2 { font-size: 19px; }
  .pact button { font-size: 12.5px; padding: 10px 4px; }
  .tinfo button { font-size: 12px; padding: 6px 9px; }
}
.hgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 8px; }
.hgrid button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border-radius: 14px; background: var(--panel2); border: 1.5px solid rgba(255,217,104,.3); font-size: 26px; min-width: 0; }
.hgrid img { width: 52px; height: 52px; object-fit: contain; }
.hgrid b { font-size: 12.5px; text-align: center; overflow-wrap: anywhere; }
.hgrid span { font-size: 12px; font-weight: 800; color: var(--gold2); }
.hgrid button:active { transform: scale(.96); }
#log .npc { font-size: 11px; padding: 2px 8px; background: rgba(20,16,30,.42); opacity: .85; }
#log .npc b { color: #e9c46a; font-weight: 700; }
/* seviye çipi */
#lvl { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; cursor: pointer;
  background: conic-gradient(from 0deg, #7a48d2, #3b2466); border: 2px solid rgba(255,217,104,.75); box-shadow: 0 2px 6px rgba(0,0,0,.35); overflow: hidden; }
#lvl b { position: relative; z-index: 1; font: 800 13px "Baloo 2", Nunito, sans-serif; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
#lvl i { position: absolute; left: 0; bottom: 0; height: 100%; width: 0; background: linear-gradient(0deg, rgba(255,217,104,.55), rgba(255,217,104,.15)); transition: width .4s; }
.lvup { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(8,6,14,.45); animation: fadeIn .2s; }
.lvup.out { opacity: 0; transition: opacity .4s; }
.lvcard { text-align: center; padding: 22px 28px; border-radius: 24px; background: linear-gradient(180deg, #3d2a66, #1d1729); border: 2px solid var(--gold); box-shadow: 0 0 40px rgba(242,182,50,.45); animation: pop .45s cubic-bezier(.2,1.5,.4,1); }
.lvstar { width: 84px; height: 84px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font: 800 40px "Baloo 2", sans-serif; color: #1a1420;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #ffd968 40%, #c98a12); box-shadow: 0 0 0 4px rgba(255,255,255,.25), 0 6px 20px rgba(242,182,50,.6); }
.lvcard h3 { margin: 0; font: 800 24px "Baloo 2", sans-serif; }
.lvcard p { margin: 4px 0 8px; color: #e8def8; }
.lvcard span { font-weight: 800; color: var(--gold2); }
.conf { position: fixed; top: -20px; z-index: 46; border-radius: 2px; pointer-events: none; }
/* profil kartı */
.pstats { display: block !important; }
.plv { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(90deg, rgba(122,72,210,.35), rgba(122,72,210,.08)); border: 1px solid rgba(201,166,255,.35); }
.plvb { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 800 22px "Baloo 2", sans-serif; color: #1a1420;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #ffd968 45%, #c98a12); box-shadow: 0 3px 10px rgba(242,182,50,.45); }
.plvt { flex: 1; min-width: 0; } .plvt b { font: 800 16px "Baloo 2", sans-serif; } .plvt small { color: var(--muted); font-size: 11.5px; }
.xpbar { height: 8px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; margin: 3px 0 2px; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd968, #f2b632); box-shadow: 0 0 8px #f2b632; }
.pnums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.pnums span { display: flex; flex-direction: column; align-items: center; padding: 7px 2px; border-radius: 12px; background: var(--panel2); font-size: 11px; color: var(--muted); }
.pnums b { font: 800 17px "Baloo 2", sans-serif; color: var(--text); }
.psec { margin: 10px 0 5px; font: 800 13px "Baloo 2", sans-serif; color: var(--gold2); letter-spacing: .3px; }
.pbadges { display: flex; flex-wrap: wrap; gap: 6px; }
.pbadges span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 5px; border-radius: 14px; background: rgba(255,217,104,.1); border: 1px solid rgba(255,217,104,.35); font-size: 12px; font-weight: 700; }
.pbadges i { font-style: normal; font-size: 15px; }
.pgifts { display: flex; flex-wrap: wrap; gap: 6px; }
.pgifts span { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 5px 6px; border-radius: 12px; background: var(--panel2); }
.pgifts i { font-style: normal; font-size: 24px; } .pgifts b { font-size: 11px; color: var(--gold2); }
.psince { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.pload { color: var(--muted); text-align: center; padding: 10px; }
#guide { position: fixed; left: 10px; right: 80px; top: 76px; z-index: 6; display: flex; flex-direction: column; padding: 7px 34px 7px 12px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(15,107,62,.95), rgba(15,107,62,.75)); border: 1.5px solid #7dffb5; box-shadow: 0 4px 14px rgba(0,0,0,.35); animation: fadeIn .2s; }
#guide span { font-weight: 800; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#guide small { font-size: 11px; color: #c8ffe0; }
#guide button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 13px; background: rgba(0,0,0,.25); font-weight: 800; }
.klist { display: flex; flex-direction: column; gap: 8px; }
.klist button { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; align-items: center; text-align: left; padding: 10px 12px; border-radius: 14px; background: var(--panel2); border: 1.5px solid transparent; }
.klist button.mine { border-color: var(--gold); }
.klist .ki { grid-row: span 2; font-size: 28px; } .klist b { font-size: 15px; } .klist small { color: var(--muted); font-size: 12px; }
body.guideon #toast { top: 136px; }
.wheelbox { position: relative; display: flex; flex-direction: column; align-items: center; margin: 4px 0 12px; }
.wheel { position: relative; width: 210px; height: 210px; border-radius: 50%; border: 6px solid #ffd968; box-shadow: 0 0 0 3px #a5761a, 0 10px 30px rgba(0,0,0,.45), inset 0 0 20px rgba(0,0,0,.35); }
.wheel span { position: absolute; left: 50%; top: 0; width: 0; height: 50%; transform-origin: bottom center; }
.wheel span b { position: absolute; top: 12px; left: 0; transform: translateX(-50%); font: 800 13px "Baloo 2", sans-serif; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); white-space: nowrap; }
.whub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 22px;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #ffd968 50%, #c98a12); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.wptr { position: relative; z-index: 2; margin-bottom: -14px; font-size: 26px; color: #ff5a6a; text-shadow: 0 2px 0 #7a1f2b, 0 0 6px rgba(0,0,0,.5); }
.wheelbox .primary { margin-top: 12px; }
.wheelbox.used .wheel { filter: saturate(.55) brightness(.8); }
.qbadge-wheel { }
.krent { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 12px; }
.krent div { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 14px; background: var(--panel2); text-align: center; }
.krent b { font: 800 20px "Baloo 2", sans-serif; color: var(--gold2); } .krent small { color: var(--muted); font-size: 11.5px; }
.klabel { display: block; margin: 8px 0 5px; font-weight: 800; font-size: 13px; color: var(--gold2); }
#kName { width: 100%; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--panel2); color: var(--text); padding: 0 14px; font-size: 16px; outline: none; }
#kName:focus { border-color: var(--gold); }
.kkinds { display: flex; flex-wrap: wrap; gap: 6px; }
.kkinds button { padding: 8px 12px; border-radius: 12px; background: var(--panel2); border: 1.5px solid transparent; font-weight: 700; font-size: 13px; }
.kkinds button.on { border-color: var(--gold); background: rgba(255,217,104,.14); }
#homeBar small { color: var(--muted); font-weight: 600; }
.mlist { display: flex; flex-direction: column; gap: 6px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--panel2); }
.mrow img { width: 36px; height: 36px; object-fit: contain; } .mrow b { flex: 1; font-size: 14px; }
.mrow input { width: 58px; height: 34px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); text-align: center; font-size: 16px; font-weight: 800; }
#homeBar { max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
#homeBar::-webkit-scrollbar { display: none; }
#homeBar button, #homeBar span { flex: none; white-space: nowrap; }
@media (max-width: 420px) { #homeBar button { padding: 8px 9px !important; font-size: 12.5px !important; } #homeBar { gap: 5px !important; padding: 6px !important; } }
body.hbon #log { bottom: calc(122px + var(--safe-b)); }
.lvcard.catch img { width: 150px; height: 110px; object-fit: contain; display: block; margin: 0 auto 6px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.4)); }
.pgifts span.dim { opacity: .4; } .pgifts small { font-size: 10px; color: var(--muted); }
#emotes { grid-template-columns: repeat(4, 1fr) !important; max-width: calc(100vw - 20px); }
#emotes .esec { grid-column: 1 / -1; font: 800 12px "Baloo 2", sans-serif; color: var(--gold2); margin-top: 2px; }
#emotes button { padding: 6px 4px !important; }
.mapwrap { position: relative; }
#cmap { touch-action: none; overflow: hidden; }
#cmap img { width: 100%; height: 100%; object-fit: fill; will-change: transform; }
.mzoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.mzoom button { width: 36px; height: 36px; border-radius: 12px; background: rgba(20,16,30,.85); border: 1.5px solid rgba(255,217,104,.6); font-size: 20px; font-weight: 800; color: #fff; }
.mpin .mn { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
#roomName { min-width: 0; }
.ok-seat, .lbrow .fn, .klist b, .tinfo b, .fcard b, .item .iname { overflow: hidden; text-overflow: ellipsis; }
/* dar ekranda mekân adına yer aç: çevrimiçi sayısı kısalır */
@media (max-width: 440px) {
  #top { gap: 6px; padding: 7px 8px; }
  #top .logo { height: 22px; }
  #online .ot { display: none; }
  #roomName { font-size: 12.5px; }
}
