/* Lonca — hub iskeleti */
.lg {
  --navy: #071426;
  --panel: #0c1830;
  --row: #12243c;
  --gold: #f6c445;
  --cream: #f7f1e4;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font);
  user-select: none;
}
.lg button { -webkit-tap-highlight-color: transparent; }
.lg svg { display: block; flex-shrink: 0; }

.lg-top {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 6px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px;
  background: var(--panel);
  border-bottom: 1px solid rgba(246, 196, 69, 0.22);
}
.lg-top h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(20px, 5.4vw, 24px);
  font-weight: 900;
  color: #fff;
}
.lg-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #dce6f5;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lg-icon-btn.lg-gold { color: var(--gold); }
.lg-icon-btn svg { width: 22px; height: 22px; }
.lg-icon-btn:active { transform: scale(0.95); }

.lg-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 14px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  overscroll-behavior: contain;
}

.lg-head {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
}
.lg-emblem {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  overflow: hidden;
  background: #152a46;
  border: 2px solid rgba(246, 196, 69, 0.55);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.lg-emblem img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.lg-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lg-name {
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lg-slogan-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #12243c;
  border: 1px solid rgba(154, 208, 255, 0.22);
}
.lg-slogan-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(154, 208, 255, 0.75);
}
.lg-slogan {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  color: #e8f4ff;
  font: inherit;
  text-align: left;
  cursor: default;
}
button.lg-slogan { cursor: pointer; }
.lg-slogan > span {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: inherit;
}
.lg-slogan > em {
  flex-shrink: 0;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  color: #3a2608;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  padding: 4px 8px;
  border-radius: 8px;
}
button.lg-slogan.is-empty > span {
  color: rgba(232, 244, 255, 0.45);
  font-style: italic;
}
.lg-slogan.is-ro > span { color: rgba(247, 241, 228, 0.85); }
.lg-slogan-edit {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.lg-slogan-edit h2 {
  margin: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
}
.lg-slogan-edit .muted {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #aeb9c8;
  line-height: 1.4;
}
.lg-slogan-edit .modal-field { margin-bottom: 0; }
.lg-slogan-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lg-slogan-actions .btn {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  font-weight: 800;
  border: none;
}
.lg-slogan-actions .btn:not(.btn-primary) {
  color: rgba(247, 241, 228, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.lg-lv {
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.75);
}
.lg-xp {
  position: relative;
  margin-top: 4px;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: #0a1424;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.lg-xp-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2a7fff, #5ec8ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.lg-xp-txt {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.lg-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.lg-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  min-width: 0;
  padding: 10px 4px;
  border-radius: 12px;
  background: var(--row);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.lg-stat span {
  font-size: 10px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.lg-stat strong {
  font-size: clamp(11px, 3.1vw, 17px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.lg-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lg-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: left;
  color: inherit;
  background: var(--row);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}
.lg-row:active { transform: scale(0.985); background: #162a44; }
.lg-row-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.25)), #152a46;
  border: 1px solid rgba(246, 196, 69, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.lg-row-ico svg { width: 22px; height: 22px; }
.lg-row-ico-art img {
  width: 86%;
  height: 86%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.lg-row-txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lg-row-txt strong {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
}
.lg-row-sub {
  font-size: 12px;
  font-weight: 800;
  color: #3ddc6e;
}
.lg-badge {
  position: relative;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  align-self: center;
  background: #e4544a;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.lg-badge.is-wide {
  width: auto;
  min-width: 28px;
  padding: 0 7px;
  border-radius: 999px;
}
.lg-badge > i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  white-space: nowrap;
}
.lg-row-chev {
  color: rgba(247, 241, 228, 0.45);
}
.lg-row-chev svg { width: 18px; height: 18px; }

@media (max-height: 680px) {
  .lg-emblem { width: 72px; height: 72px; }
  .lg-stat { min-height: 56px; }
  .lg-row { min-height: 50px; }
}

/* —— Lonca Kur —— */
.lg-pad { width: 40px; height: 40px; }
.lg-create-body { gap: 12px; }
.lg-create-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 0 2px;
}
.lg-emblem-lg {
  width: 112px;
  height: 112px;
  border-radius: 24px;
}
.lg-create-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
}
.lg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lg-field span {
  font-size: 12px;
  font-weight: 900;
  color: rgba(247, 241, 228, 0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lg-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(246, 196, 69, 0.35);
  background: #0a1424;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
}
.lg-field input::placeholder { color: rgba(247, 241, 228, 0.35); font-weight: 700; }
.lg-field input:focus {
  border-color: rgba(246, 196, 69, 0.7);
  box-shadow: 0 0 0 2px rgba(246, 196, 69, 0.18);
}

.lg-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.lg-logo {
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 14px;
  background: #12243c;
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
}
.lg-logo img {
  width: 88%;
  height: 88%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}
.lg-logo.is-on {
  border-color: var(--gold);
  background: #1a2e4a;
  box-shadow: 0 0 0 1px rgba(246, 196, 69, 0.35), 0 0 14px rgba(246, 196, 69, 0.25);
}
.lg-logo:active { transform: scale(0.96); }

.lg-create-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.lg-cost {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(94, 200, 255, 0.08);
  border: 1px solid rgba(94, 200, 255, 0.22);
}
.lg-cost-gem {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-style: normal;
}
.lg-cost-gem-art,
.lg-cost img.lg-cost-gem-art {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}
.lg-cost strong {
  font-size: 18px;
  font-weight: 900;
  color: #5ec8ff;
}
.lg-cost span {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
}
.lg-cost.need {
  border-color: rgba(228, 84, 74, 0.4);
  background: rgba(228, 84, 74, 0.1);
}
.lg-cost.need strong { color: #ffb4ae; }
.lg-create-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 900;
  color: #3a2608;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  border: none;
  box-shadow: 0 4px 0 #c47d08;
}
.lg-create-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #c47d08;
}
.lg-create-btn.is-disabled,
.lg-create-btn:disabled {
  opacity: 0.45;
  filter: grayscale(0.35);
  box-shadow: none;
}

/* Lonca kuruldu popup */
.lg-done {
  position: relative;
  text-align: center;
  padding: 8px 4px 2px;
  overflow: hidden;
}
.lg-done-glow {
  position: absolute;
  left: 10%;
  right: 10%;
  top: -10%;
  height: 120px;
  background: radial-gradient(ellipse at 50% 40%, rgba(246, 196, 69, 0.22), transparent 70%);
  pointer-events: none;
}
.lg-done-emblem {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  margin: 4px auto 12px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(160deg, #24344a, #0e1624);
  border: 2px solid rgba(246, 196, 69, 0.55);
  box-shadow:
    0 0 24px rgba(246, 196, 69, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.lg-done-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}
.lg-done-kicker {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: rgba(246, 196, 69, 0.9);
}
.lg-done-name {
  position: relative;
  z-index: 1;
  margin: 6px 0 4px !important;
  font-size: clamp(22px, 6vw, 26px) !important;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
}
.lg-done-blurb {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(232, 224, 208, 0.6);
}
.lg-done-cost {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lg-done-cost > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(232, 224, 208, 0.5);
}
.lg-done-cost .rw-ico {
  width: 20px;
  height: 20px;
}
.lg-done-ok {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* —— Lonca panelleri —— */
.lg-panel {
  /* compose çubuğu için */
}
.lg-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  gap: 10px;
  padding-bottom: 8px;
}
.lgw-note {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
}
.lgw-note b { color: var(--gold); }
.lgw-season-pay {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #1a1208;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
}

/* Sohbet */
.lgc-feed {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px 8px;
}
.lg-panel .lg-body {
  display: flex;
  flex-direction: column;
}
.lgc-sys {
  display: flex;
  justify-content: center;
}
.lgc-sys span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.65);
  background: rgba(255, 255, 255, 0.06);
}
.lgc-msg {
  max-width: 88%;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #12243c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lgc-msg.is-self {
  align-self: flex-end;
  background: #1a3a28;
  border-color: rgba(61, 220, 110, 0.25);
  border-radius: 14px 14px 4px 14px;
}
.lgc-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
  min-width: 0;
}
.lgc-meta strong,
.lgc-user {
  font-size: 12px;
  font-weight: 900;
  color: var(--gold);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lgc-user {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(246, 196, 69, 0.45);
  text-underline-offset: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lgc-user:active { opacity: 0.75; }
.lgc-msg.is-self .lgc-meta strong,
.lgc-msg.is-self .lgc-user { color: #9fe870; }
.lgc-msg.is-self .lgc-user {
  text-decoration-color: rgba(159, 232, 112, 0.45);
}
.lgc-meta em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: rgba(247, 241, 228, 0.4);
}
.lgc-msg p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  word-break: break-word;
}
.lgc-compose {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 8px;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--panel);
  border-top: 1px solid rgba(246, 196, 69, 0.2);
}
.lgc-compose input {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a1424;
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
}
.lgc-send {
  width: 48px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #3a2608;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  border: none;
  box-shadow: 0 3px 0 #c47d08;
}
.lgc-send svg { width: 20px; height: 20px; }
.lgc-send:active { transform: translateY(1px); }

/* Savaş */
.lgw-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2a1830, #121e36);
  border: 1px solid rgba(246, 196, 69, 0.28);
}
.lgw-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
}
.lgw-timer {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  font-weight: 900;
  color: #3ddc6e;
  font-variant-numeric: tabular-nums;
}
.lgw-score {
  text-align: right;
}
.lgw-score span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
}
.lgw-score b {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
}
.lgw-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lgw-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--row);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lgw-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a1424;
  border: 1px solid rgba(246, 196, 69, 0.3);
  display: grid;
  place-items: center;
}
.lgw-logo img { width: 86%; height: 86%; object-fit: contain; }
.lgw-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lgw-info strong {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lgw-info span,
.lgw-info em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
}
.lgw-atk {
  min-width: 72px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #e4544a, #b8322c);
  border: none;
  box-shadow: 0 3px 0 #7a1e1a;
}
.lgw-atk:active:not(:disabled) { transform: translateY(1px); }
.lgw-atk:disabled { opacity: 0.4; box-shadow: none; }
.lgw-card.is-razed { opacity: 0.62; filter: grayscale(0.35); }

