/* Barrel Blaster Mobile - Mobile-First CSS */
/* Base styles for 320px (smallest phones) */

/* ========================================
   CSS Variables
   ======================================== */
:root {
  --color-primary: #1a1a2e;
  --color-secondary: #16213e;
  --color-accent: #e94560;
  --color-text: #f1f1f1;
  --color-text-dark: #0f3460;
  --min-touch-target: 44px;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
  background-color: var(--color-primary);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Safe area insets for notched devices (iPhone X, Android notched phones) */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  /* iOS Safari gesture compatibility (Issue #99) */
  -webkit-touch-callout: none; /* Prevent iOS context menu on long-press */
  overscroll-behavior: none; /* Prevent rubber band scroll effect */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* ========================================
   Loading Screen
   ======================================== */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#loading-screen.fade-out {
  opacity: 0;
}

.loading-content {
  text-align: center;
  max-width: 90%;
}

.loading-content h1 {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--color-accent);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

/* Barrel-themed loading container */
.loading-barrel-container {
  position: relative;
  width: 280px;
  margin: 0 auto 20px;
}

/* Animated barrel */
.loading-barrel {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
  border-radius: 8px;
  position: relative;
  animation: barrelRoll 2s ease-in-out infinite;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.loading-barrel::before,
.loading-barrel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #654321;
}

.loading-barrel::before {
  top: 20%;
}

.loading-barrel::after {
  top: 80%;
}

@keyframes barrelRoll {
  0%, 100% {
    transform: translateX(-100px) rotate(0deg);
  }
  50% {
    transform: translateX(100px) rotate(360deg);
  }
}

/* Progress bar */
.loading-progress-bar {
  width: 100%;
  height: 24px;
  background: linear-gradient(to bottom, #0f3460 0%, #16213e 100%);
  border: 3px solid var(--color-accent);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.loading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,
    var(--color-accent) 0%,
    #ff6b7a 50%,
    var(--color-accent) 100%);
  background-size: 200% 100%;
  animation: progressShine 1.5s ease-in-out infinite;
  transition: width 0.3s ease-out;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

@keyframes progressShine {
  0%, 100% {
    background-position: 200% 0;
  }
  50% {
    background-position: 0% 0;
  }
}

/* Loading text elements */
.loading-percentage {
  font-size: 32px;
  font-weight: bold;
  color: var(--color-accent);
  margin: 15px 0 10px;
  text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
  font-family: 'Courier New', monospace;
}

.loading-status {
  font-size: 14px;
  color: var(--color-text);
  margin: 8px 0;
  min-height: 20px;
  font-style: italic;
}

.loading-eta {
  font-size: 12px;
  color: rgba(241, 241, 241, 0.7);
  margin: 5px 0;
  font-family: 'Courier New', monospace;
}

/* ========================================
   Game Container
   ======================================== */
#game-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  /* Safe area insets for game container to respect notches */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ========================================
   Header
   ======================================== */
#game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: var(--color-secondary);
  height: 50px;
  position: relative;
  z-index: 100;
}

#game-title {
  font-size: 24px;
  color: var(--color-accent);
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: var(--min-touch-target);
  height: var(--min-touch-target);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Fullscreen Toggle Button */
.fullscreen-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--min-touch-target);
  height: var(--min-touch-target);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 24px;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.fullscreen-toggle:hover,
.fullscreen-toggle:active {
  color: var(--color-accent);
  transform: scale(1.1);
}

.fullscreen-toggle:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========================================
   Navigation Menu
   ======================================== */
#main-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background-color: var(--color-secondary);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 99;
  transition: transform 0.3s ease;
}

#main-menu.menu-hidden {
  transform: translateX(100%);
}

#main-menu ul {
  list-style: none;
  padding: 10px 0;
}

#main-menu li {
  margin: 0;
}

#main-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
  min-height: var(--min-touch-target);
  transition: background-color 0.2s ease;
}

