@charset "utf-8";
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&display=swap');

/* ============================================================
   AKWORD DS  |  Tistory skin
   PC : 1216x640 가로 배경 위 데스크톱 레이아웃
   MO : 세로 배경 + 1단 스택
   ============================================================ */

/* ---------- 폰트 ----------
   CookieRun-Regular.woff2 를 업로드한 뒤, 아래 src 주소를
   그 파일의 실제 주소로 바꿔주세요.
   스킨편집 > 파일업로드로 올렸다면 보통 이런 형태입니다:
   https://tistory1.daumcdn.net/tistory/8954516/skin/images/CookieRun-Regular.woff2   */
@font-face {
  font-family: 'CookieRun';
  src: url('https://tistory1.daumcdn.net/tistory/8954516/skin/images/CookieRun-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --white:  #ffffff;
  --blue-50:  #f2f6ff;
  --blue-100: #e4eeff;
  --blue-200: #c6d8f8;
  --blue-300: #a9c6f5;
  --blue-400: #9fbaec;
  --ink:      #5b6b96;
  --ink-soft: #7f8fbb;
  --pink-100: #fde7f0;
  --pink-200: #fbd3e2;
  --pink-300: #f5bfd4;
  --pink-400: #f2b4cd;
  --pink-600: #e58baf;

  --glass: rgba(255, 255, 255, .74);
  --line:  rgba(180, 205, 245, .55);
  --shadow: 0 10px 28px rgba(120, 145, 200, .22);
  --r: 18px;

  --font: 'CookieRun', 'Pretendard Variable', Pretendard, -apple-system, sans-serif;

  --bg-pc: url('https://itimg.kr/249/IMG/T2.webp');
  --bg-mo: url('https://itimg.kr/249/webimg/13.webp');
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  word-break: keep-all;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol, li { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: var(--pink-200); color: #fff; }

/* ---------- 배경 ---------- */
.wallpaper {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg-pc) center / cover no-repeat fixed;
}
.wallpaper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.30), rgba(210,228,255,.34) 55%, rgba(255,224,238,.30));
  backdrop-filter: blur(1px);
}

/* ---------- 스크롤바 ---------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--blue-300), var(--pink-300));
  border-radius: 99px;
  border: 2px solid rgba(255,255,255,.6);
}

/* ============================================================
   상단 상태바
   ============================================================ */
.statusbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.sb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 14px;
  border-radius: 99px;
  background: var(--glass);
  border: 1.5px solid var(--white);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  font-size: 11.5px;
  letter-spacing: .5px;
  white-space: nowrap;
}
.sb-brand { font-weight: 600; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
.sb-hearts { color: var(--pink-400); letter-spacing: 2px; }
.sb-hearts .off { color: var(--blue-200); }
.sb-clock { color: var(--blue-400); font-variant-numeric: tabular-nums; }
.sb-search-btn { color: var(--ink-soft); }
.sb-search-btn:hover { color: var(--pink-600); }

/* 검색 팝업 */
.search-pop {
  position: sticky;
  top: 52px;
  z-index: 39;
  display: flex;
  justify-content: center;
  padding: 0 16px 8px;
}
.search-form {
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 360px;
  padding: 8px;
  border-radius: 99px;
  background: var(--glass);
  border: 1.5px solid var(--white);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.search-form input {
  flex: 1;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 99px;
  background: var(--blue-50);
  outline: 0;
}
.search-form input:focus { box-shadow: 0 0 0 2px var(--pink-200) inset; }
.search-form button {
  height: 30px;
  padding: 0 16px;
  border-radius: 99px;
  background: linear-gradient(var(--pink-200), var(--pink-400));
  color: #fff;
  font-size: 11px;
  letter-spacing: 1px;
}

/* ============================================================
   데스크톱 그리드
   ============================================================ */
.desk {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 250px;
  gap: 18px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 18px 120px;
}
.col { display: flex; flex-direction: column; gap: 16px; }
.col-left, .col-right { position: sticky; top: 56px; }

/* ---------- 창(window) 공통 ---------- */
.win {
  border-radius: var(--r);
  background: var(--glass);
  border: 1.5px solid var(--white);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.win-bar {
  padding: 7px 14px;
  background: linear-gradient(90deg, var(--blue-200), var(--pink-200));
  color: #fff;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: lowercase;
  text-shadow: 0 1px 2px rgba(140,160,210,.35);
}
.win-body { padding: 14px; }
.win-h {
  margin: 16px 0 8px;
  font-size: 11.5px;
  letter-spacing: 2px;
  color: var(--pink-600);
  text-align: center;
}
.win-h::before, .win-h::after { content: '·  '; opacity: .6; }
.win-h b { color: var(--blue-400); }

/* ---------- 좌측: 시계 ---------- */
.clock-row { display: flex; gap: 8px; }
.clock-box {
  flex: 1;
  padding: 10px 0;
  border-radius: 14px;
  background: linear-gradient(var(--white), var(--blue-100));
  border: 1.5px solid var(--white);
  text-align: center;
  box-shadow: 0 4px 12px rgba(150,175,225,.18);
}
.clock-box b { display: block; font-size: 32px; line-height: 1; color: var(--blue-400); }
.clock-box.small { background: linear-gradient(var(--white), var(--pink-100)); }
.clock-box.small b { color: var(--pink-600); }
.clock-box i { display: block; margin-top: 2px; font-size: 10px; font-style: normal; letter-spacing: 2px; color: var(--ink-soft); }

/* ---------- 좌측: 명언 카드 ---------- */
.quote-card {
  position: relative;
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--white);
  aspect-ratio: 4 / 5;
}
.quote-card img { width: 100%; height: 100%; object-fit: cover; }
.quote-card figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 14px;
  background: linear-gradient(rgba(255,255,255,.15), rgba(190,215,255,.55));
}
.quote-card p {
  font-size: 12.5px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(110,135,190,.6);
  line-height: 1.7;
}

/* ---------- 좌측: 게이지 ---------- */
.gauge li { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.gauge .bar {
  flex: 1;
  height: 9px;
  border-radius: 99px;
  background: var(--blue-50);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.gauge .bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  background: linear-gradient(90deg, var(--blue-300), var(--pink-300));
}
.gauge em { font-style: normal; font-size: 10px; letter-spacing: .5px; color: var(--ink-soft); width: 62px; }

/* ---------- 좌측: 커넥션 ---------- */
.conn li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 7px 12px;
  border-radius: 99px;
  background: var(--blue-50);
  border: 1px solid var(--line);
  font-size: 12px;
  transition: .18s;
}
.conn li:hover { background: var(--pink-100); border-color: var(--pink-200); }
.conn i { font-style: normal; color: var(--pink-400); }

/* ---------- 카테고리 (티스토리 기본 마크업) ---------- */
.win-cate .win-body { max-height: 260px; overflow-y: auto; }
.win-cate li a {
  display: block;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  transition: .18s;
}
.win-cate li a:hover { background: var(--pink-100); color: var(--pink-600); }
.win-cate li li a { padding-left: 22px; font-size: 12px; color: var(--ink-soft); }
.win-cate .c_cnt { font-size: 10.5px; color: var(--blue-300); }

/* ============================================================
   중앙: 게임기
   ============================================================ */
.console-wrap { display: flex; justify-content: center; }
.console { width: 100%; max-width: 300px; height: auto; filter: drop-shadow(0 14px 30px rgba(130,155,205,.28)); }
.console .gb-t { font-family: var(--font); }
.console .gb-line { fill: #6b7daf; font-size: 13px; }
.console .gb-icon { fill: #ee9cbf; font-size: 11px; }
.console .gb-brand { fill: #7189c6; letter-spacing: 1px; }
.console .gb-key { fill: #fff; font-size: 17px; letter-spacing: 1px; }

/* ============================================================
   중앙: 글 목록 / 본문
   ============================================================ */
.card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--line);
  margin-bottom: 10px;
  transition: .2s;
}
.card:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(150,175,225,.22); }
.card-thumb {
  flex: 0 0 92px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(var(--blue-100), var(--pink-100));
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb.noimg img { display: none; }
.card-txt { min-width: 0; flex: 1; }
.card-cate {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--pink-100);
  color: var(--pink-600);
  font-size: 10px;
  letter-spacing: 1px;
}
.card h2 { margin: 5px 0 3px; font-size: 15px; line-height: 1.4; }
.card h2 a:hover { color: var(--pink-600); }
.card-sum {
  font-size: 12px;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { margin-top: 6px; font-size: 10.5px; color: var(--blue-300); display: flex; gap: 10px; }

/* 본문 */
.post-title { margin: 8px 0 6px; font-size: 22px; line-height: 1.45; }
.post-meta { font-size: 11px; color: var(--blue-300); letter-spacing: 1px; }
.post-body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 14.5px;
  line-height: 1.9;
}
.post-body img { border-radius: 12px; margin: 10px auto; }
.post-body a { color: var(--pink-600); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--pink-300);
  background: var(--blue-50);
  border-radius: 0 12px 12px 0;
}
.post-body h2, .post-body h3, .post-body h4 { margin: 22px 0 8px; }

.related ul { display: grid; gap: 4px; }
.related a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--blue-50);
  font-size: 12.5px;
}
.related a:hover { background: var(--pink-100); }

/* 페이징 */
.paging {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.paging a, .paging span {
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  font-size: 12px;
}
.paging a:hover, .paging .selected {
  background: linear-gradient(var(--pink-200), var(--pink-400));
  color: #fff;
  border-color: transparent;
}

/* ---------- 댓글 ---------- */
.cmt-wrap { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line); }
.cmt {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.cmt-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.cmt-h b { color: var(--pink-600); }
.cmt-h time { color: var(--blue-300); }
.cmt-ctl { margin-left: auto; font-size: 10.5px; color: var(--ink-soft); }
.cmt-b { margin-top: 5px; font-size: 13px; }

.cmt-form { margin-top: 14px; }
.cmt-form-row { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.cmt-form input, .cmt-form textarea {
  flex: 1;
  min-width: 110px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.8);
  outline: 0;
}
.cmt-form textarea { width: 100%; min-height: 88px; resize: vertical; }
.cmt-form input:focus, .cmt-form textarea:focus { border-color: var(--pink-300); box-shadow: 0 0 0 3px var(--pink-100); }
.cmt-form-btm { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.secret { font-size: 11.5px; color: var(--ink-soft); }
.cmt-form-btm button {
  margin-left: auto;
  padding: 8px 22px;
  border-radius: 99px;
  background: linear-gradient(var(--pink-200), var(--pink-400));
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ============================================================
   우측: 음악 플레이어
   ============================================================ */
.mp-top { display: flex; align-items: center; gap: 7px; }
.mp-dot {
  width: 26px; height: 26px;
  flex: 0 0 26px;
  border-radius: 99px;
  object-fit: cover;
  background: linear-gradient(var(--blue-200), var(--pink-200));
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(150,175,225,.3);
}
.mp-user { font-size: 12px; }
.mp-btn {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 99px;
  background: linear-gradient(var(--blue-200), var(--blue-400));
  color: #fff;
  font-size: 10.5px;
  letter-spacing: 1px;
}
/* 유튜브 플레이어 프레임.
   ⚠ 유튜브 정책상 뷰포트가 최소 200x200px 이상이어야 하므로
      min-width / min-height 를 200px 아래로 내리지 마세요. */
.mp-art {
  position: relative;
  margin: 12px 0 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #fff;
  aspect-ratio: 1 / 1;
  min-width: 200px;
  min-height: 200px;
  background: linear-gradient(var(--blue-100), var(--pink-100));
  box-shadow: 0 6px 16px rgba(150,175,225,.22);
}
.mp-art #bgmPlayer, .mp-art iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* 재생 전에만 보이는 커버 */
.mp-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  transition: opacity .35s, visibility .35s;
}
.mp-cover img { width: 100%; height: 100%; object-fit: cover; }
.mp-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,.1), rgba(200,220,255,.4));
}
.mp-cover-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: rgba(255,255,255,.85);
  color: var(--pink-600);
  font-size: 15px;
  padding-left: 3px;
  box-shadow: 0 4px 14px rgba(140,165,215,.35);
}
.mp-cover.hide { opacity: 0; visibility: hidden; }

