/* 옛날서버 홈페이지 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Noto+Serif+KR:wght@600;700;900&display=swap");

:root {
  --black: #0c0c0c;
  --header: rgba(12, 12, 14, 0.92);
  --white: #ffffff;
  --bg: #f4f4f4;
  --bg-soft: #fafafa;
  --line: #e5e5e5;
  --line-dark: #d0d0d0;
  --text: #222;
  --muted: #777;
  --gold: #c4a574;
  --gold-hover: #a08858;
  --gold-light: #e8d5b5;
  --gold-soft: rgba(196, 165, 116, 0.18);
  --red: #e74c3c;
  --blue: #3498db;
  --max: 1200px;
  --main-grid-max: 1680px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #fff;
  margin-right: 12px;
}

.brand:hover { text-decoration: none; opacity: 0.92; }

.brand-text {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.brand-name-line {
  font-family: "Noto Serif KR", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-gold {
  background: linear-gradient(180deg, #fff0c8 0%, #e8c872 35%, #c9a227 70%, #8b6914 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.35));
}

.brand-white {
  background: linear-gradient(180deg, #fff8e8 0%, #e8d090 40%, #c4a050 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.35));
}

.brand-season {
  font-family: "Noto Serif KR", serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-left: 3px;
  background: linear-gradient(180deg, #fff4d0 0%, #f0d060 40%, #d4a830 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.45));
}

.nav-main {
  flex: 1;
  min-width: 0;
}

.nav-main > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 18px 20px;
  color: #ccc;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s;
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  color: #fff;
  text-decoration: none;
}

.nav-link.active { color: var(--gold-light); }

.badge-n {
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  background: var(--red);
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.3;
  vertical-align: super;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 0 0 6px 6px;
  padding: 8px 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  z-index: 210;
}

.nav-item:hover .nav-dropdown { display: block; }

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  color: #bbb;
  font-size: 13px;
}

.nav-dropdown a:hover {
  background: #252525;
  color: #fff;
  text-decoration: none;
}

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

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  background: var(--gold);
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  border-radius: 8px;
  letter-spacing: -0.01em;
  transition: background 0.15s, transform 0.15s;
}

.btn-download:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  color: #fff !important;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #444;
  color: #fff;
  font-size: 18px;
  padding: 4px 10px;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: clamp(280px, 48vh, 560px);
  overflow: hidden;
  background: #080604;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  background: #080604;
}

.hero-bg-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.12) 100%),
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(255, 140, 40, 0.1), transparent 72%);
  pointer-events: none;
}

.hero-status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 0 20px;
  pointer-events: none;
}

.hero-status-pill {
  pointer-events: auto;
}

.hero-title-wrap {
  animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 배너 스타일 금속 3D 타이틀 */
