/**
 * Estilos para El juego del ojo de diseñador y test de precisión visual
 * Fijate Tools - test-ojo-disenador-precision-visual
 */

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Paleta cromática en tema oscuro (por defecto en este juego técnico) */
  --bg-body: #090d16;
  --bg-card: #111726;
  --bg-card-subtle: #182235;
  --bg-input: #1a2438;
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(56, 189, 248, 0.3);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #38bdf8;
  --accent-cyan-hover: #0ea5e9;
  --accent-purple: #818cf8;
  --accent-green: #34d399;
  --accent-rose: #f43f5e;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --radius-card: 16px;
  --radius-btn: 10px;
}

[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-input: #e2e8f0;
  --border-card: rgba(0, 0, 0, 0.08);
  --border-card-hover: rgba(14, 165, 233, 0.4);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-cyan: #0284c7;
  --accent-cyan-hover: #0369a1;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Reglas canónicas del layout institucional */
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
  flex: 1 0 auto;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

/* Tipografías base */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-mono {
  font-family: var(--font-mono);
}

/* Contenedor principal de la herramienta */
.game-viewport-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Pantallas del juego (intro, juego, resultados) */
.game-screen {
  display: none;
}

.game-screen.is-active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pantalla 1: Intro y bienvenida */
.intro-hero {
  text-align: center;
  max-width: 680px;
  margin: 1rem auto 2.5rem;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.intro-title {
  font-size: 2.3rem;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.intro-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.intro-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.feature-pill {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.feature-text h4 {
  margin: 0 0 3px;
  font-size: 0.95rem;
}

.feature-text p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.btn-start-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 52px;
}

.btn-start-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.5);
}

/* Pantalla 2: Cabecera interactiva durante la partida */
.game-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 10px;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-cyan);
}

.status-category {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.status-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-purple);
  background: rgba(129, 140, 248, 0.1);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(129, 140, 248, 0.25);
}

.game-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.game-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  transition: width 0.3s ease;
}

.game-question-area {
  margin-bottom: 1.75rem;
  text-align: center;
}

