/* 블록 쌓기 전용 화면 모양 (공통은 ../common/ui.css). 번쩍임 없음 */
.hud { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 6px; flex: none; }
.hud-item { display: flex; flex-direction: column; align-items: center; min-width: 64px; line-height: 1.1; }
.hud-label { font-size: 11px; color: var(--muted); }
.hud-value { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.hud-mid { flex: 1; min-width: 0; text-align: center; }
.rule-banner { font-size: clamp(14px, 4vw, 20px); font-weight: 900; color: var(--p9); line-height: 1.25; word-break: keep-all; }
.field-wrap { flex: 1 1 0; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; }
#field { display: block; touch-action: none; border: 3px solid var(--p2); background: var(--field); image-rendering: pixelated; }
.banner { position: absolute; left: 36%; top: 30%; transform: translateX(-50%); margin: 0; max-width: 90%; text-align: center; background: var(--p0); border: 3px solid var(--p7); padding: 8px 14px; font-size: clamp(15px, 4.4vw, 20px); font-weight: 900; line-height: 1.3; word-break: keep-all; white-space: pre-line; }
.face-lost { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); margin: 0; background: var(--danger); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; white-space: nowrap; }
.dock { flex: none; display: flex; gap: 6px; align-items: center; padding: 8px 4px 0; padding-right: 150px; min-height: 100px; flex-wrap: wrap; align-content: flex-start; }
.dock-note { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--muted); word-break: keep-all; }
@media (max-height: 700px) { .hud-value { font-size: 20px; } }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode { font: inherit; color: var(--text); background: var(--surface); border: 3px solid var(--border); border-radius: 0; padding: 10px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 96px; }
.mode[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.mode-name { font-size: 16px; font-weight: 800; word-break: keep-all; } .mode-desc { font-size: 12px; color: var(--muted); word-break: keep-all; }
/* 윙크 보정 화면: 내 모습을 크게(거울), 아래에 두 눈 값 막대와 안내 */
/* 보정 중에는 「내 얼굴 보기」를 꺼 둔 사람도 거울을 보여 준다(눈 감김을 확인해야 하므로) */
body[data-screen="wink"] .cam-box, body[data-screen="wink"] .cam-box.off { opacity: 1; border: 2px solid var(--border); overflow: hidden; left: 50%; right: auto; top: 146px; bottom: auto; transform: translateX(-50%); width: min(74vw, 300px); height: min(55vw, 225px); z-index: 4; }
body[data-screen="wink"] .cam-box.off video { opacity: 1; }
#screen-wink { align-items: center; text-align: center; gap: 8px; }
#screen-wink .wink-top { margin-top: 4px; }
.wink-spacer { height: min(55vw, 225px); flex: none; margin-top: 8px; }
.wink-prompt { margin: 0; font-size: clamp(20px, 6vw, 28px); font-weight: 900; color: var(--p7); word-break: keep-all; min-height: 1.3em; }
.wink-sub { margin: 0; font-size: 14px; color: var(--muted); word-break: keep-all; min-height: 2.6em; }
.wink-meters { display: flex; gap: 14px; justify-content: center; width: min(86vw, 340px); }
.wink-meter { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }
.wink-bar { height: 14px; border: 2px solid var(--p2); background: var(--p1); margin-top: 3px; position: relative; }
.wink-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--p9); }
.wink-bar.target { border-color: var(--p7); }
.wink-progress { width: min(86vw, 340px); height: 18px; border: 3px solid var(--p2); background: var(--p1); position: relative; }
.wink-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--p8); }
.wink-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* 터치 버튼: 카메라가 없어도 할 수 있게(보조). 판 아래, 거울 화면 자리(오른쪽 아래)를 피한다 */
.pad { flex-basis: 100%; display: flex; gap: 6px; }
.pad-btn { flex: 1 1 0; min-width: 0; padding: 10px 0; font-size: 18px; touch-action: none; }
@media (min-width: 900px) { .pad { max-width: 360px; } }
