:root {
  --bg: linear-gradient(180deg, rgba(24, 24, 27, 0.96), rgba(14, 15, 18, 0.97));
  --bg-solid: #141518;
  --surface: rgba(16, 17, 20, 0.88);
  --line: rgba(196, 162, 92, 0.42);
  --line-soft: rgba(196, 162, 92, 0.18);
  --gold: #e4bf6b;
  --gold-bright: #f4d88c;
  --gold-dim: #9e7e3c;
  --text: #eee7d8;
  --muted: #a69c87;
  --red: #d44d47;
  --green: #69c969;
  --blue: #5298db;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background: #0a1b2e;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-text-size-adjust: 100%;
}

input,
select,
textarea {
  user-select: text;
  -webkit-user-select: text;
}

canvas#mapGl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  touch-action: none;
  z-index: 0;
}

canvas#map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
  -webkit-touch-callout: none;
  z-index: 0;
  background: transparent;
}

canvas#map.dragging {
  cursor: grabbing;
}

.hidden {
  display: none !important;
}

h1,
h2,
h3 {
  font-family: Cinzel, Oswald, serif;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  font-weight: 700;
}

h3 {
  font-size: 15px;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  text-transform: uppercase;
}

h3 small {
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
  font-family: Inter, sans-serif;
  text-transform: none;
}

b {
  color: #faf4e6;
}

/* İnce altın kaydırma çubuğu */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.28);
}

::-webkit-scrollbar-thumb {
  background: rgba(196, 162, 92, 0.36);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(228, 191, 107, 0.6);
}

/* İkon boyutları */
.ico {
  width: 17px;
  height: 17px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.ico-sm {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: -2px;
}

.ico-bld {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
}

.h-ico {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85));
}

.h-ico-wreath {
  width: 30px;
  height: 30px;
}

.h-ico-sm {
  width: 21px;
  height: 21px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

.r-ico {
  width: 19px;
  height: 19px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}

#hudRes .r-ico {
  width: 26px;
  height: 26px;
}

.v-ico {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8));
}

.rail-ico {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85));
  transition: transform 0.12s;
}

#ratio .h-ico {
  width: 22px;
  height: 22px;
}

#feedHead .v-ico {
  width: 18px;
  height: 18px;
}

.u-ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}

.u-ico-sm {
  width: 15px;
  height: 15px;
  object-fit: contain;
  vertical-align: -2px;
  flex-shrink: 0;
}

.u-ico-lg {
  width: 23px;
  height: 23px;
  object-fit: contain;
  display: block;
  margin: 0 auto 3px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75));
}

.u-ico-eq {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.hud-res b.res-tight {
  color: #fbbf24 !important;
}

.hud-res b.res-deficit {
  color: #f87171 !important;
}

.ind-cap-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin: 0 0 8px;
  padding: 5px 7px;
  border-radius: 4px;
  background: rgba(10, 12, 16, 0.62);
  border: 1px solid rgba(212, 174, 94, 0.24);
  font-size: 11px;
}

.ind-cap-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e6ddc8;
  font-weight: 600;
  white-space: nowrap;
}

.ind-cap-chip.tight {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.ind-cap-chip.deficit {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(153, 27, 27, 0.28);
  color: #fecaca;
}

.ind-cap-chip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Giriş Menüsü (Savaş Masası — Editorial Altın & Obsidyen Teması) */
.menu-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px clamp(22px, 3.6vw, 54px) 58px;
  background-color: #051222;
  background-image:
    radial-gradient(ellipse 52% 85% at 16% 48%, rgba(4, 12, 22, 0.55) 0%, rgba(5, 18, 34, 0.0) 70%);
  overflow: hidden;
}

.menu-screen::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(calc((100vw - 462px) / 0.723), calc(100vh * 1.7768));
  aspect-ratio: 1672 / 941;
  z-index: 0;
  pointer-events: none;
  background: url('/assets/menu-bg-new.jpg?v=5') right bottom / 100% 100% no-repeat;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 6.5%, #000 100%),
    linear-gradient(90deg, transparent 0%, #000 9%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, transparent 0%, #000 6.5%, #000 100%),
    linear-gradient(90deg, transparent 0%, #000 9%, #000 100%);
  mask-composite: intersect;
}

.menu-screen.in-sub {
  justify-content: flex-start;
  padding: 84px clamp(22px, 3vw, 44px) 56px;
}

.menu-screen.in-sub::before {
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background:
    linear-gradient(180deg, rgba(4, 9, 16, 0.72) 0%, rgba(5, 11, 19, 0.42) 24%, rgba(5, 11, 19, 0.38) 80%, rgba(4, 9, 15, 0.82) 100%),
    url('/assets/menu-bg-new.jpg?v=5') center right / cover no-repeat;
  -webkit-mask-image: none;
  mask-image: none;
}

@media (max-width: 960px) {
  .menu-screen::before {
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    background:
      linear-gradient(90deg, rgba(5, 18, 34, 0.82) 0%, rgba(5, 18, 34, 0.56) 55%, rgba(5, 18, 34, 0.24) 100%),
      url('/assets/menu-bg-new.jpg?v=5') center right / cover no-repeat;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.menu-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.menu-screen.in-sub .menu-stage {
  max-width: 1380px;
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  gap: 20px;
}

.menu-screen.in-sub .menu-brand,
.menu-screen.in-sub .commander-wrap {
  display: none;
}

/* Alt Ekranlar Üst Komuta Başlığı */
.menu-sub-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  z-index: 53;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 296px 0 clamp(22px, 3vw, 44px);
  background: linear-gradient(180deg, rgba(5, 11, 18, 0.94) 0%, rgba(6, 12, 20, 0.72) 78%, transparent 100%);
  border-bottom: 1px solid rgba(212, 175, 92, 0.16);
}

.menu-screen.in-sub .menu-topbar {
  top: 16px;
}

.msh-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.sub-back-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(18, 27, 37, 0.88), rgba(9, 14, 21, 0.94));
  border: 1px solid rgba(212, 175, 92, 0.36);
  color: #e9d6a0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.sub-back-btn:hover {
  border-color: rgba(244, 206, 114, 0.85);
  background: linear-gradient(180deg, rgba(30, 42, 56, 0.94), rgba(14, 21, 30, 0.96));
  color: #fff3cc;
}

.msh-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.msh-crest {
  height: 30px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(226, 179, 76, 0.38));
}

.msh-brand span {
  display: block;
  font-family: Cinzel, Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.08em;
  color: #f4e8ca;
}

.msh-brand b {
  display: block;
  font-family: Cinzel, Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.07em;
  color: #e4b654;
}

.msh-sep {
  width: 1px;
  height: 34px;
  background: rgba(212, 175, 92, 0.28);
}

.msh-title h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f5e5b8;
  line-height: 1.1;
}

.msh-title small {
  display: block;
  font-size: 11.5px;
  color: #a6b0ba;
  margin-top: 2px;
}

.sub-cmd-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px 0 6px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 27, 37, 0.88), rgba(9, 14, 21, 0.94));
  border: 1px solid rgba(212, 175, 92, 0.38);
  color: #f4e8ca;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s;
}

.sub-cmd-chip:hover {
  border-color: rgba(244, 206, 114, 0.85);
}

.sub-cmd-chip img {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  object-fit: contain;
}

.sub-cmd-chip b {
  display: block;
  font-size: 13px;
  color: #f7eed6;
  line-height: 1.15;
}

.sub-cmd-chip small {
  display: block;
  font-size: 10.5px;
  color: #5ee276;
  line-height: 1.1;
}

/* Sağ Üst Hızlı Araç Çubuğu */
.menu-topbar {
  position: fixed;
  top: 20px;
  right: 26px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-tool-group {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 3px;
  background: linear-gradient(180deg, rgba(17, 25, 34, 0.84), rgba(9, 14, 20, 0.90));
  border: 1px solid rgba(212, 175, 92, 0.36);
  border-radius: 7px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(246, 222, 156, 0.14);
}

.menu-tool-btn {
  width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 5px;
  color: #e4c16f;
  cursor: pointer;
  padding: 0;
  transition: background 0.14s, color 0.14s;
}

.menu-tool-btn:hover {
  background: rgba(228, 193, 111, 0.14);
  color: #fae3a2;
}

.menu-tool-btn svg {
  width: 17px;
  height: 17px;
}

.menu-tool-btn .m-svg-off {
  display: none;
}

.menu-tool-btn.muted {
  color: #9e8c68;
}

.menu-tool-btn.muted .m-svg-on {
  display: none;
}

.menu-tool-btn.muted .m-svg-off {
  display: block;
}

.menu-tool-sep {
  width: 1px;
  height: 18px;
  background: rgba(212, 175, 92, 0.24);
}

.menu-lang-wrap {
  position: relative;
}

.menu-lang-pill {
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(17, 25, 34, 0.84), rgba(9, 14, 20, 0.90));
  border: 1px solid rgba(212, 175, 92, 0.36);
  border-radius: 7px;
  color: #f0dea8;
  font-family: inherit;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(246, 222, 156, 0.14);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.menu-lang-pill:hover,
.menu-lang-pill[aria-expanded="true"] {
  border-color: rgba(244, 206, 114, 0.85);
  background: linear-gradient(180deg, rgba(28, 39, 52, 0.92), rgba(14, 21, 30, 0.95));
  color: #fff4cc;
}

.menu-lang-pill .caret {
  font-size: 10px;
  color: #cba24c;
}

.menu-lang-pop {
  position: absolute;
  top: 42px;
  right: 0;
  min-width: 156px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(180deg, rgba(15, 22, 31, 0.97), rgba(8, 12, 18, 0.98));
  border: 1px solid rgba(212, 175, 92, 0.48);
  border-radius: 9px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.80), inset 0 1px 0 rgba(250, 224, 156, 0.16);
  z-index: 60;
}

.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #d8dee6;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}

.lang-opt b {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #9ba6b2;
}

.lang-opt:hover {
  background: rgba(212, 175, 92, 0.14);
  color: #fff2cc;
}

.lang-opt.active {
  background: linear-gradient(180deg, rgba(212, 168, 68, 0.28), rgba(142, 102, 26, 0.24));
  border-color: rgba(240, 202, 108, 0.65);
  color: #fff2cb;
}

.lang-opt.active b {
  color: #f6d983;
}

.menu-settings-pop {
  position: absolute;
  top: 44px;
  right: 0;
  width: 242px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(15, 22, 31, 0.96), rgba(9, 13, 19, 0.98));
  border: 1px solid rgba(212, 175, 92, 0.44);
  border-radius: 9px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(250, 224, 156, 0.14);
}

.msp-head {
  font-family: Cinzel, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  padding-bottom: 7px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 92, 0.22);
}

.msp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  font-size: 12px;
  color: #d9d0be;
}

/* Sol Serbest Editorial Menü Kolonu */
.menu-box {
  width: 386px;
  max-width: 92vw;
  flex-shrink: 0;
  overflow: visible;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.menu-box.sub-open {
  width: 392px;
  max-height: calc(100vh - 142px);
  overflow-y: auto;
  padding-right: 0;
  display: flex;
  flex-direction: column;
}

.menu-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: none;
  transition: margin 0.2s;
}

.menu-box.sub-open .menu-brand {
  margin-bottom: 10px;
}

.menu-box.sub-open .brand-crest {
  height: 30px;
  margin-bottom: 2px;
}

.menu-box.sub-open .menu-brand h1 {
  font-size: 28px;
}

.menu-box.sub-open .menu-brand .sub,
.menu-box.sub-open .brand-rule {
  display: none;
}

.brand-crest {
  height: 46px;
  width: auto;
  display: block;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 14px rgba(226, 179, 76, 0.34));
}

.brand-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: #d7cab2;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.brand-eyebrow span {
  flex: 0 1 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 92, 0.55));
}

.brand-eyebrow span:last-child {
  background: linear-gradient(90deg, rgba(212, 175, 92, 0.55), transparent);
}

.menu-brand h1 {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(32px, 3.1vw, 43px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.06em;
  margin: 0;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.85));
}

.menu-brand h1 span {
  white-space: nowrap;
}

.menu-brand h1 .title-top {
  display: block;
  background: linear-gradient(180deg, #fffaf0 0%, #f4e6c4 56%, #d9bd83 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-brand h1 .title-bot {
  display: block;
  background: linear-gradient(180deg, #fae29b 0%, #dda944 54%, #a8741e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-brand .sub {
  margin: 8px 0 0;
  font-family: Cinzel, Georgia, serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #d6c8ad;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.brand-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 82%;
  margin-top: 12px;
}

.brand-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(218, 178, 92, 0.58));
}

.brand-rule span:last-child {
  background: linear-gradient(90deg, rgba(218, 178, 92, 0.58), transparent);
}

.brand-rule i {
  width: 6px;
  height: 6px;
  display: block;
  transform: rotate(45deg);
  background: #edc971;
  box-shadow: 0 0 8px rgba(237, 201, 113, 0.75);
}

.field-lbl {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 10px 0 4px;
  text-transform: uppercase;
}

.commander-wrap {
  margin-bottom: 16px;
}

.commander-wrap .field-lbl {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: #cec2a6;
  margin: 0 0 7px 2px;
}

.commander-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 12px 0 8px;
  background: linear-gradient(180deg, rgba(12, 18, 26, 0.84), rgba(7, 12, 18, 0.90));
  border: 1px solid rgba(212, 175, 92, 0.36);
  border-radius: 10px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65), 0 8px 22px rgba(0, 0, 0, 0.45);
  transition: border-color 0.16s, box-shadow 0.16s;
}

.commander-field:focus-within {
  border-color: rgba(242, 204, 114, 0.82);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65), 0 0 18px rgba(226, 180, 76, 0.22), 0 8px 22px rgba(0, 0, 0, 0.5);
}

.cmd-ico {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

.cmd-edit-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(214, 182, 110, 0.65);
  cursor: pointer;
  border-radius: 5px;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}

.cmd-edit-btn:hover {
  color: #f6dc94;
  background: rgba(212, 175, 92, 0.12);
}

.cmd-edit-btn svg {
  width: 17px;
  height: 17px;
}

.text-input {
  width: 100%;
  padding: 9px 11px;
  font-size: 13.5px;
  background: rgba(9, 13, 19, 0.90);
  border: 1px solid rgba(212, 175, 92, 0.34);
  color: #f6efe0;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.text-input:focus {
  border-color: var(--gold-bright);
}

input#nameInput {
  flex: 1;
  min-width: 0;
  padding: 4px 2px;
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: transparent;
  border: none;
  color: #f6f0e2;
  outline: none;
  font-family: Inter, system-ui, sans-serif;
  box-shadow: none;
}

input#nameInput::placeholder {
  color: rgba(190, 182, 165, 0.45);
}

.menu-view {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* Tek Oyunculu & Çok Oyunculu Alt Panel Kartı */
.menu-subcard {
  gap: 8px;
  padding: 15px 16px 16px;
  background: linear-gradient(180deg, rgba(13, 20, 29, 0.88), rgba(8, 13, 19, 0.94));
  border: 1px solid rgba(212, 175, 92, 0.38);
  border-radius: 10px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(250, 224, 156, 0.14);
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  width: 100%;
  min-height: 76px;
  padding: 12px 20px 12px 16px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(19, 27, 36, 0.82) 0%, rgba(10, 15, 22, 0.89) 100%);
  border: 1px solid rgba(212, 175, 92, 0.42);
  color: var(--text);
  font-family: inherit;
  transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(248, 226, 162, 0.14), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.menu-btn:hover {
  border-color: rgba(242, 206, 118, 0.84);
  background: linear-gradient(180deg, rgba(28, 38, 49, 0.88) 0%, rgba(14, 21, 30, 0.94) 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 236, 180, 0.24), 0 0 20px rgba(216, 172, 74, 0.18), 0 12px 28px rgba(0, 0, 0, 0.58);
}

.menu-btn:active {
  transform: translateY(0);
}

.menu-btn.primary {
  background: linear-gradient(180deg, #ecd183 0%, #d4a342 46%, #a6741d 100%);
  border: 1px solid #fae4a2;
  color: #160f04;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 224, 0.78),
    inset 0 -2px 5px rgba(84, 52, 8, 0.42),
    0 0 28px rgba(226, 176, 70, 0.34),
    0 12px 26px rgba(0, 0, 0, 0.56);
}

.menu-btn.primary:hover {
  background: linear-gradient(180deg, #f5dc92 0%, #dfb04f 46%, #b68224 100%);
  border-color: #fff0be;
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 234, 0.86),
    inset 0 -2px 5px rgba(84, 52, 8, 0.38),
    0 0 36px rgba(238, 190, 82, 0.48),
    0 14px 30px rgba(0, 0, 0, 0.6);
}

.menu-btn.primary b {
  color: #171005;
  text-shadow: 0 1px 0 rgba(255, 240, 195, 0.45);
}

.menu-btn.primary small {
  color: rgba(28, 19, 6, 0.84);
  font-weight: 500;
}

.m-ico-wrap {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-btn .m-ico {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}

.menu-btn>span:not(.m-ico-wrap) {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.menu-btn b {
  display: block;
  font-family: Cinzel, Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.18;
  color: #f0dda6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-btn small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: #9fa9b3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}

.lobby-tabs {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.ltab {
  flex: 1;
  padding: 7px 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-soft);
  color: var(--muted);
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
}

.ltab.active {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(212, 170, 82, 0.16);
}

.lobby-pane {
  margin-top: 8px;
}

.lobby-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}

.room-list {
  max-height: 175px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
}

.room-row small {
  color: var(--muted);
  display: block;
  font-size: 11px;
}

/* Sol Alt Durum Altbilgisi */
.menu-footer {
  position: fixed;
  left: clamp(22px, 3vw, 44px);
  bottom: 16px;
  z-index: 52;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(212, 175, 92, 0.18);
  font-size: 12px;
  color: #aeb5be;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.menu-ping-wrap {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.menu-ping-lbl {
  color: #b8c2cc;
  font-weight: 500;
}

.menu-meta {
  letter-spacing: 0.02em;
  color: #bcc2ca;
}

.menu-foot-sep {
  width: 1px;
  height: 13px;
  background: rgba(212, 175, 92, 0.25);
}

.menu-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 12px;
  color: #b7bec7;
  text-align: left;
}

.menu-status.ok {
  color: #5ee276;
  font-weight: 500;
}

.menu-status.ok::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ee46a;
  box-shadow: 0 0 8px rgba(78, 228, 106, 0.85);
}

.menu-status.err {
  color: #f07167;
  cursor: pointer;
}

@media (max-height: 700px) {
  .brand-crest {
    height: 36px;
    margin-bottom: 4px;
  }

  .menu-brand h1 {
    font-size: 36px;
  }

  .menu-brand {
    margin-bottom: 12px;
  }

  .commander-wrap {
    margin-bottom: 12px;
  }

  .commander-field {
    height: 48px;
  }

  .menu-view {
    gap: 10px;
  }

  .menu-btn {
    min-height: 64px;
    padding: 9px 16px 9px 14px;
  }

  .menu-btn b {
    font-size: 17px;
  }
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 10, 0.82);
  z-index: 60;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 24px 28px;
  border-radius: 6px;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 224, 152, 0.14);
  max-width: 520px;
  text-align: center;
}

