/* ═══════════════════════════════════════════════════════════════
   HeartServe: Love & Ping Pong — styles.css
   Cute anime-inspired dating sim + ping pong
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --pink: #ff6b9d;
  --pink-light: #ffa5c4;
  --pink-dark: #e8457a;
  --lavender: #b388ff;
  --blue-soft: #82b1ff;
  --bg-start: #fce4ec;
  --bg-end: #e8eaf6;
  --panel: rgba(255,255,255,0.88);
  --panel-border: rgba(255,255,255,0.95);
  --text: #37474f;
  --text-light: #78909c;
  --text-dim: #b0bec5;
  --shadow: rgba(100, 50, 80, 0.12);
  --hana: #ff6b35;
  --yuki: #7c4dff;
  --rin: #00c853;
  --heart-red: #ff1744;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}

body {
  background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 50%, #f3e5f5 100%);
  font-family: var(--font);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.back-link {
  position: fixed;
  top: 14px; left: 14px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.back-link:hover { opacity: 1; }

/* ── Game Container ── */
#gameContainer {
  width: 100%;
  max-width: 880px;
  aspect-ratio: 22/14;
  max-height: 88vh;
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 2px solid var(--panel-border);
  box-shadow: 0 12px 48px var(--shadow), 0 0 0 1px rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}

#particleCanvas {
  display: none;
}

/* ── Screens ── */
.screen {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 10;
}
.screen.active {
  display: flex;
}

/* ── Buttons ── */
.btn {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 32px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.96); }
.btn, .choice-btn { -webkit-tap-highlight-color: rgba(0,0,0,0.1); touch-action: manipulation; }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,107,157,0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(255,107,157,0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(0,0,0,0.05);
  color: var(--text);
  border: 2px solid rgba(0,0,0,0.08);
}
.btn-secondary:hover {
  background: rgba(0,0,0,0.08);
}

.btn-accent {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  color: #fff;
  border: none;
}
.btn-accent:hover {
  opacity: 0.9;
}

.btn-glow {
  animation: btnGlow 2s ease-in-out infinite;
}
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(255,107,157,0.35); }
  50% { box-shadow: 0 4px 28px rgba(255,107,157,0.6), 0 0 40px rgba(179,136,255,0.2); }
}

/* ── Route selector ── */
.route-select {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.route-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn-route {
  width: 220px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}
.btn-route-girls {
  background: linear-gradient(135deg, #ff6b9d, #b388ff);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,107,157,0.35);
}
.btn-route-girls:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,107,157,0.5);
}
.btn-route-boys {
  background: linear-gradient(135deg, #5c6bc0, #ff8f00);
  color: #fff;
  box-shadow: 0 4px 16px rgba(92,107,192,0.35);
}
.btn-route-boys:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,143,0,0.5);
}

/* ═══ TITLE SCREEN ═══ */
#titleScreen {
  background: linear-gradient(135deg, #fff5f7, #f5f0ff, #f0f4ff);
}
.title-content {
  text-align: center;
  z-index: 2;
}
.title-icon {
  font-size: 56px;
  color: var(--pink);
  margin-bottom: 8px;
  animation: heartBeat 1.5s ease-in-out infinite;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.08); }
  60% { transform: scale(1); }
}
.title-name {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.title-sub {
  font-size: 18px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 16px;
}
.title-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 28px;
  max-width: 340px;
}
#titleScreen .btn { margin: 6px; }

/* Title floating hearts */
.title-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.title-heart {
  position: absolute;
  color: rgba(255,107,157,0.12);
  font-size: 80px;
  animation: floatHeart 8s ease-in-out infinite;
}
.title-heart-1 { top: 10%; left: 8%; animation-delay: 0s; }
.title-heart-2 { top: 60%; right: 10%; animation-delay: 2.5s; font-size: 60px; }
.title-heart-3 { bottom: 15%; left: 25%; animation-delay: 5s; font-size: 50px; }
@keyframes floatHeart {
  0%, 100% { transform: translateY(0) rotate(-5deg); opacity: 0.15; }
  50% { transform: translateY(-20px) rotate(5deg); opacity: 0.25; }
}

/* ═══ CHARACTER SELECT ═══ */
#selectScreen {
  padding: 20px 28px;
  justify-content: flex-start;
}
.select-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.day-badge {
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 18px;
  border-radius: 50px;
  white-space: nowrap;
}
.affection-bar {
  display: flex;
  gap: 14px;
  flex: 1;
  justify-content: flex-end;
}
.aff-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
}
.aff-mini-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.screen-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 10px 0 16px;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 700px;
}
.char-card {
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid rgba(0,0,0,0.06);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.char-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow);
}
.char-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.char-card[data-char="hana"]::before { background: var(--hana); }
.char-card[data-char="yuki"]::before { background: var(--yuki); }
.char-card[data-char="rin"]::before { background: var(--rin); }

