:root {
  --mw-bg-matte: #121417;
  --mw-bg-charcoal: #181c22;
  --mw-bg-panel: #1d222a;
  --mw-bg-subpanel: #14181e;
  --mw-border: #2a323d;
  --mw-border-highlight: #3a4656;
  --mw-green: #00e676;
  --mw-green-dim: rgba(0, 230, 118, 0.14);
  --mw-orange: #ff6b00;
  --mw-orange-dim: rgba(255, 107, 0, 0.16);
  --mw-text-main: #e9eef5;
  --mw-text-muted: #8b97a8;
}

html {
  font-size: 14px;
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

body.tactical-body {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: 'Pretendard', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background-color: var(--mw-bg-matte);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(0, 230, 118, 0.04) 0%, transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(255, 107, 0, 0.05) 0%, transparent 35%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  color: var(--mw-text-main);
  line-height: 1.55;
}

/* -------------------------------------------------- 상단 통제실 바 & 내비게이션 */
.tactical-topbar {
  background: #0b0d10;
  border-bottom: 1px solid #1f2630;
  padding: 5px 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.tactical-header {
  background: rgba(18, 20, 23, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--mw-border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.tactical-navbar {
  padding: 0.55rem 0;
}

.tactical-brand {
  text-decoration: none;
  letter-spacing: 0.06em;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.75));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.tactical-brand:hover .brand-logo-img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(255, 208, 0, 0.65));
}

.hero-brand-logo {
  height: 54px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
}

.brand-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #222933 0%, #14181f 100%);
  border: 1px solid var(--mw-green);
  color: var(--mw-green);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.brand-main {
  font-weight: 900;
  font-size: 1.35rem;
  color: #ffffff;
}

.brand-dot {
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--mw-orange);
}

.brand-sub {
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--mw-green);
  background: var(--mw-green-dim);
  border: 1px solid rgba(0, 230, 118, 0.35);
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.tactical-nav-link {
  color: #b8c4d4 !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.9rem !important;
  border-bottom: 2px solid transparent;
  transition: all 0.18s ease;
}

.tactical-nav-link:hover,
.tactical-nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.03);
  border-bottom-color: var(--mw-green);
}

.tactical-operator-pill {
  background: #1a2028;
  border: 1px solid var(--mw-border);
  padding: 0.35rem 0.75rem !important;
  color: #fff !important;
  font-weight: 600;
}

/* -------------------------------------------------- 가이드 공통 2분할 레이아웃 & 사이드바 */
.guide-container {
  position: relative;
}

.guide-sidebar {
  transition: all 0.2s ease;
}

.guide-nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: #14181f;
  border: 1px solid var(--mw-border);
  border-radius: 2px;
  color: var(--mw-text-main);
  text-align: left;
  transition: all 0.18s ease;
  cursor: pointer;
  text-decoration: none;
}

.guide-tab-btn .tab-num {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--mw-text-muted);
  background: #0d1015;
  padding: 2px 6px;
  border: 1px solid #232c38;
  border-radius: 2px;
}

.guide-tab-btn .tab-icon {
  font-size: 1.05rem;
  color: var(--mw-green);
  width: 22px;
  text-align: center;
}

.guide-tab-btn .tab-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.guide-tab-btn .tab-text strong {
  font-size: 0.88rem;
  color: #ffffff;
  line-height: 1.25;
}

.guide-tab-btn .tab-text small {
  font-size: 0.72rem;
  color: var(--mw-text-muted);
  font-family: monospace;
}

.guide-tab-btn .tab-arrow {
  font-size: 0.75rem;
  color: var(--mw-text-muted);
  opacity: 0.5;
  transition: transform 0.18s ease, color 0.18s ease;
}

.guide-tab-btn:hover {
  background: #1b212b;
  border-color: var(--mw-green);
  transform: translateX(3px);
  color: #ffffff;
}

.guide-tab-btn:hover .tab-arrow {
  opacity: 1;
  color: var(--mw-green);
  transform: translateX(2px);
}

.guide-tab-btn.active {
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.16) 0%, rgba(20, 24, 31, 0.95) 100%);
  border-color: var(--mw-green);
  border-left: 4px solid var(--mw-green);
  box-shadow: inset 0 0 10px rgba(0, 230, 118, 0.12);
  color: #ffffff;
}

.guide-tab-btn.active .tab-num {
  color: var(--mw-green);
  border-color: var(--mw-green);
}

.guide-tab-btn.active .tab-arrow {
  opacity: 1;
  color: var(--mw-green);
}

/* 복사 버튼 토스트 효과 */
.copy-btn {
  transition: all 0.15s ease;
}
.copy-btn.copied {
  background-color: var(--mw-green) !important;
  color: #000 !important;
  border-color: var(--mw-green) !important;
}

/* -------------------------------------------------- 택티컬 카드 & 카본/메탈릭 패널 */
.tactical-card,
.card {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.012) 0px,
      rgba(255, 255, 255, 0.012) 2px,
      transparent 2px,
      transparent 6px
    ),
    linear-gradient(180deg, #1b2028 0%, #15191f 100%) !important;
  border: 1px solid var(--mw-border) !important;
  border-radius: 2px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: var(--mw-text-main);
  position: relative;
}

