/* ===== 공통 ===== */
:root {
  --ink: #1b2130;
  --muted: #6b7486;
  --line: #e3e7ef;
  --bg: #f5f7fb;
  --card: #ffffff;
  --brand: #c8691c;        /* 황소 갈색-주황 */
  --brand-dark: #a4520f;
  --brand-soft: #fdf0e2;
  --ok: #2f9e44;
  --ok-soft: #e7f6ea;
  --warn: #e8590c;
  --warn-soft: #fff1e7;
  --danger: #d6336c;
  --danger-soft: #fdeaf0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(24, 39, 75, .07);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: #f3f5f9; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b82a5b; }
.btn.block { width: 100%; height: 48px; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=search], select {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink); outline: none;
}
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200, 105, 28, .16); }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.alert.info { background: var(--brand-soft); color: var(--brand-dark); }
.alert.error { background: var(--danger-soft); color: #a61e4d; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none;
  display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand);
  font-weight: 800;
}
.avatar.lg { width: 96px; height: 96px; font-size: 34px; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.admin { background: var(--brand-soft); color: var(--brand); }
.badge.gray { background: #eef0f4; color: var(--muted); }

/* ===== 회원용 레이아웃 ===== */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .inner {
  max-width: 1080px; margin: 0 auto; padding: 0 20px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 23px; font-weight: 900; letter-spacing: -.03em; color: var(--brand-dark); white-space: nowrap; flex: none; }
.logo .bull { display: block; transition: transform .2s; }
.logo:hover .bull { transform: rotate(-8deg) scale(1.06); }
.footer .bull { vertical-align: -4px; }
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav a.link { padding: 8px 10px; border-radius: 8px; font-weight: 600; color: var(--muted); }
.nav a.link:hover { background: #f1f3f8; color: var(--ink); }
.nav form { margin: 0; }
.me { display: flex; align-items: center; gap: 8px; font-weight: 700; }

.container { max-width: 1080px; margin: 0 auto; padding: 32px 20px 60px; }
.narrow { max-width: 440px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid #e8ebf2; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.03em; }
.card .lead { margin: 0 0 22px; color: var(--muted); }
.below { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.below a { color: var(--brand); font-weight: 700; }

.hero {
  border-radius: 22px; padding: 56px 44px; color: #fff;
  background: linear-gradient(135deg, #e8973f 0%, #b85a17 100%);
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
}
.hero h1 { font-size: 38px; margin: 0 0 10px; letter-spacing: -.04em; line-height: 1.25; }
.hero p { margin: 0 0 24px; color: #fff1df; font-size: 17px; }
.hero-bull { flex: none; filter: drop-shadow(0 10px 18px rgba(80, 35, 0, .3)); animation: bob 3s ease-in-out infinite; }
.hero-text { flex: 1; min-width: 260px; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .hero-bull { animation: none; } }
.hero .btn { background: #fff; color: var(--brand); }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.hero .count { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 22px 28px; text-align: center; }
.hero .count b { display: block; font-size: 40px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.feature { background: #fff; border: 1px solid #e8ebf2; border-radius: var(--radius); padding: 22px; }
.feature .icon { font-size: 26px; }
.feature h3 { margin: 8px 0 4px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.welcome { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.welcome h1 { margin: 0; }

.photo-pick { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px dashed #c3cbe0; border-radius: 12px; background: #fafbfe; }
.photo-pick input[type=file] { font-size: 13px; max-width: 100%; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.section-title { font-size: 18px; margin: 0 0 14px; }
.info-list { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: 14.5px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 600; word-break: break-all; }
.danger-zone { border-color: #f5c2d3; }
.danger-zone .section-title { color: var(--danger); }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }

/* ===== 관리자 레이아웃 ===== */
.admin-body { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: #2a1d14; color: #e3d3c4; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.sidebar .logo { color: #fff; display: flex; padding: 4px 8px 2px; font-size: 20px; }
.sidebar .logo em { font-style: normal; font-size: 13px; color: #f0b27a; margin-left: 2px; }
.sidebar .tagline { padding: 8px 10px 18px; }
.sidebar a.item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-weight: 600; margin-bottom: 4px; }
.sidebar a.item:hover { background: #3c2a1d; color: #fff; }
.sidebar a.item.on { background: var(--brand); color: #fff; }
.sidebar .divider { height: 1px; background: #46321f; margin: 16px 6px; }

.admin-main { padding: 28px 34px 50px; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.admin-head .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid #e8ebf2; border-radius: var(--radius); padding: 18px; }
.stat .label { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat .value { font-size: 30px; font-weight: 900; letter-spacing: -.03em; margin-top: 4px; }
.stat .value small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 2px; }

.panel { background: #fff; border: 1px solid #e8ebf2; border-radius: var(--radius); padding: 20px 22px; }
.panel h2 { margin: 0 0 14px; font-size: 17px; }
.panels { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; }

.bars { display: flex; align-items: flex-end; gap: 12px; height: 180px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bars .bar i { display: block; width: 100%; max-width: 38px; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.bars .bar b { font-size: 12px; }
.bars .bar span { font-size: 11.5px; color: var(--muted); }

.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; color: var(--muted); font-size: 12.5px; font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 11px 8px; border-bottom: 1px solid #f0f2f6; vertical-align: middle; white-space: nowrap; }
table.list tr:hover td { background: #fafbfe; }
.who { display: flex; align-items: center; gap: 10px; }
.who .id { color: var(--muted); font-size: 12.5px; }
.actions { display: flex; gap: 6px; }
.actions form { margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filters input[type=search] { max-width: 320px; height: 40px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== 자유게시판 ===== */
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.board-head h1 { margin: 0 0 4px; }
table.board td.title { white-space: normal; min-width: 240px; }
table.board td.title a { font-weight: 600; }
table.board td.title a:hover { color: var(--brand); text-decoration: underline; }
table.board .no, table.board .num { text-align: center; width: 64px; color: var(--muted); }
table.board .author { width: 150px; }
table.board .date { width: 110px; color: var(--muted); }
.cmt { color: var(--brand); font-weight: 800; font-size: 13px; margin-left: 2px; }
.new { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 4px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 900; margin-left: 4px; vertical-align: 1px; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pager a { min-width: 36px; height: 36px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--muted); }
.pager a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.post .back { color: var(--muted); font-size: 14px; font-weight: 600; }
.post-title { font-size: 26px; margin: 10px 0 14px !important; word-break: break-all; }
.post-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.post-meta .id, .comment .id { color: var(--muted); font-size: 12.5px; }
.post-body { padding: 24px 0 8px; font-size: 16px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; min-height: 120px; }

.comments { margin-top: 18px; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0f2f6; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.comment-body { margin-top: 4px; white-space: pre-wrap; word-break: break-word; font-size: 15px; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--danger); text-decoration: underline; }
.comment-form { display: flex; gap: 10px; margin-top: 16px; align-items: stretch; }
.comment-form .btn { height: auto; min-width: 80px; }
.qz-kinds { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.qz-kinds label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.qz-kind-box { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; background: #fffaf4; }
.qz-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 12px; }
.qz-filter button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.qz-filter button.on { background: var(--brand, #c0392b); color: #fff; border-color: transparent; }
.qz-filter label { font-size: 13px; margin-left: auto; display: inline-flex; gap: 4px; align-items: center; }
.qz-song { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.qz-song-bar { flex: 1; min-width: 120px; height: 8px; border-radius: 99px; background: #f1e6da; overflow: hidden; }
.qz-song-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff9f43, #e74c3c); transition: width .1s linear; }
.qz-song-box { position: relative; width: 240px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #222; }
.qz-song-box iframe { width: 100%; height: 100%; display: block; }
.qz-song .qz-song-box { flex-basis: 100%; }
.qz-cover { pointer-events: none; text-align: center; padding: 8px;   /* 눌러도 아래 유튜브 화면이 받게 (휴대폰 자동재생 막힘 대비) */
  position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #2c3e50, #8e44ad); color: #fff; font-weight: 700; font-size: 18px; }
.qz-img img { display: block; max-width: 100%; max-height: 360px; border-radius: 10px; border: 1px solid var(--line); margin: 6px 0; }
.qz-start { display: inline-flex; gap: 6px; align-items: center; }
.qz-start input { width: 70px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.dq-media { display: block; padding: 8px 10px; margin-bottom: 8px; border-radius: 10px; background: #fff3e0; font-size: 13px; font-weight: 600; text-decoration: none; color: inherit; }
html[data-inshell] #bgm, html[data-inshell] #dock, html[data-inshell] #bgm-reopen { display: none !important; }
.comment-form .cm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.comment-form .cm-tools { display: flex; gap: 6px; }
.comment-form .cm-tools .emo-btn { height: 36px; width: 40px; font-size: 18px; }
.comment-form .cm-pick { display: flex; align-items: flex-end; gap: 8px; }
.comment-form .cm-pick img { width: 90px; height: 90px; object-fit: contain; border: 1px dashed var(--line); border-radius: 10px; background: #fffaf4; }
.comment-sticker { display: block; width: 120px; max-width: 100%; height: auto; margin-top: 6px; }
textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff; outline: none; resize: vertical; line-height: 1.6;
}
textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200, 105, 28, .16); }

.recent-posts { list-style: none; margin: 12px 0 0; padding: 0; }
.recent-posts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f2f6; }
.recent-posts li:last-child { border-bottom: 0; }
.recent-posts a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-posts a:hover { color: var(--brand); }
.recent-posts .id { color: var(--muted); font-size: 13px; flex: none; }

/* ===== 직급 뱃지 ===== */
.badge.subadmin { background: #fff4d1; color: #b07900; }
.badge.staff { background: #e6f4ff; color: #1971c2; }
.badge.vip { background: linear-gradient(135deg, #f3e8ff, #ffe8f6); color: #8a3fd1; }
.vip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.vip-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; background: #f7efff; border: 1px solid #e3d0fb; font-size: 14px; font-weight: 700; }
.badge.admin { background: #fdeadb; color: #b4500e; }

/* ===== 홈 ===== */
.home-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; margin-top: 22px; }
.board-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.board-card { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fffaf5; transition: border-color .15s, transform .15s; }
.board-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.board-card .icon { font-size: 24px; }
.board-card span:last-child { color: var(--muted); font-size: 13px; }

/* ===== 게시판 (카페처럼 왼쪽 메뉴) ===== */
.board-layout { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: start; }
.board-main { min-width: 0; }
.board-menu { background: #fff; border: 1px solid #e8ebf2; border-radius: var(--radius); padding: 14px; position: sticky; top: 84px; }
.board-menu nav { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.board-menu nav a { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: #3d4455; }
.board-menu nav a:hover { background: #f6f1ec; }
.board-menu nav a.on { background: var(--brand-soft); color: var(--brand-dark); }
.board-menu .lock { margin-left: auto; font-size: 11px; opacity: .7; }
.menu-divider { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-manage { display: block; margin-top: 10px; padding: 9px 10px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); }
.menu-manage:hover { color: var(--brand-dark); }
.perm-note { display: inline-block; margin-left: 6px; font-size: 12.5px; color: #9aa1b0; }
.notice-row td { background: #fffaf0; }
.notice-tag { display: inline-block; padding: 1px 7px; border-radius: 5px; background: var(--danger); color: #fff; font-size: 11.5px; font-weight: 800; vertical-align: 2px; }
.board-tag { display: inline-block; padding: 1px 7px; margin-right: 6px; border-radius: 5px; background: #f1ece6; color: #7a6656; font-size: 12px; font-weight: 700; }

/* ===== 운영진 페이지 추가 ===== */
.role-form select { height: 34px; padding: 0 8px; font-size: 13.5px; width: auto; }
.perm-table .c { text-align: center; }
.perm-table th.c { min-width: 96px; }
.rule-list { margin: 16px 0 0; padding-left: 20px; color: #4a5162; font-size: 14px; line-height: 1.8; }
.board-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.board-form.existing { padding: 14px 0; border-bottom: 1px solid #f0f2f6; }
.board-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.board-form input[type=text], .board-form input[type=number], .board-form select { height: 38px; font-size: 14px; }
.board-form .f-order input { width: 64px; }
.board-form .f-icon input { width: 64px; text-align: center; font-size: 18px; }
.board-form .f-name input { width: 150px; }
.board-form .f-desc { flex: 1; min-width: 180px; }
.board-form select { width: auto; }
.board-form .f-check { flex-direction: row; align-items: center; height: 38px; color: var(--ink); }
.board-form .f-buttons { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* ===== 사이트 꾸미기 ===== */
.hero.has-banner { background-size: cover; background-position: center; }
.bull { object-fit: contain; }
.perm-select { height: 34px; width: auto; font-size: 13.5px; padding: 0 8px; }
.img-field { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid #f0f2f6; flex-wrap: wrap; }
.img-preview { flex: none; display: grid; place-items: center; border: 1px dashed #d8c7b6; border-radius: 12px; background: #fffaf5 center / cover no-repeat; color: var(--muted); font-size: 12px; }
.logo-preview { width: 84px; height: 84px; }
.logo-preview img { max-width: 70px; max-height: 70px; object-fit: contain; }
.banner-preview { width: 180px; height: 84px; background-color: #e8973f; color: #fff; }
.img-controls { display: flex; flex-direction: column; gap: 6px; min-width: 220px; flex: 1; }
.img-controls label { font-size: 14px; }
.img-controls .check { font-size: 13.5px; color: var(--ink); }
.bg-preview { width: 180px; height: 110px; background-size: cover; }
.bg-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.bg-options .check { display: flex; gap: 6px; align-items: center; font-weight: 500; margin: 4px 0; }
.color-input { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }

/* 사이트 전체 배경 사진 : 화면 뒤에 고정된 층을 하나 깔고, 그 위에 하얀 막(--bg-dim)을 씌움 */
body.has-bg::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, var(--bg-dim)), rgba(255, 255, 255, var(--bg-dim))), var(--bg-img);
}
body.bg-cover::before { background-size: cover, cover; background-position: center; }
body.bg-tile::before { background-size: auto, auto; background-repeat: repeat; }
body.has-bg .footer { background: rgba(255, 255, 255, .75); border-radius: 12px; max-width: 520px; margin: 0 auto 20px; }
body.has-bg .board-head .lead, body.has-bg .below { text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }

/* ===== 게시글 첨부 (사진, 동영상) ===== */
.post-media { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 6px; }
.post-media img, .post-media video { display: block; max-width: 100%; max-height: 640px; border-radius: 12px; border: 1px solid var(--line); background: #000; }
.post-media img { background: #fff; }
.media-ico { font-size: 13px; margin-left: 2px; }
.attach-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px; border: 2px dashed #d8c7b6; border-radius: 12px; background: #fffaf5; cursor: pointer; font-weight: 700 !important; color: var(--brand-dark); text-align: center; }
.attach-drop:hover { border-color: var(--brand); background: #fff3e6; }
.attach-preview, .attach-existing { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.attach-item { display: flex; flex-direction: column; gap: 4px; width: 120px; font-size: 12px; font-weight: 500 !important; }
.attach-item img, .attach-item video, .attach-item .video-thumb { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #222; display: grid; place-items: center; font-size: 28px; }
.attach-item .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.attach-item .del { display: flex; gap: 4px; align-items: center; color: var(--danger); }

/* ===== 저장 공간 (대시보드) ===== */
.storage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 14.5px; }
.storage-bar { height: 14px; border-radius: 999px; background: #eef0f4; overflow: hidden; margin: 12px 0; }
.storage-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ok); }
.storage.warn .storage-bar i { background: var(--warn); }
.storage.danger .storage-bar i { background: var(--danger); }
.storage-parts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }
.storage-parts b { color: var(--ink); font-weight: 700; margin-right: 2px; }

/* ===== 배경음악 플레이어 ===== */
.bgm { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50;
       display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px;
       background: rgba(42, 29, 20, .92); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px); }
.bgm-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 14px; cursor: pointer; flex: none; }
.bgm-btn:hover { background: var(--brand-dark); }
.bgm-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.bgm-label { font-size: 10.5px; font-weight: 800; color: #f0b27a; letter-spacing: .05em; }
.bgm-title { font-size: 12.5px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgm-vol { width: 70px; accent-color: var(--brand); }
.bgm.playing .bgm-label::after { content: " ♪"; animation: bgm-note 1s steps(2) infinite; }
@keyframes bgm-note { 50% { opacity: .2; } }
.bgm-yt { flex-direction: column; align-items: stretch; border-radius: 14px; padding: 8px; width: 216px; }
.bgm-yt-head { display: flex; align-items: center; gap: 6px; }
.bgm-yt-head .bgm-info { flex: 1; }
.bgm-yt-head .bgm-label { white-space: nowrap; }
.bgm-yt-head .bgm-title { max-width: 140px; }
.bgm-yt-head .bgm-close { width: 26px; height: 26px; font-size: 12px; background: #5a4535; margin-left: auto; }
.bgm-yt-player { width: 200px; height: 200px; margin-top: 6px; border-radius: 8px; overflow: hidden; background: #000; }
.bgm-yt-head .bgm-min { width: 26px; height: 26px; font-size: 12px; background: #5a4535; margin-left: auto; }
.bgm-yt-head .bgm-min + .bgm-close { margin-left: 0; }
/* 접힌 상태 : 작은 알약 모양만 남김 (영상은 1px로 줄여서 소리는 계속 나옴) */
.bgm-yt.min { width: auto; border-radius: 999px; padding: 6px 6px 6px 12px; }
.bgm-yt.min .bgm-yt-head .bgm-title { max-width: 110px; }
.bgm-yt-head .bgm-find { width: 26px; height: 26px; font-size: 12px; background: #5a4535; margin-left: auto; }
.bgm-yt-head .bgm-find + .bgm-min { margin-left: 0; }
.bgm-yt.picking { width: 300px; border-radius: 14px; }
.bgm-pick { margin-top: 8px; }
.bgm-search { display: flex; gap: 6px; }
.bgm-search input { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 8px; border: 0; font: inherit; font-size: 13px; color: #222; background: #fff; }
.bgm-search .bgm-btn { width: 32px; height: 32px; font-size: 12px; }
.bgm-pick-msg { margin: 6px 2px; font-size: 11.5px; color: #e9d6c4; }
.bgm-results { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.bgm-result { display: flex; gap: 8px; align-items: center; text-align: left; padding: 4px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .06); color: #fff; font: inherit; cursor: pointer; }
.bgm-result:hover { background: rgba(255, 255, 255, .16); }
.bgm-result img { width: 64px; height: 48px; object-fit: cover; border-radius: 5px; flex: none; }
.bgm-result span { display: flex; flex-direction: column; min-width: 0; }
.bgm-result b { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bgm-result small { font-size: 11px; color: #cdb8a5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgm-premium { margin: 8px 0 0; font-size: 12px; line-height: 1.5; opacity: .9; }
.bgm-premium a { color: #ffb347; font-weight: 800; }
.bgm-premium small { display: block; opacity: .75; font-size: 11px; }
.bgm-reset { margin-top: 6px; width: 100%; padding: 6px; border: 0; border-radius: 8px; background: #5a4535; color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.bgm-reset:hover { background: #6e5642; }
.bgm-yt-vol { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.bgm-yt-vol .bgm-vol { flex: 1; width: auto; min-width: 0; }
.bgm-vol-icon { background: none; border: 0; padding: 0 2px; font-size: 15px; line-height: 1; cursor: pointer; color: #fff; }
.bgm-yt.min .bgm-yt-player { width: 1px; height: 1px; margin: 0; opacity: 0; position: absolute; pointer-events: none; }
.bgm-reopen { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; border: 0; border-radius: 999px;
              padding: 9px 14px; background: rgba(42, 29, 20, .9); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.bgm-music-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.bgm-music-list .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.bgm-music-list audio { height: 32px; max-width: 260px; }
.bgm-mode { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.bgm-mode label { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14px; }
.bgm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ===== 바로가기 버튼 ===== */
.quick-link { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 800; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); transition: transform .15s; }
.quick-link:hover { transform: translateY(-1px); }
.quick-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.quick-card { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; background: var(--c); color: var(--t); transition: transform .15s, box-shadow .15s; }
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.quick-card .ico { font-size: 24px; }
.quick-card b { font-size: 16px; }
.quick-card .go { font-size: 12.5px; opacity: .85; }
.link-rows { display: flex; flex-direction: column; gap: 8px; }
.link-row { display: grid; grid-template-columns: 20px 190px 170px 1fr; gap: 8px; align-items: center; }
.link-row select, .link-row input { height: 38px; font-size: 14px; }
input[type=url] { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); outline: none; }

/* ===== 채팅방 ===== */
.chat-card { max-width: 860px; margin: 0 auto; }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.chat-head h1 { margin: 0 0 4px; }
.chat-online { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.chat-online.on { color: var(--ok); }
.chat-box { height: min(60vh, 560px); overflow-y: auto; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbf8f4; display: flex; flex-direction: column; gap: 10px; }
.chat-date { align-self: center; font-size: 12px; color: var(--muted); background: #efe7de; padding: 3px 12px; border-radius: 999px; margin: 6px 0; }
.chat-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 85%; }
.chat-msg.mine { align-self: flex-end; justify-content: flex-end; }
.chat-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chat-who { font-size: 12.5px; font-weight: 700; color: #4a3a2c; }
.chat-line { display: flex; align-items: flex-end; gap: 6px; }
.chat-msg.mine .chat-line { flex-direction: row-reverse; }
.chat-bubble { padding: 9px 13px; border-radius: 14px; background: #fff; border: 1px solid #ece3d9; white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.5; }
.chat-msg:not(.mine) .chat-bubble { border-top-left-radius: 4px; }
.chat-msg.mine .chat-bubble { background: var(--brand); color: #fff; border-color: var(--brand); border-top-right-radius: 4px; }
.chat-time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.chat-del { background: none; border: 0; padding: 0; font: inherit; font-size: 11px; color: var(--muted); cursor: pointer; opacity: 0; }
.chat-msg:hover .chat-del, .chat-del:focus { opacity: 1; }
.chat-del:hover { color: var(--danger); text-decoration: underline; }
.chat-form { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.chat-form textarea { resize: none; min-height: 46px; max-height: 120px; }
.chat-form .btn { height: 46px; flex: none; }
@media (hover: none) { .chat-del { opacity: 1; } }

/* ===== 음성 채팅방 ===== */
.voice-card { max-width: 860px; margin: 0 auto; }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.voice-peer { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; border-radius: 16px; background: #fbf8f4; border: 2px solid #efe6dc; text-align: center; transition: border-color .15s, box-shadow .15s; }
.voice-peer b { font-size: 15px; }
.voice-peer.speaking { border-color: var(--ok); box-shadow: 0 0 0 4px rgba(47, 158, 68, .18); }
.voice-peer.muted .avatar { filter: grayscale(.7); opacity: .7; }
.voice-state { font-size: 12.5px; color: var(--muted); }
.voice-state.bad { color: var(--danger); font-weight: 700; }
.voice-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.voice-join { height: 52px; padding: 0 26px; font-size: 16px; }
.voice-status { text-align: center; color: var(--muted); font-size: 14px; min-height: 20px; margin: 10px 0 0; }
.voice-help { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.voice-help summary { cursor: pointer; font-weight: 700; }
.voice-help li { margin: 4px 0; }

/* ===== 🎮 끝말잇기 ===== */
.wc-card { max-width: 980px; margin: 0 auto; }
.wc-stage { margin-top: 16px; padding: 22px 16px 18px; border-radius: 16px; text-align: center;
            background: linear-gradient(135deg, #fff6ec, #fbe9d6); border: 1px solid #f0dcc6; transition: box-shadow .2s; }
.wc-stage.mine { box-shadow: 0 0 0 3px var(--brand); }
.wc-status { font-weight: 800; color: var(--brand-dark); font-size: 15px; }
.wc-word { font-size: clamp(34px, 8vw, 56px); font-weight: 900; letter-spacing: .04em; margin: 6px 0 2px; color: #3b2a1d; word-break: keep-all; }
.wc-need { color: var(--muted); font-size: 14px; }
.wc-timer { position: relative; height: 22px; margin: 14px auto 0; max-width: 420px; border-radius: 999px; background: #eadbcb; overflow: hidden; }
.wc-timer i { position: absolute; inset: 0 auto 0 0; background: var(--brand); border-radius: 999px; transition: width .1s linear; }
.wc-timer.hurry i { background: var(--danger); }
.wc-timer span { position: relative; font-size: 12.5px; font-weight: 800; line-height: 22px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.wc-players { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; }
.wc-player { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.wc-player b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #efe3d6; font-size: 13px; }
.wc-player.me { border-color: var(--brand); }
.wc-player.turn { background: var(--brand); color: #fff; border-color: var(--brand); animation: wc-pulse 1s ease-in-out infinite; }
.wc-player.turn b { background: rgba(255,255,255,.25); }
.wc-player.out { opacity: .45; text-decoration: line-through; }
.wc-player small { font-size: 11px; color: var(--danger); text-decoration: none; }
@keyframes wc-pulse { 50% { transform: scale(1.06); } }
.wc-form { display: flex; gap: 8px; margin: 16px auto 0; max-width: 460px; }
.wc-form input { flex: 1; min-width: 0; height: 48px; font-size: 18px; font-weight: 700; text-align: center; }
.wc-form .btn { height: 48px; flex: none; }
.wc-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.wc-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; margin-top: 22px; }
.wc-cols h3 { margin: 0 0 8px; font-size: 15px; }
.wc-chain { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow-y: auto; align-content: flex-start; }
.wc-chip { padding: 4px 10px; border-radius: 999px; background: #f4ece3; font-size: 14px; font-weight: 700; }
.wc-log, .wc-rank { margin: 0; padding-left: 0; list-style: none; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; }
.wc-rank { padding-left: 22px; list-style: decimal; }
.wc-log small { color: var(--muted); }

/* ===== 📅 출석체크 ===== */
.at-card { max-width: 980px; margin: 0 auto; }
.at-me { margin-top: 16px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, #fff6ec, #fbe9d6); border: 1px solid #f0dcc6;
         display: flex; flex-direction: column; gap: 14px; align-items: center; }
.at-stats { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.at-stats div { min-width: 96px; padding: 10px 14px; border-radius: 12px; background: #fff; text-align: center; display: flex; flex-direction: column; }
.at-stats b { font-size: 26px; font-weight: 900; color: var(--brand-dark); line-height: 1.1; }
.at-stats span { font-size: 12.5px; color: var(--muted); }
.at-form { display: flex; gap: 8px; width: 100%; max-width: 520px; }
.at-form input { flex: 1; min-width: 0; height: 46px; }
.at-form .btn { height: 46px; flex: none; }
.at-done { font-weight: 800; color: var(--ok); }
.at-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: 22px; }
.at-cols h3 { margin: 0 0 10px; font-size: 15px; }
.at-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; }
.at-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: #fbf8f4; }
.at-rank { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: #efe3d6; margin-top: 3px; }
.at-rank.top { background: var(--brand); color: #fff; }
.at-who { flex: 1; min-width: 0; font-size: 14px; }
.at-who p { margin: 3px 0 0; font-size: 13.5px; color: #4a3a2c; word-break: break-word; }
.at-time { font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.at-del { background: none; border: 0; font: inherit; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.at-del:hover { color: var(--danger); text-decoration: underline; }
.at-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.at-cal-head h3 { margin: 0; }
.at-cal-head a { font-size: 22px; font-weight: 800; padding: 0 10px; text-decoration: none; color: var(--brand-dark); }
.at-cal { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.at-cal th { font-size: 12px; color: var(--muted); font-weight: 700; }
.at-cal th:first-child { color: var(--danger); }
.at-cal td { height: 40px; border-radius: 8px; background: #f7f2ec; text-align: center; vertical-align: middle; position: relative; font-size: 13px; }
.at-cal td.other { background: transparent; color: #c9bcae; }
.at-cal td.on:not(.other) { background: var(--brand); color: #fff; font-weight: 800; }
.at-cal td.today { box-shadow: inset 0 0 0 2px var(--brand-dark); }
.at-cal td i { position: absolute; right: 4px; top: 2px; font-size: 9px; font-style: normal; }
.at-top { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.at-top li span { color: var(--muted); font-size: 13px; }
.at-top .avatar { vertical-align: middle; }

/* ===== 🗳️ 컨텐츠 참여투표 ===== */
.ev-card { max-width: 980px; margin: 0 auto; }
.ev-new { margin-top: 16px; border: 1px dashed #e2cbb2; border-radius: 14px; padding: 12px 16px; background: #fffaf4; }
.ev-new summary { cursor: pointer; font-weight: 800; }
.ev-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ev-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 700; }
.ev-form .wide { grid-column: 1 / -1; }
.ev-form input, .ev-form textarea { font-weight: 400; }
.ev-sec { margin: 22px 0 10px; font-size: 16px; }
.ev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ev-list.past { opacity: .75; }
.ev-item { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
           background: #fff; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.ev-item:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); transform: translateY(-1px); }
.ev-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ev-title { font-size: 16px; }
.ev-tag { flex: none; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #eee6dd; color: var(--muted); }
.ev-tag.open { background: #e3f6e8; color: var(--ok); }
.ev-when { font-size: 13.5px; color: var(--muted); }
.ev-when.big { font-size: 15px; color: var(--ink); font-weight: 700; margin-top: 4px; }
.ev-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-count { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: #f4ece3; }
.ev-count.first { background: #fde6cf; }
.ev-count.mine { box-shadow: inset 0 0 0 2px var(--brand); }
.ev-my { font-size: 13px; }
.ev-todo { color: var(--brand-dark); font-weight: 700; }
.ev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ev-head h1 { margin: 6px 0 0; }
.ev-desc { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fbf8f4; white-space: pre-wrap; word-break: break-word; font-size: 14.5px; }
.ev-vote { margin-top: 16px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #fff6ec, #fbe9d6); border: 1px solid #f0dcc6; }
.ev-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-choice { cursor: pointer; }
.ev-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ev-choice span { display: inline-block; padding: 10px 18px; border-radius: 12px; background: #fff; border: 2px solid var(--line); font-weight: 800; font-size: 15px; }
.ev-choice.first span { border-color: #f3c9a0; }
.ev-choice input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.ev-choice input:focus-visible + span { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
.ev-choice.disabled { cursor: not-allowed; opacity: .5; }
.ev-note { display: flex; gap: 8px; margin-top: 12px; }
.ev-note input { flex: 1; min-width: 0; height: 44px; }
.ev-note .btn { height: 44px; flex: none; }
.ev-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.ev-group { padding: 12px; border-radius: 14px; background: #fbf8f4; border: 1px solid var(--line); }
.ev-group.first { background: #fff6ec; border-color: #f0dcc6; }
.ev-group h4 { margin: 0 0 8px; font-size: 15px; }
.ev-group h4 b { color: var(--brand-dark); }
.ev-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.ev-group li { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.ev-group li span { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center; min-width: 0; }
.ev-group li small { width: 100%; color: var(--muted); font-size: 12px; }
.ev-notyet { margin-top: 14px; font-size: 14px; }
.ev-notyet summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.ev-notyet div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ev-person { padding: 3px 10px; border-radius: 999px; background: #f1ece6; font-size: 13px; }
.ev-admin { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ===== 😊 이모지 · 이모티콘 ===== */
.emo-btn { flex: none; width: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 20px; cursor: pointer; align-self: stretch; }
.emo-btn:hover { background: #fff6ec; }
.chat-form .emo-btn { height: 46px; align-self: flex-end; }
.dock-form .emo-btn { height: 38px; width: 38px; font-size: 18px; }
.emo-box { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 30; width: min(340px, calc(100vw - 40px));
           background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); overflow: hidden; }
.emo-tabs { display: flex; gap: 2px; padding: 4px; background: #f6efe7; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.emo-tabs button { flex: none; width: 36px; height: 34px; border: 0; background: transparent; border-radius: 8px; padding: 0; font: inherit; font-size: 17px; cursor: pointer; display: grid; place-items: center; }
.emo-tabs .emo-tab-pack img { width: 28px; height: 28px; object-fit: contain; }
.emo-tabs .emo-tab-pack:first-of-type, .emo-tabs .emo-tab-emoji + .emo-tab-pack { margin-left: 6px; position: relative; }
.emo-tabs .emo-tab-emoji + .emo-tab-pack::before { content: ""; position: absolute; left: -5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.emo-pack-name { grid-column: 1 / -1; margin: 0 2px 2px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.st-pack-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: 15px; }
.st-pack-title img { width: 30px; height: 30px; object-fit: contain; }
.st-group-label { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.st-group-input { width: 120px; height: 30px; font-size: 13px; padding: 0 8px; }
.app-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.app-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); flex: none; }
.app-hero h1 { margin: 0 0 4px; }
/* 💬 작은 창 🎮 게임 탭 */
.dg-menu { flex: 1; overflow-y: auto; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; background: #fbf8f4; }
.dg-menu button, .dg-menu .dg-link { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 14px;
                  background: #fff; font: inherit; font-size: 13.5px; font-weight: 800; color: var(--ink); cursor: pointer; text-decoration: none; }
.dg-menu button:hover, .dg-menu .dg-link:hover { border-color: #e2a66b; }
.dg-menu button b, .dg-menu .dg-link b { font-size: 26px; line-height: 1.1; }
.dg-menu button small, .dg-menu .dg-link small { font-size: 11px; font-weight: 700; color: #c8691c; min-height: 1em; }
/* 🐂 다마고치 */
.tg-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; max-width: 460px; margin: 4px auto 12px; }
@media (max-width: 420px) { .tg-stats { grid-template-columns: 1fr; } }
.tg-stat { display: grid; grid-template-columns: 74px 1fr 30px; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.tg-stat b { text-align: right; font-size: 12px; color: var(--muted); }
.tg-bar { height: 10px; border-radius: 99px; background: #eee3d6; overflow: hidden; }
.tg-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6fcf97, #27ae60); transition: width .4s ease; }
.tg-bar.low i { background: linear-gradient(90deg, #ff9f43, #e74c3c); }
.tg-care { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tg-care .btn:disabled { opacity: .55; cursor: default; }
.danger-btn { background: #e74c3c; }
.bl-stage.sick img { filter: hue-rotate(60deg) saturate(.6); animation: shiver 1.2s infinite; }
@keyframes shiver { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
.bl-poop { position: absolute; right: 18%; bottom: 8%; font-size: 30px; }
.db-stats { width: 100%; max-width: 260px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: 11px; }
.db-stats span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.db-stats .tg-bar { width: 100%; height: 6px; }
/* 🔢 숫자 맞추기 · 🎱 로또 */
.nm-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; }
@media (max-width: 760px) { .nm-wrap { grid-template-columns: minmax(0, 1fr); } }
.nm-stage { text-align: center; padding: 18px 10px; border-radius: 16px; background: linear-gradient(135deg, #fff3e0, #e8f4ff); margin-bottom: 10px; }
.nm-stage.pop { animation: nmPop .35s ease; }
@keyframes nmPop { 0% { transform: scale(.96); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
.nm-big { font-size: 40px; font-weight: 900; line-height: 1.2; }
.nm-hint { font-weight: 800; margin-top: 4px; }
.nm-range { font-size: 13px; color: var(--muted); margin-top: 4px; }
.nm-form { display: flex; gap: 8px; margin-bottom: 8px; }
.nm-form input { flex: 1; min-width: 0; }
.nm-log { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.nm-chip { padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 800; background: #f1ece6; }
.nm-chip.up { background: #e3f0ff; } .nm-chip.down { background: #ffe9e3; } .nm-chip.hit { background: #e1f6e7; }
.lt-balls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 48px; }
.lt-ball { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 17px; color: #fff;
           text-shadow: 0 1px 2px rgba(0,0,0,.35); box-shadow: inset -4px -6px 10px rgba(0,0,0,.18); animation: nmPop .3s ease; }
.lt-ball.y { background: #f7b500; } .lt-ball.b { background: #2f80ed; } .lt-ball.r { background: #eb5757; } .lt-ball.g { background: #8a8a8a; } .lt-ball.p { background: #27ae60; }
.lt-plus { font-weight: 900; font-size: 20px; color: var(--muted); }
/* 🎱 로또 게임 */
.lt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.lt-tab { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
          text-decoration: none; color: inherit; min-width: 0; }
.lt-tab b { font-size: 14px; } .lt-tab small { font-size: 11.5px; color: var(--muted); }
.lt-tab.main { border-color: #f1c40f; background: #fffbea; }
.lt-tab.on { box-shadow: 0 0 0 2px var(--brand); }
.lt-round.main { background: #fffbea; border-color: #f1c40f; }
.lt-round { padding: 14px; border-radius: 14px; background: #fffaf4; border: 1px solid var(--line); }
.lt-round-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 16px; }
.lt-rule { font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 99px; background: #e8f4ff; color: #1f5f99; }
.lt-split { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.lt-odds td { font-size: 11.5px; color: var(--muted); }
.lt-when { font-size: 13px; font-weight: 800; color: #c0392b; }
.lt-prize th, .lt-prize td { text-align: center; padding: 6px 4px; }
.lt-prize th small { display: block; font-weight: 600; font-size: 11px; color: var(--muted); }
.lt-buy { margin-top: 12px; }
.lt-pick { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; max-width: 420px; }
.lt-pick button { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; background: #fff; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; padding: 0; min-width: 0; }
.lt-pick button.on { background: var(--brand); color: #fff; border-color: transparent; }
.lt-balls.sm { gap: 4px; min-height: 0; display: inline-flex; vertical-align: middle; }
.lt-balls.sm .lt-ball { width: 30px; height: 30px; font-size: 13px; animation: none; }
.lt-ball.dim { opacity: .3; }
.lt-ticket { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.lt-ticket.win b { color: #27ae60; }
.lt-result { margin-top: 18px; }
.lt-result h2 { margin: 0 0 8px; }
.lt-admin { display: flex; flex-direction: column; gap: 6px; max-width: 420px; margin-top: 8px; }
.lt-admin label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.lt-admin input { max-width: 170px; }
.at-streak { margin: 10px 0; font-size: 13px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.at-streak > div { flex-basis: 100%; }
.at-streak span:not(.id) { padding: 2px 8px; border-radius: 99px; background: #f1ece6; }
.at-streak span.got { background: #ffe08a; }
/* 🃏 카드 게임 방 */
.cr-players { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 0; }
.cr-p { padding: 5px 12px; border-radius: 99px; background: #f1ece6; font-weight: 800; font-size: 13px; }
.cr-p.turn { background: #ffe08a; box-shadow: 0 0 0 2px #f1c40f; } .cr-p.me { outline: 2px solid var(--brand); }
.cr-table { margin-top: 8px; padding: 14px; border-radius: 16px; background: radial-gradient(ellipse, #1f7a4a, #0f4d2c); color: #fff; text-align: center; min-height: 110px; }
.cr-table .id { color: #d9f2e2; }
.cr-wait { font-weight: 800; margin: 6px 0; }
.cr-state { font-weight: 800; margin: 6px 0 0; }
.cr-row { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.cr-hand { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 10px; }
.cr-card { width: 46px; height: 66px; border-radius: 8px; background: #fff; color: #222; border: 1px solid #ccc; display: flex; flex-direction: column;
           align-items: center; justify-content: center; padding: 0; font: inherit; box-shadow: 0 2px 5px rgba(0,0,0,.25); cursor: default; }
.cr-card b { font-size: 17px; line-height: 1; } .cr-card i { font-style: normal; font-size: 16px; }
.cr-card.red { color: #d63031; } .cr-card.joker { background: #fff3c4; }
.cr-card.back { background: repeating-linear-gradient(45deg, #8e2b2b 0 6px, #a83a3a 6px 12px); color: #fff; font-size: 18px; }
.cr-card.pick { cursor: pointer; outline: 2px solid #ffd84d; } .cr-card.pick:hover { transform: translateY(-4px); }
.cr-card.dim { opacity: .45; } .cr-card.sel { transform: translateY(-8px); outline: 3px solid #2f80ed; cursor: pointer; }
.cr-hand .cr-card:not(.dim) { cursor: pointer; }
.cr-card.top { box-shadow: 0 0 0 3px #ffd84d; }
.cr-card.mini { width: 30px; height: 42px; } .cr-card.mini b { font-size: 12px; } .cr-card.mini i { font-size: 11px; }
.cr-melds { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.cr-meld { display: flex; align-items: center; gap: 2px; padding: 4px 6px; border-radius: 10px; background: rgba(255,255,255,.12); }
.cr-meld small { font-size: 10px; margin-right: 4px; color: #d9f2e2; }
.cr-meld.pick { cursor: pointer; outline: 2px dashed #ffd84d; }
/* 🎴 카드 도감 */
.cd-grid, .cd-reveal { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cd-reveal { margin: 12px 0; padding: 12px; border-radius: 16px; background: #1f1a2e; }
.cd-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 12px; background: #fff;
           border: 3px solid #ccc; text-align: center; font-size: 12.5px; min-width: 0; }
.cd-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #f6efe7; }
.cd-card b { font-size: 13px; word-break: keep-all; } .cd-card small { color: var(--muted); font-size: 11px; }
.cd-card.r1 { border-color: #2f80ed; box-shadow: 0 0 10px rgba(47, 128, 237, .35); }
.cd-card.r2 { border-color: #f1c40f; box-shadow: 0 0 14px rgba(241, 196, 15, .7); background: #fffbe6; }
.cd-card.locked img { filter: brightness(0) opacity(.25); } .cd-card.locked { opacity: .7; }
.cd-card.flip { animation: cdFlip .5s ease; }
@keyframes cdFlip { from { transform: rotateY(90deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.cd-new { position: absolute; top: -6px; right: -6px; font-style: normal; font-size: 10px; font-weight: 900; color: #fff; background: #e74c3c; padding: 2px 6px; border-radius: 99px; }
.cd-pow { color: #c0392b !important; font-weight: 800; }
.cd-equip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 480px) { .cd-equip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cd-slot.empty { display: grid; place-items: center; min-height: 120px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; }
.cd-sets { display: flex; flex-direction: column; gap: 4px; }
.cd-set { padding: 6px 10px; border-radius: 10px; background: #f1ece6; font-size: 13px; font-weight: 700; }
.cd-set.on { background: linear-gradient(90deg, #fff3c4, #ffe08a); box-shadow: 0 0 0 2px #f1c40f; }
.cd-set.on::before { content: "✅ "; }
.cd-btns { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; margin-top: 3px; }
.cd-btns .btn { padding: 2px 6px; font-size: 11px; height: auto; }
.cd-eq { position: absolute; top: -6px; left: -6px; font-style: normal; font-size: 10px; font-weight: 900; color: #fff; background: #2f80ed; padding: 2px 6px; border-radius: 99px; }
.cd-card.maxlv { box-shadow: 0 0 0 2px #f1c40f, 0 0 16px rgba(241, 196, 15, .8); }
.cd-card.locked .cd-pow { color: var(--muted) !important; }
.cd-powf { display: flex; gap: 4px; align-items: center; } .cd-powf input { width: 50px; height: 26px; padding: 0 4px; font-size: 12px; }
.cd-miles { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 8px; }
.cd-mile { padding: 3px 10px; border-radius: 99px; background: #f1ece6; font-size: 12.5px; font-weight: 700; } .cd-mile.got { background: #e1f6e7; }
/* ⚔️ 레이드 */
.rd-boss { position: relative; text-align: center; padding: 16px; border-radius: 18px; background: radial-gradient(circle, #4a2b2b, #1e1212); color: #fff; }
.rd-icon { font-size: 90px; line-height: 1.1; }
.rd-boss.hit .rd-icon { animation: shiver .3s 2; }
.rd-boss.dead .rd-icon { filter: grayscale(1) opacity(.5); transform: rotate(90deg); }
.rd-hp { position: relative; height: 22px; border-radius: 99px; background: #3a1f1f; overflow: hidden; margin-top: 8px; }
.rd-hp i { display: block; height: 100%; background: linear-gradient(90deg, #e74c3c, #ff9f43); transition: width .4s; }
.rd-hp span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
/* 🐂 황소 합치기 */
.mg-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; }
@media (max-width: 760px) { .mg-wrap { grid-template-columns: minmax(0, 1fr); } }
.mg-left { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.mg-top { display: flex; gap: 14px; align-items: center; font-weight: 800; margin-bottom: 6px; }
.mg-top b { font-size: 20px; }
.mg-box { position: relative; width: 100%; max-width: 420px; display: flex; justify-content: center; }
.mg-box canvas { border-radius: 14px; box-shadow: inset 0 0 0 3px #e2c37a, 0 4px 14px rgba(0,0,0,.1); touch-action: none; }
.mg-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
           background: rgba(255, 248, 236, .9); border-radius: 14px; text-align: center; }
.mg-over b { font-size: 24px; }
.mg-miles { padding-left: 18px; line-height: 1.9; } .mg-miles li.got { color: #27ae60; font-weight: 800; } .mg-miles li.got::after { content: " ✅"; }
.tw-boss { background: radial-gradient(circle, #2b3a4a, #121a22); }
.tw-stage { display: inline-block; padding: 2px 14px; border-radius: 99px; background: #f1c40f; color: #222; font-weight: 900; font-size: 15px; }
/* 🗳️ 라이어 */
.lr-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; border-radius: 16px; text-align: center;
           background: linear-gradient(135deg, #fff3e0, #e8f4ff); }
.lr-card b { font-size: 24px; } .lr-card span { font-size: 14px; color: var(--muted); } .lr-card em { font-style: normal; font-weight: 800; color: #c0392b; }
.lr-card.liar { background: linear-gradient(135deg, #2c3e50, #8e44ad); color: #fff; } .lr-card.liar span { color: #ddd; } .lr-card.liar em { color: #ffd84d; }
.lr-card.citizen { background: linear-gradient(135deg, #e1f6e7, #e8f4ff); }
.lr-players { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.lr-p { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; }
button.lr-p { cursor: pointer; } button.lr-p:hover { border-color: #e74c3c; }
.lr-p.host { border-color: #f1c40f; } .lr-p.voted { background: #f1ece6; } .lr-p.mine { background: #fdecea; border-color: #e74c3c; }
/* 🏃 황소 레이스 */
.rc-head { display: flex; justify-content: space-between; align-items: center; margin: 6px 0; font-size: 15px; }
.rc-left { font-weight: 900; color: #c0392b; }
.rc-track { border-radius: 14px; overflow: hidden; background: repeating-linear-gradient(90deg, #6fbf5f 0 40px, #63b053 40px 80px); padding: 6px 0; }
.rc-lane { position: relative; height: 44px; border-bottom: 2px dashed rgba(255,255,255,.5); }
.rc-lane:last-child { border-bottom: 0; }
.rc-name { position: absolute; left: 6px; top: 2px; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.rc-bull { position: absolute; left: 0; bottom: 2px; font-size: 30px; transform: scaleX(-1); transition: left .06s linear; }
.rc-bull.win { filter: drop-shadow(0 0 8px gold); }
.rc-finish { position: absolute; right: 4px; bottom: 6px; font-size: 22px; }
.rc-bets { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin-top: 8px; }
.rc-pick { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px;
           background: #fffaf4; font: inherit; cursor: pointer; }
.rc-pick span { font-weight: 900; color: #c0392b; } .rc-pick small { font-size: 11px; color: var(--muted); min-height: 1em; }
.rc-pick:hover { border-color: #e2a66b; }
.rc-hist { display: flex; flex-wrap: wrap; gap: 4px; }
.rc-h { padding: 2px 8px; border-radius: 99px; background: #f1ece6; font-size: 12.5px; font-weight: 700; }
/* 🔢 숫자 야구 */
.bb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.bb-cols h3 { margin: 4px 0; font-size: 14px; }
.bb-log { display: flex; flex-direction: column; gap: 4px; }
.bb-row { padding: 5px 10px; border-radius: 8px; background: #f6efe7; font-family: ui-monospace, monospace; font-weight: 800; }
.bb-row.hit { background: #e1f6e7; color: #1e7e44; }
/* 🎯 룰렛 */
.rl-top { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rl-wheel-wrap { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
                 background: conic-gradient(#c0392b 0 10deg, #222 10deg 20deg, #c0392b 20deg 30deg, #222 30deg 40deg, #c0392b 40deg 50deg, #222 50deg 60deg,
                 #c0392b 60deg 70deg, #222 70deg 80deg, #c0392b 80deg 90deg, #222 90deg 100deg, #27ae60 100deg 110deg, #c0392b 110deg 120deg, #222 120deg 130deg,
                 #c0392b 130deg 140deg, #222 140deg 150deg, #c0392b 150deg 160deg, #222 160deg 170deg, #c0392b 170deg 180deg, #222 180deg 190deg, #c0392b 190deg 200deg,
                 #222 200deg 210deg, #c0392b 210deg 220deg, #222 220deg 230deg, #c0392b 230deg 240deg, #222 240deg 250deg, #c0392b 250deg 260deg, #222 260deg 270deg,
                 #c0392b 270deg 280deg, #222 280deg 290deg, #c0392b 290deg 300deg, #222 300deg 310deg, #c0392b 310deg 320deg, #222 320deg 330deg, #c0392b 330deg 340deg,
                 #222 340deg 350deg, #c0392b 350deg 360deg); box-shadow: 0 0 0 6px #b8860b; }
.rl-ball { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; font-weight: 900; color: #fff;
           background: #555; box-shadow: 0 0 0 4px #fff; }
.rl-ball.red { background: #c0392b; } .rl-ball.black { background: #222; } .rl-ball.green { background: #27ae60; }
.rl-ball.spin { animation: shiver .1s infinite; }
.rl-recent { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.rl-recent span, .rl-n { min-width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; }
.rl-recent .red, .rl-n.red, .rl-b.red { background: #c0392b; } .rl-recent .black, .rl-n.black, .rl-b.black { background: #222; color: #fff; }
.rl-recent .green, .rl-n.green { background: #27ae60; }
.rl-board { max-width: 560px; margin: 0 auto; }
.rl-outside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rl-b { padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fffaf4; font: inherit; font-weight: 800; cursor: pointer; }
.rl-nums { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.rl-n { border: 0; cursor: pointer; font: inherit; font-weight: 900; height: 32px; padding: 0; }
.rl-n:hover, .rl-b:hover { filter: brightness(1.15); }
/* 🎲 홀짝 · 🪙 동전 */
.ge-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-weight: 700; margin-bottom: 12px; }
.ge-bar input { width: 90px; height: 34px; }
.ge-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ge-game { text-align: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fffaf4; }
.ge-game h2 { margin: 0; }
.ge-dice { font-size: 64px; line-height: 1.1; letter-spacing: 6px; }
.ge-dice.rolling span { display: inline-block; animation: shiver .15s infinite; }
.ge-picks { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.ge-pick { min-width: 90px; font-size: 18px; }
.ge-pick.odd, .ge-pick.head { background: #2f80ed; } .ge-pick.even, .ge-pick.tail { background: #eb5757; }
.ge-coin { position: relative; width: 96px; height: 96px; margin: 6px auto; transform-style: preserve-3d; transition: transform .6s; }
.ge-coin > div { position: absolute; inset: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
                 font-size: 40px; backface-visibility: hidden; background: radial-gradient(circle at 35% 35%, #ffe680, #d4a000); box-shadow: inset 0 0 0 4px #b8860b; }
.ge-coin small { font-size: 12px; font-weight: 900; color: #6b4a00; }
.ge-coin .back { transform: rotateY(180deg); }
.ge-coin.flipping { animation: geFlip .35s linear infinite; }
.ge-coin.tail { transform: rotateY(180deg); }
@keyframes geFlip { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
.ge-win { color: #27ae60; } .ge-lose { color: #c0392b; }
.ge-log { display: flex; flex-wrap: wrap; gap: 6px; }
.ge-chip { padding: 3px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }
.ge-chip.win { background: #e1f6e7; color: #1e7e44; } .ge-chip.lose { background: #fdecea; color: #b03a2e; }
/* 🃏 바카라 */
.bc-table { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 16px; border-radius: 18px;
            background: radial-gradient(ellipse at center, #1f7a4a, #0f4d2c); color: #fff; margin-top: 8px; }
.bc-side { text-align: center; padding: 8px; border-radius: 12px; transition: box-shadow .3s; min-width: 0; }
.bc-side h3 { margin: 0 0 8px; font-size: 15px; } .bc-side h3 b { color: #ffd84d; margin-left: 4px; }
.bc-side.win { box-shadow: 0 0 0 3px #ffd84d, 0 0 18px rgba(255, 216, 77, .7); }
.bc-vs { font-weight: 900; color: #ffd84d; }
.bc-cards { display: flex; gap: 6px; justify-content: center; min-height: 74px; flex-wrap: wrap; }
.bc-card { width: 48px; height: 70px; border-radius: 8px; background: #fff; color: #222; display: flex; flex-direction: column; align-items: center;
           justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.35); animation: bcDeal .35s ease; }
.bc-card b { font-size: 18px; } .bc-card i { font-style: normal; font-size: 18px; }
.bc-card.red { color: #d63031; }
.bc-card.back { background: repeating-linear-gradient(45deg, #8e2b2b 0 6px, #a83a3a 6px 12px); color: #fff; }
.bj-table { grid-template-columns: 1fr; }
@keyframes bcDeal { from { transform: translateY(-30px) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.bc-bets { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; max-width: 520px; margin: 0 auto; }
.bc-bet { padding: 14px 6px; border: 0; border-radius: 14px; font: inherit; font-weight: 900; font-size: 16px; color: #fff; cursor: pointer;
          display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bc-bet small { font-size: 12px; opacity: .9; }
.bc-bet.player { background: #2f80ed; } .bc-bet.banker { background: #eb5757; } .bc-bet.tie { background: #27ae60; }
.bc-bet:hover { filter: brightness(1.08); transform: translateY(-1px); }
.bc-road { display: flex; flex-wrap: wrap; gap: 3px; }
.bc-road span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #fff; }
.bc-road .player { background: #2f80ed; } .bc-road .banker { background: #eb5757; } .bc-road .tie { background: #27ae60; }
@media (max-width: 480px) { .bc-table { grid-template-columns: 1fr; } .bc-vs { display: none; } }
/* ⚒️ 강화 */
.en-stage { position: relative; width: 220px; height: 220px; margin: 6px auto 4px; border-radius: 50%; display: flex; flex-direction: column;
            align-items: center; justify-content: center; background: radial-gradient(circle, #fff7e6, #f3e2c4); box-shadow: inset 0 0 0 3px #e2c37a; }
.en-stage[data-tier="1"] { background: radial-gradient(circle, #f1f6ff, #c9d9f2); box-shadow: inset 0 0 0 3px #7fa7e0; }
.en-stage[data-tier="2"] { background: radial-gradient(circle, #f3ecff, #d6c3f5); box-shadow: inset 0 0 0 3px #9b6fe0, 0 0 18px rgba(155,111,224,.4); }
.en-stage[data-tier="3"] { background: radial-gradient(circle, #fff1f1, #f5c2c2); box-shadow: inset 0 0 0 3px #e05c5c, 0 0 22px rgba(224,92,92,.45); }
.en-stage[data-tier="4"], .en-stage[data-tier="5"] { background: radial-gradient(circle, #fffbe0, #ffd84d); box-shadow: inset 0 0 0 3px #d4a000, 0 0 30px rgba(255,200,0,.7); }
.en-icon { font-size: 76px; line-height: 1; }
.en-name { margin-top: 6px; font-weight: 800; } .en-name b { font-size: 22px; color: #c0392b; }
.en-info { text-align: center; margin: 8px 0; font-size: 14px; }
.en-stars { text-align: center; font-size: 13px; font-weight: 800; color: #b8860b; }
.en-opts { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.en-opts label { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.en-opts small { color: var(--muted); font-weight: 600; }
.en-shop { margin-top: 14px; padding: 12px; border-radius: 14px; background: #fffaf4; border: 1px solid var(--line); }
.en-shop h3 { margin: 0 0 6px; }
.en-jumps { display: flex; flex-wrap: wrap; gap: 6px; }
.en-brk td { background: #fff3d6; font-weight: 800; }
.en-stage[data-tier="5"] .en-icon { filter: drop-shadow(0 0 10px #fff); }
.en-fx { position: absolute; inset: 0; pointer-events: none; }
.en-fx span { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-size: 24px; font-weight: 900; animation: rise 1.4s ease-out forwards; white-space: nowrap; }
.en-stage.hammer .en-icon { animation: enHammer .45s ease-in-out; }
.en-stage.up { animation: enGlow .8s ease; } .en-stage.down, .en-stage.keep { animation: shiver .4s 2; }
.en-stage.boom .en-icon { animation: enBoom .7s ease; }
@keyframes enHammer { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-25deg); } 60% { transform: rotate(15deg) scale(.95); } }
@keyframes enGlow { 0% { filter: brightness(1); } 40% { filter: brightness(1.6) drop-shadow(0 0 20px gold); } 100% { filter: brightness(1); } }
@keyframes enBoom { 0% { transform: scale(1); } 40% { transform: scale(1.4) rotate(10deg); opacity: .4; } 100% { transform: scale(1); opacity: 1; } }
/* 🎫 즉석 복권 */
.sc-buy { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-ticket { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 140px; padding: 12px 16px; border-radius: 14px; cursor: pointer;
             border: 2px solid #e2c37a; background: linear-gradient(135deg, #fff6d9, #ffe9a8); font: inherit; color: var(--ink); }
.sc-ticket.gold { border-color: #b8860b; background: linear-gradient(135deg, #ffe08a, #f5b700); }
.sc-ticket b { font-size: 15px; } .sc-ticket span { font-weight: 900; } .sc-ticket small { font-size: 11.5px; color: #7a5a00; }
.sc-ticket:hover { transform: translateY(-2px); }
.sc-stage { margin-top: 16px; text-align: center; }
.sc-card { position: relative; width: min(320px, 100%); height: 150px; margin: 0 auto; border-radius: 16px; overflow: hidden;
           background: linear-gradient(135deg, #fff6d9, #ffe9a8); border: 3px dashed #e2c37a; }
.sc-card.gold { background: linear-gradient(135deg, #ffe08a, #f5b700); border-color: #b8860b; }
.sc-card.win { box-shadow: 0 0 0 4px rgba(39, 174, 96, .5), 0 0 24px rgba(241, 196, 15, .8); }
.sc-under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.sc-under b { font-size: 34px; font-weight: 900; } .sc-under.win b { color: #c0392b; } .sc-under.lose b { color: #7f8c8d; }
.sc-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.sc-tip { font-weight: 800; margin: 10px 0; min-height: 1.3em; }
.sc-buy-col { display: flex; flex-direction: column; gap: 6px; }
.sc-multi { background: #b8860b; } .sc-multi.basic { background: #c9a227; }
.sc-multi-stage { margin-top: 16px; text-align: center; }
.sc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 520px; margin: 0 auto; }
@media (max-width: 420px) { .sc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sc-mini { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; border: 2px dashed #e2c37a; background: linear-gradient(135deg, #fff6d9, #ffe9a8);
           cursor: pointer; padding: 0; font: inherit; overflow: hidden; min-width: 0; }
.sc-mini.gold { border-color: #b8860b; background: linear-gradient(135deg, #ffe08a, #f5b700); }
.sc-mini-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 22px;
                 background: linear-gradient(135deg, #c9c9c9, #f2f2f2 50%, #a8a8a8); transition: opacity .35s, transform .35s; }
.sc-mini-cover small { font-size: 11px; font-weight: 800; color: #666; }
.sc-mini-in { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #7f8c8d; }
.sc-mini.win .sc-mini-in { color: #c0392b; }
.sc-mini.open .sc-mini-cover { opacity: 0; transform: scale(1.2); pointer-events: none; }
.sc-mini.open.win { box-shadow: 0 0 0 3px rgba(39, 174, 96, .45); }
.sc-mini.open.big { box-shadow: 0 0 0 3px #f1c40f, 0 0 16px rgba(241, 196, 15, .9); animation: nmPop .4s ease; }
.sc-table { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.sc-table span { padding: 2px 8px; border-radius: 8px; background: #fffaf4; border: 1px solid var(--line); }
/* 🎫 여러 장 고르기 (×10 · ×50 · ×100) */
.sc-counts { display: flex; gap: 4px; }
.sc-counts .sc-multi { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 4px 6px; line-height: 1.15; min-width: 0; }
.sc-counts .sc-multi small { font-size: 9.5px; font-weight: 700; opacity: .9; white-space: nowrap; }
.sc-buy-col { min-width: 186px; flex: 1 1 186px; max-width: 260px; }
/* 50 · 100장 : 작은 카드를 더 촘촘하게 */
.sc-grid.many { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; max-width: 640px; }
@media (max-width: 420px) { .sc-grid.many { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sc-grid.many .sc-mini { border-radius: 6px; border-width: 1px; }
.sc-grid.many .sc-mini-cover { font-size: 14px; } .sc-grid.many .sc-mini-cover small { font-size: 8px; }
.sc-grid.many .sc-mini-in { font-size: 9px; letter-spacing: -.3px; }
/* 🔥 불꽃 · 👑 황소왕 · 🌌 전설 */
.sc-ticket.fire, .sc-card.fire, .sc-mini.fire { border-color: #d35400; background: linear-gradient(135deg, #ffd3a8, #ff7a45); }
.sc-ticket.king, .sc-card.king, .sc-mini.king { border-color: #8e44ad; background: linear-gradient(135deg, #f3d9ff, #c38bff); }
.sc-ticket.legend, .sc-card.legend, .sc-mini.legend { border-color: #1b1f5e; background: linear-gradient(135deg, #3a3f9e, #0f123d); }
.sc-ticket.legend, .sc-ticket.legend small { color: #fff3c4; }
.sc-multi.fire { background: #d35400; } .sc-multi.king { background: #8e44ad; } .sc-multi.legend { background: #1b1f5e; }
.sc-mini.legend .sc-mini-in { color: #dfe3ff; } .sc-mini.legend.win .sc-mini-in { color: #ffd54a; }
.sc-card.legend .sc-under.win b { color: #ffd54a; } .sc-card.legend .sc-under span { color: #dfe3ff; }
/* 🎁 마니또 */
.mn-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 10px; font-size: 17px; }
.mn-step { font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: #fdf0e2; color: #a4520f; }
.mn-step.matched { background: #efe6ff; color: #6b3fb5; } .mn-step.revealed { background: #e5f6ea; color: #23784a; }
.mn-members { display: flex; flex-wrap: wrap; gap: 6px; }
.mn-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; background: #fff; }
.mn-target { margin-top: 14px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #fff3e0, #fde2f3); text-align: center; }
.mn-target p { margin: 0 0 6px; }
.mn-secret { display: inline-block; padding: 8px 18px; border-radius: 12px; background: #fff; font-size: 18px; cursor: pointer; user-select: none; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.mn-msg-form { display: flex; gap: 8px; margin-top: 10px; align-items: stretch; }
.mn-msg-form .btn { height: auto; }
.mn-note { padding: 8px 10px; border-radius: 10px; background: #fffaf4; border: 1px solid var(--line); margin-bottom: 6px; }
.mn-note p { margin: 2px 0; white-space: pre-wrap; word-break: break-word; }
.mn-pairs { margin: 0; padding-left: 18px; line-height: 1.9; }
/* ⚫ 오목 */
.om-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
@media (max-width: 820px) { .om-layout { grid-template-columns: minmax(0, 1fr); } }
.om-main, .om-side { min-width: 0; }
.om-head { font-weight: 800; margin-bottom: 8px; min-height: 1.4em; }
.om-timer { height: 6px; border-radius: 99px; background: #eee3d6; overflow: hidden; margin-bottom: 8px; }
.om-timer i { display: block; height: 100%; background: #2e8b57; transition: width .2s linear; }
.om-timer.hurry i { background: #e74c3c; }
.om-board-wrap { width: 100%; max-width: 560px; }
.om-board { position: relative; display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); width: 100%; box-sizing: border-box; aspect-ratio: 1; background: #e6b56b;
            border-radius: 10px; padding: 3.33%; box-shadow: inset 0 0 0 2px #b9853f; }
.om-board.mine { box-shadow: inset 0 0 0 2px #b9853f, 0 0 0 3px rgba(46, 139, 87, .5); }
.om-cell { position: relative; aspect-ratio: 1; border: 0; padding: 0; margin: 0; min-width: 0; min-height: 0; width: 100%; height: auto;
           background: transparent; cursor: pointer; box-sizing: border-box; }
.om-cell::before, .om-cell::after { content: ""; position: absolute; background: #6b4a1e; pointer-events: none; }
.om-cell::before { left: 0; right: 0; top: 50%; height: 1px; }
.om-cell::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.om-cell:nth-child(15n+1)::before { left: 50%; } .om-cell:nth-child(15n)::before { right: 50%; }
.om-cell:nth-child(-n+15)::after { top: 50%; } .om-cell:nth-child(n+211)::after { bottom: 50%; }
.om-cell.star { background: radial-gradient(circle, #6b4a1e 0 9%, transparent 10%); }
.om-cell.b, .om-cell.w { z-index: 1; }
.om-cell.b { background: radial-gradient(circle at 35% 35%, #666, #000 60%); border-radius: 50%; transform: scale(.88); }
.om-cell.w { background: radial-gradient(circle at 35% 35%, #fff, #ccc 70%); border-radius: 50%; transform: scale(.88); box-shadow: 0 0 0 1px #999; }
.om-cell.b::before, .om-cell.b::after, .om-cell.w::before, .om-cell.w::after { display: none; }
.om-cell.last { box-shadow: 0 0 0 2px #e74c3c; }
.om-board.mine .om-cell:not(.b):not(.w):hover { background: radial-gradient(circle, rgba(0,0,0,.25) 0 40%, transparent 42%); }
.om-actions { display: flex; gap: 8px; margin-top: 10px; }
.om-msg { color: var(--danger); min-height: 1.2em; font-size: 13px; }
.om-side h3 { margin: 14px 0 6px; font-size: 15px; }
.om-new { display: flex; flex-direction: column; gap: 6px; }
.om-new h3 { margin-top: 0; }
.rps-pick { display: inline-flex; gap: 2px; align-items: center; }
.rps-pick[hidden] { display: none; }
.rps-pick label { display: inline-flex; align-items: center; font-size: 18px; cursor: pointer; padding: 2px 3px; border-radius: 8px; }
.rps-pick input { width: auto; margin: 0 1px 0 0; }
.rps-btn { min-width: 38px; padding: 0 6px; font-size: 17px; }
.dg-duel-form { flex-wrap: wrap; }
.duel-kind { max-width: 140px; }
.wc-stake { margin-top: 8px; font-size: 13.5px; font-weight: 800; color: #8a5a00; }
.wc-stake-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; font-weight: 700; }
/* ⚖️ 밸런스 게임 */
.bl-new { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.bl-new input { flex: 1 1 180px; }
.bl-list { display: flex; flex-direction: column; gap: 12px; }
.bl-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.bl-pair { display: flex; gap: 8px; align-items: stretch; }
.bl-vs { align-self: center; font-weight: 900; color: #c0392b; font-size: 14px; flex: none; }
.bl-opt { position: relative; flex: 1; min-width: 0; min-height: 64px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fffaf4;
          font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
.bl-opt:hover { border-color: #e2a66b; }
.bl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; transition: width .5s ease; z-index: 0; }
.bl-a .bl-fill { background: rgba(52, 152, 219, .18); }
.bl-b .bl-fill { background: rgba(231, 76, 60, .16); }
.bl-txt, .bl-pct { position: relative; z-index: 1; word-break: keep-all; }
.bl-pct { font-size: 12.5px; color: var(--muted); font-weight: 800; }
.bl-opt.mine { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(200, 105, 28, .18); }
.bl-opt.mine .bl-txt::before { content: "✔ "; color: var(--brand); }
.bl-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; }
@media (max-width: 480px) { .bl-pair { flex-direction: column; } .bl-vs { align-self: center; } }
.dg-wallet { grid-column: 1 / -1; margin: 2px 0 0; text-align: center; font-size: 13px; font-weight: 800; color: #8a5a00; }
.dg-sub-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: #fffaf4; }
.dg-sub-head b { flex: 1; font-size: 14px; }
.dg-back { border: 0; background: #f6efe7; border-radius: 8px; padding: 5px 9px; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; color: var(--ink); }
.dg-bal { font-size: 12.5px; font-weight: 800; color: #8a5a00; }
.dg-view { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px; background: #fbf8f4; }
.dg-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 6px 0; }
.dg-cmd { display: flex; gap: 6px; margin: 6px 0; }
.dg-cmd input { flex: 1; min-width: 0; height: 34px; font-size: 13.5px; }
.dg-out { margin: 8px 0 0; font-weight: 800; font-size: 14px; color: #8a4a12; text-align: center; word-break: break-word; }
.dg-out.pop { animation: lotpop .45s ease; }
.dock-note-s { font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; text-align: center; }
.dq-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.dq-card.solved { background: #f1fbf2; border-color: #a9dcb0; } .dq-card.failed { background: #faf6f4; }
.dq-q { font-weight: 800; font-size: 14px; margin: 0 0 4px; }
.dq-msg { margin: 2px 0 0; font-size: 12.5px; font-weight: 700; min-height: 1em; }
.db-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.db-wrap .gm-bar { width: 100%; max-width: 260px; }
.db-img { width: 130px; height: 130px; object-fit: contain; border-radius: 50%; background: radial-gradient(circle at 50% 60%, #fff3d6, #fde3bf 70%, transparent 71%); }
.db-img.bounce { animation: bounce .5s ease; }
.db-name { font-size: 15px; }
.db-mood { margin: 2px 0; font-size: 13px; font-weight: 700; }
.dock .lot-ticket { height: 90px; }
/* 🎮 미니게임 */
.gm-wallet { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: #fff3d6; color: #8a5a00; font-weight: 800; white-space: nowrap; }
.gm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.gm-card { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #fffaf4; color: inherit; text-decoration: none; min-width: 0; }
a.gm-card:hover { border-color: #e2a66b; box-shadow: 0 4px 14px rgba(200, 105, 28, .12); }
.gm-card h2 { font-size: 17px; margin: 0 0 6px; }
.gm-wide { grid-column: 1 / -1; }
.gm-sub { font-size: 13px; color: var(--muted); margin: 4px 0; }
.gm-big { font-size: 18px; margin: 8px 0 4px; }
.gm-bull { display: flex; gap: 12px; align-items: center; }
.gm-bull img { width: 92px; height: 92px; object-fit: contain; flex: none; }
.gm-bull > div { flex: 1; min-width: 0; }
.gm-bar { height: 10px; border-radius: 999px; background: #eee2d4; overflow: hidden; }
.gm-bar.big { height: 14px; max-width: 420px; margin: 6px auto; }
.gm-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f0a03c, #c8691c); border-radius: 999px; transition: width .5s; }
.gm-odds { margin-top: 6px; font-size: 12px; color: var(--muted); }
.gm-odds span { display: inline-block; margin: 2px 8px 0 0; }
.gm-log { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.gm-log li { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.gm-log li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-log .plus { color: #2e8b3e; } .gm-log .minus { color: #c0392b; }
.gm-log small { color: var(--muted); }
.lot-ticket { position: relative; height: 96px; border-radius: 14px; overflow: hidden; margin: 8px 0; border: 2px dashed #e2a66b;
              background: repeating-linear-gradient(45deg, #fff8e8, #fff8e8 10px, #fff1d4 10px, #fff1d4 20px); }
.lot-result { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6px; }
.lot-result b { font-size: 26px; color: #c8691c; }
.lot-result span { font-size: 13px; color: #6b4a3a; }
.lot-ticket.big .lot-result b { animation: lotpop .6s ease; color: #d4380d; }
.lot-cover { position: absolute; inset: 0; border: 0; cursor: pointer; font: inherit; font-size: 17px; font-weight: 800; color: #fff;
             background: linear-gradient(135deg, #b8b8c8, #8e8ea6 40%, #c9c9d8 60%, #8e8ea6); transition: opacity .5s, transform .5s; }
.lot-cover.gone { opacity: 0; transform: scale(1.1); }
@keyframes lotpop { 0% { transform: scale(.4); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.dice-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.dice-form { display: flex; gap: 8px; margin: 6px 0; }
.dice-form input { flex: 1; min-width: 0; }
.dice-out { margin: 8px 0 0; font-weight: 800; font-size: 16px; color: #8a4a12; min-height: 1.4em; }
.dice-out.pop { animation: lotpop .45s ease; }
/* 🧠 퀴즈 */
.qz-layout, .bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; margin-top: 14px; }
@media (max-width: 760px) { .qz-layout, .bl-layout { grid-template-columns: minmax(0, 1fr); } }
.qz-new { border: 1px dashed #e2a66b; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.qz-new summary { cursor: pointer; font-weight: 800; }
.qz-new form { display: grid; gap: 8px; margin-top: 10px; }
.qz-row { display: flex; gap: 8px; } .qz-row input { flex: 1; min-width: 0; }
.qz-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.qz-card.solved { background: #f1fbf2; border-color: #a9dcb0; }
.qz-card.failed { background: #faf6f4; }
.qz-card.hidden-q { opacity: .6; }
.qz-card.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.qz-top { display: flex; gap: 6px; align-items: center; font-size: 12px; flex-wrap: wrap; }
.qz-no { font-weight: 900; color: #c8691c; }
.qz-cat { padding: 1px 8px; border-radius: 999px; background: #f6efe7; color: #8a6a58; }
.qz-cat.off { background: #eee; color: #888; }
.qz-solvers { margin-left: auto; color: var(--muted); }
.qz-q { font-size: 17px; font-weight: 800; margin: 8px 0; }
.qz-hint { font-size: 13px; color: #8a6a58; margin-bottom: 6px; } .qz-hint summary { cursor: pointer; }
.qz-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qz-form input { flex: 1; min-width: 120px; }
.qz-left { font-size: 12px; color: var(--muted); }
.qz-msg { margin: 6px 0 0; font-size: 14px; font-weight: 700; min-height: 1em; }
.qz-ok { color: #2e8b3e; font-weight: 800; margin: 4px 0; }
.qz-no-more { color: #8a6a58; margin: 4px 0; }
.qz-admin { display: flex; gap: 6px; margin-top: 8px; }
/* 🐂 황소 키우기 */
.bl-main { text-align: center; }
.bl-stage { position: relative; width: 220px; height: 220px; margin: 6px auto 0; border-radius: 50%;
            background: radial-gradient(circle at 50% 60%, #fff3d6, #fde3bf 70%, transparent 71%); }
.bl-stage img { width: 100%; height: 100%; object-fit: contain; }
.bl-stage.sleep img { filter: brightness(.8) saturate(.8); }
.bl-stage.bounce img { animation: bounce .5s ease; }
@keyframes bounce { 30% { transform: translateY(-14px) scale(1.04); } 60% { transform: translateY(0) scale(.98); } }
.bl-zzz { position: absolute; top: 10px; right: 20px; font-size: 34px; animation: float 2s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.bl-fx { position: absolute; inset: 0; pointer-events: none; }
.bl-fx span { position: absolute; bottom: 40%; font-size: 22px; font-weight: 900; color: #c8691c; animation: rise 1.2s ease-out forwards; }
@keyframes rise { to { transform: translateY(-110px); opacity: 0; } }
.bl-name { margin: 8px 0 0; } .bl-name > span { font-size: 15px; color: var(--muted); font-weight: 700; }
.bl-mood { font-size: 15px; font-weight: 700; margin: 4px 0 10px; }
.bl-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.bl-stages { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.bl-stages div { width: 76px; padding: 6px 2px; border-radius: 12px; background: #f6efe7; opacity: .45; filter: grayscale(1); font-size: 11px; }
.bl-stages div.on { opacity: 1; filter: none; background: #fff3d6; }
.bl-stages img { width: 48px; height: 48px; object-fit: contain; display: block; margin: 0 auto 2px; }
.bl-stages b, .bl-stages span { display: block; }
.bl-buffs { margin: 14px auto 6px; max-width: 460px; text-align: left; }
.bl-buffs h3 { margin: 0 0 6px; font-size: 15px; }
.bl-buffs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bl-buffs li { display: flex; justify-content: space-between; gap: 6px; padding: 7px 10px; border-radius: 10px; background: #f6efe7; color: #9a8f84; font-size: 13px; }
.bl-buffs li.on { background: linear-gradient(135deg, #fff3d6, #ffe2b8); color: #5a3a1a; box-shadow: 0 0 0 1px #f3c77a inset; }
.bl-buffs li b { white-space: nowrap; }
@media (max-width: 480px) { .bl-buffs ul { grid-template-columns: 1fr; } }
.bl-rename { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.bl-rename input { max-width: 160px; }
.login-opts {display: flex; gap: 18px; flex-wrap: wrap; margin: 4px 0 2px; font-size: 14px; font-weight: 700; }
.login-opts label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.login-hint { margin: 0 0 12px; font-size: 12.5px; }
.push-box {border: 2px solid #f0c9a0; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; background: #fff7ee; }
.push-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.push-head h2 { margin: 0; font-size: 17px; }
.push-box .hint { margin: 6px 0 0; }
.push-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 10px; font-weight: 700; font-size: 14px; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d6c8bb; transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .2s; }
.switch input:checked + span { background: #c8691c; }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:disabled + span { opacity: .55; cursor: default; }
.app-btn {font-size: 16px; padding: 12px 22px; }
.app-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 14px 0; }
.app-guide { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: #fffaf4; }
.app-guide h2 { font-size: 16px; margin: 0 0 6px; }
.app-guide ol { margin: 0; padding-left: 20px; line-height: 1.8; }
.st-fold { margin: -2px 0 8px; }
.st-fold > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: #8a5a3a; padding: 4px 0; }
.st-fold[open] > summary { margin-bottom: 8px; }
.duel-box { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fff3e6; border: 1px solid #f0c9a0; }
.duel-box h3 { margin: 0 0 6px; font-size: 15px; } .duel-box h3 small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.duel-form { display: flex; gap: 6px; flex-wrap: wrap; } .duel-form input { flex: 1; min-width: 110px; }
.duel-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #ecd3b8; font-size: 13px; font-weight: 700; }
.duel-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-recent-h { margin: 8px 0 2px; font-size: 12px; font-weight: 800; color: var(--muted); }
.duel-recent { margin: 2px 0; font-size: 12px; color: #6b4a3a; }
.emo-buy { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 8px 10px; margin: 0 2px 4px;
           border-radius: 10px; background: #fff3d6; font-size: 12.5px; font-weight: 700; color: #8a5a00; }
.emo-buy-btn { flex: none; border: 0; border-radius: 999px; padding: 6px 12px; background: #c8691c; color: #fff; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.emo-buy-btn[data-sure] { background: #d4380d; }
.st-price-input { width: 90px !important; }
.pt-give { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.pt-give label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.pt-give label.pt-all { flex-direction: row; align-items: center; padding-bottom: 10px; }
.emo-modes {display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px 5px 0; background: #efe4d6; }
.emo-modes button { height: 30px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .45); font: inherit; font-size: 13px; font-weight: 800; color: #6b4a3a; cursor: pointer; }
.emo-modes button.on { background: #fff; color: #3d2418; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.emo-modes button[data-key="vip"].on { color: #8a5a00; }
.emo-groups {display: flex; gap: 4px; padding: 5px 5px 4px; overflow-x: auto; scrollbar-width: none; background: #efe4d6; }
.emo-groups::-webkit-scrollbar { display: none; }
.emo-groups button { flex: none; display: flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px 0 4px; border: 0; border-radius: 999px;
                     background: rgba(255, 255, 255, .55); font: inherit; font-size: 12.5px; font-weight: 800; color: #6b4a3a; cursor: pointer; white-space: nowrap; }
.emo-groups button img { width: 24px; height: 24px; object-fit: contain; }
.emo-groups button.on { background: #fff; color: #3d2418; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.st-pack-input {width: 100%; height: 28px; font-size: 12px; padding: 0 6px; text-align: center; }
.emo-tabs button.on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.emo-body { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; padding: 6px; max-height: 210px; overflow-y: auto; overflow-x: hidden; }
.emo-body.stickers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.emo-box.emo-stickers { width: min(380px, calc(100vw - 32px)); }
.emo-box.emo-stickers .emo-body { max-height: 300px; }
.dock .emo-box.emo-stickers { width: calc(100% - 4px); }
.dock .emo-box.emo-stickers .emo-body { max-height: 250px; grid-template-columns: repeat(4, 1fr); }
.emo-pack-lock { font-weight: 700; color: #b07800; }
.st-btn { font-size: 19px; }
.emo-ch { border: 0; background: transparent; font-size: 22px; line-height: 1; padding: 5px 0; border-radius: 8px; cursor: pointer; }
.emo-ch:hover, .emo-st:hover { background: #fff1e3; }
.emo-st { border: 0; background: transparent; padding: 4px; border-radius: 10px; cursor: pointer; aspect-ratio: 1; }
.emo-st img { width: 100%; height: 100%; object-fit: contain; }
.emo-st { position: relative; }
.emo-st.special { background: linear-gradient(135deg, #fff7d6, #ffe9c7); }
.emo-st.locked img { filter: grayscale(1) brightness(1.05); opacity: .45; }
.emo-st.locked { cursor: not-allowed; }
.emo-lock { position: absolute; right: 2px; top: 1px; font-size: 13px; color: #e0a100; text-shadow: 0 0 3px #fff; }
.emo-note { grid-column: 1 / -1; margin: 2px 4px; font-size: 12px; color: var(--danger); min-height: 0; }
.emo-note:empty { display: none; }
.st-admin-item.locked { background: #fff7e0; border-color: #f0c96a; }
.st-lock { font-weight: 700; color: #b07800; }
.emo-empty { grid-column: 1 / -1; margin: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.chat-sticker { width: 120px; max-width: 40vw; height: auto; display: block; }
.dock-sticker { width: 96px; height: auto; display: block; }
.chat-photo { max-width: min(260px, 60vw); max-height: 320px; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); }
/* 📺 전광판 */
.ticker { display: flex; align-items: center; gap: 0; background: #1b1b1f; color: #f5f5f5; font-size: 14px; height: 34px; overflow: hidden; position: relative; z-index: 5; }
.ticker[hidden] { display: none; }
.ticker-tag { flex: none; padding: 0 12px; height: 100%; display: flex; align-items: center; background: #c0392b; color: #fff; font-weight: 900; letter-spacing: 1px; font-size: 12px; }
.ticker-view { flex: 1; overflow: hidden; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-track { display: inline-flex; align-items: center; height: 100%; white-space: nowrap; animation: tickerRun 60s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { color: inherit; text-decoration: none; padding: 0 22px; position: relative; }
.ticker-item::after { content: "◆"; position: absolute; right: -4px; opacity: .35; font-size: 9px; top: 50%; transform: translateY(-50%); }
.ticker-item:hover { text-decoration: underline; }
.ticker-item.up { color: #ff8a80; } .ticker-item.down { color: #82b1ff; }
.ticker-item.news, .ticker-item.hot { color: #ffe08a; font-weight: 700; }
.ticker-item.rank { color: #e0e0e0; }
@keyframes tickerRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker-view { overflow-x: auto; } }
.dock-photo { max-width: 160px; max-height: 200px; height: auto; display: block; border-radius: 10px; }
.st-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.st-admin-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; text-align: center; }
.st-admin-item img { width: 72px; height: 72px; object-fit: contain; }
.st-admin-item span { word-break: break-all; }
.st-del { color: var(--danger); }

/* ===== 🟢 게시판 왼쪽 : 회원 수 / 지금 접속 ===== */
.board-stats { margin-top: 12px; padding: 12px; border-radius: 12px; background: #fbf8f4; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.bs-row { display: flex; justify-content: space-between; align-items: center; }
.bs-row span { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.bs-row b { font-weight: 800; }
.bs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47, 158, 68, .18); animation: bs-blink 2s ease-in-out infinite; }
@keyframes bs-blink { 50% { opacity: .4; } }
.bs-who summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.bs-who div { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.bs-name { padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; }

/* ===== 바깥 틀 (BGM · 💬 창이 페이지를 옮겨도 안 끊기게) ===== */
html:has(body.shell) { height: 100%; }
body.shell { margin: 0; height: 100%; overflow: hidden; background: #f5f7fb; }
#site-frame { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
body.shell.on-chat #dock { display: none; }

/* ===== 왼쪽 아래 💬 창 (채팅 · 끝말잇기) ===== */
.dock { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; }
.dock-fab { position: relative; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--brand); color: #fff;
            font-size: 24px; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.dock-fab:hover, .dock-fab.on { background: var(--brand-dark); }
.dock-fab.alert { animation: wc-pulse .8s ease-in-out infinite; }
.dock-badge { position: absolute; top: -6px; right: -10px; min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--danger);
              color: #fff; font-size: 11px; font-weight: 800; line-height: 16px; white-space: nowrap; }
.dock-panel { position: absolute; left: 0; bottom: 66px; width: min(360px, calc(100vw - 32px)); height: min(540px, calc(100vh - 140px));
              display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 16px 48px rgba(0, 0, 0, .28); overflow: hidden; }
.dock-tabs { display: flex; gap: 4px; padding: 6px; background: #f6efe7; border-bottom: 1px solid var(--line); }
.dock-tabs button { flex: 1; border: 0; border-radius: 10px; padding: 8px 6px; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.dock-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.dock-tabs .dock-x, .dock-tabs .dock-voice { flex: none; width: 36px; }

/* ===== 🎙️ 음성 작은 창 ===== */
.voice-mini { padding: 14px 16px; background: #fbf8f4; }
.vm-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; }
.vm-tip { margin: 8px 0 12px; font-size: 12.5px; color: var(--muted); }
.voice-mini .voice-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.voice-mini .voice-controls { flex-wrap: wrap; }
.vr-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.vr-new { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.vr-new input[type=text], .vr-new input[type=password] { height: 40px; }
.vr-type { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.vr-type label { display: flex; gap: 5px; align-items: center; cursor: pointer; }
.vr-new-btns { display: flex; gap: 6px; justify-content: flex-end; }
.vr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 12px; }
.vr-room { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.vr-room.lobby { background: #fff6ec; border-color: #f0dcc6; }
.vr-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.vr-title { font-size: 15px; word-break: break-all; }
.vr-count { flex: none; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #e3f6e8; color: var(--ok); }
.vr-count.full { background: #fde2e2; color: var(--danger); }
.vr-members { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.vr-btns { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.vr-pw { flex: 1; min-width: 90px; height: 32px; font-size: 13px; }
.vr-current { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; padding: 10px 12px; border-radius: 12px; background: #fff6ec; border: 1px solid #f0dcc6; }
.voice-mini .vr-list { grid-template-columns: 1fr; }
.vm-promo { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 14px;
            padding: 12px 14px; border-radius: 12px; background: #fff6ec; border: 1px solid #f0dcc6; font-size: 14px; }
.dock-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dock-chat { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: #fbf8f4; }
.dock-empty { color: var(--muted); font-size: 13px; text-align: center; margin: auto 0; }
.dock-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 88%; }
.dock-msg.mine { align-self: flex-end; align-items: flex-end; }
.dock-msg b { font-size: 11.5px; color: #4a3a2c; margin-bottom: 1px; }
.dock-bubble { padding: 6px 10px; border-radius: 12px; background: #fff; border: 1px solid #ece3d9; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.dock-msg.mine .dock-bubble { background: var(--brand); color: #fff; border-color: var(--brand); }
.dock-msg small { font-size: 10px; color: var(--muted); }
.dock-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.dock-form input { flex: 1; min-width: 0; height: 38px; font-size: 14px; }
.dock-form .btn { flex: none; height: 38px; }
.dock-note { margin: 0; padding: 10px; font-size: 13px; text-align: center; border-top: 1px solid var(--line); }
.dock-foot { display: flex; justify-content: space-between; gap: 8px; padding: 4px 10px 8px; font-size: 12px; }
.dock-foot span { color: var(--danger); }
.dock-game { flex: 1; overflow-y: auto; padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.dock-game .dock-form { border: 0; padding: 0; }
.dock-game .wc-timer { margin: 0; width: 100%; }
.dock-g-status { font-weight: 800; color: var(--brand-dark); font-size: 13.5px; }
.dock-g-word { font-size: 30px; font-weight: 900; color: #3b2a1d; word-break: keep-all; }
.dock-g-need { font-size: 12.5px; color: var(--muted); }
.dock-g-players { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.dock-g-players .wc-player { padding: 3px 9px; font-size: 12.5px; }
.dock-g-btns { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.dock-g-err { color: var(--danger); font-size: 12.5px; min-height: 16px; }
.dock-g-chain { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.dock-g-chain .wc-chip { font-size: 12.5px; padding: 2px 8px; }
.dock-events { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fbf8f4; }
.de-item { padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.de-top { display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; }
.de-title { font-weight: 800; font-size: 14px; color: var(--ink); text-decoration: none; word-break: break-all; }
.de-title:hover { text-decoration: underline; }
.de-when { font-size: 12px; color: var(--muted); }
.de-opts { display: flex; flex-wrap: wrap; gap: 5px; }
.de-opt { border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 5px 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.de-opt.first { border-color: #f3c9a0; }
.de-opt.mine { background: var(--brand); border-color: var(--brand); color: #fff; }
.de-opt:disabled { cursor: default; opacity: .7; }
.de-opt b { font-weight: 900; }
.de-todo { font-size: 12px; font-weight: 700; color: var(--brand-dark); }
.dock-g-log { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }

/* ===== 반응형 (휴대폰) ===== */
@media (max-width: 900px) {
  /* 위쪽 메뉴 : 1줄 로고 / 2줄 메뉴(옆으로 밀어서 보기) -> 글자가 갈라지거나 겹치지 않게 */
  .topbar .inner { height: auto; flex-wrap: wrap; padding: 8px 12px 4px; gap: 4px 10px; }
  .logo { font-size: 20px; }
  .nav { flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding-bottom: 6px;
         scrollbar-width: none; -webkit-overflow-scrolling: touch;
         mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .nav::-webkit-scrollbar { display: none; }
  .nav > * { flex: none; }
  .nav a.link { padding: 6px 9px; font-size: 14px; white-space: nowrap; }
  .me { white-space: nowrap; }
  /* 화면보다 넓어지지 않게 (넓은 표는 표 안에서만 옆으로 밀림) */
  html, body { overflow-x: clip; }
  .container { padding: 18px 12px 60px; }
  .features, .grid2, .panels, .home-grid, .board-layout { grid-template-columns: minmax(0, 1fr); }
  .board-menu { position: static; }
  .bgm-cols { grid-template-columns: 1fr; }
  .quick-link span { display: none; }       /* 휴대폰에서는 위쪽 메뉴에 아이콘만 */
  .quick-link { padding: 0 9px; }
  .link-row { grid-template-columns: 20px 1fr; }
  .link-row input { grid-column: 2; }
  .bgm-vol { display: none; }
  .bgm-yt-vol .bgm-vol { display: block; }   /* 유튜브 볼륨은 휴대폰에서도 보이게 */
  .wc-cols { grid-template-columns: 1fr; }
  .at-cols { grid-template-columns: 1fr; }
  .ev-form { grid-template-columns: 1fr; }
  .hero-bull img { width: 96px; height: 96px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .admin-body { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
  .sidebar .tagline, .sidebar .divider { display: none; }
  .admin-main { padding: 22px 16px; }
  .hero { padding: 36px 24px; }
  .hero h1 { font-size: 28px; }
}

/* ---------- 📺 같이 보기 ---------- */
.wt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; margin-top: 12px; }
@media (max-width: 860px) { .wt-layout { grid-template-columns: 1fr; } }
.wt-stage { background: #111; border-radius: 14px; overflow: hidden; }
.wt-video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #000; }
.wt-video iframe, .wt-video #wt-player, .wt-ytbox { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wt-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #ddd; padding: 16px; font-size: 15px; line-height: 1.6; }
.wt-join { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 22px; font-weight: 700; cursor: pointer; }
.wt-join:hover { background: rgba(0, 0, 0, .4); }
.wt-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #1d1d1f; color: #eee; flex-wrap: wrap; }
.wt-b { background: #333; color: #fff; border: 0; border-radius: 8px; min-width: 36px; height: 34px; font-size: 16px; cursor: pointer; }
.wt-b:hover { background: #4a4a4a; }
#wt-seek { flex: 1 1 140px; min-width: 100px; accent-color: #f39c12; }
.wt-time { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wt-vol { display: inline-flex; align-items: center; gap: 4px; }
.wt-vol input { width: 80px; accent-color: #f39c12; }
.wt-stage:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.wt-stage:fullscreen .wt-video { flex: 1; aspect-ratio: auto; }
.wt-stage.wt-big { position: fixed; inset: 0; z-index: 9999; border-radius: 0; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.wt-stage.wt-big .wt-video { flex: 1; aspect-ratio: auto; }
.wt-now { margin: 10px 0 2px; font-size: 15px; word-break: break-all; }
.wt-log { margin: 0 0 10px; font-size: 13px; min-height: 1.2em; }
.wt-add { display: flex; gap: 6px; flex-wrap: wrap; }
.wt-add input { flex: 1 1 220px; min-width: 0; }
.wt-results { display: grid; gap: 6px; margin-top: 8px; }
.wt-res, .wt-queue li { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 10px; background: #f6efe7; }
.wt-res img, .wt-queue img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.wt-res span, .wt-queue li span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.wt-res b, .wt-queue b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-queue { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.wt-queue .wt-none { background: none; }
.wt-side h3 { margin: 0 0 8px; }
.wt-viewers { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; min-height: 24px; }
.wt-viewer { background: #fff3d6; border-radius: 99px; padding: 2px 10px; font-size: 12.5px; }
.wt-chat { height: 300px; overflow-y: auto; background: #faf6f0; border-radius: 10px; padding: 8px; font-size: 13.5px; }
.wt-chat p { margin: 0 0 5px; word-break: break-all; }
.wt-chat b { color: #b5651d; }
.wt-chat small { font-size: 11px; }
.wt-say { display: flex; gap: 6px; margin-top: 6px; }
.wt-say input { flex: 1; min-width: 0; }
.wt-link { margin: 4px 0 12px; padding: 10px 12px; border-radius: 12px; background: #eef6ff; border: 1px solid #bcd9ff; word-break: break-all; }
.wt-link-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.wt-count { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 10000; background: rgba(20, 20, 20, .88); color: #fff; border-radius: 20px; padding: 18px 30px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.wt-count[hidden] { display: none; }
.wt-count b { font-size: 56px; line-height: 1.1; }

/* ---------- 🛡️ 광고 차단 안내 ---------- */
.ad-detect { margin: 12px 0; padding: 10px 14px; border-radius: 12px; background: #fff3d6; font-size: 14.5px; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ad-card { border: 1px solid #eadfce; border-radius: 14px; padding: 14px; background: #fff; }
.ad-card.me { border: 2px solid #f39c12; box-shadow: 0 4px 14px rgba(243, 156, 18, .18); }
.ad-card.me h2::after { content: " ⭐ 내 브라우저"; font-size: 13px; color: #d35400; }
.ad-card h2 { margin: 0 0 10px; font-size: 17px; }
.ad-card .btn { display: inline-block; margin-bottom: 8px; }
.ad-card ol { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.7; }
.ad-tips { font-size: 14px; line-height: 1.8; }

/* ---------- ⚔️ 레이드 난이도 탭 ---------- */
.rd-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 4px; }
.rd-lv { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; border: 2px solid #eadfce; background: #fff; color: inherit; text-decoration: none; min-width: 0; }
.rd-lv:hover { border-color: #f3c77a; }
.rd-lv.on { border-color: #f39c12; background: #fff7e6; box-shadow: 0 3px 10px rgba(243, 156, 18, .18); }
.rd-lv.done { opacity: .6; }
.rd-lv b { font-size: 14px; }
.rd-lv span { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-lv small { font-size: 11px; color: #8a7f74; font-variant-numeric: tabular-nums; }
.rd-mini { height: 6px; border-radius: 99px; background: #f1e7da; overflow: hidden; }
.rd-mini i { display: block; height: 100%; background: linear-gradient(90deg, #e74c3c, #f39c12); }
@media (max-width: 480px) { .rd-levels { gap: 5px; } .rd-lv { padding: 6px; } .rd-lv span { font-size: 11.5px; } }
.tw-charge { text-align: center; margin: 6px 0 0; font-weight: 600; color: #b5651d; font-size: 14px; }

/* ---------- 📋 일일 미션 · 🌾 농장 · 🎣 낚시 ---------- */
.ms-top { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.ms-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.ms-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #eadfce; }
.ms-item.ready { border: 2px solid #f39c12; background: #fff7e6; }
.ms-item.claimed { opacity: .6; }
.ms-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ms-bar { height: 7px; border-radius: 99px; background: #f1e7da; overflow: hidden; }
.ms-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f6c453, #f39c12); }
.ms-ok { font-weight: 700; color: #27ae60; white-space: nowrap; }
.ms-bonus { text-align: center; padding: 12px; border-radius: 12px; background: #f6efe7; font-weight: 700; }
.ms-bonus.on { background: linear-gradient(135deg, #fff3d6, #ffe2b8); }
.fm-field { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.fm-plot, .fm-seed { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border-radius: 14px; border: 2px solid #d9c2a3; background: #f3e3cc; cursor: pointer; font: inherit; color: inherit; }
.fm-plot.empty { background: #e9d6bb; border-style: dashed; }
.fm-plot.grow { background: #e6f2d9; border-color: #b6d79a; cursor: default; }
.fm-plot.ready { background: #fff3c4; border-color: #f39c12; animation: fm-pulse 1.4s infinite; }
@keyframes fm-pulse { 50% { transform: scale(1.04); } }
.fm-plot .ms-bar { width: 90%; }
.fm-plot small, .fm-seed small { font-size: 11.5px; color: #7a6a5a; text-align: center; }
.fm-ic { font-size: 30px; line-height: 1.1; }
.fm-seeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.fm-seed { background: #fff; border-color: #eadfce; }
.fm-seed.on { border-color: #f39c12; background: #fff7e6; box-shadow: 0 3px 10px rgba(243, 156, 18, .18); }
.fs-pond { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fs-water { position: relative; width: 100%; max-width: 520px; height: 180px; border-radius: 18px; background: linear-gradient(#bfe6ff, #4aa3df 60%, #2e7bb8); overflow: hidden; }
.fs-bob { position: absolute; left: 50%; top: 20px; font-size: 34px; transform: translateX(-50%); transition: top .5s; }
.fs-bob.cast { top: 80px; animation: fs-float 1.6s ease-in-out infinite; }
.fs-bob.bite { top: 90px; animation: fs-shake .15s infinite; }
@keyframes fs-float { 50% { transform: translate(-50%, 6px); } }
@keyframes fs-shake { 0% { transform: translate(-54%, 0); } 50% { transform: translate(-46%, 4px); } 100% { transform: translate(-54%, 0); } }
.fs-big { position: absolute; left: 50%; bottom: 10px; font-size: 54px; transform: translateX(-50%) scale(0); transition: transform .4s cubic-bezier(.2, 1.6, .4, 1); }
.fs-big.show { transform: translateX(-50%) scale(1); }
.fs-btn { min-width: 240px; font-size: 17px; padding: 12px 18px; }
.fs-btn.bite { background: #e74c3c; border-color: #e74c3c; animation: fm-pulse .4s infinite; }
.fs-dex { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.fs-card { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; background: #eef7ff; font-size: 12px; text-align: center; }
.fs-card span { font-size: 28px; }
.fs-card.locked { background: #f1f1f4; color: #999; }

/* ---------- ♠️ 포커 · 🀄 바둑이 ---------- */
.cr-bets { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin: 6px 0; }
.cr-bet { font-size: 12.5px; padding: 3px 9px; border-radius: 99px; background: #f6efe7; }
.cr-bet.turn { background: #fff3c4; box-shadow: 0 0 0 2px #f39c12 inset; font-weight: 700; }
.cr-bet.fold { opacity: .5; text-decoration: line-through; }
.cr-best { width: 100%; text-align: center; margin: 6px 0 0; font-weight: 700; color: #b5651d; }
.cr-table .cr-bet { color: #3a2a1a; background: #fff8ec; } .cr-table .cr-bet.turn { background: #fff3c4; }
.fm-plot { cursor: pointer; }
.fm-plot .link-btn { font-size: 11.5px; }
.fm-helpers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 12px; }
.fm-helper { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid #eadfce; background: #fff; }
.fm-helper.on { border: 2px solid #27ae60; background: #f0faf2; }
.fm-helper small { color: #7a6a5a; font-size: 12px; }
.fm-hstate { font-size: 12.5px; font-weight: 700; color: #27ae60; }
.fm-helper:not(.on) .fm-hstate { color: #999; }
.fm-helper .btn { align-self: flex-start; }

/* ---------- 🏅 업적 ---------- */
.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.ac-card { display: flex; flex-direction: column; gap: 5px; padding: 12px; border-radius: 14px; border: 1px solid #eadfce; background: #fff; }
.ac-card.ready { border: 2px solid #f39c12; background: #fff7e6; }
.ac-card.max { background: linear-gradient(135deg, #fff3d6, #ffe2b8); }
.ac-card .btn { align-self: flex-start; }
.ac-tiers { display: flex; gap: 4px; }
.ac-tier { font-size: 20px; filter: grayscale(1); opacity: .35; }
.ac-tier.ready { opacity: .8; filter: none; animation: fm-pulse 1.2s infinite; }
.ac-tier.got { filter: none; opacity: 1; }
.ac-max { font-weight: 700; color: #b5651d; }

/* ---------- ⛏️ 광산 ---------- */
.mn-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 380px; margin: 10px auto; padding: 10px; border-radius: 16px; background: linear-gradient(#5b4636, #3b2d22); }
.mn-cell { aspect-ratio: 1; border: 0; border-radius: 10px; font-size: 28px; cursor: pointer; background: #8a7461; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); transition: transform .1s; }
.mn-cell.rock:hover { transform: scale(1.06); }
.mn-cell.sparkle { background: radial-gradient(#ffe9a8, #c9a24d); animation: fm-pulse 1.6s infinite; }
.mn-cell.dug { background: #2c221a; cursor: default; box-shadow: none; font-size: 24px; }
.mn-cell.hit { animation: fs-shake .12s 3; }

/* ---------- 🕹️ 키보드 게임 (서바이벌 · 지렁이) ---------- */
.sv-wrap { position: relative; width: 100%; max-width: 960px; margin: 10px auto 0; border-radius: 14px; overflow: hidden; background: #1f3b2a; }
.sv-wrap canvas { display: block; margin: 0 auto; touch-action: none; }
.sv-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; background: rgba(10, 20, 15, .78); color: #fff; text-align: center; }
.sv-over b { font-size: 22px; }
.sv-over span { font-size: 14px; opacity: .9; }
.sv-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; width: 100%; max-width: 640px; }
.sv-choice { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; border: 2px solid #f3c77a; background: #fff8ec; color: #3a2a1a; cursor: pointer; font: inherit; text-align: left; }
.sv-choice:hover { background: #fff3c4; transform: translateY(-2px); }
.sv-choice small { font-weight: 700; color: #b5651d; }
.sv-choice b { font-size: 15px; }
.sv-choice span { font-size: 12.5px; color: #6a5a4a; }
.sn-wrap { background: #14261c; max-width: 720px; }
.sn-pad { display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(2, 48px); gap: 6px; justify-content: center; margin: 10px auto 0; }
.sn-pad button { font-size: 22px; border-radius: 12px; border: 1px solid #eadfce; background: #fff; touch-action: manipulation; }
.sn-pad [data-d="up"] { grid-column: 2; grid-row: 1; }
.sn-pad [data-d="left"] { grid-column: 1; grid-row: 2; }
.sn-pad [data-d="down"] { grid-column: 2; grid-row: 2; }
.sn-pad [data-d="right"] { grid-column: 3; grid-row: 2; }
@media (hover: hover) and (pointer: fine) { .sn-pad { display: none; } }
.gm-quick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0 14px; }
.gm-quick a { padding: 7px 12px; border-radius: 99px; background: #fff3d6; color: #5a3a1a; font-weight: 700; font-size: 13.5px; text-decoration: none; border: 1px solid #f3c77a; }
.gm-quick a:hover { background: #ffe2b8; }

/* ---------- 🎶 노래 맞히기 라운드 ---------- */
.sq-stage { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.sq-player { position: relative; width: 240px; height: 135px; border-radius: 12px; overflow: hidden; background: #222; flex: none; }
.sq-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #6a3093, #a044ff); color: #fff; font-size: 18px; font-weight: 700; text-align: center; padding: 8px; }
.sq-info { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sq-round { margin: 0; font-weight: 700; font-size: 16px; }
.sq-hint { margin: 0; min-height: 1.3em; font-weight: 700; color: #8e44ad; }

/* ---------- 🕵️ 마피아 ---------- */
.mf-top { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin-top: 10px; }
.mf-role { flex: 1 1 220px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #f6efe7; }
.mf-role.mafia { background: #fde2e2; } .mf-role.police { background: #e3efff; } .mf-role.doctor { background: #e3f7ea; } .mf-role.citizen { background: #fff3d6; }
.mf-ricon { font-size: 32px; }
.mf-phase { flex: 1 1 220px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 14px; background: #2c2440; color: #fff; }
.mf-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 8px; }
.mf-p { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; border: 2px solid #eadfce; background: #fff; font: inherit; color: inherit; cursor: pointer; }
.mf-p:disabled { cursor: default; }
.mf-p:not(:disabled):hover { border-color: #f39c12; transform: translateY(-2px); }
.mf-p.me { border-color: #8e44ad; }
.mf-p.picked { background: #fff3c4; border-color: #f39c12; }
.mf-p.dead { opacity: .45; }
.mf-p small { font-size: 11.5px; color: #7a6a5a; text-align: center; }
.mf-face { font-size: 30px; }
.mf-c.mafia b { color: #c0392b; } .mf-c.dead { opacity: .6; } .mf-c.dead b { color: #7f8c8d; }
.fm-mini { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; } .fm-mini .link-btn { font-size: 11.5px; } .fm-mini .danger { color: #c0392b; font-weight: 700; }

/* ---------- 🕵️ 마피아 보상 · 🎯 윷놀이 ---------- */
.mf-reward { text-align: center; font-size: 13px; color: #8a5a1a; margin: 8px 0 0; }
.yt-wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.yt-board { position: relative; width: min(420px, 86vw); aspect-ratio: 1; margin: 18px; border-radius: 12px; background: #f6e7c8; box-shadow: inset 0 0 0 8px #e6cfa0; }
.yt-board::before, .yt-board::after { content: ""; position: absolute; left: 0; top: 50%; width: 141.4%; height: 2px; background: #c9a86a; transform-origin: 0 0; }
.yt-board::before { top: 0; transform: rotate(45deg); }
.yt-board::after { top: 100%; transform: rotate(-45deg); }
.yt-spot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 2px solid #b08850; z-index: 1; }
.yt-spot.big { width: 30px; height: 30px; margin: -15px 0 0 -15px; background: #fff3d6; }
.yt-spot.dest { background: #ffe066; box-shadow: 0 0 0 4px rgba(243, 156, 18, .5); }
.yt-spot small { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); font-size: 11px; white-space: nowrap; color: #8a5a1a; }
.yt-tok { position: absolute; z-index: 2; border: 0; background: none; font-size: 20px; padding: 0; transform: translate(-50%, -50%); cursor: default; white-space: nowrap; font-weight: 700; }
.yt-tok.can { cursor: pointer; animation: fm-pulse .9s infinite; filter: drop-shadow(0 0 4px #f39c12); }
.yt-side { flex: 1 1 260px; max-width: 420px; display: flex; flex-direction: column; gap: 8px; }
.yt-state { font-weight: 700; margin: 0; }
.yt-results { display: flex; gap: 6px; flex-wrap: wrap; }
.yt-res { padding: 6px 14px; border-radius: 99px; border: 2px solid #eadfce; background: #fff; font-weight: 700; cursor: pointer; }
.yt-res.on { border-color: #f39c12; background: #fff3c4; }
.yt-home { margin: 0; font-size: 13px; }

/* ---------- 🏘️ 땅따먹기 ---------- */
.bd-wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.bd-board { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); gap: 3px; width: min(560px, 94vw); aspect-ratio: 1; }
.bd-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; border-radius: 6px; background: #fff8ec; border: 1px solid #e6cfa0; font-size: 10.5px; text-align: center; overflow: hidden; line-height: 1.15; }
.bd-cell b { font-size: 10.5px; word-break: keep-all; }
.bd-cell small { font-size: 9.5px; color: #7a6a5a; }
.bd-cell.owned { background: #fff3c4; }
.bd-cell.start, .bd-cell.jail, .bd-cell.rest, .bd-cell.teleport { background: #f3e3cc; }
.bd-cell.card { background: #f0e6ff; }
.bd-bar { position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.bd-toks { position: absolute; bottom: 1px; right: 2px; font-size: 13px; letter-spacing: -3px; }
.bd-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, #2e7d4f, #1f5a38); color: #fff; }
.bd-dice { font-size: 54px; line-height: 1; }
.bd-mid p { margin: 6px 0 0; font-weight: 700; font-size: 13px; }
.bd-side { flex: 1 1 240px; max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.bd-money { display: grid; gap: 4px; }
.bd-pl { margin: 0; padding: 6px 10px; border-radius: 10px; background: #f6efe7; font-size: 13px; }
.bd-pl.turn { background: #fff3c4; box-shadow: 0 0 0 2px #f39c12 inset; font-weight: 700; }
.bd-pl.me { border-left: 4px solid #8e44ad; }
.bd-pl.out { opacity: .45; text-decoration: line-through; }
.bd-offer { padding: 10px 12px; border-radius: 12px; background: #e8f6ff; border: 1px solid #a9d6f5; font-weight: 700; }
@media (max-width: 480px) { .bd-cell b { font-size: 9px; } .bd-cell small { font-size: 8.5px; } }

/* ---------- 🔢 빙고 ---------- */
.bg-wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.bg-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; width: min(340px, 86vw); }
.bg-cell { aspect-ratio: 1; border-radius: 10px; border: 2px solid #eadfce; background: #fff; font-size: 20px; font-weight: 800; color: #3a2a1a; cursor: pointer; }
.bg-cell:not(:disabled):hover { border-color: #f39c12; background: #fff7e6; }
.bg-cell:disabled { cursor: default; }
.bg-cell.hit { background: #ffd36b; border-color: #f39c12; color: #7a4a00; }
.bg-cell.line { background: #e74c3c; border-color: #c0392b; color: #fff; }
.cr-meld .bg-grid { width: 150px; gap: 2px; }
.cr-meld .bg-cell { font-size: 11px; border-width: 1px; border-radius: 5px; }
.bg-side { flex: 1 1 260px; max-width: 420px; display: flex; flex-direction: column; gap: 8px; }
.bg-called { font-size: 13px; color: #6a5a4a; word-break: keep-all; }

/* ---------- 🏮 도깨비 저택 ---------- */
.hd-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin: 8px 0 6px; font-weight: 700; }
.hd-taskbar { position: relative; flex: 0 1 260px; height: 18px; border-radius: 99px; background: #e8e0d4; overflow: hidden; }
.hd-taskbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #27ae60, #2ecc71); }
.hd-taskbar b { position: relative; display: block; text-align: center; font-size: 12px; line-height: 18px; }
.hd-wrap { position: relative; width: 100%; max-width: 960px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #14110f; }
.hd-wrap canvas { display: block; margin: 0 auto; touch-action: none; }
.hd-meet { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px; background: rgba(20, 16, 12, .92); color: #fff; overflow: auto; }
.hd-meet b { font-size: 17px; }
.hd-votes { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.hd-vote { padding: 8px; border-radius: 10px; border: 3px solid #888; background: #2a231d; color: #fff; font-weight: 700; cursor: pointer; }
.hd-vote.on { background: #f39c12; color: #2a1a00; }
.hd-vote.dead { opacity: .45; }
.hd-vote:disabled { cursor: default; }
.hd-meet .wt-chat { background: #1f1914; color: #eee; }
.hd-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ---------- 🌙 도깨비 마을 ---------- */
.vl-guide { margin: 8px 0; padding: 8px 12px; border-radius: 12px; background: #f6efe7; font-size: 13.5px; }
.vl-guide ul { margin: 6px 0; padding-left: 18px; line-height: 1.7; }
.vl-note { margin: 0 0 6px; padding: 6px 10px; border-radius: 10px; background: #eef4ff; font-size: 13px; }
.mf-role small { display: block; font-size: 12px; color: #6a5a4a; font-weight: 400; }

/* ---------- 🏘️ 한밤의 도깨비 마을 ---------- */
.tw-phase { font-weight: 700; color: #2c3e50; }
.tw-voice { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; flex-wrap: wrap; }

/* ---------- 🏪 힐링 타이쿤 (붕어빵 · 수족관) ---------- */
.by-stage { position: relative; overflow: hidden; border-radius: 16px; padding: 14px; background: linear-gradient(#2c3e66, #4a5d8a 55%, #8a6a4a 55%, #6e5236); color: #fff; margin: 12px 0; }
.by-snow { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(2px 2px at 120px 80px, #fff, transparent), radial-gradient(1.5px 1.5px at 220px 50px, #fff, transparent), radial-gradient(2px 2px at 320px 120px, #fff, transparent); background-size: 360px 160px; animation: by-snow 9s linear infinite; opacity: .8; }
@keyframes by-snow { from { background-position: 0 0; } to { background-position: 40px 160px; } }
.by-head, .aq-head { position: relative; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.aq-head { margin: 12px 0 8px; }
.by-lvbar { flex: 1; min-width: 100px; height: 10px; border-radius: 6px; background: rgba(0,0,0,.25); overflow: hidden; }
.by-lvbar i { display: block; height: 100%; background: linear-gradient(90deg, #f6c453, #f39c12); transition: width .3s; }
.by-customers { position: relative; display: flex; gap: 10px; justify-content: center; min-height: 92px; margin: 14px 0 8px; flex-wrap: wrap; }
.by-cus { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px 10px; border: 0; border-radius: 14px; background: rgba(255,255,255,.92); color: #333; cursor: pointer; min-width: 84px; animation: by-in .4s; }
.by-cus:hover { transform: translateY(-2px); }
.by-face { font-size: 34px; line-height: 1; }
.by-pat { position: absolute; left: 8px; right: 8px; bottom: 4px; height: 4px; border-radius: 3px; }
@keyframes by-in { from { transform: translateX(-30px); opacity: 0; } }
.by-counter { position: relative; background: rgba(60,35,20,.55); border-radius: 14px; padding: 10px; display: grid; gap: 10px; }
.by-flavors, .by-molds, .by-tray { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.by-fl { border: 2px solid transparent; border-radius: 20px; padding: 4px 12px; background: rgba(255,255,255,.85); cursor: pointer; font-size: 13px; }
.by-fl.on { border-color: #f39c12; background: #fff3d6; font-weight: 700; }
.by-mold { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 5px solid #333; background: #555; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; touch-action: manipulation; }
.by-mold small { font-size: 11px; }
.by-fish { font-size: 28px; line-height: 1.1; }
.by-mold.cook1, .by-mold.cook2 { background: #8a6a3a; }
.by-mold.flip { background: #d79a3c; animation: by-pulse .6s infinite alternate; }
.by-mold.done { background: #e8b04d; animation: by-pulse .6s infinite alternate; box-shadow: 0 0 14px #ffd66b; }
.by-mold.burnt { background: #2a1a10; }
.by-cook { position: absolute; left: 0; bottom: 0; height: 5px; background: #ffd66b; }
@keyframes by-pulse { to { transform: scale(1.06); } }
.by-tray { background: rgba(255,255,255,.15); border-radius: 10px; padding: 6px 10px; font-size: 15px; }
.by-msg { text-align: center; min-height: 1.4em; margin: 8px 0 0; font-weight: 600; }
.by-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.by-up { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 1px solid #e3d6c3; border-radius: 12px; padding: 8px 10px; background: #fffaf2; cursor: pointer; font-size: 13px; color: #333; }
.by-up:disabled { opacity: .5; cursor: default; }
.by-up small { color: #8a6a4a; }
.aq-wrap { max-width: 960px; width: fit-content; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 6px #6b4f35; }
.aq-wrap canvas { display: block; touch-action: manipulation; cursor: pointer; }

/* ---------- 🪶 인디언 포커 ---------- */
.in-row { gap: 14px; flex-wrap: wrap; }
.in-seat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 12px; }
.in-seat.me { background: #fff3d6; }
.in-seat.fold { opacity: .45; }
.in-seat small { font-size: 12px; }

/* ---------- 🖼️ 등 뒤 전광판 ---------- */
.wh-lobby { text-align: center; margin: 10px 0; }
.wh-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 12px 0; }
.wh-board { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 14px; background: #f7f3ec; position: relative; transition: transform .2s; }
.wh-board.turn { background: #ffe9b8; box-shadow: 0 0 0 3px #f39c12; transform: translateY(-3px); }
.wh-board.me .wh-screen { border-color: #e74c3c; }
.wh-board b { font-size: 13px; text-align: center; }
.wh-screen { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; border: 4px solid #333; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #0b1020 radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1.4px) 0 0 / 6px 6px; color: #ffe066; text-shadow: 0 0 8px #ffb700; }
.wh-emo { font-size: 46px; line-height: 1.1; filter: drop-shadow(0 0 6px rgba(255,220,100,.6)); }
.wh-screen small { font-weight: 700; }
.wh-screen.hidden { color: #ff6b6b; text-shadow: 0 0 8px #ff2b2b; animation: wh-blink 1.2s infinite alternate; }
@keyframes wh-blink { to { opacity: .55; } }
.wh-ans { position: absolute; top: -6px; right: -4px; background: #fff; border-radius: 12px; padding: 2px 8px; font-size: 15px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.wh-stage { text-align: center; background: #fffaf2; border: 1px solid #f0e2c8; border-radius: 14px; padding: 12px; margin: 10px 0; }
.wh-phase { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.wh-phase::after { content: "  " attr(data-t); font-size: 14px; color: #c0392b; }
.wh-who { font-weight: 700; font-size: 15px; }
.wh-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.wh-chips .done { opacity: .45; text-decoration: line-through; }
.wh-ansrow { display: flex; gap: 10px; justify-content: center; }
.wh-ansrow .btn { font-size: 17px; padding: 10px 18px; }
.wh-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; }
.wh-item { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 10px; border: 2px solid #e3d6c3; background: #fff; cursor: pointer; color: #333; }
.wh-item span { font-size: 28px; }
.wh-item small { font-size: 11px; }
.wh-item:disabled { cursor: default; }
.wh-item.seen { opacity: .35; }
.wh-item.wrong { opacity: .25; text-decoration: line-through; }
.wh-item.pick { border-color: #e67e22; background: #fff1dc; transform: scale(1.06); }
.wh-h { margin: 3px 0; font-size: 13px; }
.wh-h.mine { font-weight: 700; color: #b9770e; }
.in-seat.me small { color: #7a4a00; font-weight: 700; }

/* ---------- 🗄️ 강화 무기 보관함 ---------- */
.en-vault { margin: 14px 0; padding: 10px 12px; border: 1px dashed #d8c7a8; border-radius: 12px; background: #fffaf2; }
.en-vault h3 { margin: 0 0 4px; }
.en-vlist { display: grid; gap: 6px; }
.en-vrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.en-vrow b { flex: 1; min-width: 150px; }

/* 📅 일일로또 자동 올리기 (운영진) */
.lt-daily { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.lt-daily.on { background: #eafaf0; border: 1px solid #b7e4c7; }
.lt-daily.off { background: #fdecea; border: 1px solid #f5c6cb; }
