/* ==========================================================================
   PUZZLE — Modern Responsive Jigsaw Design System
   ========================================================================== */

:root {
  --bg-main: #0a0b14;
  --bg-card: rgba(20, 24, 40, 0.85);
  --bg-card-hover: rgba(28, 33, 56, 0.9);
  --bg-elevated: #161a2b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.4);

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --secondary: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.3);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-card: 0 12px 32px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px -8px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px var(--primary-glow);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

/* Ambient Background Lights */
.ambient-glow {
  position: fixed;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.glow-top {
  top: -150px;
  left: 20%;
  background: radial-gradient(circle, var(--primary) 0%, rgba(99, 102, 241, 0) 70%);
}

.glow-bottom {
  bottom: -150px;
  right: 15%;
  background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(6, 182, 212, 0) 70%);
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 640px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: 14px;
  margin: 0 auto;
}

@media (min-width: 860px) {
  .app-container {
    max-width: 960px;
    padding: 20px;
    min-height: auto;
    height: 100vh;
    max-height: 940px;
  }
}

/* Screen Transitions */
.screen {
  display: none;
  flex-direction: column;
  width: 100%;
  flex: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Utilities */
.mono {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Native Hidden File Input */
.file-input-hidden {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--danger-glow);
}

.btn-danger:hover {
  filter: brightness(1.1);
}

.btn-block {
  width: 100%;
}

.btn-hero {
  padding: 18px 46px;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-hero:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

/* ==========================================================================
   1. HOME SCREEN
   ========================================================================== */
#home-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 480px;
  margin: auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5b4fc;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.game-logo {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 5.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 16px rgba(99, 102, 241, 0.35));
}

.game-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 360px;
  line-height: 1.5;
}

.home-card-preview {
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jigsaw-icon-art {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  animation: floatIcon 4s ease-in-out infinite alternate;
}

@keyframes floatIcon {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-6px) rotate(3deg); }
}

.privacy-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 10px;
  text-align: center;
  max-width: 340px;
}

/* ==========================================================================
   2. SETUP SCREEN
   ========================================================================== */
#setup-screen {
  overflow-y: auto;
  scrollbar-width: thin;
}

.setup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  background: var(--bg-main);
  padding: 8px 0;
  z-index: 10;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.header-spacer {
  width: 40px;
}

.setup-scroll-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
}

.setup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.upload-dropzone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 24px var(--accent-cyan-glow);
}

.dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 16px;
  width: 100%;
}

