/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif !important;
} 

.hide{
  display: none;
}

/* Header */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 20px;
}

.logo__link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo__img {
  width: 60px;
}

.logo_text {
  font-size: 2rem;
  font-weight: 800;
  margin-left: 10px;
  color: white;
}

.menu{
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu__link {
  margin-left: 20px;
  font-size: 1.2rem;
  font-weight: 600 ;
  position: relative;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu__link::after {
  content: "";
  position: absolute;
  bottom: -3px;  /* Adjust spacing below the text as needed */
  left: 0;
  width: 100%;
  height: 2px;
  background: rgb(255, 255, 255);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}

.menu__link:hover {
  font-size: 1.3rem;
}

.menu__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.login_link{
  background-color: #006eff;
  margin-left: 20px;
  color: white;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 400;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  border: rgba(51, 51, 51, 0.215) .5px solid;
  font-size: 1.1rem ;
  font-weight: 500;
  text-align: center;
  text-decoration: none !important;
}

.login_link:hover{
  background-color: #0a4a9e;
}

.create_game{
  background-color: #ff8c00 ;
  font-size: 1.1rem;
  padding: 8px 10px;
}

.create_game:hover{
  background-color: #c67109 ;
}

.logout_link{
  color: white;
  font-weight: 800;
  font-size: 1.1rem ;
  margin-left: -5px;
}

.logout_link_resource{
  color: #333;
}
.logout_link_resource:hover{
  color: rgb(146, 145, 145);
}

.logged_in_links{
  display: flex !important;
}

.login_greeting{
  margin-left: 30px;
  font-size: 1.2rem;
}

.logo_text_resource {
  font-size: 2.5rem;
  font-weight: 900 !important;
  margin-left: 10px;
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-animation 3s ease infinite;
  font-family: 'Poppins', sans-serif !important;
}

.login_link_resource {
  padding: 8px 16px;
  border-radius: 11px;
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
  background-size: 200% 200%;
  animation: gradient-animation 3s ease infinite;
  border: none;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  border: rgba(51, 51, 51, 0.215) .5px solid;
}

.login_link_resource:hover{
  background: linear-gradient(135deg, #5736a4, #a049a3);
  color: rgb(232, 230, 230);
  font-size: 1.2rem;
}

@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.menu_resource{
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu__link_resource {
  position: relative;
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
  font-weight: 900;
}

.menu__link_resource::after {
  content: '';
  position: absolute;
  bottom: -2px; /* Position the underline slightly below the text */
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
  transform: scaleX(0); /* Hide the underline initially */
  transition: transform 0.3s ease; /* Smooth transition */
  transform-origin: left; /* Start the underline from the left */
}

.menu__link_resource:hover::after {
  transform: scaleX(1); /* Show the underline on hover */
}

/* —— USER DROPDOWN —— */
.user-dropdown {
  position: relative;
  display: inline-block;
}
  
/* Pill-shaped trigger */
.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgb(255, 0, 195) !important;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.1rem !important;
  color: rgb(255, 255, 255);
  font-weight: 800 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s, background 0.3s;
  margin-left: 20px;
}
.user-dropdown-btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: rgb(171, 8, 133) !important;
}

.user-dropdown-btn_index {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgb(255, 255, 255) !important;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.1rem !important;
  color: #333;
  font-weight: 800 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s, background 0.3s;
  margin-left: 20px;
}
  
/* Email text styling */
.user-email {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  display: inline-block;
}
  
/* Ensure the dropdown menu is hidden by default */
.user-dropdown-menu, 
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 180px;
  z-index: 200;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* When the dropdown button is focused, display the dropdown menu */
.user-dropdown-btn:focus + .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Optionally, if any item inside the menu receives focus, keep it open */
.dropdown-menu:focus-within {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Optional arrow styling */
.arrow-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  color: #666;
}

/* When .open class is applied, show the dropdown menu */
.user-dropdown-menu.open,
.dropdown-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* rotate when open */
.user-dropdown-btn.open .arrow-icon {
  transform: rotate(180deg);
}
  
/* Floating menu */
.user-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 180px;
  z-index: 200;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.user-dropdown-menu li {
  margin: 0;
  text-decoration: none;
}
.user-dropdown-menu li + li {
  border-top: 1px solid #eee;
  text-decoration: none;
}
.user-dropdown-menu a,
.user-dropdown-menu button {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.user-dropdown-menu a:hover,
.user-dropdown-menu button:hover {
  background: #c1bfbf9c;
}
  
/* Show menu when not hidden */
.user-dropdown-menu:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  display: block;
}

.favorite-icon {
  position: static;
  cursor: pointer;
  width: 30px;    /* keeps your star at 30×30px */
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-icon .favorite-star {
  width: 100%;
  height: 100%;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;    /* tweak to taste */
  margin-top: 10px;
  border-top: 1px solid #eee;  /* optional separator line */
}

.card-worth {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-muted);
  font-style: italic;
}

/* make all .card images fill their container,
   crop them center-focus, and cap their height */

.card  {
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.card img {
  width: 100% !important;
  object-fit: cover;  /* center-crop the image */
  display: block;
  border-bottom: 1px solid var(--color-bg);
}

.card-name{
  font-weight: 400;
  font-size: 1rem;
  margin-top: 5px;
}

.card-worth{
  font-size: 1.2rem;
  font-weight: 700;
  color: rgb(236, 22, 226) !important;
}

/* —— “Pill” Link Styling —— */
.pill-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  margin-left: 1rem;
  background: var(--color-accent, #f6f6f6);
  color: #454545;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  border: #6b6b6b solid 1px;
  border-radius: 10px;
}

.shop_link{
  font-size: 1.4rem;
}
  
.resource-info-box {
  margin: 0;   /* remove any auto top-margin */
}

/* you can move this into cdb.css */
.points-pill.hidden       { display: none; }
.points-pill .cta-link    {
  color: var(--color-primary, #ff00b3);
  font-weight: 600;
  text-decoration: none;
}

/* ── Game-Over Reward Section ────────────────────────────────────────── */

.reward-box {
  /* full-width wrapper with some breathing room */
  width: 100%;
  margin: 2rem 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.reward-card {
  /* card-style container */
  position: relative;
  width: 90%;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
  border-radius: 16px;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.15),
    0 2px 6px rgba(0,0,0,0.10);
  padding: 2rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.reward-btn {
  cursor: pointer;
  background: #fff;
  color: #047857;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 2rem !important;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover just in case they mouse-over */
.reward-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Pulse keyframes (single canonical definition) */
@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.1); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

/* Utility: hide by default */
.hidden { display: none !important; }

#resource_directions_sign_in a{
  color: rgb(254, 69, 2) !important;
  font-size: 1.5rem;
  margin-top: 10px;
}

.go_reward{
  background: linear-gradient(to right, #06b6d4, #3b82f6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
}

.reward-text {
  font-size: 2rem !important;
  font-weight: bold;
  text-align: center;
  color: white;
  padding: 1rem;
  border-radius: 12px;
}

#resource_directions_sign_in a:hover{
  color: rgb(188, 208, 9) !important;
  margin-top: 10px;
}
#resource_directions_sign_in a {
  color: rgb(229, 255, 0) !important;
  font-size: 1.5rem;
  margin-top: 10px;
  animation: pulse 1.5s infinite;
  font-weight: 800;
  display: inline-block; /* ensures transform works */
}

.favorite-star {
  width: 30px;
  height: 30px;
  transition: 0.2s ease;
}
.favorite-star:hover {
  transform: scale(1.1);
}
  
.resource-card {
  position: relative;
}
  
/* little pointer triangle */
.user-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 1rem;
  border: 6px solid transparent;
  border-bottom-color: #fff;
}

/* hide hamburger & mobile menu on desktop */
.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

/* Hero Section */
#hero-section {
  text-align: center;
  padding: 40px 20px;
  color: white;
  padding: 35px 20px;
  position: relative; /* Enables stacking of child elements */
  background-color: #000 !important;
}

#hero-section h1 {
  font-size: 4rem;
}

