
html, body, #app, .app-shell, button, input, textarea, select {
  font-family: 'Nunito', sans-serif !important;
}


html, body, #app, .app-shell {
  font-family: 'Nunito', sans-serif !important;
}


:root{
  /* TARDY: Neutral product background (replaces sky gradient) */
  --bg: #f8fafc;




  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --indigo: #4f46e5;
  --indigo-900: #312e81;
  --emerald: #10b981;
  --shadow: 0 18px 40px rgba(79, 70, 229, 0.12);
}


*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text);
}



.app-shell{
  min-height: 100vh;
  max-width: 420px;
  margin: 0 auto;
  background: transparent;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.main{
  flex: 1;
  overflow-y: auto;
  padding-bottom: 96px;
}

.p-6{ padding: 24px; }
.text-center{ text-align: center; }
.items-center{ align-items: center; }
.flex{ display: flex; }
.flex-col{ flex-direction: column; }
.mt-8{ margin-top: 32px; }
.space-y-8 > * + *{ margin-top: 32px; }
.space-y-6 > * + *{ margin-top: 24px; }
.space-y-4 > * + *{ margin-top: 16px; }
.space-y-3 > * + *{ margin-top: 12px; }
.space-y-1 > * + *{ margin-top: 4px; }

.h2-title{
  font-size: 40px;
  line-height: 1.05;
  font-weight: 700;

  color: #1f2937; /* slightly lighter than main text */
}
/* TARDY: emphasize the word under the cloud */
.rain-word{
  font-weight: 800;   /* heavier than Running */
}
/* TARDY: slightly reduce the first word */
.title-line{
  font-weight: 700;   /* lighter than late */
}

.subtitle{
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  max-width: 340px;
  margin: 0 auto;
  white-space: pre-line;
}
/*
.wavy-underline{
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--emerald);
  text-underline-offset: 10px;      
  text-decoration-thickness: 2px;   
}
*/
/* EXPERIMENT: wavy underline for "tarde"
   Re-enable if testing visual emphasis */
/*
.rain-word{
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: #3b82f6;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px; 
}
*/
/* fit weather in one row */
.statusGrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  width: 100%;
}

/* individual clock buttons */
.statusGrid .statusBtn {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-sizing: border-box;
  padding: 0;                /* keeps perfect circle */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* numbers below buttons */
.statusScaleLabels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.7;
  text-align: center;
}

.statusScaleLabels span {
  font-weight: 500;
}



.card{
  width: 100%;
  background: var(--card);
  border: 1px solid rgba(79, 70, 229, 0.12);
  padding: 24px;
  border-radius: 40px;
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.10);
}



.smallcaps{
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--indigo-900);
}

.tiny-muted{
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  color: #4f46e5;
}

.input-code{
  width: 100%;
  padding: 18px;
  background: #f9fafb;
  border: 2px solid transparent;
  border-radius: 18px;
  outline: none;
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  text-align: center;
  letter-spacing: 0.8em;
  font-size: 32px;
  font-weight: 900;
}

.input-code:focus{ border-color: var(--indigo); }

