/**
 * FreeFireSensitivity - Core Production Stylesheet
 * Clean, lightweight, professional mobile-first gaming utility theme
 */

:root {
  /* Brand Color Tokens - Vibrant Orange Gaming Accent */
  --primary: #f97316;          /* Fire Orange Accent */
  --primary-hover: #ff8533;
  --primary-active: #ea580c;
  --primary-light: rgba(249, 115, 22, 0.15); /* Orange Translucent Glow */
  --primary-border: rgba(249, 115, 22, 0.45);
  
  --secondary: #ff7700;        /* Pure Amber Accent */
  --secondary-hover: #ff8c1a;
  --secondary-light: rgba(255, 119, 0, 0.12);
  --secondary-border: rgba(255, 119, 0, 0.35);

  /* Premium Deep Black & Graphite Surface Tokens */
  --bg-primary: #0a0d14;       /* Premium Deep Black */
  --bg-secondary: #0f1420;     /* Dark Charcoal / Graphite */
  --bg-tertiary: #161c2b;      /* Dark Gunmetal */
  --bg-card: #121724;          /* Graphite Card Surface */
  --bg-card-hover: #182032;    /* Card Hover */

  /* Text Hierarchy Tokens */
  --text-main: #ffffff;        /* Pure White for Headings & Contrast */
  --text-muted: #94a3b8;       /* Light Grey for Body Text */
  --text-light: #64748b;       /* Muted Grey */

  /* Border & Outline Tokens */
  --border-color: #1e293b;     /* Subtle Dark Grey */
  --border-hover: rgba(249, 115, 22, 0.5); /* Orange Highlight */
  --border-focus: #f97316;

  /* Dark Surface Elements */
  --dark-surface: #0a0d14;
  --dark-surface-2: #121724;
  --dark-border: #1e293b;

  /* Button Tokens */
  --btn-bg: #f97316;
  --btn-text: #05070a;

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Smooth Gaming Glows & Layered Dark Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.85);
  --shadow-orange-glow: 0 0 18px rgba(249, 115, 22, 0.5);

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   1. Reset & Global Base (Optimized for Mobile Touch & Instant Response)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-primary);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  touch-action: manipulation;
  overflow-x: hidden;
  width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  color: var(--text-muted);
  overflow-x: hidden;
  width: 100%;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, a, input, select, textarea, label, .radio-pill, .btn {
  touch-action: manipulation;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visible Keyboard Focus Ring */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container-narrow {
  max-width: 840px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-primary {
  background-color: rgba(249, 115, 22, 0.16);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.45);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.25);
}

.badge-secondary {
  background-color: rgba(255, 119, 0, 0.15);
  color: #ff8533;
  border: 1px solid rgba(255, 119, 0, 0.35);
}

.badge-info {
  background-color: rgba(14, 165, 233, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* --------------------------------------------------------------------------
   2. Header & Compact Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background-color: rgba(10, 13, 20, 0.98);
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.brand-link img {
  height: 36px;
  width: auto;
  max-width: 210px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.35));
  transition: filter 0.25s ease, transform 0.2s ease;
}

.brand-link:hover img {
  filter: drop-shadow(0 0 16px rgba(249, 115, 22, 0.65));
  transform: translateY(-1px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #f97316;
  background-color: rgba(249, 115, 22, 0.12);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.25);
  text-decoration: none;
}

.nav-link.active {
  color: #f97316;
  background-color: rgba(249, 115, 22, 0.18);
  border: 1px solid #f97316;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.4);
  text-decoration: none;
  font-weight: 700;
}

.nav-cta {
  background-color: var(--primary);
  color: #05070a !important;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid #ff8533;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
  margin-left: 0.35rem;
  white-space: nowrap;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.6);
  color: #05070a !important;
  text-decoration: none;
}


.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-main);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mobile-menu-btn:hover, .mobile-menu-btn.active {
  background-color: var(--bg-secondary);
  border-color: var(--border-hover);
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--primary-light);
  color: #ff8533;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px solid var(--primary-border);
}

