:root {
  font-family: Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: #153f49;
  background: #b0dce4;
  font-synthesis: none;
  color-scheme: light;
}
.game-connect,
.game-hud {
  position: absolute;
  z-index: 4;
  left: 28px;
  width: 250px;
  padding: 14px 16px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: #f4f8eef2;
  font-size: 12px;
  line-height: 1.6;
}
.game-connect {
  top: 103px;
}
.game-connect[open] {
  z-index: 7;
  background: #f4f8ee;
  max-height: calc(100svh - 235px);
  overflow-y: auto;
}
.game-connect summary {
  cursor: pointer;
}
.game-connect summary strong {
  float: right;
  letter-spacing: 2px;
}
.game-connect p {
  margin: 10px 0;
}
#game-qr {
  display: block;
  max-width: 100%;
  height: auto;
  background: white;
}
#game-controller-link {
  text-decoration: underline;
  font-weight: 700;
}
#game-controller-url {
  display: block;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.game-hud {
  top: 167px;
  pointer-events: auto;
}
.game-hud p {
  margin: 0;
  font-weight: 700;
}
#game-score {
  display: block;
  font-size: 11px;
  margin: 4px 0 10px;
}
.game-actions {
  display: flex;
  gap: 8px;
}
.game-actions button {
  border: 1px solid #a9c5c4;
  background: #fffef8;
  border-radius: 7px;
  padding: 7px 13px;
  font-size: 11px;
}
.game-actions button:last-child {
  background: #175966;
  color: white;
  border-color: #175966;
}
.game-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}
body[data-view='intro'] .game-connect,
body[data-view='intro'] .game-hud {
  display: none;
}
@media (max-width: 650px) {
  .game-connect {
    top: 79px;
    left: 14px;
    width: 160px;
    padding: 10px 12px;
    font-size: 11px;
  }
  .game-connect[open] {
    width: calc(100% - 28px);
  }
  .game-hud {
    left: 14px;
    top: 137px;
    width: calc(100% - 28px);
    padding: 10px 12px;
    font-size: 11px;
  }
  .game-hud .game-actions {
    position: absolute;
    right: 10px;
    bottom: 10px;
  }
  #game-score {
    max-width: 50%;
    margin-bottom: 0;
    min-height: 29px;
  }
  .ocean-app .batter-controls {
    width: 180px;
  }
  .ocean-app .batter-controls[open] {
    width: calc(100% - 28px);
    z-index: 6;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  word-break: keep-all;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 2px solid #147584;
  outline-offset: 4px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.ocean-app {
  position: relative;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
}
#ocean-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.strike-zone {
  --strike-zone-clearance: 136px;
  display: none;
  position: absolute;
  left: 50%;
  bottom: max(12.5%, var(--strike-zone-clearance));
  /* Shrink the outline to leave room for the camera controls. */
  height: min(24%, max(64px, calc(36% - var(--strike-zone-clearance))));
  max-height: 46vw;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 3px solid #fff;
  pointer-events: none;
}
body[data-view='batting'] .strike-zone {
  display: block;
}
/* 홈런 세리머니가 카메라를 잡는 동안에는 타석 조준선을 치운다. 타구 카메라는
   data-view 를 'ball-follow' 로 바꾸며 알아서 사라지지만, 세리머니는 그 카메라를
   취소하고 직접 잡으므로 뷰 이름이 'batting' 그대로다. */
