/* 누적 클리커 — 전용 스타일 (헤더·리더보드·레이아웃은 ../game/styles.css 재사용) */

.clicker-game {
  align-items: stretch;
  gap: 18px;
}

/* 저장 안내 (비로그인) */
.save-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
  background: #fdf6e3;
  border: 1px solid #e5c96b;
  border-radius: 10px;
  padding: 8px 12px;
}
.save-hint a {
  color: var(--accent-dark);
  font-weight: 700;
}
.save-hint.hidden {
  display: none;
}

/* 큰 클릭 대상 */
.clicker-arena {
  display: flex;
  justify-content: center;
  padding: 4px 0 2px;
}

.clicker-pad {
  position: relative;
  width: 210px;
  height: 210px;
  max-width: 66vw;
  max-height: 66vw;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, #ffffff, #e7ecff);
  box-shadow: 0 14px 30px rgba(79, 109, 245, 0.28), inset 0 -6px 14px rgba(31, 37, 51, 0.08);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  transition: transform 0.06s ease, box-shadow 0.12s ease;
  overflow: visible;
}

.clicker-pad:hover {
  box-shadow: 0 16px 36px rgba(79, 109, 245, 0.38), inset 0 -6px 14px rgba(31, 37, 51, 0.08);
}

.clicker-pad:active {
  transform: scale(0.95);
}

.clicker-pad.hit {
  animation: pad-pop 0.09s ease;
}

.clicker-pad.evolve {
  animation: pad-evolve 0.6s ease;
}

/* 2배 이벤트 중 — 패드가 뜨겁게 빛남 */
.clicker-pad.boost {
  background: radial-gradient(circle at 50% 34%, #fff1d6, #ffd27a);
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.35), 0 14px 34px rgba(240, 150, 20, 0.5),
    inset 0 -6px 14px rgba(31, 37, 51, 0.08);
  animation: boost-glow 0.9s ease-in-out infinite;
}

@keyframes boost-glow {
  50% { box-shadow: 0 0 0 8px rgba(255, 176, 32, 0.22), 0 16px 40px rgba(240, 150, 20, 0.6),
    inset 0 -6px 14px rgba(31, 37, 51, 0.08); }
}

.pad-emoji {
  font-size: 6rem;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(31, 37, 51, 0.18));
}

@keyframes pad-pop {
  0% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes pad-evolve {
  0% { transform: scale(1); }
  30% { transform: scale(1.18) rotate(-6deg); }
  60% { transform: scale(1.08) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

/* 클릭 시 떠오르는 +N */
.float-up {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-dark);
  pointer-events: none;
  white-space: nowrap;
  animation: float-up 0.7s ease forwards;
}

/* 치명타 강조 */
.float-up.crit {
  font-size: 1.7rem;
  color: #e0512a;
  text-shadow: 0 1px 6px rgba(224, 81, 42, 0.35);
}

@keyframes float-up {
  0% { opacity: 0.9; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -46px); }
}

/* 콤보 / 2배 이벤트 바 */
.combo-bar {
  position: relative;
  height: 26px;
  border-radius: 999px;
  background: #eef1fb;
  border: 1px solid var(--border);
  overflow: hidden;
}

.combo-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, #9fb2ff, var(--accent));
  transition: width 0.12s ease;
}

.combo-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.combo-bar.boost {
  border-color: #f0a020;
}

.combo-bar.boost .combo-fill {
  background: linear-gradient(90deg, #ffcf6b, #f0961e);
}

.combo-bar.boost .combo-text {
  color: #7a4a00;
}

/* 스탯 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* 현재 버프 칩 */
.buff-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.buff-chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  background: #eef1fb;
  border-radius: 999px;
  padding: 4px 12px;
}

.buff-chip b {
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  background: #eef1fb;
  border-radius: 10px;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-soft);
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* 업그레이드 상점 */
.shop {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-family: inherit;
  text-align: left;
  background: linear-gradient(160deg, #ffffff, #f3f6ff);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.1s ease, opacity 0.12s ease;
}

.shop-btn:hover:not(:disabled) {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(79, 109, 245, 0.16);
  transform: translateY(-1px);
}

.shop-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.shop-emoji {
  font-size: 1.7rem;
  flex-shrink: 0;
}

.shop-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.shop-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.shop-desc {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.shop-cost {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.shop-cost::before {
  content: "👆";
  font-size: 0.9rem;
}

/* 진화 토스트 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(31, 37, 51, 0.3);
  animation: toast-in 0.2s ease;
}

.toast.hidden {
  display: none;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 440px) {
  .pad-emoji { font-size: 5rem; }
  .stat-value { font-size: 1rem; }
  .stat-label { font-size: 0.68rem; }
}