#main-menu a:hover,
#main-menu a:active {
  background-color: var(--color-primary);
}

/* Menu icon styles */
.menu-icon {
  font-size: 20px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Menu text styles */
.menu-text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ========================================
   Canvas Wrapper
   ======================================== */
#canvas-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  position: relative;
  overflow: hidden;
}

#game-canvas {
  max-width: 100%;
  max-height: 100%;
  display: block;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  /* iOS Safari gesture compatibility (Issue #99) */
  touch-action: none; /* Allow custom gestures, prevent browser defaults */
  -webkit-user-select: none; /* Prevent text selection on long-press */
  -webkit-touch-callout: none; /* Prevent context menu on long-press */
}

/* ========================================
   Portrait Mode Message
   ======================================== */
#portrait-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  /* Safe area insets for portrait message to avoid notches */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#portrait-message.hidden {
  display: none;
}

.message-content {
  text-align: center;
  padding: 20px;
}

.message-content h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--color-accent);
}

.message-content p {
  font-size: 14px;
  margin-bottom: 20px;
}

.rotate-icon {
  font-size: 48px;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

/* ========================================
   Install Prompt
   ======================================== */
#install-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-secondary);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  max-width: 90%;
}

#install-prompt.hidden {
  display: none;
}

.prompt-content {
  text-align: center;
}

.prompt-content p {
  margin-bottom: 15px;
  font-size: 14px;
}

.prompt-content button {
  padding: 10px 20px;
  margin: 0 5px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  min-width: 100px;
  min-height: var(--min-touch-target);
}

#btn-install {
  background-color: var(--color-accent);
  color: white;
}

#btn-dismiss {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

/* ========================================
   Touch Controls Overlay (Issue #29)
   ======================================== */
#touch-controls {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 150;
  pointer-events: none;
  /* Safe area insets for notched devices */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Mobile control buttons */
.mobile-button {
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.mobile-button:active {
  opacity: 0.9;
}

/* D-pad buttons */
.mobile-button.dpad {
  width: 120px;
  height: 120px;
  background-color: #1a1a1a;
  border: 3px solid #ff0000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  font-family: Arial, sans-serif;
}

.mobile-button.dpad-left {
  bottom: calc(30px + env(safe-area-inset-bottom));
  left: calc(30px + env(safe-area-inset-left));
}

.mobile-button.dpad-right {
  bottom: calc(30px + env(safe-area-inset-bottom));
  left: calc(180px + env(safe-area-inset-left));
}

.mobile-button.dpad-up {
  bottom: calc(180px + env(safe-area-inset-bottom));
  left: calc(120px + 30px + env(safe-area-inset-left));
}

.mobile-button.dpad-down {
  bottom: calc(30px + env(safe-area-inset-bottom));
  left: calc(120px + 30px + env(safe-area-inset-left));
}

/* Jump button */
.mobile-button.jump {
  width: 160px;
  height: 160px;
  background-color: #1a1a1a;
  border: 3px solid #ffff00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  color: #ffffff;
  font-family: Arial, sans-serif;
  bottom: calc(30px + env(safe-area-inset-bottom));
  right: calc(30px + env(safe-area-inset-right));
}

.mobile-button.jump:active {
  background-color: #2a2a2a;
}

.mobile-button.dpad:active {
  background-color: #2a2a2a;
}

/* ========================================
   Performance Monitor
   ======================================== */
#performance-monitor {
  position: fixed;
  top: 60px;
  right: 10px;
  background-color: rgba(26, 26, 46, 0.95);
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  padding: 10px;
  min-width: 180px;
  z-index: 9000;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.perf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-accent);
}

.perf-title {
  font-weight: bold;
  color: var(--color-accent);
  font-size: 14px;
}

