/* ------------------- BODY & BACKGROUND ------------------- */

:root{
  --gold:#FFD700;
  --purple:#7c3aed;
  --light-purple:#a78bfa;
  --text:#f2eaff;
  --purple-dark: #6d28d9;
}

body {
  margin: 0;
  height: 110vh; /* allows the page to grow */
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #1a0a30, #2c0d50, #120622);
  background-size: 400% 400%;
  animation: bgMove 20s ease infinite;
  color: #f2eaff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 80px; /* adjust if disclaimer is taller */
}

body::before {
  content: "@EgosShadow7";
  position: fixed;
  top: 90%;              /* move down from the top */
  left: 50%;             /* move right from the left */
  font-size: 25px;       /* visible but not huge */
  color: rgba(255,255,255,0.03); /* very subtle */
  pointer-events: none;  /* doesn’t block interaction */
  z-index: 0;            /* behind all content */
  transform: rotate(0deg); /* angled for style */
  white-space: nowrap;
}

.page {
  padding-bottom: 50px;
}

@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 60%, rgba(0,0,0,0.45));
  pointer-events: none;
}

/* ------------------- GENERAL RESET ------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ------------------- PAGE & HEADINGS ------------------- */
.page {
  width: 100%;
  max-width: 1100px;
}

h1 {
  font-size: 1.8rem;
  color: #FFD700;
  text-shadow: 0 0 10px #fff2a8;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.2rem;
  color: #b48cff;
  margin: 20px 0 10px 0;
}

/* ------------------- FLEX LAYOUT ------------------- */
.flex-container {
  display: flex;
  gap: 25px;
  margin-top: 20px;
}

.groups-section {
  flex: 2;
}

.create-section {
  flex: 1;
  background: linear-gradient(145deg, #2a1550, #1c0f33);
  padding: 32px 28px;
  border-radius: 24px;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  max-width: 380px;
  align-self: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* ------------------- GROUP CARDS ------------------- */
.group-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 260px); /* 260px per group-box */
  gap: 18px;
  justify-content: start; /* aligns boxes to left */
}

.group-list::-webkit-scrollbar {
  width: 8px;
}
.group-list::-webkit-scrollbar-thumb {
  background: rgba(139,92,246,0.5);
  border-radius: 4px;
}


.group-box {
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
  border: 2px solid rgba(255, 215, 0, 0.3);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
   gap: 6px;
}

@keyframes cardGlow {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.group-box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 40px rgba(250,204,21,0.6), 0 0 20px rgba(124,58,237,0.4);
  border: 2px solid rgba(250,204,21,0.5);
}

.group-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.1), transparent, rgba(255,255,255,0.1));
  transform: rotate(25deg) translateX(-100%);
  transition: transform 0.7s;
  border-radius: inherit;
}


.group-box:hover::after {
  transform: rotate(25deg) translateX(100%);
}



.group-box.full {
  opacity: 0.45;
}

.group-box h3,
.group-box strong,
.group-box .group-name {
  color: #facc15;
}

.member-card {
  width: 120px;   /* match grid column width */
  padding: 4px 6px;
  min-height: 35px;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.25);
}

.member-card span {
  color: #facc15;
  font-weight: 600;
}

.member-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 60px;
  overflow-y: auto;
  position: relative;
  z-index: 5;
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  position: relative;
  cursor: pointer;
}

/* Tooltip */
.member-avatar:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,10,50,0.9);
  color: #f2eaff;
  font-size: 0.75rem;
  padding: 4px 6px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 10;
}


/* ------------------- BUTTONS ------------------- */
button {
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 15px #facc15, 0 0 25px #8b5cf6, 0 0 35px rgba(255,215,0,0.3);
}

button:disabled {
  background: #4b5563;
  cursor: not-allowed;
}

.group-box button {
  width: 100%;
  margin-top: 12px;
}

button.active,
button.selected {
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #2a1952;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.4),
              0 10px 25px rgba(250, 204, 21, 0.35);
}

/* ------------------- CREATE SECTION FORM ------------------- */
.create-section h2 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 22px;
  color: #facc15;
}

