/* ==========================================================================
   5분 담배타임 — midnight-neon arcade
   ========================================================================== */

:root {
  --bg: #0b0e1a;
  --bg-deep: #070912;
  --panel: #10162c;
  --panel-2: #141c36;
  --ink: #e9edfa;
  --ink-dim: #c3cae0;
  --muted: #8b93b0;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.28);
  --pink: #f43f8e;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --amber: #fbbf24;
  --purple: #a855f7;
  --red: #fb7185;
  --green: #34d399;
  --radius: 18px;
  --shadow-card: 0 22px 44px -30px #000, 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --mono: "SF Mono", "D2Coding", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #0b0e1a 0%, #090c17 55%, #070912 100%);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════════════════
   야밤 서울 옥상 2.5D 배경
   ──────────────────────────────────────────────────────────────────
   화면 맨 뒤(z-index: 0)에 고정된 장면을 세 겹으로 나눠 깊이를 만든다.
     · .roof-city  멀리 번진 서울 야경·남산타워 — 포인터를 반대쪽으로, 스크롤에서는 위로 미끄러진다
     · .roof-wall  콘크리트 난간 + 스테인리스 스탠드 재떨이 — 카메라처럼 제자리
     · #wallNeon   난간에 박힌 분홍 네온 — 난간과 함께 제자리에 남아 벽에서 떨어지지 않는다
   값은 rooftop.js 가 --roof-px / --roof-py(-1~1, 포인터) · --roof-sy(0~1, 스크롤)로 넣고,
   동작 줄이기 설정에서는 스크립트가 아예 붙지 않아 모두 0 이다. */

:root {
  /* 난간 윗면이 화면 어디에서 시작하는지 — 네온(중심 57%)이 난간 위에 놓이도록 */
  --roof-wall-top: 44%;
  --roof-px: 0;
  --roof-py: 0;
  --roof-sy: 0;
}

.rooftop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* 이미지가 늦게 와도 화면이 검게 비지 않도록 */
  background: #05070e;
}

.roof-sky,
.roof-city,
.roof-wall,
.roof-scrim,
.roof-glow {
  position: absolute;
  pointer-events: none;
}

.roof-sky {
  inset: 0;
  background:
    radial-gradient(90% 60% at 64% 34%, rgba(96, 44, 88, 0.26), transparent 72%),
    linear-gradient(180deg, #04060d 0%, #070b16 40%, #0d1424 60%, #1a1730 80%, #100f1c 100%);
}

/* 멀리 있는 도시 — 남산타워가 왼쪽에 서고, 난간 바로 위로 전구 같은 보케가 번진다.
   카메라는 난간에 고정되어 있으므로 흔들리는 겹은 이 도시 하나뿐이다.
   포인터를 오른쪽으로 옮기면 도시는 반대로, 스크롤하면 위로 미끄러진다.
   위 여유( top: -2.4% )와 scale 은 그 이동폭 안에서 화면 가장자리가 비지 않게. */
.roof-city {
  left: 0;
  right: 0;
  top: -2.4%;
  bottom: 52%;
  background-image: url("/bg/rooftop-city.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
  transform-origin: 50% 0;
  transform: translate3d(calc(var(--roof-px) * -10px), calc(var(--roof-py) * -6px - var(--roof-sy) * 22px), 0)
    scale(1.03);
  will-change: transform;
  /* 사진을 한 단계 죽여 글래스 카드·글자가 보케에 묻히지 않게 */
  filter: brightness(0.74) saturate(0.94);
  /* 난간 뒤로 잦아들며 사라진다 — 두 겹의 경계가 드러나지 않게 */
  -webkit-mask-image: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, 0.4) 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, 0.4) 82%, transparent 100%);
}

/* 앞에 있는 콘크리트 난간 — 화면 아래를 채우고 네온이 여기에 걸린다 */
.roof-wall {
  left: -2%;
  right: -2%;
  top: var(--roof-wall-top);
  bottom: -2%;
  background-image: url("/bg/rooftop-wall.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 56% 0;
  transform-origin: 50% 0;
  transform: scale(1.02);
  /* 콘크리트 결이 살아나도록 대비만 살짝 */
  filter: contrast(1.08) brightness(0.94);
}

/* 난간 오른쪽 아래의 스탠드 재떨이 — 난간 위에 서 있다 */
.roof-ashtray {
  position: absolute;
  right: clamp(2px, 1.8vw, 34px);
  bottom: -8%;
  width: clamp(122px, 12.5vw, 196px);
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.75));
}

/* 장면 전체를 한 단계 어둡게 — 글래스 카드·채팅 글자가 배경에 묻히지 않게 */
.roof-scrim {
  inset: 0;
  background:
    /* 위에서 아래로 — 하늘은 살짝, 보케 띠는 조금, 난간은 네온이 살도록 어둡게 */
    linear-gradient(
      180deg,
      rgba(4, 7, 16, 0.34) 0%,
      rgba(4, 7, 16, 0.2) 16%,
      rgba(4, 7, 16, 0.38) 32%,
      rgba(4, 7, 16, 0.44) 42%,
      rgba(4, 7, 16, 0.54) 52%,
      rgba(4, 7, 16, 0.6) 72%,
      rgba(4, 7, 16, 0.84) 100%
    ),
    radial-gradient(126% 96% at 44% 40%, rgba(4, 7, 16, 0) 42%, rgba(4, 7, 16, 0.6) 100%);
}

/* 네온이 난간에 만드는 분홍빛 웅덩이 — scrim 위에 얹어 빛이 살아 있게 */
.roof-glow {
  inset: 0;
  background:
    radial-gradient(30% 22% at 50% 57%, rgba(255, 77, 166, 0.2), transparent 74%),
    radial-gradient(46% 16% at 50% 82%, rgba(251, 146, 60, 0.06), transparent 76%);
}

/* 좁은 화면 — 난간을 조금 더 올리고 사진을 모바일용(760px)으로 */
@media (max-width: 760px) {
  :root {
    --roof-wall-top: 46%;
  }

  .roof-city {
    background-image: url("/bg/rooftop-city-m.webp");
    background-position: 50% 52%;
  }

  .roof-wall {
    background-image: url("/bg/rooftop-wall-m.webp");
    background-position: 58% 0;
  }

  .roof-ashtray {
    width: clamp(112px, 30vw, 148px);
    right: -2px;
    bottom: -4%;
  }
}

/* ── 벽에 휘갈긴 No Smoking 네온사인 ──────────────────────────────────
 * 페이지 맨 뒤 배경 레이어(z-index: 0). 화면에 fixed 로 붙어 있어
 * 어디로 스크롤해도 흡연실 벽에 박힌 것처럼 제자리에 있고, 본문 카드와
 * 라운지 채팅 패널은 어두운 반투명 글래스라 그 뒤에서 분홍빛 네온이
 * 은은하게 비쳐 보인다. 2초마다 한 번 지직거리는 네온 플리커,
 * 동작 줄이기 설정은 존중한다. */

.wall-neon {
  position: fixed;
  top: 57%;
  left: 50%;
  z-index: 0;
  color: #ffe6f3;
  /* 휘갈긴 필기체 — Google Fonts Caveat 700, 실패하면 시스템 필기체 */
  font-family: "Caveat", "Segoe Script", "Bradley Hand", "Apple Chancery", cursive;
  font-size: clamp(78px, 21vw, 110px);
  font-weight: 700;
  line-height: 0.84;
  white-space: nowrap;
  pointer-events: none;
  /* 난간과 함께 카메라에 붙어 있으므로 포인터·스크롤에 흔들리지 않는다. */
  transform: translate(-50%, -50%) rotate(-7deg);
  animation: neon-hum 2s linear infinite;
}

/* 두 줄 — No / Smoking 을 살짝 어긋나게 쌓아 손으로 휘갈긴 느낌 */
.wall-neon__tube {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-shadow:
    0 0 0.02em #fff,
    0 0 0.075em #ffe0f0,
    0 0 0.16em #ffb3da,
    0 0 0.3em #ff5fb1,
    0 0 0.62em #ff4da6,
    0 0 1.15em rgba(255, 77, 166, 0.92);
}

.wall-neon__line--2 {
  margin-left: -0.12em;
}

/* 벽에 번지는 분홍빛 웅덩이 */
.wall-neon::before {
  content: "";
  position: absolute;
  inset: -0.35em -0.22em;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 77, 166, 0.24), rgba(255, 77, 166, 0.09) 56%, transparent 78%);
  filter: blur(0.08em);
  z-index: -1;
}

/* 태블릿·데스크톱: 벽에 대담하게 걸린 큰 네온 */
@media (min-width: 900px) {
  .wall-neon {
    top: 55%;
    font-size: clamp(110px, 12vw, 180px);
  }
}

@keyframes neon-hum {
  0%,
  26% {
    opacity: 1;
    filter: brightness(1.06) saturate(2.4);
  }
  28% {
    opacity: 0.55;
    filter: brightness(0.92) saturate(2.4);
  }
  30% {
    opacity: 0.96;
  }
  33% {
    opacity: 0.72;
  }
  36%,
  100% {
    opacity: 1;
    filter: brightness(1.06) saturate(2.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wall-neon {
    animation: none;
    opacity: 1;
  }
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

ul,
ol,
dl,
dd,
p,
h1,
h2,
h3 {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

canvas {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(244, 63, 142, 0.35);
}

:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cyan);
  color: #06131a;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ── top bar ───────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 10px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 12px 16px 0;
  padding: 12px 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 21, 40, 0.94), rgba(11, 15, 30, 0.94));
  box-shadow: 0 18px 40px -30px #000, 0 0 22px -18px var(--pink) inset;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1.5px solid var(--pink);
  background: radial-gradient(circle at 30% 20%, rgba(244, 63, 142, 0.24), rgba(244, 63, 142, 0.05));
  box-shadow: 0 0 18px -4px rgba(244, 63, 142, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  color: #ffd7e8;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 14px rgba(244, 63, 142, 0.8);
}

.brand-copy {
  min-width: 0;
}

.brand-copy h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(90deg, #ffffff, #ffd9e9 70%, #ffb3d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy p {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.mainnav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.navbtn {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.navbtn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.navbtn.is-active {
  border-color: rgba(244, 63, 142, 0.55);
  background: rgba(244, 63, 142, 0.12);
  color: #ffe3ef;
  box-shadow: 0 0 18px -10px var(--pink);
}

.topbar-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}

.fire-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.08);
  color: #ffe6a3;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}

.avatar-btn {
  width: 48px;
  height: 48px;
  padding: 3px;
  border-radius: 50%;
  border: 1.5px solid var(--purple);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 16px -4px rgba(168, 85, 247, 0.65);
  transition: transform 0.16s ease;
}

.avatar-btn:hover {
  transform: translateY(-1px) scale(1.03);
}

.avatar-btn .shiba {
  width: 100%;
  height: 100%;
  display: block;
}


/* ── shell / ticker ───────────────────────────────────────────────── */

.shell {
  position: relative;
  z-index: 1;
  max-width: 1580px;
  margin: 0 auto;
  padding: 14px 16px 8px;
}

.ticker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(168px, 0.3fr);
  align-items: stretch;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(16, 23, 45, 0.84), rgba(11, 16, 32, 0.86));
  box-shadow: var(--shadow-card), 0 0 30px -20px var(--cyan);
  overflow: hidden;
}

.tick {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 116px;
  padding: 14px 18px;
}

.tick + .tick {
  border-left: 1px solid rgba(148, 163, 184, 0.14);
}

.tick-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.tick-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 0 16px -6px var(--amber);
}

.tick-time .tick-ico {
  border-color: rgba(163, 230, 53, 0.55);
  background: rgba(163, 230, 53, 0.08);
  color: var(--lime);
  box-shadow: 0 0 16px -6px var(--lime);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border: 1px solid rgba(244, 63, 142, 0.55);
  border-radius: 6px;
  color: #ff9cc6;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  white-space: nowrap;
}

.live.is-close {
  border-color: rgba(148, 163, 184, 0.5);
  color: #cbd5e1;
}

.live.is-close::before {
  background: #94a3b8;
  box-shadow: none;
  animation: none;
}

.live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 6px var(--pink);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.tick-time {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 124px;
  padding: 18px 26px;
}

.tick-time .tick-head .live {
  margin-left: 2px;
}

.countdown {
  margin-top: 2px;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #b9f7c8;
  text-shadow: 0 0 18px rgba(74, 222, 128, 0.45);
  font-variant-numeric: tabular-nums;
}

.countdown.is-near {
  color: #fde68a;
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.5);
}

.countdown.is-done {
  font-size: 28px;
  color: #f9a8d4;
  text-shadow: 0 0 18px rgba(244, 63, 142, 0.5);
}

/* 출퇴근 인라인 설정 + 근무 진행률 */