.perf-close {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: var(--min-touch-target);
  height: var(--min-touch-target);
  line-height: 1;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.perf-close:hover {
  color: var(--color-accent);
}

.perf-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perf-metric {
  display: flex;
  align-items: center;
  gap: 8px;
}

.perf-label {
  color: var(--color-text);
  min-width: 80px;
}

.perf-value {
  color: var(--color-accent);
  font-weight: bold;
  font-size: 14px;
  min-width: 40px;
  text-align: right;
}

.perf-unit {
  color: var(--color-text);
  font-size: 11px;
  opacity: 0.7;
}

/* ========================================
   Utility Classes
   ======================================== */
.hidden {
  display: none !important;
}

/* ========================================
   Immersive Mode (Game Area Maximization)
   ======================================== */
/* Hide non-essential elements during gameplay */
.immersive-hidden {
  display: none !important;
  visibility: hidden !important;
}

/* Maximize canvas wrapper when in immersive mode */
#canvas-wrapper.immersive-mode {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  /* Ensure canvas uses 100% of viewport */
  padding: 0 !important;
  margin: 0 !important;
  z-index: 1;
  /* Safe area insets for notched devices in immersive mode */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left) !important;
}

/* Canvas sizing in immersive mode - maximize to 100% */
#canvas-wrapper.immersive-mode #game-canvas {
  max-width: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
}

/* Touch controls remain visible in immersive mode */
#touch-controls {
  z-index: 150;
  pointer-events: none;
}

#touch-controls .mobile-button {
  pointer-events: auto;
}

/* Fullscreen mode styles */
:fullscreen #game-container,
:-webkit-full-screen #game-container,
:-moz-full-screen #game-container,
:-ms-fullscreen #game-container {
  width: 100%;
  height: 100%;
  background: #000;
}

:fullscreen #canvas-wrapper,
:-webkit-full-screen #canvas-wrapper,
:-moz-full-screen #canvas-wrapper,
:-ms-fullscreen #canvas-wrapper {
  width: 100%;
  height: 100%;
}

/* ========================================
   Responsive Breakpoints
   ======================================== */

/* 481px+ (Large phones, landscape) */
@media (min-width: 481px) {
  /* Typography enhancements */
  #game-title {
    font-size: 32px;
  }

  .loading-content h1 {
    font-size: 32px;
  }

  .loading-barrel-container {
    width: 320px;
  }

  .loading-barrel {
    width: 70px;
    height: 70px;
  }

  .loading-progress-bar {
    height: 28px;
  }

  .loading-percentage {
    font-size: 36px;
  }

  .loading-status {
    font-size: 16px;
  }

  .loading-eta {
    font-size: 14px;
  }

  .message-content h2 {
    font-size: 24px;
  }

  /* Navigation improvements */
  #main-menu {
    position: static;
    transform: none !important;
    box-shadow: none;
  }

  #main-menu ul {
    display: flex;
    gap: 5px;
  }

  .hamburger {
    display: none;
  }

  /* UI element sizing - larger touch targets */
  #main-menu a {
    padding: 18px 35px;
    font-size: 18px;
    gap: 15px;
  }

  .menu-icon {
    font-size: 22px;
    width: 26px;
    height: 26px;
  }

  .menu-text {
    font-size: 18px;
  }

  #game-header {
    padding: 12px 20px;
    height: 60px;
  }

  /* Better spacing for larger phones */
  .prompt-content button {
    padding: 12px 24px;
    margin: 0 8px;
    font-size: 16px;
  }

  /* Performance monitor sizing */
  #performance-monitor {
    min-width: 200px;
    padding: 12px;
  }

  .perf-label {
    min-width: 90px;
  }
}