.btn{
  width: 100%;
  border: none;
  cursor: pointer;
  border-radius: 18px;
  padding: 16px 18px;
  font-weight: 900;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-primary{
  background: var(--indigo);
  color: #fff;
}

.btn-primary:disabled{
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

.btn-outline{
  background: #fff;
  color: var(--indigo);
  border: 2px solid rgba(79, 70, 229, 0.10);
  font-weight: 800;
  font-size: 16px;
}

.link-btn{
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 800;
  color: #6b7280;
  padding: 8px 0;
}

.divider{
  display: flex;
  align-items: center;
  gap: 16px;
  color: #d1d5db;
  padding: 0 24px;
}

.divider-line{
  height: 1px;
  flex: 1;
  background: #f3f4f6;
}

.divider-text{
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.error{
  margin-top: 8px;
  color: #ef4444;
  font-size: 10px;
  font-weight: 900;
}

.feature-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  padding: 24px 24px 0;
}

.feature-card{
  padding: 16px;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.04);
  text-align: left;
}

.feature-card h3{
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.feature-card p{
  margin: 6px 0 0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #9ca3af;
}

.header{
  padding: 16px 18px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .brand{
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--indigo-900);
}
/* Create page helpers */
.h2{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}
.p-muted{
  margin: 6px 0 0;
  color: #6b7280;
  font-weight: 700;
  line-height: 1.45;
}

.back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f46e5;
  font-weight: 800;
  font-size: 13px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px 0;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label{
  font-size: 13px;
  font-weight: 800;
  color: #374151;
}

.input{
  width: 100%;
  padding: 14px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  outline: none;
  font-weight: 800;
}

.input:focus{
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.grid2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.divider-top{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #f3f4f6;
}

.input-indigo{
  background: #eef2ff;
  border: 1px solid rgba(79, 70, 229, 0.18);
}

.card-big{
  width: 100%;
  background: #fff;
  border: 1px solid rgba(79, 70, 229, 0.12);
  padding: 28px 16px;
  border-radius: 40px;
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.10);
  text-align: center;
}

.pill{
  padding: 16px;
  background: #eef2ff;
  border-radius: 18px;
  border: 1px solid rgba(79, 70, 229, 0.18);
}

.pill-kicker{
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(79, 70, 229, 0.55);
  margin: 0 0 6px;
}

.pill-title{
  margin: 0;
  font-weight: 900;
  color: #312e81;
  font-size: 18px;
}

.pill-sub{
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 900;
  color: rgba(79, 70, 229, 0.55);
}
/* ===== Header styles used by main.js ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: blur(12px);
  /*border-bottom: 1px solid #f3f4f6;*/
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brandBtn{ display:flex; align-items:center; gap:8px; cursor:pointer; }
.brandIcon{
  width:32px;
  height:32px;
  background:#f9fafb;   /* slightly stronger neutral gray */
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#4b5563;        /* strong neutral dark */
  border: 1px solid #e5e7eb; /* subtle outline so tile doesn't blend into background */
}



.brandText{ font-size:20px; font-weight:900; letter-spacing:-0.02em; color:#1f2937; margin:0; }
.topbarRight{ display:flex; align-items:center; gap:8px; }
/* TARDY: language button now matches rainy cloud tile */
.pillBtn{
  background:#f9fafb;          /* same surface as brandIcon */
  color:#4b5563;               /* same muted gray text */

  width:40px;
  height:40px;

  border-radius:999px;         /* keep circular shape */
  border:1px solid #e5e7eb;    /* subtle outline like logo */

  font-weight:700;             /* slightly lighter than before */
  font-size:11px;

  cursor:pointer;
}
/* subtle hover interaction */
.pillBtn:hover{
  background:#f3f4f6;
}

.iconBtn{ background:none; border:none; cursor:pointer; color:#9ca3af; padding:8px; font-size:18px; }
.iconBtnLight{ background:none; border:none; cursor:pointer; color:rgba(255,255,255,0.75); padding:6px; font-size:16px; }
.iconBtnLight:hover{ color:#fff; }

/* ===== Event room UI ===== */
/* TARDY: light event header (reversed from dark, shadow preserved elsewhere) */
.eventHero{
  background:#ffffff;      /* white like landing */
  color:#111827;           /* dark text */

  padding: 26px 24px 34px;

  border-bottom-left-radius: 44px;
  border-bottom-right-radius: 44px;

  /* keep natural separation via layout shadow, no border yet */
}



.eventHeroInner{ text-align:center; display:flex; flex-direction:column; gap:10px; }
.eventTitleRow{ display:flex; align-items:center; justify-content:center; gap:10px; }
/* TARDY: balanced event title */
.eventTitle{
  margin:0;
  font-size:22px;        /* reduced from 26 */
  font-weight:700;       /* reduced from 900 */
  text-transform: uppercase;
  letter-spacing:-0.01em;
}

/* TARDY: clearer event time */
/* TARDY: refined event time for light header */
.eventMeta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;

  color:#374151;        /* slightly darker gray for better contrast */
  font-weight:500;      /* softer than before */
  font-size:17px;       /* slightly stronger presence */

  text-transform:none;  /* remove ALL CAPS */
  letter-spacing:0;     /* remove extra spacing */
}

/* TARDY: clock matches time size and color */
.eventMeta i{
  font-size:17px;
  color:#374151;
}
/* TARDY: copy icon styling for light header */
.copyIcon{
  font-size:14px;
  color:#374151;    /* visible on white */
  opacity:0.8;      /* subtle but readable */
  cursor:pointer;
}

.copyIcon:hover{
  opacity:1;
}


.eventMetaPill{ background: rgba(255,255,255,0.10); padding:4px 8px; border-radius:10px; color:#fff; font-weight:900; letter-spacing:0.02em; }
.codeRow{
  margin-top:6px;
  background:#f3f4f6;  /* subtle light surface for code */

  padding: 10px 12px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.codeLabel{ font-size:10px; font-weight:900; opacity:0.6; }
.codeMono{ font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace; font-weight:900; letter-spacing:0.2em; }

.padWrap{ margin-top:-18px; }
.card-big.left{ text-align:left; }
.statusGrid{
  margin-top:14px;
  display:flex;
  justify-content: space-between;
  gap:10px;
  flex-wrap: nowrap;
}

.statusBtn{
  border:2px solid #e5e7eb;
  background:#fff;
  border-radius: 18px;
  padding: 12px 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:900;
  font-size:10px;
  text-transform: uppercase;
  cursor:pointer;
}
.statusBtn i{ font-size:22px; color:#6b7280; }
/*.statusBtn.selected{ border-color: transparent; color:#fff; }*/

/* ============================= */
/* Bottom Action Row Layout      */
/* ============================= */

.row2 {
  margin-top: 20px;            /* space above buttons */
  display: flex;               /* horizontal layout */
  gap: 12px;                   /* space between buttons */
  align-items: stretch;        /* equal height */
}


/* ============================= */
/* Shared Button Structure       */
/* (controls size & typography)  */
/* ============================= */

.row2 button {
  flex: 1 1 0;                 /* equal width */
  min-width: 0;                /* prevents overflow */
  box-sizing: border-box;

  padding: 8px 0;              /* 🔧 height control (increase to 10px if too slim) */

  display: flex;               /* centers icon + text */
  align-items: center;
  justify-content: center;
  gap: 6px;                    /* 🔧 space between icon and text */

  font-weight: 600;            /* 🔧 text weight */
  font-size: 11px;             /* 🔧 text size */
  letter-spacing: 0.02em;      /* 🔧 text spacing */
  text-transform: none;        /* remove uppercase for calmer feel */

  border-radius: 14px;         /* 🔧 corner roundness */

  cursor: pointer;
}


/* ============================= */
/* Calm Base Colors (Always On)  */
/* ============================= */

/* TARDY: Arrived button (inactive) */
.arrivedBtn {
  background:#ffffff;                    /* white like pill */
  border:1px solid #e5e7eb;               /* neutral border */
  color:#111827;                          /* dark text */
}
/* ============================= */
/* OLD VERSION — Soft Red Inactive
   (kept for possible future use)
*/
/*
.miniAction {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  color: #dc2626;
}
*/
/* TARDY: Row 2 inactive buttons (neutral) */
.miniAction {
  background:#ffffff;
  border:1px solid #e5e7eb;
  color:#111827;
}


/* ============================= */
/* Active / Selected State       */
/* ============================= */

/* TARDY: Arrived button (active) */
.arrivedBtn.arrivedOn {
  background:#ffffff;          /* stays white */
  color:#059669;               /* green text */
  border:2px solid #059669;    /* green border (strong but not bulky) */
  font-weight:800;             /* slightly stronger text */
}

/* ============================= */
/* OLD VERSION — dangerOn v1
   (kept for reference)
*/
/*
.dangerOn {
  background: #dc2626;
  color: #ffffff;
  border-color: transparent;
}
*/


/*up to here*/
.miniAction i{ margin-right:8px; }
.dangerOn{ background:#ef4444; color:#fff; border-color:transparent; }
.infoOn{ background:#0891b2; color:#fff; border-color:transparent; }

.boardHeader{ display:flex; align-items:center; justify-content:space-between; padding: 0 4px 8px; }

.rowCard{
  background:#fff;
  border: 1px solid #f3f4f6;
  border-radius: 22px;
  padding: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  box-shadow: 0 6px 16px rgba(17,24,39,0.04);
}
.rowMe{ border-color: rgba(79,70,229,0.22); box-shadow: 0 10px 22px rgba(79,70,229,0.10); }
.rowGone{ opacity:0.65; filter: grayscale(0.35); }

.rowLeft{ display:flex; align-items:center; gap:12px; flex:1; min-width:0; }
.avatar{
  width:46px; height:46px; border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  font-weight:900; color:#fff;
}
.avatarArrived{ background:#fff; color:#059669; border:2px solid #10b981; }

.rowText{ flex:1; min-width:0; }
.rowName{ display:flex; align-items:center; gap:6px; font-weight:900; font-size:13px; color:#111827; }
.rowTime{ margin-top:4px; font-size:10px; font-weight:900; text-transform: uppercase; letter-spacing:0.12em; color:#9ca3af; }
.truncate{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width: 180px; }

.youTag{ font-size:10px; font-weight:900; color:#4f46e5; }
.orgTag{ font-size:10px; font-weight:900; color:#d97706; }

.badge{
  font-size:10px;
  font-weight:900;
  text-transform: uppercase;
  letter-spacing:0.12em;
  padding: 8px 10px;
  border-radius: 14px;
  color:#fff;
  white-space:nowrap;
}
.badgeArrived{
  background:#fff;
  color:#059669;
  border:2px solid #10b981;
}
.badgeLater {
  background:#082261;      /* deep navy */
  color:#38bdf8;           /* sky blue */
  border:1px solid #1e293b;
  font-weight:700;
}

/* status colors */
.bg-emerald{ background:#10b981; }
.bg-emerald2{ background:#059669; }
.bg-amber{ background:#f59e0b; }
.bg-orange{ background:#f97316; }
.bg-red{ background:#ef4444; }
.bg-red2{ background:#dc2626; }
.bg-slate{ background:#64748b; }
.bg-indigo{ background:#4f46e5; }
.bg-rose{ background:#f43f5e; }
.bg-cyan{ background:#0891b2; }
.bg-gray{ background:#6b7280; }
.bg-gray2{ background:#9ca3af; }

/* TARDY: spacing for lifecycle actions */
.dangerZone{
  margin-top:18px;
  padding-top:18px;

  display:flex;
  flex-direction:column;
  gap:18px;   /* space between End Event and Use Again */
}

.dangerBtn{
  width:100%;
  border:2px solid rgba(239,68,68,0.15);
  background: rgba(239,68,68,0.06);
  color:#ef4444;
  border-radius:18px;
  padding: 14px 12px;
  font-weight:900;
  text-transform: uppercase;
  letter-spacing:0.18em;
  cursor:pointer;
}
.useAgainBtn{
  border:2px solid rgba(59,130,246,0.25);
  background: rgba(59,130,246,0.10);
  color:#3b82f6;
}


.neutralBtn{
  width:100%;
  border:2px solid #f3f4f6;
  background: rgba(107,114,128,0.06);
  color:#6b7280;
  border-radius:18px;
  padding: 14px 12px;
  font-weight:900;
  text-transform: uppercase;
  letter-spacing:0.18em;
  cursor:pointer;
}
.confirmBox{ display:flex; flex-direction:column; gap:10px; }
.confirmText{ font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:0.18em; text-align:center; color:#6b7280; }
.confirmRow{ display:flex; gap:10px; }
.confirmYes{ flex:1; background:#ef4444; color:#fff; border:none; border-radius:18px; padding:14px 12px; font-weight:900; text-transform:uppercase; letter-spacing:0.18em; cursor:pointer; }
.confirmNo{ flex:1; background:#f3f4f6; color:#6b7280; border:none; border-radius:18px; padding:14px 12px; font-weight:900; text-transform:uppercase; letter-spacing:0.18em; cursor:pointer; }

/* edit sheet */
.sheetOverlay{
  position: fixed;
  inset: 0;
  background: rgba(49,46,129,0.75);
  backdrop-filter: blur(10px);
  display:flex;
  align-items:flex-end;
  z-index: 200;
}
.sheet{
  width:100%;
  background:#fff;
  border-top-left-radius: 44px;
  border-top-right-radius: 44px;
  padding: 18px 18px 24px;
  max-height: 90vh;
  overflow:auto;
}
.sheetTop{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.sheetTitle{ font-weight:900; color:#312e81; font-size:18px; }
.bigCenter{ text-align:center; font-size:18px; font-weight:900; padding:18px; border-radius: 22px; }
.bigIcon{
  width:80px;height:80px;background:#eef2ff;color:#4f46e5;border-radius:999px;
  display:flex;align-items:center;justify-content:center;margin:0 auto;font-size:30px;
}
.codePill{
  display:inline-block;
  font-size:10px;
  font-weight:900;
  letter-spacing:0.14em;
  text-transform:uppercase;
  background:#e0e7ff;
  color:#4f46e5;
  padding: 6px 10px;
  border-radius: 999px;
}
.bigTitle{ margin:10px 0 0; font-size:26px; font-weight:900; color:#111827; }
.smallMeta{ margin:6px 0 0; color:#6b7280; font-weight:800; }
.codeBox{
  margin-top:14px;
  background:#f9fafb;
  border:2px dashed #e5e7eb;
  border-radius: 18px;
  padding: 14px 10px;
}
.codeText{ margin:0; font-size:34px; font-weight:900; letter-spacing:0.2em; color:#312e81; }
.joinCount{ margin:10px 0 0; color:#9ca3af; font-weight:900; font-size:12px; }

/* This doesn’t control color — your JS does — it just makes them look/behave consistent.*/
.statusBtn{
  border: 2px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px 10px;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 10px;
  cursor:pointer;
  transition: transform 0.06s ease;
}
/* Weather buttons override */
.statusGrid .statusBtn {
  border-radius: 50%;
  padding: 0;
  flex: 1 1 0;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(135, 206, 250, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.statusGrid .statusBtn.selected {
  background: rgba(135, 206, 250, 0.12);
  border: 1.5px solid rgba(135, 206, 250, 0.35);
}


.statusBtn:active{
  transform: scale(0.96);
}

.statusBtn i{
  font-size: 24px;
}

.statusBtn .emoji-icon {
  font-size: 24px;   /* normal size (clocks) */
  line-height: 1;
}

.statusBtn .emoji-icon.emoji-big {
  font-size: 34px;   /* big dramatic rain cloud */
}


/* --- Landing feature hero --- */
.feature-hero {
  position: relative;
  overflow: hidden;
  padding: 36px !important;
  border-radius: 40px;
  border: 1px solid rgba(79, 70, 229, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%) !important;
  min-height: 140px; /* THIS makes it big like Join by Code */
}
/* =====================================================
   ENDED EVENTS — Layout + Cards
   ===================================================== */

/* Wrapper list spacing */
body.endedPage .endedWrap {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Card base — specificity wins over utilities */
body.endedPage .ended-card {
  border-radius: 18px;
  padding: 16px;

  background: linear-gradient(
    180deg,
    #e0e7ff 0%,
    #c7d2fe 100%
  );

  border: 1px solid #818cf8;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Label */
body.endedPage .ended-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 6px;
}

body.endedPage .ended-label i {
  font-size: 11px;
  opacity: 0.9;
}

/* Title */
body.endedPage .ended-title {
  font-size: 16px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 6px;
}

/* Meta */
body.endedPage .ended-meta {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

/* Location */
body.endedPage .ended-location {
  font-size: 12px;
  color: #475569;
  margin-bottom: 6px;
}

/* Organizer */
body.endedPage .ended-organizer {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

/* Remove button */
body.endedPage .ended-remove {
  margin-top: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 11px;
  font-weight: 800;
  color: #475569;
}

body.endedPage .ended-remove:hover {
  color: #334155;
}
/* =========================
   HOME — Landing Page
   ========================= */

/* Subtitle under main title */
.subtitle {
  font-size: 16px;
  line-height: 1.4;
  max-width: 280px;
  opacity: 0.85;
}

/* Join code input */
.input-code {
  font-size: 18px;
  padding: 12px 14px;
  letter-spacing: 0.2em;
}

/* Optional: tighten the card a bit */
/*
.card {
  max-width: 320px;
  width: 100%;
}
*/

/* HOME — Join by code box */

/* Title above input */
.smallcaps {
  font-size: 11px;        /* más chico */
  letter-spacing: 0.12em;
  opacity: 0.8;
}

/* Optional: subtitle under that title */
.tiny-muted {
  font-size: 12px;
  opacity: 0.9;
}

  

/* clock pattern background */
/* DISABLED clock background
.feature-hero-bg {
  position: absolute;
  inset: 0;

  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%234f46e5' stroke-width='1' opacity='0.12'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l4 2'/%3E%3C/g%3E%3C/svg%3E");

  background-repeat: repeat;
  background-size: 36px 36px;

  pointer-events: none;
}
*/





.feature-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #e0e7ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 10px 25px rgba(79,70,229,0.25);
}



.feature-hero-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 900;
  font-size: 15px;              /* 👈 slightly larger */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #312e81;
}


.feature-hero-dot {
  opacity: 0.4;
}

.feature-hero-sub {
  color: #4f46e5;
}
/* =========================
   Landing feature (balanced)
   ========================= */

   .feature-balance.vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px;
    border-radius: 36px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #eef2ff;
  }
  
  
  /* Icon container */
  .feature-balance.vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    border-radius: 36px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #eef2ff;
  }
  
  /* Group icon (top) */
  .feature-icon.group {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
  }
  
  /* Clock icon (bottom) */
  .feature-icon.clock {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }
  
  /* Text */
  .feature-text {
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    line-height: 1.45;
  }
  
  /* Base icon */
  .feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }
  
  /* Group icon (blue, top) */
  .feature-icon.group {
    background: #eef2ff;
    color: #4f46e5;
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 2;
  }
  
  /* Clock icon (green, bottom) */
  .feature-icon.clock {
    background: #ecfdf5;
    color: #059669;
    position: absolute;
    bottom: 0;
    right: 10px;
  }
  
  /* Text under icons */
  .feature-text {
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    line-height: 1.4;
  }
  /* --- Landing bottom feature (balanced vertical) --- */
.feature-balance {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 24px;
  padding: 28px 24px;

  border-radius: 36px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-balance.vertical {
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

/* icons */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
}

.feature-icon.group {
  background: #eef2ff;
  color: #2563eb; /* blue */
}

.feature-icon.clock {
  background: #ecfdf5;
  color: #16a34a; /* green */
}

/* text */
.feature-text {
  display: flex;
  flex-direction: column;
  gap: 6px;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #111827;
}
/* Pill length and height*/
.badge {
  min-width: 88px;            /* 👈 same visual width */
  height: 32px;               /* 👈 same height */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 10px;            /* horizontal breathing room */
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;

  border-radius: 999px;
  white-space: nowrap;        /* 👈 prevents wrapping */
}
/* Rain emoji over a single word */
.rain-word {
  position: relative;
  display: inline-block;
  padding-top: 0.6em; /* makes space for the emoji */
}

.rain-word .rain-emoji {
  position: absolute;
  top: -0.5em; /* sube/baja la nube */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8em; /* tamaño del emoji */
  line-height: 1;
  pointer-events: none;
}
/* ===== Ended Events visual mode ===== */
body.endedPage .topbar{
  background: rgba(30,27,75,0.75);
  backdrop-filter: blur(6px);
}
/* =====================================================
   ENDED EVENTS — Layout + Cards
   ===================================================== */

/* Wrapper list spacing (replaces inline flex styles) */
.endedWrap {
  padding-top: 0;              /* antes estaba inline */
  display: flex;
  flex-direction: column;
  gap: 14px;                   /* separación entre cards */
}

/* Card base */
.ended-card {
  border-radius: 18px;
  padding: 16px;

  /* Fondo suave (no blanco puro) */
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);

  /* Archivo / histórico */
  border: 1px dashed #c7d2fe;

  /* Sombra mínima */
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.06);
}

/* Label top: flag + EVENTO TERMINADO */
.ended-label {
  display: flex;
  align-items: center;
  gap: 8px;                    /* “una letra mayúscula” */
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
}

.ended-label i {
  font-size: 11px;
  opacity: 0.9;
}

/* Title */
.ended-title {
  font-size: 16px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 6px;
}

/* Meta line: date/time */
.ended-meta {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

/* Location line */
.ended-location {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

/* Organizer */
.ended-organizer {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

/* Remove button: subtle (not primary) */
.ended-remove {
  margin-top: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
}

.ended-remove:hover {
  color: #64748b;
}
/*BANNER YES CLEARED PARTICIPANTS*/
.use-again-banner {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: #E8F2FF;
  color: #1F4ED8;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: top 0.25s ease;
  z-index: 1000;
}

.use-again-banner.visible {
  top: 20px;
}
/*logo
.brandIcon {
  margin-right: 6px;
  opacity: 0.9;
}
/* TARDY: subtle delay description only in status card */
.card-big.left .tiny-muted{
  color:#6b7280;          /* soft gray */
  font-size:13px;         /* readable but subtle */
  font-weight:400;        /* normal weight */
  text-transform:none;    /* remove ALL CAPS */
  letter-spacing:0;       /* remove extra spacing */
}
/* TARDY: force correct text colors inside light event header */
.eventHero,
.eventHero *{
  color:#111827;   /* default dark text inside header */
}
/* TARDY: event time styling */
.eventHero .eventMeta{
  color:#374151;
  font-size:17px;
  font-weight:500;
  text-transform:none;
  letter-spacing:0;
}

/* clock icon */
.eventHero .eventMeta i{
  color:#374151;
  font-size:17px;
}

/* copy icon */
.eventHero .copyIcon{
  color:#374151;
  font-size:14px;
  opacity:0.8;
}
/* TARDY: confirm buttons for Use Again (neutral, not danger) */
.confirmYesUseAgain,
.confirmNoUseAgain{
  flex:1;                     /* equal width */
  height:44px;                /* proper tap size */
  border-radius:12px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
}
.confirmYesUseAgain{
  background:#374151;   /* softer neutral dark */
  color:#ffffff;
  border:none;
}
.confirmNoUseAgain{
  background:#ffffff;
  color:#374151;
  border:1px solid #e5e7eb;
}
/* TARDY: On Time button (temporary neutral layout test) */
.onTimeBtn{
  background:#ffffff;
  border:1px solid #e5e7eb;
  color:#111827;
}

/* TARDY: On Time button active state */
.onTimeOn{
  background:#22c55e;     /* strong green */
  color:#ffffff;
  border-color:#22c55e;
}
/*FLASH animation time*/
.timeFlash {
  animation: timeflash 700ms ease-out 1;
}

@keyframes timeflash {
  0%   { background: rgba(79,70,229,0.15); }
  100% { background: transparent; }
}

