/* ==========================================================
   오프홀덤 v4 — 전국 홀덤펍 정보 플랫폼 (실데이터 530+)
   deep green / warm gold / ivory · 가독성 최우선
   ========================================================== */

:root {
  --bg: #04160F;
  --bg-soft: #071E16;
  --header: rgba(5, 28, 20, 0.92);

  --surface: #0A2A1F;
  --surface-2: #0D3528;
  --surface-3: #123F30;

  --card: #08261C;
  --card-hover: #0E3729;

  --gold: #D6A24A;
  --gold-light: #F0C96A;
  --gold-dark: #9C6D24;

  --green: #1F8F62;
  --green-light: #2FBF7C;
  --green-dark: #0F5E42;

  --red: #E34D4D;
  --orange: #E59B3D;

  --text: #F7F0E2;
  --text-strong: #FFF8E8;
  --text-muted: #B7AD9A;
  --text-soft: #8A8071;

  --border: rgba(214, 162, 74, 0.22);
  --border-soft: rgba(247, 240, 226, 0.08);

  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.22);

  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --container: 1680px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: #04160F; }

body {
  font-family: "Pretendard", "SUIT", "Inter", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at 28% 0%, rgba(31, 143, 98, .18), transparent 36%),
    radial-gradient(circle at 85% 8%, rgba(214, 162, 74, .08), transparent 30%),
    linear-gradient(180deg, #04160F 0%, #062016 38%, #04160F 100%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; letter-spacing: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; letter-spacing: inherit; }
img { max-width: 100%; }

/* 숫자는 흔들리지 않게 */
.stat-value, .rating, .count, .time, .number, .num,
.mini-time, .sched-time, .calendar-day, .cal-num, .post-count {
  font-family: "Inter", "Pretendard", sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ic { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ic svg { display: block; }

/* ==========================================================
   Header
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: linear-gradient(180deg, rgba(4, 22, 15, 0.96), rgba(5, 28, 20, 0.86));
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.brand .ic { color: var(--gold); }
.brand-name { font-size: 25px; font-weight: 900; letter-spacing: -0.04em; color: var(--text-strong); }
.brand-tag { font-size: 13px; color: var(--text-muted); margin-top: 1px; font-weight: 600; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }

.nav-link {
  position: relative;
  padding: 24px 13px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .18s;
}
.nav-link:hover { color: var(--text-strong); }
.nav-link.is-active { color: var(--gold-light); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

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

.biz-free-link {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-light);
  white-space: nowrap;
  transition: color .16s;
}
.biz-free-link:hover { color: var(--gold); }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 15px;
  width: 230px;
  background: rgba(247, 240, 226, .05);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  transition: border-color .18s;
}
.search-box:focus-within { border-color: var(--border); }
.search-box .ic { color: var(--text-soft); }
.search-box input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.search-box input::placeholder { color: var(--text-soft); }

/* ==========================================================
   Buttons
   ========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  padding: 11px 19px;
  border: 1px solid transparent;
  transition: transform .16s, box-shadow .16s, border-color .16s, background .16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(145deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  color: #1B1206;
  box-shadow: 0 4px 14px rgba(214, 162, 74, .26);
}
.btn-gold:hover { box-shadow: 0 7px 20px rgba(214, 162, 74, .38); }

.btn-outline {
  background: rgba(247, 240, 226, .04);
  border-color: var(--border-soft);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--border); color: var(--text-strong); }

.btn-green {
  background: linear-gradient(145deg, var(--green-light), var(--green) 65%, var(--green-dark));
  color: #F5FFF9;
  box-shadow: 0 4px 14px rgba(31, 143, 98, .3);
}

.btn-danger {
  background: rgba(227, 77, 77, .12);
  border-color: rgba(227, 77, 77, .35);
  color: #F0A0A0;
}

.btn-sm { padding: 9px 15px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { padding: 15px 32px; font-size: 15.5px; border-radius: var(--radius-md); }
.btn-block { width: 100%; }

.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 26px; }
.load-more-note { font-size: 14px; color: var(--text-soft); }

/* ==========================================================
   Chips / 지역 탭
   ========================================================== */

.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }

.chip {
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(247, 240, 226, .04);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: all .16s;
}
.chip:hover { border-color: var(--border); color: var(--text); }
.chip.is-active {
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  border-color: rgba(47, 191, 124, .45);
  color: #F5FFF9;
}

.region-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 0;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.region-tabs::-webkit-scrollbar { display: none; }

.region-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(247, 240, 226, .04);
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: all .16s;
}
.region-tab:hover { border-color: var(--border); color: var(--text); }
.region-tab.is-active {
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  border-color: rgba(47, 191, 124, .45);
  color: #F5FFF9;
}

/* ==========================================================
   Layout / common
   ========================================================== */

.page-section { display: none; padding: 30px 0 70px; scroll-margin-top: 92px; }
.page-section.is-active { display: block; }

.page-head { margin-bottom: 26px; }
.page-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-strong);
  line-height: 1.25;
}
.page-desc { margin-top: 8px; font-size: 15.5px; color: var(--text-muted); font-weight: 500; }