.char-card canvas {
  width: 100%;
  max-width: 140px;
  height: auto;
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.char-card-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 2px;
}
.char-card-title {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 8px;
}
.char-card-hearts {
  display: flex;
  justify-content: center;
  gap: 2px;
}
.heart-pip {
  font-size: 14px;
  transition: color 0.3s;
}
.heart-pip.filled { color: var(--heart-red); }
.heart-pip.empty { color: #ddd; }
.char-card-msg {
  font-size: 11px;
  color: #888;
  font-style: italic;
  margin-top: 6px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
  line-height: 1.3;
}

/* ═══ DIALOGUE SCREEN ═══ */
#dialogueScreen { padding: 20px; }
.dialogue-layout {
  display: flex;
  gap: 20px;
  width: 100%;
  height: 100%;
  align-items: stretch;
}
.portrait-side {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.portrait-side canvas {
  border-radius: var(--radius);
  box-shadow: 0 6px 24px var(--shadow);
}
.char-nameplate {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.dialogue-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.scene-text {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.5;
  padding: 0 4px;
}
.dialogue-box {
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid rgba(0,0,0,0.06);
  padding: 16px 18px;
  position: relative;
}
.dialogue-speaker {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}
.dialogue-text {
  font-size: 15px;
  line-height: 1.55;
}

.choices-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.choice-btn {
  background: rgba(255,255,255,0.9);
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}
.choice-btn:hover {
  background: #fff;
  border-color: var(--pink-light);
  box-shadow: 0 2px 12px rgba(255,107,157,0.15);
  transform: translateX(4px);
}
.choice-btn:active {
  transform: translateX(2px) scale(0.98);
}

.reaction-box {
  background: linear-gradient(135deg, rgba(255,107,157,0.08), rgba(179,136,255,0.08));
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-style: italic;
  color: var(--text);
  display: none;
  animation: fadeIn 0.3s ease;
  line-height: 1.5;
}
.reaction-box.visible { display: block; }

/* ═══ MATCH SCREEN ═══ */
#matchScreen { padding: 20px; }

.match-ready {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.vs-layout {
  display: flex;
  align-items: center;
  gap: 32px;
}
.vs-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.vs-paddle {
  width: 14px;
  height: 60px;
  border-radius: 7px;
}
.vs-paddle-you { background: linear-gradient(180deg, var(--blue-soft), #5c8aff); }
.vs-paddle-ai { background: var(--hana); }
.vs-label {
  font-size: 16px;
  font-weight: 700;
}
.vs-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.vs-text {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vs-center canvas {
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px var(--shadow);
}
.vs-name {
  font-size: 15px;
  font-weight: 700;
}

.match-playing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  justify-content: center;
}
.pong-hud {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 28px;
  font-weight: 800;
}
.pong-score { min-width: 36px; text-align: center; }
.pong-you { color: var(--blue-soft); }
.pong-opp { color: var(--pink); }
.pong-dash { color: var(--text-dim); font-size: 20px; }

#pongCanvas {
  border-radius: var(--radius);
  border: 2px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px var(--shadow);
  background: #f8f6ff;
  max-width: 100%;
  height: auto;
}
.pong-controls {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

/* ═══ RESULTS SCREEN ═══ */
#resultsScreen {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
}
.results-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(0,0,0,0.05);
  padding: 14px 18px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 8px 32px var(--shadow);
  flex-shrink: 0;
}
.results-card canvas {
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 3px 12px var(--shadow);
  margin-bottom: 4px;
  width: 60px; height: 75px;
}
.results-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}
.results-rating {
  font-size: 22px;
  margin-bottom: 2px;
}
.results-scoreline {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 8px;
}
.results-affection-gain {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255,107,157,0.1), rgba(179,136,255,0.1));
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pink-dark);
  margin-bottom: 8px;
}
.results-reaction {
  font-size: 13px;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.4;
}
.results-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin: 6px 0;
}
.results-meters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}
.meter-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.meter-mini-name {
  font-size: 11px;
  font-weight: 700;
}
.meter-mini-bar {
  width: 80px;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}
.meter-mini-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.meter-mini-val {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
}

/* ═══ ENDING SCREEN ═══ */
#endingScreen {
  background: linear-gradient(135deg, #fff5f7 0%, #f8f0ff 50%, #f0f4ff 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 0;
}
.ending-card {
  display: flex;
  gap: 24px;
  align-items: center;
  max-width: 750px;
  width: 100%;
  margin: auto 0;
}
.ending-card canvas {
  border-radius: var(--radius);
  box-shadow: 0 8px 32px var(--shadow);
  flex-shrink: 0;
}
.ending-content {
  flex: 1;
  min-width: 0;
}
.ending-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.ending-speech {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
  font-style: italic;
}
.ending-narration {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 16px;
}
.ending-score {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.ending-buttons {
  display: flex;
  gap: 10px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 700px) {
  #gameContainer {
    border-radius: 0;
    max-height: 100vh;
    aspect-ratio: auto;
    height: 100vh;
  }
  .back-link { display: none; }
  .dialogue-layout { flex-direction: column; }
  .portrait-side {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 12px;
  }
  .portrait-side canvas { width: 100px; height: 130px; }
  .char-grid { grid-template-columns: 1fr; gap: 10px; }
  .ending-card { flex-direction: column; }
  .ending-card canvas { width: 150px; height: auto; }
  .title-name { font-size: 36px; }
  .vs-layout { gap: 16px; }
  #pongCanvas { width: 100%; }
}

