.gc-layout { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .gc-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.gc-live { margin: 0; min-height: 1.4em; word-break: keep-all; }
.gc-statrow { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; min-height: 34px; }
.gc-stat { font-weight: 700; color: var(--text-2); font-size: 14.5px; }

/* ---------- 기계 ---------- */
.gc-machine { width: min(300px, 100%); margin: 0 auto; display: flex; flex-direction: column; align-items: center; position: relative; }
.gc-lid {
  width: 42%; height: 20px; border-radius: 14px 14px 6px 6px; margin-bottom: -8px; position: relative; z-index: 2;
  background: linear-gradient(#ff7a5c, #e5383b); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15);
}
.gc-dome {
  position: relative; width: 88%; aspect-ratio: 1; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 50% 40%, rgba(214, 238, 255, .35), rgba(170, 210, 245, .28) 70%, rgba(120, 170, 220, .38));
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .7), inset 0 -16px 30px rgba(20, 70, 130, .18), 0 10px 24px rgba(0, 0, 0, .12);
  border: 2px solid rgba(120, 150, 185, .45);
}
.gc-caps { position: absolute; inset: 7px; border-radius: 50%; overflow: hidden; }
.gc-gloss {
  position: absolute; left: 14%; top: 10%; width: 30%; height: 20%; border-radius: 50%; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); transform: rotate(-28deg); z-index: 2;
}
.gc-empty {
  position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 28px; color: rgba(90, 110, 140, .55);
}
.gc-neck { width: 56%; height: 16px; margin-top: -8px; background: linear-gradient(#c62f33, #a9252a); border-radius: 4px; position: relative; z-index: 0; }

.gc-cap {
  --c: #ff5a36; --s: 17%;
  position: absolute; width: var(--s); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  background: linear-gradient(180deg, var(--c) 0 47%, rgba(0, 0, 0, .22) 47% 53%, #fdfdfd 53% 100%);
  box-shadow: inset -3px -4px 6px rgba(0, 0, 0, .18), inset 3px 3px 5px rgba(255, 255, 255, .5), 0 1px 2px rgba(0, 0, 0, .2);
}
.gc-cap::after {
  content: ""; position: absolute; left: 18%; top: 12%; width: 28%; height: 20%; border-radius: 50%; background: rgba(255, 255, 255, .6);
}
.gc-dome.is-mixing .gc-cap { animation: gc-jiggle .16s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.gc-dome.is-filling .gc-cap { animation: gc-fall .55s cubic-bezier(.3, 1.35, .5, 1) both; animation-delay: calc(var(--i, 0) * 25ms); }
.gc-cap.is-leaving { transition: top .35s ease-in, opacity .35s ease-in; top: 112% !important; opacity: 0; }
@keyframes gc-jiggle {
  from { transform: translate(-50%, -50%) rotate(var(--r, 0deg)); }
  to { transform: translate(calc(-50% + var(--dx, 4px)), calc(-50% + var(--dy, -6px))) rotate(calc(var(--r, 0deg) + 40deg)); }
}
@keyframes gc-fall { from { top: -15%; opacity: 0; } 30% { opacity: 1; } }

.gc-body {
  width: 100%; margin-top: -2px; padding: 12px 14px 16px; border-radius: 20px 20px 14px 14px; color: #fff;
  background: linear-gradient(#ff6b4a, #e5383b 70%, #c92f33);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .12), inset 0 3px 0 rgba(255, 255, 255, .25), 0 12px 26px rgba(0, 0, 0, .16);
}
.gc-sign {
  margin: 0 auto 10px; width: fit-content; padding: 3px 14px; border-radius: 999px; background: #fff; color: #c92f33;
  font-weight: 900; font-size: 14px; box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}
.gc-sign b { font-family: var(--font-num); }
.gc-panel { display: flex; align-items: flex-start; justify-content: space-around; gap: 10px; }
.gc-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gc-slot-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; opacity: .9; }
.gc-knob {
  position: relative; width: 70px; height: 70px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 4px solid #1d2030; background: radial-gradient(circle at 35% 30%, #ffffff, #e4e7ee 55%, #b8bfcc);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .25); transition: transform 1.3s cubic-bezier(.35, .1, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.gc-knob:disabled { cursor: default; }
.gc-knob:focus-visible { outline: 3px solid #ffd66b; outline-offset: 3px; }
.gc-knob-bar { position: absolute; left: 10%; right: 10%; top: 50%; height: 16px; margin-top: -8px; border-radius: 8px; background: #1d2030; }
.gc-knob-bar::after { content: ""; position: absolute; right: 6px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #ffd66b; }
.gc-outlet {
  position: relative; width: 88px; height: 74px; border-radius: 16px; background: #1d2030; display: grid; place-items: center;
  box-shadow: inset 0 8px 14px rgba(0, 0, 0, .6), 0 3px 0 rgba(255, 255, 255, .2);
}
.gc-flap {
  position: absolute; left: 6px; right: 6px; top: 6px; height: 18px; border-radius: 10px 10px 4px 4px;
  background: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .08)); pointer-events: none; z-index: 2;
}
.gc-prize {
  --c: #2f80ed;
  position: relative; width: 58px; height: 58px; border: 0; padding: 0; background: none; cursor: pointer; margin-top: 8px;
  animation: gc-drop .6s cubic-bezier(.3, 1.5, .5, 1) both, gc-wiggle 1.4s .9s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.gc-prize:focus-visible { outline: 3px solid #ffd66b; outline-offset: 2px; border-radius: 50%; }
.gc-half { position: absolute; left: 0; right: 0; height: 50%; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), opacity .45s; }
.gc-half-top { top: 0; border-radius: 29px 29px 0 0; background: var(--c); box-shadow: inset 4px 4px 0 rgba(255, 255, 255, .35); border-bottom: 3px solid rgba(0, 0, 0, .2); }
.gc-half-bot { bottom: 0; border-radius: 0 0 29px 29px; background: #fdfdfd; box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .1); }
.gc-prize.is-open { animation: none; }
.gc-prize.is-open .gc-half-top { transform: translate(-10px, -26px) rotate(-35deg); opacity: 0; }
.gc-prize.is-open .gc-half-bot { transform: translate(8px, 14px) rotate(18deg); opacity: 0; }
@keyframes gc-drop { 0% { transform: translateY(-70px); opacity: 0; } 40% { opacity: 1; } 100% { transform: none; } }
@keyframes gc-wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-9deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(0); } }

.gc-base { width: 104%; height: 16px; margin-top: -4px; border-radius: 0 0 14px 14px; background: #1d2030; opacity: .85; }
.gc-busy .gc-machine { cursor: progress; }

/* 결과 모달 속 열린 캡슐 */
.gc-m { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gc-m-cap { --c: #2f80ed; position: relative; width: 120px; height: 84px; }
.gc-m-top, .gc-m-bot { position: absolute; left: 30px; width: 60px; height: 30px; }
.gc-m-top { top: 0; border-radius: 30px 30px 0 0; background: var(--c); transform: translate(-26px, 6px) rotate(-28deg); }
.gc-m-bot { bottom: 0; border-radius: 0 0 30px 30px; background: #fdfdfd; border: 2px solid var(--border); transform: translate(24px, -4px) rotate(14deg); }
.gc-m-paper { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 30px; animation: bb-pop .5s .15s cubic-bezier(.2, 1.4, .4, 1) both; }

.gc-history { margin: 0; padding-left: 1.6em; display: grid; gap: 2px; font-weight: 700; max-height: 220px; overflow: auto; }
.gc-history li.is-blank { color: var(--text-3); font-weight: 600; }
.game-shell.is-full .gc-layout { flex: 1; align-content: center; }