.count-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.workhours {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
  padding: 3px 7px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.workhours input {
  width: 104px;
  min-height: 26px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #d7fbff;
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.workhours input::-webkit-calendar-picker-indicator {
  width: 12px;
  opacity: 0.55;
  cursor: pointer;
  filter: invert(0.8) sepia(0.4) hue-rotate(150deg);
}

.workhours input:focus-visible {
  outline: 1px solid rgba(34, 211, 238, 0.7);
  border-radius: 6px;
}

.wh-tilde {
  color: #7f8ea8;
  font-size: 12px;
}

.workday {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(420px, 100%);
  margin-top: 3px;
}

.workday-bar {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.workday-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #a3e635);
  box-shadow: 0 0 10px -2px #22d3ee;
  transition: width 0.4s linear;
}

.workday-bar[data-state="done"] i {
  background: linear-gradient(90deg, #f43f8e, #fbbf24);
}

.workday-label {
  color: #8fb1bd;
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.tick-note {
  color: var(--muted);
  font-size: 12px;
}

.clockout-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
}

.clockout-btn b {
  color: var(--ink-dim);
  font-family: var(--mono);
}

.clockout-btn:hover {
  border-color: rgba(34, 211, 238, 0.5);
  color: #c7f9ff;
}

.clockout-edit {
  position: absolute;
  top: 44px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 12px;
  background: #0c1326;
  box-shadow: 0 16px 34px -18px #000, 0 0 22px -14px var(--cyan);
  font-size: 12px;
}

.clockout-edit[hidden] {
  display: none;
}

.clockout-edit input {
  width: 96px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  color: #d7fbff;
}

.mini-btn {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--cyan);
  color: #041018;
  font-size: 12px;
  font-weight: 700;
}

.mini-btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-dim);
}

.tick-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 116px;
  border-left: 1px solid rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.tick-art .dino-emoji {
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 0 14px rgba(74, 222, 128, 0.5)) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4));
  transform: translate(-10px, 2px);
}

.tick-art .mini-clock {
  position: absolute;
  right: 16px;
  bottom: 12px;
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
}

.sparkle {
  position: absolute;
  color: #bbf7d0;
  font-size: 13px;
  animation: twinkle 2.8s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(163, 230, 53, 0.8);
}

.sparkle.s1 {
  top: 14px;
  left: 20px;
}
.sparkle.s2 {
  top: 30px;
  right: 26px;
  animation-delay: 0.7s;
}
.sparkle.s3 {
  bottom: 24px;
  left: 44%;
  animation-delay: 1.4s;
}
.sparkle.s4 {
  bottom: 46px;
  right: 74px;
  animation-delay: 2s;
  color: #fef08a;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* ── grid + cards ─────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

/* ── 라운지 아래 '5분 놀이' 섹션 머리 ─────────────────────────────── */

.playground-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 2px 0;
}

.playground-kicker {
  color: #7dd3fc;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.playground-head h2 {
  margin-top: 1px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.playground-desc {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
}

.playground-chip {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: #bae6fd;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--cyan)) 38%, transparent);
  border-radius: var(--radius);
  background: linear-gradient(168deg, rgba(21, 29, 54, 0.76) 0%, rgba(15, 21, 40, 0.74) 48%, rgba(11, 16, 31, 0.82) 100%);
  box-shadow: var(--shadow-card), 0 0 26px -18px var(--accent, var(--cyan));
}

.card.is-flagged {
  animation: card-flag 1.3s ease;
}

@keyframes card-flag {
  0%,
  100% {
    box-shadow: var(--shadow-card), 0 0 26px -18px var(--accent, var(--cyan));
  }
  35% {
    box-shadow: var(--shadow-card), 0 0 0 2px var(--accent, var(--cyan)), 0 0 38px -8px var(--accent, var(--cyan));
  }
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 70% at 50% -18%, color-mix(in srgb, var(--accent, var(--cyan)) 16%, transparent), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.card > * {
  position: relative;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card-title h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  font-size: 14px;
  line-height: 1;
}

.help-btn {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: color-mix(in srgb, var(--accent) 70%, #fff);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.help-btn:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--muted);
  font-size: 11.5px;
}

.foot-people {
  white-space: nowrap;
}

.link-btn {
  color: color-mix(in srgb, var(--accent) 78%, #fff);
  font-size: 12px;
  font-weight: 700;
  min-height: 30px;
  padding: 0 4px;
}

.link-btn:hover {
  text-decoration: underline;
}

.ghost-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: color-mix(in srgb, var(--accent) 60%, #fff);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ghost-btn:hover {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

.ghost-btn.danger {
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
}

.fineprint {
  color: #6f7896;
  font-size: 10.5px;
  text-align: center;
}

.w-issues {
  grid-column: 1 / 8;
  grid-row: 2;
}
.w-lotto {
  grid-column: 8 / 13;
  grid-row: 2;
}
.w-lunch {
  grid-column: 1 / 13;
  grid-row: 3;
}

/* ── 1. issue poll ────────────────────────────────────────────────── */

.issue-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1;
}

.icon-btn:hover {
  border-color: color-mix(in srgb, var(--accent, var(--cyan)) 55%, transparent);
  color: #fff;
}

.issue-cat {
  padding: 2px 9px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: color-mix(in srgb, var(--accent) 62%, #fff);
  font-size: 11px;
  font-weight: 700;
}

.issue-count {
  margin-right: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
}

.issue-q {
  margin: 12px 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.vote-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vote-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.12s ease;
}

.vote-row:hover:not(.is-voted) {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.vote-row:active:not(.is-voted) {
  transform: scale(0.99);
}

.vr-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vr-pct {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 55%, #fff);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.vr-bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.vr-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #fff));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.vote-row.is-voted {
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  cursor: default;
}

.vote-row[aria-pressed="true"] .vr-label::after {
  content: " ✓";
  color: color-mix(in srgb, var(--accent) 70%, #fff);
  font-weight: 800;
}

.vote-row.is-muted {
  opacity: 0.58;
}

/* ── 4. lotto ─────────────────────────────────────────────────────── */

.lotto-toggle {
  display: inline-flex;
  gap: 3px;
  padding: 2px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.mode-btn {
  min-height: 26px;
  padding: 0 7px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.mode-btn.is-active {
  background: rgba(251, 191, 36, 0.2);
  color: #ffe9a8;
  box-shadow: 0 0 10px -4px var(--amber);
}

.lotto-boast {
  margin: 10px 0 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffe6a3;
  letter-spacing: 0.02em;
}

.lotto-balls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 58px;
  padding: 4px 0 8px;
}

.ball {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: #10131f;
  box-shadow: 0 0 16px -5px var(--ball, var(--amber)), 0 6px 12px -8px #000, 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  background: radial-gradient(circle at 34% 28%, #fff, var(--ball, var(--amber)) 62%);
  animation: ball-pop 0.42s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.ball.bonus {
  position: relative;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.35);
}

.ball.plus {
  width: 18px;
  height: 18px;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--muted);
  font-size: 15px;
  animation: none;
}

@keyframes ball-pop {
  0% {
    opacity: 0;
    transform: scale(0.4) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lotto-balls .ball-empty {
  color: var(--muted);
  font-size: 12px;
  animation: none;
}

.lotto-meta {
  margin: 0 0 8px;
  text-align: center;
  color: #8a7a55;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lotto-meta b {
  color: #e3c273;
  font-family: var(--mono);
}

.generate-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.6);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.2), rgba(180, 83, 9, 0.16));
  color: #ffe9a8;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 0 22px -12px var(--amber);
  transition: background 0.16s ease, transform 0.12s ease;
}

.generate-btn:hover {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.3), rgba(180, 83, 9, 0.22));
}

.generate-btn:active {
  transform: scale(0.99);
}

.lotto .fineprint,
.w-lotto .fineprint {
  margin: 6px 0 8px;
}

/* ── lotto daily quota ───────────────────────────────────────────── */

.lotto-quota {
  margin: 0 0 8px;
  padding: 5px 10px;
  border: 1px dashed rgba(251, 191, 36, 0.32);
  border-radius: 9px;
  background: rgba(251, 191, 36, 0.05);
  color: #cbb27c;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}

.lotto-quota b {
  color: #ffe9a8;
  font-family: var(--mono);
  font-size: 12.5px;
}

.lotto-quota.is-out {
  border-color: rgba(251, 113, 133, 0.5);
  background: rgba(251, 113, 133, 0.09);
  color: #fecdd3;
}

.lotto-quota.is-out b {
  color: #ffb3bd;
}

.lotto-limit {
  margin: 6px 0 0;
  color: #fda4af;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.generate-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

/* ── lotto this-month comparison ─────────────────────────────────── */

.lotto-compare {
  margin: 8px 0 2px;
  padding: 8px 9px 9px;
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: 11px;
  background: linear-gradient(165deg, rgba(251, 191, 36, 0.08), rgba(15, 21, 40, 0.55));
}

.lc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.lc-best {
  color: #ffe9a8;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lc-best.is-hit {
  color: #fde68a;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}

.lc-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 99px;
  color: #d9c48c;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.lc-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
}

.lc-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: #9c9a86;
  font-family: var(--mono);
  font-size: 10px;
}

.lc-row.is-hit {
  background: rgba(251, 191, 36, 0.1);
  color: #e8dcb6;
}

.lc-row.is-rank {
  box-shadow: inset 2px 0 0 var(--amber);
}

.lc-round {
  white-space: nowrap;
  color: #b9b18e;
}

.lc-round i {
  font-style: normal;
  color: #7f7a62;
}

.lc-score {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-rank {
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.22);
  color: #ffe9a8;
  font-size: 9px;
}

.lc-nums {
  color: #d8cba6;
  font-size: 9.5px;
  white-space: nowrap;
}

.lc-note {
  margin-top: 6px;
  color: #857c60;
  font-size: 9px;
  line-height: 1.35;
}

.lc-power {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 2px 1px;
  color: #b7ae90;
  font-size: 10px;
  line-height: 1.4;
}

.lc-switch,
.lc-retry {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.14);
  color: #ffe9a8;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.lc-switch:hover,
.lc-retry:hover {
  background: rgba(251, 191, 36, 0.24);
}

.lotto-recent {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.18);
}

.recent-title {
  display: block;
  margin-bottom: 5px;
  color: #6f7896;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

.recent-item .ri-mode {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-dim);
  font-size: 9px;
}

.recent-item .ri-nums {
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

.recent-item .ri-time {
  margin-left: auto;
  color: #5c6582;
  font-size: 9.5px;
}

/* ── 5. lunch roulette ────────────────────────────────────────────── */

.lunch-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}

.wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(268px, 34vw);
  aspect-ratio: 1;
  padding: 8px;
}

.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.35));
}

.wheel canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 4s cubic-bezier(0.12, 0.72, 0.06, 1);
  will-change: transform;
}

.wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: #fde68a;
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.9);
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(253, 230, 138, 0.9);
  background: radial-gradient(circle at 35% 30%, #3b2a12, #1a1206 70%);
  color: #fde68a;
  font-size: 22px;
  box-shadow: 0 0 20px -4px rgba(251, 191, 36, 0.7), 0 0 0 4px rgba(11, 14, 26, 0.85);
  transition: transform 0.14s ease, box-shadow 0.16s ease;
}

.wheel-center:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 0 26px -2px rgba(251, 191, 36, 0.85), 0 0 0 4px rgba(11, 14, 26, 0.85);
}

.wheel-center:disabled {
  cursor: wait;
  opacity: 0.8;
}

.lunch-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding-right: 4px;
}

.lunch-lead {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
  line-height: 1.45;
}

.lunch-lead span {
  color: var(--muted);
  font-weight: 500;
}

.result-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 78px;
  padding: 10px 16px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(88, 28, 135, 0.28), rgba(30, 27, 75, 0.5));
  box-shadow: 0 0 26px -14px var(--purple), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.result-emoji {
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.result-name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f3e8ff;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.55);
}

.result-box.is-spinning .result-name {
  color: var(--muted);
  text-shadow: none;
}

.again-btn {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.6);
  background: rgba(168, 85, 247, 0.18);
  color: #f3e8ff;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.16s ease;
}

.again-btn:hover {
  background: rgba(168, 85, 247, 0.3);
}

.fortune {
  padding: 8px 10px;
  border: 1px dashed rgba(163, 230, 53, 0.32);
  border-radius: 11px;
  background: rgba(163, 230, 53, 0.04);
}

.fortune-btn {
  width: 100%;
  min-height: 32px;
  color: #e5ffb0;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.fortune-btn:hover {
  color: #f4ffd6;
}

.fortune-text {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.fortune-text.is-drawn {
  color: #e9f7cf;
}

.fortune-text b {
  color: #fde68a;
  font-family: var(--mono);
}

.exclude {
  color: var(--muted);
  font-size: 11px;
}

.exclude summary {
  min-height: 30px;
  padding: 4px 2px;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
}

.exclude summary::-webkit-details-marker {
  display: none;
}

.exclude summary::before {
  content: "▸ ";
  color: var(--purple);
}

.exclude[open] summary::before {
  content: "▾ ";
}

.exclude-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 99px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-dim);
  font-size: 11px;
  font-weight: 600;
}

