/* CSS for Tarkov Weapon Sound Trainer */

:root {
  color-scheme: dark;
  --glass-bg: rgba(17, 25, 40, 0.45);
  --glass-border: rgba(255, 255, 255, 0.25);
  --accent: #f8e686;
  --accent-soft: rgba(248, 230, 134, 0.35);
  --text-main: #f1f5ff;
  --text-muted: rgba(226, 232, 240, 0.78);
  --danger: #ff6b81;
  --success: #6be0a9;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Accessibility: 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-width: 0;
}

/* Accessibility: Skip links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Prevent text selection on buttons for better mobile UX */
button,
.glass-button,
.choice-button {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html,
body {
  height: 100%;
  margin: 0;
  color: var(--text-main);
  background: #05070d;
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

.bg-image {
  position: fixed;
  inset: 0;
  background: 
    url('../images/background.png') center center / cover no-repeat,
    linear-gradient(135deg, #1a0f0e 0%, #2d1a18 50%, #1a0f0e 100%);
  opacity: 0.5;
  filter: saturate(1.05) contrast(1.08);
  z-index: -2;
}

/* Gallery page - ensure background is visible at 50% opacity */
body:has(.gallery-container) .bg-image {
  opacity: 0.5;
}

body:has(.gallery-container) .bg-overlay {
  opacity: 0.6;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(139, 69, 19, 0.20), transparent 46%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.40) 0%, rgba(6, 10, 18, 0.60) 100%);
  backdrop-filter: blur(4px);
  z-index: -1;
}

.shell {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.5vw, 1.5rem);
  background: transparent;
  border-radius: 28px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid rgba(248, 230, 134, 0.18);
  box-shadow: 0 35px 70px rgba(2, 6, 14, 0.5);
  backdrop-filter: blur(26px);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.25rem, 4vw, 3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
}

.game-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem;
  margin: 0;
  background: transparent;
  border-radius: 20px;
  border: 2px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  position: relative;
  isolation: isolate;
}

/* Seed Control for Competitive Play */
.seed-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  background: rgba(248, 230, 134, 0.08);
  border: 1px solid rgba(248, 230, 134, 0.2);
  backdrop-filter: blur(10px);
}

.seed-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.seed-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.seed-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(248, 230, 134, 0.15);
}

.seed-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

