/* ============================
   JEWEL MATCH - 보석맞추기
   Match-3 Puzzle Game Styles
   ============================ */

/* ===== Container ===== */
#jewelGame {
  background: linear-gradient(180deg, #0e0820, #18103a, #12082a);
  overflow: hidden;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

/* ===== Top HUD ===== */
.jwl-hud {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 16px 6px;
  z-index: 10;
  flex-shrink: 0;
}
.jwl-hud-left {
  text-align: left;
}
.jwl-hud-center {
  display: flex;
  align-items: center;
  gap: 8px;
}
.jwl-hud-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.jwl-score-label {
  font-size: clamp(11px, 2.8vw, 12px);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,.3);
  font-weight: 600;
}
.jwl-score-value {
  font-family: 'Black Han Sans', 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.jwl-combo-badge {
  background: rgba(255,215,64,.15);
  border: 1px solid rgba(255,215,64,.3);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: #ffd740;
  display: none;
}
.jwl-combo-badge.active {
  display: inline-block;
  animation: jwlComboIn 0.3s ease-out;
}
@keyframes jwlComboIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.jwl-hud-right .jwl-pause-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 14px;
  cursor: pointer;
}

/* ===== Level Progress Bar ===== */
.jwl-progress-bar {
  padding: 0 16px;
  margin-bottom: 8px;
  z-index: 10;
  flex-shrink: 0;
}
.jwl-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: clamp(11px, 2.8vw, 12px);
  color: rgba(255,255,255,.25);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.jwl-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}
.jwl-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #e040fb, #ab47bc);
  box-shadow: 0 0 10px rgba(224,64,251,.4);
  width: 0%;
  transition: width 0.4s ease-out;
}

