@charset "utf-8";
@import url('https://fonts.googleapis.com/css?family=Nanum+Myeongjo:800&subset=korean');

/* Reset */
html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 100%;
  background-color: transparent;
  overflow-x: hidden;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  font-weight: 400;
  font-family: 'AppleSDGothicNeo', Pretendard-Regular, sans-serif;
  font-size: 1em;
  line-height: 1.25;
  color: rgb(255, 106, 0);
  background-color: transparent;
  overflow-x: hidden;
}

div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, figure {
  margin: 0;
  padding: 0;
}

header, footer, section, article, aside, nav, hgroup, details, menu, figure, figcaption {
  display: block;
}

button, input[type=submit], input[type=reset], input[type=button] {
  overflow: visible;
  cursor: pointer;
}

input[type=text], input[type=email], input[type=password], input[type=submit], textarea {
  -webkit-appearance: none;
}

input, select, textarea, button {
  font-family: Pretendard-Regular, sans-serif;
  font-size: 100%;
  border-radius: 0;
}

button {
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

ul li { list-style: none; }
img, fieldset { border: none; }
hr { display: none; }

a, a:link {
  text-decoration: none;
  color: rgb(255, 255, 255);
}
a:visited { text-decoration: none; }
a:hover, a:focus {
  text-decoration: underline;
  color: rgb(255, 85, 0);
}
a:active { text-decoration: none; }

/* Accessibility Navigation */
#acc-nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 0;
}
#acc-nav a {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin-left: -1px;
  margin-bottom: -1px;
  text-align: center;
  font-weight: bold;
  font-size: 0.875em;
  color: #000;
  white-space: nowrap;
}
#acc-nav a:focus, #acc-nav a:hover, #acc-nav a:active {
  width: 100%;
  height: auto;
  padding: 10px 0;
  background: #000;
  color: #fff;
  z-index: 1000;
}

/* =====================================================================
   3D 배경 비네트 & 상단 바 (HUD)
   ===================================================================== */
.scene-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.28) 100%);
}

.hud-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  pointer-events: none;
}

.hud-id,
.hud-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.hud-brand {
  display: inline-flex;
  align-items: center;
}

.hud-brand-logo {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}

.hud-weather {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 18, 24, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f3f4f6;
  font-size: 12px;
}

.hud-weather-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
}

.hud-weather-sep {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
}

.hud-weather-sub {
  color: rgba(255, 255, 255, 0.7);
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 18, 24, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f9fafb;
  font-size: 12px;
  transition: background 0.2s, border-color 0.2s;
}

.hud-btn svg {
  width: 15px;
  height: 15px;
}

.hud-btn:hover,
.hud-btn.is-on {
  background: rgba(255, 128, 0, 0.85);
  border-color: rgba(255, 160, 64, 0.9);
  color: #fff;
}

/* =====================================================================
   설정 / 가이드 / 최근댓글 팝업 / 힌트 / 카메라 인디케이터
   ===================================================================== */
