
/* ========== BEGIN COMMON.CSS ========== */

/* CSS Custom Properties - Design System Variables */
:root {
  /* Colors */
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --primary-light: #5dade2;
  --secondary-color: rgb(120, 200, 90);   /* lime green from Figma */
  --secondary-dark: rgb(100, 170, 75);    /* optional darker shade for hover */
  --accent-color: #e74c3c;
  --success-color: #28a745;
  --success-dark: #1e7e34;
  --warning-color: #ffc107;
  --warning-dark: #e0a800;
  --danger-color: #dc3545;
  --background-color: #ffffff;
  --surface-color: #f8f9fa;
  --bg-light: #f8f9fa;
  --bg-hover: #e9ecef;
  --text-color: #2c3e50;
  --text-dark: #333333;
  --text-light: #7f8c8d;
  --text-muted: #666666;
  --border-color: #dee2e6;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  
  /* Typography */
  --font-family-base: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-xxl: 32px;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-loose: 1.75;
  
  /* Layout */
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;
  --touch-target-min: 44px;
  --container-max-width: 1200px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 8px rgba(0,0,0,0.15);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s ease;
  
  /* Z-index scale */
  --z-dropdown: 1000;
  --z-modal: 1001;
  --z-tooltip: 1002;
  
  /* Topbar Variables */
  --topbar-bg: #F1EFFA;
  --topbar-shadow: none;
  --topbar-border-radius: 58px;
  --dropdown-bg: white;
  --dropdown-border: #BBB5D9;
  --dropdown-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  
  /* Responsive Topbar Sizes - Mobile First */
  --topbar-height-small: 36px; /* Compact topbar - 24px buttons + 12px padding */
  --topbar-height-mobile: 44px; /* Compact mobile - 28px buttons + 16px padding */
  --topbar-height-tablet: 52px; /* Compact tablet - 36px buttons + 16px padding */
  --topbar-height-desktop: 40px; /* Compact desktop - 32px buttons + 8px padding */

  --circle-btn-small: 24px; /* Compact - 16px icon + 8px padding */
  --circle-btn-mobile: 28px; /* Compact mobile - 20px icon + 8px padding */
  --circle-btn-tablet: 36px; /* Compact tablet - 24px icon + 12px padding */
  --circle-btn-desktop: 32px; /* Compact desktop - 32px icon fits snugly */
  
  --center-btn-small: 32px;
  --center-btn-mobile: 44px;
  --center-btn-tablet: 60px;
  --center-btn-desktop: 90px;
  
  --icon-small: 16px;
  --icon-mobile: 20px;
  --icon-tablet: 24px;
  --icon-desktop: 32px;
}

html {
  box-sizing: border-box;
  overflow-x: hidden;    /* added to prevent sideways scrolling */
}
*, *:before, *:after {
  box-sizing: inherit;
}