.chip[aria-pressed="true"] {
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.16);
  color: #eadbff;
}

.chip[aria-pressed="false"] {
  opacity: 0.42;
  text-decoration: line-through;
}

.chip:disabled {
  cursor: not-allowed;
}

/* ── lunch / dinner toggle + nearby restaurants ───────────────────── */

.lunch-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.lunch-toggle {
  display: inline-flex;
  gap: 3px;
  padding: 2px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.lunch-toggle .mode-btn.is-active {
  background: rgba(168, 85, 247, 0.24);
  color: #f0ddff;
  box-shadow: 0 0 10px -4px var(--purple);
}

.nearby-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.16), rgba(56, 189, 248, 0.06));
  color: #d5f7ff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 0 20px -12px var(--cyan);
  transition: background 0.16s ease, transform 0.12s ease;
}

.nearby-btn b {
  color: #fff;
}

.nearby-btn:hover {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.26), rgba(56, 189, 248, 0.12));
}

.nearby-btn:active {
  transform: scale(0.995);
}

.nearby {
  margin-top: 12px;
  padding: 10px 11px 8px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 12px;
  background: linear-gradient(170deg, rgba(34, 211, 238, 0.07), rgba(15, 21, 40, 0.55));
  box-shadow: 0 0 22px -16px var(--cyan);
}

.nearby-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nearby-head strong {
  color: #d7f6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nearby-src {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 99px;
  color: #9fe7f7;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.nearby-area {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 99px;
  background: rgba(34, 211, 238, 0.12);
  color: #bff3ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-area[hidden] {
  display: none;
}

.nearby-status {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.nearby-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.nearby-list:empty {
  display: none;
}

.nb-card {
  flex: 1 1 250px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 9px;
  background: rgba(9, 14, 28, 0.62);
}

.nb-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.nb-name {
  color: #e8f6ff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nb-meta {
  color: #7f8aa8;
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nb-dist {
  color: #7ee0f4;
  font-family: var(--mono);
  font-weight: 700;
}

.nb-links {
  display: flex;
  gap: 3px;
  flex: 0 0 auto;
}

.nb-map {
  display: grid;
  place-items: center;
  min-height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nb-map.naver {
  border: 1px solid rgba(3, 199, 90, 0.45);
  background: rgba(3, 199, 90, 0.14);
  color: #a9f5c8;
}

.nb-map.kakao {
  border: 1px solid rgba(250, 225, 0, 0.4);
  background: rgba(250, 225, 0, 0.12);
  color: #ffeaa0;
}

.nb-map:hover {
  filter: brightness(1.25);
}

.nearby-fallback {
  margin-top: 8px;
  padding: 8px 9px;
  border: 1px dashed rgba(34, 211, 238, 0.32);
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.05);
}

.nf-lead {
  color: #a9d9e6;
  font-size: 10.5px;
  line-height: 1.4;
}

.nf-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  margin-top: 6px;
}

.nf-form input {
  min-width: 0;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: rgba(7, 11, 22, 0.7);
  color: var(--ink);
  font-size: 12px;
}

.nf-form input::placeholder {
  color: #6b7695;
}

.nf-form input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.14);
}

.nf-go {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.16);
  color: #d7f6ff;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.nf-result {
  margin-top: 6px;
  color: #9fe7f7;
  font-size: 10px;
  line-height: 1.4;
}

.nearby-maps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.map-btn.naver {
  border: 1px solid rgba(3, 199, 90, 0.55);
  background: linear-gradient(180deg, rgba(3, 199, 90, 0.2), rgba(3, 199, 90, 0.08));
  color: #ccffdd;
}

.map-btn.kakao {
  border: 1px solid rgba(250, 225, 0, 0.5);
  background: linear-gradient(180deg, rgba(250, 225, 0, 0.18), rgba(250, 225, 0, 0.06));
  color: #fff2b8;
}

.map-btn:hover {
  filter: brightness(1.18);
}

.nearby-fine {
  margin-top: 6px;
  color: #6f7896;
  font-size: 9px;
  text-align: center;
}

/* ── 6. chat ──────────────────────────────────────────────────────── */

.w-chat {
  min-height: 430px;
  padding-bottom: 10px;
  overflow: hidden;
}

.online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #86efac;
  font-size: 10.5px;
  white-space: nowrap;
}

.online i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 7px #4ade80;
  animation: blink 1.8s ease-in-out infinite;
}

.chat-list {
  flex: 1 1 0;
  min-height: 0;
  margin: 8px -4px 8px 0;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.4) transparent;
}

.chat-list::-webkit-scrollbar {
  width: 6px;
}

.chat-list::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.35);
  border-radius: 99px;
}

.msg {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  padding: 7px 0;
  animation: msg-in 0.28s ease both;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.32);
  background: radial-gradient(circle at 35% 28%, #3b2a56, #171229);
  font-size: 17px;
  line-height: 1;
}

.msg-body {
  min-width: 0;
}

.msg-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.msg-name {
  max-width: 62%;
  min-width: 0;
  flex: 0 1 auto;
  color: #d9c4ff;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 라운지 채팅의 작은 담배 뱃지 — 닉네임 옆에 점 하나와 짧은 이름만 */
.msg-skin {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  max-width: 76px;
  padding: 0 5px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.08);
  color: #b6bece;
  font-size: 9px;
  font-weight: 600;
  /* 줄 높이를 닉네임(11.5px)보다 작게 두어 메시지 한 줄 높이가 변하지 않는다 */
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateY(-0.5px);
}

.msg-skin i {
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 4px currentColor;
  opacity: 0.9;
}

/* 스킨별 톤 — 멘솔은 아이스 민트, 블랙슬림은 어두운 배경 + 골드, 쿠반시가는 앰버 브라운, 골드는 리저브 골드 */
.msg-skin[data-skin-tone='mint'] {
  border-color: rgba(103, 232, 249, 0.34);
  background: rgba(103, 232, 249, 0.09);
  color: #a5f3fc;
}

/* 비흡연 쉼템 톤 — 아메리카노는 크림 브라운, 뽁뽁이는 시안, 풍선껌은 핑크 */
.msg-skin[data-skin-tone='americano'] {
  border-color: rgba(224, 164, 95, 0.42);
  background: rgba(224, 164, 95, 0.12);
  color: #f0c394;
}

.msg-skin[data-skin-tone='cyan'] {
  border-color: rgba(125, 211, 252, 0.36);
  background: rgba(125, 211, 252, 0.1);
  color: #bae6fd;
}

.msg-skin[data-skin-tone='pink'] {
  border-color: rgba(244, 114, 182, 0.4);
  background: rgba(244, 114, 182, 0.12);
  color: #fbcfe8;
}

.msg-skin[data-skin-tone='black'] {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(12, 12, 16, 0.6);
  color: #fcd34d;
}

.msg-skin[data-skin-tone='amber'] {
  border-color: rgba(180, 83, 9, 0.52);
  background: rgba(180, 83, 9, 0.16);
  color: #eab08a;
}

.msg-skin[data-skin-tone='gold'] {
  border-color: rgba(245, 209, 111, 0.42);
  background: rgba(245, 209, 111, 0.1);
  color: #f5d16f;
}

.msg-time {
  margin-left: auto;
  color: #5f6885;
  font-size: 9.5px;
  white-space: nowrap;
}

.msg-text {
  margin-top: 1px;
  color: #dbe1f2;
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.msg.is-mine .msg-name {
  color: #fbcfe8;
}

/* 대화 한 줄의 신고 — 작고 조용하게, 손가락으로는 누를 수 있게 */
.msg-report {
  flex: 0 0 auto;
  min-height: 20px;
  padding: 0 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  color: #7d86a3;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.msg-report:hover,
.msg-report:focus-visible {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.08);
}

.msg-report:disabled {
  opacity: 0.5;
  cursor: default;
}

.msg.is-mine .msg-text {
  color: #ffeaf5;
}

.msg-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.reaction {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 26px;
  padding: 0 7px;
  border-radius: 99px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 10px;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.reaction:hover {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.12);
}

.reaction:active {
  transform: scale(0.94);
}

.reaction.is-on {
  border-color: rgba(244, 63, 142, 0.55);
  background: rgba(244, 63, 142, 0.14);
  color: #ffd9e9;
}

.chat-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 38px;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(6, 10, 20, 0.6);
}

.chat-form input {
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  font-size: 12px;
  color: var(--ink);
}

.chat-form input::placeholder {
  color: #6c7593;
}

.chat-form input:disabled {
  color: #6c7593;
}

.chat-form input:focus {
  outline: none;
}

.chat-form:focus-within {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 18px -12px var(--purple);
}

.emoji-btn,
.send-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 15px;
  line-height: 1;
}

.emoji-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.send-btn {
  background: linear-gradient(180deg, #c084fc, #8b5cf6);
  color: #1a0a2e;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 0 16px -6px var(--purple);
}

.send-btn:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #6c7593;
  box-shadow: none;
  cursor: not-allowed;
}

.emoji-pop {
  position: absolute;
  right: 4px;
  bottom: 50px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  width: 196px;
  padding: 6px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 11px;
  background: #0d1428;
  box-shadow: 0 18px 32px -18px #000;
}

.emoji-pop[hidden] {
  display: none;
}

.emoji-pop button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 19px;
}

.emoji-pop button:hover {
  background: rgba(168, 85, 247, 0.2);
}

.chat-status {
  margin-top: 6px;
  color: #6f7896;
  font-size: 10px;
  text-align: center;
}

.chat-status b {
  color: #d9c4ff;
}

.chat-foot {
  margin-top: 2px;
  color: #5c6582;
  font-size: 9.5px;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════════
   가상 흡연실 라운지 — midnight navy × ember amber
   ══════════════════════════════════════════════════════════════════ */

.lounge {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  border: 1px solid rgba(251, 146, 60, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(820px 320px at 50% -12%, rgba(251, 146, 60, 0.13), transparent 64%),
    linear-gradient(168deg, rgba(18, 22, 40, 0.62) 0%, rgba(11, 15, 28, 0.58) 52%, rgba(7, 9, 17, 0.7) 100%);
  box-shadow: 0 30px 60px -46px #000, 0 0 48px -30px rgba(251, 146, 60, 0.55);
  overflow: hidden;
}

.lounge::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 200px at 78% 8%, rgba(255, 153, 51, 0.07), transparent 70%),
    radial-gradient(380px 220px at 12% 92%, rgba(120, 80, 255, 0.06), transparent 72%);
}

.lounge > * {
  position: relative;
}

/* 라운지가 홈의 첫 화면 — 페이지 맨 위에서는 위 여백을 따로 주지 않는다 */
.shell > .lounge:first-of-type {
  margin-top: 0;
}

/* ── header ─────────────────────────────────────────────────────── */

.lounge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(251, 146, 60, 0.16);
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.07), transparent 42%, rgba(15, 20, 36, 0.4));
}

.lounge-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lounge-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: radial-gradient(circle at 32% 28%, #3a2412, #16101a);
  box-shadow: 0 0 22px -10px #fb923c, inset 0 0 10px rgba(251, 146, 60, 0.22);
  font-size: 20px;
  line-height: 1;
}

.lounge-brand-copy h2 {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.lounge-brand-copy p {
  margin-top: 1px;
  color: #b9a894;
  font-size: 11.5px;
}

.lounge-head-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* 관리자 모드일 때만 보이는 작은 배지 — 일반 사용자 화면에는 없다. */
.admin-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.5);
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-badge[hidden] {
  display: none;
}

.lounge-live {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, 0.38);
  background: rgba(251, 146, 60, 0.1);
  color: #ffd9a8;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.lounge-live i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  vertical-align: 1px;
  border-radius: 50%;
  background: #fb923c;
  box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.55);
  animation: ember-pulse 1.9s ease-out infinite;
}

@keyframes ember-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(251, 146, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(251, 146, 60, 0);
  }
}

.lounge-live b {
  color: #fff3e0;
  font-size: 13px;
}

.lounge-back {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 700;
}

