/* Memory Game Container */
:root {
  /* Swapped Colors per user request */
  /* Light Mode wants Dark Mode's "Pearl Grey" */
  --card-grad-1: #cdd9e5;
  --card-grad-2: #adbac7;
  --card-text: #1e293b; /* Dark text needed for light background */
  --sudoku-grid-line: #ccc;
}

body.dark-mode {
  /* Dark Mode wants Light Mode's "Slate Blue" */
  --card-grad-1: #64748b;
  --card-grad-2: #475569;
  --card-text: #ffffff;
}

#memory-game {
  width: 100%;
  flex: 1; /* Take remaining space */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  padding-top: calc(var(--header-height) + 0.5rem);
  box-sizing: border-box;
  animation: fadeIn 0.5s ease-in-out;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden; /* Prevent scroll and contain pieces during expansion */
  position: relative;
}

/* View Transition API Overrides (Modern Browsers) */
::view-transition-group(*),
::view-transition-old(*),
::view-transition-new(*) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.memory-timer {
  margin-top: auto;
  margin-bottom: 0.8rem; /* Slightly more space from footer */
  padding: 0.2rem 0.6rem; /* Reduced padding further */
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 6px;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem; /* Reduced font size further */
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  z-index: 20002;
  /* Ensure it doesn't look weird on mobile if tight space */
  align-self: center;
  white-space: nowrap; /* Prevent wrapping */
}

/* Light Mode specific - Light Grey Background */
body:not(.dark-mode) .memory-timer {
  background: rgba(0, 0, 0, 0.05); /* Light grey tint */
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.game-header {
  margin-bottom: 0.5rem;
  text-align: center;
  position: relative;
  z-index: 20002; /* Ensure tooltip is above everything globally */
}

.header-title-container h2 {
  font-family: "Lora", serif;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

.header-title-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.info-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  transform: translateY(-2px); /* Nudge up slightly from baseline */
}

.info-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 10px;
  transition: all 0.2s ease;
  user-select: none;
}

.info-icon:hover,
.info-icon-wrapper.active .info-icon {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.1);
}

.info-tooltip {
  position: absolute;
  top: 110%; /* Moved up slightly */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-paper);
  border: 1px solid var(--glass-border);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 200px;
  text-align: center;
  z-index: 20002; /* Ensure above everything (board/cards) */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Updated selector to trigger from title container class */
.header-title-container.active .info-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Updated hover trigger (when hovering the icon container) */
.info-icon-wrapper:hover ~ .info-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.info-tooltip h3 {
  font-size: 1rem;
  color: var(--accent-color);
  margin-bottom: 6px;
  font-weight: 700;
}

.info-tooltip p {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0;
}