/* --------------------------------------------------------------------------
   3. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 2.75rem 0 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.95) 0%, rgba(10, 13, 20, 0.98) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--primary);
  color: #05070a !important;
  font-weight: 800;
  border: 1px solid #ff8533;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #05070a !important;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.65);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-secondary {
  background-color: #ff7700;
  color: #05070a !important;
  font-weight: 800;
  border: 1px solid #ff9933;
  box-shadow: 0 2px 8px rgba(255, 119, 0, 0.35);
}

.btn-secondary:hover {
  background-color: #ff8c1a;
  color: #05070a !important;
  box-shadow: 0 0 20px rgba(255, 119, 0, 0.65);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-outline {
  background-color: rgba(18, 23, 36, 0.85);
  border-color: #2d3748;
  color: #f8fafc !important;
}

.btn-outline:hover {
  background-color: rgba(249, 115, 22, 0.15);
  border-color: #f97316;
  color: #f97316 !important;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.4);
  text-decoration: none;
}

.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: #94a3b8 !important;
}

.btn-ghost:hover {
  background-color: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.3);
  color: #f97316 !important;
  text-decoration: none;
}

.btn-sm {
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* Cards & Generic Panels */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7), 0 0 12px rgba(249, 115, 22, 0.15);
}

.card-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   5. Sensitivity Generator Form
   -------------------------------------------------------------------------- */
.generator-wrapper {
  margin: 1.5rem 0 2.5rem;
}

.generator-card,
body.has-ff-wallpaper .generator-card {
  position: relative;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(249, 115, 22, 0.4), 0 0 20px rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.55);
  background-color: rgba(11, 15, 25, 0.90);
  padding: 2.25rem 2rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .generator-card:hover,
  body.has-ff-wallpaper .generator-card:hover {
    border-color: rgba(249, 115, 22, 0.85);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 28px rgba(249, 115, 22, 0.3);
  }
}