.tactical-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--mw-green);
}

.tactical-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 2px;
  background: var(--mw-orange);
}

.tactical-card-header,
.card-header {
  background: linear-gradient(90deg, #212731 0%, #181c24 100%) !important;
  border-bottom: 1px solid var(--mw-border) !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: #ffffff !important;
}

.tactical-subcard {
  background: var(--mw-bg-subpanel);
  border: 1px solid var(--mw-border);
  border-left: 3px solid var(--mw-orange);
  border-radius: 2px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.tactical-subcard:hover {
  border-color: var(--mw-green);
  transform: translateY(-2px);
}

.tactical-level-box {
  background: #111419;
  border: 1px solid #2b3440;
  border-left: 3px solid var(--mw-green);
  border-radius: 2px;
}

/* -------------------------------------------------- 페이지 헤더 & 타이포그래피 */
.tactical-page-header {
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.07) 0%, rgba(255, 107, 0, 0.05) 100%);
  border: 1px solid var(--mw-border);
  border-left: 4px solid var(--mw-green);
  padding: 1.1rem 1.25rem;
}

.tactical-eyebrow {
  font-family: monospace;
  font-size: 0.76rem;
  color: var(--mw-green);
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.tactical-title {
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.text-tactical-green {
  color: var(--mw-green) !important;
}

.text-tactical-orange {
  color: var(--mw-orange) !important;
}

.text-tactical-muted {
  color: var(--mw-text-muted) !important;
}

.text-tactical-light {
  color: var(--mw-text-main) !important;
}

.border-top-tactical {
  border-top: 1px solid var(--mw-border) !important;
}

.border-bottom-tactical {
  border-bottom: 1px solid var(--mw-border) !important;
}

@media (min-width: 768px) {
  .border-end-tactical {
    border-right: 1px solid var(--mw-border) !important;
  }
}

/* -------------------------------------------------- 버튼 & 배지 */
.btn-tactical-green,
.btn-primary {
  background: var(--mw-green) !important;
  color: #09120d !important;
  border: 1px solid var(--mw-green) !important;
  border-radius: 2px !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
}

.btn-tactical-green:hover,
.btn-primary:hover {
  background: #26ff8c !important;
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.45);
}

.btn-tactical-orange {
  background: var(--mw-orange) !important;
  color: #ffffff !important;
  border: 1px solid var(--mw-orange) !important;
  border-radius: 2px !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
}

.btn-tactical-orange:hover {
  background: #ff8126 !important;
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.45);
}

.btn-tactical-outline,
.btn-outline-primary,
.btn-outline-secondary {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--mw-text-main) !important;
  border: 1px solid var(--mw-border-highlight) !important;
  border-radius: 2px !important;
  font-weight: 600;
}

.btn-tactical-outline:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
  border-color: var(--mw-green) !important;
  color: var(--mw-green) !important;
  background: var(--mw-green-dim) !important;
}

.btn-tactical-sm {
  background: #1f2630;
  color: #d5dfec;
  border: 1px solid #344050;
  border-radius: 2px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.btn-tactical-sm:hover {
  border-color: var(--mw-orange);
  color: #ffffff;
}

.badge-tactical {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 2px;
  letter-spacing: 0.03em;
}

.badge-tactical-green {
  background: var(--mw-green-dim);
  color: var(--mw-green);
  border: 1px solid rgba(0, 230, 118, 0.4);
}

.badge-tactical-orange {
  background: var(--mw-orange-dim);
  color: var(--mw-orange);
  border: 1px solid rgba(255, 107, 0, 0.45);
}

.badge-tactical-dim {
  background: #202630;
  color: #b0bccb;
  border: 1px solid #313b49;
}

.badge-tactical-bronze {
  background: rgba(184, 115, 51, 0.16);
  color: #d79b6d;
  border: 1px solid rgba(184, 115, 51, 0.45);
}

.badge-tactical-silver {
  background: rgba(192, 192, 192, 0.18);
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: 0 0 6px rgba(226, 232, 240, 0.15);
}

.badge-tactical-blue {
  background: rgba(0, 176, 255, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.badge-tactical-gold {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.22) 0%, rgba(255, 152, 0, 0.15) 100%);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.65);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
}

/* Bootstrap 누락 Opacity 보완 유틸리티 */
.bg-opacity-10 { --bs-bg-opacity: 0.1 !important; }
.bg-opacity-15 { --bs-bg-opacity: 0.15 !important; }
.bg-opacity-20 { --bs-bg-opacity: 0.2 !important; }
.bg-opacity-25 { --bs-bg-opacity: 0.25 !important; }

/* -------------------------------------------------- 프로그레스 바 & 슬라이더 */
.tactical-progress {
  background-color: #0e1116 !important;
  border: 1px solid #28303c;
  border-radius: 1px !important;
  height: 8px;
}

