/* Play hub: layout + Livewire/dropdown tweaks on top of all_styles.css */

.play-modes-app {
  padding-bottom: 2rem;
}

.play-modes-app .navbar {
  z-index: 50;
  /* padding-left: clamp(24px, 4vw, 220px); */
  /* padding-right: clamp(24px, 4vw, 220px); */
}

/* Notification bell dropdown must clear the pillow hangers (z-index 20)
   and sit below the button (mt-2 handles vertical gap). */
.play-modes-app .play-notification-wrap [x-show],
.play-modes-app .play-notification-wrap .absolute {
  z-index: 200;
  top: 100%;  /* pin to bottom of the bell button's container */
  margin-top: 8px;       /* breathing room below the button */
}
.play-modes-app .play-notification-wrap span {
  top: 0 !important;
}

.play-modes-app .user-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.play-modes-app .play-notification-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.play-modes-app .play-notification-wrap > div.relative {
  display: flex;
  align-items: center;
}

/* .play-modes-app .play-notification-wrap button { */
  /* width: 40px; */
  /* height: 40px; */
  /* min-width: 40px; */
  /* min-height: 40px; */
  /* border-radius: 12px !important; */
  /* color: #fceee3 !important; */
  /* background: rgba(60, 40, 20, 0.35) !important; */
  /* border: 1px solid rgba(255, 255, 255, 0.18) !important; */
  /* box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); */
/* } */

/* .play-modes-app .play-notification-wrap button:hover { */
  /* background: rgba(60, 40, 20, 0.55) !important; */
/* } */

.play-modes-app .play-notification-wrap svg {
  color: #fceee3 !important;
}

.play-modes-app .user-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  background-color: #9e8d77;
  border: 1px dashed #5a4b3c;
  border-radius: 16px;
  padding: 6px 10px 6px 6px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.play-modes-app .user-menu .divider {
  margin: 0 6px;
}

.play-modes-app .user-menu .play-notification-wrap {
  margin-right: 2px;
}

.play-modes-app .play-user-dropdown-trigger,
.play-modes-app .play-manage-dropdown-trigger {
  background: rgba(60, 40, 20, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 12px;
  border-radius: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.play-modes-app .play-user-dropdown-trigger:hover,
.play-modes-app .play-manage-dropdown-trigger:hover {
  background: rgba(60, 40, 20, 0.45);
}

/* Compact dropdown menus (User / Manage) */
.play-modes-app .play-dropdown-tight a {
}

.play-modes-app .play-dropdown-tight form a {
  padding: 0.5rem 0.9rem !important;
  font-size: 0.95rem !important;
}

.play-modes-app .play-dropdown-tight svg {
  width: 16px;
  height: 16px;
}

.play-modes-app .play-dropdown-tight .play-subnav-btn {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
}

.play-modes-app .play-dropdown-tight .bg-gray-50 a {
  padding: 0.3rem 0.65rem !important;
  font-size: 0.75rem !important;
}

.play-modes-app .play-guest-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #9e8d77;
  border: 1px dashed #5a4b3c;
  border-radius: 16px;
  padding: 10px 18px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.play-modes-app .play-guest-actions a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(60, 40, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.play-modes-app .play-guest-actions a:hover {
  background: rgba(60, 40, 20, 0.55);
}

/* Browse Group Quizzes — match card launch-button energy */
.play-modes-app a.play-browse-group-btn {
  text-decoration: none;
  color: #fff;
  display: block;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s, box-shadow 0.2s;
}

.play-modes-app a.play-browse-group-btn:hover {
  transform: scale(1.06);
  filter: brightness(1.12) contrast(1.08);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.35);
}

.play-modes-app a.play-browse-group-btn:active {
  transform: scale(0.98);
  filter: brightness(0.95);
}

section.group_play{
  justify-content: center;
  align-items: center;
}

/* Group board (no longer wrapped in one giant link) */
.play-modes-app .play-group-board {
  max-width: 100%;
}

.play-modes-app .play-scoreboard-panel {
  position: relative;
  min-width: 0;
}

.play-modes-app .play-scoreboard-panel .group_tents {
  display: block;
  max-height: 72px;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

/* Live sessions carousel */
.play-modes-app .play-live-carousel-shell {
  overflow: hidden;
  width: 100%;
  margin: 6px 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
  padding: 8px 0;
}

.play-modes-app .play-live-carousel-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 0 8px;
}

.play-modes-app .play-live-carousel-shell--marquee .play-live-carousel-track {
  animation: playLiveMarquee var(--play-marquee-sec, 36s) linear infinite;
}

.play-modes-app .play-live-carousel-shell--marquee:hover .play-live-carousel-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .play-modes-app .play-live-carousel-shell--marquee .play-live-carousel-track {
    animation: none !important;
  }
}

.play-modes-app .play-live-carousel-shell--static .play-live-carousel-track {
  animation: none;
  justify-content: center;
  width: 100%;
}

@keyframes playLiveMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.play-modes-app a.play-live-slide {
  flex: 0 0 auto;
  width: min(268px, 86vw);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.play-modes-app a.play-live-slide:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.play-modes-app .play-live-slide-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.25);
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.play-modes-app .play-live-slide-badge--live {
  background: rgba(248, 113, 113, 0.22);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.4);
}

