* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0e100d; font-family: Rubik, system-ui, sans-serif; color: #f4f1e8; touch-action: none; user-select: none; -webkit-user-select: none; }
canvas { display: block; }
.panel { background: rgba(14,16,13,0.78); border-radius: 14px; }
#hud-top { position: fixed; left: 12px; top: 10px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; }
#lv { width: 40px; height: 40px; border-radius: 10px; background: #c0392b; border: 3px solid #e8b54a; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.bar { height: 6px; background: rgba(255,255,255,0.14); border-radius: 4px; overflow: hidden; width: 150px; }
.bar > div { height: 100%; transition: width .2s; }
#place { position: fixed; left: 50%; top: 10px; transform: translateX(-50%); padding: 6px 16px; text-align: center; }
#place b { display: block; color: #e8b54a; letter-spacing: .06em; font-size: 13px; }
#place span { font-size: 10px; color: #c9c4b6; }
#online { position: fixed; right: 12px; top: 10px; padding: 8px 12px; font-size: 12px; }
#log { position: fixed; left: 150px; bottom: 12px; max-width: 46vw; padding: 6px 10px; font-size: 11px; line-height: 1.5; background: rgba(14,16,13,0.55); border-radius: 10px; pointer-events: none; }
#log div b { color: #8ec5ff; }
#joy { position: fixed; left: 20px; bottom: 18px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.32); }
#knob { position: absolute; left: 36px; top: 36px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.6); box-shadow: 0 3px 8px rgba(0,0,0,.35); }
#atk { position: fixed; right: 22px; bottom: 22px; width: 88px; height: 88px; border-radius: 50%; border: 0; color: #fff; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 30%, #ff7a5a, #b23a24 55%, #4a0f08 100%);
  box-shadow: 0 0 0 3px #2a2012, 0 0 0 6px #d8b05a, 0 0 0 7px #5a4518, 0 5px 12px rgba(0,0,0,0.6), inset 0 -8px 14px rgba(0,0,0,0.45), inset 0 5px 10px rgba(255,255,255,0.3); }