body {
  font-family: var(--font-family-base);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: var(--line-height-normal);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  touch-action: pan-y pinch-zoom;
  /* Removed conflicting flexbox properties that force centering */
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */

/* Universal touch target size enforcement */
button, 
input[type="button"], 
input[type="submit"],
input[type="reset"],
.btn,
.button,
.keyboard-key,
.segment-button,
.ladder-segment,
.letter-cell,
.clickable {
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  padding: var(--spacing-sm) var(--spacing-md);
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
.clickable:focus,
[tabindex]:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* Remove outline for mouse users, keep for keyboard users */
button:focus:not(:focus-visible),
.clickable:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure adequate color contrast */
.text-muted,
.text-secondary {
  color: var(--text-light);
}

/* Interactive element states */
button,
.btn,
.clickable {
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: var(--border-radius);
}

button:hover:not(:disabled),
.btn:hover:not(.disabled),
.clickable:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

button:active:not(:disabled),
.btn:active:not(.disabled),
.clickable:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

button:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Screen reader only content */
.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;
}

/* ========== STANDARDIZED BUTTON SYSTEM ========== */

/* Base button styles */
.btn-base,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: var(--line-height-tight);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  padding: var(--spacing-sm) var(--spacing-md);
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

/* Primary button */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active:not(:disabled) {
  background-color: var(--primary-dark);
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Secondary button */
.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #27ae60;
  border-color: #27ae60;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Outline button */
.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Success button */
.btn-success {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

/* Warning/accent button */
.btn-warning {
  background-color: #f39c12;
  border-color: #f39c12;
  color: white;
}

/* Danger button */
.btn-danger {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

/* Button sizes */
.btn-sm {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-sm);
  min-height: 36px;
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-lg);
  min-height: 52px;
}

/* Button groups */
.btn-group {
  display: inline-flex;
  gap: var(--spacing-xs);
}

.btn-group .btn-base:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.btn-group .btn-base:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Game-specific button overrides */
.game-btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.keyboard-key {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-weight: 600;
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
}

.keyboard-key:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: white;
}

.keyboard-key.used {
  background-color: #95a5a6;
  color: white;
  cursor: not-allowed;
}

.keyboard-key.correct {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.keyboard-key.incorrect {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

/* ========== LAYOUT UTILITIES ========== */

/* Container system */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

/* Flexbox utilities */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-grow-1 { flex-grow: 1; }

/* Grid utilities */
.d-grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* Spacing utilities */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-muted { color: var(--text-light); }
.font-bold { font-weight: 600; }
.font-normal { font-weight: 400; }
.text-sm { font-size: var(--font-size-sm); }
.text-lg { font-size: var(--font-size-lg); }

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

/* Position utilities */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }

/* Border utilities */
.border { border: 1px solid var(--border-color); }
.border-0 { border: 0; }
.rounded { border-radius: var(--border-radius); }
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-lg { border-radius: var(--border-radius-lg); }

/* Shadow utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Responsive utilities */
@media (max-width: 768px) {
  .d-md-none { display: none; }
  .d-md-block { display: block; }
  .flex-md-column { flex-direction: column; }
  .text-md-center { text-align: center; }
  .grid-cols-md-1 { grid-template-columns: 1fr; }
  .grid-cols-md-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .d-sm-none { display: none; }
  .d-sm-block { display: block; }
  .text-sm-center { text-align: center; }
  .grid-cols-sm-1 { grid-template-columns: 1fr; }
}

.flatpickr-day.played {
  background-color: #a2d5f2;
  border: 1px solid #007acc;
  color: white;
}
#calendar {
  max-width: 400px;
  margin: 2em auto;
  padding: 1em;
  display: block;
}

.logo {
  display: block;
  max-width: 300px;
  margin-bottom: 0px;
  width: 90%; /* Added from continue.css, seems like a reasonable default */
}

.box {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 400px;
}

@media (max-width: 600px) {
  .box {
    width: 80%;
    max-width: 320px;
  }
}

.start-btn {
  background-color: #3498db;
  color: white;
  font-size: 20px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.start-btn:hover {
  background-color: #2980b9;
}

input,
button {
  font-size: 18px;
  margin: 10px 0;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

.button-base {
  color: white;
  border: none;
  border-radius: 16px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  max-width: 90%;
  min-width: 120px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 24px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #27ae60;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

.beige-box {
  background-color: #fdf5e6 !important;
  border: 1px solid #e0d6c4;
}

.blue-box {
  background-color: #e8f4fd;
  border: 1px solid #cce0f5;
}

#top-scores {
  list-style: none;
  padding: 0;
}

#top-scores .entry {
  display: flex;
  justify-content: space-between;
  padding: 4px 10px;
  font-size: 16px;
}

/* Global Navigation Header Styles */
#global-nav {
  display: flex;
  justify-content: space-between; /* Changed back */
  align-items: center;
  padding: 0; /* Stays 0 for now */
  background-color: #f8f9fa; /* Lighter background */
  border-bottom: 1px solid #dee2e6; /* Lighter border */
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%; /* Ensure it spans full width */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

#global-nav-left {
  position: relative; /* For dropdown positioning context */
  display: flex;
  align-items: center; /* Align hamburger with right nav items */
}

#hamburger-btn {
  font-size: 18px; /* Same as right nav items */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0; /* Same as right nav items */
  color: #343a40; /* Same as right nav items */
  margin-left: 10px;
  line-height: 1; /* Ensure consistent line height */
  display: flex;
  align-items: center;
}

#nav-dropdown {
  display: none; /* Initially hidden, JS will toggle */
  position: absolute;
  top: 40px;  /* Position below the button */
  left: 0;
  background-color: white;
  border: 1px solid #ced4da;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  padding: 10px;
  z-index: 1001; /* Above global-nav */
  min-width: 150px; /* Minimum width for dropdown */
}

#nav-dropdown a {
  display: block;
  margin-bottom: 8px;
  padding: 5px;
  text-decoration: none;
  color: #007bff; /* Standard link blue */
}

#nav-dropdown a:hover {
  background-color: #e9ecef; /* Hover effect */
  border-radius: 4px;
}

#global-nav-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;  /* ADDED */
  overflow-x: auto;   /* ADDED */
  gap: 12px;          /* ADDED */
}

