/* =========================
   Voxtronic Kids — Common UI
   clean kids.css
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 176, 0, .18), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(255, 79, 216, .16), transparent 32%),
    linear-gradient(180deg, #02050b 0%, #06111a 100%);
  color: #fff;
  min-height: 100vh;
}

/* Header */

.header {
  position: relative;
  z-index: 100;
  min-height: 74px;
  padding: 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(2, 6, 14, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 5px;
  white-space: nowrap;
}

.brand img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
}

.kids-actions {
  position: relative;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Common links / buttons */

.kids-link {
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.kids-link.primary {
  border: 0;
  background: linear-gradient(135deg, #0b7cff, #1765e8);
  box-shadow: 0 0 22px rgba(0, 110, 255, .38);
}

.kids-link:hover {
  transform: translateY(-1px);
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(135deg, #ffb000, #ff4fd8);
  box-shadow: 0 0 24px rgba(255, 120, 220, .34);
}

.play-btn:hover {
  transform: translateY(-1px);
}

.play-btn-disabled {
  opacity: .55;
  cursor: not-allowed;
  background: linear-gradient(135deg, #475569, #334155);
  box-shadow: none;
}

.play-btn-disabled:hover {
  transform: none;
}

/* Legacy user name / logout fallback */

.user-name {
  color: #dbeafe;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}

.logout-form {
  margin: 0;
}

.logout-btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

/* User dropdown menu */

details.kids-user-menu {
  position: relative;
  display: inline-block;
}

details.kids-user-menu > summary {
  list-style: none;
}

details.kids-user-menu > summary::-webkit-details-marker {
  display: none;
}

details.kids-user-menu > summary.kids-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 44px;
  padding: 10px 16px;

  color: #dbeafe;
  font-weight: 900;
  font-size: 15px;

  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);

  cursor: pointer;
  user-select: none;
}

details.kids-user-menu[open] > summary.kids-user-trigger,
details.kids-user-menu > summary.kids-user-trigger:hover {
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.09);
}

.kids-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  width: 235px;
  padding: 10px;

  border-radius: 16px;
  background: linear-gradient(145deg, rgba(13, 22, 38, .98), rgba(5, 10, 18, .98));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 22px 55px rgba(0,0,0,.55);

  z-index: 9999;
}

.kids-user-dropdown a,
.kids-user-dropdown button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;

  display: flex;
  align-items: center;
  gap: 8px;

  border: 0;
  border-radius: 12px;
  background: transparent;

  color: #e5edff !important;
  text-decoration: none !important;

  font-family: inherit;
  font-size: 14px;
  font-weight: 900;

  cursor: pointer;
  text-align: left;
  appearance: none;
}

.kids-user-dropdown a:hover,
.kids-user-dropdown button:hover {
  background: rgba(255,255,255,.08);
}

.kids-user-dropdown form {
  margin: 0;
}

/* Hero */

.kids-hero {
  padding: 90px 54px 40px;
  text-align: center;
}

.kids-hero h1 {
  margin: 0;
  font-size: 58px;
  font-weight: 900;
  letter-spacing: 2px;
}

.kids-hero p {
  max-width: 760px;
  margin: 24px auto 0;
  color: #d6dbe7;
  font-size: 22px;
  line-height: 1.6;
}

/* Games grid */

.games-grid {
  max-width: 1500px;
  margin: 30px auto 80px;
  padding: 0 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 22px;
}

/* Game card */

.game-card {
  min-height: 420px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(13, 22, 38, .92), rgba(5, 10, 18, .86));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
}

.game-icon {
  font-size: 48px;
  margin-bottom: 18px;
}

.game-card h2 {
  min-height: 58px;
  margin: 0 0 14px;
  color: #ffb000;
  font-size: 24px;
}

.game-card p {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.55;
  color: #b8c1d4;
}

.game-card form {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.game-card > .play-btn {
  margin-top: auto;
  align-self: flex-start;
}

.game-card form .play-btn {
  margin-top: 22px;
  align-self: flex-start;
}

.game-card label {
  display: block;
  margin: 18px 0 14px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.game-card select {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  outline: none;
  cursor: pointer;
}

.game-card select:focus {
  border-color: rgba(255, 176, 0, .75);
  box-shadow: 0 0 18px rgba(255, 176, 0, .28);
}

.game-card option {
  background: #07111f;
  color: #fff;
}

/* Responsive */

@media (max-width: 1100px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header {
    padding: 18px 22px;
    min-height: auto;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 22px;
  }

  .kids-actions {
    flex-wrap: wrap;
  }

  .kids-hero {
    padding: 60px 22px 30px;
  }

  .kids-hero h1 {
    font-size: 36px;
  }

  .kids-hero p {
    font-size: 18px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    padding: 0 22px 60px;
  }

  .kids-user-dropdown {
    right: auto;
    left: 0;
  }
}