.play-modes-app .play-live-slide-quiz {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.play-modes-app .play-live-slide-room {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #fde68a;
}

.play-modes-app .play-live-slide-meta {
  font-size: 11px;
  font-weight: 600;
  color: rgba(241, 227, 197, 0.65);
}

.play-modes-app .play-live-slide-leader {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}

.play-modes-app .play-live-slide-empty-leader {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.play-modes-app .play-live-mini-row {
  gap: 6px;
  padding: 3px 4px;
}

.play-modes-app .play-live-mini-avatar {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px;
  font-size: 12px;
  font-weight: 900;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-width: 2px !important;
}

.play-modes-app .play-live-mini-row .abacus-line {
  min-width: 0;
}

.play-modes-app .play-live-mini-row .bead {
  width: 10px;
  height: 10px;
  margin-right: 1px;
}

.play-modes-app .play-live-mini-tag {
  min-width: 0 !important;
  font-size: 11px !important;
  padding: 4px 8px !important;
  clip-path: none !important;
  border-radius: 8px !important;
}

.play-modes-app .play-live-slide-cta {
  margin-top: auto;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

.play-modes-app .play-live-slide--solo {
  width: min(100%, 420px);
  text-align: center;
  align-items: center;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.play-modes-app .play-live-slide--solo .play-live-slide-quiz {
  color: #fff;
}

.play-modes-app .play-live-slide--solo .play-live-slide-meta {
  color: rgba(255, 255, 255, 0.6);
}

.play-modes-app .play-live-slide--solo .play-live-slide-cta-link {
  margin-top: 8px;
  font-weight: 800;
  font-size: 13px;
  color: #fde68a;
  text-decoration: none;
}

.play-modes-app .play-live-slide--solo .play-live-slide-cta-link:hover {
  text-decoration: underline;
}

.play-modes-app .play-features-footer {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 2.5rem;
  color: #64748b;
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
}

.play-modes-app .play-features-footer .feat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.play-modes-app .play-features-footer .dot-emerald {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
}

.play-modes-app .play-features-footer .dot-blue {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3b82f6;
}

.play-modes-app .play-features-footer .dot-purple {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a855f7;
}

/* Tighter hero offset on small screens (pillows hang from nav) */
@media (max-width: 768px) {
  .play-modes-app .main-content {
    margin-top: 120px !important;
  }

  .play-modes-app .icon-hangers .pillow {
    width: 100px !important;
    height: 100px !important;
  }

  .play-modes-app .icon-hangers .pillow.purple {
    width: 120px !important;
    height: 120px !important;
  }

  .play-modes-app .icon-hangers {
    gap: 12px !important;
  }
}

@media (max-width: 1024px) {
  .play-modes-app .navbar {
    height: auto;
    min-height: 88px;
    flex-wrap: wrap;
    row-gap: 8px;
    padding-top: 8px;
    padding-bottom: 12px;
    align-items: center;
  }

  .play-modes-app .nav-links {
    gap: 4px 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .play-modes-app .nav-links a {
    padding: 5px 10px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 640px) {
  .play-modes-app .navbar {
    flex-direction: column;
    align-items: stretch;
    padding-left: 12px;
    padding-right: 12px;
  }

  .play-modes-app .logo {
    align-self: center;
  }

  .play-modes-app .logo img {
    height: 52px !important;
  }

  .play-modes-app .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .play-modes-app .nav-links li {
    margin: 0;
  }

  .play-modes-app .nav-links a {
    padding: 4px 10px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .play-modes-app .user-controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 8px;
  }

  .play-modes-app .user-menu {
    flex-wrap: wrap;
    justify-content: center;
    padding: 6px 8px;
  }
}

@media (max-width: 400px) {
  .play-modes-app .navbar {
      padding-bottom: 38px;
  }
}