#global-nav-right a,
#global-nav-right button {
  text-decoration: none;
  color: #343a40; /* Darker color for icons */
  margin-left: 0; /* Ensures individual margin is off, gap handles spacing */
  font-size: 18px; /* Slightly larger icons */
  background: none; /* Ensure buttons are transparent */
  border: none;     /* Ensure buttons have no border */
  cursor: pointer;  /* Ensure buttons show pointer */
  padding: 0;       /* Reset padding for buttons */
}

#global-nav-right a:hover,
#global-nav-right button:hover {
  color: #0056b3; /* Link hover color */
}


/* Specific styling for text-based icons if needed, for now, font-size covers it */
.page-header-logo {
  max-width: 350px; /* Consistent with .logo-main on index.html */
  height: auto;     /* Maintain aspect ratio */
  display: block;   /* For centering with margin:auto and good practice */
  margin-left: auto;  /* Center the logo */
  margin-right: auto; /* Center the logo */
  margin-bottom: 10px; /* From original inline style, seems reasonable */
}



/* fluid, capped containers for all your start-pages */
#global-nav,
#game-container,
.center-container,
#rows-container,
.box,
.title-box {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 0 1rem;    /* optional gutter */
  margin: 0 auto;
}

/* ========== VIBRANT THEME OVERRIDES ========== */
.vibrant-theme .pair {
  background-color: #e3f2fd !important; /* Light blue instead of gray */
}

.vibrant-theme .word-box {
  background-color: #e3f2fd !important; /* Light blue instead of gray */
}

.vibrant-theme .selected {
  background-color: #ffd700 !important; /* More golden yellow */
  outline: 3px solid #ffb300 !important; /* Deeper gold outline */
}

.vibrant-theme .answer-box {
  background-color: #26d0ce !important; /* More vibrant teal */
}

.vibrant-theme .uncommon-word-box {
  background-color: #26d0ce !important; /* More vibrant teal */
}

/* Logo color filter for teal/amber theme */
.logo-main.teal-amber {
  filter: hue-rotate(150deg) saturate(1.2) brightness(0.9);
}

/* ========== END COMMON.CSS ========== */

/* ========== BEGIN GAMES.CSS ========== */
* {
  box-sizing: border-box;
}
/* Removed duplicate body declaration - all body styles consolidated at line 12 */
h1 {
  font-size: 36px;
  margin-bottom: 10px;
}
#status-bar {
  font-size: 20px;
  margin: 10px 0;
  color: #333;
}

#rows-container {
  max-width: 400px;
  margin: 0 auto;
}

#game-description {
  font-size: 18px;
  color: #444;
  margin-bottom: 20px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
#lives-container {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 24px;
}
#lives-display {
  white-space: nowrap;
  display: inline-block;
}
.row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}
.word-box {
  padding: 8px 12px;
  background-color: #f0f0f0;
  border-radius: 8px;
  font-size: 22px;
  width: 100px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.word-box.selected {
  outline: 3px solid #ffeaa7;
  outline-offset: -2px;
  background-color: inherit; /* keeps the original color */
}

.word-box.locked {
  cursor: default;
}
.word-box.strike {
  text-decoration: line-through;
  color: #e74c3c;
}
#bonus-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  max-width: 420px;
  margin: 20px auto;
}

.bonus-word-box {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 16px;
  margin: 4px 0;
  box-sizing: border-box;
  text-align: center;
}
.encouragement-flash {
  background-color: rgba(255, 255, 255, 0.9);
  color: #2ecc71;
  font-weight: bold;
  font-size: 20px;
  padding: 12px 20px;
  margin-top: 20px;
  border-radius: 12px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
@keyframes flash {
  0% { opacity: 1; }
  100% { opacity: 0.3; }
}
#game-container {
  position: relative;
  padding: 30px;
  margin: 30px auto;
  max-width: 600px;
  background-color: transparent;
  box-shadow: none;
  border-radius: 0;
}
#restart {
  margin-top: 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 18px;
  cursor: pointer;
  width: auto; /* Added */
}

/* ========== END GAMES.CSS ========== */

/* ========== BEGIN NEW_INDEX.CSS ========== */
html {
    width: 100%;
    height: 100%;
}

/* Body styles consolidated above - removed duplicate declaration */

/* Removed duplicate body declaration - all body styles consolidated at line 12 */

.homepage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px 20px 20px 20px; /* 0px top padding for tight spacing with topbar, 20px bottom */
}

.logo-main {
    max-width: 350px;
    height: auto;
}

.challenge-banner,
.why-banner {
    max-width: 375px;
    height: auto;
    margin-top: 10px; /* Add spacing above challenge banner */
    margin-bottom: 0px; /* No spacing below challenge banner */
}