.create-section label {
  color: #facc15;
  font-weight: 600;
}

.create-section form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.create-section input,
#create-section input,
.create-section button {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  font-size: 1rem;
  color: #ffffff;
  outline: none;
}

.create-section input::placeholder {
  color: #a78bfa;
}

.create-section input:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.25);
}

.create-section button {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ------------------- JOIN MODAL ------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1e1038;
  border-radius: 16px;
  padding: 30px;
  width: 350px;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  color: #facc15;
  cursor: pointer;
}

.modal.show {
  display: flex !important;
  justify-content: center;
  align-items: center;
}


/* ------------------- JOIN FORM INPUTS & SELECT ------------------- */
/* UNIFIED JOIN FORM STYLING */
/* ========================================
   UNIFIED INPUT & SELECT STYLING
   Applies to all text inputs and selects in forms
   ======================================== */
form input[type="text"],
form input[type="number"],
form select {
  width: 100%;
  padding: 14px 18px;          /* match height of select */
  font-size: 1rem;
  font-weight: 600;
  color: #f2eaff;
  border-radius: 12px;
  border: 2px solid rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  outline: none;
  box-shadow: 0 0 8px rgba(180,140,255,0.5);
  transition: all 0.3s ease;
  appearance: none;            /* removes default select styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* Custom arrow for selects only */
/* ========================================
   UNIFIED JOIN FORM INPUTS
   Forces text input and select to look the same
   ======================================== */
/* =====================================
   JOIN MODAL FIELDS - UNIFIED STYLE
   ===================================== */
.join-field {
  width: 100% !important;
  padding: 14px 18px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  font-family: "Inter", sans-serif !important;
  color: #f2eaff !important;
  border-radius: 12px !important;
  border: 2px solid rgba(139, 92, 246, 0.4) !important;
  background: linear-gradient(135deg,#7c3aed,#a78bfa) !important;
  outline: none !important;
  box-shadow: 0 0 8px rgba(180,140,255,0.5) !important;
  transition: all 0.3s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  box-sizing: border-box !important;
}

/* Add the glowing effect */
.join-field:hover,
.join-field:focus {
  border-color: #facc15 !important;
  box-shadow: 0 0 14px rgba(250,204,21,0.8) !important;
  transform: scale(1.02) !important;
}

/* Select dropdown custom arrow */
.join-field[type="select"],
.join-field select {
  background-image:
    linear-gradient(135deg,#7c3aed,#a78bfa),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,0 140,0 70,70' fill='white'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 12px, auto !important;
  cursor: pointer !important;
}


.join-field option {
  background-color: #1a0a30;
  color: #f2eaff;
}


/* Placeholder styling */
.join-field::placeholder {
  color: #e0c7ff !important;
  font-weight: 500 !important;
}




/* ------------------- SERVICES & COUNTRY SELECT ------------------- */
.services {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.service-btn {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  color: #f2eaff;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  box-shadow: 0 4px 15px rgba(180,140,255,0.5),
              0 0 10px rgba(124,58,237,0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Hover glow & pop */
.service-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 6px 20px rgba(250,204,21,0.6),
    0 0 25px rgba(124,58,237,0.7),
    0 0 40px rgba(180,140,255,0.6);
}

/* Active/Selected state */
.service-btn.active {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a0a30;
  box-shadow:
    0 4px 20px rgba(255,215,0,0.7),
    0 0 30px rgba(255,200,50,0.8),
    0 0 50px rgba(255,215,0,0.6);
}

/* Shiny moving highlight */
.service-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2), transparent, rgba(255,255,255,0.2));
  transform: rotate(45deg) translateX(-100%);
  transition: all 0.7s ease;
  border-radius: inherit;
}

.service-btn:hover::before {
  transform: rotate(45deg) translateX(100%);
}

/* Disabled state */
.service-btn:disabled {
  background: #4b5563;
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

#countrySelect {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid rgba(139, 92, 246, 0.4);
  font-size: 1rem;
  font-weight: 600;
  color: #f2eaff;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background:
    linear-gradient(135deg,#2c0d50,#1a0a30) padding-box,
    url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,0 140,0 70,70' fill='%23facc15'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center, right 14px center;
  background-size: cover, 12px;

  box-shadow: 0 0 10px rgba(180,140,255,0.6);
  margin-bottom: 20px;
}


#countrySelect option {
  background-color: #1a0a30;
  color: #f2eaff;
}

#countrySelect:hover {
  border-color: #b48cff;
  box-shadow: 0 0 12px rgba(180,140,255,0.9);
}

/* ------------------- GO BUTTON ------------------- */
#goButton {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 28px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  color: #f2eaff;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 4px 20px rgba(180,140,255,0.5),
              0 0 10px rgba(124,58,237,0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Hover glow & pop */
#goButton:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 6px 20px rgba(250,204,21,0.6),
    0 0 25px rgba(124,58,237,0.7),
    0 0 40px rgba(180,140,255,0.6);
}

/* Active / click effect */
#goButton:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 4px 15px rgba(180,140,255,0.5),
    0 0 10px rgba(124,58,237,0.3);
}