.hero-title-brand {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(4rem, 12vw, 7.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  filter:
    drop-shadow(0 1px 0 #4a3208)
    drop-shadow(0 2px 0 #3a2806)
    drop-shadow(0 3px 0 #2a1c04)
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 28px rgba(212, 175, 55, 0.45));
}

.hero-title-brand span {
  background: linear-gradient(
    180deg,
    #fff8e0 0%,
    #f5dc9a 18%,
    #e8c060 38%,
    #d4af37 58%,
    #a07818 78%,
    #6b4a0e 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-title-brand #hero-name-white {
  background: linear-gradient(
    180deg,
    #fff6d8 0%,
    #f0d080 22%,
    #d8b040 52%,
    #b88820 78%,
    #7a5510 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin-top: clamp(14px, 2.5vw, 22px);
  animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero-classic-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
}

.hero-divider-line {
  width: min(132px, 24vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.75), transparent);
}

.hero-divider-gem {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: #d4af37;
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.55);
}

.hero-classic-text {
  font-family: "Cinzel", "Noto Serif KR", serif;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #e8c872;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.35), 0 2px 8px rgba(0, 0, 0, 0.65);
}

.hero-tagline {
  margin: 14px 0 0;
  font-size: clamp(1.3rem, 3.8vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-season-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
  background: var(--gold-soft);
  border: 1px solid rgba(196, 165, 116, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}

.hero-status-pill .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.hero-status-pill.is-off .status-dot {
  background: #94a3b8;
  box-shadow: none;
}

.hero-meta {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* ===== QUICK ICONS ===== */
.quick-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.quick-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px 20px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  color: var(--text);
  transition: color 0.2s ease;
}

.quick-item:hover {
  color: var(--gold-hover);
  text-decoration: none;
}

.quick-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.quick-item:hover .quick-icon {
  border-color: var(--gold-light);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.quick-icon svg {
  width: 24px;
  height: 24px;
  stroke: #666;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease;
}

.quick-item:hover .quick-icon svg {
  stroke: var(--gold);
}

.quick-item-guide .quick-icon svg {
  fill: rgba(102, 102, 102, 0.12);
}

.quick-item-guide:hover .quick-icon svg {
  fill: var(--gold-soft);
}

/* 카카오 — 유일한 컬러 포인트 */
.quick-item-kakao .quick-icon {
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 14px;
  overflow: hidden;
}

.quick-item-kakao:hover .quick-icon {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.quick-item-kakao .kakao-icon-img {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 14px;
  object-fit: cover;
}

.quick-item-kakao:hover {
  color: var(--text);
}

.quick-item .badge-n {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 2;
}

.quick-label {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  letter-spacing: -0.01em;
  color: inherit;
}

/* ===== MAIN GRID (4 columns) ===== */
.main-grid {
  max-width: var(--main-grid-max);
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.panel-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 88px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.panel-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.panel-head-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.panel-head-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.panel-head .more {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #666;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.panel-head .more:hover {
  color: var(--gold-hover);
  border-color: rgba(196, 165, 116, 0.65);
  background: var(--gold-soft);
  box-shadow: 0 1px 4px rgba(196, 165, 116, 0.18);
}

.panel-head .more-icon {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
}

.panel-head .clock {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.market-panel .panel-head-meta,
.rank-panel .panel-head-meta,
.market-panel .panel-head .clock,
.rank-panel .panel-head .clock {
  font-size: 11px;
  font-weight: 500;
  color: #999;
}

.panel-body {
  flex: 1;
  padding: 8px 0;
  overflow: hidden;
}

.list-rows { list-style: none; margin: 0; padding: 0; }

.list-rows li a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}

.list-rows li a:hover {
  background: #fafafa;
  text-decoration: none;
  color: var(--text);
}

.list-rows .date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
  min-width: 36px;
}

.list-rows .title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Market panel */
.market-panel .panel-body {
  padding: 0 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.market-search-form {
  display: flex;
  gap: 6px;
  padding: 8px 4px 4px;
}

.market-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.market-search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--gold);
}

.market-search-form button {
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #c99820, #a87810);
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.market-search-form button:hover {
  filter: brightness(1.05);
}

.market-search-form--full {
  padding: 0 0 12px;
  max-width: 480px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.table-scroll .market-table {
  width: 100%;
  min-width: 820px;
  table-layout: fixed;
}

.market-table th,
.market-table td {
  text-align: center;
  vertical-align: middle;
  padding: 12px 10px;
  line-height: 1.45;
}

.market-table thead th {
  padding: 13px 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.market-table th:nth-child(1),
.market-table td:nth-child(1) {
  width: 20%;
}

.market-table th:nth-child(2),
.market-table td:nth-child(2) {
  width: 11%;
}

.market-table th:nth-child(3),
.market-table td:nth-child(3) {
  width: 11%;
}

.market-table th:nth-child(4),
.market-table td:nth-child(4) {
  width: 9%;
}

.market-table th:nth-child(5),
.market-table td:nth-child(5) {
  width: 16%;
}

.market-table th:nth-child(6),
.market-table td:nth-child(6) {
  width: 33%;
}

.market-table tbody tr:hover {
  background: rgba(196, 165, 116, 0.06);
}

.market-meta,
.rank-table-meta,
.my-char-updated {
  font-size: 12px;
  font-weight: 500;
  color: #999;
}

.market-meta {
  margin: 0 0 12px;
  text-align: center;
}

.rank-table-meta {
  margin: 4px 0 12px;
  text-align: left;
}

.market-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
}

.market-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
}

.market-list .market-item-name,
.market-list .market-name {
  flex: 0 1 auto;
  max-width: 42%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.market-list .market-item-tags {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.market-list .market-price {
  flex: 0 0 auto;
  margin-left: auto;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.market-table .market-cell-name {
  font-weight: 600;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.market-table .market-cell-seller {
  font-weight: 600;
  color: var(--text);
}

.market-table .market-cell-price {
  font-weight: 700;
  color: #9a7018;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: center;
}

.market-table .market-cell-tags {
  white-space: nowrap;
}

.market-table .market-item-tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.market-table .market-enchant {
  display: inline-block;
  font-size: 10px;
  padding: 1px 5px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.08);
  white-space: nowrap;
}

.market-table .market-grade-tag,
.market-table .market-attr-tag {
  font-size: 10px;
  padding: 1px 5px;
}

.market-table .market-cell-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.market-grade-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* market grade: bless=gold curse=red */
.market-grade-bless {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fbbf24;
}

.market-grade-normal {
  color: #57534e;
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
}

.market-grade-curse {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.market-attr-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.market-attr-empty {
  color: var(--muted);
  font-size: 12px;
}

.market-attr-fire {
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fb923c;
}

.market-attr-water {
  color: #1e40af;
  background: #dbeafe;
  border: 1px solid #60a5fa;
}

.market-attr-earth {
  color: #365314;
  background: #ecfccb;
  border: 1px solid #84cc16;
}

.market-attr-wind {
  color: #0f766e;
  background: #ccfbf1;
  border: 1px solid #2dd4bf;
}

.market-attr-other,
.market-attr-none {
  color: #57534e;
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
}

.market-list .market-grade-tag {
  margin-left: 0;
  font-size: 10px;
  padding: 1px 5px;
  vertical-align: middle;
}

.market-list .market-attr-tag {
  margin-left: 0;
  font-size: 10px;
  padding: 1px 5px;
  vertical-align: middle;
}

.market-list .market-enchant {
  font-size: 10px;
  padding: 1px 5px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.08);
  white-space: nowrap;
}

.market-empty {
  margin: 12px 0;
  font-size: 13px;
}

.market-empty-item {
  justify-content: center;
  border-bottom: none;
}

/* Ranking panel */
.rank-panel {
  min-height: 340px;
}

.rank-panel .panel-head-title {
  gap: 2px;
}

.rank-panel .panel-body-scroll {
  max-height: 380px;
  overflow-y: auto;
  padding: 0;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}

.rank-list li.rank-panel-item {
  align-items: center;
}

.rank-panel-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rank-panel-body--inline {
  flex-direction: row;
  align-items: center;
}

.rank-panel-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.rank-panel-main .rank-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.rank-panel-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 11px;
  white-space: nowrap;
}

.rank-panel-meta .rank-class {
  color: #777;
  font-weight: 600;
}

.rank-panel-meta .rank-lv {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
}

.rank-panel-bonus {
  margin: 0;
  padding-left: 1px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #756045;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-list li:last-child {
  border-bottom: none;
}

.rank-icon,
.rank-crown {
  flex-shrink: 0;
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  object-position: center center;
}

.rank-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.rank-table .rank-icon,
.rank-table .rank-crown {
  margin: 0 auto;
}

.rank-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
}

.rank-lv {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
}

.rank-lv-empty {
  color: var(--muted);
  font-weight: 500;
}

.rank-class {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

.rank-class-icon {
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 146, 10, 0.42);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  background: #1a1208;
}

.rank-class-icon--panel {
  width: 30px;
  height: 30px;
}

.rank-class-icon--table {
  width: 34px;
  height: 34px;
}

.rank-class-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rank-class-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.rank-sex {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  color: #888;
  background: #f3f3f3;
  border-radius: 4px;
  vertical-align: middle;
}

.rank-panel-meta .rank-sex {
  margin-left: 0;
}

.rank-panel-item--empty .rank-name,
.rank-panel-item--empty .rank-lv-empty,
.rank-row-empty .rank-cell-name,
.rank-row-empty .rank-cell-lv,
.rank-class-cell--empty {
  color: var(--muted);
}

.rank-panel-item--empty {
  opacity: 0.72;
}

.rank-list li.rank-panel-item {
  gap: 8px;
}

.rank-panel-meta .rank-class {
  display: none;
}

.rank-table th,
.rank-table td {
  text-align: center;
  vertical-align: middle;
}

.rank-table .rank-cell-name {
  text-align: center;
  font-weight: 600;
}

.rank-table .rank-cell-class {
  color: var(--muted);
  font-size: 13px;
}

.rank-table .rank-cell-lv {
  font-weight: 700;
  color: var(--gold);
}

.rank-top5-guide {
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffbf0 0%, #fff8e8 100%);
  border: 1px solid rgba(201, 146, 10, 0.3);
  box-shadow: 0 2px 10px rgba(201, 146, 10, 0.08);
}

.rank-top5-guide-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.rank-top5-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-top5-guide-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(201, 146, 10, 0.15);
}

.rank-top5-guide-rank.rank-icon,
.rank-top5-guide-rank.rank-crown {
  min-width: 0;
  padding: 0;
}

.rank-top5-guide-bonus,
.rank-bonus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.rank-bonus-chip {
  display: inline-block;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #4a3c28;
  background: #fff;
  border: 1px solid rgba(196, 165, 116, 0.45);
  border-radius: 999px;
  white-space: nowrap;
}

.rank-top5-guide-item-1 .rank-bonus-chip {
  border-color: rgba(201, 146, 10, 0.5);
  background: #fffdf5;
}

.rank-table .rank-cell-bonus {
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  min-width: 280px;
}

.rank-table .rank-bonus-chips {
  justify-content: center;
}

.rank-bonus-text {
  display: inline-block;
  color: #5c4a2a;
}

.rank-bonus-empty {
  color: var(--muted);
}

.rank-table tr.rank-top5-row {
  background: rgba(255, 248, 232, 0.45);
}

.rank-list li.rank-top5-row {
  background: #faf9f6;
}

.rank-list li.rank-top5-row:nth-child(1) {
  background: #fffbf0;
}

/* ===== GUIDE CAROUSEL ===== */
.section-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1a1a1a;
  color: #888;
  padding: 28px 20px;
  margin-top: 20px;
  font-size: 12px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-links a { color: #aaa; font-size: 12px; }
.footer-links a:hover { color: var(--gold-light); }

/* ===== FLOAT SIDEBAR ===== */
.float-side {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: rgba(20,20,20,0.88);
  border: 1px solid #444;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
}

.float-btn:hover {
  background: var(--gold);
  color: #fff;
  text-decoration: none;
}

.float-btn.hidden { display: none; }

/* ===== POPUP ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-overlay.show { display: flex; }

.popup-box {
  background: #fff;
  max-width: 420px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.popup-head {
  background: var(--header);
  color: var(--gold-light);
  padding: 14px 18px;
  font-weight: 800;
}

.popup-body {
  padding: 20px 18px;
  font-size: 14px;
  line-height: 1.7;
}

.popup-actions {
  padding: 12px 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.chk-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}

.btn {
  padding: 8px 20px;
  border: none;
  border-radius: 2px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: var(--gold);
  color: #fff;
}

/* ===== SUB PAGES ===== */
.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.page-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 900;
}

.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 16px;
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.cs-kakao-lead {
  margin: 0 0 16px;
  font-size: 14px;
}

.cs-kakao-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #fee500;
  color: #3c1e1e !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #e6c200;
  transition: background 0.15s, transform 0.15s;
}

.cs-kakao-btn:hover {
  background: #ffe033;
  transform: translateY(-1px);
  text-decoration: none;
  color: #3c1e1e !important;
}

.cs-kakao-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.cs-kakao-icon .kakao-icon-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* ===== WORLD SUBPAGES (시세·랭킹·공성·보스) ===== */
.world-page .guide-hero {
  margin-bottom: 16px;
}

.world-page .content-card {
  padding: 24px 28px 32px;
}

.world-page .world-placeholder {
  margin: 0;
  text-align: center;
  line-height: 1.75;
}

.boss-page .notice-sub:first-child,
.guide-prose .commands-body .notice-sub:first-child {
  margin-top: 0;
}

/* ===== CHARACTER LOOKUP ===== */
.char-search-form {
  margin-bottom: 20px;
}

.char-search-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.char-search-row {
  display: flex;
  gap: 8px;
}

.char-search-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
}

.char-search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.char-search-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.char-search-btn:hover {
  background: var(--gold-hover);
}

.char-result {
  min-height: 120px;
}

.char-message {
  padding: 18px 16px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.char-message.is-muted {
  background: var(--bg-soft);
  color: var(--muted);
}

.char-message.is-loading {
  background: var(--bg-soft);
  color: var(--text);
}

.char-message.is-empty,
.char-message.is-warn {
  background: #fff8e8;
  color: #7a5a20;
}

.char-message.is-error {
  background: #fff0f0;
  color: #a33;
}

.char-profile {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.char-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #faf8f4 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.char-name {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.char-meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.char-title-line,
.char-clan-line {
  margin: 6px 0 0;
  font-size: 13px;
  color: #666;
}

.char-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.char-tag-rank {
  background: #fff8dc;
  color: #b8860b;
  border: 1px solid rgba(201, 146, 10, 0.35);
}

.char-rank-bonus {
  padding: 12px 22px;
  background: rgba(255, 248, 232, 0.7);
  border-bottom: 1px solid var(--line);
}

.char-rank-bonus-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #9a7b2f;
}

.char-rank-bonus-text {
  font-size: 13px;
  line-height: 1.5;
  color: #5c4a2a;
}

.char-bars {
  padding: 18px 22px;
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.char-bar-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.char-bar-num {
  color: var(--muted);
  font-weight: 600;
}

.char-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
}

.char-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.char-bar-fill.is-hp {
  background: linear-gradient(90deg, #e74c3c, #ff7675);
}

.char-bar-fill.is-mp {
  background: linear-gradient(90deg, #3498db, #74b9ff);
}

.char-section {
  padding: 18px 22px 22px;
}

.char-section-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
}

.char-section:has(.char-stat-grid) .char-section-title {
  text-align: center;
}

.char-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.char-stat-item {
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  text-align: center;
}

.char-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.char-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.char-stat-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.char-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 22px 22px;
}

.char-info-item {
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.char-info-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.char-info-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .char-stat-grid,
  .char-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .char-profile-head {
    flex-direction: column;
  }
}

.my-login-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 16px;
}

.my-login-panel {
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  padding: 28px 26px 24px;
}

.my-login-panel-head {
  text-align: center;
  margin-bottom: 22px;
}

.my-login-title {
  margin: 0 0 8px;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold, #9a7b4f);
}

.my-login-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.my-login-form {
  display: grid;
  gap: 8px;
}

.my-login-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}

.my-login-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}

.my-login-input:focus {
  outline: none;
  border-color: var(--gold-dim, #c4a574);
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.15);
}

.my-login-submit {
  margin-top: 10px;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #b8925a 0%, #9a7b4f 100%);
}

.my-login-submit:hover {
  filter: brightness(1.05);
}

.my-login-btn {
  margin-top: 6px;
}

.my-login-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.my-login-note.is-loading {
  color: var(--gold, #9a7b4f);
}

.my-login-note.is-warn,
.my-login-note.is-error {
  color: #c45c26;
}

.my-char-list-head,
.my-char-detail-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.my-char-list-head-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.my-char-updated {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.my-char-detail .my-char-updated {
  margin: -8px 0 16px;
}

.my-char-account {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

.my-char-logout,
.my-char-back {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.my-char-logout:hover,
.my-char-back:hover {
  border-color: var(--gold-dim);
}

.my-char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.my-char-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.my-char-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-1px);
}

.my-char-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.my-char-card-name {
  margin: 0;
  font-size: 18px;
}

.my-char-card-meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.my-char-card-bars {
  margin-bottom: 12px;
}

.my-char-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.my-char-card-more {
  display: inline-block;
  font-size: 12px;
  color: var(--gold);
}

.char-tag-online {
  background: rgba(72, 187, 120, 0.15);
  color: #68d391;
}

.char-tag-offline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.my-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.my-inv-group + .my-inv-group {
  margin-top: 14px;
}

.my-inv-title {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--gold);
}

.my-inv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.my-inv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.my-inv-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.my-inv-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.my-inv-list .market-grade-tag,
.my-inv-list .market-attr-tag,
.my-inv-list .market-enchant {
  font-size: 10px;
  padding: 1px 5px;
}

.my-inv-list .market-enchant {
  color: var(--gold);
  font-weight: 700;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.08);
}

.my-inv-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.my-inv-meta {
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .my-char-card-stats,
  .my-status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.guide-prose .commands-body td.hl-blue {
  font-family: Consolas, "Malgun Gothic", monospace;
  font-size: 13px;
  white-space: nowrap;
  width: 28%;
  font-weight: 700;
}

.boss-body .data-table td.muted,
.guide-prose .commands-body td.muted {
  font-size: 13px;
  line-height: 1.65;
}

.boss-body .data-table:not(.data-table-grid) td:first-child {
  width: 26%;
  min-width: 108px;
  vertical-align: top;
}

.boss-body .data-table-grid th,
.boss-body .data-table-grid td {
  vertical-align: top;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th, .data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table th {
  width: 30%;
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 600;
}

/* 시세표: data-table 기본 left 정렬 덮어쓰기 */
/* market table v2 center */
.data-table.market-table th,
.data-table.market-table td {
  text-align: center;
  vertical-align: middle;
}

.data-table.market-table th {
  width: auto;
}

/* 랭킹표: data-table 기본 left 정렬 덮어쓰기 */
.data-table.rank-table th,
.data-table.rank-table td {
  text-align: center;
  vertical-align: middle;
}

.data-table.rank-table th {
  width: auto;
  background: var(--bg-soft);
}

.data-table-grid th,
.data-table-grid td {
  text-align: center;
}

.data-table-grid th:first-child,
.data-table-grid td:first-child {
  text-align: center;
}

.data-table-grid th:nth-child(2),
.data-table-grid td:nth-child(2) {
  text-align: left;
}

/* 자동사냥 사냥터 표 전용 정렬/폭 */
.autohunt-field-table {
  table-layout: fixed;
}

.autohunt-field-table th {
  width: auto;
  white-space: nowrap;
}

.autohunt-field-table th:nth-child(1),
.autohunt-field-table td:nth-child(1) { width: 14%; }

.autohunt-field-table th:nth-child(2),
.autohunt-field-table td:nth-child(2) {
  width: 19%;
  text-align: center;
}

.autohunt-field-table th:nth-child(3),
.autohunt-field-table td:nth-child(3) { width: 35%; }

.autohunt-field-table th:nth-child(4),
.autohunt-field-table td:nth-child(4) { width: 18%; }

.autohunt-field-table th:nth-child(5),
.autohunt-field-table td:nth-child(5) {
  width: 14%;
  white-space: nowrap;
}

.notice-article-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  border: none;
  padding: 0;
}

.notice-article-date {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
}

.notice-prose {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.notice-prose .notice-lead {
  margin: 0 0 16px;
}

.notice-prose .notice-h3 {
  margin: 20px 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.notice-prose .notice-sub {
  margin: 16px 0 8px;
  font-size: 14px;
}

.notice-prose .notice-list {
  margin: 0 0 16px;
  padding-left: 20px;
}

.notice-prose .notice-list li {
  margin-bottom: 6px;
}

.notice-prose .notice-box {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
}

.notice-prose .notice-panel {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.notice-prose .notice-panel-title {
  margin: 0 0 8px;
  font-size: 15px;
}

.notice-prose .notice-note {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
}

.notice-prose .hl-gold { color: #a07818; }
.notice-prose .hl-orange { color: #c76a1a; }
.notice-prose .hl-red { color: #c0392b; }
.notice-prose .hl-blue { color: #2e6da4; }
.notice-prose .hl-purple { color: #7b5ea8; }
.notice-prose .muted { color: var(--muted); font-size: 13px; }

/* ===== GUIDE PAGE (옛날서버) ===== */
.guide-body {
  background: var(--bg);
}

.guide-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.guide-hero {
  margin: 0 0 16px;
  padding: 28px 24px 24px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f5eede 100%);
  border: 1px solid rgba(160, 120, 50, 0.45);
  border-radius: 6px;
  box-shadow: 0 2px 14px rgba(160, 120, 50, 0.12);
}

.guide-hero-eyebrow {
  margin: 0 0 8px;
  font-family: Cinzel, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #9a7018;
  text-transform: uppercase;
}

.guide-hero-title {
  margin: 0 0 8px;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #e8b830 0%, #b88818 45%, #8b5e10 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(139, 94, 16, 0.15));
}

.guide-hero-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.guide-hero-updated {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #999;
  font-variant-numeric: tabular-nums;
}

.guide-layout {
  display: flex;
  align-items: stretch;
  min-height: 520px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: var(--white);
  border: 1px solid rgba(160, 120, 50, 0.28);
  box-shadow: 0 2px 16px rgba(160, 120, 50, 0.07);
}

.guide-nav-backdrop {
  display: none;
}

.guide-sidebar-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(184, 136, 24, 0.25);
  background: #f8f2e8;
}

.guide-menu-close {
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #8b5e14;
}

.guide-nav {
  padding: 12px 0 16px;
}

.guide-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #f8f2e8 0%, #f3ece0 100%);
  border-right: 2px solid rgba(184, 136, 24, 0.35);
  overflow-y: auto;
}

.guide-sidebar-label {
  font-family: Cinzel, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8b5e14;
}

.guide-nav-group {
  margin-bottom: 6px;
  padding-top: 4px;
}

.guide-nav-group + .guide-nav-group {
  border-top: 1px solid rgba(184, 136, 24, 0.18);
  margin-top: 6px;
  padding-top: 10px;
}

.guide-nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 16px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #7a4e0a;
}

.guide-nav-label::before {
  content: "";
  width: 4px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #e8c040 0%, #b88818 100%);
  box-shadow: 0 0 6px rgba(184, 136, 24, 0.35);
}

.guide-nav-link {
  display: block;
  padding: 8px 16px 8px 28px;
  font-size: 13px;
  color: #666;
  border-left: 3px solid transparent;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}

.guide-nav-link:hover {
  color: #222;
  background: rgba(184, 136, 24, 0.1);
  text-decoration: none;
}

.guide-nav-link.is-active {
  color: #5c3a08;
  font-weight: 700;
  background: rgba(184, 136, 24, 0.16);
  border-left-color: #b88818;
}

.guide-nav-branch {
  display: block;
}

.guide-nav-sub {
  display: block;
  padding: 2px 0 4px;
}

.guide-nav-sub .guide-nav-sublink {
  padding: 6px 16px 6px 40px;
  font-size: 12px;
}

.guide-nav-parent-link.is-child-active {
  color: #5c3a08;
  font-weight: 600;
  background: rgba(184, 136, 24, 0.08);
}

.guide-main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.guide-main-toolbar {
  display: none;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.guide-menu-toggle {
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(180deg, #c9a030 0%, #a07818 100%);
  border: 1px solid #8b5e14;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(139, 94, 16, 0.25);
}

.guide-menu-toggle:hover {
  background: linear-gradient(180deg, #d4ab38 0%, #b88818 100%);
}

.guide-main {
  flex: 1;
  padding: 28px 32px 40px;
}

.guide-placeholder {
  text-align: center;
  padding: 72px 20px;
  color: var(--muted);
}

.guide-placeholder-mark {
  width: 48px;
  height: 2px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.guide-article-head {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(184, 136, 24, 0.45);
}

.guide-article-head h2 {
  margin: 0 0 6px;
  font-family: "Noto Serif KR", serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #6b4510;
}

.guide-article-date {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #8b5e14;
  padding: 3px 10px;
  background: rgba(184, 136, 24, 0.14);
  border: 1px solid rgba(184, 136, 24, 0.28);
  border-radius: 3px;
}

.guide-prose .notice-h3 {
  color: #6b4510;
  border-left: 3px solid #b88818;
  padding-left: 10px;
}

.guide-prose .notice-sub strong {
  color: #7a4e0a;
}

.guide-prose .notice-box {
  background: rgba(184, 136, 24, 0.1);
  border-left: 4px solid #b88818;
}

.guide-prose .guide-map-figure {
  margin: 14px 0 18px;
  text-align: center;
}

.guide-prose .guide-map-figure img {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(184, 136, 24, 0.35);
  box-shadow: 0 8px 24px rgba(40, 28, 8, 0.12);
}

.guide-prose .guide-map-figure figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
}

.guide-prose .hl-gold { color: #9a7018; font-weight: 700; }
.guide-prose .hl-orange { color: #c45a08; font-weight: 700; }
.guide-prose .hl-red { color: #b83228; font-weight: 700; }
.guide-prose .hl-blue { color: #1e5a96; font-weight: 700; }
.guide-prose .hl-purple { color: #6b42a0; font-weight: 700; }

@media (max-width: 640px) {
  .boss-page .content-card {
    padding: 18px 14px 24px;
  }
  .guide-prose .commands-body td.hl-blue {
    white-space: normal;
  }
}

.guide-prose .notice-panel {
  background: var(--bg-soft);
  border-color: var(--line);
}

/* ===== ITEM PAGE (옛날서버 · atn27형 목록+상세) ===== */
.item-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.item-hero {
  margin-bottom: 16px;
  padding: 24px 20px 20px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f5eede 100%);
  border: 1px solid rgba(160, 120, 50, 0.45);
  border-radius: 6px;
  box-shadow: 0 2px 14px rgba(160, 120, 50, 0.1);
}

.item-hero-eyebrow {
  margin: 0 0 6px;
  font-family: Cinzel, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #9a7018;
  text-transform: uppercase;
}

.item-hero-title {
  margin: 0 0 6px;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 900;
  background: linear-gradient(180deg, #e8b830 0%, #b88818 50%, #8b5e10 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.item-hero-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.item-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.item-search-wrap {
  flex: 1;
}

.item-search {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid rgba(160, 120, 50, 0.35);
  border-radius: 6px;
  background: var(--white);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.item-search:focus {
  border-color: #b88818;
  box-shadow: 0 0 0 3px rgba(184, 136, 24, 0.15);
}

.item-count {
  margin: 0;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #8b5e14;
  min-width: 48px;
  text-align: right;
}

.item-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.item-cat-btn {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  color: #7a4e0a;
  background: #f8f2e8;
  border: 1px solid rgba(184, 136, 24, 0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.item-cat-btn:hover {
  background: rgba(184, 136, 24, 0.14);
}

.item-cat-btn.is-active {
  color: #fff;
  background: linear-gradient(180deg, #c9a030 0%, #a07818 100%);
  border-color: #8b5e14;
  box-shadow: 0 2px 6px rgba(139, 94, 16, 0.25);
}

.item-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
  align-items: start;
}

.item-list-panel {
  background: var(--white);
  border: 1px solid rgba(160, 120, 50, 0.28);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(160, 120, 50, 0.06);
}

.item-table-wrap {
  max-height: 560px;
  overflow: auto;
}

.item-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.item-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.item-table th {
  padding: 11px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(180deg, #b88818 0%, #9a7018 100%);
  border-bottom: 2px solid #7a5510;
  white-space: nowrap;
}

.item-table th:first-child {
  width: 44px;
  text-align: center;
}

.item-row {
  cursor: pointer;
  transition: background 0.1s;
}

.item-row:hover {
  background: rgba(184, 136, 24, 0.08);
}

.item-row.is-selected {
  background: rgba(184, 136, 24, 0.16);
}

.item-row td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0ebe0;
  vertical-align: middle;
}

.item-cell-icon {
  text-align: center;
}

.item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 13px;
  font-weight: 800;
  color: #8b5e14;
  background: linear-gradient(145deg, #faf4e8, #ebe0cc);
  border: 1px solid rgba(184, 136, 24, 0.45);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.item-icon-img {
  padding: 3px;
  background: linear-gradient(180deg, #4a4034 0%, #2a2218 100%);
  border: 1px solid rgba(92, 74, 50, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.item-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.item-icon-fallback {
  line-height: 1;
}

.item-cell-name {
  font-weight: 700;
  color: #333;
}

.item-type-tag {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.item-empty {
  padding: 40px 16px !important;
  text-align: center;
  color: var(--muted);
}

.item-detail-panel {
  background: var(--white);
  border: 1px solid rgba(160, 120, 50, 0.35);
  border-radius: 6px;
  padding: 20px 18px 24px;
  min-height: 280px;
  box-shadow: 0 2px 14px rgba(160, 120, 50, 0.08);
  position: sticky;
  top: 74px;
}

.item-detail-panel.has-item {
  border-color: rgba(184, 136, 24, 0.55);
}

.item-detail-empty {
  text-align: center;
  padding: 48px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.item-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(184, 136, 24, 0.4);
}

.item-detail-head .item-icon {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.item-detail-head h2 {
  margin: 0 0 4px;
  font-family: "Noto Serif KR", serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #6b4510;
}

.item-detail-type {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #9a7018;
}

.item-detail-summary {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 13px;
  background: rgba(184, 136, 24, 0.1);
  border-left: 3px solid #b88818;
  border-radius: 0 4px 4px 0;
  color: #555;
}

.item-detail-table th {
  width: 38%;
  font-size: 12px;
  color: #8b5e14;
  background: #faf6ef;
}

.item-detail-table td {
  font-size: 13px;
  font-weight: 500;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 16px;
  }
  .panel { min-height: 280px; }
  .quick-inner { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .brand {
    margin-right: 4px;
  }
  .brand-name-line {
    font-size: 1.22rem;
  }
  .brand-season {
    font-size: 0.95rem;
  }
  .nav-main {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #111;
    border-bottom: 1px solid #333;
    padding: 8px 0;
  }
  .nav-main.open { display: block; }
  .nav-main > ul { flex-direction: column; }
  .nav-dropdown {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding-left: 20px;
    background: transparent;
  }
  .main-grid {
    grid-template-columns: 1fr;
    padding: 16px 12px;
    gap: 12px;
  }
  .panel {
    min-height: 0;
  }
  .market-panel .panel-body {
    padding: 0 10px 8px;
  }
  .market-list {
    max-height: none;
  }
  .market-list li {
    gap: 4px;
  }
  .market-list .market-item-name,
  .market-list .market-name {
    max-width: 36%;
    white-space: normal;
    line-height: 1.35;
  }
  .market-list .market-item-tags {
    flex-wrap: wrap;
  }
  .market-search-form input[type="search"] {
    font-size: 16px;
  }
  .market-search-form--full {
    max-width: none;
  }
  .rank-panel .panel-body-scroll {
    max-height: 320px;
  }
  .page-wrap {
    padding: 20px 12px 36px;
  }
  .content-card {
    padding: 18px 14px;
  }
  .quick-inner { grid-template-columns: repeat(4, 1fr); }
  .hero-title-brand { font-size: clamp(3.1rem, 14vw, 4.6rem); }
  .hero-classic-text { font-size: clamp(1.1rem, 4.2vw, 1.4rem); }
  .hero-tagline { font-size: clamp(1.15rem, 4.8vw, 1.5rem); }
  .hero-status-pill { font-size: 14px; padding: 9px 20px; }

  .guide-prose .data-table,
  .notice-prose .data-table {
    font-size: 13px;
  }
  .guide-article-body,
  .notice-prose,
  .boss-body,
  .commands-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .data-table th,
  .data-table td {
    padding: 9px 10px;
  }
  .guide-main-toolbar { display: block; }
  .guide-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 250;
    width: min(260px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
  }
  .guide-sidebar-head { display: flex; }
  .guide-layout.nav-open .guide-sidebar { transform: translateX(0); }
  .guide-layout.nav-open .guide-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 240;
    background: rgba(0, 0, 0, 0.25);
  }
  .guide-main { padding: 20px 16px 28px; }
  .guide-layout { min-height: 360px; }
}

@media (max-width: 900px) {
  .item-layout {
    grid-template-columns: 1fr;
  }
  .item-detail-panel {
    position: static;
  }
  .item-table-wrap {
    max-height: 420px;
  }
}

@media (max-width: 480px) {
  .quick-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 16px 12px;
  }
  .quick-icon { width: 46px; height: 46px; }
  .quick-icon svg { width: 22px; height: 22px; }
  .quick-item-kakao .kakao-icon-img { width: 46px; height: 46px; }
  .quick-label { font-size: 11px; }
  .panel-head {
    padding: 12px 88px 8px 12px;
  }
  .panel-head .more {
    right: 10px;
    padding: 4px 8px;
    font-size: 10px;
  }
  .panel-head h2 {
    font-size: 16px;
  }
  .list-rows li a {
    padding: 8px 12px;
    font-size: 12px;
  }
  .market-search-form {
    padding: 6px 0 4px;
    gap: 4px;
  }
  .market-search-form button {
    padding: 10px 12px;
    font-size: 12px;
  }
  .market-list li {
    padding: 8px 2px;
    font-size: 11px;
  }
  .market-list .market-price {
    font-size: 11px;
  }
  .page-title {
    font-size: 18px;
  }
  .item-page {
    padding: 16px 12px 32px;
  }
  .item-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .item-count {
    text-align: left;
  }
}
