@font-face { font-family: Galmuri; src: url(/vendor/Galmuri11.woff2) format('woff2'); font-display: swap; }
:root {
  --ink: #2d3050; --ink2: #5a5e7e; --wall: #f5f4f8; --line: #d7d8e2; --panel: #e9e6ef; --panel2: #f7f6fa;
  --grey: #b4b7c6; --blue: #4f86d9; --green: #58b368; --red: #d9534f; --void: #1b1d2e;
  --side: 248px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--void); color: var(--ink); font: 12px/1.5 Galmuri, monospace; -webkit-font-smoothing: none; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
canvas { image-rendering: pixelated; }
input, textarea, button { font: inherit; color: inherit; border-radius: 0; }
input, textarea { background: #fff; border: 2px solid var(--ink); padding: 6px 8px; outline: 0; width: 100%; box-shadow: inset 0 2px 0 var(--line); }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: inset 0 2px 0 #cfe0f7; }
textarea { resize: vertical; }

/* 레퍼런스의 벽 윗면처럼: 남색 외곽선 + 흰 띠 + 회색 이중선 */
.frame { background: var(--panel); border: 2px solid var(--ink); box-shadow: inset 0 0 0 2px var(--wall), inset 0 0 0 3px var(--grey), 0 4px 0 rgba(20,22,40,.55); padding: 6px; }
.frame.slim { padding: 5px 10px; }
.title-bar .btn { color: var(--ink); }
.title-bar { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; padding: 4px 10px; margin: 0 0 8px; font-size: 12px; }

.btn { display: inline-flex; gap: 4px; align-items: center; justify-content: center; background: var(--wall); border: 2px solid var(--ink); padding: 5px 12px; cursor: pointer; box-shadow: inset 0 -3px 0 var(--grey), inset 0 2px 0 #fff; white-space: nowrap; }
.btn:hover:not(:disabled) { background: #fff; }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 2px 0 var(--grey); }
.btn:disabled { color: #8d90a6; cursor: not-allowed; background: var(--panel); }
.btn:focus-visible, .swatch:focus-visible, .preset:focus-visible, .act:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.btn.sm { padding: 3px 8px; }
.btn.xs { padding: 0 5px; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: inset 0 -3px 0 #3a68ad, inset 0 2px 0 #7fa8df; }
.btn.primary:hover:not(:disabled) { background: #5a93e0; }
.btn.danger { background: var(--red); color: #fff; box-shadow: inset 0 -3px 0 #a93a3e, inset 0 2px 0 #ee8884; }
.btn.danger:hover:not(:disabled) { background: #e0605c; }
.btn.on { background: #cfe0f7; }
.chip { padding: 1px 6px; background: var(--wall); border: 1px solid var(--ink); display: inline-flex; gap: 3px; align-items: center; white-space: nowrap; }
.chip.ok { background: #cfeed6; } .chip.bad { background: #f7c9c7; }
.tag { padding: 0 5px; border: 1px solid var(--ink); background: #fbe08a; white-space: nowrap; }
.tag.off { background: var(--grey); }
.tag.warn { background: #f7c9c7; }
.tag.fortune-tag { background: #e9dcfb; }
.muted { color: var(--ink2); }
.hint { color: var(--ink2); }
.pix-ico, .pix-face { display: inline-block; vertical-align: middle; flex: none; }

/* 무대 */
#stage { position: fixed; inset: 0; overflow: hidden; }
#view { position: absolute; left: 0; top: 0; }
body.in-room #view { cursor: grab; touch-action: none; }
body.in-room #view.dragging { cursor: grabbing; }
#overlay, #edges { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
body.in-room #stage { right: var(--side); }

.ent { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.nametag { position: absolute; left: 0; top: 3px; transform: translateX(-50%); white-space: nowrap; background: rgba(45,48,80,.88); color: #fff; padding: 0 5px 0 3px; display: flex; gap: 3px; align-items: center; line-height: 16px; }
.nametag.me { background: rgba(58,104,173,.95); }
.nametag.npc { background: rgba(117,88,160,.95); padding-left: 5px; }
.timer-chip { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; background: #fff8dc; border: 1px solid var(--ink); padding: 0 4px; line-height: 14px; }
.stack { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; width: 240px; }
.bubble { position: relative; background: #fff; border: 2px solid var(--ink); padding: 3px 8px; max-width: 220px; word-break: break-word; box-shadow: 0 2px 0 rgba(20,22,40,.4); animation: pop .12s steps(2); }
.stack .bubble:last-child::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -3px; width: 6px; height: 4px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.bubble.me { background: #e4efff; }
.bubble.out, .edge.out { opacity: 0; transition: opacity .4s steps(3); }
.bubble img { display: block; width: 150px; max-height: 150px; object-fit: cover; }
@keyframes pop { from { transform: scale(.7); } to { transform: scale(1); } }

.edge { position: absolute; left: 0; top: 0; width: 232px; display: flex; gap: 5px; align-items: flex-start; background: #fff; border: 2px solid var(--ink); padding: 4px 6px; box-shadow: 0 3px 0 rgba(20,22,40,.5); transition: transform .14s linear; }
.edge .who { color: var(--ink2); display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.edge .body { min-width: 0; word-break: break-word; }
.edge img { display: block; width: 86px; max-height: 70px; object-fit: cover; margin-top: 2px; }
.edge .arrow { position: absolute; width: 8px; height: 10px; background: var(--ink); }
.edge[data-side=left] .arrow { left: -9px; top: 10px; clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.edge[data-side=right] .arrow { right: -9px; top: 10px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.edge[data-side=top] .arrow { top: -8px; left: 50%; width: 10px; height: 7px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.edge[data-side=bottom] .arrow { bottom: -8px; left: 50%; width: 10px; height: 7px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.edge-more { position: absolute; background: var(--ink); color: #fff; padding: 1px 8px; left: 50%; top: 44px; transform: translateX(-50%); white-space: nowrap; }

/* 로비 */
#lobby { position: fixed; inset: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: rgba(27,29,46,.55); z-index: 5; }
.logo { text-align: center; color: #fff; text-shadow: 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink), 0 5px 0 var(--ink); }
.logo h1 { font-size: 36px; line-height: 1.25; letter-spacing: 1px; }
.banner { background: #fbe08a; width: min(916px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; }
.lobby-grid { display: grid; grid-template-columns: 560px 344px; gap: 12px; align-items: stretch; max-width: 100%; }
.creator-body { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 0 6px 6px; }
.preview-col { display: flex; flex-direction: column; gap: 8px; }
.preview-box { background: #bcc0c5; border: 2px solid var(--ink); height: 160px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 2px var(--wall); }
.preview-box canvas { width: 156px; height: 156px; }
.row-center { display: flex; align-items: center; justify-content: space-between; }
.field { display: flex; flex-direction: column; gap: 3px; }
.field > span { color: var(--ink2); }
.opt-row { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 6px; min-height: 24px; margin-top: 4px; }
.opt-row > span { color: var(--ink2); }
.cycle { display: grid; grid-template-columns: 26px 1fr 26px; align-items: center; text-align: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 2px; }
.swatch { width: 20px; height: 20px; border: 2px solid var(--ink); padding: 0; cursor: pointer; box-shadow: inset 0 2px 0 rgba(255,255,255,.4); }
.swatch.on { outline: 2px solid var(--blue); outline-offset: 0; }
.presets { display: flex; gap: 3px; flex-wrap: wrap; }
.preset { width: 42px; height: 42px; background: var(--wall); border: 2px solid var(--ink); padding: 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.preset:hover { background: #fff; }
.preset.on { background: #fff8dc; box-shadow: inset 0 0 0 2px var(--blue); }
.photo-gen { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; padding-top: 6px; border-top: 2px dotted var(--grey); }
.photo-gen small { font-size: 12px; color: var(--ink2); }
.rooms { display: flex; flex-direction: column; }
.create-row { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding: 0 6px 6px; }
.room-list { flex: 1; overflow-y: auto; min-height: 170px; max-height: 300px; margin: 0 6px; background: var(--panel2); border: 2px solid var(--ink); }
.room-empty { padding: 28px 12px; text-align: center; color: var(--ink2); }
.room { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 8px; border-bottom: 2px solid var(--line); align-items: center; }
.room b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.room .meta { color: var(--ink2); display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.room .btn { grid-row: span 2; }
.rooms .hint { padding: 6px; }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
#hud > * { pointer-events: auto; }
.top-left { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 6px; max-width: calc(100% - var(--side) - 470px); min-width: 0; }
.top-left strong { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-right { position: absolute; right: calc(var(--side) + 10px); top: 10px; display: flex; gap: 3px; }
#focusHud { position: absolute; left: calc((100% - var(--side)) / 2); top: 50px; transform: translateX(-50%); background: #fff8dc; font-size: 14px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
#focusHud b { font-weight: 400; font-size: 18px; }
#gameBar { position: absolute; left: calc((100% - var(--side)) / 2); top: 94px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #fbe08a; max-width: 92%; flex-wrap: wrap; justify-content: center; }
#gameBar.go { background: #a8e6b4; }
#reqBar { position: absolute; left: calc((100% - var(--side)) / 2); top: 140px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fde4ec; white-space: nowrap; }
.btn kbd { font: inherit; background: var(--ink); color: #fff; padding: 0 4px; }
.fx { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none; font-size: 14px; color: #fff; text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink); }
.fx.pop { color: #ffe27a; font-size: 18px; }
.fx.heart { color: #f7a8c0; font-size: 18px; }
.fx.shout { color: #ff8a80; font-size: 16px; }
.fx.thought { color: #eef1ff; font-size: 13px; text-shadow: 1px 0 0 #5a5e7e, -1px 0 0 #5a5e7e, 0 1px 0 #5a5e7e, 0 -1px 0 #5a5e7e; }
.fx.soft { color: #e8ecf8; font-size: 12px; }

#side { position: absolute; right: 0; top: 0; bottom: 0; width: var(--side); display: flex; flex-direction: column; padding: 6px; }
#people { flex: 1; overflow-y: auto; background: var(--panel2); border: 2px solid var(--ink); }
.tabs { display: flex; gap: 2px; margin-bottom: 6px; align-items: stretch; }
.tab { flex: 1; background: var(--panel); border: 2px solid var(--ink); padding: 4px 6px; cursor: pointer; box-shadow: inset 0 -3px 0 var(--grey); display: inline-flex; gap: 4px; align-items: center; justify-content: center; }
.tab.on { background: var(--ink); color: #fff; box-shadow: none; }
.tab, #btnPeople { position: relative; }
/* 앱 아이콘 알림처럼 버튼 오른쪽 위 모서리에 (모서리를 깎은 픽셀 원) */
.badge { position: absolute; top: -5px; right: -3px; z-index: 2; min-width: 12px; height: 12px; padding: 0 2px; text-align: center; font-size: 11px; line-height: 12px; background: var(--red); color: #fff; box-shadow: 0 -1px 0 var(--red), 0 1px 0 var(--red), -1px 0 0 var(--red), 1px 0 0 var(--red); }
.pane { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pane[hidden] { display: none !important; }
.log-head { display: flex; justify-content: space-between; align-items: center; gap: 4px; color: var(--ink2); padding: 0 2px 4px; }
#logList { flex: 1; overflow-y: auto; background: var(--panel2); border: 2px solid var(--ink); padding: 2px 0; }
.side-chat { display: flex; gap: 3px; margin-top: 4px; }
.side-chat input { flex: 1; min-width: 0; padding: 3px 5px; }
.log-line { display: grid; grid-template-columns: 24px 1fr; gap: 4px; padding: 3px 5px; align-items: start; }
.log-line.mine { background: #e4efff; }
.log-meta { display: flex; gap: 6px; align-items: baseline; }
.log-meta b { font-weight: 400; }
.log-meta span { color: var(--ink2); font-size: 12px; }
.log-text { word-break: break-word; }
.log-divider { text-align: center; color: var(--red); border-top: 2px dashed var(--red); margin: 6px 4px 2px; padding-top: 2px; }
.dress { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.dress .preview-box { height: 120px; }
.dress-preview { width: 104px; height: 104px; }
@media (max-width: 520px) { .dress { grid-template-columns: 1fr; } }
.person { display: grid; grid-template-columns: 33px 1fr; gap: 0 6px; padding: 4px 5px; border-bottom: 2px solid var(--line); }
.person .pix-face { grid-row: span 2; }
.person { position: relative; }
.person .person-more { position: absolute; right: 4px; top: 4px; padding: 0 5px; line-height: 1.2; }
.person .top { display: flex; align-items: center; gap: 3px; min-width: 0; }
.person .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .sub { color: var(--ink2); display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.status-pick { padding: 8px 2px 2px; }
.status-pick h3 { font-size: 12px; margin-bottom: 3px; }
#statusBtns { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
#statusBtns .btn { justify-content: flex-start; padding: 3px 5px; }
#statusNote { min-height: 36px; margin-top: 4px; }
.pet-pick { display: flex; align-items: center; gap: 6px; padding: 4px 2px; border-top: 2px dotted var(--grey); }
.pet-pick b { font-weight: 400; flex: 1; text-align: center; }

#prompt { position: absolute; left: calc((100% - var(--side)) / 2); bottom: 72px; transform: translateX(-50%); display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; width: min(600px, calc(100% - var(--side) - 24px)); pointer-events: none; }
#prompt:empty { display: none; }
#prompt { flex-direction: column; align-items: center; }
.act-row { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pet-row { align-items: center; padding: 2px 6px 2px 4px; background: rgba(255,248,236,.85); border: 2px dashed #c99a66; pointer-events: auto; }
.pet-lbl { font-size: 13px; color: var(--ink2); padding: 0 2px; }
.act.pet { box-shadow: 0 2px 0 rgba(20,22,40,.4); padding: 1px 7px 1px 2px; font-size: 13px; }
#statusBtns .focus-btn { border-style: dashed; border-color: #d9534f; }
#statusBtns .focus-btn.on { border-style: solid; }
.focus-note { font-size: 12px; color: #b8433f; margin-top: 4px; }
#pomoChip { position: absolute; left: 10px; top: 50px; display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; cursor: pointer; font: inherit; font-size: 14px; background: #fff; }
#pomoChip:hover { background: #fff8dc; }
#pomoChip .muted { font-size: 12px; }
.act { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--ink); padding: 3px 9px 3px 3px; cursor: pointer; box-shadow: 0 3px 0 rgba(20,22,40,.55); }
.act:hover { background: #fff8dc; }
.act kbd { font: inherit; background: var(--ink); color: #fff; padding: 0 6px; line-height: 18px; }

#bottom { position: absolute; left: 10px; right: calc(var(--side) + 10px); bottom: 10px; display: flex; justify-content: center; pointer-events: none; }
.chat { display: flex; align-items: center; gap: 4px; width: min(760px, 100%); padding: 7px 8px; pointer-events: auto; }
.chat .slash { background: var(--ink); color: #fff; padding: 2px 7px; }
.chat input { flex: 1; min-width: 80px; padding: 3px 6px; }
#emotes { display: flex; gap: 2px; margin-left: 2px; }
.btn.ico { padding: 2px 3px; }
.top-right .btn { min-height: 28px; }
#btnInvite { gap: 4px; }

#pad { display: none; position: absolute; left: 12px; bottom: 96px; width: 138px; height: 138px; }
#pad button { position: absolute; width: 46px; height: 46px; background: rgba(245,244,248,.86); border: 2px solid var(--ink); touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: inset 0 -3px 0 var(--grey); }
#pad button.on { background: #cfe0f7; }
#pad .u { left: 46px; top: 0; } #pad .d { left: 46px; bottom: 0; } #pad .l { left: 0; top: 46px; } #pad .r { right: 0; top: 46px; }
.only-mobile { display: none; }

#modal { position: fixed; inset: 0; background: rgba(27,29,46,.62); z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; }
#modalBox { width: min(440px, 100%); max-height: 86vh; overflow: auto; }
.m-body { padding: 4px 8px 8px; display: flex; flex-direction: column; gap: 8px; }
.m-actions { display: flex; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.notice { background: var(--panel2); border: 2px solid var(--ink); padding: 6px 8px; }
.notice h4 { font-size: 14px; }
.notice p { white-space: pre-wrap; word-break: break-word; }
.notice .row { display: flex; justify-content: space-between; align-items: center; color: var(--ink2); gap: 4px; }
.fortune { text-align: center; padding: 10px; background: var(--panel2); border: 2px solid var(--ink); }
.fortune .score { font-size: 36px; line-height: 1.2; color: var(--red); }
.bar { height: 12px; background: #fff; border: 2px solid var(--ink); margin: 6px 0; }
.bar i { display: block; height: 100%; background: var(--green); }
.set-row { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 2px; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 10px; padding: 0; background: #fff; border: 2px solid var(--ink); box-shadow: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 16px; background: var(--blue); border: 2px solid var(--ink); }
input[type=range]::-moz-range-thumb { width: 8px; height: 14px; background: var(--blue); border: 2px solid var(--ink); border-radius: 0; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; }
.keys kbd { font: inherit; background: var(--ink); color: #fff; padding: 0 6px; text-align: center; }

#toasts { position: fixed; left: calc((100% - var(--side)) / 2); bottom: 116px; transform: translateX(-50%); z-index: 30; display: flex; flex-direction: column; gap: 3px; align-items: center; pointer-events: none; }
body:not(.in-room) #toasts { left: 50%; }
.toast { background: var(--ink); color: #fff; padding: 3px 10px; border: 2px solid #fff; text-align: center; }

@media (max-width: 980px) {
  .lobby-grid { grid-template-columns: 1fr; width: min(560px, 100%); }
  #lobby { justify-content: flex-start; }
}
@media (max-width: 780px), (pointer: coarse) {
  :root { --side: 0px; }
  #side { width: 250px; transform: translateX(100%); transition: transform .12s steps(3); z-index: 6; }
  #side.open { transform: none; }
  .only-mobile { display: inline-flex; }
  #pad { display: block; }
  .top-left { top: 44px; max-width: calc(100% - 20px); }
  .top-right { left: 8px; right: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .top-right .btn { padding: 2px 5px; }
  .chat { flex-wrap: wrap; }
  .chat input { order: 1; flex-basis: 50%; font-size: 16px; }
  .chat .slash { display: none; }
  .chat > .btn.primary { order: 2; }
  #emotes { order: 3; margin: 0; }
  #btnPhoto { order: 4; }
  #prompt { bottom: 100px; left: auto; right: 8px; transform: none; justify-content: flex-end; width: calc(100% - 160px); }
  #focusHud { top: 78px; }
  #gameBar { top: 118px; }
  .edge { width: 170px; }
  .creator-body { grid-template-columns: 1fr; }
  input { font-size: 16px; }
  #toasts { bottom: 250px; left: 50%; }
}

.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.menu-item { flex-direction: column; gap: 2px; padding: 8px 4px; }
.menu-cup { width: 28px; height: 32px; }
@media (max-width: 420px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }

.log-thumb { display: block; max-width: 150px; max-height: 120px; margin-top: 2px; border: 2px solid var(--ink); image-rendering: auto; }
.pet-name { padding: 2px 6px; }

/* 집중 타이머 (원형 타임 타이머) */
#pomo { position: absolute; left: 10px; top: 50px; width: 236px; padding: 6px; }
.pomo-body { display: flex; gap: 10px; align-items: center; padding: 0 4px; }
#pomoDial { width: 122px; height: 122px; image-rendering: pixelated; flex: none; }
.pomo-side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pomo-phase { color: var(--ink2); }
.pomo-left { font-size: 24px; line-height: 1.1; }
.pomo-btns { display: flex; gap: 3px; flex-wrap: wrap; }
.pomo-set { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 6px 4px 2px; border-top: 2px dotted var(--grey); margin-top: 6px; }
.pomo-num { width: 46px; padding: 1px 4px; }
.pomo-auto { display: inline-flex; align-items: center; gap: 2px; }
.pomo-auto input { width: auto; }
#pomo .hint { padding: 4px; font-size: 12px; }
.dnd { background: #d9534f; color: #fff; padding: 0 3px; margin-left: 2px; line-height: 14px; }
.tag.pomo-focus { background: #f7c9c7; } .tag.pomo-break { background: #cfeed6; }
.mini-dial { width: 25px; height: 25px; image-rendering: pixelated; }
@media (max-width: 780px), (pointer: coarse) { #pomoChip { top: 78px; } #pomo { top: 78px; width: 210px; } #pomoDial { width: 96px; height: 96px; } }

/* 눈치 보기 가짜 화면 (` 키) — 픽셀 글꼴 대신 일반 사무용 글꼴 */
#disguise { position: fixed; inset: 0; z-index: 10000; background: #fff; color: #222; display: flex; flex-direction: column; font: 13px "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", sans-serif; user-select: none; cursor: default; }
#disguise[hidden] { display: none; }
.dz-titlebar { height: 30px; background: #f3f3f3; display: flex; align-items: center; justify-content: center; position: relative; color: #444; font-size: 12px; border-bottom: 1px solid #e1e1e1; }
.dz-win { position: absolute; right: 0; top: 0; display: flex; } .dz-win i { font-style: normal; width: 44px; height: 30px; display: grid; place-items: center; color: #555; }
.dz-menu { display: flex; gap: 2px; padding: 4px 8px 0; background: #f3f3f3; border-bottom: 1px solid #d6d6d6; }
.dz-menu span { padding: 5px 10px 6px; color: #333; } .dz-menu span.on { color: #1f6e43; border-bottom: 3px solid #1f6e43; font-weight: 600; }
.dz-tools { display: flex; align-items: center; gap: 4px; padding: 7px 10px; background: #f9f9f9; border-bottom: 1px solid #d6d6d6; overflow: hidden; white-space: nowrap; }
.dz-box { border: 1px solid #c8c8c8; background: #fff; padding: 2px 6px; font-size: 12px; } .w90 { width: 90px; } .w30 { width: 30px; } .w60 { width: 60px; }
.dz-btn { padding: 2px 6px; color: #333; font-weight: 400; } .dz-btn.i { font-style: italic; } .dz-btn.u { text-decoration: underline; } b.dz-btn { font-weight: 700; } .dz-btn.wide { font-size: 12px; }
.dz-sep { width: 1px; height: 20px; background: #d6d6d6; margin: 0 4px; }
.dz-fbar { display: flex; align-items: center; border-bottom: 1px solid #d6d6d6; height: 26px; }
.dz-name { width: 90px; border-right: 1px solid #d6d6d6; padding: 0 8px; } .dz-fx { padding: 0 10px; color: #777; font-style: italic; border-right: 1px solid #d6d6d6; } .dz-formula { padding: 0 8px; }
.dz-grid-wrap { flex: 1; overflow: auto; background: #fff; }
.dz-grid { border-collapse: collapse; table-layout: fixed; }
.dz-grid th { background: #f3f3f3; color: #555; font-weight: 400; border: 1px solid #d9d9d9; height: 22px; font-size: 12px; position: sticky; top: 0; z-index: 1; }
.dz-grid tbody th { position: sticky; left: 0; width: 40px; min-width: 40px; }
.dz-grid thead th:not(.corner) { min-width: 92px; } .dz-grid thead th:nth-child(3) { min-width: 120px; } .dz-grid thead th:nth-child(13) { min-width: 140px; }
.dz-grid td { border: 1px solid #e3e3e3; height: 22px; padding: 0 5px; white-space: nowrap; overflow: hidden; font-size: 12.5px; }
.dz-grid td.num { text-align: right; } .dz-grid td.neg { color: #c0392b; }
.dz-grid td.head { background: #e2efe6; font-weight: 600; text-align: center; border-color: #b9cfc0; }
.dz-grid td.total { background: #f2f2f2; font-weight: 600; border-top: 2px solid #888; }
.dz-grid td.title { font-size: 16px; font-weight: 700; overflow: visible; } .dz-grid td.muted { color: #777; overflow: visible; }
.dz-grid td.sel { outline: 2px solid #1f6e43; outline-offset: -2px; }
.dz-tabs { display: flex; gap: 2px; padding: 0 8px; background: #f3f3f3; border-top: 1px solid #d6d6d6; height: 28px; align-items: stretch; }
.dz-tabs span { padding: 5px 14px; color: #555; } .dz-tabs span.on { background: #fff; color: #1f6e43; font-weight: 600; border-bottom: 3px solid #1f6e43; }
.dz-ready.hint { color: #8a8a8a; }
.dz-ready { cursor: default; }
.dz-status { display: flex; justify-content: space-between; padding: 3px 12px; background: #f3f3f3; color: #555; font-size: 12px; border-top: 1px solid #e1e1e1; }

/* 게시판: 개발자 공지 · 방 공지 · 메모 */
.board .notice.dev { background: #fff4d6; border-color: #e0b94f; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: 6px; border-bottom: 2px dotted var(--grey); padding-bottom: 2px; }
.board-head h3 { margin: 0; font-size: 15px; }
.memo-form { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.memo-input { flex: 1; min-width: 140px; }
.memo-sws { display: flex; gap: 2px; }
.memo-sw { width: 18px; height: 18px; border: 2px solid var(--ink); cursor: pointer; padding: 0; }
.memo-sw.on { outline: 2px solid var(--blue); outline-offset: 1px; }
.memo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; padding: 2px; }
.memo { border: 2px solid var(--ink); padding: 5px 6px 3px; box-shadow: 2px 2px 0 rgba(20,22,40,.35); display: flex; flex-direction: column; justify-content: space-between; min-height: 64px; }
.memo p { margin: 0 0 4px; word-break: break-all; font-size: 13px; }
.memo-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--ink2); gap: 4px; }
.memo-x { border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink2); padding: 0 2px; }

/* 펫 이름표: 배경 없이 작은 글씨 */
.pet-tag { position: absolute; left: 0; top: 0; font-size: 11px; line-height: 12px; color: #fff; white-space: nowrap; pointer-events: none; text-shadow: 1px 0 0 #2d3050, -1px 0 0 #2d3050, 0 1px 0 #2d3050, 0 -1px 0 #2d3050; }
.pet-mini { font-size: 11px; color: var(--ink2); margin-left: 5px; display: inline-flex; align-items: flex-end; gap: 2px; }
.pet-face { width: 21px; height: 18px; image-rendering: pixelated; }
.dev-form input, .dev-form textarea { width: 100%; margin-top: 4px; }
.dev-entry { text-align: right; margin-top: 4px; }
.linkish { border: 0; background: none; font: inherit; font-size: 11px; color: var(--grey); cursor: pointer; padding: 0; }
.banner.moved { background: #fff4d6; border-color: #e0b94f; }
.studio-badge { font-size: 12px; background: #2d3050; color: #ffd36b; padding: 1px 6px; margin-left: 8px; vertical-align: middle; letter-spacing: 1px; }
#zoomCtl { position: absolute; right: calc(var(--side) + 10px); bottom: 74px; display: flex; flex-direction: column; gap: 3px; z-index: 3; }
#zoomCtl .btn { padding: 1px 7px; font-size: 15px; line-height: 18px; }
@media (max-width: 780px), (pointer: coarse) { #zoomCtl { right: 8px; bottom: 150px; } }

/* 개인정보·이용 안내 */
.pv { max-height: 70vh; overflow-y: auto; }
.pv .pv-h { font-size: 13px; margin: 10px 0 4px; }
.pv .pv-list { margin: 0; padding-left: 18px; line-height: 1.55; font-size: 12px; }