.section-title {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-title .ic { color: var(--gold); }

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

.link-more { font-size: 14px; font-weight: 700; color: var(--text-muted); transition: color .16s; background: none; border: none; }
.link-more:hover { color: var(--gold-light); }

.panel {
  background: linear-gradient(180deg, var(--surface), var(--card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.empty-state {
  padding: 52px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-lg);
}
.empty-state strong { display: block; font-size: 17px; color: var(--text); margin-bottom: 6px; }

.notice-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(214, 162, 74, .06);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.notice-strip .ic { color: var(--gold-light); }

/* ==========================================================
   HOME
   ========================================================== */

.notice-bar {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  padding: 13px 18px;
  background: linear-gradient(90deg, rgba(214, 162, 74, .09), rgba(214, 162, 74, .02) 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.notice-label {
  flex-shrink: 0;
  padding: 5px 13px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  color: #1B1206;
  font-size: 12.5px;
  font-weight: 900;
}
.notice-text {
  font-size: 14.5px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-text b { color: var(--gold-light); font-weight: 800; }
.notice-text .sep { color: var(--text-soft); margin: 0 8px; }

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

.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 22px;
  background: linear-gradient(160deg, var(--surface), var(--card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: border-color .18s;
}
.stat-card:hover { border-color: var(--border); }

.stat-icon {
  width: 50px; height: 50px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(214, 162, 74, .08);
  border: 1px solid var(--border);
  color: var(--gold);
}
.stat-icon.is-green { color: var(--green-light); border-color: rgba(47, 191, 124, .3); background: rgba(47, 191, 124, .08); }

.stat-label { font-size: 13.5px; color: var(--text-muted); font-weight: 600; }
.stat-value { font-size: 30px; font-weight: 900; color: var(--text-strong); line-height: 1.25; }
.stat-value small { font-size: 14px; font-weight: 700; color: var(--text-muted); margin-left: 2px; }

/* ==========================================================
   Venue cards
   ========================================================== */

.venue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.venue-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.venue-card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: var(--shadow); }

.venue-image {
  position: relative;
  height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(165deg, #0E3A2B, #071E16 70%);
}
.venue-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(4, 22, 15, 0) 55%, rgba(4, 22, 15, .45) 100%);
  pointer-events: none;
}

.venue-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.venue-sign { position: relative; z-index: 1; text-align: center; padding: 0 14px; }
.venue-sign .sign-main {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--gold-light);
  text-shadow: 0 0 18px rgba(240, 201, 106, .35), 0 2px 4px rgba(0, 0, 0, .5);
}
.venue-sign .sign-sub {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .26em;
  color: rgba(247, 240, 226, .5);
  text-transform: uppercase;
}

.venue-info { padding: 17px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.venue-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.venue-area {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.today-event {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(31, 143, 98, .1);
  border: 1px solid rgba(47, 191, 124, .2);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
}
.today-event .te-label { flex-shrink: 0; font-size: 12px; font-weight: 900; color: var(--green-light); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span {
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(247, 240, 226, .05);
  border: 1px solid var(--border-soft);
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 900; color: var(--gold-light); }
.rating .star { font-size: 14.5px; }
.card-actions { display: flex; gap: 7px; }

/* ==========================================================
   HOME — summary panels
   ========================================================== */

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

.summary-panel { padding: 22px 22px 20px; }
.summary-panel .section-head { margin-bottom: 13px; }
.summary-panel .section-title { font-size: 17.5px; }

.mini-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14.5px;
}
.mini-list li:last-child { border-bottom: none; }

.mini-time { flex-shrink: 0; font-weight: 800; color: var(--gold-light); font-size: 14px; width: 46px; }
.mini-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.mini-sub { flex-shrink: 0; font-size: 13px; color: var(--text-muted); }

.mini-new {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
}

.mini-rank {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  background: rgba(214, 162, 74, .12);
  color: var(--gold-light);
  border: 1px solid var(--border);
}

.guide-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 2px;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  background: none;
  text-align: left;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  transition: color .15s;
}
.guide-mini:hover { color: var(--gold-light); }
.guide-mini:last-child { border-bottom: none; }
.guide-mini .ic { color: var(--gold); }

/* ==========================================================
   MAP
   ========================================================== */

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
  gap: 18px;
  margin-top: 6px;
}

#offholdemMap {
  height: 680px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  background: var(--bg-soft);
  z-index: 1;
}

.map-fallback {
  height: 680px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-soft);
  color: var(--text-muted);
  font-size: 15px;
}

.oh-pin {
  width: 20px; height: 20px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  border: 2px solid rgba(255, 248, 232, .55);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.oh-pin::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1B1206; }
.oh-pin.is-selected {
  width: 30px; height: 30px;
  box-shadow: 0 0 0 7px rgba(214, 162, 74, .18), 0 6px 16px rgba(0, 0, 0, .55);
}

.leaflet-popup-content-wrapper {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.leaflet-popup-tip { background: var(--surface-2); border: 1px solid var(--border); }
.leaflet-popup-content { margin: 14px 16px; font-family: inherit; }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-muted); }
.leaflet-bar a { background: var(--surface-2); color: var(--text); border-bottom: 1px solid var(--border-soft); }
.leaflet-bar a:hover { background: var(--surface-3); color: var(--gold-light); }
.leaflet-control-attribution { background: rgba(4, 22, 15, .8) !important; color: var(--text-soft) !important; }
.leaflet-control-attribution a { color: var(--text-muted) !important; }

.map-popup-name { font-size: 15.5px; font-weight: 900; color: var(--text-strong); }
.map-popup-area { font-size: 13px; color: var(--text-muted); margin: 2px 0 10px; }

.map-side { display: flex; flex-direction: column; gap: 10px; max-height: 680px; overflow-y: auto; padding-right: 2px; }
.map-side::-webkit-scrollbar { width: 6px; }
.map-side::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }

.map-side-title { font-size: 17px; font-weight: 850; color: var(--text-strong); padding: 2px 2px 4px; }
.map-side-count { font-size: 13.5px; color: var(--text-soft); font-weight: 600; margin-left: 6px; }

.map-store {
  display: flex;
  gap: 13px;
  padding: 12px;
  background: linear-gradient(180deg, var(--surface), var(--card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .18s;
}
.map-store:hover { border-color: var(--border); }
.map-store.is-selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 162, 74, .12); }