.tactical-progress-bar-green {
  background: linear-gradient(90deg, #00b85c 0%, #00e676 100%) !important;
}

.tactical-progress-bar-orange {
  background: linear-gradient(90deg, #ff5100 0%, #ff8800 100%) !important;
}

.tactical-range::-webkit-slider-thumb {
  background: var(--mw-orange);
  border: 2px solid #fff;
}

/* -------------------------------------------------- 위장 트래커 & 건스미스 전용 카드 */
.tactical-weapon-item {
  background: transparent !important;
  border-color: var(--mw-border) !important;
  color: var(--mw-text-main) !important;
  padding: 0.85rem 1rem;
  transition: all 0.15s ease;
}

.tactical-weapon-item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.tactical-weapon-item.active {
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.14) 0%, rgba(0, 230, 118, 0.02) 100%) !important;
  border-left: 4px solid var(--mw-green) !important;
}

.tactical-camo-card {
  background: #14181f;
  border: 1px solid #2b3340;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.tactical-camo-card:hover {
  border-color: var(--mw-orange);
}

.tactical-camo-card.camo-unlocked {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.12) 0%, #141920 100%);
  border-color: var(--mw-green);
  box-shadow: inset 0 0 12px rgba(0, 230, 118, 0.1);
}

.camo-swatch {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.tactical-att-card {
  background: #14181f;
  border: 1px solid #2b3340;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tactical-att-card:hover {
  border-color: var(--mw-green);
}

.tactical-att-card.att-equipped {
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.15) 0%, #151920 100%);
  border-color: var(--mw-orange);
  border-left: 3px solid var(--mw-orange);
}

.tactical-att-card.att-locked {
  opacity: 0.5;
  cursor: not-allowed;
}

/* -------------------------------------------------- LFG & 교신 메시지 말풍선 */
.tactical-msg-mine {
  background: linear-gradient(135deg, #005b32 0%, #003d21 100%);
  border: 1px solid var(--mw-green);
  color: #ffffff;
  border-radius: 2px;
  max-width: 78%;
}

.tactical-msg-other {
  background: #1e242d;
  border: 1px solid #323c4a;
  color: var(--mw-text-main);
  border-radius: 2px;
  max-width: 78%;
}

/* -------------------------------------------------- 폼 입력창 & 기존 부트스트랩 다크 호환 */
.tactical-input,
.form-control,
.form-select {
  background-color: #101318 !important;
  border: 1px solid #2e3744 !important;
  border-radius: 2px !important;
  color: #ffffff !important;
}

.tactical-input:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--mw-green) !important;
  box-shadow: 0 0 0 0.15rem rgba(0, 230, 118, 0.2) !important;
}

.table {
  color: var(--mw-text-main) !important;
  border-color: var(--mw-border) !important;
}

.table-light,
.table thead th {
  background-color: #161a21 !important;
  color: var(--mw-green) !important;
  border-color: var(--mw-border) !important;
  font-family: monospace;
}

.list-group-item {
  background-color: #171b22;
  color: var(--mw-text-main);
  border-color: var(--mw-border);
}

.list-group-item.active {
  background-color: #1f2933 !important;
  border-color: var(--mw-green) !important;
  color: #ffffff !important;
}

.bg-white,
.bg-light {
  background-color: #1b2028 !important;
  color: var(--mw-text-main) !important;
}

.text-dark {
  color: var(--mw-text-main) !important;
}

.text-muted,
.text-secondary {
  color: var(--mw-text-muted) !important;
}

.alert-tactical-success {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid var(--mw-green);
  color: #ffffff;
  border-radius: 2px;
}

.tactical-footer {
  background: #0d0f13;
  border-top: 1px solid var(--mw-border);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f1216;
}

::-webkit-scrollbar-thumb {
  background: #2c3542;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mw-green);
}

/* -------------------------------------------------- 스카이스크래퍼 배너 (AdSense & Coupang Partners) */
.skyscraper-layout-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.tactical-main-container {
  max-width: 100%;
  min-width: 0;
}

.bottom-adsense-container,
.bottom-ad-card,
.infeed-tactical-ad {
  max-width: 100%;
  overflow: hidden;
}

ins.adsbygoogle,
ins.adsbygoogle iframe {
  max-width: 100% !important;
}

.skyscraper-ad {
  display: none; /* 기본(1400px 미만) 숨김 */
  position: fixed;
  top: 112px;
  height: 580px;
  max-height: calc(100vh - 154px);
  z-index: 95; /* 모달(1050), 네비 드롭다운(1000)보다 낮게 설정 */
}

.skyscraper-inner {
  width: 100%;
  height: 100%;
  background: #14171e;
  border: 1px solid #28303d;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.skyscraper-inner:hover {
  border-color: #3d4a5d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.skyscraper-ad .ad-header {
  background: #0b0e13;
  padding: 8px 10px;
  border-bottom: 1px solid #202733;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.skyscraper-ad .ad-tag {
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--mw-green);
  letter-spacing: 0.05em;
}

.skyscraper-ad .ad-sub {
  font-size: 0.65rem;
  color: #727e91;
  font-family: monospace;
}

