/* slot.money10000.com 공통 스타일 */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  background: #0b0b1f;
  color: #e8e8ff;
  min-height: 100vh;
}

a { color: #ffd166; text-decoration: none; }
a:hover { text-decoration: underline; }

.bg-grid {
  background-image:
    radial-gradient(ellipse at top, #1a0a3d 0%, #0b0b1f 60%),
    repeating-linear-gradient(0deg, transparent 0 40px, rgba(255,255,255,0.02) 40px 41px);
}

/* 로비 */
.lobby-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.lobby-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,209,102,0.5);
  box-shadow: 0 8px 32px rgba(255,209,102,0.15);
}
.lobby-card .icon {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.lobby-card .title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}
.lobby-card .sub {
  font-size: 0.85rem;
  color: #aaa;
  text-align: center;
  margin-top: 0.25rem;
}
.lobby-card .badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255,209,102,0.2);
  border: 1px solid rgba(255,209,102,0.5);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  color: #ffd166;
}

/* 슬롯 그리드 */
.slot-grid {
  display: grid;
  gap: 6px;
  background: #1a1a3a;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.1);
  user-select: none;
}
.slot-cell {
  background: linear-gradient(180deg, #2a2a4d, #1a1a35);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: transform 0.1s, background 0.2s;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.slot-cell.win {
  background: linear-gradient(180deg, #ffd166, #ff9933);
  color: #1a1a35;
  box-shadow: 0 0 20px rgba(255,209,102,0.7);
  animation: pulse 0.6s ease-in-out infinite alternate;
}
.slot-cell.dim { opacity: 0.3; }
.slot-cell.expanded {
  background: linear-gradient(180deg, #6b46c1, #3b2070);
  box-shadow: inset 0 0 20px rgba(255,209,102,0.4);
}

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

@keyframes spin-blur {
  0% { transform: translateY(0); filter: blur(0); }
  20% { transform: translateY(-200px); filter: blur(8px); }
  80% { transform: translateY(-200px); filter: blur(8px); }
  100% { transform: translateY(0); filter: blur(0); }
}

.spinning .slot-cell {
  animation: spin-blur 0.8s ease-in-out;
}

/* 컨트롤 패널 */
.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s, box-shadow 0.2s;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, #ffd166, #ff9933);
  color: #1a1a35;
}
.btn-primary:hover { box-shadow: 0 4px 20px rgba(255,209,102,0.4); }
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
}

input[type="text"], input[type="password"], input[type="number"], select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  color: #fff;
  font-size: 1rem;
  outline: none;
  width: 100%;
}
input:focus, select:focus { border-color: #ffd166; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.1); }
th { background: rgba(255,255,255,0.04); font-size: 0.85rem; color: #aaa; }

.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(20,20,40,0.95);
  border-left: 4px solid #ffd166;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  z-index: 9999;
  animation: slide-in 0.3s ease-out;
  max-width: 320px;
}
.toast.error { border-left-color: #e74c3c; }
.toast.success { border-left-color: #2ecc71; }
@keyframes slide-in {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.win-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #ffd166, #ff9933);
  color: #1a1a35;
  font-size: 3rem;
  font-weight: 900;
  padding: 1rem 2rem;
  border-radius: 16px;
  pointer-events: none;
  animation: win-pop 1.5s ease-out forwards;
  z-index: 100;
  text-align: center;
}
@keyframes win-pop {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  20% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -150%) scale(1); opacity: 0; }
}