.spacer-20 {
    height: 10px; /* Reduced spacing for tighter homepage layout */
}

/* New Button Layout Styles */
.new-button-layout {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the rows if their width is less than container (e.g. if parent wasn't also 350px) */
    width: 100%;
    max-width: 350px; /* To match .logo-main max-width */
    margin-top: 20px; /* Replaces margin from old .image-grid */
    margin-bottom: 20px; /* Replaces margin from old .image-grid */
    gap: 10px; /* Spacing between button rows */
}

.button-row {
    width: 100%; /* Each row takes full width of .new-button-layout (350px) */
}

.button-row a { /* Style for the anchor tags if needed, e.g., for display block */
    display: block;
}

.wide-button { /* Class for the images within the wide button links */
    width: 100%; /* Image takes full width of its 'a' tag parent */
    height: auto;
    display: block; /* Removes extra space below image if 'a' is inline */
}

.middle-buttons-container { /* Specific styling for the row containing 3 middle buttons */
    display: flex;
    justify-content: space-between; /* This will use available space. For fixed 5px gap, use gap property. */
    /* Using gap for precise 5px spacing: */
    gap: 5px;
    width: 100%; /* Full 350px width */
}

.middle-buttons-container a.middle-button-link {
    /* Each of the 3 links will take up 1/3 of space minus gaps */
    width: calc((100% - 10px) / 3); /* 10px for two 5px gaps */
    display: block;
}

.middle-button { /* Class for the images within the middle button links */
    width: 100%; /* Image takes full width of its 'a' tag parent */
    height: auto;
    display: block; /* Removes extra space below image */
}
/* ========== END NEW_INDEX.CSS ========== */

/* ========== FLOATING WORD BOX ========== */
.floating-word-box {
  position: absolute;
  background-color: white;
  border: 2px solid #888;
  border-radius: 12px;
  padding: 0.9em 1.2em; /* Symmetric padding, slightly more vertical space */
  min-height: 45px; /* Slightly taller to accommodate ESC text */
  display: flex;
  align-items: center; /* Center content vertically */
  justify-content: center;
  max-width: 80%;
  z-index: 6000;  /* Below topbar's 9001 */
  font-size: 1rem;
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.2);
  text-align: center;
  pointer-events: auto;
  user-select: none;
  cursor: move;
}

/* ========== MOBILE TOPBAR STYLES ========== */

/* Main topbar container */
#game-topbar {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  height: var(--topbar-height-small);
  padding: 8px;
}

/* Container for all topbar icons */
.topbar-icons-container {
  display: flex;
  justify-content: flex-start; /* Changed from space-evenly to support left alignment */
  align-items: center;
  gap: 8px; /* Add gap between elements */
  overflow: visible; /* Prevent dropdown clipping */
  width: 100%;
  height: 100%;
  background: var(--topbar-bg);
  box-shadow: var(--topbar-shadow);
  border-radius: var(--topbar-border-radius);
  padding: 4px 8px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden; /* Keep icons within container */
}

/* Brand text in topbar (PairaGrams) */
.topbar-brand-text {
  font-family: var(--font-family-base); /* Helvetica Neue */
  color: var(--primary-color); /* Blue (#3498db) */
  font-size: 16px;
  font-weight: 600;
  margin-right: auto; /* Push remaining icons to the right */
  margin-left: 4px; /* Small gap after hamburger */
  white-space: nowrap;
  user-select: none;
}

/* Brand logo in topbar (Pairagrams logo image) */
.topbar-brand-logo {
  height: 14px; /* Half size to fit properly */
  width: auto;
  margin: 0; /* Margins handled by wrapper link */
  object-fit: contain;
  user-select: none;
}

/* Larger logo variant for Findagrams, Pairdle, and Laddergrams */
.topbar-brand-logo-large {
  height: 28px; /* Double the default size */
}

/* Brand logo link wrapper - remove default link styling */
.topbar-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto; /* Push remaining icons to the right */
  margin-left: 4px; /* Small gap after hamburger */
  cursor: pointer;
}

.topbar-brand-link:hover {
  opacity: 0.8; /* Subtle hover effect */
}

/* Topbar buttons */
.topbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #4A4A4A;
  flex-shrink: 0;
  width: var(--circle-btn-small);
  height: var(--circle-btn-small);
}

.topbar-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.topbar-btn:active {
  transform: scale(0.98);
}

/* Topbar icons */
.topbar-icon {
  stroke: currentColor;
  fill: none;
  width: var(--icon-small);
  height: var(--icon-small);
}

