:root {
  --bg: #14121c; --panel: #1f1b2b; --panel2: #2a2439; --line: #3d3452;
  --text: #f1ead8; --muted: #a79fb8; --gold: #ffcf4a; --hp: #e8414f; --mp: #3f8cff; --xp: #b07dff;
  --accent: #ff8a3d; --accent2: #7fe3ff; --ok: #59d37a;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif; overflow: hidden; overscroll-behavior: none; }
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; image-rendering: pixelated; touch-action: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* Ekranlar */
.screen { position: fixed; inset: 0; display: flex; align-items: center; flex-direction: column; z-index: 50; overflow-y: auto;
  background: radial-gradient(ellipse at 50% 30%, #3a2440 0%, #1a1424 55%, #0d0b12 100%); padding: 16px; }
.screen > * { margin-top: auto; } .screen > :last-child { margin-bottom: auto; }
.auth-card { flex: none; width: min(380px, 100%); background: rgba(31,27,43,.92); border: 2px solid var(--line); border-radius: 14px; padding: 26px 22px; box-shadow: 0 20px 60px #0008; }
.logo { text-align: center; font-weight: 900; letter-spacing: 3px; line-height: 1; margin-bottom: 6px; }
.logo-a { display: block; font-size: 44px; color: var(--accent); text-shadow: 0 3px 0 #7a2f10, 0 0 24px #ff6a2a66; }
.logo-ve { display: block; font-size: 16px; color: var(--muted); margin: 4px 0; letter-spacing: 6px; }
.logo-b { display: block; font-size: 40px; color: var(--accent2); text-shadow: 0 3px 0 #135a6e, 0 0 24px #7fe3ff66; }
.tagline { text-align: center; color: var(--muted); margin: 10px 0 18px; font-size: 14px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tab { flex: 1; padding: 9px; border: 1px solid var(--line); background: transparent; border-radius: 8px; color: var(--muted); }
.tab.active { background: var(--panel2); color: var(--text); border-color: var(--accent); }
form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
form input, .field { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; background: #120f19; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 16px; }
form input:focus, .field:focus { outline: 2px solid var(--accent); border-color: transparent; }
.err { color: #ff7b7b; min-height: 20px; font-size: 13px; margin: 4px 0 8px; }
.hint { color: var(--muted); font-size: 12px; text-align: center; margin: 14px 0 0; }
.btn { border: 1px solid var(--line); background: var(--panel2); padding: 8px 12px; border-radius: 8px; color: var(--text); }
.btn:hover { border-color: var(--accent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(#ff9a52, #e2621f); border-color: #ffb27d; color: #2a1206; font-weight: 800; }
.btn.blue { background: linear-gradient(#8fe9ff, #3ab2d6); border-color: #b7f2ff; color: #062a35; font-weight: 800; }
.btn.danger { background: #5a1d24; border-color: #a33a46; }
.btn.big { width: 100%; padding: 13px; font-size: 17px; }
.btn.sm { padding: 4px 9px; font-size: 13px; }
.spinner { width: 46px; height: 46px; border: 4px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; font-size: 14px; }
#hud button, #hud .ib { pointer-events: auto; }
.hud-left { position: absolute; left: calc(10px + env(safe-area-inset-left)); top: calc(10px + env(safe-area-inset-top)); width: min(260px, 46vw); background: #0009; padding: 8px 10px; border-radius: 10px; border: 1px solid #fff1; }
.name-row { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 5px; }
.lv { color: var(--gold); }
.bar { position: relative; height: 14px; background: #000a; border-radius: 4px; overflow: hidden; margin-bottom: 4px; border: 1px solid #fff2; }
.bar > div { height: 100%; transition: width .15s; }
.bar span { position: absolute; inset: 0; font-size: 10px; line-height: 13px; text-align: center; text-shadow: 0 1px 2px #000; font-weight: 700; }
.bar.hp > div { background: linear-gradient(#ff6b77, var(--hp)); }
.bar.mp > div { background: linear-gradient(#75aaff, var(--mp)); }
.bar.xp { height: 6px; margin: 0; } .bar.xp > div { background: var(--xp); }
.hud-right { position: absolute; right: calc(10px + env(safe-area-inset-right)); top: calc(10px + env(safe-area-inset-top)); text-align: right; }
.zone { font-weight: 700; text-shadow: 0 2px 3px #000; }
.gold { margin: 3px 0 6px; font-weight: 800; color: var(--gold); text-shadow: 0 2px 3px #000; }
.coin { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3a8, #ffb300 60%, #a06a00); margin-right: 5px; vertical-align: -1px; }
.menu-btns { display: flex; gap: 5px; justify-content: flex-end; }
.ib { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #fff2; background: #000a; font-size: 19px; padding: 0; }
.ib:hover { border-color: var(--accent); }
.dot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; background: var(--gold); border-radius: 50%; border: 2px solid #000; }
#bossBar { position: absolute; left: 50%; transform: translateX(-50%); top: calc(64px + env(safe-area-inset-top)); width: min(460px, 70vw); text-align: center; }
.boss-name { font-weight: 800; color: #ffb27d; text-shadow: 0 2px 3px #000; margin-bottom: 3px; }
.bar.boss { height: 18px; } .bar.boss span { line-height: 17px; font-size: 11px; } .bar.boss > div { background: linear-gradient(#ff8a3d, #c0391b); }
#skillbar { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 6px; }
.sk { position: relative; width: 50px; height: 50px; border-radius: 10px; background: #000b; border: 2px solid #fff3; display: flex; align-items: center; justify-content: center; font-size: 22px; overflow: hidden; }
.sk .k { position: absolute; left: 3px; top: 1px; font-size: 10px; color: var(--muted); font-weight: 700; }
.sk .n { position: absolute; right: 3px; bottom: 1px; font-size: 10px; font-weight: 700; }
.sk .cd { position: absolute; left: 0; right: 0; bottom: 0; background: #000c; }
.sk.locked { opacity: .35; }
.sk.nomana { border-color: #3f8cff88; }
#toasts { position: absolute; left: 50%; transform: translateX(-50%); top: 18%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.toast { background: #000c; padding: 7px 14px; border-radius: 20px; font-weight: 700; animation: toast 2.6s forwards; text-align: center; border: 1px solid #fff2; }
.toast.big { font-size: 22px; color: var(--gold); padding: 10px 22px; }
@keyframes toast { 0% { opacity: 0; transform: translateY(10px); } 10% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
#interact { position: absolute; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #000c; border: 1px solid var(--accent); padding: 7px 14px; border-radius: 8px; font-weight: 700; }
#saveInd { position: absolute; right: 12px; bottom: 12px; font-size: 12px; color: var(--muted); background: #0008; padding: 3px 8px; border-radius: 6px; }

/* Dokunmatik */
#touch { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#stick { position: absolute; left: calc(26px + env(safe-area-inset-left)); bottom: calc(26px + env(safe-area-inset-bottom)); width: 130px; height: 130px; border-radius: 50%; background: #ffffff10; border: 2px solid #ffffff25; pointer-events: auto; touch-action: none; }
#knob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: #ffffff40; border: 2px solid #ffffff70; }
#tbtns { position: absolute; right: calc(14px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); width: 210px; height: 210px; pointer-events: none; }
.tb { position: absolute; pointer-events: auto; touch-action: none; border-radius: 50%; border: 2px solid #ffffff40; background: #000a; font-size: 20px; width: 50px; height: 50px; padding: 0; }
.tb:active, .tb.on { background: #ff8a3d66; }
.tb.atk { width: 78px; height: 78px; right: 8px; bottom: 8px; font-size: 32px; }
.tb.dodge { right: 98px; bottom: 0; }
.tb.s1 { right: 96px; bottom: 58px; }
.tb.s2 { right: 70px; bottom: 112px; }
.tb.s3 { right: 16px; bottom: 136px; }
.tb.s4 { right: 150px; bottom: 96px; }
.tb.s5 { right: 124px; bottom: 150px; }
.tb.pot { right: 154px; bottom: 30px; width: 44px; height: 44px; font-size: 18px; }
.tb.tgt { right: 12px; bottom: 194px; width: 42px; height: 42px; font-size: 17px; }
.tb.use { right: 64px; bottom: 196px; border-color: var(--accent); }
.tb .cdo { position: absolute; inset: 0; border-radius: 50%; background: #000b; }
body.touch #skillbar { display: none; }
body.touch #interact { bottom: 50%; }

/* Paneller */
#panel { position: fixed; inset: 0; z-index: 40; background: #0008; display: flex; align-items: center; justify-content: center; padding: 12px; }
.panel-box { width: min(620px, 100%); max-height: min(88vh, 720px); display: flex; flex-direction: column; background: var(--panel); border: 2px solid var(--line); border-radius: 14px; box-shadow: 0 20px 60px #000a; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 19px; }
.x { background: none; border: none; font-size: 20px; color: var(--muted); padding: 4px 8px; }
#panelBody { padding: 14px 16px; overflow: auto; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; }
.slot { position: relative; aspect-ratio: 1; background: #120f19; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.slot.sel { border-color: var(--accent); box-shadow: 0 0 0 2px #ff8a3d55; }
.slot .q { position: absolute; right: 3px; bottom: 1px; font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.slot canvas { width: 70%; height: 70%; image-rendering: pixelated; }
.equip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.equip .slot { aspect-ratio: auto; height: 64px; flex-direction: column; font-size: 11px; color: var(--muted); }
.equip .slot canvas { width: 30px; height: 30px; }
.detail { margin-top: 12px; background: var(--panel2); border-radius: 10px; padding: 10px 12px; min-height: 60px; }
.detail h3 { margin: 0 0 4px; font-size: 16px; }
.detail p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stat-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #ffffff10; }
.stat-row small { color: var(--muted); display: block; font-size: 12px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; background: var(--panel2); font-size: 12px; color: var(--gold); font-weight: 700; }
.derived { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.derived div { background: var(--panel2); border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.derived b { float: right; }
.skill-card { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--panel2); border-radius: 10px; margin-bottom: 8px; }
.skill-card .ic { width: 44px; height: 44px; flex: none; border-radius: 10px; background: #000a; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.skill-card .info { flex: 1; } .skill-card small { color: var(--muted); }
.pips { display: flex; gap: 3px; margin-top: 4px; } .pips i { width: 14px; height: 6px; border-radius: 2px; background: #000a; } .pips i.on { background: var(--accent); }
.quest { padding: 10px 12px; background: var(--panel2); border-radius: 10px; margin-bottom: 8px; }
.quest h4 { margin: 0 0 3px; } .quest p { margin: 0; font-size: 13px; color: var(--muted); }
.quest .st { float: right; font-size: 12px; font-weight: 700; }
.shop-item { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid #ffffff10; }
.shop-item canvas { width: 32px; height: 32px; image-rendering: pixelated; }
.shop-item .nm { flex: 1; } .shop-item small { color: var(--muted); display: block; }
.price { color: var(--gold); font-weight: 800; min-width: 54px; text-align: right; }
.npc-say { background: var(--panel2); border-radius: 10px; padding: 12px; margin-bottom: 12px; line-height: 1.45; }
.menu-list .btn { display: block; width: 100%; margin-bottom: 8px; padding: 12px; text-align: left; }
.keys { color: var(--muted); font-size: 13px; line-height: 1.7; }
kbd { background: #000a; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: 12px; color: var(--text); }

@media (max-width: 560px) {
  .hud-left { padding: 6px 8px; font-size: 12px; }
  .ib { width: 34px; height: 34px; font-size: 16px; }
  .logo-a { font-size: 36px; } .logo-b { font-size: 32px; }
}

@media (max-height: 520px) {
  .auth-card { padding: 14px 18px; }
  .logo-a { font-size: 26px; } .logo-b { font-size: 24px; } .logo-ve { margin: 1px 0; font-size: 12px; }
  .tagline { margin: 4px 0 8px; } .tabs { margin-bottom: 8px; } form label { margin-bottom: 6px; }
  form input { padding: 8px 10px; } .hint { display: none; } .btn.big { padding: 10px; }
}

/* ===== v2 ===== */
.muted { color: var(--muted); }
.hud-left .nm { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hud-left .rk, #hudRank canvas { width: 16px; height: 16px; image-rendering: pixelated; flex: none; }
.hud-left .lv small { color: var(--muted); font-weight: 400; font-size: 11px; }
.np { font-size: 11px; color: #ffd84a; margin: -2px 0 4px; text-shadow: 0 1px 2px #000; }
#partyFrame { position: absolute; left: calc(10px + env(safe-area-inset-left)); top: calc(118px + env(safe-area-inset-top)); width: min(180px, 40vw); display: flex; flex-direction: column; gap: 4px; }
.pm { background: #0009; border: 1px solid #8dffb044; border-radius: 8px; padding: 3px 7px; font-size: 12px; }
.pm.off { opacity: .5; } .pm small { color: var(--muted); }
.bar.mini { height: 5px; margin: 2px 0 0; } .bar.mini > div { background: #59d37a; }
#feed { position: absolute; left: calc(10px + env(safe-area-inset-left)); top: 42%; font-size: 12px; display: flex; flex-direction: column; gap: 2px; text-shadow: 0 1px 2px #000; }
#feed div { background: #0007; padding: 2px 8px; border-radius: 6px; }
.hud-top { position: absolute; left: 50%; transform: translateX(-50%); top: calc(8px + env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: center; gap: 4px; }
#bfBtn { pointer-events: auto; padding: 7px 16px; border-radius: 20px; font-weight: 800; font-size: 14px; border: 2px solid #ffb27d; background: linear-gradient(#c0391b, #7a1d0e); color: #ffe9d0; box-shadow: 0 0 14px #ff5a2a88; letter-spacing: .5px; }
#bfBtn.back { background: linear-gradient(#3b6a3b, #1f3f1f); border-color: #8dffb0; box-shadow: none; color: #e6ffe9; }
#eventBanner { pointer-events: auto; cursor: pointer; background: #000b; border: 1px solid #fff3; border-radius: 14px; padding: 3px 12px; font-size: 12px; white-space: nowrap; }
#eventBanner.on { border-color: #ffd84a; color: #ffd84a; animation: pulse 1.4s infinite; }
#eventBanner span { font-variant-numeric: tabular-nums; color: var(--muted); margin-left: 4px; }
@keyframes pulse { 50% { box-shadow: 0 0 12px #ffd84a88; } }
#inviteBox { pointer-events: auto; background: #1f1b2bf0; border: 2px solid #8dffb0; border-radius: 10px; padding: 8px 10px; display: flex; gap: 6px; align-items: center; font-size: 13px; }
#bossBar { top: calc(78px + env(safe-area-inset-top)); }
#minimap { display: block; margin: 6px 0 0 auto; pointer-events: auto; cursor: crosshair; border: 1px solid #fff3; border-radius: 6px; background: #000; image-rendering: pixelated; max-width: 140px; }
#rankBtn { display: block; margin: 6px 0 0 auto; pointer-events: auto; background: linear-gradient(#ffd84a, #c99a1a); color: #2a1e00; border: 1px solid #fff3c0; border-radius: 8px; padding: 5px 10px; font-weight: 800; font-size: 13px; }
#tracker { margin-top: 6px; width: 200px; margin-left: auto; text-align: left; }
#trackerHead { pointer-events: auto; width: 100%; background: #000a; border: 1px solid #fff2; border-radius: 8px 8px 0 0; padding: 4px 8px; font-size: 12px; font-weight: 700; text-align: left; }
#tracker.closed #trackerList { display: none; }
#tracker.closed #trackerHead { border-radius: 8px; }
#trackerList { display: flex; flex-direction: column; }
.tq { pointer-events: auto; text-align: left; background: #000a; border: 1px solid #fff1; border-top: none; padding: 5px 8px; display: block; width: 100%; }
.tq:last-child { border-radius: 0 0 8px 8px; }
.tq:hover { background: #2a2439e0; }
.tq b { display: block; font-size: 12px; color: #fff; } .tq small { display: block; font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tq.done b { color: var(--gold); } .tq.done small { color: #ffe08a; }
.tq.new b { color: #8dffb0; } .tq.locked { opacity: .6; }
.tq.empty { pointer-events: none; }
#navInfo { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(72px + env(safe-area-inset-bottom)); background: #000c; border: 1px solid #ffd84a; color: #ffd84a; padding: 4px 6px 4px 12px; border-radius: 16px; font-size: 13px; display: flex; align-items: center; gap: 6px; pointer-events: auto; }
#navInfo button { background: #fff2; border: none; border-radius: 50%; width: 22px; height: 22px; padding: 0; color: #fff; }
body.touch #navInfo { bottom: auto; top: calc(80px + env(safe-area-inset-top)); }
.equip { grid-template-columns: repeat(4, 1fr); }
.detail .meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.detail .stats { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.detail .bonus { color: #8dffb0; font-size: 13px; margin-bottom: 6px; }
.detail .cmp { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.char-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.np-row { display: flex; align-items: center; gap: 6px; margin: 8px 0 4px; color: #ffd84a; } .np-row canvas { width: 20px; height: 20px; image-rendering: pixelated; } .np-row small { color: var(--muted); }
.skill-card.off, .quest.off { opacity: .55; }
h4.sec { margin: 12px 0 6px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.quest .rw { margin-top: 4px; font-size: 12px; } .quest .btn { margin-top: 6px; }
.goldline { text-align: right; color: var(--gold); font-weight: 800; }
.tabs.small .tab { padding: 5px; font-size: 13px; }
#panel.wide .panel-box { width: min(760px, 100%); }
.race-bars { display: grid; gap: 4px; margin-bottom: 10px; }
.race-bars > div { display: grid; grid-template-columns: 90px 1fr 70px; align-items: center; gap: 8px; font-size: 13px; }
.race-bars b { text-align: right; } .rbar { height: 8px; background: #000a; border-radius: 4px; overflow: hidden; } .rbar div { height: 100%; }
table.rank { width: 100%; border-collapse: collapse; font-size: 13px; }
table.rank th { text-align: left; color: var(--muted); font-weight: 400; border-bottom: 1px solid var(--line); padding: 4px; }
table.rank td { padding: 3px 4px; border-bottom: 1px solid #ffffff0a; }
table.rank td:last-child, table.rank th:last-child { text-align: right; }
table.rank tr.me { background: #ffd84a22; }
table.rank canvas { width: 18px; height: 18px; image-rendering: pixelated; vertical-align: middle; }
.bot { font-size: 9px; background: #fff2; color: var(--muted); padding: 0 4px; border-radius: 4px; vertical-align: 1px; }
.party-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.pm-row { display: flex; gap: 8px; align-items: center; background: var(--panel2); padding: 8px 10px; border-radius: 8px; } .pm-row > div { flex: 1; }
.tb.s { font-size: 18px; }
/* karakter ekranları */
.chars-box, .create-box { flex: none; width: min(720px, 100%); background: rgba(31,27,43,.94); border: 2px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 20px 60px #0008; }
.chars-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .chars-head h2 { margin: 0; flex: 1; font-size: 20px; }
#charList { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.char-card { display: flex; align-items: center; gap: 10px; background: var(--panel2); border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; text-align: left; }
.char-card canvas { width: 72px; height: 72px; image-rendering: pixelated; background: #0005; border-radius: 8px; flex: none; }
.char-card .ci { flex: 1; min-width: 0; } .char-card .ci b { display: block; font-size: 16px; } .char-card .ci small { display: block; color: var(--muted); font-size: 12px; }
.char-card .cb { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.char-card.new { justify-content: center; flex-direction: column; min-height: 92px; border-style: dashed; color: var(--muted); }
.char-card.new span { font-size: 26px; line-height: 1; } .char-card.new:hover { border-color: var(--accent); color: var(--text); }
.create-box h2 { margin: 0 0 10px; } .create-box h4 { margin: 12px 0 6px; }
.create-top { display: flex; gap: 14px; align-items: center; }
#preview { width: 96px; height: 88px; image-rendering: pixelated; background: radial-gradient(#3a3050, #1a1424); border-radius: 10px; border: 1px solid var(--line); flex: none; }
.create-top .nm { flex: 1; font-size: 13px; color: var(--muted); }
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .picks.four { grid-template-columns: repeat(4, 1fr); }
.pick { background: #120f19; border: 2px solid var(--line); border-radius: 10px; padding: 8px; text-align: left; display: flex; flex-direction: column; gap: 3px; }
.pick small { color: var(--muted); font-size: 12px; line-height: 1.3; } .pick em { font-style: normal; color: #ffd84a; font-size: 12px; }
.pick:hover { border-color: #fff4; } .pick.on { border-color: var(--c, var(--accent)); background: #2a2439; box-shadow: 0 0 0 2px #ff8a3d44; }
@media (max-width: 640px) {
  .picks, .picks.four { grid-template-columns: 1fr 1fr; }
  #charList { grid-template-columns: 1fr; }
  #tracker { width: 160px; }
  #minimap { max-width: 104px; }
  .hud-top { top: calc(6px + env(safe-area-inset-top)); }
  #bfBtn { padding: 5px 10px; font-size: 12px; }
}
@media (max-height: 520px) {
  #minimap { max-width: 96px; max-height: 64px; }
  #tracker { width: 170px; } .tq { padding: 3px 6px; } .tq small { font-size: 10px; }
  body.touch #trackerList .tq:nth-child(n+3) { display: none; }
  .hud-left .bar { height: 11px; margin-bottom: 2px; } .hud-left .bar span { font-size: 9px; line-height: 10px; }
  #partyFrame { top: calc(96px + env(safe-area-inset-top)); }
  .chars-box, .create-box { padding: 10px; } .pick small { display: none; }
}

/* dokunmatik yerleşim: takip solda, parti altta ortada */
body.touch .hud-left { width: min(230px, 40vw); }
body.touch .ib { width: 32px; height: 32px; font-size: 15px; }
body.touch #minimap { max-width: 100px; max-height: 60px; }
body.touch #rankBtn { position: absolute; right: 106px; top: 76px; margin: 0; padding: 4px 8px; font-size: 12px; }
body.touch #tracker { position: fixed; left: calc(10px + env(safe-area-inset-left)); top: calc(var(--hlh, 104px) + env(safe-area-inset-top)); width: min(200px, 34vw); margin: 0; }
body.touch #partyFrame { top: auto; bottom: calc(8px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); flex-direction: row; width: auto; max-width: 46vw; }
body.touch #partyFrame .pm { min-width: 90px; }
body.touch #navInfo { top: auto; bottom: calc(52px + env(safe-area-inset-bottom)); }
body.touch #feed { top: auto; bottom: 46%; }
#eventBanner { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { #eventBanner { font-size: 10px; max-width: 30vw; padding: 2px 8px; } }
@media (max-height: 520px) { body.touch #trackerList .tq:nth-child(n+3) { display: none; } body.touch #feed { display: none; } }
body.touch .toast { font-size: 12px; padding: 5px 12px; }
body.touch .toast.big { font-size: 16px; padding: 7px 16px; }
body.touch #toasts { top: 24%; max-width: 70vw; }
@media (max-width: 500px) {
  .hud-top { top: calc(182px + env(safe-area-inset-top)); }
  #hudCls { display: none; }
  body.touch .hud-left { width: 44vw; }
  #bossBar { top: calc(250px + env(safe-area-inset-top)); }
  #eventBanner { max-width: 60vw; }
}

.chars-empty { grid-column: 1 / -1; text-align: center; padding: 22px 12px; background: var(--panel2); border: 2px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chars-empty b { font-size: 18px; } .chars-empty p { color: var(--muted); margin: 0 0 6px; max-width: 420px; line-height: 1.45; }
.chars-empty canvas { width: 240px; height: 171px; image-rendering: pixelated; }
.chars-empty .btn.big { width: auto; padding: 13px 26px; }

/* ===================== v3: görsel yükseltme ===================== */
:root { --glass: linear-gradient(180deg, rgba(34,28,50,.86), rgba(16,13,24,.88)); --gold2: #e8b04a; --edge: rgba(255,216,140,.18); --up: #ffd84a; }
canvas#game { image-rendering: auto; }
.panel-head h2, .chars-head h2, .create-box h2, .boss-name, .toast.big, #rankUp b, .logo { font-family: "Cinzel", "Trebuchet MS", serif; }
.hud-left, #trackerHead, .tq, .ib, #minimap, .pm, #feed div { backdrop-filter: blur(4px); }
.hud-left { background: var(--glass); border: 1px solid var(--edge); box-shadow: 0 6px 18px #0007, inset 0 1px 0 #ffffff14; border-radius: 12px; }
.bar { border-radius: 7px; border: 1px solid #00000080; box-shadow: inset 0 1px 3px #000a, 0 1px 0 #ffffff12; background: #0b0910; }
.bar > div { position: relative; box-shadow: inset 0 1px 0 #ffffff55, inset 0 -2px 0 #0004; }
.bar > div::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 45%; background: linear-gradient(#ffffff40, #ffffff00); }
.bar.hp > div { background: linear-gradient(90deg, #a5121f, #ff4d5e 80%, #ff9aa5); }
.bar.mp > div { background: linear-gradient(90deg, #13308a, #3f8cff 80%, #9cc4ff); }
.bar.xp > div { background: linear-gradient(90deg, #5a2aa8, #b07dff, #e8d0ff); }
.bar.npb { height: 4px; margin: 0 0 5px; } .bar.npb > div { transition: width .4s; }
.np small { color: var(--muted); font-size: 10px; }
#hudPrem { font-size: 11px; font-weight: 800; margin: -2px 0 4px; text-shadow: 0 1px 2px #000; }
.gold { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.upi { display: inline-block; width: 13px; height: 13px; margin: 0 4px 0 10px; vertical-align: -2px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: radial-gradient(circle at 40% 35%, #fff6c0, #ffcf4a 55%, #b07a00); }
#hudUp { color: var(--up); }
.ib { background: var(--glass); border: 1px solid var(--edge); box-shadow: 0 3px 8px #0006, inset 0 1px 0 #ffffff14; transition: transform .1s; }
.ib:hover { transform: translateY(-1px); border-color: #ffd84a; }
.ib.hl { border-color: #ffd84a; box-shadow: 0 0 10px #ffd84a55; }
.menu-btns { flex-wrap: wrap; max-width: 230px; margin-left: auto; }
.sk { background: radial-gradient(circle at 50% 30%, #3a3050, #120f19); border: 2px solid #6a5a8a; box-shadow: 0 4px 10px #0008, inset 0 1px 0 #ffffff22; border-radius: 12px; }
.sk::before { content: ''; position: absolute; inset: 2px; border-radius: 9px; border: 1px solid #ffffff14; pointer-events: none; }
.sk:hover { border-color: #ffd84a; }
#krikuBtn, #dailyBtn, #enhBtn, #guideBtn, #rescueBtn { pointer-events: auto; padding: 5px 13px; border-radius: 18px; font-weight: 800; font-size: 13px; border: 2px solid #5ae0c8; background: linear-gradient(#1f6a60, #0d3a34); color: #d8fff6; box-shadow: 0 0 10px #5ae0c844; }
#enhBtn { border-color: #ff9a4a; background: linear-gradient(#b8561c, #6a2a08); color: #fff0e0; box-shadow: 0 0 10px #ff9a4a55; }
#enhBtn:hover { filter: brightness(1.15); }
#krikuBtn.on { background: linear-gradient(#2ab89e, #127a68); animation: krp 1.6s infinite; }
#krikuBtn .stop { margin-left: 6px; background: #0006; border-radius: 6px; padding: 0 6px; }
@keyframes krp { 50% { box-shadow: 0 0 18px #5ae0c8cc; } }
#dailyBtn { border-color: #ffd84a; background: linear-gradient(#c99a1a, #7a5a0a); color: #fff6d8; animation: pulse 1.4s infinite; }
.hud-top { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: 60vw; }
.hud-top > #eventBanner, .hud-top > #inviteBox { flex-basis: 100%; display: flex; justify-content: center; }
.toast { background: linear-gradient(180deg, #2a2240e8, #120f19e8); border: 1px solid var(--edge); box-shadow: 0 6px 16px #0008; }
.toast.big { background: linear-gradient(180deg, #3a2a10ee, #1a1206ee); border-color: #ffd84a88; text-shadow: 0 2px 0 #5a3a00, 0 0 18px #ffb00088; }
/* paneller */
#panel { background: radial-gradient(ellipse at center, #0006, #000b); backdrop-filter: blur(2px); }
.panel-box { background: linear-gradient(180deg, #262036, #17131f 40%); border: 1px solid #ffd88c40; box-shadow: 0 24px 70px #000c, inset 0 1px 0 #ffffff18, 0 0 0 1px #000; border-radius: 16px; position: relative; }
.panel-box::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #ffd84a, transparent); opacity: .6; }
.panel-head { border-bottom: 1px solid #ffd88c22; background: linear-gradient(180deg, #ffffff08, transparent); border-radius: 16px 16px 0 0; }
.panel-head h2 { font-size: 18px; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hwallet { font-family: "Trebuchet MS", sans-serif; font-size: 13px; color: var(--up); background: #0006; border: 1px solid #ffd84a44; border-radius: 12px; padding: 2px 10px; letter-spacing: 0; }
#panel.wide .panel-box { width: min(880px, 100%); max-height: min(92vh, 780px); }
.btn { transition: transform .08s, border-color .1s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.gold { background: linear-gradient(#ffe48a, #e8a82a 60%, #b07a10); border-color: #fff3c0; color: #2a1a00; font-weight: 900; text-shadow: 0 1px 0 #fff6; box-shadow: 0 2px 10px #ffb00044; }
.tab { transition: background .1s; } .tab.active { background: linear-gradient(180deg, #3a3050, #2a2439); border-color: #ffd84a; color: #fff; box-shadow: inset 0 -2px 0 #ffd84a; }
.small { font-size: 12px; } .center { text-align: center; } .wrap { flex-wrap: wrap; }
/* slotlar */
.slot { background: radial-gradient(circle at 50% 35%, #2a2439, #0f0c16); border: 1px solid #4a3f62; box-shadow: inset 0 2px 6px #000a; transition: border-color .1s, transform .08s; cursor: pointer; }
.slot[style*="--rc"] { border-color: color-mix(in srgb, var(--rc) 70%, #000); box-shadow: inset 0 0 12px color-mix(in srgb, var(--rc) 30%, transparent), inset 0 2px 6px #000a; }
.slot:hover { transform: translateY(-1px); border-color: #ffd84a; }
.slot canvas { image-rendering: auto; width: 78%; height: 78%; }
.slot .rdot { position: absolute; left: 4px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 6px var(--rc); }
.slot.sm { width: 40px; height: 40px; flex: none; }
.inv-grid.small { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 5px; max-height: 210px; overflow: auto; padding: 2px; }
.inv-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 14px; }
.inv-right .inv-grid { max-height: 330px; overflow: auto; padding: 2px; }
.inv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--muted); gap: 6px; flex-wrap: wrap; }
.paperdoll { position: relative; height: 230px; background: radial-gradient(ellipse at 50% 55%, #3a3050, #120f19 70%); border: 1px solid #4a3f62; border-radius: 12px; }
#dollCv { position: absolute; left: 50%; top: 46px; transform: translateX(-50%); width: 120px; height: 132px; }
.pd { position: absolute; width: 54px; text-align: center; } .pd .slot { width: 54px; height: 54px; } .pd small { font-size: 10px; color: var(--muted); }
/* v7.7: 10 yuvalı karakter: solda miğfer/zırh/silah/kemer/tılsım, sağda kolye/küpe×2/yüzük×2 */
.paperdoll { height: 292px; } .pd { width: 46px; } .pd .slot { width: 44px; height: 44px; margin: 0 auto; } .pd small { font-size: 9px; display: block; line-height: 11px; }
.pd-helmet { left: 6px; top: 4px; } .pd-armor { left: 6px; top: 61px; } .pd-weapon { left: 6px; top: 118px; } .pd-belt { left: 6px; top: 175px; } .pd-talisman { left: 6px; top: 232px; }
.pd-neck { right: 6px; top: 4px; } .pd-ear1 { right: 6px; top: 61px; } .pd-ear2 { right: 6px; top: 118px; } .pd-ring1 { right: 6px; top: 175px; } .pd-ring2 { right: 6px; top: 232px; }
.pd-talisman .slot { border-color: #b46bff88; box-shadow: inset 0 0 10px #b46bff44; }
#dollCv { top: 70px; }
.lvreq { color: #9fd0ff; background: #0006; border-radius: 5px; padding: 0 5px; } .lvreq.bad { color: #ff8a7a; }
.fxl { color: #e6b8ff; margin: 4px 0; font-size: 12px; }
.kasa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 5px; max-height: 260px; overflow: auto; padding: 2px; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 8px; font-size: 12px; } .mini-stats span { background: #0005; border-radius: 6px; padding: 4px 8px; }
.wallet { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 800; color: var(--gold); font-size: 13px; background: #0005; border-radius: 8px; padding: 6px 8px; } .wallet .upi { margin-left: 0; }
.detail { background: linear-gradient(180deg, #2a2439, #1f1b2b); border: 1px solid #4a3f62; }
/* bilgi penceresi */
#tip { position: fixed; z-index: 90; pointer-events: none; width: 260px; background: linear-gradient(180deg, #221c30f5, #110e18f8); border: 1px solid #ffd88c55; border-radius: 10px; padding: 10px 12px; box-shadow: 0 10px 30px #000c; font-size: 13px; }
.tt-name { font-weight: 900; font-size: 15px; text-shadow: 0 1px 2px #000; } .tt-name .enh { text-shadow: 0 0 8px currentColor; }
#tip .meta, .detail .meta, .tt-inline .meta { font-size: 12px; color: var(--muted); margin: 2px 0 6px; padding-bottom: 6px; border-bottom: 1px solid #ffffff14; }
.stats .st { display: flex; gap: 6px; align-items: baseline; font-size: 13px; } .stats .st span { color: var(--muted); flex: 1; } .stats .st small { font-size: 11px; }
#tip .bonus, .tt-inline .bonus { color: #8dffb0; margin: 4px 0; }
.uniq { color: #ff8aa0; font-weight: 700; margin: 4px 0; }
.cmp { margin-top: 6px; padding-top: 6px; border-top: 1px solid #ffffff14; font-size: 12px; }
.cmp .up { color: #8dffb0; margin-right: 6px; } .cmp .down { color: #ff7a7a; margin-right: 6px; }
.price-line { margin-top: 6px; color: var(--gold); font-size: 12px; }
#tip .hint { margin-top: 6px; color: #ffd84a; font-size: 11px; text-align: left; }
#tip p { margin: 4px 0; color: var(--muted); }
/* mağaza */
.deal { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; margin-bottom: 10px; cursor: pointer; background: linear-gradient(90deg, #5a2a0a, #2a1a10); border: 1px solid #ff8a3d; position: relative; overflow: hidden; }
.deal::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, #ffffff22 50%, transparent 60%); animation: shine 3s infinite; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.deal .dl-tag { position: absolute; right: 8px; top: 6px; font-size: 10px; font-weight: 900; color: #ffd84a; letter-spacing: 1px; }
.deal .dl-ic { font-size: 30px; } .deal div { flex: 1; } .deal small { display: block; color: #ffd8b0; font-size: 12px; } .deal .price s { color: var(--muted); font-weight: 400; }
.store-cats { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; } .store-cats .tab { flex: none; padding: 6px 10px; font-size: 13px; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.store-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 10px 10px; border-radius: 12px; background: linear-gradient(180deg, #2e2742, #1a1624); border: 1px solid #4a3f62; transition: transform .1s, border-color .1s; }
.store-card:hover { transform: translateY(-2px); border-color: #ffd84a; box-shadow: 0 8px 20px #0008; }
.store-card canvas { width: 44px; height: 44px; } .store-card .pet-ic { width: 60px; height: 60px; }
.store-card .big-ic { font-size: 34px; line-height: 44px; filter: drop-shadow(0 3px 4px #000a); }
.store-card b { font-size: 14px; } .store-card small { color: var(--muted); font-size: 11.5px; flex: 1; line-height: 1.35; }
.store-card .sc-foot { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 6px; } .store-card .price s { color: var(--muted); font-weight: 400; font-size: 11px; }
.store-card.owned { opacity: .6; }
.prem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.prem-card { border-radius: 14px; padding: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 22%, #1a1624), #15111d); border: 2px solid color-mix(in srgb, var(--pc) 60%, #000); display: flex; flex-direction: column; gap: 8px; position: relative; }
.prem-card.t3 { box-shadow: 0 0 24px #ffd84a44; } .prem-card.cur::after { content: 'AKTİF'; position: absolute; right: 10px; top: 10px; font-size: 10px; font-weight: 900; background: var(--pc); color: #1a1206; padding: 2px 6px; border-radius: 6px; }
.pc-head { display: flex; align-items: center; gap: 8px; font-size: 26px; } .pc-head b { font-size: 17px; color: var(--pc); font-family: "Cinzel", serif; }
.prem-card ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; flex: 1; } .prem-card li::marker { color: var(--pc); }
.pc-price { font-weight: 900; color: var(--gold); font-size: 18px; } .pc-price small { color: var(--muted); font-size: 12px; font-weight: 400; }
/* pazar */
.mk-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.mk-filters select, .kr-box select { background: #120f19; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px; font: inherit; font-size: 13px; }
.mk-filters .field { flex: 1; min-width: 120px; margin: 0; padding: 7px 10px; font-size: 14px; }
.mk-list { display: flex; flex-direction: column; gap: 4px; }
.mk-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; background: #ffffff06; border: 1px solid #ffffff0c; border-radius: 10px; }
.mk-row:hover { background: #ffffff0d; } .mk-row .nm { flex: 1; min-width: 0; } .mk-row .nm b { display: block; font-size: 14px; } .mk-row small { color: var(--muted); font-size: 12px; }
.mk-row .price { min-width: 90px; }
.mk-form { display: flex; gap: 14px; margin-top: 12px; padding: 12px; background: #0004; border: 1px solid #4a3f62; border-radius: 12px; } .mk-form > .slot { width: 64px; height: 64px; flex: none; }
.mk-form > div { flex: 1; display: flex; flex-direction: column; gap: 6px; } .mk-form label { font-size: 13px; color: var(--muted); } .mk-form .field { margin-top: 2px; padding: 7px 10px; }
.radio { display: flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; } .radio .upi { margin: 0; }
.mbox { display: grid; gap: 10px; max-width: 360px; margin: 10px auto; font-size: 16px; } .mbox > div { background: #0004; border-radius: 10px; padding: 10px 14px; }
/* Kriku */
.kr-top { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: linear-gradient(90deg, #0d3a34, #15121e); border: 1px solid #5ae0c855; margin-bottom: 12px; }
.kr-top.on { border-color: #5ae0c8; box-shadow: 0 0 20px #5ae0c844; }
.kr-face { font-size: 40px; filter: drop-shadow(0 0 8px #5ae0c8); } .kr-top.on .kr-face { animation: bob 1s infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.kr-info { flex: 1; display: flex; flex-direction: column; gap: 2px; } .kr-info b { font-size: 16px; color: #8dffe8; } .kr-info small { color: var(--muted); font-size: 12px; }
.kr-btns { display: flex; flex-direction: column; gap: 6px; } .kr-btns .btn.big { width: auto; padding: 10px 22px; }
.kr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kr-box { background: #0004; border: 1px solid #4a3f62; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.kr-box h4 { margin: 0 0 4px; font-size: 14px; } .kr-box h4 small { font-weight: 400; font-size: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; } .chips.col { flex-direction: column; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 14px; background: #120f19; border: 1px solid #4a3f62; font-size: 12.5px; cursor: pointer; user-select: none; }
.chip input { accent-color: #5ae0c8; margin: 0; }
.chip.on { border-color: var(--cc, #5ae0c8); background: color-mix(in srgb, var(--cc, #5ae0c8) 18%, #120f19); }
.chip.off { opacity: .5; }
.rng { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); } .rng b { color: #fff; } .rng input { accent-color: #5ae0c8; width: 100%; }
/* demirci */
.smith { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rates { display: flex; flex-wrap: wrap; gap: 4px; } .rates span { font-size: 11px; padding: 3px 6px; border-radius: 6px; background: #0005; border: 1px solid #ffffff14; } .rates span b { color: var(--ec); }
.rates span.cur { border-color: #ffd84a; background: #ffd84a22; }
.sm-main { display: flex; flex-direction: column; gap: 8px; }
.anvil { position: relative; height: 200px; padding-bottom: 26px; border-radius: 14px; background: radial-gradient(ellipse at 50% 70%, #5a2a0a, #1a1018 70%); border: 1px solid #ff8a3d55; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.anvil canvas { width: 120px; height: 120px; }
.anvil.heat { animation: heat .3s infinite; } @keyframes heat { 50% { box-shadow: inset 0 0 40px #ff6a1a; } }
.anvil.win { animation: win 1s; } .anvil.win.big { animation: win 1.6s; } @keyframes win { 0% { box-shadow: inset 0 0 80px #ffd84a, 0 0 40px #ffd84a; } 100% { box-shadow: none; } }
.anvil.fail { animation: fail .5s; } @keyframes fail { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.lv-arrow { font-weight: 900; font-size: 18px; font-family: "Cinzel", serif; text-shadow: 0 0 10px #000; }
.sm-res { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-weight: 900; font-size: 15px; } .sm-res .ok { color: #8dffb0; text-shadow: 0 0 10px #8dffb0; } .sm-res .bad { color: #ff7a7a; } .sm-res .busy { color: #ffb05a; }
.tt-inline { background: #0004; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.sm-cost { display: flex; flex-direction: column; gap: 4px; font-weight: 700; } .sm-cost canvas { width: 22px; height: 22px; vertical-align: middle; } .sm-cost .err { min-height: 0; margin: 0; }
.sm-rate { font-size: 15px; } .sm-max { color: #ff8a5a; font-weight: 900; text-align: center; padding: 10px; }
/* görünüm */
.look-wrap { display: grid; grid-template-columns: 170px 1fr; gap: 12px; } #lookCv { width: 160px; height: 170px; background: radial-gradient(ellipse at 50% 60%, #3a3050, #120f19 70%); border-radius: 12px; border: 1px solid #4a3f62; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.look { text-align: left; padding: 7px 9px; border-radius: 10px; background: #120f19; border: 1px solid #4a3f62; } .look b { display: block; font-size: 13px; } .look small { color: var(--muted); font-size: 11px; }
.look.on { border-color: var(--lc, #ffd84a); box-shadow: 0 0 10px color-mix(in srgb, var(--lc, #ffd84a) 50%, transparent); } .look.locked { opacity: .55; }
/* günlük ödül */
.daily { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0; }
.day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 2px; border-radius: 12px; background: #120f19; border: 1px solid #4a3f62; } .day small { color: var(--muted); font-size: 10px; } .day b { font-size: 17px; color: var(--gold); } .day .upi { margin: 2px 0; width: 22px; height: 22px; }
.day.got { opacity: .55; } .day.today { border-color: #ffd84a; box-shadow: 0 0 16px #ffd84a66; animation: pulse 1.4s infinite; } .day.big { background: linear-gradient(180deg, #4a3410, #1a1206); }
.day .tick { position: absolute; top: 2px; right: 6px; font-style: normal; color: #8dffb0; font-weight: 900; }
/* duyurular, rütbe, diriliş */
#annBox { position: absolute; left: 50%; transform: translateX(-50%); top: calc(96px + env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 4px; align-items: center; }
.ann { background: linear-gradient(90deg, transparent, #000c 15%, #000c 85%, transparent); color: var(--ac); font-weight: 900; padding: 5px 40px; font-size: 14px; text-shadow: 0 0 8px var(--ac); animation: toast 6s forwards; white-space: nowrap; }
#rankUp { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 14px; padding: 16px 28px; border-radius: 16px; background: radial-gradient(ellipse, #2a2010f0, #0d0a06f0); border: 2px solid var(--rc); box-shadow: 0 0 40px var(--rc); }
#rankUp.show { animation: rankin 4.2s forwards; }
@keyframes rankin { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 10% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 16% { transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%); } }
#rankUp canvas { width: 72px; height: 72px; } #rankUp small { display: block; color: var(--muted); letter-spacing: 3px; font-size: 11px; } #rankUp b { display: block; font-size: 30px; text-shadow: 0 0 16px currentColor; } #rankUp em { display: block; color: var(--gold); font-style: normal; font-size: 13px; }
#reviveBox { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); pointer-events: auto; width: min(360px, 80vw); }
@media (max-width: 760px) {
  .inv-wrap, .smith, .kr-grid, .look-wrap { grid-template-columns: 1fr; }
  .paperdoll { height: 292px; } .daily { grid-template-columns: repeat(4, 1fr); }
  .menu-btns { max-width: 190px; } .hud-top { max-width: 54vw; }
  #krikuBtn, #dailyBtn, #enhBtn, #guideBtn, #rescueBtn { padding: 4px 9px; font-size: 11px; }
}

/* ===== v4: oyun içi onay penceresi, yaratık rehberi, set, yolculuk, adet, canlı sıralama ===== */
#dlg { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; background: rgba(6, 4, 12, 0.62); backdrop-filter: blur(3px); padding: 16px; }
#dlg[hidden] { display: none; }
.dlg-card { width: min(380px, 100%); background: linear-gradient(#2a2238, #17121f); border: 1px solid #ffd84a66; border-radius: 16px; padding: 18px 18px 14px; box-shadow: 0 18px 50px #000a, 0 0 0 1px #0008 inset, 0 0 30px #ffb84a22; animation: dlgIn .16s ease-out; }
.dlg-card.danger { border-color: #ff6a6a88; box-shadow: 0 18px 50px #000a, 0 0 30px #ff3a3a22; }
@keyframes dlgIn { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.dlg-title { font-family: "Cinzel", serif; font-weight: 900; font-size: 17px; color: #ffd84a; margin-bottom: 8px; }
.dlg-card.danger .dlg-title { color: #ff8a7a; }
.dlg-text { color: var(--text); font-size: 14px; line-height: 1.45; white-space: pre-line; }
.dlg-card .field { width: 100%; margin: 12px 0 0; box-sizing: border-box; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.dlg-btns .btn { min-width: 92px; }
.kr-box.wide { grid-column: 1 / -1; }
.mob-guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 5px; max-height: 260px; overflow: auto; padding-right: 4px; }
.mg-row { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 1px 8px; text-align: left; background: #0006; border: 1px solid #4a3f62; border-radius: 9px; padding: 6px 9px; color: var(--text); cursor: pointer; font: inherit; font-size: 12.5px; }
.mg-row:hover:not([disabled]) { border-color: #5ae0c8; background: #0e2e2a88; }
.mg-n { font-weight: 800; } .mg-l { color: #ffd84a; font-weight: 700; text-align: right; } .mg-z { color: var(--muted); font-size: 11.5px; } .mg-s { text-align: right; font-size: 11.5px; font-weight: 700; }
.mg-row.ok .mg-s { color: #8dffb0; } .mg-row.hard .mg-s { color: #ffb05a; } .mg-row.over { opacity: .55; } .mg-row.over .mg-s { color: #a8a4b4; } .mg-row.lock { opacity: .4; cursor: not-allowed; }
.chip small { opacity: .75; font-weight: 600; margin-left: 3px; }
.setbox { margin: 6px 0; padding: 6px 8px; border: 1px solid #ffe27a55; border-radius: 8px; background: #ffd84a10; font-size: 12px; color: #a8a4b4; }
.setbox b { color: #ffe27a; display: block; margin-bottom: 2px; } .setbox .on { color: #8dffb0; }
.travel-list { display: flex; flex-direction: column; gap: 6px; }
.tr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #0005; border: 1px solid #4a3f62; border-radius: 10px; padding: 8px 10px; }
.tr-row small { display: block; color: var(--muted); font-size: 12px; } .tr-row.fit { border-color: #5ae0c8aa; } .tr-row.lock { opacity: .5; }
.tag.ok { background: #1f6a50; color: #c8ffe8; font-size: 11px; padding: 1px 6px; border-radius: 6px; }
input.qty { width: 46px; background: #120f19; color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 4px 4px; font: inherit; font-size: 13px; text-align: center; }
.sc-foot { gap: 6px; }
.rank-row { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; pointer-events: auto; }
.rank-row #rankBtn { margin: 0; }
#liveBtn { pointer-events: auto; background: linear-gradient(#3a1f2a, #1f1018); color: #ffd0d8; border: 1px solid #ff5a7a; border-radius: 8px; padding: 5px 9px; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 0 10px #ff3a5a33; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff3a5a; box-shadow: 0 0 8px #ff3a5a; animation: livep 1.2s infinite; vertical-align: middle; margin-right: 4px; }
@keyframes livep { 50% { opacity: .35; } }
body.touch .rank-row { position: absolute; right: 106px; top: 76px; margin: 0; }
body.touch .rank-row #rankBtn { position: static; }
body.touch #liveBtn { padding: 4px 7px; font-size: 12px; }
@media (max-width: 700px) { .mob-guide { grid-template-columns: 1fr; max-height: 200px; } }

/* ===== ADMIN modu araç çubuğu ===== */
#admBar { position: fixed; left: 10px; top: 120px; z-index: 40; width: 230px; background: linear-gradient(180deg, rgba(48,34,6,0.94), rgba(22,16,4,0.94)); border: 1px solid #ffd84a; border-radius: 10px; box-shadow: 0 0 18px rgba(255,216,74,0.35); color: #fff3c8; font-size: 12px; pointer-events: auto; }
#admBar .ab-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-bottom: 1px solid rgba(255,216,74,0.35); color: #ffd84a; letter-spacing: .5px; }
#admBar.min .ab-body { display: none; }
#admBar.min .ab-head { border-bottom: 0; }
#admBar .ab-body { padding: 6px 10px 10px; display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 150px); overflow: auto; }
#admBar .ab-sec { color: #ffd84a; font-weight: bold; font-size: 11px; text-transform: uppercase; margin-top: 4px; opacity: .85; }
#admBar .ab-row { display: flex; gap: 6px; align-items: center; }
#admBar .ab-row > * { flex: 1; }
#admBar button { background: rgba(255,216,74,0.12); color: #fff3c8; border: 1px solid rgba(255,216,74,0.45); border-radius: 6px; padding: 5px 6px; cursor: pointer; font: inherit; }
#admBar button:hover { background: rgba(255,216,74,0.25); }
#admBar button.on { background: #ffd84a; color: #2a1d00; font-weight: bold; }
#admBar .ab-min { flex: 0 0 auto; width: 26px; padding: 0 4px; }
#admBar #abZv { text-align: center; flex: 0 0 48px; }
#admBar select, #admBar input { width: 100%; background: rgba(0,0,0,0.45); color: #fff; border: 1px solid rgba(255,216,74,0.4); border-radius: 6px; padding: 4px 6px; font: inherit; box-sizing: border-box; }
#admBar label { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #e9d9a0; }
#admBar label.ab-chk { flex-direction: row; align-items: center; gap: 6px; }
#admBar label.ab-chk input { width: auto; }
#admBar .ab-arm { padding: 8px; font-weight: bold; font-size: 13px; }
#admBar .ab-arm.on { animation: admPulse 1s infinite; }
#admBar .ab-hint { font-size: 10.5px; color: #cdbb85; line-height: 1.35; }
#admBar .ab-exit { border-color: #ff8a7a; color: #ffb3a8; }
@keyframes admPulse { 50% { box-shadow: 0 0 14px #ffd84a; } }
body.adm-armed #game, body.adm-armed canvas { cursor: crosshair !important; }
@media (max-width: 700px) { #admBar { top: 70px; width: 190px; font-size: 11px; } }

/* ===== Oyun rehberi ===== */
#guideBtn { border-color: #8fb8ff; background: linear-gradient(#2c4f8a, #13264a); color: #e6efff; box-shadow: 0 0 10px #8fb8ff44; }
#guideBtn:hover { filter: brightness(1.15); }
.guide-btn { width: 100%; margin-top: 10px; background: linear-gradient(#2c4f8a, #13264a); border: 1px solid #8fb8ff; color: #e6efff; }
#guide { position: fixed; inset: 0; z-index: 8000; background: rgba(6, 4, 12, 0.7); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 14px; }
#guide[hidden] { display: none; }
.gd-box { width: min(1080px, 100%); height: min(760px, 100%); display: flex; flex-direction: column; background: linear-gradient(180deg, #1e1830f7, #100c18fa); border: 1px solid #ffd88c55; border-radius: 14px; box-shadow: 0 20px 60px #000c; color: #e8e4f0; overflow: hidden; font-size: 14px; }
.gd-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #ffffff1a; }
.gd-head > b { font-size: 17px; color: #ffd88c; white-space: nowrap; font-family: Georgia, serif; }
.gd-search { flex: 1; display: flex; align-items: center; gap: 6px; background: #00000059; border: 1px solid #ffd88c44; border-radius: 10px; padding: 0 10px; }
.gd-search:focus-within { border-color: #ffd88c; box-shadow: 0 0 0 2px #ffd88c33; }
.gd-search input { flex: 1; background: none; border: 0; color: #fff; font: inherit; padding: 9px 0; outline: none; min-width: 0; }
.gd-x { background: #ffffff14; border: 1px solid #ffffff2a; color: #fff; border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 15px; flex: 0 0 auto; }
.gd-x:hover { background: #ff5a5a44; }
.gd-main { flex: 1; display: flex; min-height: 0; }
.gd-nav { width: 220px; flex: 0 0 auto; overflow-y: auto; padding: 8px; border-right: 1px solid #ffffff14; display: flex; flex-direction: column; gap: 2px; }
.gd-nav button { text-align: left; background: none; border: 0; color: #cfc8de; padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; }
.gd-nav button:hover { background: #ffffff10; color: #fff; }
.gd-nav button.on { background: #ffd88c22; color: #ffd88c; font-weight: bold; }
.gd-body { flex: 1; overflow-y: auto; padding: 14px 20px 30px; line-height: 1.55; }
.gd-body h2 { margin: 2px 0 10px; color: #ffd88c; font-family: Georgia, serif; font-size: 22px; }
.gd-e { background: #ffffff08; border: 1px solid #ffffff12; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.gd-e h3 { margin: 0 0 6px; font-size: 15px; color: #fff3d0; }
.gd-e p { margin: 6px 0; }
.gd-e ol, .gd-e ul { margin: 6px 0; padding-left: 22px; }
.gd-t { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.gd-t th { text-align: left; color: #ffd88c; font-weight: 600; border-bottom: 1px solid #ffd88c44; padding: 5px 6px; }
.gd-t td { border-bottom: 1px solid #ffffff10; padding: 5px 6px; vertical-align: top; }
.gd-t tr:hover td { background: #ffffff06; }
.gd-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.gd-res { color: #cfc8de; margin-bottom: 10px; }
.gd-crumb { font-size: 12px; color: #8fb8ff; cursor: pointer; margin-bottom: 2px; }
.gd-crumb:hover { text-decoration: underline; }
.gd-none { color: #cfc8de; }
#guide mark { background: #ffd84a; color: #1a1200; border-radius: 3px; padding: 0 2px; }
@media (max-width: 720px) {
  #guide { padding: 0; }
  .gd-box { height: 100%; border-radius: 0; }
  .gd-head { flex-wrap: wrap; gap: 8px; }
  .gd-head > b { flex: 1; }
  .gd-search { order: 3; flex-basis: 100%; }
  .gd-main { flex-direction: column; }
  .gd-nav { width: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid #ffffff14; padding: 6px; }
  .gd-nav button { white-space: nowrap; padding: 6px 10px; }
  .gd-body { padding: 10px 12px 24px; }
  .gd-t { font-size: 12px; display: block; overflow-x: auto; }
}

/* ===== Demirci: üretim ===== */
.sm-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.cr-sets { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.cr-sets .chip { flex-direction: column; align-items: flex-start; gap: 0; border-color: var(--sc); padding: 6px 12px; }
.cr-sets .chip small { color: #a9a3b8; font-size: 11px; }
.cr-sets .chip.on { background: color-mix(in srgb, var(--sc) 20%, #120f19); box-shadow: 0 0 10px color-mix(in srgb, var(--sc) 40%, transparent); }
.setbox.big { font-size: 13px; }
.setbox.big b { display: inline; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.cr-card { background: #ffffff08; border: 1px solid #ffffff18; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.cr-top { display: flex; gap: 10px; align-items: center; }
.cr-top small { display: block; }
.cr-mats { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.cr-mats > div { display: flex; align-items: center; gap: 6px; }
.cr-mats .ok b { color: #8dffb0; } .cr-mats .err b { color: #ff7a7a; }
.cr-mats em { font-style: normal; font-size: 10px; background: #ffe27a; color: #2a1d00; border-radius: 4px; padding: 0 4px; font-weight: bold; }

/* ===== v5: jenerik, ayarlar, sohbet, eğitim, görev panosu, harita, lonca ===== */
.auth-card { position: relative; }
.info-btn { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #8fb8ff88; background: #13264acc; color: #cfe0ff; font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }
.info-btn:hover { background: #2c4f8a; }
#credits { position: fixed; inset: 0; z-index: 8100; background: rgba(6, 4, 12, 0.72); display: flex; align-items: center; justify-content: center; padding: 14px; }
#credits[hidden] { display: none; }
.cr-box { position: relative; width: min(560px, 100%); max-height: 88vh; overflow: auto; background: linear-gradient(180deg, #1e1830f7, #100c18fa); border: 1px solid #ffd88c55; border-radius: 14px; padding: 20px 22px; color: #e8e4f0; font-size: 14px; box-shadow: 0 20px 60px #000c; }
.cr-box .x { position: absolute; top: 10px; right: 10px; background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; }
.cr-box h4 { margin: 14px 0 4px; color: #ffd88c; }
.cr-box a { color: #9fd2ff; }
.cr-box .logo.sm { font-size: 26px; text-align: center; margin-bottom: 6px; }
.cr-auth { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.cr-auth span { background: #ffffff12; border-radius: 10px; padding: 2px 8px; font-size: 12px; }
.set-list { display: flex; flex-direction: column; gap: 10px; }
.set-list label { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #ffffff0a; padding: 8px 12px; border-radius: 8px; }
.set-list input[type=range] { width: 55%; }
#chatBox { position: absolute; left: calc(10px + env(safe-area-inset-left)); bottom: 12px; width: min(360px, 44vw); pointer-events: auto; font-size: 12px; z-index: 5; }
#chatBox .ch-list { max-height: 118px; overflow: hidden; display: flex; flex-direction: column; gap: 1px; text-shadow: 0 1px 2px #000; cursor: pointer; }
#chatBox .ch-list div { background: #0006; padding: 2px 7px; border-radius: 5px; word-break: break-word; transition: opacity .6s; }
#chatBox .ch-list div.old { opacity: 0; }
#chatBox .ch-list i { color: #ffe9a8; font-style: normal; font-size: 11px; }
#chatBox.open .ch-list { max-height: 220px; overflow-y: auto; background: #0b0814cc; border-radius: 8px 8px 0 0; padding: 4px; }
#chatBox .ch-in { display: flex; gap: 4px; background: #0b0814ee; padding: 4px; border-radius: 0 0 8px 8px; }
#chatBox .ch-in input { flex: 1; min-width: 0; background: #1a1528; color: #fff; border: 1px solid #ffffff22; border-radius: 6px; padding: 5px 8px; }
#chatBox .ch-in select { background: #1a1528; color: #fff; border: 1px solid #ffffff22; border-radius: 6px; }
body.touch #chatBox { bottom: 6px; left: 50%; transform: translateX(-50%); width: min(320px, 44vw); }
body.touch #chatBox .ch-list { max-height: 72px; }
#tutBox { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); width: min(340px, 86vw); background: linear-gradient(180deg, #1f2d4af2, #111a2ef2); border: 1px solid #8fb8ff; border-radius: 12px; padding: 10px 14px; color: #e6efff; pointer-events: auto; box-shadow: 0 8px 30px #0009; z-index: 6; }
#tutBox small { color: #8fb8ff; } #tutBox b { display: block; font-size: 15px; margin: 2px 0; } #tutBox p { margin: 4px 0 8px; font-size: 13px; }
#tutBox .row { display: flex; gap: 6px; }
.tk-row { display: flex; gap: 10px; align-items: center; background: #ffffff0a; border-radius: 10px; padding: 8px 10px; margin-bottom: 7px; }
.tk-row.off { opacity: .5; } .tk-row.done { opacity: .7; }
.tk-main { flex: 1; min-width: 0; } .tk-main small { display: block; color: var(--muted); }
.tk-rw { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bar.tkb { height: 14px; margin-top: 5px; position: relative; background: #0006; border-radius: 7px; overflow: hidden; }
.bar.tkb div { height: 100%; background: linear-gradient(90deg, #3a9c6a, #8dffb0); }
.bar.tkb span { position: absolute; inset: 0; font-size: 10px; text-align: center; line-height: 14px; color: #fff; text-shadow: 0 1px 2px #000; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 7px; }
.ach { background: #ffffff0a; border-radius: 10px; padding: 8px 10px; opacity: .65; } .ach.got { opacity: 1; border: 1px solid #ffd84a66; }
.ach small { display: block; } .ach .ok { color: #8dffb0; }
.ti-list { display: flex; flex-wrap: wrap; gap: 6px; }
.wm { position: relative; height: min(56vh, 460px); background: radial-gradient(ellipse at 50% 55%, #2a3a2a, #141a14); border-radius: 12px; border: 1px solid #ffffff22; overflow: hidden; }
.wm svg { position: absolute; inset: 0; width: 100%; height: 100%; } .wm line { stroke: #d8c08a66; stroke-width: 0.6; stroke-dasharray: 1.5 1; }
.wm-n { position: absolute; transform: translate(-50%, -50%); background: #1d1a2ae6; border: 1px solid #ffd88c88; color: #fff; border-radius: 10px; padding: 4px 8px; cursor: pointer; text-align: center; font-size: 12px; white-space: nowrap; }
.wm-n small { display: block; color: #cfc6dd; font-size: 10px; } .wm-n.here { border-color: #8dffb0; box-shadow: 0 0 12px #8dffb088; } .wm-n.lock { opacity: .5; }
.wm-n.g-snow { border-color: #bff4ff; } .wm-n.g-ash { border-color: #ff7a3d; } .wm-n.g-sand { border-color: #f0c070; } .wm-n.g-swamp { border-color: #8ac06a; } .wm-n.g-cave { border-color: #9b7bff; } .wm-n.g-field { border-color: #ff4d6d; }
.gu-head b { font-size: 17px; } .gu-head small { display: block; color: var(--muted); margin-bottom: 8px; }
.gu-t { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 8px; } .gu-t td, .gu-t th { padding: 4px 6px; border-bottom: 1px solid #ffffff12; text-align: left; } .gu-t small { color: var(--muted); }
.gu-new input { flex: 1; min-width: 0; background: #1a1528; color: #fff; border: 1px solid #ffffff22; border-radius: 6px; padding: 6px 8px; }
.btn:disabled { opacity: .45; filter: grayscale(.6); cursor: not-allowed; }
body.touch #tutBox { bottom: auto; top: 92px; width: min(300px, 56vw); padding: 7px 10px; } body.touch #tutBox p { font-size: 12px; margin: 2px 0 6px; }
/* v6: dinlenme XP'si */
.bar.xp { position: relative; }
.bar.xp > #xpRest { position: absolute; top: 0; height: 100%; background: linear-gradient(90deg, rgba(90,170,255,0.55), rgba(140,210,255,0.35)); pointer-events: none; }
.tq { position: relative; }
.tq .tq-kr { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 15px; padding: 2px 5px; border-radius: 8px; background: #1d4a44cc; border: 1px solid #5ae0c8aa; cursor: pointer; }
.tq .tq-kr:hover { background: #2a6a60; }
/* v6: Ash Coin */
.ashi { display: inline-block; width: 13px; height: 13px; margin: 0 4px 0 10px; vertical-align: -2px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #ffe2b8, #ff8a3d 45%, #9a2a10 80%); box-shadow: 0 0 6px #ff6a2a99, inset 0 0 0 1.5px #3a0e04aa; position: relative; }
.ashi::after { content: ''; position: absolute; left: 4px; top: 2px; width: 5px; height: 8px; background: #fff3d0; clip-path: polygon(50% 0, 100% 60%, 70% 100%, 30% 100%, 0 60%); opacity: .85; }
#hudAsh { color: #ffb070; }
.cur-pick { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-weight: 700; font-size: 13px; }
.cur-pick .ashi { margin: 0 4px 0 0; }
.radio.off { opacity: .45; cursor: not-allowed; }

/* v6.1 etkin güçlendirmeler */
.hud-buffs { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; margin-top: 2px; pointer-events: auto; }
.hud-buffs span { background: rgba(15,10,28,.72); border: 1px solid rgba(255,216,74,.35); border-radius: 8px; padding: 1px 5px; font-size: 13px; display: inline-flex; align-items: center; gap: 3px; cursor: default; }
.hud-buffs small { font-size: 10px; color: #ffe9a8; }

/* v6.2 hedef çerçevesi */
#tgtFrame { position: absolute; left: 50%; transform: translateX(-50%); top: calc(78px + env(safe-area-inset-top)); width: min(460px, 70vw); pointer-events: auto; z-index: 3; }
#tgtFrame .tg-bar { position: relative; height: 22px; background: #0b0910e6; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,216,74,.45); box-shadow: inset 0 1px 3px #000a, 0 4px 14px #0008; }
#tgtFrame .tg-f { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(180deg, #ff7a7a, #b81f2f); transition: width .15s; }
#tgtFrame .tg-f.ally { background: linear-gradient(180deg, #8dffb0, #2f9a5a); }
#tgtFrame .tg-l { position: absolute; left: 8px; top: 0; line-height: 22px; max-width: 52%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
#tgtFrame .tg-n { font-size: 12px; }
#tgtFrame .tg-s { font-size: 10px; color: #e8e0f0; margin-left: 6px; }
#tgtFrame .tg-hp { position: absolute; right: 26px; top: 0; line-height: 22px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000, 0 0 3px #000; font-variant-numeric: tabular-nums; }
#tgtFrame .tg-x { position: absolute; right: 2px; top: 0; height: 22px; width: 22px; background: none; border: 0; color: #fff; cursor: pointer; font-size: 12px; text-shadow: 0 1px 2px #000; }
#tgtFrame .tg-adm { margin-top: 4px; text-align: right; }
#tgtFrame .tg-act { display: flex; gap: 6px; justify-content: center; margin-top: 5px; }
#tgtFrame .tg-act button { background: linear-gradient(#3a2a5a, #241a3a); color: #ffe9a8; border: 1px solid #ffd84a66; border-radius: 7px; font-size: 12px; padding: 3px 10px; cursor: pointer; font-weight: 700; }
#tgtFrame .tg-act button:hover { border-color: #ffd84a; }
#tgtFrame .tg-adm button { background: #3a2a5a; color: #ffe9a8; border: 1px solid #ffd84a66; border-radius: 6px; font-size: 11px; padding: 2px 8px; cursor: pointer; }
@media (max-width: 640px) { #tgtFrame .tg-s { display: none; } #tgtFrame .tg-hp { font-size: 10px; } }
@media (max-width: 500px) { #tgtFrame { top: calc(250px + env(safe-area-inset-top)); width: 86vw; } }
/* v6.2 yönetici büyük duyurusu */
#bigMsg { position: absolute; left: 50%; top: 28%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; z-index: 5; max-width: min(90vw, 760px); padding: 14px 34px; background: radial-gradient(ellipse at center, #000c 30%, #0000 75%); }
#bigMsg small { display: block; font-size: 12px; letter-spacing: 3px; color: var(--bc); opacity: .85; font-weight: 800; }
#bigMsg b { display: block; font-size: clamp(20px, 3.4vw, 38px); color: #fff; text-shadow: 0 0 14px var(--bc), 0 2px 3px #000; line-height: 1.2; word-break: break-word; }
#bigMsg.go { animation: bigIn .5s ease-out; }
@keyframes bigIn { from { transform: translate(-50%, -50%) scale(1.4); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
/* v6.2 admin çubuğu ek alanları ve inceleme paneli */
#admBar textarea { width: 100%; box-sizing: border-box; background: #120c1e; color: #fff; border: 1px solid #ffffff22; border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 12px; resize: vertical; }
#admBar #abMode { width: 100%; }
.insp { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.2fr); gap: 14px; }
.insp-eq, .insp-inv { display: grid; grid-template-columns: repeat(auto-fill, 46px); gap: 4px; }
@media (max-width: 640px) { .insp { grid-template-columns: 1fr; } }
#admBar .ab-body { max-height: calc(100vh - 175px); overflow-y: auto; }

/* v7 ustalık */
.tb.m6 { right: 206px; bottom: 70px; width: 46px; height: 46px; border-color: #c77dff; }
.tb.m7 { right: 200px; bottom: 124px; width: 46px; height: 46px; border-color: #c77dff; }
#skillbar .sk.mast { border-color: #c77dff; box-shadow: 0 0 8px #c77dff66; }
.mst { display: grid; gap: 10px; }
.mst-head { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: linear-gradient(90deg, #2a1a44, #1a1028); border: 1px solid #c77dff55; }
.mst-head .big { font-size: 34px; }
.mst-tier { padding: 10px 12px; border-radius: 10px; background: #ffffff08; border: 1px solid #ffffff18; }
.mst-tier.done { border-color: #8dffb066; background: #8dffb00d; }
.mst-tier.next { border-color: #ffd84a88; box-shadow: 0 0 10px #ffd84a22; }
.mst-tier h4 { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; }
.mst-need { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.mst-need span { font-size: 12px; padding: 2px 8px; border-radius: 8px; background: #00000040; border: 1px solid #ffffff22; }
.mst-need span.ok { border-color: #8dffb088; color: #8dffb0; }
.mst-need span.no { border-color: #ff5a5a66; color: #ffb0b0; }
.mst-sk { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; font-size: 13px; }
.mst-sk .ic { font-size: 22px; }

/* v7.1 boss hasar sıralaması */
#dmgMeter { position: absolute; right: 10px; top: 60%; width: 230px; background: linear-gradient(180deg, rgba(28,20,44,.9), rgba(14,10,24,.9)); border: 1px solid rgba(255,216,74,.35); border-radius: 10px; padding: 6px 7px; z-index: 3; pointer-events: none; box-shadow: 0 6px 18px #0008; }
#dmgMeter .dm-h { font-size: 12px; font-weight: 800; color: #ffd84a; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dmgMeter .dm-h small { color: #b8b0c8; font-weight: 600; margin-left: 4px; }
#dmgMeter .dm-r { position: relative; height: 18px; margin-top: 3px; background: #0b0910cc; border-radius: 5px; overflow: hidden; font-size: 11px; line-height: 18px; }
#dmgMeter .dm-r.me { outline: 1px solid #ffd84a99; }
#dmgMeter .dm-f { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #6a2a3acc, #b8452fcc); }
#dmgMeter .dm-r.me .dm-f { background: linear-gradient(90deg, #7a5a10cc, #d8a21acc); }
#dmgMeter .dm-n { position: absolute; left: 6px; max-width: 58%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; text-shadow: 0 1px 2px #000; }
#dmgMeter .dm-v { position: absolute; right: 6px; color: #fff; font-weight: 700; text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }
#dmgMeter .dm-v small { color: #d8d0e8; font-weight: 600; font-size: 9px; }
@media (max-width: 640px) { #dmgMeter { width: 170px; top: 44%; } #dmgMeter .dm-v small { display: none; } }
#rescueBtn { border-color: #ff8a7a; background: linear-gradient(#8a2c2c, #4a1313); color: #ffe6e2; box-shadow: 0 0 10px #ff8a7a44; cursor: pointer; }
#rescueBtn:hover { filter: brightness(1.15); }
#chList .sys b { font-weight: 800; }

/* v7.3 çevrimiçi/çevrimdışı mod */
.mode-b { font-weight: 700; }
.mode-b.on { color: #8dffb0; } .mode-b.off { color: #ffd84a; }
#modeTag { position: absolute; left: 12px; top: calc(122px + env(safe-area-inset-top)); background: #2a2010e6; border: 1px solid #ffd84a88; color: #ffe9a8; border-radius: 8px; padding: 2px 8px; font-size: 11px; font-weight: 800; pointer-events: auto; z-index: 3; }
#modeCards .pick { min-height: 0; }

/* v7.4 parti listesi + bonus etkinliği */
#partyFrame .pf-h { font-size: 12px; font-weight: 800; color: #8dffb0; text-shadow: 0 1px 2px #000; padding: 0 2px; }
#partyFrame .pm.me { border-color: #ffd84a88; }
#partyFrame .pm b { font-size: 12px; }
body.touch #partyFrame { top: calc(118px + env(safe-area-inset-top)); bottom: auto; left: calc(10px + env(safe-area-inset-left)); transform: none; flex-direction: column; width: min(190px, 44vw); max-width: none; }
#boostTag { position: absolute; left: 50%; transform: translateX(-50%); top: calc(104px + env(safe-area-inset-top)); background: linear-gradient(90deg, #4a2a00e6, #6a3a00e6); border: 1px solid #ffd84a; color: #ffe9a8; border-radius: 10px; padding: 3px 12px; font-size: 12px; font-weight: 800; z-index: 3; white-space: nowrap; pointer-events: none; box-shadow: 0 0 12px #ffd84a55; }

/* v7.7 Kriku can/mana havuzu */
.kr-pool { display: flex; gap: 6px; margin: 4px 0 2px; } .kr-pool .kp { flex: 1; height: 12px; position: relative; background: #0008; border-radius: 6px; overflow: hidden; display: block; }
.kr-pool .kp i { position: absolute; left: 0; top: 0; bottom: 0; } .kr-pool .kp.hp i { background: linear-gradient(90deg, #c4002a, #ff5a6e); } .kr-pool .kp.mp i { background: linear-gradient(90deg, #1f5fff, #6fa8ff); }
.kr-pool .kp em { position: relative; font-size: 9px; font-style: normal; line-height: 12px; padding-left: 5px; color: #fff; }

/* v7.8 otomatik savaş düğmesi ve fotoğraf modu */
.tb.auto { right: 206px; bottom: 2px; width: 46px; height: 46px; font-size: 17px; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tb.auto small { font-size: 8px; font-weight: 800; letter-spacing: 1px; color: #ffd84a; }
.tb.auto.on { background: #3dff8a55; border-color: #8dffb0; box-shadow: 0 0 12px #3dff8a88; }
body:not(.touch) .tb.auto { display: none; }
body.photo #hud, body.photo #tbtns, body.photo #stick, body.photo #chatBox, body.photo #toasts { display: none !important; }

/* v7.9 sezon bandı */
.season-ban { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: linear-gradient(90deg, #3a2a0a, #1d1530); border: 1px solid #ffd84a55; color: #ffe9a8; font-size: 13px; }
.season-ban b { color: #ffd84a; }
/* v8.0 sunucu seçimi */
.realm-box { margin: 4px 0 10px; font-size: 13px; color: #cfc6e8; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.realm-box select { background: #241f33; color: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; font-size: 13px; }
.realm-line { font-size: 12px; color: #a99fc8; margin-bottom: 6px; }
/* v8.2 Kriku: can/mana çubukları düğmelerin altında, etiketli */
.kr-poolbox:empty { display: none; }
.kr-poolbox .kr-pool { flex-direction: column; gap: 4px; margin: 2px 0; }
.kr-poolbox .kr-pool .kp { height: 16px; } .kr-poolbox .kr-pool .kp em { font-size: 11px; line-height: 16px; }
.kr-poolbox small { font-size: 11px; color: var(--muted); display: block; }
@media (max-width: 560px) {
  .kr-top { flex-wrap: wrap; gap: 8px; padding: 10px; }
  .kr-face { font-size: 30px; }
  .kr-info { flex: 1 1 calc(100% - 50px); min-width: 0; }
  .kr-btns { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .kr-btns .btn.big { padding: 8px 10px; font-size: 14px; }
  .kr-btns .kr-poolbox { grid-column: 1 / -1; }
}
#tutBox { z-index: 35; } body.photo #tutBox, #hud[hidden] ~ #tutBox { display: none !important; }
