/* 피망고수 — 게임방 중심 다크 카지노 테마 (사이트 전체) */
[data-theme="dark"], :root {
  color-scheme: dark;
  --color-base-100: #15130f;
  --color-base-200: #0b0a09;
  --color-base-300: #221f1a;
  --color-base-content: #efe8da;
  --color-primary: #d9b26a;
  --color-primary-content: #1b1408;
  --color-secondary: #3fbf7f;
  --color-secondary-content: #07150d;
  --color-accent: #c0504d;
  --color-accent-content: #fff;
  --color-neutral: #2a2620;
  --color-neutral-content: #efe8da;
  --color-info: #6fa8e6; --color-info-content: #07111d;
  --color-success: #3fbf7f; --color-success-content: #07150d;
  --color-warning: #e0a63a; --color-warning-content: #1b1408;
  --color-error: #e0605a; --color-error-content: #1b0807;
  --field-border: rgba(217,178,106,.32);
  --brand-vivid: #d9b26a; --brand-deep: #a87d36; --brand-wash: #2a2318;
  --tone-0:#a87d36; --tone-1:#2f7d5a; --tone-2:#9a4b3a; --tone-3:#3b5f8f; --tone-4:#7a3d64; --tone-5:#5b4a8a;
  --shadow-2: 0 18px 40px -22px rgba(0,0,0,.7);
  --shadow-3: 0 30px 60px -30px rgba(0,0,0,.8);
  --backdrop: rgba(0,0,0,.7);
  --gs-gold: #d9b26a; --gs-gold-2: #a87d36; --gs-line: rgba(217,178,106,.22); --gs-line-2: rgba(217,178,106,.45);
  --gs-dim: #a9a08e; --gs-card: #15130f; --gs-card-2: #1c1915;
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 120px; background: #0b0a09; }
body { background: #0b0a09; color: var(--color-base-content); font-family: var(--font); letter-spacing: -.01em; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--gs-gold); outline-offset: 3px; }
.wrap { width: min(1240px, calc(100% - 40px)); }
.muted, .text-muted { color: var(--gs-dim); }

/* 머리글 */
.site-header { background: linear-gradient(180deg, rgba(20,18,15,.97), rgba(10,9,8,.95)); border-bottom: 1px solid var(--gs-line); backdrop-filter: blur(14px); }
.site-header .navbar { min-height: 68px; }
.brand { gap: 10px; }
.brand-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-family: Georgia, "Noto Serif KR", serif; font-weight: 700; font-size: 20px; color: #1b1408; background: linear-gradient(180deg, #f1d79a, #c9a052 55%, #8a6326); border: 1px solid rgba(255,236,190,.6); box-shadow: 0 6px 18px rgba(217,178,106,.25); }
.brand-logo-sm { width: 30px; height: 30px; font-size: 16px; border-radius: 9px; }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.04em; color: #f6efe0; }
.brand-name::after { content: none; }
.header-tabs { background: #0d0c0b; border-top: 1px solid rgba(255,255,255,.04); border-bottom: 1px solid var(--gs-line); }
.header-tabs .tab { color: #cfc6b4; font-weight: 600; }
.header-tabs .tab-active, .header-tabs .tab:hover { color: var(--gs-gold); border-color: var(--gs-gold); }
.gnb-all { color: #cfc6b4; }
.gs-points { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 6px; border-radius: 99px; background: rgba(0,0,0,.45); border: 1px solid var(--gs-line-2); color: #f1d79a; text-decoration: none; font-family: "Oswald", var(--font); font-weight: 600; font-size: 16px; letter-spacing: .02em; }
.gs-points i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #1b1408; background: radial-gradient(circle at 35% 30%, #fbe7b5, #d6ae62 55%, #8a6326); font-family: var(--font); }
.gs-points:hover { border-color: var(--gs-gold); }
@media (max-width: 640px) { .gs-points { height: 32px; font-size: 14px; } }
.bell-dot { background: #c0504d; }

/* 기본 요소 */
.btn-primary { background: linear-gradient(180deg, #f1d79a, #d6ae62 45%, #a87d36); border-color: rgba(255,236,190,.6); color: #1b1408; font-weight: 700; }
.btn-primary:hover { background: linear-gradient(180deg, #f6e1ad, #ddb76f 45%, #b38841); border-color: #f1d79a; color: #1b1408; }
.btn-outline { border-color: var(--gs-line-2); color: #efe8da; }
.btn-outline:hover { background: rgba(217,178,106,.12); border-color: var(--gs-gold); color: #f6efe0; }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.card, .pmg-card { background: var(--gs-card); border: 1px solid var(--gs-line); box-shadow: 0 18px 40px -26px rgba(0,0,0,.8); }
.table :where(th) { color: var(--gs-dim); border-color: var(--gs-line); }
.table :where(td) { border-color: rgba(255,255,255,.05); }
.input, .select, .textarea { background: #0f0e0c; border-color: var(--field-border); color: #efe8da; }
.input:focus-within, .select:focus, .textarea:focus { border-color: var(--gs-gold); outline: none; box-shadow: 0 0 0 3px rgba(217,178,106,.18); }
.badge-primary { background: rgba(217,178,106,.16); color: #f1d79a; border-color: transparent; }
.alert { background: #1a1713; border-color: var(--gs-line); color: #efe8da; }
.page-head h1, h1, h2, h3 { color: #f6efe0; }
.link, .main-area a.link { color: var(--gs-gold); }
.main-area { padding-top: 26px; padding-bottom: 80px; }
.tabs-border .tab-active { border-color: var(--gs-gold); color: var(--gs-gold); }
.menu :where(li > a):hover { background: rgba(217,178,106,.1); }
.menu .menu-active, .menu :where(li > a.menu-active) { background: rgba(217,178,106,.16) !important; color: #f1d79a !important; }
.dropdown-content, .user-menu { background: #15130f; border: 1px solid var(--gs-line); }
.drawer-side > *:not(.drawer-overlay) { background: #0f0e0c; }
.skip-link { background: var(--gs-gold); }

/* 게시판·글 */
.post-list, .list-card { background: var(--gs-card); }
.post-title a:hover, .post-row a:hover { color: var(--gs-gold); }
.post-content, .prose { color: #e8e1d2; }
.post-content img { border-radius: 12px; }

/* 바닥글 · 모바일 독 */
.footer { background: #080706; border-top: 1px solid var(--gs-line); color: var(--gs-dim); }
.footer strong { color: #f6efe0; }
.footer .link { color: #cfc6b4; }
.dock { background: rgba(12,11,10,.96); border-top: 1px solid var(--gs-line); }
.dock .dock-active { color: var(--gs-gold); }

/* 홈(게임 로비) */
.gs-home .main-area { width: min(1240px, calc(100% - 32px)); padding-top: 0; }
.gs-sec { margin: 40px 0 0; }
.gs-sec-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 12px; }
.gs-sec-h h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.gs-sec-h h2 small { display: block; font-family: "Cinzel", Georgia, serif; font-size: 12px; letter-spacing: 5px; color: var(--gs-gold); font-weight: 700; margin-bottom: 4px; }
.gs-sec-h a { color: var(--gs-gold); font-weight: 700; font-size: 14px; text-decoration: none; }
.gs-brag { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gs-brag a { position: relative; display: block; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #14120f top center / 100% auto no-repeat; border: 1px solid var(--gs-line); text-decoration: none; }
/* 결과 이미지 아랫단에 글자가 있어 제목은 이미지 아래 띠로 뺀다 */
.gs-brag a span { display: block; padding: 10px 12px; background: #14120f; border-top: 1px solid var(--gs-line); color: #f6efe0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-brag a:hover { border-color: var(--gs-gold); }
.gs-feed { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; padding: 6px 18px; border-radius: 16px; background: var(--gs-card); border: 1px solid var(--gs-line); }
@media (max-width: 760px) { .gs-feed { grid-template-columns: 1fr; } }
.gs-feed a { display: flex; gap: 10px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); color: #e8e1d2; text-decoration: none; min-width: 0; }
.gs-feed a:hover b { color: var(--gs-gold); }
.gs-feed a em { flex: 0 0 auto; font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: rgba(217,178,106,.12); color: #f1d79a; }
.gs-feed a b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-feed a time { flex: 0 0 auto; font-size: 12px; color: var(--gs-dim); }
.gs-admin-note { margin: 18px 0 0; padding: 16px 20px; border-radius: 14px; background: linear-gradient(90deg, rgba(217,178,106,.18), rgba(217,178,106,.04)); border: 1px solid var(--gs-line-2); color: #f6efe0; font-weight: 700; }

/* ===== 게시판 스킨: 왼쪽 메뉴 + 한 줄 목록 ===== */
.bd-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .bd-wrap { grid-template-columns: minmax(0, 1fr); } .bd-side { display: none; } }
.bd-side { position: sticky; top: 132px; display: grid; gap: 4px; padding: 10px; border-radius: 14px; background: var(--gs-card); border: 1px solid var(--gs-line); max-height: calc(100vh - 150px); overflow: auto; }
.bd-side a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: #d8cfbd; text-decoration: none; font-size: 14px; font-weight: 500; }
.bd-side a:hover { background: rgba(217,178,106,.08); color: #f6efe0; }
.bd-side a.on { background: linear-gradient(180deg, #f1d79a, #c9a052); color: #1b1408; font-weight: 700; }
.bd-side a.on .bd-letter { background: rgba(27,20,8,.18); color: #1b1408; }
.bd-letter { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.06); color: #b9b09e; flex: 0 0 auto; }
.bd-group summary { list-style: none; cursor: pointer; padding: 10px 10px 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--gs-gold); display: flex; justify-content: space-between; }
.bd-group summary::-webkit-details-marker { display: none; }
.bd-group summary::after { content: "▾"; color: var(--gs-dim); transition: transform .15s; }
.bd-group:not([open]) summary::after { transform: rotate(-90deg); }
.bd-side-game { margin-top: 8px; justify-content: center; border: 1px dashed var(--gs-line-2); }
.bd-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 2px; scrollbar-width: none; }
.bd-tabs a { flex: 0 0 auto; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--gs-line); color: #cfc6b4; font-size: 14px; font-weight: 600; text-decoration: none; }
.bd-tabs a:hover { border-color: var(--gs-line-2); color: #f6efe0; }
.bd-tabs a.on { background: rgba(217,178,106,.16); border-color: var(--gs-gold); color: #f1d79a; }
.bd-main .page-head { margin-bottom: 12px; }
.bd-main .page-head h1 { font-size: 26px; }

.bd-list { border-radius: 14px; overflow: hidden; background: var(--gs-card); border: 1px solid var(--gs-line); }
.bd-head, .bd-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) 130px 64px 54px; align-items: center; }
.bd-head { padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--gs-dim); border-bottom: 1px solid var(--gs-line); background: #11100d; }
.bd-head .c-title { padding-left: 6px; }
.bd-head .c-like, .bd-head .c-date, .bd-head .c-views { text-align: center; }
.bd-row { position: relative; min-height: 46px; padding: 6px 14px; border-bottom: 1px solid rgba(255,255,255,.045); transition: background .12s; }
.bd-row:last-child { border-bottom: 0; }
.bd-row:hover { background: rgba(217,178,106,.05); }
.bd-row.is-current { background: rgba(217,178,106,.09); box-shadow: inset 3px 0 0 var(--gs-gold); }
.bd-row.is-notice { background: rgba(192,80,77,.06); }
.bd-row .c-like { display: flex; justify-content: center; }
.bd-row .c-like i { min-width: 40px; height: 22px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.04); color: rgba(239,232,218,.25); }
.bd-row .c-like i.has { background: rgba(217,178,106,.14); color: #f1d79a; }
.bd-row .c-like i.hot { background: linear-gradient(180deg, #e46a5f, #b8443d); color: #fff; }
.bd-row .c-title { min-width: 0; padding-left: 6px; }
.t-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.t-line .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ece5d6; font-size: 15px; font-weight: 500; text-decoration: none; }
.t-line .t::after { content: ""; position: absolute; inset: 0; }
.t-line .t:visited { color: #b6ad9b; }
.bd-row:hover .t { color: #fff; }
.bd-row .c-author, .t-line .cmt { position: relative; z-index: 1; }
.t-line .pin { color: #e0605a; flex: 0 0 auto; }
.tag { flex: 0 0 auto; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.tag-notice { background: rgba(224,96,90,.15); color: #ff8a83; border: 1px solid rgba(224,96,90,.25); }
.tag-board { background: rgba(217,178,106,.12); color: #f1d79a; }
.tag-cat { background: rgba(255,255,255,.06); color: #cfc6b4; }
.t-line .new { flex: 0 0 auto; font-size: 10px; font-weight: 900; color: #ff6b62; }
.t-line .cmt { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--gs-gold); text-decoration: none; }
.t-line .ico { flex: 0 0 auto; color: var(--gs-dim); display: inline-flex; }
.bd-row .c-author { min-width: 0; font-size: 13px; color: #cfc6b4; overflow: hidden; padding-left: 4px; }
.bd-row .c-author .post-list-author-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-row .c-date, .bd-row .c-views { text-align: center; font-size: 13px; color: var(--gs-dim); font-variant-numeric: tabular-nums; }
.bd-row .m-meta { display: none; }
.bd-empty { padding: 40px; text-align: center; color: var(--gs-dim); }
@media (max-width: 760px) {
  .bd-head { display: none; }
  .bd-row { grid-template-columns: minmax(0, 1fr); padding: 10px 14px; }
  .bd-row .c-like, .bd-row .c-author, .bd-row .c-date, .bd-row .c-views { display: none; }
  .bd-row .c-title { padding-left: 0; }
  .t-line .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15.5px; }
  .bd-row .m-meta { display: flex; gap: 10px; margin-top: 5px; font-size: 12px; color: var(--gs-dim); }
  .bd-row .m-meta span + span::before { content: "·"; margin-right: 10px; color: rgba(255,255,255,.2); }
  .bd-row .m-like { display: inline-flex; align-items: center; gap: 3px; }
}

/* 글 보기: 공감 버튼 */
.bd-like-row { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 34px 0 6px; }
.bd-like { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 99px; border: 1.5px solid var(--gs-line-2); background: rgba(0,0,0,.3); color: #efe8da; font-size: 16px; font-weight: 700; cursor: pointer; transition: transform .1s, background .15s, border-color .15s; }
.bd-like:hover { border-color: #e0605a; }
.bd-like:active { transform: scale(.96); }
.bd-like b { font-family: "Oswald", var(--font); font-size: 18px; color: #f1d79a; }
.bd-like.on { background: linear-gradient(180deg, #e46a5f, #b8443d); border-color: transparent; color: #fff; }
.bd-like.on svg { fill: #fff; }
.bd-like.on b { color: #fff; }
.bd-like-msg { font-size: 13px; color: #ff8a83; min-height: 1em; }
.bd-row .link-author { text-decoration: none; }
.bd-row .link-author:hover .post-list-author-name { color: var(--gs-gold); }
@media (max-width: 960px) { .bd-side { display: none; } }
/* 글·댓글 편집기 */
.cke_chrome { border-color: var(--gs-line) !important; border-radius: 10px; overflow: hidden; }
.cke_top, .cke_bottom { background: #1a1713 !important; border-color: var(--gs-line) !important; }
.cke_inner { background: #0f0e0c !important; }
