/*
 * Copyright (c) 2025-2026 Evolution Creek Software. All rights reserved.
 *
 * Unauthorized copying, linking, or other unintended use of this file
 * (in part or in whole) is strictly prohibited.
 */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== Account Area ===== */

#accountArea {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Caveat', cursive;
  font-size: clamp(18px, 2.5vw, 24px);
  margin-top: 0.75rem;
}

#notSignedInMsg {
  font-family: 'Caveat', cursive;
  font-size: clamp(20px, 3vw, 28px);
  margin-top: 2rem;
  color: #555;
}

/* ===== Main Content ===== */

#content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  padding: 0 1rem;
  box-sizing: border-box;
}

h2 {
  font-family: 'Salsa', cursive;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 400;
  color: saddlebrown;
  margin: 1rem 0 0.5rem;
  text-align: center;
}

/* ===== Leaderboard Table ===== */

#leaderboard {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Caveat', cursive;
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 1.5rem;
  background-color: moccasin;
  border: 2px solid saddlebrown;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(139, 69, 19, 0.2);
}

#leaderboard thead tr {
  background-color: saddlebrown;
  color: white;
}

#leaderboard th {
  padding: 0.5rem 0.75rem;
  font-family: 'Salsa', cursive;
  font-weight: 400;
  font-size: clamp(16px, 2.2vw, 22px);
}

#leaderboard tbody tr {
  border-bottom: 1px solid peru;
  transition: background-color 0.15s ease;
}

#leaderboard tbody tr:last-child {
  border-bottom: none;
}

#leaderboard tbody tr:nth-child(even) {
  background-color: #f5e6c8;
}

#leaderboard tbody tr.my-row {
  background-color: wheat;
  font-weight: 700;
  color: saddlebrown;
}

#leaderboard td {
  padding: 0.4rem 0.75rem;
}

.col-rank {
  width: 2.5rem;
  text-align: center;
}

.col-name {
  text-align: left;
}

.col-pts {
  text-align: right;
  color: saddlebrown;
}

#leaderboard thead .col-pts {
  color: white;
}

/* ===== Name Area ===== */

#nameArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-family: 'Caveat', cursive;
  font-size: clamp(18px, 2.5vw, 24px);
  text-align: center;
}

#namePrompt {
  margin: 0;
  color: #555;
  font-size: clamp(16px, 2.2vw, 22px);
}

#nameDisplay {
  font-family: 'Salsa', cursive;
  font-size: clamp(2rem, 6vw, 3rem);
  color: saddlebrown;
  letter-spacing: 0.15em;
}

#nameRow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

#nameEditor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

#nameInput {
  font-family: 'Salsa', cursive;
  font-size: clamp(1.4rem, 4vw, 2rem);
  width: 4rem;
  text-align: center;
  letter-spacing: 0.15em;
  border: 2px solid saddlebrown;
  border-radius: 8px;
  background-color: moccasin;
  padding: 0.2em 0.3em;
  text-transform: uppercase;
  color: black;
}

#nameInput:focus {
  outline: none;
  border-color: peru;
  box-shadow: 0 0 4px rgba(139, 69, 19, 0.4);
}

#changeNameBtn,
#saveNameBtn {
  font-family: 'Caveat', cursive;
  font-size: clamp(16px, 2.2vw, 20px);
  padding: 0.3em 0.8em;
  border: 2px solid saddlebrown;
  border-radius: 8px;
  background-color: moccasin;
  cursor: pointer;
  color: black;
  transition: background-color 0.2s ease;
}

#changeNameBtn:hover,
#saveNameBtn:hover {
  background-color: peru;
}

#changeNameBtn:active,
#saveNameBtn:active {
  transform: scale(0.96);
}

/* ===== Score Card ===== */

#scoreCard {
  width: 100%;
  background-color: moccasin;
  border: 2px solid saddlebrown;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-sizing: border-box;
  box-shadow: 0 3px 8px rgba(139, 69, 19, 0.2);
  margin-bottom: 2rem;
}

#totalRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Salsa', cursive;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: saddlebrown;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid peru;
  margin-bottom: 0.75rem;
}

#scoreBreakdown {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.scoreRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Caveat', cursive;
  font-size: clamp(18px, 2.5vw, 24px);
  padding: 0.2rem 0;
}

.scoreGame {
  color: #333;
}

.scorePoints {
  color: saddlebrown;
  font-weight: 600;
}

/* ===== Responsive ===== */

@media (max-width: 600px) {
  
}