.map-store-thumb {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 900;
  color: var(--gold-light);
  background: linear-gradient(160deg, #0E3A2B, #05130D);
  border: 1px solid var(--border-soft);
}
.map-store-thumb img { width: 100%; height: 100%; object-fit: cover; }

.map-store-info { flex: 1; min-width: 0; }
.map-store-name {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-strong);
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-store-area {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-store-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.map-store-foot .rating { font-size: 14px; }

/* ==========================================================
   SCHEDULE — 월간 캘린더 + 일정 리스트
   ========================================================== */

.sched-wrap { max-width: 1180px; }

.day-quick { display: flex; gap: 8px; margin-bottom: 16px; }
.day-quick .chip { padding: 9px 15px; font-size: 13.5px; }

.calendar {
  background: linear-gradient(180deg, var(--surface), var(--card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
}
.cal-title { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; color: var(--text-strong); }
.cal-nav { display: flex; gap: 7px; }
.cal-nav-btn {
  height: 38px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: rgba(247, 240, 226, .04);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  transition: all .15s;
}
.cal-nav-btn:hover { border-color: var(--border); color: var(--gold-light); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--border-soft);
}
.cal-weekdays span {
  padding: 11px 0;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-muted);
}
.cal-weekdays span:first-child { color: #E58A8A; }
.cal-weekdays span:last-child { color: #7FB8E8; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }

.cal-cell {
  position: relative;
  min-height: 96px;
  padding: 8px 9px;
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: none;
  border-top: 0;
  border-left: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background .14s;
}
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell:not(.is-empty):hover { background: rgba(247, 240, 226, .03); cursor: pointer; }

.cal-num {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.cal-cell.is-sun .cal-num { color: #E58A8A; }
.cal-cell.is-sat .cal-num { color: #7FB8E8; }
.cal-cell.is-empty .cal-num { color: var(--text-soft); opacity: .35; }

.cal-cell.is-today .cal-num {
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
}
.cal-cell.is-selected { background: rgba(31, 143, 98, .12); }
.cal-cell.is-selected .cal-num {
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  color: #F5FFF9;
  border: 0;
}

.cal-evts { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-evt {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(214, 162, 74, .1);
  border: 1px solid rgba(214, 162, 74, .18);
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-evt.is-more { color: var(--text-soft); background: none; border: none; padding: 0 7px; }

/* summary chips */
.sched-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0;
}
.sched-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(247, 240, 226, .04);
  border: 1px solid var(--border-soft);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.sched-chip b { color: var(--gold-light); font-weight: 900; }

/* 일정 리스트 */
.sched-list { display: flex; flex-direction: column; gap: 10px; }

.sched-date-head {
  font-size: 16px;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: -0.02em;
  margin: 14px 0 2px;
}
.sched-date-head:first-child { margin-top: 0; }

.sched-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(180deg, var(--surface), var(--card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: border-color .16s;
}
.sched-item:hover { border-color: var(--border); }

.sched-time {
  flex-shrink: 0;
  width: 62px;
  font-size: 19px;
  font-weight: 900;
  color: var(--gold-light);
}

.sched-thumb {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #0E3A2B, #05130D);
  border: 1px solid var(--border-soft);
  color: var(--gold);
}
.sched-thumb img { width: 100%; height: 100%; object-fit: cover; }

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

.sched-name-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.sched-venue {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-strong);
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-sep { color: var(--text-soft); font-weight: 600; flex-shrink: 0; }
.sched-region {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--gold-light);
}
.sched-region .ic { color: var(--green-light); }

.sched-hours { font-size: 13.5px; color: var(--text-muted); margin-top: 3px; font-weight: 600; }
.sched-tags { display: flex; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.sched-tags span { font-size: 13px; font-weight: 800; color: var(--green-light); }
.sched-addr {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-title-line { font-size: 14px; font-weight: 800; color: var(--gold-light); margin-top: 4px; }
.sched-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.sched-meta .region-chip {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(247, 240, 226, .05);
  border: 1px solid var(--border-soft);
}
.sched-meta .feat-chip {
  font-size: 12px;
  font-weight: 800;
  color: var(--green-light);
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(47, 191, 124, .1);
  border: 1px solid rgba(47, 191, 124, .25);
}

/* ==========================================================
   COMMUNITY
   ========================================================== */

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

.comm-layout {
  display: grid;
  grid-template-columns: minmax(0, 75fr) minmax(280px, 25fr);
  gap: 18px;
  align-items: start;
}

.post-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--card));
}

.post-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background .14s;
}
.post-row:hover { background: rgba(247, 240, 226, .03); }
.post-row:last-child { border-bottom: none; }

.post-head { display: flex; align-items: center; gap: 9px; }

.avatar {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 900;
  color: #1B1206;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
}
.avatar.av-green { background: linear-gradient(145deg, var(--green-light), var(--green-dark)); color: #F5FFF9; }

.post-author { font-size: 14px; font-weight: 800; color: var(--text); }
.post-time { font-size: 12.5px; color: var(--text-soft); font-weight: 600; }

.post-title {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-row:hover .post-title { color: var(--gold-light); }

.post-preview {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 600;
}
.post-meta .post-count { color: var(--text-muted); }

.comm-side { display: flex; flex-direction: column; gap: 14px; }
.side-panel { padding: 19px 20px; }
.side-panel .section-title { font-size: 16.5px; margin-bottom: 12px; }

.hot-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.hot-list li:hover .hot-title { color: var(--gold-light); }
.hot-list li:last-child { border-bottom: none; }
.hot-list .hot-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }

.policy-box {
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: rgba(227, 77, 77, .05);
  border: 1px solid rgba(227, 77, 77, .2);
}
.policy-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 5px;
}
.policy-box p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* 게시글 상세 모달 */
.post-detail-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.post-detail-head .avatar { width: 40px; height: 40px; font-size: 16px; }
.pd-author { font-size: 15px; font-weight: 850; color: var(--text-strong); }
.pd-time { font-size: 13px; color: var(--text-soft); margin-top: 1px; }

.pd-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(247, 240, 226, .03);
  border: 1px solid var(--border-soft);
  margin-bottom: 18px;
  white-space: pre-line;
}

.pd-stats { font-size: 13.5px; color: var(--text-soft); font-weight: 600; margin-bottom: 18px; }

.comment-sec-title { font-size: 16px; font-weight: 900; color: var(--text-strong); margin-bottom: 12px; }

.comment-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.comment-item { display: flex; gap: 10px; }
.comment-item .avatar { width: 30px; height: 30px; font-size: 12.5px; }
.comment-bubble {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(247, 240, 226, .04);
  border: 1px solid var(--border-soft);
}
.comment-author { font-size: 13px; font-weight: 800; color: var(--gold-light); }
.comment-text { font-size: 14px; color: var(--text); margin-top: 2px; line-height: 1.6; }
.comment-time { font-size: 12px; color: var(--text-soft); margin-top: 4px; }

.comment-form { display: flex; gap: 8px; }
.comment-form .form-input { flex: 1; }
.comment-nick { width: 110px; flex: 0 0 auto; }

/* ==========================================================
   GUIDE
   ========================================================== */

.step-panel { padding: 24px 24px 22px; margin-bottom: 22px; }
.step-panel-title { font-size: 18px; font-weight: 900; color: var(--gold-light); margin-bottom: 16px; }

.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.step-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(247, 240, 226, .03);
  border: 1px solid var(--border-soft);
}

.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 19px;
  font-weight: 900;
  color: #1B1206;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
}

.step-name { font-size: 16px; font-weight: 850; color: var(--text-strong); }
.step-desc { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.guide-card {
  display: flex;
  flex-direction: column;
  padding: 22px 21px 19px;
  background: linear-gradient(180deg, var(--surface), var(--card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: border-color .18s, transform .18s;
}
.guide-card:hover { border-color: var(--border); transform: translateY(-3px); }

.guide-icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(214, 162, 74, .08);
  border: 1px solid var(--border);
  color: var(--gold);
  margin-bottom: 13px;
}

.guide-name { font-size: 17px; font-weight: 900; letter-spacing: -0.03em; color: var(--text-strong); line-height: 1.35; }
.guide-desc { font-size: 14px; color: var(--text-muted); margin-top: 6px; margin-bottom: 16px; flex: 1; }

/* ==========================================================
   홀덤족보 (jokbo)
   ========================================================== */

.jokbo-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 34px;
}

.jokbo-hero-left .page-title { font-size: 42px; }

.jokbo-pills { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.jokbo-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(247, 240, 226, .04);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-muted);
}
.jokbo-pill .ic { color: var(--green-light); }

.jokbo-best {
  padding: 24px 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--surface-2), var(--card));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.jokbo-best-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 900;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.jokbo-best-name { font-size: 27px; font-weight: 900; letter-spacing: -0.03em; color: var(--text-strong); margin-bottom: 14px; }
.jokbo-best-desc { font-size: 14.5px; color: var(--text-muted); margin-top: 14px; }

/* playing cards */
.pcards { display: flex; gap: 7px; flex-wrap: wrap; }
.pcard {
  width: 52px; height: 70px;
  border-radius: 8px;
  background: linear-gradient(170deg, #FFFDF6, #F3EEDF);
  border: 1px solid rgba(0, 0, 0, .18);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #17211B;
  flex-shrink: 0;
}
.pcard .pc-rank { font-size: 19px; font-weight: 900; line-height: 1.1; font-family: "Inter", "Pretendard", sans-serif; }
.pcard .pc-suit { font-size: 20px; line-height: 1.1; }
.pcard.is-red { color: #C43B3B; }
.pcard.sm { width: 42px; height: 57px; border-radius: 7px; }
.pcard.sm .pc-rank { font-size: 15px; }
.pcard.sm .pc-suit { font-size: 16px; }

.jokbo-sec-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin-bottom: 16px;
}

.jokbo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}

.jokbo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface), var(--card));
  border: 1px solid var(--border-soft);
  transition: border-color .16s;
}
.jokbo-row:hover { border-color: var(--border); }
.jokbo-row.is-top { border-color: rgba(214, 162, 74, .4); background: linear-gradient(180deg, var(--surface-2), var(--card)); }

