/* 시크릿 워드 테마 (2026-11-24)
   밤하늘 비밀 회의(어두운 남보라 바탕, 별 무늬, 회의 결과 같은 공개 연출)에
   젤리 파티(굵은 외곽선, 눌리는 입체 버튼, 굵고 좁은 포스터 글꼴(Black Han Sans), 사탕색)를 섞었다.
   모든 패널과 버튼은 같은 굵기의 외곽선과 아래 그림자를 쓴다. 카드 한쪽에만 두꺼운 색 띠를 두지 않는다. */
:root {
  --bg: #15122e;
  --panel: #272058;
  --panel-2: #332b70;
  --panel-3: #3f3685;
  --line: #0d0b22;
  --text: #f6f3ff;
  --text-2: #cdc7f2;
  --text-3: #9d95d1;
  --mint: #3ef0c1;
  --pink: #ff5fa2;
  --yellow: #ffd23f;
  --orange: #ff8a3d;
  --violet: #8a96ff;
  --radius: 18px;
  --display: "Pretendard Variable", Pretendard, sans-serif;
  --display-weight: 800;
  --lift: 0 5px 0 var(--line);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text); font-size: 15px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, #3a2f8a 0, transparent 70%),
    radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.6px),
    radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.6px);
  background-size: auto, 44px 44px, 27px 27px;
  background-position: 0 0, 0 0, 13px 19px;
  background-attachment: fixed;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.sm { min-height: 100vh; display: flex; flex-direction: column; }
.sm-wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 18px 20px 28px; flex: 1; display: flex; flex-direction: column; gap: 18px; }

/* 캐릭터 */
.av { flex: none; display: block; overflow: visible; }
.bob { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-3deg); } }

/* 머리글 */
.sm-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sm-wrap { position: relative; }
.font-btn {
  display: inline-flex; align-items: baseline; gap: 4px; height: 32px; padding: 0 10px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--text); font-family: var(--display); font-weight: var(--display-weight); font-size: 17px; line-height: 28px;
}
.font-btn small { font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 12px; font-weight: 700; color: var(--text-2); }
.font-btn.on, .font-btn:hover { background: var(--panel-3); }
.font-pop {
  position: absolute; right: 0; top: 48px; z-index: 40; width: min(520px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  padding: 12px; background: var(--panel); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 0 var(--line), 0 18px 40px rgba(0, 0, 0, .45);
}
.font-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; text-align: left; border: 2px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--text); }
.font-opt b { font-weight: 400; font-size: 24px; line-height: 1.2; }
.font-opt span { font-size: 12px; color: var(--text-3); }
.font-opt:hover { background: var(--panel-3); }
.font-opt.on { background: var(--mint); color: var(--line); }
.font-opt.on span { color: #10433a; }
.sm-brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex: none; background: none; border: 0; padding: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: 21px; color: var(--text); }
.sm-meta { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-left: auto; font-size: 13px; color: var(--text-2); }
.sm-meta > span { background: var(--panel); border: 2px solid var(--line); border-radius: 99px; padding: 3px 10px; }
.sm-meta b { color: var(--yellow); font-weight: 800; letter-spacing: .06em; }
.sm-link { background: none; border: 0; padding: 0; font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.sm-link:hover { color: var(--mint); }

/* 버튼과 입력 */
.btn {
  border: 3px solid var(--line); background: var(--panel-3); color: var(--text); border-radius: 14px;
  padding: 10px 18px; font-weight: 800; font-size: 15px; box-shadow: var(--lift);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.btn.primary { background: var(--mint); color: var(--line); }
.btn.red { background: var(--pink); color: var(--line); }
.btn.ghost { background: var(--panel-2); color: var(--text-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: var(--lift); filter: none; }
.btn:focus-visible, .field:focus-visible, .chip:focus-visible, .sm-option:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.field {
  width: 100%; border: 3px solid var(--line); border-radius: 14px; padding: 11px 14px; font-size: 16px;
  background: #0f0c28; color: var(--text); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .25);
}
.field::placeholder { color: #6f68a3; }
.field:focus { border-color: var(--mint); outline: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 160px; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }

/* 첫 화면 */
.sm-hero { padding: 18px 0 4px; text-align: center; }
.sm-crew { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.sm-crew .av:nth-child(2) { animation-delay: .2s; }
.sm-crew .av:nth-child(3) { animation-delay: .4s; }
.sm-crew .av:nth-child(4) { animation-delay: .6s; }
.sm-crew .av:nth-child(5) { animation-delay: .8s; }
.sm-crew .av:nth-child(6) { animation-delay: 1s; }
.sm-crew .av:nth-child(7) { animation-delay: 1.2s; }
.sm-hero .eyebrow { max-width: none; margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--mint); letter-spacing: .08em; }
.sm-hero h1 {
  margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(30px, 6vw, 48px); line-height: 1.2;
  color: var(--text); text-shadow: 0 4px 0 var(--line);
}
.sm-hero p { margin: 14px auto 0; max-width: 36em; color: var(--text-2); }
.sm-name { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 420px; margin: 0 auto; }
.sm-name label { font-size: 13px; font-weight: 800; color: var(--text-2); }
.av-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.av-opt { display: grid; place-items: center; padding: 6px 0 4px; border: 2px solid var(--line); border-radius: 12px; background: var(--panel); transition: transform .1s ease; }
.av-opt:hover { transform: translateY(-2px); background: var(--panel-2); }
.av-opt.on { background: var(--mint); box-shadow: 0 3px 0 var(--line); }
.av-opt:disabled { opacity: .3; cursor: not-allowed; transform: none; }
.av-name { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: var(--mint); text-align: center; }
.sm-profile { padding-top: 6px; border-top: 2px dashed rgba(255, 255, 255, .12); }
.sm-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sm-option {
  text-align: left; border: 3px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text);
  padding: 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 6px 0 var(--line);
  transition: transform .12s ease, box-shadow .12s ease;
}
button.sm-option:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--line); }
button.sm-option:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--line); }
.sm-option strong { font-family: var(--display); font-weight: var(--display-weight); font-size: 19px; }
.sm-option span { font-size: 13px; color: var(--text-2); }
.sm-option.dark { background: var(--mint); color: var(--line); }
.sm-option.dark span { color: #10433a; }
.sm-option:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.sm-credit { font-size: 12px; color: var(--text-3); border-top: 2px dashed rgba(255, 255, 255, .12); padding-top: 14px; margin-top: auto; }

/* 방 */
.sm-room { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.sm-side { display: flex; flex-direction: column; gap: 14px; }
.sm-players { list-style: none; margin: 0; padding: 6px; border: 3px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 6px 0 var(--line); }
.sm-players li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 10px; padding: 8px; border-radius: 12px; }
.sm-players li + li { margin-top: 2px; }
.sm-players li .av { grid-row: span 2; }
.sm-players li.setter { background: var(--panel-3); }
.sm-players li.off { opacity: .55; }
.sm-players .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-players .sc { font-family: var(--display); font-weight: var(--display-weight); font-size: 17px; color: var(--yellow); text-align: right; }
.sm-players .st { grid-column: 2 / -1; font-size: 12px; color: var(--text-3); display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; border: 2px solid var(--line); color: var(--text-2); background: var(--panel-2); }
.tag.on { background: var(--pink); color: var(--line); }
.tag.warn { background: var(--orange); color: var(--line); }
.sm-log { font-size: 12.5px; color: var(--text-3); max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 5px; padding: 0 4px; }
.sm-log p { margin: 0; }
.sm-log p:first-child { color: var(--text); }

.sm-stage { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sm-phase { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sm-phase h2 { margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: 23px; line-height: 1.3; }
.sm-timer {
  white-space: nowrap; flex: none;
  font-family: var(--display); font-weight: var(--display-weight); font-size: 22px; min-width: 64px; text-align: center; padding: 4px 12px;
  background: var(--panel); border: 3px solid var(--line); border-radius: 14px; box-shadow: 0 4px 0 var(--line); font-variant-numeric: tabular-nums;
}
.sm-timer.low { background: var(--pink); color: var(--line); animation: beat 1s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.06); } }
.sm-bar { height: 10px; background: #0f0c28; border: 3px solid var(--line); border-radius: 99px; overflow: hidden; }
.sm-bar i { display: block; height: 100%; background: var(--mint); transform-origin: left; }
.sm-panel {
  border: 3px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px;
  background: var(--panel); box-shadow: 0 6px 0 var(--line);
}
.sm-note { margin: 0; color: var(--text-2); }
.sm-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.sm-log::-webkit-scrollbar, .sm-wrap ::-webkit-scrollbar { width: 8px; }
.sm-log::-webkit-scrollbar-track { background: transparent; }
.sm-log::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 99px; }
.sm-log { scrollbar-color: var(--panel-3) transparent; scrollbar-width: thin; }
.sm-note b { color: var(--yellow); }

/* 대기실 자리 */
.sm-seats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.seat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; background: var(--panel-2); border-radius: 14px; border: 2px solid var(--line); min-width: 0; }
.seat span { font-size: 12px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat.empty { background: transparent; border-style: dashed; border-color: rgba(255, 255, 255, .18); }
.seat.empty i { width: 52px; height: 52px; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .2); }
.seat.empty span { color: var(--text-3); font-weight: 600; }