.sub {
  color: var(--muted);
  margin: 10px 0 18px;
}

/* Butonlar (Obsidyen + Pirinç Altın Bevel) */
.btn {
  background: linear-gradient(180deg, #2b2c30, #1b1c20);
  color: var(--text);
  border: 1px solid rgba(196, 162, 92, 0.32);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.14s, border-color 0.14s, transform 0.05s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 232, 175, 0.08);
}

.btn:hover {
  background: linear-gradient(180deg, #37373c, #242529);
  border-color: rgba(228, 191, 107, 0.65);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.btn.primary {
  background: linear-gradient(180deg, #c99d44, #87631f);
  color: #161005;
  border-color: #f3d684;
  box-shadow: inset 0 1px 0 rgba(255, 245, 204, 0.45);
}

.btn.primary:hover {
  background: linear-gradient(180deg, #dab052, #9b7326);
}

.btn.danger {
  background: linear-gradient(180deg, #8b2824, #601a18);
  border-color: #b54540;
  color: #fff;
}

.btn.danger:hover {
  background: linear-gradient(180deg, #a2322d, #74201d);
}

.btn.good {
  background: linear-gradient(180deg, #356935, #234923);
  border-color: #549654;
  color: #fff;
}

.btn.blue {
  background: linear-gradient(180deg, #275380, #1b3b5c);
  border-color: #457cb5;
  color: #fff;
}

.btn.ghost {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(196, 162, 92, 0.24);
}

.btn.ghost:hover {
  background: rgba(212, 170, 82, 0.12);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn.big {
  width: 100%;
  padding: 11px;
  font-size: 14px;
  font-family: Cinzel, Oswald, serif;
  letter-spacing: 0.08em;
}

.btn.small {
  padding: 4px 8px;
  font-size: 11px;
}

.row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.row .btn {
  flex: 1;
}

/* Üst Komuta Barı — 1. Satır (Obsidyen + Altın Şerit) */
#hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(180deg, rgba(28, 27, 26, 0.98) 0%, rgba(16, 17, 20, 0.97) 58%, rgba(11, 12, 15, 0.99) 100%);
  border-bottom: 1px solid rgba(206, 170, 92, 0.58);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 229, 160, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  z-index: 22;
  overflow-x: auto;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: linear-gradient(180deg, rgba(29, 28, 27, 0.98) 0%, rgba(16, 17, 20, 0.98) 58%, rgba(11, 12, 15, 0.99) 100%);
  border-bottom: 1px solid rgba(212, 174, 94, 0.62);
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.76), inset 0 1px 0 rgba(255, 229, 160, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  z-index: 22;
  overflow-x: auto;
  scrollbar-width: none;
}

#hud::-webkit-scrollbar {
  display: none;
}

.hud-country {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 122px;
  max-width: 178px;
  white-space: nowrap;
  flex-shrink: 1;
  overflow: hidden;
  padding-right: 2px;
}

.hud-flag-box {
  position: relative;
  width: 42px;
  height: 28px;
  border-radius: 3px;
  position: relative;
  width: 44px;
  height: 30px;
  border-radius: 3px;
  background: linear-gradient(180deg, #272522, #151412);
  border: 1px solid rgba(228, 191, 107, 0.65);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(228, 191, 107, 0.68);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.hud-flag-box .swatch {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 3px;
  border: none;
  border-radius: 0;
  opacity: 0.9;
}

.hud-flag {
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.hud-sub-lbl {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.hud-sep {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(206, 170, 92, 0.45), transparent);
  flex-shrink: 0;
}

.hud-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid rgba(255, 232, 170, 0.45);
  flex-shrink: 0;
}

.stat {
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stat b {
  font-family: Oswald, Inter, sans-serif;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: #f8f2e4;
}

.stat-stack b {
  font-size: 14.5px;
}

.stat-stack small {
  font-size: 10px;
  font-weight: 600;
  margin-top: 1px;
}

.stat small {
  color: var(--muted);
}

.stat-mini {
  font-size: 10.5px;
  opacity: 0.78;
}

.stat-prov {
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(196, 162, 92, 0.22);
}

.sub-btn::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8));
}

.sub-btn.ico-wars::before {
  background-image: url('/assets/icons/ui_wars.svg?v=2');
}

.sub-btn.ico-res::before {
  background-image: url('/assets/icons/ui_res_btn.svg?v=2');
}

.sub-btn.ico-globe::before {
  background-image: url('/assets/icons/ui_globe.svg?v=2');
}

.sub-btn.ico-menu::before {
  background-image: url('/assets/icons/ui_menu.svg?v=2');
}

.sub-btn.ico-solo::before {
  background-image: url('/assets/icons/ui_solo.svg?v=3');
}

.sub-btn.ico-multi::before {
  background-image: url('/assets/icons/ui_multi.svg?v=3');
}

.sub-btn.sub-ico-only {
  width: 34px;
  min-width: 34px;
  height: 31px;
  padding: 0;
  gap: 0;
  justify-content: center;
}

.sub-btn.sub-ico-only::before {
  width: 21px;
  height: 21px;
}

.sub-btn.has-my-war {
  background: linear-gradient(180deg, rgba(132, 28, 32, 0.92), rgba(76, 15, 18, 0.96));
  border-color: #f07167;
  color: #fff3e6;
  box-shadow: 0 0 12px rgba(212, 60, 52, 0.45), inset 0 1px 0 rgba(255, 210, 180, 0.25);
}

.war-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: linear-gradient(180deg, #b8332e, #7c1c19);
  border: 1px solid rgba(255, 195, 160, 0.55);
  color: #fff;
  font-family: Oswald, Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.stat-ww {
  cursor: pointer;
}

.stat-ww:hover b {
  color: var(--gold-bright);
}

.sub-btn:hover {
  border-color: var(--gold-bright);
  color: #fff;
  background: linear-gradient(180deg, rgba(50, 47, 42, 0.96), rgba(28, 28, 30, 0.98));
}

.sub-btn.active-toggle,
.btn.active-toggle {
  background: linear-gradient(180deg, rgba(184, 143, 59, 0.38), rgba(110, 82, 24, 0.42));
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

#hudHappyIco.low {
  filter: hue-rotate(-38deg) saturate(1.4) brightness(0.95);
}

.hud-flag {
  font-size: 21px;
  line-height: 1;
  transform: translateY(-1px);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.hud-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
  overflow: hidden;
}

.hud-cname {
  font-family: Cinzel, Oswald, serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f8f0dc;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-sub-lbl {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.hud-sep {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, rgba(212, 174, 94, 0.52), transparent);
  flex-shrink: 0;
}

.neg {
  color: var(--red) !important;
}

/* Sol Açılır Birleşik Komuta Menüsü (Obsidyen + Altın Dikey Şerit) */
#railOpenPill {
  position: fixed;
  top: 68px;
  left: 10px;
  z-index: 18;
  padding: 7px 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
}

.left-dock {
  position: fixed;
  top: 68px;
  left: 10px;
  bottom: 14px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  pointer-events: none;
  z-index: 18;
}

.stat-div {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(206, 170, 92, 0.36), transparent);
  flex-shrink: 0;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid rgba(255, 232, 170, 0.45);
  flex-shrink: 0;
}

.stat {
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stat b {
  font-family: Oswald, Inter, sans-serif;
  font-size: 16.5px;
  letter-spacing: 0.02em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #faf4e6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.stat-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
}

.stat-stack b {
  font-size: 16px;
}

.stat-stack small {
  font-size: 10.5px;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.01em;
}

.stat small {
  color: var(--muted);
}

.stat-mini {
  font-size: 11px;
  opacity: 0.78;
  margin-left: -2px;
}

.stat-prov {
  gap: 5px;
}

.stat-prov b {
  font-size: 15px;
  color: var(--gold-bright);
}

#hudHappyIco.low {
  filter: hue-rotate(-38deg) saturate(1.4) brightness(0.95) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85));
}

.hud-res {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(196, 162, 92, 0.22);
  border-radius: 4px;
  font-size: 12.5px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 4px;
  background: transparent;
  border: none;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hud-res span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hud-res b {
  font-family: Oswald, Inter, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #f6efe0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Sol Alt Köşe: Biyom Görselli Mini Bölge Özet Kartı (En sol alta yaslı, sol menü açılınca gizlenir) */
.prov-card {
  position: fixed;
  left: 10px;
  bottom: 14px;
  width: 244px;
  z-index: 17;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.97), rgba(13, 14, 17, 0.98));
  border: 1px solid rgba(212, 176, 98, 0.56);
  border-radius: 5px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 229, 158, 0.18);
}

.hud-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hud-pause-btn {
  height: 32px;
  min-width: 92px;
  padding: 0 11px;
  background: linear-gradient(180deg, #a88234 0%, #6d5119 100%);
  border: 1px solid #f0d182;
  color: #fbf3df;
  font-family: Cinzel, Oswald, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 245, 200, 0.48), 0 2px 9px rgba(0, 0, 0, 0.62);
}

.hud-pause-btn:hover {
  background: linear-gradient(180deg, #b68f3c, #7e5e1f);
  color: #fff;
}

.hud-pause-btn:hover {
  background: linear-gradient(180deg, #bd943d, #805f1f);
  color: #fff;
}

.hud-pause-btn.paused {
  background: linear-gradient(180deg, #d0a342, #8e671c);
  background: linear-gradient(180deg, #d4a644, #8e671c);
  border-color: #ffe294;
  color: #1a1204;
  box-shadow: 0 0 12px rgba(236, 200, 102, 0.45), inset 0 1px 0 rgba(255, 248, 215, 0.6);
}

.hud-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 33px;
  padding: 0;
  border-radius: 4px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(36, 34, 30, 0.94), rgba(16, 17, 20, 0.96));
  border: 1px solid rgba(206, 170, 92, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 232, 175, 0.14), 0 2px 6px rgba(0, 0, 0, 0.55);
  transition: border-color 0.14s, background 0.14s, transform 0.12s;
  flex-shrink: 0;
}

.hud-home-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}

.hud-home-btn:hover {
  border-color: #ffe294;
  background: linear-gradient(180deg, rgba(84, 64, 28, 0.92), rgba(44, 32, 14, 0.96));
  transform: translateY(-1px);
}

.hud-day {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  background: rgba(8, 9, 12, 0.72);
  border: 1px solid rgba(196, 162, 92, 0.42);
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 33px;
  padding: 0 12px;
  background: rgba(8, 9, 12, 0.74);
  border: 1px solid rgba(206, 170, 92, 0.46);
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7);
}

.hud-day b {
  font-family: Cinzel, Oswald, serif;
  font-size: 13px;
  letter-spacing: 0.07em;
  color: #f4ead2;
}

.hud-day b {
  font-family: Cinzel, Oswald, serif;
  font-size: 12.5px;
  letter-spacing: 0.07em;
  color: #f1e6cc;
}

/* Üst Komuta Barı — 2. Satır (Kara/Deniz/Hava + Harita Araçları) */
#hudSub {
  position: fixed;
  top: 48px;
  right: 12px;
  z-index: 21;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  position: fixed;
  top: 54px;
  right: 12px;
  z-index: 21;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px;
  background: linear-gradient(180deg, rgba(22, 22, 25, 0.96), rgba(13, 14, 17, 0.95));
  border: 1px solid rgba(196, 162, 92, 0.48);
  border-top: none;
  border: 1px solid rgba(206, 170, 92, 0.5);
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 224, 145, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 224, 145, 0.08);
  max-width: calc(100vw - 24px);
  overflow-x: auto;
}

.hud-sub-sep {
  width: 1px;
  height: 22px;
  background: rgba(196, 162, 92, 0.34);
  flex-shrink: 0;
}

.hud-sub-sep {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, transparent, rgba(206, 170, 92, 0.45), transparent);
  flex-shrink: 0;
}

.view-tabs {
  display: inline-flex;
  flex-shrink: 0;
  background: rgba(8, 9, 12, 0.88);
  border: 1px solid rgba(206, 170, 92, 0.5);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.75);
}

.vtab {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(196, 162, 92, 0.24);
  color: #c7bda7;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(196, 162, 92, 0.24);
  color: #d4cab4;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s;
}

.vtab:last-child {
  border-right: none;
}

.vtab:hover {
  color: #fff;
  background: rgba(212, 170, 82, 0.14);
}

.vtab:last-child {
  border-right: none;
}

.vtab:hover {
  color: #fff;
  background: rgba(212, 170, 82, 0.15);
}

.vtab.active {
  background: linear-gradient(180deg, #b88f3b, #7a5a1b);
  color: #fbf3de;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 240, 190, 0.42);
  background: linear-gradient(180deg, #c69a3f, #7d5b1b);
  color: #fdf6e3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 242, 195, 0.48);
}

.hud-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}

.hud-actions {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
  align-items: center;
}

.sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(35, 34, 33, 0.94), rgba(20, 21, 24, 0.96));
  border: 1px solid rgba(196, 162, 92, 0.36);
  color: #e5dcc8;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 232, 175, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 4px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(36, 35, 34, 0.95), rgba(20, 21, 24, 0.97));
  border: 1px solid rgba(196, 162, 92, 0.38);
  color: #ebe2ce;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 232, 175, 0.09);
  transition: border-color 0.14s, background 0.14s, color 0.14s;
}

.sub-btn::before {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75));
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8));
}

.sub-btn.ico-wars::before {
  background-image: url('/assets/icons/ui_wars.svg?v=2');
}

.sub-btn.ico-res::before {
  background-image: url('/assets/icons/ui_res_btn.svg?v=2');
}

.sub-btn.ico-globe::before {
  background-image: url('/assets/icons/ui_globe.svg?v=2');
}

.sub-btn.ico-menu::before {
  background-image: url('/assets/icons/ui_menu.svg?v=2');
}

.sub-btn.ico-solo::before {
  background-image: url('/assets/icons/ui_solo.svg?v=3');
}

.sub-btn.ico-multi::before {
  background-image: url('/assets/icons/ui_multi.svg?v=3');
}

.sub-btn.sub-ico-only {
  width: 34px;
  min-width: 34px;
  height: 31px;
  padding: 0;
  gap: 0;
  justify-content: center;
}

.sub-btn.sub-ico-only::before {
  width: 21px;
  height: 21px;
}

.sub-btn.has-my-war {
  background: linear-gradient(180deg, rgba(132, 28, 32, 0.92), rgba(76, 15, 18, 0.96));
  border-color: #f07167;
  color: #fff3e6;
  box-shadow: 0 0 12px rgba(212, 60, 52, 0.45), inset 0 1px 0 rgba(255, 210, 180, 0.25);
}

.war-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: linear-gradient(180deg, #b8332e, #7c1c19);
  border: 1px solid rgba(255, 195, 160, 0.55);
  color: #fff;
  font-family: Oswald, Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.stat-ww {
  cursor: pointer;
}

.stat-ww:hover b {
  color: var(--gold-bright);
}

.sub-btn:hover {
  border-color: var(--gold-bright);
  color: #fff;
  background: linear-gradient(180deg, rgba(50, 47, 42, 0.96), rgba(28, 28, 30, 0.98));
}

.sub-btn.active-toggle,
.btn.active-toggle {
  background: linear-gradient(180deg, rgba(184, 143, 59, 0.38), rgba(110, 82, 24, 0.42));
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

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

.res-cell {
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 5px 2px;
  text-align: center;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.res-cell b {
  display: block;
  font-size: 12px;
}

.tag.biome {
  background: rgba(45, 58, 46, 0.85);
  color: #b7e0a8;
  border: 1px solid rgba(130, 185, 115, 0.3);
}

.pos {
  color: var(--green) !important;
}

.neg {
  color: var(--red) !important;
}

/* Sol Açılır Birleşik Komuta Menüsü (Obsidyen + Altın Dikey Şerit) */
#railOpenPill {
  position: fixed;
  top: 62px;
  left: 10px;
  z-index: 18;
  padding: 7px 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
}

#railOpenPill {
  position: fixed;
  top: 68px;
  left: 10px;
  z-index: 18;
  padding: 7px 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
}

.left-dock {
  position: fixed;
  top: 68px;
  left: 10px;
  bottom: 14px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  pointer-events: none;
  z-index: 18;
}

.panel {
  pointer-events: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 226, 152, 0.14);
}

#leftRail {
  width: 110px;
  padding: 5px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  flex-shrink: 0;
  align-self: flex-start;
  max-height: 100%;
  background: linear-gradient(180deg, rgba(24, 23, 24, 0.96), rgba(12, 13, 16, 0.97));
  border: 1px solid rgba(196, 162, 92, 0.48);
  border-radius: 5px;
}

.rail-btn {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 9px 10px 9px 11px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(196, 162, 92, 0.13);
  border-radius: 0;
  color: #cfc6b2;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.14s, color 0.14s;
  text-align: left;
}

.rail-btn:hover {
  color: #fff;
  background: rgba(212, 170, 82, 0.11);
}

.rail-btn:hover .rail-ico {
  transform: scale(1.06);
}

.rail-btn.active {
  color: #fdf4db;
  background: linear-gradient(90deg, rgba(212, 170, 82, 0.32) 0%, rgba(164, 124, 42, 0.14) 75%, rgba(164, 124, 42, 0.04) 100%);
  box-shadow: inset 3px 0 0 var(--gold-bright), inset 0 1px 0 rgba(244, 216, 140, 0.25), inset 0 -1px 0 rgba(244, 216, 140, 0.25);
}

.rail-btn small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.rail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 9px;
  background: linear-gradient(180deg, #df4840, #a3251f);
  border: 1px solid rgba(255, 210, 195, 0.5);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.rail-btn .rail-badge {
  position: absolute;
  top: 5px;
  right: 6px;
}

.rail-min {
  margin: 4px 6px 2px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(196, 162, 92, 0.22);
  color: var(--muted);
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.rail-min:hover {
  color: var(--gold-bright);
  border-color: var(--line);
}

#leftDrawer {
  width: 345px;
  max-width: calc(100vw - 134px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  max-height: calc(100vh - 82px);
}

#leftDrawer.wide {
  width: 446px;
  max-width: calc(100vw - 134px);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 8px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(42, 36, 26, 0.72), rgba(18, 18, 21, 0.8));
  flex-shrink: 0;
}

.drawer-head h2 {
  margin: 0;
  font-size: 14.5px;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px 12px;
}

/* Sol Alt Köşe: Biyom Görselli Mini Bölge Özet Kartı (En sol alta yaslı) */
.prov-card {
  position: fixed;
  left: 10px;
  bottom: 14px;
  width: 244px;
  z-index: 17;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.97), rgba(13, 14, 17, 0.98));
  border: 1px solid rgba(212, 176, 98, 0.56);
  border-radius: 5px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 229, 158, 0.18);
}