.lgw-hp {
  position: relative;
  height: 8px;
  margin-top: 4px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lgw-hp > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #e4544a, #ffe56a);
  transition: width 0.28s ease-out;
}
.lgw-hp.is-mine > i {
  background: linear-gradient(90deg, #3ddc6e, #ffe56a);
}
.lgw-hp.is-siege {
  height: 12px;
  margin: 10px 0 6px;
}
.lgw-active {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(28, 48, 78, 0.92), rgba(10, 18, 34, 0.96));
  border: 1px solid rgba(110, 190, 255, 0.28);
}
.lgw-active-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.lgw-active-head strong {
  font-size: 13px;
  font-weight: 900;
}
.lgw-active-head span {
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.6);
}
.lgw-active-head b { color: #7ec8ff; }
.lgw-active-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.lgw-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lgw-active-chip.is-you {
  border-color: rgba(246, 196, 69, 0.55);
  background: rgba(246, 196, 69, 0.12);
}
.lgw-active-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.lgw-active-chip em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lgw-active-empty {
  font-size: 12px;
  font-weight: 800;
  color: #ff8e7a;
}
.lgw-active-hint {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(247, 241, 228, 0.5);
}

/* Lonca savaşı — tek VS eşleşme */
.lgw-match-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px 8px;
}
.lgw-section-label {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.55);
}
.lgw-section-label.is-sub {
  margin-top: 8px;
  color: rgba(247, 241, 228, 0.42);
}
.lgw-other-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lgw-other-match {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lgw-other-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.4);
}
.lgw-vs-board.is-other {
  opacity: 0.92;
  transform: scale(0.98);
  transform-origin: top center;
}
.lgw-vs-board.is-other .lgw-vs-logo {
  width: 58px;
  height: 58px;
}
.lgw-vs-board.is-other .lgw-vs-svg {
  width: 56px;
  height: 56px;
}
.lgw-vs-board.is-mine {
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(126, 232, 112, 0.12);
}
.lgw-match-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(8, 16, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}
.lgw-match-meta .lgw-timer {
  font-size: 15px;
  color: #9fe870;
}
.lgw-match-meta em {
  font-style: normal;
  color: var(--gold);
}
.lgw-vs-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
  padding: 14px 10px 16px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(246, 196, 69, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(18, 32, 52, 0.95), rgba(8, 14, 26, 0.98));
  border: 1.5px solid rgba(246, 196, 69, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.lgw-vs-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  min-width: 0;
  padding: 8px 4px;
}
.lgw-vs-side strong {
  font-size: 13px;
  font-weight: 900;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lgw-vs-side span {
  font-size: 10px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
}
.lgw-vs-side em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.7);
}
.lgw-vs-side em.is-win {
  color: #9dff7a;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lgw-vs-side em.is-lose {
  color: #ff8f7a;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lgw-vs-side .lgw-hp {
  width: 100%;
  max-width: 110px;
  height: 8px;
}
.lgw-vs-side.is-razed,
.lgw-vs-side.is-lose {
  filter: grayscale(0.55) brightness(0.75);
  opacity: 0.85;
}
.lgw-vs-side.is-win .lgw-vs-logo {
  border-color: rgba(140, 230, 90, 0.75);
  box-shadow: 0 0 14px rgba(120, 220, 80, 0.35);
}
.lgw-vs-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(246, 196, 69, 0.5);
  background: #0a1424;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.lgw-vs-side.is-foe .lgw-vs-logo {
  border-color: rgba(255, 120, 100, 0.55);
}
.lgw-vs-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lgw-vs-tag {
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lgw-vs-tag.is-us {
  color: #123018;
  background: linear-gradient(180deg, #b6f28a, #7ad84a);
}
.lgw-vs-tag.is-foe {
  color: #2a1010;
  background: linear-gradient(180deg, #ffb0a0, #ff7043);
}
.lgw-vs-tag.is-win {
  color: #102410;
  background: linear-gradient(180deg, #c8ff8e, #7adf42);
  box-shadow: 0 2px 8px rgba(100, 200, 60, 0.35);
}
.lgw-vs-tag.is-lose {
  color: #2a1010;
  background: linear-gradient(180deg, #ffb8a8, #e85a3a);
  box-shadow: 0 2px 8px rgba(200, 60, 40, 0.3);
}
.lgw-vs-mid {
  display: grid;
  place-items: center;
  align-self: center;
}
.lgw-vs-svg {
  display: block;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}
.lgw-match-note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.6);
}
.lgw-match-note b { color: #ffe56a; }
.lgw-join {
  margin-top: auto;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #1a1208;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  box-shadow: 0 5px 0 #c47d08, 0 10px 24px rgba(0, 0, 0, 0.35);
}
.lgw-join:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #c47d08;
}
.lgw-join:disabled {
  opacity: 0.45;
  box-shadow: none;
}

.lgw-castle {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(42, 28, 58, 0.92), rgba(12, 22, 40, 0.96));
  border: 1px solid rgba(246, 196, 69, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Lonca Kalesi sayfası */
.lgk-hero {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(42, 28, 58, 0.94), rgba(10, 18, 34, 0.96));
  border: 1.5px solid rgba(246, 196, 69, 0.4);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.lgk-hero-art {
  width: 108px;
  height: 108px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(246, 196, 69, 0.45);
  background: #0a1424;
}
.lgk-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lgk-hero-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lgk-hero-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.lgk-hero-head strong {
  font-size: 16px;
  font-weight: 900;
}
.lgk-hero-head em {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: var(--gold);
}
.lgk-stats {
  display: flex;
  gap: 14px;
}
.lgk-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 13px;
  font-weight: 900;
}
.lgk-stats i {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.45);
}
.lgk-blurb {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(247, 241, 228, 0.55);
}
.lgk-mats {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(8, 16, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lgk-mats-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.lgk-mats-head strong {
  font-size: 13px;
  font-weight: 900;
}
.lgk-mats-head em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lgk-mats-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lgk-mat {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lgk-mat.is-ok { border-color: rgba(120, 220, 140, 0.35); }
.lgk-mat.is-need { border-color: rgba(255, 140, 100, 0.28); }
.lgk-mat-art {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: #0a1424;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.lgk-mat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lgk-mat-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lgk-mat-main strong {
  font-size: 13px;
  font-weight: 900;
}
.lgk-mat-main span {
  font-size: 11px;
  font-weight: 700;
  color: rgba(247, 241, 228, 0.5);
}
.lgk-mat-main em {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: #ffe56a;
}
.lgk-mats-note {
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(247, 241, 228, 0.45);
}
.lgk-up {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 64px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  color: #1a1208;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  box-shadow: 0 4px 0 #c47d08;
  text-align: left;
}
.lgk-up strong {
  font-size: 16px;
  font-weight: 900;
}
.lgk-up span {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.85;
}
.lgk-up i {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}
.lgk-up:disabled {
  opacity: 0.45;
  box-shadow: none;
}
.lgk-up:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #c47d08; }
.lgk-max {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
}
.lgw-castle-art {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(246, 196, 69, 0.4);
  background: #0a1424;
}
.lgw-castle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lgw-castle-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lgw-castle-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.lgw-castle-head strong {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
}
.lgw-castle-head em {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: var(--gold);
}
.lgw-castle-hp {
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.65);
}
.lgw-castle-blurb {
  margin: 2px 0 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(247, 241, 228, 0.55);
}
.lgw-up {
  margin-top: 4px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  color: #1a1208;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  box-shadow: 0 3px 0 #c47d08;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.lgw-up i {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.85;
}
.lgw-up:disabled {
  opacity: 0.45;
  box-shadow: none;
}
.lgw-up.is-max {
  display: inline-flex;
  align-items: center;
  color: rgba(247, 241, 228, 0.55);
  background: transparent;
  box-shadow: none;
}
.lgw-siege {
  text-align: center;
  padding: 8px 4px 4px;
}
.lgw-siege-art {
  width: min(56vw, 180px);
  height: min(56vw, 180px);
  margin: 8px auto 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(246, 196, 69, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.lgw-siege-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lgw-siege h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 900;
}
.lgw-siege-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.6);
}
.lgw-siege-hp {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: #ffe56a;
}
.lgw-siege-log {
  margin: 10px 0 6px;
  min-height: 1.3em;
  font-size: 13px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.85);
}
.lgw-siege-reward {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
}
.lgw-siege.is-hit .lgw-siege-art {
  animation: lgwSiegeHit 0.28s ease-out;
}
.lgw-siege.is-razed .lgw-siege-art {
  filter: grayscale(0.5) brightness(0.75);
}
@keyframes lgwSiegeHit {
  0% { transform: translateX(0); }
  30% { transform: translateX(-5px) scale(0.98); }
  60% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* —— Lonca savaşı alanı (dzb tarzı, iki kale) —— */
.gwb {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  color: #f7f1e4;
  font-family: var(--font);
  background: #071018;
  user-select: none;
}
.gwb-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.gwb-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: saturate(1.05) contrast(1.04);
}
.gwb-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 10, 20, 0.55) 0%, rgba(4, 10, 20, 0.18) 28%, rgba(4, 10, 20, 0.22) 62%, rgba(4, 10, 20, 0.78) 100%),
    radial-gradient(ellipse 80% 50% at 50% 45%, transparent 30%, rgba(0, 0, 0, 0.35) 100%);
}
.gwb.is-fighting .gwb-bg-img {
  animation: gwbBgPulse 1.2s ease-in-out infinite;
}
@keyframes gwbBgPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}
.gwb-top {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding:
    calc(10px + env(safe-area-inset-top, 0px))
    14px
    6px;
  text-align: center;
}
.gwb-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1208;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
}
.gwb-top strong {
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}
.gwb-top span {
  font-size: 12px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.72);
}
.gwb-col {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 8px;
  padding: 4px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.gwb.is-cards .gwb-col {
  justify-content: center;
  gap: 22px;
  padding-top: 8px;
}
.gwb-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 0 22px;
  width: 100%;
}
.gwb-vs3d {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}
.gwb-vs3d-svg {
  width: 84px;
  height: 84px;
  display: block;
  overflow: visible;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}