/* 봉투 */
.sm-envelope { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 3px solid var(--line); background: var(--yellow); color: var(--line); border-radius: 14px; padding: 10px 18px;
  font-family: var(--display); font-weight: var(--display-weight); font-size: 18px; box-shadow: var(--lift); transition: transform .08s ease, box-shadow .08s ease;
}
.chip:hover { transform: translateY(-2px); }
.chip.sel { background: var(--mint); transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.chip.used { background: var(--panel-2); color: var(--text-3); text-decoration: line-through; cursor: default; box-shadow: none; }

/* 히든 워드 */
.sm-secret { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.sm-secret b {
  font-family: var(--display); font-weight: var(--display-weight); font-size: 24px; color: var(--line); background: var(--pink);
  padding: 4px 14px; border-radius: 12px; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line);
}

/* 유사도 공개 카드 */
.sm-hints { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 12px; }
.hint {
  border: 3px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-height: 112px;
  background: var(--panel-3); box-shadow: 0 5px 0 var(--line); transition: background .25s ease, transform .2s ease;
}
.hint .w { font-weight: 800; font-size: 16px; min-height: 24px; }
.hint .w.hid { color: var(--text-3); letter-spacing: .25em; }
.hint .n { font-family: var(--display); font-weight: var(--display-weight); font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.hint .n small { font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 14px; font-weight: 800; margin-left: 2px; }
.hint .bars { display: flex; flex-direction: column; gap: 3px; }
.hint .bars i { display: block; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.hint.spin { background: var(--panel-2); }
.hint.spin .n { color: var(--violet); }
.hint.spin .bars i { animation: barblink .9s ease-in-out infinite; }
.hint.spin .bars i:nth-child(2) { animation-delay: .3s; }
.hint.spin .bars i:nth-child(3) { animation-delay: .6s; }
@keyframes barblink { 0%, 100% { background: rgba(255, 255, 255, .12); } 50% { background: var(--mint); } }
.hint .lbl { font-size: 11px; color: var(--text-3); }
.hint.b-low { background: #2c2660; color: var(--text-2); }
.hint.b-mid { background: var(--yellow); color: var(--line); }
.hint.b-high { background: var(--orange); color: var(--line); animation: shake .35s ease 1; }
.hint.b-top { background: var(--pink); color: var(--line); animation: pop .5s ease 1; }
.hint.b-mid .lbl, .hint.b-high .lbl, .hint.b-top .lbl { color: rgba(13, 11, 34, .6); }
.hint.b-mid .bars i, .hint.b-high .bars i, .hint.b-top .bars i { background: rgba(13, 11, 34, .2); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px) rotate(-1deg); } 75% { transform: translateX(4px) rotate(1deg); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.1) rotate(-2deg); } 100% { transform: scale(1); } }
.hint.empty { background: transparent; border: 3px dashed rgba(255, 255, 255, .16); box-shadow: none; color: #5d5694; justify-content: center; align-items: center; font-family: var(--display); font-weight: var(--display-weight); font-size: 18px; }
.sm-flash { position: fixed; inset: 0; pointer-events: none; background: var(--pink); opacity: 0; z-index: 50; }
.sm-flash.go { animation: flash 1.1s ease 1; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: .5; } 100% { opacity: 0; } }

/* 공개 단어 */
.sm-reveal { display: flex; flex-wrap: wrap; gap: 10px; }
.sm-reveal .rv {
  border: 3px solid var(--line); border-radius: 16px; padding: 10px 16px; display: flex; align-items: baseline; gap: 10px;
  background: var(--violet); color: var(--line); box-shadow: 0 5px 0 var(--line);
}
.sm-reveal .rv span { font-size: 12px; font-weight: 800; color: rgba(13, 11, 34, .65); }
.sm-reveal .rv b { font-family: var(--display); font-weight: var(--display-weight); font-size: 26px; }
.sm-reveal .rv em { font-style: normal; font-family: var(--display); font-weight: var(--display-weight); font-size: 18px; }

/* 답 카드: 회의 결과 발표처럼 한 장씩 뒤집는다 */
.sm-answers { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; perspective: 800px; }
.ans {
  border: 3px solid var(--line); border-radius: 16px; padding: 12px; min-height: 92px; display: flex; flex-direction: column; gap: 6px;
  background: var(--panel-3); box-shadow: 0 5px 0 var(--line); transform-style: preserve-3d;
}
.ans .who { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); font-weight: 800; }
.ans .what { font-family: var(--display); font-weight: var(--display-weight); font-size: 20px; }
.ans.closed { background: #0f0c28; }
.ans.closed .what { color: #4c4588; letter-spacing: .3em; }
.ans.flip { animation: flip .5s ease 1; }
.ans.ok { background: var(--mint); color: var(--line); }
.ans.ok .who { color: #10433a; }
@keyframes flip { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
.sm-outcome { font-family: var(--display); font-weight: var(--display-weight); font-size: 19px; margin: 0; line-height: 1.4; }

/* 결과 표 */
.sm-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-variant-numeric: tabular-nums; }
.sm-table th { text-align: left; padding: 4px 10px; font-size: 12px; color: var(--text-3); font-weight: 800; }
.sm-table td { text-align: left; padding: 10px; font-size: 14px; background: var(--panel-2); }
.sm-table td:first-child { border-radius: 12px 0 0 12px; font-family: var(--display); font-weight: var(--display-weight); }
.sm-table td:last-child { border-radius: 0 12px 12px 0; }
.sm-table td.num { text-align: right; font-weight: 800; }
.sm-table td.who { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.sm-table tr.me td { background: var(--panel-3); }
.sm-table tbody tr:first-child td { background: var(--yellow); color: var(--line); }
.lv { font-weight: 800; }
.lv.up { color: var(--mint); }
.sm-table tbody tr:first-child .lv.up { color: var(--line); }
details summary { cursor: pointer; color: var(--text-2); font-weight: 700; }
details ul { color: var(--text-2); }

/* 탭 */
.sm-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-tabs button { border: 3px solid var(--line); background: var(--panel); color: var(--text-2); border-radius: 99px; padding: 6px 14px; font-weight: 800; font-size: 13px; box-shadow: 0 3px 0 var(--line); }
.sm-tabs button.on { background: var(--yellow); color: var(--line); }

/* 오늘의 퍼즐 */
.sm-clues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sm-clues li { display: grid; grid-template-columns: 30px 1fr 64px; align-items: center; gap: 6px 10px; padding: 10px 12px; background: var(--panel-2); border: 2px solid var(--line); border-radius: 14px; }
.sm-clues .i { font-family: var(--display); font-weight: var(--display-weight); color: var(--text-3); }
.sm-clues .w { font-family: var(--display); font-weight: var(--display-weight); font-size: 19px; }
.sm-clues .s { text-align: right; font-family: var(--display); font-weight: var(--display-weight); color: var(--yellow); }
.sm-clues .meter { grid-column: 2 / -1; height: 6px; background: #0f0c28; border-radius: 99px; overflow: hidden; }
.sm-clues .meter i { display: block; height: 100%; background: var(--mint); }

.sm-rules h3 { margin: 18px 0 6px; font-family: var(--display); font-weight: var(--display-weight); font-size: 17px; color: var(--yellow); }
.sm-rules ul { margin: 0; padding-left: 1.2em; color: var(--text-2); }
.sm-rules li + li { margin-top: 4px; }

.sm-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--mint); color: var(--line); border: 3px solid var(--line); box-shadow: var(--lift); padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 800; max-width: calc(100% - 32px); z-index: 60; }
.sm-demo { margin: 0; background: var(--panel-2); border: 2px dashed var(--violet); border-radius: 14px; padding: 8px 14px; font-size: 13px; color: var(--text-2); }
.sm-banner { background: var(--orange); color: var(--line); border: 3px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 800; margin: 0; }
.embedded .sm-hero p, .embedded .sm-hero .eyebrow { display: none; }

/* 엑셀 전환 버튼: 머리글에서 눈에 띄게 */
.skin-btn { background: #1f9d55; color: #fff; padding: 6px 12px; font-size: 13px; border-radius: 10px; box-shadow: 0 4px 0 var(--line); }
.skin-btn::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 2px solid #fff; border-radius: 2px;
  background: linear-gradient(#fff 0 0) 50% 0 / 2px 100% no-repeat, linear-gradient(#fff 0 0) 0 50% / 100% 2px no-repeat; }
.sm-ready { justify-content: space-between; }
.sm-ready .btn { min-width: 140px; font-size: 17px; }

/* 모바일: 참가자는 위쪽 가로 띠, 진행 기록은 숨김, 글자와 카드 크기를 줄인다 */
@media (max-width: 720px) {
  body { font-size: 14px; }
  .sm-wrap { padding: 10px 10px 18px; gap: 10px; }
  .sm-top { gap: 8px; }
  .sm-brand { font-size: 17px; }
  .sm-brand .av { width: 24px; height: 24px; }
  .sm-meta { gap: 6px; flex-wrap: nowrap; }
  .sm-meta > span { display: none; }
  .skin-long { display: none; }
  .sm-meta > span:nth-child(2), .sm-meta > span:nth-child(3), .sm-meta .sm-link { display: none; }
  .skin-btn { padding: 5px 9px; font-size: 12px; }
  .font-btn { height: 28px; padding: 0 8px; font-size: 15px; line-height: 24px; }
  .font-btn small { display: none; }
  .font-pop { right: 0; top: 40px; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
  .font-opt { padding: 8px; }
  .font-opt b { font-size: 19px; }
  .sm-hero { padding: 4px 0 0; }
  .sm-crew { gap: 2px; margin-bottom: 8px; }
  .sm-crew .av { width: 28px; height: 28px; }
  .av-opt .av { width: 50px; height: 50px; }
  .sm-hero h1 { font-size: 26px; }
  .sm-hero p { font-size: 13px; margin-top: 8px; }
  .sm-menu { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sm-option { padding: 12px; border-radius: 14px; box-shadow: 0 4px 0 var(--line); }
  .sm-option strong { font-size: 15px; }
  .sm-option span { font-size: 12px; }
  .sm-option:has(input) { grid-column: 1 / -1; }
  .sm-room { grid-template-columns: 1fr; gap: 10px; }
  .sm-side { order: -1; }
  .sm-players { display: flex; gap: 4px; overflow-x: auto; padding: 6px; border-radius: 14px; box-shadow: 0 4px 0 var(--line); scrollbar-width: none; }
  .sm-players li { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 8px; min-width: 64px; }
  .sm-players li + li { margin-top: 0; }
  .sm-players li .av { width: 28px; height: 28px; }
  .sm-players .nm { font-size: 12px; max-width: 64px; }
  .sm-players .sc { font-size: 14px; }
  .sm-players .st { display: none; }
  .sm-log { display: none; }
  .sm-phase h2 { font-size: 17px; }
  .sm-timer { font-size: 16px; min-width: 50px; padding: 2px 8px; border-radius: 10px; box-shadow: 0 3px 0 var(--line); }
  .sm-bar { height: 8px; }
  .sm-panel { padding: 12px; gap: 10px; border-radius: 14px; box-shadow: 0 4px 0 var(--line); }
  .sm-hints { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hint { min-height: 78px; padding: 8px; border-radius: 12px; gap: 3px; box-shadow: 0 3px 0 var(--line); }
  .hint .w { font-size: 13px; min-height: 18px; }
  .hint .n { font-size: 24px; }
  .hint .n small { font-size: 11px; }
  .hint .lbl { display: none; }
  .hint.empty { font-size: 15px; }
  .chip { font-size: 15px; padding: 8px 12px; }
  .sm-envelope { gap: 8px; }
  .sm-secret b { font-size: 19px; padding: 2px 10px; }
  .sm-reveal .rv { padding: 6px 12px; }
  .sm-reveal .rv b { font-size: 20px; }
  .sm-answers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ans { min-height: 70px; padding: 8px; }
  .ans .what { font-size: 16px; }
  .sm-outcome { font-size: 16px; }
  .sm-seats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .seat .av { width: 40px; height: 40px; }
  .seat.empty i { width: 40px; height: 40px; }
  .btn { padding: 9px 14px; font-size: 14px; }
  .row > .field { min-width: 0; }
  .sm-form .row .btn.primary, .sm-ready .btn { flex: 1; }
  .sm-table td, .sm-table th { padding: 7px 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 엑셀 위장 모드 ----------
   Mac용 스프레드시트 화면처럼 보이게 한다. 특정 회사 로고는 쓰지 않는다. 애니메이션과 효과는 모두 끈다. */
body.xl-on { background: #fff; color: #1f1f1f; font-family: "맑은 고딕", "Malgun Gothic", "Apple SD Gothic Neo", "Pretendard Variable", sans-serif; font-size: 13px; }
body.xl-on *, body.xl-on *::before, body.xl-on *::after { animation: none !important; transition: none !important; }
.xl { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: #fff; }
.xl svg { flex: none; }
.xl-title { position: relative; display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 12px; background: #f3f3f3; color: #333; font-size: 12.5px; flex: none; }
.xl-lights { display: flex; gap: 8px; }
.xl-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; border: .5px solid rgba(0, 0, 0, .15); }
.xl-lights i:nth-child(2) { background: #febc2e; }
.xl-lights i:nth-child(3) { background: #28c840; }
.xl-auto { display: flex; align-items: center; gap: 6px; color: #555; }
.xl-auto b { width: 30px; height: 16px; border-radius: 99px; background: #d0d0d0; position: relative; }
.xl-auto b::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.xl-qa { display: flex; align-items: center; gap: 10px; color: #555; }
.xl-qa .dim { opacity: .35; }
.xl-file { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.xl-file i { font-style: normal; color: #777; }
.xl-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.xl-share { display: inline-flex; align-items: center; gap: 4px; background: #1d7044; color: #fff; border-radius: 99px; padding: 4px 12px; font-size: 12.5px; }
.xl-share svg { stroke: #fff; }
.xl-menu { display: flex; gap: 4px; padding: 0 12px; background: #f3f3f3; font-size: 13px; flex: none; overflow: hidden; white-space: nowrap; }
.xl-menu span { padding: 6px 9px 7px; color: #333; }
.xl-menu span.on { color: #1d7044; font-weight: 700; box-shadow: inset 0 -3px 0 #1d7044; }
.xl-ribbon { display: flex; align-items: stretch; background: #fafafa; border-bottom: 1px solid #dcdcdc; padding: 6px 4px; flex: none; overflow: hidden; font-size: 12px; color: #333; }
.xl-g { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-right: 1px solid #e2e2e2; }
.xl-big { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 40px; text-align: center; line-height: 1.15; }
.xl-big small { font-size: 11px; color: #333; }
.xl-col { display: flex; flex-direction: column; gap: 5px; }
.xl-col > span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.xl-sel { display: inline-flex; align-items: center; justify-content: space-between; height: 22px; padding: 0 6px; border: 1px solid #c8c8c8; border-radius: 4px; background: #fff; font-size: 12px; }
.xl-sel i { font-style: normal; color: #666; margin-left: 6px; }
.xl-t { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 22px; font-size: 13px; font-weight: 400; color: #333; text-decoration: none; }
b.xl-t { font-weight: 700; }
i.xl-t { font-style: italic; }
u.xl-t { text-decoration: underline; }
.xl-t.on { background: #e5e5e5; border-radius: 3px; }
.xl-t sup, .xl-t sub { font-size: 8px; }
.xl-bucket { box-shadow: inset 0 -3px 0 #ffff00; }
.xl-color { color: #c00000; box-shadow: inset 0 -3px 0 #e00000; }
.xl-sep { width: 1px; height: 16px; background: #d6d6d6; margin: 0 2px; }
.xl-styles { display: grid; grid-template-columns: repeat(3, 86px); gap: 3px; }
.xl-styles span { height: 24px; padding: 0 6px; display: flex; align-items: center; font-size: 12px; border: 1px solid transparent; }
.xl-styles .st-n { background: #fff; border-color: #1d7044; }
.xl-styles .st-bad { background: #ffc7ce; color: #9c0006; }
.xl-styles .st-mid { background: #ffeb9c; color: #9c5700; }
.xl-styles .st-good { background: #c6efce; color: #006100; }
.xl-styles .st-warn { color: #e00000; }
.xl-styles .st-calc { background: #f2f2f2; color: #fa7d00; border-color: #7f7f7f; font-weight: 700; }
.xl-fbar { display: flex; align-items: stretch; height: 28px; border-bottom: 1px solid #dcdcdc; background: #fff; flex: none; font-size: 12.5px; }
.xl-name { width: 92px; border-right: 1px solid #dcdcdc; padding: 5px 8px; display: flex; justify-content: space-between; }
.xl-name i { font-style: normal; font-size: 9px; color: #888; letter-spacing: -1px; }
.xl-fxs { width: 82px; border-right: 1px solid #dcdcdc; padding: 5px 10px; color: #999; display: flex; gap: 10px; }
.xl-fxs em { color: #555; font-family: Georgia, serif; }
.xl-formula { flex: 1; padding: 5px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1f1f1f; }
.xl-grid { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.xl-cols { display: flex; flex: none; background: #f7f7f7; border-bottom: 1px solid #c9c9c9; font-size: 12px; color: #444; overflow: hidden; }
.xl-cols i { flex: none; width: 32px; border-right: 1px solid #c9c9c9; }
.xl-cols span { flex: none; width: 96px; text-align: center; border-right: 1px solid #dedede; padding: 3px 0; }
.xl-cols span.on, .xl-rows span.on { background: #dfe9e2; color: #1d7044; font-weight: 700; box-shadow: inset 0 -2px 0 #1d7044; }
.xl-rows span.on { box-shadow: inset -2px 0 0 #1d7044; }
.xl-body { flex: 1; display: flex; min-height: 0; overflow: auto; }
.xl-rows { flex: none; width: 32px; background: #f7f7f7; border-right: 1px solid #c9c9c9; font-size: 12px; color: #444; position: sticky; left: 0; z-index: 2; }
.xl-rows span { display: block; height: 24px; line-height: 24px; text-align: center; border-bottom: 1px solid #e3e3e3; }
.xl-sheet { position: relative; flex: 1; min-width: 0;
  background-image: linear-gradient(#e3e3e3 1px, transparent 1px), linear-gradient(90deg, #e3e3e3 1px, transparent 1px);
  background-size: 96px 24px; background-position: -1px -1px; }
.xl-a1 { position: absolute; left: 0; top: 0; width: 96px; height: 24px; border: 2px solid #1d7044; pointer-events: none; z-index: 1; }
.xl-a1::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 5px; height: 5px; background: #1d7044; border: 1px solid #fff; }
.xl-tabs { display: flex; align-items: stretch; height: 30px; background: #f3f3f3; border-top: 1px solid #d6d6d6; flex: none; font-size: 12.5px; }
.xl-tabs .xl-nav { padding: 6px 14px; color: #999; font-size: 10px; }
.xl-tabs span.on { background: #fff; color: #1d7044; font-weight: 700; padding: 6px 22px; box-shadow: inset 0 -2px 0 #1d7044; }
.xl-tabs .xl-plus { padding: 4px 12px; font-size: 16px; color: #555; }
.xl-tabs button { margin-left: auto; margin-right: 8px; border: 0; background: none; color: #8a8a8a; font-size: 11.5px; }
.xl-status { display: flex; align-items: center; gap: 20px; height: 26px; padding: 0 12px; background: #f3f3f3; border-top: 1px solid #e2e2e2; color: #444; font-size: 12px; flex: none; }
.xl-zoom { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.xl-zoom b { font-weight: 400; color: #666; }
.xl-zoom b:first-child { background: #e0e0e0; border-radius: 3px; padding: 0 3px; }
.xl-zoom i { width: 120px; height: 2px; background: #9c9c9c; position: relative; }
.xl-zoom em { position: absolute; left: 50%; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 1px solid #9c9c9c; }

/* 게임 요소를 업무 시트의 표처럼: 회색 머리 셀, 형광 노랑 강조, 연한 하늘색 빈칸 */
.xl .sm-wrap { max-width: none; margin: 0; padding: 24px 0 0 0; gap: 0; display: block; }
.xl .sm-top, .xl .sm-hero .sm-crew, .xl .sm-hero h1, .xl .sm-hero .eyebrow, .xl .av, .xl .sm-credit, .xl .sm-bar { display: none !important; }
.xl .sm-hero { padding: 0; text-align: left; }
.xl .sm-hero p { margin: 0; padding: 0 8px; height: 24px; line-height: 24px; font-size: 13px; color: #1f1f1f; text-align: left; max-width: none; }
.xl .sm-name { margin: 0; max-width: none; flex-direction: row; align-items: center; gap: 0; }
.xl .sm-name label, .xl .sm-note, .xl .small, .xl .muted { color: #1f1f1f; font-size: 13px; font-weight: 400; }
.xl .sm-name label { width: 192px; padding: 0 8px; background: #d9d9d9; border: 1px solid #a6a6a6; height: 24px; line-height: 22px; text-align: center; font-weight: 700; }
.xl .field { border: 1px solid #a6a6a6; border-radius: 0; background: #fff; color: #1f1f1f; box-shadow: none; height: 24px; padding: 0 6px; font-size: 13px; }
.xl .sm-name .field { max-width: 288px; }
.xl .field:focus { border: 2px solid #1d7044; }
.xl .field::placeholder { color: #9a9a9a; }
.xl .btn, .xl .chip, .xl .sm-tabs button {
  font-family: inherit; font-size: 12.5px; font-weight: 400; color: #1f1f1f; background: #fff; border: 1px solid #a6a6a6; border-radius: 0;
  box-shadow: none; padding: 0 10px; height: 24px; line-height: 22px; transform: none !important; filter: none; min-width: 96px;
}
.xl .btn.primary, .xl .chip.sel, .xl .sm-tabs button.on { background: #ffff00; border-color: #a6a6a6; color: #1f1f1f; }
.xl .chip { background: #dae9f8; }
.xl .chip.used { color: #9a9a9a; background: #f2f2f2; }
.xl .skin-btn { display: none; }
.xl .sm-link { color: #0563c1; font-size: 12.5px; }
.xl .sm-menu { display: grid; grid-template-columns: repeat(3, 288px); gap: 0; margin-top: 24px; }
.xl .sm-option { border: 1px solid #a6a6a6; border-radius: 0; background: #fff; color: #1f1f1f; box-shadow: none; padding: 2px 8px; gap: 0; min-height: 48px; transform: none !important; margin: -1px 0 0 -1px; text-align: center; align-items: center; justify-content: center; }
.xl .sm-option strong { font-family: inherit; font-size: 13px; font-weight: 700; }
.xl .sm-option span { font-size: 12px; color: #444; }
.xl .sm-option.dark { background: #ffff00; color: #1f1f1f; }
.xl .sm-option.dark span { color: #444; }
.xl .sm-room { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 0; }
.xl .sm-side { gap: 0; }
.xl .sm-players { border: 1px solid #a6a6a6; border-radius: 0; background: #fff; box-shadow: none; padding: 0; display: block; }
.xl .sm-players::before { content: "참가자    점수"; display: block; height: 24px; line-height: 24px; background: #d9d9d9; font-weight: 700; text-align: center; border-bottom: 1px solid #a6a6a6; white-space: pre; }
.xl .sm-players li { display: grid; grid-template-columns: 1fr 96px; padding: 0; border-radius: 0; border-bottom: 1px solid #d0d0d0; min-height: 24px; }
.xl .sm-players li.setter { background: #ffff00; }
.xl .sm-players .nm { padding: 2px 8px; font-weight: 400; font-size: 13px; border-right: 1px solid #d0d0d0; text-align: center; }
.xl .sm-players .sc { font-family: inherit; font-size: 13px; color: #1f1f1f; padding: 2px 8px; text-align: right; }
.xl .sm-players .st { display: none; }
.xl .sm-log { color: #444; font-size: 12px; padding: 4px 8px; max-height: 120px; }
.xl .sm-log p:first-child { color: #1f1f1f; }
.xl .tag { border: 0; background: none; color: #444; font-weight: 400; padding: 0; }
.xl .sm-stage { gap: 0; }
.xl .sm-phase { height: 24px; padding: 0 8px; background: #d9d9d9; border: 1px solid #a6a6a6; border-left: 0; }
.xl .sm-phase h2 { font-family: inherit; font-size: 13px; font-weight: 700; }
.xl .sm-timer { font-family: inherit; font-size: 13px; background: none; border: 0; box-shadow: none; padding: 0; color: #1f1f1f; min-width: 0; }
.xl .sm-timer.low { color: #e00000; background: none; }
.xl .sm-panel, .xl .sm-demo, .xl .sm-banner { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 4px 8px; gap: 4px; color: #1f1f1f; font-size: 13px; font-weight: 400; }
.xl .sm-secret { font-size: 13px; color: #1f1f1f; }
.xl .sm-secret b { font-family: inherit; font-size: 13px; font-weight: 700; color: #1f1f1f; background: #ffff00; border: 1px solid #a6a6a6; border-radius: 0; box-shadow: none; padding: 1px 12px; }
.xl .sm-hints, .xl .sm-answers { grid-template-columns: repeat(auto-fill, 144px); gap: 0; }
.xl .hint, .xl .ans { border: 1px solid #a6a6a6; border-radius: 0; box-shadow: none; background: #fff; color: #1f1f1f; min-height: 48px; padding: 2px 8px; gap: 0; margin: -1px 0 0 -1px; text-align: center; align-items: center; justify-content: center; }
.xl .hint .n, .xl .ans .what { font-family: inherit; font-size: 13px; font-weight: 400; }
.xl .hint .n small { font-size: 13px; font-weight: 400; }
.xl .hint .w, .xl .ans .who { font-size: 12px; color: #444; font-weight: 400; min-height: 0; justify-content: center; }
.xl .hint .bars, .xl .hint .lbl { display: none; }
.xl .hint.spin .n { color: #9a9a9a; }
.xl .hint.b-low { background: #fff; }
.xl .hint.b-mid { background: #ffeb9c; color: #9c5700; }
.xl .hint.b-high { background: #fcd5b4; color: #974706; }
.xl .hint.b-top { background: #ffc7ce; color: #9c0006; }
.xl .hint.empty { border-style: solid; background: #dae9f8; color: #dae9f8; font-family: inherit; font-size: 12px; }
.xl .ans.closed { background: #dae9f8; }
.xl .ans.closed .what { color: #9a9a9a; letter-spacing: 0; }
.xl .ans.ok { background: #c6efce; color: #006100; }
.xl .sm-reveal { gap: 0; }
.xl .sm-reveal .rv { border: 1px solid #a6a6a6; border-radius: 0; box-shadow: none; background: #ffff00; color: #1f1f1f; padding: 1px 12px; }
.xl .sm-reveal .rv span { color: #444; font-weight: 400; }
.xl .sm-reveal .rv b, .xl .sm-reveal .rv em, .xl .sm-outcome { font-family: inherit; font-size: 13px; font-weight: 700; }
.xl .sm-seats { grid-template-columns: repeat(7, 96px); gap: 0; }
.xl .seat { border: 1px solid #a6a6a6; border-radius: 0; background: #fff; padding: 2px; margin: -1px 0 0 -1px; }
.xl .seat span { font-weight: 400; color: #1f1f1f; }
.xl .seat.empty { background: #dae9f8; }
.xl .seat.empty span { color: #dae9f8; }
.xl .seat.empty i { display: none; }
.xl .sm-envelope { gap: 0; }
.xl .sm-ready .btn { min-width: 144px; font-size: 12.5px; }
.xl .sm-table { border-collapse: collapse; border-spacing: 0; width: auto; }
.xl .sm-table th, .xl .sm-table td { border: 1px solid #a6a6a6; border-radius: 0 !important; background: #fff !important; color: #1f1f1f !important; font-family: inherit !important; font-size: 13px; font-weight: 400; padding: 1px 12px; min-width: 96px; text-align: center; }
.xl .sm-table th { background: #d9d9d9 !important; font-weight: 700; }
.xl .sm-table tbody tr:first-child td { background: #ffff00 !important; }
.xl .sm-table td.who { display: table-cell; }
.xl .sm-clues li { border: 1px solid #a6a6a6; border-radius: 0; background: #fff; padding: 1px 8px; margin-top: -1px; }
.xl .sm-clues .w, .xl .sm-clues .s, .xl .sm-clues .i { font-family: inherit; font-size: 13px; color: #1f1f1f; }
.xl .sm-clues .meter { background: #fff; height: 6px; }
.xl .sm-clues .meter i { background: #638ec6; }
.xl .sm-rules h3 { font-family: inherit; color: #1f1f1f; font-size: 13px; font-weight: 700; }
.xl .sm-rules ul { color: #1f1f1f; }
body.xl-on .sm-toast { background: #fff; color: #1f1f1f; border: 1px solid #b4b4b4; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); font-weight: 400; border-radius: 4px; bottom: 64px; }
@media (max-width: 900px) {
  .xl-m2, .xl-auto, .xl-qa, .xl-acc { display: none !important; }
}
@media (max-width: 720px) {
  .xl-m1, .xl-right .xl-share ~ svg { display: none !important; }
  .xl-file { position: static; transform: none; font-size: 12px; }
  .xl-file span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .xl .sm-menu { grid-template-columns: repeat(2, 144px); }
  .xl .sm-room { grid-template-columns: 1fr; }
  .xl .sm-side { order: 0; }
  .xl .sm-players { display: block; }
  .xl .sm-players li { display: grid; flex-direction: row; min-width: 0; }
  .xl .sm-hints, .xl .sm-answers { grid-template-columns: repeat(2, 144px); }
  .xl .sm-seats { grid-template-columns: repeat(4, 72px); }
  .xl-zoom i { width: 60px; }
}
.xl .sm-log { scrollbar-color: #c1c1c1 transparent; }
.xl .sm-log::-webkit-scrollbar-thumb { background: #c1c1c1; }
.xl .sm-log::-webkit-scrollbar { width: 6px; }
.xl .av-pick, .xl .av-name, .xl .av-label { display: none !important; }

/* 대기실: 초대 코드 카드, 참가자 준비 상태, 준비 현황, 큰 준비 단추, 시작 카운트다운 */
.lb { gap: 16px; }
.lb-code { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; background: var(--panel-2); border: 2px solid var(--line); border-radius: 14px; }
.lb-code span { font-size: 13px; font-weight: 800; color: var(--text-2); }
.lb-code b { font-family: var(--display); font-weight: var(--display-weight); font-size: 30px; letter-spacing: .12em; color: var(--yellow); }
.lb-code .btn { margin-left: auto; }
.lb .seat { position: relative; padding: 12px 4px 10px; gap: 4px; }
.lb .seat .nm { font-size: 13px; }
.lb .seat em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--panel-3); color: var(--text-3); border: 2px solid var(--line); }
.lb .seat.ready { background: #1f6f63; border-color: var(--line); }
.lb .seat.ready em { background: var(--mint); color: var(--line); }
.lb .seat.mine { box-shadow: 0 0 0 3px var(--yellow); }
.lb-status p { margin: 8px 0 0; color: var(--text-2); font-size: 14px; }
.lb-status b { color: var(--text); }
.lb-bar { height: 12px; background: #0f0c28; border: 3px solid var(--line); border-radius: 99px; overflow: hidden; }
.lb-bar i { display: block; height: 100%; background: var(--mint); transition: width .3s ease; }
.lb-count { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--mint); color: var(--line); border: 3px solid var(--line); border-radius: 16px; box-shadow: 0 5px 0 var(--line); }
.lb-count b { font-family: var(--display); font-weight: var(--display-weight); font-size: 44px; line-height: 1; min-width: 40px; text-align: center; animation: beat 1s ease-in-out infinite; }
.lb-count span { font-size: 16px; font-weight: 800; }
.lb-ready { width: 100%; height: 56px; font-size: 19px; }
.sm-name .lb-ready { margin-top: 10px; }
@media (max-width: 720px) {
  .lb-code b { font-size: 24px; }
  .lb .seat em { font-size: 10px; padding: 1px 5px; }
  .lb-ready { height: 50px; font-size: 17px; }
}
.xl .lb-code { border: 1px solid #a6a6a6; border-radius: 0; background: #fff; padding: 2px 8px; }
.xl .lb-code b { font-family: inherit; font-size: 13px; color: #1f1f1f; letter-spacing: 0; }
.xl .lb .seat em { border: 0; background: none; color: #444; font-weight: 400; }
.xl .lb .seat.ready { background: #c6efce; }
.xl .lb .seat.mine { box-shadow: none; }
.xl .lb-bar { border: 1px solid #a6a6a6; border-radius: 0; height: 10px; background: #fff; }
.xl .lb-bar i { background: #638ec6; }
.xl .lb-count { border: 1px solid #a6a6a6; border-radius: 0; background: #ffff00; box-shadow: none; padding: 2px 8px; }
.xl .lb-count b { font-family: inherit; font-size: 13px; }
.xl .lb-ready { height: 24px; font-size: 12.5px; width: auto; }
.sm-room.in-lobby .sm-players { display: none; }
@media (max-width: 720px) { .sm-room.in-lobby .sm-side { display: none; } }
/* 엑셀 화면: 진행 영역을 9칸 폭으로 묶고 남은 시간을 제목 옆에 둔다 */
.xl .sm-stage { max-width: 864px; }
.xl .sm-phase { justify-content: flex-start; gap: 24px; }
.xl .sm-timer { padding: 0 8px; background: #ffff00; border: 1px solid #a6a6a6; }
.xl .row > .field { flex: 0 1 480px; }
img.av { object-fit: contain; user-select: none; -webkit-user-drag: none; }
.av-opt { padding: 4px 0 2px; }
/* 엑셀 화면에서 게임 화면으로 돌아가는 단추: 제목줄 오른쪽에 잘 보이게 */
.xl-back { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border: 1.5px solid #1d7044; border-radius: 99px; background: #fff; color: #1d7044; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.xl-back svg { stroke: #1d7044; }
.xl-back:hover { background: #e8f3ec; }
.xl .lb-status p, .xl .lb-status b { color: #333 !important; }
.xl-back { white-space: nowrap; flex: none; }
@media (max-width: 720px) {
  .xl-right > svg, .xl-right .xl-share { display: none !important; }
  .xl-title { overflow: hidden; }
  .xl-file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* 대기실 초대 카드: 방 코드 대신 링크 보내기 하나로 */
.lb-invite { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; background: var(--panel-2); border: 2px solid var(--line); border-radius: 14px; }
.lb-invite-t { flex: 1 1 260px; min-width: 0; }
.lb-invite-t b { display: block; font-size: 17px; font-weight: 800; color: var(--yellow); }
.lb-invite-t span { display: block; margin-top: 3px; font-size: 13px; color: var(--text-2); word-break: keep-all; }
.lb-invite-b { display: flex; gap: 8px; flex-wrap: wrap; }
.lb-invite-b .btn.primary { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 18px; font-size: 16px; }
.lb-invite-b .btn.primary svg { stroke: currentColor; }
.lb-queue { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--panel-2); border: 2px dashed var(--yellow); border-radius: 14px; }
.lb-queue b { font-family: var(--display); font-weight: var(--display-weight); font-size: 28px; color: var(--yellow); white-space: nowrap; }
.lb-queue span { font-size: 14px; color: var(--text-2); word-break: keep-all; }
@media (max-width: 720px) {
  .lb-invite-b, .lb-invite-b .btn.primary { width: 100%; justify-content: center; }
}
.xl .lb-invite, .xl .lb-queue { border: 1px solid #a6a6a6; border-radius: 0; background: #fff; padding: 4px 8px; }
.xl .lb-invite-t b, .xl .lb-queue b { font-family: inherit; font-size: 13px; color: #1f1f1f; }
.xl .lb-invite-t span, .xl .lb-queue span { color: #555 !important; font-size: 12px; }
.xl .lb-invite-b .btn.primary { height: 24px; font-size: 12px; padding: 0 10px; }
/* 대기열 상세 */
.lb-queue { display: block; }
.lq-head { display: flex; align-items: baseline; gap: 12px; }
.lq-head span { font-size: 15px; font-weight: 800; color: var(--text); }
.lq-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.lq-grid div { padding: 8px 10px; background: #0f0c28; border: 2px solid var(--line); border-radius: 10px; }
.lq-grid dt { font-size: 12px; color: var(--text-2); }
.lq-grid dd { margin: 2px 0 0; font-size: 16px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.lq-load { margin-top: 12px; }
.lq-load span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-2); }
.lq-load b { color: var(--text); }
.lq-tips { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
@media (max-width: 720px) { .lq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.xl .lq-grid div { background: #fff; border: 1px solid #d0d0d0; border-radius: 0; }
.xl .lq-grid dt, .xl .lq-tips, .xl .lq-load span { color: #555 !important; }
.xl .lq-grid dd, .xl .lq-head span, .xl .lq-load b { color: #1f1f1f !important; }
/* 초대받은 방 정보, 방장 표시와 내보내기 */
.inv-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.inv-meta b, .inv-meta span { padding: 4px 12px; border: 2px solid var(--line); border-radius: 99px; background: var(--panel); font-size: 13px; font-weight: 700; color: var(--text-2); }
.inv-meta b { color: var(--line); background: var(--yellow); }
.seat { position: relative; }
.seat .host { font-size: 11px; font-weight: 800; color: var(--yellow); }
.seat-kick { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); color: var(--text-2); font-size: 15px; line-height: 1; cursor: pointer; }
.seat-kick:hover { background: var(--pink); color: var(--line); }
.xl .seat-kick { border: 1px solid #a6a6a6; background: #fff; color: #555; border-radius: 0; }
.xl .inv-meta b, .xl .inv-meta span { border: 1px solid #a6a6a6; border-radius: 0; background: #fff; color: #1f1f1f; }
.lb-queue .lq-load b, .lb-queue .lq-grid b { font-family: inherit; font-size: inherit; font-weight: 800; color: var(--text); }

/* ---------- 2026-11-25 공유, 감정표현, 이어하기 ---------- */
/* 카카오톡 공유 단추: 카카오 노란색과 검은 글자(카카오 안내 기준 색) */
.btn.kakao { background: #fee500; color: #191919; border-color: var(--line); }
.btn.kakao:hover { filter: brightness(.97); }
.sm-blog { white-space: nowrap; }

/* 진행 중인 게임 이어하기 배너 */
.sm-resume { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px 16px; background: var(--panel-2); border: 2px solid var(--pink); border-radius: 14px; }
.sm-resume span { flex: 1; font-size: 14px; color: var(--text-2); word-break: keep-all; }
.sm-resume b { display: block; font-size: 16px; color: var(--text); }

/* 말풍선 */
.sm-players li { position: relative; }
.seat { position: relative; }
.bubble { position: absolute; z-index: 5; left: 50%; bottom: calc(100% - 6px); transform: translateX(-50%); padding: 5px 10px; background: #fff; color: #191632; border: 2px solid var(--line); border-radius: 12px; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 3px 0 var(--line); animation: pop .22s ease-out; pointer-events: none; }
.bubble::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--line); }
.sm-players li .bubble { left: 22px; transform: none; bottom: calc(100% - 10px); }
.sm-players li .bubble::after { left: 14px; transform: none; }
.bubble.auto { background: var(--panel-2); color: var(--text-2); font-weight: 700; }
.bubble.em-happy { background: var(--mint); }
.bubble.em-sad { background: #b9c4ff; }
.bubble.em-shock { background: var(--yellow); }
.dots { display: inline-flex; gap: 2px; margin-left: 4px; }
.dots b { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: dot 1.2s infinite; }
.dots b:nth-child(2) { animation-delay: .2s; }
.dots b:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes pop { from { transform: translateX(-50%) scale(.6); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
.sm-players li .bubble { animation-name: popl; }
@keyframes popl { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* 감정에 따라 캐릭터가 움직인다 */
.emoting.em-happy .av { animation: hop .5s ease-out 2; }
.emoting.em-shock .av { animation: shake .4s ease-in-out 2; }
.emoting.em-think .av { animation: tilt 1.4s ease-in-out 2; }
.emoting.em-sad .av { animation: droop 1s ease-in-out 2; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-10deg); } }
@keyframes droop { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(3px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .emoting .av, .bubble, .dots b { animation: none !important; } }

/* 감정표현 단추 줄 */
.emote-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--line-soft, rgba(255,255,255,.12)); }
.emo { padding: 6px 11px; border: 2px solid var(--line); border-radius: 99px; background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .1s ease; }
.emo:hover { transform: translateY(-2px); }
.emo:active { transform: scale(.94); }
.emo.em-happy:hover { background: var(--mint); color: var(--line); }
.emo.em-shock:hover { background: var(--yellow); color: var(--line); }
.emo.em-sad:hover { background: #b9c4ff; color: var(--line); }
@media (max-width: 720px) {
  .emote-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .emote-bar::-webkit-scrollbar { display: none; }
  .emo { flex: none; }
}

/* 내 자리 눌러 바꾸기 */
.seat.editable { cursor: pointer; }
.seat.editable:hover { transform: translateY(-2px); }
.seat-edit { position: absolute; top: 4px; left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--yellow); color: var(--line); font-size: 11px; font-weight: 800; }
.lb-hint { margin: 10px 0 0; font-size: 13px; color: var(--text-2); word-break: keep-all; }

/* 한 판 더 안내 */
.rematch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; padding: 12px 14px; background: var(--panel-2); border: 2px solid var(--mint); border-radius: 14px; }
.rematch b { flex: 1; font-size: 15px; }

/* 엑셀 화면: 말풍선은 메모처럼, 감정표현 단추는 작은 칸으로 */
.xl .bubble { position: static; transform: none; display: inline-block; margin-right: 4px; padding: 0 4px; border: 1px solid #c9a227; border-radius: 0; background: #fff8c5; color: #1f1f1f; font-size: 11px; font-weight: 400; box-shadow: none; animation: none; }
.xl .bubble::after { display: none; }
.xl .emote-bar { border-top: 1px solid #d0d0d0; gap: 0; }
.xl .emo { border: 1px solid #d0d0d0; border-radius: 0; background: #fff; color: #1f1f1f; font-size: 12px; font-weight: 400; padding: 2px 8px; }
.xl .btn.kakao { background: #fff; color: #1f1f1f; }
.xl .sm-resume, .xl .rematch { border: 1px solid #a6a6a6; border-radius: 0; background: #fff; }
.xl .sm-resume b, .xl .rematch b { color: #1f1f1f; }
.xl .seat-edit { border-radius: 0; background: #ffff00; }
/* 참가자 목록 말풍선: 윗줄을 가리지 않게 이름과 점수 사이, 줄 가운데에 띄운다 */
.sm-players li .bubble { left: auto; right: 58px; top: 50%; bottom: auto; transform: translateY(-50%); animation-name: popr; }
.sm-players li .bubble::after { left: auto; right: -12px; top: 50%; transform: translateY(-50%); border-top-color: transparent; border-left-color: var(--line); }
@keyframes popr { from { transform: translateY(-50%) scale(.6); opacity: 0; } to { transform: translateY(-50%) scale(1); opacity: 1; } }
@media (max-width: 720px) {
  /* 모바일 가로 줄: 캐릭터 위에 작게 겹쳐 띄운다 */
  .sm-players li .bubble { right: auto; left: 50%; top: 0; transform: translateX(-50%); padding: 2px 7px; font-size: 11px; border-width: 1.5px; box-shadow: none; animation-name: pop; }
  .sm-players li .bubble::after { display: none; }
}
/* 블로그로 돌아가기: 모바일에서도 보이는 작은 단추 */
.sm-blog { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border: 2px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sm-blog svg { stroke: currentColor; }
.sm-blog:hover { color: var(--text); }
.xl .sm-blog { display: none; }