.lounge-invite,
.stage-invite {
  position: relative;
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(34, 211, 238, 0.38);
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.lounge-invite::after,
.stage-invite::after {
  content: "";
  position: absolute;
  inset: -8px -6px;
}

.lounge-invite:hover,
.lounge-invite:focus-visible,
.stage-invite:hover,
.stage-invite:focus-visible {
  border-color: rgba(34, 211, 238, 0.7);
  background: rgba(34, 211, 238, 0.2);
}

.lounge-invite[hidden],
.stage-invite[hidden] {
  display: none;
}

.lounge-back:hover {
  border-color: rgba(251, 146, 60, 0.5);
  color: #ffe3b8;
}

/* ── lobby ──────────────────────────────────────────────────────── */

.lounge-lobby {
  padding: 18px;
}

.lobby-lead h3 {
  margin-top: 2px;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 900;
  letter-spacing: -0.02em;
  /* 야밤 옥상 네온이 뒤로 비쳐도 또렷하게 */
  text-shadow: 0 1px 2px rgba(3, 5, 11, 0.6), 0 0 24px rgba(3, 5, 11, 0.7);
}

.lobby-kicker {
  color: #d97706;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-shadow: 0 1px 2px rgba(3, 5, 11, 0.8);
}

.lobby-desc {
  max-width: 620px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(3, 5, 11, 0.75), 0 0 18px rgba(3, 5, 11, 0.6);
}

/* 한 개비 쿨타임 배너 — 쿨타임을 켰을 때 한 개비를 다 태우고 로비로 돌아오면 뜬다 */

.cooldown-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px 20px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 16px;
  background:
    radial-gradient(150% 130% at 0% 0%, rgba(251, 146, 60, 0.2), transparent 60%),
    linear-gradient(120deg, rgba(244, 63, 142, 0.1), rgba(11, 16, 30, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 34px -30px #000;
  animation: burn-in 0.35s ease both;
}

.cooldown-banner[hidden] {
  display: none;
}

.cd-emoji {
  font-size: 26px;
  line-height: 1;
}

.cd-copy b {
  display: block;
  color: #ffe6b8;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.cd-copy p {
  margin-top: 3px;
  color: #cabb9f;
  font-size: 12px;
  line-height: 1.5;
}

.cd-clock {
  color: #ffd58a;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-shadow: 0 0 16px rgba(251, 191, 36, 0.45);
}

.cd-fill {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 9px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.cd-fill i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fbbf24, #f43f8e);
  transition: width 0.4s linear;
}

.lobby-room-btn.is-locked {
  opacity: 0.55;
  filter: grayscale(0.4);
}

.lobby-rooms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.lobby-room {
  position: relative;
  min-width: 0;
}

/* 로비 카드의 🔗 초대 — 카드 전체를 누르면 입장, 오른쪽 아래 버튼은 링크 복사 */
.lobby-invite {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 10px;
  background: rgba(7, 11, 22, 0.78);
  color: #a5f3fc;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.lobby-invite::after {
  content: "";
  position: absolute;
  inset: -5px;
}

.lobby-invite:hover,
.lobby-invite:focus-visible {
  border-color: rgba(34, 211, 238, 0.7);
  background: rgba(34, 211, 238, 0.16);
}

.lobby-room .lr-foot {
  padding-right: 34px;
}

.lobby-room-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-height: 126px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 15px;
  background:
    radial-gradient(140% 90% at 50% -30%, rgba(251, 146, 60, 0.12), transparent 62%),
    linear-gradient(168deg, rgba(24, 29, 50, 0.9), rgba(10, 13, 24, 0.94));
  color: inherit;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.lobby-room-btn:hover,
.lobby-room-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(251, 146, 60, 0.55);
  box-shadow: 0 14px 30px -22px #000, 0 0 26px -16px #fb923c;
}

.lr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lr-title {
  font-size: 14.5px;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lr-count {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--muted);
  font-size: 10px;
  font-family: var(--mono);
}

.lr-count.is-hot {
  border-color: rgba(251, 146, 60, 0.5);
  background: rgba(251, 146, 60, 0.12);
  color: #ffd6a4;
}

.lr-tag {
  color: #9a9384;
  font-size: 11px;
}

.lr-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  min-width: 0;
}

.room-faces {
  display: flex;
  flex: 0 0 auto;
}

.room-faces .ember-avatar + .ember-avatar {
  margin-left: -7px;
}

.lr-last {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #6f7896;
  font-size: 10.5px;
}

.lobby-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.lobby-create-btn {
  min-height: 46px;
  padding: 0 18px;
  border: 1px dashed rgba(251, 146, 60, 0.46);
  border-radius: 12px;
  background: rgba(251, 146, 60, 0.06);
  color: #fdba74;
  font-size: 13px;
  font-weight: 800;
}

.lobby-create-btn:hover {
  background: rgba(251, 146, 60, 0.14);
  border-style: solid;
}

.lobby-create-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 320px;
  min-width: 0;
}

.lobby-create-form[hidden] {
  display: none;
}

.lobby-create-form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(251, 146, 60, 0.4);
  border-radius: 11px;
  background: rgba(8, 11, 22, 0.8);
  color: var(--ink);
  font-size: 13px;
}

.lobby-create-form input::placeholder {
  color: #6c7593;
}

.room-create-go {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 11px;
  background: linear-gradient(180deg, #fbbf24, #f97316);
  color: #2a1300;
  font-size: 13px;
  font-weight: 900;
}

.room-create-cancel {
  flex: 0 0 auto;
  width: 44px;
  height: 46px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--muted);
}

.lobby-note {
  flex: 1 1 100%;
  color: #5f6a86;
  font-size: 10.5px;
}

/* ── room: three columns ────────────────────────────────────────── */

.lounge-room {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr) 328px;
  min-height: 626px;
}

/* 대형 담배 스테이지가 화면 맨 위로 올라갔으니 방 안은 토픽 룸 + 채팅 2단 */
@media (min-width: 821px) {
  .lounge[data-mode="room"] .lounge-room {
    grid-template-columns: 214px minmax(0, 1fr);
    min-height: 520px;
  }

  /* 채팅은 넓은 화면에서도 읽기 좋은 폭으로 가운데 정렬 */
  .lounge[data-mode="room"] .lounge-chat-head,
  .lounge[data-mode="room"] .lounge-chat-list,
  .lounge[data-mode="room"] .lounge-chat-form,
  .lounge[data-mode="room"] .lounge-chat-status {
    width: 100%;
    max-width: 880px;
    margin-inline: auto;
  }
}

/* 고정 스테이지가 있을 때 방으로 스크롤하면 스테이지 바로 아래에 맞춘다 */
body.lounge-pinned .lounge-room {
  scroll-margin-top: calc(var(--stage-pin-h) + 6px);
}

.lounge-room[hidden] {
  display: none;
}

/* left rail */

.room-panel {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 14px 12px;
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(5, 8, 16, 0.18);
}

.room-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 0 3px 3px;
}

.room-panel-head h3 {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-dim);
}

.room-panel-head span {
  color: #6f7896;
  font-size: 10px;
  font-family: var(--mono);
}

.room-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.room-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-height: 54px;
  padding: 9px 11px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--ink-dim);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.room-btn:hover {
  border-color: rgba(251, 146, 60, 0.36);
  background: rgba(251, 146, 60, 0.06);
}

.room-btn.is-active {
  border-color: rgba(251, 146, 60, 0.62);
  background: linear-gradient(100deg, rgba(251, 146, 60, 0.17), rgba(251, 146, 60, 0.04));
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.16), 0 0 26px -18px #fb923c;
  color: #fff1dd;
}

.rb-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px;
  font-weight: 800;
}

.rb-meta {
  color: #6f7896;
  font-size: 10px;
}

.rb-meta em {
  color: #fdba74;
  font-style: normal;
  font-weight: 800;
}

.room-create-btn {
  margin-top: auto;
  min-height: 44px;
  border: 1px dashed rgba(251, 146, 60, 0.4);
  border-radius: 11px;
  color: #fdba74;
  font-size: 12px;
  font-weight: 700;
}

.room-create-btn:hover {
  background: rgba(251, 146, 60, 0.1);
}

/* center stage — 대형 담배 스테이지의 레이아웃은 파일 끝 '고정 스테이지' 절에 있다 */


.stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.stage-title b {
  display: block;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.stage-title span {
  display: block;
  margin-top: 1px;
  color: #948b7c;
  font-size: 11px;
}

.stage-chip {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.stage-chip[data-phase="unlit"] {
  border-color: rgba(251, 146, 60, 0.36);
  color: #fdba74;
}

.stage-chip[data-phase="lit"] {
  border-color: rgba(251, 191, 36, 0.62);
  background: rgba(251, 146, 60, 0.12);
  color: #ffe4b5;
  box-shadow: 0 0 20px -8px #fb923c;
}

.stage-chip[data-phase="burned"] {
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.ashtray {
  position: relative;
  flex: 1 1 auto;
  min-height: 304px;
  margin: 2px -6px 4px;
  border-radius: 20px;
  background:
    radial-gradient(62% 58% at 50% 64%, rgba(38, 44, 64, 0.6), rgba(10, 13, 24, 0.12) 72%, transparent 82%),
    radial-gradient(80% 70% at 50% 10%, rgba(251, 146, 60, 0.05), transparent 70%);
  cursor: pointer;
  touch-action: manipulation;
  overflow: hidden;
}

#smokeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 비흡연 쉼템(☕·🫧·🍬) 캔버스 — 담배 캔버스와 같은 자리에 겹뀨 두고 하나만 보인다 */
#breakCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#breakCanvas[hidden],
#smokeCanvas[hidden] {
  display: none;
}

.stage-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  color: #8b8271;
  font-size: 11px;
  text-align: center;
  pointer-events: none;
}

.stage-hint[hidden] {
  display: none;
}

.burn-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(9, 11, 20, 0.86), rgba(9, 11, 20, 0.55) 60%, rgba(9, 11, 20, 0) 100%);
  animation: burn-in 0.35s ease both;
  text-align: center;
}

.burn-over[hidden] {
  display: none;
}

.burn-emoji {
  font-size: 30px;
  filter: grayscale(0.2);
}

.burn-over b {
  color: #ffd9a8;
  font-size: 16px;
  font-weight: 900;
}

.burn-over p {
  color: #9aa1b5;
  font-size: 11.5px;
}

@keyframes burn-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* timer + light */

.timer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid rgba(251, 146, 60, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.08), rgba(8, 11, 20, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.light-btn {
  grid-column: 1;
  grid-row: 1;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffc46b, #f97316);
  color: #2a1300;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 26px -16px #f97316, inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.light-btn:hover {
  filter: brightness(1.05);
}

.light-btn:active {
  transform: scale(0.985);
}

.light-btn[hidden] {
  display: none;
}

.cig-timer {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.cig-timer span {
  color: #9b917f;
  font-size: 10.5px;
}

.cig-timer b {
  color: #ffddab;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-shadow: 0 0 22px rgba(251, 146, 60, 0.45);
}

.burn-bar {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.burn-bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c2d12 0%, #ea580c 45%, #fbbf24 85%, #fde68a 100%);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.55);
  transition: width 0.25s linear;
}

.burn-bar b {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff1dc;
  box-shadow: 0 0 12px 2px rgba(251, 146, 60, 0.85);
  transition: left 0.25s linear;
}

.burn-scale {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 3;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
  color: #6f7896;
  font-family: var(--mono);
  font-size: 9.5px;
}

#burnPct {
  color: #fdba74;
  font-family: var(--font);
}

.puff-btn {
  grid-column: 1;
  grid-row: 1;
  min-height: 54px;
  border: 1px solid rgba(251, 146, 60, 0.42);
  border-radius: 11px;
  background: rgba(251, 146, 60, 0.12);
  color: #ffe0b5;
  font-size: 12.5px;
  font-weight: 800;
}

.puff-btn:hover {
  background: rgba(251, 146, 60, 0.18);
}

.puff-btn[hidden] {
  display: none;
}

.lounge.is-puffing .ashtray,
.lounge-stage.is-puffing .ashtray {
  animation: puff-flash 0.5s ease;
}

@keyframes puff-flash {
  0% {
    box-shadow: inset 0 0 60px rgba(255, 160, 60, 0.25);
  }
  100% {
    box-shadow: inset 0 0 60px rgba(255, 160, 60, 0);
  }
}

/* 고정 스테이지의 캐릭터(함께 피우는 사람들) 줄은 없앴다 —
   인원수는 로비·방 목록의 “N명 피우는 중”과 스테이지 칩이 알려준다. */

.ember-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--ember-size, 30px);
  height: var(--ember-size, 30px);
  flex: 0 0 auto;
  border-radius: 50%;
}

.ember-avatar i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff6cf 0%, #fbbf24 20%, #f97316 46%, #8a3a10 74%, #180d07 100%);
  box-shadow: 0 0 14px -2px rgba(251, 146, 60, 0.8), inset 0 0 6px rgba(0, 0, 0, 0.65);
  opacity: 0.86;
}

.ember-avatar.is-lit i {
  animation: ember-breathe 2.9s ease-in-out infinite;
}

.ember-avatar em {
  position: relative;
  font-style: normal;
  font-size: calc(var(--ember-size, 30px) * 0.48);
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

@keyframes ember-breathe {
  0%,
  100% {
    opacity: 0.72;
    box-shadow: 0 0 10px -3px rgba(251, 146, 60, 0.55), inset 0 0 6px rgba(0, 0, 0, 0.65);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 22px 0 rgba(251, 146, 60, 0.9), inset 0 0 6px rgba(0, 0, 0, 0.5);
  }
}

.stage-fine {
  margin-top: 6px;
  color: #5f6a86;
  font-size: 10px;
  text-align: center;
}

/* ── chat column ────────────────────────────────────────────────── */

.lounge-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 13px 10px;
  border-left: 1px solid rgba(148, 163, 184, 0.1);
  /* 야밤 옥상 배경이 비치되 대화 글자는 또렷하게 — 라운지 패널과 겹쳐 0.74 정도 어두워진다 */
  background: rgba(5, 8, 16, 0.28);
}

