/* ==========================================================================
   CINECHRONOS+ - CINEMA SCREENSHOT TIMELINE GAME STYLES
   Art Direction: Darkroom Celluloid & Golden Chronology
   Aspect Ratio: Cinematic 16:9 Landscape Screenshots
   ========================================================================== */

:root {
  --cinema-black: var(--mm-bg-black, #050507);
  --cinema-surface: var(--mm-bg-surface, #09090d);
  --cinema-card-bg: var(--mm-bg-elevated, #121218);
  --cinema-border: var(--mm-border-subtle, rgba(255, 255, 255, 0.12));
  --cinema-border-hover: var(--mm-accent-gold-glow, rgba(229, 169, 59, 0.4));
  
  --gold: var(--mm-accent-gold, #e5a93b);
  --gold-hover: var(--mm-accent-gold-hover, #f5b748);
  --gold-glow: var(--mm-accent-gold-glow, rgba(229, 169, 59, 0.35));
  --emerald: var(--mm-success, #10b981);
  --emerald-glow: var(--mm-success-glow, rgba(16, 185, 129, 0.35));
  --ruby: var(--mm-error, #ef4444);
  --ruby-glow: var(--mm-error-glow, rgba(239, 68, 68, 0.35));

  --text-primary: var(--mm-text-primary, #f9fafb);
  --text-secondary: var(--mm-text-secondary, #9ca3af);
  --text-muted: var(--mm-text-muted, #6b7280);

  --font-sans: var(--mm-font-sans, system-ui, -apple-system, sans-serif);
  --font-mono: var(--mm-font-mono, monospace);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--mm-bg-canvas, #06070a);
  background-image: var(--mm-bg-gradient, radial-gradient(circle at 50% 0%, #151824 0%, #06070a 100%));
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* MAIN CONTAINER */
.game-container {
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* CineChronos+ Brand Accent Symbol */
.chronos-plus-symbol {
  color: var(--gold, #e5a93b);
  font-weight: 900;
  margin-left: 2px;
  display: inline-block;
  text-shadow: 0 0 14px var(--gold-glow, rgba(229, 169, 59, 0.45));
}

/* STATUS HUD (LIVES & PROGRESS) */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 17, 24, 0.75);
  border: 1px solid var(--cinema-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 0.85rem 1.5rem;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  gap: 1rem;
}

.view-toggle-container {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--cinema-border);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--mm-btn-radius, 10px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-toggle-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.view-toggle-btn.active {
  background: rgba(229, 169, 59, 0.15);
  color: var(--gold);
  border: 1px solid rgba(229, 169, 59, 0.3);
  box-shadow: 0 0 10px rgba(229, 169, 59, 0.1);
}

.lives-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lives-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.lives-hearts {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ruby, #ef4444);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, color 0.3s ease;
}

.heart svg {
  display: block;
}

.heart.lost {
  opacity: 0.22;
  color: var(--text-muted, #646476);
  transform: scale(0.82);
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

/* ACTIVE CARD DRAWER (MYSTERY SCREENSHOT TO BE PLACED) */
.active-card-drawer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: radial-gradient(circle at 50% 50%, rgba(229, 169, 59, 0.06) 0%, rgba(15, 17, 24, 0.92) 100%);
  border: 1px dashed rgba(229, 169, 59, 0.35);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.drawer-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.active-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.mystery-card {
  width: min(100%, 300px);
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75), 0 0 24px rgba(229, 169, 59, 0.22);
  border: 2px solid var(--gold);
  cursor: grab;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  background: #09090d;
}

.mystery-card:active {
  cursor: grabbing;
  transform: scale(1.03);
}

.mystery-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mystery-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(229, 169, 59, 0.35);
  border-radius: var(--mm-btn-radius, 10px);
  padding: 0.45rem 1.1rem;
  min-height: 38px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.mystery-zoom-btn:hover {
  background: rgba(229, 169, 59, 0.12);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.mystery-zoom-btn svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* SCREENSHOT ZOOM LIGHTBOX */
.image-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 7, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
  animation: mmModalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-zoom-dialog {
  position: relative;
  max-width: min(94vw, 1140px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.image-zoom-wrapper {
  position: relative;
  border-radius: var(--mm-radius-lg, 14px);
  overflow: hidden;
  border: 2px solid rgba(229, 169, 59, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(229, 169, 59, 0.2);
  background: #09090d;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 82vh;
}

.image-zoom-img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.image-zoom-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mm-surface-panel, #121218);
  border: 1px solid rgba(229, 169, 59, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.image-zoom-close:hover {
  transform: scale(1.08);
  background: #1c1d27;
  border-color: var(--gold);
  color: var(--gold);
}

.image-zoom-hint {
  margin-top: 0.75rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: var(--text-muted, #71717a);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.drawer-instruction {
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.9;
}

/* FEEDBACK MESSAGE TOAST */
.feedback-toast {
  text-align: center;
  min-height: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: opacity 0.3s ease;
}

.feedback-toast.success {
  color: var(--emerald);
}

.feedback-toast.error {
  color: var(--ruby);
}

/* TIMELINE TRACK */
.timeline-wrapper {
  position: relative;
  width: 100%;
  padding: 0.5rem 0;
}

/* Floating Navigation Buttons (Horizontal Reel Mode) */
.timeline-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 17, 24, 0.9);
  border: 1.5px solid var(--cinema-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.timeline-nav-btn.prev {
  left: 4px;
}

.timeline-nav-btn.next {
  right: 4px;
}

.timeline-nav-btn:hover:not(:disabled) {
  background: rgba(229, 169, 59, 0.15);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(229, 169, 59, 0.3);
}

.timeline-nav-btn:disabled {
  opacity: 0;
  pointer-events: none;
  cursor: default;
}

/* HORIZONTAL TIMELINE CONTAINER */
.timeline-scroll-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-content: safe center;
  gap: 0.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1.25rem 1.5rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--cinema-border) transparent;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.timeline-scroll-container.is-panning {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.timeline-scroll-container.is-finished,
.timeline-scroll-container.is-finished .placed-card,
.timeline-scroll-container.is-finished .placed-poster {
  cursor: default !important;
  user-select: auto;
}

.timeline-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.timeline-scroll-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.timeline-scroll-container::-webkit-scrollbar-thumb {
  background: var(--cinema-border);
  border-radius: 4px;
}

.timeline-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* INSERTION SLOT ([ + ] DROP ZONE / CLICK BUTTON) */
.timeline-slot {
  flex-shrink: 0;
  width: 48px;
  height: 125px;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.timeline-slot:hover,
.timeline-slot.drag-over {
  border-color: var(--gold);
  background: rgba(229, 169, 59, 0.1);
  color: var(--gold);
  transform: scale(1.06);
}

.slot-icon {
  font-size: 1.3rem;
  font-weight: 700;
}

.slot-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* TIMELINE PLACED MOVIE CARD (WIDESCREEN SCREENSHOT) */
.placed-card {
  flex-shrink: 0;
  width: 200px;
  height: 125px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cinema-card-bg);
  border: 2px solid var(--cinema-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.placed-card.just-placed-success {
  animation: successFlash 1s ease;
  border-color: var(--emerald);
  box-shadow: 0 0 25px var(--emerald-glow);
}

.placed-card.just-placed-error {
  animation: errorShake 0.6s ease;
  border-color: var(--ruby);
  box-shadow: 0 0 25px var(--ruby-glow);
}

.placed-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placed-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* REVEALED TITLE OVERLAY (Horizontal View) */
.placed-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(5, 5, 8, 0.95) 0%, rgba(5, 5, 8, 0.8) 60%, transparent 100%);
  padding: 1.25rem 0.6rem 0.45rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   VERTICAL TIMELINE LIST MODE (Thumb-Friendly for Mobile)
   ========================================================================== */
.timeline-scroll-container.is-vertical {
  flex-direction: column;
  overflow-x: visible;
  overflow-y: visible;
  align-items: stretch;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem 0.25rem 2rem;
  gap: 0.45rem;
  cursor: default;
}

.timeline-scroll-container.is-vertical ~ .timeline-nav-btn,
.timeline-wrapper.is-vertical .timeline-nav-btn {
  display: none !important;
}

.timeline-scroll-container.is-vertical .timeline-slot {
  width: 100%;
  height: 38px;
  flex-direction: row;
  gap: 0.4rem;
  border-radius: 8px;
  border: 1.5px dashed rgba(229, 169, 59, 0.35);
  background: rgba(229, 169, 59, 0.03);
  color: var(--gold);
  transform: none;
}

.timeline-scroll-container.is-vertical .timeline-slot:hover,
.timeline-scroll-container.is-vertical .timeline-slot.drag-over {
  background: rgba(229, 169, 59, 0.12);
  border-color: var(--gold);
  transform: scale(1.015);
}

.timeline-scroll-container.is-vertical .timeline-slot .slot-icon {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1;
}

.timeline-scroll-container.is-vertical .timeline-slot .slot-text {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin: 0;
}

.timeline-scroll-container.is-vertical .placed-card {
  width: 100%;
  height: 56px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  border-radius: 10px;
  background: rgba(18, 20, 28, 0.95);
  border: 1.5px solid var(--cinema-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  gap: 0.75rem;
}

.timeline-scroll-container.is-vertical .placed-poster {
  width: 72px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.timeline-scroll-container.is-vertical .placed-title {
  position: static;
  background: none;
  padding: 0;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: none;
}

.timeline-scroll-container.is-vertical .placed-badge {
  position: static;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(229, 169, 59, 0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

/* ANIMATIONS */
@keyframes successFlash {
  0% { transform: scale(1.08); filter: brightness(1.3); }
  50% { transform: scale(1.03); filter: brightness(1.15); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* OUTCOME MODAL & RECAP */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: var(--cinema-surface, #09090d);
  border: 1px solid var(--cinema-border);
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(229, 169, 59, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  animation: modalPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-close-icon-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
}

.modal-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.modal-badge.failure {
  background: rgba(239, 68, 68, 0.15);
  color: var(--ruby);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
}

.modal-score-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cinema-border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.score-big {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--gold);
  font-family: var(--font-mono);
}

.score-lives-left {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}

.timeline-recap {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-height: 160px;
  overflow-y: auto;
  text-align: left;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.recap-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.recap-thumb {
  width: 38px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.recap-year {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.recap-title {
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--mm-accent-gold, #e5a93b) 0%, #c48c26 100%);
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  padding: 0.75rem 1.75rem;
  min-height: var(--mm-btn-min-height, 46px);
  border-radius: var(--mm-btn-radius, 10px);
  cursor: pointer;
  box-shadow: 0 4px 15px var(--mm-accent-gold-glow, rgba(229, 169, 59, 0.35));
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--mm-accent-gold-hover, #f5b748) 0%, #d49830 100%);
  box-shadow: 0 6px 20px rgba(229, 169, 59, 0.55);
}

.btn-secondary {
  background: var(--cinema-card-bg);
  color: var(--text-primary);
  border: 1px solid var(--cinema-border);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  min-height: var(--mm-btn-min-height, 46px);
  border-radius: var(--mm-btn-radius, 10px);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--mm-border-medium, rgba(255, 255, 255, 0.25));
}

.more-games-link {
  color: var(--gold);
  font-size: 0.85rem;
  text-decoration: underline;
}

/* FOOTER */
.game-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--cinema-border);
}

.game-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.game-footer a:hover {
  color: var(--gold);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1340px) and (min-width: 769px) {
  .placed-card {
    width: 175px;
    height: 110px;
  }
  .timeline-slot {
    width: 42px;
    height: 110px;
  }
  .timeline-scroll-container {
    padding: 1.25rem 1rem 2rem;
  }
}

@media (max-width: 768px) {
  .game-container {
    padding: 1rem 0.75rem 3rem;
    gap: 1.25rem;
  }

  .timeline-nav-btn,
  .mystery-zoom-btn {
    display: none !important;
  }

  .status-bar {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
  }

  .view-toggle-container {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
  }

  .view-toggle-btn {
    flex: 1;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .active-card-drawer {
    padding: 1rem 1rem;
    gap: 0.6rem;
    max-width: 400px;
  }

  .mystery-card {
    width: min(100%, 260px);
  }

  .placed-card {
    width: 150px;
    height: 98px;
  }

  .placed-title {
    font-size: 0.72rem;
    padding: 1rem 0.4rem 0.35rem;
  }

  .timeline-slot {
    width: 38px;
    height: 98px;
  }

  .timeline-scroll-container {
    padding: 1rem 0.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .game-main-title {
    font-size: 1.75rem;
  }

  .game-instruction {
    font-size: 0.85rem;
  }

  .mystery-card {
    width: min(100%, 240px);
  }

  .timeline-scroll-container.is-vertical {
    max-width: 360px;
  }
}

@media (max-width: 580px) {
  .modal-overlay {
    padding: 0.75rem 0.5rem;
    align-items: flex-start;
  }
  .modal-card {
    padding: 1.35rem 1rem;
    margin: 0.5rem auto;
    max-height: 94dvh;
    border-radius: var(--mm-radius-md, 10px);
  }
}