.jokbo-rank {
  flex-shrink: 0;
  width: 44px;
  font-size: 25px;
  font-weight: 900;
  color: var(--gold-light);
  text-align: center;
  font-family: "Inter", "Pretendard", sans-serif;
}

.jokbo-info { flex: 1; min-width: 0; }
.jokbo-name { font-size: 17.5px; font-weight: 900; letter-spacing: -0.03em; color: var(--text-strong); }
.jokbo-desc { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }

.jokbo-bottom {
  display: grid;
  grid-template-columns: 4fr 4fr 4fr;
  gap: 16px;
  margin-top: 34px;
}

.jokbo-panel { padding: 22px; }
.jokbo-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17.5px;
  font-weight: 900;
  color: var(--text-strong);
  margin-bottom: 16px;
}
.jokbo-panel-title .ic { color: var(--gold); }

.tip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tip-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  padding: 16px 12px;
  border-radius: var(--radius-md);
  background: rgba(247, 240, 226, .03);
  border: 1px solid var(--border-soft);
}
.tip-tile .ic {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(47, 191, 124, .12);
  color: var(--green-light);
}
.tip-cond { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.tip-name { font-size: 16.5px; font-weight: 900; color: var(--gold-light); }
.tip-note { font-size: 12.5px; color: var(--text-soft); }

.vs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
  font-weight: 800;
}
.vs-row:last-child { border-bottom: none; }
.vs-badge {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  color: var(--gold-light);
  border: 1px solid var(--border);
  background: rgba(214, 162, 74, .08);
}
.vs-win { color: var(--text-strong); }
.vs-lose { color: var(--text-muted); font-weight: 700; }
.vs-note { margin-left: auto; font-size: 13px; color: var(--text-muted); font-weight: 600; text-align: right; }

.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 2px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  transition: color .15s;
}
.faq-q:hover { color: var(--gold-light); }
.faq-q .faq-arrow { transition: transform .2s; color: var(--text-soft); }
.faq-item.is-open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 2px 15px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.is-open .faq-a { display: block; }

.jokbo-cta {
  margin-top: 30px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--surface-2), var(--card));
  border: 1px solid var(--border);
}
.jokbo-cta .ic {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(214, 162, 74, .1);
  border: 1px solid var(--border);
  color: var(--gold-light);
}
.jokbo-cta-text { flex: 1; min-width: 240px; }
.jokbo-cta-title { font-size: 19px; font-weight: 900; color: var(--text-strong); }
.jokbo-cta-sub { font-size: 14px; color: var(--text-muted); margin-top: 3px; }
.jokbo-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.jokbo-seo {
  margin-top: 30px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: rgba(247, 240, 226, .02);
  border: 1px solid var(--border-soft);
}
.jokbo-seo h2 { font-size: 18px; font-weight: 900; color: var(--text-strong); margin-bottom: 10px; }
.jokbo-seo p { font-size: 14.5px; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.jokbo-seo p:last-child { margin-bottom: 0; }

/* ==========================================================
   NEW OPEN
   ========================================================== */

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

.new-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .2s, border-color .2s;
}
.new-card:hover { transform: translateY(-4px); border-color: var(--border); }

.new-thumb {
  position: relative;
  height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(170deg, #10382A, #05130D 80%);
}
.new-thumb .venue-photo { z-index: 1; }

.new-badge {
  position: absolute;
  top: 13px; left: 13px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 7px;
  background: linear-gradient(145deg, #E86060, var(--red));
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .08em;
}

.new-sign { position: relative; z-index: 1; text-align: center; }
.new-sign .sign-main {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--gold-light);
  text-shadow: 0 0 22px rgba(240, 201, 106, .4), 0 2px 5px rgba(0, 0, 0, .55);
}
.new-sign .sign-sub {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .3em;
  color: rgba(247, 240, 226, .5);
  text-transform: uppercase;
}

.new-body { padding: 20px 21px 21px; display: flex; flex-direction: column; flex: 1; }
.new-name { font-size: 20px; font-weight: 900; letter-spacing: -0.03em; color: var(--text-strong); }
.new-area { font-size: 14px; color: var(--text-muted); margin-top: 3px; }

.open-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 900;
  color: var(--gold-light);
}
.open-date .ic { color: var(--gold); }

.new-actions { display: flex; gap: 9px; margin-top: 17px; }
.new-actions .btn { flex: 1; }