.game-round-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.game-round-instruction {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Área de escenario interactivo */
.game-stage-wrapper {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 2rem 1rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

/* Escenario 1: Centrado de formas */
.stage-center-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
  touch-action: none;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.center-target-circle-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.draggable-shape {
  position: absolute;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transform: translate(-50%, -50%);
  transition: box-shadow 0.15s ease;
}

.draggable-shape:active,
.draggable-shape.is-dragging {
  cursor: grabbing;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.6) !important;
}

.nudge-controls {
  margin-top: 1.25rem;
  text-align: center;
}

.nudge-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.nudge-dpad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nudge-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nudge-crosshair {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.btn-nudge {
  width: 42px;
  height: 42px;
  min-height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-nudge:hover {
  background: var(--accent-cyan);
  color: #ffffff;
  border-color: var(--accent-cyan);
}

/* Escenario 2: Inspección y elección de tipografías */
.stage-font-choice-wrapper {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.glyph-inspection-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.glyph-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.glyph-canvas-box {
  width: 100%;
  max-width: 320px;
  height: 220px;
  margin: 0 auto;
}

.glyph-svg {
  width: 100%;
  height: 100%;
}

.glyph-clue {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.font-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-font-option {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  min-height: 54px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  color: var(--text-primary);
}

.btn-font-option:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
}

.font-opt-title {
  font-size: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.font-opt-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Escenario 3: Kerning */
.stage-kerning-wrapper {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.kerning-word-stage {
  height: 140px;
  width: 100%;
  max-width: 340px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.kerning-char {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  user-select: none;
}

.char-locked {
  color: #cbd5e1;
}

.char-movable {
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

.kerning-controls-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.kerning-range-slider {
  flex: 1;
  accent-color: var(--accent-cyan);
  height: 8px;
  cursor: pointer;
}

.btn-kerning-step {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
}

.btn-kerning-step:hover {
  background: var(--accent-cyan);
  color: #ffffff;
}

/* Escenario 4: Ordenación de gradiente cromático */
.stage-colorsort-wrapper {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.palette-sort-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.color-chip {
  width: 64px;
  height: 84px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.chip-fixed {
  cursor: default;
  opacity: 0.85;
}

.chip-fixed::after {
  content: '🔒';
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 11px;
}

.chip-movable:hover {
  transform: translateY(-4px);
}

.chip-movable.is-selected {
  transform: translateY(-6px) scale(1.05);
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
}

.color-sort-hint {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Escenario 5: Contraste WCAG */
.stage-contrast-wrapper {
  width: 100%;
  max-width: 620px;
}

.contrast-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contrast-sample-card {
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-card);
}

.sample-action-button {
  border: 1px solid;
  background: transparent;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: default;
}

.sample-paragraph {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.btn-contrast-select {
  margin-top: auto;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 42px;
}

.btn-contrast-select:hover {
  background: var(--accent-cyan);
  color: #ffffff;
  border-color: var(--accent-cyan);
}

/* Escenario 6: Detección de tarjeta con espaciado roto */
.stage-spacing-flaw-wrapper {
  width: 100%;
  max-width: 680px;
}

.spacing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.ui-test-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
  min-height: 160px;
}

.ui-test-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.ui-card-header {
  display: flex;
  align-items: center;
}

.ui-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.ui-card-desc {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.ui-card-tag {
  margin-top: auto;
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 600;
  opacity: 0.8;
}

/* Botón de confirmación inferior */
.stage-actions-bar {
  text-align: center;
}

.btn-submit-action {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  transition: transform 0.12s ease;
}

.btn-submit-action:hover {
  transform: translateY(-1px);
}

/* Pantalla 3: Resultados finales y tarjeta gráfica */
.results-header-box {
  text-align: center;
  margin-bottom: 2rem;
}

.results-supertitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.results-main-title {
  font-size: 2.2rem;
  margin: 0 0 1rem;
}

.results-badge-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.results-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Previsualización del canvas en la pantalla de resultados */
.card-canvas-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-card);
  background: #090d16;
}

.card-canvas-element {
  width: 100%;
  height: auto;
  display: block;
}

/* Desglose de categorías */
.results-breakdown-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.5rem;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.breakdown-title {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
}

.res-category-row {
  margin-bottom: 1rem;
}

.res-category-row:last-child {
  margin-bottom: 0;
}

.res-cat-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 5px;
}

.res-cat-name {
  font-weight: 600;
}

.res-cat-score {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 700;
}

.res-cat-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.res-cat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 4px;
}

/* Panel de compartir y descargar */
.share-actions-panel {
  max-width: 680px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.share-panel-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.share-buttons-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-primary);
  min-height: 44px;
  transition: all 0.15s ease;
}

.btn-share:hover {
  transform: translateY(-2px);
}

.btn-share-primary {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  border: none;
}

.btn-share-x:hover {
  background: #000000;
  color: #ffffff;
}

.btn-share-linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
}

.btn-share-whatsapp:hover {
  background: #25d366;
  color: #ffffff;
}

.btn-restart-action {
  background: transparent;
  color: var(--text-secondary);
  border: 1px dashed var(--border-card);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  min-height: 42px;
}

.btn-restart-action:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

/* Modales accesibles (feedback de ronda y avisos) */
.custom-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.custom-modal-overlay.is-active {
  display: flex;
  animation: modalFadeIn 0.2s ease-out;
}

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

.custom-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: modalScaleUp 0.2s ease-out;
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}

.modal-feedback-badge {
  font-size: 2rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.modal-feedback-detail {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.modal-feedback-exp {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: var(--bg-card-subtle);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  text-align: left;
}

.btn-modal-action {
  background: linear-gradient(135deg, #0284c7, #4f46e5);
  color: #ffffff;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  min-height: 48px;
}

/* Guía explicativa y preguntas frecuentes */
.seo-guide-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin-top: 2.5rem;
}

.seo-guide-title {
  font-size: 1.6rem;
  margin: 0 0 1.25rem;
}

.seo-accordion-item {
  border-bottom: 1px solid var(--border-card);
  padding: 1.25rem 0;
}

.seo-accordion-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.seo-accordion-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--accent-cyan);
}

.seo-accordion-item p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Adaptación responsive */
@media (max-width: 768px) {
  .game-viewport-card {
    padding: 1.25rem 1rem;
  }

  .intro-title {
    font-size: 1.8rem;
  }

  .intro-features-grid {
    grid-template-columns: 1fr;
  }

  .font-options-grid,
  .contrast-options-grid {
    grid-template-columns: 1fr;
  }

  .share-buttons-row {
    flex-direction: column;
  }

  .btn-share {
    width: 100%;
    justify-content: center;
  }
}
