

:root {
  --bg:        #0b0c0e;
  --bg-2:      #12141a;
  --panel:     rgba(16, 18, 24, 0.92);
  --panel-2:   rgba(24, 27, 35, 0.94);
  --border:    rgba(255, 255, 255, 0.10);
  --border-2:  rgba(255, 255, 255, 0.18);
  --red:       #d42222;
  --red-dim:   #9c1a1a;
  --gold:      #d8b45a;
  --blue:      #3d7ac4;
  --green:     #4aa03a;
  --text:      #e8e6e2;
  --text-dim:  #9a978f;
  --shadow:    0 12px 32px rgba(0, 0, 0, 0.55);
  --radius:    10px;
  --font:      "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;

  
  --ko-gold:      #8a7434;   
  --ko-gold-lit:  #c9a24a;   
  --ko-frame-lit: #79866d;   
  --ko-frame:     #202619;   
  --ko-plate-1:   #3a4234;   
  --ko-plate-2:   #232a1e;
  --ko-stone-1:   #4a4740;   
  --ko-stone-2:   #3b3931;
  --ko-well-1:    #2b2924;   
  --ko-well-2:    #201f1b;
  --ko-slot:      #131210;   
  --ko-slot-line: #6f6a5c;   
  --ko-btn-1:     #9a2a20;   
  --ko-btn-2:     #7a1c14;
  --ko-btn-3:     #5a1109;
  --ko-btn-ink:   #f5d98e;
  --ko-ink:       #efe3c4;   
  --ko-ink-dim:   #a09a86;
  --ko-display:   Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  
  cursor: var(--ko-cursor, default);
}

button, input, select { font-family: inherit; font-size: inherit; color: inherit; }

button, .tab, .hud-btn, .slot, .skill-slot, .char-card, .class-card, .nation-card,
.shop-cell, .cl-tab, .npc-tab, .sb-page, .sb-btn {
  cursor: var(--ko-cursor-grab, pointer);
}
button:disabled, .slot.blank { cursor: var(--ko-cursor-blocked, not-allowed); }
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
textarea, #chat-input { cursor: text; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
kbd {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  background: #22252d; border: 1px solid var(--border-2);
  font: 600 11px/1.5 var(--font); color: #fff;
}

.screen { position: fixed; inset: 0; display: none; }
.screen.active { display: block; }

.bg-layer {
  position: absolute; inset: 0;
  
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(212, 34, 34, 0.16), transparent 62%),
    radial-gradient(900px 620px at 12% 100%, rgba(61, 122, 196, 0.14), transparent 58%),
    linear-gradient(180deg, #0d0f13 0%, #08090c 100%);
}
.bg-layer::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

#screen-loading {
  background: var(--bg);
  display: none; place-items: center;
}
#screen-loading.active { display: grid; }

.loading-box { text-align: center; width: min(560px, 88vw); }

.ld-logo-wrap { position: relative; display: grid; place-items: center; margin-bottom: 30px; }
.logo-big { width: min(360px, 68vw); position: relative; z-index: 1;
            animation: ld-breathe 3.4s ease-in-out infinite; }
.ld-glow {
  position: absolute; width: 120%; height: 190%;
  background: radial-gradient(50% 42% at 50% 50%, rgba(212,34,34,.30), transparent 70%);
  filter: blur(6px); animation: ld-pulse 3.4s ease-in-out infinite;
}
@keyframes ld-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.028); } }
@keyframes ld-pulse   { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

.ld-bar {
  position: relative; width: min(420px, 82vw); height: 9px; margin: 0 auto;
  background: #14161c; border: 1px solid rgba(255,255,255,.09);
  border-radius: 6px; overflow: hidden;
  box-shadow: inset 0 2px 7px rgba(0,0,0,.65);
}
.ld-fill {
  height: 100%; width: 0%; border-radius: 5px;
  background: linear-gradient(90deg, #8e1414, var(--red) 45%, #ff6a52);
  box-shadow: 0 0 14px rgba(212,34,34,.7);
  transition: width .42s cubic-bezier(.25,.9,.3,1);
}

.ld-shine {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: translateX(-100%);
  animation: ld-shine 1.6s ease-in-out infinite;
}
@keyframes ld-shine { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

.ld-pct {
  margin-top: 9px; font-size: 12px; font-weight: 800; letter-spacing: 1.2px;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
#loading-text { margin-top: 14px; color: var(--text-dim); font-size: 14px; }

.ld-tip {
  margin-top: 20px; min-height: 34px; font-size: 12.5px; color: #6a6d78;
  line-height: 1.5; padding: 0 14px;
}
.ld-tip b { color: #9aa0ad; }

#zone-curtain {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  background: rgba(8, 9, 12, 0.94);
  animation: curtain-in 0.16s ease-out;
}
#zone-curtain[hidden] { display: none; }
#zone-curtain .logo-big { width: min(240px, 46vw); margin-bottom: 26px; opacity: 0.85; }
#zone-curtain-text { margin-top: 16px; color: var(--text-dim); font-size: 14px; letter-spacing: 0.3px; }
@keyframes curtain-in { from { opacity: 0; } to { opacity: 1; } }

#screen-login, #screen-server, #screen-chars {
  -webkit-user-select: none; user-select: none;
}
#screen-login input, #screen-login textarea, #screen-login select,
#screen-login [contenteditable],
#screen-login .lp-notes, #screen-login .p-not p,
#screen-login .lp-metin, #screen-login .lp-sec > p,
#screen-login .lp-tablo, #screen-login .lp-drop-cell,
#screen-server input, #screen-chars input, #screen-chars textarea {
  -webkit-user-select: text; user-select: text;
}

#screen-login { display: none; }
#screen-login.active {
  display: block;
  
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

.login-embers {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .5;
  background-image:
    radial-gradient(2px 2px at 12% 82%, rgba(216,150,90,.8), transparent),
    radial-gradient(2px 2px at 34% 64%, rgba(212,34,34,.7), transparent),
    radial-gradient(1px 1px at 58% 88%, rgba(255,200,140,.8), transparent),
    radial-gradient(2px 2px at 76% 58%, rgba(216,180,90,.6), transparent),
    radial-gradient(1px 1px at 88% 78%, rgba(255,170,110,.7), transparent);
  animation: embers 14s linear infinite;
}
@keyframes embers {
  from { transform: translateY(0); opacity: .5; }
  50%  { opacity: .22; }
  to   { transform: translateY(-140px); opacity: .5; }
}

.login-hero {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 40px 30px; min-width: 0;
}
.hero-stage { position: relative; width: min(420px, 80%); aspect-ratio: 3 / 4; }
#login-stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#login-stage:active { cursor: grabbing; }
.hero-glow {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  width: 62%; height: 16%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212,34,34,.34), transparent 75%);
  filter: blur(6px);
}
.hero-copy { max-width: 440px; text-align: center; }