.generator-header {
  position: relative;
  text-align: center;
  margin-bottom: 1.75rem;
  padding: 1.35rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(249, 115, 22, 0.40);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 15px rgba(249, 115, 22, 0.15);
  background-color: #0b0f19;
  background-image:
    linear-gradient(180deg, rgba(9, 12, 20, 0.48) 0%, rgba(12, 16, 26, 0.56) 50%, rgba(8, 10, 16, 0.66) 100%),
    url('../images/wallpaper/freefire-wallpaper.webp'),
    url('../images/wallpaper/freefire-wallpaper.jpg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.generator-header h1,
.generator-header h2 {
  font-size: 1.65rem;
  margin: 0.5rem 0 0.35rem;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 16px rgba(0, 0, 0, 0.85);
}

.generator-header p {
  color: #f1f5f9;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}

.form-section {
  border-bottom: 1px solid rgba(249, 115, 22, 0.25);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: rgba(12, 16, 26, 0.88);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.step-num {
  width: 24px;
  height: 24px;
  background: rgba(249, 115, 22, 0.16);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.25);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.form-label .required {
  color: #ef4444;
}

.form-label .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem; /* 16px prevents iOS Safari auto-zoom */
  color: #f8fafc;
  background-color: #0b0e14;
  border: 1px solid #242c3d;
  border-radius: var(--radius-md);
  outline: none;
  min-height: 44px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  font-family: inherit;
}

.form-control:focus {
  border-color: #f97316;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.35);
  background-color: #0e121a;
}

.form-control:disabled {
  background-color: #07090e;
  cursor: not-allowed;
  color: #64748b;
  border-color: #1a202c;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* Radio Pill Segmented Controls */
.radio-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio-pill {
  flex: 1;
  min-width: 90px;
}

.radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  background-color: #0f1420;
  border: 1px solid #242c3d;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: #cbd5e1;
  text-align: center;
  cursor: pointer;
  min-height: 54px;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.radio-pill label:hover {
  background-color: #151c2a;
  border-color: rgba(249, 115, 22, 0.5);
  color: #ffffff;
}

.radio-pill input[type="radio"]:checked + label {
  border: 2px solid var(--primary);
  background-color: rgba(249, 115, 22, 0.18);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.4);
}

.radio-pill input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

.playstyle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.pill-icon {
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
}

.pill-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.pill-subtitle {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 400;
  margin-top: 0.1rem;
}

.btn-generate {
  width: 100%;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  min-height: 50px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #05070a !important;
  border: 1px solid #ff8533;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-generate:hover {
  background: linear-gradient(135deg, #ff8533 0%, #f97316 100%);
  color: #05070a !important;
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.7);
  transform: translateY(-1px);
}

.btn-generate:active {
  transform: scale(0.99);
}

/* Device Instant Search Results Dropdown */
.device-search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0f1420;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(249, 115, 22, 0.2);
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
}

.device-search-item {
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  color: #cbd5e1;
  border-bottom: 1px solid #161c2b;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-size: 0.88rem;
}

.device-search-item:hover {
  background-color: rgba(249, 115, 22, 0.15);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   6. Sensitivity Results Panel
   -------------------------------------------------------------------------- */
.results-container {
  margin-top: 2rem;
}

.result-box {
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  background: #0f1420;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  padding: 1.75rem;
}

.result-box-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.15rem;
  margin-bottom: 1.35rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.result-card {
  background: #0a0d14;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.25);
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.result-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.result-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.result-number {
  font-size: 2.1rem;
  font-weight: 900;
  color: #f97316;
  text-shadow: 0 0 14px rgba(249, 115, 22, 0.45);
  line-height: 1;
  font-family: var(--font-mono);
}

.result-bar-bg {
  width: 100%;
  height: 6px;
  background-color: #1e293b;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.result-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ea580c, #f97316);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.55);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.result-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 0;
}

/* Tool Action Bar */
.tool-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-color);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--dark-surface);
  color: #ffffff;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   7. Cookie Consent Preferences Card (High-Contrast & Compliant)
   -------------------------------------------------------------------------- */
.cookie-consent-card {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 440px;
  background: #121724;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 16px rgba(249, 115, 22, 0.2);
  z-index: 9999;
  padding: 1.25rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-consent-card.hide {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.cookie-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.cookie-card-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.cookie-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.cookie-close-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-secondary);
}

.cookie-card-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.cookie-policy-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-settings-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
}

.cookie-option {
  margin-bottom: 0.5rem;
}

.cookie-option:last-child {
  margin-bottom: 0;
}

.cookie-option-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.cookie-option-desc {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-left: 1.4rem;
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   8. FAQs & Accordions
   -------------------------------------------------------------------------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(249, 115, 22, 0.4);
}

.faq-question {
  width: 100%;
  padding: 1rem 1.15rem;
  text-align: left;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  min-height: 48px;
  font-family: inherit;
}

.faq-question:hover {
  background-color: var(--bg-card-hover);
  color: var(--primary);
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.15rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* --------------------------------------------------------------------------
   9. Tables & Responsive Layouts
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.data-table, .table-admin {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.data-table th, .table-admin th {
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  font-weight: 700;
  color: #ffffff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-table td, .table-admin td {
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--border-color);
  color: #cbd5e1;
}

.data-table tr:last-child td, .table-admin tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover, .table-admin tr:hover {
  background-color: rgba(249, 115, 22, 0.08);
}



/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background-color: var(--dark-surface);
  color: #94a3b8;
  padding: 2.75rem 0 1.5rem;
  border-top: 1px solid var(--dark-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.footer-title {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   11. Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet & Smaller Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: rgba(10, 13, 20, 0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 2px solid #f97316;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
    gap: 0.35rem;
  }

  .main-nav.show {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 0.35rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .playstyle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.35rem; }
  
  .generator-card {
    padding: 1.25rem 1rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .playstyle-grid {
    grid-template-columns: 1fr 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .cookie-consent-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 1rem;
  }
}

/* Small Mobile (<= 480px / 320px) */
@media (max-width: 480px) {
  .playstyle-grid {
    grid-template-columns: 1fr;
  }

  .radio-pill {
    min-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tool-action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-action-bar .btn {
    width: 100%;
  }

  .brand-link img {
    height: 32px;
    max-width: 175px;
  }
}

/* ==========================================================================
   13. Free Fire Themed Wallpaper Background & Readability System
   ========================================================================== */
.site-bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: -1;
  pointer-events: none;
  background-color: #07090e;
  background-image: 
    linear-gradient(180deg, rgba(7, 9, 14, 0.35) 0%, rgba(10, 13, 20, 0.48) 100%),
    url('../images/wallpaper/freefire-wallpaper.webp'),
    url('../images/wallpaper/freefire-wallpaper.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  contain: strict;
}

body.has-ff-wallpaper {
  background-color: transparent !important;
  color: var(--text-muted);
  min-height: 100vh;
}

/* Fallback for when site-bg-layer is not injected */
body.has-ff-wallpaper:not(:has(.site-bg-layer)) {
  background-color: #07090e;
  background-image: 
    linear-gradient(180deg, rgba(7, 9, 14, 0.35) 0%, rgba(10, 13, 20, 0.48) 100%),
    url('../images/wallpaper/freefire-wallpaper.webp'),
    url('../images/wallpaper/freefire-wallpaper.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body.wallpaper-subtle-grid .site-bg-layer {
  background-color: #0a0d14;
  background-image: radial-gradient(rgba(249, 115, 22, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

body.wallpaper-gaming-dots .site-bg-layer {
  background-color: #0a0d14;
  background-image: radial-gradient(rgba(255, 119, 0, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Mobile & Tablet Responsive Wallpaper Handling (Crisp, High Quality, No Stutter) */
@media (max-width: 1024px) {
  .site-bg-layer {
    background-position: center 10%;
  }
}

@media (max-width: 768px) {
  /* High-Performance Mobile WebP Wallpaper (34.7 KB) - Clearly Visible */
  .site-bg-layer {
    background-position: center 12%;
    background-image: 
      linear-gradient(180deg, rgba(7, 9, 14, 0.38) 0%, rgba(10, 13, 20, 0.52) 100%),
      url('../images/wallpaper/freefire-wallpaper-mobile.webp'),
      url('../images/wallpaper/freefire-wallpaper.webp'),
      url('../images/wallpaper/freefire-wallpaper.jpg');
  }

  /* Generator Card & Header Mobile Background (Mobile WebP) */
  .generator-card {
    padding: 1.25rem 1rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7) !important;
  }

  .generator-header {
    background-image:
      linear-gradient(180deg, rgba(9, 12, 20, 0.52) 0%, rgba(12, 16, 26, 0.60) 50%, rgba(8, 10, 16, 0.70) 100%),
      url('../images/wallpaper/freefire-wallpaper-mobile.webp'),
      url('../images/wallpaper/freefire-wallpaper.webp');
    background-position: center 20%;
    padding: 1.15rem 0.85rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important;
  }

  /* Simplify box-shadows on mobile for optimal GPU rendering */
  .card, .tool-card, .generator-card, .form-section, .faq-item, .site-header {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important;
  }
}

/* Deferred Content Rendering for Below-the-fold Sections (60% Faster Initial Paint) */
.content-deferred {
  content-visibility: auto;
  contain-intrinsic-size: 0 450px;
}

/* Semi-translucent High-Contrast Surface for Cards & Forms over Wallpaper */
body.has-ff-wallpaper .card,
body.has-ff-wallpaper .tool-card {
  background: rgba(18, 23, 36, 0.92);
  border: 1px solid rgba(30, 41, 59, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

@media (hover: hover) and (pointer: fine) {
  body.has-ff-wallpaper .card:hover,
  body.has-ff-wallpaper .tool-card:hover {
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 14px rgba(249, 115, 22, 0.2);
  }
}

body.has-ff-wallpaper .site-header {
  background: rgba(10, 13, 20, 0.98);
  border-bottom: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
}

body.has-ff-wallpaper .site-subbar {
  background: rgba(7, 9, 14, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

body.has-ff-wallpaper .site-footer {
  background: rgba(7, 9, 14, 0.98);
}

body.has-ff-wallpaper .site-subbar span {
  color: #94a3b8;
}

body.has-ff-wallpaper nav[aria-label="Breadcrumb"] {
  background: rgba(10, 13, 20, 0.95);
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid #1e293b;
  margin-bottom: 1.25rem;
  color: #94a3b8;
}

body.has-ff-wallpaper nav[aria-label="Breadcrumb"] a {
  color: #f97316;
  text-decoration: none;
}

body.has-ff-wallpaper nav[aria-label="Breadcrumb"] a:hover {
  color: #ff8533;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(249, 115, 22, 0.5);
}

body.has-ff-wallpaper nav[aria-label="Breadcrumb"] span {
  color: #ffffff;
}

body.has-ff-wallpaper .page-hero-title,
body.has-ff-wallpaper article > header > h1,
body.has-ff-wallpaper main > header > h1 {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

body.has-ff-wallpaper article > header > p,
body.has-ff-wallpaper main > header > p {
  color: #cbd5e1 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

body.has-ff-wallpaper .faq-item {
  background: rgba(18, 23, 36, 0.95);
  border: 1px solid #1e293b;
}

body.has-ff-wallpaper .faq-question {
  color: #ffffff;
}

body.has-ff-wallpaper .faq-answer {
  color: #94a3b8;
}

/* ==========================================================================
   14. Advanced Searchable Dropdowns (Combobox Component) & Form Grid
   ========================================================================== */
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}

@media (max-width: 820px) {
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.searchable-select-wrap {
  position: relative;
  width: 100%;
}

.searchable-select-wrap.is-open {
  z-index: 1001;
}

.searchable-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background-color: #0b0e14;
  border: 1px solid #242c3d;
  border-radius: var(--radius-md);
  color: #f8fafc;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  min-height: 44px;
}

.searchable-select-trigger:focus,
.searchable-select-wrap.is-open .searchable-select-trigger {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.35);
  background-color: #0e121a;
}

.searchable-select-trigger.disabled {
  background-color: #07090e;
  border-color: #1a202c;
  color: #64748b;
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
}

.searchable-select-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 0.5rem;
  flex: 1;
  text-align: left;
}

.searchable-select-arrow {
  color: #f97316;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

.searchable-select-wrap.is-open .searchable-select-arrow {
  transform: rotate(180deg);
  color: #ff8c38;
}

.searchable-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #0f1420;
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(249, 115, 22, 0.25);
  z-index: 1000;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.searchable-select-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.searchable-select-search-box svg {
  position: absolute;
  left: 0.65rem;
  stroke: #94a3b8;
  pointer-events: none;
}

.searchable-select-input {
  width: 100%;
  padding: 0.5rem 1.8rem 0.5rem 2rem;
  background: #0a0d14;
  border: 1px solid #242c3d;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.searchable-select-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.3);
}

.searchable-select-clear {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}

.searchable-select-clear:hover {
  color: #f97316;
}

.searchable-select-options {
  max-height: 230px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.searchable-select-option {
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.searchable-select-option:hover,
.searchable-select-option.is-highlighted {
  background: rgba(249, 115, 22, 0.18);
  color: #ffffff;
}

.searchable-select-option.is-selected {
  background: rgba(249, 115, 22, 0.28);
  color: #f97316;
  font-weight: 700;
}

.searchable-select-option mark {
  background: rgba(249, 115, 22, 0.38);
  color: #ffedd5;
  font-weight: 700;
  border-radius: 2px;
  padding: 0 2px;
}

.searchable-select-empty {
  padding: 0.75rem;
  text-align: center;
  font-size: 0.84rem;
  color: #94a3b8;
}

/* Category Quick Filter */
.category-search-box {
  margin-bottom: 0.85rem;
  position: relative;
}

/* ==========================================================================
   15. Complete In-Game Setup Results Section Styles
   ========================================================================== */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.control-item {
  background: #0a0d14;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease;
}

.control-item:hover {
  border-color: rgba(249, 115, 22, 0.4);
}

.control-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.control-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
}

.control-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f97316;
  background: rgba(249, 115, 22, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.control-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

.setup-instruction-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.setup-step-card {
  background: #0a0d14;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.setup-step-num {
  background: var(--primary);
  color: #000;
  font-weight: 800;
  font-size: 0.82rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.setup-step-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Playstyle preset cards inside results */
.playstyle-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.playstyle-profile-card {
  background: #0a0d14;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.playstyle-profile-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.playstyle-profile-stats {
  font-size: 0.82rem;
  color: #f97316;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.playstyle-profile-focus {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* Print and PDF Generation Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .site-header, .site-footer, .site-bg-layer, .tool-action-bar, .form-section, #sensitivityForm, .quick-preset-btn, #savedProfilesDrawer, #exportCardModal {
    display: none !important;
  }
  .results-container, .result-box {
    display: block !important;
    border: 1px solid #000 !important;
    background: #ffffff !important;
    color: #000 !important;
    box-shadow: none !important;
    padding: 1rem !important;
  }
  .result-card, .control-item, .setup-step-card, .playstyle-profile-card {
    border: 1px solid #ccc !important;
    background: #f9fafb !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .result-title, .result-number, .control-label, .control-val {
    color: #000000 !important;
  }
}