.tagline{
  font-size: 1.7rem !important;
  font-weight: 300;
}

/* Styled Dropdown */
/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}
  
/* Trigger button styling */
.user-dropdown-btn {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
  
/* Arrow rotate when open */
.user-dropdown-btn[aria-expanded="true"] .arrow-icon {
  transform: rotate(180deg);
}
  
/* The menu itself */
.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  list-style: none;
  padding: 0.5rem 0;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  min-width: 160px;
  z-index: 1000;
}
  
/* Menu items */
.site-header .dropdown-menu li {
  margin: 0;
}
.site-header .dropdown-menu a,
.site-header .dropdown-menu button {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  color: #333;
  cursor: pointer;
  text-decoration: none;
}
.site-header .dropdown-menu a:hover,
.site-header.dropdown-menu button:hover {
  background: #f0f0f0;
}
  
/* Show on hover or focus */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}
.dropdown:hover .user-dropdown-btn,
.dropdown:focus-within .user-dropdown-btn {
  outline: none;
}

/* hide hamburger on desktop */
#menu-toggle,
.menu-toggle {
  display: none;
}

.site-header .styled-dropdown {
  position: relative;
  width: 550px;
  margin: 20px auto;
  z-index: 10; /* Ensures dropdown overlays testimonials */
}


/* --- Header uses the same palette as .hero-outer --- */
.site-header{
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, #0e0f14 78%, transparent);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .nav-wrap{
  max-width: 1200px; margin: 0 auto; padding: 16px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}