/* 769px+ (Tablets) */
@media (min-width: 769px) {
  /* Enhanced typography for tablets */
  #game-title {
    font-size: 40px;
  }

  .loading-content h1 {
    font-size: 40px;
  }

  .loading-barrel-container {
    width: 400px;
  }

  .loading-barrel {
    width: 80px;
    height: 80px;
  }

  .loading-progress-bar {
    height: 32px;
  }

  .loading-percentage {
    font-size: 42px;
  }

  .loading-status {
    font-size: 18px;
  }

  .loading-eta {
    font-size: 16px;
  }

  .message-content h2 {
    font-size: 28px;
  }

  .message-content p {
    font-size: 16px;
  }

  #main-menu a {
    font-size: 20px;
    padding: 20px 40px;
    gap: 18px;
  }

  .menu-icon {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .menu-text {
    font-size: 20px;
  }

  /* Larger canvas utilization */
  #canvas-wrapper {
    padding: 10px;
  }

  #game-canvas {
    max-width: 95%;
    max-height: 95%;
  }

  /* Better spacing for tablet screens */
  #game-header {
    padding: 15px 30px;
    height: 70px;
  }

  #main-menu ul {
    gap: 10px;
  }

  .prompt-content {
    padding: 20px;
  }

  .prompt-content p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .prompt-content button {
    padding: 14px 28px;
    font-size: 18px;
    min-width: 120px;
  }

  /* Touch controls adjustment for tablets */
  .mobile-button.dpad {
    width: 140px;
    height: 140px;
    font-size: 40px;
  }

  .mobile-button.jump {
    width: 180px;
    height: 180px;
    font-size: 52px;
  }

  /* Performance monitor for tablets */
  #performance-monitor {
    min-width: 220px;
    padding: 14px;
    font-size: 13px;
  }

  .perf-title {
    font-size: 16px;
  }

  .perf-value {
    font-size: 16px;
  }
}

/* 1024px+ (Desktop, large tablets) */
@media (min-width: 1024px) {
  /* Desktop-scale typography */
  #game-title {
    font-size: 48px;
  }

  .loading-content h1 {
    font-size: 48px;
  }

  .loading-barrel-container {
    width: 500px;
  }

  .loading-barrel {
    width: 90px;
    height: 90px;
  }

  .loading-progress-bar {
    height: 36px;
  }

  .loading-percentage {
    font-size: 48px;
  }

  .loading-status {
    font-size: 20px;
  }

  .loading-eta {
    font-size: 18px;
  }

  .message-content h2 {
    font-size: 32px;
  }

  .message-content p {
    font-size: 18px;
  }

  #main-menu a {
    font-size: 22px;
    padding: 22px 45px;
    gap: 20px;
  }

  .menu-icon {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }

  .menu-text {
    font-size: 22px;
  }

  /* Maximum canvas size for desktop */
  #canvas-wrapper {
    padding: 20px;
  }

  #game-canvas {
    max-width: 1200px;
    max-height: 800px;
  }

  /* Desktop layout optimizations */
  #game-header {
    padding: 20px 40px;
    height: 80px;
  }

  #main-menu ul {
    gap: 15px;
  }

  /* Hide touch controls on desktop - mouse preferred */
  .mobile-button {
    opacity: 0.3;
    pointer-events: none;
  }

  .mobile-button:hover {
    opacity: 0.5;
  }

  /* Desktop-friendly install prompt */
  #install-prompt {
    max-width: 500px;
    padding: 20px 30px;
  }

  .prompt-content p {
    font-size: 18px;
    margin-bottom: 25px;
  }

  .prompt-content button {
    padding: 16px 32px;
    font-size: 18px;
    min-width: 140px;
  }

  /* Performance monitor for desktop */
  #performance-monitor {
    min-width: 250px;
    padding: 16px;
    font-size: 14px;
  }

  .perf-title {
    font-size: 18px;
  }

  .perf-value {
    font-size: 18px;
  }

  .perf-close {
    width: var(--min-touch-target);
    height: var(--min-touch-target);
    font-size: 24px;
  }

  /* Mouse cursor enhancements */
  button,
  a,
  .hamburger {
    cursor: pointer;
  }

  button:hover,
  a:hover {
    opacity: 0.9;
  }
}