.cta-panel {
  margin-top: 32px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  background:
    radial-gradient(circle at 90% 20%, rgba(214, 162, 74, .1), transparent 45%),
    linear-gradient(160deg, var(--surface-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.cta-info { flex: 1; min-width: 280px; }
.cta-title { font-size: 23px; font-weight: 900; letter-spacing: -0.03em; color: var(--gold-light); }
.cta-desc { font-size: 15px; color: var(--text-muted); margin-top: 7px; }

.cta-features { display: flex; gap: 24px; margin-top: 18px; flex-wrap: wrap; }
.cta-feature { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--text-muted); }
.cta-feature .ic { color: var(--gold); }

/* ==========================================================
   Modals
   ========================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 10, 7, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-backdrop.is-open { display: flex; }

.modal {
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: linear-gradient(180deg, var(--surface-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  animation: modalIn .22s ease;
}
.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }

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

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 24px;
  background: linear-gradient(180deg, var(--surface-2), rgba(13, 53, 40, .92));
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(8px);
}
.modal-title { font-size: 20px; font-weight: 900; letter-spacing: -0.03em; color: var(--text-strong); }

.modal-close {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: rgba(247, 240, 226, .04);
  color: var(--text-muted);
  transition: all .15s;
  flex-shrink: 0;
}
.modal-close:hover { border-color: var(--border); color: var(--text-strong); }

.modal-body { padding: 22px 24px 26px; }

.modal-hero {
  position: relative;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  margin-bottom: 18px;
  background: linear-gradient(165deg, #0E3A2B, #05130D 80%);
}
.modal-hero .venue-sign { position: relative; z-index: 1; }
.modal-hero .sign-main { font-size: 30px; }
.modal-hero .venue-photo { z-index: 1; }

.modal-desc {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  padding: 15px 17px;
  border-radius: var(--radius-md);
  background: rgba(247, 240, 226, .03);
  border: 1px solid var(--border-soft);
  margin-bottom: 16px;
}

.info-rows { display: flex; flex-direction: column; margin-bottom: 16px; }
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14.5px;
}
.info-row:last-child { border-bottom: none; }
.info-row .ic { color: var(--gold); margin-top: 2px; }
.info-row .ir-label { flex-shrink: 0; width: 76px; color: var(--text-muted); font-weight: 700; }
.info-row .ir-value { flex: 1; color: var(--text-strong); font-weight: 600; }

.modal-note {
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background: rgba(214, 162, 74, .06);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ==========================================================
   Forms
   ========================================================== */

.form-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.form-tab {
  padding: 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: rgba(247, 240, 226, .03);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 800;
  transition: all .16s;
}
.form-tab.is-active {
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  border-color: transparent;
  color: #1B1206;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.is-single { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.is-full { grid-column: 1 / -1; }

.form-label { font-size: 13.5px; font-weight: 800; color: var(--text-muted); }
.form-label .req { color: var(--gold-light); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: rgba(4, 22, 15, .5);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  outline: none;
  transition: border-color .16s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--border); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-soft); }
.form-input.is-error, .form-file.is-error { border-color: rgba(227, 77, 77, .6); }

.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 84px; }

.form-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  background: rgba(4, 22, 15, .4);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
}
.form-file input[type="file"] { display: none; }
.form-file .file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.form-file .ic { color: var(--gold); }

.tag-check-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(247, 240, 226, .04);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.tag-check input { display: none; }
.tag-check.is-on {
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  border-color: rgba(47, 191, 124, .45);
  color: #F5FFF9;
}

.form-error { font-size: 13px; color: #F0A0A0; min-height: 18px; margin-top: 6px; }
.form-submit { margin-top: 12px; }

/* ==========================================================
   ADMIN
   ========================================================== */

.admin-login-wrap { max-width: 430px; margin: 60px auto 0; }
.admin-login-wrap .panel { padding: 30px; }
.admin-hint { font-size: 13px; color: var(--text-soft); margin-top: 12px; text-align: center; }

.admin-layout { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.admin-panel { padding: 24px; }
.admin-panel .section-title { margin-bottom: 15px; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-light);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 13px 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .td-strong { font-weight: 800; color: var(--text-strong); }
.admin-table .td-muted { color: var(--text-muted); font-size: 13.5px; }

.admin-thumb { width: 64px; height: 42px; border-radius: 7px; object-fit: cover; border: 1px solid var(--border-soft); display: block; }
.admin-thumb-empty {
  width: 64px; height: 42px;
  border-radius: 7px;
  border: 1px dashed var(--border-soft);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--text-soft);
}

.status-pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.status-approved { background: rgba(47, 191, 124, .12); color: var(--green-light); border: 1px solid rgba(47, 191, 124, .3); }

.table-scroll { overflow-x: auto; }

/* ==========================================================
   Footer / Toast
   ========================================================== */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: rgba(4, 20, 14, .5);
  padding: 32px 0 38px;
  margin-top: 20px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 900; color: var(--text-strong); }
.footer-brand .ic { color: var(--gold); }
.footer-note { font-size: 13.5px; color: var(--text-soft); line-height: 1.7; margin-top: 10px; max-width: 580px; }
.footer-links { display: flex; gap: 18px; font-size: 14px; color: var(--text-muted); }
.footer-links a:hover, .footer-links button:hover { color: var(--gold-light); }
.footer-links button { background: none; border: none; font-size: 14px; color: var(--text-muted); }