#atk:active { transform: scale(0.93); }
.label { position: fixed; left: 0; top: 0; transform: translate(-50%, -100%); text-align: center; pointer-events: none; font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px #000, 0 0 3px #000; white-space: nowrap; }
.label .hp { width: 56px; height: 5px; margin: 3px auto 0; background: rgba(0,0,0,0.55); border-radius: 3px; overflow: hidden; }
.label .hp > div { height: 100%; background: #e5533d; }
.dmg { position: fixed; left: 0; top: 0; font-weight: 800; font-size: 20px; color: #ffe08a; text-shadow: 0 2px 0 #7a3b00, 0 0 6px rgba(0,0,0,.6); pointer-events: none; transition: transform .8s ease-out, opacity .8s ease-out; }
.dmg.crit { color: #ff6a3d; font-size: 26px; }
#invbtn { position: fixed; right: 12px; top: 54px; width: 50px; height: 50px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.3); background: rgba(14,16,13,0.78); color: #f4f1e8; display: flex; align-items: center; justify-content: center; }
#yang { position: fixed; right: 70px; top: 54px; padding: 8px 12px; font-size: 12px; color: #ffe08a; }
#inv { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); z-index: 15; }
#inv.open { display: flex; }
#invbox { width: min(620px, 96vw); max-height: 94vh; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: rgba(20,22,18,0.96); border: 2px solid #5a4a2a; border-radius: 16px; }
#invhead { display: flex; justify-content: space-between; align-items: center; }
#invhead b { color: #e8b54a; letter-spacing: .06em; }
#invclose { width: 44px; height: 44px; border-radius: 10px; border: 0; background: #3a3f35; color: #f4f1e8; font-size: 20px; }
#invbody { display: flex; gap: 12px; min-height: 0; }
#equipcol { display: flex; flex-direction: column; gap: 8px; width: 150px; flex-shrink: 0; }
#stats { font-size: 12px; color: #c9c4b6; line-height: 1.6; }
#grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; flex: 1; align-content: start; }
.slot { position: relative; aspect-ratio: 1; min-height: 44px; border-radius: 10px; border: 2px solid #3a3f35; background: #1a1d17; color: #f4f1e8; display: flex; align-items: center; justify-content: center; padding: 0; }
.slot.sel { border-color: #e8b54a; }
.eq { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 8px; border-radius: 10px; border: 2px solid #3a3f35; background: #1a1d17; color: #f4f1e8; font: inherit; font-size: 11px; text-align: left; }
.eq.sel { border-color: #e8b54a; }
.eq small { display: block; color: #8b877c; font-size: 10px; }
#toast { position: fixed; left: 50%; top: 64px; transform: translateX(-50%); padding: 8px 16px; border-radius: 12px; background: rgba(14,16,13,0.85); color: #ffe08a; font-weight: 700; font-size: 13px; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 12; }
#rotate { display: none; position: fixed; inset: 0; z-index: 20; background: #0e100d; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 16px; }
@media (orientation: portrait) and (max-width: 700px) { body.ingame #rotate { display: flex; } }

/* ---------- giriş ve karakter ekranları ---------- */
.screen { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(8,10,8,0.82); z-index: 10; overflow-y: auto; padding: 16px; touch-action: auto; }
.screen.show { display: flex; }
.card { padding: 22px; display: flex; flex-direction: column; gap: 12px; width: min(360px, 92vw); }
.card.wide { width: min(720px, 96vw); }
.title { margin: 0; font-size: 28px; color: #e8b54a; letter-spacing: .06em; }
.sub { margin: -6px 0 4px; font-size: 12px; color: #8b877c; }
.card label { font-size: 13px; color: #c9c4b6; }
.card input { font: inherit; font-size: 16px; padding: 12px; border-radius: 10px; border: 2px solid #3a3f35; background: #1a1d17; color: #f4f1e8; }
.card input:focus { outline: none; border-color: #e8b54a; }
.btn { font: inherit; font-weight: 800; font-size: 16px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 0; background: #e8b54a; color: #2a1f08; }
.btn.alt { background: #3a3f35; color: #f4f1e8; }
.btn.danger { background: transparent; color: #ffb4a3; border: 2px solid #6d2a20; min-height: 40px; font-size: 13px; }
.btn:disabled { opacity: .5; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.msg { font-size: 13px; color: #ffb4a3; min-height: 1.2em; }
.tabs { display: flex; gap: 6px; }
.tabs button { flex: 1; min-height: 44px; border-radius: 10px; border: 2px solid #3a3f35; background: #1a1d17; color: #c9c4b6; font: inherit; font-weight: 700; }
.tabs button.on { border-color: #e8b54a; color: #e8b54a; }
.charlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.charcard { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; border: 2px solid #3a3f35; background: #1a1d17; color: #f4f1e8; font: inherit; text-align: left; min-height: 88px; }
.charcard.sel { border-color: #e8b54a; }
.charcard b { font-size: 15px; }
.charcard span { font-size: 12px; color: #c9c4b6; }
.charcard.new { align-items: center; justify-content: center; color: #e8b54a; border-style: dashed; font-weight: 700; }
.classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.classbtn { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; border: 2px solid #3a3f35; background: #1a1d17; color: #f4f1e8; font: inherit; text-align: left; min-height: 64px; }
.classbtn.sel { border-color: #e8b54a; }
.classbtn i { width: 22px; height: 6px; border-radius: 3px; display: block; }
#classdesc { font-size: 13px; color: #c9c4b6; min-height: 2.6em; line-height: 1.4; }
#logout { position: fixed; right: 12px; bottom: 12px; z-index: 11; }

/* ---------- Aşama 1: can, iksir, dükkân, ölüm ---------- */
.hpwrap { position: relative; height: 12px !important; }
#hptext { position: absolute; inset: 0; font-size: 9px; line-height: 12px; text-align: center; color: #fff; text-shadow: 0 1px 1px #000; }
#invbox { overflow-y: auto; }
#invbody { flex-wrap: wrap; }
#equipcol { width: 170px; }
.eq { height: 42px; }
.slot { position: relative; }
.slot .cnt { position: absolute; right: 3px; bottom: 1px; font-style: normal; font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 1px 1px #000; }
.label.boss { font-size: 13px; }
.label.boss .hp { width: 90px; height: 7px; }
#potBtn { position: fixed; right: 228px; bottom: 24px; width: 58px; height: 58px; border-radius: 50%; border: 2px solid #ff8a7a; background: rgba(14,16,13,0.82); display: flex; align-items: center; justify-content: center; }
#potBtn i { position: absolute; right: -2px; bottom: -2px; min-width: 22px; height: 20px; padding: 0 4px; border-radius: 10px; background: #b23a24; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; line-height: 20px; }
#potBtn.empty { opacity: .45; }
#talkBtn { position: fixed; right: 22px; bottom: 228px; min-height: 48px; padding: 0 18px; border-radius: 24px; border: 2px solid #7be08f; background: rgba(14,16,13,0.85); color: #7be08f; font: inherit; font-weight: 800; font-size: 14px; align-items: center; }
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); z-index: 16; }
.modal.open { display: flex; }
.modalbox { width: min(640px, 96vw); max-height: 92vh; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: rgba(20,22,18,0.97); border: 2px solid #5a4a2a; border-radius: 16px; }
.xbtn { width: 44px; height: 44px; border-radius: 10px; border: 0; background: #3a3f35; color: #f4f1e8; font-size: 20px; }
#shop #invhead { gap: 10px; }
#shopList { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.srow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: #1a1d17; font-size: 12px; }
.srow .grow { flex: 1; min-width: 0; }
.srow small { color: #8b877c; }
.srow button { font: inherit; font-weight: 700; min-width: 64px; height: 40px; padding: 0 10px; border-radius: 10px; border: 0; background: #e8b54a; color: #2a1f08; }
.srow button.alt { background: #3a3f35; color: #f4f1e8; }
.srow button:disabled { opacity: .4; }
.muted { color: #8b877c; font-size: 13px; }
body.hurt canvas { filter: saturate(1.4) brightness(0.85) sepia(0.3) hue-rotate(-20deg); }
.mhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ---------- Aşama 2: mana, beceriler, buff, balık, at ---------- */
.mpwrap { height: 9px !important; }
#mptext { line-height: 9px; font-size: 8px; }
#buffs { position: fixed; left: 12px; top: 104px; display: flex; gap: 4px; flex-wrap: wrap; max-width: 260px; pointer-events: none; }
#buffs span { padding: 2px 7px; border-radius: 8px; background: rgba(14,16,13,0.8); font-size: 10px; color: #7be08f; }
#mpBtn { position: fixed; right: 294px; bottom: 26px; width: 50px; height: 50px; border-radius: 50%; border: 2px solid #7fb3ff; background: rgba(14,16,13,0.82); display: flex; align-items: center; justify-content: center; }
#mpBtn i, #skillBtn i { position: absolute; right: -2px; bottom: -2px; min-width: 20px; height: 18px; padding: 0 4px; border-radius: 9px; background: #2f5f9a; color: #fff; font-style: normal; font-size: 10px; font-weight: 800; line-height: 18px; }
#mpBtn.empty { opacity: .45; }
/* beceri düğmeleri: saldırı düğmesinin çevresinde yay (Metin2 tarzı altın çerçeveli) */
#skillbar { position: fixed; right: 0; bottom: 0; width: 0; height: 0; }
.skb { position: fixed; width: 62px; height: 62px; border-radius: 50%; padding: 0; border: 0; font: inherit; color: #fff;
  background: radial-gradient(circle at 50% 30%, var(--c2), var(--c) 55%, #0c0a08 100%);
  box-shadow: 0 0 0 3px #2a2012, 0 0 0 5px #c9a14a, 0 0 0 6px #5a4518, 0 4px 10px rgba(0,0,0,0.6), inset 0 -6px 12px rgba(0,0,0,0.45), inset 0 4px 8px rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; transition: transform .08s; touch-action: none; }
.skb:nth-child(1) { right: 34px; bottom: 148px; }
.skb:nth-child(2) { right: 92px; bottom: 132px; }
.skb:nth-child(3) { right: 132px; bottom: 90px; }
.skb:nth-child(4) { right: 150px; bottom: 32px; }
.skb svg { position: relative; z-index: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8)); }
.skb.press { transform: scale(0.88); }
.skb.press::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--c2); animation: skPing .35s ease-out forwards; }
@keyframes skPing { from { opacity: 1; transform: scale(0.8); } to { opacity: 0; transform: scale(1.3); } }
.skb.locked { filter: grayscale(1) brightness(0.55); }
.skb.ready::before { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 12px var(--c2); animation: skGlow 1.6s ease-in-out infinite alternate; }
@keyframes skGlow { from { opacity: 0.25; } to { opacity: 0.9; } }
.skb .cd { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 2; }
.skb .cdt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; color: #fff; text-shadow: 0 0 4px #000, 0 1px 2px #000; z-index: 3; pointer-events: none; }
.skb .lv { position: absolute; right: -6px; bottom: -4px; min-width: 22px; height: 18px; padding: 0 4px; border-radius: 9px; background: linear-gradient(180deg, #f5d38a, #b8862a); color: #2a1f08; font-size: 10px; font-weight: 900; line-height: 18px; z-index: 4; box-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.skb .mp { position: absolute; left: -4px; bottom: -4px; height: 16px; padding: 0 4px; border-radius: 8px; background: #1f3f6a; color: #bcd8ff; font-size: 9px; font-weight: 800; line-height: 16px; z-index: 4; }
#skillBtn { position: fixed; left: 12px; top: 130px; width: 46px; height: 46px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.3); background: rgba(14,16,13,0.78); color: #ffe08a; display: flex; align-items: center; justify-content: center; }
#skillBtn i { background: #b23a24; }
#mountBtn { position: fixed; left: 64px; top: 130px; width: 46px; height: 46px; border-radius: 12px; border: 2px solid #c9a35a; background: rgba(14,16,13,0.78); color: #c9a35a; display: flex; align-items: center; justify-content: center; }
#mountBtn.on { background: #c9a35a; color: #2a1f08; }
#mountBtn img { width: 42px; height: 42px; pointer-events: none; }
#sndBtn { position: fixed; left: 12px; top: 182px; width: 46px; height: 46px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.3); background: rgba(14,16,13,0.78); color: #f4f1e8; display: flex; align-items: center; justify-content: center; }
#musicBtn { position: fixed; left: 12px; top: 236px; width: 46px; height: 46px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.3); background: rgba(14,16,13,0.78); color: #f4f1e8; display: flex; align-items: center; justify-content: center; }
#musicBtn .mute { display: none; } #musicBtn.off { color: #8b877c; } #musicBtn.off .mute { display: inline; }
#sndBtn .mute { display: none; }
#sndBtn.off { color: #8b877c; }
#sndBtn.off .mute { display: inline; }
#sndBtn.off .wave { display: none; }
#fishBtn { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); min-width: 140px; min-height: 52px; border-radius: 26px; border: 2px solid #9fd8ff; background: rgba(14,16,13,0.85); color: #9fd8ff; font: inherit; font-weight: 800; font-size: 16px; }
#fishBtn.bite { background: #e5533d; border-color: #ffe08a; color: #fff; animation: pulse .35s infinite alternate; }
@keyframes pulse { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.12); } }
.sk-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #1a1d17; font-size: 12px; }
.sk-row .grow { flex: 1; min-width: 0; }
.sk-row small { color: #8b877c; }
.sk-row .badge { min-width: 38px; text-align: center; font-weight: 800; color: #ffe08a; font-size: 14px; }
.sk-row button { font: inherit; font-weight: 800; width: 44px; height: 44px; border-radius: 10px; border: 0; background: #e8b54a; color: #2a1f08; font-size: 20px; }
.sk-row button:disabled { opacity: .35; }
.label .hp.player > div { background: #4cd06b; }

/* 3D eşya simgeleri */
.ico3d { display: block; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.6)); pointer-events: none; }
.slot .ico3d { width: 100%; height: 100%; }
.eq .ico3d { width: 38px; height: 38px; flex: none; }
.srow .ico3d { width: 40px; height: 40px; flex: none; }
.dico { flex: none; width: 60px; height: 60px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #3a3f35, #121410); display: flex; align-items: center; justify-content: center; }
.dico .ico3d { width: 56px; height: 56px; }
.slot { background: radial-gradient(circle at 50% 35%, #2a2e25, #141611); }

/* karakter penceresi (Metin2 tarzı durum puanları) */
#charBtn { position: fixed; left: 64px; top: 182px; width: 46px; height: 46px; border-radius: 12px; border: 2px solid rgba(232,181,74,0.6); background: rgba(14,16,13,0.78); color: #e8b54a; display: flex; align-items: center; justify-content: center; }
#charBtn i { position: absolute; right: -4px; top: -4px; min-width: 20px; height: 18px; padding: 0 4px; border-radius: 9px; background: #b23a24; color: #fff; font-style: normal; font-size: 10px; font-weight: 800; line-height: 18px; animation: badgePulse .6s infinite alternate; }
@keyframes badgePulse { from { transform: scale(1); } to { transform: scale(1.18); } }
.charbox { width: min(420px, 94vw); background: linear-gradient(180deg, #23201a, #15130f); border: 2px solid #6b5a36; box-shadow: inset 0 0 0 1px #2a2418, 0 10px 30px rgba(0,0,0,0.6); }
.charfree { font-size: 13px; color: #ffe08a; font-weight: 800; }
.charhead { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px 10px; border-bottom: 1px solid #3a3222; color: #c9c4b6; font-size: 13px; }
.charhead b { color: #f4f1e8; font-size: 16px; }
.charstats { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; }
.st-row { display: grid; grid-template-columns: 44px 1fr auto auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: linear-gradient(90deg, #2a251b, #1a1812); border: 1px solid #3a3222; }
.st-row .st-ico { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; color: #1a1406; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.25); }
.st-row .st-name b { display: block; color: #f4f1e8; font-size: 14px; }
.st-row .st-name small { color: #8b877c; font-size: 11px; }
.st-row .st-val { min-width: 34px; text-align: right; font-size: 20px; font-weight: 900; color: #ffe08a; text-shadow: 0 0 8px rgba(255,208,63,0.35); }
.st-row button { width: 40px; height: 40px; border-radius: 10px; border: 2px solid #e8b54a; background: linear-gradient(180deg, #f5d38a, #c9932f); color: #2a1f08; font: inherit; font-size: 20px; font-weight: 900; padding: 0; }
.st-row button.five { font-size: 12px; width: 44px; }
.st-row button:disabled { opacity: .3; filter: grayscale(1); }
.st-row.main { border-color: #8a7438; }
.charderived { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; padding: 10px 6px 2px; border-top: 1px solid #3a3222; font-size: 12px; color: #c9c4b6; }
.charderived span b { float: right; color: #f4f1e8; }

/* seviye atlama yazısı */
#levelBanner { position: fixed; left: 50%; top: 22%; transform: translate(-50%, -50%) scale(0.6); opacity: 0; pointer-events: none; text-align: center; z-index: 14; }
#levelBanner.show { animation: lbIn 2.6s ease-out forwards; }
#levelBanner .lb-glow { position: absolute; left: 50%; top: 50%; width: 360px; height: 160px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(255,214,90,0.55), rgba(255,170,40,0) 70%); filter: blur(4px); }
#levelBanner .lb-title { position: relative; font-size: 30px; font-weight: 900; letter-spacing: .14em; color: #fff6d0; text-shadow: 0 0 6px #ffb020, 0 0 18px #ff8a00, 0 3px 0 #7a4a00; }
#levelBanner .lb-lv { position: relative; font-size: 64px; line-height: 1; font-weight: 900; color: #ffe08a; text-shadow: 0 0 10px #ffb020, 0 0 30px #ff8a00, 0 4px 0 #7a4a00; }
#levelBanner .lb-sub { position: relative; margin-top: 4px; font-size: 14px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px #000; }
@keyframes lbIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  20% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -55%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(0.95); }
}

/* GM etiketi (Metin2 tarzı) */
.label .gmtag { display: block; width: max-content; margin: 0 auto 4px; padding: 2px 10px 2px 7px; border-radius: 7px; border: 1px solid #fff3a0;
  background: linear-gradient(110deg, #a86a00 0%, #ffd23f 30%, #fff8d0 48%, #ffd23f 62%, #a86a00 100%); background-size: 260% 100%;
  color: #3a2200; font-weight: 900; font-size: 13px; letter-spacing: .12em; text-shadow: 0 1px 0 rgba(255,255,255,.55);
  animation: gmShine 2.4s linear infinite, gmBob 1.8s ease-in-out infinite, gmGlow 1.8s ease-in-out infinite; }
.label .gmtag .gmcrown { display: inline-block; margin-right: 4px; color: #7a3d00; font-size: 12px; animation: gmSpin 3.6s ease-in-out infinite; }
@keyframes gmShine { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes gmBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes gmGlow { 0%, 100% { box-shadow: 0 0 6px rgba(255,210,60,.7), 0 0 0 rgba(255,240,160,0); } 50% { box-shadow: 0 0 14px rgba(255,210,60,1), 0 0 26px rgba(255,240,160,.55); } }
@keyframes gmSpin { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(180deg); } }
/* kendi vuruşların: son vuruş (binlik 'k') ve toplam */
#dmgMeter { position: fixed; left: 50%; top: 58px; transform: translateX(-50%); text-align: center; pointer-events: none; opacity: 0; transition: opacity .4s; }
#dmgMeter.show { opacity: 1; }
#dmgMeter .dmLast { font-size: 30px; font-weight: 900; color: #ffe08a; letter-spacing: .02em; text-shadow: 0 2px 0 #7a3b00, 0 0 10px rgba(0,0,0,.7); }
#dmgMeter.crit .dmLast { color: #ff6a3d; text-shadow: 0 2px 0 #5a1500, 0 0 12px rgba(255,90,40,.6); }
#dmgMeter .dmSum { margin-top: -2px; font-size: 11px; font-weight: 700; color: #f4ead0; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
#dmgMeter.pop .dmLast { animation: dmPop .28s ease-out; }
@keyframes dmPop { from { transform: scale(1.45); } to { transform: scale(1); } }
.label.gm { font-weight: 900; text-shadow: 0 0 6px rgba(255,200,40,0.9), 0 1px 2px #000; }
.gmchat { color: #ffe14a; }
/* ölüm penceresi: iki seçenek */
.deadbtns { display: flex; gap: 8px; width: 100%; }
.deadbtns .btn { flex: 1; }
#respawnHereBtn:disabled { opacity: .45; }

/* telefona yükleme ve tam ekran */
.installbtn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
#fsBtn { position: fixed; left: 116px; top: 182px; width: 46px; height: 46px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.3); background: rgba(14,16,13,0.78); color: #f4f1e8; display: flex; align-items: center; justify-content: center; }
body.standalone #fsBtn { display: none; }
#installText ol { margin: 6px 0 0 18px; padding: 0; }
#installText b { color: #f4f1e8; }
#installText .warn { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: #2a2418; color: #ffe08a; font-size: 12px; }
/* ustalık: M1 mavi, M2 mor, M3 kızıl – daha güçlü ve hızlı parıltı */
.skb.m1::before, .skb.m2::before, .skb.m3::before { box-shadow: 0 0 16px 3px var(--c), 0 0 6px var(--c2) inset; animation-duration: 1.1s; }
.skb.m3::before { animation-duration: 0.7s; }

/* ---------- Metin2 tarzı giriş / karakter seçme ekranları (arkada 3D sahne) ---------- */
.screen.lobbyscr { background: radial-gradient(ellipse at 50% 120%, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%); pointer-events: none; display: none; flex-direction: column; justify-content: flex-start; padding: max(10px, env(safe-area-inset-top)) 14px 14px; }
.screen.lobbyscr.show { display: flex; }
.lobbyscr > * { pointer-events: auto; }
.lobbyscr .logo, .lobbyscr .selinfo { pointer-events: none; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: .9; margin: 4vh auto 2vh; filter: drop-shadow(0 4px 10px rgba(0,0,0,.8)); }
.logo-a, .logo-b { font-family: 'Cinzel Decorative', 'Rubik', serif; font-weight: 900; letter-spacing: .08em;
  background: linear-gradient(180deg, #fff6d0 0%, #f2cf6b 38%, #b7802a 62%, #ffe9a8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(60,30,0,.55); }
.logo-a { font-size: clamp(34px, 7vw, 74px); }
.logo-b { font-size: clamp(22px, 4.2vw, 42px); letter-spacing: .42em; margin-top: 2px; padding-left: .42em; }
.logo-sub { font-style: normal; font-size: 12px; color: #d9c79a; letter-spacing: .3em; margin-top: 10px; text-transform: uppercase; opacity: .85; }
.logo::after { content: ''; width: min(320px, 60vw); height: 2px; margin-top: 12px; background: linear-gradient(90deg, transparent, #e8b54a, transparent); }
.logo.small { margin: 0 auto; position: absolute; left: 50%; top: max(10px, env(safe-area-inset-top)); transform: translateX(-50%) scale(.55); transform-origin: top center; }
.logo.small::after { display: none; }
.glass { background: linear-gradient(180deg, rgba(24,20,14,.86), rgba(12,12,10,.86)); border: 1px solid rgba(232,181,74,.45); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 10px 30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,230,160,.15); }
#authScreen .card { margin: 0 auto; }
.slots { position: absolute; left: max(12px, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); width: min(250px, 42vw); max-height: 86vh; overflow-y: auto; padding: 12px; border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.slotshead { color: #e8b54a; font-weight: 800; letter-spacing: .14em; font-size: 13px; text-align: center; padding-bottom: 6px; border-bottom: 1px solid rgba(232,181,74,.3); }
.slotlist { display: flex; flex-direction: column; gap: 6px; }
.slotlist .charcard { min-height: 58px; padding: 8px 10px; flex-direction: row; align-items: center; gap: 10px; background: rgba(26,29,23,.85); }
.slotlist .charcard .cico { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #1a1408; box-shadow: inset 0 -3px 6px rgba(0,0,0,.35), 0 0 0 2px rgba(0,0,0,.5); }
.slotlist .charcard .ctext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.slotlist .charcard.sel { border-color: #e8b54a; box-shadow: 0 0 12px rgba(232,181,74,.45); background: rgba(60,44,14,.85); }
.slotlist .charcard.new { min-height: 46px; }
.selinfo { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; text-shadow: 0 2px 6px #000, 0 0 2px #000; text-align: center; }
.selinfo b { font-size: 24px; color: #ffe9a8; letter-spacing: .06em; }
.selinfo span { font-size: 13px; color: #d9c79a; }
.selbar { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 10px; align-items: center; }
.btn.big { min-width: 190px; min-height: 56px; font-size: 18px; letter-spacing: .08em; background: linear-gradient(180deg, #ffd977, #c9922f); box-shadow: 0 0 0 2px #3a2810, 0 0 18px rgba(232,181,74,.5); }
.selbar .btn.danger { min-height: 48px; background: rgba(20,10,8,.7); }
.selbar .btn.alt { min-height: 48px; }
.selmsg { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); text-shadow: 0 1px 3px #000; }
.createbox { gap: 8px; }
.createbox .classes { grid-template-columns: 1fr 1fr; }
.createbox .classbtn { min-height: 48px; padding: 8px; background: rgba(26,29,23,.85); }
.createbox input { font: inherit; font-size: 16px; padding: 10px; border-radius: 10px; border: 2px solid #3a3f35; background: #1a1d17; color: #f4f1e8; }
.createbox label { font-size: 12px; color: #c9c4b6; }
#classdesc { font-size: 12px; color: #c9c4b6; line-height: 1.45; }
@media (max-height: 460px) { .logo { margin: 1vh auto 1vh; } .logo-sub { display: none; } #authScreen .card { padding: 14px; gap: 8px; } .selinfo { bottom: 76px; } .selinfo b { font-size: 19px; } }
@media (orientation: portrait) { .slots { top: auto; bottom: 150px; transform: none; left: 50%; transform: translateX(-50%); width: min(340px, 92vw); max-height: 34vh; } .selinfo { bottom: auto; top: 70px; } }

/* ---------- demirci, taş yuvaları ---------- */
.upb { position: absolute; left: 3px; top: 2px; font-style: normal; font-size: 10px; font-weight: 800; color: #ffe08a; text-shadow: 0 1px 2px #000; }
.upv { color: #7be08f; }
.socks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; }
.sock { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #5a5446; background: #0e0f0c; display: inline-block; }
.sock.full { border-color: #f4f1e8; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 55%, #000 120%); box-shadow: 0 0 6px var(--c); }
.socks small { font-size: 10px; }
#smithList { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
#smithList .warn, .srow small.warn { color: #ff8a7a; }
.eqtag { color: #e8b54a !important; }
.smithscroll { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #f2e2a0; }
.smithscroll input { width: 20px; height: 20px; accent-color: #e8b54a; }
#smithResult { text-align: center; font-weight: 800; font-size: 0; letter-spacing: .08em; height: 0; transition: none; }
#smithResult.ok, #smithResult.fail { font-size: 20px; height: auto; padding: 6px; border-radius: 10px; animation: smithpop .5s ease-out; }
#smithResult.ok { color: #9dff9a; background: rgba(40,90,30,.35); text-shadow: 0 0 10px #4f4; }
#smithResult.fail { color: #ff8a7a; background: rgba(90,20,15,.35); text-shadow: 0 0 10px #f42; }
@keyframes smithpop { 0% { transform: scale(1.6); opacity: 0; } 60% { transform: scale(.95); opacity: 1; } 100% { transform: scale(1); } }

/* ---------- sohbet, oyuncu menüsü, arkadaşlar, düello ---------- */
#chatBtn, #friendBtn { position: fixed; top: 182px; width: 46px; height: 46px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.3); background: rgba(14,16,13,0.78); color: #f4f1e8; display: flex; align-items: center; justify-content: center; }
#chatBtn { left: 168px; } #friendBtn { left: 220px; }
body.standalone #chatBtn { left: 116px; } body.standalone #friendBtn { left: 168px; }
#friendBtn i { position: absolute; right: -5px; top: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: #3fae4a; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
#chatBar { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); width: min(560px, 94vw); display: none; gap: 6px; padding: 6px; border-radius: 14px; background: rgba(14,16,13,0.92); border: 1px solid rgba(232,181,74,.5); z-index: 18; }
#chatBar.open { display: flex; }
#chatBar input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px; border-radius: 10px; border: 2px solid #3a3f35; background: #1a1d17; color: #f4f1e8; }
#chatBar .btn { min-height: 44px; font-size: 14px; }
#chatTo { font: inherit; font-weight: 700; font-size: 12px; border: 0; border-radius: 10px; background: #3a3f35; color: #c9c4b6; padding: 0 10px; max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#chatTo.w { background: #5a2a5a; color: #ffb3f0; }
#log .wsp, #log b.wsp { color: #ffb3f0; }
#pmenu { position: fixed; display: none; flex-direction: column; gap: 6px; width: 180px; padding: 10px; border-radius: 14px; background: rgba(20,22,18,0.96); border: 1px solid rgba(232,181,74,.6); z-index: 17; box-shadow: 0 8px 24px rgba(0,0,0,.6); }
#pmenu.open { display: flex; }
#pmenu b { color: #8ec5ff; font-size: 15px; }
#pmenu small { color: #8b877c; font-size: 11px; margin-top: -4px; }
#pmenu button { font: inherit; font-weight: 700; font-size: 14px; min-height: 42px; border-radius: 10px; border: 0; background: #3a3f35; color: #f4f1e8; }
#pmenu .duelbtn { background: #7a2018; color: #ffd9d2; }
#askBox { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); width: min(360px, 92vw); display: none; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(20,22,18,0.97); border: 2px solid #e8b54a; z-index: 19; box-shadow: 0 10px 30px rgba(0,0,0,.7); }
#askBox.open { display: flex; animation: smithpop .35s ease-out; }
#askBox.danger { border-color: #d9443a; }
#askBox p { margin: 0; font-size: 15px; line-height: 1.4; text-align: center; }
.label.foe { color: #ff5a4a !important; }
#duelBanner { position: fixed; left: 50%; top: 30%; transform: translate(-50%, -50%); font-family: 'Cinzel Decorative', Rubik, serif; font-weight: 900; font-size: 64px; color: #ffe9a8; text-shadow: 0 0 20px #ff6a3d, 0 4px 0 #5a1a08; pointer-events: none; opacity: 0; z-index: 14; }
#duelBanner.show { animation: duelpop 1s ease-out forwards; }
#duelBanner.fight, #duelBanner.lose { color: #ff8a6a; }
#duelBanner.win { color: #fff2a8; text-shadow: 0 0 24px #ffd23f, 0 4px 0 #6a4a08; }
@keyframes duelpop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.9); } }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #5a5446; flex: none; }
.dot.on { background: #3fd04a; box-shadow: 0 0 6px #3fd04a; }
@media (max-height: 460px) {
  .slots { width: 215px; padding: 8px; gap: 5px; }
  .slotlist { gap: 4px; }
  .slotlist .charcard { min-height: 44px; padding: 4px 8px; }
  .slotlist .charcard .cico { width: 28px; height: 28px; font-size: 12px; }
  .slotlist .charcard.new { min-height: 36px; }
  .slots .sub { display: none; }
  .slotshead { padding-bottom: 4px; font-size: 12px; }
  .selinfo { bottom: 74px; left: calc(50% + 100px); }
  .selbar { left: calc(50% + 100px); }
  .selbar .btn.big { min-height: 48px; min-width: 160px; font-size: 16px; }
  .selmsg { bottom: 120px; }
  .createbox .classbtn { min-height: 38px; padding: 6px; }
  .createbox { gap: 5px; }
  .createbox input { padding: 7px; }
}
@media (orientation: portrait) { .slots { max-height: 32vh; bottom: 92px; } .selinfo { top: 66px; } }
.leaves { display: flex; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.leaf { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--c); }
.leaf .ico3d, .leaf svg { width: 18px !important; height: 18px !important; }
.evo { display: inline-flex; align-items: center; gap: 3px; color: #ffe08a; font-weight: 700; }
.evo .ico3d, .evo svg { width: 18px !important; height: 18px !important; }
.leaf.miss { color: #ff8a7a; }

/* ticaret */
#pmenu .tradebtn { background: #2f5a2a; color: #dfffd6; }
.tradebox { width: min(560px, 96vw); gap: 8px; overflow-y: auto; }
.tside { border: 2px solid #3a3f35; border-radius: 12px; padding: 8px; background: rgba(0,0,0,.25); transition: border-color .2s; }
.tside.ok { border-color: #5fd35a; box-shadow: 0 0 12px rgba(95,211,90,.35) inset; }
.thead { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.thead small, .tinvhead small { color: #8b877c; font-weight: 400; font-size: 11px; }
.tok { font-size: 12px; font-weight: 800; color: #8b877c; }
.tside.ok .tok { color: #7dff78; }
.tgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; min-height: 48px; }
.tgrid.inv { grid-template-columns: repeat(8, minmax(0, 1fr)); max-height: 30vh; overflow-y: auto; }
.tgrid .slot.used { opacity: .3; }
.tyang { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; color: #ffe08a; }
.tyang input { flex: 1; min-width: 0; height: 40px; border-radius: 10px; border: 1px solid #5a4a2a; background: #12140f; color: #ffe08a; font: inherit; font-size: 16px; padding: 0 10px; }
.tyang .btn { min-height: 40px; font-size: 14px; }
.tinvhead { font-weight: 700; font-size: 14px; }
#tradeInfo { min-height: 18px; font-size: 12px; color: #d8d2c0; }
#tradeInfo b { color: #ffe08a; }
.trow { display: flex; gap: 8px; } .trow .btn { flex: 1; }
#tradeOk.done { background: #3f7a3a; color: #dfffd6; }

/* ana menü */
#menuBtn { position: fixed; left: 64px; top: 236px; width: 46px; height: 46px; border-radius: 12px; border: 2px solid rgba(232,181,74,0.7); background: rgba(14,16,13,0.82); color: #e8b54a; display: flex; align-items: center; justify-content: center; }
#menuBtn i, .menugrid button i { position: absolute; right: -4px; top: -4px; min-width: 20px; height: 18px; padding: 0 4px; border-radius: 9px; background: #b23a24; color: #fff; font-style: normal; font-size: 10px; font-weight: 800; line-height: 18px; }
.menubox { width: min(520px, 96vw); }
.menugrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.menugrid button { position: relative; min-height: 84px; border-radius: 14px; border: 2px solid #3a3f35; background: linear-gradient(180deg, #2a2e25, #1a1d17); color: #f4f1e8; font: inherit; font-weight: 700; font-size: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menugrid button:active { border-color: #e8b54a; }
.menugrid .mi { font-size: 26px; line-height: 1; }
.menuhint { color: #8b877c; font-size: 12px; }
#pmenu .partybtn { background: #2a4a6a; color: #d6ecff; }
/* grup çerçeveleri */
#partyFrames { position: fixed; left: 12px; top: 290px; width: 168px; display: flex; flex-direction: column; gap: 5px; z-index: 5; }
.pf { display: flex; flex-direction: column; gap: 3px; padding: 5px 7px; border-radius: 10px; border: 1px solid rgba(125,255,120,.35); background: rgba(14,16,13,.8); color: #f4f1e8; font: inherit; text-align: left; }
.pf.dead { opacity: .5; }
.pf.me { font-size: 11px; color: #8b877c; padding: 4px 7px; min-height: 30px; }
.pfn { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; } .pfn small { color: #8b877c; font-size: 10px; }
.pfb { height: 5px; border-radius: 3px; background: #3a1a17; overflow: hidden; } .pfb i { display: block; height: 100%; background: #d9443a; }
.pfb.mp { height: 3px; background: #172a3a; } .pfb.mp i { background: #3d7fc4; }
.label.party { color: #7dff78 !important; }
/* günlük görevler */
#dailyList { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.dq { border: 2px solid #3a3f35; border-radius: 12px; padding: 8px 10px; background: rgba(0,0,0,.25); }
.dq.done { border-color: #e8b54a; } .dq.claimed { opacity: .55; border-color: #3a3f35; }
.dqh { display: flex; justify-content: space-between; font-size: 15px; } .dqh span { color: #ffe08a; font-weight: 800; }
.dqt { font-size: 13px; color: #d8d2c0; margin: 2px 0 6px; }
.dqbar { height: 8px; border-radius: 4px; background: #2a2a22; overflow: hidden; } .dqbar i { display: block; height: 100%; background: linear-gradient(90deg, #b8860b, #ffd36b); }
.dqr { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; } .dqr small { color: #a8a290; font-size: 11px; }
.dqr .btn { min-height: 38px; font-size: 14px; white-space: nowrap; } .dqok { color: #7dff78; font-weight: 800; font-size: 13px; white-space: nowrap; }
.loginbox { border-top: 1px solid #3a3f35; padding-top: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
#loginDays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ld { text-align: center; font-size: 11px; padding: 6px 2px; border-radius: 8px; background: #22261e; color: #8b877c; border: 1px solid #3a3f35; }
.ld.got { background: #3f5a2a; color: #dfffd6; } .ld.today { border-color: #ffd36b; box-shadow: 0 0 8px rgba(255,211,107,.5); }
#loginInfo .btn { min-height: 34px; font-size: 13px; margin-left: 6px; }
.rewardbox { width: min(380px, 92vw); align-items: center; text-align: center; border-color: #e8b54a; box-shadow: 0 0 30px rgba(232,181,74,.35); }
.rwt { font-size: 20px; letter-spacing: .08em; color: #ffd36b; text-shadow: 0 0 12px rgba(255,180,60,.6); }
#rewardItems { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.rwi { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 76px; padding: 8px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid #5a4a2a; }
.rwi b { color: #ffe08a; font-size: 18px; } .rwi small { font-size: 11px; color: #d8d2c0; }
#rewardSub { color: #a8a290; }
.chatparty { color: #7dff78; } .chatguild { color: #8ec5ff; }

/* lonca */
.guildbox { width: min(560px, 96vw); overflow-y: auto; }
.gtxt { font-size: 13px; color: #d8d2c0; margin: 0; }
.frow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.frow input { flex: 1; min-width: 120px; height: 44px; border-radius: 10px; border: 1px solid #5a4a2a; background: #12140f; color: #f4f1e8; font: inherit; font-size: 16px; padding: 0 10px; }
.frow .btn { min-height: 44px; font-size: 14px; }
.btn.danger { background: #7a2018; color: #ffd9d2; }
.gstat { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #c9c4b6; } .gstat b { color: #ffe08a; }
.gnotice { font-size: 13px; color: #f2e2a0; background: rgba(232,181,74,.08); border-left: 3px solid #e8b54a; padding: 6px 8px; border-radius: 6px; }
.gnotice:empty { display: none; }
.gtabs { display: flex; gap: 6px; } .gtabs button { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid #3a3f35; background: #22261e; color: #c9c4b6; font: inherit; font-weight: 700; }
.gtabs button.on { background: #3a3220; color: #ffe08a; border-color: #e8b54a; }
.gtab { display: flex; flex-direction: column; gap: 6px; }
.gmem { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.25); font-size: 13px; }
.gmem .dot { width: 9px; height: 9px; border-radius: 50%; background: #555; flex: none; } .gmem.on .dot { background: #5fd35a; box-shadow: 0 0 6px #5fd35a; }
.gmem .nm { flex: 1; min-width: 0; } .gmem .nm small { display: block; color: #8b877c; font-size: 11px; }
.gmem .rk { font-size: 11px; color: #e8b54a; } .gmem button { min-height: 34px; border-radius: 8px; border: 0; background: #3a3f35; color: #f4f1e8; font: inherit; font-size: 12px; padding: 0 8px; }
#pmenu .guildbtn { background: #4a3a1a; color: #ffe8b0; }
.label .gtag { display: block; font-size: 10px; color: #8ec5ff; font-weight: 700; margin-bottom: 1px; }

/* krallıklar ve savaş */
.empires { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.empires button { min-height: 52px; border-radius: 12px; border: 2px solid #3a3f35; background: #1a1d17; color: #f4f1e8; font: inherit; font-weight: 800; font-size: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.empires button i { width: 22px; height: 22px; border-radius: 6px; transform: rotate(45deg); display: block; margin-bottom: 4px; box-shadow: 0 0 10px currentColor; }
.empires button.sel { border-color: currentColor; background: rgba(255,255,255,.06); }
.empires.big button { min-height: 120px; font-size: 16px; } .empires.big button i { width: 36px; height: 36px; margin-bottom: 10px; }
.empires button small { font-weight: 400; font-size: 11px; color: #a8a290; }
.empbox { width: min(560px, 96vw); align-items: center; text-align: center; border-color: #e8b54a; }
.label .emp { display: inline-block; width: 8px; height: 8px; transform: rotate(45deg); margin-right: 5px; vertical-align: 1px; border-radius: 1px; }
.label.foe { color: #ff6a5a !important; }
.evcard { border: 2px solid #5a4a2a; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: rgba(0,0,0,.25); }
.evcard.on { border-color: #ff6a3d; box-shadow: 0 0 16px rgba(255,90,40,.3) inset; }
.evh { display: flex; justify-content: space-between; align-items: center; font-size: 16px; } .evh span { font-size: 12px; color: #ffe08a; text-align: right; }
.warscore { display: flex; gap: 6px; } .warscore div { flex: 1; text-align: center; padding: 6px; border-radius: 10px; background: rgba(0,0,0,.35); font-size: 12px; }
.warscore b { display: block; font-size: 22px; }
#eventList { display: flex; flex-direction: column; gap: 8px; }
#warHud { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px 10px; border-radius: 12px; background: rgba(14,10,8,.85); border: 1px solid #ff6a3d; z-index: 6; font-size: 13px; font-weight: 800; align-items: center; }
#warHud span { padding: 0 6px; } #warHud small { color: #c9c4b6; font-weight: 600; }

/* pazar */
.label.stall { color: #ffd36b; font-size: 12px; background: rgba(40,28,10,.75); padding: 2px 8px; border-radius: 8px; border: 1px solid rgba(255,211,107,.5); }
.label.stall small { display: block; font-size: 10px; color: #d8d2c0; font-weight: 600; }
.stlist { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: 50vh; }
.st { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid #3a3f35; color: #f4f1e8; font: inherit; text-align: left; }
.st .ic { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #1a1d17; position: relative; flex: none; }
.st .nm { flex: 1; min-width: 0; font-size: 13px; } .st .nm small { display: block; color: #a8a290; font-size: 11px; }
.st .pr { color: #ffe08a; font-weight: 800; font-size: 14px; white-space: nowrap; }
.st input[type=number] { width: 120px; height: 40px; border-radius: 8px; border: 1px solid #5a4a2a; background: #12140f; color: #ffe08a; font: inherit; font-size: 15px; padding: 0 8px; }
.st input[type=checkbox] { width: 22px; height: 22px; accent-color: #e8b54a; flex: none; }
.st.buy:active { border-color: #e8b54a; }
.mslog { font-size: 12px; color: #c9c4b6; display: flex; flex-direction: column; gap: 2px; max-height: 20vh; overflow-y: auto; }

/* zindan */
#dunHud { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 14px; border-radius: 12px; background: rgba(20,8,24,.85); border: 1px solid #c03aff; z-index: 6; font-size: 12px; color: #f4f1e8; }
#dunHud b { color: #e0b0ff; font-size: 13px; } #dunHud small { color: #c9c4b6; }
.evcard.dun { border-color: #6a2a7a; }
.dunwaves { display: flex; gap: 6px; } .dunwaves span { flex: 1; text-align: center; padding: 6px 4px; border-radius: 8px; background: rgba(0,0,0,.35); font-size: 11px; color: #d8d2c0; }
.dunwaves span:last-child { color: #e0b0ff; border: 1px solid #6a2a7a; }

/* sıralama */
.rtabs button { font-size: 12px; padding: 0 4px; }
.ranklist { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; max-height: 62vh; }
.rk { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.25); font-size: 13px; }
.rk.me { border: 1px solid #e8b54a; }
.rk .no { width: 30px; text-align: center; font-weight: 800; color: #8b877c; font-size: 14px; flex: none; }
.rk:nth-child(1) .no { color: #ffd36b; font-size: 18px; } .rk:nth-child(2) .no { color: #d8dde3; font-size: 16px; } .rk:nth-child(3) .no { color: #d08a4a; font-size: 15px; }
.rk .nm { flex: 1; min-width: 0; } .rk .nm small { display: block; color: #8b877c; font-size: 11px; }
.rk .vl { color: #ffe08a; font-weight: 800; white-space: nowrap; }
.empbar { height: 10px; border-radius: 5px; margin-top: 4px; }

.eq.cos { border-style: dashed; border-color: #5a4a6a; }

/* öğretici ve rehber */
#tutBox { position: fixed; top: 110px; left: 50%; transform: translateX(-50%); max-width: min(520px, 70vw); display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 14px; background: rgba(20,22,18,.94); border: 2px solid #e8b54a; box-shadow: 0 0 18px rgba(232,181,74,.35); z-index: 7; font-size: 14px; color: #f4f1e8; animation: tutIn .4s ease-out; }
#tutBox small { color: #e8b54a; font-weight: 800; white-space: nowrap; }
#tutBox button { min-height: 34px; border: 0; border-radius: 8px; background: #3a3f35; color: #c9c4b6; font: inherit; font-size: 12px; padding: 0 10px; }
@keyframes tutIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.tut-hl { animation: tutPulse 1s ease-in-out infinite alternate !important; }
@keyframes tutPulse { from { box-shadow: 0 0 0 0 rgba(255,211,107,.9); } to { box-shadow: 0 0 0 10px rgba(255,211,107,0); } }
.helpbox { width: min(640px, 96vw); }
.help { overflow-y: auto; max-height: 62vh; display: flex; flex-direction: column; gap: 2px; }
.help h4 { margin: 8px 0 2px; color: #ffd36b; font-size: 15px; } .help p { margin: 0; font-size: 13px; line-height: 1.5; color: #d8d2c0; }

/* sade ekran: sol üstte sadece Menü, Ayarlar, Sohbet (ve varsa At) */
#sndBtn, #musicBtn, #fsBtn, #charBtn, #friendBtn, #skillBtn, #online { display: none !important; }
#menuBtn { left: 12px; top: 130px; width: 52px; height: 52px; }
#setBtn { position: fixed; left: 70px; top: 130px; width: 46px; height: 46px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.3); background: rgba(14,16,13,0.78); color: #f4f1e8; display: flex; align-items: center; justify-content: center; }
#chatBtn, body.standalone #chatBtn { left: 122px; top: 130px; }
#mountBtn { left: 174px; top: 130px; }
#partyFrames { top: 190px; }
/* ayarlar */
.setbox { width: min(520px, 96vw); gap: 10px; }
.setrow { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.setrow > span:first-child { width: 150px; flex: none; }
.setrow input[type=range] { flex: 1; accent-color: #e8b54a; height: 32px; }
.setrow b { width: 46px; text-align: right; color: #ffe08a; font-size: 13px; }
.seg { display: flex; gap: 4px; flex: 1; } .seg button { flex: 1; min-height: 38px; border-radius: 10px; border: 1px solid #3a3f35; background: #22261e; color: #c9c4b6; font: inherit; font-weight: 700; font-size: 13px; }
.seg button.on { background: #3a3220; color: #ffe08a; border-color: #e8b54a; }
.setbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.setbtns .btn { min-height: 46px; font-size: 14px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
#stallBtn { position: fixed; left: 174px; top: 130px; width: 46px; height: 46px; border-radius: 12px; border: 2px solid #ffd36b; background: rgba(40,28,10,0.82); color: #ffd36b; display: flex; align-items: center; justify-content: center; }
/* pazar tezgâhı: yatay telefonda da "Tezgâhı aç" görünsün; uzun pencereler kaydırılabilir */
.modalbox { max-height: 96vh; max-height: 96dvh; overflow-y: auto; }
#msNone, #msHas { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
#msTitle { flex: 1; min-width: 0; }
#msOpen { flex: none; }
#msPick, #msItems { max-height: 42vh; max-height: 42dvh; }
/* otomatik av */
#autoBtn { position: fixed; left: 26px; bottom: 150px; width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); background: rgba(14,16,13,0.8); color: #f4f1e8; display: none; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
body.ingame #autoBtn { display: flex; }
#autoBtn b { font-size: 14px; letter-spacing: .04em; } #autoBtn small { font-size: 9px; opacity: .8; margin-top: 2px; }
#autoBtn.on { border-color: #ffd36b; background: radial-gradient(circle, #6b4a0e, #2a1c06); color: #ffe08a; box-shadow: 0 0 14px rgba(255,200,80,.7); animation: autopulse 1.6s ease-in-out infinite; }
@keyframes autopulse { 50% { box-shadow: 0 0 4px rgba(255,200,80,.3); } }
/* oyuncu menüsü: iki sütun, yatay telefonda ekrana sığar; düello en üstte ve geniş */
#pmenu.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 300px; }
#pmenu b, #pmenu small, #pmenu .duelbtn { grid-column: 1 / -1; }
#pmenu button { min-height: 44px; font-size: 13px; }
/* envanter sayfaları (I açık; II ve III görevle açılır) */
.gridcol { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#invPages { display: flex; gap: 6px; }
#invPages button { flex: 1; min-height: 32px; border-radius: 8px; border: 1px solid #5a4a2a; background: #1e1c16; color: #c9c4b6; font-weight: 800; letter-spacing: .1em; }
#invPages button.on { background: #e8b54a; color: #2a1f08; border-color: #e8b54a; }
#invPages button.locked { opacity: .55; }
#invPages button.locked::after { content: ' 🔒'; font-size: 11px; }
.invlock { grid-column: 1 / -1; padding: 14px; border-radius: 10px; background: #1a1812; border: 1px dashed #5a4a2a; color: #c9c4b6; font-size: 13px; line-height: 1.5; }
.invlock b { color: #ffd98a; }
/* ana görevler */
.mqhead { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #8b877c; margin-top: 2px; }
#mainList { display: flex; flex-direction: column; gap: 8px; }
.dq.locked { opacity: .55; }
/* depo */
.depotbox { width: min(860px, 98vw); }
.depotcols { display: flex; gap: 12px; min-height: 0; }
.depotcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 5px; max-height: 46vh; max-height: 46dvh; overflow-y: auto; align-content: start; }
.dgrid .slot { position: relative; }
.depotyang { align-items: center; flex-wrap: wrap; }
.depotyang input { width: 120px; }
@media (max-width: 640px) { .depotcols { flex-direction: column; } }
/* dünya boss'u */
.evcard.wb.on { border-color: #ff5a1a; box-shadow: 0 0 0 1px #ff5a1a inset; }
#wbLast { font-size: 12px; color: #c9c4b6; line-height: 1.5; }
#wbLast b { color: #ffd98a; }
#wbHud { position: fixed; top: 62px; left: 50%; transform: translateX(-50%); width: min(460px, 52vw); z-index: 6; flex-direction: column; gap: 3px; pointer-events: none; }
#wbHud .wbname { display: flex; justify-content: space-between; align-items: baseline; text-shadow: 0 2px 6px #000; }
#wbHud .wbname b { color: #ffb36b; font-size: 15px; letter-spacing: .04em; }
#wbHud .wbname small { color: #f4f1e8; font-size: 12px; font-weight: 700; }
#wbHud .wbbar { position: relative; height: 16px; border-radius: 8px; background: rgba(20,8,4,.85); border: 1px solid #ff6a3d; overflow: hidden; }
#wbHud .wbbar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #8a1a0a, #ff4a1a 60%, #ffb347); transition: width .4s; }
#wbHud .wbbar span { position: absolute; inset: 0; text-align: center; font-size: 11px; font-weight: 800; line-height: 15px; color: #fff; text-shadow: 0 1px 3px #000; }
#wbHud .wbname { gap: 8px; }
#wbHud .wbname small { margin-left: auto; }
#wbLeave { pointer-events: auto; min-height: 26px; padding: 2px 10px; border-radius: 8px; border: 1px solid #ff6a3d; background: rgba(40,14,6,.9); color: #ffd9c8; font: inherit; font-size: 11px; font-weight: 700; }
#wbRank { display: flex; gap: 10px; align-items: baseline; justify-content: center; flex-wrap: wrap; font-size: 11px; font-weight: 700; text-shadow: 0 1px 4px #000; }
#wbTop { display: flex; gap: 10px; }
#wbTop small { color: #c9c4b6; font-weight: 600; }
#wbMe { color: #8ec5ff; }
#wbN { color: #c9c4b6; font-weight: 600; }
/* nesne market ve süreli etkiler */
.mallep { font-size: 13px; color: #c9c4b6; margin-left: auto; margin-right: 8px; }
.mallep b { color: #8fd8ff; }
#mallList { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; max-height: 60dvh; overflow-y: auto; }
#buffs .timed { border-color: #ffd23f; color: #ffe8a0; }

/* ---------- Metin2 tarzı envanter ---------- */
#inv { align-items: center; justify-content: flex-end; padding-right: max(10px, 3vw); }
@media (max-width: 720px) { #inv { justify-content: center; padding: 0; } }
#invbox { width: min(318px, 96vw); max-height: 96vh; overflow-y: auto; padding: 10px 10px 8px; gap: 8px; border-radius: 6px;
  background: linear-gradient(#2a2418, #17140e 40%, #120f0a); border: 2px solid #6b5630; box-shadow: inset 0 0 0 1px #000, 0 10px 40px rgba(0,0,0,.6); }
#invhead { height: 22px; border-bottom: 1px solid #4a3c22; padding-bottom: 4px; }
#invhead b { font-size: 13px; color: #f0d58a; letter-spacing: .12em; text-shadow: 0 1px 0 #000; }
#invclose { width: 22px; height: 22px; border-radius: 4px; border: 1px solid #6b5630; background: #2a2216; color: #f0d58a; line-height: 1; padding: 0; }
#invmain { display: flex; flex-direction: column; gap: 8px; }
#invright { display: flex; flex-direction: column; gap: 0; }
#equipcol { --es: 48px; width: auto; display: grid; gap: 5px; padding: 8px; border-radius: 4px; border: 1px solid #3e3320;
  grid-template-columns: repeat(4, var(--es)); grid-template-rows: var(--es) var(--es) var(--es) var(--es) auto; justify-content: center; align-content: center;
  grid-template-areas: "ear helm neck wing" "weap arm shld pet" "weap arm brac cos" ". shoe . ." "stat stat stat stat";
  background: radial-gradient(ellipse at 50% 45%, rgba(232,181,74,.10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'%3E%3Cpath fill='%23ffffff' fill-opacity='.05' d='M50 6a12 12 0 1 1 0 24a12 12 0 1 1 0-24zM30 34h40l10 34-8 3-6-20v66H54V82h-8v35H34V51l-6 20-8-3z'/%3E%3C/svg%3E") center/62% no-repeat, #0f0d09; }
.eq { position: relative; height: auto !important; width: 100%; padding: 0; justify-content: center; border-radius: 4px; border: 1px solid #4a3c22;
  background: radial-gradient(circle at 50% 40%, #241f15, #0c0a07); box-shadow: inset 0 0 8px #000; }
.eq.tall { grid-row-end: span 2; }
.eq .ico3d { width: calc(var(--es) - 6px) !important; height: calc(var(--es) - 6px) !important; }
.eq.tall .ico3d { width: calc(var(--es) - 2px) !important; height: calc(var(--es) * 2 - 6px) !important; object-fit: contain; }
.eq > span { display: none; }
.eq.empty::after { content: attr(data-label); position: absolute; inset: auto 0 3px; font-size: 9px; color: #6b6150; text-align: center; letter-spacing: .02em; }
.eq.empty svg { opacity: .25; }
.eq.cos { border-style: solid; border-color: #4a3a5a; }
.eq.sel { border-color: #ffd36b; box-shadow: 0 0 0 1px #ffd36b, inset 0 0 10px rgba(255,211,107,.25); }
#stats { text-align: center; font-size: 11px; line-height: 1.5; color: #c9b98f; padding-top: 2px; }
#stats b { color: #fff1c8; }
#invPages { gap: 3px; }
#invPages button { min-height: 26px; border-radius: 3px 3px 0 0; border: 1px solid #4a3c22; border-bottom: 0; background: #1a160e; color: #9a8a66; font-size: 12px; }
#invPages button.on { background: #6b5630; color: #fff1c8; border-color: #8a7040; }
#grid { grid-template-columns: repeat(5, var(--gs, 1fr)); gap: 2px; padding: 3px; border: 1px solid #4a3c22; background: #0c0a07; flex: none; justify-content: center; }
#invfoot { margin-top: 4px; }
/* yatay telefon ve kısa ekran: kuşanılanlar solda, çanta sağda */
@media (max-height: 620px) {
  #invbox { width: auto; max-width: 98vw; padding: 6px 8px; gap: 4px; }
  #invmain { flex-direction: row; align-items: flex-start; }
  #equipcol { --es: min(44px, 10.5vh); }
  #grid { --gs: min(36px, 7.6vh); }
  #grid .slot { width: var(--gs); height: var(--gs); }
  #invhead { height: 18px; }
  #stats { font-size: 10px; }
}
#grid .slot { min-height: 0; border-radius: 2px; border: 1px solid #2e2618 !important; background: linear-gradient(#17140e, #0e0c08); }
#grid .slot.sel { border-color: #ffd36b !important; box-shadow: inset 0 0 0 1px #ffd36b; }
#grid .slot.r1 { box-shadow: inset 0 0 10px rgba(127,179,255,.35); }
#grid .slot.r2 { box-shadow: inset 0 0 10px rgba(255,179,71,.45); }
#invfoot { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 4px 8px; border: 1px solid #4a3c22; border-radius: 3px; background: #0c0a07; font-size: 12px; color: #c9b98f; }
#invfoot b { color: #ffe08a; font-size: 13px; }
#invfoot .coin { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, #e8b54a 55%, #8a6420); box-shadow: 0 0 4px #e8b54a; }

/* eşya bilgisi: Metin2 gibi alt alta satırlar */
.itip { position: fixed; z-index: 16; display: none; width: 250px; max-width: 92vw; max-height: 80vh; overflow-y: auto; padding: 10px 12px 10px;
  border-radius: 4px; border: 1px solid #8a7040; background: rgba(8,7,5,.94); box-shadow: 0 6px 24px rgba(0,0,0,.7); text-align: center; font-size: 12px; line-height: 1.55; color: #e8e2d0; }
.itip.open { display: block; }
.itip .t-tn { font-size: 14px; font-weight: 800; margin-bottom: 2px; }
.itip .ln { display: block; }
.itip .sp { height: 7px; }
.itip .t-req.bad { color: #ff6a5a; }
.itip .t-st { color: #f4f1e8; }
.itip .t-st i { font-style: normal; color: #9fe07f; }
.itip .t-bn { color: #8fd3ff; }
.itip .t-ef { color: #c58bff; }
.itip .t-sk { color: #9a8f78; }
.itip .t-cl { color: #d8b96a; }
.itip .t-ds { color: #9a917c; font-style: italic; }
.itip .ico { display: flex; justify-content: center; margin: 2px 0 4px; }
.itip .ico .ico3d { width: 64px; height: 64px; }
.itip .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.itip .acts button { font: inherit; font-weight: 700; min-height: 36px; padding: 0 12px; border-radius: 4px; border: 1px solid #c89a3a; background: linear-gradient(#e8b54a, #a87a24); color: #241805; }
.itip .acts button.alt { background: #2a2418; color: #e8e2d0; border-color: #5a4a2a; }

/* EXP: Metin2 gibi 4 kutu (her biri seviyenin %25'i) ve yüzde */
#expRow { display: flex; align-items: center; gap: 3px; width: 150px; }
#expRow .expLbl { font-size: 9px; color: #e8b54a; letter-spacing: .04em; margin-right: 1px; }
#expRow .expBox { flex: 1; height: 9px; border-radius: 3px; background: rgba(0,0,0,0.55); border: 1px solid rgba(232,181,74,0.55); overflow: hidden; }
#expRow .expBox i { display: block; height: 100%; width: 0; background: linear-gradient(180deg, #ffe9a0, #e8b54a 55%, #b07a1c); transition: width .35s; }
#expRow .expBox.full { border-color: #ffe08a; box-shadow: 0 0 5px rgba(255,214,90,0.75); }
#expRow #exptext { font-size: 10px; font-weight: 800; color: #ffe9a0; min-width: 36px; text-align: right; text-shadow: 0 1px 2px #000; }
#expRow #expRate { font-size: 9px; font-weight: 900; color: #2a1a00; background: linear-gradient(180deg, #ffe14a, #e0a01c); border-radius: 4px; padding: 1px 4px; box-shadow: 0 0 6px rgba(255,210,60,.8); animation: gmGlow 1.8s ease-in-out infinite; }

/* başlangıç rehberi */
.guidebox { width: min(680px, 96vw); max-height: 92vh; gap: 8px; }
#guideTabs { display: flex; gap: 4px; flex-wrap: wrap; }
#guideTabs button { min-height: 30px; padding: 0 10px; border-radius: 15px; border: 1px solid #4a3c22; background: #1a160e; color: #c9b98f; font-size: 12px; }
#guideTabs button.on { background: linear-gradient(#e8b54a, #b8862a); color: #1a1208; border-color: #ffd36b; font-weight: 700; }
#guideBody { overflow-y: auto; min-height: 220px; max-height: 58vh; padding: 10px 12px; border-radius: 6px; border: 1px solid #3e3320;
  background: radial-gradient(ellipse at 20% 0%, rgba(232,181,74,.10), transparent 55%), #0f0d09; font-size: 13px; line-height: 1.55; color: #d8d2c0; }
#guideBody h3 { margin: 0 0 6px; color: #ffd36b; font-size: 17px; display: flex; align-items: center; gap: 8px; }
#guideBody h4 { margin: 10px 0 3px; color: #f0d58a; font-size: 14px; }
#guideBody p { margin: 0 0 6px; }
#guideBody ul { margin: 2px 0 6px; padding-left: 18px; } #guideBody li { margin: 2px 0; }
#guideBody b { color: #fff1c8; }
.gstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin: 6px 0; }
.gstats span { padding: 6px 8px; border-radius: 5px; background: #1a160e; border: 1px solid #3e3320; font-size: 12px; }
.gstats span b { display: block; font-size: 15px; }
.gskill { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid #2a2418; }
.gskill i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800; color: #111; }
.gmap { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.gmap span { padding: 4px 8px; border-radius: 4px; background: #1a160e; border: 1px solid #3e3320; font-size: 12px; }
.gmap span.here { border-color: #ffd36b; color: #ffd36b; box-shadow: 0 0 8px rgba(255,211,107,.35); }
.gmap em { color: #6b6150; font-style: normal; }
.guidefoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.guidefoot small { color: #8b877c; text-align: center; font-size: 11px; }

/* balık yakalanınca ortada çıkan kart */
#catchCard { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, -10px) scale(.9); display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px;
  border-radius: 14px; border: 1px solid #9fd8ff; background: linear-gradient(rgba(16,32,44,.92), rgba(8,16,24,.92)); box-shadow: 0 0 24px rgba(127,200,255,.35);
  opacity: 0; pointer-events: none; z-index: 40; }
#catchCard.show { animation: catchIn 3s ease forwards; }
#catchCard small { display: block; color: #9fd8ff; font-size: 12px; letter-spacing: .05em; }
#catchCard b { font-size: 20px; }
@keyframes catchIn { 0% { opacity: 0; transform: translate(-50%, -10px) scale(.8); } 10% { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  18% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -14px) scale(1); } }