/* Disabled state */
#goButton:disabled {
  background: #4b5563;
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Optional: shiny sliding highlight */
#goButton::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2), transparent, rgba(255,255,255,0.2));
  transform: rotate(45deg) translateX(-100%);
  transition: all 0.7s ease;
  border-radius: inherit;
}

#goButton:hover::before {
  transform: rotate(45deg) translateX(100%);
}



.join-field {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #f2eaff;
  border-radius: 12px;
  border: 2px solid rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  outline: none;
  box-shadow: 0 0 8px rgba(180,140,255,0.5);
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin-bottom: 12px;
}

/* Hover & focus glow effect */
.join-field:hover,
.join-field:focus {
  border-color: #facc15;
  box-shadow: 0 0 14px rgba(250,204,21,0.8);
  transform: scale(1.02);
}

/* For select dropdown arrow */
.join-field select {
  background-image:
    linear-gradient(135deg,#7c3aed,#a78bfa),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,0 140,0 70,70' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 12px, auto;
}


/* BOMBIE */
#armyBomb { animation: float 4s ease-in-out infinite; position:relative; width:160px; height:240px; flex-shrink:0; display:flex; flex-direction:column; align-items:center; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
#glow {
  position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:180px; height:180px;
  background:radial-gradient(circle, rgba(186,153,255,0.6), transparent 70%);
  filter:blur(14px); z-index:0;
}
#head { position:absolute; top:20px; left:50%; transform:translateX(-50%);
  width:140px; height:140px; border-radius:50%;
  background: radial-gradient(circle at top,#fff,#d9ccff); z-index:2;}
#blush-left,#blush-right { position:absolute; top:80px; width:20px; height:10px; border-radius:50%; background:rgba(255,182,193,0.6); }
#blush-left{left:35px;} #blush-right{right:35px;}
#eyes { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); width: 100px; height: 30px; display: flex; justify-content: space-between; z-index: 3; }
.eye { position: relative; width: 28px; height: 28px; background: radial-gradient(circle at 30% 30%, #666, #111 70%); border-radius: 50%; overflow: hidden; animation: blink 8s infinite; }
.eye.right { animation-delay: 0.3s; }
.eye::before { content: ""; position: absolute; top: 5px; left: 5px; width: 7px; height: 7px; background: rgba(255,255,255,0.9); border-radius: 50%; }
.eye::after { content: ""; position: absolute; bottom: 4px; right: 5px; width: 6px; height: 6px; background: rgba(180,140,255,0.8); border-radius: 50%; box-shadow: 0 0 10px rgba(180,140,255,0.9); }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.15); } }

#inner { position:absolute; top:62%; left:50%; transform:translate(-50%,-50%);
  width:36px; height:50px; background:linear-gradient(#7c3aed,#a78bfa);
  clip-path: polygon(0 0,45% 0,50% 15%,55% 0,100% 0,60% 100%,40% 100%); opacity:0.8; }