.pc-top {
  display: flex;
  gap: 9px;
  padding: 9px 9px 7px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(196, 162, 92, 0.22);
  background: linear-gradient(180deg, rgba(44, 38, 28, 0.42), transparent);
}

.pc-thumb {
  width: 66px;
  height: 48px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(228, 191, 107, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.pc-head-txt {
  flex: 1;
  min-width: 0;
}

.pc-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.pc-name {
  font-family: Cinzel, Oswald, serif;
  font-size: 14px;
  font-weight: 700;
  color: #f8f1df;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0 2px;
  line-height: 1;
}

.pc-close:hover {
  color: var(--gold-bright);
}

.pc-biome {
  font-size: 11px;
  color: #9fc78e;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pc-owner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: #eee5d0;
  border-bottom: 1px solid rgba(196, 162, 92, 0.16);
  background: rgba(0, 0, 0, 0.22);
}

.pc-owner .pc-tag {
  margin-left: auto;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
}

.pc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 7px 9px 5px;
  border-bottom: 1px solid rgba(196, 162, 92, 0.14);
}

.pc-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #f7f0e0;
}

.pc-res {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 10px 7px;
  font-size: 11.5px;
  color: #d8d0bc;
}

.pc-res span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 12px;
}

.pc-res span.zero {
  opacity: 0.4;
}

.pc-foot {
  padding: 0 9px 9px;
}

.prov-card-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(44, 40, 32, 0.96), rgba(24, 22, 20, 0.98));
  border: 1px solid rgba(212, 176, 98, 0.58);
  color: #f2e6c8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 232, 175, 0.14);
  transition: background 0.14s, border-color 0.14s;
}

.prov-card-btn:hover {
  background: linear-gradient(180deg, rgba(164, 124, 42, 0.42), rgba(92, 68, 20, 0.5));
  border-color: var(--gold-bright);
  color: #fff;
}

.prov-card-btn .chev {
  margin-left: auto;
  color: var(--gold-bright);
  font-size: 14px;
  line-height: 1;
}

#govt label {
  display: block;
  margin-top: 6px;
}

input[type=range] {
  width: 100%;
  accent-color: var(--gold);
}

.budget {
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.65;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid var(--line-soft);
}

.budget div {
  display: flex;
  justify-content: space-between;
}

.govt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(212, 170, 82, 0.12);
  border: 1px solid rgba(212, 170, 82, 0.38);
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.govt-head-main {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.govt-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
  width: 100%;
}

.regime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.regime-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  padding: 8px 9px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .12s, background .12s;
}

.regime-card:hover {
  border-color: rgba(227, 185, 92, 0.55);
  background: rgba(227, 185, 92, 0.08);
}

.regime-card.active {
  border-color: var(--gold);
  background: rgba(227, 185, 92, 0.18);
  box-shadow: inset 0 0 0 1px rgba(227, 185, 92, 0.35);
}

.regime-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.regime-card.active .regime-title {
  color: var(--gold-bright);
}

.law-card {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 8px 9px;
  margin-bottom: 7px;
}

.law-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.law-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.law-ctrl {
  display: flex;
  align-items: center;
  gap: 4px;
}

.law-cur {
  font-size: 11px;
  color: var(--gold-bright);
  font-weight: 600;
  background: rgba(212, 170, 82, 0.14);
  border: 1px solid rgba(212, 170, 82, 0.32);
  border-radius: 4px;
  padding: 2px 6px;
}

.law-steps {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 4px;
}

.law-step {
  padding: 5px 4px;
  text-align: center;
  background: #141518;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.2;
  transition: border-color .12s, background .12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.law-step:hover {
  border-color: rgba(227, 185, 92, 0.55);
  color: #fff;
}

.law-step.active {
  background: rgba(212, 170, 82, 0.24);
  border-color: var(--gold);
  color: #fff;
  font-weight: 700;
}

.law-effs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.eff-pill {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: #d5cfc0;
}

.eff-pill.pos {
  background: rgba(76, 175, 80, 0.18);
  color: #8be08f;
}

.eff-pill.neg {
  background: rgba(217, 83, 79, 0.22);
  color: #f69c9a;
}

.hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin: 4px 0;
}

.hint.warn {
  color: #f0ad4e;
}

#info .kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(196, 162, 92, 0.14);
}

#info .kv span:first-child {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  margin: 4px 4px 0 0;
}

.tag.war {
  background: var(--red);
  color: #fff;
}

.tag.ally {
  background: #264f7a;
  color: #e8f2ff;
  border: 1px solid rgba(90, 160, 230, 0.38);
}

.tag.truce {
  background: #6b5b2a;
  color: #fff;
}

.tag.player {
  background: linear-gradient(180deg, #d8ae50, #9d7424);
  color: #1a1205;
}

.tag.unrest {
  background: #8a4b1f;
  color: #fff;
}

.tag.ai {
  background: #27292e;
  color: #d4cdbd;
  border: 1px solid var(--line-soft);
}

.bld {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 5px 0;
}

.bld-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bld .lv {
  color: var(--gold);
  letter-spacing: 2px;
}

.section {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}

.section-title {
  color: var(--gold);
  font-family: Cinzel, Oswald, serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.rel-bar {
  height: 6px;
  background: #1d1e22;
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0 2px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rel-fill {
  height: 100%;
  transition: width 0.2s;
}

.leader-meta {
  margin-bottom: 6px;
}

.lrow {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 5px;
  cursor: pointer;
  border-radius: 3px;
}

.lrow:hover {
  background: rgba(212, 170, 82, 0.1);
}

.lrow .nm {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lrow .pn {
  color: var(--gold);
  font-size: 11px;
}

.lrow .ct {
  color: var(--muted);
  font-size: 11px;
  min-width: 34px;
  text-align: right;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.lrow.me {
  background: rgba(212, 170, 82, 0.16);
  border: 1px solid rgba(212, 170, 82, 0.26);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #555;
  display: inline-block;
  flex-shrink: 0;
}

.dot.on {
  background: var(--green);
}

/* Alt Orta: Sevkiyat Kapsülü */
#ratio {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  z-index: 15;
  background: linear-gradient(180deg, rgba(25, 24, 26, 0.96), rgba(14, 15, 18, 0.97));
  border: 1px solid rgba(206, 170, 92, 0.5);
  border-radius: 5px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 229, 160, 0.14);
}

.ratio-lbl {
  font-weight: 600;
  color: #e8dfc9;
  font-size: 12.5px;
}

#ratio input[type=range] {
  width: 124px;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, #c69c43, #665127);
  border-radius: 3px;
  outline: none;
}

#ratio input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2be, #d4a648 65%, #7e5c1b);
  border: 1px solid #f7e19c;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

#ratioVal {
  font-family: Oswald, Inter, sans-serif;
  font-size: 14px;
  color: #f6ecd4;
  min-width: 34px;
  text-align: center;
}

/* Sağ Alt Köşe: OLAYLAR & Sohbet Paneli */
#feed {
  position: fixed;
  right: 12px;
  bottom: 14px;
  width: 292px;
  max-width: calc(100vw - 24px);
  height: 222px;
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  z-index: 16;
  border: 1px solid rgba(206, 170, 92, 0.52);
}

#feed.collapsed {
  height: auto !important;
  width: 214px !important;
}

#feed.collapsed #feedContent,
#feed.collapsed .chat-resize {
  display: none;
}

.chat-resize {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  cursor: nwse-resize;
  z-index: 3;
  opacity: 0.72;
  background: linear-gradient(135deg, rgba(227, 185, 92, 0.6) 0 4px, transparent 4px 7px, rgba(227, 185, 92, 0.35) 7px 10px, transparent 10px);
  border-top-left-radius: 4px;
}

.chat-resize:hover {
  opacity: 1;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 9px 6px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(42, 36, 26, 0.74), rgba(18, 18, 21, 0.84));
  cursor: pointer;
  font-family: Cinzel, Oswald, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.feed-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.feed-ctrls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#feed.collapsed .feed-head {
  border-bottom: none;
  padding-left: 10px;
}

.feed-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 7px 8px 8px;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.tab {
  flex: 1;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line-soft);
  color: var(--muted);
  padding: 4px 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 3px;
  transition: all 0.12s;
}

.tab:hover {
  color: #fff;
  border-color: var(--line);
}

.tab.active {
  background: linear-gradient(180deg, #b88f3b, #7a5a1b);
  border-color: #eed080;
  color: #fdf5e1;
  box-shadow: inset 0 1px 0 rgba(255, 240, 190, 0.38);
}

#feedList {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  font-size: 11.8px;
  line-height: 1.46;
  padding-right: 4px;
  user-select: text;
  color: #e2dac9;
}

#feedList .ev {
  padding: 3px 0;
  border-bottom: 1px solid rgba(196, 162, 92, 0.1);
}

#feedList .ev time {
  color: #b5a37d;
  font-size: 10.5px;
  margin-right: 5px;
  font-variant-numeric: tabular-nums;
}

#feedList .who {
  font-weight: 600;
}

#chatForm input {
  width: 100%;
  margin-top: 6px;
  padding: 6px 8px;
  background: #0c0d10;
  border: 1px solid var(--line);
  color: #f6efe0;
  border-radius: 3px;
  font-size: 12px;
}

.modal-card {
  width: 540px;
  max-width: 94vw;
  max-height: 84vh;
  overflow-y: auto;
  text-align: left;
}

.guide-card {
  width: 640px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.modal-head h2 {
  margin: 0;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ally-card {
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 8px;
}

.ally-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(196, 162, 92, 0.14);
}

.ally-row:last-child {
  border-bottom: none;
}

.ind-card,
.trade-card {
  width: 650px;
}

.ind-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 9px;
}

.ind-presets .btn {
  width: 100%;
  padding: 5px 4px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ind-row {
  background: rgba(16, 17, 20, 0.82);
  border: 1px solid var(--line-soft);
  border-left: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 7px 10px;
  margin-bottom: 6px;
  transition: border-color 0.14s, background 0.14s;
}

.ind-row.active {
  border-left-color: #5cc474;
  background: rgba(20, 24, 22, 0.88);
}

.ind-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ind-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8f1e0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.prod-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(212, 170, 82, 0.1);
  border: 1px solid rgba(212, 170, 82, 0.34);
  border-radius: 5px;
  padding: 6px 9px;
  margin-bottom: 8px;
}

.prod-bar.has-idle {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.14);
}

.prod-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.prod-bar-left strong {
  color: var(--gold-bright);
  font-size: 12.5px;
  white-space: nowrap;
}

.prod-idle-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 3px;
  padding: 1px 6px;
  white-space: nowrap;
}

.prod-bar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.prod-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.prod-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #d4cbb8;
  min-width: 0;
}

.prod-rate {
  font-weight: 700;
  color: var(--muted);
}

.prod-rate.on {
  color: #7ee392;
}

.prod-cost {
  font-size: 11px;
  color: #a9a18e;
  white-space: nowrap;
}

.prod-cost.lack {
  color: #e2a266;
}

.prod-step {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.prod-step .btn {
  min-width: 24px;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1.2;
}

.prod-cnt {
  min-width: 26px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 5px;
}

.prod-up-btn {
  padding: 2px 8px !important;
  font-size: 11px !important;
  white-space: nowrap;
}

.lvl-badge {
  background: rgba(212, 170, 82, 0.18);
  border: 1px solid rgba(212, 170, 82, 0.44);
  color: var(--gold-bright);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ind-stats {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  margin: 7px 0 4px;
  flex-wrap: wrap;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--line-soft);
  color: #e0d7c3;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.stat-chip.pos {
  border-color: rgba(76, 175, 80, 0.38);
  background: rgba(76, 175, 80, 0.13);
}

.stat-chip.gold {
  color: var(--gold-bright);
  border-color: rgba(212, 170, 82, 0.35);
}

.tip-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ind-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ind-slider-row input[type="range"] {
  flex: 1;
}

.ind-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: rgba(212, 170, 82, 0.12);
  border: 1px solid rgba(212, 170, 82, 0.38);
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.ind-summary.has-idle {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.16);
}

.ind-summary strong {
  color: var(--gold-bright);
  font-size: 13px;
}

.ind-fac-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(196, 162, 92, 0.16);
  flex-wrap: wrap;
}

.ind-fac-pips {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  min-height: 20px;
}

.fac-pip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  font-size: 11px;
  background: rgba(92, 184, 92, 0.25);
  border: 1px solid rgba(92, 184, 92, 0.65);
}

.fac-pip.extra {
  width: auto;
  padding: 0 5px;
  font-weight: 700;
  color: #8ee68e;
}

.ind-stepper {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.ind-fac-count {
  min-width: 58px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 6px;
}

.ind-warn {
  color: #fbbf24;
  font-size: 11px;
  margin-top: 5px;
}

.build-palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}

.bld-brush {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  background: #141518;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  transition: border-color .12s, background .12s;
}

.bld-brush:hover {
  border-color: rgba(227, 185, 92, 0.55);
  color: var(--text);
}

.bld-brush.active {
  background: rgba(212, 170, 82, 0.22);
  border-color: var(--gold);
  color: #fff;
  font-weight: 600;
}

.bld-brush .b-ico {
  font-size: 16px;
  line-height: 1.1;
}

.bld-brush .b-cnt {
  font-size: 10px;
  color: var(--gold);
}

.build-banner {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.build-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.build-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 410px;
  overflow-y: auto;
}

.build-prov {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
}

.build-prov.sel {
  border-color: var(--gold);
  background: rgba(212, 170, 82, 0.12);
}

.build-prov.full {
  opacity: 0.78;
}

.build-prov-info {
  min-width: 0;
  flex: 1;
}

.build-prov-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #f6eedc;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.build-prov-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.build-prov-act {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.lv-pill {
  background: rgba(212, 170, 82, 0.18);
  border: 1px solid rgba(212, 170, 82, 0.45);
  color: var(--gold-bright);
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.lv-pill.max {
  background: rgba(92, 184, 92, 0.2);
  border-color: rgba(92, 184, 92, 0.5);
  color: #8ee68e;
}

.info-bld-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.info-bld-chip {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 2px 6px;
  color: #e2dac8;
}

.c-flag {
  font-size: 1.05em;
  line-height: 1;
  vertical-align: -1px;
  margin-right: 1px;
}

.puppet-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}

.puppet-flag-btn {
  padding: 4px 7px;
  font-size: 15px;
  background: #141518;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  cursor: pointer;
}

.puppet-flag-btn.active {
  background: rgba(192, 132, 252, 0.25);
  border-color: #c084fc;
}

.puppet-prov-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  max-height: 195px;
  overflow-y: auto;
  margin: 6px 0;
}

.puppet-prov-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  text-align: left;
  padding: 5px 7px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--text);
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}

.puppet-prov-btn:hover {
  border-color: rgba(192, 132, 252, 0.6);
}

/* HOI4 Tarzı Küresel Savaşlar Ekranı & Deniz Savaşı Mezarı Raporu */
.wars-card {
  width: min(820px, 95vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(24, 22, 21, 0.98), rgba(12, 13, 16, 0.99));
  border: 1px solid rgba(212, 174, 94, 0.65);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.88), inset 0 1px 0 rgba(255, 228, 156, 0.2);
}

.wars-head-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.wars-head-title h2 {
  font-family: Cinzel, Oswald, serif;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: #f8efda;
  margin: 0;
}

.wars-head-title small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 2px;
}

.wars-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wars-tabs {
  display: inline-flex;
  background: rgba(7, 8, 11, 0.88);
  border: 1px solid rgba(196, 162, 92, 0.42);
  border-radius: 4px;
  overflow: hidden;
}

.wtab {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(196, 162, 92, 0.2);
  color: #bfb59f;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.wtab:last-child {
  border-right: none;
}

.wtab:hover {
  color: #fff;
  background: rgba(212, 170, 82, 0.14);
}

.wtab.active {
  background: linear-gradient(180deg, #b88e38, #785819);
  color: #fff7e4;
}

.wars-list {
  margin-top: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-right: 4px;
  min-height: 160px;
  max-height: 68vh;
}

.war-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(196, 162, 92, 0.25);
  border-radius: 5px;
}

.war-item {
  background: linear-gradient(180deg, rgba(28, 27, 29, 0.94), rgba(16, 17, 20, 0.96));
  border: 1px solid rgba(196, 162, 92, 0.34);
  border-radius: 5px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 232, 175, 0.08);
}

.war-item.mine {
  border-color: rgba(235, 112, 96, 0.72);
  background: linear-gradient(180deg, rgba(46, 22, 24, 0.94), rgba(18, 15, 17, 0.97));
  box-shadow: 0 6px 22px rgba(170, 32, 32, 0.28), inset 0 1px 0 rgba(255, 185, 145, 0.16);
}

.war-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.war-title {
  font-family: Cinzel, Oswald, serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #f6ecd4;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.war-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.war-lead-tag {
  font-family: Oswald, Inter, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(212, 170, 82, 0.16);
  border: 1px solid rgba(212, 170, 82, 0.48);
  color: var(--gold-bright);
}

.war-bar-wrap {
  margin: 4px 0 10px;
}

.war-bar-pcts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Oswald, Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.war-bar {
  position: relative;
  height: 14px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  background: #101216;
  border: 1px solid rgba(212, 174, 94, 0.45);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.75);
}

.war-bar-a {
  height: 100%;
  background: linear-gradient(90deg, #8e1e1e, #d9463e);
  transition: width 0.35s ease;
}

.war-bar-b {
  height: 100%;
  background: linear-gradient(90deg, #2d66a3, #5298db);
  transition: width 0.35s ease;
}

.war-bar-mid {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 240, 190, 0.85);
  transform: translateX(-1px);
  pointer-events: none;
}

.war-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.war-side {
  background: rgba(8, 9, 12, 0.52);
  border: 1px solid rgba(196, 162, 92, 0.2);
  border-radius: 4px;
  padding: 8px 10px;
}

.war-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(196, 162, 92, 0.15);
}

.war-side-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  color: #f7f0df;
  cursor: pointer;
}

.war-side-name:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

.war-role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
}

.war-role.att {
  background: rgba(212, 77, 71, 0.22);
  color: #ff9c96;
  border: 1px solid rgba(212, 77, 71, 0.45);
}

.war-role.def {
  background: rgba(82, 152, 219, 0.22);
  color: #9ad0ff;
  border: 1px solid rgba(82, 152, 219, 0.45);
}

.war-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  text-align: center;
}

.war-kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(196, 162, 92, 0.12);
  border-radius: 3px;
  padding: 4px 3px;
}

.war-kpi small {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
}

.war-kpi b {
  display: block;
  font-family: Oswald, Inter, sans-serif;
  font-size: 13px;
  color: #f4ecdb;
  margin-top: 1px;
}

.war-kpi b.loss {
  color: #ff7a70;
}