@media (max-width: 500px) {
  .screen { padding: 14px; }
  .char-card canvas { max-width: 80px; }
}

/* ═══ MUTE BUTTON ═══ */
.mute-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  border: 2px solid rgba(200,180,220,0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.15s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mute-btn:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,1);
}

/* ═══ GIFT MODAL ═══ */
.gift-modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.gift-modal {
  background: white;
  border-radius: 18px;
  padding: 28px 24px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.gift-modal-title {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #6a3093;
  margin: 0 0 16px 0;
}
.gift-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.gift-option {
  background: linear-gradient(135deg, #fef0ff, #fff5f5);
  border: 2px solid rgba(200,180,220,0.3);
  border-radius: 14px;
  padding: 14px 12px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
  text-align: center;
  width: 90px;
}
.gift-option:hover {
  transform: translateY(-3px);
  border-color: #ff6b9d;
  box-shadow: 0 4px 16px rgba(255,107,157,0.2);
}
.gift-option .gift-emoji {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}
.gift-option .gift-name {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #555;
}
.gift-cancel {
  font-size: 13px;
  padding: 6px 20px;
}

/* ═══ MOOD BADGES ═══ */
.mood-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 16px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ═══ MODIFIER BANNER ═══ */
.modifier-banner {
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(255,107,157,0.3);
  border-radius: 12px;
  padding: 8px 18px;
  margin: 10px auto;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #6a3093;
  text-align: center;
  max-width: 280px;
  animation: slideDown 0.4s ease;
}

/* ═══ DAY EVENT BANNER ═══ */
.day-event-banner {
  background: linear-gradient(135deg, #fff5f5, #fef0ff);
  border: 2px solid rgba(255,107,157,0.25);
  border-radius: 14px;
  padding: 10px 18px;
  margin: 8px auto 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #9c27b0;
  text-align: center;
  max-width: 340px;
  animation: slideDown 0.4s ease;
}

/* ═══ GIFT BUTTON (select/dialogue) ═══ */
.gift-btn {
  background: linear-gradient(135deg, #ff6b9d, #ff4081);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  margin: 6px auto;
  display: block;
}
.gift-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,64,129,0.3);
}

/* ═══ SECRET CHOICE ═══ */
.choice-btn.secret-choice {
  background: linear-gradient(135deg, #ff6b9d, #e040fb);
  color: white;
  border-color: #ff4081;
  animation: secretPulse 1.5s infinite;
}
.choice-btn.secret-choice:hover {
  background: linear-gradient(135deg, #ff4081, #d500f9);
  transform: translateY(-3px);
}

/* ═══ ENDING GALLERY ═══ */
.ending-gallery-wrap {
  margin-top: 18px;
  text-align: center;
}
.gallery-label {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(106,48,147,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.ending-gallery {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.gallery-slot {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(200,180,220,0.15);
  border: 2px solid rgba(200,180,220,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: rgba(150,130,180,0.4);
  transition: transform 0.15s;
}
.gallery-slot.unlocked {
  background: linear-gradient(135deg, #fff5f5, #fef0ff);
  border-color: #ff6b9d;
  color: #6a3093;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  padding: 4px;
  word-break: break-word;
}
.gallery-slot.unlocked:hover {
  transform: scale(1.08);
}

/* ═══ SCREEN SHAKE ═══ */
@keyframes screenShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, -3px); }
}

/* ═══ FEVER TEXT ═══ */
@keyframes feverPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

/* ═══ SECRET CHOICE PULSE ═══ */
@keyframes secretPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,64,129,0.4); }
  50% { box-shadow: 0 0 12px 4px rgba(255,64,129,0.2); }
}

/* ═══ SLIDE DOWN ═══ */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ FADE IN ═══ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   ARCADE MODE
   ═══════════════════════════════════════════════════════════════ */
.btn-arcade {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 28px;
  border: 2px solid var(--lavender);
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(179,136,255,0.15), rgba(255,107,157,0.15));
  color: var(--lavender);
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: arcadePulse 2.5s ease-in-out infinite;
}
.btn-arcade:hover {
  background: linear-gradient(135deg, rgba(179,136,255,0.3), rgba(255,107,157,0.3));
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(179,136,255,0.35);
}
@keyframes arcadePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(179,136,255,0); }
  50% { box-shadow: 0 0 20px rgba(179,136,255,0.25); }
}

#arcadeModeScreen {
  padding: 0;
  background: #0a0514;
  justify-content: center;
  align-items: center;
}
#arcadePongCanvas {
  display: block;
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: 8px;
}
.btn-back-arcade {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s;
}
.btn-back-arcade:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.btn-admin-arcade {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border: 1px solid rgba(179,136,255,0.3);
  border-radius: 20px;
  background: rgba(179,136,255,0.1);
  color: rgba(179,136,255,0.7);
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-admin-arcade:hover {
  background: rgba(179,136,255,0.25);
  color: #b388ff;
}