body.ceremony-view .strike-zone {
  display: none;
}
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #ffffff52;
  background: linear-gradient(#f4faf98c, #f4faf923);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 1.6px;
  font-weight: 800;
}
.brand-icon {
  font-size: 29px;
  color: #217580;
}
.brand-suffix {
  font-weight: 400;
  color: #387b83;
}
.back-link {
  font-size: 11px;
  letter-spacing: 0.2px;
}
.back-link span {
  padding-left: 12px;
}
.scene-title {
  position: absolute;
  top: 112px;
  left: 40px;
  pointer-events: none;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #357580;
}
h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 44px);
  letter-spacing: -2px;
  font-weight: 500;
}
.subtitle {
  font-size: 12px;
  margin: 13px 0 0;
  color: #427883;
  letter-spacing: 0.1px;
}
body[data-view='aerial'] .scene-title {
  color: #f1ffff;
}
body[data-view='aerial'] .eyebrow,
body[data-view='aerial'] .subtitle {
  color: #c5e9ed;
}
body[data-view='batting'] .scene-title,
body[data-view='batting'] .scene-note,
body[data-view='surface'] .scene-title,
body[data-view='surface'] .scene-note {
  display: none;
}
body[data-view='batter'] .scene-title,
body[data-view='batter'] .scene-note,
body[data-view='pitcher'] .scene-title,
body[data-view='pitcher'] .scene-note,
body[data-view='fielders'] .scene-title,
body[data-view='fielders'] .scene-note,
body[data-view='ball-follow'] .scene-title,
body[data-view='ball-follow'] .scene-note {
  display: none;
}
.batter-controls {
  display: none;
  position: absolute;
  top: 103px;
  right: 28px;
  width: 280px;
  padding: 17px;
  border: 1px solid #ffffffa8;
  border-radius: 12px;
  background: #f5faf0eb;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px #153f4912;
  max-height: calc(100svh - 245px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
body[data-view='batter'] .batter-controls,
body[data-view='batting'] .batter-controls,
body[data-view='pitcher'] .batter-controls {
  display: block;
}
.cinema-active .batter-controls {
  visibility: hidden;
}
.actor-summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.batter-controls[open] .actor-summary {
  margin-bottom: 17px;
}
.actor-summary:focus-visible {
  outline: 2px solid #147584;
  outline-offset: 4px;
}
.pitcher-controls {
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #c7d9d1;
}
.actor-view {
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: #63827c;
  font-size: 10px;
}
.pitcher-loop {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 10px;
}
.pitcher-loop input {
  accent-color: #175662;
}
.batter-label,
.batter-actions,
.batter-speed {
  display: flex;
  align-items: center;
  gap: 10px;
}
.batter-label {
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
}
.batter-label a {
  font-size: 10px;
  color: #63827c;
}
.batter-actions button {
  border: 1px solid #c7d9d1;
  border-radius: 6px;
  padding: 9px 12px;
  background: #fffdf3;
  font-size: 11px;
}
.batter-actions button:first-child {
  color: #fffdf3;
  background: #175662;
  border-color: #175662;
}
.batter-actions button:disabled {
  opacity: 0.5;
  cursor: wait;
}
#batter-time,
#pitcher-time {
  margin-left: auto;
  font-size: 9px;
  color: #738a80;
  font-variant-numeric: tabular-nums;
}
.batter-speed {
  margin-top: 16px;
  font-size: 10px;
}
.batter-speed input {
  accent-color: #175662;
  flex: 1;
  min-width: 50px;
  width: 90px;
  height: 5px;
}
.batter-speed output {
  min-width: 40px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.batter-controls input:focus-visible {
  outline: 2px solid #147584;
  outline-offset: 4px;
}
.idle-controls {
  margin-top: 15px;
  border-top: 1px solid #c7d9d1;
  padding-top: 13px;
}
.idle-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.idle-heading a {
  font-size: 10px;
  color: #63827c;
}
.idle-options {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.idle-options button {
  flex: 1;
  white-space: nowrap;
  padding: 8px 4px;
  border: 1px solid #c7d9d1;
  border-radius: 5px;
  background: #fffdf3;
  font-size: 9px;
}
.idle-options button[aria-pressed='true'] {
  background: #175662;
  color: #fffdf3;
  border-color: #175662;
}
#idle-description {
  font-size: 10px;
  line-height: 1.6;
  color: #52756e;
  min-height: 32px;
  margin: 9px 0 5px;
}
#idle-pause {
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.control-deck button:disabled {
  opacity: 0.4;
  cursor: default;
}
.scene-note {
  position: absolute;
  left: 40px;
  bottom: 155px;
  pointer-events: none;
  color: #e5f7f5;
  text-shadow: 0 1px 8px #164c6760;
}
.note-line {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.scene-note p {
  margin: 13px 0 7px;
  font-size: 13px;
}
.scene-note > span:last-child {
  font-size: 10px;
  letter-spacing: 0.5px;
  opacity: 0.8;
}
.control-deck {
  position: absolute;
  bottom: 61px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f7fcf5eb;
  padding: 7px;
  border: 1px solid #ffffffab;
  border-radius: 13px;
  box-shadow: 0 6px 36px #104a6120;
  backdrop-filter: blur(16px);
  max-width: calc(100% - 32px);
}
.view-buttons,
.motion-buttons {
  display: flex;
  gap: 3px;
}
.motion-buttons {
  border-left: 1px solid #d1ded8;
  padding-left: 10px;
}
.control-deck button {
  border: 0;
  background: transparent;
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  transition: background 0.15s;
}
.control-deck button span {
  color: #7b9a94;
  font-size: 8px;
  margin-right: 7px;
}
.control-deck button:hover {
  background: #dcece5;
}
.view-buttons button[aria-pressed='true'],
#orbit[aria-pressed='true'] {
  background: #175662;
  color: #f7fff9;
}
.view-buttons button[aria-pressed='true'] span {
  color: #a8d0ce;
}
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 43px;
  margin: 0 38px;
  border-top: 1px solid #ecffff38;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e2f8f7;
  text-shadow: 0 1px 5px #104a6140;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.65px;
  pointer-events: none;
}
.gesture-help {
  opacity: 0.85;
  letter-spacing: 0;
}
.gesture-help i {
  font-style: normal;
  padding: 0 8px;
  opacity: 0.5;
}
.camera-help {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  letter-spacing: 0;
}
.keyboard-help {
  font-size: 10px;
}
.camera-capture {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 112px;
  padding: 6px 9px;
  border: 1px solid #ffffff85;
  border-radius: 6px;
  background: #f5faf0eb;
  font-size: 10px;
  color: #153f49;
  white-space: nowrap;
  pointer-events: auto;
}
.camera-capture kbd {
  font: bold 10px monospace;
  padding: 2px 5px;
  border: 1px solid #c7d9d1;
  border-radius: 3px;
}
.camera-capture:disabled {
  opacity: 0.5;
  cursor: wait;
}
.loading {
  position: absolute;
  inset: 0;
  background: #edf7f5ee;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  padding: 32px;
  z-index: 5;
}
.loading[hidden] {
  display: none;
}
.loading-ring {
  width: 24px;
  height: 24px;
  border: 2px solid #b2cecb;
  border-top-color: #266e76;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1100px) {
  .control-deck {
    gap: 7px;
  }
  .control-deck button {
    padding: 12px 10px;
  }
  .control-deck button span {
    display: none;
  }
}
@media (min-width: 651px) and (max-width: 1050px) {
  .strike-zone {
    --strike-zone-clearance: 182px;
  }
  .control-deck {
    flex-direction: column;
    gap: 4px;
  }
  .motion-buttons {
    width: 100%;
    justify-content: center;
    border-left: 0;
    border-top: 1px solid #d1ded8;
    padding: 4px 0 0;
  }
  .scene-note {
    bottom: 190px;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 65px;
    padding: 0 20px;
  }
  .strike-zone {
    --strike-zone-clearance: 238px;
    border-width: 2px;
  }
  .brand {
    font-size: 10px;
    gap: 6px;
    letter-spacing: 0.8px;
  }
  .brand-icon {
    font-size: 25px;
  }
  .back-link {
    font-size: 10px;
  }
  .scene-title {
    top: 90px;
    left: 22px;
  }
  .batter-controls {
    top: 79px;
    right: 14px;
    width: 254px;
    padding: 13px;
    max-height: calc(100svh - 325px);
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.3px;
  }
  h1 {
    letter-spacing: -1.2px;
  }
  .subtitle {
    font-size: 10px;
    margin-top: 10px;
  }
  .scene-note {
    left: 22px;
    bottom: 225px;
  }
  .scene-note p {
    font-size: 11px;
  }
  .scene-note > span:last-child {
    font-size: 9px;
  }
  .control-deck {
    width: calc(100% - 28px);
    flex-direction: column;
    gap: 5px;
    bottom: 55px;
    padding: 7px;
    border-radius: 12px;
  }
  .view-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }
  .view-buttons button {
    padding: 11px 6px;
    font-size: 10px;
  }
  .motion-buttons {
    width: 100%;
    border-left: 0;
    border-top: 1px solid #d1ded8;
    padding: 4px 0 0;
    justify-content: center;
  }
  .motion-buttons button {
    padding: 8px 20px;
    font-size: 10px;
  }
  .footer {
    margin: 0 20px;
    font-size: 8px;
  }
  .footer #scene-status {
    display: none;
  }
}
@media (hover: none) and (pointer: coarse) {
  .keyboard-help {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-ring {
    animation: none;
  }
  .control-deck button {
    transition: none;
  }
}
@media (max-width: 650px) and (max-height: 700px) {
  .batter-controls {
    max-height: calc(100svh - 325px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #idle-description {
    display: none;
  }
  #idle-pause {
    margin-top: 8px;
  }
}
.bat-equipment-controls { margin: 10px 0; padding: 10px 0; border-block: 1px solid #d5ded5; font-size: 11px; }
.bat-equipment-controls label { display: inline-flex; align-items: center; gap: 5px; }
.bat-equipment-controls select { min-width: 0; padding: 5px; border: 1px solid #b9c9c5; border-radius: 5px; background: #f8fcf9; color: #244e45; font: inherit; }
.bat-graphics-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 8px; }
#bat-equipment-status { font-size: 10px; color: #52736b; margin: 7px 0 0; line-height: 1.5; }
@media (orientation: landscape) and (max-height: 540px) {
  .strike-zone {
    --strike-zone-clearance: 108px;
  }
  .control-deck {
    bottom: 10px;
    padding: 5px;
  }
  .control-deck button {
    padding: 8px 9px;
  }
  .footer {
    display: none;
  }
  .batter-controls {
    top: 89px;
    padding: 8px;
    max-height: calc(100svh - 215px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .batter-label {
    margin-bottom: 6px;
  }
  .batter-actions button {
    padding: 6px 9px;
  }
  .batter-speed {
    margin-top: 8px;
  }
  .idle-controls {
    margin-top: 6px;
    padding-top: 6px;
  }
  .idle-options {
    margin-top: 4px;
  }
  .idle-options button {
    padding: 5px 3px;
  }
  #idle-description {
    display: none;
  }
  #idle-pause {
    margin-top: 4px;
    padding: 2px 0;
  }
}

/* 홈런 세리머니 색종이. 3D 위에 얹히되 조작은 막지 않는다. */
.homerun-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* ── 설정(톱니바퀴) ────────────────────────────────────────────────────────
   우하단 톱니 → 그래픽 품질 / 소리 / 프레임 표시. 경기 중에는 숨긴다 —
   스코어보드와 겹치고, 경기가 도는 동안 바꿀 설정도 아니다.

   우상단이 아니라 우하단인 이유: 대기 화면의 HOME RUN DERBY 로고(.arcade-brand)
   가 우상단을 가득 채운다. 로고는 화면 크기에 따라 커지므로(15vw, 스테이지
   배율까지 곱해진다) 톱니를 그 아래에 맞추려면 매 프레임 높이를 재야 한다.
   비어 있는 우하단으로 내리면 어떤 해상도에서도 겹치지 않는다. */
:root {
  /* 톱니 지름 — 설정 패널이 이 값 아래로 내려온다. */
  --gear: clamp(52px, 3.2vw, 76px);
}
#settingsToggle {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 40;
  width: var(--gear);
  height: var(--gear);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(10, 18, 34, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(10, 20, 40, 0.25);
  color: #fff;
  line-height: 1;
  cursor: pointer;
}
#settingsToggle img {
  display: block;
  width: 70%;
  height: 70%;
  object-fit: contain;
  pointer-events: none;
}
#settingsToggle:hover { background: rgba(37, 60, 80, 0.85); }
#settingsToggle:focus-visible { outline: 3px solid #ffd23f; outline-offset: 3px; }
#settingsToggle[aria-expanded='true'] { background: #f4d181; color: #30271b; }
#settingsPanel {
  position: fixed;
  bottom: calc(16px + var(--gear) + 12px);
  right: 16px;
  z-index: 40;
  width: min(clamp(360px, 26vw, 540px), calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.2vw, 24px);
  padding: clamp(16px, 1.2vw, 26px) clamp(18px, 1.4vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(10, 18, 34, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(5, 12, 26, 0.45);
  color: #fff;
}
#settingsPanel[hidden] { display: none; }
body.playing #settingsToggle,
body.playing #settingsPanel { display: none; }
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.set-label { font-size: clamp(15px, 1vw, 26px); font-weight: 700; }
.set-options {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 4px;
  border: 1px solid #45515d;
  border-radius: 12px;
  background: #15212b;
}
.set-options button,
.set-link {
  min-width: clamp(46px, 3.4vw, 92px);
  min-height: clamp(36px, 2.6vw, 62px);
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c4ced7;
  font: 700 clamp(14px, 1vw, 26px) system-ui, sans-serif;
  cursor: pointer;
}
/* 운영 콘솔 줄은 버튼이 아니라 링크다 — 모양만 같게 맞춘다. */
.set-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.set-options button:hover,
.set-link:hover { background: #2b3d4c; color: #fff; }
.set-options button[aria-pressed='true'] { background: #f4d181; color: #30271b; }
.set-lang button {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", system-ui, sans-serif;
  font-size: clamp(18px, 1.3vw, 32px);
}
.set-options button:focus-visible,
.set-link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* 집쇼 로고 — 우하단, 톱니 왼쪽. 톱니 지름(--gear)을 그대로 빼서 자리를
   잡으므로 화면이 커져 톱니가 굵어져도 겹치지 않는다. 경기 중에는 톱니가
   숨지만 로고는 그 자리에 남는다. */
#zipshowBrand {
  position: fixed;
  right: calc(16px + var(--gear) + 22px);
  bottom: calc(16px + (var(--gear) - clamp(30px, 2.1vw, 46px)) / 2);
  z-index: 40;
  height: clamp(30px, 2.1vw, 46px);
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(6, 16, 32, 0.45));
  pointer-events: none;
  user-select: none;
}

/* 프레임 표시 — 켜면 경기 중에도 좌하단에 남는다. */
#fpsMeter {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(10, 18, 34, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #dfe8f1;
  font: 700 14px/1 system-ui, sans-serif;
}
#fpsMeter[hidden] { display: none; }

/* 자동재생이 막혔을 때만 나오는 소리 켜기 버튼. 월은 아무도 만지지 않는
   키오스크라, 한 번 눌러 주지 않으면 음악이 영영 시작되지 않는다. */
#soundUnlock {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 41;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 18, 34, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font: 700 clamp(14px, 1vw, 20px) system-ui, sans-serif;
  cursor: pointer;
}
#soundUnlock:hover { background: #2b3d4c; }
#soundUnlock[hidden] { display: none; }
/* 왼쪽 QR 카드(.arcade-join) 안에 들어갔을 때. 카드 폭을 그대로 채워 QR
   바로 아래에 붙는다 — 카드 높이가 화면마다 달라도 어긋날 일이 없다.
   QR 이 아직 없어 카드가 숨어 있는 동안에는 도킹하지 않고 위의 기본
   위치(하단 가운데)로 남는다. */
#soundUnlock.is-docked {
  position: static;
  transform: none;
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border: 3px solid #244c36;
  border-radius: 12px;
  background: #244c36;
  color: #fff2d3;
  font: 900 16px/1.2 system-ui, sans-serif;
}
#soundUnlock.is-docked:hover { background: #163c2c; }