/* ===== Mode info (moves/time) ===== */
.jwl-mode-info {
  padding: 0 16px;
  margin-bottom: 6px;
  z-index: 10;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
.jwl-mode-badge {
  font-size: clamp(11px, 2.8vw, 13px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 4px;
  display: inline-block;
}
.jwl-mode-classic { background: rgba(224,64,251,.15); color: #e040fb; }
.jwl-mode-moves { background: rgba(68,138,255,.15); color: #448aff; }
.jwl-mode-timed { background: rgba(255,82,82,.15); color: #ff5252; }
.jwl-mode-zen { background: rgba(105,240,174,.15); color: #69f0ae; }

/* ===== 8x8 Grid Area ===== */
.jwl-grid-area {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  padding: 0 8px;
  min-height: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.jwl-grid-container {
  position: relative;
  background: rgba(255,255,255,.02);
  border: 1.5px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 4px;
}
.jwl-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 2px;
  position: relative;
}

/* ===== Individual Gem Cell ===== */
.jwl-cell {
  width: var(--jwl-cell-size, 40px);
  height: var(--jwl-cell-size, 40px);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--jwl-cell-size, 40px) * 0.48);
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.jwl-cell:active {
  transform: scale(0.92);
}
.jwl-cell.selected {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 1px;
  transform: scale(1.08);
  z-index: 2;
  animation: jwlPulse 0.8s ease-in-out infinite alternate;
}
@keyframes jwlPulse {
  from { outline-color: rgba(255,255,255,.9); }
  to { outline-color: rgba(255,255,255,.4); }
}
.jwl-cell.hint {
  animation: jwlHint 0.6s ease-in-out infinite alternate;
}
@keyframes jwlHint {
  from { transform: scale(1); filter: brightness(1); }
  to { transform: scale(1.08); filter: brightness(1.4); }
}
.jwl-cell.matched {
  animation: jwlMatch 0.3s ease-out forwards;
}
@keyframes jwlMatch {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
  100% { transform: scale(0); opacity: 0; }
}
.jwl-cell.falling {
  transition: transform 0.2s ease-in;
}
.jwl-cell.swapping {
  transition: transform 0.2s ease-in-out;
}
.jwl-cell.invalid-swap {
  animation: jwlShake 0.3s ease-in-out;
}
@keyframes jwlShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.jwl-cell.new-gem {
  animation: jwlDrop 0.25s ease-out;
}
@keyframes jwlDrop {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Gem colors */
.jwl-gem-0 { background: linear-gradient(135deg, #ff5252, #d32f2f); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 2px 6px rgba(255,82,82,.2); }
.jwl-gem-1 { background: linear-gradient(135deg, #448aff, #1565c0); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 2px 6px rgba(68,138,255,.2); }
.jwl-gem-2 { background: linear-gradient(135deg, #69f0ae, #2e7d32); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 2px 6px rgba(105,240,174,.2); }
.jwl-gem-3 { background: linear-gradient(135deg, #ffd740, #f9a825); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 2px 6px rgba(255,215,64,.2); }
.jwl-gem-4 { background: linear-gradient(135deg, #e040fb, #8e24aa); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 2px 6px rgba(224,64,251,.2); }
.jwl-gem-5 { background: linear-gradient(135deg, #ffab40, #e65100); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 2px 6px rgba(255,171,64,.2); }
.jwl-gem-6 { background: linear-gradient(135deg, #e0e0e0, #9e9e9e); box-shadow: inset 0 -3px 0 rgba(0,0,0,.15), 0 2px 6px rgba(224,224,224,.15); }

/* Special gems */
.jwl-gem-flame {
  position: relative;
  overflow: hidden;
}
.jwl-gem-flame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%);
  animation: jwlFlameStripe 1s linear infinite;
}
@keyframes jwlFlameStripe {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.jwl-gem-star {
  position: relative;
}
.jwl-gem-star::after {
  content: '✦';
  position: absolute;
  font-size: calc(var(--jwl-cell-size, 40px) * 0.5);
  color: rgba(255,255,255,.6);
  animation: jwlStarGlow 1.2s ease-in-out infinite alternate;
}
@keyframes jwlStarGlow {
  from { opacity: 0.4; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.1); }
}

.jwl-gem-rainbow {
  background: linear-gradient(135deg, #ff5252, #ffd740, #69f0ae, #448aff, #e040fb) !important;
  background-size: 300% 300% !important;
  animation: jwlRainbow 2s ease infinite !important;
  box-shadow: 0 2px 8px rgba(224,64,251,.3) !important;
}
@keyframes jwlRainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.jwl-gem-supernova {
  position: relative;
  box-shadow: 0 0 12px rgba(255,255,255,.4) !important;
}
.jwl-gem-supernova::after {
  content: '⚡';
  position: absolute;
  font-size: calc(var(--jwl-cell-size, 40px) * 0.4);
  animation: jwlNovaGlow 0.8s ease-in-out infinite alternate;
}
@keyframes jwlNovaGlow {
  from { opacity: 0.5; text-shadow: 0 0 4px #fff; }
  to { opacity: 1; text-shadow: 0 0 12px #fff; }
}

/* Gem shape hints (emoji inside cell) */
.jwl-gem-shape {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  pointer-events: none;
}

/* ===== Combo Text Overlay ===== */
.jwl-combo-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Black Han Sans', 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #ffd740;
  text-shadow: 0 2px 8px rgba(0,0,0,.5), 0 0 20px rgba(255,215,64,.3);
  z-index: 20;
  pointer-events: none;
  animation: jwlComboText 0.8s ease-out forwards;
}
@keyframes jwlComboText {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  30% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -60%) scale(1); opacity: 0; }
}

/* ===== Score Popup ===== */
.jwl-score-popup {
  position: absolute;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  z-index: 15;
  pointer-events: none;
  animation: jwlScoreUp 0.7s ease-out forwards;
}
@keyframes jwlScoreUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-30px); opacity: 0; }
}

/* ===== Bottom Area ===== */
.jwl-bottom {
  padding: 10px 0 24px;
  z-index: 10;
  flex-shrink: 0;
  text-align: center;
}
.jwl-hint-btn {
  display: inline-block;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  cursor: pointer;
  transition: all 0.2s;
}
.jwl-hint-btn:active {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
}

/* ===== Title Screen / Mode Select Overlay ===== */
.jwl-title-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0e0820, #18103a, #12082a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  z-index: 50;
}
.jwl-title-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(224,64,251,.1), transparent 55%);
  pointer-events: none;
}
.jwl-title-name {
  font-family: 'Black Han Sans', 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #e040fb, #ffd740, #69f0ae);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}
.jwl-title-sub {
  font-size: clamp(11px, 2.8vw, 13px);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(234,128,252,.5);
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}
.jwl-title-gems {
  display: flex;
  gap: 6px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.jwl-title-gem {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  animation: jwlTitleBounce 2s ease-in-out infinite;
}
@keyframes jwlTitleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.jwl-title-btn {
  position: relative;
  z-index: 1;
  width: 220px;
  padding: 14px;
  border: none;
  border-radius: 14px;
  font-family: 'Black Han Sans', 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  transition: transform 0.15s;
}
.jwl-title-btn:active {
  transform: scale(0.96);
}
.jwl-title-btn-primary {
  background: linear-gradient(135deg, #e040fb, #ab47bc);
  color: #fff;
  box-shadow: 0 4px 20px rgba(224,64,251,.3);
}
.jwl-title-btn-secondary {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
}
.jwl-title-bottom {
  position: absolute;
  bottom: 44px;
  display: flex;
  gap: 32px;
  z-index: 1;
}
.jwl-title-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: clamp(11px, 2.8vw, 13px);
  color: rgba(255,255,255,.35);
  cursor: pointer;
  background: none;
  border: none;
}
.jwl-title-icon-btn > span:first-child {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ===== Game Over Overlay ===== */
.jwl-gameover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,6,20,.95), rgba(24,16,58,.98));
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  z-index: 50;
}
.jwl-gameover-overlay.active {
  display: flex;
}
.jwl-gameover-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(224,64,251,.08), transparent 55%);
  pointer-events: none;
}
.jwl-go-title {
  font-family: 'Black Han Sans', 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 900;
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #e040fb, #ffd740);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.jwl-go-sub {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}
.jwl-go-score-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 20px 48px;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.jwl-go-score {
  font-family: 'Black Han Sans', 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.jwl-go-score-label {
  font-size: clamp(11px, 2.8vw, 12px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-top: 4px;
}
.jwl-go-stats {
  display: flex;
  gap: 24px;
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}
.jwl-go-stat {
  text-align: center;
}
.jwl-go-stat-val {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ea80fc;
}
.jwl-go-stat-label {
  font-size: clamp(11px, 2.8vw, 12px);
  color: rgba(255,255,255,.25);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.jwl-go-new-best {
  font-size: 14px;
  font-weight: 700;
  color: #ffd740;
  margin-bottom: 12px;
  display: none;
  animation: jwlNewBest 0.6s ease-out;
}
.jwl-go-new-best.active {
  display: block;
}
@keyframes jwlNewBest {
  0% { transform: scale(0.5) rotate(-5deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.jwl-go-btn {
  position: relative;
  z-index: 1;
  width: 180px;
  padding: 13px;
  border: none;
  border-radius: 14px;
  font-family: 'Black Han Sans', 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
  transition: transform 0.15s;
}
.jwl-go-btn:active {
  transform: scale(0.96);
}
.jwl-go-btn-retry {
  background: linear-gradient(135deg, #e040fb, #ab47bc);
  color: #fff;
}
.jwl-go-btn-home {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
}

/* ===== Pause Overlay ===== */
.jwl-pause-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,6,20,.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 40;
  gap: 16px;
}
.jwl-pause-overlay.active {
  display: flex;
}
.jwl-pause-title {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
}
.jwl-pause-overlay .jwl-pause-btn {
  width: 180px;
  padding: 13px;
  border: none;
  border-radius: 14px;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
}
.jwl-pause-overlay .jwl-pause-btn:active { transform: scale(0.96); }
.jwl-pause-resume {
  background: linear-gradient(135deg, #e040fb, #ab47bc);
  color: #fff;
}
.jwl-pause-quit {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
}

/* ===== Particle effects ===== */
.jwl-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 25;
  animation: jwlParticle 0.6s ease-out forwards;
}
@keyframes jwlParticle {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--px, 20px), var(--py, -30px)) scale(0); opacity: 0; }
}

/* ===== Level up effect ===== */
.jwl-levelup-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Black Han Sans', sans-serif;
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, #e040fb, #ffd740);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 30;
  pointer-events: none;
  animation: jwlLevelUp 1.2s ease-out forwards;
}
@keyframes jwlLevelUp {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  25% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
  70% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -60%) scale(0.8); opacity: 0; }
}

/* ===== Reshuffle animation ===== */
.jwl-reshuffle-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,6,20,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  pointer-events: none;
}
.jwl-reshuffle-text {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #18ffff;
  animation: jwlReshuffleAnim 1s ease-in-out;
}
@keyframes jwlReshuffleAnim {
  0% { transform: scale(0.5) rotate(-5deg); opacity: 0; }
  50% { transform: scale(1.1) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 0; }
}

/* ===== Timed Mode Timer Bar ===== */
.jwl-timer-bar {
  padding: 0 16px;
  margin-bottom: 6px;
  z-index: 10;
  flex-shrink: 0;
}
.jwl-timer-labels {
  display: flex;
  justify-content: space-between;
  font-size: clamp(11px, 2.8vw, 12px);
  color: rgba(255,255,255,.25);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.jwl-timer-track {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}
.jwl-timer-fill {
  height: 100%;
  border-radius: 3px;
  width: 100%;
  transition: width 0.1s linear;
  background: linear-gradient(90deg, #69f0ae, #2e7d32);
  box-shadow: 0 0 8px rgba(105,240,174,.4);
}
.jwl-timer-fill.safe {
  background: linear-gradient(90deg, #69f0ae, #2e7d32);
  box-shadow: 0 0 8px rgba(105,240,174,.4);
}
.jwl-timer-fill.warn {
  background: linear-gradient(90deg, #ffd740, #f9a825);
  box-shadow: 0 0 8px rgba(255,215,64,.4);
}
.jwl-timer-fill.danger {
  background: linear-gradient(90deg, #ff5252, #d32f2f);
  box-shadow: 0 0 10px rgba(255,82,82,.5);
  animation: jwlTimerPulse 0.5s ease-in-out infinite alternate;
}
@keyframes jwlTimerPulse {
  from { opacity: 1; }
  to { opacity: 0.55; }
}

/* ===== Gem Jar ===== */
.jwl-jar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 10px;
  flex-shrink: 0;
}
.jwl-jar {
  width: 32px;
  height: 140px;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 4px 4px 12px 12px;
  position: relative;
  overflow: hidden;
}
.jwl-jar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(180deg, rgba(224,64,251,.5), rgba(171,71,188,.7));
  transition: height 0.4s ease-out;
  border-radius: 0 0 10px 10px;
}
.jwl-jar-gems {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.jwl-jar-gem {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  animation: jwlJarGemFall 0.6s ease-in forwards;
}
@keyframes jwlJarGemFall {
  0% { top: -8px; opacity: 1; }
  80% { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0.6; }
}
.jwl-jar-label {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  margin-top: 4px;
}

/* ===== Special Burst Particles ===== */
.jwl-particle-burst {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 25;
  animation: jwlBurstParticle 0.8s ease-out forwards;
}
@keyframes jwlBurstParticle {
  0% { transform: translate(0,0) scale(1.5); opacity: 1; }
  100% { transform: translate(var(--px,30px), var(--py,-40px)) scale(0); opacity: 0; }
}
.jwl-screen-flash {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.2);
  pointer-events: none;
  z-index: 30;
  animation: jwlScreenFlash 0.3s ease-out forwards;
}
@keyframes jwlScreenFlash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ===== Responsive ===== */
@media (max-height: 600px) {
  .jwl-hud { padding: 6px 12px 2px; }
  .jwl-score-value { font-size: 20px; }
  .jwl-progress-bar { margin-bottom: 4px; }
  .jwl-timer-bar { margin-bottom: 3px; }
  .jwl-bottom { padding: 6px 0 16px; }
  .jwl-jar { height: 100px; }
}