.war-kpi b.gain {
  color: #74d974;
}

.war-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.war-vs-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 3px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, rgba(212, 168, 72, 0.28), rgba(140, 96, 28, 0.25));
  border: 1px solid rgba(235, 195, 102, 0.65);
  color: #ffe29a;
}

.war-cnt-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  height: 17px;
  border-radius: 9px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(212, 170, 82, 0.18);
  border: 1px solid rgba(212, 170, 82, 0.45);
  color: #f4d88c;
}

.war-coal-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12.5px;
  color: #f6ecd4;
}

.war-side-multi {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.war-m-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.war-m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(196, 162, 92, 0.14);
}

.war-m-row.is-me {
  background: rgba(212, 168, 72, 0.12);
  border-color: rgba(232, 192, 98, 0.52);
}

.war-m-name {
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.war-m-tag {
  display: inline-block;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #e4d8bc;
  margin-left: 3px;
}

.war-m-tag.me {
  background: rgba(235, 190, 82, 0.28);
  border: 1px solid rgba(242, 204, 102, 0.65);
  color: #ffe8a6;
}

.war-m-stats {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 11.5px;
  flex-shrink: 0;
}

.war-m-stats .loss {
  color: #ff8076;
}

.war-m-stats .gain {
  color: #74d974;
}

.war-m-stats .tr {
  color: #ede4cf;
}

.war-m-stats .dim {
  color: #777;
}

.war-tot-kpis {
  margin-top: 2px;
  padding-top: 5px;
  border-top: 1px dashed rgba(196, 162, 92, 0.22);
}

.ally-call-box {
  background: rgba(155, 34, 34, 0.14);
  border: 1px solid rgba(224, 96, 86, 0.42);
  border-radius: 4px;
  padding: 7px 8px 4px;
  margin-bottom: 8px;
}

.nuke-map-banner {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 4px;
  font-size: 11.5px;
  line-height: 1.4;
  background: linear-gradient(180deg, rgba(168, 36, 24, 0.28), rgba(92, 18, 16, 0.34));
  border: 1px solid rgba(255, 132, 72, 0.62);
  color: #ffe3d1;
}

.wreck-card {
  width: min(560px, 94vw);
  text-align: left;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(20, 23, 28, 0.98), rgba(11, 13, 18, 0.99));
  border: 1px solid rgba(212, 174, 94, 0.68);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.88), inset 0 1px 0 rgba(255, 230, 160, 0.2);
}

.wreck-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wreck-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(194, 152, 66, 0.22), rgba(20, 22, 28, 0.65));
  border: 1px solid rgba(228, 191, 107, 0.45);
}

.wreck-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wreck-col {
  background: rgba(8, 10, 14, 0.65);
  border: 1px solid rgba(196, 162, 92, 0.25);
  border-radius: 5px;
  padding: 10px 11px;
}

.wreck-col.win {
  border-color: rgba(105, 201, 105, 0.55);
}

.wreck-col.lose {
  border-color: rgba(212, 77, 71, 0.55);
}

.wreck-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(196, 162, 92, 0.16);
}

.wreck-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.wreck-table th {
  text-align: left;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
  padding: 3px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wreck-table td {
  padding: 4px 2px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 12.5px;
}

.wreck-table td:first-child {
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  color: #ddd4c0;
}

.wreck-table .num-loss {
  color: #ff7a70;
  font-weight: 700;
}

.wreck-table .num-surv {
  color: #74d974;
  font-weight: 600;
}

.wreck-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.puppet-prov-btn.active {
  background: rgba(192, 132, 252, 0.22);
  border-color: #c084fc;
  color: #fff;
  font-weight: 600;
}

.puppet-sel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
  max-height: 76px;
  overflow-y: auto;
}

.puppet-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(192, 132, 252, 0.22);
  border: 1px solid rgba(192, 132, 252, 0.5);
  color: #f3e8ff;
  font-size: 11px;
  cursor: pointer;
}

.trade-mat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 8px;
}

.trade-mat-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 8px;
  background: #141518;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.trade-mat-pill:hover {
  border-color: rgba(227, 185, 92, 0.55);
  color: var(--text);
}

.trade-mat-pill.active {
  background: rgba(212, 170, 82, 0.22);
  border-color: var(--gold);
  color: #fff;
}

.trade-mat-pill strong {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.trade-mat-pill small {
  font-size: 10.5px;
  color: var(--gold);
}

.trade-sel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.trade-sell-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trade-qty-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.trade-qty-wrap input {
  width: 88px;
  min-width: 74px;
  flex: 1;
  padding: 5px 8px;
}

.trade-qty-wrap .btn {
  padding: 4px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

.trade-mode-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.trade-mode-pills .btn {
  flex: 1;
}

.trade-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.trade-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
}

.trade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  flex-wrap: wrap;
}

.mode-pill {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.mode-pill.cheap {
  background: rgba(76, 175, 80, 0.2);
  color: #8be08f;
}

.mode-pill.normal {
  background: rgba(212, 170, 82, 0.2);
  color: var(--gold-bright);
}

.mode-pill.expensive {
  background: rgba(217, 83, 79, 0.22);
  color: #f69c9a;
}

.strait-card {
  width: 640px;
}

.strait-row {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 9px 10px;
  margin-bottom: 8px;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 6px 0;
}

.unit-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.unit-cell {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 5px 2px;
  text-align: center;
  font-size: 11px;
  overflow: hidden;
}

.unit-cell small {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unit-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}

.unit-tabs-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.unit-tab {
  padding: 5px 2px;
  font-size: 11px;
  text-align: center;
  background: #141518;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
}

.unit-tab.active {
  background: rgba(212, 170, 82, 0.22);
  border-color: var(--gold);
  color: #fff;
  font-weight: 600;
}

.unit-tab small {
  display: block;
  font-size: 10px;
  color: var(--gold-bright);
}

.tip-units {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0;
  font-size: 11px;
}

.tip-u {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(196, 162, 92, 0.16);
  color: #f6eedc;
  font-weight: 600;
}

.tt-biome {
  font-size: 11px;
  color: #9fc78e;
  display: block;
  margin-top: 1px;
}

.req-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}

.req-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--line-soft);
  color: #d8d0bc;
}

.req-chip.ok {
  border-color: rgba(76, 175, 80, 0.4);
  color: #d8d0bc;
}

.req-chip.miss {
  border-color: rgba(217, 83, 79, 0.72);
  background: rgba(217, 83, 79, 0.18);
  color: #fca5a5;
  cursor: pointer;
}

.req-chip.miss:hover {
  background: rgba(217, 83, 79, 0.28);
}

.ratio-sel {
  width: auto;
  padding: 4px 10px;
  font-size: 12px;
  background: rgba(11, 12, 15, 0.94);
  border-color: rgba(196, 162, 92, 0.42);
}

.forces-card {
  width: 680px;
}

.zone-row {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 9px 10px;
  margin-bottom: 8px;
}

.zone-row.mine {
  border-color: rgba(92, 184, 92, 0.48);
}

.fleet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}

.mini-prod {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}

@media (max-height: 700px) {
  .rail-btn {
    padding: 6px 10px 6px 11px;
  }
}

@media (max-width: 1340px) {
  #hud {
    gap: 8px;
    padding: 0 10px;
  }

  .hud-country {
    min-width: 144px;
  }

  .hud-stats {
    gap: 8px;
  }

  .hud-res {
    gap: 10px;
  }

  .h-ico {
    width: 25px;
    height: 25px;
  }

  .h-ico-wreath {
    width: 27px;
    height: 27px;
  }

  #hudRes .r-ico {
    width: 23px;
    height: 23px;
  }

  .stat b {
    font-size: 15px;
  }

  .hud-res b {
    font-size: 14.5px;
  }
}

.queue-box {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.queue-row {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.queue-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
}

.queue-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 11px;
  flex-shrink: 0;
}

.q-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.q-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #4ade80);
  transition: width 0.25s ease;
}

.q-fill.build {
  background: linear-gradient(90deg, #d99b32, #f5d87d);
}

.ready-banner {
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.45), rgba(15, 55, 35, 0.55));
  border: 1px solid rgba(74, 222, 128, 0.65);
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.ready-banner.active {
  border-color: #fde047;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.25);
}

.ready-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0;
}

.ready-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}

.ready-chip.active {
  background: rgba(74, 222, 128, 0.28);
  border-color: #fde047;
  color: #fef08a;
  font-weight: 700;
}

.sea-sel-card {
  background: rgba(14, 42, 64, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 5px;
  padding: 8px 10px;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .trade-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* === PARŞÖMEN KOMUTAN REHBERİ === */
@keyframes scrollUnfurl {
  from {
    opacity: 0;
    transform: scaleY(0.92) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}

.parchment-shell {
  width: 940px;
  max-width: 94vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
  animation: scrollUnfurl 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Üst & Alt Ahşap-Pirinç Parşömen Silindirleri */
.scroll-rod {
  display: flex;
  align-items: center;
  width: calc(100% + 40px);
  margin-left: -20px;
  height: 24px;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.72));
}

.scroll-shaft {
  flex: 1;
  height: 18px;
  border-radius: 9px;
  background: linear-gradient(180deg, #8b5c2c 0%, #5c3818 32%, #2c1808 76%, #6e4520 100%);
  border-top: 1px solid rgba(250, 214, 140, 0.42);
  border-bottom: 1px solid rgba(18, 9, 2, 0.85);
  box-shadow: inset 0 2px 4px rgba(255, 226, 160, 0.25);
}

.scroll-knob {
  width: 28px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fce5a2 0%, #cf993b 38%, #6d4710 80%, #b58027 100%);
  border: 1px solid #3d2508;
  box-shadow: inset 0 1px 0 rgba(255, 250, 224, 0.7), inset 0 -2px 3px rgba(48, 28, 4, 0.7);
  position: relative;
  flex-shrink: 0;
}

.scroll-knob.left {
  margin-right: -4px;
  border-radius: 10px 4px 4px 10px;
}

.scroll-knob.right {
  margin-left: -4px;
  border-radius: 4px 10px 10px 4px;
}

/* Eskitilmiş Parşömen Kâğıdı */
.parchment-sheet {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: -5px 0;
  padding: 14px 18px;
  background:
    radial-gradient(ellipse 92% 88% at 50% 48%, rgba(250, 239, 212, 0.98) 0%, rgba(235, 213, 168, 0.98) 64%, rgba(196, 162, 108, 0.99) 100%),
    repeating-linear-gradient(0deg, rgba(112, 74, 28, 0.035) 0px, rgba(112, 74, 28, 0.035) 1px, transparent 1px, transparent 5px);
  border-left: 3px solid #7d5324;
  border-right: 3px solid #7d5324;
  box-shadow:
    inset 0 18px 24px -12px rgba(62, 34, 8, 0.58),
    inset 0 -18px 24px -12px rgba(62, 34, 8, 0.58),
    inset 22px 0 32px -18px rgba(96, 58, 18, 0.42),
    inset -22px 0 32px -18px rgba(96, 58, 18, 0.42),
    0 24px 70px rgba(0, 0, 0, 0.86);
  color: #2c1c0e;
  overflow: hidden;
}

.parchment-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(116, 74, 26, 0.45);
  outline: 1px solid rgba(116, 74, 26, 0.18);
  outline-offset: -4px;
  border-radius: 3px;
  overflow: hidden;
}

.parchment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px 12px;
  background: linear-gradient(180deg, rgba(146, 98, 38, 0.16), rgba(146, 98, 38, 0.04));
  border-bottom: 1.5px solid rgba(116, 74, 26, 0.36);
  flex-shrink: 0;
}

.parchment-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.parchment-crest {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(58, 32, 6, 0.45));
}

.parchment-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #7c4d19;
  text-transform: uppercase;
}

.parchment-head h2 {
  margin: 2px 0 0;
  font-family: Cinzel, Georgia, serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #2a1606;
  text-shadow: 0 1px 0 rgba(255, 246, 222, 0.75);
}

.parchment-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #5c3e1e;
  font-style: italic;
}

.parchment-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wax-seal {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #f6d488;
  background: radial-gradient(circle at 32% 28%, #d23d30 0%, #8e1913 62%, #520a07 100%);
  border: 2px solid #a82820;
  box-shadow: 0 3px 8px rgba(42, 10, 6, 0.55), inset 0 0 0 3px rgba(255, 212, 134, 0.22);
  user-select: none;
}

.parchment-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(102, 62, 20, 0.5);
  background: rgba(86, 52, 18, 0.14);
  color: #3a200a;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}

.parchment-close:hover {
  background: #7c1f1a;
  border-color: #56120e;
  color: #fdf0d0;
}

/* Bölüm Fihristi (Üst Sekmeler) */
.scroll-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 9px 18px;
  background: rgba(124, 82, 32, 0.12);
  border-bottom: 1px solid rgba(116, 74, 26, 0.28);
  flex-shrink: 0;
}

.gtoc-btn {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid rgba(116, 74, 26, 0.35);
  background: rgba(252, 243, 222, 0.62);
  color: #3e250e;
  font-family: Cinzel, Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.gtoc-btn:hover {
  background: rgba(124, 78, 28, 0.22);
  border-color: #7c4e1c;
}

.gtoc-btn.active {
  background: linear-gradient(180deg, #4b2d12, #2e1908);
  border-color: #241305;
  color: #f8e4b0;
  box-shadow: 0 2px 6px rgba(42, 22, 6, 0.35);
}

/* Parşömen Kaydırılabilir Metin Alanı */
.parchment-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 24px 22px;
  scroll-behavior: smooth;
  line-height: 1.66;
  font-size: 13.5px;
  color: #2d1d0e;
}

.parchment-body::-webkit-scrollbar {
  width: 8px;
}

.parchment-body::-webkit-scrollbar-track {
  background: rgba(116, 74, 26, 0.12);
}

.parchment-body::-webkit-scrollbar-thumb {
  background: rgba(116, 74, 26, 0.45);
  border-radius: 4px;
}

.parchment-body::-webkit-scrollbar-thumb:hover {
  background: rgba(92, 54, 16, 0.72);
}

.parchment-body b,
.parchment-body strong {
  color: #1f1104;
}

.parchment-body code {
  background: rgba(96, 58, 18, 0.14);
  border: 1px solid rgba(116, 74, 26, 0.24);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 12px;
  color: #5b2a09;
  font-weight: 600;
}

.g-sec {
  scroll-margin-top: 12px;
}

.g-sec p {
  margin: 0 0 10px;
}

.g-lead::first-letter {
  float: left;
  font-family: Cinzel, Georgia, serif;
  font-size: 40px;
  line-height: 0.88;
  font-weight: 800;
  color: #7c1f1a;
  padding: 4px 8px 0 0;
}

.g-sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.g-roman {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Cinzel, Georgia, serif;
  font-size: 14px;
  font-weight: 800;
  color: #f8e4b2;
  background: linear-gradient(180deg, #613a16, #321b08);
  border: 1.5px solid #a8762c;
  box-shadow: 0 2px 6px rgba(42, 22, 6, 0.32);
}

.g-sec-head h3 {
  margin: 0;
  padding: 0;
  border: none;
  font-family: Cinzel, Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2b1605;
  text-transform: none;
}

.g-sec-head small {
  display: block;
  font-size: 12px;
  color: #6b4922;
  margin-top: 1px;
}

.g-subhead {
  margin: 14px 0 8px;
  font-family: Cinzel, Georgia, serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b3b12;
  border-bottom: 1px dashed rgba(116, 74, 26, 0.34);
  padding-bottom: 4px;
}

.g-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 18px;
}

.g-ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(116, 74, 26, 0.45), transparent);
}

.g-ornament i {
  width: 7px;
  height: 7px;
  display: block;
  transform: rotate(45deg);
  background: #8a5620;
}

/* Oyun İçi Buton & İkon Eşleştirme Rozetleri (Parşömen Üstünde Net Kontrast) */
.g-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  margin: 0 1px;
  border-radius: 4px;
  vertical-align: -1px;
  background: linear-gradient(180deg, #2a2e38, #161920);
  border: 1px solid #8c6a2e;
  color: #f5e6c2;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(32, 18, 4, 0.35);
}

.g-btn-pill img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.g-btn-pill.gold {
  background: linear-gradient(180deg, #e7c268, #ab7820);
  border-color: #6c470b;
  color: #191003;
}

.g-btn-pill.red {
  background: linear-gradient(180deg, #b83730, #761b17);
  border-color: #4f0f0c;
  color: #fff0e8;
}

.g-res-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  margin: 2px 2px;
  border-radius: 12px;
  background: rgba(24, 28, 36, 0.9);
  border: 1px solid #916e30;
  color: #f3e4be;
  font-size: 11.5px;
  font-weight: 600;
  vertical-align: middle;
}

.g-res-pill img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.g-h-ico {
  width: 17px;
  height: 17px;
  vertical-align: -3px;
  background: #1b2029;
  border: 1px solid #8f6b2e;
  border-radius: 4px;
  padding: 1px;
}

.g-inline-ico {
  width: 17px;
  height: 17px;
  vertical-align: -3px;
  background: #1b2029;
  border: 1px solid #8f6b2e;
  border-radius: 4px;
  padding: 2px;
  margin: 0 1px;
}

.g-key {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #fbf3df, #dec696);
  border: 1px solid #865a24;
  border-bottom-width: 2px;
  color: #2c1908;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Kart Izgaraları & Bilgi Kutuları */
.g-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 6px 0;
}

.g-chip-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(116, 74, 26, 0.08);
  border: 1px solid rgba(116, 74, 26, 0.25);
}

.g-chip-card img {
  width: 34px;
  height: 34px;
  padding: 4px;
  border-radius: 7px;
  object-fit: contain;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #2a303b, #12161e);
  border: 1px solid #9c7432;
  box-shadow: 0 2px 5px rgba(38, 20, 4, 0.35);
}

.g-chip-card b {
  display: block;
  font-size: 12.5px;
  color: #241304;
}

.g-chip-card span {
  display: block;
  font-size: 11.5px;
  line-height: 1.45;
  color: #4b3218;
  margin-top: 2px;
}

.g-rail-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.g-rail-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(116, 74, 26, 0.07);
  border: 1px solid rgba(116, 74, 26, 0.22);
  font-size: 11.5px;
  color: #3d2712;
}

.g-rail-legend img {
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 5px;
  flex-shrink: 0;
  background: #181c24;
  border: 1px solid #8f6b2e;
}

.g-callout {
  margin: 10px 0 12px;
  padding: 10px 13px;
  border-radius: 5px;
  background: rgba(138, 86, 26, 0.13);
  border-left: 4px solid #8a5620;
  border-top: 1px solid rgba(116, 74, 26, 0.22);
  border-right: 1px solid rgba(116, 74, 26, 0.22);
  border-bottom: 1px solid rgba(116, 74, 26, 0.22);
  font-size: 12.5px;
  color: #2d1b0a;
}