/* 이퀄라이저 */
.mp-eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; padding: 0 2px; }
.mp-eq i {
  flex: 1;
  height: 22%;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(var(--blue-300), var(--pink-300));
  transition: height .3s;
}
.mp-eq.on i { animation: eq 1.1s ease-in-out infinite alternate; }
.mp-eq.on i:nth-child(2n) { animation-duration: .8s; }
.mp-eq.on i:nth-child(3n) { animation-duration: 1.4s; }
.mp-eq.on i:nth-child(4n) { animation-duration: .95s; }
@keyframes eq { from { height: 18%; } to { height: 100%; } }

.mp-title { margin: 10px 0 8px; text-align: center; font-size: 12.5px; color: var(--pink-600); }

/* 컨트롤 */
.mp-ctrl { display: flex; justify-content: center; align-items: center; gap: 12px; }
.mp-b {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--blue-50);
  border: 1px solid var(--line);
  color: var(--blue-400);
  font-size: 11px;
  transition: .18s;
}
.mp-b:hover { background: var(--pink-100); color: var(--pink-600); }
.mp-b.active { background: var(--pink-100); color: var(--pink-600); border-color: var(--pink-200); }
.mp-ctrl .play {
  width: 36px; height: 36px;
  background: linear-gradient(var(--pink-200), var(--pink-400));
  border-color: transparent;
  color: #fff;
  font-size: 12px;
}
.mp-ctrl .play:hover { color: #fff; filter: brightness(1.04); }

/* 볼륨 */
.mp-vol { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 0 2px; }
.mp-vol span { color: var(--pink-400); font-size: 12px; }
.mp-vol b { font-size: 10.5px; color: var(--blue-300); width: 22px; text-align: right; font-weight: 400; }
.mp-vol input[type=range] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, var(--blue-300), var(--pink-300));
  border-radius: 99px;
  outline: 0;
}
.mp-vol input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  border-radius: 99px;
  background: #fff;
  border: 2px solid var(--pink-400);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(150,175,225,.3);
}
.mp-vol input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 99px;
  background: #fff;
  border: 2px solid var(--pink-400);
  cursor: pointer;
}

/* ---------- 우측: 최근 글 ---------- */
.rct li a {
  display: block;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: .18s;
}
.rct li a:hover { background: var(--pink-100); color: var(--pink-600); }

/* ============================================================
   하단 독
   ============================================================ */
.dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 22px;
  background: var(--glass);
  border: 1.5px solid var(--white);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.dock-i {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(var(--white), var(--blue-100));
  border: 1px solid var(--line);
  color: var(--blue-400);
  transition: .2s;
}
.dock-i svg { width: 19px; height: 19px; fill: currentColor; }
.dock-i:hover {
  transform: translateY(-5px);
  background: linear-gradient(var(--white), var(--pink-100));
  color: var(--pink-600);
}

/* ============================================================
   창 드래그 (PC 전용)
   ============================================================ */
@media (min-width: 1025px) {
  .drag-handle { cursor: grab; user-select: none; touch-action: none; }
  [data-win] { transition: box-shadow .2s, filter .2s; }
  [data-win].dragging { cursor: grabbing; box-shadow: 0 18px 40px rgba(120,145,200,.34); }
  [data-win].dragging .drag-handle { cursor: grabbing; }
  .console-wrap.drag-handle { cursor: grab; }
  .console-wrap.dragging { filter: drop-shadow(0 20px 36px rgba(120,145,200,.38)); }
}
.sb-reset { color: var(--blue-400); font-size: 14px; padding: 0 11px; }
.sb-reset:hover { color: var(--pink-600); }
/* ↺ 는 모든 화면에서 보입니다 */

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1024px) {
  .desk { grid-template-columns: 220px minmax(0, 1fr); }
  .col-right { grid-column: 1 / -1; position: static; }
  /* 240px : 유튜브 최소 규격(200px)을 넘겨야 하므로 더 줄이지 마세요 */
  .win-music .win-body { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: center; }
  .win-music .mp-top, .win-music .mp-eq, .win-music .mp-title,
  .win-music .mp-ctrl, .win-music .mp-vol { grid-column: 2; }
  .win-music .mp-art { grid-row: 1 / 7; grid-column: 1; margin: 0; }
}

@media (max-width: 768px) {
  body { font-size: 13.5px; }

  .wallpaper { background-image: var(--bg-mo); background-attachment: scroll; }

  .desk {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 6px 12px 100px;
  }
  .col-left, .col-right { position: static; }

  /* 모바일 순서: 게임기 → 글 → 음악 → 시계/카테고리 */
  .col-center { order: 1; }
  .col-right  { order: 2; }
  .col-left   { order: 3; }

  .statusbar { padding: 10px 12px; gap: 6px; }
  .sb-pill { height: 26px; padding: 0 11px; font-size: 11px; }
  .sb-hearts { display: none; }

  .console { max-width: 240px; }

  /* 음악 플레이어 다시 세로로 */
  .win-music .win-body { display: block; }
  .win-music .mp-art { margin: 12px 0 10px; }

  /* 좌측 패널은 접어두고 카테고리 버튼으로 열기 */
  .win-cate .win-body { max-height: 200px; }

  .card { gap: 10px; padding: 8px; }
  .card-thumb { flex-basis: 74px; height: 74px; }
  .card h2 { font-size: 14px; }
  .card-sum { -webkit-line-clamp: 2; font-size: 11.5px; }

  .post-title { font-size: 19px; }
  .post-body { font-size: 14px; }

  .dock {
    left: 50%;
    right: auto;
    bottom: 10px;
    transform: translateX(-50%);
    justify-content: center;
    gap: 8px;
    border-radius: 20px;
    padding: 7px 10px;
    max-width: calc(100vw - 24px);
  }
  .dock-i { width: 40px; max-width: 40px; height: 38px; flex: 0 0 auto; }
  .dock-i:hover { transform: none; }
}

@media (max-width: 400px) {
  .clock-box b { font-size: 26px; }
  .dock-i svg { width: 17px; height: 17px; }
}

/* 접근성 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 2px solid var(--pink-400); outline-offset: 2px; border-radius: 8px; }

/* ============================================================
   PIXEL BROWSER  —  테두리/레이아웃만 픽셀 창 느낌으로
   (색·간격·타이포는 기존 그대로)
   ============================================================ */

.desk { gap: 22px; }

/* ---------- 창 : 픽셀 모서리 ----------
   box-shadow 를 상하좌우로 3px 씩 밀어 모서리를 잘라낸
   도트 게임식 둥근 모서리입니다. */
.win {
  border-radius: 0;
  border: 3px solid var(--white);
  box-shadow:
    0 -3px 0 var(--blue-200),
    0  3px 0 var(--blue-200),
    -3px 0 0 var(--blue-200),
     3px 0 0 var(--blue-200),
     6px 6px 0 rgba(140, 165, 215, .20);
}
[data-win].dragging {
  box-shadow:
    0 -3px 0 var(--pink-300),
    0  3px 0 var(--pink-300),
    -3px 0 0 var(--pink-300),
     3px 0 0 var(--pink-300),
     10px 10px 0 rgba(140, 165, 215, .28);
}

/* ---------- 타이틀 바 : 브라우저 크롬 ---------- */
.win-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 0;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .45);
}
/* 좌측 신호등 (사각 픽셀) */
.win-bar::before {
  content: '';
  flex: 0 0 32px;
  height: 7px;
  background:
    linear-gradient(#fff, #fff) 0    0 / 7px 7px no-repeat,
    linear-gradient(#fff, #fff) 12px 0 / 7px 7px no-repeat,
    linear-gradient(#fff, #fff) 24px 0 / 7px 7px no-repeat;
  opacity: .9;
}
/* 우측 창 버튼 */
.win-bar::after {
  content: '─ ▢ ✕';
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 1px;
  opacity: .85;
}

/* ---------- 상단 상태바 ---------- */
.sb-pill {
  border-radius: 0;
  border: 2px solid var(--white);
  box-shadow:
    0 -2px 0 var(--blue-200),
    0  2px 0 var(--blue-200),
    -2px 0 0 var(--blue-200),
     2px 0 0 var(--blue-200);
}
.search-form { border-radius: 0; border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--blue-200); }
.search-form input, .search-form button { border-radius: 0; }

/* ---------- 콘텐츠 요소 ---------- */
.clock-box,
.quote-card,
.card-thumb,
.mp-art,
.mp-cover-play,
.related a,
.cmt,
.cmt-form input,
.cmt-form textarea,
.win-cate li a,
.rct li a,
.conn li,
.gauge .bar,
.mp-b,
.mp-vol input[type=range],
.mp-vol input[type=range]::-webkit-slider-thumb,
.paging a,
.paging span,
.mp-btn,
.card-cate { border-radius: 0; }

.card {
  border-radius: 0;
  border: 2px solid var(--blue-200);
  box-shadow: 3px 3px 0 rgba(169, 198, 245, .30);
}
.card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--pink-300);
  box-shadow: 5px 5px 0 rgba(245, 191, 212, .45);
}
.mp-art { border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--blue-200); }
.mp-dot { border-radius: 0; border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--pink-200); }
.quote-card { border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--pink-200); }
.clock-box  { border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--blue-200); }

/* ---------- 하단 독 ---------- */
.dock {
  border-radius: 0;
  border: 3px solid var(--white);
  box-shadow:
    0 -3px 0 var(--blue-200),
    0  3px 0 var(--blue-200),
    -3px 0 0 var(--blue-200),
     3px 0 0 var(--blue-200),
     6px 6px 0 rgba(140, 165, 215, .20);
}
.dock-i {
  border-radius: 0;
  border: 2px solid var(--blue-200);
}
.dock-i:hover { transform: translate(-2px, -3px); border-color: var(--pink-300); }

/* ============================================================
   마우스 커서
   직접 만든 이미지를 쓰려면 아래 url(...) 안을 이미지 주소로 바꾸세요.
   예) cursor: url('https://itimg.kr/249/webimg/cursor.png') 2 2, auto;
   ※ 커서 이미지는 32x32px 이하 png 를 권장합니다.
   ============================================================ */
body,
.wallpaper {
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='28' viewBox='0 0 11 14' shape-rendering='crispEdges'><path d='M1 1 L1 12 L3.4 9.6 L5 13 L6.6 12.3 L5 9 L8.6 9 Z' fill='%23ffffff' stroke='%237189c6' stroke-width='1' stroke-linejoin='miter'/></svg>") 1 1, auto;
}
a, button, summary, label, [role=button], .dock-i, .mp-b, .sb-pill, .card, input[type=range] {
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='28' viewBox='0 0 11 14' shape-rendering='crispEdges'><path d='M1 1 L1 12 L3.4 9.6 L5 13 L6.6 12.3 L5 9 L8.6 9 Z' fill='%23ffffff' stroke='%23e58baf' stroke-width='1' stroke-linejoin='miter'/></svg>") 1 1, pointer;
}
.drag-handle { cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 12 12' shape-rendering='crispEdges'><path d='M5 0h2v3h3v2H7v3H5V5H2V3h3z' fill='%23ffffff' stroke='%237189c6' stroke-width='.8'/></svg>") 12 12, grab; }

/* ============================================================
   클릭 이펙트
   ============================================================ */
.click-fx {
  position: fixed;
  z-index: 9999;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  pointer-events: none;
  background: center / contain no-repeat;
  image-rendering: pixelated;
  animation: clickfx .65s steps(6) forwards;
}
@keyframes clickfx {
  0%   { transform: scale(.4) rotate(-12deg); opacity: 0; }
  25%  { transform: scale(1.15) rotate(0deg);  opacity: 1; }
  100% { transform: scale(.7) translateY(-18px) rotate(10deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .click-fx { display: none; } }

/* ============================================================
   모바일 균형 조정
   음악 위젯은 유튜브 최소 규격(200px)에 딱 맞추고,
   글 영역에 공간을 몰아줍니다.
   ============================================================ */
@media (max-width: 768px) {
  .desk { gap: 16px; padding: 6px 10px 100px; }

  /* 음악: 200x200 고정 + 가운데 정렬 */
  .win-music .mp-art {
    width: 200px;
    height: 200px;
    min-width: 200px;
    min-height: 200px;
    margin: 12px auto 10px;
  }
  .win-music .mp-eq { height: 18px; }
  .win-music .win-body { padding: 12px; }

  /* 게임기도 살짝 축소 */
  .console { max-width: 205px; }
  .console-wrap { margin-bottom: -4px; }

  /* 글 영역 키우기 */
  .win-main .win-body { padding: 12px 11px 16px; }
  .card { gap: 11px; padding: 9px; margin-bottom: 9px; }
  .card-thumb { flex-basis: 84px; height: 84px; }
  .card h2 { font-size: 15px; }
  .card-sum { font-size: 12.5px; -webkit-line-clamp: 3; }
  .card-meta { font-size: 11px; }
  .post-title { font-size: 20px; }
  .post-body { font-size: 14.5px; }

  /* 커서는 모바일에서 불필요 */
  body, a, button, .dock-i, .mp-b, .sb-pill, .card { cursor: auto; }
}

@media (max-width: 380px) {
  .win-music .mp-art { width: 100%; min-width: 0; height: auto; aspect-ratio: 1/1; }
}

/* ============================================================
   소개 카드 : 이미지 없이 파스텔 패널로
   (img 를 다시 넣으면 자동으로 배경 이미지로 깔립니다)
   ============================================================ */
.quote-card {
  aspect-ratio: auto;
  min-height: 108px;
  background: linear-gradient(150deg, var(--blue-100), var(--pink-100));
}
.quote-card figcaption {
  position: static;
  background: none;
  padding: 16px 14px;
}
.quote-card p {
  color: var(--ink);
  text-shadow: none;
  font-size: 12.5px;
}
/* 이미지를 다시 넣었을 때만 오버레이 복원 */
.quote-card:has(img) { aspect-ratio: 4 / 5; }
.quote-card:has(img) figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(255,255,255,.15), rgba(190,215,255,.55));
}
.quote-card:has(img) p { color: #fff; text-shadow: 0 1px 4px rgba(110,135,190,.6); }

/* ============================================================
   좌측 프로필 (큰 시계 자리 대체)
   시각은 상단 상태바에 이미 있으므로 여기서는 표시하지 않습니다.
   ============================================================ */
.me {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 2px 12px;
}
.me-img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--pink-200);
}
.me-txt { min-width: 0; line-height: 1.35; }
.me-txt b { display: block; font-size: 13.5px; color: var(--ink); }
.me-txt span { font-size: 11px; letter-spacing: .5px; color: var(--pink-600); }