/* Mobile dropdown menus */
.mobile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  background: var(--dropdown-bg);
  border-radius: 8px;
  box-shadow: var(--dropdown-shadow);
  min-width: 150px;
  z-index: 9002; /* Above topbar's 9001 */
  padding: 4px 0;
}

.mobile-dropdown.show {
  display: block;
}

.mobile-dropdown-right {
  right: 0;
  left: auto;
}

.mobile-dropdown a,
.mobile-dropdown button {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #4a5568;
  font-size: 12px;
  font-weight: bold;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-dropdown a:hover,
.mobile-dropdown button:hover {
  background: #f7fafc;
  text-decoration: none;
}

.mobile-dropdown-btn {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #4a5568;
  font-size: 12px;
  font-weight: bold;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-dropdown-btn:hover {
  background: #f7fafc;
}

/* Clerk user button container */
.mobile-clerk-container {
  padding: 4px 8px;
}

/* ========== TOPBAR RESPONSIVE BREAKPOINTS ========== */

/* Mobile (481px+) */
@media (min-width: 481px) {
  #game-topbar {
    height: var(--topbar-height-mobile);
    padding: 12px;
  }

  .topbar-btn {
    width: var(--circle-btn-mobile);
    height: var(--circle-btn-mobile);
  }

  .topbar-icon {
    width: var(--icon-mobile);
    height: var(--icon-mobile);
  }

  .topbar-brand-text {
    font-size: 17px; /* Slightly larger for mobile */
  }

  .topbar-brand-logo {
    height: 16px; /* Half size for mobile */
  }

  .topbar-brand-logo-large {
    height: 32px; /* Double size for mobile */
  }
}

/* Tablet (601px+) */
@media (min-width: 601px) {
  #game-topbar {
    height: var(--topbar-height-tablet);
    padding: 16px;
  }

  .topbar-btn {
    width: var(--circle-btn-tablet);
    height: var(--circle-btn-tablet);
  }

  .topbar-icon {
    width: var(--icon-tablet);
    height: var(--icon-tablet);
  }

  .topbar-brand-text {
    font-size: 18px; /* Medium size for tablet */
  }

  .topbar-brand-logo {
    height: 18px; /* Half size for tablet */
  }

  .topbar-brand-logo-large {
    height: 36px; /* Double size for tablet */
  }
}

/* Desktop (769px+) */
@media (min-width: 769px) {
  #game-topbar {
    height: var(--topbar-height-desktop);
    padding: 24px;
    max-width: 600px;
  }

  .topbar-btn {
    width: var(--circle-btn-desktop);
    height: var(--circle-btn-desktop);
  }

  .topbar-icon {
    width: var(--icon-desktop);
    height: var(--icon-desktop);
  }

  .topbar-brand-text {
    font-size: 20px; /* Larger for desktop */
  }

  .topbar-brand-logo {
    height: 16px; /* Half size for desktop */
  }

  .topbar-brand-logo-large {
    height: 32px; /* Double size for desktop */
  }
}

/* Override: Remove topbar padding for desktop to minimize whitespace */
@media (min-width: 769px) {
  #game-topbar {
    padding: 0px;  /* No padding needed - saves maximum vertical space */
  }
}

/* Override: Remove button margins from topbar buttons */
.topbar-btn {
  margin: 0 !important;  /* Override global button margin - saves 20px vertical space */
}

/* Large Desktop (1121px+) */
@media (min-width: 1121px) {
  #game-topbar {
    max-width: 800px;
  }
}

/* Topbar/gear must always be clickable above transient UI */
#game-topbar {
  position: relative;   /* ensure a stacking context */
  z-index: 9001;        /* higher than any gameplay overlays/toasts/popups */
  pointer-events: auto; /* explicitly allow interaction */
}

/* Feedback toast should never block the gear */
.pair-feedback-message {
  pointer-events: auto; /* Changed to allow close button interaction */
  z-index: 7000;        /* below topbar's 9001 */
}

/* Close button styling in game-specific CSS files */

/* Speed bonus display should never block interactions */
#speed-bonus-display {
  pointer-events: none;
  z-index: 6000;
}

/* ========== SHARED WORD LIST STYLES (Findagrams + Hangagrams) ========== */
#word-list,
#missed-words-list,
#missed-words {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;              /* 4 gaps × 3px = 12px total; used in calc below */
  align-items: flex-start;
}

.found-word,
.missed-word {
  flex: 0 0 calc((100% - 12px) / 5);  /* 5 columns */
  box-sizing: border-box;
  padding: 4px 6px;
  border-radius: 6px;
  text-align: center;
  background: rgb(235, 232, 245);     /* lavender-grey chip */
  color: rgb(100, 90, 230);           /* purple text */
  font-weight: 600;
  letter-spacing: 0.3px;
  user-select: none;
}