.lounge-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.lounge-chat-head b {
  font-size: 12.5px;
  font-weight: 800;
}

.chat-lock {
  padding: 3px 8px;
  border: 1px solid rgba(248, 113, 113, 0.26);
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  font-size: 9.5px;
  white-space: nowrap;
}

.chat-lock.is-open {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
  color: #86efac;
}

.lounge-chat-list {
  flex: 1 1 auto;
  min-height: 210px;
  max-height: 330px;
  margin: 6px -4px 6px 0;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 146, 60, 0.35) transparent;
}

.lounge-chat-list::-webkit-scrollbar {
  width: 6px;
}

.lounge-chat-list::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(251, 146, 60, 0.32);
}

.lounge-chat-list .msg-avatar {
  border-color: rgba(251, 146, 60, 0.32);
  background: radial-gradient(circle at 35% 28%, #3a2a20, #17121a);
}

.lounge-chat-list .msg.is-mine .msg-name {
  color: #fdba74;
}

.reaction-static {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  color: #b9c0d6;
  font-size: 10.5px;
}

.lounge-chat-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 38px;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.lounge-chat-form input {
  min-width: 0;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 9px;
  background: rgba(8, 11, 22, 0.72);
  color: var(--ink);
  font-size: 12px;
}

.lounge-chat-form input::placeholder {
  color: #626b88;
}

.lounge-chat-form input:disabled {
  color: #5a6280;
  background: rgba(255, 255, 255, 0.02);
}

.lounge-chat-form input:focus {
  outline: none;
  border-color: rgba(251, 146, 60, 0.55);
}

.lounge-chat .send-btn {
  background: linear-gradient(180deg, #fbbf24, #f97316);
  color: #2a1300;
  box-shadow: 0 0 16px -6px #f97316;
}

.lounge-chat .send-btn:disabled {
  background: rgba(255, 255, 255, 0.07);
  color: #6c7593;
  box-shadow: none;
}

.lounge-chat .emoji-btn:disabled {
  color: #5a6280;
}

.lounge-chat .emoji-pop {
  border-color: rgba(251, 146, 60, 0.32);
}

.lounge-chat-status {
  margin-top: 6px;
  color: #6f7896;
  font-size: 9.5px;
  text-align: center;
}

.lounge-chat-status b {
  color: #ffd6a4;
}

/* view filter: 흡연실은 홈·흡연실 탭에서만 (고정 담배 스테이지도 함께 내린다) */
body[data-view="poll"] .lounge,
body[data-view="play"] .lounge,
body[data-view="lunch"] .lounge,
body[data-view="poll"] .lounge-stage,
body[data-view="play"] .lounge-stage,
body[data-view="lunch"] .lounge-stage {
  display: none;
}

body[data-view="poll"].lounge-pinned,
body[data-view="play"].lounge-pinned,
body[data-view="lunch"].lounge-pinned {
  padding-top: 0;
}

body[data-view="chat"] .grid {
  display: none;
}

/* ── status bar ───────────────────────────────────────────────────── */

.statusbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1580px;
  min-height: 52px;
  margin: 14px 16px 18px;
  padding: 8px 18px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(28, 22, 10, 0.72), rgba(13, 18, 34, 0.9) 45%, rgba(28, 20, 36, 0.8));
  box-shadow: 0 0 26px -20px var(--amber);
  color: var(--muted);
  font-size: 12px;
}

.statusbar b {
  color: #ffe6a3;
}

.status-streak {
  white-space: nowrap;
}

.status-streak b {
  color: #fef08a;
}

.status-mid {
  flex: 1 1 auto;
  text-align: center;
  font-size: 11.5px;
  color: #9aa3bf;
}

.status-points {
  padding: 3px 12px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 99px;
  background: rgba(251, 191, 36, 0.1);
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

.status-love {
  white-space: nowrap;
  color: #b78ba2;
  font-size: 11px;
}

/* ── 약관·문의 footer ─────────────────────────────────────────────── */

.sitefoot {
  position: relative;
  z-index: 1;
  max-width: 1580px;
  margin: 0 16px 22px;
  padding: 12px 18px 2px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #6f7893;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.sitefoot-note {
  margin: 0 0 5px;
  color: #9aa3bf;
  font-size: 11.5px;
}

.sitefoot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  margin: 0 0 5px;
  font-size: 11px;
}

.sitefoot-links a {
  color: #c3cae0;
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.sitefoot-links a:hover,
.sitefoot-links a:focus-visible {
  color: #fff;
  border-bottom-color: rgba(244, 63, 142, 0.6);
}

.sitefoot-links span[aria-hidden='true'] {
  color: #4c5470;
}

.sitefoot-copy {
  margin: 0;
  color: #5f6885;
  font-family: var(--mono);
  font-size: 10px;
}

/* ── quick tabs (mobile) ──────────────────────────────────────────── */

.quicktabs {
  display: none;
}

/* ── 화면 전체 연기 오버레이 ──────────────────────────────────────── */

.screen-smoke {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ── modal / toast ────────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 14, 0.7);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(430px, 100%);
  padding: 18px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 18px;
  background: linear-gradient(165deg, #171f3a, #0d1224);
  box-shadow: 0 30px 60px -30px #000, 0 0 40px -22px var(--purple);
  animation: modal-in 0.22s ease both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h2 {
  font-size: 18px;
  font-weight: 800;
}

.panel-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.panel-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.14);
  font-size: 24px;
}

.panel-profile b {
  font-size: 15px;
}

.panel-profile p {
  color: var(--muted);
  font-size: 11.5px;
}

.panel-profile p span {
  color: #ffe6a3;
  font-family: var(--mono);
}

.panel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.panel-stats > div {
  padding: 9px 11px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.panel-stats dt {
  color: var(--muted);
  font-size: 10.5px;
}

.panel-stats dd {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: #e6ebfa;
}

.panel-actions {
  display: flex;
  gap: 8px;
  margin: 14px 0 10px;
}

.panel-actions .ghost-btn {
  flex: 1;
  min-height: 42px;
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.12);
  color: #eadbff;
}

.panel-actions .ghost-btn.danger {
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
}

/* ── 흡연 경고 팝업 (담뱃갑 경고문구 패러디) ──────────────────────── */

.warning-modal {
  z-index: 85;
  padding: 16px;
}

.warning-modal .modal-backdrop {
  background: rgba(3, 5, 12, 0.82);
  backdrop-filter: blur(8px);
}

.warning-card {
  width: min(440px, 100%);
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(251, 113, 133, 0.55);
  border-radius: 20px;
  background: linear-gradient(168deg, #1d1420 0%, #12101c 46%, #0c1020 100%);
  box-shadow: 0 30px 70px -32px #000, 0 0 46px -20px rgba(251, 113, 133, 0.65);
}

.warning-stripe {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: repeating-linear-gradient(
    115deg,
    #f43f8e 0 12px,
    #fbbf24 12px 24px,
    #0b0e1a 24px 26px
  );
  opacity: 0.92;
}

.warning-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 10px;
  padding: 4px 11px;
  border: 1px solid rgba(251, 113, 133, 0.6);
  border-radius: 999px;
  background: rgba(251, 113, 133, 0.14);
  color: #ffd6dd;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.warning-title {
  margin: 0;
  padding: 13px 14px;
  border: 3px solid #14110d;
  border-radius: 9px;
  background: #f6efe2;
  color: #14110d;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: -0.015em;
  word-break: keep-all;
  box-shadow: 0 10px 22px -16px #000;
}

.warning-body {
  margin: 12px 0 0;
  color: var(--ink-dim);
  font-size: 12.5px;
  line-height: 1.6;
  word-break: keep-all;
}

.warning-body b {
  color: #ffe4b5;
  font-weight: 800;
}

.warning-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.warning-list li {
  position: relative;
  padding-left: 16px;
  color: #dbe2f3;
  font-size: 12px;
  line-height: 1.5;
  word-break: keep-all;
}

.warning-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--amber);
  font-weight: 900;
}

.warning-list b {
  color: #ffe4b5;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.warning-fine {
  margin: 10px 0 0;
  color: rgba(139, 147, 176, 0.9);
  font-size: 10.5px;
  line-height: 1.5;
  word-break: keep-all;
}

.warning-actions {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.warning-enter {
  min-height: 46px;
  border: 1px solid rgba(244, 63, 142, 0.65);
  border-radius: 12px;
  background: linear-gradient(180deg, #f43f8e, #c9276f);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px -18px #f43f8e;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.warning-enter:hover {
  filter: brightness(1.08);
}

.warning-enter:active {
  transform: translateY(1px);
}

.warning-hide {
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--ink-dim);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.warning-hide:hover {
  border-color: rgba(251, 191, 36, 0.5);
  color: #ffe4b5;
}

.warning-enter:focus-visible,
.warning-hide:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

body.is-warning-open {
  overflow: hidden;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 16px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 99px;
  background: rgba(10, 18, 34, 0.96);
  color: #d3f8ff;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 16px 32px -18px #000, 0 0 22px -14px var(--cyan);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-warn {
  border-color: rgba(251, 191, 36, 0.55);
  color: #fde68a;
}

/* ── document pages ───────────────────────────────────────────────── */

.page-doc {
  background: linear-gradient(180deg, #0b0e1a, #090c17);
}

.doc {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 22px 80px;
}

.doc-back {
  display: inline-block;
  margin-bottom: 22px;
  color: #9be7f5;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.doc-back:hover {
  text-decoration: underline;
}

.doc h1 {
  margin-bottom: 6px;
  font-size: 28px;
  font-weight: 800;
}

.doc-meta {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 12px;
}

.doc h2 {
  margin: 26px 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: #e9d7ff;
}

.doc p,
.doc li {
  margin-bottom: 8px;
  color: #c0c8dd;
  font-size: 13.5px;
  line-height: 1.75;
}

.doc ul {
  padding-left: 18px;
  list-style: disc;
}

.doc strong {
  color: #f3e8ff;
}

.doc-note {
  margin-top: 30px;
  padding: 12px 14px;
  border: 1px dashed rgba(251, 191, 36, 0.35);
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.05);
  color: #cfc7a8;
  font-size: 12px;
}

/* ── 한줄 핫뉴스 티커 ─────────────────────────────────────────────── */

.newsbar {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 8px;
  height: 40px;
  border: 1px solid rgba(244, 63, 142, 0.3);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(244, 63, 142, 0.12), rgba(11, 16, 32, 0.92) 38%);
  box-shadow: 0 0 24px -20px var(--pink);
  overflow: hidden;
}

.newsbar-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 0 12px;
  border-right: 1px solid rgba(244, 63, 142, 0.28);
  background: linear-gradient(90deg, rgba(244, 63, 142, 0.3), rgba(244, 63, 142, 0.08));
  color: #ffd3e4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.newsbar-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.newsbar-viewport::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 36px;
  background: linear-gradient(90deg, transparent, rgba(11, 16, 32, 0.95));
  pointer-events: none;
}

.newsbar-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: newsmarquee 55s linear infinite;
  will-change: transform;
}

.newsbar:hover .newsbar-track,
.newsbar:focus-within .newsbar-track {
  animation-play-state: paused;
}

.news-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 30px;
  color: #e2e8f0;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.news-item:hover,
.news-item:focus-visible {
  color: #fff;
}

.news-dot {
  color: var(--pink);
  font-size: 6px;
  line-height: 1;
}

.news-src {
  color: #94a3b8;
  font-size: 11px;
}

.newsbar-all {
  display: flex;
  align-items: center;
  flex: none;
  padding: 0 12px;
  border-left: 1px solid rgba(148, 163, 184, 0.16);
  color: #93c5fd;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.newsbar-all:hover {
  color: #dbeafe;
}

@keyframes newsmarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── poll context line ───────────────────────────────────────────── */