.skyscraper-ad .ad-body {
  padding: 10px 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skyscraper-ad .ad-placeholder {
  border: 1px dashed #2d3644;
  border-radius: 4px;
  background: #101319;
  padding: 14px 8px;
  text-align: center;
}

.skyscraper-ad .ad-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.skyscraper-ad .ad-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.skyscraper-ad .ad-spec {
  font-size: 0.65rem;
  font-family: monospace;
  color: #727e91;
}

.skyscraper-ad .ad-desc {
  font-size: 0.7rem;
  color: var(--mw-text-muted);
  margin-top: 8px;
  margin-bottom: 0;
  line-height: 1.3;
}

.gear-preview-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  text-align: left;
}

.gear-item {
  display: flex;
  align-items: center;
  font-size: 0.68rem;
  color: #cfd7e3;
  padding: 4px 6px;
  background: #171c24;
  border: 1px solid #252d3a;
  border-radius: 3px;
}

.gear-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coupang-disclosure-box {
  background: #0b0e13;
  padding: 8px 6px;
  border-top: 1px solid #202733;
}

.coupang-disclosure-text {
  font-size: 9px;
  line-height: 1.35;
  color: #6c788a;
  margin: 0;
  text-align: center;
  word-break: keep-all;
}

.ad-footer-badge {
  background: #0b0e13;
  padding: 6px 10px;
  border-top: 1px solid #202733;
  font-size: 0.65rem;
  color: #727e91;
  text-align: center;
}

/* ======================================================================
   [전역 데스크톱 확장 & 스카이스크래퍼 광고 1440px+ 노출 극대화]
   본문 가독성과 좌/우 고정 스카이스크래퍼 광고 유효 노출(Active View)을 동시 달성
   ====================================================================== */
@media (min-width: 1200px) and (max-width: 1439px) {
  .container,
  .tactical-main-container {
    max-width: 1280px !important;
  }
}

@media (min-width: 1440px) and (max-width: 1679px) {
  .container,
  .tactical-main-container {
    max-width: 1180px !important;
  }
  .skyscraper-ad {
    display: block;
    width: 115px;
  }
  .skyscraper-ad.skyscraper-coupang {
    width: 124px;
  }
  .skyscraper-ad.skyscraper-wide-only {
    display: none !important;
  }
  .skyscraper-ad-left {
    right: calc(50% + 590px + 8px);
  }
  .skyscraper-ad-right {
    left: calc(50% + 590px + 8px);
  }
}

@media (min-width: 1680px) and (max-width: 1859px) {
  .container,
  .tactical-main-container {
    max-width: 1320px !important;
  }
  .skyscraper-ad {
    display: block;
    width: 130px;
  }
  .skyscraper-ad.skyscraper-coupang {
    width: 168px;
  }
  .skyscraper-ad-left {
    right: calc(50% + 660px + 10px);
  }
  .skyscraper-ad-right {
    left: calc(50% + 660px + 10px);
  }
}

@media (min-width: 1860px) {
  .container,
  .tactical-main-container {
    max-width: 1520px !important;
  }
  .skyscraper-ad {
    display: block;
    width: 160px;
  }
  .skyscraper-ad.skyscraper-coupang {
    width: 168px;
  }
  .skyscraper-ad-left {
    right: calc(50% + 760px + 14px);
  }
  .skyscraper-ad-right {
    left: calc(50% + 760px + 14px);
  }
}

/* 인피드(In-Feed) 및 체류형 고정(Companion Sticky) 전술 광고 슬롯 */
.infeed-tactical-ad {
  background: linear-gradient(90deg, rgba(16, 20, 26, 0.95) 0%, rgba(22, 27, 35, 0.95) 100%);
  border: 1px solid #28303d;
  border-left: 3px solid #ff9800;
  border-radius: 4px;
  padding: 10px 14px;
}

.companion-sticky-ad {
  background: #0f1318;
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 4px;
  padding: 8px 10px;
}

/* 데스크톱 본문 텍스트 가독성 향상 */
@media (min-width: 1200px) {
  .tactical-card p,
  .guide-article-body p,
  .ballistic-authority-banner p {
    font-size: 0.98rem;
    line-height: 1.75;
  }
  .dmz-viewport {
    height: 720px; /* 확장된 지도 너비에 맞춰 뷰포트 높이 최적화 */
  }
}

/* 모바일 전용 반응형 하단 배너 카드 */
.mobile-ad-card {
  background: #14171e;
  border: 1px solid #28303d;
  border-radius: 4px;
}

.mobile-ad-card .coupang-disclosure {
  font-size: 9px;
  color: #6c788a;
}

/* 쿠팡 파트너스 위젯 반응형 컨테이너 */
.coupang-widget-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.coupang-widget-120,
.coupang-widget-160 {
  display: none;
}

@media (min-width: 1400px) and (max-width: 1599px) {
  .coupang-widget-120 {
    display: block;
    width: 120px;
    height: 600px;
    overflow: hidden;
  }
}

@media (min-width: 1600px) {
  .coupang-widget-160 {
    display: block;
    width: 160px;
    height: 600px;
    overflow: hidden;
  }
}