.found-word:hover,
.missed-word:hover {
  filter: brightness(0.97);
}

/* Container for Findagrams word display */
.findagrams-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* RARE word highlight — uses your design token */
.found-word.rare-chip,
.missed-word.rare-chip {
  border: 2px solid var(--warning-color); /* #ffc107 in your :root */
  box-sizing: border-box; /* guard against width shifts */
}

/* INCORRECT word highlight — red text for words that cost a life */
.found-word.incorrect-word {
  color: #e74c3c; /* Red text instead of purple */
}

/* CORRECT word highlight — green text for successfully found words */
.found-word.correct-word {
  color: rgb(108, 183, 86); /* Green text for correct/found words */
}

/* CSS hardening for hidden overlays to prevent pointer-event blocking */
.modal-overlay.hidden,
.modal-backdrop.hidden,
.overlay.hidden,
.backdrop.hidden,
.hidden-backdrop {
  pointer-events: none !important;
}

/* Also ensure closed state doesn't block clicks */
.modal-overlay.is-closed,
.modal-backdrop.is-closed,
.overlay.is-closed,
.backdrop.is-closed {
  pointer-events: none !important;
}

/* ========== SPEED LADDER SPECIFIC STYLES ========== */

/* Logo container with centered layout */
.speed-logo-container {
  text-align: center;
  margin-top: 4px;
  margin-bottom: 2px;
  width: 100%;
  display: block;
}

.speed-logo {
  margin-top: 10px;
}

/* Main game content wrapper with purple background */
.speed-game-content {
  background-color: rgb(220, 210, 240);
  padding: var(--speed-container-padding);
  margin: var(--speed-element-gap) auto;
  border-radius: 12px;
  max-width: var(--speed-ladder-container);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Speed info section with white background */
.speed-info-section {
  background-color: white;
  margin-bottom: var(--speed-element-gap);
}

.speed-info-section h2 {
  margin: 0;
  color: rgb(116, 109, 236);
}

/* Score display with clickable cursor */
.speed-score-display {
  cursor: pointer;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
}

.speed-score-label {
  color: rgb(116, 109, 236);
}

.speed-score-value {
  color: rgb(40, 50, 80);
}

/* Ladder board styling */
.speed-ladder-board {
  background-color: white;
  padding: var(--speed-container-padding);
  border-radius: var(--speed-border-radius);
  margin-bottom: var(--speed-element-gap);
}

/* Center alignment utility */
.speed-center {
  text-align: center;
}

/* Found words section */
.speed-found-words {
  background-color: white;
  border-radius: var(--speed-border-radius);
  margin-top: var(--speed-element-gap);
}

.speed-words-margin {
  margin: 20px 0;
}

/* Speed Ladder modal styles moved to /shared/styles/game_modals.css */
/* This consolidation reduces duplicate CSS and ensures consistency across all games */

/* ========== HANGAGRAMS SPECIFIC STYLES ========== */

/* Bonus words section */
.pairagrams-bonus-words {
  padding: 8px 0;
}

/* Hangagrams clue and puzzle-info modal styles moved to /shared/styles/game_modals.css */

/* Onboarding Modal */
.pairagrams-onboarding-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1004;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pairagrams-onboarding-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #e8e8e8;
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  z-index: 1005;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.pairagrams-onboarding-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 2px solid #666;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #666;
  transition: all 0.2s ease;
}

.pairagrams-onboarding-line {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin: 20px 0;
  opacity: 0;
  transform: translateY(10px);
  color: #000;
}

.pairagrams-onboarding-line-2 {
  text-align: center;
  font-size: 18px;
  margin: 20px 0;
  opacity: 0;
  transform: translateY(10px);
  color: #000;
}

.pairagrams-onboarding-line-3 {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin: 20px 0;
  opacity: 0;
  transform: translateY(10px);
  color: #28a745;
}

.pairagrams-onboarding-line-4 {
  margin: 20px 0;
  opacity: 0;
  transform: translateY(10px);
}

.pairagrams-onboarding-line-5 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  opacity: 0;
  transform: translateY(10px);
}

/* Onboarding letter pair - yellow */
.pairagrams-onboarding-pair-yellow {
  display: inline-flex;
  background: rgb(255, 205, 60);
  color: black;
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid #d4a000;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  margin: 0 3px;
  vertical-align: middle;
}

/* Onboarding plus symbol */
.pairagrams-onboarding-plus {
  margin: 0 8px;
  font-size: 20px;
  color: #000;
}

/* Onboarding letter wrapper */
.pairagrams-onboarding-letter-wrapper {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 5px;
}