.g-callout b {
  display: block;
  margin-bottom: 2px;
  color: #5c2e08;
}

.g-callout.warn {
  background: rgba(146, 36, 28, 0.10);
  border-left-color: #8f221b;
}

.g-callout.warn b {
  color: #7c1c16;
}

.g-two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.g-list-box {
  padding: 11px 13px;
  border-radius: 6px;
  background: rgba(116, 74, 26, 0.075);
  border: 1px solid rgba(116, 74, 26, 0.26);
}

.g-list-box.g-box-good {
  background: rgba(40, 108, 52, 0.09);
  border-color: rgba(40, 108, 52, 0.34);
}

.g-list-box.g-box-warn {
  background: rgba(146, 36, 28, 0.09);
  border-color: rgba(146, 36, 28, 0.34);
}

.g-list-box h4 {
  margin: 0 0 7px;
  font-family: Cinzel, Georgia, serif;
  font-size: 13px;
  color: #2b1605;
  border-bottom: 1px solid rgba(116, 74, 26, 0.22);
  padding-bottom: 4px;
}

.g-list-box ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.55;
  color: #3a2511;
}

.g-list-box li {
  margin-bottom: 4px;
}

.g-list-box p {
  font-size: 12px;
  line-height: 1.56;
  color: #3a2511;
}

.g-unit-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.g-unit-mini {
  padding: 9px 7px;
  border-radius: 6px;
  text-align: center;
  background: rgba(116, 74, 26, 0.08);
  border: 1px solid rgba(116, 74, 26, 0.25);
}

.g-unit-mini img {
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 8px;
  display: block;
  margin: 0 auto 5px;
  background: radial-gradient(circle at 35% 30%, #2a303b, #12161e);
  border: 1px solid #9c7432;
}

.g-unit-mini b {
  display: block;
  font-size: 12px;
  color: #241304;
}

.g-unit-mini span {
  display: block;
  font-size: 11px;
  line-height: 1.38;
  color: #4d3318;
  margin-top: 3px;
}

.g-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.g-plan-card {
  padding: 10px 11px;
  border-radius: 6px;
  background: rgba(116, 74, 26, 0.085);
  border: 1px solid rgba(116, 74, 26, 0.28);
}

.g-plan-card p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.52;
  color: #3a2511;
}

.g-keys-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.g-keys-grid>div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 5px;
  background: rgba(116, 74, 26, 0.075);
  border: 1px solid rgba(116, 74, 26, 0.22);
  font-size: 12px;
  color: #38230f;
}

.g-recipe {
  margin: 6px 0 0;
  padding-left: 20px;
  font-size: 12.5px;
  line-height: 1.62;
  color: #2d1b0a;
}

.g-recipe li {
  margin-bottom: 6px;
}

.parchment-sign {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(116, 74, 26, 0.34);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.parchment-sign span {
  font-family: Cinzel, Georgia, serif;
  font-size: 12px;
  font-style: italic;
  color: #6b4822;
}

@media (max-width: 780px) {
  .scroll-rod {
    width: calc(100% + 16px);
    margin-left: -8px;
  }

  .g-chip-grid,
  .g-rail-legend,
  .g-two-col,
  .g-plan-grid,
  .g-keys-grid {
    grid-template-columns: 1fr;
  }

  .g-unit-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Resmi Genelge / HOI4 Barış Gazetesi */
.decree-card {
  width: 520px;
  max-width: 94vw;
  text-align: left;
  background: linear-gradient(180deg, rgba(24, 21, 16, 0.97), rgba(14, 15, 18, 0.98));
  border: 2px solid var(--gold);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), inset 0 0 30px rgba(227, 185, 92, 0.08);
}

.decree-top {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
}

.decree-top>div {
  flex: 1;
  text-align: center;
}

.decree-ico {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.decree-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 700;
}

.decree-top h2 {
  font-family: Cinzel, Oswald, serif;
  font-size: 24px;
  color: #fff;
  margin: 2px 0 0;
}

.decree-sub {
  font-size: 13px;
  color: #dfd8c8;
  margin: 10px 0 4px;
  text-align: center;
  line-height: 1.5;
}

.decree-shares {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 6px;
}

.decree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}

.decree-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

/* Ülke Seçme Ekranı */
.pick-screen {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 25;
}

.pick-top {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  white-space: nowrap;
  max-width: calc(100vw - 24px);
  overflow-x: auto;
}

.pick-badge {
  font-family: Cinzel, Oswald, serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  font-weight: 700;
}

.pick-panel {
  position: fixed;
  top: 58px;
  left: 12px;
  bottom: 12px;
  width: 345px;
  max-width: calc(100vw - 24px);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.pick-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pick-chip {
  padding: 3px 7px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}

.pick-chip:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.pick-chip.active {
  background: rgba(212, 170, 82, 0.24);
  border-color: var(--gold);
  color: #fff;
  font-weight: 600;
}

.claim-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 115px;
  overflow-y: auto;
  margin: 5px 0 8px;
}

.pick-list {
  flex: 1;
  min-height: 110px;
  overflow-y: auto;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
}

.pick-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
}

.pick-row:hover {
  background: rgba(212, 170, 82, 0.09);
}

.pick-row.sel {
  background: rgba(212, 170, 82, 0.18);
  border-color: rgba(212, 170, 82, 0.58);
}

.pick-row.taken {
  opacity: 0.5;
}

.pick-row .nm {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.pick-card {
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 10px;
  flex-shrink: 0;
}

.pick-card h4 {
  margin: 0 0 6px;
  font-family: Cinzel, Oswald, serif;
  font-size: 15px;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  gap: 7px;
}

.pick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 11px;
}

.pick-stats div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 4px;
}

.pick-stats b {
  display: block;
  font-size: 13px;
  color: #fff;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(227, 185, 92, 0.25);
  }
}

#requests {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.req {
  background: var(--bg);
  border: 1px solid var(--gold);
  padding: 10px 14px;
  border-radius: 5px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

/* Harita Hover Tooltip (Obsidyen + Altın Kenarlık) */
#tooltip {
  position: fixed;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(23, 23, 26, 0.98), rgba(13, 14, 17, 0.98));
  border: 1px solid rgba(212, 176, 98, 0.58);
  padding: 8px 11px;
  border-radius: 5px;
  font-size: 12px;
  z-index: 80;
  line-height: 1.45;
  max-width: 315px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 229, 158, 0.16);
}

.tt-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
}

.tt-thumb {
  width: 52px;
  height: 42px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid rgba(212, 176, 98, 0.56);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 229, 158, 0.18);
  flex-shrink: 0;
  background: #141820;
}

.tt-title-col {
  min-width: 0;
  flex: 1;
}

.tt-head {
  font-family: Cinzel, Oswald, serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #f8f0dc;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

@media (max-width: 1340px) {
  #hud {
    gap: 8px;
    padding: 0 10px;
  }

  .hud-country {
    min-width: 144px;
  }

  .hud-stats {
    gap: 8px;
  }

  .hud-res {
    gap: 10px;
  }

  .h-ico {
    width: 25px;
    height: 25px;
  }

  .h-ico-wreath {
    width: 27px;
    height: 27px;
  }

  #hudRes .r-ico {
    width: 23px;
    height: 23px;
  }

  .stat b {
    font-size: 15px;
  }

  .hud-res b {
    font-size: 14.5px;
  }
}

.tt-biome {
  font-size: 11px;
  color: #9fc78e;
  display: block;
  margin-top: 1px;
}

.tt-owner {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  margin: 4px 0;
  border-top: 1px solid rgba(196, 162, 92, 0.18);
  border-bottom: 1px solid rgba(196, 162, 92, 0.18);
  font-size: 12px;
}

.tt-stats {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 4px 0;
  font-family: Oswald, Inter, sans-serif;
  font-size: 13px;
}

.tt-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tt-res {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(196, 162, 92, 0.15);
  font-family: Oswald, Inter, sans-serif;
  font-size: 12px;
  color: #ded6c4;
}

.tt-res span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

#toasts {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 65;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.toast {
  background: linear-gradient(180deg, #8b2824, #631a18);
  border: 1px solid #c95852;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
  animation: fade 3s forwards;
}

.toast.ok {
  background: linear-gradient(180deg, #2e5e2e, #1f421f);
  border-color: #5ca65c;
}

@keyframes fade {

  0%,
  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 1230px) {
  #leftDrawer.wide {
    margin-top: 40px;
    max-height: calc(100vh - 122px);
  }
}

@media (max-width: 1180px) {
  #leftDrawer {
    margin-top: 40px;
    max-height: calc(100vh - 122px);
  }
}

@media (max-width: 1024px) {
  #hud {
    gap: 9px;
    font-size: 12px;
  }

  .hud-country {
    min-width: auto;
  }

  #leftRail {
    width: 92px;
  }

  .prov-card {
    left: 10px;
    width: 222px;
  }

  #leftDrawer,
  #leftDrawer.wide {
    width: min(320px, calc(100vw - 116px));
  }

  #feed {
    width: 260px;
    height: 210px;
  }

  #ratio {
    bottom: 64px;
    padding: 6px 10px;
  }
}

/* === ONLINE SUNUCU TARAYICISI, HIZ/SES, LOBİ & ODA YÖNETİMİ === */
.menu-btn.resume-btn {
  background: linear-gradient(180deg, rgba(44, 96, 56, 0.92), rgba(24, 58, 34, 0.96));
  border-color: rgba(112, 224, 138, 0.65);
}

.menu-btn.resume-btn:hover {
  border-color: #9bf5b0;
  background: linear-gradient(180deg, rgba(56, 120, 72, 0.96), rgba(30, 72, 42, 0.98));
}

.menu-btn.resume-btn b {
  color: #ecfff1;
}

.menu-btn.resume-btn small {
  color: rgba(212, 246, 222, 0.86);
}

.menu-btn.resume-btn .m-ico-svg {
  width: 26px;
  height: 26px;
  color: #9bf5b0;
}

.m-ico-emoji {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

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

.preset-btn {
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid rgba(196, 162, 92, 0.34);
  background: rgba(16, 17, 21, 0.85);
  color: #dfd5bf;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s, color 0.14s;
}

.preset-btn:hover {
  border-color: var(--gold-bright);
  color: #fff;
}

.preset-btn.active {
  background: linear-gradient(180deg, rgba(188, 144, 56, 0.42), rgba(110, 80, 22, 0.48));
  border-color: var(--gold-bright);
  color: #fff2cb;
  box-shadow: inset 0 1px 0 rgba(255, 240, 190, 0.3);
}

/* === KOMUTA MERKEZİ & TABLOLU AÇIK SUNUCULAR + TEK OYUNCULU BRİFİNG === */
.cmd-panel {
  flex: 1;
  gap: 10px;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, rgba(11, 18, 28, 0.90) 0%, rgba(6, 11, 18, 0.95) 100%);
  border: 1px solid rgba(212, 175, 92, 0.36);
  border-radius: 12px;
  box-shadow: 0 24px 66px rgba(0, 0, 0, 0.74), inset 0 1px 0 rgba(250, 224, 156, 0.16);
}

.cmd-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 92, 0.2);
}

.cmd-panel-ico {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(212, 175, 92, 0.14);
  border: 1px solid rgba(212, 175, 92, 0.36);
  color: #ecc66d;
  flex-shrink: 0;
}

.cmd-panel-ico svg {
  width: 17px;
  height: 17px;
}

.cmd-panel-head h3 {
  margin: 0;
  padding: 0;
  border: none;
  font-family: Cinzel, Georgia, serif;
  font-size: 15.5px;
  letter-spacing: 0.09em;
  color: #f4e2b0;
}

.cmd-online-tag {
  margin-left: auto;
  font-size: 11px;
  color: #9ba6b2;
  white-space: nowrap;
}

/* Genel Dünyaya Katıl Altın Banner */
.cmd-global-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 9px;
  border: 1px solid #fae3a2;
  background: linear-gradient(180deg, #ecd183 0%, #cf9d3d 48%, #a2711c 100%);
  color: #170f04;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 250, 224, 0.78), 0 0 22px rgba(226, 176, 70, 0.26), 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s, filter 0.14s, box-shadow 0.16s;
}

.cmd-global-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 252, 234, 0.85), 0 0 30px rgba(238, 190, 82, 0.42), 0 10px 24px rgba(0, 0, 0, 0.52);
}

.cgb-ico {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cgb-ico svg {
  width: 26px;
  height: 26px;
  stroke: #1b1104;
}

.cmd-global-btn b {
  display: block;
  font-family: Cinzel, Georgia, serif;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #170f04;
}

.cmd-global-btn small {
  display: block;
  font-size: 11px;
  color: rgba(28, 19, 6, 0.82);
  font-weight: 500;
}

/* Segmented Oda Kur / Kodla Katıl Sekmeleri */
.cmd-seg-tabs {
  margin-top: 2px;
  gap: 0;
  background: rgba(7, 12, 19, 0.9);
  border: 1px solid rgba(212, 175, 92, 0.34);
  border-radius: 8px;
  padding: 3px;
}

.cmd-seg-tabs .ltab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 6px;
  font-family: Cinzel, Georgia, serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #b7c0ca;
  transition: background 0.14s, color 0.14s;
}

.cmd-seg-tabs .ltab:hover {
  color: #f6e4b2;
}

.cmd-seg-tabs .ltab.active {
  background: linear-gradient(180deg, #deb65c, #a47521);
  border-color: #f6dc94;
  color: #170f04;
  box-shadow: inset 0 1px 0 rgba(255, 248, 220, 0.65);
}

/* Maç Modu / Tarihsel Dönem 3'lü Kartlar */
.cmd-presets {
  gap: 7px;
  margin-top: 4px;
}

.era-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.era-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 5px;
  border: 1px solid rgba(196, 162, 92, 0.34);
  background: linear-gradient(180deg, rgba(24, 25, 32, 0.92), rgba(14, 15, 20, 0.94));
  color: #dfd5bf;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s, color 0.14s, transform 0.12s;
  text-align: center;
}

.era-btn .era-yr {
  font-family: 'Cinzel', 'Oswald', serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #e8c474;
}

.era-btn b {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.15;
}

.era-btn:hover {
  border-color: var(--gold-bright);
  color: #fff;
  transform: translateY(-1px);
}

.era-btn.active {
  background: linear-gradient(180deg, rgba(194, 148, 56, 0.44), rgba(112, 80, 22, 0.52));
  border-color: var(--gold-bright);
  color: #fff4d2;
  box-shadow: inset 0 1px 0 rgba(255, 240, 190, 0.34), 0 0 12px rgba(212, 168, 72, 0.18);
}

.era-btn.active .era-yr {
  color: #fff5d6;
}

.srv-era-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  margin-left: 5px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(212, 168, 72, 0.18);
  border: 1px solid rgba(212, 168, 72, 0.45);
  color: #f4d68c;
}

.era-lock-banner {
  margin: 6px 0;
  padding: 7px 10px;
  border-radius: 5px;
  background: rgba(180, 83, 9, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  font-size: 11.5px;
  line-height: 1.35;
}

.cmd-presets .preset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(18, 27, 38, 0.88), rgba(10, 16, 24, 0.94));
  border: 1px solid rgba(212, 175, 92, 0.24);
  color: #cfd6de;
  font-size: 12.5px;
  font-weight: 600;
}

.cmd-presets .preset-btn.active {
  background: linear-gradient(180deg, rgba(196, 150, 58, 0.26), rgba(96, 68, 20, 0.26));
  border-color: #f0c96c;
  color: #fff3cf;
  box-shadow: 0 0 14px rgba(226, 178, 72, 0.2), inset 0 1px 0 rgba(255, 240, 190, 0.35);
}

.cmd-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
  margin-top: 6px;
}

.cmd-form-grid .field-lbl {
  margin: 4px 0 4px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #b8ad94;
}

.cmd-form-grid .field-lbl small {
  text-transform: none;
  letter-spacing: 0;
  color: #828c98;
  font-weight: 400;
}

.cmd-form-grid .text-input {
  padding: 8px 10px;
  font-size: 12.5px;
  border-radius: 7px;
  background: rgba(7, 12, 19, 0.88);
  border-color: rgba(212, 175, 92, 0.26);
}

/* Gelişmiş Ayarlar Akordeonu */
.cmd-adv-toggle {
  margin-top: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 7px;
  background: rgba(8, 13, 21, 0.78);
  border: 1px solid rgba(212, 175, 92, 0.22);
  color: #c2cad3;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.14s, color 0.14s;
}

.cmd-adv-toggle:hover {
  border-color: rgba(232, 192, 98, 0.55);
  color: #f6e4b2;
}

.cmd-adv-toggle.open .adv-caret {
  transform: rotate(180deg);
}

.cmd-adv-pane {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 7px;
}

.cmd-adv-pane .text-input {
  padding: 7px 6px;
  font-size: 11.5px;
  border-radius: 6px;
}

/* Alt Altın CTA Butonu */
.cmd-cta-wrap {
  margin-top: 12px;
  text-align: center;
}

.cmd-gold-cta {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #fae3a2;
  background: linear-gradient(180deg, #ecd183 0%, #cf9d3d 48%, #a2711c 100%);
  color: #170f04;
  font-family: Cinzel, Georgia, serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 250, 224, 0.8), 0 0 22px rgba(226, 176, 70, 0.28), 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s, filter 0.14s, box-shadow 0.16s;
}

.cmd-gold-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 252, 234, 0.88), 0 0 32px rgba(238, 190, 82, 0.44), 0 10px 24px rgba(0, 0, 0, 0.52);
}

.cmd-cta-sub {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  font-style: italic;
  color: #8f9aa6;
}

.demo-toggle-pill {
  padding: 2px 9px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 92, 0.32);
  background: rgba(16, 23, 33, 0.88);
  color: #aeb6c0;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.14s, color 0.14s, background 0.14s;
}

.demo-toggle-pill:hover {
  border-color: var(--gold-bright);
  color: #f6e0a0;
}

.demo-toggle-pill.active {
  background: rgba(212, 170, 82, 0.22);
  border-color: rgba(240, 200, 108, 0.68);
  color: #fae3a2;
}

/* Sağ Taraf Paneller (Açık Sunucular & Tek Oyunculu Brifing) */
@keyframes srvPanelIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.multi-servers-panel,
.solo-preview-panel {
  flex: 1;
  min-width: 0;
  max-height: calc(100vh - 142px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, rgba(10, 17, 26, 0.88) 0%, rgba(6, 11, 18, 0.94) 100%);
  border: 1px solid rgba(212, 175, 92, 0.36);
  border-radius: 12px;
  box-shadow: 0 24px 66px rgba(0, 0, 0, 0.74), inset 0 1px 0 rgba(250, 224, 156, 0.16);
  animation: srvPanelIn 0.22s ease-out;
}

.srv-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.srv-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.srv-globe-ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e6bf64;
}

.srv-globe-ico svg {
  width: 23px;
  height: 23px;
}

.srv-panel-title h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f4e2b0;
}