/* 전역 하단 구글 애드센스 배너 스타일 */
.bottom-adsense-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.bottom-ad-card {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skyscraper-ad.skyscraper-coupang {
  height: auto;
  min-height: 600px;
  max-height: calc(100vh - 125px);
}

.coupang-banner-card {
  max-width: 100%;
  overflow: hidden;
}

.coupang-iframe-unit {
  max-width: 100%;
  border: 0;
  display: block;
  margin: 0 auto;
}

.coupang-img-unit {
  display: block;
  margin: 0 auto;
  height: auto;
}

.coupang-disclosure {
  font-size: 0.7rem;
  color: #8b97a8;
  line-height: 1.3;
  margin-top: 4px;
  text-align: center;
}

.coupang-disclosure-side {
  background: #0b0e13;
  border-top: 1px solid #202733;
  padding: 5px 6px;
  font-size: 0.62rem;
  margin-top: 0;
}

/* ==========================================================================
   전술 커뮤니티 리치 에디터 (Quill.js Snow 다크 테마 커스텀) & 건스미스 임베드
   ========================================================================== */

.tactical-quill-wrapper {
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #2c3240;
  background-color: #121417;
}

.tactical-quill-wrapper .ql-toolbar.ql-snow {
  background-color: #1a1d24;
  border: none;
  border-bottom: 1px solid #2c3240;
  padding: 10px 12px;
}

.tactical-quill-wrapper .ql-container.ql-snow {
  border: none;
  background-color: #121417;
  color: #e9eef5;
  font-family: inherit;
  font-size: 1rem;
  min-height: 320px;
}

.tactical-quill-wrapper .ql-editor {
  min-height: 320px;
  line-height: 1.75;
  color: #e9eef5;
  padding: 16px 18px;
}

.tactical-quill-wrapper .ql-editor.ql-blank::before {
  color: #6c788a;
  font-style: normal;
}

.tactical-quill-wrapper .ql-snow .ql-stroke {
  stroke: #b0bccb;
}

.tactical-quill-wrapper .ql-snow .ql-fill,
.tactical-quill-wrapper .ql-snow .ql-stroke.ql-fill {
  fill: #b0bccb;
}

.tactical-quill-wrapper .ql-snow .ql-picker {
  color: #b0bccb;
}

.tactical-quill-wrapper .ql-snow .ql-picker-options {
  background-color: #1a1d24;
  border-color: #2c3240;
  color: #e9eef5;
}

.tactical-quill-wrapper .ql-snow.ql-toolbar button:hover,
.tactical-quill-wrapper .ql-snow .ql-toolbar button:hover,
.tactical-quill-wrapper .ql-snow.ql-toolbar button.ql-active,
.tactical-quill-wrapper .ql-snow .ql-toolbar button.ql-active,
.tactical-quill-wrapper .ql-snow.ql-toolbar .ql-picker-label:hover,
.tactical-quill-wrapper .ql-snow .ql-picker-label.ql-active {
  color: #ff9800 !important;
}

.tactical-quill-wrapper .ql-snow.ql-toolbar button:hover .ql-stroke,
.tactical-quill-wrapper .ql-snow.ql-toolbar button.ql-active .ql-stroke,
.tactical-quill-wrapper .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke {
  stroke: #ff9800 !important;
}

.tactical-quill-wrapper .ql-snow.ql-toolbar button:hover .ql-fill,
.tactical-quill-wrapper .ql-snow.ql-toolbar button.ql-active .ql-fill {
  fill: #ff9800 !important;
}

.tactical-quill-wrapper .ql-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #2c3240;
  margin: 8px 0;
}

/* Quill 2.0 택티컬 다크 테이블 (에디터 & 게시글 본문 공통) */
.tactical-quill-wrapper .ql-editor table,
.board-post-content table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  border: 1px solid #2e3848;
  background-color: #151820;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.tactical-quill-wrapper .ql-editor th,
.tactical-quill-wrapper .ql-editor td,
.board-post-content th,
.board-post-content td {
  border: 1px solid #2e3848;
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
}

.tactical-quill-wrapper .ql-editor th,
.board-post-content th {
  background-color: #1c222c;
  color: #00e676;
  font-weight: 600;
  border-bottom: 2px solid #00e676;
}

.tactical-quill-wrapper .ql-editor tr:nth-child(even),
.board-post-content tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.tactical-quill-wrapper .ql-editor tr:hover,
.board-post-content tr:hover {
  background-color: rgba(255, 152, 0, 0.06);
}

/* Quill 2.0 테이블 조작 미니 패널 */
.tactical-table-controls {
  background: #181c24;
  border: 1px solid #2e3848;
  border-top: none;
  font-size: 0.8rem;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

/* 건스미스 빌드 첨부 박스 & 상세 페이지 로드아웃 임베드 카드 */
.tactical-build-attach-box {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.08) 0%, #14181f 100%);
  border: 1px solid #2c3545;
  transition: border-color 0.2s ease;
}