.upload-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.btn-upload-cta {
  padding: 13px 28px;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.dropzone-prompt {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.dropzone-formats {
  font-size: 0.75rem;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Filled state preview */
.dropzone-preview {
  width: 100%;
  height: 100%;
  min-height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.dropzone-preview img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.preview-overlay-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preview-file-info {
  font-size: 0.8rem;
  color: #e2e8f0;
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Difficulty Size Selector Grid */
.size-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 480px) {
  .size-options-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.size-card {
  cursor: pointer;
  position: relative;
}

.size-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
}

.size-card:hover .size-card-inner {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.size-card.active .size-card-inner {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--primary);
  box-shadow: 0 0 18px var(--primary-glow);
}

.size-matrix {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.size-card.active .size-matrix {
  color: #a5b4fc;
}

.size-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.size-card.active .size-label {
  color: #fff;
}

.size-sub {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

/* Start Button Disabled State */
.btn-start-disabled {
  opacity: 0.4;
  cursor: not-allowed !important;
  filter: grayscale(0.6);
  pointer-events: none;
}

.upload-reminder {
  font-size: 0.82rem;
  color: var(--accent-amber);
  text-align: center;
  margin-top: 10px;
  display: block;
}

/* ==========================================================================
   3. PUZZLE GAME SCREEN (SQUARE BOARD + OUTSIDE TRAY)
   ========================================================================== */
#game-screen {
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

/* HUD Bar */
.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}

.hud-label {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.hud-value {
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.03em;
}

.stat-timer {
  color: var(--accent-cyan);
}

.stat-moves {
  color: #a5b4fc;
}

.stat-progress {
  color: var(--accent-emerald);
}

.stat-size {
  color: var(--text-muted);
}

/* Toolbar Buttons */
.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.btn-tool {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-tool:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-tool-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
  color: #fca5a5;
}

/* Main Jigsaw Play Arena: Board + Outside Scatter Tray */
.play-arena {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  gap: 14px;
  align-items: center;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 860px) {
  .play-arena {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
  }
}

/* Board Area */
.board-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.board-header-tag, .tray-header-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 6px;
}

.board-frame {
  padding: 6px;
  background: rgba(14, 17, 30, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.7);
}

.puzzle-board {
  position: relative;
  background: #080a12;
  border-radius: var(--radius-sm);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.board-watermark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: grayscale(0.5);
  pointer-events: none;
}

.board-grid-slots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
}

.board-slot {
  border: 1px dashed rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.board-slot.slot-hover-target {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.2);
  box-shadow: inset 0 0 16px var(--accent-cyan-glow);
}

.board-placed-pieces {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Piece Tray Area (Outside the board) */
.tray-area {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  min-height: 160px;
  max-height: 44vh;
  overflow: hidden;
}

@media (min-width: 860px) {
  .tray-area {
    max-height: 520px;
    height: 100%;
  }
}

.piece-tray {
  flex: 1;
  background: rgba(16, 20, 36, 0.7);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  scrollbar-width: thin;
  touch-action: pan-y;
}

/* Jigsaw Piece Element */
.jigsaw-piece {
  position: relative;
  cursor: grab;
  user-select: none;
  touch-action: none;
  display: inline-block;
  transition: transform 0.18s ease;
  z-index: 5;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.jigsaw-piece:hover {
  filter: drop-shadow(0 6px 14px rgba(6, 182, 212, 0.4));
  transform: scale(1.04);
}

.jigsaw-piece.is-dragging {
  position: fixed !important;
  pointer-events: none !important;
  z-index: 10000 !important;
  cursor: grabbing !important;
  transform: translate(-50%, -50%) scale(1.1) !important;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 16px var(--accent-cyan-glow)) !important;
  transition: none !important;
}

.jigsaw-piece.is-bouncing {
  transition: transform 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.28), top 0.28s ease, left 0.28s ease !important;
}

.jigsaw-piece.is-locked {
  position: absolute !important;
  cursor: default !important;
  pointer-events: none !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
  animation: snapLock 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

@keyframes snapLock {
  0% { transform: scale(1.15); filter: brightness(1.4); }
  100% { transform: scale(1); filter: brightness(1); }
}

.jigsaw-canvas {
  display: block;
}

.game-hint {
  font-size: 0.78rem;
  color: var(--text-subtle);
  text-align: center;
  margin-top: 2px;
}

/* ==========================================================================
   Modals & Dialogs
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: #141828;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 12px;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
}

.modal-body {
  padding: 12px 24px 20px;
}

.modal-text {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.modal-footer {
  padding: 16px 24px 24px;
}

.modal-actions-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Preview Modal Specifics */
.preview-dialog {
  max-width: 480px;
}

.preview-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.preview-body img {
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   4. VICTORY / COMPLETION MODAL
   ========================================================================== */
.victory-dialog {
  max-width: 460px;
  text-align: center;
  padding: 30px 24px;
  background: linear-gradient(180deg, #181d34 0%, #101323 100%);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 24px 64px -12px rgba(99, 102, 241, 0.25);
}

.confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.victory-header {
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
}

.victory-icon-trophy {
  font-size: 3rem;
  margin-bottom: 8px;
  display: inline-block;
  animation: bounceTrophy 1s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite alternate;
}

@keyframes bounceTrophy {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.1); }
}

.victory-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.victory-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.victory-img-container {
  position: relative;
  z-index: 2;
  width: 130px;
  height: 130px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.victory-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.victory-stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.victory-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.victory-stat-card.highlight {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}

.vstat-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

.vstat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.victory-stat-card.highlight .vstat-value {
  color: #fbbf24;
}

.victory-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
