/* Karakter hesaplayıcı. Renkler ve ortak bileşenler app.css'ten gelir. */

.beta {
  display: inline-block; vertical-align: 5px; margin-left: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--buy); background: var(--buy-soft); border-radius: 6px; padding: 3px 8px;
}
.link-btn { background: none; border: 0; padding: 0; color: var(--gold); font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.link-btn:hover { color: var(--gold2); }
.i.flip { transform: scaleX(-1); }

.calc-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.calc-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.calc-col > .panel + .panel { margin-top: 0; }

/* ---------------------------------------------------------------- karakter */
.field-list { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-l { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.field select, .field input { width: 100%; }
.field-group { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--line2); }
.field-note { margin: -4px 0 0; font-size: 12px; color: var(--muted); }
.seg-full { display: flex; }
.seg-full button { flex: 1; }
.stepper { display: flex; align-items: stretch; }
.stepper button {
  width: 40px; display: grid; place-items: center; border: 1px solid var(--line2); background: var(--panel2); color: var(--text2);
}
.stepper button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; }
.stepper button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 0; }
.stepper button:hover { color: var(--gold2); background: var(--hover); }
.stepper input { flex: 1; border-radius: 0; text-align: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------------------------------------------------------------- statlar */
.stat-table { width: 100%; border-collapse: collapse; }
.stat-table th, .stat-table td { padding: 6px 4px; text-align: center; }
.stat-table thead th { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding-top: 10px; }
.stat-table tbody th { font-size: 12px; font-weight: 800; color: var(--text2); text-align: left; padding-left: 16px; width: 44px; }
.stat-table td:last-child { padding-right: 16px; }
.stat-table input { width: 100%; height: 32px; padding: 0 4px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-table td.bonus { color: var(--dim); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-table td.bonus.on { color: var(--sell); }
.stat-table td.total { font-weight: 800; font-size: 15px; color: var(--gold2); text-align: right; }
.points { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.points-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.points-row b { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }
.points-row b.over { color: var(--danger); }
.bar { height: 6px; border-radius: 99px; background: var(--bg2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-deep), var(--gold2)); transition: width .25s; }
.bar i.over { background: var(--danger); }
.bar.sm { height: 4px; margin-top: 8px; }

/* ---------------------------------------------------------------- build */
.build { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; }
.build-row { display: flex; gap: 8px; }
.build-row input { flex: 1; height: 32px; font-size: 13px; }
.build-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 180px; overflow: auto; }
.build-list li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; font-size: 13px; }
.build-list li:hover { background: var(--hover); }
.build-list .b-load { flex: 1; min-width: 0; justify-content: flex-start; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.build-list small { color: var(--dim); font-size: 11px; }
.build-list .icon-btn .i { width: 15px; height: 15px; }
.build-list .muted { padding: 6px 0; }
.build-share { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.build-share textarea {
  width: 100%; resize: vertical; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius-sm);
  padding: 8px 10px; color: var(--text2); font: 12px/1.5 var(--mono); word-break: break-all;
}
.build-share textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230, 180, 80, .14); }
.btn-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