.tactical-loadout-embed-card {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, #11151c 60%, rgba(0, 230, 118, 0.06) 100%);
  border: 1px solid rgba(255, 152, 0, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

/* 상세 페이지 리치 본문 영역 */
.board-post-content {
  background-color: #12151b;
  border: 1px solid #242b36;
  color: #e9eef5;
  min-height: 180px;
  font-size: 1.03rem;
  line-height: 1.8;
  word-break: break-word;
}

.board-post-content p {
  margin-bottom: 0.9rem;
}

.board-post-content img,
.tactical-post-img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #2c3442;
  margin: 0.75rem 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.board-post-content img:hover {
  border-color: #ff9800;
}

.board-post-content blockquote {
  border-left: 4px solid #ff9800;
  padding-left: 1rem;
  color: #aab6c8;
  background: rgba(255, 152, 0, 0.05);
  padding: 0.6rem 1rem;
  border-radius: 0 4px 4px 0;
}

.board-post-content pre {
  background-color: #0c0e12;
  border: 1px solid #28303d;
  color: #00e676;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
}

/* 게시판 목록(Index.cshtml) 60x45px 썸네일 프리뷰 */
.board-list-thumb {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border: 1px solid #313b4b;
  background-color: #0e1116;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.board-list-thumb:hover {
  border-color: #ff9800;
  transform: scale(1.04);
}

.active-tactical-cat {
  background: linear-gradient(90deg, rgba(255, 152, 0, 0.16) 0%, rgba(255, 152, 0, 0.02) 100%) !important;
  border-left: 3px solid #ff9800 !important;
}

.tactical-board-table {
  table-layout: fixed;
  width: 100%;
}

.tactical-board-table th,
.tactical-board-table td {
  vertical-align: middle;
  overflow: hidden;
}

.board-title-cell {
  overflow: hidden;
}

.board-title-wrapper {
  min-width: 0;
  overflow: hidden;
}

.board-title-link {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  overflow-wrap: break-word;
  line-height: 1.4;
  max-height: 2.8em;
  color: #ffffff;
  transition: color 0.15s ease;
  min-width: 0;
}

.board-title-link:hover {
  color: #ff9800 !important;
}

@media (min-width: 992px) {
  .tactical-board-table-responsive {
    overflow-x: hidden !important;
  }
}

/* -------------------------------------------------- 모바일 커뮤니티 전용 반응형 (<= 768px / 991px) */
/* 1. 상단 가로 스와이프 알약 탭 바 */
.tactical-category-pills-bar {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 6px;
  padding: 2px 2px 8px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tactical-category-pills-bar::-webkit-scrollbar {
  display: none;
}
.tactical-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 9999px;
  background: #141820;
  border: 1px solid #27303f;
  color: #a0aec0;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.tactical-pill-link.active {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.22) 0%, rgba(255, 152, 0, 0.08) 100%);
  border-color: #ff9800;
  color: #ff9800;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.25);
}
.tactical-pill-link:hover {
  color: #ffffff;
  border-color: #4a5568;
}
.tactical-pill-link .pill-badge {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e0;
}
.tactical-pill-link.active .pill-badge {
  background: #ff9800;
  color: #000000;
  font-weight: 700;
}

/* 2. 모바일 실시간 오픈 대화방 아코디언 바 */
.tactical-mobile-bar-btn {
  background: #151921;
  border: 1px solid rgba(0, 230, 118, 0.35);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.tactical-mobile-bar-btn:active {
  background: #1c222c;
  transform: scale(0.99);
}
.live-dot-pulse {
  width: 8px;
  height: 8px;
  background-color: #00e676;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #00e676;
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* 3. 모바일 2줄 리스트형 카드 레이아웃 (에펨코리아/인벤/디시 스타일) */
.tactical-mobile-board-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #27303f;
  width: 100%;
}
.mobile-post-item {
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
}
.mobile-post-item:active {
  background-color: rgba(255, 255, 255, 0.04);
}
.mobile-post-notice {
  background: rgba(220, 53, 69, 0.07);
  border-left: 3px solid #dc3545;
  padding-left: 8px;
}
.mobile-post-title-row {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mobile-post-title {
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  color: #f7fafc;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-post-title:hover,
.mobile-post-title:active {
  color: #ff9800 !important;
}
.mobile-cat-badge {
  font-size: 0.65rem;
  padding: 2px 5px;
  flex-shrink: 0;
  line-height: 1.2;
}
.mobile-media-icon {
  font-size: 0.75rem;
  flex-shrink: 0;
  line-height: 1;
}
.mobile-build-badge {
  font-size: 0.62rem;
  padding: 1px 4px;
  flex-shrink: 0;
}
.mobile-comment-badge {
  color: #ff9800;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 2px;
}
.mobile-post-meta-row {
  font-size: 0.72rem;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1;
}
.mobile-meta-left {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-rank-badge {
  font-size: 0.62rem;
  padding: 1px 4px;
  flex-shrink: 0;
}
.mobile-author-name {
  color: #a0aec0;
  font-size: 0.74rem;
}
.mobile-meta-right {
  color: #718096;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.mobile-stat {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* 4. 모바일 우측 하단 플로팅 글쓰기 버튼 (FAB) */
.tactical-mobile-fab {
  position: fixed;
  bottom: 24px;
  right: 18px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9800 0%, #e65100 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.5);
  z-index: 1030;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tactical-mobile-fab:active {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
  color: #ffffff;
}

/* -------------------------------------------------- 전술 커뮤니티 실시간 오픈 대화방 위젯 */
.open-chat-widget {
  background: linear-gradient(180deg, #181d26 0%, #12151c 100%);
  border: 1px solid rgba(0, 230, 118, 0.28) !important;
  border-radius: 4px;
}
.open-chat-room-card {
  background: #141820;
  border: 1px solid #27303f;
  border-radius: 4px;
  transition: all 0.18s ease;
}
.open-chat-room-card:hover {
  background: #1b212c;
  border-color: #00e676;
  transform: translateY(-1px);
}
.open-chat-msg-mine {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.18) 0%, rgba(0, 230, 118, 0.08) 100%);
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: 6px 6px 0 6px;
  color: #ffffff;
  max-width: 82%;
  word-break: break-word;
}
.open-chat-msg-other {
  background: #1a202c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px 6px 6px 0;
  color: #e2e8f0;
  max-width: 82%;
  word-break: break-word;
}
.open-chat-msg-system {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.25);
  color: #ffd000;
  border-radius: 12px;
  font-size: 0.72rem;
  padding: 2px 10px;
  display: inline-block;
}

/* ==========================================================================
   GNB 가로형 오버레이 서브메뉴 (본문 밀림 없는 절대 위치 상위 레이어)
   ========================================================================== */
.tactical-header {
  position: sticky;
  top: 0;
  z-index: 1040;
}

.guide-subnav-bar,
.weapons-subnav-bar,
.dmz-subnav-bar,
.training-subnav-bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(180deg, #181b22 0%, #11141a 100%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.88), 0 4px 12px rgba(0, 0, 0, 0.7);
  z-index: 1050;
  pointer-events: none;
  opacity: 0;
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 테마별 포인트 보더 */
.guide-subnav-bar {
  border-top: 1px solid rgba(0, 230, 118, 0.35);
  border-bottom: 2px solid #00e676;
}
.weapons-subnav-bar {
  border-top: 1px solid rgba(255, 152, 0, 0.35);
  border-bottom: 2px solid #ff9800;
}
.dmz-subnav-bar {
  border-top: 1px solid rgba(255, 193, 7, 0.35);
  border-bottom: 2px solid #ffc107;
}
.training-subnav-bar {
  border-top: 1px solid rgba(229, 57, 53, 0.35);
  border-bottom: 2px solid #e53935;
}

/* 데스크톱(992px 이상): 마우스 호버된 단 1개의 서브메뉴만 오버레이 표시 */
@media (min-width: 992px) {
  .guide-subnav-bar.is-hovered,
  .weapons-subnav-bar.is-hovered,
  .dmz-subnav-bar.is-hovered,
  .training-subnav-bar.is-hovered {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    animation: gnbSubnavOverlay 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes gnbSubnavOverlay {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 모바일/태블릿 */
@media (max-width: 991.98px) {
  .guide-subnav-bar,
  .weapons-subnav-bar,
  .dmz-subnav-bar,
  .training-subnav-bar {
    position: static;
    display: none;
    box-shadow: none;
  }
  .guide-subnav-bar.is-active,
  .weapons-subnav-bar.is-active,
  .dmz-subnav-bar.is-active,
  .training-subnav-bar.is-active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}

/* 내부 스크롤 및 링크 스타일 */
.guide-subnav-scroll,
.weapons-subnav-scroll,
.dmz-subnav-scroll,
.training-subnav-scroll {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.guide-subnav-scroll::-webkit-scrollbar,
.weapons-subnav-scroll::-webkit-scrollbar,
.dmz-subnav-scroll::-webkit-scrollbar,
.training-subnav-scroll::-webkit-scrollbar {
  display: none;
}

.guide-subnav-nav,
.weapons-subnav-nav,
.dmz-subnav-nav,
.training-subnav-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  white-space: nowrap;
}

.guide-subnav-item,
.weapons-subnav-item,
.dmz-subnav-item,
.training-subnav-item {
  margin: 0;
}

.guide-subnav-link,
.weapons-subnav-link,
.dmz-subnav-link,
.training-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  color: #a0aec0;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Pretendard', sans-serif;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  border-radius: 2px 2px 0 0;
}

.guide-subnav-link:hover { color: #ffffff; background: rgba(0, 230, 118, 0.12); border-bottom-color: #00e676; }
.weapons-subnav-link:hover { color: #ffffff; background: rgba(255, 152, 0, 0.12); border-bottom-color: #ff9800; }
.dmz-subnav-link:hover { color: #ffffff; background: rgba(255, 193, 7, 0.12); border-bottom-color: #ffc107; }
.training-subnav-link:hover { color: #ffffff; background: rgba(229, 57, 53, 0.12); border-bottom-color: #e53935; }

.guide-subnav-link.active { color: #00e676; background: rgba(0, 230, 118, 0.18); border-bottom-color: #00e676; font-weight: 700; text-shadow: 0 0 10px rgba(0, 230, 118, 0.4); }
.weapons-subnav-link.active { color: #ff9800; background: rgba(255, 152, 0, 0.18); border-bottom-color: #ff9800; font-weight: 700; text-shadow: 0 0 10px rgba(255, 152, 0, 0.4); }
.dmz-subnav-link.active { color: #ffd000; background: rgba(255, 152, 0, 0.18); border-bottom-color: #ffd000; font-weight: 700; text-shadow: 0 0 10px rgba(255, 208, 0, 0.4); }
.training-subnav-link.active { color: #e53935; background: rgba(229, 57, 53, 0.18); border-bottom-color: #e53935; font-weight: 700; text-shadow: 0 0 10px rgba(229, 57, 53, 0.4); }

.subnav-emoji {
  font-size: 1rem;
  line-height: 1;
}
.subnav-title {
  letter-spacing: 0.02em;
}

/* -------------------------------------------------- 실시간 전술 배틀 컴팩트 바 & 디스코드 배너 모바일 최적화 */
.poll-compact-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.poll-compact-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}

.poll-compact-badge {
  font-size: 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.poll-compact-title {
  font-size: 0.84rem;
  line-height: 1.4;
  min-width: 0;
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.poll-compact-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "opt1 opt2"
    "bar bar";
  align-items: center;
  gap: 5px 8px;
  min-width: 0;
  width: 100%;
}

.poll-compact-opt1 {
  grid-area: opt1;
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.3;
  word-break: keep-all;
}

.poll-compact-opt2 {
  grid-area: opt2;
  text-align: right;
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
}

.poll-compact-bar-wrap {
  grid-area: bar;
  width: 100%;
}

.poll-compact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
  min-width: 0;
  width: 100%;
}

.poll-compact-choice {
  max-width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.3;
}

/* 태블릿 및 데스크톱 (768px 이상): 2줄 완벽 분리 레이아웃
   - 첫째 줄: 태그 + 질문 제목 전체 (100% 너비로 제목 잘림 원천 차단)
   - 둘째 줄: 좌측 게이지 바(적정 320~440px) + 우측 득표현황 및 내 선택, 상세 토글
*/
@media (min-width: 768px) {
  .poll-compact-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    width: 100%;
  }

  /* 첫째 줄: 제목 전체 (100% 너비 활용으로 제목 잘림 원천 방지) */
  .poll-compact-header {
    width: 100%;
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .poll-compact-badge {
    font-size: 0.72rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .poll-compact-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    flex: 1 1 auto;
  }

  /* 둘째 줄 좌측: 게이지 바 (너무 넓지도 좁지도 않은 최적의 320~440px) */
  .poll-compact-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 320px;
    max-width: 440px;
    min-width: 250px;
    width: auto;
    margin: 0;
  }

  .poll-compact-opt1 {
    grid-area: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.82rem;
    line-height: 1;
    text-align: left;
  }

  .poll-compact-bar-wrap {
    grid-area: auto;
    flex: 1 1 auto;
    width: auto;
    min-width: 80px;
    margin: 0;
  }

  .poll-compact-opt2 {
    grid-area: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.82rem;
    line-height: 1;
    text-align: right;
  }

  /* 둘째 줄 우측: 득표현황, 내 선택 배지, 상세 토글 버튼 */
  .poll-compact-meta {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
  }

  .poll-compact-choice {
    white-space: nowrap;
  }
}

/* 계층형 대댓글 트리 UI (모바일 가로 스크롤 원천 차단 & 최대 5단계 반응형 들여쓰기) */
.comment-tree-item {
  --comment-depth: 0;
  margin-left: calc(var(--comment-depth, 0) * 12px);
  max-width: 100%;
  transition: background-color 0.2s ease;
}

.comment-tree-reply {
  border-left: 2px solid rgba(74, 222, 128, 0.35) !important;
  padding-left: 10px !important;
}

.comment-tree-item[data-deleted="true"].comment-tree-reply {
  border-left-color: rgba(148, 163, 184, 0.28) !important;
}

.comment-body-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.comment-content-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.comment-inline-reply-box {
  margin-top: 0.65rem;
  border-left: 2px solid rgba(56, 189, 248, 0.55);
}

@media (min-width: 576px) {
  .comment-tree-item {
    margin-left: calc(var(--comment-depth, 0) * 24px);
  }

  .comment-tree-reply {
    padding-left: 14px !important;
  }
}

/* -------------------------------------------------- 전술 게시판 페이징 (Tactical Pagination) */
.tactical-pagination .page-item .page-link {
  background: #141820;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  min-width: 32px;
  text-align: center;
  border-radius: 3px !important;
  transition: all 0.2s ease;
  text-decoration: none;
}

.tactical-pagination .page-item .page-link:hover {
  background: rgba(255, 152, 0, 0.15);
  border-color: rgba(255, 152, 0, 0.5);
  color: #ff9800;
}

.tactical-pagination .page-item.active .page-link {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0b0e14 !important;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.tactical-pagination .page-item.disabled .page-link {
  background: #0f131a;
  border-color: rgba(255, 255, 255, 0.06);
  color: #475569;
  cursor: not-allowed;
  opacity: 0.5;
}

/* -------------------------------------------------- 실시간 전술 무전 알림 (Tactical Notification) */
.tactical-notif-dropdown {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
}

.tactical-notif-dropdown .dropdown-item {
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tactical-notif-dropdown .dropdown-item:hover {
  background: rgba(255, 152, 0, 0.15) !important;
  color: #ffffff !important;
}

#tacticalNotifDropdownWrapper:hover #notifDropdownToggle i {
  transform: scale(1.15);
  color: #ff9800 !important;
}