.hero-logo { width: min(320px, 62vw); display: block; margin: 0 auto 10px; opacity: .96; }
.hero-kicker {
  font-size: 11.5px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.hero-tags span {
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  color: var(--text-dim); background: rgba(20,22,28,.6); border: 1px solid var(--border-2);
}
.hero-copy h2 {
  font-size: 26px; font-weight: 800; letter-spacing: .4px; margin-bottom: 8px;
  background: linear-gradient(180deg, #fff, #b9b4ab);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy > p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.hero-facts { list-style: none; margin-top: 18px; display: grid; gap: 7px; }
.hero-facts li {
  font-size: 12.5px; color: var(--text-dim); padding: 8px 14px; border-radius: 7px;
  background: rgba(20, 22, 28, .55); border: 1px solid var(--border);
}
.hero-facts b { color: var(--text); }

.login-wrap {
  position: relative; z-index: 2;
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px; padding: 24px;
}
.login-head { text-align: center; }
.logo { width: min(400px, 74vw); display: block; margin: 0 auto 14px; }
.logo-sm { height: 34px; }
.tagline { color: var(--text-dim); font-size: 14.5px; letter-spacing: .2px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.login-panel { width: min(420px, 92vw); padding: 6px 26px 26px; }

.tabs { display: flex; gap: 4px; margin: 0 0 22px; padding: 0; border-bottom: 1px solid var(--border); }
.login-panel .tabs { margin: 0 -26px 22px; padding: 0 12px; }
.tab {
  flex: 1; background: none; border: 0; padding: 15px 8px;
  color: var(--text-dim); font-weight: 600; font-size: 14px;
  border-bottom: 2px solid transparent; transition: .16s;
}
.tab:hover { color: var(--text); }
.tab.active { color: #fff; border-bottom-color: var(--red); }

.tabpane { display: none; }
.tabpane.active { display: block; }

label { display: block; margin-bottom: 15px; font-size: 12.5px; font-weight: 600; color: var(--text-dim); letter-spacing: .3px; }
label small { font-weight: 400; opacity: .7; margin-left: 6px; }
input[type=text], input[type=password], input[type=email], input[type=number], select, textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 11px 13px; border-radius: 7px;
  background: #0d0f13; border: 1px solid var(--border-2);
  color: var(--text); font-size: 14px; font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212, 34, 34, 0.16);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border-radius: 7px; border: 1px solid var(--border-2);
  background: #1a1d24; color: var(--text); font-weight: 600; font-size: 14px;
  transition: .15s;
}
.btn:hover:not(:disabled) { background: #232730; border-color: rgba(255,255,255,.28); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(180deg, #d42222, #a81818); border-color: #e04a4a; color: #fff; }
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #e83030, #bd1c1c); }
.btn-danger { background: #2a1416; border-color: #6a2626; color: #ff9a9a; }
.btn-danger:hover:not(:disabled) { background: #3a1a1c; }
.btn-ghost { background: transparent; border-color: var(--border); font-size: 13px; padding: 8px 14px; }

.form-error { min-height: 20px; margin-top: 12px; color: #ff7a6a; font-size: 13px; text-align: center; }

.server-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim);
}
.server-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.server-status.online .dot { background: #4ad46a; box-shadow: 0 0 10px #4ad46a; }
.server-status.offline .dot { background: var(--red); }

.login-foot { display: flex; gap: 20px; font-size: 12px; color: var(--text-dim); }

.chars-wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
.chars-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px; border-bottom: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.72); backdrop-filter: blur(8px);
}
.chars-head .spacer { flex: 1; }
.acc-name { font-size: 13px; color: var(--text-dim); }

.chars-body {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: 1fr;
  gap: 14px; padding: 16px; align-items: stretch;
}

.chars-body:not(.creating) .char-stage-panel { padding: 10px; }
.chars-body:not(.creating) .stage-info { min-height: 0; padding: 4px 2px 0; }

.chars-body.creating {
  grid-template-columns: minmax(200px, 245px) minmax(320px, 1fr) minmax(215px, 265px);
}

.chars-body:not(.creating) .cc-left,
.chars-body:not(.creating) .cc-right { display: none; }
.chars-body.creating .cc-left,
.chars-body.creating .cc-right { display: flex; }
.chars-body:not(.creating) .cc-namebar { display: none; }
.chars-body.creating .cc-namebar { display: flex; }

@media (max-width: 1100px) {
  .chars-body.creating { grid-template-columns: minmax(180px, 220px) 1fr; }
  .chars-body.creating .cc-right { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .chars-body, .chars-body.creating { grid-template-columns: 1fr; }
  .char-stage-panel { min-height: 320px; }
}

.chars-bar {
  display: flex; gap: 10px; justify-content: center;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  background: rgba(10,11,14,.72); backdrop-filter: blur(8px);
}
.chars-bar[hidden] { display: none; }
.ko-btn {
  min-width: 148px; padding: 12px 18px; border-radius: 8px;
  font-size: 13.5px; font-weight: 800; letter-spacing: .3px;
  color: var(--text);
  background: linear-gradient(180deg, #22252e, #14161c);
  border: 1px solid var(--border-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: .14s;
}
.ko-btn:hover:not(:disabled) { border-color: var(--gold); color: #fff; }
.ko-btn:disabled { opacity: .38; }
.ko-btn.ko-primary {
  background: linear-gradient(180deg, #d42222, #9b1717);
  border-color: #e04a4a; color: #fff;
}
.ko-btn.ko-primary:hover:not(:disabled) { background: linear-gradient(180deg, #e83030, #b01c1c); }
.ko-btn.ko-danger { border-color: #6a2a2a; color: #e09a9a; }
.ko-btn.ko-danger:hover:not(:disabled) { border-color: #c43d3d; color: #fff; }

.cc-panel { padding: 20px; display: flex; flex-direction: column; min-width: 0; }
.char-stage-panel { min-width: 0; }
.chars-body > * { min-width: 0; }
.cc-panel h2 {
  font-size: 15px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-dim); margin-bottom: 16px; font-weight: 700;
}

.char-stage-panel { padding: 14px; display: flex; flex-direction: column; gap: 11px; min-height: 420px; }

.chars-body:not(.creating) .char-stage-panel { min-height: 0; }
.stage-canvas-wrap {
  position: relative; flex: 1; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 12%, rgba(140,170,210,.18), transparent 72%),
    radial-gradient(50% 40% at 50% 100%, rgba(212,34,34,.14), transparent 70%),
    linear-gradient(180deg, #12151c, #08090c);
  border: 1px solid var(--border);
}
#char-stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }

@keyframes stage-slide-r {
  0%   { transform: translateX(0);     opacity: 1; }
  45%  { transform: translateX(-14%);  opacity: 0; }
  55%  { transform: translateX(14%);   opacity: 0; }
  100% { transform: translateX(0);     opacity: 1; }
}
@keyframes stage-slide-l {
  0%   { transform: translateX(0);     opacity: 1; }
  45%  { transform: translateX(14%);   opacity: 0; }
  55%  { transform: translateX(-14%);  opacity: 0; }
  100% { transform: translateX(0);     opacity: 1; }
}
.stage-canvas-wrap.slide-r { animation: stage-slide-r .34s ease-in-out; }
.stage-canvas-wrap.slide-l { animation: stage-slide-l .34s ease-in-out; }

@media (prefers-reduced-motion: reduce) {
  .stage-canvas-wrap.slide-r, .stage-canvas-wrap.slide-l { animation: none; }
}

.ko-btn.ko-nav { min-width: 112px; font-size: 12px; color: var(--text-dim); }
.ko-btn.ko-nav:hover:not(:disabled) { color: #fff; }
.ko-btn[hidden] { display: none; }
#char-stage:active { cursor: grabbing; }
.stage-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  font-size: 13px; color: #5c5f68; text-align: center; padding: 20px;
}
.stage-empty .se-slot {
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold);
}
.stage-empty .se-txt { font-size: 15px; color: #7c808a; }

.stage-empty::before {
  content: ''; position: absolute; inset: 26px; border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.08); pointer-events: none;
}

.stage-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 76px; border-radius: 10px; z-index: 3;
  display: grid; place-items: center; font-size: 20px;
  color: var(--text); background: rgba(16,18,24,.78);
  border: 1px solid var(--border-2); backdrop-filter: blur(4px);
  transition: .14s;
}
.stage-arrow:hover { border-color: var(--gold); color: #fff; background: rgba(30,26,16,.86); }
.stage-arrow.left { left: 12px; }
.stage-arrow.right { right: 12px; }
.stage-arrow[hidden] { display: none; }

.chars-body.creating .stage-arrow,
.chars-body.creating .stage-slotbar { display: none; }

.stage-slotbar {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3;
  display: flex; justify-content: center; gap: 9px; pointer-events: auto;
}
.stage-slotbar button {
  width: 30px; height: 30px; border-radius: 8px; font-size: 11.5px; font-weight: 800;
  color: var(--text-dim); background: rgba(16,18,24,.78);
  border: 1px solid var(--border-2); transition: .14s;
}
.stage-slotbar button.on { color: #fff; border-color: var(--gold); background: rgba(40,32,14,.9); }
.stage-slotbar button.filled { color: var(--text); }
.stage-slotbar button.empty { border-style: dashed; }
.stage-info { min-height: 74px; font-size: 12.5px; }
.stage-info .si-name { font-size: 17px; font-weight: 800; }
.stage-info .si-sub { color: var(--text-dim); font-size: 12px; margin-top: 2px; }
.stage-info .si-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.stage-info .si-stats span {
  padding: 3px 9px; border-radius: 5px; background: #14171d;
  border: 1px solid var(--border); font-size: 11.5px;
}
.stage-info .si-stats b { color: var(--text); }
.stage-hint { font-size: 10.5px; color: #5c5f68; text-align: center; }

.cc-fixed {
  padding: 11px 14px; border-radius: 8px; text-align: center;
  font-size: 14px; font-weight: 800;
  background: #14161c; border: 1px solid var(--border-2);
}
#nation-fixed[hidden] { display: none; }
.char-card {
  display: flex; align-items: center; gap: 13px; text-align: left;
  padding: 13px 15px; border-radius: 8px;
  background: #14161c; border: 1px solid var(--border); transition: .15s;
}
.char-card:hover { background: #1b1e26; }
.char-card.selected { border-color: var(--red); background: #201417; box-shadow: 0 0 0 2px rgba(212,34,34,.2); }
.char-card .cc-icon {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 8px;
  display: grid; place-items: center; font-size: 20px;
  background: #0d0f13; border: 1px solid var(--border-2);
}
.char-card .cc-main { flex: 1; min-width: 0; }
.char-card .cc-name { font-weight: 700; font-size: 15px; display: block; }
.char-card .cc-sub { font-size: 12px; color: var(--text-dim); }
.char-card .cc-lv { font-weight: 800; font-size: 17px; color: var(--gold); }
.char-empty { padding: 26px; text-align: center; color: var(--text-dim); font-size: 13.5px; }

.field { margin-bottom: 18px; }
.field.row { display: flex; gap: 18px; }
.field-label {
  display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px;
}
label.inline { display: flex; align-items: center; gap: 9px; margin: 0; flex: 1; }
label.inline input[type=range] { flex: 1; margin: 0; }

.nation-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.nation-card {
  padding: 15px 12px; border-radius: 9px; text-align: center;
  background: #14161c; border: 1px solid var(--border); transition: .15s;
}
.nation-card:hover { background: #1b1e26; }
.nation-card.selected { border-color: var(--red); box-shadow: 0 0 0 2px rgba(212,34,34,.2); background: #1c1519; }
.nation-card strong { display: block; margin: 9px 0 3px; font-size: 15px; }
.nation-card small { color: var(--text-dim); font-size: 11.5px; }
.crest { display: block; width: 36px; height: 36px; margin: 0 auto; border-radius: 8px; }
.crest.elmorad { background: linear-gradient(135deg, #3d7ac4, #1e3f6a); }
.crest.karus   { background: linear-gradient(135deg, #c43d3d, #6a1e1e); }

.class-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.class-card {
  padding: 12px 6px; border-radius: 9px; text-align: center;
  background: #14161c; border: 1px solid var(--border); transition: .15s;
}
.class-card:hover { background: #1b1e26; }
.class-card.selected { border-color: var(--red); box-shadow: 0 0 0 2px rgba(212,34,34,.2); }
.class-card .ci { font-size: 21px; display: block; margin-bottom: 5px; }
.class-card strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.class-detail {
  padding: 13px 15px; border-radius: 8px; background: #0d0f13;
  border: 1px solid var(--border); font-size: 13px; color: var(--text-dim); min-height: 66px;
}
.class-detail b { color: var(--text); }
.class-detail .stats-row { display: flex; gap: 12px; margin-top: 9px; flex-wrap: wrap; font-size: 12px; }
.class-detail .stats-row span { color: var(--text); }

#screen-game { background: #000; }
#scene, #overlay { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#scene { outline: none; }
#overlay { pointer-events: none; }

.hud { position: absolute; z-index: 5; user-select: none; }

.hud-self {
  top: 14px; left: 14px; display: flex; gap: 11px; align-items: center;
  padding: 11px 15px 11px 11px; border-radius: 11px;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.portrait {
  width: 52px; height: 52px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(160deg, #22262f, #0f1116);
  border: 1px solid var(--border-2); font-size: 24px;
}
.bars { width: 210px; }
.name-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.name-row strong { font-size: 14px; }
.name-row .lvl {
  font-size: 11px; font-weight: 800; color: #0c0d10;
  background: var(--gold); border-radius: 4px; padding: 1px 6px;
}
.bar {
  position: relative; height: 13px; border-radius: 4px; margin-bottom: 4px;
  background: #0a0b0e; border: 1px solid rgba(255,255,255,.09); overflow: hidden;
}
.bar.small { height: 9px; }
.bar i { display: block; height: 100%; width: 0%; transition: width .18s ease-out; }
.bar.hp i { background: linear-gradient(180deg, #e04040, #8a1414); }
.bar.mp i { background: linear-gradient(180deg, #4080e0, #14448a); }

.bar.xp { height: 16px; margin-bottom: 0; }
.bar.xp i { background: linear-gradient(180deg, #ffd24a, #b8860b); }

.bar.xp span { font-size: 11px; color: #fff8e0; }
.bar span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.9); letter-spacing: .3px;
}

.hud-target {
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 250px; padding: 8px 10px 9px; border-radius: 8px;
  background: rgba(22, 22, 24, .93);
  
  border: 1px solid #c9a227;
  box-shadow: 0 4px 18px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.5);
}

.t-name {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-bottom: 7px; font-size: 13.5px;
}
.t-name strong { color: #fff; font-weight: 800; letter-spacing: .2px; }

.t-name span {
  font-size: 11.5px; font-weight: 800; color: #1a1508;
  background: linear-gradient(180deg, #f0c94a, #d9a520);
  border-radius: 4px; padding: 1px 7px; line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.t-name span[hidden] { display: none; }

.hud-target .bar {
  height: 11px; margin-bottom: 0; border-radius: 3px;
  background: #2a1010; border: 1px solid rgba(0,0,0,.6);
}
.hud-target .bar i { background: linear-gradient(180deg, #d83a3a, #9c1818); }

.hud-minimap {
  top: 14px; right: 14px; padding: 8px; border-radius: 11px;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
}
#minimap { display: block; border-radius: 7px; background: #0a0b0e; }

.mm-srv-wrap { position: relative; margin-bottom: 7px; }
.mm-srv {
  display: flex; align-items: center; gap: 7px; width: 100%;
  padding: 6px 10px;
  font: 800 13px/1.2 'Segoe UI', system-ui, sans-serif;
  letter-spacing: .2px; text-align: center;
  color: #ffdf8a; background: linear-gradient(180deg, #1b1a14, #131318);
  border: 1px solid #6b5a24; border-radius: 8px;
  cursor: pointer; transition: border-color .12s, color .12s, background .12s;
}
.mm-srv:hover { border-color: var(--gold); color: #fff0be; background: linear-gradient(180deg, #23211a, #17171c); }

.mm-srv.bos { cursor: default; }
.mm-srv.bos:hover { border-color: #6b5a24; color: #ffdf8a; background: linear-gradient(180deg, #1b1a14, #131318); }
.mm-srv-ad { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mm-srv-ok { width: 9px; height: 9px; flex: none; opacity: .8; }
.mm-srv-ok::before {
  content: ''; display: block; width: 6px; height: 6px; margin: 0 1px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .16s;
}
.mm-srv.acik .mm-srv-ok::before { transform: rotate(-135deg) translate(-2px, -2px); }
.mm-srv.bos .mm-srv-ok { display: none; }

.mm-duyuru {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 6;
  padding: 9px 11px;
  font-size: 12px; line-height: 1.6; color: var(--text);
  background: #101116; border: 1px solid #6b5a24; border-radius: 8px;
  max-height: 220px; overflow-y: auto;
  
  white-space: pre-wrap; word-break: break-word;
  
  box-shadow: 0 10px 24px rgba(0,0,0,.55);
  animation: mmAc .14s ease-out;
}
@keyframes mmAc { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.mm-clan {
  color: #a8d0ff; border-color: #2f5480;
  background: linear-gradient(180deg, #141a22, #12141a);
  font-size: 12.5px;
}
.mm-clan:hover { border-color: #6aa8e0; color: #d0e8ff; background: linear-gradient(180deg, #1a222c, #16181e); }
.mm-clan.bos:hover { border-color: #2f5480; color: #a8d0ff; background: linear-gradient(180deg, #141a22, #12141a); }
.mm-clan-wrap .mm-duyuru { border-color: #2f5480; }
.mm-info { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: var(--text-dim); }

.mm-net {
  margin-top: 5px; padding: 3px 6px; text-align: center;
  font-size: 10.5px; color: var(--text-dim);
  background: rgba(10,11,14,.55); border-radius: 5px; border: 1px solid var(--border);
}

.panel-sbsets { width: 460px; max-height: 72vh; }
.sbs-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; overflow-y: auto; }
.sbs-sec {
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; color: var(--text-dim);
}
.sbs-sec i { font-style: normal; font-weight: 500; color: #6f757f; }
.sbs-pages { display: flex; flex-direction: column; gap: 3px; }
.sbs-row { display: flex; align-items: center; gap: 6px; }
.sbs-row > b { width: 20px; font-size: 10px; color: var(--text-dim); font-weight: 700; }
.sbs-cells { display: flex; gap: 2px; flex: 1; }
.sbs-cell {
  width: 24px; height: 24px; border-radius: 4px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #1a1d24; border: 1px solid var(--border-2);
}
.sbs-cell.empty { background: #12141a; border-style: dashed; opacity: .5; }
.sbs-cell img, .sbs-cell svg { width: 20px; height: 20px; }
.sbs-save { display: flex; gap: 6px; }
.sbs-save input {
  flex: 1; padding: 6px 9px; border-radius: 6px; font-size: 12px;
  background: #14161c; border: 1px solid var(--border-2); color: var(--text);
}
.sbs-empty { font-size: 11.5px; color: var(--text-dim); padding: 4px 2px; }
.sbs-list { display: flex; flex-direction: column; gap: 5px; }
.sbs-item { border: 1px solid var(--border-2); border-radius: 7px; background: #14161c; }
.sbs-item.open { border-color: var(--gold); }
.sbs-item .sbs-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px; }
.sbs-nm { flex: 1; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbs-item i { font-style: normal; font-size: 10.5px; color: var(--text-dim); }
.sbs-item .sbs-use { padding: 4px 10px; font-size: 11px; }
.sbs-exp, .sbs-ic {
  width: 22px; height: 22px; border-radius: 4px; font-size: 11px; line-height: 1;
  background: #1e222b; border: 1px solid var(--border-2); color: var(--text-dim);
}
.sbs-ic.sbs-del { color: #e0864a; }
.sbs-item .sbs-pages { padding: 0 8px 8px; }
.sbs-one {
  width: 20px; height: 20px; border-radius: 4px; font-size: 10px; line-height: 1;
  background: #1e222b; border: 1px solid var(--border-2); color: var(--green);
}
.sbs-item .sbs-pages .sbs-row { position: relative; }

.sbs-item .sbs-cell { width: 21px; height: 21px; }
.sbs-item .sbs-cell img, .sbs-item .sbs-cell svg { width: 17px; height: 17px; }

#aim-hint {
  display: none; pointer-events: none;
  bottom: 96px; left: 50%; transform: translateX(-50%);
  z-index: 26;                 
  padding: 5px 13px; border-radius: 8px; white-space: nowrap;
  font-size: 12.5px; color: #f0e6c8;
  background: rgba(12, 12, 16, .82);
  border: 1px solid rgba(232, 200, 120, .38);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .5);
  animation: aim-hint-in .16s ease-out;
}
#aim-hint b { color: #ffe9a8; }
#aim-hint i { color: #9aa0aa; font-style: normal; }
@keyframes aim-hint-in {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.hud-skillbar {
  z-index: 25;                 
  bottom: 14px; left: 50%; transform: translateX(-50%);
  padding: 6px; border-radius: 11px;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.sb-head {
  display: flex; align-items: center; gap: 5px; padding: 0 2px 6px;
  border-bottom: 1px solid var(--border); margin-bottom: 6px;
}
.sb-grip { cursor: grab; color: #55585f; font-size: 13px; letter-spacing: -2px; padding: 0 3px; user-select: none; }
.hud-skillbar.locked .sb-grip { cursor: default; opacity: .35; }
.sb-pages { display: flex; gap: 3px; flex: 1; }
.sb-page {
  width: 22px; height: 20px; border-radius: 4px; font-size: 11px; font-weight: 800;
  background: #14161c; border: 1px solid var(--border); color: var(--text-dim);
}
.sb-page.active { background: #2a1417; border-color: var(--red); color: #fff; }
.sb-btn {
  width: 22px; height: 20px; border-radius: 4px; font-size: 11px; line-height: 1;
  background: #14161c; border: 1px solid var(--border); color: var(--text-dim);
}
.sb-btn:hover { color: #fff; }
.sb-btn.on { background: #2a1417; border-color: var(--red); color: #fff; }

.sb-slots { display: flex; gap: 5px; }
.hud-skillbar.vertical .sb-slots { flex-direction: column; }

.hud-skillbar.vertical:not(.moved) {
  bottom: auto; left: 14px; top: 50%; transform: translateY(-50%);
}

.hud-skillbar.vertical .sb-head {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  width: auto;
  padding: 0 0 6px;
  align-items: center;
}
.hud-skillbar.vertical .sb-grip {
  grid-column: 1 / -1;
  padding: 0; text-align: center; line-height: 1;
}
.hud-skillbar.vertical .sb-pages { width: 100%; justify-content: center; }

.hud-skillbar.vertical .sb-page,
.hud-skillbar.vertical .sb-btn { width: 100%; }

.skill-slot {
  position: relative; width: 46px; height: 46px; border-radius: 8px;
  background: #14161c; border: 1px solid var(--border-2);
  display: grid; place-items: center; font-size: 20px; transition: .12s;
  cursor: pointer;
}
.skill-slot:hover { background: #1e222b; border-color: rgba(255,255,255,.3); }
.skill-slot.locked { opacity: .28; cursor: not-allowed; }
.skill-slot.empty { background: #0d0f13; border-style: dashed; border-color: #23262e; }
.skill-slot.drag-over { border-color: var(--gold); background: #23201a; }
.skill-slot .key {
  position: absolute; top: 2px; left: 4px; font-size: 9.5px;
  font-weight: 800; color: var(--text-dim); pointer-events: none;
}

.skill-slot .qty {
  position: absolute; right: 2px; bottom: 1px;
  font-size: 10px; font-weight: 800; line-height: 1.2;
  padding: 0 3px; border-radius: 3px;
  background: rgba(0,0,0,.75); color: #fff;
  pointer-events: none;
}

.skill-slot .qty.out { background: rgba(140,20,20,.9); color: #ffd0d0; }
.skill-slot.item-slot { font-size: 0; }
.skill-slot.item-slot .item-icon { width: 32px; height: 32px; }
.skill-slot .cd {
  position: absolute; inset: 0; border-radius: 7px;
  background: rgba(0,0,0,.72); display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff; pointer-events: none;
}

.cl-log {
  height: 148px; overflow-y: auto; padding: 5px 8px;
  font-size: 12px; line-height: 1.55; scrollbar-width: thin;
  font-variant-numeric: tabular-nums;
}
.cl-log div { margin-bottom: 1px; }
.cl-log .l-out  { color: #e8e0c0; }
.cl-log .l-crit { color: #ffd23a; font-weight: 700; }
.cl-log .l-in   { color: #ff8a7a; }
.cl-log .l-miss { color: #8a8d95; }
.cl-log .l-heal { color: #7ae08a; }
.cl-log .l-exp  { color: #d8b45a; }
.cl-log .l-loot { color: #9fd8ff; }
.cl-log .l-kill { color: #ff9f5a; font-weight: 700; }

.cl-log .l-info   { color: #8fd4ff; }
.cl-log .l-error  { color: #ff7a6a; }
.cl-log .l-system { color: var(--gold); }
.cl-log .l-mana   { color: #7aa8ff; }
.cl-log .l-buff   { color: #c89aff; }
.cl-log b { color: #fff; font-weight: 700; }

.ko-ui .panel-map {
  width: min(880px, 94vw); max-width: none;
  top: 50%; left: 50%; right: auto; bottom: auto;
  transform: translate(-50%, -50%);
  max-height: calc(100vh - 28px);
}

.ko-ui .panel-map .map-wrap {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px !important; overflow: hidden !important;
}
.ko-ui .panel-map .map-legend-row {
  flex: 0 0 168px; flex-direction: column; gap: 7px; margin-top: 0;
  padding: 9px 10px; border-radius: 3px;
  background: linear-gradient(180deg, var(--ko-well-1), var(--ko-well-2));
  box-shadow: inset 0 0 0 1px var(--ko-gold), inset 0 2px 6px rgba(0,0,0,.5);
  font-family: var(--ko-display); color: var(--ko-ink-dim);
}

#bigmap { display: block; flex: 0 0 auto; border-radius: 3px; background: #0a0d0a; }
.ko-ui #bigmap { box-shadow: inset 0 0 0 1px var(--ko-gold), 0 0 0 1px rgba(0,0,0,.6); }
.map-legend-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 9px; font-size: 11px; color: var(--text-dim); }
.map-legend-row span { display: flex; align-items: center; gap: 5px; }
.map-legend-row i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.ctx-menu {
  position: absolute; z-index: 70; min-width: 150px; padding: 5px;
  background: rgba(14,16,20,.97); border: 1px solid var(--border-2);
  border-radius: 8px; box-shadow: var(--shadow);
}
.ctx-menu .ctx-title {
  padding: 5px 9px 7px; font-size: 12px; font-weight: 700;
  border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.ctx-menu button {
  display: block; width: 100%; text-align: left; padding: 7px 9px;
  border: 0; background: none; border-radius: 5px; font-size: 12.5px; color: var(--text);
}
.ctx-menu button:hover { background: #22262f; }
.ctx-menu button.danger { color: #ff8a7a; }
.ctx-menu button:disabled { opacity: .35; cursor: not-allowed; }

.hud-buttons { bottom: 14px; right: 14px; display: flex; gap: 6px; }
.hud-btn {
  width: 42px; height: 42px; border-radius: 9px; font-size: 19px;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: .12s;
}
.hud-btn:hover { background: var(--panel-2); }
.hud-btn.active { border-color: var(--red); }

.hud-box {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.hud-chat   { bottom: 58px; left: 14px;  width: min(430px, 40vw); }
.hud-syslog { bottom: 58px; right: 14px; width: min(330px, 30vw); }
.hud-box.minimized .box-body { display: none; }

.box-head {
  display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 8px;
  background: linear-gradient(180deg, rgba(58,52,40,.55), rgba(0,0,0,.42));
  border-bottom: 1px solid var(--border);
  cursor: var(--ko-cursor-grab, move); user-select: none;
}
.box-head .bh-grip { color: #6a6152; font-size: 12px; line-height: 1; }
.box-head .bh-title {
  flex: 1; font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: #b8ad93;
}
.box-head .bh-btn {
  width: 20px; height: 18px; border: 0; border-radius: 4px; line-height: 1;
  background: transparent; color: var(--text-dim); font-size: 15px;
  cursor: var(--ko-cursor-grab, pointer);
}
.box-head .bh-btn:hover { background: #2a2f3a; color: #fff; }
.box-body { position: relative; display: flex; flex-direction: column; }

.box-resize {
  position: absolute; right: 0; bottom: 0; width: 15px; height: 15px;
  cursor: nwse-resize; z-index: 2;
  background: linear-gradient(135deg, transparent 45%, #4a4336 45%, #4a4336 58%,
              transparent 58%, transparent 68%, #4a4336 68%, #4a4336 80%, transparent 80%);
}

.chat-tabs, .cl-tabs { display: flex; gap: 2px; padding: 4px 5px 0; flex-wrap: wrap; }
.chat-tab, .cl-tab {
  padding: 3px 8px; border-radius: 4px 4px 0 0; border: 0;
  font-size: 10.5px; font-weight: 700; color: #8a8270; background: #191b21;
  cursor: var(--ko-cursor-grab, pointer);
}
.chat-tab.active, .cl-tab.active { background: #2b2f39; color: #f0e6cd; }
.cl-clear {
  margin-left: auto; background: none; border: 0; color: var(--text-dim);
  font-size: 13px; padding: 0 4px; cursor: var(--ko-cursor-grab, pointer);
}
.cl-clear:hover { color: #fff; }

.ko-scroll,
.srv-list, .srv-win,
.chars-body, .cc-panel, .cc-desc, .stage-info,
.screen { scrollbar-width: thin; scrollbar-color: #6a5a38 #12141a; }

.ko-scroll::-webkit-scrollbar,
.srv-list::-webkit-scrollbar, .srv-win::-webkit-scrollbar,
.chars-body::-webkit-scrollbar,
.cc-panel::-webkit-scrollbar, .cc-desc::-webkit-scrollbar,
.stage-info::-webkit-scrollbar,
.screen::-webkit-scrollbar { width: 11px; height: 11px; }

.ko-scroll::-webkit-scrollbar-track,
.srv-list::-webkit-scrollbar-track, .srv-win::-webkit-scrollbar-track,
.chars-body::-webkit-scrollbar-track,
.cc-panel::-webkit-scrollbar-track, .cc-desc::-webkit-scrollbar-track,
.stage-info::-webkit-scrollbar-track,
.screen::-webkit-scrollbar-track {
  background: #12141a; border-left: 1px solid #262a33; border-radius: 0 6px 6px 0;
}

.ko-scroll::-webkit-scrollbar-thumb,
.srv-list::-webkit-scrollbar-thumb, .srv-win::-webkit-scrollbar-thumb,
.chars-body::-webkit-scrollbar-thumb,
.cc-panel::-webkit-scrollbar-thumb, .cc-desc::-webkit-scrollbar-thumb,
.stage-info::-webkit-scrollbar-thumb,
.screen::-webkit-scrollbar-thumb {
  border-radius: 6px; border: 2px solid #12141a;
  background: linear-gradient(180deg, #9b8047, #6a5530 55%, #4c3d22);
  box-shadow: inset 0 1px 0 rgba(255,235,180,.35);
}

.ko-scroll::-webkit-scrollbar-thumb:hover,
.srv-list::-webkit-scrollbar-thumb:hover, .srv-win::-webkit-scrollbar-thumb:hover,
.chars-body::-webkit-scrollbar-thumb:hover,
.cc-panel::-webkit-scrollbar-thumb:hover, .cc-desc::-webkit-scrollbar-thumb:hover,
.stage-info::-webkit-scrollbar-thumb:hover,
.screen::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c9a75c, #8a6f3c 55%, #5f4c2a);
}

.hud-mainbar {
  left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 4px; padding: 6px 10px;
  background: linear-gradient(180deg, rgba(24,22,18,.88), rgba(10,10,12,.96));
  border-top: 1px solid #3a3428;
}
.bb-btn {
  flex: 1 1 0; min-width: 66px; padding: 7px 4px; border-radius: 6px;
  font-size: 12px; font-weight: 700; color: #cfc4a8;
  background: linear-gradient(180deg, #2a2822, #1a1916);
  border: 1px solid #453d2c;
  cursor: var(--ko-cursor-grab, pointer);
}
.bb-btn:hover { background: linear-gradient(180deg, #3a362c, #23211c); color: #fff; border-color: #6a5c40; }
.bb-btn.bb-exit { color: #ff8a7a; }
.bb-btn.bb-exit:hover { background: #2a1a1a; color: #ff6a5a; border-color: #7a3a3a; }
.bb-sep { width: 1px; align-self: stretch; background: #453d2c; margin: 0 6px; }

.chat-input-row { display: flex; gap: 6px; padding: 7px; border-top: 1px solid var(--border); background: rgba(0,0,0,.25); }
.chat-input-row select { width: auto; margin: 0; padding: 5px 7px; font-size: 12px; border-radius: 5px; }
.chat-input-row input { flex: 1; margin: 0; padding: 6px 10px; font-size: 12.5px; border-radius: 5px; }

.chat-log {
  height: 148px; overflow-y: auto; padding: 9px 11px;
  font-size: 12.5px; line-height: 1.55; scrollbar-width: thin;
}
.chat-log div { margin-bottom: 2px; word-break: break-word; }
.chat-log .c-system  { color: var(--gold); }
.chat-log .c-error   { color: #ff7a6a; }
.chat-log .c-info    { color: #8fd4ff; }
.chat-log .c-loot    { color: #9ff09a; }
.chat-log .c-exp     { color: #d8b45a; }
.chat-log .c-all     { color: var(--text); }
.chat-log .c-nation  { color: #7ad4a0; }
.chat-log .c-shout   { color: #ff9a5a; }
.chat-log .c-whisper { color: #d49aff; }

.chat-log .c-clan    { color: #6ee07a; }
.chat-log .c-party   { color: #8fd4ff; }
.chat-log b { font-weight: 700; }

.bb-buttons {
  display: flex; align-items: center; gap: 4px; padding: 6px 7px;
  border-top: 1px solid var(--border); background: rgba(0,0,0,.34); flex-wrap: wrap;
}
.bb-btn {
  flex: 1 1 0; min-width: 62px; padding: 6px 4px; border-radius: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--text-dim);
  background: #171b23; border: 1px solid var(--border-2);
  cursor: var(--ko-cursor-grab, pointer);
}
.bb-btn:hover { background: #232935; color: #fff; border-color: #4a5265; }
.bb-btn.active { background: #2a2f3c; color: var(--gold); border-color: var(--gold); }
.bb-btn.bb-exit { color: #ff8a7a; }
.bb-btn.bb-exit:hover { background: #2a1a1a; color: #ff6a5a; border-color: #7a3a3a; }
.bb-sep { width: 1px; align-self: stretch; background: var(--border-2); margin: 0 3px; }

.panel-float {
  position: absolute; z-index: 20; top: 70px; right: 372px;
  width: 330px; max-height: calc(100vh - 230px);
  background: var(--panel-2); border: 1px solid var(--border-2);
  border-radius: 11px; box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.panel-float > header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 13.5px; background: rgba(0,0,0,.3);
  cursor: move;
}
.panel-float .x { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--text-dim); padding: 0 4px; }
.panel-float .x:hover { color: #fff; }
.panel-float > div { overflow-y: auto; padding: 13px; scrollbar-width: thin; scrollbar-color: #6a5a38 #12141a; }
.panel-float > div::-webkit-scrollbar,
.shop-grid::-webkit-scrollbar, .clan-members::-webkit-scrollbar, .shop-list::-webkit-scrollbar { width: 11px; }
.panel-float > div::-webkit-scrollbar-track,
.shop-grid::-webkit-scrollbar-track, .clan-members::-webkit-scrollbar-track, .shop-list::-webkit-scrollbar-track {
  background: #12141a; border-left: 1px solid #262a33;
}
.panel-float > div::-webkit-scrollbar-thumb,
.shop-grid::-webkit-scrollbar-thumb, .clan-members::-webkit-scrollbar-thumb, .shop-list::-webkit-scrollbar-thumb {
  border-radius: 6px; border: 2px solid #12141a;
  background: linear-gradient(180deg, #9b8047, #6a5530 55%, #4c3d22);
  box-shadow: inset 0 1px 0 rgba(255,235,180,.35);
}

.panel-inv { width: 392px; right: 16px; }
.inv-wrap { padding: 12px !important; }
.inv-top { display: grid; grid-template-columns: 1fr 154px; gap: 11px; margin-bottom: 11px; }

.inv-doll {
  position: relative; border-radius: 9px; overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 15%, rgba(120,150,190,.16), transparent 70%),
    linear-gradient(180deg, #11141a, #0a0c10);
  border: 1px solid var(--border); min-height: 250px;
}
.inv-doll canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; cursor: grab; }
.inv-doll canvas:active { cursor: grabbing; }
.doll-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 9px;
  background: linear-gradient(180deg, transparent, rgba(6,7,10,.92));
  display: flex; flex-direction: column; gap: 1px; pointer-events: none;
}
.doll-name b { font-size: 13px; }
.doll-name span { font-size: 10.5px; color: var(--text-dim); }

.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; align-content: start; }
.bag-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }

.slot {
  position: relative; aspect-ratio: 1; border-radius: 6px;
  background: #0d0f13; border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 17px; cursor: pointer; transition: .1s;
  overflow: hidden;
}
.slot img { width: 100%; height: 100%; display: block; pointer-events: none; image-rendering: -webkit-optimize-contrast; }
.slot:hover { border-color: var(--border-2); background: #16191f; }
.slot.equip-slot { background: #101319; }
.slot.filled { background: #191d24; }
.slot.g1 { box-shadow: inset 0 0 0 1px #4a8ad4; }
.slot.g2 { box-shadow: inset 0 0 0 1px #a05ad4; }
.slot.g3 { box-shadow: inset 0 0 0 1px #d4a03a; }
.slot.blank { background: transparent; border-color: transparent; cursor: default; }
.slot.drag-over { border-color: var(--gold); background: #23201a; }
.slot.dragging { opacity: .4; }
.slot .qty { position: absolute; right: 2px; bottom: 1px; font-size: 9.5px; font-weight: 800; text-shadow: 0 1px 3px #000; }
.slot .plus { position: absolute; left: 2px; top: 1px; font-size: 9px; font-weight: 800; color: var(--gold); text-shadow: 0 1px 3px #000; }
.slot .lbl { position: absolute; inset: 0; display: grid; place-items: center; font-size: 8.5px; color: #474a52; letter-spacing: .2px; }

.inv-bar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 2px 10px; font-size: 12px; color: var(--text-dim);
  border-top: 1px solid var(--border); margin-bottom: 9px;
}
.inv-gold b { color: var(--gold); font-size: 14.5px; font-variant-numeric: tabular-nums; }

#gold-delta {
  margin-left: 7px; font-weight: 700; font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  opacity: 0; transform: translateY(3px);
  transition: opacity .22s ease, transform .22s ease;
}
#gold-delta.show { opacity: 1; transform: translateY(0); }
#gold-delta.bad  { color: #ff5b4a; }
#gold-delta.good { color: #5be08a; }
.inv-slots { font-variant-numeric: tabular-nums; }
.inv-hint { margin-top: 10px; font-size: 10.5px; line-height: 1.6; color: #6b6d75; }

.panel-loot { width: 232px; top: 130px; right: auto; left: 50%; transform: translateX(-50%); }
.loot-wrap { padding: 10px !important; }

.loot-timer {
  position: relative; height: 3px; border-radius: 2px; overflow: visible;
  background: rgba(255,255,255,.07); margin: 2px 0 13px;
}
.loot-timer i {
  display: block; height: 100%; width: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #d8b45a, #c8642a);
  transition: width .2s linear;
}
.loot-timer b {
  position: absolute; right: 0; bottom: 6px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .2px;
  color: #6b6d75; font-variant-numeric: tabular-nums;
}
.loot-timer.urgent i { background: linear-gradient(90deg, #e04040, #8a1414); }
.loot-timer.urgent b { color: #e06a5a; }
@keyframes lootPulse { 0% { opacity: 1; } 100% { opacity: .55; } }

.loot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.loot-slot {
  position: relative; aspect-ratio: 1; border-radius: 6px;
  background: #0d0f13; border: 1px solid var(--border);
  display: grid; place-items: center; cursor: pointer; transition: .12s; overflow: hidden;
}
.loot-slot.empty { cursor: default; opacity: .3; }
.loot-slot.filled:hover { border-color: var(--gold); background: #1b1a14; transform: translateY(-1px); }

.loot-slot.coin { background: #17130a; border-color: #4a3c14; align-content: center; gap: 3px; }
.loot-slot.coin.filled:hover { background: #221a0b; border-color: var(--gold); }
.loot-slot.coin .lg-coin {
  width: 17px; height: 17px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a0, #d4af37 60%, #8a6a14);
  box-shadow: 0 0 7px rgba(216,180,90,.45);
}
.loot-slot.coin .lg-amount {
  font-size: 10.5px; font-weight: 800; line-height: 1;
  color: var(--gold); font-variant-numeric: tabular-nums;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.loot-slot img { width: 100%; height: 100%; display: block; pointer-events: none; }
.loot-slot .qty { position: absolute; right: 3px; bottom: 2px; font-size: 10px; font-weight: 800; text-shadow: 0 1px 3px #000; }
.loot-slot .plus { position: absolute; left: 3px; top: 2px; font-size: 9.5px; font-weight: 800; color: var(--gold); text-shadow: 0 1px 3px #000; }
.loot-slot.g1 { box-shadow: inset 0 0 0 1px #4a8ad4; }
.loot-slot.g2 { box-shadow: inset 0 0 0 1px #a05ad4; }
.loot-slot.g3 { box-shadow: inset 0 0 0 1px #d4a03a; }

.confirm-host {
  position: absolute; inset: 0; z-index: 80;
  display: grid; place-items: center; background: rgba(0,0,0,.62);
}
.confirm-box {
  width: min(360px, 88vw); padding: 22px; border-radius: 11px; text-align: center;
  background: var(--panel-2); border: 1px solid var(--border-2); box-shadow: var(--shadow);
}
.confirm-box h3 { font-size: 15px; margin-bottom: 9px; }
.confirm-box p { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 18px; }
.confirm-actions { display: flex; gap: 9px; }
.confirm-actions .btn { flex: 1; }

.cfm-item { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.cfm-item .from { color: var(--text-dim); }
.cfm-item .to { color: #ffd34a; font-weight: 700; }
.cfm-rate { font-size: 12.5px; color: var(--text-dim); margin-bottom: 12px; }
.cfm-rate b { color: #6ad48a; }
.cfm-warn { font-size: 12.5px; line-height: 1.6; }
.cfm-warn b { color: #ff6a4a; }
.cfm-input {
  width: 100%; margin-top: 12px; padding: 8px 10px; border-radius: 6px;
  font-size: 13px; text-align: center;
}

.cc-group { margin-bottom: 14px; }

.cc-group[hidden] { display: none; }
.cc-group.cc-grow { flex: 1; display: flex; flex-direction: column; }
.cc-label {
  display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-dim); margin-bottom: 7px; font-weight: 700;
}
.cc-list { display: flex; flex-direction: column; gap: 6px; }
.cc-jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cc-opt {
  padding: 9px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600;
  background: #14161c; border: 1px solid var(--border-2); color: var(--text);
  text-align: center;
}
.cc-opt:hover:not(:disabled) { background: #1b1f27; }
.cc-opt.selected { border-color: var(--gold); background: #221d14; color: var(--gold); }
.cc-opt:disabled { opacity: .35; }
.cc-opt .ci { display: block; font-size: 18px; margin-bottom: 3px; }

.cc-sex { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cc-desc {
  flex: 1; background: #101218; border: 1px solid var(--border); border-radius: 7px;
  padding: 10px; font-size: 12px; line-height: 1.65; min-height: 90px; overflow: auto;
}
.cc-dim { color: var(--text-dim); font-size: 11.5px; }

.cc-spin { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12.5px; }
.cc-spin > span { flex: 1; color: var(--text-dim); }
.cc-spin > b { min-width: 34px; text-align: center; font-weight: 700; }
.cc-spin button {
  width: 24px; height: 24px; border-radius: 5px; line-height: 1; font-size: 11px;
  background: #1e222b; border: 1px solid var(--border-2); color: var(--text);
}
.cc-spin button:disabled { opacity: .28; }
.cc-bonus {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-dim);
}
.cc-bonus b { color: var(--gold); font-size: 14px; }
.cc-actions { margin-top: auto; display: grid; gap: 7px; }
.cc-namebar { display: flex; align-items: center; gap: 9px; }
.cc-namebar label { font-size: 11.5px; color: var(--text-dim); }
.cc-namebar input { flex: 1; }

.panel-charinfo { width: 380px; left: 16px; right: auto; }
.ci-tabs { display: flex; gap: 5px; padding: 0 12px 8px; }
.ci-tab {
  flex: 1; padding: 6px; font-size: 11.5px; border-radius: 5px;
  background: #14161c; border: 1px solid var(--border-2); color: var(--text-dim);
}
.ci-tab.active { background: #221d14; border-color: var(--gold); color: var(--gold); }
.ci-head { padding: 10px; background: #101218; border-radius: 7px; margin-bottom: 10px; }
.ci-hrow { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 6px; font-size: 12px; margin-bottom: 5px; }
.ci-hrow span { color: var(--text-dim); }
.ci-hrow b { font-weight: 700; }
.ci-exp { position: relative; height: 13px; background: #0a0c10; border-radius: 7px; overflow: hidden; margin-top: 4px; }
.ci-exp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3f7ad4, #7ab4ff); }
.ci-exp em {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 10px; font-style: normal; text-shadow: 0 1px 2px #000;
}
.ci-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ci-row { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 12.5px; }
.ci-row > span { flex: 1; color: var(--text-dim); }
.ci-row > b { font-weight: 700; }
.ci-row.wide > span { flex: 1; }
.ci-row.stat > span { font-size: 11.5px; }

.ci-row.stat > i, .ci-row.wide > i, .ci-res i {
  flex: 0 0 34px; text-align: right; font-style: normal;
  font-size: 11px; font-weight: 700; color: #8fd4a0;
}
.ci-row.stat > i.eksi, .ci-row.wide > i.eksi, .ci-res i.eksi { color: #e0864a; }
.ci-row button {
  width: 22px; height: 22px; border-radius: 5px; font-size: 10px; line-height: 1;
  background: #1e222b; border: 1px solid var(--border-2); color: var(--green);
}
.ci-row button:disabled { opacity: .28; }
.ci-points { font-size: 11.5px; color: var(--gold); margin-bottom: 7px; font-weight: 600; }
.ci-sub {
  margin: 12px 0 7px; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-dim); font-weight: 700;
  border-top: 1px solid var(--border); padding-top: 10px;
}
.ci-res { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.ci-res > div { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.ci-res span { flex: 1; color: var(--text-dim); }
.ci-res b { font-weight: 700; }

.panel-skilltree { width: 400px; }
.sk-top { display: flex; align-items: center; gap: 8px; padding: 0 12px 8px; }
.sk-preset {
  padding: 6px 12px; font-size: 11.5px; border-radius: 5px;
  background: #14161c; border: 1px solid var(--border-2); color: var(--text);
}
.sk-preset:hover { background: #1b1f27; }
.sk-points { flex: 1; text-align: right; font-size: 12px; color: var(--text-dim); }
.sk-points b { color: var(--gold); font-size: 15px; margin-left: 5px; }

.sk-masteries {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px;
  padding: 9px 12px; background: #101218; border-radius: 7px; margin: 0 12px 9px;
}
.sk-m { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.sk-m > span { flex: 1; color: var(--text-dim); }
.sk-m > b { min-width: 26px; text-align: right; font-weight: 700; }
.sk-m.locked { opacity: .4; }
.sk-m button {
  width: 21px; height: 21px; border-radius: 4px; font-size: 9px; line-height: 1;
  background: #1e222b; border: 1px solid var(--border-2); color: var(--green);
}
.sk-m button:disabled { opacity: .28; }

.sk-m button.sk-many { width: 26px; color: var(--gold); font-size: 8px; letter-spacing: -1px; }

.sk-tabs { display: flex; gap: 3px; padding: 0 12px 8px; }
.sk-tab {
  flex: 1; padding: 6px 2px; font-size: 10.5px; border-radius: 5px 5px 0 0;
  background: #14161c; border: 1px solid var(--border-2); border-bottom: none;
  color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sk-tab.active { background: #221d14; border-color: var(--gold); color: var(--gold); }

.sk-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 0 12px; min-height: 250px; align-content: start;
}
.sk-cell {
  display: flex; align-items: center; gap: 8px; padding: 7px;
  border-radius: 6px; background: #14161c; border: 1px solid transparent;
}
.sk-cell.locked { opacity: .38; }
.sk-cell.passive { background: #17141c; }
.sk-cell[draggable=true] { cursor: grab; }
.sk-cell[draggable=true]:hover { background: #1b1f27; border-color: var(--border-2); }
.sk-ic { font-size: 18px; width: 24px; text-align: center; flex: none; }
.sk-tx { min-width: 0; }
.sk-tx b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-tx small { font-size: 10px; color: var(--gold); }
.sk-cell.passive .sk-tx small { color: #9f8ad4; }
.sk-empty { grid-column: 1 / -1; text-align: center; color: var(--text-dim); font-size: 12px; padding: 30px 0; }

.sk-foot { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 12px 2px; font-size: 12px; }
.sk-page {
  width: 26px; height: 24px; border-radius: 5px; font-size: 10px;
  background: #1e222b; border: 1px solid var(--border-2); color: var(--text);
}
.sk-page:disabled { opacity: .28; }

.npc-tabs { display: flex; gap: 4px; padding: 9px 13px 0; }
.npc-tab {
  flex: 1; padding: 7px; border-radius: 6px 6px 0 0; border: 0;
  background: #14161c; color: var(--text-dim); font-size: 12.5px; font-weight: 600;
}
.npc-tab.active { background: #1e222b; color: #fff; }

.hud-buffs {
  position: absolute; left: 14px; top: 132px; z-index: 8;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 5px; border-radius: 8px;
  background: rgba(14,16,22,.62); border: 1px solid var(--border-2);
  pointer-events: auto;
}
.hud-buffs.empty { display: none; }
.hud-buffs .bb-grip {
  color: #5a6273; font-size: 13px; line-height: 1; padding: 0 1px;
  cursor: var(--ko-cursor-grab, move); user-select: none;
}

.bb-rows { display: flex; flex-direction: column; gap: 4px; }
.bb-list { display: flex; gap: 4px; flex-wrap: wrap; max-width: 340px; }

.bb-list:empty { display: none; }

.bb-debuffs { border-top: 1px solid #4a2530; padding-top: 4px; }
.bb-debuffs:empty { border-top: 0; padding-top: 0; }
.bb-item {
  position: relative; width: 34px; height: 34px; border-radius: 6px;
  display: grid; place-items: center; font-size: 16px;
  background: #171b23; border: 1px solid #3a6a4a;
  cursor: var(--ko-cursor-grab, pointer);
}
.bb-item.curse { border-color: #7a3a4a; background: #201419; }
.bb-item .bb-time {
  position: absolute; left: 0; right: 0; bottom: -1px;
  font-size: 9.5px; font-weight: 700; text-align: center; color: #cfd6e4;
  text-shadow: 0 1px 2px #000;
}
.bb-item.soon { animation: bb-blink .9s steps(2, end) infinite; }
@keyframes bb-blink { 50% { opacity: .45; } }

.panel-npc { width: 384px; right: 424px; }
.shop-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  max-height: 46vh; overflow-y: auto; padding-right: 3px;
}
.shop-cell {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 4px 5px; border-radius: 7px;
  background: #14161c; border: 1px solid var(--border-2);
  cursor: var(--ko-cursor-grab, pointer);
}
.shop-cell:hover { background: #1e232d; border-color: #4a5265; }
.shop-cell .sc-name {
  width: 100%; text-align: center; font-size: 10.5px; line-height: 1.25; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-cell .sc-price { font-size: 11px; font-weight: 700; color: var(--gold); }
.shop-cell .qty {
  position: absolute; right: 4px; top: 4px; font-size: 10px; font-weight: 700;
  padding: 0 3px; border-radius: 3px; background: rgba(0,0,0,.72);
}
.shop-cell .plus {
  position: absolute; left: 4px; top: 4px; font-size: 10px; font-weight: 700; color: #ffd34a;
  text-shadow: 0 1px 2px #000;
}
.shop-cell.g1 { border-color: #4a7ad4; }
.shop-cell.g2 { border-color: #b48ad4; }
.shop-cell.g3 { border-color: #d4a04a; }
.shop-empty { grid-column: 1 / -1; color: var(--text-dim); font-size: 12.5px; padding: 14px 4px; text-align: center; }
.shop-hint { margin-top: 8px; font-size: 11px; line-height: 1.6; color: var(--text-dim); }
.shop-hint b { color: var(--text); }

.panel-shop { width: 392px; right: 424px; }
.shop-wrap { padding: 12px !important; }
.shop-namerow { display: block; font-size: 11.5px; color: var(--text-dim); margin-bottom: 10px; }
.shop-namerow input { margin-top: 5px; padding: 7px 9px; font-size: 12.5px; border-radius: 6px; }
.shop-list {
  display: flex; flex-direction: column; gap: 5px;
  min-height: 92px; max-height: 40vh; overflow-y: auto;
  padding: 6px; border-radius: 8px;
  background: #101219; border: 1px dashed var(--border-2);
}
.shop-list.drag-over { border-color: var(--gold); background: #191a12; }
.shop-list .sl-empty { color: var(--text-dim); font-size: 12px; text-align: center; padding: 26px 8px; }
.shop-row2 {
  display: flex; align-items: center; gap: 8px; padding: 5px 6px;
  border-radius: 6px; background: #171b23; border: 1px solid var(--border-2);
}
.shop-row2 .sr-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.shop-row2 .sr-name { flex: 1; min-width: 0; font-size: 12px; }
.shop-row2 .sr-name small { display: block; color: var(--text-dim); font-size: 10.5px; }
.shop-row2 input {
  width: 92px; margin: 0; padding: 5px 7px; font-size: 12px; border-radius: 5px; text-align: right;
}
.shop-row2 .sr-del {
  width: 24px; height: 24px; border: 0; border-radius: 5px; flex: none;
  background: #2a1e22; color: #ff7a6a; font-size: 15px; line-height: 1;
  cursor: var(--ko-cursor-grab, pointer);
}
.shop-actions { display: flex; gap: 8px; margin-top: 10px; }
.shop-actions .btn { flex: 1; }

.shop-idle { position: relative; height: 5px; border-radius: 3px; background: #14161c; margin-bottom: 9px; }
.shop-idle i {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px;
  background: linear-gradient(90deg, #d4a04a, #ffd34a); transition: width .25s linear;
}
.shop-idle span {
  position: absolute; right: 2px; top: -15px; font-size: 10px; color: var(--text-dim);
}
.shop-cell .sc-mine { color: #6ad48a; }

.panel-bank { width: 384px; right: 424px; }

body.ext-acik .panel-npc,
body.ext-acik .panel-shop,
body.ext-acik .panel-bank { right: 656px; }
.bank-wrap { padding: 12px !important; }
.bank-sub { margin-left: auto; margin-right: 10px; font-size: 10.5px; font-weight: 500; color: var(--text-dim); }
.bank-pages { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.bank-page {
  position: relative; min-width: 30px; padding: 4px 7px; border-radius: 5px;
  font-size: 11.5px; font-weight: 700; color: var(--text-dim);
  background: #14161c; border: 1px solid var(--border-2);
  cursor: var(--ko-cursor-grab, pointer);
}
.bank-page.active { background: #2a2f3c; color: #fff; border-color: var(--gold); }
.bank-page i {
  position: absolute; top: -4px; right: -4px; font-style: normal;
  font-size: 9px; font-weight: 800; padding: 0 3px; border-radius: 6px;
  background: var(--gold); color: #14161c;
}
.bank-grid { grid-template-columns: repeat(7, 1fr) !important; }
.bank-grid.drag-over { outline: 1px dashed var(--gold); outline-offset: 3px; }

.panel-clan { width: 340px; }
.clan-wrap { padding: 12px !important; }
.clan-head {
  padding: 9px 11px; border-radius: 8px; margin-bottom: 9px;
  background: #14161c; border: 1px solid var(--border-2); font-size: 12px;
}
.clan-head .ch-name { font-size: 14px; font-weight: 700; color: var(--gold); }
.clan-head .ch-line { color: var(--text-dim); margin-top: 3px; }
.clan-members { max-height: 32vh; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.clan-row {
  display: flex; align-items: center; gap: 7px; padding: 5px 8px;
  border-radius: 5px; background: #14161c; font-size: 12px;
}
.clan-row .cm-dot { width: 7px; height: 7px; border-radius: 50%; background: #3a4050; flex: none; }
.clan-row.online .cm-dot { background: #6ad48a; box-shadow: 0 0 5px #6ad48a; }
.clan-row .cm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clan-row.online .cm-name { color: var(--text); }
.clan-row:not(.online) .cm-name { color: var(--text-dim); }
.clan-row .cm-lv { font-size: 11px; color: var(--text-dim); }
.clan-row .cm-lead { font-size: 10px; font-weight: 800; color: var(--gold); }
.clan-row .cm-kick {
  width: 20px; height: 20px; border: 0; border-radius: 4px; line-height: 1;
  background: #2a1e22; color: #ff7a6a; font-size: 13px; cursor: var(--ko-cursor-grab, pointer);
}
.clan-actions { display: flex; gap: 6px; margin: 10px 0 8px; }
.clan-actions input { flex: 1; margin: 0; padding: 6px 9px; font-size: 12px; border-radius: 5px; }

.panel-clanshop { width: 330px; }
.clanshop-wrap { padding: 12px !important; }
.cs-preview {
  height: 190px; border-radius: 8px; margin-bottom: 11px;
  background: linear-gradient(180deg, #171b24, #0e1015); border: 1px solid var(--border-2);
}
#cape-preview { width: 100%; height: 100%; display: block; }
.cs-label { font-size: 11px; color: var(--text-dim); margin: 10px 0 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }

.cs-symbols {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 5px; max-height: 232px; overflow-y: auto; padding-right: 2px;
}
.cs-sym {
  padding: 6px 3px 5px; border-radius: 6px; font-size: 10.5px; text-align: center;
  background: #14161c; border: 1px solid var(--border-2); color: var(--text-dim);
  cursor: var(--ko-cursor-grab, pointer);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: border-color .12s, color .12s, background .12s;
}
.cs-sym:hover:not(:disabled) { border-color: #4a5164; color: #d7dbe3; }

.cs-sym-i {
  width: 34px; height: 34px; background-size: contain;
  background-repeat: no-repeat; background-position: center;
}
.cs-sym-n { line-height: 1.15; }
.cs-sym.active { border-color: var(--gold); color: #fff; background: #26221a; }

.cs-sym-ozel { border-style: dashed; }
.cs-sym-ozel.active { border-style: solid; }
.cs-sym-artı {
  width: 34px; height: 34px; display: grid; place-items: center;
  font-size: 22px; line-height: 1; color: var(--gold);
}

.cd-overlay {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 20px;
  background: rgba(6, 7, 10, .74);
}
.cd-box {
  width: min(680px, 100%); max-height: 92vh; overflow: auto;
  background: var(--panel, #12141a); border: 1px solid var(--border-2);
  border-radius: 12px; box-shadow: 0 18px 60px rgba(0,0,0,.6);
}
.cd-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--border-2);
}
.cd-head b { font-size: 15px; }
.cd-x {
  background: none; border: 0; color: var(--text-dim); font-size: 16px;
  cursor: var(--ko-cursor-grab, pointer); padding: 2px 6px;
}
.cd-x:hover { color: #fff; }
.cd-body { display: grid; grid-template-columns: 240px 1fr; gap: 14px; padding: 14px; }
@media (max-width: 620px) { .cd-body { grid-template-columns: 1fr; } }
.cd-tuval {
  width: 240px; height: 240px; max-width: 100%;
  border-radius: 8px; border: 1px solid var(--border-2); display: block;
}
.cd-not { margin: 8px 0 0; font-size: 11.5px; color: var(--text-dim); }
.cd-liste { display: flex; flex-direction: column; gap: 3px; max-height: 132px; overflow-y: auto; }
.cd-p {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 5px 8px; border-radius: 6px; font-size: 12px;
  background: #14161c; border: 1px solid var(--border-2); color: var(--text-dim);
  cursor: var(--ko-cursor-grab, pointer);
}
.cd-p.on { border-color: var(--gold); color: #fff; background: #221d14; }
.cd-sil { background: none; border: 0; color: #8b93a3; cursor: var(--ko-cursor-grab, pointer); }
.cd-sil:hover:not(:disabled) { color: #e05a5a; }
.cd-sil:disabled { opacity: .3; }
.cd-ekle {
  margin-top: 6px; width: 100%; padding: 6px; border-radius: 6px; font-size: 12px;
  background: #14161c; border: 1px dashed var(--border-2); color: var(--text-dim);
  cursor: var(--ko-cursor-grab, pointer);
}
.cd-ekle:hover { border-color: var(--gold); color: #fff; }
.cd-sat { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
.cd-e { flex: 0 0 68px; font-size: 11.5px; color: var(--text-dim); }
.cd-sat input[type=range] { flex: 1; min-width: 0; accent-color: var(--gold); }
.cd-sec {
  flex: 1; padding: 4px 6px; border-radius: 6px; font-size: 12px;
  background: #14161c; border: 1px solid var(--border-2); color: var(--text);
}
.cd-sat-onay { gap: 6px; font-size: 11.5px; color: var(--text-dim); }
.cd-sat-onay label { cursor: var(--ko-cursor-grab, pointer); }
.cd-z {
  padding: 3px 10px; border-radius: 6px; font-size: 11.5px;
  background: #14161c; border: 1px solid var(--border-2); color: var(--text-dim);
  cursor: var(--ko-cursor-grab, pointer);
}
.cd-z:hover { border-color: var(--gold); color: #fff; }
.cd-zn { font-size: 11.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.cd-alt {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 12px 14px; border-top: 1px solid var(--border-2);
}
.cs-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-color {
  width: 26px; height: 26px; border-radius: 6px; border: 2px solid transparent;
  cursor: var(--ko-cursor-grab, pointer);
}
.cs-color.active { border-color: #fff; }

.death-overlay {
  position: absolute; inset: 0; z-index: 40;
  display: grid; place-content: center; justify-items: center; gap: 16px;
  background: radial-gradient(ellipse at center, rgba(80,0,0,.35), rgba(0,0,0,.86));
  backdrop-filter: grayscale(1) blur(2px);
}
.death-overlay h2 { font-size: 46px; color: var(--red); letter-spacing: 5px; text-shadow: 0 4px 24px rgba(212,34,34,.5); }
.death-overlay p { color: var(--text-dim); font-size: 14px; }

.levelup {
  position: absolute; z-index: 40; top: 26%; left: 50%; transform: translateX(-50%);
  text-align: center; pointer-events: none;
  animation: lvlpop 2.6s ease-out forwards;
}
.levelup span { display: block; font-size: 21px; font-weight: 800; color: var(--gold); letter-spacing: 3px; text-shadow: 0 2px 18px rgba(216,180,90,.7); }
.levelup b { display: block; font-size: 66px; color: #fff; text-shadow: 0 4px 26px rgba(216,180,90,.85); }
@keyframes lvlpop {
  0%   { opacity: 0; transform: translateX(-50%) scale(.6); }
  14%  { opacity: 1; transform: translateX(-50%) scale(1.1); }
  24%  { transform: translateX(-50%) scale(1); }
  78%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-40px) scale(1); }
}

.toasts {
  position: absolute; z-index: 45; top: 96px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none;
}
.toast {
  padding: 8px 16px; border-radius: 7px; font-size: 13px; font-weight: 600;
  background: rgba(14,16,20,.94); border: 1px solid var(--border-2);
  box-shadow: var(--shadow); animation: toastIn .2s ease-out;
}
.toast.error { border-color: #6a2626; color: #ff9a8a; }
.toast.loot  { border-color: #2a6a2a; color: #9ff09a; }
.toast.info  { color: #9fd8ff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.dmg-flash {
  position: absolute; inset: 0; z-index: 30; pointer-events: none;
  box-shadow: inset 0 0 140px rgba(200, 20, 20, .55);
  opacity: 0; transition: opacity .12s;
}
.dmg-flash.on { opacity: 1; }

@media (max-width: 760px) {
  .hud-chat { width: 62vw; }
  .chat-log { height: 100px; }
  .bars { width: 150px; }
  .hud-minimap { transform: scale(.8); transform-origin: top right; }
}

.ko-ui .panel-float,
.ko-ui .hud-box,
.ko-ui .hud-self,
.ko-ui .hud-skillbar,
.ko-ui .hud-target,
.ko-ui .hud-minimap,
.ko-ui .whisper-win,
.ko-ui .store-box,
.ko-ui .sup-box {
  border: 0; border-radius: 8px; overflow: visible; padding: 5px;
  background: linear-gradient(180deg, #55604f 0%, var(--ko-plate-1) 12%, #333b30 88%, #232a20 100%);
  box-shadow:
    inset 0 0 0 1px var(--ko-frame-lit),
    inset 0 0 0 3px var(--ko-frame),
    inset 0 0 0 4px var(--ko-gold),
    0 20px 48px rgba(0,0,0,.62);
}
.ko-ui .hud-box { padding: 4px; }

.ko-ui .panel-float > header {
  position: relative; flex: 0 0 34px; height: 34px; padding: 0 30px;
  
  justify-content: center; border-bottom: 0; background: none;
  font-family: var(--ko-display); font-size: 13.5px; font-weight: 700; letter-spacing: .6px;
  color: var(--ko-btn-ink); text-shadow: 0 1px 0 #000, 0 0 10px rgba(226,178,70,.3);
  text-align: center;
}

.ko-ui .panel-float > header > span:first-child,
.ko-ui .panel-float > header > b:first-child { flex: 1; text-align: center; }
.ko-ui .panel-float > header::before {
  content: ''; position: absolute; left: 22px; right: 22px; top: 4px; bottom: 4px;
  border-radius: 11px; z-index: -1;
  background: linear-gradient(180deg, var(--ko-plate-1), var(--ko-plate-2));
  box-shadow: inset 0 0 0 1px var(--ko-gold), inset 0 1px 0 rgba(255,236,170,.18);
}

.ko-ui .panel-float .x {
  position: absolute; top: -9px; right: -9px; width: 24px; height: 24px;
  border-radius: 50%; font-size: 14px; line-height: 22px; padding: 0; z-index: 3;
  color: #ffe0b0; font-weight: 700; border: 0;
  background: radial-gradient(circle at 35% 30%, #d05a3a, #8e2216 65%, #4d1009);
  box-shadow: inset 0 0 0 1px #e8b672, 0 2px 6px rgba(0,0,0,.6);
}
.ko-ui .panel-float .x:hover { color: #fff; filter: brightness(1.18); }

.ko-ui .panel-float { color: var(--ko-ink); }
.ko-ui .panel-float::after {
  content: ''; position: absolute; left: 5px; right: 5px; top: 39px; bottom: 5px;
  border-radius: 4px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--ko-well-1), var(--ko-well-2));
  box-shadow: inset 0 0 0 1px var(--ko-gold), inset 0 3px 12px rgba(0,0,0,.5);
}

.ko-ui .panel-float > header,
.ko-ui .panel-float > div,
.ko-ui .panel-float > p,
.ko-ui .panel-float > section { position: relative; z-index: 1; }

.ko-ui .panel-float > button { z-index: 2; }
.ko-ui .panel-float > div { background: none; }

.ko-ui .box-head,
.ko-ui .ww-head,
.ko-ui .st-bas,
.ko-ui .sup-head {
  border-bottom: 0; border-radius: 6px; margin-bottom: 3px; padding: 4px 6px;
  background: linear-gradient(180deg, var(--ko-plate-1), var(--ko-plate-2));
  box-shadow: inset 0 0 0 1px var(--ko-gold), inset 0 1px 0 rgba(255,236,170,.16);
}
.ko-ui .box-head .bh-title {
  font-family: var(--ko-display); font-size: 11px; letter-spacing: .7px;
  color: var(--ko-btn-ink); text-shadow: 0 1px 0 #000;
}
.ko-ui .box-head .bh-grip { color: var(--ko-gold-lit); opacity: .7; }
.ko-ui .box-head .bh-btn { color: #d8c9a4; border-radius: 3px; }
.ko-ui .box-head .bh-btn:hover { background: rgba(0,0,0,.45); color: #fff; }
.ko-ui .box-body,
.ko-ui .st-govde,
.ko-ui .sup-body {
  border-radius: 4px; overflow: hidden;
  background: linear-gradient(180deg, var(--ko-well-1), var(--ko-well-2));
  box-shadow: inset 0 0 0 1px var(--ko-gold), inset 0 3px 12px rgba(0,0,0,.5);
}
.ko-ui .chat-tabs, .ko-ui .cl-tabs { padding: 4px 5px 2px; }
.ko-ui .chat-tab, .ko-ui .cl-tab, .ko-ui .st-tab, .ko-ui .sup-tab {
  border-radius: 3px; font-family: var(--ko-display); font-size: 10.5px;
  color: #9a9382; background: linear-gradient(180deg, #33322b, #232219);
  box-shadow: inset 0 0 0 1px #55503f;
}
.ko-ui .chat-tab.active, .ko-ui .cl-tab.active,
.ko-ui .st-tab.on, .ko-ui .sup-tab.active {
  color: var(--ko-btn-ink); background: linear-gradient(180deg, var(--ko-plate-1), var(--ko-plate-2));
  box-shadow: inset 0 0 0 1px var(--ko-gold);
}
.ko-ui .chat-input-row { border-top: 0; background: none; padding: 6px 5px 4px; }

.ko-ui .btn, .ko-btn, .ko-ui .bb-btn, .ko-ui .hud-btn, .ko-ui .lm-dug {
  border-radius: 3px; border: 1px solid var(--ko-gold-lit);
  font-family: var(--ko-display); font-weight: 700; letter-spacing: .3px;
  color: var(--ko-btn-ink); text-shadow: 0 1px 0 rgba(0,0,0,.75);
  background: linear-gradient(180deg, var(--ko-btn-1) 0%, var(--ko-btn-2) 48%, var(--ko-btn-3) 100%);
  box-shadow: inset 0 1px 0 rgba(255,214,150,.28), inset 0 -2px 6px rgba(0,0,0,.45);
  transition: filter .1s, transform .06s;
}
.ko-ui .btn:hover:not(:disabled), .ko-btn:hover:not(:disabled),
.ko-ui .bb-btn:hover, .ko-ui .hud-btn:hover, .ko-ui .lm-dug:hover {
  filter: brightness(1.2); background: linear-gradient(180deg, var(--ko-btn-1) 0%, var(--ko-btn-2) 48%, var(--ko-btn-3) 100%);
  border-color: var(--ko-gold-lit); color: var(--ko-btn-ink);
}
.ko-ui .btn:active:not(:disabled), .ko-btn:active:not(:disabled), .ko-ui .bb-btn:active {
  transform: translateY(1px); box-shadow: inset 0 2px 7px rgba(0,0,0,.6);
}
.ko-ui .btn:disabled, .ko-btn:disabled {
  filter: grayscale(.75) brightness(.62); opacity: 1;
  cursor: var(--ko-cursor-blocked, not-allowed);
}

.ko-ui .btn-ghost, .ko-ui .bb-btn, .ko-ui .hud-btn, .ko-ui .lm-dug:not(.lm-ana) {
  background: linear-gradient(180deg, #4a4740 0%, #3b3931 48%, #2a2823 100%);
  border-color: var(--ko-gold); color: #d8c9a4;
}
.ko-ui .btn-ghost:hover:not(:disabled), .ko-ui .bb-btn:hover, .ko-ui .hud-btn:hover,
.ko-ui .lm-dug:not(.lm-ana):hover {
  background: linear-gradient(180deg, #5a564c 0%, #46433a 48%, #332f28 100%);
  color: var(--ko-btn-ink);
}
.ko-ui .bb-btn.active {
  background: linear-gradient(180deg, var(--ko-btn-1), var(--ko-btn-2) 55%, var(--ko-btn-3));
  color: var(--ko-btn-ink); border-color: var(--ko-gold-lit);
}
.ko-ui .btn-danger {
  background: linear-gradient(180deg, #7e1a14, #5c110c 55%, #3d0a06);
  border-color: #b06a3a; color: #ffcaa8;
}
.ko-ui .bb-btn.bb-exit { color: #ffb0a0; }
.ko-ui .bb-btn.bb-exit:hover { background: linear-gradient(180deg, #7e1a14, #5c110c); color: #fff; }
.ko-ui .btn.active, .ko-btn.active {
  box-shadow: inset 0 0 0 1px #ffe6a8, inset 0 1px 0 rgba(255,214,150,.4);
}

.ko-ui .hud-mainbar {
  background: linear-gradient(180deg, #3d463a, #232a20 60%, #171c15);
  border-top: 1px solid var(--ko-gold);
  box-shadow: inset 0 1px 0 rgba(255,236,170,.14);
}
.ko-ui .bb-sep { background: var(--ko-gold); opacity: .55; }

.ko-ui .slot, .ko-ui .skill-slot {
  border-radius: 2px; border: 1px solid var(--ko-slot-line); background: var(--ko-slot);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.75), inset 0 0 0 1px rgba(0,0,0,.6);
}
.ko-ui .slot:hover, .ko-ui .skill-slot:hover { border-color: #9a8f74; background: #1c1a15; }
.ko-ui .slot.filled { background: #1c1a15; border-color: #9a8f74; }
.ko-ui .slot.empty, .ko-ui .skill-slot.empty { border-style: solid; border-color: #4a453c; background: #100f0d; }
.ko-ui .slot.blank { background: transparent; border-color: transparent; box-shadow: none; }
.ko-ui .slot.drag-over, .ko-ui .skill-slot.drag-over {
  border-color: #ffd76a; background: #2a2416; box-shadow: inset 0 0 12px rgba(255,196,80,.35);
}
.ko-ui .slot .lbl { color: var(--ko-slot-line); }

.ko-ui .bar {
  border-radius: 2px; border: 1px solid var(--ko-slot-line); background: #0a0906;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.8);
}
.ko-ui .name-row strong { font-family: var(--ko-display); color: var(--ko-ink); }
.ko-ui .name-row .lvl {
  border-radius: 2px; background: linear-gradient(180deg, #d8b45a, #8a6f2e);
  box-shadow: inset 0 0 0 1px var(--ko-gold-lit); color: #14120c;
}

.ko-ui .confirm-box {
  border: 0; border-radius: 8px; padding: 6px;
  background: linear-gradient(180deg, #55604f 0%, var(--ko-plate-1) 12%, #333b30 88%, #232a20 100%);
  box-shadow:
    inset 0 0 0 1px var(--ko-frame-lit), inset 0 0 0 3px var(--ko-frame),
    inset 0 0 0 4px var(--ko-gold), 0 20px 48px rgba(0,0,0,.62);
}
.ko-ui .confirm-box h3 {
  font-family: var(--ko-display); font-size: 14px; color: var(--ko-btn-ink);
  padding: 8px 10px 9px; margin: 0 6px 8px; border-radius: 11px;
  background: linear-gradient(180deg, var(--ko-plate-1), var(--ko-plate-2));
  box-shadow: inset 0 0 0 1px var(--ko-gold), inset 0 1px 0 rgba(255,236,170,.18);
}
.ko-ui .confirm-box p { color: var(--ko-ink-dim); padding: 0 12px; }
.ko-ui .confirm-actions { padding: 0 8px 8px; }

.ko-ui input[type="text"], .ko-ui input[type="password"],
.ko-ui input[type="number"], .ko-ui select, .ko-ui textarea {
  border-radius: 2px; border: 1px solid var(--ko-slot-line);
  background: var(--ko-slot); color: var(--ko-ink);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.7);
}
.ko-ui input:focus, .ko-ui select:focus, .ko-ui textarea:focus {
  border-color: var(--ko-gold-lit); outline: 0;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.7), 0 0 0 1px rgba(201,162,74,.4);
}

.ko-ui .hud-self { padding: 5px; display: block; }
.ko-ui .hud-self .bars { width: 258px; }
.ko-ui .hud-self .name-row {
  justify-content: center; margin: 0 0 4px; padding: 3px 8px 4px; border-radius: 9px;
  background: linear-gradient(180deg, var(--ko-plate-1), var(--ko-plate-2));
  box-shadow: inset 0 0 0 1px var(--ko-gold), inset 0 1px 0 rgba(255,236,170,.16);
}
.ko-ui .hud-self .name-row strong {
  font-family: var(--ko-display); font-size: 13px; letter-spacing: .4px;
  color: var(--ko-btn-ink); text-shadow: 0 1px 0 #000;
}

.ko-ui .hud-self .bar { height: 15px; margin-bottom: 3px; }
.ko-ui .hud-self .bar span { font-size: 10.5px; }

.hud-loc {
  
  display: flex; align-items: baseline; justify-content: center;
  gap: 7px; flex-wrap: nowrap;
  margin-top: 3px; padding: 2px 8px 3px; border-radius: 3px;
  font-size: 11px; letter-spacing: .3px;
  background: linear-gradient(180deg, var(--ko-well-1), var(--ko-well-2));
  box-shadow: inset 0 0 0 1px var(--ko-gold), inset 0 2px 6px rgba(0,0,0,.5);
  color: var(--ko-ink-dim); font-family: var(--ko-display);
}
.hud-loc > span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hud-loc b {
  flex: 0 0 auto; white-space: nowrap;
  color: var(--ko-ink); font-weight: 700; font-variant-numeric: tabular-nums;
}

.ko-ui .hud-skillbar { padding: 5px; }
.ko-ui .sb-head { border-bottom: 0; margin-bottom: 4px; padding: 0 2px 4px; }
.ko-ui .sb-page, .ko-ui .sb-btn {
  border-radius: 2px; border: 1px solid var(--ko-gold);
  background: linear-gradient(180deg, #4a4740, #2a2823);
  color: #d8c9a4; font-family: var(--ko-display);
}
.ko-ui .sb-page:hover, .ko-ui .sb-btn:hover { color: var(--ko-btn-ink); }
.ko-ui .sb-page.active, .ko-ui .sb-btn.on {
  border-color: var(--ko-gold-lit); color: var(--ko-btn-ink);
  background: linear-gradient(180deg, var(--ko-btn-1), var(--ko-btn-2) 55%, var(--ko-btn-3));
}
.ko-ui .sb-grip { color: var(--ko-gold-lit); opacity: .75; }

.ko-ui .inv-bar { border-top: 0; padding: 6px 2px 8px; }
.ko-ui .inv-gold {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px 4px; border-radius: 3px;
  background: linear-gradient(180deg, var(--ko-well-1), var(--ko-well-2));
  box-shadow: inset 0 0 0 1px var(--ko-gold), inset 0 2px 6px rgba(0,0,0,.5);
}
.ko-ui .inv-gold .coin {
  width: 13px; height: 13px; border-radius: 50%; flex: 0 0 13px;
  background: radial-gradient(circle at 34% 30%, #ffe9a8, #d8b45a 55%, #8a6f2e);
  box-shadow: inset 0 0 0 1px #6a5424, 0 0 5px rgba(216,180,90,.4);
}
.ko-ui .inv-gold b {
  font-family: var(--ko-display); font-size: 14px; color: var(--ko-btn-ink);
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #000;
}
.ko-ui .inv-slots { color: var(--ko-ink-dim); }

.ko-ui .lm-dug { min-width: 108px; padding: 9px 16px; font-size: 13px; }
.ko-ui .lm-alan span {
  font-family: var(--ko-display); color: var(--ko-ink-dim);
  letter-spacing: .6px;
}
.ko-ui .lm-serit {
  background: linear-gradient(180deg, #3d463a, #232a20 60%, #171c15);
  border-top: 1px solid var(--ko-gold);
  box-shadow: inset 0 1px 0 rgba(255,236,170,.14);
}

.ko-ui .chars-bar {
  border-top: 1px solid var(--ko-gold);
  background: linear-gradient(180deg, #3d463a, #232a20 60%, #171c15);
  box-shadow: inset 0 1px 0 rgba(255,236,170,.14);
  backdrop-filter: none;
}

.ko-ui .ko-btn.ko-primary {
  background: linear-gradient(180deg, var(--ko-btn-1), var(--ko-btn-2) 48%, var(--ko-btn-3));
  border-color: var(--ko-gold-lit); color: var(--ko-btn-ink);
}
.ko-ui .ko-btn.ko-danger {
  background: linear-gradient(180deg, #7e1a14, #5c110c 55%, #3d0a06);
  border-color: #b06a3a; color: #ffcaa8;
}
.ko-ui .ko-btn.ko-nav {
  background: linear-gradient(180deg, #4a4740 0%, #3b3931 48%, #2a2823 100%);
  border-color: var(--ko-gold); color: #d8c9a4;
}

.ko-anvil .anvil-cell.onizleme {
  border-color: var(--ko-gold-lit);
  box-shadow: inset 0 0 0 1px rgba(201,162,74,.45), 0 0 10px rgba(201,162,74,.25);
}

.anvil-cell[hidden] { display: none; }
.ko-anvil .anvil-cell.onizleme .plus {
  position: absolute; left: 3px; top: 2px; font-size: 10px; font-weight: 800;
  color: var(--ko-btn-ink); text-shadow: 0 1px 3px #000;
}

.ko-ui .pet-slot {
  border-color: #4e6a7a; background: #0e1418;
  border-style: dashed;
}
.ko-ui .pet-slot .lbl { color: #6f8a9a; }
.ko-ui .cop-slot {
  border-color: #7a3a30; background: #170f0d;
}
.ko-ui .cop-slot .lbl { color: #a06a5a; }
.ko-ui .cop-slot.drag-over {
  border-color: #ff6a4a; background: #2a1410;
  box-shadow: inset 0 0 12px rgba(255,90,60,.4);
}

.ko-ui .inv-ext { width: 392px; }
.ko-ui .inv-ext .ext-grid { grid-template-columns: repeat(7, 1fr); }

.ko-ui input[type="number"]::-webkit-outer-spin-button,
.ko-ui input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; appearance: none; margin: 0;
}
.ko-ui input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.kd-perde {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center; background: rgba(6,7,10,.82);
}
.kd-perde[hidden] { display: none; }
.kd-kutu {
  width: min(420px, 92vw); padding: 5px; border-radius: 8px;
  background: linear-gradient(180deg, #55604f 0%, var(--ko-plate-1) 12%, #333b30 88%, #232a20 100%);
  box-shadow:
    inset 0 0 0 1px var(--ko-frame-lit), inset 0 0 0 3px var(--ko-frame),
    inset 0 0 0 4px var(--ko-gold), 0 20px 48px rgba(0,0,0,.62);
}
.kd-kutu > header {
  display: grid; place-items: center; height: 34px; margin: 0 0 5px;
  border-radius: 11px;
  font-family: var(--ko-display); font-size: 13.5px; font-weight: 700;
  color: var(--ko-btn-ink); text-shadow: 0 1px 0 #000;
  background: linear-gradient(180deg, var(--ko-plate-1), var(--ko-plate-2));
  box-shadow: inset 0 0 0 1px var(--ko-gold), inset 0 1px 0 rgba(255,236,170,.18);
}
.kd-govde {
  padding: 14px 16px 13px; border-radius: 4px;
  background: linear-gradient(180deg, var(--ko-well-1), var(--ko-well-2));
  box-shadow: inset 0 0 0 1px var(--ko-gold), inset 0 3px 12px rgba(0,0,0,.5);
  color: var(--ko-ink); font-size: 13px; line-height: 1.6;
}
.kd-uyari b { color: #ff9a7a; }
.kd-soru { margin-top: 12px; color: var(--ko-ink-dim); font-size: 12.5px; }
.kd-islem { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.kd-islem b {
  font-family: var(--ko-display); font-size: 20px; color: var(--ko-btn-ink);
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #000;
}
.kd-islem input {
  width: 76px; padding: 7px 9px; text-align: center;
  font-family: var(--ko-display); font-size: 17px;
  border-radius: 2px; border: 1px solid var(--ko-slot-line);
  background: var(--ko-slot); color: var(--ko-ink);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.7);
}
.kd-islem input:focus { border-color: var(--ko-gold-lit); outline: 0; }
.kd-hata { min-height: 18px; margin-top: 7px; font-size: 12.5px; color: #ff7a6a; }
.kd-dugmeler { display: flex; gap: 9px; margin-top: 6px; }
.kd-dugmeler .ko-btn { flex: 1; min-width: 0; }

.ko-ui .whisper-win { padding: 4px; }
.ko-ui .whisper-win .ww-head { cursor: var(--ko-cursor-grab, move); }
.ko-ui .whisper-win .ww-title {
  font-family: var(--ko-display); font-size: 12px; letter-spacing: .4px;
  color: var(--ko-btn-ink); text-shadow: 0 1px 0 #000;
}

.ko-ui .whisper-win .ww-btn {
  border-radius: 2px; border: 1px solid var(--ko-gold);
  background: linear-gradient(180deg, #4a4740, #2a2823); color: #d8c9a4;
}
.ko-ui .whisper-win .ww-btn:hover {
  color: var(--ko-btn-ink); background: linear-gradient(180deg, #5a564c, #332f28);
}

.ko-ui .whisper-win .ww-close {
  background: linear-gradient(180deg, #8e2216, #4d1009); color: #ffcaa8;
  border-color: #b06a3a;
}
.ko-ui .whisper-win .ww-close:hover { color: #fff; filter: brightness(1.2); }

.ko-ui .whisper-win .ww-log {
  border-radius: 3px; margin-top: 3px;
  background: linear-gradient(180deg, var(--ko-well-1), var(--ko-well-2));
  box-shadow: inset 0 0 0 1px var(--ko-gold), inset 0 3px 12px rgba(0,0,0,.5);
}
.ko-ui .whisper-win .ww-row { border-top: 0; padding: 5px 0 1px; }

.ko-ui .wt-btn {
  border-radius: 2px; border: 1px solid var(--ko-slot-line); background: var(--ko-slot);
  color: var(--ko-ink); font-family: var(--ko-display);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.75);
}
.ko-ui .wt-btn:hover { border-color: var(--ko-gold-lit); background: #1c1a15; }

.ko-ui .wt-btn.unread { border-color: var(--ko-gold-lit); color: var(--ko-btn-ink); }

.ko-ui .hud-minimap { padding: 5px; }

.ko-ui .mm-srv {
  border-radius: 3px; border: 1px solid var(--ko-gold);
  font-family: var(--ko-display); color: var(--ko-btn-ink);
  background: linear-gradient(180deg, var(--ko-plate-1), var(--ko-plate-2));
  box-shadow: inset 0 1px 0 rgba(255,236,170,.16);
}
.ko-ui .mm-srv:hover, .ko-ui .mm-srv.bos:hover {
  border-color: var(--ko-gold-lit); color: #fff0be;
  background: linear-gradient(180deg, #46503f, #2a3124);
}

.ko-ui .mm-clan {
  border-color: #4a7ba8; color: #cfe6ff;
  background: linear-gradient(180deg, #2a3a4a, #1c2632);
}
.ko-ui .mm-clan:hover, .ko-ui .mm-clan.bos:hover {
  border-color: #7ab0e0; color: #eaf4ff;
  background: linear-gradient(180deg, #35485c, #22303f);
}
.ko-ui .mm-srv-ok { color: var(--ko-gold-lit); }
.ko-ui .mm-duyuru {
  border-radius: 3px; border: 1px solid var(--ko-gold);
  background: linear-gradient(180deg, var(--ko-well-1), var(--ko-well-2));
  color: var(--ko-ink);
}

.ko-ui .hud-minimap > canvas {
  border-radius: 3px; display: block;
  box-shadow: inset 0 0 0 1px var(--ko-gold), 0 0 0 1px rgba(0,0,0,.6);
}

.ko-ui .mm-net {
  margin-top: 5px; padding: 2px 8px 3px; border-radius: 3px;
  font-family: var(--ko-display); color: var(--ko-ink-dim);
  background: linear-gradient(180deg, var(--ko-well-1), var(--ko-well-2));
  box-shadow: inset 0 0 0 1px var(--ko-gold), inset 0 2px 6px rgba(0,0,0,.5);
}

.ko-ui .skill-slot.manasiz { filter: grayscale(.85) brightness(.55); }
.ko-ui .skill-slot.manasiz::after {
  content: ''; position: absolute; inset: 0; border-radius: 2px;
  pointer-events: none; background: rgba(24,40,80,.42);
  box-shadow: inset 0 0 0 1px rgba(90,140,220,.45);
}

.ko-ui .skill-slot.manasiz .key, .ko-ui .skill-slot.manasiz .qty { position: relative; z-index: 1; }

.ko-ui .store-box, .ko-ui .sup-box { overflow: visible; padding: 5px; border-radius: 8px; }
.ko-ui .store-x, .ko-ui .sup-x {
  position: absolute; top: -10px; right: -10px; margin: 0;
  width: 26px; height: 26px; border-radius: 50%; border: 0; z-index: 3;
  font-size: 15px; line-height: 24px; padding: 0; color: #ffe0b0; font-weight: 700;
  background: radial-gradient(circle at 35% 30%, #d05a3a, #8e2216 65%, #4d1009);
  box-shadow: inset 0 0 0 1px #e8b672, 0 2px 6px rgba(0,0,0,.6);
}
.ko-ui .store-x:hover, .ko-ui .sup-x:hover {
  color: #fff; filter: brightness(1.18); background: radial-gradient(circle at 35% 30%, #d05a3a, #8e2216 65%, #4d1009);
  border: 0;
}
.ko-ui .st-bas-ad, .ko-ui .sup-title {
  font-family: var(--ko-display); color: var(--ko-btn-ink); text-shadow: 0 1px 0 #000;
}

.ko-ui .st-bakiye {
  border-radius: 3px; padding: 3px 10px 4px;
  background: linear-gradient(180deg, var(--ko-well-1), var(--ko-well-2));
  box-shadow: inset 0 0 0 1px var(--ko-gold), inset 0 2px 6px rgba(0,0,0,.5);
}
.ko-ui .st-bakiye span { color: var(--ko-ink-dim); }
.ko-ui .st-bakiye b {
  font-family: var(--ko-display); color: var(--ko-btn-ink);
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #000;
}

.ko-ui .st-tabs, .ko-ui .st-detail, .ko-ui .sup-detay {
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.12));
  box-shadow: inset 0 0 0 1px rgba(138,116,52,.55);
}

.ko-ui .st-card, .ko-ui .sup-row, .ko-ui .sup-msg, .ko-ui .sup-ek-satir {
  border-radius: 3px; border: 1px solid var(--ko-slot-line);
  background: linear-gradient(180deg, var(--ko-well-1), var(--ko-well-2));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.45);
}
.ko-ui .st-card:hover, .ko-ui .sup-row:hover {
  border-color: var(--ko-gold); background: linear-gradient(180deg, #34322b, #262520);
}
.ko-ui .st-card.on, .ko-ui .sup-row.yeni {
  border-color: var(--ko-gold-lit);
  box-shadow: inset 0 0 0 1px var(--ko-gold-lit), 0 0 10px rgba(201,162,74,.22);
}
.ko-ui .st-ad, .ko-ui .st-d-ad, .ko-ui .sup-row-baslik, .ko-ui .sup-detay-baslik,
.ko-ui .st-d-baslik, .ko-ui .sup-liste-bas {
  font-family: var(--ko-display); color: var(--ko-ink);
}
.ko-ui .st-fiyat b, .ko-ui .st-d-sure {
  font-family: var(--ko-display); color: var(--ko-btn-ink);
}
.ko-ui .st-ozet, .ko-ui .st-d-ozet, .ko-ui .sup-row-bilgi, .ko-ui .st-sure {
  color: var(--ko-ink-dim);
}

.ko-ui .st-kod-kutu {
  border: 0; border-radius: 8px; padding: 5px;
  background: linear-gradient(180deg, #55604f 0%, var(--ko-plate-1) 12%, #333b30 88%, #232a20 100%);
  box-shadow:
    inset 0 0 0 1px var(--ko-frame-lit), inset 0 0 0 3px var(--ko-frame),
    inset 0 0 0 4px var(--ko-gold), 0 20px 48px rgba(0,0,0,.62);
}

.ko-ui .char-card, .ko-ui .class-card, .ko-ui .nation-card, .ko-ui .cc-panel {
  border-radius: 3px; border: 1px solid var(--ko-slot-line);
  background: linear-gradient(180deg, var(--ko-well-1), var(--ko-well-2));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), inset 0 3px 12px rgba(0,0,0,.45);
}
.ko-ui .char-card:hover, .ko-ui .class-card:hover, .ko-ui .nation-card:hover {
  border-color: var(--ko-gold);
}
.ko-ui .char-card.active, .ko-ui .char-card.selected,
.ko-ui .class-card.active, .ko-ui .class-card.selected,
.ko-ui .nation-card.active, .ko-ui .nation-card.selected {
  border-color: var(--ko-gold-lit);
  box-shadow: inset 0 0 0 1px var(--ko-gold-lit), 0 0 12px rgba(201,162,74,.28);
}

.panel-anvil {
  width: 336px; top: 120px; right: auto; left: 50%; transform: translateX(-380px);
}

.panel-accanvil { width: 400px; top: 120px; right: auto; left: 50%; transform: translateX(-460px); }

.ko-anvil { padding: 10px 11px 12px !important; }
.ko-board {
  position: relative;
  
  display: flex; align-items: center; gap: 9px;
  padding: 11px 10px; margin-bottom: 10px; border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.22)),
    linear-gradient(150deg, #4a4740 0%, #3b3931 45%, #43403a 100%);
  box-shadow: inset 0 0 0 1px #8a7434, inset 0 0 22px rgba(0,0,0,.5);
}

.ko-board::before {
  content: ''; position: absolute; inset: 3px; pointer-events: none; border-radius: 3px;
  background:
    radial-gradient(circle at 0 0,       #c9a24a 0 2.5px, transparent 3px),
    radial-gradient(circle at 100% 0,    #c9a24a 0 2.5px, transparent 3px),
    radial-gradient(circle at 0 100%,    #c9a24a 0 2.5px, transparent 3px),
    radial-gradient(circle at 100% 100%, #c9a24a 0 2.5px, transparent 3px);
}

.ko-inner {
  flex: 1; min-width: 0;
  position: relative; padding: 9px; border-radius: 3px;
  background: linear-gradient(180deg, #2b2924, #201f1b);
  box-shadow:
    inset 0 0 0 1px #6d6558,
    inset 0 0 0 2px #14130f,
    inset 0 0 0 3px #55503f,
    inset 0 3px 12px rgba(0,0,0,.55);
}
.ko-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

.ko-anvil .anvil-cell {
  width: auto; height: auto; aspect-ratio: 1; min-width: 0;
  border-radius: 2px; border: 1px solid #6f6a5c; background: #131210;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.75), inset 0 0 0 1px rgba(0,0,0,.6);
}
.ko-anvil .anvil-cell.filled { background: #1c1a15; border-color: #9a8f74; }
.ko-anvil .anvil-cell.drag-over { border-color: #ffd76a; background: #2a2416; box-shadow: inset 0 0 12px rgba(255,196,80,.35); }
.ko-anvil .anvil-cell .lbl { font-size: 9px; color: #6f6a5c; letter-spacing: .2px; text-align: center; line-height: 1.15; }

.ko-anvil .anvil-cell.yan { width: 46px; height: 46px; aspect-ratio: auto; border-color: #8a7434; }
.ko-anvil .anvil-cell.scroll { background: #17140d; }
.ko-anvil .anvil-cell.boost { background: #101613; border-color: #4e7a5e; }
.ko-anvil .anvil-cell.boost .lbl { color: #6f8a78; }

.ko-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

.anvil-preview {
  margin-top: 9px; padding: 9px 11px; border-radius: 3px;
  font-size: 12px; line-height: 1.55;
  background: linear-gradient(180deg, #2b2924, #201f1b);
  box-shadow: inset 0 0 0 1px #8a7434, inset 0 3px 12px rgba(0,0,0,.5);
}
.anvil-preview .pv-row { display: flex; justify-content: space-between; gap: 12px; }
.anvil-preview .pv-row .k { color: #a09a86; }
.anvil-preview .pv-row .v { font-weight: 700; color: #efe3c4; }
.anvil-preview .pv-up { color: #7fe08c; }
.anvil-preview .pv-title { font-weight: 800; margin-bottom: 4px; color: #f0d488; font-family: Georgia, serif; }

.anvil-info { min-height: 34px; }
.ko-anvil .anvil-hint { color: #9a9382; }

.anvil-anim {
  position: absolute; left: 6px; right: 6px; height: 14px;
  pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .12s;
}
.anvil-anim.top { top: 1px; }
.anvil-anim.bot { bottom: 1px; }
.anvil-anim.calisiyor { opacity: 1; }
.anvil-anim i {
  position: absolute; display: block; border-radius: 2px;
  background: linear-gradient(180deg, #ffd98a, #ff7a1e);
  box-shadow: 0 0 8px #ff9a3c;
}

.anvil-anim.top i { top: -14px; width: 3px; height: 12px; animation: anvil-vur .5s ease-in infinite; }
.anvil-anim.top i:nth-child(1) { left: 30%; animation-delay: 0s; }
.anvil-anim.top i:nth-child(2) { left: 50%; animation-delay: .12s; }
.anvil-anim.top i:nth-child(3) { left: 70%; animation-delay: .24s; }
@keyframes anvil-vur { 0% { top: -14px; opacity: 0; } 40% { opacity: 1; } 100% { top: 14px; opacity: 0; } }

.anvil-anim.bot i { bottom: 0; width: 4px; height: 4px; border-radius: 50%; animation: anvil-kiv .6s ease-out infinite; }
.anvil-anim.bot i:nth-child(1) { left: 22%; animation-delay: 0s; }
.anvil-anim.bot i:nth-child(2) { left: 38%; animation-delay: .1s; }
.anvil-anim.bot i:nth-child(3) { left: 50%; animation-delay: .05s; }
.anvil-anim.bot i:nth-child(4) { left: 62%; animation-delay: .18s; }
.anvil-anim.bot i:nth-child(5) { left: 78%; animation-delay: .09s; }
@keyframes anvil-kiv { 0% { bottom: 0; opacity: 1; transform: scale(1); } 100% { bottom: 14px; opacity: 0; transform: scale(.4); } }

.ko-board.calisiyor { animation: ors-sarsinti .5s ease-in-out infinite; }
@keyframes ors-sarsinti {
  0%, 100% { transform: translate(0, 0); }
  38%      { transform: translate(0, 1px); }
  44%      { transform: translate(-1px, 0); }
  52%      { transform: translate(1px, 0); }
}
.ko-board.calisiyor .anvil-cell.filled { animation: ors-kor .5s ease-in-out infinite; }
@keyframes ors-kor {
  0%, 100% { box-shadow: inset 0 2px 6px rgba(0,0,0,.75); }
  45%      { box-shadow: inset 0 0 14px rgba(255,150,50,.75), 0 0 10px rgba(255,140,40,.5); }
}

.anvil-row.four { gap: 6px; }
.anvil-row.four .anvil-cell { width: 62px; height: 62px; }
.anvil-row.four .anvil-plus { margin: 0 2px; }
.anvil-wrap { padding: 13px !important; }

.anvil-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
.anvil-plus { font-size: 22px; font-weight: 800; color: var(--gold); opacity: .75; }
.anvil-cell {
  position: relative; width: 74px; height: 74px; border-radius: 9px;
  background: #0d0f13; border: 1px dashed var(--border-2);
  display: grid; place-items: center; overflow: hidden; transition: .12s;
}
.anvil-cell.filled { border-style: solid; background: #191d24; }
.anvil-cell.drag-over { border-color: var(--gold); background: #23201a; }
.anvil-cell .lbl { font-size: 10.5px; color: #55585f; letter-spacing: .3px; }
.anvil-cell img { width: 100%; height: 100%; display: block; pointer-events: none; }
.anvil-cell .qty { position: absolute; right: 3px; bottom: 2px; font-size: 10px; font-weight: 800; text-shadow: 0 1px 3px #000; }
.anvil-cell .plus { position: absolute; left: 3px; top: 2px; font-size: 11px; font-weight: 800; color: var(--gold); text-shadow: 0 1px 3px #000; }
.anvil-cell.g1 { box-shadow: inset 0 0 0 1px #4a8ad4; }
.anvil-cell.g2 { box-shadow: inset 0 0 0 1px #a05ad4; }
.anvil-cell.g3 { box-shadow: inset 0 0 0 1px #d4a03a; }

.anvil-info {
  min-height: 62px; padding: 9px 10px; margin-bottom: 11px;
  border-radius: 8px; background: rgba(0,0,0,.28); border: 1px solid var(--border);
  font-size: 12px; line-height: 1.7;
}
.anvil-line .from { color: var(--text-dim); }
.anvil-line .to { color: var(--gold); font-weight: 800; }
.anvil-line .ok { color: #8ff07a; }
.anvil-line.dim, .anvil-info .dim { color: var(--text-dim); }
.anvil-line.glow { color: #ffce6a; }
.anvil-hint { margin-top: 10px; font-size: 10.5px; line-height: 1.65; color: #6b6d75; }

@keyframes anvilOk   { 0% { box-shadow: 0 0 0 0 rgba(255,210,74,.85); } 100% { box-shadow: 0 0 0 26px rgba(255,210,74,0); } }
@keyframes anvilFail { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 60% { transform: translateX(7px); } }
.panel-anvil.anvil-ok { animation: anvilOk .65s ease-out; }
.panel-anvil.anvil-fail { animation: anvilFail .3s steps(3); border-color: #6a2626; }

.panel-party { width: 246px; top: 210px; right: 16px; }
.party-wrap { padding: 10px !important; }
.panel-party header .pcount { margin-left: auto; margin-right: 10px; font-size: 11px; color: var(--text-dim); font-weight: 600; }
.party-body { display: flex; flex-direction: column; gap: 5px; margin-bottom: 9px; }

.pm {
  position: relative; display: flex; align-items: center; gap: 7px;
  padding: 6px 7px; border-radius: 7px;
  background: rgba(0,0,0,.26); border: 1px solid var(--border);
}
.pm.me { border-color: rgba(216,180,90,.42); background: rgba(216,180,90,.07); }

.pm.secili { border-color: rgba(90,160,255,.75); background: rgba(90,160,255,.12); }

.c-friend { color: #6ad4b8; }
.pm.dead { opacity: .45; }
.pm-icon { font-size: 15px; width: 18px; text-align: center; }
.pm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pm-top { display: flex; align-items: baseline; gap: 5px; font-size: 12px; }
.pm-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-crown { color: var(--gold); font-style: normal; font-size: 10px; }
.pm-lv { margin-left: auto; font-size: 10px; color: var(--text-dim); }
.pm-bar { display: block; height: 4px; border-radius: 3px; background: #14161b; overflow: hidden; }
.pm-bar i { display: block; height: 100%; transition: width .25s; }
.pm-bar.hp i { background: linear-gradient(90deg, #4aa03a, #2f7a26); }
.pm-bar.mp i { background: linear-gradient(90deg, #3d7ac4, #2a568c); }
.pm-kick {
  background: none; border: 0; color: #7a3a3a; font-size: 16px; line-height: 1; padding: 0 3px;
}
.pm-kick:hover { color: #ff6a5a; }
.party-hint { margin-top: 8px; font-size: 10.5px; line-height: 1.6; color: #6b6d75; }

.panel-trade { width: 396px; top: 118px; right: auto; left: 50%; transform: translateX(-50%); }
.trade-wrap { padding: 12px !important; }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trade-side { display: flex; flex-direction: column; gap: 7px; }
.trade-head { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; }
.trade-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trade-state {
  margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 6px;
  border-radius: 999px; background: #1a1d24; color: var(--text-dim);
}
.trade-state.ready { background: #2a2410; color: #ffce6a; }
.trade-state.ok { background: #13301a; color: #8ff07a; }

.trade-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px;
  padding: 5px; border-radius: 8px; border: 1px dashed var(--border);
  background: rgba(0,0,0,.22); min-height: 128px; align-content: start;
}
.trade-grid.drag-over { border-color: var(--gold); background: #201d15; }
.trade-cell {
  position: relative; aspect-ratio: 1; border-radius: 6px;
  background: #0d0f13; border: 1px solid var(--border);
  display: grid; place-items: center; overflow: hidden;
}
.trade-cell.empty { opacity: .4; }
.trade-cell.filled:hover { border-color: var(--gold); }
.trade-cell img { width: 100%; height: 100%; display: block; pointer-events: none; }
.trade-cell .qty { position: absolute; right: 2px; bottom: 1px; font-size: 9.5px; font-weight: 800; text-shadow: 0 1px 3px #000; }
.trade-cell .plus { position: absolute; left: 2px; top: 1px; font-size: 9px; font-weight: 800; color: var(--gold); text-shadow: 0 1px 3px #000; }
.trade-cell.g1 { box-shadow: inset 0 0 0 1px #4a8ad4; }
.trade-cell.g2 { box-shadow: inset 0 0 0 1px #a05ad4; }
.trade-cell.g3 { box-shadow: inset 0 0 0 1px #d4a03a; }

.trade-gold { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11.5px; color: var(--text-dim); font-weight: 600; }
.trade-gold b { color: var(--gold); font-variant-numeric: tabular-nums; }
.trade-gold input {
  flex: 1; min-width: 0; margin: 0; padding: 5px 7px; border-radius: 6px;
  background: #0d0f13; border: 1px solid var(--border-2); color: var(--gold);
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.trade-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 11px; }
.trade-actions .btn.on { border-color: var(--gold); color: var(--gold); }
.trade-hint { margin-top: 9px; font-size: 10.5px; line-height: 1.65; color: #6b6d75; }

.c-party { color: #8ff0c0; }

.audio-ctl {
  position: fixed; z-index: 70; top: 14px; right: 14px;
  display: flex; align-items: center; gap: 0;
  background: rgba(10,11,14,.72); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px; box-shadow: var(--shadow);
  transition: gap .16s, padding .16s;
}
.audio-ctl:hover { gap: 8px; padding: 3px 12px 3px 3px; }
.audio-ctl button {
  width: 30px; height: 30px; border: 0; border-radius: 999px; background: none;
  font-size: 15px; line-height: 1; display: grid; place-items: center; color: var(--text);
}
.audio-ctl button:hover { background: rgba(255,255,255,.08); }
.audio-ctl button.off { opacity: .5; }
.audio-ctl input[type=range] {
  width: 0; opacity: 0; margin: 0; padding: 0; height: 4px; min-width: 0;
  appearance: none; background: #2a2e36; border: 0; border-radius: 3px;
  transition: width .16s, opacity .16s;
}
.audio-ctl:hover input[type=range] { width: 86px; opacity: 1; }
.audio-ctl input[type=range]::-webkit-slider-thumb {
  appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 0; cursor: pointer;
}
.audio-ctl input[type=range]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 0; cursor: pointer;
}

body[data-screen="game"] .audio-ctl { display: none; }

.panel-settings { width: 320px; }
.set-wrap { padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.set-row { display: flex; align-items: center; gap: 8px; }
.set-lbl { flex: 0 0 92px; color: var(--text-dim); font-size: 12px; }
.set-row input[type=range] { flex: 1 1 auto; accent-color: var(--gold); }
.set-row #btn-audio2 {
  background: none; border: 0; color: var(--gold); font-size: 17px; cursor: pointer; padding: 0 2px;
}
.set-row #btn-audio2.off { color: var(--text-dim); }
.set-row .btn { flex: 1 1 0; font-size: 12px; padding: 4px 6px; }

.set-ses { margin: 2px 0 8px 0; padding-left: 10px; border-left: 2px solid var(--border); }
.set-ses-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.set-ses-row .sk-ad2 { flex: 0 0 66px; font-size: 12px; color: var(--text-dim); }
.set-ses-row input[type="range"] { flex: 1; }

.set-ses-row .sk-pct {
  flex: 0 0 38px; text-align: right; font-size: 11px;
  font-variant-numeric: tabular-nums; color: var(--text-dim);
}
.set-ses-row button { flex: 0 0 26px; background: none; border: 0; cursor: pointer; font-size: 14px; }
.set-ses-row.kapali .sk-ad2, .set-ses-row.kapali .sk-pct { opacity: .45; }

.set-note { color: var(--text-dim); font-size: 11px; border-top: 1px solid var(--border); padding-top: 8px; }

.hud-target.combo { animation: combo-pulse 1.05s ease-in-out infinite; }
@keyframes combo-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 90, 60, 0.55), 0 0 10px rgba(255, 90, 60, 0.25); }
  50%      { box-shadow: 0 0 0 2px rgba(255, 140, 60, 0.95), 0 0 20px rgba(255, 120, 50, 0.55); }
}
.hud-target.combo::after {
  content: 'R';
  
  position: absolute; top: -15px; right: 2px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  color: #ff9a5a; text-shadow: 0 0 6px rgba(255, 120, 50, 0.8);
}

.q-list { margin: 8px 0 4px; max-height: 240px; overflow-y: auto; text-align: left; }
.q-row { display: flex; justify-content: space-between; gap: 12px;
         padding: 4px 8px; border-radius: 5px; font-size: 12px; }
.q-row + .q-row { margin-top: 2px; }
.q-row .q-name { color: var(--text-dim); }
.q-row .q-cnt { color: #ff8a7a; font-variant-numeric: tabular-nums; }
.q-row.ok { background: rgba(122, 224, 138, 0.08); }
.q-row.ok .q-name { color: var(--text); }
.q-row.ok .q-cnt { color: #7ae08a; }
.q-hint { margin-top: 6px; font-size: 11px; color: var(--text-dim); }
.q-done { color: #7ae08a; font-weight: 600; }

.mq-list { margin: 10px 0 4px; max-height: 260px; overflow-y: auto; }
.mq-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 4px 8px; border-radius: 5px; font-size: 12px;
  background: rgba(255, 255, 255, 0.03); margin-bottom: 3px;
}
.mq-row + .mq-row { margin-top: 0; }
.mq-row.ok   { color: #7ae08a; }
.mq-row.miss { color: var(--text-dim); }
.mq-row b { font-variant-numeric: tabular-nums; }

.cl-log .l-rep { opacity: 0.6; font-size: 10px; }

.slot.broken { border-color: #c0392b !important; }
.slot.broken::after {
  content: ''; position: absolute; inset: 0; border-radius: 5px;
  background: rgba(192, 57, 43, 0.32); pointer-events: none;
}

.skill-ic { display: block; image-rendering: auto; pointer-events: none; }
.sk-cell .skill-ic { margin: 0 auto; }
.skillbar .slot .skill-ic { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

body.repair-mode #panel-inventory .slot.filled { cursor: crosshair; }
body.repair-mode #panel-inventory { outline: 1px solid rgba(122, 224, 138, 0.55); }

.panel-command {
  width: 300px;
  right: 0; top: 62px;
  border-top-right-radius: 0; border-bottom-right-radius: 0;
  border-right: none;
  z-index: 26;                 
  max-height: calc(100vh - 150px);
}

.panel-command .cmd-wrap { display: flex; flex-direction: column; min-height: 0; }
.panel-command .cmd-main {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.panel-command .cmd-main button { flex: 1 1 auto; min-width: 78px; font-size: 11.5px; padding: 5px 7px; }
.panel-command .cmd-sub { overflow-y: auto; padding: 8px 10px; min-height: 0; }
.cmd-wrap { display: grid; grid-template-columns: 140px 1fr; gap: 8px; padding: 10px !important; align-items: start; }
.cmd-main { display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--border); padding-right: 8px; }
.cmd-main button {
  text-align: left; padding: 8px 9px; border-radius: 6px; font-size: 12px; font-weight: 700;
  background: #14161c; border: 1px solid var(--border-2); color: var(--text-dim);
}
.cmd-main button:hover { background: #1b1f27; color: var(--text); }
.cmd-main button.active { background: #221d14; border-color: var(--gold); color: var(--gold); }
.cmd-sub { display: flex; flex-direction: column; gap: 3px; min-height: 230px; }
.cmd-sub button {
  text-align: left; padding: 8px 10px; border-radius: 5px; font-size: 12.5px;
  border: 0; background: none; color: var(--text);
}
.cmd-sub button:hover:not(:disabled) { background: #22262f; }
.cmd-sub button:disabled { opacity: .35; cursor: not-allowed; }
.cmd-sub .cmd-empty { color: var(--text-dim); font-size: 12px; padding: 28px 8px; text-align: center; line-height: 1.6; }

.whisper-win {
  position: fixed; z-index: 6; width: 300px;
  background: rgba(12,14,18,.94); border: 1px solid var(--border-2); border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0,0,0,.55); display: flex; flex-direction: column;
}
.whisper-win .ww-head {
  display: flex; align-items: center; gap: 6px; padding: 5px 7px;
  border-bottom: 1px solid var(--border); cursor: move; user-select: none;
}
.whisper-win .ww-title { flex: 1; font-size: 12px; font-weight: 800; color: var(--gold); }
.whisper-win .ww-btn {
  width: 18px; height: 18px; line-height: 1; border-radius: 4px;
  background: #191d24; border: 1px solid var(--border-2); color: var(--text-dim); font-size: 12px;
}
.whisper-win .ww-btn:hover { color: var(--text); background: #232833; }
.whisper-win .ww-log {
  height: 150px; overflow-y: auto; padding: 6px 8px; font-size: 12px; line-height: 1.5;
}
.whisper-win .ww-log .w-in  { color: #d49aff; }
.whisper-win .ww-log .w-out { color: #9fb4d4; }
.whisper-win .ww-row { display: flex; gap: 5px; padding: 6px; border-top: 1px solid var(--border); }
.whisper-win .ww-row input {
  flex: 1; background: #0d0f13; border: 1px solid var(--border-2); border-radius: 5px;
  padding: 5px 7px; color: var(--text); font-size: 12px;
}
.whisper-win.minimized .ww-log, .whisper-win.minimized .ww-row { display: none; }

.whisper-tray { bottom: 58px; right: 14px; display: flex; flex-direction: column-reverse; gap: 5px; }
.wt-btn {
  width: 40px; height: 40px; border-radius: 8px; position: relative;
  background: rgba(16,18,24,.92); border: 1px solid var(--border-2); color: var(--text);
  font-size: 11px; font-weight: 800; overflow: hidden;
}
.wt-btn:hover { border-color: var(--gold); }
.wt-btn .wt-n { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 2px; }
.wt-btn.unread { border-color: var(--gold); color: var(--gold); animation: wt-blink .8s steps(2, end) infinite; }
@keyframes wt-blink { 50% { opacity: .35; } }

.tr-intro { grid-column: 1 / -1; color: var(--text-dim); font-size: 12.5px; line-height: 1.6; }
.tr-cost  { grid-column: 1 / -1; font-size: 13px; margin: 6px 0 2px; }
.tr-cost b { color: var(--gold); }
.tr-need  { color: #ff8a6a; }
.rs-row {
  grid-column: 1 / -1; display: grid; grid-template-columns: 210px 1fr;
  gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border);
}
.rs-row .dim { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

.gate-list { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.gate-row {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
  text-align: left; padding: 10px 12px; border-radius: 7px;
  background: #14161c; border: 1px solid var(--border-2); color: var(--text);
}
.gate-row:hover { border-color: var(--gold); background: #1b1f27; }
.gate-row .gr-n { font-size: 13.5px; font-weight: 800; }
.gate-row .gr-d { grid-column: 1; font-size: 11.5px; color: var(--text-dim); }
.gate-row .gr-s { grid-row: 1 / span 2; font-size: 11.5px; font-weight: 800; color: var(--gold); }
.gate-row.soon { opacity: .72; }
.gate-row.soon .gr-s { color: var(--text-dim); font-style: italic; }

.ev-list { display: flex; flex-direction: column; gap: 8px; }
.ev-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 11px 13px; border-radius: 7px;
  background: #14161c; border: 1px solid var(--border-2);
}
.ev-row.short { opacity: .68; }
.ev-row .ev-main { display: flex; align-items: baseline; gap: 9px; }
.ev-row .ev-give { font-size: 13.5px; font-weight: 800; color: var(--gold); }
.ev-row .ev-chance {
  font-size: 11px; font-weight: 800; letter-spacing: .3px;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(212,160,58,.16); color: #d4a03a;
}
.ev-row .ev-cost { grid-column: 1; font-size: 12px; color: var(--text); }
.ev-row .btn { grid-row: 1 / span 2; grid-column: 2; }
.ev-result {
  margin: 0 0 10px; padding: 9px 12px; border-radius: 7px;
  font-size: 12.5px; border: 1px solid var(--border-2);
}
.ev-result.win  { background: rgba(212,160,58,.12); border-color: #6a5220; color: #ffd98a; }
.ev-result.lose { background: rgba(200,70,60,.10); border-color: #5a2a26; color: #e0a099; }

.ts-grid { display: flex; flex-direction: column; gap: 8px; }
.ts-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: center;
  padding: 9px 11px; border-radius: 8px;
  background: #14161c; border: 1px solid var(--border-2);
}

.ts-row.mine { border-color: var(--gold); background: #1a1913; }
.ts-job { font-size: 13px; font-weight: 800; }
.ts-job small { display: block; font-size: 10.5px; font-weight: 400; color: var(--text-dim); }
.ts-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ts-cell {
  padding: 9px 6px; border-radius: 7px; font-size: 12px; font-weight: 700;
  background: #191d24; border: 1px solid var(--border-2); color: var(--text);
}
.ts-cell:hover { border-color: var(--gold); color: #fff; }

.ts-cell.g0 { color: #c8ccd4; }
.ts-cell.g2 { color: #c07aff; border-color: #4a2a6a; }
.ts-cell.g3 { color: #ffc93a; border-color: #6a5220; }
.ts-note { margin: 12px 0 0; font-size: 12px; color: var(--text-dim); }

#screen-login .bg-layer { position: fixed; }

.lp-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 26px; background: rgba(8,9,12,.82);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}

.lp-logo { height: 68px; display: block; }
@media (max-width: 1280px) { .lp-logo { height: 58px; } }
@media (max-width: 900px) { .lp-logo { height: 46px; } }

@media (max-width: 420px) {
  .lp-logo { height: auto; width: min(112px, 22vw); }
  
  .lp-top-ic { gap: 8px; }
}

.lp-page { display: none; }
.lp-page.active { display: block; animation: lp-fade .2s ease-out; }
@keyframes lp-fade { from { opacity: 0; transform: translateY(6px); } }
.lp-nav a.on { color: #fff; }
.lp-nav a.on::after {
  content: ''; display: block; height: 2px; margin-top: 4px;
  background: var(--red); border-radius: 2px;
}

.lp-portal .lp-card { display: block; color: inherit; text-decoration: none; }
.lp-portal .lp-card:hover { border-color: var(--gold); text-decoration: none; }
.lp-badge.live { background: rgba(110,224,122,.16); color: #6ee07a; border-color: #2f6a3a; }

.lp-clanCol { min-width: 0; }
.lp-clanH {
  font-size: 15px; margin: 0 0 10px; padding-bottom: 7px;
  border-bottom: 1px solid var(--border-2);
}
#lp-clanH1 { color: #3d7ac4; }
#lp-clanH2 { color: #c43d3d; }
.lp-list-wide { max-width: 900px; }
.lp-nav { display: flex; gap: 18px; margin-left: auto; }
.lp-nav a { color: var(--text-dim); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.lp-nav a:hover { color: var(--gold); }
.lp-cta {
  padding: 7px 16px; border-radius: 6px; background: var(--red); color: #fff;
  font-size: 12.5px; font-weight: 800; text-decoration: none;
}
.lp-cta:hover { filter: brightness(1.12); }

.lp-lang { display: flex; gap: 4px; align-items: center; }
.lang-btn {
  padding: 5px 9px; border-radius: 5px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-2);
  color: var(--text-dim); font-size: 11.5px; font-weight: 800; letter-spacing: .3px;
}
.lang-btn:hover { color: var(--gold); border-color: var(--gold); }
.lang-btn.active { color: #fff; background: var(--red); border-color: var(--red); }

.set-row .lang-btn { padding: 5px 12px; font-size: 12px; }

.lp-hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 46px 26px 24px; position: relative;
}
.lp-hero-copy { position: relative; z-index: 2; }
.lp-title { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; margin: 6px 0 12px; letter-spacing: -.5px; }
.lp-title span { color: var(--gold); }
.lp-sub { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; max-width: 42ch; }
.lp-actions { display: flex; gap: 10px; margin: 20px 0 14px; }
.lp-play { padding: 11px 26px !important; font-size: 14px; text-decoration: none; }
.lp-ghost {
  padding: 11px 20px; border: 1px solid var(--border-2); border-radius: 7px;
  color: var(--text); font-size: 13.5px; text-decoration: none; background: #14161c;
}
.lp-ghost:hover { border-color: var(--gold); color: var(--gold); }
.lp-hero-stage { position: relative; height: min(46vh, 420px); }
.lp-hero-stage canvas { width: 100%; height: 100%; display: block; }

.lp-sec { max-width: 1180px; margin: 0 auto; padding: 34px 26px; position: relative; z-index: 2; }
.lp-h { font-size: 24px; margin: 0 0 4px; }
.lp-hsub { color: var(--text-dim); font-size: 13px; margin: 0 0 16px; }

.lp-classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lp-cls {
  background: linear-gradient(180deg, #16181f, #101218);
  border: 1px solid var(--border-2); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.lp-cls:hover { border-color: var(--gold); }

.lp-cls .lc-stage { height: 210px; position: relative; }
.lc-bekle {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 26px;
  margin: -13px 0 0 -13px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.12); border-top-color: var(--gold);
  animation: lc-don .9s linear infinite;
}
@keyframes lc-don { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lc-bekle { animation: none; } }
.lp-cls .lc-stage canvas { width: 100%; height: 100%; display: block; }
.lp-cls .lc-body { padding: 12px 14px 16px; border-top: 1px solid var(--border); }
.lp-cls h3 { margin: 0 0 2px; font-size: 15px; }
.lp-cls .lc-tr { color: var(--gold); font-size: 12px; font-weight: 700; }
.lp-cls p { color: var(--text-dim); font-size: 12px; line-height: 1.6; margin: 8px 0 0; }
.lp-cls .lc-w { display: inline-block; margin-top: 9px; font-size: 11px; font-weight: 800;
  color: var(--text); background: #1d2129; border: 1px solid var(--border-2);
  border-radius: 999px; padding: 3px 10px; }

.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-card {
  position: relative; padding: 18px 18px 20px; border-radius: 12px;
  background: linear-gradient(180deg, #16181f, #101218); border: 1px solid var(--border-2);
}
.lp-card h3 { margin: 0 0 8px; font-size: 16px; }
.lp-card p { color: var(--text-dim); font-size: 12.5px; line-height: 1.65; margin: 0; }
.lp-badge {
  position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 800;
  padding: 3px 9px; border-radius: 999px; background: #2a2113; color: var(--gold);
  border: 1px solid #4a3a1a; text-transform: lowercase;
}
.lp-card.soon h3 { color: var(--text-dim); }

.lp-two { display: grid; grid-template-columns: 1fr 1fr; max-width: 1180px; margin: 0 auto; }
.lp-two .lp-sec { max-width: none; padding-left: 26px; padding-right: 26px; }
.lp-list {
  background: #101218; border: 1px solid var(--border-2); border-radius: 10px;
  max-height: 320px; overflow-y: auto;
}
.lp-row {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px;
}
.lp-row:last-child { border-bottom: 0; }
.lp-row .lr-i { color: var(--text-dim); font-weight: 800; text-align: right; }
.lp-row .lr-n { font-weight: 700; }
.lp-row .lr-s { color: var(--text-dim); font-size: 11.5px; }
.lp-row .lr-v { color: var(--gold); font-weight: 800; font-size: 12px; }
.lp-empty { padding: 26px; text-align: center; color: var(--text-dim); font-size: 12.5px; }

.lp-notes { display: flex; flex-direction: column; gap: 12px; }
.lp-note {
  background: #101218; border: 1px solid var(--border-2); border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 14px 16px;
}
.lp-note h4 { margin: 0 0 3px; font-size: 14px; }
.lp-note .ln-d { color: var(--text-dim); font-size: 11.5px; margin-bottom: 7px; }
.lp-note ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 12.5px; line-height: 1.75; }

.srv-wrap {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 22px; padding: 24px;
}
.srv-logo { height: 54px; width: auto; filter: drop-shadow(0 6px 22px rgba(0,0,0,.8)); }

.srv-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  
  pointer-events: none;
}
.srv-bg img, .srv-bg video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none;
}
.srv-bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 72% at 50% 45%, transparent 38%, rgba(0,0,0,.86) 100%);
}
.srv-bg.bos {
  background:
    radial-gradient(58% 52% at 26% 34%, rgba(212,34,34,.22), transparent 70%),
    radial-gradient(52% 48% at 76% 62%, rgba(61,122,196,.18), transparent 70%),
    linear-gradient(180deg, #14161d, #08090c);
}

.srv-win {
  position: relative; width: min(420px, 100%);
  background:
    linear-gradient(180deg, rgba(30,25,18,.6), rgba(10,11,14,.94)),
    linear-gradient(180deg, #15171e, #0d0f14);
  border: 1px solid rgba(150,120,60,.42);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.7),
    inset 0 0 0 2px rgba(150,120,60,.16),
    0 24px 70px rgba(0,0,0,.72);
  padding: 0 0 12px;
}
.srv-win-h {
  padding: 9px 14px; font-size: 12px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  background: linear-gradient(180deg, rgba(150,120,60,.22), rgba(150,120,60,.05));
  border-bottom: 1px solid rgba(150,120,60,.34);
}
.srv-list {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px; max-height: min(46vh, 380px); overflow-y: auto;
}

.srv-row {
  display: grid; grid-template-columns: 1fr 108px; gap: 4px 12px;
  align-items: center; text-align: left; cursor: pointer;
  padding: 9px 11px; border-radius: 3px;
  background: #12141a; border: 1px solid var(--border-2); color: var(--text);
  transition: border-color .12s, background .12s;
}
.srv-row:hover:not(:disabled) { border-color: var(--gold); background: #1b1f27; }
.srv-row.on { border-color: var(--gold); background: #221d13; box-shadow: inset 0 0 0 1px rgba(212,160,58,.35); }
.srv-row:disabled { opacity: .45; cursor: not-allowed; }
.srv-row .sv-n { font-size: 14px; font-weight: 800; }
.srv-row .sv-d { grid-column: 1; font-size: 10.5px; color: var(--text-dim); }

.sv-bar {
  grid-column: 2; grid-row: 1; align-self: center;
  height: 12px; border-radius: 2px; overflow: hidden;
  background: #0a0c10; border: 1px solid #2a3140; position: relative;
}
.sv-bar i {
  display: block; height: 100%; border-radius: 1px;
  background: linear-gradient(180deg, #7fe08a, #3aa04a);
  transition: width .5s ease, background .3s;
}
.sv-bar.orta i { background: linear-gradient(180deg, #f0d67a, #c9a134); }
.sv-bar.yogun i { background: linear-gradient(180deg, #f0a06a, #c96a24); }
.sv-bar.dolu i { background: linear-gradient(180deg, #f07a7a, #c93434); }
.sv-bar::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(0,0,0,.55) 1px, transparent 1px);
  background-size: 10% 100%;
}

.sv-yuk {
  grid-column: 2; grid-row: 2; font-size: 10px; color: var(--text-dim);
  text-align: right; letter-spacing: .04em;
}

.srv-err {
  margin: 0 12px 8px; padding: 8px 11px; border-radius: 3px;
  background: rgba(201,52,52,.12); border: 1px solid rgba(201,52,52,.4);
  color: #f0a0a0; font-size: 12px;
}
.srv-err[hidden] { display: none; }
.srv-foot {
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
}
.srv-acc {
  flex: 1; min-width: 0; font-size: 11.5px; color: var(--text-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.srv-conn {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 7, 10, .72); padding: 24px;
}
.srv-conn[hidden] { display: none; }
.srv-conn-box {
  width: min(380px, 100%);
  background: linear-gradient(180deg, #15171e, #0d0f14);
  border: 1px solid rgba(150,120,60,.42); border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.7), 0 24px 70px rgba(0,0,0,.75);
}
.srv-conn-h {
  padding: 8px 13px; font-size: 12px; font-weight: 800; color: var(--gold);
  letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(150,120,60,.22), rgba(150,120,60,.05));
  border-bottom: 1px solid rgba(150,120,60,.34);
}
.srv-conn-body { padding: 16px 16px 14px; }
.srv-conn-t { margin: 0 0 12px; font-size: 13.5px; color: var(--text); }
.srv-conn-yol {
  height: 10px; border-radius: 2px; background: #0a0c10;
  border: 1px solid #2a3140; overflow: hidden;
}
.srv-conn-dolu {
  height: 100%; width: 0%;
  background: linear-gradient(180deg, #e6c877, #b8912f);
  transition: width .3s ease;
}
.srv-conn-adim {
  margin: 8px 0 0; font-size: 11px; color: var(--text-dim);
  min-height: 14px;
}

@media (max-width: 560px) {
  .srv-logo { height: 42px; }
  .srv-row { grid-template-columns: 1fr 84px; }
}

@media (max-width: 900px) {
  .lp-hero, .lp-two { grid-template-columns: 1fr; }
  .lp-classes { grid-template-columns: repeat(2, 1fr); }
  .lp-cards { grid-template-columns: 1fr; }
  
}

.lp-bigLogo { width: min(360px, 68vw); display: block; margin: 0 0 14px; }

#screen-login { scrollbar-width: thin; scrollbar-color: #c8a34a #0d0f13; }
#screen-login::-webkit-scrollbar { width: 12px; }
#screen-login::-webkit-scrollbar-track { background: #0a0b0e; }
#screen-login::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c8a34a, #8a6a2a);
  border: 3px solid #0a0b0e; border-radius: 999px;
}
#screen-login::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #e0b85a, #a07f33); }
.lp-list { scrollbar-width: thin; scrollbar-color: #3a3f4a #101218; }
.lp-list::-webkit-scrollbar { width: 9px; }
.lp-list::-webkit-scrollbar-track { background: #0d0f13; }
.lp-list::-webkit-scrollbar-thumb { background: #3a3f4a; border: 2px solid #0d0f13; border-radius: 999px; }
.lp-list::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.lp-foot {
  position: relative; z-index: 2; max-width: 1180px; margin: 0 auto;
  padding: 40px 26px 60px; text-align: center; border-top: 1px solid var(--border);
}
.lp-footLogo { width: 190px; opacity: .7; margin-bottom: 10px; }
.lp-foot p { color: var(--text-dim); font-size: 12.5px; margin: 0 0 14px; }
.lp-footRow { display: flex; gap: 18px; justify-content: center; color: var(--text-dim); font-size: 12px; }
.lp-footRow a { color: var(--gold); cursor: pointer; }

.lp-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.lp-modal[hidden] { display: none; }
.lp-modal-bg { position: absolute; inset: 0; background: rgba(4,5,7,.82); backdrop-filter: blur(6px); }

.lp-modal-box {
  position: relative; z-index: 1;
  width: min(880px, 96vw); max-height: min(680px, 92vh);
  display: grid; grid-template-columns: 1fr 340px;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #15171e, #0d0f13);
  border: 1px solid var(--border-2); box-shadow: 0 24px 70px rgba(0,0,0,.7);
  animation: lp-pop .18s ease-out;
}
@keyframes lp-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.lp-modal-x {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 28px; height: 28px;
  border-radius: 7px; background: #1b1f27; border: 1px solid var(--border-2);
  color: var(--text-dim); font-size: 16px; line-height: 1;
}
.lp-modal-x:hover { color: var(--text); border-color: var(--gold); }

.lm-side {
  padding: 26px 24px; overflow-y: auto;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(196,61,61,.16), transparent 60%),
    linear-gradient(180deg, #14161d, #0f1116);
  border-right: 1px solid var(--border-2);
}
.lp-modalLogo { width: 200px; display: block; margin: 2px 0 10px; }
.lm-tag { color: var(--text-dim); font-size: 12.5px; line-height: 1.7; margin: 0 0 18px; }
.lm-tag b { color: var(--text); }
.lm-classes { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.lm-cls {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 11px; border-radius: 9px;
  background: #14161c; border: 1px solid var(--border-2);
}
.lm-cls .lc-i { font-size: 19px; line-height: 1; }
.lm-cls .lc-t { display: block; font-size: 12.5px; font-weight: 800; }
.lm-cls .lc-s { display: block; font-size: 10.5px; color: var(--text-dim); }
.lm-note { color: var(--text-dim); font-size: 11.5px; margin: 16px 0 0; line-height: 1.6; }

.lm-main { display: flex; flex-direction: column; min-height: 0; padding: 26px 24px 22px; }
.lm-tabs { margin: 0 0 20px; }
.lm-forms { flex: 1; min-height: 0; overflow-y: auto; }
.lm-main label { text-align: left; }

@media (max-width: 760px) {
  
  .lp-modal-box { grid-template-columns: 1fr; }
  .lm-side { display: none; }
}

.tdw-join {
  position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 40;
  width: min(420px, 92vw); padding: 0 0 14px; border-radius: 12px; text-align: center;
  background: linear-gradient(180deg, #1d1710, #12100c);
  border: 1px solid var(--gold); box-shadow: 0 14px 44px rgba(0,0,0,.6);
  animation: tj-in .25s ease-out;
}
.tdw-join[hidden] { display: none; }
@keyframes tj-in { from { opacity: 0; transform: translate(-50%, -14px); } }
.tdw-join .tj-head {
  display: flex; align-items: center; gap: 8px; cursor: move; user-select: none;
  padding: 8px 10px 8px 14px; font-size: 13.5px; font-weight: 800; color: var(--gold);
  border-bottom: 1px solid #3a2f1a; background: rgba(200,163,74,.08);
}
.tdw-join .tj-t { flex: 1; text-align: left; }
.tdw-join .tj-btn {
  width: 22px; height: 22px; border-radius: 5px; line-height: 1;
  background: #191d24; border: 1px solid var(--border-2); color: var(--text-dim);
}
.tdw-join .tj-btn:hover { color: var(--text); border-color: var(--gold); }

.tdw-join.min .tj-wrap { display: none; }
.tdw-join.min { padding-bottom: 0; }
.tdw-join.min .tj-head { border-bottom: none; }
.tdw-join .tj-mini { display: none; }
.tdw-join.min .tj-mini {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  color: var(--text); letter-spacing: .3px; white-space: nowrap;
}
.tdw-join.min .tj-mini b { color: var(--gold); }
.tdw-join .tj-names {
  display: flex; flex-wrap: wrap; gap: 5px; justify-content: center;
  padding: 0 14px 10px; max-height: 76px; overflow-y: auto;
}
.tdw-join .tj-names span {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: #1d2129; border: 1px solid var(--border-2); color: var(--text-dim);
}
.tdw-join .tj-names span.on { color: #8ef07a; border-color: #2f5a35; }
.tdw-join .tj-body { padding: 13px 18px 9px; font-size: 13px; line-height: 1.7; color: var(--text); }
.tdw-join .tj-body b { color: var(--gold); }
.tdw-join .tj-row { display: flex; gap: 10px; justify-content: center; }
.tdw-join .tj-row .btn { padding: 8px 22px; }

.tdw-hud {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 12;
  width: min(360px, 84vw); padding: 9px 13px 10px; border-radius: 10px;
  background: rgba(12,14,18,.86); border: 1px solid var(--border-2);
}
.tdw-hud[hidden] { display: none; }
.tdw-hud .th-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.tdw-hud .th-top b { color: var(--gold); }
.tdw-hud .th-castle { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; font-size: 11.5px; }
.tdw-hud .th-lbl { color: var(--text-dim); font-weight: 700; }
.tdw-hud .th-bar { height: 10px; background: #24160f; border-radius: 999px; overflow: hidden; }
.tdw-hud .th-bar i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #e0b85a, #c85a3a); transition: width .25s;
}
.tdw-hud .th-sub { margin-top: 5px; font-size: 11px; color: var(--text-dim); text-align: right; }

.tdw-tower {
  position: fixed; bottom: 210px; left: 14px; z-index: 22;
  width: min(360px, 42vw); border-radius: 12px; overflow: hidden;
  background: rgba(12,14,18,.95); border: 1px solid var(--gold);
  box-shadow: 0 14px 44px rgba(0,0,0,.6);
  max-height: 46vh; overflow-y: auto;
}
.tdw-tower[hidden] { display: none; }
.tdw-tower .tt-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-bottom: 1px solid #3a2f1a; background: rgba(200,163,74,.08); font-size: 13px;
}
.tdw-tower .tt-head b { color: var(--gold); }
.tdw-tower .tt-coin { margin-left: auto; color: var(--text-dim); font-size: 12px; }
.tdw-tower .tt-coin b { color: #7ad4ff; }
.tdw-tower .tt-x { width: 22px; height: 22px; border-radius: 5px; background: #191d24; border: 1px solid var(--border-2); color: var(--text-dim); }
.tdw-tower .tt-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding: 10px; }
.tw-card {
  text-align: left; padding: 9px 11px; border-radius: 8px;
  background: #14161c; border: 1px solid var(--border-2); color: var(--text);
}
.tw-card:hover:not(:disabled) { border-color: var(--gold); background: #1b1f27; }
.tw-card:disabled { opacity: .4; cursor: not-allowed; }
.tw-card .tw-n { display: block; font-size: 12.5px; font-weight: 800; }
.tw-card .tw-d { display: block; font-size: 11px; color: var(--text-dim); line-height: 1.5; margin: 3px 0 5px; }
.tw-card .tw-c { font-size: 11.5px; font-weight: 800; color: #7ad4ff; }
.tw-card .tw-e { float: right; font-size: 11px; color: var(--gold); }

.tdw-count {
  position: fixed; top: 34%; left: 50%; transform: translateX(-50%); z-index: 45;
  text-align: center; pointer-events: none;
}
.tdw-count[hidden] { display: none; }
.tdw-count b {
  display: block; font-size: 92px; line-height: 1; font-weight: 900; color: var(--gold);
  text-shadow: 0 6px 30px rgba(0,0,0,.85), 0 0 40px rgba(200,163,74,.5);
  animation: tc-pop .4s ease-out;
}
.tdw-count span { display: block; margin-top: 4px; font-size: 14px; font-weight: 800; color: #fff; text-shadow: 0 2px 10px #000; }
@keyframes tc-pop { from { transform: scale(1.45); opacity: .2; } }

#enter-fade {
  position: fixed; inset: 0; z-index: 9000; background: #05060a;
  opacity: 0; pointer-events: none; transition: opacity .55s ease;
}
#enter-fade[hidden] { display: none; }
#enter-fade.on { opacity: 1; pointer-events: auto; }

.loading-steps {
  margin-top: 18px; min-height: 92px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px;
  text-align: left; justify-content: center;
}
.loading-step {
  font-size: 12.5px; color: #4e515a; margin: 3px 0;
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease, color .3s ease;
  display: flex; align-items: center; gap: 7px;
}
.loading-step::before {
  content: ''; width: 13px; height: 13px; flex: 0 0 13px;
  border-radius: 50%; border: 1.5px solid #33363e;
  transition: border-color .3s, background .3s;
}
.loading-step.on { opacity: 1; transform: none; color: #b9bdc7; }

.loading-step.on:not(.done)::before {
  border-color: var(--red) transparent var(--red) var(--red);
  animation: ld-spin .7s linear infinite;
}
.loading-step.done { color: #6ee07a; }
.loading-step.done::before {
  content: '✓'; border-color: #2f6a35; background: #16281a; color: #6ee07a;
  font-size: 9px; font-weight: 900; display: grid; place-items: center;
  animation: none;
}
@keyframes ld-spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .loading-steps { grid-template-columns: 1fr; min-height: 0; }
}

.bdw-sides { display: flex; gap: 8px; margin: 6px 0; }
.bdw-sides .bs { flex: 1 1 0; text-align: center; padding: 3px 6px; border-radius: 4px;
                 font-size: 12px; background: rgba(255, 255, 255, .05); }

.bdw-sides .bs1, .bs1 { color: #6aa8ff; }
.bdw-sides .bs2, .bs2 { color: #ff6a6a; }

.bdw-hud {
  position: fixed; top: 96px; left: 14px; z-index: 12;
  padding: 5px 8px; border-radius: 8px;
  background: rgba(10, 12, 16, .42);
  border: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(3px);
  font-size: 12.5px; user-select: none;
}
.bdw-hud[hidden] { display: none; }
.bdw-hud .bh-row { display: flex; align-items: center; gap: 10px; }
.bdw-hud #bdw-score { font-weight: 800; letter-spacing: .3px; }
.bdw-hud #bdw-time { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.bdw-hud .bh-altar { color: var(--text-dim); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.bdw-hud .bh-quit {
  width: 20px; height: 20px; line-height: 1; border-radius: 5px;
  background: transparent; border: 1px solid var(--border-2); color: var(--text-dim);
  font-size: 11px; cursor: pointer;
}
.bdw-hud .bh-quit:hover { color: #ff7a6a; border-color: #7a3a32; }
.bdw-hud .bdw-me { color: #ffd34a; }

.cz-board {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 60; pointer-events: none;
  width: min(760px, 94vw); max-height: 78vh;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(10, 12, 16, .90);
  border: 1px solid var(--border); box-shadow: 0 18px 60px rgba(0,0,0,.7);
}
.cz-board[hidden] { display: none; }
.czb-head { font-size: 13px; font-weight: 800; margin-bottom: 9px; color: var(--gold); }
.czb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.czb-col { min-width: 0; max-height: 62vh; overflow: hidden; }
.czb-title {
  font-size: 13.5px; font-weight: 800; padding-bottom: 5px; margin-bottom: 5px;
  border-bottom: 1px solid var(--border-2);
}
.czb-title span { color: var(--text-dim); font-weight: 600; font-size: 11.5px; }
.czb-hdr, .czb-row {
  display: grid; grid-template-columns: 26px 1fr 30px 62px 54px;
  gap: 6px; align-items: center; font-size: 11.5px;
}
.czb-hdr { color: var(--text-dim); font-weight: 700; padding: 2px 0 4px; }
.czb-row { padding: 2px 0; }

.czb-row.me { background: rgba(255, 211, 74, .12); border-radius: 4px; }
.czb-row.me .czb-n { color: var(--gold); font-weight: 700; }
.czb-i { color: var(--text-dim); text-align: right; }
.czb-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.czb-lv, .czb-kd { color: var(--text-dim); }
.czb-np { color: #8ef07a; font-variant-numeric: tabular-nums; }
.czb-bos { color: var(--text-dim); font-size: 11.5px; padding: 6px 0; }
.czb-tip { margin-top: 8px; font-size: 10.5px; color: var(--text-dim); text-align: center; }

.c-all.gm-say, .c-shout.gm-say, .c-nation.gm-say, .c-party.gm-say, .c-clan.gm-say {
  color: #ffd34a !important;
  text-shadow: 0 0 8px rgba(255, 211, 74, .55);
}
.gm-say b { color: #fff0b0 !important; }
.gm-tag {
  display: inline-block; padding: 0 6px; margin-right: 4px; border-radius: 4px;
  font-size: 10px; font-weight: 900; letter-spacing: .6px; vertical-align: 1px;
  color: #201a06; background: linear-gradient(180deg, #ffe98a, #e0a83a);
  box-shadow: 0 0 10px rgba(255, 211, 74, .7);
  animation: gm-parla 1.8s ease-in-out infinite;
}
@keyframes gm-parla {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 211, 74, .45); }
  50%      { box-shadow: 0 0 16px rgba(255, 211, 74, .95); }
}

.panel-gm {
  top: 80px; left: 50%; transform: translateX(-50%);
  width: min(420px, 94vw); max-height: 76vh; flex-direction: column;
}
.panel-gm #gm-body { overflow-y: auto; padding: 10px 13px 13px; }
.gm-where {
  font-size: 12px; color: var(--text-dim); margin-bottom: 8px;
  padding-bottom: 7px; border-bottom: 1px solid var(--border);
}
.gm-where b { color: var(--gold); }
.gm-sec { margin-bottom: 14px; }
.gm-h { font-size: 12.5px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.gm-sec select, .gm-sec input[type="text"], .gm-sec input[type="search"] {
  width: 100%; padding: 6px 8px; border-radius: 6px; font-size: 12.5px;
  background: #14161c; border: 1px solid var(--border); color: var(--text);
}

.gm-ara { margin-bottom: 5px; }
.gm-ara:focus { outline: none; border-color: var(--gold); }

.gm-chk {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px; font-size: 11.5px; color: var(--text-dim); cursor: pointer;
}
.gm-chk input { width: auto; margin: 0; cursor: pointer; }
.gm-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 7px; }
.gm-row label { display: flex; gap: 5px; align-items: center; font-size: 11.5px; color: var(--text-dim); }
.gm-row input[type="number"] {
  width: 68px; padding: 4px 6px; border-radius: 5px; font-size: 12px;
  background: #14161c; border: 1px solid var(--border); color: var(--text);
}
.gm-row .btn { padding: 5px 12px; font-size: 12px; }

.nt-block {
  margin: 6px 0; padding: 7px 11px; border-radius: 7px; font-size: 12.5px;
  background: rgba(224, 90, 74, .10); border: 1px solid #7a3a32; color: #ffb0a4;
}

.panel-npc.npc-wide {
  width: min(780px, 94vw);
  right: auto; left: 50%; transform: translateX(-50%);
  top: 7vh; max-height: 86vh;
}
.panel-npc.npc-wide #npc-body { overflow: visible; padding: 0 !important; }

.nt-wrap { padding: 20px 22px 22px; }
.nt-lead { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin-bottom: 18px; }
.nt-lead b { color: var(--gold); }

.nt-stage {
  display: grid; grid-template-columns: 1fr 74px 1fr; align-items: center;
  gap: 4px; margin-bottom: 20px;
}
.nt-card {
  --nt: #6a7080;
  position: relative; padding: 12px 12px 10px; border-radius: 14px;
  border: 1px solid var(--border-2);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(0,0,0,.35));
}

.nt-card.nt-target {
  border-color: color-mix(in srgb, var(--nt) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--nt) 28%, transparent),
              0 14px 40px rgba(0,0,0,.45);
}
.nt-n1 { --nt: #5a9bff; }        
.nt-n2 { --nt: #ff6a5a; }        

.nt-badge {
  text-align: center; font-weight: 800; font-size: 15px; letter-spacing: .4px;
  color: var(--nt); margin-bottom: 10px;
  text-shadow: 0 0 18px color-mix(in srgb, var(--nt) 45%, transparent);
}

.nt-card canvas {
  display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
  
  background: linear-gradient(180deg, #0e1116, #070a0d);
}
.nt-card canvas {
  background:
    radial-gradient(62% 52% at 50% 30%, color-mix(in srgb, var(--nt) 16%, transparent), transparent 72%),
    linear-gradient(180deg, #0e1116, #070a0d);
}
.nt-cap {
  margin-top: 9px; text-align: center; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.1px; color: var(--text-dim);
}

.nt-arrow { position: relative; display: grid; place-items: center; height: 100%; }
.nt-arrow i {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #ff6a5a, var(--gold), #5a9bff);
  opacity: .5;
}
.nt-arrow span {
  position: relative; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--border-2);
  color: var(--gold); font-size: 13px;
  box-shadow: 0 0 22px rgba(255,198,58,.18);
}

.nt-doc {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-radius: 12px; border: 1px solid var(--border-2);
  background: linear-gradient(180deg, rgba(255,198,58,.07), rgba(0,0,0,.25));
}
.nt-doc.lack { background: linear-gradient(180deg, rgba(255,90,74,.09), rgba(0,0,0,.25)); }
.nt-doc-n {
  font-size: 30px; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.nt-doc.lack .nt-doc-n { color: #ff8a7a; }
.nt-doc-l { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }
.nt-doc-l em { font-style: normal; font-size: 11px; color: #7c8290; }

.nt-blocks { display: grid; gap: 8px; margin-top: 12px; }
.nt-block {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px;
  border-radius: 10px; border: 1px solid #6a2626; background: #2a1416;
  color: #ffb0a4; font-size: 12.5px; line-height: 1.45;
}
.nt-block i {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-style: normal; font-weight: 900;
  background: #6a2626; color: #ffd0c8; font-size: 12px;
}

.nt-go { width: 100%; margin-top: 16px; padding: 13px; font-size: 14px; letter-spacing: .6px; }
.nt-warn { margin-top: 11px; font-size: 11.5px; color: #7c8290; line-height: 1.55; text-align: center; }
.nt-warn b { color: #ff9a8a; }

@media (max-width: 720px) {
  .nt-stage { grid-template-columns: 1fr; gap: 10px; }
  .nt-arrow { height: 40px; transform: rotate(90deg); }
}

#zone-banner {
  position: fixed; left: 50%; top: 16%; transform: translate(-50%, -14px);
  z-index: 60; pointer-events: none;
  font-size: 40px; font-weight: 800; letter-spacing: 2.5px;
  color: #fff; text-align: center; white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0,0,0,.6), 0 0 26px rgba(255,214,110,.55), 0 6px 30px rgba(0,0,0,.75);
  opacity: 0; transition: opacity .45s ease, transform .45s ease;
}
#zone-banner.show { opacity: 1; transform: translate(-50%, 0); }

.cb-stage {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  margin: 14px 0 12px; padding: 14px;
  border-radius: 12px; border: 1px solid var(--border-2);
  background: radial-gradient(80% 70% at 50% 20%, rgba(255,198,58,.10), transparent 70%),
              linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.28));
}
.cb-slot {
  width: 96px; height: 96px; display: grid; place-items: center; position: relative;
  border-radius: 12px; border: 2px dashed var(--border-2); background: rgba(0,0,0,.35);
  transition: border-color .15s, box-shadow .15s;
}
.cb-slot.filled { border-style: solid; border-color: var(--gold); box-shadow: 0 0 18px rgba(255,198,58,.25) inset; }
.cb-slot.drag-over { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,198,58,.28); }
.cb-slot .cb-hint { font-size: 11px; color: var(--text-dim); text-align: center; padding: 0 8px; line-height: 1.35; }
.cb-slot .qty { position: absolute; right: 5px; bottom: 3px; font-size: 12px; font-weight: 800; }
.cb-name { font-weight: 700; font-size: 13.5px; }
.cb-list-label { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-dim); margin: 6px 0 5px; }
.cb-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-item {
  width: 44px; height: 44px; display: grid; place-items: center; position: relative;
  border-radius: 8px; border: 1px solid var(--border-2); background: rgba(0,0,0,.3); cursor: pointer;
}
.cb-item:hover { border-color: var(--gold); }
.cb-item.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,198,58,.3); }
.cb-item .qty { position: absolute; right: 2px; bottom: 0; font-size: 11px; font-weight: 800; }
.cb-prize { color: var(--gold); }
.cb-prize.uq { color: #ff9a3a; text-shadow: 0 0 12px rgba(255,154,58,.6); }

#cb-burst {
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(45% 38% at 50% 46%, rgba(255,154,58,.28), transparent 72%);
}
#cb-burst.show { opacity: 1; }
#cb-burst span {
  font-size: 54px; font-weight: 900; letter-spacing: 5px; color: #ffca6a;
  text-shadow: 0 0 34px rgba(255,154,58,.85), 0 3px 0 rgba(0,0,0,.55);
  transform: scale(.86); transition: transform .5s cubic-bezier(.2,1.4,.4,1);
}
#cb-burst.show span { transform: scale(1); }
#cb-burst em { font-style: normal; font-size: 21px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.8); }

#fs-notice {
  position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 12px);
  z-index: 65; pointer-events: none;
  display: flex; align-items: center; gap: 12px;
  max-width: min(520px, 88vw); padding: 13px 18px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(24,27,34,.97), rgba(14,16,20,.97));
  box-shadow: 0 14px 44px rgba(0,0,0,.7);
  font-size: 13px; line-height: 1.5; color: #d8dae0;
  opacity: 0; transition: opacity .4s ease, transform .4s ease;
}
#fs-notice.show { opacity: 1; transform: translate(-50%, 0); }
#fs-notice .fs-ico { font-size: 24px; color: var(--gold); flex: 0 0 auto; }
#fs-notice b { color: #fff; }
#fs-notice kbd {
  display: inline-block; padding: 2px 8px; margin: 0 1px;
  border-radius: 5px; border: 1px solid rgba(255,255,255,.22);
  background: #23262e; color: #fff;
  font: 700 12px/1.4 ui-monospace, Menlo, Consolas, monospace;
  box-shadow: 0 2px 0 rgba(0,0,0,.5);
}

.set-gpu { margin: 2px 2px 6px; font-size: 11.5px; line-height: 1.5; color: var(--text-dim); }
.set-gpu .gpu-uyari { color: #ffb04a; }
.set-gpu .dim { color: #7b8088; }

.cn-wrap { margin-top: 8px; }
.cn-lbl { display: flex; font-size: 11.5px; color: var(--text-dim); margin-bottom: 4px; }
.cn-say { margin-left: auto; }
.cn-wrap textarea {
  width: 100%; resize: vertical; min-height: 54px; font: inherit; font-size: 12px;
  line-height: 1.5; background: #15171c; color: var(--text);
  border: 1px solid var(--border-2); border-radius: 6px; padding: 6px 8px;
}
.cn-wrap .btn { margin-top: 6px; }

.cn-read {
  font-size: 12px; line-height: 1.55; color: var(--text);
  background: #15171c; border: 1px solid var(--border-2); border-radius: 6px;
  padding: 6px 8px; white-space: pre-wrap; word-break: break-word;
}

.cm-asst { font-size: 9.5px; font-weight: 800; color: #6aa8e0; letter-spacing: .4px; }
.cm-rank {
  margin-left: 4px; width: 20px; height: 20px; flex: none; line-height: 1;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border-2); border-radius: 4px; cursor: pointer;
}
.cm-rank:hover { color: #6aa8e0; border-color: #2f5480; }

.store-overlay {
  position: absolute; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,7,10,.88); backdrop-filter: blur(3px);
  animation: stAc .16s ease-out;
}

.store-overlay[hidden] { display: none; }
@keyframes stAc { from { opacity: 0; } to { opacity: 1; } }
.store-x {
  position: absolute; top: 10px; right: 12px;
  width: 34px; height: 34px; font-size: 24px; line-height: 1;
  color: var(--text-dim); background: transparent; border: 0; cursor: pointer;
  border-radius: 8px;
}
.store-x:hover { color: var(--text); background: rgba(255,255,255,.06); }

.store-box {
  position: relative;
  width: min(1160px, 95vw); height: min(740px, 92vh);
  display: flex; flex-direction: column;
  background: var(--panel-2); border: 1px solid var(--border-2);
  border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.st-bas {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 58px 12px 18px;
  border-bottom: 1px solid var(--border); background: rgba(0,0,0,.32);
}
.st-logo { height: 26px; opacity: .9; }
.st-bas-ad {
  font: 800 17px/1 var(--font); color: var(--gold); letter-spacing: .4px;
}
.st-bakiye {
  margin-left: auto; display: flex; align-items: baseline; gap: 8px;
  padding: 6px 14px; border-radius: 8px;
  background: rgba(216,180,90,.10); border: 1px solid rgba(216,180,90,.28);
}
.st-bakiye span { font-size: 11.5px; color: var(--text-dim); }
.st-bakiye b { font-size: 15px; color: var(--gold); }

.st-govde { flex: 1; display: grid; grid-template-columns: 178px 1fr 296px; min-height: 0; }

.st-tabs {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 10px;
  border-right: 1px solid var(--border); background: rgba(0,0,0,.18);
  overflow-y: auto;
}
.st-tab {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--text-dim);
  font: 600 13px/1 var(--font); text-align: left; transition: .12s;
}
.st-tab i { font-style: normal; font-size: 15px; width: 18px; text-align: center; }
.st-tab:hover { background: rgba(255,255,255,.05); color: var(--text); }
.st-tab.on { background: rgba(216,180,90,.13); color: var(--gold); }

.st-grid {
  padding: 14px; overflow-y: auto; align-content: start;
  display: grid; gap: 11px;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}
.st-card {
  position: relative; display: flex; flex-direction: column; gap: 5px;
  padding: 14px 13px 11px; cursor: pointer; text-align: left;
  background: rgba(255,255,255,.035); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: var(--font);
  transition: .12s;
}
.st-card:hover { background: rgba(255,255,255,.06); border-color: var(--border-2); }
.st-card.on { border-color: var(--gold); background: rgba(216,180,90,.09); }
.st-rozet {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 7px; border-radius: 5px; font: 700 9.5px/1.5 var(--font);
  font-style: normal; letter-spacing: .4px;
  background: var(--red); color: #fff;
}
.st-ikon { font-size: 30px; line-height: 1.1; }
.st-ad { font: 700 13.5px/1.3 var(--font); }
.st-ozet { font-size: 11.5px; line-height: 1.5; color: var(--text-dim); flex: 1; }
.st-alt {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 6px; margin-top: 4px; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.st-fiyat b { font-size: 14px; color: var(--gold); }
.st-fiyat s { font-size: 11px; color: var(--text-dim); margin-right: 5px; }
.st-sure { font-size: 10.5px; color: var(--text-dim); }

.st-detail {
  padding: 16px; overflow-y: auto;
  border-left: 1px solid var(--border); background: rgba(0,0,0,.18);
}
.st-d-bas { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.st-d-ikon {
  width: 54px; height: 54px; flex: none; display: grid; place-items: center;
  font-size: 28px; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
}
.st-d-ad { font: 800 15px/1.3 var(--font); color: var(--text); }
.st-d-sure { font-size: 11.5px; color: var(--gold); margin-top: 3px; }
.st-d-ozet { font-size: 12.5px; line-height: 1.6; color: var(--text-dim); margin-bottom: 14px; }
.st-d-baslik {
  font: 700 10.5px/1 var(--font); letter-spacing: .8px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 8px;
}
.st-d-liste { list-style: none; margin: 0 0 16px; padding: 0; }
.st-d-liste li {
  position: relative; padding: 4px 0 4px 16px;
  font-size: 12px; line-height: 1.5; color: var(--text);
}
.st-d-liste li::before {
  content: '›'; position: absolute; left: 3px; top: 3px; color: var(--gold);
}
.st-d-fiyat {
  display: flex; align-items: baseline; gap: 7px; margin-bottom: 10px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.st-d-fiyat b { font-size: 21px; color: var(--gold); }
.st-d-fiyat s { font-size: 13px; color: var(--text-dim); }
.st-d-fiyat span { font-size: 11.5px; color: var(--text-dim); }
.st-al { width: 100%; }
.st-d-not { font-size: 10.5px; line-height: 1.55; color: var(--text-dim); margin-top: 9px; text-align: center; }

.st-d-not.uyar { color: var(--gold); animation: stUyar .45s ease-out 2; }
@keyframes stUyar { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (max-width: 900px) {
  .st-govde { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .st-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .st-detail { border-left: 0; border-top: 1px solid var(--border); max-height: 40%; }
}

#panel-inventory { overflow: visible; }
#panel-inventory > header { border-radius: 10px 10px 0 0; }

.inv-ext-tab {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 14px; height: 56px; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-left: 0; border-radius: 0 7px 7px 0;
  color: var(--text-dim); transition: .12s;
}
.inv-ext-tab i { font-style: normal; font-size: 9px; line-height: 1; }
.inv-ext-tab:hover { color: var(--gold); background: rgba(216,180,90,.12); }
.inv-ext-tab.on { color: var(--gold); background: rgba(216,180,90,.16); }

.ko-ui .inv-ext-tab {
  border: 1px solid var(--ko-gold); border-left: 0; border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #2a2823, #3b3931);
  color: var(--ko-ink-dim); box-shadow: inset -1px 0 0 rgba(0,0,0,.5);
}
.ko-ui .inv-ext-tab:hover, .ko-ui .inv-ext-tab.on {
  color: var(--ko-btn-ink); background: linear-gradient(90deg, #3b3931, #4a4740);
}

#panel-inventory > .inv-ext {
  position: absolute; top: 0; right: calc(100% + 8px);
  width: 216px; padding: 12px; overflow: visible;
  background: var(--panel-2); border: 1px solid var(--border-2);
  border-radius: 11px; box-shadow: var(--shadow);
  animation: extAc .16s ease-out;
}

#panel-inventory > .inv-ext.sag { right: auto; left: calc(100% + 8px); }
.inv-ext[hidden] { display: none; }
@keyframes extAc { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.ext-bas {
  font: 700 12px/1 var(--font); color: var(--gold);
  padding-bottom: 9px; margin-bottom: 10px; border-bottom: 1px solid var(--border);
}

.ext-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 12px; }
.ext-slot {
  aspect-ratio: auto; height: 62px; flex-direction: column;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  background: #101319; border-style: dashed;
}
.ext-slot .ext-i { font-style: normal; font-size: 19px; opacity: .5; }

.ext-slot .lbl {
  position: static; inset: auto; display: block;
  font-size: 9px; color: var(--text-dim); letter-spacing: .2px;
  text-align: center; line-height: 1.15;
}
.ext-slot:hover { border-color: var(--gold); }

.ext-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-bottom: 8px; }
.ext-tab {
  padding: 6px 0; cursor: pointer; border-radius: 6px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--text-dim); font: 600 11px/1 var(--font); transition: .12s;
}
.ext-tab:hover { color: var(--text); }
.ext-tab.on { background: rgba(216,180,90,.13); border-color: rgba(216,180,90,.4); color: var(--gold); }

.ext-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }

.ext-grid.kilit .slot { opacity: .5; cursor: default; }
.ext-grid.kilit .slot:hover { background: #0d0f13; border-color: var(--border); }

.ext-cell::after { content: '🔒'; font-size: 11px; opacity: .8; }
.ext-grid:not(.kilit) .ext-cell::after { content: none; }
.ext-hint { font-size: 10px; line-height: 1.55; color: var(--text-dim); margin: 10px 0 0; }

.bb-rozet {
  display: inline-block; min-width: 16px; padding: 0 4px; margin-left: 5px;
  background: var(--red, #d42222); color: #fff; border-radius: 8px;
  font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
  vertical-align: middle;
}
.bb-rozet[hidden] { display: none; }

.sup-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(6, 7, 9, .82); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.sup-overlay[hidden] { display: none; }
.sup-box {
  width: min(1000px, 96vw); height: min(760px, 92vh);
  display: flex; flex-direction: column;
  background: #14161c; border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.6); overflow: hidden;
}
.sup-head {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  background: linear-gradient(180deg, #1c1f27, #14161c);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.sup-title { font-weight: 800; font-size: 16px; color: #e8e6e2; }
.sup-tabs { display: flex; gap: 6px; }
.sup-tab {
  background: #1a1d24; color: #b9b5ad; border: 1px solid rgba(255,255,255,.10);
  border-radius: 7px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.sup-tab:hover { color: #e8e6e2; border-color: rgba(255,255,255,.22); }
.sup-tab.active { background: #d8b45a; color: #17181c; border-color: #d8b45a; }
.sup-x {
  margin-left: auto; width: 30px; height: 30px; border-radius: 7px;
  background: transparent; border: 1px solid rgba(255,255,255,.14);
  color: #c9c5bd; font-size: 18px; line-height: 1; cursor: pointer;
}
.sup-x:hover { background: #d42222; color: #fff; border-color: #d42222; }
.sup-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }

.sup-yukleniyor, .sup-hata, .sup-bos { text-align: center; padding: 40px 16px; color: #93908a; }
.sup-hata { color: #e05050; }
.sup-bos-ikon { font-size: 40px; margin-bottom: 8px; }
.sup-ipucu { font-size: 12px; max-width: 480px; margin: 6px auto 16px; line-height: 1.6; }

.sup-liste-bas {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; color: #e8e6e2; margin-bottom: 10px;
}
.sup-row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 4px 10px;
  width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 7px;
  background: #1a1d24; border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px; cursor: pointer; color: #d6d2ca;
}
.sup-row:hover { border-color: rgba(216,180,90,.5); background: #1f232b; }

.sup-row.yeni { border-color: rgba(216,180,90,.55); background: #20242c; }
.sup-row-no { color: #6f6c66; font-size: 12px; font-weight: 700; }
.sup-row-baslik { font-weight: 700; color: #e8e6e2; }
.sup-row-bilgi { grid-column: 2 / 4; font-size: 11px; color: #7e7a74; }
.sup-nokta {
  display: inline-block; width: 7px; height: 7px; margin-left: 6px;
  border-radius: 50%; background: #d8b45a; vertical-align: middle;
}
.sup-rozet {
  font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .3px; white-space: nowrap;
}
.sup-rozet.bekliyor { background: rgba(216,180,90,.16); color: #d8b45a; }
.sup-rozet.yanit    { background: rgba(74,160,58,.18);  color: #6fc75a; }
.sup-rozet.kapali   { background: rgba(255,255,255,.07); color: #8a8680; }

.sup-form { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }
.sup-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #b9b5ad; font-weight: 600; }
.sup-form input, .sup-form select, .sup-form textarea, .sup-yanit textarea {
  background: #0f1116; color: #e8e6e2;
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  padding: 9px 11px; font: inherit; font-size: 13px; width: 100%;
}
.sup-form textarea, .sup-yanit textarea { resize: vertical; line-height: 1.55; }
.sup-form input:focus, .sup-form textarea:focus, .sup-yanit textarea:focus {
  outline: none; border-color: #d8b45a;
}
.sup-ek {
  border: 1px dashed rgba(255,255,255,.14); border-radius: 9px;
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
}
.sup-ek-bas { font-size: 12px; font-weight: 700; color: #b9b5ad; }
.sup-ek-satir { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sup-dosya {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: #1a1d24; border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px; padding: 7px 12px; font-size: 12px; color: #d6d2ca; font-weight: 600;
}
.sup-dosya:hover { border-color: #d8b45a; color: #e8e6e2; }
.sup-dosya.sm { padding: 6px 9px; }
.sup-dosya-ad { font-size: 11px; color: #7e7a74; }
.sup-onizleme img { max-width: 100%; max-height: 220px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); }
.sup-alt { display: flex; align-items: center; gap: 12px; }
.sup-durum { font-size: 12px; color: #93908a; }

.sup-detay { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.sup-detay-bas { display: flex; align-items: center; gap: 10px; }
.sup-detay-baslik { font-weight: 800; color: #e8e6e2; flex: 1; }
.sup-akis { display: flex; flex-direction: column; gap: 10px; }
.sup-msg {
  border: 1px solid rgba(255,255,255,.09); border-radius: 10px;
  padding: 10px 12px; background: #1a1d24; max-width: 88%;
}

.sup-msg.yetkili { align-self: flex-end; background: #1e2129; border-color: rgba(216,180,90,.34); }
.sup-msg-bas { display: flex; gap: 10px; font-size: 11px; color: #8a8680; margin-bottom: 5px; }
.sup-msg-bas b { color: #d8b45a; }
.sup-msg.oyuncu .sup-msg-bas b { color: #7ab4ff; }
.sup-msg-govde { font-size: 13px; line-height: 1.6; color: #ddd9d2; word-break: break-word; }
.sup-ek-gorsel { display: block; margin-top: 8px; }
.sup-ek-gorsel img { max-width: 100%; max-height: 320px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); }
.sup-ek-video { margin-top: 8px; aspect-ratio: 16/9; max-width: 460px; }
.sup-ek-video iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
.sup-yanit { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.sup-yanit-alt { display: flex; align-items: center; gap: 8px; }
.sup-yanit-alt .spacer { flex: 1; }
.sup-kapali {
  text-align: center; padding: 14px; font-size: 12px; color: #8a8680;
  background: #1a1d24; border-radius: 9px; border: 1px solid rgba(255,255,255,.08);
}

.ld-logo-wrap > .logo-big { grid-area: 1 / 1; }        

.ld-main { opacity: 1; animation: ld-breathe 3.4s ease-in-out infinite; }

.pn-tur {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle; background: #8a8f9a;
}
.pn-tur.bakim    { background: #e0a04a; }
.pn-tur.etkinlik { background: #6ee07a; }
.pn-tur.uyari    { background: #e05a4a; }

.p-srv { margin-bottom: 11px; }
.p-srv:last-child { margin-bottom: 0; }
.p-srv.kapali { opacity: .55; }
.p-srv-ust {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; margin-bottom: 5px;
}
.p-srv-ust b { font-size: 12.5px; font-weight: 800; color: var(--text); }
.p-srv-ust span {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  color: var(--text-dim); text-transform: uppercase;
}
.p-srv-yol {
  height: 10px; border-radius: 2px; overflow: hidden; position: relative;
  background: #0a0c10; border: 1px solid #2a3140;
}
.p-srv-yol i {
  display: block; height: 100%; border-radius: 1px;
  background: linear-gradient(180deg, #7fe08a, #3aa04a);
  transition: width .5s ease, background .3s;
}
.p-srv-yol i.orta  { background: linear-gradient(180deg, #f0d67a, #c9a134); }
.p-srv-yol i.yogun { background: linear-gradient(180deg, #f0a06a, #c96a24); }
.p-srv-yol i.dolu  { background: linear-gradient(180deg, #f07a7a, #c93434); }
.p-srv-yol::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(0,0,0,.55) 1px, transparent 1px);
  background-size: 10% 100%;
}

.gm-sat {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 3px;
  border: 1px solid var(--border-2); background: #101218;
  margin-bottom: 5px; opacity: .58;
  transition: opacity .2s, border-color .2s;
}
.gm-sat.acik { opacity: 1; border-color: rgba(110,224,122,.32); background: #12171a; }
.gm-rol {
  flex: none; font-size: 9.5px; font-weight: 800; letter-spacing: .09em;
  padding: 3px 6px; border-radius: 2px; border: 1px solid;
}
.gm-rol.gm  { color: #d8b45a; border-color: rgba(216,180,90,.45); background: rgba(216,180,90,.1); }
.gm-rol.yon { color: #e0714a; border-color: rgba(224,113,74,.45); background: rgba(224,113,74,.12); }
.gm-ad {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gm-durum {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 10px; border: 1px solid;
}
.gm-durum i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.gm-durum.on  { color: #6ee07a; border-color: rgba(110,224,122,.4); background: rgba(110,224,122,.1); }
.gm-durum.on i { background: #6ee07a; box-shadow: 0 0 6px #6ee07a; animation: gm-nabiz 2s ease-in-out infinite; }
.gm-durum.off { color: #6b7080; border-color: var(--border-2); background: #0d0f14; }
.gm-durum.off i { background: #4a4f5c; }
@keyframes gm-nabiz { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .gm-durum.on i { animation: none; } }

.ld-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .6s ease;
  pointer-events: none;
}
.ld-bg.acik { opacity: 1; }
.ld-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(6,7,10,.55), rgba(6,7,10,.86) 70%),
    linear-gradient(180deg, rgba(6,7,10,.5), rgba(6,7,10,.8));
}

.loading-box { position: relative; z-index: 1; }

.giris-intro {
  position: absolute; inset: 0; z-index: 60;
  background: #000;
  display: grid; place-items: center;
  cursor: pointer;
  
  animation: gi-perde .5s ease-in 4.15s forwards;
}
.giris-intro[hidden] { display: none; }
.gi-logo { grid-area: 1 / 1; width: min(280px, 56vw); opacity: 0; }

.gi-1 { animation: gi-in .6s ease-out .25s forwards, gi-out .5s ease-in 1.7s forwards; }
.gi-2 { animation: gi-in .6s ease-out 2.3s forwards, gi-out .5s ease-in 3.6s forwards; }
.gi-atla {
  position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: #4a4f5a; opacity: 0; animation: gi-in .6s ease-out 1.2s forwards;
}
@keyframes gi-in    { from { opacity: 0; transform: scale(.96); }
                      to   { opacity: 1; transform: scale(1); } }
@keyframes gi-out   { from { opacity: 1; } to { opacity: 0; } }
@keyframes gi-perde { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .giris-intro { display: none; }
}

.cc-renk { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.cc-renk button {
  aspect-ratio: 1; border-radius: 5px; border: 2px solid #2a3040;
  cursor: pointer; padding: 0; transition: border-color .12s, transform .12s;
}
.cc-renk button:hover { transform: scale(1.08); }
.cc-renk button.selected { border-color: var(--gold); transform: scale(1.08); }

.cc-sekil { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.cc-sekil button {
  aspect-ratio: 1; border-radius: 5px; border: 1px solid #2a3040;
  background: #161a22; color: #8b93a3; font-size: 11px; cursor: pointer;
  padding: 0; transition: border-color .12s, color .12s, background .12s;
  font-variant-numeric: tabular-nums;
}
.cc-sekil button:hover { background: #1b1f27; color: #d7dbe3; }
.cc-sekil button.selected { border-color: var(--gold); color: var(--gold); background: #221d14; }

.srv-spin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid #2f3644; border-top-color: var(--gold, #d5b45a);
  animation: srv-spin 0.8s linear infinite;
}
@keyframes srv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .srv-spin { animation: none; } }

.lp-sec-wide { max-width: 1320px; }

.lp-tools {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
}
.lp-tools .spacer { flex: 1; }
.lp-search {
  flex: 0 1 320px; padding: 8px 12px; font-size: 13px;
  background: #101218; color: var(--text);
  border: 1px solid var(--border-2); border-radius: 8px;
}
.lp-search:focus { outline: none; border-color: var(--gold); }
.lp-count { color: var(--text-dim); font-size: 12px; font-weight: 700; }

.lp-tablo-kap {
  overflow-x: auto;
  background: #101218; border: 1px solid var(--border-2); border-radius: 10px;
}
.lp-tablo { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.lp-tablo thead th {
  position: sticky; top: 0; z-index: 1;
  background: #171a21; color: var(--text-dim);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
  text-align: left; padding: 10px 12px; white-space: nowrap;
  border-bottom: 1px solid var(--border-2);
}
.lp-tablo th.t-num, .lp-tablo td.t-num { text-align: right; }
.lp-tablo th.t-img { width: 184px; }
.lp-tablo tbody td {
  padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.lp-tablo tbody tr:last-child td { border-bottom: 0; }
.lp-tablo tbody tr:hover { background: rgba(255, 255, 255, 0.035); }

.lp-mob-img {
  position: relative; display: block;
  width: 168px; height: 168px; border-radius: 12px;
  background: radial-gradient(120% 90% at 50% 20%, #1e2330 0%, #14161d 70%);
  border: 1px solid var(--border);
  overflow: hidden; flex: none;
}
.lp-mob-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.lp-mob-img::after {
  content: '?'; position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  color: var(--text-dim); font-size: 34px; font-weight: 800; opacity: .35;
}
.lp-mob-img img { position: relative; z-index: 1; background: #191c24; }

.lp-mob-n { font-weight: 700; color: var(--text); }
.lp-mob-boss {
  margin-left: 6px; font-size: 9.5px; font-weight: 800; letter-spacing: .5px;
  color: #ffcf6a; background: #2a2113; border: 1px solid #4a3a1a;
  border-radius: 999px; padding: 2px 7px; vertical-align: 1px;
}
.lp-tablo .t-hp   { color: #8fd67a; font-weight: 700; }
.lp-tablo .t-def  { color: #8ab6e0; font-weight: 700; }
.lp-tablo .t-exp  { color: var(--gold); font-weight: 700; }
.lp-tablo .t-resp { color: var(--text-dim); }

.lp-drop-cell { display: flex; flex-wrap: wrap; gap: 6px; }

.lp-drop-bos { color: var(--text-dim); opacity: .55; }

.lp-yer-cell { display: flex; flex-wrap: wrap; gap: 5px; }
.lp-yer {
  display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap;
  background: #171a21; border: 1px solid var(--border-2);
  border-radius: 6px; padding: 3px 9px; font-size: 11.5px;
}
.lp-yer b { font-weight: 700; color: #9ec7e8; }
.lp-yer .yk { color: var(--text-dim); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.lp-drop-it {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: #171a21; border: 1px solid var(--border-2);
  border-radius: 999px; padding: 3px 10px; font-size: 11.5px;
}
.lp-drop-it b { font-weight: 700; }
.lp-drop-it .dc { color: var(--text-dim); font-size: 10.5px; font-weight: 800; }

.lp-drop-it.g2 { border-color: #3a5a7a; } .lp-drop-it.g2 b { color: #8ab6e0; }
.lp-drop-it.g3 { border-color: #4a3a7a; } .lp-drop-it.g3 b { color: #b295e8; }
.lp-drop-it.g4 { border-color: #6a4a1a; } .lp-drop-it.g4 b { color: var(--gold); }
.lp-drop-it.g5 { border-color: #7a3a2a; } .lp-drop-it.g5 b { color: #ff9a6a; }

@media (max-width: 900px) {
  
  .lp-tablo th:nth-child(6), .lp-tablo td:nth-child(6),
  .lp-tablo th:nth-child(7), .lp-tablo td:nth-child(7),
  .lp-tablo th:nth-child(8), .lp-tablo td:nth-child(8) { display: none; }
  .lp-tablo-drop th:nth-child(6), .lp-tablo-drop td:nth-child(6),
  .lp-tablo-drop th:nth-child(7), .lp-tablo-drop td:nth-child(7),
  .lp-tablo-drop th:nth-child(8), .lp-tablo-drop td:nth-child(8) { display: table-cell; }
  .lp-search { flex: 1 1 auto; }
}

:root {
  --kenar: rgba(255, 255, 255, .08);
  --kenar-2: rgba(255, 255, 255, .16);
  --alev: #d42222;
  --kul: #8a8578;
}

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  margin: 0 0 14px;
}

.eyebrow::before {
  content: ''; width: 28px; height: 1px; flex: none;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.sec-head { max-width: 1180px; margin: 0 auto 26px; padding: 0 26px; }
.sec-title {
  font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1;
  letter-spacing: -.02em; margin: 0;
}

.ok-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 13px; font-weight: 700;
  color: var(--gold); text-decoration: none;
}
.ok-link::after { content: '→'; transition: transform .25s ease; }
.ok-link:hover::after { transform: translateX(5px); }

.btn-play {
  position: relative; overflow: hidden; cursor: pointer;
  padding: 14px 34px; border: 0; border-radius: 4px;
  background: linear-gradient(180deg, #e23a3a, var(--alev));
  color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 8px 26px rgba(212, 34, 34, .32), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn-play span { position: relative; z-index: 1; }
.btn-play::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.34) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(212,34,34,.45); }
.btn-play:hover::before { animation: parla 1s ease; }
@keyframes parla { to { transform: translateX(120%); } }

.btn-line {
  padding: 13px 28px; border-radius: 4px;
  border: 1px solid var(--kenar-2); color: var(--text);
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.btn-line:hover { border-color: var(--gold); color: var(--gold); background: rgba(216,180,90,.06); }

[data-goster] { opacity: 0; transform: translateY(22px); }
[data-goster].gorundu {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}

.hero {
  position: relative; min-height: min(92vh, 860px);
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-rays {
  position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(60% 55% at 72% 38%, rgba(212,34,34,.20), transparent 70%),
    radial-gradient(45% 40% at 30% 20%, rgba(216,180,90,.10), transparent 70%);
  animation: nefes 9s ease-in-out infinite alternate;
}
@keyframes nefes { from { opacity: .75; } to { opacity: 1; } }
.hero-grid {
  position: absolute; inset: 0; opacity: .30;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(75% 65% at 50% 45%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 45%, #000 25%, transparent 78%);
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(85% 75% at 50% 40%, transparent 45%, rgba(0,0,0,.72) 100%);
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 40px 26px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: 40px; align-items: center;
}
.hero-title {
  font-size: clamp(38px, 6vw, 76px); line-height: 1.02;
  letter-spacing: -.035em; font-weight: 800; margin: 0 0 18px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold), #f0d89a 45%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  color: var(--kul); font-size: 15px; line-height: 1.75; max-width: 44ch; margin: 0;
}
.hero-actions { display: flex; gap: 12px; align-items: center; margin: 26px 0 20px; flex-wrap: wrap; }

.hero-stage { position: relative; height: min(64vh, 560px); }
.hero-stage canvas { position: relative; z-index: 2; width: 100%; height: 100%; display: block; }

.hero-plinth {
  position: absolute; left: 50%; bottom: 8%; z-index: 1;
  width: 58%; height: 70px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(212,34,34,.30), transparent 72%);
  filter: blur(9px);
}
.hero-glow {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(48% 44% at 50% 42%, rgba(216,180,90,.13), transparent 72%);
}

.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 3;
  width: 22px; height: 38px; transform: translateX(-50%);
  border: 1px solid var(--kenar-2); border-radius: 12px;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px;
  background: var(--gold); animation: kaydir 1.9s ease-in-out infinite;
}
@keyframes kaydir {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(13px); opacity: 0; }
}

.uluslar { max-width: 1240px; margin: 0 auto; padding: 86px 0 60px; }
.ulus-ikili {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
  gap: 0; max-width: 1180px; margin: 0 auto; padding: 0 26px;
}
.ulus {
  position: relative; padding: 34px 30px;
  border: 1px solid var(--kenar); background: linear-gradient(180deg, #15171e, #0f1116);
  transition: transform .3s ease, border-color .3s ease;
}

.ulus-a { clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.ulus-b { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.ulus-a:hover { transform: translateY(-6px); border-color: rgba(120,160,220,.5); }
.ulus-b:hover { transform: translateY(-6px); border-color: rgba(200,90,70,.5); }
.ulus-i { font-size: 26px; display: block; margin-bottom: 12px; opacity: .85; }
.ulus h3 { font-size: 24px; margin: 0 0 2px; letter-spacing: -.01em; }
.ulus-alt { font-size: 12px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; margin: 0 0 14px; }
.ulus-a .ulus-alt { color: #7ba2d8; }
.ulus-b .ulus-alt { color: #d08a70; }
.ulus p { color: var(--kul); font-size: 13.5px; line-height: 1.7; margin: 0; }
.ulus-vs {
  display: grid; place-items: center; padding: 0 22px;
}
.ulus-vs span {
  font-size: 13px; font-weight: 900; letter-spacing: .1em; color: var(--kul);
  border: 1px solid var(--kenar-2); border-radius: 50%;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: #0f1116;
}

.seritler { max-width: 1180px; margin: 0 auto; padding: 40px 26px 20px; }
.serit {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px; align-items: center; padding: 44px 0;
  border-top: 1px solid var(--kenar);
}
.serit:first-child { border-top: 0; }
.serit-ters .serit-metin { order: 2; }
.serit h3 { font-size: clamp(22px, 2.6vw, 32px); margin: 0 0 12px; letter-spacing: -.02em; }
.serit p { color: var(--kul); font-size: 14px; line-height: 1.8; margin: 0; max-width: 46ch; }

.serit-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
  background: var(--kenar); border: 1px solid var(--kenar); border-radius: 3px; }
.serit-liste li {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 15px 18px; background: #0f1116;
}
.serit-liste b { font-size: 13.5px; font-weight: 700; color: var(--text); min-width: 132px; }

.serit-liste p { margin: 0; font-size: 12.5px; color: var(--kul); }
.serit-ss { width: 100%; height: auto; display: block; border: 1px solid var(--kenar);
  border-radius: 3px; }

.rakamlar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1180px; margin: 40px auto; padding: 0 26px;
  border-top: 1px solid var(--kenar); border-bottom: 1px solid var(--kenar);
}
.rakam { text-align: center; padding: 30px 10px; position: relative; }
.rakam + .rakam::before {
  content: ''; position: absolute; left: 0; top: 24%; bottom: 24%;
  width: 1px; background: var(--kenar);
}
.rakam b {
  display: block; font-size: clamp(30px, 4.2vw, 50px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(180deg, #fff, #b9b3a6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.rakam p {
  margin: 8px 0 0; font-size: 11px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--kul);
}

.kapilar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  max-width: 1180px; margin: 0 auto; padding: 0 26px;
}
.kapi {
  position: relative; display: block; padding: 24px 22px 26px;
  border: 1px solid var(--kenar); border-radius: 3px;
  background: linear-gradient(180deg, #15171e, #0f1116);
  color: inherit; text-decoration: none; overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}

.kapi::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.kapi:hover { border-color: var(--kenar-2); transform: translateY(-4px); text-decoration: none; }
.kapi:hover::before { transform: scaleX(1); }
.kapi-i { font-size: 20px; display: block; margin-bottom: 12px; opacity: .9; }
.kapi h3 { font-size: 16px; margin: 0 0 6px; }
.kapi p { color: var(--kul); font-size: 12.5px; line-height: 1.65; margin: 0; }

.son-cagri {
  position: relative; text-align: center;
  max-width: 1180px; margin: 80px auto 0; padding: 70px 26px;
  border-top: 1px solid var(--kenar);
}
.son-cagri::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(55% 90% at 50% 100%, rgba(212,34,34,.16), transparent 70%);
}
.son-cagri > * { position: relative; z-index: 1; }
.son-cagri h2 { font-size: clamp(26px, 3.6vw, 44px); letter-spacing: -.025em; margin: 0 0 10px; }
.son-cagri p { color: var(--kul); font-size: 14px; margin: 0 0 26px; }

.lp-top { transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease; }
.lp-top.kaydi {
  background: rgba(9, 10, 13, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--kenar);
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-stage { height: 46vh; order: -1; }
  .serit, .serit-ters .serit-metin { grid-template-columns: 1fr; order: 0; }
  
  .ulus-ikili { grid-template-columns: 1fr; gap: 12px; }
  .ulus-vs { padding: 4px 0; }
  .ulus-a, .ulus-b { clip-path: none; }
  .kapilar { grid-template-columns: repeat(2, 1fr); }
  .rakamlar { grid-template-columns: repeat(2, 1fr); }
  .rakam:nth-child(3)::before, .rakam:nth-child(3) { border-top: 1px solid var(--kenar); }
  .lp-mob-img { width: 96px; height: 96px; }
  .lp-tablo th.t-img { width: 108px; }
}
@media (max-width: 560px) {
  .kapilar { grid-template-columns: 1fr; }
  .lp-mob-img { width: 72px; height: 72px; }
  .lp-tablo th.t-img { width: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-goster] { opacity: 1; transform: none; transition: none; }
  .hero-rays, .hero-scroll span, .btn-play::before { animation: none; }
  .kapi, .ulus, .btn-play, .ok-link::after { transition: none; }
}

.panel3 {
  display: grid; grid-template-columns: 272px minmax(0, 1fr) 296px;
  gap: 16px; max-width: 1240px; margin: 0 auto; padding: 16px 26px 10px;
  align-items: start;
}
.p-sut { display: grid; gap: 16px; min-width: 0; }

.p-kutu {
  position: relative;
  background:
    linear-gradient(180deg, rgba(28,24,18,.55), rgba(12,13,17,.85)),
    linear-gradient(180deg, #15171e, #0e1015);
  border: 1px solid rgba(150,120,60,.28);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.55), 0 10px 26px rgba(0,0,0,.35);
}

.p-kutu::before, .p-kutu::after {
  content: ''; position: absolute; width: 9px; height: 9px; pointer-events: none;
  border: 1px solid var(--gold); opacity: .55;
}
.p-kutu::before { left: 3px; top: 3px; border-right: 0; border-bottom: 0; }
.p-kutu::after { right: 3px; bottom: 3px; border-left: 0; border-top: 0; }

.p-bas {
  position: relative; margin: 0; padding: 11px 14px 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #e8d7a8;
  background: linear-gradient(180deg, rgba(90,70,32,.45), rgba(40,32,18,.25));
  border-bottom: 1px solid rgba(150,120,60,.32);
  text-shadow: 0 1px 0 rgba(0,0,0,.7);
}

.p-bas::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .5;
}
.p-govde { padding: 12px 13px 14px; }
.p-bos { padding: 16px 4px; text-align: center; color: var(--kul); font-size: 12px; }

.p-liste { display: grid; gap: 1px; }
.p-sat {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 9px; align-items: center;
  padding: 7px 8px; font-size: 12.5px; border-radius: 2px;
}
.p-sat:nth-child(odd) { background: rgba(255,255,255,.022); }
.p-sat .ps-i { color: var(--gold); font-weight: 800; text-align: right; font-size: 11.5px; }
.p-sat .ps-n { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.p-sat .ps-v { color: var(--kul); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.p-sat:nth-child(1) .ps-i { color: #ffd76a; }
.p-sat:nth-child(2) .ps-i { color: #d8d8d8; }
.p-sat:nth-child(3) .ps-i { color: #c98a4a; }

.p-sekme { display: flex; gap: 4px; margin: -2px 0 10px; }
.p-sek {
  flex: 1; padding: 6px 8px; cursor: pointer; font-size: 11.5px; font-weight: 800;
  letter-spacing: .04em; color: var(--kul);
  background: rgba(255,255,255,.03); border: 1px solid var(--kenar); border-radius: 2px;
}
.p-sek.on { color: #e8d7a8; border-color: rgba(150,120,60,.5);
  background: linear-gradient(180deg, rgba(90,70,32,.4), rgba(40,32,18,.2)); }

.p-duyuru { display: grid; gap: 10px; }
.p-not { border-left: 2px solid rgba(150,120,60,.5); padding: 2px 0 2px 12px; }
.p-not h4 { margin: 0 0 3px; font-size: 13.5px; }
.p-not .pn-t { font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); }
.p-not p { margin: 5px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--kul); }

.p-boss { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 9px; }
.p-boss a {
  display: block; text-decoration: none; color: inherit; text-align: center;
  border: 1px solid var(--kenar); border-radius: 2px; padding: 8px 6px 10px;
  background: rgba(255,255,255,.02); transition: border-color .2s ease;
}
.p-boss a:hover { border-color: rgba(150,120,60,.55); text-decoration: none; }
.p-boss .pb-img { width: 100%; aspect-ratio: 1; margin-bottom: 6px;
  background: radial-gradient(120% 90% at 50% 20%, #1e2330, #14161d 70%);
  border: 1px solid var(--kenar); border-radius: 2px; position: relative; overflow: hidden; }
.p-boss .pb-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.p-boss .pb-n { font-size: 11.5px; font-weight: 700; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-boss .pb-l { font-size: 10.5px; color: var(--gold); font-weight: 800; }

.p-durum { display: grid; gap: 11px; }
.p-cb { display: grid; gap: 5px; }
.p-cb-ust { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11.5px; }
.p-cb-ust b { font-weight: 700; color: var(--text); }
.p-cb-ust span { color: var(--kul); font-variant-numeric: tabular-nums; }
.p-cb-yol {
  height: 9px; border-radius: 1px; overflow: hidden;
  background: #0a0b0e; border: 1px solid rgba(0,0,0,.7);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.8);
}
.p-cb-dolu { height: 100%; transition: width .6s cubic-bezier(.2,.7,.3,1); }
.p-cb-t .p-cb-dolu { background: linear-gradient(90deg, #b8912f, #ffd76a); }
.p-cb-1 .p-cb-dolu { background: linear-gradient(90deg, #2f5f9c, #6ea8e8); }
.p-cb-2 .p-cb-dolu { background: linear-gradient(90deg, #9c3a2f, #e88a6e); }
.p-durum-alt { font-size: 11px; color: var(--kul); text-align: center; padding-top: 2px; }

.p-gm .ps-n { display: flex; align-items: center; gap: 7px; }
.p-nokta { width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #4ec26a; box-shadow: 0 0 7px rgba(78,194,106,.75); }
.p-rol { font-size: 9.5px; font-weight: 800; letter-spacing: .08em;
  padding: 2px 6px; border-radius: 2px; color: #0c0d10; background: var(--gold); }
.p-rol.gm { background: #6ea8e8; }

.p-sayac { display: grid; gap: 7px; }
.p-ev { display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 8px; font-size: 12px; border-radius: 2px;
  background: rgba(255,255,255,.022); }
.p-ev b { font-weight: 700; }
.p-ev span { color: var(--gold); font-weight: 800; font-size: 12.5px;
  font-variant-numeric: tabular-nums; }
.p-ev.yayinda span { color: #6ee07a; }

@media (max-width: 1080px) {
  .panel3 { grid-template-columns: 1fr 1fr; }
  .p-orta { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 720px) {
  .panel3 { grid-template-columns: 1fr; padding: 16px 16px 6px; }
  .p-orta { order: 0; }
}

.afis {
  position: relative; max-width: 1240px; margin: 0 auto; padding: 0 26px;
}
.afis[hidden] { display: none; }
.afis-yol {
  position: relative; overflow: hidden; border-radius: 2px;
  border: 1px solid rgba(150,120,60,.28);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.55), 0 10px 26px rgba(0,0,0,.35);
  aspect-ratio: 1240 / 380; background: #0e1015;
}
.afis-kare {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .5s ease;
}
.afis-kare.on { opacity: 1; pointer-events: auto; }
.afis-kare img { width: 100%; height: 100%; object-fit: cover; display: block; }
.afis-kare a { display: block; width: 100%; height: 100%; }

.afis-yazi {
  position: absolute; inset: 0; padding: 26px 24px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 5px;
  align-items: flex-start; text-align: left; pointer-events: none;
}
.afis-yazi::before {
  content: ''; position: absolute; left: 0; right: 0; height: 62%;
  bottom: 0; background: linear-gradient(180deg, transparent, rgba(6,7,9,.88));
  z-index: -1;
}
.afis-yazi.y-ust  { justify-content: flex-start; }
.afis-yazi.y-orta { justify-content: center; }
.afis-yazi.y-alt  { justify-content: flex-end; }
.afis-yazi.y-ust::before  { top: 0; bottom: auto; background: linear-gradient(0deg, transparent, rgba(6,7,9,.88)); }
.afis-yazi.y-orta::before { top: 19%; bottom: auto; height: 62%; background: linear-gradient(180deg, transparent, rgba(6,7,9,.72) 30%, rgba(6,7,9,.72) 70%, transparent); }
.afis-yazi.x-sol  { align-items: flex-start; text-align: left; }
.afis-yazi.x-orta { align-items: center; text-align: center; }
.afis-yazi.x-sag  { align-items: flex-end; text-align: right; }
.afis-yazi strong {
  font-size: 22px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15;
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.afis-yazi span {
  font-size: 13.5px; font-weight: 600; color: #cfd3dc; line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
}

.afis-ok {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 34px; height: 46px; cursor: pointer; font-size: 22px; line-height: 1;
  color: #e8d7a8; background: rgba(10,11,14,.6);
  border: 1px solid rgba(150,120,60,.3); border-radius: 2px;
  opacity: 0; transition: opacity .2s ease, background .2s ease;
}
.afis:hover .afis-ok, .afis-ok:focus-visible { opacity: 1; }
.afis-ok:hover { background: rgba(10,11,14,.85); }
.afis-sol { left: 32px; } .afis-sag { right: 32px; }

.afis-nokta {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3;
  display: flex; justify-content: center; gap: 7px;
}
.afis-nokta button {
  width: 8px; height: 8px; padding: 0; cursor: pointer; border-radius: 50%;
  background: rgba(255,255,255,.28); border: 1px solid rgba(0,0,0,.5);
  transition: background .2s ease, transform .2s ease;
}
.afis-nokta button.on { background: var(--gold); transform: scale(1.25); }

@media (max-width: 720px) {
  .afis { padding: 0 14px; }
  .afis-yol { aspect-ratio: 16 / 10; }        
  .afis-ok { display: none; }                 
  .afis-yazi { padding: 18px 14px; gap: 3px; }
  .afis-yazi strong { font-size: 16px; }
  .afis-yazi span { font-size: 11.5px; }
  
  .afis-yazi.mx-sol  { align-items: flex-start; text-align: left; }
  .afis-yazi.mx-orta { align-items: center; text-align: center; }
  .afis-yazi.mx-sag  { align-items: flex-end; text-align: right; }
  .afis-yazi.my-ust  { justify-content: flex-start; }
  .afis-yazi.my-orta { justify-content: center; }
  .afis-yazi.my-alt  { justify-content: flex-end; }
  .afis-yazi.my-ust::before  { top: 0; bottom: auto; background: linear-gradient(0deg, transparent, rgba(6,7,9,.88)); }
  .afis-yazi.my-alt::before  { top: auto; bottom: 0; background: linear-gradient(180deg, transparent, rgba(6,7,9,.88)); }
}
@media (prefers-reduced-motion: reduce) {
  .afis-kare { transition: none; }
}

.ana-baslik {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.lp-top-ic {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 26px;
}
 
.lp-top { padding: 8px 0; }

.lp-marka { display: flex; align-items: center; text-decoration: none; flex: none; }

.lp-nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  margin: 0; gap: 22px; white-space: nowrap;
}
.lp-nav a {
  font-size: 14px; letter-spacing: .01em;
  padding: 6px 2px; position: relative;
}

.lp-nav a.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.lp-lang { margin-left: auto; }

@media (max-width: 1180px) {
  .lp-top-ic { flex-wrap: wrap; }
  .lp-nav {
    position: static; transform: none; margin: 6px 0 0; gap: 16px;
    flex: 1 1 100%; order: 3;
    display: flex; overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .lp-nav::-webkit-scrollbar { display: none; }
  .lp-nav a { font-size: 13px; white-space: nowrap; }
  
}
@media (max-width: 900px) {
  .lp-top-ic { padding: 0 14px; }
  
}

.lp-lang { gap: 6px; }
.lang-btn {
  min-width: 40px; padding: 7px 11px; cursor: pointer;
  font-size: 12px; font-weight: 800; letter-spacing: .06em;
  color: var(--kul);
  background: linear-gradient(180deg, #1a1c23, #101218);
  border: 1px solid rgba(150,120,60,.24); border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.5);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.lang-btn:hover { color: #e8d7a8; border-color: rgba(150,120,60,.5); }
.lang-btn.active {
  color: #f2ede2;
  background: linear-gradient(180deg, rgba(120,92,40,.75), rgba(58,44,20,.6));
  border-color: rgba(216,180,90,.6);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), 0 0 10px rgba(216,180,90,.18);
}

.lp-cta {
  position: relative; overflow: hidden;
  padding: 9px 22px; border-radius: 2px; cursor: pointer;
  font-size: 13px; font-weight: 800; letter-spacing: .05em;
  color: #f5e9c8; text-decoration: none;
  background: linear-gradient(180deg, #3a1c18, #24120f);
  border: 1px solid rgba(216,180,90,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10),
              inset 0 0 14px rgba(212,34,34,.22),
              0 6px 18px rgba(0,0,0,.4);
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.lp-cta:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14),
              inset 0 0 18px rgba(212,34,34,.34),
              0 8px 22px rgba(0,0,0,.5);
}

.lp-cta::before, .lp-cta::after {
  content: ''; position: absolute; width: 6px; height: 6px;
  border: 1px solid var(--gold); opacity: .7; pointer-events: none;
}
.lp-cta::before { left: 3px; top: 3px; border-right: 0; border-bottom: 0; }
.lp-cta::after { right: 3px; bottom: 3px; border-left: 0; border-top: 0; }

.lp-modal-bg { position: absolute; inset: 0; overflow: hidden; }
.lm-bg-katman { position: absolute; inset: 0; }
.lm-bg-katman img, .lm-bg-katman video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none;
}

.lm-bg-katman.bos {
  background:
    radial-gradient(58% 52% at 26% 34%, rgba(212,34,34,.22), transparent 70%),
    radial-gradient(52% 48% at 76% 62%, rgba(61,122,196,.18), transparent 70%),
    linear-gradient(180deg, #14161d, #08090c);
}
.lm-bg-katman.bos::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 80%);
}
.lm-bg-vinyet {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(78% 70% at 50% 45%, transparent 40%, rgba(0,0,0,.82) 100%);
}

.lp-modal-box {
  position: relative;
  background:
    linear-gradient(180deg, rgba(30,25,18,.62), rgba(10,11,14,.92)),
    linear-gradient(180deg, #15171e, #0d0f14);
  border: 1px solid rgba(150,120,60,.42);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.7),
    inset 0 0 0 2px rgba(150,120,60,.16),
    0 24px 70px rgba(0,0,0,.7);
}
.lp-modal-box::before, .lp-modal-box::after {
  content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: 1px solid var(--gold); opacity: .65;
}
.lp-modal-box::before { left: 5px; top: 5px; border-right: 0; border-bottom: 0; }
.lp-modal-box::after { right: 5px; bottom: 5px; border-left: 0; border-top: 0; }

.lm-tabs {
  position: relative; gap: 0; margin: 0 0 16px;
  border: 1px solid rgba(150,120,60,.35); border-radius: 2px; overflow: hidden;
  background: linear-gradient(180deg, rgba(70,54,24,.5), rgba(28,22,12,.4));
}
.lm-tabs .tab {
  flex: 1; padding: 11px 10px; border: 0; border-radius: 0; cursor: pointer;
  font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--kul); background: transparent;
  transition: color .2s ease, background .2s ease;
}
.lm-tabs .tab + .tab { border-left: 1px solid rgba(150,120,60,.28); }
.lm-tabs .tab.active {
  color: #f5e9c8;
  background: linear-gradient(180deg, rgba(150,116,44,.55), rgba(70,54,24,.35));
  text-shadow: 0 1px 0 rgba(0,0,0,.7);
}

.lm-forms label { font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #d8c69a; }
.lm-forms input {
  background: #06070a; border: 1px solid rgba(150,120,60,.3); border-radius: 2px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.85);
  color: var(--text); padding: 11px 12px; font-size: 13.5px;
}
.lm-forms input:focus { outline: none; border-color: var(--gold);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.85), 0 0 0 1px rgba(216,180,90,.28); }

.lm-forms .btn-primary {
  padding: 12px; border-radius: 2px; letter-spacing: .06em; font-weight: 800;
  color: #f5e9c8;
  background: linear-gradient(180deg, #3a1c18, #24120f);
  border: 1px solid rgba(216,180,90,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10),
              inset 0 0 14px rgba(212,34,34,.22);
}
.lm-forms .btn-primary:hover { border-color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 20px rgba(212,34,34,.36); }

.lp-modal { position: fixed; inset: 0; z-index: 90; }
.lp-modal[hidden] { display: none; }

.lm-sahne { position: absolute; inset: 0; background: #06070a; }
.lm-sahne img, .lm-sahne video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.lm-sahne.bos {
  background:
    radial-gradient(58% 52% at 28% 32%, rgba(212,34,34,.24), transparent 70%),
    radial-gradient(52% 48% at 74% 64%, rgba(61,122,196,.20), transparent 70%),
    linear-gradient(180deg, #14161d, #07080b);
}
.lm-sahne.bos::after {
  content: ''; position: absolute; inset: 0; opacity: .45;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 82%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 82%);
}

.lm-vinyet {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.72) 100%);
}

.lm-ses {
  position: absolute; right: 18px; top: 18px; z-index: 3;
  width: 40px; height: 40px; cursor: pointer; font-size: 17px;
  color: #e8d7a8; background: rgba(10,11,14,.62);
  border: 1px solid rgba(150,120,60,.4); border-radius: 2px;
}
.lm-ses:hover { background: rgba(10,11,14,.85); border-color: var(--gold); }
.lm-ses[hidden] { display: none; }

.lm-serit {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(10,11,14,.86), rgba(6,7,9,.96));
  border-top: 1px solid rgba(150,120,60,.4);
  box-shadow: 0 -10px 30px rgba(0,0,0,.5);
}

.lm-sat {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  max-width: 1240px; margin: 0 auto;
}
.lm-sat[hidden] { display: none; }

.lm-alan { display: flex; align-items: center; gap: 9px; margin: 0; }
.lm-alan > span {
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #d8c69a; white-space: nowrap;
}
.lm-alan input {
  width: 190px; padding: 9px 11px; font-size: 13.5px; color: var(--text);
  background: #040507; border: 1px solid rgba(150,120,60,.34); border-radius: 2px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.9);
}
.lm-alan input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.9), 0 0 0 1px rgba(216,180,90,.3);
}

.lm-dug {
  padding: 9px 20px; cursor: pointer; white-space: nowrap;
  font-size: 12.5px; font-weight: 800; letter-spacing: .05em;
  color: #ded3ba;
  background: linear-gradient(180deg, #24262e, #15171d);
  border: 1px solid rgba(150,120,60,.32); border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  transition: border-color .18s ease, color .18s ease, transform .12s ease;
}
.lm-dug:hover { border-color: var(--gold); color: #f5e9c8; transform: translateY(-1px); }
.lm-dug.lm-ana {
  color: #f5e9c8;
  background: linear-gradient(180deg, #3a1c18, #24120f);
  border-color: rgba(216,180,90,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 14px rgba(212,34,34,.24);
}

.lm-dug:last-child { margin-left: 18px; }

.lm-hata {
  max-width: 1240px; margin: 8px auto 0; min-height: 0;
  font-size: 12.5px; color: #ff8a7a; text-align: center;
}
.lm-hata:empty { display: none; }

@media (max-width: 860px) {
  .lm-serit { padding: 10px 12px; }
  .lm-sat { gap: 8px; }
  .lm-alan { flex: 1 1 100%; }
  .lm-alan input { flex: 1; width: auto; }
  .lm-dug { flex: 1; padding: 10px 12px; }
  .lm-dug:last-child { margin-left: 0; }
}

.ulus h2 { font-size: 26px; margin: 0 0 2px; letter-spacing: -.01em; }
.ulus p + p { margin-top: 10px; }

.sinif-liste {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 14px;
}
.sinif-kart {
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #15171e, #0e1015);
  border: 1px solid rgba(150,120,60,.28); border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.55);
  position: relative;
}
.sinif-kart::before, .sinif-kart::after {
  content: ''; position: absolute; width: 9px; height: 9px; pointer-events: none;
  border: 1px solid var(--gold); opacity: .5; z-index: 2;
}
.sinif-kart::before { left: 3px; top: 3px; border-right: 0; border-bottom: 0; }
.sinif-kart::after { right: 3px; bottom: 3px; border-left: 0; border-top: 0; }

.sk-ulus { display: flex; gap: 1px; background: rgba(0,0,0,.4); }
.sk-u {
  flex: 1; padding: 8px 6px; cursor: pointer; border: 0;
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  color: var(--kul); background: rgba(255,255,255,.02);
  border-bottom: 1px solid rgba(150,120,60,.2);
  transition: color .2s ease, background .2s ease;
}
.sk-u.on {
  color: #e8d7a8;
  background: linear-gradient(180deg, rgba(120,92,40,.5), rgba(46,36,16,.3));
}

.sk-sahne {
  height: 230px; position: relative; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 15%, #1b2029, #101218 72%);
}
.sk-sahne img { max-width: 100%; max-height: 100%; display: block; }
.sk-govde { padding: 13px 15px 16px; border-top: 1px solid var(--kenar); }
.sk-govde h3 { margin: 0; font-size: 16px; }
.sk-en { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 8px; }
.sk-govde p { color: var(--kul); font-size: 12.5px; line-height: 1.65; margin: 0 0 10px; }
.sk-bec {
  display: block; width: 100%; margin-top: 11px; padding: 8px; cursor: pointer;
  font-size: 12px; font-weight: 800; color: #e8d7a8;
  background: linear-gradient(180deg, rgba(90,70,32,.42), rgba(40,32,18,.28));
  border: 1px solid rgba(150,120,60,.4); border-radius: 2px;
}
.sk-bec:hover { border-color: var(--gold); color: #f5e9c8; }

.bec-arac { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; flex-wrap: wrap; }
.bec-arac .spacer { flex: 1; }
.bec-sinif, .bec-agac { display: flex; gap: 5px; flex-wrap: wrap; }
.bec-agac { margin-bottom: 12px; }
.bec-s, .bec-a {
  padding: 7px 14px; cursor: pointer; font-size: 12px; font-weight: 700;
  color: var(--kul); background: rgba(255,255,255,.025);
  border: 1px solid var(--kenar); border-radius: 2px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.bec-s.on, .bec-a.on {
  color: #e8d7a8; border-color: rgba(150,120,60,.5);
  background: linear-gradient(180deg, rgba(90,70,32,.42), rgba(40,32,18,.25));
}
.bec-s:hover, .bec-a:hover { color: #e8d7a8; }

.bec-liste {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px;
}
.bec {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start;
  padding: 12px 14px;
  background: linear-gradient(180deg, #14161c, #0e1014);
  border: 1px solid var(--kenar); border-radius: 2px;
}
.bec:hover { border-color: rgba(150,120,60,.4); }

.bec-lv {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 2px;
  font-size: 14px; font-weight: 800; color: #e8d7a8;
  background: linear-gradient(180deg, rgba(90,70,32,.5), rgba(30,24,12,.4));
  border: 1px solid rgba(150,120,60,.35);
}
.bec-ic h4 { margin: 0 0 5px; font-size: 13.5px; display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap; }
.bec-tur { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--kul); border: 1px solid var(--kenar); border-radius: 999px; padding: 2px 8px; }
.bec-el { font-size: 10px; font-weight: 800; text-transform: uppercase;
  border-radius: 999px; padding: 2px 8px; }
.el-fire { color: #ff9a6a; border: 1px solid #6a3a2a; }
.el-ice { color: #8ad8e8; border: 1px solid #2a5a6a; }
.el-light { color: #e8d76a; border: 1px solid #6a5a2a; }
.el-magic { color: #b295e8; border: 1px solid #4a3a7a; }
.el-curse { color: #c88ae8; border: 1px solid #5a2a6a; }

.el-poison { color: #c23cff; border: 1px solid #5a2a6a; }
.bec-ic p { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--kul); }

@media (max-width: 1080px) { .sinif-liste { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .sinif-liste { grid-template-columns: 1fr; }
  .bec-liste { grid-template-columns: 1fr; }
}

.ulus-arma { width: 76px; height: auto; display: block; margin: 0 0 10px; }
.sk-amblem {
  position: absolute; right: 10px; top: 40px; z-index: 2;
  width: 38px; height: 38px; opacity: .9; pointer-events: none;
}
.sk-amblem img { width: 100%; height: 100%; display: block; }
.bec-s { display: inline-flex; align-items: center; gap: 8px; }
.bec-s img { width: 18px; height: 18px; display: block; opacity: .85; }
.bec-s.on img { opacity: 1; }

.klan-ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.p-bas { display: flex; align-items: center; gap: 10px; }
.p-arma { width: 22px; height: auto; display: block; flex: none; }
.klan-uye {
  margin-left: 8px; font-size: 10.5px; font-weight: 800; color: var(--kul);
  border: 1px solid var(--kenar); border-radius: 999px; padding: 1px 7px;
}

.etk-liste { display: grid; gap: 14px; margin-top: 14px; }
.etk {
  position: relative; padding: 18px 20px 16px;
  background: linear-gradient(180deg, #15171e, #0e1015);
  border: 1px solid rgba(150,120,60,.28); border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.5);
}
.etk::before, .etk::after {
  content: ''; position: absolute; width: 9px; height: 9px; pointer-events: none;
  border: 1px solid var(--gold); opacity: .5;
}
.etk::before { left: 3px; top: 3px; border-right: 0; border-bottom: 0; }
.etk::after { right: 3px; bottom: 3px; border-left: 0; border-top: 0; }

.etk.yayinda { border-color: rgba(110,224,122,.45); }
.etk.yayinda .etk-kalan { color: #6ee07a; }

.etk-ust { display: flex; align-items: center; gap: 14px; }
.etk-i { font-size: 26px; flex: none; }
.etk-ust h3 { margin: 0; font-size: 17px; }
.etk-gun { margin: 3px 0 0; font-size: 11.5px; color: var(--kul); }
.etk-sayac { margin-left: auto; text-align: right; }
.etk-kalan { display: block; font-size: 19px; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums; line-height: 1.1; }
.etk-saat { font-size: 11px; color: var(--kul); font-variant-numeric: tabular-nums; }
.etk-aciklama { margin: 12px 0 0; font-size: 13px; line-height: 1.7; color: var(--kul); }
.etk-saatler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.etk-saatler span {
  font-size: 11.5px; font-weight: 700; color: var(--kul);
  background: rgba(255,255,255,.025); border: 1px solid var(--kenar);
  border-radius: 2px; padding: 4px 10px; font-variant-numeric: tabular-nums;
}
.etk-saatler span.on { color: #e8d7a8; border-color: rgba(150,120,60,.5);
  background: linear-gradient(180deg, rgba(90,70,32,.4), rgba(40,32,18,.25)); }

@media (max-width: 720px) { .klan-ikili { grid-template-columns: 1fr; } }

.ps-job { width: 15px; height: 15px; display: block; flex: none; opacity: .8; }
.p-sat .ps-n { display: flex; align-items: center; gap: 7px; }

.panel-quest { width: 520px; max-height: 70vh; flex-direction: column; }
.q-ust {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 12px; color: #b9c0cc;
}
.q-sayac b { color: var(--gold); font-variant-numeric: tabular-nums; }
.q-ipucu { opacity: .7; font-size: 11.5px; }
.q-liste { overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.q-bos { opacity: .65; text-align: center; padding: 24px 0; font-size: 13px; }
.q-kart {
  border: 1px solid rgba(255,255,255,.10); border-radius: 8px;
  background: rgba(255,255,255,.035); padding: 10px 12px;
}
.q-kart.kapali { opacity: .55; }
.q-kart.bitti { border-color: rgba(90,224,138,.35); }
.q-kart.alindi { border-color: rgba(216,180,90,.40); }
.q-bas { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.q-bas b { font-size: 13.5px; }
.q-metin { margin-top: 5px; font-size: 12.5px; color: #c6ccd6; line-height: 1.45; }
.q-ilerleme { margin-top: 6px; font-size: 12.5px; color: var(--gold); font-variant-numeric: tabular-nums; }
.q-odul { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.q-od-l { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; opacity: .6; }
.q-od-e {
  font-size: 11.5px; padding: 2px 7px; border-radius: 4px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}
.q-al {
  padding: 5px 12px; border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 600;
  background: rgba(216,180,90,.16); border: 1px solid rgba(216,180,90,.45); color: var(--gold);
}
.q-al:hover { background: rgba(216,180,90,.26); }
.q-rozet { font-size: 11.5px; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.q-rozet.bitti  { color: #5be08a; background: rgba(91,224,138,.12); }
.q-rozet.alindi { color: var(--gold); background: rgba(216,180,90,.12); }
.q-rozet.kapali { color: #98a0ac; background: rgba(255,255,255,.05); }

.hud-quest {
  
  top: 30%; left: 50%; transform: translateX(-50%);
  min-width: 200px; max-width: 60vw; padding: 4px 10px;
  text-align: center; pointer-events: none;
}

.hud-quest .hq-satir { text-shadow: 0 2px 5px rgba(0,0,0,.95), 0 0 12px rgba(0,0,0,.8); }
.hq-satir { display: flex; align-items: center; justify-content: center; gap: 12px; }

.hq-ad {
  font-size: clamp(22px, 2.1vw, 34px); font-weight: 700; color: #f2f2f4;
  line-height: 1.15;
}
.hq-say {
  font-size: clamp(22px, 2.1vw, 34px); font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.hq-say.tam { color: #5be08a; }

.hud-quest.bitti {
  padding: 8px 14px; border-radius: 8px;
  background: rgba(22, 22, 24, .92);
  border: 1px solid rgba(91, 224, 138, .55);
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}

.hud-quest.bitti .hq-ad { font-size: clamp(15px, 1.3vw, 20px); }
.hq-bitti { font-size: clamp(11px, .9vw, 14px); letter-spacing: .05em; text-transform: uppercase; color: #5be08a; }
.hq-odul { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 5px; }
.hq-od {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09);
}
.hq-od img, .hq-od canvas { width: 16px; height: 16px; display: block; }

.st-kod-ac {
  margin-left: auto; margin-right: 10px;
  background: #2a2418; border: 1px solid rgba(216,180,90,.45); color: var(--gold);
  white-space: nowrap;
}
.st-kod-ac:hover { background: #372f1e; }
.st-kod-perde {
  position: absolute; inset: 0; z-index: 5;
  background: rgba(6,8,12,.72); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
}
.st-kod-perde[hidden] { display: none; }
.st-kod-kutu {
  width: min(560px, 92%); background: #12151b;
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0,0,0,.6); padding: 0 18px 18px;
}
.st-kod-bas {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0 10px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 14px;
}
.st-kod-bas .store-x { margin-left: auto; position: static; }
.st-kod-not { color: var(--text-dim); font-size: 12px; margin: 12px 0 10px; }

.st-kod-alan {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center; gap: 4px;
}
.st-kod-parca {
  width: 100%; margin: 0; padding: 9px 4px; text-align: center;
  font: 700 14px/1 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 1px; text-transform: uppercase;
  background: #0c0e13; border: 1px solid var(--border); border-radius: 6px;
  color: var(--text);
}
.st-kod-parca:focus { outline: none; border-color: var(--gold); background: #14171e; }

.st-kod-tire { display: none; }
.st-kod-onay { width: 100%; margin-top: 14px; }
.st-kod-uyari { color: var(--text-dim); font-size: 12px; margin: 10px 0 0; text-align: center; }
.st-kod-uyari.uyar { animation: stUyar .5s ease; color: var(--gold); }