.toast {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 380px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--surface-2), var(--card));
  border: 1px solid var(--border);
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.toast.is-show { opacity: 1; transform: none; }
.toast .ic { color: var(--green-light); }

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1500px) {
  .venue-grid { grid-template-columns: repeat(3, 1fr); }
  .jokbo-bottom { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1280px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-tag { display: none; }
  .search-box { width: 180px; }
  .biz-free-link { display: none; }
  .jokbo-hero { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .venue-grid { grid-template-columns: repeat(2, 1fr); }
  .map-layout, .comm-layout { grid-template-columns: 1fr; }
  #offholdemMap, .map-fallback { height: 460px; }
  .map-side { max-height: none; }
  .guide-grid, .new-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: 1fr; }
  .jokbo-grid { grid-template-columns: 1fr; }
  .jokbo-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .header-inner { gap: 14px; }
  .search-box { display: none; }
  .nav-link { padding: 24px 9px; font-size: 14px; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .brand-name { font-size: 20px; }
  .venue-grid, .summary-grid, .new-grid, .guide-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .page-title { font-size: 28px; }
  .jokbo-hero-left .page-title { font-size: 32px; }
  .cta-panel { padding: 24px 20px; }
  .header-actions .btn-outline { display: none; }
  .notice-text { white-space: normal; }
  .form-grid { grid-template-columns: 1fr; }
  .toast { right: 16px; bottom: 16px; left: 16px; max-width: none; }
  .cal-cell { min-height: 64px; padding: 5px 5px; }
  .cal-evts { display: none; }
  .cal-dots { display: flex; gap: 3px; }
  .sched-item { flex-wrap: wrap; }
  .sched-time { width: auto; }
  .tip-grid { grid-template-columns: 1fr 1fr; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal {
    max-width: none;
    max-height: 90vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    animation: sheetIn .24s ease;
  }
  @keyframes sheetIn {
    from { transform: translateY(40px); opacity: .6; }
    to { transform: none; opacity: 1; }
  }
}

.cal-dots { display: none; }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ==========================================================
   v6 — 홀덤판 브랜드 / 히어로 / 포스터 게시판 / 위젯 / 내 매장 관리
   ========================================================== */

.brand-tm { font-size: .45em; font-weight: 800; color: var(--gold); vertical-align: super; margin-left: 2px; }

/* 히어로 */
.hero { padding: 34px 0 6px; text-align: left; }
.hero-title {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-strong);
  line-height: 1.2;
}
.hero-title .hero-bar { color: var(--gold); font-weight: 700; margin: 0 6px; }
.hero-sub { margin-top: 10px; font-size: 17px; font-weight: 600; color: var(--text-muted); }

.kw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.kw-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: linear-gradient(160deg, var(--surface), var(--card));
  text-align: left;
  transition: transform .18s, border-color .18s;
}
.kw-card:hover { transform: translateY(-2px); border-color: var(--border); }
.kw-name { font-size: 17px; font-weight: 900; letter-spacing: -0.03em; color: var(--gold-light); }
.kw-sub { font-size: 13.5px; font-weight: 600; color: var(--text-muted); }

/* 대시보드형 위젯 (버튼형 필터 아님) */
.widget { padding: 20px 20px 16px; }
.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin-bottom: 10px;
}
.widget-title .ic { color: var(--gold); }
.widget-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }

.widget-rows { display: flex; flex-direction: column; }
.widget-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 2px;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  background: none;
  text-align: left;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  transition: color .15s;
}
.widget-row:last-child { border-bottom: 0; }
.widget-row .ic {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(214, 162, 74, .08);
  border: 1px solid var(--border);
  color: var(--gold);
}
.widget-row .ic.is-green { background: rgba(47, 191, 124, .08); border-color: rgba(47, 191, 124, .3); color: var(--green-light); }
.widget-row .wr-label { flex: 1; min-width: 0; }
.widget-row .wr-count { flex-shrink: 0; font-weight: 900; font-size: 15.5px; color: var(--gold-light); }
button.widget-row { cursor: pointer; }
button.widget-row:hover .wr-label { color: var(--gold-light); }
.widget-row.is-active .wr-label { color: var(--green-light); }
.widget-row.is-active .wr-count { color: var(--green-light); }

/* 일정 2단 레이아웃 */
.sched-layout2 {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(280px, 3fr);
  gap: 18px;
  align-items: start;
}
.sched-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 92px; }

/* 포스터 게시판 */
.poster-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.poster-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.poster-sort { width: 110px; padding: 10px 12px; }

.posters-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(280px, 3fr);
  gap: 18px;
  align-items: start;
}
.posters-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 92px; }

.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.poster-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--card));
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .18s, border-color .18s;
}
.poster-card:hover { transform: translateY(-3px); border-color: var(--border); }

.poster-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(165deg, #0E3A2B, #05130D 80%);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.poster-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-status {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  background: rgba(229, 155, 61, .9);
  color: #1B1206;
}

.poster-body { padding: 14px 16px 15px; display: flex; flex-direction: column; flex: 1; gap: 5px; }
.poster-store-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.poster-store { font-size: 15.5px; font-weight: 900; letter-spacing: -0.03em; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-region {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 900;
  background: rgba(47, 191, 124, .12);
  color: var(--green-light);
  border: 1px solid rgba(47, 191, 124, .3);
}
.poster-title { font-size: 14.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-date { font-size: 13px; color: var(--text-soft); font-weight: 600; }
.poster-actions { display: flex; gap: 7px; margin-top: auto; padding-top: 11px; }
.poster-actions .btn { flex: 1; }

/* 미등록 매장 placeholder 카드 */
.poster-card.is-placeholder { border-style: dashed; box-shadow: none; }
.poster-card.is-placeholder .poster-img { cursor: default; }
.poster-ph-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(247, 240, 226, .05);
  border: 1px solid var(--border-soft);
  color: var(--text-soft);
}
.poster-ph-body { text-align: center; padding: 0 14px 6px; }
.poster-ph-title { font-size: 15px; font-weight: 900; color: var(--text-muted); }
.poster-ph-sub { font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }
.poster-ph-note { font-size: 13px; color: var(--text-muted); margin-top: 8px; line-height: 1.6; }

.poster-cta-widget .btn { margin-top: 4px; }

/* 내 매장 관리 */
.mystore-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mystore-stat {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--surface), var(--card));
  border: 1px solid var(--border-soft);
}
.mystore-stat .msv-label { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.mystore-stat .msv-value { font-size: 18px; font-weight: 900; color: var(--gold-light); margin-top: 3px; }

/* 상세보기 포스터 모드 */
.modal-hero.is-poster { height: auto; max-height: 420px; background: rgba(3, 15, 10, .6); cursor: zoom-in; }
.modal-hero.is-poster img { position: static; width: 100%; height: auto; max-height: 420px; object-fit: contain; }

/* 라이트박스 (포스터 확대) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(2, 10, 7, .9);
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; border-radius: 10px; box-shadow: var(--shadow); }

/* 반응형 (v6) */
@media (max-width: 1280px) {
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .sched-layout2, .posters-layout { grid-template-columns: 1fr; }
  .sched-aside, .posters-aside { position: static; }
  .kw-cards { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
}
@media (max-width: 720px) {
  .poster-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 27px; }
  .hero-sub { font-size: 15px; }
  .mystore-stats { grid-template-columns: 1fr; }
  .poster-toolbar { flex-direction: column; align-items: stretch; }
  .poster-tools { justify-content: space-between; }
  .poster-tools .search-box { display: flex !important; flex: 1; }
  .modal { width: 94%; margin: 0 auto; }
}

/* ==========================================================
   v7 — 한 줄 히어로 / 자유 포스터 이미지 게시판
   ========================================================== */

/* 히어로: 한 줄 SEO 카피 형태 */
.hero { padding: 26px 0 4px; }
.hero-title.is-oneline {
  display: flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
  font-size: 30px;
  line-height: 1.3;
}
.hero-title.is-oneline strong {
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}
.hero-title.is-oneline .hero-tail {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-muted);
}
@media (max-width: 1080px) {
  .hero-title.is-oneline { white-space: normal; flex-wrap: wrap; gap: 6px 12px; font-size: 26px; }
  .hero-title.is-oneline .hero-tail { font-size: 16px; }
}