.srv-cnt-pill {
  padding: 3px 10px;
  border-radius: 14px;
  background: rgba(212, 175, 92, 0.14);
  border: 1px solid rgba(212, 175, 92, 0.36);
  color: #ecd084;
  font-size: 11.5px;
  font-weight: 600;
}

.srv-refresh-btn {
  height: 32px;
  padding: 0 13px;
  border-radius: 7px;
  background: rgba(16, 24, 34, 0.88);
  border: 1px solid rgba(212, 175, 92, 0.32);
  color: #d8dee6;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.14s, color 0.14s, background 0.14s;
}

.srv-refresh-btn:hover {
  border-color: #f2cc72;
  color: #fff2cc;
  background: rgba(28, 40, 54, 0.94);
}

/* Arama & Filtre Çubuğu */
.srv-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.srv-search-wrap svg {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: #8f9ba8;
  pointer-events: none;
}

.srv-search-in {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border-radius: 8px;
  background: rgba(6, 11, 18, 0.88);
  border: 1px solid rgba(212, 175, 92, 0.24);
  color: #f2ead8;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.srv-search-in:focus {
  border-color: rgba(242, 204, 114, 0.72);
}

.srv-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.srv-filter-bar .room-filters {
  margin-bottom: 0;
  gap: 6px;
}

.srv-filter-bar .rfilt {
  padding: 5px 12px;
  border-radius: 16px;
  background: rgba(14, 21, 31, 0.88);
  border: 1px solid rgba(212, 175, 92, 0.26);
  color: #c2cad4;
  font-size: 11.5px;
  font-weight: 600;
}

.srv-filter-bar .rfilt.active {
  background: linear-gradient(180deg, #deb65c, #a47521);
  border-color: #f7de97;
  color: #170f04;
  font-weight: 700;
}

.srv-sort-sel {
  height: 30px;
  padding: 0 10px;
  border-radius: 15px;
  background: rgba(14, 21, 31, 0.9);
  border: 1px solid rgba(212, 175, 92, 0.28);
  color: #d6dde6;
  font-size: 11.5px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

/* Tablo Sütun Başlıkları & Satırlar */
.srv-table-cols {
  display: grid;
  grid-template-columns: minmax(185px, 2.1fr) minmax(114px, 130px) minmax(94px, 108px) minmax(150px, 1.45fr) 96px;
  gap: 10px;
  padding: 6px 12px 6px 14px;
  border-bottom: 1px solid rgba(212, 175, 92, 0.22);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8f9aa6;
  text-transform: uppercase;
}

.srv-cards-list {
  flex: 1;
  max-height: none;
  min-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.srv-row {
  display: grid;
  grid-template-columns: minmax(185px, 2.1fr) minmax(114px, 130px) minmax(94px, 108px) minmax(150px, 1.45fr) 96px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(16, 24, 35, 0.84), rgba(10, 15, 22, 0.90));
  border: 1px solid rgba(212, 175, 92, 0.20);
  border-left: 3px solid transparent;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.srv-row>div {
  min-width: 0;
}

.srv-row:hover {
  border-color: rgba(238, 198, 104, 0.56);
  border-left-color: #e9c264;
  background: linear-gradient(90deg, rgba(212, 168, 68, 0.12) 0%, rgba(22, 33, 47, 0.92) 45%, rgba(12, 19, 28, 0.95) 100%);
}

.srv-row.featured {
  border-color: rgba(236, 194, 98, 0.56);
  border-left: 3px solid #ecc466;
  background: linear-gradient(90deg, rgba(218, 172, 68, 0.16) 0%, rgba(20, 30, 43, 0.90) 42%, rgba(11, 17, 26, 0.94) 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.38);
}

.srv-row.mine {
  border-color: rgba(94, 226, 118, 0.65);
  border-left: 3px solid #5ee276;
  background: linear-gradient(90deg, rgba(54, 146, 78, 0.22) 0%, rgba(18, 33, 28, 0.92) 44%, rgba(10, 18, 22, 0.95) 100%);
  box-shadow: 0 6px 22px rgba(42, 148, 72, 0.24);
}

.srv-mine-tag,
.srv-priv-tag,
.srv-exp-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.srv-exp-tag {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.20);
  border: 1px solid rgba(245, 158, 11, 0.50);
  font-variant-numeric: tabular-nums;
}

.srv-exp-tag.urgent {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.28);
  border-color: rgba(248, 113, 113, 0.65);
}

.srv-mine-tag {
  color: #0b2412;
  background: linear-gradient(180deg, #86f39b, #4cc968);
}

.srv-priv-tag {
  color: #f7e4b2;
  background: rgba(212, 175, 92, 0.22);
  border: 1px solid rgba(212, 175, 92, 0.45);
}

.srv-join-btn.mine-enter {
  background: linear-gradient(180deg, #7ef096, #3bb457);
  border-color: #b7ffca;
  color: #08200f;
  font-weight: 800;
  white-space: nowrap;
}

.srv-join-btn.mine-enter:hover:not(:disabled) {
  background: linear-gradient(180deg, #98f7ad, #49c966);
  border-color: #dcffe4;
  color: #06190b;
  box-shadow: 0 0 14px rgba(94, 226, 118, 0.45);
}

.srv-cell-room {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

/* Soldaki Çerçeveli Harita Önizleme Görseli */
.srv-thumb {
  width: 66px;
  height: 44px;
  border-radius: 5px;
  flex-shrink: 0;
  background-image: url('/assets/menu-bg-new.jpg?v=5');
  background-size: 340% auto;
  background-repeat: no-repeat;
  border: 1px solid rgba(218, 178, 92, 0.46);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.62), 0 3px 8px rgba(0, 0, 0, 0.5);
}

.srv-thumb.v0 {
  background-position: 62% 38%;
}

.srv-thumb.v1 {
  background-position: 78% 58%;
}

.srv-thumb.v2 {
  background-position: 50% 62%;
}

.srv-thumb.v3 {
  background-position: 86% 24%;
}

.srv-thumb.v4 {
  background-position: 68% 78%;
}

.srv-thumb.v5 {
  background-position: 44% 26%;
}

.srv-thumb.era-ww1 {
  background-image: url('/assets/era-ww1.jpg?v=2');
  background-size: auto 100%;
  background-position: right center;
}

.srv-thumb.era-ww2 {
  background-image: url('/assets/era-ww2.jpg?v=2');
  background-size: auto 100%;
  background-position: right center;
}

.srv-thumb.era-modern {
  background-image: url('/assets/era-modern.jpg?v=2');
  background-size: auto 100%;
  background-position: right center;
}

.srv-room-text {
  min-width: 0;
}

.srv-room-name {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #f6eed9;
}

.srv-room-title-txt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srv-room-name .srv-era-tag,
.srv-room-name .srv-mine-tag,
.srv-room-name .srv-priv-tag,
.srv-room-name .srv-exp-tag,
.srv-room-name svg,
.srv-room-name .ico {
  flex-shrink: 0;
  margin-left: 0;
}

.srv-room-host {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 11.5px;
  color: #9ba6b2;
}

.srv-room-host img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Durum Hücresi & Rozeti */
.srv-cell-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}

.srv-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.srv-status-pill.lobby {
  background: rgba(188, 146, 58, 0.16);
  border: 1px solid rgba(214, 172, 78, 0.44);
  color: #edd087;
}

.srv-status-pill.live {
  background: rgba(34, 134, 72, 0.22);
  border: 1px solid rgba(74, 212, 118, 0.46);
  color: #79eb97;
}

.srv-status-pill.paused {
  background: rgba(217, 138, 34, 0.20);
  border: 1px solid rgba(245, 178, 72, 0.52);
  color: #ffd58a;
}

.srv-status-sub {
  max-width: 100%;
  padding-left: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #9ba7b4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Oyuncu Doluluğu Barı */
.srv-cell-players {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.srv-pl-num {
  font-size: 12.5px;
  font-weight: 700;
  color: #eef2f6;
  display: flex;
  align-items: center;
  gap: 5px;
}

.srv-pl-num small {
  color: #8f9ba8;
  font-weight: 500;
}

.cap-bar {
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.11);
  overflow: hidden;
}

.cap-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  transition: width 0.25s ease;
}

.cap-fill.green {
  background: linear-gradient(90deg, #2eb85c, #64ec88);
  box-shadow: 0 0 8px rgba(82, 232, 122, 0.5);
}

.cap-fill.amber {
  background: linear-gradient(90deg, #c98a1c, #f5c64f);
  box-shadow: 0 0 8px rgba(245, 198, 79, 0.45);
}

.cap-fill.red {
  background: linear-gradient(90deg, #b83730, #f0655d);
  box-shadow: 0 0 8px rgba(240, 101, 93, 0.45);
}

.cap-fill.gold {
  background: linear-gradient(90deg, #b58222, #f2ce72);
  box-shadow: 0 0 8px rgba(242, 206, 114, 0.45);
}

/* Kurallar Sütunu */
.srv-cell-rules {
  min-width: 0;
}

.srv-rules-top {
  font-size: 11.5px;
  color: #d7dee6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.srv-rules-bot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 10.5px;
  color: #8b96a4;
}

.srv-demo-badge {
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.20);
  border: 1px solid rgba(167, 139, 250, 0.40);
  color: #d8ccff;
  font-size: 9.5px;
  font-weight: 600;
}

/* Katıl / Dolu Butonu */
.srv-join-btn {
  width: 100%;
  height: 34px;
  border-radius: 7px;
  font-family: Cinzel, Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(22, 32, 45, 0.94), rgba(12, 18, 27, 0.98));
  border: 1px solid rgba(212, 175, 92, 0.46);
  color: #f0dba2;
  transition: background 0.14s, color 0.14s, border-color 0.14s, box-shadow 0.14s;
}

.srv-row.featured .srv-join-btn,
.srv-join-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #ebd082, #b98526);
  border-color: #fae4a2;
  color: #170f04;
  box-shadow: inset 0 1px 0 rgba(255, 250, 224, 0.7), 0 0 14px rgba(228, 180, 74, 0.32);
}

.srv-join-btn:disabled {
  background: rgba(25, 31, 40, 0.72);
  border-color: rgba(140, 152, 166, 0.22);
  color: #6b7685;
  cursor: not-allowed;
}

.srv-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(212, 175, 92, 0.18);
  font-size: 12px;
  color: #939ea9;
}

.srv-foot-link {
  background: none;
  border: none;
  padding: 0;
  color: #ecc66d;
  font-weight: 700;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

.srv-foot-link:hover {
  color: #fff0be;
  text-decoration: underline;
}

/* Tek Oyunculu Sağ Sefer Brifingi Kartı */
.solo-world-tag {
  font-size: 11.5px;
  color: #9faab6;
}

.solo-hero-map {
  --era-rgb: 2, 13, 23;
  --era-bg: url('/assets/era-modern.jpg?v=2');
  position: relative;
  min-height: clamp(196px, 26vh, 260px);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(218, 178, 92, 0.44);
  background-color: rgb(var(--era-rgb));
  background-image:
    linear-gradient(90deg, rgb(var(--era-rgb)) 0%, rgba(var(--era-rgb), 0.94) 30%, rgba(var(--era-rgb), 0.60) 47%, rgba(var(--era-rgb), 0.14) 61%, rgba(var(--era-rgb), 0) 71%),
    var(--era-bg);
  background-position: left center, right center;
  background-size: 100% 100%, auto 100%;
  background-repeat: no-repeat, no-repeat;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.62), 0 10px 26px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  transition: border-color 0.22s ease, background-color 0.22s ease;
}

.solo-hero-map[data-era="ww1"] {
  --era-rgb: 4, 15, 24;
  --era-bg: url('/assets/era-ww1.jpg?v=2');
  border-color: rgba(218, 168, 92, 0.52);
}

.solo-hero-map[data-era="ww2"] {
  --era-rgb: 5, 16, 23;
  --era-bg: url('/assets/era-ww2.jpg?v=2');
  border-color: rgba(206, 178, 110, 0.48);
}

.solo-hero-map[data-era="modern"] {
  --era-rgb: 2, 13, 23;
  --era-bg: url('/assets/era-modern.jpg?v=2');
  border-color: rgba(164, 198, 224, 0.46);
}

.solo-hero-overlay {
  position: relative;
  z-index: 2;
  padding: 20px 24px;
  max-width: 56%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.solo-hero-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #e6be62;
  margin-bottom: 5px;
}

.solo-hero-overlay h3 {
  margin: 0 0 7px;
  padding: 0;
  border: none;
  font-family: Cinzel, Georgia, serif;
  font-size: 21.5px;
  color: #fbf2da;
  text-transform: uppercase;
}

.solo-hero-overlay p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #cbd5e0;
}

@media (max-width: 760px) {
  .solo-hero-map {
    min-height: 176px;
    background-image:
      linear-gradient(90deg, rgba(var(--era-rgb), 0.92) 0%, rgba(var(--era-rgb), 0.74) 58%, rgba(var(--era-rgb), 0.24) 100%),
      var(--era-bg);
  }

  .solo-hero-overlay {
    max-width: 100%;
    padding: 16px 18px;
  }
}

.solo-bars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.solo-bar-card {
  padding: 12px 14px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(16, 24, 35, 0.84), rgba(10, 15, 22, 0.90));
  border: 1px solid rgba(212, 175, 92, 0.22);
}

.solo-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #9ba6b2;
}

.solo-bar-top b {
  color: #f4e6c2;
  font-size: 12.5px;
}

.solo-rules-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.solo-rule-chip {
  padding: 5px 11px;
  border-radius: 16px;
  background: rgba(16, 24, 35, 0.88);
  border: 1px solid rgba(212, 175, 92, 0.28);
  font-size: 11.5px;
  color: #dfd4bc;
  font-weight: 500;
}

.srv-foot-hint b {
  color: #f0cc72;
}

@media (max-width: 1080px) {
  .menu-screen.in-sub {
    overflow-y: auto;
    padding-top: 76px;
    padding-bottom: 72px;
  }

  .menu-screen.in-sub .menu-stage {
    flex-direction: column;
    align-items: center;
    flex: none;
  }

  .menu-box.sub-open,
  .multi-servers-panel,
  .solo-preview-panel {
    width: min(760px, 94vw);
    max-height: none;
    flex: none;
  }

  .msh-brand,
  .msh-sep {
    display: none;
  }
}

@media (max-width: 720px) {
  .srv-table-cols {
    display: none;
  }

  .srv-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
  }

  .srv-cell-room,
  .srv-cell-rules,
  .srv-cell-action {
    grid-column: 1 / -1;
  }

  .solo-bars-grid {
    grid-template-columns: 1fr;
  }
}

.room-filters {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}

.rfilt {
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(196, 162, 92, 0.32);
  background: rgba(14, 15, 19, 0.85);
  color: #c8beaa;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
}

.rfilt.active {
  background: rgba(196, 152, 62, 0.32);
  border-color: var(--gold-bright);
  color: #fff0c2;
  font-weight: 700;
}

.room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(28, 27, 30, 0.94), rgba(16, 17, 21, 0.96));
  border: 1px solid rgba(196, 162, 92, 0.26);
  margin-bottom: 6px;
}

.room-row.is-global {
  border-color: rgba(232, 192, 96, 0.6);
  background: linear-gradient(180deg, rgba(44, 37, 22, 0.92), rgba(18, 17, 16, 0.96));
}

.room-row-info {
  min-width: 0;
  flex: 1;
}

.room-row-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #f6ecd4;
  flex-wrap: wrap;
}

.room-row-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--muted);
}

.rtag {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(196, 162, 92, 0.22);
  color: #dfd4bc;
}

.rtag.wait {
  background: rgba(212, 164, 58, 0.2);
  border-color: rgba(235, 192, 82, 0.55);
  color: #ffe399;
}

.rtag.live {
  background: rgba(46, 134, 72, 0.24);
  border-color: rgba(94, 212, 128, 0.5);
  color: #9bf2b2;
}

.rtag.full {
  background: rgba(180, 42, 42, 0.25);
  border-color: rgba(235, 92, 92, 0.5);
  color: #ffa5a0;
}

.hud-speed-btn {
  height: 32px;
  min-width: 34px;
  padding: 0 6px;
  border-radius: 4px;
  cursor: pointer;
  font-family: Oswald, Inter, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f4e6c2;
  background: linear-gradient(180deg, rgba(36, 34, 30, 0.94), rgba(16, 17, 20, 0.96));
  border: 1px solid rgba(206, 170, 92, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 232, 175, 0.14), 0 2px 6px rgba(0, 0, 0, 0.55);
  transition: border-color 0.14s, background 0.14s;
  flex-shrink: 0;
}

.hud-speed-btn:hover {
  border-color: #ffe294;
  background: linear-gradient(180deg, rgba(84, 64, 28, 0.92), rgba(44, 32, 14, 0.96));
}

.hud-speed-btn.fast {
  border-color: #f3c65d;
  color: #ffe7a3;
  background: linear-gradient(180deg, rgba(132, 92, 24, 0.82), rgba(74, 48, 12, 0.9));
}

.sub-sfx-btn,
.sub-lang-btn {
  width: 34px;
  min-width: 34px;
  height: 31px;
  padding: 0;
  gap: 0;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.sub-lang-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #f0dca4;
}

.sub-sfx-btn::before,
.sub-lang-btn::before {
  display: none;
}

.sub-sfx-btn.muted {
  opacity: 0.52;
  filter: grayscale(0.8);
}

@media (max-width: 1420px) {
  #hud {
    gap: 7px;
    padding: 0 9px;
  }

  .hud-country {
    max-width: 156px;
  }

  .hud-stats {
    gap: 6px;
  }

  .stat {
    gap: 5px;
  }

  .hud-res {
    gap: 8px;
  }

  .hud-res span {
    gap: 3px;
  }

  .hud-day {
    padding: 0 8px;
    gap: 5px;
  }
}

.lobby-banner {
  position: fixed;
  top: 102px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 28;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid rgba(235, 195, 96, 0.72);
  background: linear-gradient(180deg, rgba(34, 29, 20, 0.97), rgba(16, 16, 19, 0.98));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
  flex-wrap: wrap;
}

.lb-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.lb-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.room-modal-card {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
}

.room-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.room-host-box {
  background: rgba(188, 144, 56, 0.12);
  border: 1px solid rgba(224, 184, 92, 0.42);
  border-radius: 5px;
  padding: 8px 10px;
  margin: 6px 0;
}

.room-players-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  max-height: 290px;
  margin-top: 4px;
}

.rp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 4px;
  background: rgba(12, 13, 17, 0.78);
  border: 1px solid rgba(196, 162, 92, 0.22);
  font-size: 12.5px;
}

.rp-row.is-me {
  border-color: rgba(235, 192, 92, 0.62);
  background: rgba(212, 168, 72, 0.12);
}

.rp-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.rp-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nuke-req-box {
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 4px;
  background: rgba(20, 22, 28, 0.85);
  border: 1px solid rgba(212, 170, 82, 0.34);
  font-size: 11.5px;
}