.issue-context {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.issue-updated {
  padding: 1px 6px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 5px;
  color: #a5b4fc;
  font-family: var(--mono);
  font-size: 9.5px;
  white-space: nowrap;
}

/* ── responsive ───────────────────────────────────────────────────── */

@media (max-width: 1280px) {
  .brand-copy p {
    display: none;
  }
  .navbtn {
    padding: 0 12px;
    font-size: 13px;
  }
  .tick {
    padding: 12px 14px;
  }
  .countdown {
    font-size: 46px;
  }
  .tick-art .dino {
    width: 90px;
  }
}

@media (max-width: 1080px) {
  .mainnav {
    gap: 2px;
  }
  .navbtn {
    padding: 0 9px;
    font-size: 12.5px;
  }
  .navbtn span {
    display: none;
  }
  .ticker {
    grid-template-columns: 1fr;
  }
  .tick {
    min-height: 96px;
    border-left: 0;
  }
  .tick-art {
    display: none;
  }
  .countdown {
    font-size: 42px;
  }
  .w-issues {
    grid-column: 1 / 13;
    grid-row: auto;
  }
  .w-lotto {
    grid-column: 1 / 13;
    grid-row: auto;
  }
  .w-lunch {
    grid-column: 1 / 13;
    grid-row: auto;
  }
  .lobby-rooms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lounge-room {
    grid-template-columns: 188px minmax(0, 1fr) 288px;
  }
  .lounge-brand-copy p {
    display: none;
  }
  .cig-timer b {
    font-size: 26px;
  }
  .lunch-body {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }
  .wheel-wrap {
    width: min(230px, 46vw);
  }
  .lunch-side {
    width: 100%;
  }
  .w-chat .chat-list {
    min-height: 220px;
  }
}

@media (max-width: 820px) {
  body {
    /* 하단 고정 statusbar(36px) + quicktabs(58px) 위에 footer 가 놓일 만큼만 */
    padding-bottom: 124px;
  }

  .sitefoot {
    margin: 4px 12px 12px;
    padding: 10px 8px 0;
    font-size: 10.5px;
  }

  .sitefoot-note {
    font-size: 10.5px;
  }

  .sitefoot-links a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
  }

  /* 신고 버튼은 이름·시간 줄 높이를 키우지 않는다 — 보이는 크기는 그대로 두고
     ::after 로 손가락이 닿는 범위만 넓힌다. */
  .msg-report {
    position: relative;
    min-height: 20px;
    padding: 0 6px;
  }

  .msg-report::after {
    content: '';
    position: absolute;
    inset: -7px -5px;
  }

  .topbar {
    top: 0;
    gap: 8px;
    margin: 8px 10px 0;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 22px;
  }

  .brand-copy h1 {
    font-size: 17px;
  }

  .mainnav {
    display: none;
  }

  .topbar-end {
    margin-left: auto;
    gap: 6px;
  }

  .fire-chip {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
  }

  .avatar-btn {
    width: 38px;
    height: 38px;
  }

  .shell {
    padding: 10px 10px 4px;
  }

  .ticker {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .tick {
    min-height: 88px;
    padding: 10px 12px 11px;
    gap: 2px;
  }

  .tick-head {
    gap: 5px;
    font-size: 11px;
    max-width: 100%;
  }

  .tick-ico {
    display: none;
  }

  .tick-head .live {
    font-size: 8px;
    padding: 0 5px;
    letter-spacing: 0.04em;
  }

  .live::before {
    width: 4px;
    height: 4px;
  }

  .tick-label {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tick-time {
    position: relative;
    min-height: 88px;
    padding: 10px 12px 11px;
  }

  .countdown {
    margin-top: 1px;
    font-size: 26px;
    letter-spacing: 0;
  }

  .countdown.is-done {
    font-size: 15px;
  }

  .tick-note {
    display: none;
  }

  .newsbar {
    height: 36px;
    border-radius: 10px;
  }

  .newsbar-tag {
    padding: 0 9px;
    font-size: 11px;
  }

  .news-item {
    margin-right: 22px;
    font-size: 12px;
  }

  .news-src {
    font-size: 10px;
  }

  .newsbar-all {
    display: none;
  }

  .issue-context {
    font-size: 10.5px;
  }

  .clockout-btn {
    position: absolute;
    top: auto;
    bottom: 1px;
    right: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0;
    color: var(--muted);
  }

  .clockout-btn b {
    display: none;
  }

  .clockout-btn span {
    font-size: 14px;
    opacity: 0.8;
  }

  .clockout-btn:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .clockout-edit {
    top: 78px;
    right: 6px;
    flex-wrap: wrap;
    max-width: 210px;
  }

  .clockout-edit input {
    min-height: 44px;
  }

  .clockout-edit .mini-btn {
    min-height: 44px;
    padding: 0 12px;
  }



  /* 출퇴근 인라인 설정 + 근무 진행률 */
  .count-row {
    gap: 8px;
    padding-right: 44px;
  }

  .workhours {
    margin-bottom: 2px;
    padding: 2px 5px;
  }

  .workhours input {
    width: 94px;
    min-height: 30px;
    font-size: 12px;
  }

  .workday {
    width: 100%;
    max-width: none;
    margin-top: 5px;
    padding-right: 46px;
  }

  .cooldown-banner {
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px 12px 18px;
  }

  .cd-emoji {
    font-size: 22px;
  }

  .cd-copy b {
    font-size: 13.5px;
  }

  .cd-copy p {
    font-size: 11px;
  }

  .cd-clock {
    font-size: 19px;
  }

  .grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .playground-head {
    margin-top: 16px;
  }

  .playground-head h2 {
    font-size: 15.5px;
  }

  .playground-chip {
    display: none;
  }

  .lounge-invite {
    display: none;
  }

  .stage-invite {
    min-height: 26px;
    padding: 0 7px;
    font-size: 10.5px;
  }

  .card {
    padding: 12px 13px;
    border-radius: 15px;
  }

  .card-title h2 {
    font-size: 14px;
  }

  .card-head {
    min-height: 30px;
  }

  /* mobile quick-tab filtering */
  body[data-view="poll"] .grid > .widget:not(.group-poll),
  body[data-view="play"] .grid > .widget:not(.group-play),
  body[data-view="lunch"] .grid > .widget:not(.group-lunch),
  body[data-view="chat"] .grid > .widget:not(.group-chat) {
    display: none;
  }

  /* 흡연실 — 모바일에서는 방 목록을 접고 세로로 쌓는다 */
  .lounge {
    border-radius: 17px;
    margin-top: 10px;
  }

  .lounge-head {
    padding: 9px 11px;
    gap: 8px;
  }

  .lounge-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 17px;
  }

  .lounge-brand-copy h2 {
    font-size: 15px;
  }

  .lounge-live {
    padding: 6px 9px;
    font-size: 10px;
  }

  .lounge-live b {
    font-size: 11.5px;
  }

  .lounge-back {
    min-height: 44px;
    padding: 0 11px;
  }

  .lounge-lobby {
    padding: 12px;
  }

  .lobby-desc {
    font-size: 11.5px;
  }

  .lobby-rooms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .lobby-room-btn {
    min-height: 124px;
    padding: 11px 12px;
    border-radius: 13px;
  }

  .lr-title {
    font-size: 13px;
  }

  .lr-last {
    display: none;
  }

  .lobby-create-btn {
    flex: 1 1 100%;
  }

  .lounge-room {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .room-panel {
    display: none;
  }

  .lounge-chat {
    min-height: 330px;
    padding: 10px 11px 8px;
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
  }

  .lounge-chat-list {
    min-height: 170px;
    max-height: 40vh;
  }

  .lounge-chat-form input,
  .lounge-chat .emoji-btn,
  .lounge-chat .send-btn {
    min-height: 44px;
  }

  .lounge-chat .emoji-btn,
  .lounge-chat .send-btn {
    height: 44px;
    width: 44px;
  }

  .lounge-chat-form {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
  }

  .lunch-body {
    gap: 12px;
  }

  .wheel-wrap {
    width: min(260px, 68vw);
  }

  .result-name {
    font-size: 26px;
  }

  .lotto-balls {
    min-height: 52px;
    gap: 6px;
  }

  .ball {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .statusbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    min-height: 36px;
    margin: 0;
    padding: 4px 12px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    gap: 8px;
    font-size: 10px;
    backdrop-filter: blur(10px);
  }

  .status-mid,
  .status-love {
    display: none;
  }

  .status-streak b {
    font-size: 10.5px;
  }

  .status-points {
    margin-left: auto;
    padding: 2px 9px;
    font-size: 11px;
  }

  .quicktabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(9, 13, 26, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: 0 -16px 34px -24px #000;
  }

  .quicktabs button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 58px;
    padding: 5px 2px;
    color: #8b93b0;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .quicktabs button span {
    font-size: 17px;
    line-height: 1.1;
  }

  .quicktabs button[aria-selected="true"] {
    color: #ffd7e8;
    background: linear-gradient(180deg, rgba(244, 63, 142, 0.16), transparent 75%);
    box-shadow: inset 0 2px 0 var(--pink);
  }

  .quicktabs button[aria-selected="true"] span {
    filter: drop-shadow(0 0 6px rgba(244, 63, 142, 0.8));
  }

  /* 44px touch targets */
  .vote-row,
  .generate-btn,
  .again-btn,
  .wheel-center,
  .icon-btn,
  .mode-btn,
  .chip,
  .reaction,
  .emoji-btn,
  .send-btn,
  .ghost-btn,
  .link-btn {
    min-height: 44px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  /* nearby restaurants + lotto comparison */
  .lunch-toggle .mode-btn {
    min-width: 44px;
  }

  .nearby-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .nb-map {
    min-width: 56px;
    min-height: 44px;
    padding: 0 10px;
    font-size: 10.5px;
  }

  .nf-form input,
  .nf-go,
  .map-btn,
  .nearby-btn,
  .lc-switch,
  .lc-retry {
    min-height: 44px;
  }

  .map-btn {
    flex: 1 1 140px;
    font-size: 11px;
  }

  .lc-switch,
  .lc-retry {
    padding: 0 12px;
    font-size: 10.5px;
  }

  .chat-form {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 4px;
  }

  .chat-form input {
    min-height: 44px;
    font-size: 14px;
  }

  .emoji-btn,
  .send-btn {
    width: 44px;
    height: 44px;
  }

  .reaction {
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    padding: 0 10px;
  }

  .help-btn {
    width: 44px;
    height: 44px;
    font-size: 13px;
  }

  .avatar-btn {
    width: 44px;
    height: 44px;
  }

  .fortune-btn {
    min-height: 44px;
    padding: 6px 2px;
  }

  .exclude summary {
    min-height: 44px;
    padding: 8px 2px;
  }

  .quicktabs button {
    min-height: 58px;
  }

  .navbtn {
    min-height: 44px;
  }

  .toast {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }

  /* 경고 팝업은 바텀시트가 아니라 화면 안에 다 들어오는 카드로 띄운다 */
  .warning-modal {
    align-items: center;
    padding: 12px;
  }

  .warning-modal .warning-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    border-radius: 18px;
    padding: 16px 14px 14px;
  }

  .warning-title {
    font-size: 17px;
    padding: 11px 12px;
  }

  .warning-body,
  .warning-list li {
    font-size: 11.5px;
  }

  .warning-enter {
    min-height: 48px;
  }

  .warning-hide {
    min-height: 44px;
  }

  .panel-actions .ghost-btn {
    min-height: 46px;
  }
}

@media (max-width: 430px) {
  .lt-fortune {
    display: none;
  }
  .tick-head {
    font-size: 9px;
  }
  .countdown {
    font-size: 22px;
  }
  .brand-copy h1 {
    font-size: 16px;
  }
  .ball {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  .wheel-wrap {
    width: 250px;
  }
  .quicktabs button {
    font-size: 9px;
  }
  /* 6개 방(흡연 4 + 비흡연 2)이 한 화면에 들어오도록 2열 유지 */
  .lobby-rooms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lobby-room-btn {
    min-height: 112px;
    padding: 10px 11px;
  }
  .lounge-live {
    padding: 5px 8px;
  }
  .lounge-live i {
    display: none;
  }
  /* 닉네임·담배 뱃지·시간이 390px 한 줄에 들어가도록 뱃지를 한 단계 더 줄인다 */
  .msg-skin {
    max-width: 60px;
    padding: 0 4px;
    gap: 2px;
    font-size: 8.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .wheel canvas {
    transition-duration: 0.001ms !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   대형 담배 스테이지 — 흡연실 방에 들어가면 화면 맨 위(top: 0)에 고정
   ──────────────────────────────────────────────────────────────────
   로비·다른 탭에서는 hidden 이라 담배가 하나만 보이고, 방에 있는 동안에는
   페이지를 어디로 스크롤해도 이 대형 담배가 맨 위에 남는다. 본문은 그 높이만큼
   아래에서 시작하므로 스테이지가 내용을 가리지 않는다. */

:root {
  /* 상단 고정 스테이지는 화면의 23% 남짓만 쓴다 (모바일 390×844에서 약 194px).
     캐릭터 줄은 없앴고, 머리·컨트롤 바·담배 판의 여백도 함께 줄였다. */
  --stage-pin-h: clamp(178px, 23vh, 300px);
}

body.lounge-pinned {
  padding-top: var(--stage-pin-h);
}

.lounge-stage {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 44;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: var(--stage-pin-h);
  padding: max(4px, env(safe-area-inset-top, 0px))
    max(12px, calc((100vw - 1580px) / 2 + 16px)) 6px;
  border-bottom: 1px solid rgba(251, 146, 60, 0.42);
  background:
    radial-gradient(760px 200px at 50% -26%, rgba(251, 146, 60, 0.15), transparent 70%),
    linear-gradient(180deg, #0f1424 0%, #0a0d19 100%);
  box-shadow: 0 18px 38px -26px #000, 0 0 34px -22px #fb923c;
  overflow: hidden;
}

.lounge-stage[hidden] {
  display: none;
}

/* 머리 — 로비로 + 방 이름 + 관전/피우는 중 */
.lounge-stage .stage-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 26px;
}

.stage-back {
  position: relative;
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(251, 146, 60, 0.34);
  border-radius: 9px;
  background: rgba(251, 146, 60, 0.09);
  color: #ffd9a8;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.stage-back:hover {
  background: rgba(251, 146, 60, 0.18);
}

/* 눈에 보이는 높이는 26px 이지만 손가락 타깃은 44px 이상 확보한다 */
.stage-back::after {
  content: "";
  position: absolute;
  inset: -8px -8px;
}

.lounge-stage .stage-title {
  flex: 1 1 auto;
  min-width: 0;
}

.lounge-stage .stage-title b {
  display: inline-block;
  overflow: hidden;
  max-width: 100%;
  vertical-align: bottom;
  font-size: 14.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lounge-stage .stage-title span {
  display: inline;
  margin: 0 0 0 6px;
  font-size: 10.5px;
  color: #948b7c;
  white-space: nowrap;
}

.lounge-stage .stage-chip {
  flex: 0 0 auto;
  padding: 3px 9px;
  font-size: 9.5px;
}

/* 재떨이 — 남는 높이를 모두 쓰고, 여백 없이 꽉 채운다 */
.lounge-stage .ashtray {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  border-radius: 13px;
}

/* 납작해진 담배 판 — 바닥 한 줄(15px)은 안내 문구 자리로 비워 두어 담배·재떨이와 겹치지 않는다 */
.lounge-stage #smokeCanvas,
.lounge-stage #breakCanvas {
  height: calc(100% - 15px);
}

/* 비흡연 쉼템 — 버튼·진행 바도 아이템 색을 따라간다 (☕ 따뜻한 크림 · 🫧 시안 · 🍬 핑크) */
.lounge-stage[data-item="break"] .light-btn {
  background: linear-gradient(180deg, color-mix(in srgb, var(--skin-accent, #ffc46b) 46%, #fff), var(--skin-accent, #f97316));
  color: #221606;
  box-shadow: 0 12px 26px -18px var(--skin-accent, #f97316), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.lounge-stage[data-item="break"] .puff-btn {
  border-color: color-mix(in srgb, var(--skin-accent, #fb923c) 52%, transparent);
  background: color-mix(in srgb, var(--skin-accent, #fb923c) 16%, transparent);
  color: #ffe9d4;
}

.lounge-stage[data-item="break"] .burn-bar i {
  background: linear-gradient(90deg, color-mix(in srgb, var(--skin-accent, #fb923c) 62%, #000), var(--skin-accent, #ffc46b) 82%, #fff6e6 100%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--skin-accent, #fb923c) 60%, transparent);
}

body.lounge-pinned .lounge-stage[data-item="break"] .ashtray {
  background:
    radial-gradient(62% 58% at 50% 64%, rgba(38, 44, 64, 0.5), rgba(10, 13, 24, 0.1) 72%, transparent 82%),
    radial-gradient(80% 70% at 50% 10%, color-mix(in srgb, var(--skin-accent, #fb923c) 12%, transparent), transparent 70%);
}

.lounge-stage .stage-hint {
  bottom: 2px;
  font-size: 10.5px;
}

/* 남은 시간 + 불 붙이기 — [버튼][타는 정도][남은 시간] 한 줄 컨트롤 바 */
.lounge-stage .timer-panel {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(52px, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 4px 10px;
  padding: 4px 9px;
  border-radius: 12px;
}

.lounge-stage .light-btn,
.lounge-stage .puff-btn {
  grid-column: 1;
  grid-row: 1;
  min-height: 42px;
  padding: 0 14px;
  font-size: 13px;
  white-space: nowrap;
}

.lounge-stage .burn-bar {
  grid-column: 2;
  grid-row: 1;
  height: 6px;
}

.lounge-stage .cig-timer {
  grid-column: 3;
  grid-row: 1;
  flex-wrap: nowrap;
  gap: 6px;
}

.lounge-stage .cig-timer b {
  font-size: 22px;
}

.lounge-stage .cig-timer small {
  color: #fdba74;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

/* 00:00 / 05:00 눈금 줄은 고정 스테이지에서 접는다 (퍼센트는 타이머 옆에) */
.lounge-stage .burn-scale {
  display: none;
}

/* 고정 스테이지에서는 안내 문구를 접어 높이를 아낀다 (로비 설명에 같은 안내가 있다) */
.lounge-stage .stage-fine {
  display: none;
}

/* 넓은 화면 — 담배는 왼쪽 큰 판, 컨트롤은 오른쪽 기둥 */
@media (min-width: 821px) {
  .lounge-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "head head"
      "ashtray timer";
    gap: 5px 18px;
  }

  .lounge-stage .stage-head {
    grid-area: head;
  }

  .lounge-stage .ashtray {
    grid-area: ashtray;
  }

  .lounge-stage .timer-panel {
    grid-area: timer;
    align-self: center;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 7px;
    padding: 10px 12px;
  }

  .lounge-stage .light-btn,
  .lounge-stage .puff-btn {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-height: 46px;
  }

  .lounge-stage .burn-bar {
    grid-column: 1;
    grid-row: 2;
  }

  .lounge-stage .cig-timer {
    grid-column: 1;
    grid-row: 3;
    justify-content: space-between;
  }

  .lounge-stage .stage-title span {
    font-size: 11px;
  }
}

@media (max-width: 820px) {
  .lounge-stage {
    gap: 3px;
    padding-bottom: 5px;
  }

  .lounge-stage .stage-head {
    gap: 6px;
    min-height: 26px;
  }

  .stage-back {
    min-height: 26px;
    padding: 0 8px;
    font-size: 10.5px;
  }

  .lounge-stage .stage-title b {
    font-size: 13px;
  }

  .lounge-stage .stage-title span {
    display: none;
  }

  .lounge-stage .timer-panel {
    gap: 4px 8px;
    padding: 3px 6px;
  }

  .lounge-stage .light-btn,
  .lounge-stage .puff-btn {
    min-height: 44px;
    padding: 0 11px;
    font-size: 12px;
  }

  .lounge-stage .cig-timer span {
    display: none;
  }

  .lounge-stage .cig-timer b {
    font-size: 20px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   담배 스킨 — 스테이지·로비의 선택 버튼과 선택 시트
   ──────────────────────────────────────────────────────────────────
   담배를 포인트로 사고 갈아 끼우는 곳. 버튼은 스테이지 머리(방 안)와
   로비 액션 줄 두 곳에 있고, 누르면 같은 시트가 열린다. */

.stage-skins,
.lobby-skins {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, 0.45);
  border-color: color-mix(in srgb, var(--skin-accent, #fb923c) 55%, transparent);
  background: color-mix(in srgb, var(--skin-accent, #fb923c) 12%, transparent);
  color: #ffe3b8;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.stage-skins {
  position: relative;
  min-height: 26px;
  padding: 0 10px;
  font-size: 10.5px;
}

/* 눈에 보이는 높이는 납작하지만 손가락 타깃은 44px 이상 확보한다 */
.stage-skins::after {
  content: "";
  position: absolute;
  inset: -8px -6px;
}

.stage-skins b,
.lobby-skins b {
  font-weight: 800;
  color: #ffd9a8;
}

.stage-skins .sk-short {
  display: none;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #ffd9a8;
}

.stage-skins .sk-caret {
  font-style: normal;
  font-size: 8px;
  opacity: 0.6;
}

.stage-skins:hover,
.lobby-skins:hover {
  background: color-mix(in srgb, var(--skin-accent, #fb923c) 22%, transparent);
}

.stage-skins:focus-visible,
.lobby-skins:focus-visible {
  outline: 2px solid #fdba74;
  outline-offset: 2px;
}

.lobby-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lobby-skins {
  min-height: 44px;
  padding: 0 16px;
  font-size: 12.5px;
}

.lobby-skins b {
  font-weight: 700;
  color: #b9a894;
  font-size: 11.5px;
}

.skin-modal .skin-card {
  width: min(560px, 100%);
  border-color: rgba(251, 146, 60, 0.42);
  background: linear-gradient(165deg, #1a1a26, #0d111c 62%, #16110c);
  box-shadow: 0 30px 60px -30px #000, 0 0 44px -24px #fb923c;
}

.skin-modal .modal-head {
  gap: 10px;
}

.skin-wallet {
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.1);
  color: #ffe4b5;
  font-size: 11px;
  white-space: nowrap;
}

.skin-wallet b {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.skin-lead {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.skin-list {
  display: grid;
  gap: 7px;
  max-height: min(58vh, 430px);
  margin: 10px 0 6px;
  padding: 2px;
  overflow-y: auto;
  list-style: none;
}

/* 상점 섹션 머리 — 🚬 담배 5종 / 🌿 비흡연 쉼템 3종 */
.skin-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 5px 1px;
  list-style: none;
  color: #dbe3f2;
  font-size: 11px;
}

.skin-group-head:not(:first-child) {
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.skin-group-head b {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.skin-group-head span {
  color: #7f8aa2;
  font-size: 10px;
  font-weight: 600;
}

.skin-item[data-item-kind="break"] {
  background: rgba(125, 211, 252, 0.035);
}

/* 이 방에서만 쓰는 아이템(담배를 쥔 채 비흡연 방에 들어온 경우) */
.skin-room {
  padding: 1px 6px;
  border: 1px dashed rgba(186, 230, 253, 0.46);
  border-radius: 999px;
  color: #bae6fd;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.skin-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.skin-item[data-status="equipped"] {
  border-color: var(--skin-accent, #fb923c);
  background: linear-gradient(100deg, rgba(251, 146, 60, 0.14), rgba(255, 255, 255, 0.02) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.skin-item[data-status="owned"] {
  border-color: rgba(251, 191, 36, 0.3);
}

.skin-thumb-wrap {
  display: block;
  width: 116px;
  height: 40px;
  border-radius: 10px;
  background: radial-gradient(120% 130% at 30% 10%, rgba(255, 255, 255, 0.07), rgba(6, 8, 14, 0.62));
  overflow: hidden;
}

.skin-thumb {
  display: block;
  width: 100%;
  height: 100%;
}

.skin-copy {
  min-width: 0;
}

.skin-copy b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.skin-tier {
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
}

.skin-copy p {
  margin-top: 2px;
  overflow: hidden;
  color: #a8a094;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skin-buy {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(251, 146, 60, 0.55);
  background: linear-gradient(180deg, #ffc46b, #f97316);
  color: #2a1300;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.skin-buy:hover {
  filter: brightness(1.05);
}

.skin-item[data-status="equipped"] .skin-buy {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.16);
  color: #ffe4b5;
  cursor: default;
}

.skin-item[data-status="owned"] .skin-buy {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(251, 191, 36, 0.12);
  color: #ffe4b5;
}

.skin-item[data-status="short"] .skin-buy {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.skin-item[data-status="short"] .skin-buy::after {
  content: " · 부족";
  font-size: 10px;
  font-weight: 700;
  opacity: 0.8;
}

.skin-item[data-status="buyable"] .skin-buy::after {
  content: "";
}

@media (max-width: 560px) {
  .stage-skins b {
    display: none;
  }

  .stage-skins .sk-short {
    display: inline;
  }

  .stage-skins {
    padding: 0 8px;
    font-size: 12px;
  }

  .skin-item {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px 8px;
  }

  .skin-thumb-wrap {
    width: 88px;
    height: 34px;
  }

  .skin-copy b {
    font-size: 12.5px;
  }

  .skin-copy p {
    font-size: 10px;
  }

  .skin-buy {
    min-height: 44px;
    padding: 0 10px;
    font-size: 11.5px;
  }
}

/* 넓은 화면에서는 담배 5종 + 쉼템 3종이 한눈에 들어오도록 시트를 넉넉히 */
@media (min-width: 821px) {
  .skin-list {
    max-height: min(72vh, 600px);
  }
}

/* ==========================================================================
   재방문 루프 — 시간대 테마 배너 · 누적 휴식 칭호 · 5분 완료 드롭
   ========================================================================== */

/* ── 시간대별 테마 배너 (로비 맨 위) ─────────────────────────────── */

.theme-banner {
  --tb-accent: #fbbf24;
  --tb-wash: rgba(251, 191, 36, 0.16);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 12px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--tb-accent) 38%, transparent);
  border-radius: 15px;
  background:
    radial-gradient(120% 150% at 0% 0%, var(--tb-wash), transparent 62%),
    linear-gradient(120deg, rgba(16, 22, 44, 0.92), rgba(8, 11, 22, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.theme-banner[data-tone="morning"] {
  --tb-accent: #fbbf24;
  --tb-wash: rgba(251, 191, 36, 0.16);
}

.theme-banner[data-tone="lunch"] {
  --tb-accent: #a3e635;
  --tb-wash: rgba(163, 230, 53, 0.14);
}

.theme-banner[data-tone="peak"] {
  --tb-accent: #a855f7;
  --tb-wash: rgba(168, 85, 247, 0.18);
}

.theme-banner[data-tone="offwork"] {
  --tb-accent: #f43f8e;
  --tb-wash: rgba(244, 63, 142, 0.16);
}

.theme-banner[data-tone="night"] {
  --tb-accent: #22d3ee;
  --tb-wash: rgba(34, 211, 238, 0.14);
}

.theme-banner[data-tone="event"] {
  --tb-accent: #ffd166;
  --tb-wash: rgba(255, 209, 102, 0.26);
  border-color: rgba(255, 209, 102, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 209, 102, 0.16),
    0 16px 40px -30px #ffd166;
  animation: tb-event-glow 2.6s ease-in-out infinite;
}

@keyframes tb-event-glow {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(255, 209, 102, 0.14),
      0 16px 40px -32px #ffd166;
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 0 1px rgba(255, 209, 102, 0.3),
      0 20px 46px -26px #ffd166;
  }
}

.theme-banner[data-event="true"] .tb-emoji {
  animation: tb-emoji-bounce 1.6s ease-in-out infinite;
}

@keyframes tb-emoji-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.08);
  }
}

.tb-emoji {
  font-size: 26px;
  line-height: 1;
}

.tb-copy b {
  display: block;
  color: #f6f8ff;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.theme-banner[data-tone="event"] .tb-copy b {
  color: #ffe9b0;
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.5);
}

.tb-copy p {
  margin-top: 2px;
  color: #aeb7d0;
  font-size: 11.5px;
  line-height: 1.5;
}

.tb-clock {
  color: var(--tb-accent);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.tb-bonus {
  padding: 3px 9px;
  border: 1px solid rgba(255, 209, 102, 0.6);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.16);
  color: #ffe9b0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.tb-bonus[hidden] {
  display: none;
}

/* ── 누적 휴식 칭호 줄 ──────────────────────────────────────────── */

.title-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(140px, 210px);
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(20, 26, 48, 0.86), rgba(9, 12, 23, 0.9));
}

.ts-emoji {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 12px;
  background: radial-gradient(120% 120% at 30% 20%, rgba(251, 191, 36, 0.24), rgba(12, 17, 32, 0.9));
  font-size: 20px;
  line-height: 1;
}

.ts-copy b {
  display: block;
  color: #fff3d6;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.ts-copy p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.ts-next {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ts-next span {
  color: #9aa4c0;
  font-size: 10.5px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.ts-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fbbf24, #f43f8e);
  transition: width 0.45s ease;
}

/* ── 내 기록 패널의 칭호 카드 ──────────────────────────────────── */

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 14px;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(251, 191, 36, 0.16), transparent 60%),
    linear-gradient(140deg, rgba(24, 29, 50, 0.9), rgba(10, 13, 24, 0.92));
}

.pt-emoji {
  font-size: 26px;
  line-height: 1;
}

.panel-title b {
  display: block;
  color: #ffe9b0;
  font-size: 15px;
  font-weight: 900;
}

.panel-title p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
}

/* ── 5분 완료 랜덤 드롭 카드 ───────────────────────────────────── */

.drop-wrap {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 79;
  display: grid;
  place-items: center;
  width: min(360px, calc(100vw - 28px));
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.drop-wrap[hidden] {
  display: none;
}

.drop-wrap.is-show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.drop-card {
  --drop-accent: #fbbf24;
  --drop-wash: rgba(251, 191, 36, 0.18);
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 100%;
  padding: 18px 20px 16px;
  border: 1px solid color-mix(in srgb, var(--drop-accent) 52%, transparent);
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 50% -10%, var(--drop-wash), transparent 64%),
    linear-gradient(170deg, rgba(18, 24, 44, 0.97), rgba(8, 11, 21, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 26px 60px -34px #000,
    0 0 40px -22px var(--drop-accent);
  text-align: center;
  overflow: hidden;
}

.drop-card[data-tone="rare"] {
  --drop-accent: #22d3ee;
  --drop-wash: rgba(34, 211, 238, 0.2);
}

.drop-card[data-tone="jackpot"] {
  --drop-accent: #ff7ac3;
  --drop-wash: rgba(244, 63, 142, 0.24);
}

.drop-card[data-tone="fortune"] {
  --drop-accent: #a3e635;
  --drop-wash: rgba(163, 230, 53, 0.18);
}

.drop-card[data-tone="unlock"] {
  --drop-accent: #ffd166;
  --drop-wash: rgba(255, 209, 102, 0.26);
}

.drop-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 74%;
  background: radial-gradient(closest-side, var(--drop-wash), transparent 70%);
  pointer-events: none;
}

.drop-kicker {
  position: relative;
  color: #97a1bd;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.drop-kicker b {
  color: var(--drop-accent);
  font-weight: 900;
}

.drop-emoji {
  position: relative;
  margin: 2px 0 0;
  font-size: 34px;
  line-height: 1;
  animation: drop-pop 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}

@keyframes drop-pop {
  0% {
    transform: scale(0.4) rotate(-12deg);
    opacity: 0;
  }
  70% {
    transform: scale(1.16) rotate(3deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

.drop-title {
  position: relative;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.drop-copy {
  position: relative;
  max-width: 34ch;
  color: #b6bfd6;
  font-size: 11.5px;
  line-height: 1.5;
  word-break: keep-all;
}

.drop-copy:empty {
  display: none;
}

.drop-close {
  position: relative;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--drop-accent) 55%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--drop-accent) 16%, transparent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.drop-close:hover,
.drop-close:focus-visible {
  background: color-mix(in srgb, var(--drop-accent) 28%, transparent);
}

@media (max-width: 560px) {
  .theme-banner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px 12px;
  }

  .tb-clock {
    font-size: 15px;
  }

  .tb-bonus {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .title-strip {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px 12px;
  }

  .ts-next {
    grid-column: 1 / -1;
  }

  .ts-next span {
    text-align: left;
  }

  /* 하단 토스트("자리로 가서 일하세요")와 겹치지 않도록 카드를 그 위에 올린다 */
  .drop-wrap {
    bottom: 176px;
  }

  .drop-card {
    padding: 16px 16px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-banner[data-tone="event"],
  .theme-banner[data-event="true"] .tb-emoji,
  .drop-emoji {
    animation: none;
  }

  .drop-wrap {
    transition: opacity 0.18s ease;
  }
}

/* ══════════════════════════════════════════════════════════════════
   🎮 미니게임 — ⛳ 미니 골프 퍼팅 · 🗑️ 쓰레기통 던지기
   ══════════════════════════════════════════════════════════════════ */

.arena {
  position: relative;
  /* 아케이드 캐비닛 — 넓은 화면에서도 놀이판이 화면을 넘지 않는 폭 */
  max-width: 960px;
  margin: 18px auto 0;
  padding: 14px 16px 12px;
  border: 1px solid rgba(163, 230, 53, 0.32);
  border-radius: var(--radius);
  background:
    radial-gradient(680px 240px at 8% -40%, rgba(163, 230, 53, 0.12), transparent 70%),
    linear-gradient(168deg, rgba(17, 33, 30, 0.82) 0%, rgba(12, 19, 34, 0.86) 55%, rgba(17, 14, 34, 0.86) 100%);
  box-shadow: var(--shadow-card), 0 0 40px -26px #a3e635;
  scroll-margin-top: 92px;
}

.arena-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.arena-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.arena-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(163, 230, 53, 0.45);
  background: rgba(163, 230, 53, 0.1);
  font-size: 20px;
  box-shadow: 0 0 18px -8px rgba(163, 230, 53, 0.8) inset;
}

.arena-kicker {
  color: #a3e635;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.arena-copy h2 {
  margin: 1px 0 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.arena-copy h2 span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.arena-hud {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.arena-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(9, 14, 27, 0.72);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.arena-stat b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 800;
}

.arena-stat--combo[data-hot="true"] {
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.arena-stat--combo[data-hot="true"] b {
  color: #fde68a;
}

.arena-stat--wallet b {
  color: #a3e635;
}

.arena-sound {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(9, 14, 27, 0.72);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
}

.arena-sound:hover,
.arena-sound:focus-visible {
  border-color: rgba(163, 230, 53, 0.6);
}

.arena-tabs {
  display: flex;
  gap: 6px;
  margin: 12px 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.arena-tabs::-webkit-scrollbar {
  display: none;
}

.arena-tab {
  flex: 1 1 0;
  min-width: max-content;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.arena-tab:hover,
.arena-tab:focus-visible {
  border-color: rgba(163, 230, 53, 0.5);
}

.arena-tab.is-active {
  border-color: rgba(163, 230, 53, 0.7);
  background: linear-gradient(180deg, rgba(163, 230, 53, 0.22), rgba(163, 230, 53, 0.08));
  color: #ecfccb;
  box-shadow: 0 0 22px -14px #a3e635;
}

.arena-stage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(163, 230, 53, 0.24);
  background: #06110c;
  box-shadow: 0 18px 36px -30px #000 inset;
}

.arena-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 520;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: crosshair;
}

.arena-gauge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 9px;
}

.arena-gauge-label {
  flex: 0 0 auto;
  color: rgba(163, 230, 53, 0.72);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.arena-gauge-track {
  position: relative;
  flex: 1 1 auto;
  height: 9px;
  border: 1px solid rgba(233, 237, 250, 0.18);
  border-radius: 999px;
  background: rgba(4, 10, 16, 0.72);
  overflow: hidden;
}

.arena-gauge-track i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #a3e635, #fbbf24 62%, #fb7185);
  transition: width 0.06s linear;
}

.arena-hint {
  margin: 0 2px 8px;
  word-break: keep-all;
  color: rgba(233, 237, 250, 0.62);
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
}

.arena-hint b {
  color: #a3e635;
}

.arena-flash {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, 0);
  margin: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(4, 10, 16, 0.82);
  border: 1px solid rgba(163, 230, 53, 0.5);
  color: #ecfccb;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
}

.arena-flash[data-tone="miss"] {
  border-color: rgba(251, 113, 133, 0.55);
  color: #ffe4e6;
}

.arena-flash[data-tone="throw"] {
  border-color: rgba(251, 191, 36, 0.5);
  color: #fef3c7;
}

.arena-flash.is-on {
  animation: arena-flash 1.15s ease forwards;
}

@keyframes arena-flash {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.94);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  76% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -12px) scale(0.98);
  }
}

.arena-tip {
  margin: 9px 2px 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
  word-break: keep-all;
}

.arena-tip b {
  color: #a3e635;
}

/* 출근 전 / 퇴근 후 — 카운트다운 이름표 색을 시간대에 맞춘다 */
.tick-time[data-state="before"] .tick-label {
  color: #fbbf24;
}

.tick-time[data-state="before"] .countdown {
  color: #fde68a;
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.45);
}

.tick-time[data-state="done"] .tick-label {
  color: #a3e635;
}

/* 다른 탭에서는 아케이드를 접는다 — 흡연실·투표·로또·룰렛 화면은 그 주인공만 */
body[data-view="chat"] .arena,
body[data-view="poll"] .arena,
body[data-view="play"] .arena,
body[data-view="lunch"] .arena {
  display: none;
}

/* 미니게임 탭 — 다른 위젯은 접고 아케이드만 남긴다 */
body[data-view="game"] .lounge,
body[data-view="game"] .lounge-stage,
body[data-view="game"] .ticker,
body[data-view="game"] .newsbar,
body[data-view="game"] .playground-head,
body[data-view="game"] .grid {
  display: none;
}

body[data-view="game"].lounge-pinned {
  padding-top: 0;
}

@media (max-width: 820px) {
  .arena {
    padding: 11px 12px 10px;
    border-radius: 16px;
  }

  .arena-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 17px;
  }

  .arena-copy h2 {
    font-size: 15px;
  }

  .arena-copy h2 span {
    display: none;
  }

  .arena-stat {
    padding: 4px 8px;
    font-size: 10px;
  }

  .arena-stat b {
    font-size: 11.5px;
  }

  .arena-tab {
    flex: 1 1 auto;
    min-height: 42px;
    font-size: 12px;
    padding: 0 10px;
  }

  .arena-stage {
    border-radius: 13px;
  }

  .arena-hint {
    margin-bottom: 7px;
    font-size: 10px;
  }

  .arena-gauge-track {
    height: 8px;
  }



  .arena-flash {
    font-size: 12.5px;
    padding: 7px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arena-flash.is-on {
    animation-duration: 0.9s;
  }

  .arena-gauge-track i {
    transition: none;
  }
}
