/* 최종 디자인: 시안 B 코인게임방 (오락기 몸체 + 조작판 + 동전 투입구) */
:root {
  --bg: #0B0B2B;
  --ink: #E8F7FF;
  --orange: #00F0FF;
  --yellow: #FFE600;
  --coral: #FF2BD6;
  --peach: #39FF14;
  --card: #15154A;
  --line: #2B2B8C;

  --palette: #FF2BD6, #00F0FF, #FFE600, #39FF14, #FF6A00, #8A5CFF, #FF3366, #00FFA3;
  --wheel-line: #0B0B2B;
  --wheel-text: #0B0B2B;
  --wheel-hub: #0B0B2B;
  --wheel-hub-ring: #FFE600;
  --ladder-line: #3D3DB8;
  --wheel-font: "Do Hyeon", sans-serif;
}

body {
  font-family: "Do Hyeon", "Apple SD Gothic Neo", sans-serif;
  background:
    linear-gradient(rgba(0, 240, 255, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(0, 240, 255, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(ellipse at top, #22105A, #0B0B2B 60%);
  background-color: #0B0B2B;
  min-height: 100vh;
}
/* CRT scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 4px);
  z-index: 50;
}

.title {
  font-size: 56px;
  color: #FFFFFF;
  text-shadow: 0 0 6px #FF2BD6, 0 0 18px #FF2BD6, 0 0 36px #FF2BD6, 4px 4px 0 #00F0FF;
  letter-spacing: 4px;
}
.subtitle { color: #00F0FF; }
.subtitle::after {
  content: "INSERT COIN";
  display: block;
  margin-top: 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  color: #FFE600;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.menu-btn, .big-btn {
  border-radius: 8px;
  color: #0B0B2B;
  border: 3px solid #FFFFFF;
  box-shadow: 0 6px 0 #000000, 0 0 18px currentColor;
  text-transform: uppercase;
}
.menu-btn { background: transparent; color: #fff; border-width: 3px; }
.menu-btn .menu-name { font-size: 32px; }
.menu-btn.c-orange { border-color: #00F0FF; box-shadow: 0 0 0 2px #0B0B2B, 0 0 18px #00F0FF, inset 0 0 18px rgba(0, 240, 255, 0.35); }
.menu-btn.c-yellow { border-color: #FFE600; box-shadow: 0 0 0 2px #0B0B2B, 0 0 18px #FFE600, inset 0 0 18px rgba(255, 230, 0, 0.3); }
.menu-btn.c-coral { border-color: #FF2BD6; box-shadow: 0 0 0 2px #0B0B2B, 0 0 18px #FF2BD6, inset 0 0 18px rgba(255, 43, 214, 0.35); }
.menu-btn .menu-name { text-shadow: 0 0 10px currentColor; }

.big-btn.c-orange { background: #00F0FF; box-shadow: 0 6px 0 #007E8A, 0 0 20px #00F0FF; }
.big-btn.c-yellow { background: #FFE600; box-shadow: 0 6px 0 #8A7C00, 0 0 20px #FFE600; }
.big-btn.c-coral { background: #FF2BD6; box-shadow: 0 6px 0 #8A0F72, 0 0 20px #FF2BD6; color: #fff; }
.big-btn.c-peach { background: #39FF14; box-shadow: 0 6px 0 #1A7A08, 0 0 20px #39FF14; }

.back-btn {
  background: transparent;
  color: #00F0FF;
  border: 2px solid #00F0FF;
  border-radius: 6px;
  box-shadow: none;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
}
.bar h2 { color: #FFE600; text-shadow: 0 0 12px #FFE600; }

.result {
  background: #000000;
  border: 3px solid #39FF14;
  border-radius: 6px;
  color: #39FF14;
  text-shadow: 0 0 8px #39FF14;
  font-size: 26px;
}
.hint { color: #9FA8FF; }

.card, .ladder-box {
  background: var(--card);
  border: 2px solid #3D3DB8;
  border-radius: 10px;
  box-shadow: 0 0 0 4px #0B0B2B, 0 0 0 6px #3D3DB8;
}
.card h3, .stepper-label { color: #00F0FF; }
.item-row input { background: #0B0B2B; color: #fff; border-color: #3D3DB8; border-radius: 6px; }
.item-row input:focus { border-color: #FF2BD6; box-shadow: 0 0 10px #FF2BD6; }
.del-btn { background: #FF2BD6; border-radius: 6px; }
.add-btn { border-color: #00F0FF; color: #00F0FF; border-radius: 6px; }
.stepper button { background: #FF2BD6; border-radius: 6px; box-shadow: 0 4px 0 #8A0F72; }
.stepper span { color: #FFE600; font-family: "Press Start 2P", monospace; font-size: 20px; }

.pointer { border-top-color: #FFE600; filter: drop-shadow(0 0 8px #FFE600); }
.wheel-wrap { border-radius: 50%; box-shadow: 0 0 0 6px #0B0B2B, 0 0 0 10px #FF2BD6, 0 0 40px #FF2BD6; }

.start-btn { border-radius: 6px; color: #0B0B2B; }
.ladder-cover {
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, #15154A 0 12px, #1E1E66 12px 24px);
  color: #FFE600;
  text-shadow: 0 0 10px #FFE600;
  border: 2px dashed #FFE600;
}
.end-cell { background: #0B0B2B; color: #9FA8FF; border-radius: 6px; border: 2px solid #3D3DB8; }
.end-cell.win { background: #FFE600; color: #0B0B2B; box-shadow: 0 0 14px #FFE600; }
.end-cell.lose { background: #24244F; color: #6C6CA8; }

.coin-ground { background: #FF2BD6; box-shadow: 0 0 16px #FF2BD6; border-radius: 2px; }
.coin-shadow { background: rgba(0, 240, 255, 0.35); }
.face { border-color: #FFE600; color: #0B0B2B; font-family: "Press Start 2P", "Do Hyeon", monospace; font-size: 24px; }
.face-front { background: #FFE600; }
.face-back { background: #00F0FF; }
.edge { background: #B8A600; }

/* ---------- 오락기 몸체 ---------- */
.cabinet {
  max-width: 580px;
  margin: 16px auto 40px;
  padding: 0 12px;
}
.app { padding: 16px 14px 28px; }

.marquee {
  position: relative;
  border-radius: 28px 28px 0 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, #FF2BD6, #8A2BE2);
  border: 4px solid #000;
  border-bottom: 0;
  box-shadow: 0 0 30px rgba(255, 43, 214, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.3);
  text-align: center;
}
.marquee-title {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(16px, 5vw, 26px);
  color: #FFFFFF;
  padding: 10px 0;
  text-shadow: 0 0 6px #FFF, 0 0 14px #FFE600, 3px 3px 0 #000;
  letter-spacing: 2px;
}
.marquee-bulbs {
  height: 10px;
  background: radial-gradient(circle, #FFE600 0 3px, transparent 4px) 0 50% / 18px 10px repeat-x;
  animation: bulbs 0.6s steps(2) infinite;
  filter: drop-shadow(0 0 4px #FFE600);
}
@keyframes bulbs { to { background-position: 18px 50%; } }

.cabinet-body {
  position: relative;
  padding: 14px 14px 18px;
  background:
    linear-gradient(90deg, #FF2BD6 0 6px, transparent 6px calc(100% - 6px), #00F0FF calc(100% - 6px)),
    linear-gradient(180deg, #1B1B5C, #101040);
  border: 4px solid #000;
  border-top: 0;
  border-bottom: 0;
}
.speaker {
  height: 14px;
  margin: 0 30% 12px;
  border-radius: 7px;
  background: repeating-linear-gradient(90deg, #000 0 4px, #2B2B6E 4px 8px);
}
.screen {
  position: relative;
  border-radius: 22px;
  border: 12px solid #050510;
  background: rgba(11, 11, 43, 0.92);
  box-shadow: 0 0 0 3px #3D3DB8, inset 0 0 40px rgba(0, 240, 255, 0.18);
  overflow: hidden;
}
/* glass glare */
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 22%, transparent 22%);
  z-index: 5;
}

/* ---------- 조작판 ---------- */
.control-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 26px 26px;
  background: linear-gradient(180deg, #2B2B8C, #15154A);
  border: 4px solid #000;
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.12), 0 8px 0 #000;
  clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
}

.joystick {
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
.joy-base {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 80px;
  height: 34px;
  margin-left: -40px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #3A3A3A, #000);
  box-shadow: 0 4px 0 #000;
}
.joy-stick, .joy-ball {
  position: absolute;
  left: 50%;
  transform-origin: 50% 100%;
  transition: transform 0.15s;
}
.joy-stick {
  bottom: 20px;
  width: 10px;
  height: 46px;
  margin-left: -5px;
  border-radius: 5px;
  background: linear-gradient(90deg, #888, #EEE, #888);
}
.joy-ball {
  bottom: 54px;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF8AA0, #FF1744 55%, #8A0016);
  box-shadow: 0 0 14px rgba(255, 23, 68, 0.6);
  transform-origin: 50% 160%;
}
.joystick.wiggle .joy-stick, .joystick.wiggle .joy-ball { animation: wiggle 0.5s ease-in-out; }
@keyframes wiggle {
  25% { transform: rotate(-22deg); }
  60% { transform: rotate(18deg); }
  85% { transform: rotate(-6deg); }
}

.arcade-btns { display: flex; gap: 14px; }
.arcade-btn-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.arcade-btn-wrap span { font-size: 14px; color: #9FA8FF; }
.arcade-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid #000;
  cursor: pointer;
  box-shadow: 0 6px 0 #000, inset 0 -6px 0 rgba(0, 0, 0, 0.3), inset 0 4px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
}
.ab-cyan { background: #00F0FF; }
.ab-yellow { background: #FFE600; }
.ab-pink { background: #FF2BD6; }
.arcade-btn:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 #000, inset 0 -2px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* ---------- 동전 투입구 ---------- */
.coin-slot {
  position: relative;
  width: 64px;
  height: 84px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 3px solid #555;
  background: linear-gradient(180deg, #5A5A5A, #2A2A2A);
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.slot-hole {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 8px;
  height: 34px;
  margin-left: -4px;
  border-radius: 4px;
  background: #000;
  box-shadow: 0 0 0 3px #FF6A00, 0 0 12px #FF6A00;
}
.slot-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  font-size: 13px;
  color: #FFE600;
}
.slot-coin {
  position: absolute;
  left: 50%;
  top: -30px;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF6A0, #E0B000);
  border: 2px solid #8A6A00;
  opacity: 0;
}
.coin-slot.drop .slot-coin { animation: coin-drop 0.45s ease-in; }
@keyframes coin-drop {
  0% { top: -30px; opacity: 1; transform: rotateY(0); }
  70% { top: 14px; opacity: 1; transform: rotateY(80deg); }
  100% { top: 22px; opacity: 0; transform: rotateY(90deg); }
}

.credit { flex: 1; text-align: center; min-width: 0; }
.credit-label { display: block; font-family: "Press Start 2P", monospace; font-size: 11px; color: #FF2BD6; }
.credit-num {
  display: inline-block;
  margin: 6px 0;
  padding: 4px 12px;
  background: #000;
  border-radius: 4px;
  font-family: "Press Start 2P", monospace;
  font-size: 20px;
  color: #FF3B3B;
  text-shadow: 0 0 8px #FF3B3B;
}
.credit-hint { display: block; font-size: 13px; color: #9FA8FF; }
.credit-num.bump { animation: bump 0.3s; }
@keyframes bump { 50% { transform: scale(1.3); color: #FFE600; } }

/* ---------- 마우스 올렸을 때 반응 ---------- */
@media (hover: hover) {
  .menu-btn { transition: transform 0.15s, background 0.15s, color 0.15s; }
  .menu-btn:hover { transform: translateY(-3px); animation: flicker 0.35s steps(2) 1; }
  .menu-btn.c-orange:hover { background: rgba(0, 240, 255, 0.18); }
  .menu-btn.c-yellow:hover { background: rgba(255, 230, 0, 0.16); }
  .menu-btn.c-coral:hover { background: rgba(255, 43, 214, 0.18); }
  .menu-btn::before {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    margin-top: -12px;
    border-left: 18px solid currentColor;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
  }
  .menu-btn:hover::before { opacity: 1; animation: nudge 0.6s ease-in-out infinite; }
  .menu-btn.c-orange::before { color: #00F0FF; }
  .menu-btn.c-yellow::before { color: #FFE600; }
  .menu-btn.c-coral::before { color: #FF2BD6; }

  .big-btn:not(:disabled):hover { transform: translateY(-3px); filter: brightness(1.15); }
  .big-btn:not(:disabled):active { transform: translateY(4px); }
  .back-btn:hover { background: #00F0FF; color: #0B0B2B; box-shadow: 0 0 14px #00F0FF; }
  .start-btn:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 0 14px currentColor, 0 0 0 2px #fff; opacity: 1; }
  .stepper button:hover { filter: brightness(1.2); box-shadow: 0 4px 0 #8A0F72, 0 0 14px #FF2BD6; }
  .del-btn:hover { filter: brightness(1.2); box-shadow: 0 0 12px #FF2BD6; }
  .add-btn:hover { background: rgba(0, 240, 255, 0.12); box-shadow: 0 0 12px #00F0FF; }

  .joystick:hover .joy-stick, .joystick:hover .joy-ball { transform: rotate(-14deg); }
  .joystick:hover .joy-ball { box-shadow: 0 0 24px #FF1744; }
  .arcade-btn:hover { filter: brightness(1.25); box-shadow: 0 6px 0 #000, 0 0 22px currentColor, inset 0 -6px 0 rgba(0, 0, 0, 0.3), inset 0 4px 0 rgba(255, 255, 255, 0.4); }
  .ab-cyan { color: #00F0FF; }
  .ab-yellow { color: #FFE600; }
  .ab-pink { color: #FF2BD6; }
  .arcade-btn-wrap:hover span { color: #fff; }
  .coin-slot:hover { border-color: #FF6A00; box-shadow: 0 0 18px #FF6A00; }
  .coin-slot:hover .slot-hole { animation: slot-glow 0.5s ease-in-out infinite alternate; }
}
.big-btn, .back-btn, .start-btn, .stepper button { transition: transform 0.12s, filter 0.12s, box-shadow 0.12s, background 0.12s, color 0.12s; }
.menu-btn { position: relative; }
@keyframes flicker { 50% { opacity: 0.6; } }
@keyframes nudge { 50% { transform: translateX(6px); } }
@keyframes slot-glow { to { box-shadow: 0 0 0 3px #FFE600, 0 0 22px #FFE600; } }

:focus-visible { outline: 3px solid #FFE600; outline-offset: 3px; }

@media (max-width: 420px) {
  .cabinet { padding: 0 6px; }
  .cabinet-body { padding: 10px 8px 12px; }
  .screen { border-width: 8px; }
  .control-panel { padding: 16px 16px 20px; }
  .joystick { width: 76px; height: 86px; }
  .arcade-btns { gap: 8px; }
  .arcade-btn { width: 46px; height: 46px; }
  .coin-slot { width: 52px; height: 72px; }
}

/* ---------- 한 화면 맞춤 (PC, 폰 모두 스크롤 없음) ---------- */
:root { --wheel-fit: 1; }
html, body { height: 100%; overflow: hidden; }
body { min-height: 0; }

.cabinet {
  height: 100vh;
  height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
}
.marquee { flex: none; padding: 4px 12px; border-radius: 22px 22px 0 0; }
.marquee-title { font-size: clamp(14px, 4.4vw, 22px); padding: 6px 0; }
.marquee-bulbs { height: 8px; }

.cabinet-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 12px 10px;
}
.speaker { flex: none; height: 8px; margin: 0 32% 8px; }
.screen { flex: 1; min-height: 0; display: flex; border-width: 10px; }

.app {
  position: relative;
  flex: 1;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.view > * { flex: none; }
.bar { margin: 0; }
.bar h2 { font-size: 24px; }
.result { margin: 0; min-height: 46px; padding: 6px 10px; font-size: 20px; }
.big-btn { min-height: 52px; font-size: 22px; }
.btn-row .big-btn { font-size: 20px; }
.hint { margin: 0; font-size: 14px; }

/* 첫 화면 */
#view-home { gap: 8px; }
.title { margin: 4px 0 0; font-size: clamp(32px, 8vw, 50px); }
.subtitle { margin: 0 0 4px; font-size: 15px; }
.subtitle::after { margin-top: 6px; font-size: 11px; }
.menu { flex: 1; min-height: 0; grid-auto-rows: minmax(0, 1fr); gap: 10px; }
.menu-btn { padding: 8px 18px; display: flex; flex-direction: column; justify-content: center; }
.menu-btn .menu-name { font-size: clamp(22px, 4.5vh, 30px); }

/* 룰렛 */
.wheel-wrap {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding-top: 18px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  border-radius: 0;
  box-shadow: none;
}
#wheel { border-radius: 50%; box-shadow: 0 0 0 5px #0B0B2B, 0 0 0 9px #FF2BD6, 0 0 30px #FF2BD6; }
.pointer { top: 0; }

.card.editor {
  position: absolute;
  inset: 8px;
  z-index: 10;
  margin: 0;
  display: none;
  flex-direction: column;
  overflow: auto;
  box-shadow: 0 0 0 4px #0B0B2B, 0 0 0 6px #3D3DB8, 0 0 40px rgba(0, 0, 0, 0.8);
}
.card.editor.open { display: flex; }
.editor-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.editor-head h3 { margin: 0; }
.close-btn {
  border: 0;
  border-radius: 6px;
  padding: 8px 16px;
  background: #39FF14;
  color: #0B0B2B;
  font-family: inherit;
  font-size: 18px;
  cursor: pointer;
}
.editor .items { grid-template-columns: 1fr 1fr; gap: 8px; }
.editor .item-row input { height: 44px; font-size: 16px; padding: 0 10px; }
.editor .del-btn { width: 40px; height: 44px; font-size: 22px; }
.editor .add-btn { height: 44px; }

/* 사다리 */
#view-ladder { gap: 8px; }
.ladder-box { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; }
.ladder-row { flex: none; }
.ladder-canvas-wrap { flex: 1 1 0; min-height: 80px; }
#ladder { position: absolute; inset: 0; width: 100%; height: 100%; }
.start-btn { min-height: 38px; }
.end-cell { min-height: 36px; padding: 7px 2px; }
#view-ladder .card {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  padding: 8px 10px;
}
#view-ladder .stepper-row + .stepper-row { margin-top: 0; }
#view-ladder .stepper-row { gap: 8px; }
#view-ladder .stepper-label { font-size: 16px; }
#view-ladder .stepper { gap: 6px; }
#view-ladder .stepper button { width: 38px; height: 38px; font-size: 22px; }
#view-ladder .stepper span { min-width: 26px; font-size: 16px; }

/* 동전 */
.coin-stage { flex: 1 1 0; min-height: 200px; height: auto; margin: 0; }

/* 조작판 (크레딧 + 조이스틱 + 버튼 + 동전구멍) */
.control-panel {
  flex: none;
  display: block;
  padding: 8px 22px 12px;
}
.credit-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.credit-label { display: inline; font-size: 9px; }
.credit-num { margin: 0; padding: 2px 8px; font-size: 12px; }
.credit-hint { display: inline; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.joystick { width: 70px; height: 74px; }
.joy-base { width: 60px; height: 24px; margin-left: -30px; bottom: 2px; }
.joy-stick { bottom: 14px; height: 34px; width: 8px; margin-left: -4px; }
.joy-ball { bottom: 40px; width: 30px; height: 30px; margin-left: -15px; }
.arcade-btns { gap: 12px; }
.arcade-btn-wrap { gap: 4px; }
.arcade-btn-wrap span { font-size: 12px; }
.arcade-btn { width: 48px; height: 48px; }
.coin-slot { width: 50px; height: 66px; }
.slot-hole { top: 9px; height: 26px; }
.slot-label { bottom: 5px; font-size: 11px; }

@media (max-width: 420px) {
  .cabinet { padding: 6px 6px 8px; }
  .cabinet-body { padding: 6px 8px 8px; }
  .screen { border-width: 7px; }
  .app { padding: 10px; }
  .control-panel { padding: 6px 14px 10px; }
  .joystick { width: 58px; height: 70px; }
  .arcade-btns { gap: 8px; }
  .arcade-btn { width: 42px; height: 42px; }
  .coin-slot { width: 44px; height: 60px; }
  .credit-hint { font-size: 11px; }
  #view-ladder .stepper-label { font-size: 14px; }
}
@media (max-height: 700px) {
  .speaker { display: none; }
  .marquee-title { padding: 3px 0; }
  .subtitle::after { display: none; }
  .result { min-height: 40px; font-size: 18px; }
  .big-btn { min-height: 46px; }
}

/* 높이 절약 */
.marquee { padding: 2px 12px; }
.marquee-bulbs { height: 6px; background-size: 16px 6px; }
.marquee-title { padding: 3px 0; }
#view-ladder .hint { display: none; }
.control-panel { padding: 6px 22px 10px; }
.credit-strip { margin-bottom: 4px; }
.joystick { width: 62px; height: 62px; }
.joy-base { width: 54px; height: 20px; margin-left: -27px; }
.joy-stick { bottom: 12px; height: 28px; }
.joy-ball { bottom: 32px; width: 28px; height: 28px; margin-left: -14px; }
.arcade-btn { width: 44px; height: 44px; }
.coin-slot { width: 46px; height: 58px; }
.slot-hole { top: 7px; height: 22px; }
@media (max-width: 420px) {
  .joystick { width: 54px; height: 60px; }
  .arcade-btn { width: 40px; height: 40px; }
  .coin-slot { width: 42px; height: 56px; }
}
/* 사다리: 결과는 아래 칸에 바로 보이므로 결과 문구 줄은 생략 */
#ladder-result { display: none; }
#view-ladder .big-btn { min-height: 46px; }
#view-ladder .stepper-label { white-space: nowrap; }
@media (max-width: 380px) {
  #view-ladder .card { gap: 6px; padding: 8px 6px; }
  #view-ladder .stepper-row { gap: 4px; }
  #view-ladder .stepper button { width: 34px; height: 34px; }
}
.card.editor { overflow-x: hidden; }
.editor .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editor .item-row { min-width: 0; gap: 4px; }
.editor .del-btn { flex: none; width: 36px; }