/* 포스터 상단 CTA 한 줄 */
.poster-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(214, 162, 74, .08), rgba(214, 162, 74, .02) 70%);
  flex-wrap: wrap;
}
.poster-cta-text { font-size: 15.5px; font-weight: 700; color: var(--text); }

.poster-toolbar { justify-content: flex-end; }

/* 이미지 중심 포스터 그리드 — 데스크톱 4칸 */
.poster-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.poster-card { border-radius: 14px; }
.poster-card .poster-img {
  height: 340px;
}
.poster-card .poster-img img { object-fit: cover; }

/* 카드 본문 제거 → hover 오버레이만 */
.poster-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 30px 14px 12px;
  background: linear-gradient(180deg, rgba(4, 22, 15, 0), rgba(4, 22, 15, .88));
  opacity: 0;
  transition: opacity .18s;
  pointer-events: none;
}
.poster-card:hover .poster-overlay { opacity: 1; }
.poster-ov-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poster-ov-meta { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-top: 2px; }

@media (max-width: 1280px) {
  .poster-grid { grid-template-columns: repeat(3, 1fr); }
  .poster-card .poster-img { height: 300px; }
}
@media (max-width: 1080px) {
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .poster-card .poster-img { height: 220px; }
  .poster-cta-row { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ==========================================================
   v9 — 게시글 상세페이지 / 모바일 햄버거 / 모바일 전면 축소
   ========================================================== */

html, body { overflow-x: hidden; }

/* 게시글 상세페이지 */
.pd-article { padding: 26px 28px; }
.pd-title { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; color: var(--text-strong); line-height: 1.35; }
.pd-meta-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.pd-body2 {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-line;
  padding: 4px 0 8px;
}
.pd-login-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(247, 240, 226, .03);
  border: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* 햄버거 버튼 (데스크톱 숨김) */
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(247, 240, 226, .04);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--gold-light);
  transition: transform .2s, opacity .2s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 모바일 슬라이드 메뉴 */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 250;
  width: min(300px, 82vw);
  padding: 76px 22px 30px;
  background: linear-gradient(180deg, #062016, #04160F);
  border-left: 1px solid var(--border);
  transform: translateX(105%);
  transition: transform .24s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: -18px 0 42px rgba(0, 0, 0, .45);
}
.mobile-menu.is-open { transform: none; }
.mm-link {
  display: block;
  width: 100%;
  padding: 12px 10px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}
.mm-link:active, .mm-link:hover { color: var(--gold-light); }
.mm-gold { color: var(--gold-light); }
.mm-auth { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.mm-auth .btn { width: 100%; }

/* ---------- 모바일 공통 축소 (≤768px) ---------- */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .container { padding: 0 14px; }

  /* 헤더 compact + 햄버거 (로고 좌측 끝 · 햄버거 우측 끝 양끝 정렬) */
  .site-header { height: 60px; }
  .header-inner { padding: 0 16px; gap: 10px; justify-content: space-between; }
  .brand-name { font-size: 20px; }
  .brand .ic svg { width: 24px; height: 24px; }
  .brand-tag { display: none; }
  .main-nav { display: none; }               /* 상단 가로 메뉴 숨김 */
  .search-box { display: none; }
  .biz-free-link { display: none; }
  #authArea { display: none !important; }    /* 로그인/회원가입은 햄버거 안으로 */
  .header-actions { margin-left: auto; gap: 0; }
  .menu-toggle { display: flex; margin-left: auto; width: 42px; height: 42px; }

  .page-section { padding: 20px 0 46px; scroll-margin-top: 70px; }
  .page-head { margin-bottom: 16px; }
  .page-title { font-size: 22px; }
  .page-desc { font-size: 13.5px; margin-top: 5px; }
  .section-title { font-size: 17px; }

  /* 히어로 축소 */
  .hero { padding: 14px 0 2px; }
  .hero-title.is-oneline { font-size: 20px; gap: 4px 8px; }
  .hero-title.is-oneline .hero-tail { font-size: 13.5px; }
  .kw-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
  .kw-card { padding: 10px 10px; gap: 2px; border-radius: 12px; }
  .kw-name { font-size: 13.5px; }
  .kw-sub { font-size: 11px; }
  .notice-bar { margin-top: 12px; padding: 9px 12px; gap: 9px; }
  .notice-label { padding: 3px 9px; font-size: 11px; }
  .notice-text { font-size: 12.5px; }

  /* 통계 위젯 5개 — 가로 스크롤 한 줄 (compact stat row) */
  .stat-grid {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .stat-grid::-webkit-scrollbar { display: none; }
  .stat-card { flex: 0 0 auto; min-width: 142px; padding: 10px 12px; gap: 8px; border-radius: 12px; }
  .stat-icon { width: 34px; height: 34px; border-radius: 9px; }
  .stat-icon svg { width: 17px; height: 17px; }
  .stat-label { font-size: 11.5px; white-space: nowrap; }
  .stat-value { font-size: 19px; }
  .stat-value small { font-size: 11px; }

  /* 지역탭 축소 (영역 내 가로 스크롤) */
  .region-tabs { padding: 12px 0; gap: 8px; }
  .region-tab { height: 36px; padding: 0 14px; font-size: 13px; }

  /* 매장 카드 축소 — 2열 compact */
  .venue-grid { gap: 10px; }
  .venue-image { height: 130px; }
  .venue-info { padding: 10px 11px 11px; }
  .venue-name { font-size: 15.5px; }
  .venue-area { font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .today-event { margin-top: 8px; padding: 6px 8px; font-size: 11.5px; }
  .tags { margin-top: 8px; }
  .tags span { padding: 3px 7px; font-size: 11px; }
  .card-bottom { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; }
  .rating { font-size: 14px; }
  .card-actions { gap: 6px; }
  .card-actions .btn { flex: 1; }
  .btn { padding: 9px 14px; font-size: 13px; }
  .btn-sm { padding: 7px 8px; font-size: 12px; }
  .btn-lg { padding: 11px 20px; font-size: 14px; }

  /* 신규오픈 카드 — 2열 compact */
  .new-thumb { height: 120px; }
  .new-badge { top: 8px; left: 8px; padding: 4px 8px; font-size: 10px; }
  .new-sign .sign-main { font-size: 18px; }
  .new-sign .sign-sub { font-size: 10px; letter-spacing: .2em; }
  .new-body { padding: 12px 12px 13px; }
  .new-name { font-size: 15.5px; }
  .new-area { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .open-date { font-size: 12.5px; margin-top: 8px; }
  .new-actions { gap: 6px; margin-top: 12px; }
  .new-actions .btn { padding: 8px 6px; font-size: 12px; }

  .summary-grid { gap: 10px; margin-top: 24px; }
  .summary-panel { padding: 15px 15px 13px; }
  .summary-panel .section-title { font-size: 15px; }
  .mini-list li { padding: 7px 2px; font-size: 13px; }
  .guide-mini { padding: 8px 2px; font-size: 13px; }

  /* 커뮤니티 compact */
  .comm-toolbar { margin-bottom: 12px; }
  .post-row { padding: 12px 14px; gap: 3px; }
  .avatar { width: 30px; height: 30px; font-size: 12.5px; }
  .post-author { font-size: 13px; }
  .post-time { font-size: 12px; }
  .post-title { font-size: 15px; }
  .post-preview { font-size: 13px; }
  .post-meta { font-size: 12px; margin-top: 2px; }
  .side-panel { padding: 14px 15px; }
  .hot-list li { padding: 6px 0; font-size: 13px; }

  /* 게시글 상세 */
  .pd-article { padding: 18px 16px; }
  .pd-title { font-size: 19px; }
  .pd-body2 { font-size: 14px; line-height: 1.75; }
  .comment-sec-title { font-size: 15px; }
  .comment-bubble { padding: 8px 12px; }
  .comment-text { font-size: 13.5px; }

  /* 일정/캘린더 */
  .day-pill { min-width: 54px; padding: 8px 10px; }
  .cal-head { padding: 13px 14px; }
  .cal-title { font-size: 17px; }
  .cal-nav-btn { height: 32px; padding: 0 11px; font-size: 12.5px; }
  .sched-item { padding: 11px 12px; gap: 10px; }
  .sched-time { font-size: 15.5px; width: 46px; }
  .sched-thumb { width: 42px; height: 42px; }
  .sched-venue { font-size: 14.5px; }
  .sched-region { font-size: 13px; }
  .sched-title-line { font-size: 13px; }
  .sched-hours { font-size: 12px; }
  .sched-tags span { font-size: 11.5px; }
  .widget { padding: 15px 15px 12px; }
  .widget-title { font-size: 15px; }
  .widget-row { padding: 9px 2px; font-size: 13px; }
  .widget-row .ic { width: 26px; height: 26px; }
  .widget-row .wr-count { font-size: 13.5px; }

  /* 포스터 게시판 */
  .poster-cta-row { padding: 11px 13px; gap: 9px; margin-bottom: 12px; }
  .poster-cta-text { font-size: 13px; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .poster-card .poster-img { height: 210px; }

  /* 족보/가이드 */
  .jokbo-hero-left .page-title { font-size: 26px; }
  .jokbo-sec-title { font-size: 19px; }
  .jokbo-row { padding: 11px 12px; gap: 10px; }
  .jokbo-rank { width: 32px; font-size: 19px; }
  .jokbo-name { font-size: 15px; }
  .jokbo-desc { font-size: 12px; }
  .pcard.sm { width: 34px; height: 47px; }
  .pcard.sm .pc-rank { font-size: 12.5px; }
  .pcard.sm .pc-suit { font-size: 13px; }
  .step-card { padding: 13px 14px; gap: 11px; }
  .step-num { width: 36px; height: 36px; font-size: 16px; }
  .guide-card { padding: 16px 15px 14px; }
  .guide-name { font-size: 15px; }
  .guide-desc { font-size: 13px; }

  /* 모달 */
  .modal { width: 93%; margin: 0 auto; }
  .modal-head { padding: 14px 16px; }
  .modal-title { font-size: 17px; }
  .modal-body { padding: 16px 16px 20px; }
  .modal-hero { height: 170px; }
  .info-row { font-size: 13.5px; padding: 9px 2px; }
  .form-input, .form-select, .form-textarea { padding: 10px 12px; font-size: 13.5px; }
  .form-label { font-size: 12.5px; }
  .form-tab { padding: 10px; font-size: 14px; }

  .footer-inner { padding: 0 14px; }
  .footer-note { font-size: 12px; }
}

/* ---------- 더 작은 모바일 (≤480px) ---------- */
@media (max-width: 480px) {
  .page-title { font-size: 20px; }
  .hero-title.is-oneline { font-size: 18px; }
  .hero-title.is-oneline .hero-tail { font-size: 12.5px; }
  .kw-cards { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .kw-card { padding: 8px 7px; }
  .kw-name { font-size: 12px; }
  .kw-sub { display: none; }
  .stat-value { font-size: 18px; }
  .venue-image { height: 115px; }
  .new-thumb { height: 105px; }
  .venue-name { font-size: 14.5px; }
  .new-name { font-size: 14.5px; }
  .cal-cell { min-height: 52px; padding: 4px 4px; }
  .cal-num { width: 24px; height: 24px; font-size: 12.5px; }
}
@media (max-width: 380px) {
  .poster-grid { grid-template-columns: 1fr; }
}

/* v9 fix — 모바일 가로 오버플로 방지: 1fr 트랙의 min-content 팽창 차단 */
@media (max-width: 1080px) {
  .comm-layout, .sched-layout2, .posters-layout, .map-layout, .guide-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .kw-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kw-card { min-width: 0; }
  .kw-name, .kw-sub { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .post-list, .post-row, .post-title, .post-preview { min-width: 0; }
  .venue-grid, .poster-grid, .stat-grid, .summary-grid, .new-grid, .guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }
  /* 배너카드·신규오픈 카드는 모바일 2열 */
  .venue-grid, .new-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid, .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid, .guide-grid { grid-template-columns: minmax(0, 1fr); }
}
/* 초소형 화면 — 2열이 너무 좁으면 1열 fallback */
@media (max-width: 340px) {
  .venue-grid, .new-grid { grid-template-columns: minmax(0, 1fr); }
}
