.ladder-wrap{
  max-width:640px;
}

.entry-panel{
  margin-top:40px;
  padding:34px 30px;
  background:linear-gradient(180deg, rgba(63,242,255,0.06), rgba(255,255,255,0.02));
  border:1px solid rgba(63,242,255,0.18);
  border-radius:8px;
  text-align:left;
}

.field-label{
  display:block;
  font-family:'Orbitron',sans-serif;
  font-size:11px;
  letter-spacing:.25em;
  color:var(--cyan-dim);
  margin-bottom:10px;
}

.meso-section{
  text-align:center;
  margin-bottom:8px;
}
.meso-section .field-label{
  text-align:center;
}

.meso-amount{
  font-family:'Orbitron',sans-serif;
  font-weight:700;
  font-size:clamp(20px,5.5vw,28px);
  color:var(--cyan);
  text-shadow:0 0 16px rgba(63,242,255,0.6);
  margin-bottom:22px;
  letter-spacing:.02em;
  white-space:nowrap;
  overflow-x:auto;
}

.balance-hint{
  font-size:12px;
  color:var(--text-dim,#8a99a8);
  margin-top:-14px;
  margin-bottom:18px;
  letter-spacing:.02em;
}

.meso-buttons{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}
.meso-btn{
  flex:1 1 auto;
  min-width:110px;
  padding:13px 14px;
  font-size:12px;
}

.bet-clear-btn{
  display:block;
  width:100%;
  margin-top:12px;
}

.create-row{
  margin-top:22px;
}

/* ---------- Modal ---------- */
.modal-overlay{
  position:fixed;
  inset:0;
  z-index:200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(2,4,10,0.85);
  backdrop-filter:blur(4px);
}
.modal-box{
  width:100%;
  max-width:420px;
  margin-top:0;
  max-height:90vh;
  overflow-y:auto;
}

/* ---------- 배팅 항목 선택 ---------- */
.bet-choice-groups{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin:24px 0;
}
.bet-choice-row{
  display:flex;
  gap:10px;
}
.bet-choice-btn{
  flex:1;
  padding:14px 10px;
  font-family:'Orbitron',sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:.05em;
  border-radius:4px;
  cursor:pointer;
  background:transparent;
  transition:opacity .2s ease, transform .15s ease;
}
.bet-choice-btn.choice-blue{
  border:1px solid rgba(63,150,255,0.5);
  color:#7fb4ff;
}
.bet-choice-btn.choice-blue.selected{
  background:rgba(63,150,255,0.18);
  box-shadow:0 0 16px rgba(63,150,255,0.4);
}
.bet-choice-btn.choice-red{
  border:1px solid rgba(255,95,126,0.5);
  color:#ff8fa3;
}
.bet-choice-btn.choice-red.selected{
  background:rgba(255,95,126,0.18);
  box-shadow:0 0 16px rgba(255,95,126,0.4);
}
.bet-choice-btn:disabled{
  opacity:.25;
  cursor:not-allowed;
}
.bet-choice-btn:not(:disabled):hover{
  transform:translateY(-2px);
}

/* ---------- 사다리 보드 ---------- */
.ladder-message{
  min-height:24px;
  text-align:center;
  font-family:'Orbitron',sans-serif;
  font-size:14px;
  letter-spacing:.1em;
  color:var(--cyan);
  margin-top:30px;
  margin-bottom:6px;
}

.ladder-board{
  max-width:320px;
  margin:0 auto;
}
.ladder-top, .ladder-bottom{
  display:flex;
  justify-content:space-between;
}
.ladder-node{
  width:70px;
  padding:10px 0;
  text-align:center;
  font-family:'Orbitron',sans-serif;
  font-size:15px;
  font-weight:700;
  border-radius:6px;
  transition:box-shadow .3s ease, transform .3s ease;
}
.ladder-node.node-blue{
  border:1px solid rgba(63,150,255,0.5);
  color:#7fb4ff;
  background:rgba(63,150,255,0.08);
}
.ladder-node.node-red{
  border:1px solid rgba(255,95,126,0.5);
  color:#ff8fa3;
  background:rgba(255,95,126,0.08);
}
.ladder-node.lit{
  transform:scale(1.08);
  box-shadow:0 0 20px currentColor;
}

.ladder-svg{
  width:100%;
  height:220px;
  display:block;
}
.ladder-svg .rail{
  stroke:rgba(63,242,255,0.35);
  stroke-width:2.5;
  fill:none;
}
.ladder-svg .rung{
  stroke:rgba(63,242,255,0.2);
  stroke-width:2.5;
  fill:none;
}
.ladder-svg .ball{
  fill:var(--cyan);
  filter:drop-shadow(0 0 8px rgba(63,242,255,0.9));
}
.ladder-svg .trace{
  stroke:var(--cyan);
  stroke-width:3;
  fill:none;
  filter:drop-shadow(0 0 6px rgba(63,242,255,0.7));
}

.ladder-result-info{
  text-align:center;
  min-height:24px;
  margin-top:14px;
  font-size:13px;
  color:#8fb6c9;
}
.ladder-result-info .win{color:var(--success);font-weight:700;}
.ladder-result-info .lose{color:var(--danger);font-weight:700;}

.bet-open-btn{
  display:block;
  width:100%;
  max-width:320px;
  margin:26px auto 0;
  padding:16px;
}

@media (max-width:480px){
  .entry-panel{padding:26px 20px;}
  .meso-btn{min-width:96px;font-size:11px;padding:12px 10px;}
  .ladder-node{width:56px;font-size:13px;}
}