/* 사용하지 않는 큰 시계 */
.clock-row { display: none; }

/* ============================================================
   방명록
   ============================================================ */
.guest { padding: 4px 0 6px; }
.guest a { color: var(--pink-600); }

/* ============================================================
   십자키 = 조작법 도움말
   ============================================================ */
.gb-dpad { cursor: pointer; }
.gb-dpad:hover path:first-of-type { filter: brightness(1.06); }

.help-back {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(150, 175, 225, .35);
  backdrop-filter: blur(2px);
}
.help-win {
  position: fixed;
  z-index: 201;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(400px, calc(100vw - 32px));
  background: rgba(255, 255, 255, .94);
  border: 3px solid var(--white);
  box-shadow:
    0 -3px 0 var(--pink-300),
    0  3px 0 var(--pink-300),
    -3px 0 0 var(--pink-300),
     3px 0 0 var(--pink-300),
     8px 8px 0 rgba(140, 165, 215, .28);
}
.help-lead { font-size: 12.5px; color: var(--ink); margin-bottom: 12px; }
.help-list { display: grid; gap: 8px; }
.help-list li {
  padding: 9px 12px;
  background: var(--blue-50);
  border: 2px solid var(--blue-200);
}
.help-list b { display: block; font-size: 11.5px; letter-spacing: 1px; color: var(--pink-600); margin-bottom: 2px; }
.help-list span { font-size: 12px; color: var(--ink); }
.help-list em {
  font-style: normal;
  padding: 0 5px;
  background: var(--white);
  border: 1px solid var(--blue-200);
}
.help-note { margin-top: 10px; font-size: 11px; color: var(--ink-soft); line-height: 1.6; }
.help-close {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px 0;
  background: linear-gradient(var(--pink-200), var(--pink-400));
  border: 2px solid var(--white);
  color: #fff;
  font-size: 12px;
  letter-spacing: 2px;
}

/* ============================================================
   프로필 이미지 확대
   ============================================================ */
.me-img { width: 64px; height: 64px; flex-basis: 64px; }
.me-txt b { font-size: 15px; }
.me-txt span { font-size: 11.5px; }
.mp-dot { width: 34px; height: 34px; flex-basis: 34px; }

/* ============================================================
   모바일 : 게임기 크기 정리
   ============================================================ */
@media (max-width: 768px) {
  .console { max-width: 268px; }
  .console-wrap { margin-bottom: 0; }
  .me-img { width: 58px; height: 58px; flex-basis: 58px; }
}
@media (max-width: 400px) {
  .console { max-width: 232px; }
}

/* 모바일에서는 십자키가 버튼이 아닙니다 (창을 옮길 수 없으므로) */
.gb-dpad-off { cursor: default; pointer-events: none; }
.gb-dpad-off > title { display: none; }
@media (max-width: 899px) {
  .gb-dpad { cursor: default; }
}

/* ============================================================
   창 버튼 (접기 / 원위치 / 닫기)
   ============================================================ */
.win-bar::after { content: none; }   /* 장식이던 가짜 버튼 제거 */

.win-btns {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.win-btns button {
  width: 18px;
  height: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .9);
  color: var(--ink);
  font-size: 9px;
  line-height: 1;
  transition: .15s;
}
.win-btns button:hover { background: #fff; color: var(--pink-600); }
.win-btns button[data-act=close]:hover { background: var(--pink-400); color: #fff; }

.is-folded > .win-body { display: none; }
.is-folded > .win-bar  { box-shadow: none; }
/* .is-closed : 닫기 기능 폐지 */

/* 게임기는 제목 바가 없으므로 버튼 대신 드래그만 */
.console-wrap .win-btns { display: none; }

/* ============================================================
   카테고리 : 클릭 영역 확보
   ============================================================ */
.win-cate .win-body { position: relative; z-index: 1; }
.win-cate a { display: block; position: relative; z-index: 1; }
.win-cate ul, .win-cate li { pointer-events: auto; }

/* ============================================================
   댓글 : 티스토리 신규 위젯 여백만 정리
   ============================================================ */
.cmt-wrap { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); }
.cmt-wrap a { color: var(--pink-600); }

/* ============================================================
   겹침 방지 : 좌우 사이드 창이 항상 위에 오도록
   (가운데 큰 창이 덮으면 카테고리 클릭이 먹히지 않습니다)
   ============================================================ */
.col-left  > .win { position: relative; z-index: 3; }
.col-right > .win { position: relative; z-index: 3; }
.col-center > .win,
.col-center > .console-wrap { position: relative; z-index: 1; }

/* 카테고리 목록이 잘리지 않도록 */
.win-cate .win-body { max-height: none; overflow: visible; }

/* ============================================================
   빈 목록 안내
   ============================================================ */
.empty {
  padding: 34px 20px 30px;
  text-align: center;
}
.empty b {
  display: block;
  font-size: 24px;
  color: var(--pink-300);
  margin-bottom: 10px;
}
.empty p { font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.empty span { display: block; font-size: 11.5px; color: var(--ink-soft); line-height: 1.7; }
.empty a {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 22px;
  background: linear-gradient(var(--pink-200), var(--pink-400));
  border: 2px solid var(--white);
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ============================================================
   모바일 스크롤 최적화
   유리 흐림 효과(backdrop-filter)가 스크롤할 때마다 화면 전체를
   다시 그려서 버벅임의 주원인입니다. 터치 기기에서는 끄고
   대신 배경을 조금 더 불투명하게 채웁니다.
   ============================================================ */
@media (hover: none), (max-width: 768px) {
  .wallpaper::after { backdrop-filter: none; }
  .win,
  .sb-pill,
  .search-form,
  .dock,
  .help-back,
  .help-win { backdrop-filter: none !important; }

  .win   { background: rgba(255, 255, 255, .90); }
  .dock,
  .sb-pill,
  .search-form { background: rgba(255, 255, 255, .92); }

  /* 고정 요소를 별도 레이어로 올려 재계산을 줄입니다 */
  .dock,
  .statusbar { transform: translateZ(0); will-change: transform; }
  .wallpaper { transform: translateZ(0); }

  /* 이퀄라이저 애니메이션 정지 */
  .mp-eq.on i { animation: none; height: 55%; }

  /* 드래그용 전환 효과 제거 */
  [data-win] { transition: none; }
}

/* ============================================================
   모바일 순서 : 음악 → 글 → 게임기 → 프로필 → 카테고리 → 최근글
   컬럼을 display:contents 로 풀어서 창 하나하나에 순서를 줍니다.
   ============================================================ */
@media (max-width: 768px) {
  .desk {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .col { display: contents; }

  .win-music    { order: 1; }
  .win-main     { order: 2; }
  .console-wrap { order: 3; }
  .win-left     { order: 4; }
  .win-cate     { order: 5; }
  .win-recent   { order: 6; }
}

/* ============================================================
   음악 위젯 정렬 고정
   태블릿 폭(769~1024px)에서 2단 그리드로 바뀌면서 플레이어가
   왼쪽으로 몰리던 문제를 없앱니다. 좁은 화면에서는 항상 한 줄로
   쌓고 가운데 정렬합니다.
   ============================================================ */
@media (max-width: 1024px) {
  .win-music .win-body {
    display: block !important;
    padding: 14px;
  }
  .win-music .mp-top,
  .win-music .mp-eq,
  .win-music .mp-title,
  .win-music .mp-ctrl,
  .win-music .mp-vol { grid-column: auto; }

  .win-music .mp-art {
    width: 200px;
    height: 200px;
    min-width: 200px;
    min-height: 200px;
    margin-left: auto;
    margin-right: auto;
    grid-row: auto;
    grid-column: auto;
  }
}
@media (max-width: 420px) {
  .win-music .mp-art {
    width: 100%;
    height: auto;
    min-width: 200px;
    aspect-ratio: 1 / 1;
  }
}

/* ============================================================
   chibi 갤러리
   ============================================================ */
.win-chibi .win-bar { cursor: pointer; }
.win-chibi .win-bar::before { opacity: .9; }
.chibi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.chibi-grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--pink-200);
  background: linear-gradient(var(--blue-100), var(--pink-100));
  transition: .18s;
}
.chibi-grid a:hover { box-shadow: 0 0 0 2px var(--blue-300); transform: translate(-2px, -2px); }
.chibi-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   모바일 메뉴 (좌측 상단) + 서랍
   ============================================================ */
.m-menu {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 120;
  width: 40px;
  height: 40px;
  place-items: center;
  background: rgba(255, 255, 255, .92);
  border: 3px solid var(--white);
  box-shadow:
    0 -3px 0 var(--blue-200),
    0  3px 0 var(--blue-200),
    -3px 0 0 var(--blue-200),
     3px 0 0 var(--blue-200);
  color: var(--blue-400);
}
.m-menu svg { width: 20px; height: 20px; fill: currentColor; }
.m-menu[aria-expanded=true] { color: var(--pink-600); }

.m-back {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(150, 175, 225, .38);
}
.m-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 140;
  width: min(84vw, 320px);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .96);
  border-right: 3px solid var(--pink-300);
  box-shadow: 6px 0 0 rgba(140, 165, 215, .22);
}
.m-drawer .win-bar { flex: 0 0 auto; }
.m-close {
  margin-left: auto;
  width: 20px;
  height: 18px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .9);
  color: var(--ink);
  font-size: 10px;
}
.m-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  -webkit-overflow-scrolling: touch;
}
.m-all {
  display: block;
  padding: 11px 0;
  margin-bottom: 6px;
  text-align: center;
  background: linear-gradient(var(--pink-200), var(--pink-400));
  border: 2px solid var(--white);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 1px;
}
.m-h {
  margin: 16px 0 7px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--pink-600);
}
.m-cate a, .m-rct a, .m-links a {
  display: block;
  padding: 10px 12px;
  margin-bottom: 4px;
  background: var(--blue-50);
  border: 2px solid var(--blue-200);
  font-size: 13px;
  color: var(--ink);
}
.m-cate a:active, .m-rct a:active, .m-links a:active {
  background: var(--pink-100);
  border-color: var(--pink-300);
}
.m-cate li li a { padding-left: 24px; font-size: 12px; color: var(--ink-soft); }
body.drawer-on { overflow: hidden; }

/* 노출 조건 : 터치 기기이거나 아주 좁은 화면일 때만.
   마우스가 있는 PC 는 창을 좁혀도 절대 나오지 않습니다. */