/* Onboarding individual letters */
.pairagrams-onboarding-letter-green {
  display: inline-flex;
  background: #28a745;
  color: black;
  width: 30px;
  height: 36px;
  font-size: 16px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4a000;
  border-radius: 4px 0 0 4px;
}

.pairagrams-onboarding-letter-yellow {
  display: inline-flex;
  background: rgb(255, 205, 60);
  color: black;
  width: 30px;
  height: 36px;
  font-size: 16px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #d4a000;
  border-bottom: 1px solid #d4a000;
}

.pairagrams-onboarding-letter-yellow-end {
  display: inline-flex;
  background: rgb(255, 205, 60);
  color: black;
  width: 30px;
  height: 36px;
  font-size: 16px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4a000;
  border-radius: 0 4px 4px 0;
}

/* Onboarding monospace text */
.pairagrams-onboarding-monospace {
  font-family: monospace;
  font-size: clamp(14px, 4vw, 24px);
  letter-spacing: clamp(3px, 1.5vw, 8px);
  text-align: center;
  margin: 15px 0;
  color: #000;
  white-space: nowrap;
}

/* Onboarding checkbox */
.pairagrams-onboarding-checkbox {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.pairagrams-onboarding-label {
  cursor: pointer;
  font-size: 16px;
  color: #000;
}

/* Archive overlay - simple */
.pairagrams-archive-overlay {
  display: none;
}

/* Register to save modal - simple display none */
.pairagrams-register-modal {
  display: none;
}

/* Hangagrams modal styles moved to /shared/styles/game_modals.css */
/* This consolidation reduces duplicate CSS and ensures consistency across all games */

/* ========================================
   FINDAGRAMS GAME STYLES
   Lines 2081-2450
   Created: 2025-10-03 (Phase 2 CSS Cleanup)
   ======================================== */

/* --- Logo & Header --- */
.findagrams-logo-container {
  text-align: center;
  margin-top: 4px;
  margin-bottom: 2px;
  width: 100%;
  display: block;
}

.findagrams-logo {
  margin-top: 10px;
}

/* --- Hidden Elements --- */
.findagrams-hidden {
  display: none;
}

/* --- Score Display --- */
.findagrams-score-display {
  cursor: pointer;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
}

.findagrams-score-label {
  color: #4169E1;
}

.findagrams-score-value {
  color: #333;
}

/* --- Action Button Area --- */
.findagrams-action-area {
  margin: 1em auto;
}

/* --- Give Up Modal --- */
.findagrams-giveup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.findagrams-giveup-content {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  max-width: 90%;
  text-align: center;
}

/* --- Archive/Completion Modal --- */
.findagrams-archive-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 8500;
}

.findagrams-archive-content {
  background: #fdfdfd;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 90%;
  pointer-events: auto;
  position: relative;
  z-index: 8501;
}

.findagrams-archive-message {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* --- Secret Word Modal --- */
/* Findagrams modal styles moved to /shared/styles/game_modals.css */
/* This consolidation reduces duplicate CSS and ensures consistency across all games */

/* ========================================
   LADDERGRAMS GAME STYLES
   Lines 2503-3100
   Created: 2025-10-03 (Phase 2 CSS Cleanup)
   ======================================== */

/* --- Logo & Header --- */
.laddergrams-logo-container {
  margin-top: 10px;
  margin-bottom: 10px;
}

.laddergrams-logo-link {
  display: block;
}

.laddergrams-logo {
  width: 90%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* --- Game Content Container --- */
.laddergrams-game-content {
  background-color: rgb(220, 210, 240);
  padding: var(--spacing-lg);
  margin: var(--spacing-sm) auto;
  border-radius: 12px;
  max-width: var(--laddergrams-container);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- Score/Timer Display --- */
.laddergrams-score-timer {
  font-family: 'Orbitron', monospace;
  font-size: 1.3em;
  font-weight: 700;
  margin: 0 0 var(--spacing-sm);
}

.laddergrams-score-display {
  cursor: pointer;
}

/* --- Guest Reminder --- */
.laddergrams-guest-reminder {
  display: none;
}

/* --- Completion Message --- */
.laddergrams-completion-message {
  display: none;
}

/* --- Next Level / Show Missed Buttons --- */
.laddergrams-next-level {
  display: none;
}

.laddergrams-show-missed {
  display: none;
}

/* --- Collections Section --- */
.laddergrams-collections-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  max-width: var(--laddergrams-container);
  margin: var(--spacing-xl) auto;
}

.laddergrams-collections-title {
  color: white;
  text-align: center;
}

.laddergrams-collections-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 6px;
}

.laddergrams-no-collections {
  color: white;
  text-align: center;
  opacity: 0.8;
}

/* --- Score Modal --- */
/* Laddergrams score modal styles moved to /shared/styles/game_modals.css */

/* --- Collection Graphic Popup --- */
.laddergrams-collection-graphic-popup {
  display: none;
  position: fixed;
  pointer-events: none;
  z-index: 1002;
}

.laddergrams-collection-graphic-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* --- Onboarding Modal --- */
.laddergrams-onboarding-overlay {
  display: none;
}

/* Laddergrams collection and definition modal styles moved to /shared/styles/game_modals.css */

/* --- Quotables Detail Modal --- */
.laddergrams-quotables-detail-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1003;
  align-items: center;
  justify-content: center;
}