#handle { position:absolute; top:150px; left:50%; transform:translateX(-50%);
  width:50px; height:90px; background: linear-gradient(#333,#111); border-radius:0 0 12px 12px; z-index:2; }

#bombieSpeech {
  position: absolute;
  top: 20px;
  left: 10%;
  transform: translateX(-50%) scale(0.95);
  max-width: 240px;
  background: rgba(20,10,50,0.9);
  border: 2px solid #b48cff;
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f2eaff;
  text-align: center;
  box-shadow: 0 0 10px rgba(180,140,255,0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 5;
}

#bombieSpeech.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

#armyBombWrapper {
  position: absolute;      /* take it out of flex flow */
  top: 120px;              /* adjust vertical position */
  right: 180px;             /* adjust horizontal position */
  width: 160px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 10;             /* ensure it sits above quiz */
}


.leave-btn {
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.leave-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 12px rgba(255,99,71,0.8), 0 0 20px rgba(255,99,71,0.6);
}


.member-card p, .member-card span {
  color: #f3e8ff;
}
.join-field::placeholder {
  color: #e5d4ff;
}


.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #FFD700 0%, #facc15 70%);
  border-radius: 50%;
  animation: sparkle 3s infinite;
  filter: blur(1px);
}

@keyframes sparkle {
  0% { transform: translateY(0) scale(0.5); opacity: 0.7; }
  50% { transform: translateY(-20px) scale(1); opacity: 1; }
  100% { transform: translateY(0) scale(0.5); opacity: 0.7; }
}



#floatingTooltip {
  position: absolute;
  display: none;
  background: #1a0a30;
  border: 1px solid #b48cff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  color: #f2eaff;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 15px rgba(180,140,255,0.6);
}

.group-box p {
  margin: 2px 0;
}


.member-panel {
  position: absolute;  /* relative to viewport */
  transform: translateX(-20%);
  background: linear-gradient(135deg, #2a1550, #1c0f33);
  border: 2px solid #b48cff;
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 160px;
  text-align: center;
  color: #f2eaff;
  font-size: 0.85rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
}


.member-container {
  position: relative; /* make avatars relative to container */
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}


.member-panel button {
  margin-top: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: white;
}

.member-avatar {
  position: relative; /* for panel positioning */
  cursor: pointer;
}


.member-avatar.current-user {
  border: 2px solid #ff8c42;  /* bright outline for your avatar */
  background-color: #ffd9b3;  /* subtle background */
  color: #000;                /* initials color */
}

#disclaimer {
    position: fixed;       /* fixed on screen */
    bottom: 10px;          /* distance from bottom of viewport */
    left: 50%;             /* center horizontally */
    transform: translateX(-50%); /* true horizontal centering */
    width: auto;           /* let content determine width */
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: auto;
    z-index: 9999;         /* on top of most elements */
    background: rgba(0,0,0,0.3); /* optional: make it slightly readable over content */
    padding: 4px 8px;      /* optional: some padding */
    border-radius: 4px;    /* optional: rounded corners */
	margin-top:30px;
}


.mobile-actions {
  display: none;
}


.search-bar {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.search-bar input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

.search-bar button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

#speechBubble {
  position: absolute;
  top: -40px;
  right: -5px;
  transform: translateX(-50%) translateY(10px) scale(0.85);
  max-width: 850px;
  background: rgba(20,10,50,0.9);
  border: 2px solid #b48cff;
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #f2eaff;
  text-align: center;
  box-shadow: 0 0 10px rgba(180,140,255,0.6),0 0 18px rgba(180,140,255,0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: all 0.4s ease;
}
#speechBubble.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
#speechBubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(20,10,50,0.9);
}







.secret-btn {
  position: relative;
  padding: 6px 14px;          /* compact padding */
  font-size: 13px;             /* slightly bigger text */
  font-weight: 700;
  color: #4c1d95;              /* dark purple text */
  background: linear-gradient(135deg, #facc15, #fbbf24, #f59e0b); /* golden gradient */
  border: none;
  border-radius: 10px;         /* compact, rounded corners */
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 
    0 4px 12px rgba(255, 193, 7, 0.6),
    inset 0 1px 4px rgba(255,255,255,0.3); /* subtle inner glow */
  transition: all 0.3s ease;
  overflow: hidden;
  margin-top:30px;
  margin-bottom: 30px;
  margin-left: 350px;
}

/* Gloss overlay */
.secret-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;               /* top half for gloss */
  background: rgba(255,255,255,0.3);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  pointer-events: none;
  mix-blend-mode: overlay;    /* soft shiny effect */
}