@media (hover: none) and (pointer: coarse) {
  .m-menu { display: grid; }
  .statusbar { padding-left: 58px; }
}
@media (max-width: 640px) {
  .m-menu { display: grid; }
  .statusbar { padding-left: 58px; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 641px) {
  .m-menu { display: none !important; }
  .m-drawer, .m-back { display: none !important; }
  .statusbar { padding-left: 16px; }
}

/* ============================================================
   모바일 순서에 chibi 끼워넣기
   음악 → 글 → 게임기 → chibi → 프로필 → 카테고리 → 최근글
   ============================================================ */
@media (max-width: 768px) {
  .win-chibi  { order: 4; }
  .win-left   { order: 5; }
  .win-cate   { order: 6; }
  .win-recent { order: 7; }
}

/* ============================================================
   hidden 속성이 항상 이기도록
   .m-drawer 처럼 display 를 직접 지정한 요소는 hidden 이 무시됩니다.
   ============================================================ */
[hidden] { display: none !important; }

/* ============================================================
   서랍 안으로 옮겨진 게임기 / chibi
   ============================================================ */
.m-body > .console-wrap {
  margin: 0 0 14px;
  display: flex;
  justify-content: center;
}
.m-body > .console-wrap .console { max-width: 210px; width: 100%; }

.m-body > .win-chibi { margin: 0 0 14px; }
.m-body > .win-chibi .win-body { padding: 10px; }
.m-body > .win-chibi .chibi-grid { gap: 6px; }

/* 본문 쪽 순서에서는 빠졌으므로 자리만 정리 */
@media (max-width: 768px) {
  .win-left   { order: 4; }
  .win-cate   { order: 5; }
  .win-recent { order: 6; }
}

/* 서랍 안으로 옮겨진 창들 */
.m-body > .win { margin: 0 0 14px; }
.m-body > .win .win-body { max-height: none; overflow: visible; }

/* ============================================================
   모바일 본문 : 글만 남기기
   위젯은 전부 좌측 메뉴(서랍) 안으로 옮겨집니다.
   ============================================================ */
body.m-moved .desk {
  display: block;
  padding-top: 4px;
}
body.m-moved .win-main { margin: 0; }
body.m-moved .col { display: contents; }

/* 서랍 안의 음악 위젯 폭 정리 */
.m-body > .win-music .mp-art {
  width: 100%;
  min-width: 200px;
  height: auto;
  aspect-ratio: 1 / 1;
}

/* ============================================================
   쯔꾸르풍 대화 위젯
   ============================================================ */
.center-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.center-top .console-wrap { flex: 0 0 auto; margin: 0; }
.center-top .console { max-width: 240px; }
.center-top .win-rpg { flex: 1 1 auto; min-width: 0; }

.win-rpg .win-bar { cursor: pointer; }
.win-rpg .win-body { padding: 10px; }

.rpg { user-select: none; }

/* 배경 + 캐릭터 무대 */
.rpg-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  aspect-ratio: 16 / 10;
  padding: 0 4px;
  background: var(--blue-100) center / cover no-repeat;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue-200);
  overflow: hidden;
  image-rendering: pixelated;
}
.rpg-actor {
  height: 90%;
  display: flex;
  align-items: flex-end;
  transition: filter .25s, opacity .25s, transform .25s;
}
.rpg-actor img {
  height: 100%;
  width: auto;
  object-fit: contain;
  image-rendering: auto;
}
.rpg-actor.is-r img { transform: scaleX(-1); }
.rpg-actor.is-quiet {
  filter: brightness(.62) saturate(.6);
  opacity: .8;
  transform: translateY(3px) scale(.96);
}

/* 대사 상자 */
.rpg-box {
  margin-top: 8px;
  padding: 10px 12px 12px;
  min-height: 84px;
  background: rgba(255, 255, 255, .92);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--pink-200);
  cursor: pointer;
}
.rpg-box:hover { background: #fff; }
.rpg-who {
  display: block;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--pink-600);
  margin-bottom: 5px;
}
.rpg-text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
  word-break: keep-all;
}
.rpg-cur {
  display: none;
  font-style: normal;
  margin-left: 4px;
  color: var(--pink-400);
  font-size: 10px;
}
.rpg-cur.is-on { display: inline-block; animation: rpgblink 1s steps(2) infinite; }
@keyframes rpgblink { 50% { opacity: 0; } }

/* 좁은 화면 : 게임기 위, 대화창 아래 */
@media (max-width: 1024px) {
  .center-top { flex-direction: column; align-items: center; }
  .center-top .console { max-width: 260px; }
  .center-top .win-rpg { width: 100%; }
}

/* 서랍 안에 들어갔을 때 */
.m-body > .win-rpg { margin: 0 0 14px; }
.m-body > .win-rpg .rpg-box { min-height: 92px; }
@media (prefers-reduced-motion: reduce) {
  .rpg-cur.is-on { animation: none; }
  .rpg-actor { transition: none; }
}

/* ============================================================
   대화창 전체 화면 보기
   ============================================================ */
.big-back {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(150, 175, 225, .42);
  backdrop-filter: blur(2px);
}
[data-win].is-big {
  position: fixed !important;
  z-index: 301;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) !important;
  width: min(940px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 0 !important;
}
[data-win].is-big .win-body { padding: 16px; }
[data-win].is-big .rpg-stage { aspect-ratio: 16 / 8.5; }
[data-win].is-big .rpg-box {
  min-height: 128px;
  padding: 16px 20px 20px;
}
[data-win].is-big .rpg-who { font-size: 14px; margin-bottom: 8px; }
[data-win].is-big .rpg-text { font-size: 16px; line-height: 1.85; }
body.big-on { overflow: hidden; }

/* 전체 창 버튼 */
.win-btns button[data-act=big] { font-size: 10px; }

/* ============================================================
   공지사항 (목록 맨 위 고정, 최대 2개)
   ============================================================ */
.notice-wrap { margin-bottom: 12px; }
.notice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  margin-bottom: 7px;
  background: linear-gradient(90deg, rgba(253,231,240,.9), rgba(238,244,255,.9));
  border: 2px solid var(--pink-300);
  box-shadow: 3px 3px 0 rgba(245, 191, 212, .40);
  transition: .18s;
}
.notice:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(245, 191, 212, .55);
  background: #fff;
}
.notice-tag {
  flex: 0 0 auto;
  padding: 3px 8px;
  background: var(--pink-400);
  border: 1px solid var(--white);
  color: #fff;
  font-size: 9.5px;
  letter-spacing: 1px;
}
.notice-title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-go { font-style: normal; color: var(--pink-400); font-size: 11px; }

/* (이전에 공지를 전부 숨기던 규칙은 제거되었습니다) */

/* ============================================================
   목록 카드 : 카드 전체를 눌러 글로 이동
   ============================================================ */
.card { position: relative; }
.card h2 a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}
.card-thumb { pointer-events: none; }
.card:hover h2 a { color: var(--pink-600); }

/* ============================================================
   미연시 창이 게임기에 가려지지 않도록
   ============================================================ */
.center-top { position: relative; z-index: 2; }
.center-top .win-rpg { position: relative; z-index: 4; }
.center-top .console-wrap { position: relative; z-index: 2; }

/* 제목 바와 버튼을 확실히 보이게 */
.win-rpg .win-bar {
  position: relative;
  z-index: 5;
  min-height: 30px;
}
.win-rpg .win-btns { position: relative; z-index: 6; }
.win-rpg .win-btns button {
  width: 22px;
  height: 18px;
  font-size: 10px;
}

/* ============================================================
   테마 토글 버튼
   ============================================================ */
.sb-theme { color: var(--blue-400); font-size: 13px; padding: 0 12px; }
.sb-theme:hover { color: var(--pink-600); }
.th-ico { line-height: 1; }
.th-moon { display: none; }
.theme-dark .sb-theme .th-sun { display: none; }
.theme-dark .sb-theme .th-moon { display: inline; }

/* 모바일 떠있는 버튼 : 오른쪽 아래 */
.theme-fab {
  display: none;
  position: fixed;
  right: 12px;
  bottom: 62px;
  z-index: 110;
  width: 44px; height: 44px;
  place-items: center;
  font-size: 18px;
  color: var(--blue-400);
  background: rgba(255,255,255,.94);
  border: 3px solid var(--white);
  box-shadow:
    0 -3px 0 var(--blue-200), 0 3px 0 var(--blue-200),
    -3px 0 0 var(--blue-200), 3px 0 0 var(--blue-200),
    5px 5px 0 rgba(140,165,215,.25);
}
.theme-fab .th-moon { display: none; }
.theme-dark .theme-fab .th-sun { display: none; }
.theme-dark .theme-fab .th-moon { display: inline; }
@media (hover: none) and (pointer: coarse) { .theme-fab { display: grid; } }
@media (max-width: 640px) { .theme-fab { display: grid; } }

/* ============================================================
   ★ 다크 테마 — 밤과 달빛
   변수만 갈아끼워 전체 UI 톤을 바꿉니다.
   ============================================================ */
.theme-dark {
  --white:  #e8ecff;      /* 밝은 글자/테두리 대체 */
  --blue-50:  #1c2340;
  --blue-100: #232c4e;
  --blue-200: #38436e;
  --blue-300: #5566a0;
  --blue-400: #8fa0d8;
  --ink:      #d6ddf5;
  --ink-soft: #97a2ca;
  --pink-100: #2a2247;
  --pink-200: #4a3a6b;
  --pink-300: #7d6bb0;
  --pink-400: #9b86cf;
  --pink-600: #c3b0f0;

  --glass: rgba(28, 34, 62, .78);
  --line:  rgba(90, 110, 170, .45);
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);

  --bg-pc: url('https://tistory1.daumcdn.net/tistory/8954516/skin/images/10.jpg');
  --bg-mo: url('https://tistory1.daumcdn.net/tistory/8954516/skin/images/12.jpg');

  color: var(--ink);
  background: #12172b;
}

/* 배경 오버레이 : 밤 톤 + 달빛 */
.theme-dark .wallpaper::after {
  background:
    radial-gradient(circle at 78% 18%, rgba(220,228,255,.28), rgba(220,228,255,0) 32%),
    linear-gradient(160deg, rgba(18,23,43,.55), rgba(30,26,58,.60) 55%, rgba(20,20,40,.65));
}