/* Brand */
.brand{display:flex; align-items:center; gap:10px; text-decoration:none;}
.brand-mark{width:4rem}
.brand-text{
  font-weight:700; letter-spacing:-.02em; font-size:1.8rem;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: white !important;
  margin-left: 5px;
}

/* Desktop nav */
.site-header .main-nav{display:flex; align-items:center; gap:16px;}
.site-header .nav-link{
  color:#e9e9f6; text-decoration:none; font-weight:600; position:relative;
  padding:8px 10px; border-radius:8px;
}
.site-header .nav-link::after{
  content:""; position:absolute; left:10px; right:10px; bottom:4px; height:2px;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  transform: scaleX(0); transform-origin:left; transition: transform .25s ease;
}
.site-header .nav-link:hover::after{ transform: scaleX(1); }

/* Buttons */
.site-header .btn{
  --grad: linear-gradient(90deg, var(--pink), var(--purple));
  padding:10px 14px; border-radius:999px; text-decoration:none; font-weight:800;
  border:1px solid rgba(255,255,255,.14);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.site-header .btn.-primary{
  background: var(--grad); color:#0e0f14;
  box-shadow: 0 8px 24px rgba(122,44,255,.22);
}
.site-header .btn.-primary:hover{ transform: translateY(-1px); }
.site-header .btn.-secondary{
  color:#fff; background: color-mix(in oklab, #ffffff 6%, transparent);
}
.site-header .btn.-secondary:hover{ background: color-mix(in oklab, #ffffff 12%, transparent); }

/* Toggle */
.site-header .nav-toggle{
  display:none; width:42px; height:42px; border-radius:10px;
  background: color-mix(in oklab, #ffffff 6%, transparent);
  border:1px solid rgba(255,255,255,.14);
}
.site-header .nav-toggle .bar{display:block; width:22px; height:2px; margin:5px auto;
  background:#fff; border-radius:2px;}

/* Mobile drawer */
.site-header .mobile-drawer{
  display:none; flex-direction:column; gap:10px;
  padding:10px 20px 18px; border-bottom:1px solid rgba(255,255,255,.06);
  background: color-mix(in oklab, #0e0f14 85%, transparent);
}

.login_button{
  background-color: #F6FF19 !important;
  font-weight: 700 !important;
}

.spark::after{
  content:"";
  position:absolute; inset:-6px;
  border-radius:inherit;
  background:
    conic-gradient(from 0deg, transparent 0 25%, rgba(255,255,255,.35) 25% 30%, transparent 30% 55%, rgba(255,255,255,.35) 55% 60%, transparent 60% 100%);
  mask: radial-gradient(circle at 50% 50%, transparent 0 66%, #000 66%);
}
@keyframes twinkle{
  0%,100%{ transform: scale(1); opacity:.6; }
  50%{    transform: scale(1.25); opacity:1; }
}
.s1{ right: 60px;  bottom: 300px; }
.s2{ right: 260px; bottom: 40px;  animation-delay: .5s;}
.s3{ right: 120px; bottom: 170px; animation-delay: .9s;}

/* make header/hero darker but readable */
.hero,
.site-header {
  background-color:#101015 !important;
}


/* --- Header uses the same palette as .hero-outer --- */
.site-header{
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, #0e0f14 78%, transparent);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-outer { /* palette already set by you */ }
.site-header .nav-wrap{
  max-width: 1200px; margin: 0 auto; padding: 16px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}

/* Brand */
.brand{display:flex; align-items:center; gap:10px; text-decoration:none;}
.brand-mark{width:4rem}
.brand-text{
  font-weight:700; letter-spacing:-.02em; font-size:1.8rem;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: white !important;
  margin-left: 5px;
}

/* Desktop nav */
.main-nav{display:flex; align-items:center; gap:16px;}
.nav-link{
  color:#e9e9f6; text-decoration:none; font-weight:600; position:relative;
  padding:8px 10px; border-radius:8px;
}
.nav-link::after{
  content:""; position:absolute; left:10px; right:10px; bottom:4px; height:2px;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  transform: scaleX(0); transform-origin:left; transition: transform .25s ease;
}
.nav-link:hover::after{ transform: scaleX(1); }

/* Buttons */
.btn{
  --grad: linear-gradient(90deg, var(--pink), var(--purple));
  padding:10px 14px; border-radius:999px; text-decoration:none; font-weight:800;
  border:1px solid rgba(255,255,255,.14);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn.-primary{
  background: var(--grad); color:#0e0f14;
  box-shadow: 0 8px 24px rgba(122,44,255,.22);
}
.btn.-primary:hover{ transform: translateY(-1px); }
.btn.-secondary{
  color:#fff; background: color-mix(in oklab, #ffffff 6%, transparent);
}
.btn.-secondary:hover{ background: color-mix(in oklab, #ffffff 12%, transparent); }

/* Toggle */
.nav-toggle{
  display:none; width:42px; height:42px; border-radius:10px;
  background: color-mix(in oklab, #ffffff 6%, transparent);
  border:1px solid rgba(255,255,255,.14);
}
.nav-toggle .bar{display:block; width:22px; height:2px; margin:5px auto;
  background:#fff; border-radius:2px;}

/* Mobile drawer */
.mobile-drawer{
  display:none; flex-direction:column; gap:10px;
  padding:10px 20px 18px; border-bottom:1px solid rgba(255,255,255,.06);
  background: color-mix(in oklab, #0e0f14 85%, transparent);
}
.m-link{ color:#f3f3f8; text-decoration:none; font-weight:700; padding:10px 6px; }
.m-btn{ text-decoration:none; text-align:center; font-weight:800; padding:12px 14px; border-radius:14px;}
.m-btn.-primary{ background: linear-gradient(90deg, var(--pink), var(--purple)); color:#0e0f14; }
.m-btn.-secondary{ color:#fff; background: color-mix(in oklab, #ffffff 8%, transparent); }

#carousel {
  position: relative;
  overflow: hidden;
  min-height: 110px;           /* keeps layout from jumping */
}
#carousel .testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;        /* only the active one can be focused/clicked */
}
#carousel .testimonial.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* suggestions panel toggle */
.styled-dropdown .value-list { display:none; max-height: 60vh; overflow:auto; }
.styled-dropdown .value-list.open { display:block; }

/* hide/show utility */
.section_grid.no-matches { display: none; }

/* clear button inside the input */
.input-container { position: relative; }
.dropdown-clear {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; font-size: 18px; cursor: pointer; line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  #carousel .testimonial { transition: none; }
}

/* Only the "Hi, {user}" button in the main nav */
.main-nav #signed-in-links .user-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;

  background: rgba(255,255,255,.08);
  color: #f6f7fb;

  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: .55rem 1rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 8px 24px rgba(0,0,0,.25);
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.main-nav #signed-in-links .user-pill:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}

.main-nav #signed-in-links .user-pill:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(122,44,255,.35), 0 8px 24px rgba(0,0,0,.28);
}

/* keep the email from stretching the pill */
#user-email {
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- User Pill (Yellow Background) --- */
/* ===== Gold pill: depth + occasional glare ===== */
.user-pill{
  position: relative;
  overflow: hidden;               /* lets the glare stay inside the pill */
  background: #F6FF19 !important;
  color:#0d0f14 !important;
  border: 1px solid rgba(163,100,0,.55);       /* gold edge */
  text-shadow: 0 1px 0 rgba(255,255,255,.35);  /* crisp dark text on gold */

  /* depth + glow */
  box-shadow:
    inset 0 6px 14px rgba(255,255,255,.35),    /* top gloss */
    inset 0 -10px 18px rgba(0,0,0,.18),        /* bottom burn */
    0 10px 24px rgba(255,187,0,.25),           /* ambient gold glow */
    0 0 0 1px rgba(255,212,64,.35);            /* subtle ring */

  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

/* subtle hover pop */
.user-pill:hover{
  transform: translateY(-1px);
  box-shadow:
    inset 0 7px 16px rgba(255,255,255,.40),
    inset 0 -12px 20px rgba(0,0,0,.2),
    0 14px 30px rgba(255,187,0,.32),
    0 0 0 1px rgba(255,212,64,.45);
}

/* Top arc highlight (always on for “glossy” feel) */
.user-pill::after{
  content:"";
  position:absolute; inset:0;
  border-radius:inherit;
  background:
    radial-gradient(120% 70% at 50% -40%,
      rgba(255,255,255,.55) 0%,
      rgba(255,255,255,.28) 35%,
      rgba(255,255,255,0) 60%);
  pointer-events:none;
  mix-blend-mode: screen;
}

/* Sheen sweep (occasional) */
.user-pill::before{
  content:"";
  position:absolute; top:-20%; bottom:-20%;
  left:-130%; width:60%;
  border-radius:inherit;
  background: linear-gradient(115deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.18) 12%,
    rgba(255,255,255,.55) 18%,
    rgba(255,255,255,.12) 26%,
    rgba(255,255,255,0) 40%);
  transform: skewX(-20deg);
  animation: pill-sheen 7.5s ease-in-out infinite;
  pointer-events:none;
}

@keyframes pill-sheen{
  0%, 82%   { transform: translateX(0) skewX(-20deg); left:-130%; }
  88%       { left: 120%; }
  100%      { left: 120%; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce){
  .user-pill::before{ animation: none; display:none; }
}