.seed-button {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.seed-button:hover {
  background: rgba(248, 230, 134, 0.15);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.seed-button:active {
  transform: translateY(0);
}

/* Seed section at bottom (for competitive play) */
.seed-section {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.seed-details {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 0.5rem;
  backdrop-filter: blur(10px);
}

.seed-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.seed-summary::-webkit-details-marker {
  display: none;
}

.seed-summary::before {
  content: '▶';
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.7rem;
}

.seed-details[open] .seed-summary::before {
  transform: rotate(90deg);
}

.seed-summary:hover {
  color: var(--accent);
}

.seed-details[open] .seed-control {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 46px rgba(7, 12, 22, 0.38);
  backdrop-filter: blur(20px);
  position: relative;
  isolation: isolate;
  z-index: 1;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.audio-player-section {
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 46px rgba(7, 12, 22, 0.38);
  backdrop-filter: blur(20px);
  text-align: center;
  position: relative;
  isolation: isolate;
  z-index: 1;
}

.audio-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.game-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.game-controls .glass-button {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.audio-info {
  margin-top: 0.5rem;
}

.audio-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.audio-effects-container {
  font-size: 0.85rem;
}

.audio-effects-toggle {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  gap: 0.5rem;
}

.audio-effects-toggle input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.audio-effects-toggle:hover {
  color: var(--text-main);
}

.audio-effects-options {
  padding-left: 1.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.audio-effect-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.audio-effect-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.audio-effect-radios {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.audio-effect-radio {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  gap: 0.375rem;
}

.audio-effect-radio input[type="radio"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.audio-effect-radio:hover {
  color: var(--text-main);
}

.audio-effect-checkbox {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  gap: 0.5rem;
}

.audio-effect-checkbox input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.audio-effect-checkbox:hover {
  color: var(--text-main);
}

.choices-section {
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 46px rgba(7, 12, 22, 0.38);
  backdrop-filter: blur(20px);
  position: relative;
  isolation: isolate;
  z-index: 1;
}

.choices-section h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.choices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  position: relative;
  isolation: isolate;
}

.choice-button {
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #000000;
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
  backdrop-filter: blur(16px);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 140px;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  z-index: 1;
}

.choice-button__image {
  width: 92%;
  height: 92%;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  object-position: center;
  position: absolute;
  top: 4%;
  left: 4%;
  z-index: 1;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  
  /* Fade edges to black for seamless blending with card background */
  mask-image: radial-gradient(ellipse 90% 85% at center, black 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at center, black 50%, transparent 100%);
}

.choice-button__text {
  display: block;
  position: relative;
  z-index: 2;
  padding: 0.4rem 0.6rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
  backdrop-filter: blur(4px);
  width: 100%;
}

.choice-button--no-image {
  padding: 0.75rem 1rem;
  justify-content: center;
}

.choice-button--no-image .choice-button__text {
  font-size: 0.9rem;
  background: transparent;
  padding: 0;
}

.choice-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(to bottom, rgba(248, 230, 134, 0.12), #000000);
  border-color: rgba(248, 230, 134, 0.42);
  box-shadow: 0 4px 12px rgba(248, 230, 134, 0.15);
}

/* Only show focus outline for keyboard navigation, not mouse clicks */
.choice-button:focus {
  outline: none; /* Remove default outline */
}

.choice-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  transform: translateY(-2px);
  background: linear-gradient(to bottom, rgba(248, 230, 134, 0.12), #000000);
  border-color: rgba(248, 230, 134, 0.42);
  box-shadow: 0 4px 12px rgba(248, 230, 134, 0.15);
}

.choice-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.choice-button.correct {
  background: rgba(107, 224, 169, 0.25);
  border-color: var(--success);
  color: var(--success);
}

.choice-button.incorrect {
  background: rgba(255, 107, 129, 0.25);
  border-color: var(--danger);
  color: var(--danger);
}

.result-message {
  padding: 1rem;
  border-radius: 20px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.result-message.correct {
  background: transparent;
  border: none;
  color: var(--success);
}

.result-message.incorrect {
  background: transparent;
  border: none;
  color: var(--danger);
}

/* Background panel states for results */
.game-section.result-correct {
  background: rgba(107, 224, 169, 0.2);
  border: 2px solid rgba(107, 224, 169, 0.5);
}

.game-section.result-incorrect {
  background: rgba(255, 107, 129, 0.2);
  border: 2px solid rgba(255, 107, 129, 0.5);
}

.controls-section {
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 46px rgba(7, 12, 22, 0.38);
  backdrop-filter: blur(20px);
}

.control-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.glass-button {
  position: relative;
  padding: 0.6rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
  backdrop-filter: blur(16px);
  cursor: pointer;
  font-family: inherit;
}

.glass-button--large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.glass-button::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.03));
  opacity: 0.35;
  pointer-events: none;
}

.glass-button:hover:not(:disabled),
.glass-button:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(248, 230, 134, 0.18);
  border-color: rgba(248, 230, 134, 0.42);
  outline: none;
}

.glass-button:focus-visible:not(:disabled) {
  box-shadow: 0 0 0 3px rgba(248, 230, 134, 0.25);
}

.glass-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.glass-button--secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.button-icon {
  margin-right: 0.5rem;
  font-size: 1.1em;
}

.footer {
  margin-top: 1.25rem;
  padding: 0.75rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-text a {
  color: var(--accent);
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-text a:hover {
  color: var(--accent-soft);
  text-decoration: underline;
}

/* Mobile optimizations */
@media (max-width: 780px) {
  body {
    padding: 0.5rem;
  }

  .shell {
    padding: 0.75rem;
    gap: 0.75rem;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin: 0;
  }

  .game-section {
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .seed-control {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    gap: 0.375rem;
  }

  .seed-label {
    font-size: 0.75rem;
  }

  .seed-input {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .seed-button {
    min-width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .game-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.625rem;
    gap: 0.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .stat-value {
    font-size: 1.35rem;
  }

  .audio-player-section {
    padding: 0.75rem;
  }

  .audio-controls {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .game-controls {
    width: 100%;
    gap: 0.5rem;
  }

  .game-controls .glass-button {
    flex: 1;
    min-width: 0;
    min-height: 44px;
  }

  .audio-info {
    margin-top: 0.25rem;
  }

  .glass-button--large {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    width: 100%;
    min-height: 44px;
  }

  .choices-section {
    padding: 0.75rem;
  }

  .choices-section h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .choices-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .choice-button {
    min-height: 100px;
    font-size: 0.7rem;
  }

  .choice-button__image {
    transform: scale(0.85);
    transform-origin: center;
  }

  .choice-button__text {
    padding: 0.35rem 0.45rem;
    font-size: 0.65rem;
  }

  .result-message {
    padding: 0.5rem;
    font-size: 1rem;
    min-height: 40px;
  }

  .controls-section {
    padding: 0.75rem;
  }

  .control-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .glass-button {
    min-height: 44px;
    padding: 0.625rem 0.875rem;
    font-size: 0.8rem;
    width: 100%;
  }

  .footer {
    margin-top: 0.75rem;
    padding: 0.5rem;
  }

  .footer-text {
    font-size: 0.7rem;
  }

  .footer .glass-button {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  body {
    padding: 0.375rem;
  }

  .shell {
    padding: 0.625rem;
    gap: 0.625rem;
    border-radius: 16px;
  }

  .hero h1 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .game-section {
    gap: 0.625rem;
    padding: 0.625rem;
  }

  .game-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.5rem;
    gap: 0.375rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .audio-player-section {
    padding: 0.625rem;
  }

  .audio-controls {
    margin-bottom: 0.375rem;
  }

  .game-controls {
    width: 100%;
    gap: 0.375rem;
  }

  .game-controls .glass-button {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    font-size: 0.7rem;
  }

  .choices-section {
    padding: 0.625rem;
  }

  .choices-section h2 {
    font-size: 1rem;
    margin-bottom: 0.375rem;
  }

  .choices-grid {
    gap: 0.375rem;
  }

  .choice-button {
    min-height: 90px;
  }

  .choice-button__image {
    transform: scale(0.8);
  }

  .choice-button__text {
    padding: 0.3rem 0.4rem;
    font-size: 0.6rem;
  }

  .result-message {
    padding: 0.4rem;
    font-size: 0.95rem;
    min-height: 35px;
  }

  .controls-section {
    padding: 0.625rem;
  }

  .glass-button {
    padding: 0.55rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .choice-button:hover:not(:disabled) {
    transform: none; /* Disable hover effects on touch devices */
  }

  .glass-button:hover:not(:disabled) {
    transform: none;
  }

  .choice-button:active:not(:disabled) {
    transform: scale(0.98);
    background: linear-gradient(to bottom, rgba(248, 230, 134, 0.15), #000000);
    box-shadow: 0 2px 8px rgba(248, 230, 134, 0.2);
  }

  .glass-button:active:not(:disabled) {
    transform: scale(0.98);
  }
}

/* Landscape mobile optimization */
@media (max-width: 780px) and (orientation: landscape) {
  body {
    padding: 0.375rem;
  }

  .shell {
    padding: 0.625rem;
    gap: 0.625rem;
  }

  .hero h1 {
    font-size: 1.35rem;
    margin-bottom: 0.15rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
  }

  .game-section {
    gap: 0.625rem;
    padding: 0.625rem;
  }

  .game-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.5rem;
    gap: 0.375rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .stat-value {
    font-size: 1.15rem;
  }

  .audio-player-section {
    padding: 0.625rem;
  }

  .audio-controls {
    margin-bottom: 0.375rem;
  }

  .choices-section {
    padding: 0.625rem;
  }

  .choices-section h2 {
    font-size: 0.95rem;
    margin-bottom: 0.375rem;
  }

  .choices-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.375rem;
  }

  .choice-button {
    min-height: 90px;
  }

  .choice-button__image {
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
  }

  .choice-button__text {
    padding: 0.25rem 0.35rem;
    font-size: 0.6rem;
  }

  .result-message {
    padding: 0.4rem;
    min-height: 30px;
    font-size: 0.9rem;
  }

  .controls-section {
    padding: 0.625rem;
  }
}

/* Points Log */
.points-log-section {
  max-width: 900px;
  margin: 2rem auto 1rem;
  padding: 0 1rem;
}

.points-log-header {
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.points-log {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  max-height: 200px;
  overflow-y: auto;
}

.points-log:empty::before {
  content: 'No rounds played yet';
  color: #64748b;
  font-style: italic;
}

.points-log-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.points-log-entry:last-child {
  border-bottom: none;
}

.points-log-entry.correct {
  background: rgba(34, 197, 94, 0.1);
}

.points-log-entry.incorrect {
  background: rgba(239, 68, 68, 0.1);
}

.points-log-round {
  color: #94a3b8;
  min-width: 3rem;
}

.points-log-weapon {
  flex: 1;
  color: #e2e8f0;
  padding: 0 0.5rem;
}

.points-log-points {
  font-weight: 600;
  min-width: 3rem;
  text-align: right;
}

.points-log-entry.correct .points-log-points {
  color: #4ade80;
}

.points-log-entry.incorrect .points-log-points {
  color: #f87171;
}

@media (max-width: 768px) {
  .points-log-section {
    margin: 1rem auto 0.5rem;
  }
  
  .points-log {
    font-size: 0.7rem;
    max-height: 150px;
  }
  
  .points-log-entry {
    padding: 0.2rem 0.4rem;
  }
}

/* High Scores */
.highscores-section {
  max-width: 1200px;
  margin: 2rem auto 2rem;
  padding: 0 1rem;
}

.highscores-header {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.highscores-list {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.875rem;
}

.highscore-entry {
  display: grid;
  grid-template-columns: 3rem 1fr 5rem 10rem 10rem;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  transition: background 0.2s ease;
}

.highscore-entry:last-child {
  border-bottom: none;
}

.highscore-entry:hover {
  background: rgba(148, 163, 184, 0.1);
}

.highscore-first {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.highscore-first .highscore-rank {
  color: #f59e0b;
  font-size: 1.25rem;
}

.highscore-rank {
  font-weight: 700;
  color: #94a3b8;
  text-align: center;
}

.highscore-name {
  color: #e2e8f0;
  font-weight: 600;
}

.highscore-score {
  color: #4ade80;
  font-weight: 700;
  text-align: right;
}

.highscore-seed {
  color: #f8e686;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  background: rgba(248, 230, 134, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: help;
}

.highscore-date {
  color: #64748b;
  font-size: 0.75rem;
  text-align: right;
}

.highscore-empty {
  text-align: center;
  color: #64748b;
  padding: 2rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .highscores-section {
    margin: 1rem auto 1rem;
  }
  
  .highscores-header {
    font-size: 1rem;
  }
  
  .highscore-entry {
    grid-template-columns: 2.5rem 1fr 4rem;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .highscore-seed,
  .highscore-date {
    display: none;
  }
}

