/* ===============================
   BODY
=============================== */
body {
  background: linear-gradient(to bottom, #e0f7fa, #b2ebf2);
  color: #1a1a1a;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 120px;
  height: 100vh;
  margin: 0;


}

/* ===============================
   PAGE TITLE
=============================== */
.page-title {
  position: absolute;
  top: 20px;
  font-size: 2.6em;
  font-weight: 700;
  color: #0277bd;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 #ffffff, 0 0 10px rgba(255,255,255,0.8);
}

/* ===============================
   MAIN BOXES
=============================== */
.login-box,
.secret-box {
  background: rgba(255, 255, 255, 0.85);
  padding: 30px;
  border-radius: 20px;
  width: 360px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  border: 2px solid #ffd54f;
  position: relative;
}

/* Snow accent */
.login-box::before,
.secret-box::before {
  content: "❄️ ❄️ ❄️";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2em;
  opacity: 0.6;
}

/* ===============================
   HEADINGS
=============================== */
h1 {
  color: #0277bd;
  text-shadow: 1px 1px #fff;
  margin-bottom: 20px;
}

/* ===============================
   INPUTS
=============================== */
input {
  width: 90%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 10px;
  border: 2px solid #4fc3f7;
  background: rgba(255,255,255,0.9);
  color: #0277bd;
  font-size: 1em;
}

/* ===============================
   BUTTONS
=============================== */
button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #ffb74d;
  color: #1a1a1a;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1em;
  transition: 0.3s;
  box-shadow: 0 4px 0 #f9a825;
}

button:hover {
  background: #ffd54f;
}

button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #f9a825;
}

/* Logout / Start Over */
.logout {
  background: #e53935;
  color: white;
}

.logout:hover {
  background: #ef5350;
}

/* ===============================
   PARTICIPANT COUNT
=============================== */
.participant-count {
  font-weight: bold;
  margin-bottom: 15px;
  color: #0277bd;
}

/* ===============================
   PARTICIPANT LIST
=============================== */
ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

li {
  background: rgba(255,255,255,0.7);
  margin: 6px 0;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #4fc3f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: #0277bd;
}

ul li button {
  background: #81d4fa;
  padding: 3px 7px;
  font-size: 0.8em;
  border-radius: 5px;
  box-shadow: none;
  width: 75%;
}

/* ===============================
   SUBTITLE
=============================== */
.subtitle {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 15px;
}

/* ===============================
   NAME GRID
=============================== */
.name-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

/* Shuffle animation (optional) */
.name-grid.shuffling .name-card {
  animation: shuffle 0.2s infinite alternate;
}

@keyframes shuffle {
  0% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  100% { transform: translateX(-3px); }
}

/* ===============================
   NAME CARDS
=============================== */
.name-card {
  background: #e3f2fd;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  color: #0277bd;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid #b3e5fc;
  position: relative;
}

.name-card:hover {
  background: #bbdefb;
  transform: translateY(-2px);
}

/* Ornament icon */
.name-card::after {
  content: "🎄";
  position: absolute;
  top: -10px;
  right: -8px;
  font-size: 0.9em;
}

/* ===============================
   REVEAL BOX
=============================== */
.reveal-box {
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  border: 2px solid #ffd54f;
  margin-top: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  animation: popIn 0.4s ease-out;
}

@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Reveal text */
.reveal-name {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.reveal-name .your-name {
  color: #0277bd;
}

.reveal-name .assigned-name {
  color: #ff6f00;
}