.cam-indicator {
  position: fixed;
  left: 24px;
  bottom: 110px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 18, 24, 0.72);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
}
.cam-indicator[hidden] { display: none; }
.cam-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.settings,
.help {
  position: fixed;
  top: 68px;
  right: 24px;
  z-index: 70;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 18px;
  border-radius: 16px;
  background: rgba(16, 19, 25, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f3f4f6;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}
.settings[hidden],
.help[hidden] { display: none; }

/* 최근댓글 팝업 (하단 아일랜드 위) */
.recent-comments-modal {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 70;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 360px;
  overflow-y: auto;
  padding: 18px;
  border-radius: 16px;
  background: rgba(16, 19, 25, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f3f4f6;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}
.recent-comments-modal[hidden] { display: none; }
.recent-comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.recent-comments-list li a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: #e5e7eb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-comments-list li a:hover {
  background: rgba(255, 128, 0, 0.25);
  color: #fff;
  text-decoration: none;
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.settings-head h2,
.help h2 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.settings-close {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  border-radius: 8px;
}
.settings-close:hover { background: rgba(255, 255, 255, 0.1); }
.settings-close svg { width: 16px; height: 16px; }

/* 설정 패널 내부 요소 스타일 (ui.js 생성 요소) */
.settings-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12.5px;
}
.settings-body .set-group,
.settings-body section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-body .set-title,
.settings-body h3 {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.settings-body .choice-list,
.settings-body .seg {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.settings-body .seg-row,
.settings-body .set-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.settings-body button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  transition: background 0.15s, border-color 0.15s;
  box-sizing: border-box;
}
.settings-body .seg-row button,
.settings-body .set-row button {
  width: auto;
  flex: 1 1 auto;
  align-items: center;
  text-align: center;
  padding: 7px 10px;
}
.settings-body button:hover {
  background: rgba(255, 255, 255, 0.12);
}
.settings-body button.is-on,
.settings-body button[aria-pressed="true"],
.settings-body button.on {
  background: rgba(255, 128, 0, 0.25);
  border-color: rgba(255, 140, 0, 0.85);
  color: #fff;
}
.settings-body button small,
.settings-body button .sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}
.settings-body input[type="range"] {
  width: 100%;
  accent-color: #ff8000;
  cursor: pointer;
}
.settings-body .slider-meta,
.settings-body .range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}
.settings-body .status-line {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.help dl { margin-top: 12px; font-size: 13px; line-height: 1.5; }
.help dt { font-weight: 600; color: #fff; margin-top: 10px; }
.help dd { color: #cbd5e1; margin-top: 2px; }

.hint {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 65;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 18, 24, 0.82);
  color: #fff;
  font-size: 12px;
}
.hint[hidden] { display: none; }

/* =====================================================================
   좌측 하단 방문자 수 & 하단 내비게이션 아일랜드
   ===================================================================== */
.hud-visitor {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
}

.hud-visitor .visitor-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.hud-visitor .visitor-total {
  font-size: 26px;
  font-weight: 700;
  color: #ff8800;
  line-height: 1.1;
  margin-bottom: 4px;
}

.hud-visitor .visitor-sub {
  font-size: 12px;
  color: #d9ff00;
}

.hud-nav {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 18, 24, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hud-nav .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.hud-nav .nav-btn:hover,
.hud-nav .nav-btn.on {
  background: rgba(255, 128, 0, 0.85);
  color: #fff;
  text-decoration: none;
}

/* =====================================================================
   티스토리 본문 레이아웃 (화면 세로 중단 배치)
   ===================================================================== */
#wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 84px 0 96px;
  box-sizing: border-box;
}

#container {
  position: relative;
  width: 100%;
}

#container .content-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  /* backdrop-filter를 가상 요소로 분리하여 내부 fixed 요소가 스크롤되지 않게 함 */
  background-color: transparent;
}

#container .content-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
}


#content {
  width: 100%;
  max-width: 780px;
  padding: 40px 0;
  box-sizing: border-box;
}