.nuke-req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 5px;
}

.nuke-req-item {
  padding: 3px 5px;
  border-radius: 3px;
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 110, 90, 0.35);
  color: #ffb8ac;
  text-align: center;
}

.nuke-req-item.ok {
  border-color: rgba(102, 214, 130, 0.5);
  background: rgba(46, 120, 66, 0.2);
  color: #9ff5b6;
}

.supply-warn-bar {
  margin: 6px 0;
  padding: 6px 9px;
  border-radius: 4px;
  font-size: 11.5px;
  background: rgba(168, 82, 22, 0.24);
  border: 1px solid rgba(245, 158, 11, 0.58);
  color: #fde68a;
}

.gameover-card {
  width: min(500px, calc(100vw - 24px));
  text-align: center;
}

.go-winner {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 6px 0 12px;
}

.go-awards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 10px 0 12px;
  text-align: left;
}

.go-award {
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(12, 13, 17, 0.8);
  border: 1px solid rgba(196, 162, 92, 0.32);
}

.go-award small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.go-award b {
  display: block;
  font-size: 13px;
  color: #f6ecd4;
  margin-top: 2px;
}

.go-award span {
  font-size: 11px;
  color: var(--gold);
}

/* === KOMPAKT 3 MODLU SAVAŞ PLANI MENÜSÜ === */
.plan-toggle-btn {
  background: linear-gradient(180deg, rgba(48, 38, 28, 0.94), rgba(24, 21, 20, 0.96));
  border-color: rgba(212, 174, 94, 0.55);
  color: #f6e7c1;
}

.plan-toggle-btn.active-defend {
  background: linear-gradient(180deg, rgba(38, 92, 152, 0.92), rgba(22, 54, 96, 0.96));
  border-color: #6ab7ff;
  color: #e6f4ff;
  box-shadow: 0 0 10px rgba(72, 162, 255, 0.38);
}

.plan-toggle-btn.active-advance {
  background: linear-gradient(180deg, rgba(162, 42, 36, 0.94), rgba(96, 22, 20, 0.96));
  border-color: #ff8c66;
  color: #fff0e6;
  box-shadow: 0 0 12px rgba(255, 92, 62, 0.45);
}

.plan-bar {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 23;
  width: min(455px, calc(100vw - 24px));
  padding: 7px 9px 8px;
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.97), rgba(13, 14, 18, 0.98));
  border: 1px solid rgba(212, 174, 94, 0.62);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 229, 160, 0.15);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.plan-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: Cinzel, Oswald, serif;
  font-size: 11.5px;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
}

.plan-x {
  padding: 2px 7px !important;
  min-width: 0;
  font-size: 11px;
}

.plan-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 7px;
  padding: 2px;
  border-radius: 5px;
  background: rgba(8, 9, 12, 0.72);
  border: 1px solid rgba(212, 174, 94, 0.22);
}

.ptab {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.ptab:hover {
  color: #f4e6c2;
  background: rgba(212, 174, 94, 0.1);
}

.ptab.active {
  background: linear-gradient(180deg, rgba(186, 144, 58, 0.34), rgba(112, 82, 24, 0.42));
  border-color: rgba(236, 195, 92, 0.65);
  color: #fff6dc;
  box-shadow: inset 0 1px 0 rgba(255, 236, 176, 0.24);
}

.plan-pane-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.plan-sel {
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 7px;
  font-size: 11.5px;
}

.plan-count {
  flex: 1 1 auto;
  font-size: 11.5px;
  font-weight: 600;
  color: #9dd4ff;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(46, 102, 168, 0.2);
  border: 1px solid rgba(106, 183, 255, 0.32);
}

.plan-live-pill {
  font-size: 11px;
  font-weight: 600;
  color: #ffe39b;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(196, 146, 44, 0.24);
  border: 1px solid rgba(236, 195, 92, 0.55);
  white-space: nowrap;
}

.plan-sub-note {
  font-size: 10.5px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}

.plan-pane .btn.order-on {
  box-shadow: 0 0 10px rgba(255, 210, 110, 0.4), inset 0 0 0 1px rgba(255, 244, 200, 0.65);
  filter: brightness(1.12);
}

.plan-hint {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.32;
}

.demand-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 700;
  vertical-align: middle;
}

.demand-tag.hot {
  background: rgba(239, 68, 68, 0.24);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fca5a5;
}

.demand-tag.mid {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

@media (max-width: 1024px) {
  .plan-bar {
    bottom: 106px;
  }
}

/* === HAZİNE BÜTÇE POPOVER, FISILTI & MOBİL ENTEGRASYON === */
.stat-clickable {
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 5px;
  transition: background 0.14s;
}

.stat-clickable:hover {
  background: rgba(212, 174, 94, 0.16);
}

.budget-popover {
  position: fixed;
  top: 52px;
  left: 168px;
  width: 248px;
  max-width: calc(100vw - 20px);
  z-index: 36;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.98), rgba(12, 13, 17, 0.99));
  border: 1px solid rgba(212, 174, 94, 0.65);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85);
}

.bp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.chat-to-sel {
  max-width: 108px;
  background: rgba(16, 18, 24, 0.95);
  color: #e2e8f0;
  border: 1px solid rgba(196, 162, 92, 0.35);
  border-radius: 3px;
  font-size: 11px;
  padding: 3px 4px;
  flex-shrink: 0;
}

#feedList .ev.whisper {
  background: rgba(109, 40, 217, 0.22);
  border-left: 2px solid #c084fc;
  padding: 2px 5px;
  border-radius: 3px;
  color: #f3e8ff;
}

#feedList .ev.whisper .who {
  color: #d8b4fe;
}

.ev-filters {
  display: flex;
  gap: 4px;
  padding: 4px 0 5px;
  border-bottom: 1px solid rgba(196, 162, 92, 0.16);
  margin-bottom: 3px;
}

.ev-filters.hidden {
  display: none;
}

.efilt {
  flex: 1;
  background: rgba(16, 18, 24, 0.85);
  border: 1px solid rgba(196, 162, 92, 0.24);
  color: #bfb59b;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.efilt:hover {
  color: #f8f0dc;
  border-color: rgba(238, 208, 128, 0.55);
}

.efilt.active {
  background: rgba(184, 143, 59, 0.34);
  border-color: #eed080;
  color: #fff6db;
}

#feedList .ev.cat-critical {
  background: rgba(185, 28, 28, 0.24);
  border-left: 2px solid #f87171;
  padding: 3px 6px;
  border-radius: 3px;
  color: #fee2e2;
  font-weight: 500;
}

#feedList .ev.cat-trade {
  background: rgba(161, 98, 7, 0.18);
  border-left: 2px solid #facc15;
  padding: 3px 6px;
  border-radius: 3px;
  color: #fef9c3;
}

#feedList .ev.cat-mine {
  border-left: 2px solid #38bdf8;
  padding-left: 5px;
}

.syn-box {
  margin-top: 7px;
  padding: 6px 7px;
  background: rgba(14, 18, 24, 0.72);
  border: 1px solid rgba(74, 222, 128, 0.24);
  border-radius: 4px;
}

.syn-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #bbf7d0;
  margin-bottom: 5px;
}

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

.syn-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px 2px !important;
  font-size: 10.5px !important;
  line-height: 1.15;
}

.syn-btn span {
  font-weight: 700;
  color: #86efac;
}

.syn-btn small {
  font-size: 9px;
  color: #d6c8a8;
}

/* Sol alt köşe: kompakt yönetilen ülke kartı (sol çekmece açılınca gizlenir) */
.country-corner-card {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 23;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 8px;
  background: linear-gradient(180deg, rgba(28, 27, 26, 0.96) 0%, rgba(13, 14, 18, 0.96) 100%);
  border: 1px solid rgba(214, 178, 100, 0.62);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 229, 160, 0.16);
  cursor: pointer;
  max-width: 220px;
  transition: transform 0.14s ease, border-color 0.14s ease, opacity 0.16s ease;
}

.country-corner-card:hover {
  border-color: rgba(246, 214, 128, 0.92);
  transform: translateY(-1px);
}

.country-corner-card.hidden {
  display: none !important;
}

.country-corner-card .hud-flag-box {
  width: 38px;
  height: 26px;
}

.country-corner-card .hud-cname {
  font-size: 13.5px;
  max-width: 148px;
}

.country-corner-card .hud-sub-lbl {
  font-size: 9.5px;
}

.hud-gear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 5px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(42, 39, 34, 0.96), rgba(20, 21, 25, 0.98));
  border: 1px solid rgba(212, 174, 94, 0.52);
  color: #f0d797;
  box-shadow: inset 0 1px 0 rgba(255, 232, 175, 0.14);
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, color 0.15s;
}

.hud-gear-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s ease;
}

.hud-gear-btn:hover {
  border-color: #f5d476;
  color: #fff6db;
  background: linear-gradient(180deg, rgba(66, 56, 36, 0.96), rgba(32, 28, 22, 0.98));
}

.hud-gear-btn.open svg {
  transform: rotate(60deg);
}

.hud-settings-pop {
  position: fixed;
  top: 58px;
  right: 12px;
  width: 268px;
  padding: 12px 13px;
  z-index: 42;
  background: linear-gradient(180deg, rgba(25, 25, 29, 0.98), rgba(13, 14, 18, 0.99));
  border: 1px solid rgba(214, 176, 98, 0.62);
  border-radius: 7px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 232, 175, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-settings-pop.hidden {
  display: none !important;
}

.hud-settings-pop .msp-head {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #e7c87d;
  border-bottom: 1px solid rgba(206, 170, 92, 0.25);
  padding-bottom: 6px;
  margin-bottom: 2px;
}

.hud-settings-pop .msp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #e5dcc8;
}

.hsp-btn {
  min-width: 108px;
  justify-content: center;
  font-size: 11.5px !important;
  padding: 4px 9px !important;
  white-space: nowrap;
}

.hsp-div {
  height: 1px;
  background: rgba(206, 170, 92, 0.24);
  margin: 2px 0;
}

.hsp-home-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px !important;
  font-size: 12px !important;
}

#hud {
  z-index: 26;
}

.left-dock {
  z-index: 23;
}

@media (max-width: 1360px) {
  #hud {
    gap: 6px;
    padding: 0 8px;
  }

  .hud-stats {
    gap: 5px;
  }

  .hud-res {
    gap: 6px;
  }

  .hud-right {
    gap: 4px;
  }
}

@media (max-width: 900px) {
  .country-corner-card {
    display: none !important;
  }
}

.mobile-only-btn {
  display: none;
}

@media (hover: none),
(pointer: coarse),
(max-width: 900px) {
  .mobile-only-btn {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  #hud {
    height: auto;
    min-height: 44px;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 4px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #hud::-webkit-scrollbar {
    display: none;
  }

  .hud-brand .hud-sub-lbl,
  .hud-sep,
  .stat-div,
  #hudRes {
    display: none !important;
  }

  .hud-country {
    min-width: auto;
    flex-shrink: 0;
  }

  .hud-cname {
    font-size: 12.5px;
    max-width: 92px;
  }

  .hud-stats {
    gap: 7px;
    flex-shrink: 0;
  }

  .hud-stats .stat {
    font-size: 11.5px;
    gap: 3px;
  }

  .hud-right {
    margin-left: auto;
    gap: 4px;
    flex-shrink: 0;
  }

  .hud-pause-btn {
    padding: 4px 7px !important;
    font-size: 11px !important;
  }

  .hud-day {
    font-size: 11px;
    padding: 3px 6px;
  }

  #hudSub {
    top: 46px;
    left: 6px;
    right: 6px;
    transform: none;
    width: auto;
    max-width: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    flex-wrap: nowrap;
    padding: 3px 6px;
    gap: 5px;
    scrollbar-width: none;
  }

  #hudSub::-webkit-scrollbar {
    display: none;
  }

  #hudSub .view-tabs,
  #hudSub .hud-actions {
    flex-shrink: 0;
  }

  #hudSub .vtab {
    padding: 4px 8px;
    gap: 4px;
    font-size: 11px;
    flex-shrink: 0;
  }

  #hudSub .sub-btn {
    padding: 4px 7px;
    font-size: 11px;
    flex-shrink: 0;
  }

  #railOpenPill {
    top: 86px;
    left: 8px;
    padding: 7px 11px;
    font-size: 12px;
  }

  .left-dock {
    top: 84px;
    left: 6px;
    right: 6px;
    bottom: 62px;
    flex-direction: column;
    gap: 6px;
  }

  #leftRail {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 3px 4px;
    gap: 3px;
    scrollbar-width: none;
  }

  #leftRail::-webkit-scrollbar {
    display: none;
  }

  .rail-btn {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 8px;
    min-width: 56px;
    border-bottom: none;
    border-radius: 4px;
    flex-shrink: 0;
  }

  .rail-btn small {
    font-size: 10px;
  }

  .rail-min {
    flex-shrink: 0;
    padding: 4px 8px;
  }

  #leftDrawer,
  #leftDrawer.wide {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 54vh;
    margin-top: auto;
    border-radius: 10px 10px 6px 6px;
  }

  #ratio {
    left: 6px;
    right: 6px;
    bottom: 6px;
    transform: none;
    width: auto;
    max-width: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 5px;
    padding: 5px 7px;
    scrollbar-width: none;
  }

  #ratio::-webkit-scrollbar {
    display: none;
  }

  #ratio .ratio-lbl,
  #ratio .h-ico {
    display: none;
  }

  #ratioRange {
    width: 68px;
    flex-shrink: 0;
  }

  .ratio-sel {
    max-width: 112px;
    font-size: 11px;
    padding: 4px 5px;
    flex-shrink: 0;
  }

  #ratio .btn {
    padding: 5px 8px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  #feed {
    right: 6px;
    bottom: 58px;
    width: min(290px, calc(100vw - 12px)) !important;
    max-height: 36vh;
  }

  #feed.collapsed {
    width: auto !important;
  }

  .plan-bar {
    bottom: 58px;
    width: calc(100vw - 12px);
  }

  #requests {
    top: 86px;
    right: 6px;
    left: 6px;
    max-width: none;
  }

  .budget-popover {
    top: 48px;
    left: 8px;
  }

  #tooltip {
    display: none !important;
  }

  .pick-panel {
    width: calc(100vw - 16px) !important;
    max-height: 70vh;
  }

  .menu-stage,
  .menu-box.sub-open {
    flex-direction: column !important;
    overflow-y: auto;
    max-height: calc(100vh - 96px);
  }
}

/* ==================== MERKEZİ SVG İKON SİSTEMİ ==================== */
.s-ico {
  width: 1.08em;
  height: 1.08em;
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
  pointer-events: none;
}

.flag-svg {
  width: 1.38em;
  min-width: 1.38em;
  height: 1.02em;
  min-height: 1.02em;
  display: inline-block;
  vertical-align: -0.16em;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 0 0.7px rgba(255, 240, 200, 0.24);
  flex-shrink: 0;
  pointer-events: none;
}

.hud-flag .flag-svg,
.flag-svg.hud-flag-svg {
  width: 28px;
  min-width: 28px;
  height: 21px;
  min-height: 21px;
  vertical-align: middle;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(226, 190, 108, 0.42);
}

.puppet-flag-btn .s-ico,
.puppet-flag-btn .flag-svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.menu-btn b {
  white-space: nowrap;
}

.menu-btn .m-ico-svg {
  width: 22px;
  height: 22px;
  color: var(--gold-bright);
}

#chatGhostBtn.active {
  color: var(--gold-bright);
  border-color: rgba(228, 191, 107, 0.58);
  background: rgba(228, 191, 107, 0.16);
}

#feed.ghost-mode {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none;
}

#feed.ghost-mode .chat-resize,
#feed.ghost-mode .feed-head>span,
#feed.ghost-mode #chatSizeBtn,
#feed.ghost-mode #chatToggleBtn,
#feed.ghost-mode #feedTabs,
#feed.ghost-mode #eventFilters {
  display: none !important;
}

#feed.ghost-mode .feed-head {
  background: transparent;
  border: none;
  padding: 0 2px 4px 0;
  justify-content: flex-end;
  cursor: default;
  pointer-events: none;
}

#feed.ghost-mode #chatGhostBtn {
  pointer-events: auto;
  background: rgba(10, 12, 16, 0.42);
  border: 1px solid rgba(228, 191, 107, 0.34);
  color: rgba(244, 216, 140, 0.85);
  backdrop-filter: blur(2px);
}

#feed.ghost-mode #chatGhostBtn:hover {
  background: rgba(16, 18, 24, 0.72);
  border-color: rgba(244, 216, 140, 0.72);
  color: #fff3d1;
}

#feed.ghost-mode .feed-content {
  background: transparent;
  padding: 0;
}

#feed.ghost-mode #feedList {
  padding-right: 2px;
  pointer-events: auto;
}

#feed.ghost-mode #feedList .ev {
  background: rgba(10, 12, 16, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 4px 7px;
  margin-bottom: 4px;
  backdrop-filter: blur(2px);
}

#feed.ghost-mode #feedList .ev.cat-critical {
  background: rgba(54, 14, 14, 0.70);
  border-color: rgba(239, 68, 68, 0.34);
}

#feed.ghost-mode #feedList .ev.cat-trade {
  background: rgba(38, 28, 10, 0.68);
  border-color: rgba(234, 179, 8, 0.30);
}

#feed.ghost-mode #chatForm {
  pointer-events: auto;
}

#feed.ghost-mode #chatForm input,
#feed.ghost-mode .chat-to-sel {
  background: rgba(10, 12, 16, 0.68);
}

.menu-ver-pill {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1c1509;
  background: linear-gradient(180deg, #f5d887, #c89d42);
  border: 1px solid rgba(255, 241, 194, 0.55);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.menu-btn .btn-head-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.menu-ver-foot {
  font-family: Oswald, Inter, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(228, 191, 107, 0.12);
  border: 1px solid rgba(228, 191, 107, 0.32);
  border-radius: 4px;
  padding: 1px 6px;
  cursor: pointer;
}

.menu-ver-foot:hover {
  background: rgba(228, 191, 107, 0.24);
  color: #fff3d1;
}

/* ==================== GÜNCELLEME NOTLARI (PARŞÖMEN SÜRÜM DEFTERİ) ==================== */
.cl-shell {
  max-width: 820px;
}

.cl-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cl-ver-card {
  background: rgba(94, 66, 30, 0.08);
  border: 1px solid rgba(110, 78, 36, 0.28);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 248, 228, 0.45);
}

.cl-ver-card.cl-latest {
  background: linear-gradient(180deg, rgba(164, 118, 42, 0.14), rgba(94, 66, 30, 0.07));
  border-color: rgba(145, 98, 28, 0.52);
}

.cl-ver-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(110, 78, 36, 0.22);
}