.gwb-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}
.gwb-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 22, 40, 0.92), rgba(8, 14, 26, 0.94));
  border: 1.5px solid rgba(246, 196, 69, 0.35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
.gwb-join {
  flex: 0 0 auto;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px 7px;
  border-radius: 16px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(24, 48, 78, 0.95), rgba(8, 16, 32, 0.96));
  border: 1.5px solid rgba(110, 190, 255, 0.45);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.gwb-join.is-enemy {
  border-color: rgba(255, 120, 100, 0.48);
  background: linear-gradient(180deg, rgba(52, 20, 24, 0.95), rgba(14, 12, 22, 0.96));
}
.gwb-join.is-enemy .gwb-join-n {
  color: #ff9a86;
  text-shadow: 0 2px 10px rgba(255, 90, 60, 0.3);
}
.gwb-join.is-off {
  border-color: rgba(255, 120, 100, 0.35);
  background: linear-gradient(180deg, rgba(48, 22, 24, 0.92), rgba(12, 12, 22, 0.96));
}
.gwb-join-n {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: #7ec8ff;
  text-shadow: 0 2px 10px rgba(80, 170, 255, 0.35);
}
.gwb-join.is-off .gwb-join-n { color: #ff8e7a; }
.gwb-join-l {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f7f1e4;
}
.gwb-join-s {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.45);
}
.gwb-join-atk {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 900;
  color: #ffe56a;
  line-height: 1;
}
.gwb-join-atk-l {
  font-style: normal;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.45);
}
.gwb-card-stats .is-hp b { color: #9fe870; }
.gwb-card-stats .is-def b { color: #7ec8ff; }
.gwb-join-pips {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.gwb-join-pip {
  width: 18px;
  height: 18px;
  margin-left: -5px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(12, 22, 40, 0.95);
  background: #0a1424;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.gwb-join-pip:first-child { margin-left: 0; }
.gwb-join-pip.is-you {
  border-color: rgba(246, 196, 69, 0.85);
  z-index: 2;
}
.gwb-join-pip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gwb-card.is-enemy {
  border-color: rgba(255, 110, 90, 0.42);
  background: linear-gradient(180deg, rgba(42, 16, 20, 0.9), rgba(12, 14, 24, 0.94));
}
.gwb-card.is-ally {
  border-color: rgba(110, 190, 255, 0.4);
}
.gwb-card-av {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: #0a1424;
}
.gwb-card-av-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gwb-card-logo {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(246, 196, 69, 0.7);
  background: #0a1424;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.gwb-card-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gwb-card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gwb-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.gwb-card-id strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gwb-card-id em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
}
.gwb-dmg {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  color: #ff8e7a;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.gwb-dmg.is-crit { color: #ffe56a; }
.gwb-dmg.is-pop { animation: gwbDmgPop 0.35s ease-out; }
@keyframes gwbDmgPop {
  0% { transform: translateY(6px) scale(0.85); opacity: 0; }
  40% { transform: translateY(-2px) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.gwb-card-stats {
  display: flex;
  gap: 10px;
}
.gwb-card-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  font-weight: 900;
}
.gwb-card-stats i {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.45);
}
.gwb-card-bar {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gwb-hp-track {
  display: block;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.gwb-hp-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  transition: width 0.28s ease-out;
}
.gwb-hp-fill.is-enemy {
  background: linear-gradient(90deg, #c62828, #ff7043 55%, #ffab91);
}
.gwb-hp-fill.is-ally {
  background: linear-gradient(90deg, #1565c0, #42a5f5 55%, #90caf9);
}
.gwb-card-hp {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.7);
}
.gwb-card.is-hit { animation: gwbCardHit 0.32s ease-out; }
.gwb-card.is-crit { animation: gwbCardCrit 0.4s ease-out; }
.gwb-card.is-strike { animation: gwbCardStrike 0.34s cubic-bezier(0.2, 0.85, 0.25, 1); }
.gwb-card.is-razed {
  filter: grayscale(0.55) brightness(0.72);
  opacity: 0.85;
}
@keyframes gwbCardStrike {
  0% { transform: scale(1); }
  40% { transform: scale(1.03) translateY(-2px); filter: brightness(1.12); }
  100% { transform: scale(1); }
}
@keyframes gwbCardHit {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(5px); }
  55% { transform: translateX(-4px); }
}
@keyframes gwbCardCrit {
  0%, 100% { transform: translateX(0) scale(1); }
  20% { transform: translateX(7px) scale(0.98); }
  50% { transform: translateX(-5px) scale(1.02); }
}

.gwb-field {
  position: relative;
  flex: 1 1 auto;
  min-height: 168px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 3vw, 16px);
  padding: 6px 8px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.gwb-keep {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gwb-keep-join {
  position: absolute;
  right: -6px;
  top: -8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 5px 7px 4px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 40, 68, 0.96), rgba(8, 16, 30, 0.98));
  border: 1.5px solid rgba(110, 190, 255, 0.55);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  line-height: 1;
}
.gwb-keep-join b {
  font-size: 15px;
  font-weight: 900;
  color: #7ec8ff;
}
.gwb-keep-join i {
  font-style: normal;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.55);
}
.gwb-keep-join:not(.is-on) {
  border-color: rgba(255, 120, 100, 0.4);
}
.gwb-keep-join:not(.is-on) b { color: #ff8e7a; }
.gwb-keep-img {
  width: min(38vw, 148px);
  height: min(38vw, 148px);
  object-fit: cover;
  border-radius: 22px;
  border: 3px solid rgba(246, 196, 69, 0.5);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background: #0a1424;
  display: block;
}
.gwb-keep.is-enemy .gwb-keep-img {
  border-color: rgba(255, 120, 100, 0.65);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(255, 80, 60, 0.18);
}
.gwb-keep.is-ally .gwb-keep-img {
  border-color: rgba(110, 190, 255, 0.65);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(80, 160, 255, 0.18);
}
.gwb-keep-tag { display: none; }
.gwb-keep.is-hit .gwb-keep-img {
  animation: gwbKeepHit 0.34s ease-out;
}
.gwb-keep.is-crit .gwb-keep-img {
  animation: gwbKeepCrit 0.42s ease-out;
}
.gwb-keep.is-strike .gwb-keep-img {
  animation: gwbKeepStrike 0.34s cubic-bezier(0.2, 0.85, 0.25, 1);
}
.gwb-keep.is-razed .gwb-keep-img {
  filter: grayscale(0.6) brightness(0.65);
  opacity: 0.8;
}
@keyframes gwbKeepHit {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(6px) rotate(1deg); }
  60% { transform: translateX(-4px); }
}
@keyframes gwbKeepCrit {
  0%, 100% { transform: translateX(0) scale(1); filter: brightness(1); }
  25% { transform: translateX(8px) scale(0.96); filter: brightness(1.35); }
  55% { transform: translateX(-6px) scale(1.03); filter: brightness(1.1); }
}
@keyframes gwbKeepStrike {
  0% { transform: translateX(0) scale(1); }
  40% { transform: translateX(10px) scale(1.06); filter: brightness(1.15); }
  100% { transform: translateX(0) scale(1); }
}
.gwb-vs {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 14, 26, 0.72);
  border: 1.5px solid rgba(246, 196, 69, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.gwb-vs b {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffe56a;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.gwb-boom {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 220, 120, 0.85), rgba(255, 120, 40, 0.25) 45%, transparent 70%);
}
.gwb-boom.is-on {
  animation: gwbBoom 0.4s ease-out forwards;
}
@keyframes gwbBoom {
  0% { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.gwb-log {
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8f4ea, #ebe3d4);
  border: 3px solid #2a3344;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  color: #1a2230;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.gwb-log.hidden { display: none !important; }

.gwb-end {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12, 22, 40, 0.96), rgba(8, 14, 26, 0.98));
  border: 1.5px solid rgba(246, 196, 69, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  text-align: center;
}
.gwb-end.hidden { display: none !important; }
.gwb-end.is-win { border-color: rgba(120, 220, 140, 0.5); }
.gwb-end strong {
  font-size: 20px;
  font-weight: 900;
}
.gwb-end-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.65);
}
.gwb-end-rew {
  margin: 2px 0 6px;
  font-size: 13px;
  font-weight: 900;
  color: #ffe56a;
}
.gwb-end .btn {
  min-width: 140px;
}

.gwb-active-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 28px;
}
.gwb-active-strip em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #ff8e7a;
}
.gwb-active-pip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: #0a1424;
}
.gwb-active-pip.is-you {
  border-color: rgba(246, 196, 69, 0.75);
  box-shadow: 0 0 0 2px rgba(246, 196, 69, 0.2);
}
.gwb-active-pip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gwb-session {
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.7);
}
.gwb-session b { color: #ffe56a; }
.gwb-actions {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 8px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.gwb-hit {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #1a1208;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  box-shadow: 0 4px 0 #c47d08, 0 8px 20px rgba(0, 0, 0, 0.35);
}
.gwb-hit:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #c47d08; }
.gwb-hit:disabled {
  opacity: 0.45;
  box-shadow: none;
}
.gwb-leave {
  min-height: 52px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  color: #f7f1e4;
  background: rgba(8, 14, 26, 0.72);
}
.gwb-leave:active { transform: translateY(1px); }
.gwb.is-ready .gwb-hit {
  animation: gwbHitPulse 1.6s ease-in-out infinite;
}
@keyframes gwbHitPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

@media (max-height: 640px) {
  .gwb-keep-img {
    width: min(32vw, 112px);
    height: min(32vw, 112px);
    border-radius: 18px;
  }
  .gwb-field {
    min-height: 128px;
    max-width: 300px;
  }
}

/* Görevler */
.lgq-list { display: flex; flex-direction: column; gap: 8px; }
.lgq-card {
  padding: 12px;
  border-radius: 14px;
  background: var(--row);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lgq-card.is-ready {
  border-color: rgba(61, 220, 110, 0.4);
  box-shadow: 0 0 12px rgba(61, 220, 110, 0.12);
}
.lgq-card.is-claimed { opacity: 0.55; }
.lgq-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.lgq-top strong {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
}
.lgq-card p {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(247, 241, 228, 0.55);
  line-height: 1.3;
}
.lgq-bar {
  height: 8px;
  border-radius: 999px;
  background: #0a1424;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lgq-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2a7fff, #5ec8ff);
}
.lgq-card.is-ready .lgq-bar i {
  background: linear-gradient(90deg, #2fdc6a, #9fe870);
}
.lgq-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  gap: 8px;
}
.lgq-meta em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.5);
}
.lgq-rew {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 900;
  color: #9fe870;
}
.lgq-rew svg { width: 14px; height: 14px; }
.lgq-rew .rw-ico,
.lgq-rew img.rw-ico {
  width: 14px;
  height: 14px;
}
.lgq-rew b { margin-right: 0; }
.lgq-claim {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 900;
  color: #083018;
  background: linear-gradient(180deg, #6dff9a, #2fdc6a);
  border: none;
  box-shadow: 0 2px 0 #148a3c;
}
.lgq-done, .lgq-wait {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lgq-done { color: #9fe870; }
.lgq-wait { color: rgba(247, 241, 228, 0.4); }

/* Üyeler */
.lgm-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 2px;
}
.lgm-banner > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #12243c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lgm-banner span {
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.5);
}
.lgm-banner strong {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.lgm-banner strong small {
  font-size: 12px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.45);
  margin-left: 2px;
}
.lgm-banner strong.is-online { color: #3ddc6e; }
.lgm-banner-power strong { color: var(--gold); }

.lgm-list { display: flex; flex-direction: column; gap: 8px; }
.lgm-row {
  display: grid;
  grid-template-columns: 22px 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: #12243c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lgm-row:active { transform: scale(0.99); }
.lgm-row.is-self {
  border-color: rgba(246, 196, 69, 0.5);
  background: linear-gradient(90deg, #1a2f18, #12243c 55%);
}
.lgm-rank {
  font-size: 13px;
  font-weight: 900;
  color: rgba(247, 241, 228, 0.4);
  text-align: center;
}
.lgm-row:nth-child(1) .lgm-rank { color: #f6c445; }
.lgm-row:nth-child(2) .lgm-rank { color: #c5d0de; }
.lgm-row:nth-child(3) .lgm-rank { color: #d49a5c; }
.lgm-av {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a1424;
  border: 1.5px solid rgba(246, 196, 69, 0.3);
  display: grid;
  place-items: center;
}
.lgm-av img,
.lgm-av .lgm-av-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
}
.lgm-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lgm-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.lgm-name strong {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lgm-you {
  flex-shrink: 0;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3a2608;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  padding: 2px 6px;
  border-radius: 6px;
}
.lgm-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.lgm-role {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 999px;
  color: rgba(247, 241, 228, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lgm-role.is-leader {
  color: #3a2608;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  border-color: transparent;
}
.lgm-role.is-officer {
  color: #9ad0ff;
  border-color: rgba(110, 180, 255, 0.35);
  background: rgba(80, 140, 220, 0.15);
}
.lgm-status {
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lgm-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.lgm-status.on { color: #3ddc6e; }
.lgm-status.off { color: rgba(247, 241, 228, 0.35); }
.lgm-pow {
  min-width: 92px;
  display: grid;
  justify-items: end;
  gap: 2px;
  position: relative;
  padding-bottom: 6px;
}
.lgm-pow > span {
  font-size: 10px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lgm-pow > b {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.lgm-pow > i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #f0a000, #ffe56a);
  max-width: 100%;
}

/* Üye profil sheet */
.lgm-prof {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px 8px;
  max-height: min(72dvh, 640px);
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.lgm-prof-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}
.lgm-prof-av {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0a1424;
  border: 1.5px solid rgba(246, 196, 69, 0.4);
}
.lgm-prof-av img,
.lgm-prof-av .lgm-prof-av-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
}
.lgm-prof-id { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lgm-prof-id > strong {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lgm-prof-id > strong em {
  font-style: normal;
  font-size: 12px;
  color: var(--gold);
}
.lgm-prof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.lgm-prof-clan {
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 999px;
  color: #9fe870;
  border: 1px solid rgba(159, 232, 112, 0.35);
  background: rgba(60, 120, 50, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lgm-prof-clan.is-out {
  color: #ffb4a8;
  border-color: rgba(228, 84, 74, 0.35);
  background: rgba(120, 40, 40, 0.2);
}
.lgm-prof-power {
  font-size: 14px;
  font-weight: 900;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.lgm-prof-h {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.55);
}
.lgm-prof-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.lgm-prof-stat {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #12243c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lgm-prof-stat span {
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.5);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lgm-prof-stat strong {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.lgm-prof-gear {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.lgm-prof-slot {
  aspect-ratio: 1;
  border-radius: 12px;
  background: #0a1424;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
button.lgm-prof-slot:active { transform: scale(0.96); }
.lgm-prof-slot img,
.lgm-prof-slot .lgm-prof-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
/* +N rozeti → ortak .iq-lv (home.css) */
.lgm-prof-slot.is-empty span {
  font-size: 9px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.35);
  text-align: center;
  padding: 4px;
}
/* Çanta ile aynı rarity kenar */
.lgm-prof-slot.rarity-common {
  border-color: #8fa0b8;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 6px rgba(140, 160, 190, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 10px rgba(0, 0, 0, 0.45);
}
.lgm-prof-slot.rarity-uncommon {
  border-color: #4eb8ff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 8px rgba(78, 184, 255, 0.28),
    inset 0 0 0 1px rgba(120, 200, 255, 0.14),
    inset 0 0 10px rgba(0, 0, 0, 0.45);
}
.lgm-prof-slot.rarity-rare {
  border-color: #f6c445;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 9px rgba(246, 196, 69, 0.36),
    inset 0 0 0 1px rgba(255, 230, 150, 0.18),
    inset 0 0 10px rgba(0, 0, 0, 0.45);
}
.lgm-prof-slot.rarity-legendary {
  border-color: #e04040;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(220, 48, 48, 0.42),
    inset 0 0 0 1px rgba(255, 160, 140, 0.2),
    inset 0 0 12px rgba(0, 0, 0, 0.42);
}
/* Frame asset arka plan — çanta is-bg-frame ile aynı */
.lgm-prof-slot.is-bg-frame {
  border-width: 2px;
  background: #05080e;
}
.lgm-prof-slot.is-bg-frame img,
.lgm-prof-slot.is-bg-frame .lgm-prof-art {
  width: 100%;
  height: 100%;
  filter: none;
}
.lgm-prof-slot.is-bg-frame.rarity-common {
  border-color: #d8dee8;
  box-shadow:
    0 0 0 1px rgba(40, 48, 64, 0.45),
    0 0 10px rgba(220, 228, 240, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.lgm-prof-slot.is-bg-frame.rarity-rare {
  border-color: #f6c445;
  box-shadow:
    0 0 0 1px rgba(80, 50, 0, 0.55),
    0 0 12px rgba(246, 196, 69, 0.45),
    inset 0 0 0 1px rgba(255, 230, 150, 0.2);
}
.lgm-prof-slot.is-bg-frame.rarity-legendary {
  border-color: #e04040;
  box-shadow:
    0 0 0 1px rgba(60, 10, 10, 0.55),
    0 0 14px rgba(220, 48, 48, 0.5),
    inset 0 0 0 1px rgba(255, 160, 140, 0.2);
}
.lgm-prof-pm,
.lgm-prof-kick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #0e1c30;
  border: 1px solid rgba(110, 180, 255, 0.3);
}
.lgm-prof-kick {
  border-color: rgba(232, 116, 106, 0.45);
  background: #1a1218;
}
.lgm-prof-kick p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(247, 241, 228, 0.9);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.lgm-prof-kick p strong { color: #ffb4ae; }
.lgm-prof-pm.hidden,
.lgm-prof-kick.hidden { display: none; }
.lgm-prof-btn.hidden { display: none; }
.lgm-prof-pm textarea {
  width: 100%;
  resize: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #0a1424;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  outline: none;
}
.lgm-prof-pm-actions,
.lgm-prof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lgm-prof-actions { margin-top: 2px; }
.lgm-prof-btn {
  flex: 1 1 calc(50% - 8px);
  min-height: 42px;
  min-width: 0;
  max-width: 100%;
  padding: 0 10px;
  border-radius: 12px;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.lgm-prof-btn.is-pm {
  color: #0a1628;
  background: linear-gradient(180deg, #9ad0ff, #5aa8ff);
  box-shadow: 0 3px 0 #3a7ec4;
}
.lgm-prof-btn.is-invite {
  color: #3a2608;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  box-shadow: 0 3px 0 #c47d08;
}
.lgm-prof-btn.is-kick {
  color: #fff;
  background: linear-gradient(180deg, #e8746a, #c43a32);
  box-shadow: 0 3px 0 #8d241c;
}
.lgm-prof-btn.is-ghost {
  color: rgba(247, 241, 228, 0.75);
  background: #12243c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.lgm-prof-btn:active { transform: translateY(1px); }
.lgm-prof-close { width: 100%; }

/* Sıralama */
.lgr-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 2px;
}
.lgr-banner > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #12243c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lgr-banner span {
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.5);
}
.lgr-banner strong {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.lgr-banner strong.is-rank { color: var(--gold); }
.lgr-banner strong.is-gap { color: #9ad0ff; }

.lgr-list { display: flex; flex-direction: column; gap: 8px; }
.lgr-row {
  display: grid;
  grid-template-columns: 28px 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: #12243c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lgr-row.is-self {
  border-color: rgba(246, 196, 69, 0.55);
  background: linear-gradient(90deg, #1a2f18, #12243c 55%);
  box-shadow: inset 0 0 0 1px rgba(246, 196, 69, 0.12);
}
.lgr-row.top-1 {
  border-color: rgba(246, 196, 69, 0.5);
  background: linear-gradient(90deg, #2a2410, #12243c 60%);
}
.lgr-row.top-2 {
  border-color: rgba(180, 190, 205, 0.4);
  background: linear-gradient(90deg, #1a2230, #12243c 60%);
}
.lgr-row.top-3 {
  border-color: rgba(205, 140, 80, 0.45);
  background: linear-gradient(90deg, #241810, #12243c 60%);
}
.lgr-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(247, 241, 228, 0.45);
  background: rgba(0, 0, 0, 0.25);
  text-align: center;
  line-height: 1;
}
.lgr-row.top-1 .lgr-rank {
  color: #3a2608;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
}
.lgr-row.top-2 .lgr-rank {
  color: #1a2230;
  background: linear-gradient(180deg, #e8eef5, #9aa8b8);
}
.lgr-row.top-3 .lgr-rank {
  color: #2a1808;
  background: linear-gradient(180deg, #e8b06a, #c47d08);
}
.lgr-av {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a1424;
  border: 1.5px solid rgba(246, 196, 69, 0.3);
  display: grid;
  place-items: center;
}
.lgr-row.top-1 .lgr-av { border-color: rgba(246, 196, 69, 0.65); }
.lgr-row.top-2 .lgr-av { border-color: rgba(180, 190, 205, 0.55); }
.lgr-row.top-3 .lgr-av { border-color: rgba(205, 140, 80, 0.55); }
.lgr-av img { width: 86%; height: 86%; object-fit: contain; }
.lgr-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lgr-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.lgr-name strong {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lgr-you {
  flex-shrink: 0;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3a2608;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  padding: 2px 6px;
  border-radius: 6px;
}
.lgr-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.lgr-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5aa8ff, #9ad0ff);
}
.lgr-row.top-1 .lgr-bar > i { background: linear-gradient(90deg, #f0a000, #ffe56a); }
.lgr-row.top-2 .lgr-bar > i { background: linear-gradient(90deg, #9aa8b8, #d5deea); }
.lgr-row.top-3 .lgr-bar > i { background: linear-gradient(90deg, #c47d08, #e8b06a); }
.lgr-row.is-self .lgr-bar > i { background: linear-gradient(90deg, #3ddc6e, #9fe870); }
.lgr-pow {
  min-width: 0;
  max-width: 38%;
  display: grid;
  justify-items: end;
  gap: 2px;
}
.lgr-pow > span {
  font-size: 10px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lgr-pow > b {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.lgr-row.is-self .lgr-pow > b { color: var(--gold); }

/* —— Bağış / Teknoloji —— */
.lgd-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lgd-banner > div {
  padding: 10px 12px;
  border-radius: 12px;
  background: #12243c;
  border: 1px solid rgba(246, 196, 69, 0.2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lgd-banner span {
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.5);
}
.lgd-banner strong {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}
.lgd-list, .lgt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lgt-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 2px 0 8px;
}
.lgt-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0e1c30;
  color: rgba(247, 241, 228, 0.55);
  font-family: var(--font);
  cursor: pointer;
}
.lgt-tab strong {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.lgt-tab em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.75;
}
.lgt-tab.on {
  color: #fff;
  border-color: rgba(246, 196, 69, 0.55);
  background: linear-gradient(180deg, #1a3354, #12243c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.lgt-tab.on[data-tech-tab="def"] {
  border-color: rgba(110, 180, 255, 0.55);
}
.lgt-card.is-def .lgt-ico {
  border-color: rgba(110, 180, 255, 0.4);
}
.lgt-card.is-def .lgt-bar > i {
  background: linear-gradient(90deg, #5aa8ff, #9ad0ff);
}
.lgd-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #12243c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lgd-card.is-locked { opacity: 0.55; }
.lgd-ico {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #0a1424;
  border: 1px solid rgba(246, 196, 69, 0.25);
}
.lgd-ico img { width: 36px; height: 36px; object-fit: contain; }
.lgd-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lgd-info strong { font-size: 14px; font-weight: 900; color: #fff; }
.lgd-info em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: rgba(247, 241, 228, 0.5);
}
.lgd-give {
  font-size: 11px;
  font-weight: 800;
  color: #9fe870;
}
.lgd-cost { margin-top: 2px; }
.lgd-cost .rw-ico { width: 14px; height: 14px; }
.lgd-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 900;
  color: #3a2608;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  border: none;
  box-shadow: 0 3px 0 #c47d08;
}
.lgd-btn:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 2px 0 #c47d08; }
.lgd-btn:disabled { opacity: 0.4; filter: grayscale(0.4); box-shadow: none; }

.lgt-card {
  padding: 10px;
  border-radius: 14px;
  background: #12243c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lgt-card.is-ready { border-color: rgba(246, 196, 69, 0.45); }
.lgt-card.is-max { border-color: rgba(159, 232, 112, 0.35); }
.lgt-card.is-locked {
  opacity: 0.55;
  filter: grayscale(0.35);
  border-color: rgba(255, 255, 255, 0.06);
}
.lgt-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: start;
}
.lgt-ico {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.1), transparent 55%),
    #0a1424;
  border: 1.5px solid rgba(246, 196, 69, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.lgt-ico img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}
.lgt-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lgt-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.lgt-top strong { display: block; font-size: 14px; font-weight: 900; color: #fff; }
.lgt-top em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: rgba(247, 241, 228, 0.5);
}
.lgt-lv {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  color: var(--gold);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(246, 196, 69, 0.12);
  border: 1px solid rgba(246, 196, 69, 0.28);
}
.lgt-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.lgt-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0a000, #ffe56a);
}
.lgt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lgt-perk {
  font-size: 12px;
  font-weight: 800;
  color: #9ad0ff;
}
.lgt-max {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: #9fe870;
}
.lgt-lock {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.45);
  text-align: right;
  max-width: 42%;
  line-height: 1.25;
}
.lgt-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #3a5a8a, #1e3358);
  border: 1px solid rgba(154, 208, 255, 0.35);
}
.lgt-btn:active:not(:disabled) { transform: scale(0.98); }
.lgt-btn.is-disabled,
.lgt-btn:disabled {
  opacity: 0.42;
  filter: grayscale(0.3);
}

/* Teknoloji araştırma başarı popup */
.lg-tech-pop {
  position: relative;
  text-align: center;
  padding: 6px 4px 2px;
  overflow: hidden;
}
.lg-tech-pop-glow {
  position: absolute;
  left: 50%;
  top: -20px;
  width: 180px;
  height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(246, 196, 69, 0.28), transparent 70%);
  pointer-events: none;
}
.lg-tech-pop-kicker {
  display: block;
  position: relative;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.lg-tech-pop-ico {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 12px auto 8px;
  border-radius: 20px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.35)),
    #152a46;
  border: 1px solid rgba(246, 196, 69, 0.4);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.lg-tech-pop-ico img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}
.lg-tech-pop h2 {
  position: relative;
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
}
.lg-tech-pop-desc {
  position: relative;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(247, 241, 228, 0.55);
}
.lg-tech-pop-stats {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}
.lg-tech-pop-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}
.lg-tech-pop-stat span {
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lg-tech-pop-stat strong {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}
.lg-tech-pop-stat.is-perk strong { color: #9ad0ff; }
.lg-tech-pop-stat.is-cost strong { color: #f6c445; }
.lg-tech-pop-ok {
  position: relative;
  width: 100%;
  min-height: 48px;
}

/* —— Mobil: taşma / dar ekran —— */
@media (max-width: 380px) {
  .lg-body { padding-left: 10px; padding-right: 10px; gap: 10px; }
  .lg-head { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .lg-emblem { width: 72px; height: 72px; }
  .lg-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .lgm-banner > div,
  .lgr-banner > div { padding: 8px 8px; }
  .lgm-banner span,
  .lgr-banner span { font-size: 10px; }
  .lgm-banner strong,
  .lgr-banner strong { font-size: 13px; }
  .lgm-row,
  .lgr-row {
    grid-template-columns: 18px 40px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
  }
  .lgm-av,
  .lgr-av { width: 40px; height: 40px; border-radius: 10px; }
  .lgm-pow > b,
  .lgr-pow > b { font-size: 12px; }
  .lgm-prof-head { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  .lgm-prof-av { width: 56px; height: 56px; }
  .lgm-prof-gear { gap: 6px; }
  .lgm-prof-btn { font-size: 12px; min-height: 40px; }
  .lgt-head { grid-template-columns: 52px minmax(0, 1fr); }
  .lgt-ico { width: 52px; height: 52px; }
  .lgt-ico img { width: 44px; height: 44px; }
  .lgt-lock { max-width: 48%; font-size: 10px; }
  .lgd-card { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; }
  .lgd-ico { width: 44px; height: 44px; }
  .lgd-ico img { width: 30px; height: 30px; }
}
@media (max-width: 340px) {
  .lgm-banner,
  .lgr-banner { grid-template-columns: 1fr 1fr; }
  .lgm-banner-power,
  .lgr-banner > div:last-child { grid-column: 1 / -1; }
  .lgm-prof-stats { grid-template-columns: 1fr; }
  .lgm-prof-gear { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-height: 640px) {
  .lgm-prof { max-height: min(68dvh, 520px); gap: 10px; }
  .lgt-ico { width: 52px; height: 52px; }
  .lgt-ico img { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-icon-btn:active,
  .lgm-row:active,
  .lgm-prof-btn:active,
  button.lgm-prof-slot:active,
  .lgt-btn:active:not(:disabled),
  .lgd-btn:active:not(:disabled) { transform: none; }
}
