/* ============================================================
   neon.css — 네온 간판 / 디지털 카운터 / 전면 확대 숫자 / 배너
   ============================================================ */

:root {
  --neon-cyan:   #00e5ff;
  --neon-red:    #ff2d55;
  --neon-yellow: #ffd60a;
  --neon-purple: #b14aed;
  --neon-green:  #39ff14;
  --neon-pink:   #ff5bd0;
  --gold:        #ffd700;
  --silver:      #c0c0c0;
  --bronze:      #cd7f32;
}

/* ---------- 상단 네온 간판 ---------- */
#signboard {
  position: absolute;
  left: 0; top: 46px;
  width: 100%; height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  animation: signFlicker 4.5s infinite;
}
@keyframes signFlicker {
  0%, 92%, 96%, 100% { filter: brightness(1); }
  93% { filter: brightness(0.55); }
  95% { filter: brightness(1.35); }
}

.sign-tiles { display: flex; align-items: center; gap: 8px; }
.tile-gap { width: 26px; }

.tile {
  display: inline-block;
  font-size: 88px;
  line-height: 1;
  padding: 16px 16px 20px;
  border-radius: 16px;
  color: #fff;
  text-shadow: 0 3px 0 rgba(0,0,0,.35);
  border: 4px solid rgba(255,255,255,.85);
  box-shadow: 0 0 18px rgba(255,255,255,.5), inset 0 -6px 14px rgba(0,0,0,.28);
}
.tile.c1 { background: linear-gradient(180deg,#ff5a6e,#e01b3d); transform: rotate(-7deg); }
.tile.c2 { background: linear-gradient(180deg,#ffe066,#f2b705); transform: rotate(5deg);  color:#4a2b00; }
.tile.c3 { background: linear-gradient(180deg,#5ef0ff,#00b8d4); transform: rotate(-4deg); color:#04303a; }
.tile.c4 { background: linear-gradient(180deg,#ff8ae0,#e24bbd); transform: rotate(8deg);  }
.tile.c5 { background: linear-gradient(180deg,#9dff7a,#3fbf23); transform: rotate(-6deg); color:#123a06; }

.deco-star {
  font-size: 62px;
  color: var(--neon-yellow);
  text-shadow: 0 0 12px #ffd60a, 0 0 30px #ff9500;
  animation: starSpin 6s linear infinite;
}
.deco-star.right { animation-direction: reverse; }
@keyframes starSpin { to { transform: rotate(360deg); } }

/* 흐르는 전구 */
.bulb-row {
  position: absolute;
  left: 10%; bottom: 6px;
  width: 80%; height: 12px;
  background-image: radial-gradient(circle, #fff 38%, rgba(255,255,255,0) 40%);
  background-size: 34px 12px;
  background-repeat: repeat-x;
  opacity: .9;
  filter: drop-shadow(0 0 6px #ffe9a8);
  animation: bulbRun 1.1s linear infinite;
}
@keyframes bulbRun { to { background-position-x: 34px; } }

/* ---------- 네온 튜브 프레임 ---------- */
.neon-frame {
  position: absolute; inset: -6px;
  border-radius: 34px;
  border: 7px solid var(--neon-cyan);
  box-shadow:
    0 0 14px var(--neon-cyan),
    0 0 38px rgba(0,229,255,.75),
    inset 0 0 22px rgba(0,229,255,.55);
  pointer-events: none;
  animation: tubePulse 2.4s ease-in-out infinite;
}
.neon-frame::after {
  content: '';
  position: absolute; inset: 10px;
  border-radius: 26px;
  border: 3px solid rgba(255,91,208,.8);
  box-shadow: 0 0 12px rgba(255,91,208,.8), inset 0 0 12px rgba(255,91,208,.4);
}
@keyframes tubePulse {
  0%,100% { filter: brightness(1); }
  50%     { filter: brightness(1.35); }
}

/* ---------- 디지털 카운터 (전면 정중앙 · 최우선 가시성) ---------- */
#counter {
  position: absolute;
  left: 50%;
  top: 34px;
  transform: translateX(-50%);
  width: 85%;
  height: 190px;
  border-radius: 20px;
  background: linear-gradient(180deg, #0b0118 0%, #16032a 100%);
  border: 5px solid rgba(255,255,255,.18);
  box-shadow:
    0 12px 28px rgba(0,0,0,.6),
    inset 0 0 30px rgba(255,45,85,.22);
  z-index: 25;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s, transform .4s;
}
#counter .seg {
  position: absolute;
  font-family: 'Courier New', 'Consolas', monospace;
  font-weight: 700;
  font-size: 138px;
  letter-spacing: 8px;
  line-height: 1;
}
#counter .ghost { color: rgba(255,255,255,.055); }
#counter .live {
  color: var(--neon-red);
  text-shadow: 0 0 10px #ff2d55, 0 0 28px #ff2d55, 0 0 60px rgba(255,45,85,.7);
  transition: color .25s, text-shadow .25s;
}
/* 9.00 초 이후 경고 색상 */
#counter.warn .live {
  color: var(--neon-yellow);
  text-shadow: 0 0 10px #ffd60a, 0 0 30px #ffd60a, 0 0 64px rgba(255,214,10,.75);
}
#counter.hot .live {
  color: var(--neon-green);
  text-shadow: 0 0 12px #39ff14, 0 0 34px #39ff14, 0 0 72px rgba(57,255,20,.8);
  animation: heartBeat .42s ease-in-out infinite;
}
@keyframes heartBeat {
  0%,100% { transform: scale(1); }
  28%     { transform: scale(1.075); }
  55%     { transform: scale(0.985); }
}
#counter.hidden { opacity: 0; transform: translateX(-50%) translateY(-24px); }

/* ---------- STOP 시 전면으로 튀어나오는 숫자 ---------- */
#popNumber {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(3,0,12,.55);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
#popNumber.show { display: flex; }
#popText {
  font-family: 'Courier New', 'Consolas', monospace;
  font-weight: 700;
  /* 00.000 은 6글자(모노스페이스 ≒ 0.6em) → 가로폭 ≒ 3.6 x font-size.
     17vw 면 화면 폭의 약 61% 라 어떤 기기에서도 잘리지 않는다. (2026-09-24) */
  font-size: max(34px, min(17vw, 20vh, 150px));
  letter-spacing: 4px;
  white-space: nowrap;
  max-width: 96vw;
  color: #fff;
  transform: scale(.35);
  opacity: 0;
  text-shadow:
    -6px 0 0 rgba(255,45,85,.85),
     6px 0 0 rgba(0,229,255,.85),
     0 0 40px rgba(255,255,255,.95),
     0 0 90px rgba(0,229,255,.8);
  animation: popIn .45s cubic-bezier(.2,1.4,.3,1) forwards;
}
@keyframes popIn {
  0%   { transform: scale(.35); opacity: 0; }
  70%  { transform: scale(1.16); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}

/* 충격파 링 */
.shock {
  position: fixed;
  left: 50%; top: 50%;
  width: 120px; height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,.9);
  z-index: 199;
  pointer-events: none;
  animation: shockOut .7s ease-out forwards;
}
.shock.s2 { border-color: rgba(0,229,255,.85); animation-delay: .12s; }
@keyframes shockOut {
  0%   { transform: scale(.2); opacity: .95; }
  100% { transform: scale(11);  opacity: 0; }
}

/* ---------- 등급 배너 ---------- */
#banner {
  position: fixed; inset: 0; z-index: 210;
  display: none;
  align-items: center; justify-content: center;
  pointer-events: none;
}
#banner.show { display: flex; }
#bannerText {
  font-size: max(26px, min(9vw, 104px));
  padding: 3vw 5vw;
  max-width: 94vw;
  text-align: center;
  word-break: keep-all;
  border-radius: 24px;
  border: 6px solid currentColor;
  background: rgba(6,1,20,.72);
  letter-spacing: 3px;
  animation: bannerIn .5s cubic-bezier(.2,1.5,.35,1) forwards;
  text-shadow: 0 0 18px currentColor, 0 0 46px currentColor;
  box-shadow: 0 0 26px currentColor, inset 0 0 26px rgba(255,255,255,.18);
}
@keyframes bannerIn {
  0%   { transform: scale(.4) rotate(-8deg); opacity: 0; }
  100% { transform: scale(1)   rotate(-3deg); opacity: 1; }
}
.g-perfect { color: var(--gold); }
.g-amazing { color: var(--neon-pink); }
.g-great   { color: var(--neon-cyan); }
.g-good    { color: var(--neon-green); }
.g-close   { color: var(--neon-yellow); }

/* ---------- READY 카운트다운 ---------- */
#ready {
  position: fixed; inset: 0; z-index: 205;
  display: none;
  align-items: center; justify-content: center;
  pointer-events: none;
}
#ready.show { display: flex; }
#readyText {
  font-size: max(64px, min(34vw, 200px));
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 0 20px var(--neon-cyan), 0 0 60px var(--neon-cyan);
  animation: readyPulse .85s ease-out;
}
@keyframes readyPulse {
  0%   { transform: scale(2.2); opacity: 0; }
  30%  { transform: scale(1);   opacity: 1; }
  100% { transform: scale(.82); opacity: 0; }
}

/* ---------- 공용 네온 버튼 ---------- */
.nbtn {
  font-size: 30px;
  padding: 16px 34px;
  border-radius: 14px;
  border: 3px solid currentColor;
  background: rgba(8,2,24,.7);
  text-shadow: 0 0 10px currentColor;
  box-shadow: 0 0 14px currentColor, inset 0 0 14px rgba(255,255,255,.12);
  transition: transform .12s, filter .15s;
}
.nbtn:active { transform: scale(.94); }
.nbtn:hover  { filter: brightness(1.25); }
.nbtn.cyan   { color: var(--neon-cyan); }
.nbtn.purple { color: var(--neon-purple); }
.nbtn.yellow { color: var(--neon-yellow); }

/* 인트로 경품 안내 */
.intro-prize {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255,167,38,.14);
  border: 2px solid rgba(255,167,38,.55);
  color: #ffd9a0;
  font-size: 26px;
}
.intro-prize b { color: #ffb74d; }