.cl-badge-ver {
  font-family: Oswald, Cinzel, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  border-radius: 4px;
  background: #2b2013;
  color: #f6dc96;
  border: 1px solid rgba(201, 154, 66, 0.6);
}

.cl-ver-card.cl-latest .cl-badge-ver {
  background: linear-gradient(180deg, #9a2434, #6e1522);
  color: #fff3d4;
  border-color: rgba(236, 198, 108, 0.72);
}

.cl-ver-title {
  font-family: Cinzel, Georgia, serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #2b1d0e;
  margin: 0;
}

.cl-ver-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #6b4c24;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cl-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.6px;
  line-height: 1.48;
  color: #2c2012;
}

.cl-list li b {
  color: #1f1408;
}

.cl-pill {
  flex-shrink: 0;
  font-family: Oswald, Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  margin-top: 2px;
  min-width: 64px;
  text-align: center;
}

.cl-pill.add {
  background: rgba(28, 118, 66, 0.16);
  color: #145a32;
  border: 1px solid rgba(28, 118, 66, 0.36);
}

.cl-pill.imp {
  background: rgba(164, 108, 22, 0.16);
  color: #7c4d08;
  border: 1px solid rgba(164, 108, 22, 0.38);
}

.cl-pill.rem {
  background: rgba(164, 38, 38, 0.14);
  color: #7f1d1d;
  border: 1px solid rgba(164, 38, 38, 0.34);
}

/* Ana Menü Sağ Üst Ses Ayarı Butonu & Mikser Popover */
.menu-vol-btn {
  width: auto !important;
  padding: 0 9px !important;
  gap: 5px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.menu-vol-btn.muted {
  opacity: 0.55;
}

.menu-vol-pop {
  right: 52px;
  min-width: 224px;
}

.mvol-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 2px;
}

.mvol-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #ddd4c2;
}

.mvol-row b {
  font-family: Oswald, Inter, sans-serif;
  color: var(--gold-bright);
  font-size: 12.5px;
}

.mvol-slider {
  width: 100%;
  accent-color: #e4bf6b;
  cursor: pointer;
  height: 5px;
}


/* ================= v3.0: İmparatorluk Kurma & Zaman Çizelgesi ================= */
.empire-section {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(212, 175, 95, 0.24);
}

.empire-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.empire-card {
  background: linear-gradient(160deg, rgba(24, 21, 16, 0.94), rgba(14, 15, 20, 0.96));
  border: 1px solid rgba(212, 175, 95, 0.26);
  border-radius: 6px;
  padding: 8px 9px;
  margin-bottom: 7px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.empire-card:hover,
.empire-card.previewing {
  border-color: rgba(244, 208, 111, 0.78);
  box-shadow: 0 0 0 1px rgba(244, 208, 111, 0.28), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.empire-card.ready {
  border-color: rgba(74, 222, 128, 0.7);
  background: linear-gradient(160deg, rgba(16, 36, 24, 0.92), rgba(13, 18, 16, 0.96));
}

.empire-card.forming {
  border-color: rgba(250, 204, 21, 0.85);
  background: linear-gradient(160deg, rgba(44, 34, 12, 0.94), rgba(18, 16, 12, 0.96));
}

.empire-card.formed {
  border-color: rgba(244, 208, 111, 0.9);
  background: linear-gradient(160deg, rgba(52, 38, 14, 0.95), rgba(22, 17, 12, 0.98));
  box-shadow: 0 0 18px rgba(244, 208, 111, 0.18);
}

.empire-card.locked {
  opacity: 0.56;
}

.empire-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.empire-top .flag-svg {
  width: 30px;
  height: 20px;
  border-radius: 3px;
  border: 1px solid rgba(244, 208, 111, 0.45);
  flex-shrink: 0;
}

.empire-title-wrap {
  flex: 1;
  min-width: 0;
}

.empire-name {
  font-family: Cinzel, Oswald, serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #f8ecd0;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.empire-meta {
  font-size: 10.5px;
  color: #b7ad97;
  margin-top: 2px;
}

.empire-desc {
  font-size: 11px;
  color: #c9bfa9;
  line-height: 1.35;
  margin: 5px 0 6px;
}

.empire-buffs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 7px;
}

.empire-buff-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(244, 208, 111, 0.12);
  border: 1px solid rgba(244, 208, 111, 0.34);
  color: #f6dc93;
}

.empire-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.empire-actions .btn {
  flex: 1;
}

.empire-actions .emp-pin-btn {
  flex: 0 0 auto;
  padding: 5px 8px;
}

.empire-prog-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 6px 0 4px;
}

.empire-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #d97706, #facc15, #fef08a);
  transition: width 0.25s ease;
}

.go-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

/* Tam Ekran Zaman Çizelgesi Oynatıcısı */
.tl-overlay {
  position: fixed;
  inset: 0;
  z-index: 980;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 18px 18px;
}

.tl-overlay.hidden {
  display: none !important;
}

.tl-top {
  position: relative;
  pointer-events: auto;
  align-self: center;
  width: min(760px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: linear-gradient(180deg, rgba(14, 15, 20, 0.90), rgba(14, 15, 20, 0.80));
  border: 1px solid rgba(226, 189, 107, 0.45);
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.tl-top-hide {
  position: absolute;
  top: 7px;
  right: 9px;
  padding: 3px 8px;
  font-size: 11px;
  opacity: 0.88;
}

.tl-mini-date {
  font-family: Cinzel, Oswald, serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #f6d57a;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(212, 174, 94, 0.14);
  border: 1px solid rgba(212, 174, 94, 0.36);
  white-space: nowrap;
}

.defeat-card {
  border-color: rgba(220, 72, 66, 0.65);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 28px rgba(185, 36, 36, 0.25);
}

.defeat-card h1 {
  color: #fca5a5;
}

.tl-day-pill {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tl-kicker {
  font-family: Oswald, Inter, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: #c6b68d;
}

.tl-day-pill b {
  font-family: Cinzel, Oswald, serif;
  font-size: 22px;
  color: #f6d57a;
  letter-spacing: 0.05em;
}

.tl-day-pill small {
  font-family: Oswald, Inter, sans-serif;
  font-size: 12px;
  color: #a89f8d;
}

.tl-headline {
  font-size: 12.5px;
  color: #f3ebd9;
  text-align: center;
  min-height: 18px;
  font-weight: 500;
}

.tl-top-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.tl-power-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(226, 189, 107, 0.24);
  font-size: 11px;
  color: #ede4d1;
}

.tl-power-chip .swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

.tl-power-chip b {
  color: #f4d06f;
  font-family: Oswald, Inter, sans-serif;
}

.tl-bot {
  pointer-events: auto;
  align-self: center;
  width: min(920px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(15, 16, 22, 0.94), rgba(11, 12, 16, 0.96));
  border: 1px solid rgba(226, 189, 107, 0.48);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.tl-ctrl-left,
.tl-ctrl-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tl-scrub-wrap {
  flex: 1;
  min-width: 80px;
  display: flex;
  align-items: center;
}

.tl-scrub {
  width: 100%;
  accent-color: #f4d06f;
  cursor: pointer;
  height: 6px;
}

.tl-speeds {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(226, 189, 107, 0.25);
  border-radius: 6px;
  overflow: hidden;
}

.tl-spd {
  border: 0;
  background: transparent;
  color: #b7ad97;
  padding: 5px 8px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 11.5px;
  cursor: pointer;
}

.tl-spd.active {
  background: rgba(244, 208, 111, 0.24);
  color: #fce7a8;
  font-weight: 700;
}

@media (max-width: 720px) {
  .tl-bot {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
  }

  .tl-scrub-wrap {
    order: -1;
    flex-basis: 100%;
  }

  .tl-day-pill b {
    font-size: 17px;
  }
}

/* ---------- v4.3: Çok Oyunculu Canlı Oyuncu Listesi HUD & Yüzer Panel ---------- */
.mp-btn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #64748b;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.mp-btn-dot.on {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.75);
}

.mp-btn-dot.warn {
  background: #f87171;
  box-shadow: 0 0 9px rgba(248, 113, 113, 0.85);
  animation: mpDotPulse 1.4s ease-in-out infinite;
}

@keyframes mpDotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.48;
    transform: scale(0.84);
  }
}

.mp-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(196, 154, 68, 0.34), rgba(114, 84, 28, 0.44));
  border: 1px solid rgba(235, 198, 115, 0.52);
  color: #fff4d6;
  font-family: Oswald, Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mp-cnt.warn {
  background: linear-gradient(180deg, #b8332e, #7c1c19);
  border-color: rgba(255, 195, 160, 0.65);
  color: #fff;
}

#hudPlayersBtn.has-offline {
  background: linear-gradient(180deg, rgba(120, 32, 28, 0.88), rgba(66, 18, 18, 0.95));
  border-color: #f59e0b;
  color: #fff2dc;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 224, 175, 0.22);
}

.mp-players-panel {
  position: fixed;
  top: 96px;
  right: 12px;
  width: 316px;
  max-width: calc(100vw - 24px);
  max-height: min(440px, calc(100vh - 220px));
  z-index: 34;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 11px;
  background: linear-gradient(180deg, rgba(22, 23, 28, 0.96), rgba(12, 13, 17, 0.98));
  border: 1px solid rgba(212, 174, 94, 0.58);
  border-radius: 7px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 232, 175, 0.14);
}

.mpp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(196, 162, 92, 0.22);
}

.mpp-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.mpp-title-wrap b {
  font-family: Cinzel, Oswald, serif;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

.mpp-count {
  font-family: Oswald, Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9px;
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}

.mpp-count.warn {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(248, 113, 113, 0.62);
  color: #fecaca;
}

.mpp-head-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.mpp-sub {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 2px;
}

.mpp-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  padding-right: 2px;
}

.mpp-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 5px;
  background: rgba(10, 11, 15, 0.78);
  border: 1px solid rgba(196, 162, 92, 0.20);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mpp-row.is-me {
  border-color: rgba(235, 192, 92, 0.56);
  background: rgba(212, 168, 72, 0.11);
}

.mpp-row.is-offline {
  border-color: rgba(248, 113, 113, 0.48);
  background: rgba(127, 29, 29, 0.20);
}

.mpp-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mpp-who {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12.5px;
}

.mpp-who b {
  color: #f6eedb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpp-status {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 9px;
  flex-shrink: 0;
  white-space: nowrap;
}

.mpp-status.on {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: #6ee7b7;
}

.mpp-status.dc {
  background: rgba(245, 158, 11, 0.20);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fde68a;
}

.mpp-status.left {
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.58);
  color: #fecaca;
}

.mpp-row-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
}

.mpp-country-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 1px 3px;
  margin: -1px -3px;
  border-radius: 4px;
  color: #e6dcc4;
  font-size: 11.5px;
  cursor: pointer;
  text-align: left;
}

.mpp-country-btn:hover {
  background: rgba(212, 174, 94, 0.14);
  color: #fff;
}

.mpp-country-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpp-provs {
  color: var(--muted);
  font-size: 10.5px;
  flex-shrink: 0;
}

.mpp-acts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.mpp-cd {
  font-family: Oswald, Inter, sans-serif;
  font-size: 10.5px;
  color: #fca5a5;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.32);
}

.mpp-mini-btn {
  border: 1px solid rgba(196, 162, 92, 0.32);
  background: rgba(24, 26, 32, 0.85);
  color: #e2d8c0;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10.5px;
  cursor: pointer;
  line-height: 1.25;
}

.mpp-mini-btn:hover {
  border-color: var(--gold-bright);
  color: #fff;
}

.mpp-mini-btn.danger {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(127, 29, 29, 0.55);
  color: #fee2e2;
}

.mpp-mini-btn.danger:hover {
  background: rgba(185, 28, 28, 0.8);
}

@media (max-width: 720px) {
  .mp-players-panel {
    top: 108px;
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
  }
}

/* ---------- v4.4: Aşamalı Sefer Başlatma & Yükleme Ekranı ---------- */
.loading-overlay {
  background: radial-gradient(circle at 50% 42%, rgba(16, 20, 29, 0.88), rgba(5, 7, 11, 0.96));
  z-index: 95;
  padding: 16px;
}

.loading-card {
  position: relative;
  width: 470px;
  max-width: calc(100vw - 28px);
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(224, 185, 102, 0.56);
  background: linear-gradient(180deg, rgba(18, 21, 28, 0.98), rgba(10, 12, 17, 0.99));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 224, 152, 0.08) inset;
}

.ld-banner {
  position: relative;
  height: 112px;
  background-color: #0b111c;
  background-image: url('/assets/era-modern.jpg?v=2');
  background-size: cover;
  background-position: center 45%;
  border-bottom: 1px solid rgba(212, 174, 94, 0.34);
}

.loading-card[data-era="ww1"] .ld-banner {
  background-image: url('/assets/era-ww1.jpg?v=2');
}

.loading-card[data-era="ww2"] .ld-banner {
  background-image: url('/assets/era-ww2.jpg?v=2');
}

.loading-card[data-era="modern"] .ld-banner {
  background-image: url('/assets/era-modern.jpg?v=2');
}

.ld-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.25) 0%, rgba(14, 17, 24, 0.96) 100%);
}

.ld-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 26px 24px;
  margin-top: -42px;
}

.ld-crest-wrap {
  position: relative;
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.ld-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.ld-ring-outer {
  border: 2px solid rgba(218, 178, 92, 0.20);
  border-top-color: #f4d06f;
  border-right-color: rgba(244, 208, 111, 0.58);
  animation: ldSpin 1.35s linear infinite;
  box-shadow: 0 0 18px rgba(244, 208, 111, 0.22);
}

.ld-ring-inner {
  inset: 7px;
  border: 1.5px dashed rgba(218, 178, 92, 0.38);
  animation: ldSpinRev 4.5s linear infinite;
}

@keyframes ldSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ldSpinRev {
  to {
    transform: rotate(-360deg);
  }
}

.ld-crest {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85));
}

.ld-kicker {
  font-family: Oswald, Inter, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: #d9b66a;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.ld-title {
  margin: 0;
  font-family: Cinzel, Oswald, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fbf3de;
}

.ld-phase {
  margin: 6px 0 14px;
  font-size: 13px;
  color: #cbd5e1;
  min-height: 18px;
}

.ld-progress-wrap {
  width: 100%;
  margin-bottom: 12px;
}

.ld-progress-track {
  position: relative;
  width: 100%;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 174, 94, 0.28);
}

.ld-progress-fill {
  position: relative;
  height: 100%;
  width: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b88a32 0%, #f4d06f 55%, #ffe9a8 100%);
  box-shadow: 0 0 14px rgba(244, 208, 111, 0.55);
  transition: width 0.35s ease;
}

.ld-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.42) 50%, transparent 100%);
  animation: ldShimmer 1.4s ease-in-out infinite;
}

@keyframes ldShimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.ld-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 11.5px;
  color: #9ca3af;
}

.ld-pct {
  color: #f4d06f;
  font-weight: 700;
}

.ld-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  margin-bottom: 12px;
}

.ld-step {
  padding: 4px 5px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #7c8496;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.ld-step.active {
  color: #fce7a8;
  background: rgba(212, 174, 94, 0.16);
  border-color: rgba(244, 208, 111, 0.58);
}

.ld-step.done {
  color: #86efac;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.44);
}

.ld-wait-hint {
  width: 100%;
  padding: 7px 10px;
  margin-bottom: 11px;
  border-radius: 5px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(251, 191, 36, 0.36);
}

.ld-tip-box {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  background: rgba(8, 10, 15, 0.72);
  border: 1px solid rgba(196, 162, 92, 0.22);
  text-align: left;
}

.ld-tip-lbl {
  display: inline-block;
  font-family: Oswald, Inter, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #d9b66a;
  margin-bottom: 3px;
}

.ld-tip {
  margin: 0;
  font-size: 11.8px;
  line-height: 1.42;
  color: #d4dbe6;
}

.ld-cancel-btn {
  margin-top: 12px;
  width: 100%;
}

/* ---------- v4.4.1: Mobil / iOS Safari Alt Çubuk & Giriş Alanı Koruması ---------- */
@media (max-width: 720px) {
  #ratio {
    bottom: max(8px, env(safe-area-inset-bottom));
    max-width: calc(100% - 12px);
    padding: 6px 8px;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }

  #ratio::-webkit-scrollbar {
    display: none;
  }

  #ratio input[type=range] {
    width: 74px;
    flex-shrink: 0;
  }

  #ratio .btn,
  #ratio .ratio-lbl {
    flex-shrink: 0;
  }
}

@media (max-width: 720px) and (pointer: coarse) {

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* ---------- v4.6: Geçmiş Maçlar Zaman Çizelgesi Arşivi (Son 3 Maç) ---------- */
.menu-cnt-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 99px;
  background: rgba(232, 188, 88, 0.22);
  border: 1px solid rgba(240, 200, 108, 0.56);
  color: #fae3a2;
  font-family: Inter, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: middle;
}

.archive-card {
  width: min(640px, 94vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 16px;
  background: linear-gradient(180deg, rgba(13, 20, 31, 0.96) 0%, rgba(7, 12, 20, 0.98) 100%);
  border: 1px solid rgba(212, 175, 92, 0.44);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(250, 224, 156, 0.16);
}

.archive-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 92, 0.22);
}

.archive-kicker {
  font-family: Oswald, Inter, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #d8b566;
  margin-bottom: 2px;
}

.archive-head h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: 20px;
  color: #f6e6b8;
  letter-spacing: 0.06em;
}

.archive-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #9ba8b8;
  line-height: 1.4;
}

.archive-close {
  flex-shrink: 0;
  padding: 5px 10px;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 56vh;
  padding-right: 2px;
}

.archive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(212, 168, 68, 0.10) 0%, rgba(16, 24, 36, 0.92) 42%, rgba(10, 15, 23, 0.96) 100%);
  border: 1px solid rgba(212, 175, 92, 0.28);
  border-left: 3px solid #d9b25a;
}

.archive-item-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.archive-item-top {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.archive-country {
  font-size: 14.5px;
  font-weight: 700;
  color: #f7eed6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.archive-pill {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(212, 175, 92, 0.18);
  border: 1px solid rgba(212, 175, 92, 0.44);
  color: #f4d68c;
}

.archive-pill.mode {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.36);
  color: #bae6fd;
}

.archive-meta {
  font-size: 11.8px;
  color: #b7c3d0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.archive-win {
  font-size: 11.5px;
  color: #fde68a;
  font-weight: 600;
}

.archive-item-act {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.archive-empty {
  text-align: center;
  padding: 28px 16px;
  border-radius: 10px;
  background: rgba(12, 18, 28, 0.72);
  border: 1px dashed rgba(212, 175, 92, 0.26);
  color: #9ba8b8;
  font-size: 13px;
  line-height: 1.5;
}

.archive-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(212, 175, 92, 0.18);
}

@media (max-width: 600px) {
  .archive-item {
    flex-direction: column;
    align-items: stretch;
  }

  .archive-item-act {
    justify-content: flex-end;
  }
}