/* 포스트 리스트 & 본문 */
.post-header { padding-top: 4px; }
.post-header h1 { margin-bottom: 18px; font-size: 1em; line-height: 1.375; }
.post-header h1 em { margin-left: 7px; font-style: normal; color: #04beb8; }

.post-item {
  float: left;
  width: 31.081%;
  margin: 0 0 44px 3.378%;
}
.post-item:nth-child(3n+1) { clear: both; margin-left: 0; }
.post-item a { display: block; text-decoration: none; }
.post-item .thum {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: 0;
  margin-bottom: 5px;
  padding-bottom: 60.87%;
  background-color: #222;
}
.post-item .thum img { width: 100%; height: auto; }
.post-item .title {
  display: block;
  overflow: hidden;
  max-width: 98%;
  margin-bottom: 4px;
  padding-top: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.post-item .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 95%;
  margin-bottom: 15px;
  font-size: 0.8125em;
  line-height: 1.5rem;
  color: #ccc;
}
.post-item .meta { display: block; font-size: 0.75em; color: #999; }

.post-cover {
  position: relative;
  z-index: 20;
  display: table;
  width: 100%;
  height: 300px;
  background-color: #222;
  background-position: 50% 50%;
  background-size: cover;
  box-sizing: border-box;
  border-radius: 10px;
  overflow: hidden;
}
.post-cover .inner {
  display: table-cell;
  position: relative;
  z-index: 10;
  vertical-align: bottom;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}
.post-cover h1 { font-weight: 300; font-size: 2em; line-height: 1.25; color: #fff; }

.entry-content {
  padding: 28px 0;
  color: #f1f5f9;
  line-height: 1.75;
}
.entry-content p img { max-width: 100%; height: auto; }

.pagination { margin: 28px 0 0; text-align: center; }
.pagination a { display: inline-block; margin: 0 10px; font-size: 0.875em; color: #ccc; }
.pagination .selected { color: rgb(47, 255, 0); }

#footer {
  padding: 28px 0 10px;
  background-color: transparent;
}
#footer .inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
#footer p { margin-bottom: 8px; font-size: 0.875em; color: #aaa; }

/* 반응형 */
@media screen and (max-width: 767px) {
  .hud-top { padding: 12px 16px; }
  .hud-weather { display: none; }
  .hud-btn span { display: none; }
  .hud-visitor { display: none; }
  .hud-nav {
    bottom: 16px;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
  }
  .hud-nav .nav-btn {
    padding: 7px 12px;
    font-size: 12px;
  }
  #wrap { padding: 72px 0 84px; justify-content: flex-start; }
  .post-item { float: none; width: auto; margin-left: 0; margin-bottom: 30px; }
}

/* =====================================================================
   방명록 & 댓글 (최근댓글 스타일의 깔끔한 다크 글래스모피즘)
   ===================================================================== */
.tt-comments-wrap,
.comments {
  margin-top: 24px;
  color: #f1f5f9;
}

.tt-comment-cont .tt-box-total {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: #e5e7eb;
}

.tt-comment-cont .tt-box-total .tt_num_g {
  color: #ff8800;
  font-weight: 700;
}

/* 방명록/댓글 리스트 항목 */
.tt-comment-cont .tt-list-reply > li,
.tt-comment-cont .tt-wrap-cmt {
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tt-comment-cont .tt-wrap-cmt .tt-link-user {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

.tt-comment-cont .tt-wrap-cmt .tt_desc {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #e2e8f0;
}

.tt-comment-cont .tt-wrap-cmt .tt_date {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* 입력 폼 */
.tt-comment-cont .tt-box-write {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(15, 18, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tt-comment-cont .tt-box-write textarea,
.tt-comment-cont .tt-box-write input[type="text"],
.tt-comment-cont .tt-box-write input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  box-sizing: border-box;
  outline: none;
}

.tt-comment-cont .tt-box-write textarea:focus,
.tt-comment-cont .tt-box-write input:focus {
  border-color: #ff8800;
}

/* 등록 버튼 */
.tt-comment-cont .tt-btn_register {
  padding: 8px 20px;
  border-radius: 999px;
  background-color: rgba(255, 128, 0, 0.85);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  transition: background 0.2s;
}

.tt-comment-cont .tt-btn_register:hover,
.tt-comment-cont .tt-btn_register:focus {
  background-color: #ff8800;
}

/* 티스토리 방명록/댓글 입력창 텍스트 형광 노란색 강제 적용 */
.tt-comment-cont input,
.tt-comment-cont textarea,
.tt-comment-cont [contenteditable="true"],
.tt-comment-cont .tt_inp_text,
.tt-comment-cont .tt_cmt_text,
.tt-comment-cont .tt-box-write * {
  color: #e1ff00 !important;
  -webkit-text-fill-color: #e1ff00 !important;
  caret-color: #e1ff00 !important;
}

.tt-comment-cont input::placeholder,
.tt-comment-cont textarea::placeholder {
  color: rgba(225, 255, 0, 0.55) !important;
  -webkit-text-fill-color: rgba(225, 255, 0, 0.55) !important;
}

/* =====================================================================
   좌측 상단 로고 클릭 HUD 다이얼로그 (관리 / 글쓰기 / 로그인)
   ===================================================================== */
.hud-owner-dialog {
  position: fixed;
  top: 64px;
  left: 24px;
  z-index: 75;
  width: 220px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(16, 19, 25, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f3f4f6;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}
.hud-owner-dialog[hidden] { display: none; }

.hud-owner-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud-owner-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.hud-owner-nav a:hover {
  background: rgba(255, 128, 0, 0.25);
  border-color: rgba(255, 140, 0, 0.85);
  color: #fff;
  text-decoration: none;
}

/* 게시글 상단 관리자용 수정/삭제 버튼 ([##_s_ad_isolation_##]) 스타일 */
.post-cover .meta .admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.post-cover .meta .admin a {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 128, 0, 0.25);
  border: 1px solid rgba(255, 140, 0, 0.75);
  color: #fff !important;
  font-size: 11.5px;
  text-decoration: none;
  transition: background 0.2s;
}

.post-cover .meta .admin a:hover {
  background: rgba(255, 128, 0, 0.85);
}

/* 게시글 하단 티스토리 기본 하얀 프로필 배너 숨기기 */
div[data-tistory-react-app="Namecard"],
.tt-namecard,
.blog-profile-card {
  display: none !important;
}
/* 메인 레이아웃 기준점 설정 */
#container .content-wrap {
  position: relative;
}

/* 화면 세로 중앙 고정(Floating) + 레이아웃 안쪽 양옆 가장자리 배치 */
.hud-side-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 18, 24, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.hud-side-arrow svg {
  width: 18px;
  height: 18px;
}

.hud-side-arrow.prev { left: max(16px, calc(50% - 524px)); }
.hud-side-arrow.next { right: max(16px, calc(50% - 524px)); }

.hud-side-arrow:hover {
  background: rgba(255, 128, 0, 0.85);
  border-color: rgba(255, 160, 64, 0.9);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}

.hud-side-arrow.no-more-prev,
.hud-side-arrow.no-more-next {
  display: none;
}

@media screen and (max-width: 767px) {
  .hud-side-arrow {
    width: 32px;
    height: 32px;
  }
  .hud-side-arrow.prev { left: 8px; }
  .hud-side-arrow.next { right: 8px; }
}