/* 창 테두리를 은은한 달빛색으로 */
.theme-dark .win {
  background: var(--glass);
  border-color: rgba(150, 170, 230, .35);
  box-shadow:
    0 -3px 0 var(--blue-200), 0 3px 0 var(--blue-200),
    -3px 0 0 var(--blue-200), 3px 0 0 var(--blue-200),
    6px 6px 0 rgba(0,0,0,.35),
    0 0 22px rgba(150,170,240,.10);
}
.theme-dark .win-bar {
  background: linear-gradient(90deg, #3a4680, #6a5aa0);
  color: #eef1ff;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* 카드 / 요소 배경 */
.theme-dark .card { background: rgba(35, 44, 78, .6); border-color: var(--blue-200); box-shadow: 3px 3px 0 rgba(0,0,0,.3); }
.theme-dark .card:hover { background: rgba(45, 55, 95, .8); border-color: var(--pink-300); }
.theme-dark .notice {
  background: linear-gradient(90deg, rgba(74,58,107,.7), rgba(42,45,90,.7));
  border-color: var(--pink-300);
  box-shadow: 3px 3px 0 rgba(0,0,0,.3);
}
.theme-dark .conn li,
.theme-dark .win-cate li a:hover,
.theme-dark .related a,
.theme-dark .cmt,
.theme-dark .rct li a:hover,
.theme-dark .m-cate a,
.theme-dark .m-rct a,
.theme-dark .m-links a { background: var(--blue-50); }

.theme-dark .sb-pill,
.theme-dark .dock,
.theme-dark .search-form,
.theme-dark .m-menu,
.theme-dark .theme-fab { background: rgba(28,34,62,.9); border-color: rgba(150,170,230,.35); }
.theme-dark .dock-i { background: linear-gradient(var(--blue-100), var(--blue-50)); border-color: var(--blue-200); color: var(--blue-400); }
.theme-dark .dock-i:hover { background: linear-gradient(var(--blue-100), var(--pink-100)); color: var(--pink-600); }

/* 게임기 화면 안 글자색 */
.theme-dark .console .gb-line { fill: #cdd6f5; }
.theme-dark .console .gb-icon { fill: #c3b0f0; }
.theme-dark .console .gb-brand { fill: #9fb0e8; }

/* 프로필 이미지 : 다크 전용으로 교체 */
.theme-dark .me-img { content: url('https://tistory1.daumcdn.net/tistory/8954516/skin/images/11.jpg'); }
.theme-dark .mp-dot { content: url('https://tistory1.daumcdn.net/tistory/8954516/skin/images/11.jpg'); }

/* 커서 색도 밝게 */
.theme-dark body,
.theme-dark .wallpaper {
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='28' viewBox='0 0 11 14' shape-rendering='crispEdges'><path d='M1 1 L1 12 L3.4 9.6 L5 13 L6.6 12.3 L5 9 L8.6 9 Z' fill='%23e8ecff' stroke='%238fa0d8' stroke-width='1' stroke-linejoin='miter'/></svg>") 1 1, auto;
}

/* 부드러운 전환 */
body { transition: background-color .4s; }
.win, .win-bar, .card, .sb-pill, .dock, .dock-i { transition: background .35s, color .35s, border-color .35s; }

/* ============================================================
   System Info 게이지 완전 제거 (모든 모드)
   ============================================================ */
.gauge { display: none !important; }
.win-left .win-h:first-of-type { display: none; }  /* 'System Info' 헤더도 숨김 */

/* ============================================================
   다크 테마 : 게임기 색을 밤 톤으로
   SVG 그라데이션 stop 색을 직접 덮어씁니다.
   ============================================================ */
.theme-dark #gbBody stop:nth-child(1) { stop-color: #2a3358; }
.theme-dark #gbBody stop:nth-child(2) { stop-color: #232c4e; }
.theme-dark #gbBody stop:nth-child(3) { stop-color: #1a2140; }
.theme-dark #gbBezel stop:nth-child(1) { stop-color: #5a4a80; }
.theme-dark #gbBezel stop:nth-child(2) { stop-color: #453868; }
.theme-dark #gbScreen stop:nth-child(1) { stop-color: #2c3760; }
.theme-dark #gbScreen stop:nth-child(2) { stop-color: #1e2748; }
.theme-dark #gbPink stop:nth-child(1) { stop-color: #7d6bb0; }
.theme-dark #gbPink stop:nth-child(2) { stop-color: #5a4a88; }
.theme-dark #gbBlue stop:nth-child(1) { stop-color: #4a5890; }
.theme-dark #gbBlue stop:nth-child(2) { stop-color: #38436e; }
.theme-dark #gbBar stop:nth-child(1) { stop-color: #5566a0; }
.theme-dark #gbBar stop:nth-child(2) { stop-color: #9b86cf; }

/* 게임기 화면 안 밝은 요소들 (흰색으로 고정된 것들) 톤 조정 */
.theme-dark .console text[fill="#FFF"] { fill: #dfe4ff; }
.theme-dark .console .gb-key { fill: #eef1ff; }

/* ============================================================
   다크 테마 : 미연시 창 대사 글자 보이게
   ============================================================ */
.theme-dark .rpg-box {
  background: rgba(28, 34, 62, .9);
  border-color: rgba(150,170,230,.4);
  box-shadow: 0 0 0 2px var(--pink-300);
}
.theme-dark .rpg-box:hover { background: rgba(38, 46, 80, .95); }
.theme-dark .rpg-text { color: #dfe4ff; }
.theme-dark .rpg-who { color: #c3b0f0; }
.theme-dark .rpg-stage {
  background-color: #1a2140;
  border-color: rgba(150,170,230,.4);
  box-shadow: 0 0 0 2px var(--blue-200);
}

/* ============================================================
   다크 테마 : 마무리 일괄 정리
   (밝은 배경에 묻히는 요소들, 티스토리 기본 위젯 대응)
   ============================================================ */

/* --- 카테고리 : 흰 배경/검은 글자 강제 해제 --- */
.theme-dark .win-cate,
.theme-dark .win-cate * {
  background-color: transparent !important;
  color: var(--ink) !important;
}
.theme-dark .win-cate a { color: var(--ink) !important; }
.theme-dark .win-cate a:hover { background: var(--blue-50) !important; color: var(--pink-600) !important; }
.theme-dark .win-cate .c_cnt,
.theme-dark .win-cate .count { color: var(--blue-400) !important; }
/* 선택된 카테고리 표시 */
.theme-dark .win-cate .cnt_more,
.theme-dark .win-cate .link_item { color: var(--ink) !important; }

/* 모바일 서랍 안 카테고리도 동일 */
.theme-dark .m-cate,
.theme-dark .m-cate * {
  background-color: transparent !important;
  color: var(--ink) !important;
}
.theme-dark .m-cate a { background: var(--blue-50) !important; }

/* --- 최근글 / 리스트 계열 --- */
.theme-dark .rct li a { color: var(--ink-soft) !important; }
.theme-dark .rct li a:hover { background: var(--blue-50) !important; color: var(--pink-600) !important; }

/* --- 댓글 / 방명록 (티스토리 신규 위젯) --- */
.theme-dark .cmt-wrap,
.theme-dark .guest {
  color: var(--ink);
}
.theme-dark .cmt-wrap a,
.theme-dark .guest a { color: var(--pink-600); }

/* --- 본문 --- */
.theme-dark .post-title { color: var(--ink); }
.theme-dark .post-body { color: var(--ink); }
.theme-dark .post-body a { color: var(--pink-600); }
.theme-dark .post-body blockquote { background: var(--blue-50); border-left-color: var(--pink-300); }
.theme-dark .card h2 a { color: var(--ink); }
.theme-dark .card-sum { color: var(--ink-soft); }
.theme-dark .card-cate { background: var(--pink-100); color: var(--pink-600); }

/* --- 검색창 --- */
.theme-dark .search-form input { background: var(--blue-50); color: var(--ink); }

/* --- 소개 카드 --- */
.theme-dark .quote-card {
  background: linear-gradient(150deg, var(--blue-100), var(--pink-100));
}
.theme-dark .quote-card p { color: var(--ink); }

/* --- 프로필 이름/직함 --- */
.theme-dark .me-txt b { color: var(--ink); }
.theme-dark .me-txt span { color: var(--pink-600); }
.theme-dark .mp-user { color: var(--ink); }

/* --- 페이징 --- */
.theme-dark .paging a, .theme-dark .paging span { background: rgba(35,44,78,.7); color: var(--ink); border-color: var(--blue-200); }

/* --- 빈 목록 안내 --- */
.theme-dark .empty p { color: var(--ink); }
.theme-dark .empty span { color: var(--ink-soft); }

/* --- 도움말 창 --- */
.theme-dark .help-win { background: rgba(28,34,62,.96); }
.theme-dark .help-lead, .theme-dark .help-list span { color: var(--ink); }
.theme-dark .help-list li { background: var(--blue-50); border-color: var(--blue-200); }
.theme-dark .help-list em { background: var(--blue-100); border-color: var(--blue-200); }
.theme-dark .help-note { color: var(--ink-soft); }

/* --- 모바일 서랍 --- */
.theme-dark .m-drawer { background: rgba(20,25,45,.97); border-right-color: var(--pink-300); }
.theme-dark .m-rct a, .theme-dark .m-links a { background: var(--blue-50) !important; color: var(--ink) !important; }

/* ============================================================
   다크 테마 : 모바일 서랍 배경 완전 정리
   서랍 안의 모든 자식(티스토리 카테고리 위젯 포함)이
   흰 배경을 못 갖도록 강제합니다.
   ============================================================ */
.theme-dark .m-drawer {
  background: #161b2e !important;
  border-right-color: var(--pink-300) !important;
}
.theme-dark .m-drawer .win-bar {
  background: linear-gradient(90deg, #3a4680, #6a5aa0) !important;
  color: #eef1ff !important;
}
.theme-dark .m-body { background: #161b2e !important; }
.theme-dark .m-body * { background-color: transparent !important; }

/* 다시 살려야 하는 배경들 (링크/버튼 등) */
.theme-dark .m-all {
  background: linear-gradient(var(--pink-200), var(--pink-400)) !important;
  color: #fff !important;
}
.theme-dark .m-body .m-cate a,
.theme-dark .m-body .m-rct a,
.theme-dark .m-body .m-links a {
  background: #1c2340 !important;
  color: var(--ink) !important;
  border-color: var(--blue-200) !important;
}
.theme-dark .m-body .m-cate a:active,
.theme-dark .m-body .m-rct a:active,
.theme-dark .m-body .m-links a:active {
  background: var(--pink-100) !important;
  border-color: var(--pink-300) !important;
}
.theme-dark .m-h { color: var(--pink-600) !important; }
.theme-dark .m-close { background: rgba(255,255,255,.15) !important; color: #eef1ff !important; }

/* 서랍으로 옮겨진 게임기/미연시/음악/chibi 창도 배경 정리 */
.theme-dark .m-body > .win { background: var(--glass) !important; }
.theme-dark .m-body > .win .win-bar {
  background: linear-gradient(90deg, #3a4680, #6a5aa0) !important;
}

/* ============================================================
   다크 테마 : now loading 상태바 글자 보이게
   게임기 화면 안 흰 배경 바(#EEF4FF) 위 글자가 묻히는 문제
   ============================================================ */
.theme-dark .console rect[fill="#EEF4FF"] { fill: #2c3760; }
.theme-dark .console rect[fill="#E6EDFA"] { fill: #1e2748; }
.theme-dark .console rect[stroke="#D8E5FA"] { stroke: #5566a0; }
.theme-dark .console .gb-line { fill: #d6ddf5; }

/* ============================================================
   모바일 테마 버튼 위치 정리 (하단 독과 겹침 방지)
   ============================================================ */
@media (hover: none) and (pointer: coarse), (max-width: 640px) {
  /* 독 위쪽으로 충분히 띄우기 */
  .theme-fab {
    right: 12px;
    bottom: 66px;
    width: 42px;
    height: 42px;
    font-size: 17px;
    z-index: 46;   /* 독(45)보다 위 */
  }
  /* 맨위로 버튼과 세로로 겹치지 않도록 독은 그대로, fab 만 위로 */
}

/* 아주 좁은 화면에서 독이 커지면 더 띄움 */
@media (max-width: 400px) {
  .theme-fab { bottom: 62px; }
}

/* ============================================================
   ★ 다크 테마 : 모바일에서 흰 배경 강제 해제
   스크롤 최적화용으로 넣은 흰 배경(.90/.92)이 다크 모드에서
   밝은 글자를 묻히게 하던 문제를 바로잡습니다.
   ============================================================ */
@media (hover: none), (max-width: 768px) {
  .theme-dark .win { background: rgba(28, 34, 62, .92) !important; }
  .theme-dark .sb-pill,
  .theme-dark .dock,
  .theme-dark .search-form,
  .theme-dark .m-menu,
  .theme-dark .theme-fab { background: rgba(24, 30, 54, .94) !important; }
  .theme-dark .m-drawer { background: #161b2e !important; }
  .theme-dark .m-body { background: #161b2e !important; }

  /* 글자색 재확인 */
  .theme-dark .win-bar { color: #eef1ff !important; }
  .theme-dark .card h2 a,
  .theme-dark .post-title,
  .theme-dark .post-body,
  .theme-dark .me-txt b,
  .theme-dark .mp-user,
  .theme-dark .rpg-text { color: #dfe4ff !important; }
  .theme-dark .card-sum,
  .theme-dark .rct li a,
  .theme-dark .card-meta { color: var(--ink-soft) !important; }
}

/* ============================================================
   ★ 다크 테마 : 본문 글자 강제 밝게
   티스토리 에디터가 글에 직접 넣은 어두운 색 스타일까지 덮습니다.
   ============================================================ */
.theme-dark .post-body,
.theme-dark .post-body * {
  color: #dfe4ff !important;
}
/* 링크와 강조는 예외로 살림 */
.theme-dark .post-body a,
.theme-dark .post-body a * { color: #c3b0f0 !important; }
.theme-dark .post-body b,
.theme-dark .post-body strong { color: #ffffff !important; }

/* 인라인 배경색이 지정된 span 등은 배경만 살짝 어둡게 */
.theme-dark .post-body [style*="background"] {
  background: rgba(40, 48, 82, .6) !important;
}

/* 제목/목록/방명록/댓글 본문도 동일하게 */
.theme-dark .card h2,
.theme-dark .card h2 *,
.theme-dark .post-title,
.theme-dark .cmt-b,
.theme-dark .guest,
.theme-dark .guest * {
  color: #dfe4ff !important;
}
.theme-dark .guest a,
.theme-dark .guest a * { color: #c3b0f0 !important; }

/* ============================================================
   ★ 다크 테마 : 댓글 작성창 글자/입력칸
   티스토리 신규 댓글 위젯의 입력 영역이 어두워서 안 보이는 문제
   ============================================================ */
.theme-dark .cmt-wrap,
.theme-dark .cmt-wrap * {
  color: #dfe4ff !important;
}
.theme-dark .cmt-wrap a,
.theme-dark .cmt-wrap a * { color: #c3b0f0 !important; }

/* 입력칸 (이름/비밀번호/내용) */
.theme-dark .cmt-wrap input,
.theme-dark .cmt-wrap textarea {
  background: #1c2340 !important;
  color: #eef1ff !important;
  border-color: var(--blue-200) !important;
  -webkit-text-fill-color: #eef1ff !important;   /* 일부 브라우저 대응 */
}
.theme-dark .cmt-wrap input::placeholder,
.theme-dark .cmt-wrap textarea::placeholder {
  color: #8fa0d8 !important;
  -webkit-text-fill-color: #8fa0d8 !important;
}

/* 등록 버튼 등 */
.theme-dark .cmt-wrap button {
  color: #ffffff !important;
}

/* ============================================================
   리뷰 이벤트 배너 (recent 자리)
   ============================================================ */
.review-banner {
  display: block;
  border: 3px solid var(--white);
  box-shadow:
    0 -3px 0 var(--pink-300), 0 3px 0 var(--pink-300),
    -3px 0 0 var(--pink-300), 3px 0 0 var(--pink-300),
    6px 6px 0 rgba(140,165,215,.20);
  background: var(--pink-100);
  transition: transform .18s, box-shadow .18s;
  overflow: hidden;
}
.review-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.review-banner:hover {
  transform: translate(-2px, -2px);
  box-shadow:
    0 -3px 0 var(--pink-400), 0 3px 0 var(--pink-400),
    -3px 0 0 var(--pink-400), 3px 0 0 var(--pink-400),
    8px 8px 0 rgba(140,165,215,.30);
}
.theme-dark .review-banner {
  border-color: rgba(150,170,230,.4);
  box-shadow:
    0 -3px 0 var(--pink-300), 0 3px 0 var(--pink-300),
    -3px 0 0 var(--pink-300), 3px 0 0 var(--pink-300),
    6px 6px 0 rgba(0,0,0,.35), 0 0 18px rgba(180,150,240,.15);
}

/* ============================================================
   리뷰 이벤트 글 : 목록에서 테두리 강조
   ============================================================ */
.card.is-review {
  border: 3px solid var(--pink-400);
  box-shadow: 4px 4px 0 rgba(245,140,190,.45);
  background: linear-gradient(90deg, rgba(253,231,240,.5), rgba(255,255,255,.6));
}
.card.is-review::before {
  content: 'EVENT';
  position: absolute;
  top: -1px; right: -1px;
  z-index: 3;
  padding: 3px 9px;
  background: var(--pink-400);
  color: #fff;
  font-size: 9px;
  letter-spacing: 1px;
}
.theme-dark .card.is-review {
  border-color: var(--pink-400);
  background: linear-gradient(90deg, rgba(74,58,107,.6), rgba(35,44,78,.7));
  box-shadow: 4px 4px 0 rgba(0,0,0,.35), 0 0 16px rgba(180,150,240,.2);
}

/* ============================================================
   ★ 모바일 UI 위치 정리 : 리뷰 배너 / 테마 버튼
   ============================================================ */
@media (hover: none) and (pointer: coarse), (max-width: 640px) {
  /* 리뷰 배너 : 화면을 다 먹지 않게 축소 + 가운데 정렬 */
  .review-banner {
    display: block;
    width: min(62vw, 250px);
    margin: 6px auto 16px;
  }

  /* 테마 버튼 : 오른쪽 위 (왼쪽 위 메뉴 버튼과 대칭) */
  .theme-fab {
    top: 10px;
    right: 10px;
    bottom: auto;
    width: 40px;
    height: 40px;
    font-size: 16px;
    z-index: 120;
  }
  /* 상태바가 버튼과 겹치지 않게 양쪽 여백 */
  .statusbar { padding-left: 58px; padding-right: 58px; }
}

/* ============================================================
   모바일 리뷰 팝업 (하루 안보기)
   ============================================================ */
.rv-pop-back {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(20, 25, 45, .55);
  backdrop-filter: blur(2px);
}
.rv-pop {
  position: fixed;
  z-index: 211;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(78vw, 320px);
  background: var(--glass);
  border: 3px solid var(--white);
  box-shadow:
    0 -3px 0 var(--pink-300), 0 3px 0 var(--pink-300),
    -3px 0 0 var(--pink-300), 3px 0 0 var(--pink-300),
    8px 8px 0 rgba(0,0,0,.25);
  padding: 8px;
}
.rv-pop-img { display: block; }
.rv-pop-img img { width: 100%; height: auto; display: block; border: 2px solid var(--white); }
.rv-pop-btns { display: flex; gap: 6px; margin-top: 8px; }
.rv-pop-btns button {
  flex: 1;
  padding: 10px 0;
  font-size: 12px;
  border: 2px solid var(--white);
}
#rvPopHide { background: var(--blue-100); color: var(--ink); }
#rvPopClose { background: linear-gradient(var(--pink-200), var(--pink-400)); color: #fff; }
body.rvpop-on { overflow: hidden; }

.theme-dark .rv-pop { background: rgba(24,30,54,.96); border-color: rgba(150,170,230,.4); }
.theme-dark #rvPopHide { background: var(--blue-50); color: var(--ink); }

/* 모바일에서는 사이드 세로 배너를 숨김 (팝업으로 대체) */
@media (hover: none) and (pointer: coarse), (max-width: 640px) {
  .review-banner { display: none !important; }
}

/* ============================================================
   댓글 전체 접기 / 펼치기 버튼
   ============================================================ */
.cmt-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 0;
  margin-bottom: 12px;
  background: linear-gradient(var(--pink-100), var(--blue-50));
  border: 3px solid var(--pink-400);
  color: var(--pink-600);
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 600;
  box-shadow: 3px 3px 0 rgba(245, 191, 212, .45);
  transition: .18s;
}
.cmt-toggle:hover {
  background: linear-gradient(var(--pink-200), var(--pink-100));
  border-color: var(--pink-600);
  color: var(--pink-600);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(245, 191, 212, .6);
}
.cmt-toggle-ico { font-size: 10px; color: var(--pink-400); }

.theme-dark .cmt-toggle {
  background: linear-gradient(rgba(74,58,107,.5), var(--blue-50));
  border-color: var(--pink-400);
  color: var(--pink-600);
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
}
.theme-dark .cmt-toggle:hover { background: rgba(74,58,107,.7); border-color: #c3b0f0; color: #c3b0f0; }


/* ============================================================
   댓글 반쯤 보이기 (펼치기 전 미리보기)
   ============================================================ */
.cmt-wrap { position: relative; }
.cmt-body {
  max-height: 240px;          /* 접힘 상태에서 보이는 높이 */
  overflow: hidden;
  transition: max-height .35s ease;
}
.cmt-wrap.is-open .cmt-body { max-height: 6000px; }

/* 아래쪽 흐림 처리 (접힘 상태에서만) */
.cmt-fade {
  position: absolute;
  left: 0; right: 0;
  bottom: 52px;               /* 버튼 높이만큼 위 */
  height: 70px;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,0), var(--glass));
}
.cmt-wrap.is-open .cmt-fade { display: none; }
.theme-dark .cmt-fade { background: linear-gradient(rgba(24,30,54,0), rgba(24,30,54,.95)); }

.cmt-toggle { margin: 8px 0 0; }

/* ============================================================
   ★ 미연시 전체화면 깨짐 수정
   .center-top(flex) 안에 있어도 전체화면 시 완전히 독립시킴
   ============================================================ */
[data-win].win-rpg.is-big {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(940px, calc(100vw - 48px)) !important;
  max-width: none !important;
  max-height: calc(100vh - 48px) !important;
  flex: none !important;
  margin: 0 !important;
  z-index: 301 !important;
  overflow: auto !important;
}
/* 전체화면일 때 무대 비율 안정 */
[data-win].win-rpg.is-big .rpg-stage {
  aspect-ratio: 16 / 8.5;
  width: 100%;
}
[data-win].win-rpg.is-big .rpg-actor img { max-height: 320px; }

/* 전체화면 중에는 남은 center-top 이 무너지지 않게 */
.center-top { min-height: 0; }

/* ============================================================
   ★ 미연시 전체화면 : 뿌옇게 보이는 문제 수정
   부모의 흐림/투명도를 물려받지 않도록 불투명 배경 강제
   ============================================================ */
[data-win].win-rpg.is-big {
  background: #eef1ff !important;        /* 라이트: 불투명 흰빛 */
  backdrop-filter: none !important;
  opacity: 1 !important;
  filter: none !important;
  isolation: isolate;
}
.theme-dark [data-win].win-rpg.is-big {
  background: #1b2036 !important;        /* 다크: 불투명 남색 */
}
[data-win].win-rpg.is-big .win-body {
  background: transparent !important;
  backdrop-filter: none !important;
}
[data-win].win-rpg.is-big .rpg-stage,
[data-win].win-rpg.is-big .rpg-box {
  opacity: 1 !important;
  filter: none !important;
}
/* 배경 오버레이는 그대로 어둡게, 단 흐림은 약하게 */
.big-back { backdrop-filter: blur(1px) !important; background: rgba(15,18,35,.6) !important; }

/* ============================================================
   모바일 상단 가로 배너 (1200x320 비율)
   PC 에서는 숨기고, 모바일에서만 상단 UI 아래에 표시
   ============================================================ */
.m-topbanner { display: none; }

@media (hover: none) and (pointer: coarse), (max-width: 640px) {
  .m-topbanner {
    display: block;
    margin: 4px 10px 10px;
    border: 3px solid var(--white);
    box-shadow:
      0 -3px 0 var(--pink-300), 0 3px 0 var(--pink-300),
      -3px 0 0 var(--pink-300), 3px 0 0 var(--pink-300),
      5px 5px 0 rgba(140,165,215,.25);
    overflow: hidden;
  }
  .m-topbanner img {
    width: 100%;
    height: auto;
    display: block;
  }
  .theme-dark .m-topbanner {
    border-color: rgba(150,170,230,.4);
    box-shadow:
      0 -3px 0 var(--pink-300), 0 3px 0 var(--pink-300),
      -3px 0 0 var(--pink-300), 3px 0 0 var(--pink-300),
      5px 5px 0 rgba(0,0,0,.35);
  }

  /* 모바일에선 세로 사이드 배너 확실히 숨김 (이미 있지만 재확인) */
  .review-banner { display: none !important; }
}

/* ============================================================
   ★ 다크 테마 : 댓글 멘션(@닉네임) 칩 + 수정(⋮) 메뉴 글자 보이게
   .theme-dark .cmt-wrap * 가 글자를 밝게 만드는데, 멘션 칩과
   ⋮ 드롭다운은 배경이 밝아 글자가 묻힙니다. 배경을 어둡게 덮습니다.
   ============================================================ */
/* 멘션 칩 (@닉네임) */
.theme-dark .cmt-wrap a[href*="@"],
.theme-dark .cmt-wrap [class*="mention"],
.theme-dark .cmt-wrap [class*="Mention"],
.theme-dark .cmt-wrap [data-mention],
.theme-dark .cmt-wrap [class*="tag"] {
  background: rgba(123,107,176,.40) !important;
  color: #e9ddff !important;
  -webkit-text-fill-color: #e9ddff !important;
  border-radius: 4px;
}
/* ⋮ 더보기 / 수정·삭제 드롭다운 메뉴 */
.theme-dark .cmt-wrap [role="menu"],
.theme-dark .cmt-wrap [class*="menu"],
.theme-dark .cmt-wrap [class*="Menu"],
.theme-dark .cmt-wrap [class*="dropdown"],
.theme-dark .cmt-wrap [class*="Dropdown"],
.theme-dark .cmt-wrap [class*="popup"],
.theme-dark .cmt-wrap [class*="Popup"],
.theme-dark .cmt-wrap [class*="layer"],
.theme-dark .cmt-wrap [class*="Layer"] {
  background: #232c4e !important;
  border-color: rgba(150,170,230,.4) !important;
}
.theme-dark .cmt-wrap [role="menu"] *,
.theme-dark .cmt-wrap [role="menuitem"],
.theme-dark .cmt-wrap [class*="menu"] *,
.theme-dark .cmt-wrap [class*="Menu"] *,
.theme-dark .cmt-wrap [class*="dropdown"] *,
.theme-dark .cmt-wrap [class*="popup"] *,
.theme-dark .cmt-wrap [class*="layer"] * {
  color: #e8ecff !important;
  -webkit-text-fill-color: #e8ecff !important;
}
/* ⋮ 버튼 아이콘 자체도 밝게 */
.theme-dark .cmt-wrap [class*="more"],
.theme-dark .cmt-wrap [class*="More"],
.theme-dark .cmt-wrap [aria-label*="더보기"],
.theme-dark .cmt-wrap [aria-label*="메뉴"] {
  color: #cdd6f5 !important;
  -webkit-text-fill-color: #cdd6f5 !important;
}

/* ============================================================
   ★ 모바일 하단 독 : 버튼이 화면 밖으로 잘리지 않도록
   ============================================================ */
@media (max-width: 480px) {
  .dock {
    gap: 6px;
    padding: 6px 8px;
    max-width: calc(100vw - 20px);
  }
  .dock-i { width: 36px; max-width: 36px; height: 36px; }
  .dock-i svg { width: 16px; height: 16px; }
}
@media (max-width: 360px) {
  .dock { gap: 4px; padding: 5px 6px; }
  .dock-i { width: 32px; max-width: 32px; height: 34px; }
}


/* ============================================================
   ★★★ 다크 테마 : 사이버 그런지 (블랙 · 페이퍼 화이트 · 스틸 블루)
   레퍼런스 : 검은 프레임 + 종이 패널 + 빗금 · 하프톤 + 굵은 테크노 제목
   ============================================================ */
html body.theme-dark {
  --k:  #15171c;
  --k2: #262a33;
  --steel: #6b7894;
  --steel-l: #a3adc2;
  --paper: #e9eaed;
  --paper2: #f6f6f7;
  --tink: #1b1e24;
  --white: #e9eaed;
  --glass: #15171c;
  background: #101216;
}
html body.theme-dark .wallpaper { filter: grayscale(.75) contrast(1.08) brightness(.75); }
html body.theme-dark .wallpaper::after {
  background: linear-gradient(160deg, rgba(14,16,20,.55), rgba(14,16,20,.78)) !important;
}
html body.theme-dark .wallpaper::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.5px) 0 0 / 6px 6px;
}

/* ---------- 창 : 검은 프레임 + 흰 외곽선 ---------- */
html body.theme-dark .win {
  background: var(--k) !important;
  border: 2px solid var(--paper) !important;
  padding: 0 6px 6px;
  box-shadow: 0 0 0 4px var(--k), 0 0 0 5px rgba(233,234,237,.3), 8px 8px 0 rgba(0,0,0,.5) !important;
  backdrop-filter: none !important;
}
html body.theme-dark .win-bar {
  margin: 0 -6px;
  padding: 9px 12px !important;
  background:
    repeating-linear-gradient(-45deg, rgba(233,234,237,.22) 0 2px, transparent 2px 6px) right center / 34% 100% no-repeat,
    var(--k) !important;
  color: #f4f5f7 !important;
  font-family: 'Orbitron', var(--font);
  font-weight: 900;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  text-shadow: 0 0 8px rgba(255,255,255,.45) !important;
  box-shadow: none !important;
}
html body.theme-dark .win-bar::before {
  content: '✦';
  flex: 0 0 auto;
  width: auto; height: auto;
  background: none !important;
  font-size: 13px;
  opacity: 1;
  text-shadow: 0 0 8px rgba(255,255,255,.7);
}
html body.theme-dark .win-bar, html body.theme-dark .win-bar * { color: #f4f5f7 !important; -webkit-text-fill-color: #f4f5f7 !important; }
html body.theme-dark .win-btns button { background: var(--paper) !important; border: 0 !important; color: var(--k) !important; -webkit-text-fill-color: var(--k) !important; font-weight: 900; width: 18px; height: 16px; }

/* ---------- 패널 : 종이 화이트 + 위쪽 빗금 띠 ---------- */
html body.theme-dark .win-body {
  --ink: var(--tink); --ink-soft: #5c6373;
  --blue-50: #dcdee3; --blue-100: #d2d5dc; --blue-200: var(--k); --blue-300: var(--steel); --blue-400: var(--k);
  --pink-100: #dcdee3; --pink-200: var(--k); --pink-300: var(--k); --pink-400: var(--steel); --pink-600: var(--k);
  --line: rgba(21,23,28,.3);
  background:
    repeating-linear-gradient(-45deg, var(--k) 0 2px, transparent 2px 6px) top / 100% 7px no-repeat,
    repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 1px, transparent 1px 3px),
    var(--paper) !important;
  padding-top: 20px !important;
  box-shadow: none !important;
  color: var(--tink) !important;
}
html body.theme-dark .win-body, html body.theme-dark .win-body p, html body.theme-dark .win-body span, html body.theme-dark .win-body li, html body.theme-dark .win-body a, html body.theme-dark .win-body b,
html body.theme-dark .win-body h1, html body.theme-dark .win-body h2, html body.theme-dark .win-body h3, html body.theme-dark .win-body time,
html body.theme-dark .post-body, html body.theme-dark .post-body *, html body.theme-dark .post-title, html body.theme-dark .card h2, html body.theme-dark .card h2 *, html body.theme-dark .card-sum,
html body.theme-dark .me-txt b, html body.theme-dark .mp-user, html body.theme-dark .mp-title, html body.theme-dark .guest, html body.theme-dark .guest *, html body.theme-dark .cmt-wrap, html body.theme-dark .cmt-wrap *,
html body.theme-dark .win-cate, html body.theme-dark .win-cate *, html body.theme-dark .m-cate, html body.theme-dark .m-cate *, html body.theme-dark .rct li a, html body.theme-dark .empty p, html body.theme-dark .empty span {
  color: var(--tink) !important;
  -webkit-text-fill-color: var(--tink) !important;
}
html body.theme-dark .post-title, html body.theme-dark .card h2, html body.theme-dark .card h2 *, html body.theme-dark .me-txt b, html body.theme-dark .mp-user { font-weight: 800; }
html body.theme-dark .card-sum, html body.theme-dark .card-meta, html body.theme-dark .card-meta *, html body.theme-dark .post-meta, html body.theme-dark .me-txt span, html body.theme-dark .mp-vol b {
  color: #5c6373 !important; -webkit-text-fill-color: #5c6373 !important;
}
html body.theme-dark .post-body a, html body.theme-dark .post-body a *, html body.theme-dark .cmt-wrap a, html body.theme-dark .guest a { color: #3b4763 !important; -webkit-text-fill-color: #3b4763 !important; text-decoration: underline; }
html body.theme-dark .post-body [style*="background"] { background: #dcdee3 !important; }
html body.theme-dark .post-body blockquote { background: var(--paper2) !important; border-left: 6px solid var(--k) !important; }

/* ---------- 섹션 제목 : 검은 리본 ('ABOUT ME' 느낌) ---------- */
html body.theme-dark .win-h {
  display: table;
  margin: 16px 0 10px;
  padding: 4px 12px;
  background: var(--k);
  border-left: 6px solid var(--steel);
  box-shadow: 5px 0 0 var(--paper), 9px 0 0 var(--k);
  color: #f4f5f7 !important;
  -webkit-text-fill-color: #f4f5f7 !important;
  font-family: 'Orbitron', var(--font);
  font-weight: 900;
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 0;
}
html body.theme-dark .win-h::before, html body.theme-dark .win-h::after { content: none !important; }

/* ---------- 링크 버튼 : 사선 컷 블록 ('twitter' 바 느낌) ---------- */
html body.theme-dark .conn li {
  justify-content: space-between;
  padding: 11px 16px 11px 14px;
  margin-bottom: 9px;
  background: linear-gradient(90deg, var(--steel) 0 7px, var(--k2) 7px) !important;
  border: 0 !important;
  clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 12px) 100%, 0 100%);
  box-shadow: none !important;
  font-weight: 800;
  letter-spacing: 1.5px;
}
html body.theme-dark .conn li:hover { background: linear-gradient(90deg, var(--steel-l) 0 7px, #343945 7px) !important; }
html body.theme-dark .win-body .conn li, html body.theme-dark .win-body .conn li * { color: #f4f5f7 !important; -webkit-text-fill-color: #f4f5f7 !important; }
html body.theme-dark .conn i { color: var(--steel-l) !important; -webkit-text-fill-color: var(--steel-l) !important; }

/* ---------- 소개 카드 : 리포트 카드 ---------- */
html body.theme-dark .quote-card {
  background: var(--paper2) !important;
  border: 2px solid var(--k) !important;
  border-left: 9px solid var(--k) !important;
  box-shadow: 4px 4px 0 var(--steel) !important;
  min-height: 0;
  margin-bottom: 14px;
}
html body.theme-dark .win-body .quote-card p { color: var(--tink) !important; -webkit-text-fill-color: var(--tink) !important; }

/* ---------- 바코드 장식 (welcome 하단) ---------- */
html body.theme-dark .win-left .win-body::after {
  content: '';
  display: block;
  height: 26px;
  margin-top: 14px;
  background: repeating-linear-gradient(90deg,
    var(--k) 0 2px, transparent 2px 4px, var(--k) 4px 5px, transparent 5px 8px,
    var(--k) 8px 11px, transparent 11px 13px, var(--k) 13px 14px, transparent 14px 17px);
}

/* ---------- 이미지 테두리 ---------- */
html body.theme-dark .me-img, html body.theme-dark .mp-dot, html body.theme-dark .chibi-grid a, html body.theme-dark .mp-art, html body.theme-dark .rpg-stage, html body.theme-dark .card-thumb {
  border: 2px solid var(--k) !important;
  box-shadow: 3px 3px 0 var(--steel) !important;
  border-radius: 0 !important;
}
html body.theme-dark .card-thumb { background: #d2d5dc !important; }

/* ---------- 글 카드 / 공지 ---------- */
html body.theme-dark .card {
  background: var(--paper2) !important;
  border: 2px solid var(--k) !important;
  box-shadow: 5px 5px 0 var(--k) !important;
}
html body.theme-dark .card:hover { background: #ffffff !important; transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--steel) !important; }
html body.theme-dark .card-cate {
  background: var(--k) !important;
  border: 0 !important;
  padding: 3px 9px;
}
html body.theme-dark .win-body .card-cate, html body.theme-dark .win-body .card-cate *, html body.theme-dark .post .card-cate { color: #f4f5f7 !important; -webkit-text-fill-color: #f4f5f7 !important; }
html body.theme-dark .card.is-review { border-color: var(--k) !important; box-shadow: 5px 5px 0 var(--steel) !important; }
html body.theme-dark .card.is-review::before { background: var(--k) !important; font-family: 'Orbitron', var(--font); }
html body.theme-dark .notice {
  background:
    repeating-linear-gradient(-45deg, rgba(233,234,237,.12) 0 2px, transparent 2px 6px) right / 30% 100% no-repeat,
    var(--k) !important;
  border: 0 !important;
  box-shadow: 4px 4px 0 var(--steel) !important;
}
html body.theme-dark .notice:hover { background-color: var(--k2) !important; }
html body.theme-dark .win-body .notice, html body.theme-dark .win-body .notice * { color: #f4f5f7 !important; -webkit-text-fill-color: #f4f5f7 !important; }
html body.theme-dark .win-body .notice-tag {
  background: var(--paper) !important; border: 0 !important;
  color: var(--k) !important; -webkit-text-fill-color: var(--k) !important;
  font-family: 'Orbitron', var(--font); font-weight: 900;
}

/* ---------- 음악 ---------- */
html body.theme-dark .win-body .mp-btn, html body.theme-dark .win-body .mp-b {
  background: var(--k) !important; border: 0 !important; box-shadow: none !important;
  color: #f4f5f7 !important; -webkit-text-fill-color: #f4f5f7 !important;
}
html body.theme-dark .win-body .mp-btn { font-family: 'Orbitron', var(--font); font-weight: 900; letter-spacing: 1.5px; }
html body.theme-dark .win-body .mp-ctrl .play {
  background: var(--paper2) !important; border: 2px solid var(--k) !important;
  color: var(--k) !important; -webkit-text-fill-color: var(--k) !important;
}
html body.theme-dark .mp-eq i { background: var(--k) !important; }
html body.theme-dark .mp-vol input[type=range] { background: #c4c7ce !important; }
html body.theme-dark .mp-vol input[type=range]::-webkit-slider-thumb { background: var(--k) !important; border-color: var(--paper) !important; }
html body.theme-dark .mp-cover::after { background: linear-gradient(rgba(21,23,28,0), rgba(21,23,28,.25)) !important; }
html body.theme-dark .mp-cover-play { background: var(--k) !important; color: #f4f5f7 !important; }

/* ---------- 미연시 대사창 ---------- */
html body.theme-dark .win-body .rpg-box {
  background:
    repeating-linear-gradient(-45deg, rgba(233,234,237,.15) 0 2px, transparent 2px 6px) bottom / 100% 6px no-repeat,
    var(--k) !important;
  border: 0 !important;
  box-shadow: 4px 4px 0 var(--steel) !important;
}
html body.theme-dark .win-body .rpg-box, html body.theme-dark .win-body .rpg-box * { color: #f4f5f7 !important; -webkit-text-fill-color: #f4f5f7 !important; }
html body.theme-dark .win-body .rpg-who { color: var(--steel-l) !important; -webkit-text-fill-color: var(--steel-l) !important; font-family: 'Orbitron', var(--font); font-weight: 900; }
html body.theme-dark .rpg-stage { background-color: #2a2e36 !important; }

/* ---------- 상태바 / 독 / 모바일 버튼 ---------- */
html body.theme-dark .sb-pill, html body.theme-dark .dock-i, html body.theme-dark .m-menu, html body.theme-dark .theme-fab {
  background: var(--k) !important;
  border: 2px solid var(--paper) !important;
  box-shadow: 3px 3px 0 rgba(0,0,0,.5) !important;
  color: #f4f5f7 !important;
}
html body.theme-dark .sb-brand { font-family: 'Orbitron', var(--font); font-weight: 900; letter-spacing: 2px; text-shadow: 0 0 8px rgba(255,255,255,.4); }
html body.theme-dark .sb-hearts, html body.theme-dark .sb-hearts .off { color: var(--steel-l) !important; }
html body.theme-dark .dock-i:hover, html body.theme-dark .sb-pill:hover { background: var(--k2) !important; }
html body.theme-dark .dock {
  background: var(--paper) !important;
  border: 2px solid var(--k) !important;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--k), 6px 6px 0 rgba(0,0,0,.5) !important;
  backdrop-filter: none !important;
}
html body.theme-dark .search-form { background: var(--k) !important; border: 2px solid var(--paper) !important; box-shadow: none !important; }
html body.theme-dark .search-form input { background: var(--paper) !important; color: var(--tink) !important; }
html body.theme-dark .search-form button { background: var(--steel) !important; }

/* ---------- 댓글 ---------- */
html body.theme-dark .cmt-wrap input, html body.theme-dark .cmt-wrap textarea {
  background: #ffffff !important; border: 2px solid var(--k) !important;
  color: var(--tink) !important; -webkit-text-fill-color: var(--tink) !important;
}
html body.theme-dark .cmt-wrap input::placeholder, html body.theme-dark .cmt-wrap textarea::placeholder { color: #80869a !important; -webkit-text-fill-color: #80869a !important; }
html body.theme-dark .cmt-wrap button { background: var(--k) !important; color: #f4f5f7 !important; -webkit-text-fill-color: #f4f5f7 !important; }
html body.theme-dark .cmt-wrap a[href*="@"], html body.theme-dark .cmt-wrap [class*="mention"], html body.theme-dark .cmt-wrap [class*="Mention"],
html body.theme-dark .cmt-wrap [data-mention], html body.theme-dark .cmt-wrap [class*="tag"] {
  background: #d2d5dc !important; color: var(--k) !important; -webkit-text-fill-color: var(--k) !important;
}
html body.theme-dark .cmt-wrap [role="menu"], html body.theme-dark .cmt-wrap [class*="menu"], html body.theme-dark .cmt-wrap [class*="Menu"],
html body.theme-dark .cmt-wrap [class*="dropdown"], html body.theme-dark .cmt-wrap [class*="popup"], html body.theme-dark .cmt-wrap [class*="layer"] {
  background: #ffffff !important; border: 2px solid var(--k) !important;
}
html body.theme-dark .cmt-wrap [role="menu"] *, html body.theme-dark .cmt-wrap [class*="menu"] *, html body.theme-dark .cmt-wrap [class*="Menu"] *,
html body.theme-dark .cmt-wrap [class*="dropdown"] *, html body.theme-dark .cmt-wrap [class*="popup"] *, html body.theme-dark .cmt-wrap [class*="layer"] * {
  color: var(--tink) !important; -webkit-text-fill-color: var(--tink) !important;
}

/* ---------- 카테고리 / 페이징 ---------- */
html body.theme-dark .win-cate a:hover, html body.theme-dark .rct li a:hover { background: #d2d5dc !important; }
html body.theme-dark .paging a, html body.theme-dark .paging span { background: var(--paper2) !important; border: 2px solid var(--k) !important; color: var(--tink) !important; }
html body.theme-dark .paging a:hover, html body.theme-dark .paging .selected { background: var(--k) !important; color: #f4f5f7 !important; }

/* ---------- 배너 ---------- */
html body.theme-dark .review-banner, html body.theme-dark .m-topbanner {
  border: 2px solid var(--paper) !important;
  box-shadow: 0 0 0 4px var(--k), 6px 6px 0 rgba(0,0,0,.5) !important;
}

/* ---------- 모바일 서랍 ---------- */
html body.theme-dark .m-drawer, html body.theme-dark .m-body { background: #101216 !important; border-right-color: var(--paper) !important; }
html body.theme-dark .m-all {
  background: var(--paper) !important; border: 2px solid var(--k) !important;
  color: var(--k) !important; -webkit-text-fill-color: var(--k) !important;
  font-family: 'Orbitron', var(--font); font-weight: 900; letter-spacing: 2px;
}
html body.theme-dark .m-links a, html body.theme-dark .m-rct a { background: var(--k2) !important; border: 0 !important; border-left: 6px solid var(--steel) !important; color: #f4f5f7 !important; -webkit-text-fill-color: #f4f5f7 !important; }
html body.theme-dark .m-h { color: var(--steel-l) !important; font-family: 'Orbitron', var(--font); font-weight: 900; }

/* ---------- 게임기 : 블랙 + 종이 화면 ---------- */
html body.theme-dark #gbBody stop:nth-child(1) { stop-color: #2b2f38; }
html body.theme-dark #gbBody stop:nth-child(2) { stop-color: #1e2128; }
html body.theme-dark #gbBody stop:nth-child(3) { stop-color: #15171c; }
html body.theme-dark #gbBezel stop:nth-child(1) { stop-color: #3a3f4b; }
html body.theme-dark #gbBezel stop:nth-child(2) { stop-color: #2a2e36; }
html body.theme-dark #gbScreen stop:nth-child(1) { stop-color: #eef0f2; }
html body.theme-dark #gbScreen stop:nth-child(2) { stop-color: #d6d9df; }
html body.theme-dark #gbPink stop:nth-child(1) { stop-color: #e9eaed; }
html body.theme-dark #gbPink stop:nth-child(2) { stop-color: #c4c7ce; }
html body.theme-dark #gbBlue stop:nth-child(1) { stop-color: #7d89a3; }
html body.theme-dark #gbBlue stop:nth-child(2) { stop-color: #5b6781; }
html body.theme-dark #gbBar stop:nth-child(1) { stop-color: #15171c; }
html body.theme-dark #gbBar stop:nth-child(2) { stop-color: #6b7894; }
html body.theme-dark .console { filter: drop-shadow(8px 8px 0 rgba(0,0,0,.45)) !important; }
html body.theme-dark .console .gb-line { fill: #1b1e24 !important; }
html body.theme-dark .console .gb-icon { fill: #15171c !important; }
html body.theme-dark .console .gb-key { fill: #15171c !important; }
html body.theme-dark .console text[fill="#FFF"] { fill: #e9eaed !important; }
html body.theme-dark .console rect[fill="#EEF4FF"] { fill: #c4c7ce !important; }
html body.theme-dark .console rect[fill="#E6EDFA"] { fill: #c4c7ce !important; }
html body.theme-dark .console [stroke="#FFF"] { stroke: #e9eaed; }
html body.theme-dark .console [stroke="#C9DAF8"], html body.theme-dark .console [stroke="#B9CFF3"],
html body.theme-dark .console [stroke="#D7E3F9"], html body.theme-dark .console [stroke="#F5BFD4"], html body.theme-dark .console rect[stroke="#D8E5FA"] { stroke: #15171c !important; }
html body.theme-dark .console g[fill="#C6D8F8"] { fill: #6b7894; }

/* ---------- 도움말 / 전체화면 / 팝업 ---------- */
html body.theme-dark .help-win, html body.theme-dark .rv-pop { background: var(--k) !important; border: 2px solid var(--paper) !important; box-shadow: 8px 8px 0 rgba(0,0,0,.5) !important; }
html body.theme-dark .help-list li { background: var(--paper) !important; border: 0 !important; border-left: 6px solid var(--k) !important; }
html body.theme-dark .help-list span, html body.theme-dark .help-lead, html body.theme-dark .help-note { color: var(--tink) !important; }
html body.theme-dark .help-lead, html body.theme-dark .help-note { color: #f4f5f7 !important; }
html body.theme-dark .help-close, html body.theme-dark #rvPopClose { background: var(--paper) !important; color: var(--k) !important; font-family: 'Orbitron', var(--font); font-weight: 900; }
html body.theme-dark [data-win].win-rpg.is-big { background: var(--k) !important; }
html body.theme-dark .big-back, html body.theme-dark .help-back, html body.theme-dark .rv-pop-back, html body.theme-dark .m-back { background: rgba(10,11,14,.72) !important; }

/* ---------- 모바일 ---------- */
@media (max-width: 768px) {
  html body.theme-dark .win { padding: 0 4px 4px; }
  html body.theme-dark .win-bar { margin: 0 -4px; }
}
html body.theme-dark .win-cate .win-bar,
html body.theme-dark .win-cate .win-bar *,
html body.theme-dark .m-body .win .win-bar,
html body.theme-dark .m-body .win .win-bar * {
  color: #f4f5f7 !important;
  -webkit-text-fill-color: #f4f5f7 !important;
}
html body.theme-dark .win-cate .win-btns button { color: #15171c !important; -webkit-text-fill-color: #15171c !important; }

/* 제목바 오른쪽 빗금 제거 (단색) */
html body.theme-dark .win-bar { background: #15171c !important; }

/* 모바일 서랍 제목바 : 보라 그라데이션 → 검은 단색 */
html body.theme-dark .m-drawer > .win-bar,
html body.theme-dark .m-body > .win > .win-bar,
html body.theme-dark .m-body .win .win-bar {
  background: #15171c !important;
  color: #f4f5f7 !important;
}

/* 모바일 서랍 links : PC Connections 와 같은 사선 컷 블록 */
html body.theme-dark .m-drawer .m-body .m-links a,
html body.theme-dark .m-drawer .m-body .m-rct a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 14px;
  margin-bottom: 9px;
  background: linear-gradient(90deg, #6b7894 0 7px, #262a33 7px) !important;
  border: 0 !important;
  clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 12px) 100%, 0 100%);
  color: #f4f5f7 !important;
  -webkit-text-fill-color: #f4f5f7 !important;
  font-weight: 800;
  letter-spacing: 1.5px;
}
html body.theme-dark .m-drawer .m-body .m-links a::after { content: '▸'; color: #a3adc2; }
html body.theme-dark .m-drawer .m-body .m-links a:active { background: linear-gradient(90deg, #a3adc2 0 7px, #343945 7px) !important; }
html body.theme-dark .m-drawer .m-body .m-h {
  display: table;
  margin: 18px 0 10px;
  padding: 4px 12px;
  background: #e9eaed;
  border-left: 6px solid #6b7894;
  color: #15171c !important;
  -webkit-text-fill-color: #15171c !important;
  font-family: 'Orbitron', var(--font);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* 'links' 라벨 배경이 투명 처리되던 문제 */
html body.theme-dark .m-drawer .m-body .m-h {
  background: #e9eaed !important;
  background-color: #e9eaed !important;
}