/* ---------------------------------------------------------------- sonuçlar */
.res-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 16px 0; }
.res-bar {
  display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 14px; border-radius: 10px;
  color: #fff; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.res-bar span { font-size: 11px; font-weight: 800; letter-spacing: .08em; opacity: .85; }
.res-bar b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.res-bar.is-hp { background: linear-gradient(90deg, #8f1d24, #d23a3a); }
.res-bar.is-mp { background: linear-gradient(90deg, #1d3f8f, #3b7be0); }
.res-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 16px; }
.big { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.big-l { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.big-l .i { width: 14px; height: 14px; color: var(--gold); }
.big b { display: block; font-size: 26px; font-weight: 800; color: var(--gold2); font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin-top: 2px; white-space: nowrap; }
.big b small { font-size: 13px; color: var(--muted); font-weight: 600; }
.big-s { display: block; font-size: 11px; color: var(--dim); margin-top: 2px; }
.res-sub { padding: 2px 16px 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.res-sub small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.res-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0 16px 14px; }
.res-resist { grid-template-columns: repeat(6, 1fr); padding-bottom: 16px; }
.cell { background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 6px; text-align: center; min-width: 0; }
.cell span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.cell b { display: block; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cell small { display: block; font-size: 10px; color: var(--sell); font-weight: 700; }

/* ---------------------------------------------------------------- ekipman */
.doll { display: grid; grid-template-columns: 92px minmax(0, 1fr) 92px; gap: 12px; padding: 16px; }
.doll-col { display: flex; flex-direction: column; gap: 8px; }
.doll-mid { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.doll-figure {
  position: relative; overflow: hidden; flex: 1; min-height: 220px; display: flex; flex-direction: column;
  border-radius: 14px; border: 1px solid var(--line);
  background:
    radial-gradient(260px 180px at 50% 40%, rgba(230, 180, 80, .09), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .012), rgba(255, 255, 255, .012) 12px, transparent 12px, transparent 24px), var(--bg2);
}
.fig-info { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; }
/* 3D karakter (karakter3d.js): model yüklenince amblemin yerini alır, bilgi alta iner */
.fig-3d { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none; }
.fig-3d canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.doll-figure.dragging canvas { cursor: grabbing; }
.doll-figure.has-3d { min-height: 330px; }
.doll-figure.has-3d .fig-3d { opacity: 1; pointer-events: auto; }
.doll-figure.has-3d .fig-emblem { display: none; }
.doll-figure.has-3d .fig-info {
  position: absolute; left: 0; right: 0; bottom: 0; flex: none; gap: 2px; padding: 34px 10px 10px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(9, 11, 15, .78) 55%);
}
.doll-figure.has-3d .fig-name { font-size: 15px; }
.doll-figure.has-3d .fig-sub { font-size: 12px; }
.fig-3d-hint {
  position: absolute; top: 8px; right: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600;
  color: var(--dim); pointer-events: none; transition: opacity .3s;
}
.fig-3d-hint .i { width: 11px; height: 11px; }
.doll-figure.dragging .fig-3d-hint { opacity: 0; }
.fig-3d-note { position: absolute; top: 8px; left: 10px; right: 70px; font-size: 10.5px; color: var(--muted); pointer-events: none; }
.doll-figure.loading-3d:not(.has-3d)::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line2); border-top-color: var(--gold); animation: spin .8s linear infinite;
}
.fig-emblem {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; margin-bottom: 6px;
  border: 2px solid rgba(230, 180, 80, .45); background: radial-gradient(circle at 35% 30%, rgba(247, 207, 122, .25), rgba(17, 21, 28, .9) 70%);
  color: var(--gold2); box-shadow: 0 10px 30px rgba(0, 0, 0, .4), 0 0 0 6px rgba(230, 180, 80, .06);
}
.fig-emblem.karus { border-color: rgba(255, 107, 107, .5); color: #ff9b8a; background: radial-gradient(circle at 35% 30%, rgba(255, 107, 107, .25), rgba(17, 21, 28, .9) 70%); }
.fig-emblem.elmorad { border-color: rgba(79, 157, 255, .5); color: #8fc1ff; background: radial-gradient(circle at 35% 30%, rgba(79, 157, 255, .25), rgba(17, 21, 28, .9) 70%); }
.fig-emblem .i { width: 32px; height: 32px; }
.fig-name { font-size: 17px; font-weight: 800; }
.fig-sub { font-size: 13px; color: var(--muted); }
.fig-sets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.fig-sets span { font-size: 11px; font-weight: 700; color: var(--gold2); background: var(--gold-soft); border-radius: 99px; padding: 3px 9px; }
.fig-warn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--danger); }
.doll-weapons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.doll-sub { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.doll-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }

.slot { position: relative; min-height: 64px; border-radius: 11px; }
.slot.empty {
  display: grid; place-items: center; padding: 6px; border: 1px dashed var(--line2); background: rgba(255, 255, 255, .015); color: var(--dim);
  transition: border-color .15s, color .15s, background .15s;
}
.slot.empty:hover { border-color: var(--gold); color: var(--gold2); background: var(--gold-soft); }
.slot-l { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.25; }
.slot.full { border: 1px solid #343c4d; background: var(--bg2); }
.slot.full:hover { border-color: var(--gold); }
.slot.warn { border-color: rgba(255, 107, 107, .6); }
.slot-btn { width: 100%; height: 100%; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px 4px 6px; background: none; border: 0; color: var(--text); }
.slot-btn .ico { width: 38px; height: 38px; }
.slot-n { font-size: 10.5px; font-weight: 600; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text2); }
.slot-x {
  position: absolute; top: -7px; right: -7px; display: none; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--line2); background: var(--panel2); color: var(--muted); padding: 0;
}
.slot-x .i { width: 12px; height: 12px; }
.slot.full:hover .slot-x, .slot-x:focus-visible { display: grid; }
.slot-x:hover { color: var(--danger); border-color: var(--danger); }
.ico.big { width: 52px; height: 52px; border-radius: 11px; }

/* ---------------------------------------------------------------- buff'lar */
.buff-list { list-style: none; margin: 0; padding: 6px 8px 10px; }
.buff-cat { padding: 10px 8px 4px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.buff { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; cursor: pointer; font-size: 13px; }
.buff:hover { background: var(--hover); }
.buff input { accent-color: var(--gold); width: 15px; height: 15px; flex: none; }
.buff-n { flex: 1; min-width: 0; font-weight: 500; color: var(--text2); }
.buff-v { font-size: 11px; font-weight: 700; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.buff.on { background: var(--gold-soft); }
.buff.on .buff-n { color: var(--text); }
.buff.debuff .buff-v { color: var(--danger); }
.note-body { padding: 4px 16px 14px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.note-body p { margin: 10px 0 0; }

/* ---------------------------------------------------------------- item seçici */
#item-modal .modal-body { width: min(640px, 100%); display: flex; flex-direction: column; }
.im-tabs { margin: 14px 20px 0; }
.im-pane { padding: 14px 20px 20px; }
.im-pane .search-field { margin-bottom: 10px; }
.im-list { list-style: none; margin: 0; padding: 0; max-height: min(60vh, 520px); overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.im-list > li + li { border-top: 1px solid var(--line); }
.im-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: none; border: 0; text-align: left; color: var(--text); }
.im-row:hover { background: var(--hover); }
.im-row > .i { color: var(--dim); width: 15px; height: 15px; }
.im-row:hover > .i { color: var(--gold2); }
.im-row .ico { width: 36px; height: 36px; }
.im-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.im-meta b { font-weight: 600; font-size: 13.5px; }
.im-meta small { color: var(--muted); font-size: 12px; }
.im-row.variant .im-meta b { color: var(--gold2); }
.im-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.im-empty .spinner { margin: 6px auto; }
.im-head { padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--bg2); position: sticky; top: 0; z-index: 1; }
.im-base { display: flex; align-items: center; gap: 12px; }
.im-base b { display: block; font-size: 15px; }
.im-base small { color: var(--muted); font-size: 12px; }
.im-plus { display: flex; flex-wrap: wrap; gap: 4px; }
.im-plus button {
  min-width: 40px; height: 28px; border-radius: 7px; border: 1px solid var(--line2); background: var(--panel); color: var(--muted);
  font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums;
}
.im-plus button:hover { color: var(--text); }
.im-plus button.on { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #120e06; border-color: transparent; }
#im-form { grid-template-columns: repeat(3, 1fr); }

/* ================================================================ skill hesaplayıcı */
.cls-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.cls-btn {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); text-align: left;
  background: linear-gradient(180deg, var(--panel), rgba(17, 21, 28, .6)); border: 1px solid var(--line); color: var(--text2);
  font-weight: 700; font-size: 15px; transition: border-color .15s, background .15s, transform .15s;
}
.cls-btn .i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--bg2); color: var(--muted); box-sizing: border-box; }
.cls-btn:hover { border-color: var(--line2); transform: translateY(-1px); color: var(--text); }
.cls-btn.on { border-color: rgba(230, 180, 80, .6); background: linear-gradient(180deg, rgba(230, 180, 80, .12), rgba(230, 180, 80, .03)); color: var(--text); }
.cls-btn.on .i { background: var(--gold-soft); color: var(--gold); }

.sk-top { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 18px 24px; padding: 16px 18px; margin-bottom: 16px; align-items: start; }
.sk-ctrl { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sk-levelrow { display: flex; align-items: center; gap: 14px; }
.sk-levelrow .stepper { width: 150px; flex: none; }
.sk-levelrow .range { flex: 1; min-width: 80px; }
.sk-pnum { display: flex; align-items: baseline; gap: 10px; }
.sk-pnum b { font-size: 30px; font-weight: 800; color: var(--gold2); font-variant-numeric: tabular-nums; line-height: 1; }
.sk-pnum b.over { color: var(--danger); }
.sk-pnum span { color: var(--muted); font-size: 13px; }
.sk-bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.sk-bar i { display: block; height: 100%; transition: width .2s; }
.sk-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.sk-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.sk-legend b { color: var(--text); font-variant-numeric: tabular-nums; }
.sk-actions { align-items: flex-end; text-align: right; }
.sk-presets-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }

.sk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.sk-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.sk-col { border-top: 2px solid var(--tab); overflow: hidden; }
.sk-col + .sk-col { margin-top: 0; }
.sk-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px 6px; }
.sk-head b { font-size: 15px; }
.sk-head span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sk-step { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px auto; gap: 4px; padding: 6px 14px 8px; }
.sk-step button { height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text2); padding: 0; }
.sk-step button:hover { color: var(--gold2); border-color: #3a4357; }
.sk-step .sk-max { padding: 0 9px; font-size: 12px; font-weight: 700; }
.sk-step input { height: 30px; padding: 0 4px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.sk-step input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sk-col .bar { margin: 0 14px; }
.sk-col .bar i { background: var(--tab); }
.sk-note { margin: 6px 14px 8px; font-size: 11.5px; color: var(--dim); line-height: 1.4; }
.sk-list { list-style: none; margin: 0; padding: 4px 6px 8px; }
.sk-row {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 8px; background: none; border: 1px solid transparent;
  text-align: left; color: var(--text2); font-size: 13px; transition: background .12s;
}
.sk-row:hover { background: var(--hover); }
.sk-row.sel { border-color: rgba(230, 180, 80, .5); background: var(--gold-soft); }
.sk-row.on .sk-n { color: var(--text); font-weight: 600; }
.sk-row.on .sk-lv { color: #120e06; background: var(--tab, var(--gold)); }
.sk-row.off .sk-ico { filter: grayscale(.85) brightness(.6); }
.sk-row.off .sk-n { color: var(--muted); }
.sk-row.blocked { opacity: .45; }
.sk-row.blocked .sk-n { text-decoration: line-through; }
.sk-row.untitled .sk-n { font-style: italic; }
.sk-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-lv {
  flex: none; min-width: 24px; text-align: center; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums;
  border-radius: 6px; padding: 1px 5px; background: var(--bg2); color: var(--muted);
}
.sk-col:first-child .sk-row.on .sk-lv { background: var(--panel2); color: var(--text2); }
.sk-ico { flex: none; width: 28px; height: 28px; border-radius: 6px; overflow: hidden; background: #07090c; box-shadow: inset 0 0 0 1px #343c4d; }
.sk-ico img { display: block; width: 100%; height: 100%; }
.sk-ico.big { width: 44px; height: 44px; border-radius: 9px; }
.sk-ico.none { background: repeating-linear-gradient(135deg, var(--panel2), var(--panel2) 4px, var(--bg2) 4px, var(--bg2) 8px); }

.sk-side { position: sticky; top: calc(var(--top-h) + 12px); }
.sk-detail { padding: 14px 16px; }
.sk-dhead { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.sk-dhead b { display: block; font-size: 16px; }
.sk-badge { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 8px; }
.sk-badge.on { color: var(--sell); background: var(--sell-soft); }
.sk-badge.off { color: var(--muted); background: var(--bg2); }
.sk-badge.blocked { color: var(--danger); background: var(--danger-soft); }
.sk-pas { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--buy); background: var(--buy-soft); border-radius: 5px; padding: 2px 7px; }
.sk-desc { margin: 10px 0; color: var(--text2); font-size: 13.5px; line-height: 1.55; }
.sk-warn { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.sk-props { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sk-props div { display: flex; justify-content: space-between; padding: 7px 10px; background: var(--bg2); font-size: 13px; }
.sk-props dt { color: var(--muted); }
.sk-props dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 1280px) {
  .sk-layout { grid-template-columns: minmax(0, 1fr); }
  .sk-side { position: static; }
  .sk-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sk-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cls-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .cls-btn { flex-direction: column; gap: 6px; padding: 10px 4px; font-size: 12px; text-align: center; }
  .cls-btn .i { width: 30px; height: 30px; padding: 6px; }
  .sk-top { grid-template-columns: minmax(0, 1fr); }
  .sk-actions { align-items: flex-start; text-align: left; }
  .sk-tabs { grid-template-columns: minmax(0, 1fr); }
  .sk-levelrow { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- kukla hasar testi */
.kukla { margin-top: 16px; scroll-margin-top: calc(var(--top-h) + 12px); }
.kukla .panel-title .new-pill { margin-left: 2px; }
.kukla-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; }
.k-stage { display: flex; flex-direction: column; gap: 14px; padding: 16px; position: sticky; top: calc(var(--top-h) + 12px); align-self: start; }
.k-arena {
  position: relative; height: 250px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(220px 120px at 50% 92%, rgba(230, 180, 80, .14), transparent 70%),
    linear-gradient(180deg, #0f141c, #0b0e13 70%, #141008);
}
.k-arena::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: linear-gradient(180deg, transparent, rgba(92, 70, 36, .25)); pointer-events: none; }
.k-dummy {
  position: absolute; left: 50%; bottom: 8px; width: 150px; margin-left: -75px; padding: 0; border: 0; background: none;
  transform-origin: 50% 96%; cursor: crosshair; z-index: 1;
}
.k-dummy svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.k-dummy:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 12px; }
.k-dummy.hit { animation: k-shake .32s ease-out; }
@keyframes k-shake {
  0% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 55% { transform: rotate(3.5deg); } 80% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); }
}
.k-floats { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.k-float {
  position: absolute; top: 34%; transform: translateX(-50%); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--gold2); text-shadow: 0 2px 0 rgba(0, 0, 0, .7), 0 0 14px rgba(0, 0, 0, .6); opacity: 0;
  animation: k-float 1.3s ease-out forwards;
}
@keyframes k-float {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); }
  12% { opacity: 1; transform: translate(-50%, 0) scale(1.15); }
  25% { transform: translate(-50%, -8px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -70px) scale(1); }
}
.k-float.fire, .k-log b.fire { color: #ff8a4c; }
.k-float.ice, .k-log b.ice { color: #7cc7ff; }
.k-float.light, .k-log b.light { color: #c9a5ff; }
.k-float.magic, .k-log b.magic { color: #f3e7a6; }
.k-float.poison, .k-log b.poison { color: #7fe08a; }
.k-float.curse, .k-log b.curse { color: #e58bd8; }

.k-target-form { display: flex; flex-direction: column; gap: 10px; }
.k-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.k-pair input:disabled { opacity: .6; }
.k-session { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.k-session-head { display: flex; justify-content: space-between; align-items: center; }
.k-sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.k-sgrid div { background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; }
.k-sgrid span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.k-sgrid b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.k-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.k-log li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 2px; border-bottom: 1px dashed var(--line); }
.k-log li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text2); }
.k-log li b { font-variant-numeric: tabular-nums; color: var(--gold2); }
.k-log li.muted { display: block; border: 0; line-height: 1.5; }

.k-main { min-width: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.k-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; }
.k-table-wrap { overflow-x: auto; }
.k-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.k-table th { padding: 8px 10px; text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); white-space: nowrap; }
.k-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.k-table th:first-child, .k-table td:first-child { padding-left: 16px; }
.k-table th:last-child, .k-table td:last-child { padding-right: 16px; }
.k-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.k-table td.num { color: var(--text2); }
.k-table td.avg { position: relative; color: var(--gold2); font-weight: 800; font-size: 14px; }
.k-meter { position: absolute; right: 10px; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold)); max-width: calc(100% - 20px); opacity: .7; }
.k-table tbody tr:hover { background: var(--hover); }
.k-table tr.locked { opacity: .5; }
.k-table tr.untitled .k-sn b { font-style: italic; font-weight: 600; }
.k-skill { display: flex; align-items: center; gap: 10px; min-width: 0; }
.k-skill .sk-ico { width: 32px; height: 32px; }
.k-r { display: grid; place-items: center; color: var(--gold); background: var(--bg2); }
.k-r .i { width: 16px; height: 16px; }
.k-sn { min-width: 0; display: flex; flex-direction: column; }
.k-sn b { font-weight: 700; color: var(--text); max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-sn small { color: var(--muted); font-size: 11.5px; }
.k-kind { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 8px; white-space: nowrap; color: var(--text2); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); }
.k-kind.fire { color: #ff8a4c; background: rgba(255, 138, 76, .1); box-shadow: none; }
.k-kind.ice { color: #7cc7ff; background: rgba(124, 199, 255, .1); box-shadow: none; }
.k-kind.light { color: #c9a5ff; background: rgba(201, 165, 255, .1); box-shadow: none; }
.k-kind.magic { color: #f3e7a6; background: rgba(243, 231, 166, .08); box-shadow: none; }
.k-kind.poison { color: #7fe08a; background: rgba(127, 224, 138, .1); box-shadow: none; }
.k-kind.curse { color: #e58bd8; background: rgba(229, 139, 216, .1); box-shadow: none; }
.k-float.dot { font-size: 15px; top: 46%; }
.k-dotonly { color: var(--muted); font-size: 12px; text-align: right; }
.k-need { color: var(--danger); font-size: 12px; text-align: right; }
.k-need .i { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; }
.k-act { width: 1%; text-align: right; }
.k-act .btn { min-width: 52px; justify-content: center; }
.k-empty { text-align: center; color: var(--muted); padding: 24px 16px; }
.k-note { margin: 0; padding: 12px 16px 16px; font-size: 12px; color: var(--dim); line-height: 1.55; }

/* ================================================================ eşya karşılaştırma */
.cmp-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.cmp-side { position: sticky; top: calc(var(--top-h) + 12px); display: flex; flex-direction: column; max-height: calc(100vh - var(--top-h) - 24px); }
.cmp-find { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 12px; }
.cmp-find select { width: 100%; }
.cmp-list { list-style: none; margin: 0; padding: 0 8px 10px; overflow: auto; flex: 1; min-height: 200px; }
.cmp-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; background: none;
  border: 1px solid transparent; color: var(--text); text-align: left;
}
.cmp-item:hover { background: var(--hover); }
.cmp-item.on { background: var(--gold-soft); border-color: rgba(230, 180, 80, .4); }
.cmp-item .ico { width: 34px; height: 34px; }
.cmp-item .im-meta b { font-size: 13px; }
.cmp-item > .i { color: var(--dim); width: 15px; height: 15px; }
.cmp-num { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #120e06; font-size: 12px; font-weight: 800; }
.cmp-main { min-width: 0; }
.cmp-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cmp-bar > b { font-size: 15px; font-variant-numeric: tabular-nums; }
.cmp-all { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cmp-all select { height: 30px; padding: 0 26px 0 10px; font-size: 13px; }
.cmp-bar-gap { flex: 1; }
#cmp-diff.on { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #120e06; border-color: transparent; }
.cmp-table-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.cmp-table th, .cmp-table td { border-bottom: 1px solid var(--line); padding: 9px 12px; text-align: center; font-size: 13px; }
.cmp-stat { position: sticky; left: 0; z-index: 1; background: var(--panel); text-align: left !important; font-weight: 600; color: var(--text2); white-space: nowrap; min-width: 130px; }
thead .cmp-stat { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); vertical-align: bottom; }
.cmp-col { vertical-align: top; min-width: 170px; border-top: 2px solid transparent; }
.cmp-col.best { border-top-color: var(--gold); background: linear-gradient(180deg, rgba(230, 180, 80, .07), transparent 70%); }
.cmp-head { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cmp-head .ico { width: 44px; height: 44px; margin-bottom: 4px; }
.cmp-head > b { font-size: 14px; line-height: 1.3; }
.cmp-head small { font-size: 11.5px; color: var(--muted); }
.cmp-wins { font-size: 11px; font-weight: 700; color: var(--text2); }
.cmp-best { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: #120e06; background: var(--gold); border-radius: 6px; padding: 1px 8px; }
.cmp-head select { width: 100%; max-width: 150px; height: 30px; font-size: 12.5px; margin-top: 4px; }
.cmp-head .link-btn .i { width: 12px; height: 12px; }
.cmp-table td b { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.cmp-table td small { display: block; font-size: 11px; font-weight: 700; color: #ff9b9b; font-variant-numeric: tabular-nums; }
.cmp-table td.good { background: rgba(47, 191, 127, .14); }
.cmp-table td.good b { color: #5fe0a4; }
.cmp-table td.worse { background: rgba(255, 107, 107, .05); }
.cmp-table tbody tr:hover td { filter: brightness(1.12); }
.cmp-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 60px 20px; text-align: center; color: var(--muted); }
.cmp-empty > .i { width: 26px; height: 26px; color: var(--dim); }
.cmp-empty b { color: var(--text); font-size: 15px; }

@media (max-width: 900px) {
  .cmp-layout { grid-template-columns: minmax(0, 1fr); }
  .cmp-side { position: static; max-height: none; }
  .cmp-list { max-height: 320px; }
}

/* ================================================================ KC hesaplayıcı */
.kc-top { display: grid; grid-template-columns: 220px 220px minmax(0, 1fr); gap: 0; margin-bottom: 16px; }
.kc-top > div { padding: 16px 18px; min-width: 0; }
.kc-top > div + div { border-left: 1px solid var(--line); }
.kc-rate { display: flex; flex-direction: column; gap: 6px; }
.kc-rate > b { font-size: 28px; font-weight: 800; color: var(--gold2); font-variant-numeric: tabular-nums; line-height: 1.15; }
.kc-rate small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.kc-pkg-row { display: flex; align-items: center; gap: 8px; }
.kc-pkg-row input { width: 100%; height: 40px; font-size: 22px; font-weight: 800; color: var(--gold2); font-variant-numeric: tabular-nums; }
.kc-pkg-row span { font-size: 18px; font-weight: 700; color: var(--muted); }
.kc-servers { display: flex; flex-direction: column; gap: 8px; }
.kc-servers .field-l small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.kc-server-list { display: flex; flex-wrap: wrap; gap: 6px; }
.kc-server-list button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 92px; padding: 7px 11px; border-radius: 10px;
  border: 1px solid var(--line2); background: var(--bg2); color: var(--text2); text-align: left; transition: border-color .15s, background .15s;
}
.kc-server-list button b { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.kc-server-list button span { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kc-server-list button:hover:not(:disabled) { border-color: #3a4357; color: var(--text); }
.kc-server-list button.on { background: linear-gradient(180deg, var(--gold2), var(--gold)); border-color: transparent; color: #120e06; }
.kc-server-list button:disabled { opacity: .45; cursor: default; }

.kc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.kc-main { min-width: 0; }
.kc-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 6px; }
.kc-filter .search-field { flex: 1 1 260px; }
.kc-sec { margin-top: 18px; }
.kc-sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.kc-sec-head h2 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kc-sec-head span { font-size: 12px; color: var(--dim); }
.kc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.kc-card {
  display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); min-width: 0; transition: border-color .15s;
}
.kc-card:hover { border-color: var(--line2); }
.kc-card.in { border-color: rgba(230, 180, 80, .45); }
.kc-card .ico { width: 46px; height: 46px; margin-bottom: 6px; }
.kc-n { font-size: 13.5px; line-height: 1.3; min-height: 2.6em; }
.kc-kc { font-size: 15px; font-weight: 800; color: var(--gold2); font-variant-numeric: tabular-nums; }
.kc-eq { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kc-card .btn { margin-top: 8px; justify-content: center; }

.kc-cart { position: sticky; top: calc(var(--top-h) + 12px); }
.kc-cart-list { list-style: none; margin: 0; padding: 6px 10px; max-height: 300px; overflow: auto; }
.kc-cart-list li { display: flex; align-items: center; gap: 9px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.kc-cart-list li:last-child { border-bottom: 0; }
.kc-cart-list .ico { width: 32px; height: 32px; flex: none; }
.kc-cn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kc-cn b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-cn small { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kc-qty { display: inline-flex; align-items: center; gap: 2px; }
.kc-qty b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.kc-qty button { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border-radius: 6px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text2); }
.kc-qty button .i, .kc-cart-list .icon-btn .i { width: 12px; height: 12px; }
.kc-empty { display: block !important; color: var(--muted); font-size: 13px; padding: 14px 4px !important; border: 0 !important; }
.kc-custom { margin: 0 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.kc-custom summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--gold); }
.kc-custom form { display: grid; grid-template-columns: minmax(0, 1fr) 78px auto; gap: 6px; margin-top: 10px; }
.kc-custom input { height: 32px; font-size: 13px; min-width: 0; }
.kc-pay {
  margin: 6px 16px 0; padding: 14px; border-radius: 12px; display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(180deg, rgba(230, 180, 80, .12), rgba(230, 180, 80, .04)); border: 1px solid rgba(230, 180, 80, .35);
}
.kc-pay b { font-size: 26px; font-weight: 800; color: var(--gold2); font-variant-numeric: tabular-nums; }
.kc-pay small { font-size: 12px; color: var(--muted); }
.kc-sums { margin: 12px 16px 0; display: flex; flex-direction: column; gap: 6px; }
.kc-sums div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.kc-sums dt { color: var(--text2); }
.kc-sums dt small { color: var(--dim); }
.kc-sums dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kc-cart-actions { display: flex; gap: 8px; margin: 14px 16px 0; }
.kc-cart-actions .btn { flex: 1; justify-content: center; }
.kc-foot { margin: 12px 16px 16px; font-size: 11.5px; color: var(--dim); line-height: 1.5; }

@media (max-width: 1100px) {
  .kc-top { grid-template-columns: 1fr 1fr; }
  .kc-top .kc-servers { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .kc-layout { grid-template-columns: minmax(0, 1fr); }
  .kc-cart { position: static; }
}
@media (max-width: 560px) {
  .kc-top { grid-template-columns: minmax(0, 1fr); }
  .kc-top > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .kc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kc-server-list button { min-width: 0; flex: 1 1 30%; }
}

/* ---------------------------------------------------------------- duyarlı düzen */
@media (max-width: 1280px) {
  .calc-grid { grid-template-columns: 290px minmax(0, 1fr); }
  .calc-col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .kukla-grid { grid-template-columns: minmax(0, 1fr); }
  .k-stage { position: static; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .k-main { border-left: 0; }
  .k-arena { grid-row: span 2; }
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-col:last-child { grid-template-columns: minmax(0, 1fr); }
  .doll-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .doll { grid-template-columns: 74px minmax(0, 1fr) 74px; gap: 8px; padding: 12px; }
  .doll-figure { min-height: 180px; }
  .fig-info { padding: 10px; }
  .doll-figure.has-3d { min-height: 300px; }
  .fig-emblem { width: 56px; height: 56px; }
  .res-big { grid-template-columns: 1fr 1fr; }
  .res-big .big:last-child { grid-column: 1 / -1; }
  .res-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .res-resist { grid-template-columns: repeat(3, 1fr); }
  .big b { font-size: 22px; }
  #im-form { grid-template-columns: 1fr 1fr; }
  .slot-x { display: grid; }
  .k-stage { grid-template-columns: minmax(0, 1fr); }
  .k-arena { grid-row: auto; }
  .k-table th:nth-child(2), .k-table td:nth-child(2) { display: none; }
  .k-table th, .k-table td { padding-left: 5px; padding-right: 5px; }
  .k-table th:first-child, .k-table td:first-child { padding-left: 12px; }
  .k-table th:last-child, .k-table td:last-child { padding-right: 12px; }
  .k-table td.avg { font-size: 13px; }
  .k-skill { gap: 8px; }
  .k-skill .sk-ico { width: 28px; height: 28px; }
  .k-act .btn { min-width: 0; padding: 0 9px; }
  .k-sn b { max-width: 130px; }
}