/* ========================================
   About Page Styles (Mobile-First)
   ======================================== */

/* About content container - mobile base (320px+) */
#about-content {
  padding: 15px;
  overflow-y: auto;
  height: calc(100vh - 50px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  background-color: var(--color-primary);
}

/* Back button in header */
.back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--min-touch-target);
  height: var(--min-touch-target);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
  font-size: 24px;
  transition: all 0.3s ease;
}

.back-button:hover,
.back-button:active {
  color: var(--color-accent);
  transform: scale(1.1);
}

/* Section spacing */
.about-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(241, 241, 241, 0.1);
}

.about-section:last-child {
  border-bottom: none;
}

/* Typography - mobile base */
.about-section h2 {
  font-size: 20px;
  color: var(--color-accent);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.about-section p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 10px;
}

/* Lists */
.about-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.about-section li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
  padding-left: 25px;
  position: relative;
  margin-bottom: 8px;
}

.about-section li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 16px;
}

/* Navigation links */
.navigation-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid var(--color-accent);
}

.about-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background-color: var(--color-secondary);
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
  min-height: var(--min-touch-target);
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.about-link:hover,
.about-link:active {
  background-color: var(--color-primary);
  box-shadow: 0 4px 8px rgba(233, 69, 96, 0.3);
  transform: translateY(-2px);
}

/* 481px+ (Large phones, landscape) */
@media (min-width: 481px) {
  #about-content {
    padding: 20px;
    height: calc(100vh - 60px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .about-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
  }

  .about-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .about-section p {
    font-size: 16px;
    line-height: 1.7;
  }

  .about-section li {
    font-size: 16px;
    padding-left: 30px;
    margin-bottom: 10px;
  }

  .navigation-links {
    flex-direction: row;
    gap: 20px;
  }

  .about-link {
    flex: 1;
    padding: 18px 25px;
    font-size: 18px;
    justify-content: center;
  }
}

/* 769px+ (Tablets) */
@media (min-width: 769px) {
  #about-content {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    height: calc(100vh - 70px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .about-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
  }

  .about-section h2 {
    font-size: 28px;
    margin-bottom: 18px;
  }

  .about-section p {
    font-size: 18px;
    line-height: 1.8;
  }

  .about-section li {
    font-size: 18px;
    padding-left: 35px;
    margin-bottom: 12px;
  }

  .about-link {
    padding: 20px 30px;
    font-size: 20px;
  }
}

/* 1024px+ (Desktop, large tablets) */
@media (min-width: 1024px) {
  #about-content {
    padding: 40px;
    max-width: 900px;
    height: calc(100vh - 80px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .about-section {
    margin-bottom: 40px;
    padding-bottom: 35px;
  }

  .about-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .about-section p {
    font-size: 20px;
    line-height: 1.9;
  }

  .about-section li {
    font-size: 20px;
    padding-left: 40px;
    margin-bottom: 14px;
  }

  .about-link {
    padding: 22px 35px;
    font-size: 22px;
  }

  .about-link:hover {
    cursor: pointer;
  }
}

/* ========================================
   Swipe Navigation Transitions (Issue #95)
   ======================================== */
.swipe-transition {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.swipe-transition.swipe-left {
  animation: swipeOutLeft 0.3s ease-out forwards;
}

.swipe-transition.swipe-right {
  animation: swipeOutRight 0.3s ease-out forwards;
}

@keyframes swipeOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-30px);
    opacity: 0.7;
  }
}

@keyframes swipeOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(30px);
    opacity: 0.7;
  }
}

/* ========================================
   Long-Press Pause Visual Feedback (Issue #96)
   ======================================== */
.long-press-visual {
  display: none;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--color-accent);
  background-color: transparent;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.1s ease-in;
}

.long-press-visual.active {
  display: block;
  opacity: 0.8;
  animation: longPressPulse 0.2s ease-out;
}

@keyframes longPressPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
}