/* Hover lift & glow */
.secret-btn:hover {
  box-shadow: 
    0 6px 18px rgba(255, 193, 7, 0.8),
    0 0 12px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px) scale(1.05);
}

/* Click feedback */
.secret-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 
    0 2px 8px rgba(255, 193, 7, 0.5);
}



.home-button {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 8px 14px;
  font-size: 24px;
  font-weight: 600;
  background: var(--purple-dark);
  color: var(--text-main);
  border: 2px solid var(--gold);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(255,215,0,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1000;
}

.home-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,215,0,0.8);
}





@media (max-width: 600px) {
	
	 body {
    padding-top: 20px;
  }
	
	  .secret-btn {
  display: block;
  width: 58%;
  max-width: 320px;
  font-size: 15px;
  padding: 14px 20px;
  margin: 20px auto 0;
  border-radius: 12px;
  margin-left:140px;
	transform:scale(0.60);
	margin-top:10px;
}



  .flex-container {
    flex-direction: column;  /* stack everything vertically */
    gap: 20px;
    align-items: center;
  }


  .groups-section,
  .create-section {
    display: none;
  }

  .groups-section.active,
  .create-section.active {
    display: block !important;
  }

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 90%;
    max-width: 300px;
    margin: 0 auto 20px auto;
	margin-top:15px;
	margin-bottom:15px;
  }

  .mobile-actions button {
    width: 100%;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #f2eaff;
    box-shadow: 0 0 10px rgba(180,140,255,0.5);
  }

  .mobile-actions button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(255,215,0,0.6), 0 0 25px rgba(180,140,255,0.6);
  }


  /* Move create-section first on mobile */
  .create-section {
    order: 1;       /* negative order moves it before everything else */
    width: 95%;
    max-width: 95%;
    padding: 20px;
    border-radius: 20px;
  }

  .groups-section {
    order: 0;        /* default order */
    width: 100%;
  }

  /* Group list: single column */
  .group-list {
    display: grid;
    grid-template-columns: 1fr;  /* one box per row */
    gap: 15px;
    justify-items: center;
  }

  .group-box {
    width: 100%;
    max-width: 300px;
  }

  /* Buttons full width */
  .group-box button,
  .create-section button {
    width: 100%;
    padding: 10px 0;
    font-size: 1.2em;
  }

  /* Headings and text smaller */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .group-box h3 { font-size: 1.2rem !important; }
  .group-box p { font-size: 1rem !important; }

  /* Member avatars */
  .member-avatar {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
  }

  /* Modal full width */
  .modal-content {
    width: 90%;
    padding: 20px;
  }

#armyBombWrapper {
  position: fixed;
  bottom: 20px; /* visual bottom */
  right: 20px;
  transform: scale(0.6);
  transform-origin: top right;  /* shrink from top, so bottom moves naturally */
  z-index: 10;
}

  /* Disclaimer */
  #disclaimer {
	  margin-top:40px;
    bottom: 5px;
    font-size: 11px;
    padding: 3px 6px;
	width:100%;
  }
  
  
.search-bar {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.search-bar input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

.search-bar button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
  
        body::before {
    top: 95%;               /* move slightly higher for small screens */
    left: 35%;              /* closer to center for balance */
    font-size: 20px;        /* smaller font for mobile */
    transform: rotate(0deg) translateX(-10px); /* subtle tilt + slight shift */
	color: rgba(255,255,255,0.15); /* very subtle */
  }
  
  
  .home-button {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 8px 14px;
  font-size: 14px !important;
  font-weight: 600;
  background: var(--purple-dark);
  color: var(--text-main);
  border: 2px solid var(--gold);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(255,215,0,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1000;
}

.home-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,215,0,0.8);
}
  
  
}