/* Dark Mode Tooltip Override */
.dark-mode .info-tooltip {
  background: #2d333b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Main Grid Layout */
.memory-grid-layout {
  display: grid;
  width: 100%;
  max-width: 1200px;
  grid-template-columns: 100px 320px 100px; /* Fixed side width for columns (wider for larger pieces) */
  grid-template-rows: auto auto;
  grid-template-areas:
    "left board right"
    "left cards right";
  gap: 1.5rem;
  justify-content: center;
  flex: 1;
  padding-top: 2rem; /* Push content down on Desktop */

  /* Animate layout changes */
  transition:
    grid-template-columns 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    column-gap 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    gap 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Grid Areas */
.board-wrapper {
  grid-area: board;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Desktop: Top Align */
}

.collected-zone {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Spacing between collected pieces */
  width: 100%;
  min-height: 300px; /* Minimum height for desktop column */
}

/* Wrapper to preserve grid layout on desktop */
.collected-wrapper {
  display: contents;
}

.collected-zone.left {
  grid-area: left;
  align-items: flex-end;
}

.collected-zone.right {
  grid-area: right;
  align-items: flex-start;
}

.cards-area {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  justify-content: center;
  align-content: start;
  perspective: 1000px; /* For flip effect */
}

/* Board Styling */
.memory-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: 8px;
  width: 300px;
  height: 300px;
  aspect-ratio: 1/1 !important; /* ENSURE SYMMETRY - Prevent fractional rounding differences */
  user-select: none;
  -webkit-user-select: none;
}

.sudoku-chunk-slot {
  background: var(--bg-tertiary);
  border-radius: 10px; /* Refined for perfect fit with inner grid */
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sudoku-chunk-slot.filled {
  background: transparent;
}

/* Card Styling */
.memory-card {
  width: 85px; /* Aspect ratio fit? */
  height: 85px;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.memory-card:hover {
  transform: scale(1.05);
  z-index: 10;
}

/* Maintain flip rotation even on hover if flipped */
.memory-card.flipped {
  transform: rotateY(180deg);
  cursor: default;
}
/* Ensure hover doesn't override the flip rotation visually in a weird way */
.memory-card.flipped:hover {
  transform: rotateY(180deg) scale(1); /* No scale on flipped/matched cards if preferred, checking user intent */
}

/* Matched State */
.memory-card.matched {
  cursor: default;
}

.memory-card.matched .memory-card-back {
  filter: grayscale(100%);
  opacity: 0.6;
  background: #e5e5e5; /* Slightly darker background to indicate disabled */
}

/* Dark mode adjustment for matched cards */
.dark-mode .memory-card.matched .memory-card-back {
  background: #222;
  opacity: 0.5;
}

.memory-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.memory-card-front,
.memory-card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.memory-card-front {
  background: linear-gradient(135deg, var(--card-grad-1), var(--card-grad-2));
  color: var(--card-text);
  font-size: 1.5rem;
  font-weight: bold;
}

.memory-card-back {
  background: var(--bg-secondary);
  transform: rotateY(180deg);
  border: 2px solid #1e293b; /* Dark Grey/Black for Light Mode per user request */
  padding: 0; /* Flush grid per user request */
  border-radius: 6px; /* Match card radius explicitly */
  overflow: hidden; /* Clip grid corners to radius */
  /* Fix ghost text selection: Hide content when not flipped */
  visibility: hidden;
  transition: visibility 0s linear 0.1s; /* Delay hiding until almost flipped back */
}

/* Dark Mode Override for Card Back Border */
body.dark-mode .memory-card-back {
  border-color: var(--primary-color); /* Restore Pearl Grey in Dark Mode */
}

.memory-card.flipped .memory-card-back {
  visibility: visible;
  transition-delay: 0s; /* Show immediately when starting calculation */
}

/* Match Success Animation (Temporary Green State) */
.memory-card.match-anim .memory-card-back {
  border-color: #4caf50 !important; /* Success Green */
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.6) !important;
  transform: rotateY(180deg) scale(1.05);
  transition: all 0.3s ease-out;
}

/* Mini Sudoku Grid Content */
.mini-sudoku-grid {
  display: grid;
  /* Use minmax(0, 1fr) to force equal sizing regardless of content/empty cells */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  gap: 0; /* Removed gap to prevent edge bleeding */
  background: transparent; /* Lines now handled by cell borders */
  container-type: size; /* Enable relative typography */
  border-radius: 8px; /* Refined to account for 2px parent border */
  overflow: hidden; /* Ensure corner cells are clipped correctly */
}

.mini-cell {
  background: white; /* Or variable */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Responsive Font Size: ~18% of the total 3x3 grid width */
  font-size: 18cqw;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  color: #333;
  user-select: none;
  -webkit-user-select: none;
  line-height: 1; /* Tight line height */
  /* Selective borders for internal grid lines only */
  border-right: 1px solid var(--sudoku-grid-line);
  border-bottom: 1px solid var(--sudoku-grid-line);
  box-sizing: border-box; /* Ensure border doesn't grow the cell */
}

/* Remove outer grid lines */
.mini-cell:nth-child(3n) {
  border-right: none;
}
.mini-cell:nth-child(n + 7) {
  border-bottom: none;
}

.dark-mode .mini-cell {
  background: #2a2a2a;
  color: #eee;
}

/* Specific: Larger numbers on the main board can match relative sizing too, 
   or keep an override if needed. 18cqw works everywhere mostly. */
.memory-board .mini-cell {
  /* No specific override needed if using cqw, but maybe slightly adjusted for visibility */
  font-size: 20cqw;
}

/* Collected Piece Styling */
.collected-piece {
  width: 70px; /* Slightly larger collected pieces */
  height: 70px;
  border: 2px solid #546e7a; /* Blue Grey (Darker for Light Mode) */
  border-radius: 10px; /* Refined for perfect fit with inner grid */
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  /* Smoothly animate size/position changes (like mobile jigsaw transition) */
  /* Using specific properties prevents "sliding from origin" artifacts often caused by transition: all */
  transition:
    width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Trigger class for matched piece appearance */
.collected-piece.spawn-anim {
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  transition: none !important; /* Prevent transition conflicts during spawn */
}

.dark-mode .collected-piece {
  border-color: #90a4ae; /* Blue Grey (Lighter for Dark Mode) */
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Level Completion Animations */
@keyframes boardPulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    transform: scale(1);
    border-color: rgba(76, 175, 80, 0);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(76, 175, 80, 0.6);
    transform: scale(1.05); /* Slight grow */
    border-color: #4caf50;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    transform: scale(1);
    border-color: rgba(76, 175, 80, 0);
  }
}

.board-complete {
  animation: boardPulseGreen 0.6s ease-out 1; /* Single fast pulse */
}

.cards-hidden {
  opacity: 0;
  transition: opacity 1s ease-out;
  pointer-events: none;
}

/* Test Panels (Mobile Only) */
.test-mobile-panels {
  display: none;
}

/* Mobile Layout */
@media (max-width: 768px) {
  /* Override global container padding to regain vertical space */
  #memory-game {
    padding: 0;
    padding-top: var(--header-height); /* Only pad for the fixed header */
    padding-bottom: var(--footer-height); /* Zero safety, sit flush */
    justify-content: flex-start; /* Force content to top */
    overflow: hidden !important; /* Strictly contain content */
    display: flex;
    flex-direction: column;
  }

  /* Compact header to fit board in red zone */
  .game-header {
    margin: 0; /* Zero margins */
    padding: 5px 0; /* Minimal padding */
    z-index: 20002;
    flex: 0 0 auto; /* Don't grow */
  }

  /* TIMER POSITIONING FIX - Hidden for mobile to save space */
  .memory-timer {
    display: none;
  }

  .test-mobile-panels {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height); /* Start below header */
    left: 0;
    width: 100%;
    /* Stop before footer - adjusted to close gap */
    height: calc(100dvh - var(--header-height) - var(--footer-height) + 7px);
    z-index: 9999;
    pointer-events: none;
    opacity: 0.8;
  }

  /* ... test-panel styles ... */
  .test-panel {
    width: 100%;
  }
  .test-panel.red {
    background: transparent;
    height: calc(43.5dvh - var(--header-height));
    flex: none;
  }
  .test-panel.yellow {
    background: transparent;
    height: 13dvh;
    flex: none;
  }
  .test-panel.green {
    background: transparent;
    flex: 1;
  }

  /* Debug Mode Visibility */
  body.debug-mode .test-panel.red {
    background: rgba(255, 0, 0, 0.3);
  }
  body.debug-mode .test-panel.yellow {
    background: rgba(255, 255, 0, 0.3);
  }
  body.debug-mode .test-panel.green {
    background: rgba(0, 128, 0, 0.3);
  }

  .memory-grid-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Force top alignment */
    gap: 0; /* Remove gap to tighten layout */
    padding-top: 0; /* consistent with existing padding-bottom: 0 logic */
    padding-bottom: 0; /* Remove padding to use full green zone */
    position: relative;
    z-index: 10000;
    flex: 1; /* Take all remaining vertical space */
    min-height: 0;
    width: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Bring Header above test panels too */
  .game-header {
    position: relative;
    z-index: 20002;
  }

  /* Order: Board -> Collected -> Cards */
  .board-wrapper {
    order: 1;
    width: 100%;
    /* Tight layout: wrapper only takes what board needs */
    height: auto;
    display: flex;
    align-items: flex-start; /* Start below title */
    justify-content: center;
    padding-top: 0;
    margin-top: 0; /* Align tight to title */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .memory-board {
    /* Maximize Size Strategy: Fit the smaller of (95% width) or (Vertical budget) */
    width: min(95vw, calc(43.5dvh - var(--header-height) - 50px));
    height: auto;
    max-width: 100%;
    /* VERTICAL BUDGET: Exact bottom of red panel (43.5dvh) minus title area (~50px) */
    max-height: calc(43.5dvh - var(--header-height) - 50px);
    aspect-ratio: 1/1; /* Ensure squareness */
    object-fit: contain; /* Prevent distortion */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Expand Board vertical budget when in Jigsaw or Sudoku Mode to allow growth */
  /* Added max(260px, ...) to ensure it doesn't shrink too much on small screens */
  .jigsaw-mode .memory-board,
  .sudoku-mode .memory-board {
    width: min(95vw, max(200px, calc(60dvh - var(--header-height) - 30px)));
    max-height: 100%; /* Relaxed to allow the 200px minimum */
  }

  /* Wrapper for Collected Zones */
  .collected-wrapper {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column; /* Default to stacked (2 rows) */
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10000;
    /* Animate height expansion during jigsaw mode transition */
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Reset children to simple flex items */
  #collected-left,
  #collected-right {
    display: flex;
    flex-direction: row; /* Horizontal row */
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* Height controlled by JS */
    min-height: 0;
    overflow: visible; /* Changed from hidden to allow selection glow */
    padding: 0;
    gap: 4px;
  }
  /* Maybe make them appear as one block visually? */

  .cards-area {
    order: 3;
    display: flex !important; /* Switch to flex on mobile to allow JS column count */
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    width: 100%;
    gap: 8px;
    height: auto; /* Use natural flex height */
  }

  .memory-card {
    width: 22vw;
    height: 22vw;
    /* max-width/height removed to let JS scale up on taller screens if needed */
  }

  .mini-cell {
    font-size: 12px;
  }
}
/* =========================================
   Landscape Tablet / Short Desktop Adjustment
   (Fixes cut-off cards on devices like TCL NXTPAPER 11)
   ========================================= */
@media (min-width: 769px) and (max-height: 1000px) {
  #memory-game {
    padding-top: var(--header-height) !important;
    padding-bottom: var(--footer-height) !important;
  }

  .memory-grid-layout {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 1rem 0.8rem; /* Balanced top/bottom breathing room */
    column-gap: 3rem;
    row-gap: 0.5rem;
    /* REDEFINE AREAS to ensure alignment is row-specific */
    grid-template-areas:
      "left board right"
      "cards cards cards" !important;
    grid-template-columns: 1fr auto 1fr !important;
    /* Cards have higher vertical priority now */
    grid-template-rows: minmax(100px, 0.6fr) 1.4fr !important;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    max-height: calc(100dvh - var(--header-height) - var(--footer-height));
    margin: 0 auto;
    align-items: center;
    overflow: hidden;
  }

  /* Transition to Jigsaw Mode Overrides */
  .jigsaw-mode .memory-grid-layout,
  .sudoku-mode .memory-grid-layout {
    /* Give all space to board row when cards are gone */
    grid-template-rows: 1fr 0px !important;
    row-gap: 0;
    column-gap: 6rem !important;
    /* User: "un poco mas" (margen abajo) */
    padding-bottom: 4.5rem !important;
  }

  /* Timer visibility hidden on short desktop to maximize space */
  #memory-timer {
    display: none;
  }

  /* Board Area (Memory) */
  .memory-board {
    grid-area: board;
    width: auto;
    height: 100%;
    /* User: "tablero y piezas se achique mas" */
    min-height: 100px !important;
    max-height: 180px;
    aspect-ratio: 1 / 1;
    align-self: flex-start; /* Move to top */
    justify-self: center;
    object-fit: contain;
  }

  .board-wrapper {
    grid-area: board;
    align-self: stretch; /* Must stretch to provide a height reference to board */
    display: flex;
    align-items: flex-start; /* Align board to top of its zone */
    justify-content: center;
  }

  /* Enlarged Board (Jigsaw) */
  .jigsaw-mode .memory-board {
    min-height: 240px !important;
    max-height: 330px !important; /* Reduced further for better clearance */
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* Enlarged Board (Sudoku) */
  .sudoku-mode .memory-board {
    min-height: 240px !important;
    max-height: 390px !important; /* Reduced further for better clearance */
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* Side Zones Alignment */
  .collected-zone.left {
    grid-area: left;
    justify-self: end;
  }
  .collected-zone.right {
    grid-area: right;
    justify-self: start;
  }

  .collected-zone {
    align-self: center !important; /* Forces center alignment with board row */
    min-height: 0 !important;
    height: auto;
    gap: 8px;
    display: grid !important;
    grid-template-columns: 1fr 1fr; /* Memory matches: 2 columns */
    align-content: center;
    max-width: 120px;
    transition: all 0.5s ease-in-out;
  }

  /* User: "formando una sola columna a cada lado" */
  .jigsaw-mode .collected-zone,
  .sudoku-mode .collected-zone {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-self: stretch !important; /* Stretch to match board height */
    grid-template-columns: none !important;
    max-width: 100px;
    gap: 8px; /* Fixed grouping gap */
    padding: 1vh 0; /* Small vertical buffer */
  }

  /* Override Piece Size (Memory Default) */
  /* Piece Size Adjustments */
  .collected-piece {
    width: min(35px, 8vh);
    height: min(35px, 8vh);
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    font-size: 0.7rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .jigsaw-mode .collected-piece,
  .sudoku-mode .collected-piece {
    /* User: "que las piezas sean mas grandes" but adjusted for ultra-short */
    width: min(85px, 15vh);
    height: auto; /* Let aspect-ratio handle this */
    font-size: 1.1rem;
  }

  /* Cards Area (Bottom) */
  .cards-area {
    grid-area: cards;
    display: grid !important;
    grid-template-columns: repeat(6, auto) !important;
    justify-content: center;
    gap: 8px;
    align-self: center; /* Move closer to board by centering in the row */
    padding: 0.2rem 0; /* Minimal internal padding, grid handles the rest */
    width: 100%;
    margin: 0 auto;
    max-width: 800px;
  }

  .memory-card {
    /* User: "hacer mas grandes" -> Increased range for better scale */
    width: clamp(60px, 12.5vh, 92px) !important;
    height: clamp(60px, 12.5vh, 92px) !important;
    flex: 0 0 auto;
    font-size: clamp(0.9rem, 2vh, 1.4rem);
  }
}