.laddergrams-quotables-detail-overlay.active {
  display: flex;
}

.laddergrams-quotables-detail-content {
  background: white !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  max-width: 450px !important;
  width: 90%;
  max-height: 90vh !important;
  overflow-y: auto !important;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.laddergrams-quotables-detail-header {
  margin-bottom: 1rem;
  text-align: center;
}

.laddergrams-quotables-detail-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 2px solid #666;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #666;
  transition: all 0.2s ease;
}

.laddergrams-quotables-detail-close:hover {
  background: #666;
  color: white;
}

.laddergrams-quotables-detail-title {
  margin: 0;
  font-size: 1.5em;
  color: #333;
}

.laddergrams-quotables-detail-progress {
  margin: 10px 0 0 0;
  font-size: 0.9em;
  color: #666;
}

.laddergrams-quotables-detail-body {
  margin-top: 1rem;
}

/* --- Quotables Container --- */
.laddergrams-quotables-container {
  display: none;
  margin-top: 20px;
  background: rgba(155, 89, 182, 0.05);
  padding: 15px;
  border-radius: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.laddergrams-quotables-header {
  text-align: center;
}

.laddergrams-quotables-title {
  margin: 0 0 10px 0;
  color: #333;
}

.laddergrams-quotables-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ========================================
   BUG REPORT MODAL STYLES
   ======================================== */

/* Bug Report Modal */
.bug-report-modal {
  max-width: 90%;
  width: 500px;
  background: rgb(241, 239, 249);
  border: 2px solid rgb(100, 90, 230);
  color: rgb(40, 50, 80);
  border-radius: 8px;
  padding: 20px;
}

.bug-report-title {
  margin: 0 0 12px 0;
  font-size: 20px;
  color: rgb(40, 50, 80);
  text-align: center;
}

.bug-report-instructions {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: rgb(40, 50, 80);
  text-align: center;
  line-height: 1.4;
}

.bug-report-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid rgb(145, 139, 170);
  border-radius: 6px;
  resize: vertical;
  min-height: 120px;
  background: white;
  color: rgb(40, 50, 80);
}

.bug-report-textarea:focus {
  outline: none;
  border-color: rgb(116, 109, 236);
  box-shadow: 0 0 0 2px rgba(116, 109, 236, 0.2);
}

.bug-report-actions {
  margin: 12px 0;
  text-align: center;
}

.bug-report-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.bug-report-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bug-report-btn:active:not(:disabled) {
  transform: translateY(0);
}

.bug-report-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bug-report-btn-secondary {
  background: rgb(145, 139, 170);
  color: white;
}

.bug-report-btn-secondary:hover:not(:disabled) {
  background: rgb(125, 119, 150);
}

.bug-report-btn-cancel {
  background: rgb(145, 139, 170);
  color: white;
}

.bug-report-btn-cancel:hover:not(:disabled) {
  background: rgb(125, 119, 150);
}

.bug-report-btn-submit {
  background: rgb(116, 109, 236);
  color: white;
}

.bug-report-btn-submit:hover:not(:disabled) {
  background: rgb(96, 89, 216);
}

.bug-report-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.bug-report-message {
  padding: 10px;
  margin: 12px 0;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

.bug-report-success {
  background: rgba(108, 183, 86, 0.15);
  border: 1px solid rgb(108, 183, 86);
  color: rgb(40, 50, 80);
}

.bug-report-error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgb(231, 76, 60);
  color: rgb(40, 50, 80);
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .bug-report-modal {
    width: 95%;
    padding: 16px;
  }

  .bug-report-title {
    font-size: 18px;
  }

  .bug-report-instructions {
    font-size: 13px;
  }

  .bug-report-textarea {
    font-size: 13px;
    min-height: 100px;
  }

  .bug-report-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .bug-report-buttons {
    flex-direction: column;
  }

  .bug-report-buttons .bug-report-btn {
    width: 100%;
  }
}
