/* =========================================================
   SEMANA DE SISTEMAS — STYLES

   1. Variables and base
   2. Photo backgrounds
   3. Hero
   4. Speakers
   5. Schedule
   6. Schedule: week view
   7. Competitions
   8. Footer
   9. Tablet and mobile
   10. Login and modal
   11. Activity page (evento.html)
   12. Student groups
   13. Gallery
   14. Weekly game
   15. Team registration
   ========================================================= */


/* ---------- 1. Variables and base ---------- */

:root {
  --navy: #0a2c52;
  --blue: #1667c2;
  --blue-dark: #0f4f99;
  --blue-bright: #2580da;
  --paper: #e9e9e7;
  --ink: #26303b;
  --ink-soft: #4d5866;
  --gray: #6f7a87;
  --line: #e2e6eb;

  --font-title: 'Alfa Slab One', serif;      /* thick uniform-style letters */
  --font-varsity: 'Graduate', serif;       /* college letters */
  --font-idcard: 'Cinzel', serif;              /* ID card letters */
  --font-gta: 'Pricedown', 'Pricedown Black', 'Impact', sans-serif; /* GTA (Pricedown) letters */
  --font-body: 'Barlow', sans-serif;
  --font-narrow: 'Barlow Condensed', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.55;
  color: var(--ink);
  background: url(../img/texture.svg), var(--paper);
}

h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }

.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

@keyframes appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}


/* ---------- 2. Photo backgrounds of the Facultad de Minas ----------
   Usage: class="photo-bg photo-bg--entrance".
   The photo goes in ::before and a blue veil in ::after. */

.photo-bg {
  position: relative;
  isolation: isolate;               /* keeps the photo behind the content */
  overflow: hidden;
  background-color: var(--navy);
}
.photo-bg::before,
.photo-bg::after {
  content: '';
  position: absolute;
  z-index: -1;
}
.photo-bg::before {
  inset: -14px;                     /* extra margin so the blur leaves no edges */
  background-size: cover;
  background-position: center;
  filter: blur(2px);                /* the photos are small: this hides the pixelation */
}
.photo-bg::after {
  inset: 0;
  background: linear-gradient(rgba(10, 44, 82, .6), rgba(10, 44, 82, .8));
}

.photo-bg--entrance::before   { background-image: url(../img/campus-entrance.jpg); }
.photo-bg--building::before  { background-image: url(../img/campus-building.jpg); }
.photo-bg--auditorium::before { background-image: url(../img/campus-auditorium.jpg); }

.photo-bg--soft::after { background: rgba(150, 155, 220, .3); }   /* light lilac veil: the photo looks almost natural */
.photo-bg--light { background-color: var(--paper); }
.photo-bg--light::after { background: rgba(236, 236, 234, .9); }


/* ---------- 3. Hero ---------- */

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 88px 0 96px;
}

.hero__place {
  font-family: var(--font-varsity);
  font-size: 14px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #a9d1ff;
}

.hero__title { margin-top: 10px; }

.hero__eyebrow {
  display: block;
  font-family: var(--font-varsity);
  font-size: clamp(22px, 3.2vw, 38px);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff;
}

/* College uniform letters: blue fill, white border and dark blue outline.
   The outer outline is a copy of the text (::before) with a thicker stroke behind. */
.varsity-letters {
  position: relative;
  display: inline-block;
  isolation: isolate;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(54px, 10.6vw, 138px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--blue);
  -webkit-text-stroke: .1em #fff;
  paint-order: stroke fill;
}
.varsity-letters::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-text-stroke: .2em var(--blue-dark);
  paint-order: stroke fill;
  filter: drop-shadow(0 .06em 0 rgba(0, 0, 0, .3));
}

/* Days + button, in one row (they stack by themselves on mobile) */
.hero__actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero__days {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  background: rgba(10, 44, 82, .5);
}
.hero__days li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 52px;
  padding: 0 24px;
  font-family: var(--font-varsity);
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}
.hero__days li + li { border-left: 1px solid rgba(255, 255, 255, .25); }
.hero__days small {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .04em;
  color: #a9d1ff;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 26px 0 30px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-varsity);
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  /* double border: white outside and a blue line inside */
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px var(--blue), 0 12px 26px -10px rgba(0, 0, 0, .6);
  transition: transform .15s;
}
.hero__button:hover { transform: translateY(-2px); }
.hero__button svg { width: 18px; height: 18px; color: var(--blue); }


/* ---------- 4. Speakers ---------- */

.speakers .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 0 80px;
}
.speakers .section-title { margin-bottom: 26px; }

/* Eyebrow in a frosted glass capsule like the speaker selector's,
   with a small dash on each side like the ID card's "— de sistemas —" */
.speakers .section-title__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px -14px rgba(10, 44, 82, .6);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--blue);
}
.speakers .section-title__eyebrow::before,
.speakers .section-title__eyebrow::after {
  content: '';
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .45;
}

/* Speaker selector: round photos with the name below, in a frosted glass capsule.
   The chosen one shows in full with a blue ring; the others, a bit dimmed. */
.speakers__thumbnails {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 34px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 28px;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px -20px rgba(10, 44, 82, .6);
  max-width: 100%;                 /* on narrow phones the thumbnails shrink instead of overflowing */
}
.thumbnail[hidden] { display: none; }
.speakers__arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  color: var(--blue);
  transition: background .2s;
}
.speakers__arrow:hover { background: #fff; }
.speakers__arrow:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.speakers__arrow svg { width: 18px; height: 18px; }
.speakers__arrow--prev { order: -1; }   /* the thumbnails get order 0, 1, 2 from main.js */
.speakers__arrow--prev svg { transform: scaleX(-1); }
.speakers__arrow--next { order: 3; }
.thumbnail {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 104px;
  padding: 12px 4px 8px;           /* margin for the blue ring of the chosen photo, which grows */
  border: 0;
  border-radius: 18px;
  background: none;
  transition: background .2s;
}
.thumbnail:hover { background: rgba(255, 255, 255, .6); }
.thumbnail:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.thumbnail__photo {
  width: 62px;
  height: 62px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(#e4effa, #a9cbee);
  box-shadow: 0 0 0 3px #fff;
  filter: grayscale(.5);
  opacity: .7;
  transition: filter .2s, opacity .2s, box-shadow .2s, transform .2s;
}
.thumbnail__photo svg { width: 100%; height: 100%; }
.thumbnail__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.thumbnail__name {
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.thumbnail:hover .thumbnail__photo { filter: none; opacity: 1; }
.thumbnail[aria-pressed="true"] .thumbnail__photo {
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue);
  transform: scale(1.06);
}
.thumbnail[aria-pressed="true"] .thumbnail__name { font-weight: 700; color: var(--navy); }

/* ID card: classic layout (crest and brand on top, name and role on the left,
   monster photo on the right) */
.speakers__idcard {
  container-type: inline-size;
  width: min(100%, 540px);
}

.idcard {
  position: relative;
  aspect-ratio: 484 / 288;
  border-radius: 4.2cqw;
  overflow: hidden;
  background: linear-gradient(160deg, #fbfbfa, #e6e7e9);
  box-shadow: 0 26px 46px -10px rgba(0, 0, 0, .55);
  font-family: var(--font-idcard);
  color: #2a2f36;
  animation: appear .4s ease;
}
.speakers .idcard { animation: none; }   /* there the change is animated by main.js (swapIdCard) */
.idcard > * { position: absolute; }

.idcard__crest { left: 5%; top: 3%; width: 33%; }

.idcard__brand {
  left: 42%;
  right: 3%;
  top: 7%;
  text-align: center;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}
.idcard__week { display: block; font-size: 10.6cqw; }
.idcard__systems { display: block; margin-top: 1.6cqw; font-size: 3.9cqw; letter-spacing: .3em; }

.idcard__name,
.idcard__role {
  left: 4%;
  width: 52%;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* --letters (set by main.js) shrinks long names so they are not cut */
.idcard__name { top: 59%; font-weight: 600; font-size: min(4.4cqw, 68cqw / var(--letters, 1)); }
.idcard__role {
  top: 69.5%;
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 3cqw;
  letter-spacing: .08em;
  color: #6b7480;
}

.idcard__band {
  left: 0;
  right: 0;
  top: 79%;
  height: 15%;
  display: flex;
  align-items: center;
  padding-left: 9%;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: min(5.2cqw, 58cqw / var(--letters, 1));   /* --letters (auth.js) shrinks long titles */
  text-transform: uppercase;
}
/* Long titles ("Maratonista Aterradora"): two lines to the left of the photo */
.idcard__band--long {
  padding-right: 40%;
  font-size: 3.9cqw;
  line-height: 1.05;
}

.idcard__photo {
  left: 61%;
  top: 37%;
  width: 34%;
  height: 54%;
  border: 1.3cqw solid var(--blue);
  background: linear-gradient(#fff, #e9ecef);
  overflow: hidden;
}
.idcard__photo svg { position: absolute; bottom: 0; width: 100%; height: 88%; }
.idcard__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.idcard__stamp {
  position: absolute;
  left: 50%;
  top: 32%;
  transform: translate(-50%, -50%) rotate(-14deg);
  padding: .6cqw 1.6cqw;
  border: .6cqw solid #d23c5a;
  border-radius: .8cqw;
  background: rgba(255, 255, 255, .75);
  color: #d23c5a;
  font-family: var(--font-varsity);
  font-size: 2.9cqw;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* "Por confirmar" is longer than "Clasificado": smaller and amber so it fits on the photo */
.idcard__stamp--pending { border-color: #c98a00; color: #c98a00; font-size: 2.3cqw; }

.idcard--mystery .idcard__band { background: #75808e; }
.idcard--mystery .idcard__photo { border-color: #75808e; }

/* Gold ID card (1st place on the Scare Meter) */
.idcard--gold {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(255, 255, 255, 0.8) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 85%, rgba(212, 160, 23, 0.2) 0%, transparent 45%),
    linear-gradient(135deg, #fffcf0 0%, #fbedbe 24%, #eed074 50%, #fae6a8 76%, #dfb53d 100%);
  color: #241902;
  box-shadow:
    0 0 0 2px #d4a017,
    0 0 22px rgba(235, 180, 0, 0.35),
    0 16px 36px -8px rgba(180, 130, 20, 0.45),
    0 26px 46px -10px rgba(0, 0, 0, .55);
}

.idcard--gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  background-size: 200% 200%;
  animation: idcard-gold-shimmer 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes idcard-gold-shimmer {
  0%, 100% { background-position: -150% 0; }
  50% { background-position: 150% 0; }
}

.idcard--gold .idcard__brand {
  color: #312103;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.idcard--gold .idcard__week {
  color: #251801;
}

.idcard--gold .idcard__systems {
  color: #594008;
}

.idcard--gold .idcard__name {
  color: #170f01;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.idcard--gold .idcard__role {
  color: #634b15;
}

.idcard--gold .idcard__photo {
  border-color: #d4a017;
  box-shadow: inset 0 0 12px rgba(212, 160, 23, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 1st place stamp on the gold ID card */
.idcard__stamp--gold {
  border-color: #926900;
  background: linear-gradient(135deg, #fff7db, #fae29c);
  color: #704f00;
  font-weight: 700;
  letter-spacing: .12em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  z-index: 2;
}

/* Gold ID card button in the Scare Meter list */
.scarer-item__idcard--gold {
  color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35) !important;
}
.scarer-item__idcard--gold:hover {
  background: rgba(245, 158, 11, 0.3) !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.55) !important;
}

/* Silver ID card (2nd place on the Scare Meter) */
.idcard--silver {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(255, 255, 255, 0.95) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 85%, rgba(148, 163, 184, 0.25) 0%, transparent 45%),
    linear-gradient(135deg, #ffffff 0%, #f1f5f9 22%, #cbd5e1 50%, #f8fafc 74%, #94a3b8 100%);
  color: #0f172a;
  box-shadow:
    0 0 0 2px #94a3b8,
    0 0 22px rgba(148, 163, 184, 0.4),
    0 16px 36px -8px rgba(71, 85, 105, 0.42),
    0 26px 46px -10px rgba(0, 0, 0, .55);
}

.idcard--silver::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  background-size: 200% 200%;
  animation: idcard-silver-shimmer 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes idcard-silver-shimmer {
  0%, 100% { background-position: -150% 0; }
  50% { background-position: 150% 0; }
}

.idcard--silver .idcard__brand {
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.idcard--silver .idcard__week { color: #0f172a; }
.idcard--silver .idcard__systems { color: #334155; }
.idcard--silver .idcard__name {
  color: #020617;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}
.idcard--silver .idcard__role { color: #475569; }
.idcard--silver .idcard__photo {
  border-color: #94a3b8;
  box-shadow: inset 0 0 12px rgba(148, 163, 184, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 2nd place stamp on the silver ID card */
.idcard__stamp--silver {
  border-color: #475569;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  color: #334155;
  font-weight: 700;
  letter-spacing: .12em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  z-index: 2;
}

/* Silver ID card button in the Scare Meter list */
.scarer-item__idcard--silver {
  color: #94a3b8 !important;
  background: rgba(148, 163, 184, 0.16) !important;
  border-color: rgba(148, 163, 184, 0.45) !important;
  box-shadow: 0 0 12px rgba(148, 163, 184, 0.35) !important;
}
.scarer-item__idcard--silver:hover {
  background: rgba(148, 163, 184, 0.3) !important;
  box-shadow: 0 0 18px rgba(148, 163, 184, 0.55) !important;
}

/* Bronze ID card (3rd place on the Scare Meter) */
.idcard--bronze {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(255, 247, 237, 0.9) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 85%, rgba(180, 83, 9, 0.25) 0%, transparent 45%),
    linear-gradient(135deg, #fff7ed 0%, #fed7aa 24%, #c27847 50%, #fde0c2 76%, #9a4d1c 100%);
  color: #2a1205;
  box-shadow:
    0 0 0 2px #b45309,
    0 0 22px rgba(180, 83, 9, 0.35),
    0 16px 36px -8px rgba(124, 45, 18, 0.45),
    0 26px 46px -10px rgba(0, 0, 0, .55);
}

.idcard--bronze::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  background-size: 200% 200%;
  animation: idcard-bronze-shimmer 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes idcard-bronze-shimmer {
  0%, 100% { background-position: -150% 0; }
  50% { background-position: 150% 0; }
}

.idcard--bronze .idcard__brand {
  color: #3b1807;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.idcard--bronze .idcard__week { color: #2d1305; }
.idcard--bronze .idcard__systems { color: #692c0c; }
.idcard--bronze .idcard__name {
  color: #1f0b02;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.idcard--bronze .idcard__role { color: #78350f; }
.idcard--bronze .idcard__photo {
  border-color: #b45309;
  box-shadow: inset 0 0 12px rgba(180, 83, 9, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 3rd place stamp on the bronze ID card */
.idcard__stamp--bronze {
  border-color: #7c2d12;
  background: linear-gradient(135deg, #ffedd5, #fdba74);
  color: #7c2d12;
  font-weight: 700;
  letter-spacing: .12em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  z-index: 2;
}

/* Bronze ID card button in the Scare Meter list */
.scarer-item__idcard--bronze {
  color: #ea580c !important;
  background: rgba(234, 88, 12, 0.16) !important;
  border-color: rgba(234, 88, 12, 0.45) !important;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.35) !important;
}
.scarer-item__idcard--bronze:hover {
  background: rgba(234, 88, 12, 0.3) !important;
  box-shadow: 0 0 18px rgba(234, 88, 12, 0.55) !important;
}

@font-face {
  font-family: 'Pricedown';
  src: local('Pricedown'), local('Pricedown Black'),
       url('https://cdn.jsdelivr.net/gh/multitheftauto/mtasa-blue@master/MTA10/cgui/pricedown.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- Vice City / GTA VI Chromatic ID Card ---------- */
.idcard--vice {
  font-family: var(--font-gta);
  background:
    radial-gradient(ellipse at 88% 18%, rgba(255, 60, 172, 0.45) 0%, transparent 48%),
    radial-gradient(ellipse at 15% 85%, rgba(0, 229, 255, 0.28) 0%, transparent 48%),
    linear-gradient(135deg, #180927 0%, #350f42 22%, #6e1754 44%, #b82260 66%, #f25b42 86%, #ffa347 100%);
  color: #ffffff;
  box-shadow:
    0 0 0 2px rgba(255, 60, 172, 0.45),
    0 0 26px rgba(233, 30, 99, 0.35),
    0 26px 46px -10px rgba(0, 0, 0, .65);
}

.idcard--vice::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0%, transparent 40%, rgba(255, 60, 172, 0.18) 70%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.idcard--vice::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 484 288' fill='none'%3E%3Cpath d='M0 115h484v2H0zm0 15h484v1.5H0zm0 15h484v1H0z' fill='rgba(255,255,255,0.04)'/%3E%3Cg fill='%23120520' opacity='0.22'%3E%3Cpath d='M484 288c-30-20-45-70-40-120 5-50 25-90 40-100v220z'/%3E%3Cpath d='M440 160c-25-15-60-18-95-12 30 10 65 18 95 12z'/%3E%3Cpath d='M445 145c-30-30-75-45-120-42 35 18 80 32 120 42z'/%3E%3Cpath d='M450 130c-20-40-55-75-100-95 25 28 60 62 100 95z'/%3E%3Cpath d='M460 120c-5-45-20-85-45-115 12 35 28 75 45 115z'/%3E%3Cpath d='M435 175c-35-5-75 5-110 25 35-8 75-16 110-25z'/%3E%3C/g%3E%3Cg fill='%23120520' opacity='0.15'%3E%3Cpath d='M0 288c20-15 35-50 30-90-5-35-18-65-30-75v165z'/%3E%3Cpath d='M28 195c20-10 48-12 75-8-24 7-52 13-75 8z'/%3E%3Cpath d='M25 180c25-22 60-32 95-30-28 13-64 23-95 30z'/%3E%3Cpath d='M20 170c15-30 42-55 78-70-20 20-48 45-78 70z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
  z-index: 1;
}

.idcard--vice .idcard__crest {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(255, 107, 74, 0.45));
  z-index: 2;
}

.idcard--vice .idcard__brand {
  z-index: 2;
}

.idcard--vice .idcard__week {
  font-family: var(--font-gta);
  font-size: 9.8cqw;
  line-height: 1;
  letter-spacing: .02em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 16px rgba(255, 60, 172, 0.45);
}

.idcard--vice .idcard__systems {
  font-family: var(--font-gta);
  font-size: 3.8cqw;
  letter-spacing: .35em;
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.8), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.idcard--vice .idcard__name {
  font-family: var(--font-gta);
  font-size: min(4.5cqw, 70cqw / var(--letters, 1));
  letter-spacing: .02em;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 60, 172, 0.3);
  z-index: 2;
}

.idcard--vice .idcard__role {
  font-family: var(--font-gta);
  font-size: 3cqw;
  letter-spacing: .1em;
  color: #fed7aa;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  z-index: 2;
}

.idcard--vice .idcard__photo {
  border: 1.3cqw solid #ff2a85;
  box-shadow: 0 0 18px rgba(255, 42, 133, 0.45), inset 0 0 8px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, #180927 0%, #30113c 100%);
  z-index: 2;
}

.idcard--vice .idcard__band {
  font-family: var(--font-gta);
  font-size: min(5.2cqw, 58cqw / var(--letters, 1));
  letter-spacing: .04em;
  background: linear-gradient(90deg, rgba(255, 42, 133, 0.9) 0%, rgba(255, 107, 74, 0.9) 55%, rgba(251, 191, 36, 0.9) 100%);
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  box-shadow: 0 3px 12px rgba(255, 42, 133, 0.4);
  z-index: 2;
}

.idcard--vice .idcard__stamp {
  font-family: var(--font-gta);
  letter-spacing: .08em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.idcard__band--qrgang {
  padding-right: 40% !important;
  font-family: var(--font-gta) !important;
  letter-spacing: .04em;
  background: linear-gradient(90deg, #ff2a85 0%, #ff6b4a 55%, #ffb648 100%) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 42, 133, 0.7) !important;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3), 0 0 14px rgba(255, 42, 133, 0.5) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.4) !important;
}

.idcard--vice.idcard--vice-gold {
  box-shadow:
    0 0 0 2.5px #fbbf24,
    0 0 28px rgba(251, 191, 36, 0.6),
    0 26px 46px -10px rgba(0, 0, 0, .7);
}
.idcard--vice.idcard--vice-silver {
  box-shadow:
    0 0 0 2.5px #cbd5e1,
    0 0 28px rgba(203, 213, 225, 0.5),
    0 26px 46px -10px rgba(0, 0, 0, .7);
}
.idcard--vice.idcard--vice-bronze {
  box-shadow:
    0 0 0 2.5px #f97316,
    0 0 28px rgba(249, 115, 22, 0.5),
    0 26px 46px -10px rgba(0, 0, 0, .7);
}

/* ---------- Clown Licence (penalty for tampering with points) ---------- */
.idcard--clown {
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 230, 0, 0.25) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 0, 100, 0.2) 0%, transparent 25%),
    repeating-linear-gradient(45deg, #fff5f5, #fff5f5 14px, #ffe4e6 14px, #ffe4e6 28px);
  border: 3px dashed #e11d48 !important;
  box-shadow:
    0 0 0 2px #fff,
    0 0 24px rgba(225, 29, 72, 0.35),
    0 16px 36px -8px rgba(225, 29, 72, 0.35);
  animation: clown-shake 4s ease-in-out infinite alternate;
}

@keyframes clown-shake {
  0%, 90% { transform: rotate(0deg); }
  92% { transform: rotate(-1.5deg); }
  94% { transform: rotate(1.5deg); }
  96% { transform: rotate(-1deg); }
  98% { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}

.idcard--clown .idcard__brand {
  top: 4%;
  color: #9f1239;
}

/* "CIRCO DE" is longer than "SEMANA": at its font size it broke into three lines.
   The box hugs the text, so "— PAYASOS —" centers under the words and not under the tent. */
.idcard__week--clown {
  position: relative;
  width: fit-content;
  margin-inline: auto;
  color: #e11d48 !important;
  font-size: 6.4cqw;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* The tent hangs outside the box, to the left of the words */
.idcard__tent {
  position: absolute;
  right: 100%;
  margin-right: .25em;
}

.idcard__systems--clown {
  padding-left: .2em;   /* balances the letter spacing after the last dash, so the text centers exactly */
  margin-top: 1.2cqw;
  color: #be123c !important;
  font-weight: 700;
  letter-spacing: .2em;
  white-space: nowrap;
}

.idcard--clown .idcard__name {
  color: #881337 !important;
}

.idcard__role--clown {
  color: #e11d48 !important;
  font-weight: 800 !important;
  letter-spacing: .06em;
}

/* On one line and centered below the name (spans 4% to 56%, before the photo) */
.idcard__band--clown {
  justify-content: center;
  padding: 0 44% 0 4%;
  background: repeating-linear-gradient(45deg, #e11d48, #e11d48 12px, #f59e0b 12px, #f59e0b 24px) !important;
  color: #ffffff !important;
  font-size: 3.6cqw;
  font-weight: 900 !important;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
  letter-spacing: .06em !important;
  border-top: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* Between the brand and the photo, centered with the brand (keeps the base stamp's translate) */
.idcard__stamp--clown {
  left: 69.5%;
  top: 32.5%;
  border-color: #e11d48 !important;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6) !important;
  color: #be123c !important;
  font-size: 2.5cqw;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25), inset 0 0 0 1px #fff;
  transform: translate(-50%, -50%) rotate(-3deg);
  z-index: 2;
}

.clown-nose {
  position: absolute;
  top: 71%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5cqw;
  line-height: 1;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  animation: nose-bounce 1.4s ease-in-out infinite;
}

@keyframes nose-bounce {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.25); }
}

.scarer-item__idcard--clown {
  color: #e11d48 !important;
  background: rgba(225, 29, 72, 0.16) !important;
  border-color: rgba(225, 29, 72, 0.45) !important;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.35) !important;
}
.scarer-item__idcard--clown:hover {
  background: rgba(225, 29, 72, 0.3) !important;
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.55) !important;
}

/* Humiliating notice for clowns */
.clown-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%);
  border: 2px solid #f43f5e;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
  text-align: left;
  box-shadow: 0 6px 18px -4px rgba(244, 63, 94, 0.35);
  animation: clown-notice-shake 5s ease-in-out infinite;
}

@keyframes clown-notice-shake {
  0%, 90%, 100% { transform: translateX(0); }
  92% { transform: translateX(-4px); }
  94% { transform: translateX(4px); }
  96% { transform: translateX(-3px); }
  98% { transform: translateX(3px); }
}

/* Its own bounce: nose-bounce carries the nose's translate(-50%, -50%) and pushed the notice icon out */
.clown-notice__icon {
  flex: none;
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
  animation: clown-notice-bounce 1.5s ease-in-out infinite;
}

@keyframes clown-notice-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.clown-notice__body {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #881337;
}

.clown-notice__body strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #be123c;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

.clown-notice__body p {
  margin: 0;
  color: #9f1239;
}

/* On phones there is not enough width for the icon next to the text */
@media (max-width: 480px) {
  .clown-notice {
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    text-align: center;
  }
  .clown-notice__body { flex: none; }
}

/* In the table dialog the title sits level with the close X: "Licencia de Payaso" does not fit at its normal size */
#idcard-modal:has(.idcard--clown) .auth-modal__title {
  padding-inline: 36px;
  font-size: clamp(20px, 6vw, 27px);
}

/* ---------- Glitch effect for Debugger ---------- */

.idcard__band--glitch {
  background: #090e17 !important;
  border-top: 1.5px solid rgba(0, 240, 255, 0.6);
  border-bottom: 1.5px solid rgba(255, 0, 85, 0.6);
  box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.3);
}

.idcard__band--nocturnal {
  background: linear-gradient(90deg, #180928 0%, #2e1065 50%, #180928 100%) !important;
  border-top: 1.5px solid rgba(192, 132, 252, 0.6);
  border-bottom: 1.5px solid rgba(168, 85, 247, 0.6);
  box-shadow: inset 0 0 12px rgba(168, 85, 247, 0.35);
  color: #f3e8ff !important;
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.6);
}

/* El Fenómeno (Ronaldo Nazário R9): Brazil Canarinha green, yellow & blue */
.idcard__band--phenomenon {
  padding-right: 42% !important;
  background: linear-gradient(90deg, #009c3b 0%, #ffdf00 12%, #ffdf00 52%, #002776 58%, #002776 100%) !important;
  border-top: 2px solid #009c3b !important;
  border-bottom: 2px solid #002776 !important;
  color: #002776 !important;
  font-family: var(--font-display), sans-serif;
  font-weight: 900 !important;
  font-size: 3.7cqw !important;
  letter-spacing: .04em;
  text-shadow: 0 1px 0 #fff, 0 -1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff, 0 0 8px rgba(255, 223, 0, 0.8);
  box-shadow: inset 0 0 10px rgba(0, 39, 118, 0.35);
  white-space: nowrap;
}

/* Supervisor de Sustos (Admin/Staff): Obsidian, Royal Purple & Glowing Gold */
.idcard__band--supervisor {
  padding-right: 42% !important;
  background: linear-gradient(90deg, #090e17 0%, #1e1b4b 25%, #312e81 50%, #1e1b4b 75%, #090e17 100%) !important;
  border-top: 2px solid #fbbf24 !important;
  border-bottom: 2px solid #f59e0b !important;
  color: #fef08a !important;
  font-weight: 800 !important;
  letter-spacing: .06em;
  font-size: 3.5cqw !important;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.8), 0 0 2px #fff;
  box-shadow: inset 0 0 14px rgba(245, 158, 11, 0.35), 0 0 10px rgba(245, 158, 11, 0.4);
}

.idcard__stamp--supervisor {
  border-color: #f59e0b !important;
  color: #fbbf24 !important;
  background: rgba(15, 23, 42, 0.92) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5) !important;
}

.scarer-card__title-tag--supervisor {
  background: linear-gradient(90deg, #1e1b4b, #312e81);
  color: #fbbf24;
  border: 1px solid #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
  font-weight: 700;
}

/* Reward Modal (Recompensa de Asustador Veterano) */
.reward-modal {
  max-width: 480px;
}
.reward-modal__box {
  text-align: center;
  padding: 32px 24px 28px;
}
.reward-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reward-icon-box {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 12px;
  animation: bounce-gift 1.8s infinite ease-in-out;
}
@keyframes bounce-gift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-10px) rotate(-4deg); }
  60% { transform: translateY(-6px) rotate(4deg); }
}
.reward-modal__title {
  font-size: 26px;
  margin: 6px 0 12px;
}
.reward-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
  margin: 0 0 20px;
  max-width: 380px;
}
.reward-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
  height: 48px;
  cursor: pointer;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-narrow);
  font-weight: 700;
  border-radius: 999px;
  border: 0;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 6px var(--blue-bright), 0 8px 18px rgba(10, 44, 82, .4);
}
.reward-btn:hover {
  transform: translateY(-2px);
}
.reward-unlocked-preview {
  width: 140px;
  height: 120px;
  margin: 0 auto 14px;
  background: #f1f5f9;
  border-radius: 20px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.06);
}
.reward-unlocked-preview svg {
  width: 100%;
  height: 100%;
}
.reward-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #dff6e8;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-family: var(--font-narrow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.reward-item-name {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 8px;
  text-transform: uppercase;
}

/* Maestro Konami: Nintendo red, pixel letters with a hard 8-bit shadow */
.idcard__band--konami {
  background: #e4000f !important;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #8b0009;
  color: #fff !important;
  font-family: 'Press Start 2P', monospace;
  font-weight: 400;
  font-size: 2.9cqw;
  line-height: 1.6;
  text-shadow: .35cqw .35cqw 0 #8b0009;
}

.glitch-text {
  position: relative;
  display: inline-block;
  font-family: 'Share Tech Mono', monospace, monospace !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #00f0ff;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.7);
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch-text::before {
  left: 2px;
  text-shadow: -2px 0 #00f0ff;
  animation: glitch-anim-1 3.2s infinite ease-in-out alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: 2px 0 #ff0055;
  animation: glitch-anim-2 2.8s infinite ease-in-out alternate-reverse;
}

@keyframes glitch-anim-1 {
  0%, 79%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); opacity: 0; }
  80% { clip-path: inset(15% 0 55% 0); transform: translate(-3px, 1px); opacity: 1; }
  82% { clip-path: inset(65% 0 10% 0); transform: translate(2px, -1px); opacity: 0.9; }
  84% { clip-path: inset(5% 0 75% 0); transform: translate(-2px, 2px); opacity: 1; }
  86% { clip-path: inset(40% 0 30% 0); transform: translate(3px, 0); opacity: 0.8; }
  88% { clip-path: inset(0 0 0 0); transform: translate(0); opacity: 0; }
}

@keyframes glitch-anim-2 {
  0%, 81%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); opacity: 0; }
  82% { clip-path: inset(45% 0 25% 0); transform: translate(3px, -1px); opacity: 1; }
  84% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 1px); opacity: 0.9; }
  86% { clip-path: inset(75% 0 5% 0); transform: translate(2px, 2px); opacity: 1; }
  88% { clip-path: inset(25% 0 45% 0); transform: translate(-1px, -1px); opacity: 0.8; }
  90% { clip-path: inset(0 0 0 0); transform: translate(0); opacity: 0; }
}

/* ID card linking to the speaker's activity, with the "Ver su …" hint below */
.idcard-link {
  display: grid;
  justify-items: center;
  gap: 18px;
  color: inherit;
  text-decoration: none;
  outline: none;
}
.idcard-link .idcard { justify-self: stretch; transition: transform .2s; }
.idcard-link:hover .idcard { transform: translateY(-4px); }
.idcard-link:focus-visible .idcard { outline: 3px solid #a9d1ff; outline-offset: 4px; }

.idcard-link__text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  background: rgba(10, 44, 82, .6);
  color: #fff;
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s;
}
.idcard-link__text svg { width: 16px; height: 16px; }
.idcard-link:hover .idcard-link__text { background: var(--navy); }


/* ---------- 5. Schedule ---------- */

.schedule { padding: 80px 0 88px; }

/* The schedule changes height with the chosen day. The photo keeps the initial size
   (Wednesday) so it does not grow or move on each click; if the content grows,
   it blends into the blue at the bottom. */
.schedule.photo-bg::before {
  bottom: auto;
  height: 1740px;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 80px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 80px), transparent);
}

.schedule__card {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 28px 34px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 34px 70px -28px rgba(0, 0, 0, .5);
}

/* Blue band with the calendar icon and the "Horario" title */
.schedule__band {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--navy);
  box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 6px var(--blue-bright);
  color: #fff;
  font-family: var(--font-varsity);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.schedule__icon { flex: none; width: 26px; height: 26px; color: #a9d1ff; }

/* Day buttons */
.schedule__days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 13px 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--gray);
  transition: background .2s;
}
.day:hover { background: #f1f4f8; }
.day strong {
  font-family: var(--font-varsity);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.day span { font-size: 14px; font-weight: 600; color: var(--ink); }
.day[aria-pressed="true"] {
  background: linear-gradient(var(--blue-bright), var(--blue));
  color: #fff;
  box-shadow: inset 0 0 0 3px var(--blue), inset 0 0 0 5px rgba(255, 255, 255, .55);
}
.day[aria-pressed="true"] span { color: #fff; }

.schedule__heading { margin: 20px 0 16px; text-align: center; }
.schedule__heading h3 { font-weight: 500; font-size: 22px; }
.schedule__heading p { font-size: 14px; color: var(--gray); }

/* Search box + "Semana" button */
.schedule__tools { display: flex; gap: 10px; }

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid #e2e6ec;
  border-radius: 999px;
  background: #f3f5f8;
  color: var(--gray);
}
.search-box:focus-within { border-color: var(--blue); }
.search-box svg { width: 18px; height: 18px; flex: none; }
.search-box input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.week-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid #e2e6ec;
  border-radius: 999px;
  background: #f3f5f8;
  color: var(--ink-soft);
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.week-button svg { width: 18px; height: 18px; }
.week-button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Tabs per activity type */
.schedule__tabs {
  display: flex;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
}
.tab {
  flex: 1 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 14px;
  border: 0;
  background: none;
  color: #7b8591;
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tab::before {                      /* color dot of "Todo" */
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color);
}
.tab:has(svg)::before { content: none; }     /* types carry their icon instead of the dot */
.tab svg { width: 16px; height: 16px; flex: none; color: var(--color); }
.tab[aria-pressed="true"] { color: var(--navy); }
.tab[aria-pressed="true"]::after {  /* underline of the active tab */
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 3px;
  background: var(--navy);
}
.tab--empty { opacity: .5; }

/* Activity cards */
.schedule__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.activity {
  position: relative;               /* the title link covers the whole card */
  padding: 18px 26px 20px;
  text-align: center;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  border: 1px solid var(--line);
  border: 1px solid color-mix(in srgb, var(--color) 20%, var(--line));
  border-left: 6px solid var(--color);
  border-radius: 26px;
  box-shadow: 0 8px 22px -12px rgba(10, 44, 82, .25);
  box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--color) 28%, rgba(10, 44, 82, 0.12)), 0 2px 6px rgba(0, 0, 0, 0.03);
  animation: appear .35s ease;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.activity:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--color) 34%, var(--line));
  border-left-color: var(--color);
  box-shadow: 0 16px 30px -10px color-mix(in srgb, var(--color) 38%, rgba(10, 44, 82, 0.2)), 0 4px 10px rgba(0, 0, 0, 0.04);
}
.activity:has(:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Type label: text in the type's color with its icon */
.activity__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color);
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.activity__type svg { width: 16px; height: 16px; }

.activity__title {
  margin: 6px 0 4px;
  font-family: var(--font-varsity);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  color: var(--navy);
}
.activity__title a { color: inherit; text-decoration: none; outline: none; }
.activity__title a::after { content: ''; position: absolute; inset: 0; }

.activity__time { font-size: 15px; color: var(--gray); }

.activity__details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-family: var(--font-narrow);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.activity__details:empty { display: none; }
.activity__details > span { display: inline-flex; align-items: center; gap: 7px; }
.activity__details svg { width: 15px; height: 15px; flex: none; }

/* "A la vez que…" can take two lines: the icon stays inline with the text */
.activity__details > .activity__overlap { display: block; color: var(--gray); }
.activity__overlap svg { display: inline-block; vertical-align: -2px; margin-right: 6px; }

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(#e4effa, #a9cbee);
}
.activity__details .avatar svg { width: 100%; height: 100%; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar:has(img) { box-shadow: 0 0 0 1px var(--line); }   /* white background logos */

.activity__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--blue);
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.activity__more svg { width: 15px; height: 15px; transition: transform .2s; }
.activity:hover .activity__more svg { transform: translateX(3px); }

.schedule__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 34px 20px;
  text-align: center;
  color: var(--gray);
  border: 2px dashed var(--line);
  border-radius: 26px;
}
.schedule__empty svg { width: 48px; height: 48px; }


/* ---------- 6. Schedule: week view ---------- */

.week-grid {
  margin-top: 20px;
  overflow-x: auto;                    /* slides sideways on small screens */
  border: 1px solid var(--line);
  border-radius: 22px;
}

.week-grid__grid {
  --hour: 88px;                        /* height of each hour: fits title, time and place */
  display: grid;
  grid-template-columns: 58px repeat(3, minmax(170px, 1fr));
  min-width: 620px;
}

.week-grid__header {
  padding: 12px 8px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-family: var(--font-varsity);
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.week-grid__hours {
  display: grid;
  grid-auto-rows: var(--hour);
  background: #f7f8fa;
  border-right: 1px solid var(--line);
}
.week-grid__hours span {
  padding: 4px 8px 0 0;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
}

.week-grid__column {
  position: relative;
  border-right: 1px solid var(--line);
  /* one gray line per hour */
  background: repeating-linear-gradient(#fff 0 calc(var(--hour) - 1px), #eef1f4 0 var(--hour));
}
.week-grid__column:last-child { border-right: 0; }

/* main.js sets on each block: --from (hours since the first one), --span (hours),
   --lane (column within the day) and --lanes (how many columns that day has) */
.block {
  position: absolute;
  top: calc(var(--from) * var(--hour) + 3px);
  height: calc(var(--span) * var(--hour) - 6px);
  left: calc(100% / var(--lanes) * var(--lane) + 4px);
  width: calc(100% / var(--lanes) - 8px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 8px;
  overflow: hidden;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--color) 18%, transparent);
  border-left: 4px solid var(--color);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 3px 10px -2px color-mix(in srgb, var(--color) 25%, rgba(10, 44, 82, 0.1));
  color: inherit;
  text-decoration: none;
  transition: filter .2s, box-shadow .2s;
}
.block:hover {
  filter: brightness(.97);
  box-shadow: 0 6px 14px -2px color-mix(in srgb, var(--color) 36%, rgba(10, 44, 82, 0.18));
}
/* The title is cut at 3 lines (with "…") so the place, right below it, always shows.
   The time goes last: if it does not fit, the hours column still gives it. */
.block strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  flex: none;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--navy);
}
.block--narrow strong { -webkit-line-clamp: 2; line-clamp: 2; }   /* shares the time: half width */
.block strong,
.block span { overflow-wrap: anywhere; hyphens: auto; }             /* long words break instead of overflowing */
.block span { font-size: 12px; line-height: 1.35; color: var(--ink-soft); }
.block__place { display: flex; align-items: flex-start; gap: 4px; font-weight: 600; }
.block .block__place { color: var(--navy); }
.block__place svg { width: 12px; height: 12px; flex: none; margin-top: 2px; }
.block--dimmed { opacity: .22; }


/* ---------- 7. Competitions ---------- */

.competitions { padding: 80px 0 90px; }

.section-title {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-title__eyebrow {
  font-family: var(--font-varsity);
  font-size: 13px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-title h2 {
  margin-top: 6px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.05;
  color: var(--blue);
  -webkit-text-stroke: 6px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0 0 1px var(--blue-dark)) drop-shadow(0 2px 0 rgba(10, 44, 82, .25));
}
.section-title__intro { margin-top: 12px; font-size: 17px; color: var(--ink-soft); }

/* 3 cards per row; the ones on the last row are centered */
.competitions__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.competition {
  flex: 0 1 calc((100% - 52px) / 3);
  display: flex;
  flex-direction: column;
  padding: 13px 13px 20px;
  border: 1px solid color-mix(in srgb, var(--color) 18%, transparent);
  border-radius: 10px;
  text-align: left;
  color: inherit;
  text-decoration: none;
  background: #fff;
  background: linear-gradient(180deg, #ffffff 40%, color-mix(in srgb, var(--color) 6%, #ffffff) 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 14px 26px -16px color-mix(in srgb, var(--color) 30%, rgba(0, 0, 0, .3));
  transition: transform .2s, box-shadow .2s;
}
.competition:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .06), 0 20px 32px -12px color-mix(in srgb, var(--color) 40%, rgba(0, 0, 0, .35));
}

.competition__image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 300 / 122;
  color: #fff;
  background:
    radial-gradient(rgba(255, 255, 255, .22) 1.3px, transparent 1.6px) 0 0 / 11px 11px,                         /* dots */
    repeating-conic-gradient(from 0deg at 50% 125%, rgba(255, 255, 255, .13) 0 5deg, transparent 5deg 10deg),   /* rays */
    var(--color);
}
.competition__image svg { width: 68px; height: 68px; }

.competition__day {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--color);
  font-family: var(--font-varsity);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.competition__title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 8px 4px;
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 1.15;
  text-transform: uppercase;
  color: #a5a9ae;
  transition: color .2s;
}
.competition__title svg { width: 28px; height: 28px; flex: none; }
.competition:hover .competition__title { color: var(--color); }

.competition__time,
.competition__summary { padding-left: 50px; }
.competition__time {
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.competition__summary { margin-top: 4px; font-size: 14.5px; color: var(--gray); }

/* "Organiza …" at the foot of the card, aligned with the others in the row */
.competition__organizer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 14px 0 0 50px;
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.competition__organizer .avatar { flex: none; width: 26px; height: 26px; }


/* ---------- 8. Footer ---------- */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 16px;
  text-align: center;
  font-size: 14px;
  color: #8a9099;
  border-top: 1px solid #cfd0cd;
}
/* Crest + Instagram handle of the Systems Engineering representation:
   gets its color on mouse hover */
.site-footer__instagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.site-footer__crest { display: block; width: 44px; filter: grayscale(1); opacity: .5; transition: filter .2s, opacity .2s; }
.site-footer__instagram:hover .site-footer__crest { filter: none; opacity: 1; }
.site-footer__handle { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-soft); transition: color .2s; }
.site-footer__handle svg { width: 16px; height: 16px; }
.site-footer__instagram:hover .site-footer__handle { color: var(--blue); }
.site-footer__authors { font-size: 13px; }
.site-footer__authors strong { font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.site-footer__disclaimer {
  max-width: 820px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 4px 0 0;
}
.site-footer__legal {
  max-width: 860px;
  font-size: 11px;
  line-height: 1.55;
  color: #717782;
  margin: 4px 0 0;
}
.site-footer__legal strong {
  color: var(--ink-soft);
  font-weight: 600;
}
.site-footer__copyright {
  font-size: 11.5px;
  color: #8a9099;
  margin: 6px 0 0;
}
.site-footer__link {
  color: var(--blue, #1667c2);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color .2s ease;
}
.site-footer__link:hover {
  color: var(--navy, #0a2c52);
}


/* ---------- 9. Tablet and mobile ---------- */

/* Tablet: 2 competitions per row */
@media (max-width: 980px) {
  .competition { flex-basis: calc((100% - 26px) / 2); }
}

/* Mobile */
@media (max-width: 640px) {
  /* Hero */
  .hero__content { padding: 56px 0 64px; }
  .hero__place { font-size: 12px; letter-spacing: .16em; }
  .varsity-letters { font-size: 15.2vw; }
  .hero__actions { margin-top: 32px; }
  .hero__days li { height: 48px; padding: 0 16px; font-size: 15px; }
  .hero__button { height: 52px; }

  /* Speakers: smaller photos so several fit in one row */
  .speakers .container { padding: 48px 0 56px; }
  .speakers__thumbnails { gap: 2px; margin-bottom: 26px; padding: 8px; }
  .speakers__arrow { width: 24px; height: 24px; }
  .speakers__arrow svg { width: 15px; height: 15px; }
  .thumbnail { width: 88px; }
  .thumbnail__photo { width: 52px; height: 52px; }
  .thumbnail__name { font-size: 12px; }

  /* Schedule */
  .schedule { padding: 48px 0 56px; }
  .schedule.photo-bg::before { height: 1900px; }   /* initial schedule height on phones */
  .schedule__card { padding: 20px 14px 22px; border-radius: 24px; }
  .schedule__band { gap: 10px; padding: 12px 14px; font-size: 18px; letter-spacing: .16em; }
  .schedule__icon { width: 22px; height: 22px; }
  .day { padding: 10px 4px; }
  .day strong { font-size: 14px; }
  .week-button { padding: 0 14px; }
  .week-button span { display: none; }   /* icon only */
  /* Taller hours and wider days (the week slides sideways): so the place fits in each block */
  .week-grid__grid { --hour: 104px; grid-template-columns: 50px repeat(3, 215px); min-width: 0; }

  /* Tabs: become chips that wrap instead of overflowing the screen */
  .schedule__tabs { flex-wrap: wrap; gap: 6px; border-bottom: 0; }
  .tab { flex: 0 1 auto; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
  .tab[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
  .tab[aria-pressed="true"]::after { display: none; }

  .activity { padding: 16px 18px 18px; border-radius: 22px; }
  .activity__title { font-size: 18px; }

  /* Competitions: one per row */
  .competitions { padding: 56px 0 64px; }
  .competition { flex-basis: 100%; }
}

/* If the person asked for reduced motion on their system */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- 10. Login and modal ---------- */

.scare-meter-bar {
  position: absolute;
  top: 22px;
  left: max(16px, calc((100% - 1180px) / 2 + 16px));
  z-index: 10;
}

.hero__button--scare-meter {
  color: var(--navy);
  text-decoration: none;
}
.hero__button--scare-meter svg {
  color: #f59e0b;
}

.session-bar {
  position: absolute;
  top: 22px;
  right: max(16px, calc((100% - 1180px) / 2 + 16px));
  z-index: 10;
}

.hero__button--session {
  height: 44px;
  padding: 0 20px 0 22px;
  font-size: 13px;
  letter-spacing: .14em;
  border: 0;
}

.hero__button--signed-in {
  background: var(--navy);
  color: #fff;
  box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 5px var(--blue-bright), 0 10px 22px -8px rgba(0, 0, 0, .6);
}
.hero__button--signed-in svg { color: #a9d1ff; }

.auth-modal {
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: transparent;
  max-width: 440px;
  width: calc(100% - 32px);
  box-shadow: 0 34px 70px -20px rgba(0, 0, 0, .65);
}
.auth-modal::backdrop {
  background: rgba(10, 44, 82, .72);
  backdrop-filter: blur(4px);
}

.auth-modal__box {
  position: relative;
  padding: 28px 28px 32px;
  background: #fff;
  border-radius: 30px;
  color: var(--ink);
  animation: appear .25s ease;
}

.auth-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f3f5f8;
  color: var(--ink-soft);
  font-size: 15px;
  display: grid;
  place-items: center;
  transition: background .2s, color .2s;
}
.auth-modal__close:hover {
  background: var(--navy);
  color: #fff;
}

.auth-modal__header {
  text-align: center;
  margin-bottom: 18px;
}
.auth-modal__eye {
  width: 38px;
  height: 38px;
  margin: 0 auto 6px;
  color: var(--blue);
}
.auth-modal__eye svg { width: 100%; height: 100%; }

.auth-modal__title {
  margin-top: 4px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--blue);
  -webkit-text-stroke: 5px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0 0 1px var(--blue-dark)) drop-shadow(0 2px 0 rgba(10, 44, 82, .25));
}

.auth-modal__tabs {
  grid-template-columns: repeat(2, 1fr);
  background: #f3f5f8;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.auth-modal__tabs .day { padding: 10px 8px; }
.auth-modal__tabs .day strong { font-size: 14px; }

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 5px;
}
.auth-field span {
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--navy);
  padding-left: 10px;
}
.auth-field input {
  height: 48px;
  padding: 0 18px;
  border: 1px solid #e2e6ec;
  border-radius: 999px;
  background: #f3f5f8;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, background .2s;
}
.auth-field input:focus {
  border-color: var(--blue);
  background: #fff;
}

.auth-message {
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.auth-message--error {
  background: #fde3e8;
  color: #b42340;
  border: 1px solid #f5b6c3;
}
.auth-message--success {
  background: #dff6e8;
  color: #1c7441;
  border: 1px solid #a8e2c0;
}
.auth-message--info {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.auth-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  border: 0;
  background: var(--navy);
  color: #fff;
  box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 6px var(--blue-bright), 0 10px 22px -10px rgba(10, 44, 82, .6);
}
.auth-form__submit svg { color: #a9d1ff; }
.auth-form__submit:disabled { opacity: .6; cursor: wait; }

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-narrow);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 6px var(--blue-bright), 0 10px 22px -10px rgba(10, 44, 82, .6);
  transition: transform .15s, box-shadow .15s;
}
.auth-google-btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 6px var(--blue-bright), 0 14px 26px -10px rgba(10, 44, 82, .7);
}
.auth-google-btn:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}
.auth-google-btn__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
  box-sizing: border-box;
}
.auth-smartkey-desc {
  margin: 4px 0 16px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.4;
  text-align: center;
}
.auth-smartkey-badge {
  margin: 10px 0 0;
  font-size: 12px;
  font-family: var(--font-narrow);
  font-weight: 600;
  color: var(--blue);
  text-align: center;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.auth-profile {
  text-align: center;
  padding-top: 4px;
}
.auth-profile__email {
  margin-top: 4px;
  font-size: 15px;
  color: var(--gray);
}
/* Button to download the ID card as an image (in the builder and the profile) */
.download-button,
.edit-button {
  position: relative;   /* so the ID card's shadow (it is position: relative) does not paint on top */
  justify-self: center;
  height: 40px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
/* Room between the ID card and the buttons below: the card's shadow reaches down ~26px */
.auth-profile > .idcard-builder__preview + .download-button { margin-top: 28px; }
.idcard-builder > .idcard-builder__preview + .download-button { margin-top: 12px; }   /* + the 14px gap */
.download-button:hover,
.edit-button:hover {
  background: #eef5fc;
  border-color: var(--blue);
  color: var(--navy);
}
.download-button span { display: inline; }   /* on phones .week-button hides its text; it stays here */
.download-button:disabled { opacity: .6; cursor: wait; }
.auth-profile__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

/* ID card edit view: name, title and monster, with Cancel and Save at the bottom */
.auth-edit { display: grid; gap: 14px; }
.auth-edit .auth-form { gap: 12px; }
.auth-edit__note {
  margin: -4px 0 0;
  padding-left: 10px;
  font-size: 13px;
  color: var(--gray);
}
.auth-edit .idcard-builder { margin-bottom: 0; }
.auth-edit__buttons {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}
.auth-edit__cancel { height: 56px; padding: 0 22px; justify-content: center; cursor: pointer; }
.auth-edit__cancel:hover { background: #eef5fc; border-color: var(--blue); color: var(--navy); }
.auth-edit__save { margin-top: 0; cursor: pointer; }

.auth-profile__logout {
  margin-top: 22px;
  width: 100%;
  height: 46px;
  justify-content: center;
}
.auth-profile__logout:hover {
  background: #fde3e8;
  border-color: #f5b6c3;
  color: #b42340;
}

@media (max-width: 640px) {
  .scare-meter-bar {
    top: 14px;
    left: 14px;
  }
  .session-bar {
    top: 14px;
    right: 14px;
  }
  .hero__button--session {
    height: 38px;
    padding: 0 14px 0 16px;
    font-size: 11px;
  }
  .auth-modal__box {
    padding: 24px 18px 26px;
  }
}
/* ---------- Scarer ID card builder ---------- */

.auth-modal--signup {
  max-width: 540px;
}

.idcard-builder {
  margin-bottom: 18px;
  display: grid;
  gap: 14px;
}

.idcard-builder__preview {
  width: 100%;
  margin: 0 auto;
}

.idcard-builder__controls {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  background: #f3f5f8;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.idcard-builder__top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}

.idcard-builder__subtitle {
  font-family: var(--font-varsity);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
}

.random-button {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #d5dbe2;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .15s, border-color .15s, background .15s;
}
.random-button:hover {
  border-color: var(--blue);
  background: #eef5fc;
  transform: translateY(-1px);
}

.arcade-selector {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 10px;
}

.arcade-selector {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 10px;
}

.arcade-selector__label {
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  padding-left: 4px;
}

.arcade-selector__control {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  background: #fff;
  border: 1px solid #dce2ea;
  border-radius: 999px;
  padding: 3px;
  box-shadow: inset 0 1px 2px rgba(10, 44, 82, .04);
}

.arcade-selector__arrow {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f1f4f8;
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .15s, color .15s, transform .1s;
  user-select: none;
}
.arcade-selector__arrow:hover {
  background: var(--blue);
  color: #fff;
}
.arcade-selector__arrow:active {
  transform: scale(0.92);
}
.arcade-selector__arrow:disabled {    /* with a single title there is nowhere to go */
  opacity: .35;
  cursor: default;
}
.arcade-selector__arrow:disabled:hover { background: #f1f4f8; color: var(--navy); }
.arcade-selector__arrow:disabled:active { transform: none; }

.arcade-selector__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  user-select: none;
}

.arcade-selector__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, .2);
  flex: none;
}

/* ---------- 11. Activity page (evento.html) ---------- */

.event-hero .container { padding: 26px 0 72px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 8px 14px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  background: rgba(10, 44, 82, .5);
  color: #fff;
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
}
.back-link:hover { background: var(--navy); }
.back-link svg { width: 16px; height: 16px; }

.event-hero__content {
  max-width: 860px;
  margin: 40px auto 0;
  text-align: center;
  animation: appear .4s ease;
}

.event-hero__type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--color);
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.event-hero__type svg { width: 18px; height: 18px; }

/* Pixel art decorations (pixel-art.js): three drawings in a row with the middle one higher,
   like a podium. --px is the size of each drawing pixel; it is the same on all three
   so they look like they belong to the same game. */
.event-hero__decorations {
  --px: 5px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 24px;
}
.pixel-art {
  width: calc(var(--width) * var(--px));
  height: calc(var(--height) * var(--px));
  filter: drop-shadow(0 var(--px) 0 rgba(0, 0, 0, .35));   /* hard shadow, video game style */
  animation: bounce 1.2s steps(1) infinite;
}
.pixel-art:nth-child(2) { margin-bottom: calc(var(--px) * 5); animation-delay: .4s; }
.pixel-art:nth-child(3) { animation-delay: .8s; }

/* Rises one pixel and drops at once, with no in-between steps */
@keyframes bounce {
  50% { translate: 0 calc(var(--px) * -1); }
}

.event-hero__title {
  margin-top: 16px;
  font-family: var(--font-varsity);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}


/* The cards overlap the header photo a little */
.event {
  position: relative;
  max-width: 860px;
  margin-top: -36px;
  padding-bottom: 72px;
}

.event__card {
  padding: 30px 32px 34px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 24px 50px -26px rgba(10, 44, 82, .5);
}

.event__subtitle {
  margin: 30px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-varsity);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: .04em;
  color: var(--navy);
}

/* Notice for unconfirmed information, above the facts */
.event__notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 18px;
  border: 1px solid #f0d58a;
  border-radius: 20px;
  background: #fff3cf;
  color: #8a5e00;
  font-weight: 600;
  font-size: 15px;
}
.event__notice svg { flex: none; width: 18px; height: 18px; }

/* Day, time and place */
.event__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}
.event__facts div {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f7f8fa;
}
.event__facts dt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
}
.event__facts dt svg { width: 16px; height: 16px; color: var(--blue); }
.event__facts dd { margin: 4px 0 0; font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--navy); }

.event__signup {
  margin-top: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.event__description { margin-top: 24px; font-size: 17px; color: var(--ink-soft); }
.event__description p + p { margin-top: 12px; }

/* Activity with an image (image field in data.js): the image on the left, slightly tilted
   like a game cartridge, with the text next to it. The image keeps its shape (square or wide). */
.event__intro {
  display: grid;
  grid-template-columns: 250px 1fr;
  align-items: center;
  gap: 32px;
  margin-top: 28px;
}
.event__intro .event__description { margin-top: 0; }
.event__image {
  display: block;
  width: 100%;
  border: 5px solid #fff;
  border-radius: 22px;
  box-shadow: 0 0 0 2px var(--line), 0 18px 30px -16px rgba(10, 44, 82, .55);
  rotate: -3deg;
  transition: rotate .3s;
}
.event__image:hover { rotate: 0deg; }

/* Wide image (wider than tall, event.js marks it): takes half the card
   and tilts less so it stays inside the edge */
.event__intro--wide { grid-template-columns: 1.15fr 1fr; }
.event__intro--wide .event__image { rotate: -2deg; }

/* Tall image, like a flyer (event.js marks it): bigger so its text can be read */
.event__intro--tall { grid-template-columns: 340px 1fr; }

/* The activity's YouTube video (video field) */
.event__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 18px;
  background: var(--navy);
  box-shadow: 0 18px 30px -18px rgba(10, 44, 82, .55);
}

/* Activity stats (stats field): one box per item, in the activity's color.
   Equal widths when they fit; a box too wide for the row (a long word next to a flyer) drops to the next one. */
.event__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.event__stats li {
  flex: 1 1 0;
  display: grid;
  justify-items: center;
  padding: 10px 6px 12px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--color) 9%, #fff);
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--color) 22%, #fff);
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.event__stats strong {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--color);
}

/* Format and rules: one band per rule with its title on top */
.event__rules { display: grid; gap: 10px; margin: 0; }
.event__rules div {
  padding: 14px 18px;
  border-left: 4px solid var(--blue);
  border-radius: 0 16px 16px 0;
  background: #f7f8fa;
}
.event__rules dt {
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
.event__rules dd { margin: 4px 0 0; color: var(--ink-soft); }

/* Sections that fold under their title (participants and bracket, js/brackets.js): an arrow on
   the right, like the cheaters table on the Scare Meter, points down when closed */
.fold > summary { list-style: none; cursor: pointer; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .event__subtitle { display: flex; align-items: center; }
.fold > summary .event__subtitle::after {
  content: '';
  width: 10px;
  height: 10px;
  margin: -6px 6px 0 auto;
  border-right: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(45deg);
  transition: transform .2s, margin .2s;
}
.fold[open] > summary .event__subtitle::after { margin-top: 6px; transform: rotate(225deg); }
.fold > summary:hover .event__subtitle { color: var(--blue); }

/* Knockout bracket (js/brackets.js): one column per round, in the boxes of the rest of the page,
   joined by lines that turn blue along each winner's path. On phones it scrolls sideways. */
.bracket__scroll {
  --wire: #cfd6df;
  --gap: 28px;   /* between rounds: the lines live here */
  overflow-x: auto;
  padding-bottom: 6px;
}
/* Rounds widen to fill the card; four of them (eight players) fit without scrolling */
.bracket__rounds { display: flex; gap: var(--gap); width: max-content; min-width: 100%; }
.bracket__round { display: flex; flex: 1 0 auto; flex-direction: column; width: 170px; }
.bracket__round h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;   /* same height in every round, so the matches stay level */
  color: var(--gray);
}
.bracket__round:nth-last-child(-n+2) h3 { color: var(--navy); }   /* final and champion */
.bracket__round ol { display: flex; flex: 1; flex-direction: column; margin: 0; padding: 0; list-style: none; }

/* Every slot gets an equal share of its column, so each match sits level with the two it comes from
   and the lines can be drawn from halves: out of a match to the right, then up or down to meet its
   partner halfway, where the next match's line comes in. */
.bracket__slot { position: relative; display: flex; flex: 1; align-items: center; padding: 6px 0; }
.bracket__slot::after,
.bracket__round + .bracket__round .bracket__slot::before {
  content: '';
  position: absolute;
  width: calc(var(--gap) / 2);
  border: 0 solid var(--wire);
}
.bracket__slot::after { left: 100%; height: 50%; border-right-width: 2px; }
.bracket__slot:nth-child(odd)::after { top: 50%; border-top-width: 2px; border-top-right-radius: 10px; }
.bracket__slot:nth-child(even)::after { bottom: 50%; border-bottom-width: 2px; border-bottom-right-radius: 10px; }
.bracket__slot:only-child::after { height: 0; border-right-width: 0; }   /* the final goes straight to the champion */
.bracket__round--champion .bracket__slot::after { content: none; }
.bracket__round + .bracket__round .bracket__slot::before { right: 100%; top: 50%; border-top-width: 2px; }
.bracket__slot--won::after,
.bracket__round + .bracket__round .bracket__slot--reached::before { border-color: var(--blue); }

.bracket__match {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f8fa;
  overflow: hidden;
}
.bracket__side {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 5px 10px;
  border: 0;
  background: none;
  font: 600 15px/1.2 var(--font-narrow);
  letter-spacing: .02em;
  color: var(--navy);
  text-align: left;
}
.bracket__side > span:last-child { min-width: 0; padding-right: .2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* one line keeps the slots even */
.bracket__side + .bracket__side { border-top: 1px solid var(--line); }
button.bracket__side { cursor: pointer; }
button.bracket__side:hover { background: #e4effa; }
.bracket__side--won, button.bracket__side--won:hover { background: var(--navy); color: #fff; }
.bracket__side--lost { color: var(--gray); text-decoration: line-through; }
.bracket__side--lost .bracket__flag { filter: grayscale(1) brightness(.6); }
.bracket__side--empty { color: var(--gray); font-weight: 500; font-style: italic; }
.bracket__flag { flex: none; width: 20px; margin-right: 6px; font-size: 4.4px; }   /* the font size scales a pennant down */
.bracket__flag > svg { width: 100%; }

/* The champion: gold like the gold ID card, with its shine */
.bracket__champion {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 18px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffcf0 0%, #fbedbe 24%, #eed074 50%, #fae6a8 76%, #dfb53d 100%);
  border: 2px solid #d4a017;
  font: 400 17px/1.2 var(--font-title);
  color: #241902;
  text-align: center;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.bracket__champion::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%);
  background-size: 200% 200%;
  animation: idcard-gold-shimmer 4s ease-in-out infinite;
  pointer-events: none;
}
.bracket__champion svg { width: 44px; height: 44px; color: #8a6200; }
.bracket__champion--empty {
  border: 2px dashed #e3c766;
  background: #fffbea;
  font: italic 600 16px/1.2 var(--font-narrow);
  color: #8a6200;
}
.bracket__champion--empty::before { content: none; }
.bracket__champion--empty svg { color: #c99a12; }

/* A person's pennant: the cloth in their monster's color, their monster on a cream patch.
   Sized in em so it can shrink (the bracket sets a small font size). */
.monster-flag {
  display: flex;
  justify-content: center;
  width: 4.5em;
  height: 5.625em;   /* the banners' 120:150 */
  padding-top: .55em;
  background:
    linear-gradient(rgba(0, 0, 0, .12) 0 .25em, transparent .25em),
    radial-gradient(circle at 50% 2.05em, #fffdf6 0 1.5em, rgba(0, 0, 0, .15) 1.5em 1.62em, transparent 1.62em),
    var(--cloth);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
}
.monster-flag svg { width: 3em; height: 3em; }

/* Participants (js/brackets.js): their flags hang from strings and sway */
.flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* a row that is not full sits in the middle */
  gap: 20px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flags__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 98px;
  gap: 6px;
  padding: 10px 4px 0;
  font: 600 14px/1.15 var(--font-narrow);
  color: var(--navy);
  text-align: center;
  overflow-wrap: anywhere;
}
/* Each flag's piece of string sags to where it hangs; side by side they read as one garland */
.flags__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  border-bottom: 2px solid #b9a77a;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.flags__item > :first-child {
  width: 72px;
  font-size: 16px;
  transform-origin: 50% 0;
  animation: flag-sway 3s ease-in-out infinite alternate;
}
.flags__item > svg { filter: drop-shadow(0 6px 6px rgba(10, 44, 82, .25)); }
.flags__item:nth-child(2n) > :first-child { animation-delay: -1.5s; }
.flags__item:nth-child(3n) > :first-child { animation-duration: 3.7s; }
/* Knocked out: the flag goes dark and hangs still and crooked */
.flags__item--out > :first-child { filter: grayscale(1) brightness(.45); rotate: 9deg; animation: none; }
.flags__item--out > span { color: var(--gray); text-decoration: line-through; }
@keyframes flag-sway {
  from { rotate: -4deg; }
  to { rotate: 4deg; }
}
.bracket__editor { margin-top: 18px; }
.bracket__editor summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.bracket__names {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: 15px/1.4 var(--font-body);
  resize: vertical;
}
.bracket__message { margin-top: 10px; font-weight: 600; color: var(--blue-dark); }
.bracket__message:empty { display: none; }

/* Speaker or organizer: monster or logo, with name and role next to it */
.event__profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.event__profile + .event__profile { margin-top: 12px; }
.event__avatar {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(#e4effa, #a9cbee);
}
.event__avatar svg { width: 100%; height: 100%; }
.event__avatar--photo { width: 150px; height: 150px; border-radius: 22px; }   /* the speaker's real photo */
.event__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);   /* white background logos do not get lost on the card */
  border-radius: inherit;
}
.event__profile strong {
  display: block;
  font-family: var(--font-varsity);
  font-weight: 400;
  font-size: 19px;
  color: var(--navy);
}
.event__profile div span { color: var(--gray); }
.event__profile > div { flex: 1 1 260px; }
.event__profile:has(.event__bio) { align-items: flex-start; }
.event__bio { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.event__more {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--blue);
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.event__more:hover { text-decoration: underline; }
.event__more svg { width: 15px; height: 15px; transition: transform .2s; }
.event__more:hover svg { transform: translateX(3px); }

/* Links to the activities at the same time */
.event__overlaps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.event__overlaps a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--color) 20%, var(--line));
  border-left: 5px solid var(--color);
  border-radius: 16px;
  background: #ffffff;
  background: linear-gradient(120deg, #ffffff 20%, color-mix(in srgb, var(--color) 6%, #ffffff) 100%);
  box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--color) 25%, rgba(10, 44, 82, 0.1));
  color: inherit;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.event__overlaps a:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, #ffffff 10%, color-mix(in srgb, var(--color) 10%, #ffffff) 100%);
  box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--color) 35%, rgba(10, 44, 82, 0.15));
}
.event__overlaps strong {
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
}
.event__overlaps span { margin-left: auto; font-size: 14px; color: var(--gray); white-space: nowrap; }
.event__overlaps svg { width: 16px; height: 16px; flex: none; color: var(--blue); }

/* Stands fair (stands field, js/event.js): each stand is a pixel art drawing (PIXEL_ART.stand)
   with the logo on its counter. --px is one drawing pixel; --x and --y place each extra piece
   in drawing pixels from the stand's top-left corner, so everything lines up with it. */
.stands { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.stand {
  --px: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.stand:nth-child(even) { flex-direction: row-reverse; }   /* zigzag down the list */
/* Arriving from a pennant on the home page (#stand-<id>): leave room above and mark it */
.stand { scroll-margin-top: 24px; }
.stand:target { border-color: var(--color); box-shadow: 0 0 0 2px var(--color); }
.stand__text { flex: 1 1 260px; }
.stand__text strong {
  display: block;
  font-family: var(--font-varsity);
  font-weight: 400;
  font-size: 19px;
  color: var(--navy);
}
.stand__text > span { color: var(--gray); }
.stand__booth { position: relative; flex: none; }
.stand .pixel-art { animation: none; margin: 0; }
.stand__logo {
  position: absolute;
  left: calc(var(--px) * 9.5);
  top: calc(var(--px) * 21.5);
  width: calc(var(--px) * 13);
  height: calc(var(--px) * 13);
  border: calc(var(--px) / 2) solid #fff;
  border-radius: var(--px);
  background: #fff;
  object-fit: cover;
}

/* Whoever minds the stand (a monster in its color). It moves a whole pixel at a time,
   like a video game; --i offsets each stand's timing so they do not all move together. */
.stand__piece {
  position: absolute;
  left: calc(var(--px) * var(--x));
  top: calc(var(--px) * var(--y));
}
.stand__window {               /* the space between the posts: the mascot hides behind the counter */
  width: calc(var(--px) * 22);
  height: calc(var(--px) * 13);
  overflow: hidden;
}
.stand__mascot .pixel-art { filter: none; }
.stand__mascot { animation: bounce 1.2s steps(1) infinite; }
.stand:hover .stand__mascot { animation-duration: .4s; }   /* happier when someone comes by */
.stand__iris { animation: stand-look 6s steps(1) infinite; }
.stand__blink { opacity: 0; animation: stand-blink 4s steps(1) infinite; }
.stand__wave { transform-origin: 0 100%; animation: stand-wave .8s steps(1) infinite; }
.stand__mascot, .stand__iris, .stand__blink, .stand__wave { animation-delay: calc(var(--i) * -.7s); }
@keyframes stand-look {
  30% { translate: calc(var(--px) * -1) 0; }
  50% { translate: 0 0; }
  75% { translate: var(--px) 0; }
  95% { translate: 0 0; }
}
@keyframes stand-blink {
  90% { opacity: 1; }
  94% { opacity: 0; }
}
@keyframes stand-wave {
  50% { rotate: -25deg; }
}

@media (max-width: 640px) {
  .event-hero .container { padding: 16px 0 60px; }
  .event-hero__content { margin-top: 28px; }
  .event-hero__decorations { --px: 4px; gap: 18px; margin-bottom: 18px; }
  .event { padding-bottom: 48px; }
  .event__card { padding: 22px 18px 24px; border-radius: 24px; }
  .event__facts { grid-template-columns: 1fr; }
  .event__description { font-size: 16px; }
  .event__intro { grid-template-columns: 1fr; gap: 22px; }
  .event__image { max-width: 300px; margin-inline: auto; }
  .event__intro--wide .event__image { max-width: none; }   /* the wide one uses the full width */
  .event__stats strong { font-size: 30px; }
  .event__avatar--photo { width: 120px; height: 120px; }
  .stand { --px: 5px; padding: 16px 12px; }
}


/* ================================================================
   12b. SCARE METER - THE SCARE TANK
   ================================================================ */

/* Scare Meter page container */
.scare-meter-page {
  color: #fff;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Header with background */
.scare-meter-hero {
  position: relative;
  padding: 24px 0 44px;
  background-color: #120926;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: hidden;
}

/* Uses the width of .container, capped at 1100px so the buttons line up
   with the tank and the table below (.scare-meter-layout) */
.scare-meter-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin-bottom: 24px;
  position: relative;
  z-index: 5;
}

.session-bar-nav {
  position: static;
}

.scare-meter-hero__content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 16px;
  box-sizing: border-box;
}

/* The drawings, label and title use the activity header classes (event-hero__*) */
.scare-meter-hero__intro {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

/* What a page that needs a session shows without one (showLoginGate in js/auth.js) */
.login-gate {
  width: min(520px, 100% - 32px);
  margin: 40px auto 56px;
  padding: 30px 32px 34px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 24px 50px -26px rgba(10, 44, 82, .5);
  text-align: center;
}
.login-gate__title { margin: 0; font-family: var(--font-title); font-size: 24px; font-weight: 400; line-height: 1.2; color: var(--navy); }
.login-gate__text { margin: 12px 0 18px; line-height: 1.6; color: var(--ink-soft); }
.login-gate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.login-gate__actions .hero__button { width: auto; flex: 1 1 170px; }

/* Main 2-column layout */
.scare-meter-main {
  padding: 40px 0 48px;
  overflow-x: hidden;
}

.scare-meter-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 880px) {
  .scare-meter-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Left column: sticky canister */
.tank-sticky-wrapper {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tank-station {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* White card below the tank: name, @user and the message */
.tank-reading {
  margin-top: 22px;
  width: 100%;
  max-width: 280px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px -14px rgba(10, 44, 82, 0.45);
  text-align: center;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.tank-reading strong {
  display: block;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  color: var(--navy);
}
.tank-reading small {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--blue);
}

/* ================================================================
   THE SCARE TANK (SCREAM CANISTER)
   ================================================================ */

.scare-tank {
  width: 268px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.75));
  user-select: none;
}

/* Top handle with valve */
.tank__handle-block {
  width: 172px;
  height: 48px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.tank__valve {
  position: absolute;
  top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.valve__nozzle {
  width: 28px;
  height: 14px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(90deg, #6c757d, #adb5bd 40%, #dee2e6 60%, #495057);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.valve__coupling {
  width: 38px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, #b08d24, #f5c31e 40%, #ffde59 60%, #8c6e14);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

.tank__handle {
  width: 100%;
  height: 42px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, #b07d00 0%, #ebb400 20%, #ffde59 50%, #ebb400 80%, #8f6000 100%);
  position: relative;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.65), 0 3px 6px rgba(0, 0, 0, 0.4);
}

.tank__handle-hole {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  border-radius: 14px 14px 0 0;
  background: #090616;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.8);
}

/* Beveled yellow dome */
.tank__dome {
  width: 236px;
  height: 20px;
  border-radius: 18px 18px 3px 3px;
  background: linear-gradient(90deg, #ad7600 0%, #f6be00 18%, #ffdb4d 50%, #f6be00 82%, #855500 100%);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.6);
}

/* Black collars / industrial joints */
.tank__collar {
  width: 252px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(90deg, #121417 0%, #282d34 25%, #444b56 50%, #282d34 75%, #0f1114 100%);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.2), 0 4px 8px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 22px;
  box-sizing: border-box;
}

.collar__slot {
  width: 14px;
  height: 5px;
  border-radius: 2px;
  background: #08090b;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.9), 0 1px 1px rgba(255,255,255,0.15);
}

/* Cylindrical yellow body */
.tank__body {
  position: relative;
  width: 244px;
  height: 350px;
  background: linear-gradient(90deg, #a87200 0%, #ebb400 15%, #ffde59 45%, #ffd438 60%, #e0a700 85%, #8c5d00 100%);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 10px 8px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Circuits etched on the tank body */
.tank__circuits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Stickers on the tank */
.tank__stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

/* Two shadows: a short sharp one that lifts the white border off the metal, and a soft one below */
.sticker {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
  user-select: none;
}

.sticker:hover {
  transform: scale(1.15) rotate(0deg) !important;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35));
  z-index: 10;
}

.sticker__svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Three to the left of the gauge and two to the right, all the same size */
.sticker--python {
  top: 40px;
  left: 12px;
  width: 50px;
  height: 50px;
  transform: rotate(-8deg);
}

.sticker--linux {
  top: 66px;
  right: 12px;
  width: 50px;
  height: 50px;
  transform: rotate(9deg);
}

.sticker--git {
  top: 114px;
  left: 10px;
  width: 55px;
  height: 55px;
  transform: rotate(6deg);
}

.sticker--terminal {
  top: 158px;
  right: 9px;
  width: 56px;
  height: 43px;
  transform: rotate(-6deg);
}

.sticker--cpp {
  top: 192px;
  left: 13px;
  width: 48px;
  height: 48px;
  transform: rotate(-5deg);
}

/* Central silver gauge with a glass tube */
.tank__gauge {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 206px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dce2e9 0%, #9aa3af 45%, #6a7482 100%);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.9),
    inset 0 -3px 4px rgba(0, 0, 0, 0.65),
    0 6px 16px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  box-sizing: border-box;
}

/* Hexagonal corner screws */
.gauge__screw {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #474f5a;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0,0,0,0.5);
}
.gauge__screw--tl { top: 6px; left: 6px; }
.gauge__screw--tr { top: 6px; right: 6px; }
.gauge__screw--bl { bottom: 6px; left: 6px; }
.gauge__screw--br { bottom: 6px; right: 6px; }

/* Side scale with + and - */
.gauge__scale {
  position: absolute;
  left: 3px;
  top: 18px;
  bottom: 18px;
  width: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: #3b424c;
  font-family: var(--font-varsity);
  font-weight: 700;
  font-size: 10px;
  user-select: none;
}

.scale__mark {
  width: 5px;
  height: 1.5px;
  background: #4a5360;
  border-radius: 1px;
}

/* Inner glass tube */
.gauge__tube {
  position: relative;
  width: 36px;
  height: 180px;
  border-radius: 18px;
  background: #090d14;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.95), 0 0 0 1.5px rgba(0, 0, 0, 0.4);
}

/* Scare liquid (neon red/amber) */
.gauge__liquid {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #ff7a8a 0%, #ff2a4b 30%, #e00b2e 75%, #a6001a 100%);
  box-shadow:
    0 0 20px 4px rgba(255, 42, 75, 0.85),
    inset 0 0 8px rgba(255, 255, 255, 0.6);
  transition: height 0.85s cubic-bezier(.25, .8, .25, 1);
  overflow: hidden;
}

.gauge__wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent) 0 0 / 200% 100%;
  animation: scare-shine 2.8s linear infinite;
}

.gauge__light {
  position: absolute;
  top: 0;
  left: 20%;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent);
}

.gauge__bubble {
  position: absolute;
  bottom: -10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  animation: scare-rise 4.2s ease-in infinite;
}
.gauge__bubble:nth-child(2) { left: 20%; animation-duration: 3.8s; }
.gauge__bubble:nth-child(3) { left: 60%; width: 4px; height: 4px; animation-duration: 5s; animation-delay: -1.8s; }

@keyframes scare-shine { to { background-position: -200% 0; } }
@keyframes scare-rise {
  from { top: 100%; opacity: .9; }
  to { top: -10%; opacity: 0; }
}

/* Segmented chambers in the glass */
.gauge__chambers {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  pointer-events: none;
}

.chamber__segment {
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Glass reflection */
.gauge__glass-glare {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.05) 30%, transparent 60%);
  pointer-events: none;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.2);
}

/* Dark screen with the selected person's name and points */
.tank__hud {
  position: relative;
  z-index: 2;
  width: 92%;
  padding: 9px 12px 10px;
  border-radius: 10px;
  background: #0d1119;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8), 0 3px 6px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  text-align: center;
}

.hud__name {
  display: block;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud__points {
  display: block;
  margin-top: 2px;
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 1.1;
  color: #ffde59;
}
.hud__points small {
  margin-left: 2px;
  font-family: var(--font-varsity);
  font-size: 12px;
  letter-spacing: .08em;
  color: #c9b25a;
}

/* Beveled tank base */
.tank__base {
  width: 252px;
  height: 24px;
  border-radius: 3px 3px 18px 18px;
  background: linear-gradient(90deg, #ad7600 0%, #f6be00 18%, #ffdb4d 50%, #f6be00 82%, #855500 100%);
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.5), 0 6px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 3px;
  box-sizing: border-box;
}

.tank__base-foot {
  width: 140px;
  height: 5px;
  border-radius: 3px;
  background: #181b20;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}

/* ================================================================
   RIGHT COLUMN: TABLE AND SCARER CARDS
   ================================================================ */

.scare-meter-col-ranking {
  min-width: 0;
}

/* White card like the one on each activity page */
.ranking-card {
  padding: 30px 32px 34px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 24px 50px -26px rgba(10, 44, 82, .5);
  color: var(--ink);
}

/* Search input for ranking list */
.ranking-search {
  position: relative;
  margin-bottom: 18px;
}
.ranking-search__input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 44px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #f8fafc;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
  box-sizing: border-box;
}
.ranking-search__input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 103, 194, .12);
}
.ranking-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  pointer-events: none;
  font-size: 15px;
  line-height: 1;
}
.ranking-search__clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ranking-search__clear:hover {
  color: var(--ink);
  background: #e2e8f0;
}

/* Paginación del Sustómetro y banner de posición del usuario */
.my-rank-banner {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #f0f7ff;
  border: 1.5px solid #bdd7f5;
  border-radius: 20px;
}
.my-rank-banner__label {
  display: block;
  font-size: 11px;
  font-family: var(--font-varsity);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.my-rank-item .scarer-card {
  box-shadow: 0 4px 14px rgba(22, 103, 194, 0.12);
  border-color: #85b8eb;
}
.ranking-more {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.ranking-more__btn {
  height: 42px;
  padding: 0 24px;
  font-size: 13px;
  font-family: var(--font-varsity);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: #f8fafc;
  cursor: pointer;
  transition: all .15s ease;
}
.ranking-more__btn:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}
.ranking-more__btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.ranking-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.ranking-card__title {
  font-family: var(--font-varsity);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: .04em;
  color: var(--navy);
}

.ranking-card__badge {
  padding: 7px 16px;
  border-radius: 999px;
  background: #e4effa;
  color: var(--blue);
  font-family: var(--font-varsity);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* List of cards. At most six show: with more people a scrollbar appears and the list
   moves one card at a time (scroll-snap-stop keeps it from skipping any).
   --row is each card's height: avatar (48) + padding (24) + border (2).
   --scroll-margin shows the chosen card's blue ring without the bar cutting it. */
.ranking-list {
  --row: 74px;
  --gap: 10px;
  --scroll-margin: 6px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  max-height: calc(6 * var(--row) + 5 * var(--gap) + 2 * var(--scroll-margin));
  margin: calc(-1 * var(--scroll-margin));
  padding: var(--scroll-margin);
  list-style: none;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-padding: var(--scroll-margin);
  scrollbar-width: thin;
  scrollbar-color: #c9d2dc transparent;
}

/* Each row: the card to choose the person and, on top at the right, their ID card button.
   They are sibling buttons (a button cannot go inside another),
   so the card leaves room on the right. */
.scarer-item {
  position: relative;
  flex: none;
  margin: 0;
  padding: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.scarer-item .scarer-card { padding-right: 68px; }

/* Action group on the ranking item */
.scarer-item__actions {
  position: absolute;
  top: 50%;
  right: 16px;
  translate: 0 -50%;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scarer-item--supervisor .scarer-card {
  padding-right: 114px;
}

.scarer-item__admin-pts {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(22, 103, 194, 0.3);
  background: #fff;
  color: #1667c2;
  display: grid;
  place-items: center;
  transition: all .15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.scarer-item__admin-pts:hover {
  background: #1667c2;
  border-color: #1667c2;
  color: #fff;
  transform: scale(1.06);
}
.scarer-item__admin-pts svg {
  width: 18px;
  height: 18px;
}

.scarer-item__idcard {
  position: absolute;
  top: 50%;
  right: 16px;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  transition: background .15s, border-color .15s, color .15s;
}
.scarer-item__actions .scarer-item__idcard {
  position: static;
  translate: none;
}
.scarer-item__idcard:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.scarer-item__idcard:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.scarer-item__idcard svg { width: 20px; height: 20px; }

/* Supervisor button on the tank screen (HUD) */
.hud__admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(22, 103, 194, 0.15);
  border: 1px solid rgba(22, 103, 194, 0.35);
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1667c2;
  transition: all .15s ease;
  cursor: pointer;
}
.hud__admin-btn:hover {
  background: #1667c2;
  color: #fff;
  transform: translateY(-1px);
}
.hud__admin-btn svg {
  width: 13px;
  height: 13px;
}

/* Edit points modal (supervisor) */
.admin-points-modal .auth-modal__box {
  max-width: 440px;
}

.points-modal__badge {
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: #fff3cf;
  border: 1px solid #e0b200;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a6400;
}

.points-modal__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.points-modal__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.points-modal__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #1667c2;
  background: linear-gradient(#e4effa, #a9cbee);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}
.points-modal__avatar svg {
  width: 100%;
  height: 100%;
  transform: translateY(3px);
}

.points-modal__info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.points-modal__name {
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.points-modal__email {
  font-size: 13px;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.points-modal__editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.points-modal__label {
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}

.points-modal__input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.points-modal__input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  font-family: var(--font-title);
  font-size: 26px;
  color: var(--navy);
  text-align: right;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.points-modal__input:focus {
  outline: none;
  border-color: #1667c2;
  box-shadow: 0 0 0 3px rgba(22, 103, 194, 0.18);
}

.points-modal__unit {
  font-family: var(--font-varsity);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  color: #1667c2;
}

.points-modal__shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.points-modal__shortcut {
  flex: 1;
  min-width: 50px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 13px;
  color: #334155;
  transition: all .15s ease;
  cursor: pointer;
}
.points-modal__shortcut:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}
.points-modal__shortcut:active {
  transform: scale(0.96);
}

.points-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}


/* Audit modal and reason field */
.points-modal__reason-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.points-modal__reason-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-family: inherit;
  font-size: 13px;
  color: var(--navy);
  background: #f8fafc;
  box-sizing: border-box;
}
.points-modal__reason-input:focus {
  outline: none;
  border-color: #1667c2;
  box-shadow: 0 0 0 2px rgba(22, 103, 194, 0.18);
  background: #fff;
}

.modal-audit-log .auth-modal__box--wide {
  max-width: 720px;
  width: 95vw;
}
.audit-modal__intro {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--gray);
}
.audit-modal__table-wrap {
  margin-top: 14px;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}
.audit-table th {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  padding: 10px 12px;
  font-family: var(--font-narrow);
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1.5px solid #cbd5e1;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
  z-index: 2;
}
.audit-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--navy);
  vertical-align: middle;
}
.audit-table tr:hover td {
  background: #f8fafc;
}
.audit-table__empty {
  text-align: center;
  padding: 28px !important;
  color: var(--gray);
  font-style: italic;
}
.audit-diff {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-varsity);
  font-weight: 700;
}
.audit-diff--pos {
  color: #15803d;
}
.audit-diff--neg {
  color: #b91c1c;
}
.hud__admin-btn--audit {
  background: rgba(22, 103, 194, 0.08) !important;
  border-color: rgba(22, 103, 194, 0.25) !important;
  margin-left: 6px;
}
.hud__admin-btn--audit:hover {
  background: #1667c2 !important;
  color: #fff !important;
}

/* Each person in a light gray box, like the day, time and place ones */
.scarer-card {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f7f8fa;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.scarer-card:hover {
  background: #f1f4f8;
  border-color: #c9dcf2;
}

.scarer-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* The person shown on the tank: blue ring, like the chosen speaker photo */
.scarer-card[aria-pressed='true'] {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 103, 194, .18), 0 10px 22px -14px rgba(10, 44, 82, .5);
}

/* ---------- Scare Meter podium rows (gold, silver, bronze) ---------- */
.scarer-card--gold {
  background: linear-gradient(135deg, #fffdf2 0%, #fef9e8 50%, #f9edd0 100%);
  border-color: #eed074;
  box-shadow: 0 3px 14px -3px rgba(212, 160, 23, 0.28);
}
.scarer-card--gold:hover {
  background: linear-gradient(135deg, #ffffff 0%, #faefcc 100%);
  border-color: #d4a017;
  box-shadow: 0 6px 20px -3px rgba(212, 160, 23, 0.42);
}
.scarer-card--gold[aria-pressed='true'] {
  background: #fffdf5;
  border-color: #d4a017;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, .3), 0 10px 22px -12px rgba(180, 130, 20, .55);
}
.scarer-card--gold .scarer-card__pts {
  color: #8a6400;
}
.scarer-card--gold .scarer-card__pts small {
  color: #b48500;
}

.scarer-card--silver {
  background: linear-gradient(135deg, #ffffff 0%, #f6f8fb 50%, #e9eef5 100%);
  border-color: #cbd5e1;
  box-shadow: 0 3px 14px -3px rgba(100, 116, 139, 0.24);
}
.scarer-card--silver:hover {
  background: linear-gradient(135deg, #ffffff 0%, #dfe7f1 100%);
  border-color: #94a3b8;
  box-shadow: 0 6px 20px -3px rgba(100, 116, 139, 0.38);
}
.scarer-card--silver[aria-pressed='true'] {
  background: #ffffff;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, .32), 0 10px 22px -12px rgba(71, 85, 105, .5);
}
.scarer-card--silver .scarer-card__pts {
  color: #334155;
}
.scarer-card--silver .scarer-card__pts small {
  color: #64748b;
}

.scarer-card--bronze {
  background: linear-gradient(135deg, #fffaf6 0%, #fbf0e6 50%, #f6dfcd 100%);
  border-color: #e5b388;
  box-shadow: 0 3px 14px -3px rgba(180, 83, 9, 0.22);
}
.scarer-card--bronze:hover {
  background: linear-gradient(135deg, #ffffff 0%, #edd1b9 100%);
  border-color: #c87a48;
  box-shadow: 0 6px 20px -3px rgba(180, 83, 9, 0.36);
}
.scarer-card--bronze[aria-pressed='true'] {
  background: #fff8f2;
  border-color: #c87a48;
  box-shadow: 0 0 0 3px rgba(200, 122, 72, .3), 0 10px 22px -12px rgba(124, 45, 18, .5);
}
.scarer-card--bronze .scarer-card__pts {
  color: #8f4c10;
}
.scarer-card--bronze .scarer-card__pts small {
  color: #b45309;
}


/* Tabla de Tramposos (Muro de Shadowban en sustometro.html) */
.ranking-card--clowns,
.ranking-card--tramposos {
  margin-top: 24px;
  border: 2px dashed #ff4d6d;
  background: linear-gradient(180deg, #fff5f7 0%, #ffeef2 100%);
}
/* It folds: the header is the <summary> of a <details>, closed by default */
.ranking-card__header--clowns {
  list-style: none;
  cursor: pointer;
}
.ranking-card__header--clowns::-webkit-details-marker { display: none; }
.ranking-card__header--clowns .ranking-card__badge { margin-left: auto; }
.ranking-card__header--clowns::after {
  content: '';
  width: 10px;
  height: 10px;
  margin: -6px 4px 0 0;
  border-right: 3px solid #ff0033;
  border-bottom: 3px solid #ff0033;
  transform: rotate(45deg);
  transition: transform .2s, margin .2s;
}
.ranking-card--clowns[open] .ranking-card__header--clowns::after { margin-top: 6px; transform: rotate(225deg); }
.ranking-card--clowns:not([open]) .ranking-card__header--clowns {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.ranking-card__header--clowns,
.ranking-card__header--tramposos {
  border-bottom: 2px dashed rgba(255, 77, 109, 0.3);
}
.ranking-card__badge--clowns,
.ranking-card__badge--tramposos {
  background: #ff0033 !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: pulse-clown 2s infinite;
}
@keyframes pulse-clown {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.04); }
}
.clowns-desc,
.tramposos-desc {
  padding: 12px 18px 0;
  margin: 0;
  font-size: 13px;
  color: #8c1d34;
  line-height: 1.4;
}
.clowns-warning,
.tramposos-warning {
  margin: 12px 18px 0;
  padding: 10px 14px;
  background: rgba(255, 0, 51, 0.08);
  border: 1px solid rgba(255, 0, 51, 0.35);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #7a0c20;
}
.clowns-warning__icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.2;
}
.clowns-warning__text strong {
  color: #a8001e;
  font-weight: 700;
}
.ranking-list--clowns,
.ranking-list--tramposos {
  padding: 14px 18px 18px;
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
}
.scarer-item--clown .scarer-card,
.scarer-item--tramposo .scarer-card {
  border: 2px solid #ff4d6d;
  background: #fff;
  opacity: 0.95;
}
.scarer-item--clown .scarer-card:hover,
.scarer-item--tramposo .scarer-card:hover {
  background: #fff5f7;
}
.scarer-item__idcard--clown {
  border-color: #ff4d6d;
  color: #ff0033;
}
.scarer-item__idcard--clown:hover {
  background: #ff0033;
  color: #fff;
}

/* Clown row in the Scare Meter table */
.scarer-card--clown {
  background: repeating-linear-gradient(45deg, #fff5f5, #fff5f5 10px, #fee2e2 10px, #fee2e2 20px) !important;
  border: 2px dashed #f43f5e !important;
  box-shadow: 0 3px 14px -3px rgba(244, 63, 94, 0.3) !important;
}
.scarer-card--clown:hover {
  background: repeating-linear-gradient(45deg, #ffffff, #ffffff 10px, #fecdd3 10px, #fecdd3 20px) !important;
  border-color: #e11d48 !important;
  box-shadow: 0 6px 20px -3px rgba(225, 29, 72, 0.45) !important;
}
.scarer-card--clown[aria-pressed='true'] {
  background: #fff1f2 !important;
  border-color: #be123c !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, .3), 0 10px 22px -12px rgba(190, 18, 60, .55) !important;
}
.scarer-card--clown .scarer-card__pts {
  color: #be123c !important;
}
.scarer-card--clown .scarer-card__pts small {
  color: #e11d48 !important;
}
.scarer-card--clown .scarer-card__percent {
  color: #be123c;
}

/* Place in the table; the top three in medal colors once there are points */
.scarer-card__rank {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 15px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
}
.scarer-card__rank--gold { background: #fff3cf; border-color: #e0b200; color: #8a6400; }
.scarer-card__rank--silver { background: #eef1f5; border-color: #aab4c0; color: #4d5866; }
.scarer-card__rank--bronze { background: #fde8d4; border-color: #d98a3a; color: #8f4c10; }
.scarer-card__rank--clown { background: #ffe4e6; border-color: #f43f5e; color: #be123c; font-size: 18px; }

/* Monster avatar (each monster sets the border color) */
.scarer-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: linear-gradient(#e4effa, #a9cbee);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
  flex-shrink: 0;
}
.scarer-card__avatar svg {
  width: 100%;
  height: 100%;
  transform: translateY(3px);
}

/* Student details */
.scarer-card__info {
  overflow: hidden;
  min-width: 0;
}

.scarer-card__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--navy);
}

.scarer-card__title-tag {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: #e9eef5;
  border: 1px solid #cbd5e1;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #3b526d;
}

.scarer-card__title-tag--debugger {
  background: #090e17;
  border-color: rgba(0, 240, 255, 0.45);
  color: #00f0ff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.scarer-card__title-tag--nocturnal {
  background: #190b28;
  border-color: rgba(168, 85, 247, 0.5);
  color: #d8b4fe;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.25);
}

.scarer-card__title-tag--phenomenon {
  background: #006428;
  border-color: #ffdf00;
  color: #ffdf00;
}

.scarer-card__title-tag--konami {
  padding: 3px 6px 2px;
  border: 0;
  border-radius: 0;
  background: #e4000f;
  box-shadow: 2px 2px 0 #8b0009;
  font-family: 'Press Start 2P', monospace;
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 0;
  color: #fff;
}

.scarer-card__title-tag--clown {
  background: #ffe4e6 !important;
  color: #be123c !important;
  border: 1px solid #fda4af !important;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.2);
}

.scarer-card__email {
  margin-top: 2px;
  font-size: 13px;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Score and percentage on the card */
.scarer-card__score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  gap: 2px;
}

.scarer-card__pts {
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 1;
  color: var(--navy);
}
.scarer-card__pts small {
  margin-left: 2px;
  font-family: var(--font-varsity);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--blue);
}

.scarer-card__percent {
  font-weight: 600;
  font-size: 12px;
  color: var(--gray);
}

/* Empty, error and loading states */
.ranking-empty,
.ranking-error {
  padding: 40px 16px;
  text-align: center;
}

.ranking-empty__box {
  max-width: 440px;
  margin: 0 auto;
  padding: 32px 20px;
  border: 1px dashed #c9d2dc;
  border-radius: 20px;
  background: #f7f8fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.ranking-empty__box h3 {
  margin: 0;
  font-family: var(--font-varsity);
  font-weight: 400;
  font-size: 20px;
  color: var(--navy);
}
.ranking-empty__box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.ranking-empty__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
  color: var(--blue);
}

.ranking-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(22, 103, 194, .2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Easter egg dialog: the cat GIF like a photo with the five stickers stuck around it,
   the title and the big code. If someone found it first, the stickers look switched off. */
.easter-egg__box {
  padding-top: 40px;
  text-align: center;
}

.easter-egg__photo {
  position: relative;
  width: 210px;
  margin: 0 auto 26px;
}
.easter-egg__gif {
  display: block;
  width: 100%;
  aspect-ratio: 1;               /* keeps the space while the GIF loads */
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 20px;
  background: #e9ecef;
  box-shadow: 0 0 0 1px var(--line), 0 14px 26px -14px rgba(10, 44, 82, .55);
  rotate: -2deg;
}

/* The sticker copies come in tank order: Python, Linux, Git, Terminal and C++ */
.easter-egg__stickers svg {
  position: absolute;
  width: auto;
  height: 50px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)) drop-shadow(0 4px 6px rgba(10, 44, 82, .25));
}
.easter-egg__stickers svg:nth-child(1) { top: -20px; left: -28px; rotate: -12deg; }
.easter-egg__stickers svg:nth-child(2) { top: -22px; right: -26px; rotate: 10deg; }
.easter-egg__stickers svg:nth-child(3) { bottom: -20px; left: -30px; rotate: 8deg; }
.easter-egg__stickers svg:nth-child(4) { bottom: -16px; right: -36px; rotate: -8deg; }
.easter-egg__stickers svg:nth-child(5) { top: 42%; left: -40px; rotate: -6deg; }
.easter-egg--late .easter-egg__stickers svg { filter: grayscale(1) opacity(.6); }

.easter-egg__title { font-size: 28px; text-wrap: balance; }

.easter-egg__text {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.easter-egg__code {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 26px;
  border: 2px dashed var(--blue);
  border-radius: 16px;
  background: #e4effa;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: .12em;
  color: var(--navy);
}

/* Responsive adjustments for mobile and small screens */
@media (max-width: 640px) {
  .scare-meter-nav {
    flex-direction: row;
    gap: 8px;
  }
  .scare-meter-hero {
    padding: 18px 0 34px;
  }
  .scare-meter-main {
    padding: 24px 0 36px;
  }
  .ranking-card {
    padding: 18px 14px;
    border-radius: 20px;
  }
  .scarer-card {
    grid-template-columns: 32px 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
  }
  .ranking-list { --row: 62px; }   /* avatar 40 + padding 20 + border */
  .easter-egg__stickers svg { height: 40px; }
  .easter-egg__code { font-size: 32px; }
  .scarer-item .scarer-card { padding-right: 54px; }
  .scarer-item--supervisor .scarer-card { padding-right: 92px; }
  .scarer-item__actions { right: 10px; gap: 6px; }
  .scarer-item__admin-pts { width: 34px; height: 34px; }
  .scarer-item__admin-pts svg { width: 16px; height: 16px; }
  .scarer-item__idcard { right: 12px; width: 34px; height: 34px; }
  .scarer-item__idcard svg { width: 17px; height: 17px; }
  .scarer-card__rank {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .scarer-card__avatar {
    width: 40px;
    height: 40px;
  }
  .scarer-card__name {
    font-size: 17px;
  }
  .scarer-card__email {
    font-size: 11.5px;
  }
  .scarer-card__pts {
    font-size: 17px;
  }
  .scarer-card__percent {
    font-size: 11px;
  }
  .scare-tank {
    width: 240px;
  }
  .tank__body {
    width: 220px;
    height: 320px;
  }
  .tank__collar {
    width: 228px;
  }
  .tank__dome {
    width: 212px;
  }
  .tank__base {
    width: 228px;
  }
  .sticker--python { width: 44px; height: 44px; left: 9px; top: 30px; }
  .sticker--linux { width: 44px; height: 44px; right: 9px; top: 56px; }
  .sticker--git { width: 48px; height: 48px; left: 7px; top: 102px; }
  .sticker--terminal { width: 48px; height: 37px; right: 7px; top: 142px; }
  .sticker--cpp { width: 42px; height: 42px; left: 10px; top: 176px; }
}



/* ---------- 12. Student groups ---------- */

.groups {
  padding: 80px 0 96px;
  background: linear-gradient(var(--navy), #061d38);
}
.groups .section-title__eyebrow { color: #a9d1ff; }
.groups .section-title__intro { color: #c9dcf0; }

.groups__tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  margin-top: 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.groups__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c9dcf0;
  font-family: var(--font-varsity);
  font-size: 14px;
  line-height: 1.25;                    /* "Grupos / estudiantiles" goes on two lines */
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
}

.groups__tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.groups__tab.is-active,
.groups__tab[aria-selected="true"] {
  background: linear-gradient(135deg, #1aa3b8, var(--blue));
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .3);
}

.groups__tab:focus-visible {
  outline: 3px solid #a9d1ff;
  outline-offset: 3px;
}

.groups__list {
  list-style: none;
  max-width: 800px;                     /* two pennants per row */
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px 56px;
}

.group {
  flex: 0 1 340px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Pennant: a wooden pole on the left and the triangular cloth.
   The shadow uses filter so it follows the triangle (box-shadow would be clipped). */
.pennant {
  position: relative;
  display: block;
  padding-left: 9px;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .45));
  transform-origin: 0 50%;
  transition: rotate .3s;
}
.pennant::before {                     /* pole */
  content: '';
  position: absolute;
  left: 0;
  top: -12%;
  bottom: -26%;
  width: 9px;
  border-radius: 5px;
  background: linear-gradient(90deg, #d8b47a, #8a6a3a);
}
.group:nth-child(3n + 1) .pennant { rotate: -5deg; }
.group:nth-child(3n + 2) .pennant { rotate: 3deg; }
.group:nth-child(3n) .pennant { rotate: -2deg; }
.group:hover .pennant { rotate: 0deg; }

/* Pennant with a link (a): no underline, with the focus ring when using the keyboard */
a.pennant { text-decoration: none; }
a.pennant:focus-visible { outline: 3px solid #a9d1ff; outline-offset: 6px; border-radius: 12px; }

/* Cloth: sewn white band, felt dots and the group's color */
.pennant__cloth {
  container-type: inline-size;          /* the name is measured in cqw (% of the cloth's width) */
  display: flex;
  align-items: center;
  aspect-ratio: 290 / 110;
  padding-left: 14%;
  background:
    repeating-linear-gradient(rgba(255, 255, 255, .75) 0 5px, transparent 5px 10px) 10% 0 / 2px 100% no-repeat,
    linear-gradient(90deg, #f6f6f4 0 7%, transparent 7%),
    radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px) 0 0 / 6px 6px,
    var(--color);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* The name shrinks if it has many letters, so it stays inside the tip */
.pennant__name {
  font-family: var(--font-title);
  font-size: min(8.5cqw, 68cqw / var(--letters));
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 .08em 0 rgba(0, 0, 0, .28);
}

/* Group logo: a round patch sewn onto the pole. The name shifts to the right. */
.pennant__logo {
  position: absolute;
  left: -8%;
  top: 50%;
  width: 30%;
  aspect-ratio: 1;
  translate: 0 -50%;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}
.pennant--with-logo .pennant__cloth { padding-left: 24%; }
.pennant--with-logo .pennant__name { font-size: min(8cqw, 62cqw / var(--letters)); }

.group__type {
  padding-left: 22px;
  font-family: var(--font-varsity);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #a9d1ff;
}

@media (max-width: 640px) {
  .groups { padding: 56px 0 72px; }
  .groups__list { gap: 40px; }
  .group { flex-basis: min(100%, 300px); }
}


/* ---------- 13. Gallery ---------- */

.gallery { padding: 80px 0 90px; }

.gallery__button { margin-top: 26px; border: 0; }

/* Carousel: full width, fading out at the edges */
.gallery__carousel {
  display: grid;
  gap: 14px;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.gallery__row {
  overflow: hidden;
  padding-block: 12px;                  /* room for the shadow and the jump on mouse hover */
}

/* The track carries the photos twice in a row (main.js builds it). After moving -50%,
   the second copy sits exactly where the first began, and the animation restarts
   with no jump. It stops while the mouse or keyboard focus is on the row. */
.gallery__track {
  display: flex;
  width: max-content;
  animation: slide 80s linear infinite;
}
.gallery__row + .gallery__row .gallery__track { animation-direction: reverse; }
.gallery__row:hover .gallery__track,
.gallery__row:focus-within .gallery__track { animation-play-state: paused; }

@keyframes slide {
  to { transform: translateX(-50%); }
}

/* The right padding equals the gap between photos: so the seam between copies does not show */
.gallery__group {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0 26px 0 0;
  list-style: none;
}

/* Each photo or video: square, with a white frame like the competition cards */
.gallery__photo {
  display: block;
  width: 280px;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 28px;
  background: var(--navy);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 14px 26px -16px rgba(0, 0, 0, .45);
  transition: transform .2s;
}
.gallery__photo:hover { transform: translateY(-5px) rotate(-1.5deg); }
.gallery__photo:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.gallery__photo img,
.gallery__photo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The mouse passes "through" the video: so the browser adds no buttons on top
   (picture in picture, etc.) and the click reaches the tile */
.gallery__photo video { pointer-events: none; }

/* "Ver todo": all the photos still, in a grid */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery__grid .gallery__photo { width: 100%; }


/* Viewer: covers the whole screen with the photo in the center and arrows on the sides */
.viewer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 24px 16px;
  border: 0;
  background: transparent;
  color: #fff;
}
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop {
  background: rgba(6, 29, 56, .9);
  backdrop-filter: blur(4px);
}

.viewer__figure {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0;
  animation: appear .25s ease;
}

/* The photos are square: the side is the smaller of the free width and height */
.viewer__media img,
.viewer__media video {
  display: block;
  width: min(720px, 100vw - 180px, 100vh - 150px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 28px;
  background: var(--navy);
}

.viewer__count {
  font-family: var(--font-varsity);
  font-size: 13px;
  letter-spacing: .2em;
  color: #a9d1ff;
}

.viewer__button {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 18px;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .6);
  transition: background .2s, color .2s;
}
.viewer__button:hover { background: var(--blue); color: #fff; }
.viewer__button svg { width: 22px; height: 22px; }
.viewer__button--prev { left: 24px; top: 50%; translate: 0 -50%; }
.viewer__button--next { right: 24px; top: 50%; translate: 0 -50%; }
.viewer__close { top: 20px; right: 24px; width: 44px; height: 44px; }

@media (max-width: 640px) {
  .gallery { padding: 56px 0 64px; }
  .gallery__group { gap: 16px; padding-right: 16px; }
  .gallery__photo { width: 200px; border-width: 5px; border-radius: 22px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* On phones the photo uses the full width and the arrows drop next to the text */
  .viewer__media img,
  .viewer__media video { width: min(100vw - 32px, 100vh - 230px); border-radius: 22px; }
  .viewer__button--prev,
  .viewer__button--next { top: auto; bottom: 24px; translate: none; width: 46px; height: 46px; }
  .viewer__button--prev { left: 16px; }
  .viewer__button--next { right: 16px; }
  .viewer__close { top: 14px; right: 14px; }
}

/* With reduced motion the carousel does not move by itself: one row that slides by finger or wheel */
@media (prefers-reduced-motion: reduce) {
  .gallery__row { overflow-x: auto; }
  .gallery__row + .gallery__row,
  .gallery__group + .gallery__group { display: none; }
}


/* ---------- Codes (footer of sustometro.html) ----------
   White card like the ranking one. The person types a code and unlocks
   an ID card title (js/codes.js). */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.codes {
  width: min(640px, 100%);
  margin-bottom: 18px;
  padding: 30px 32px 28px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 24px 50px -26px rgba(10, 44, 82, .5);
  color: var(--ink);
  text-align: center;
}
.codes__title {
  margin-top: 6px;
  font-family: var(--font-varsity);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: .04em;
  color: var(--navy);
}
.codes__intro { margin-top: 10px; font-size: 16px; color: var(--ink-soft); }
.codes__intro strong { font-weight: 600; color: var(--navy); }

.codes__form { display: flex; gap: 10px; margin-top: 22px; }
.codes__field { flex: 1; min-width: 0; }
.codes__label {                    /* only screen readers read the label */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.codes__field input {
  width: 100%;
  height: 56px;
  padding: 0 24px;
  border: 1px solid #e2e6ec;
  border-radius: 999px;
  background: #f3f5f8;
  color: var(--ink);
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .14em;
  text-transform: uppercase;
  outline: none;
  transition: border-color .2s, background .2s;
}
.codes__field input::placeholder {
  color: var(--gray);
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: none;
}
.codes__field input:focus { border-color: var(--blue); background: #fff; }

.codes__button {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  padding: 0 26px 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-varsity);
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 6px var(--blue-bright), 0 10px 22px -10px rgba(10, 44, 82, .6);
  transition: transform .15s;
}
.codes__button:hover { transform: translateY(-2px); }
.codes__button:disabled { opacity: .6; cursor: wait; transform: none; }
.codes__button svg { width: 18px; height: 18px; color: #a9d1ff; }

.codes__message {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 500;
  animation: appear .25s ease;
}
.codes__action[hidden] { display: none; }
.codes__message--success { background: #dff6e8; border: 1px solid #a8e2c0; color: #1c7441; }
.codes__message--error { background: #fde3e8; border: 1px solid #f5b6c3; color: #b42340; }
.codes__message--info { background: #e4effa; border: 1px solid #bcd6f2; color: var(--blue-dark); }

.codes__action {
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.codes__action:hover { background: var(--blue); }

.codes__collection-box { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.codes__count {
  font-family: var(--font-varsity);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
}
/* Collection progress bar (how many titles they have) */
.codes__progress {
  width: min(220px, 70%);
  height: 6px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #e8edf3;
  overflow: hidden;
}
.codes__progress[hidden] { display: none; }
.codes__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-bright), var(--navy));
  transition: width .5s ease;
}

.codes__collection {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

/* Each title: round icon · name + short description · status */
.title-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: #f4f8fd;
  box-shadow: inset 0 0 0 1.5px #d3e4f7;
  transition: transform .15s, box-shadow .15s;
}
.title-item--unlocked:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px #a9d1ff, 0 10px 20px -14px rgba(10, 44, 82, .5); }

.title-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-bright), var(--blue-dark));
  color: #fff;
  box-shadow: 0 4px 10px -4px rgba(15, 79, 153, .6);
}
.title-item__icon svg { width: 18px; height: 18px; }

.title-item__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.title-item__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
.title-item__desc { font-size: 14px; line-height: 1.35; color: var(--ink-soft); }

/* Small tags: "En uso" on the right and "Solo 5" next to the name */
.title-item__status,
.title-item__limit {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.4;
}
.title-item__status { background: var(--navy); color: #fff; }
.title-item__limit { background: #fff1d6; color: #9a6400; box-shadow: inset 0 0 0 1px #f3d08a; }

/* The one on the ID card stands out */
.title-item--in-use {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--blue-bright), 0 10px 22px -14px rgba(10, 44, 82, .55);
}

/* Locked: dimmed, with a dotted border */
.title-item--locked {
  background: #f6f7f9;
  box-shadow: none;
  outline: 1.5px dashed #d5dbe3;
  outline-offset: -1.5px;
}
.title-item--locked .title-item__icon { background: #e3e7ed; color: #8a95a3; box-shadow: none; }
.title-item--locked .title-item__name { color: #8a95a3; }
.title-item--locked .title-item__desc { color: var(--gray); font-style: italic; }

/* Special titles: Debugger (cyan terminal), Terror Nocturno (purple), El Fenómeno (Brazil green) and Maestro Konami (Nintendo red) */
.title-item--debugger { background: #071820; box-shadow: inset 0 0 0 1.5px rgba(0, 240, 255, .35); }
.title-item--debugger.title-item--in-use { box-shadow: inset 0 0 0 2px #00f0ff, 0 0 18px -4px rgba(0, 240, 255, .55); }
.title-item--debugger .title-item__icon { background: #0d2a33; color: #00f0ff; box-shadow: 0 0 10px rgba(0, 240, 255, .4); }
.title-item--debugger .title-item__desc { color: #8fd6df; font-family: 'Share Tech Mono', monospace; font-size: 13px; }
.title-item--debugger .title-item__status { background: #00f0ff; color: #04151b; }

.title-item--nocturnal { background: linear-gradient(120deg, #1a0b2e, #2e1065); box-shadow: inset 0 0 0 1.5px rgba(168, 85, 247, .45); }
.title-item--nocturnal.title-item--in-use { box-shadow: inset 0 0 0 2px #c084fc, 0 0 18px -4px rgba(168, 85, 247, .6); }
.title-item--nocturnal .title-item__icon { background: #3b1a6b; color: #e9d5ff; box-shadow: 0 0 10px rgba(168, 85, 247, .5); }
.title-item--nocturnal .title-item__name { color: #f3e8ff; text-shadow: 0 0 8px rgba(192, 132, 252, .6); }
.title-item--nocturnal .title-item__desc { color: #d8c3f5; }
.title-item--nocturnal .title-item__status { background: #c084fc; color: #1a0b2e; }

.title-item--phenomenon { background: linear-gradient(120deg, #004d1f, #007a33); box-shadow: inset 0 0 0 1.5px rgba(255, 223, 0, .45); }
.title-item--phenomenon.title-item--in-use { box-shadow: inset 0 0 0 2px #ffdf00, 0 0 18px -4px rgba(255, 223, 0, .6); }
.title-item--phenomenon .title-item__icon { background: #002776; color: #ffdf00; box-shadow: 0 0 10px rgba(255, 223, 0, .4); }
.title-item--phenomenon .title-item__name { color: #ffdf00; }
.title-item--phenomenon .title-item__desc { color: #d9f2c4; }
.title-item--phenomenon .title-item__status { background: #ffdf00; color: #004d1f; }

.title-item--qrgang {
  background: linear-gradient(120deg, #2a0b38 0%, #631247 50%, #ad2849 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 60, 172, 0.5);
}
.title-item--qrgang.title-item--in-use {
  box-shadow: inset 0 0 0 2px #ff3b81, 0 0 14px rgba(255, 59, 129, 0.45);
}
.title-item--qrgang .title-item__icon {
  background: #3d0c4d;
  color: #ff3b81;
  box-shadow: inset 0 0 0 1px #ff3b81;
}
.title-item--qrgang .title-item__name {
  color: #ffe4e6;
  text-shadow: 0 0 10px rgba(255, 59, 129, 0.6);
}
.title-item--qrgang .title-item__desc {
  color: #fbcfe8;
}
.title-item--qrgang .title-item__status {
  background: #ff3b81;
  color: #ffffff;
}

/* Maestro Konami: an old console in black and Nintendo red, pixel letters */
.title-item--konami { background: #1f1f1f; box-shadow: inset 0 0 0 2px #e4000f; }
.title-item--konami.title-item--in-use { box-shadow: inset 0 0 0 3px #e4000f, 0 0 18px -4px rgba(228, 0, 15, .6); }
.title-item--konami .title-item__icon { border-radius: 0; background: #e4000f; color: #fff; box-shadow: 3px 3px 0 #8b0009; }
.title-item--konami .title-item__name { font-family: 'Press Start 2P', monospace; font-weight: 400; font-size: 11px; line-height: 1.7; color: #fff; text-shadow: 2px 2px 0 #e4000f; }
.title-item--konami .title-item__limit { text-shadow: none; }
.title-item--konami .title-item__desc { color: #c9c9c9; }
.title-item--konami .title-item__status { border-radius: 0; background: #e4000f; color: #fff; }

@media (max-width: 520px) {
  .codes { padding: 26px 18px 22px; }
  .codes__form { flex-direction: column; }
}


/* ---------- 14. Weekly game (sustometro.html) ----------
   Retro console with the weekly game (js/weekly-game.js) and its leaderboard next to it.
   The console's data-state decides which overlay shows on top of the screen:
   ready (start), loading, playing (none), paused, over or finished (the week closed). */

@keyframes blink {
  50% { opacity: 0; }
}

/* Header link that jumps down to the console */
.game-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 18px;
  border: 2px solid #ffd23f;
  border-radius: 999px;
  background: rgba(10, 14, 28, .55);
  color: #ffd23f;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 18px -4px rgba(255, 210, 63, .55);
  transition: transform .15s, background .15s;
}
.game-link:hover { transform: translateY(-2px); background: rgba(10, 14, 28, .78); }
.game-link__arrow { animation: blink 1s steps(1) infinite; }

/* Console and records side by side; on narrow screens, one below the other */
.weekly-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
  max-width: 1100px;
  margin-top: 64px;
  scroll-margin-top: 24px;
}
@media (max-width: 900px) {
  .weekly-game {
    grid-template-columns: minmax(0, 1fr);
    max-width: 660px;
    gap: 28px;
  }
}

/* Console body: blue plastic with a top shine and four screws */
.console {
  position: relative;
  padding: 20px 26px 28px;
  border-radius: 32px;
  background:
    radial-gradient(120% 70% at 18% 0%, rgba(255, 255, 255, .16), transparent 55%),
    linear-gradient(165deg, #2160a8, #133b72 55%, #0c2a52);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .28),
    inset 0 -8px 0 rgba(0, 0, 0, .28),
    0 30px 60px -28px rgba(10, 44, 82, .8);
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.console::before {
  --screw: radial-gradient(circle, #0a1f3d 0 2px, rgba(255, 255, 255, .28) 2.5px 3.5px, transparent 4px);
  content: '';
  position: absolute;
  inset: 9px;
  pointer-events: none;
  background:
    var(--screw) 0 0 / 9px 9px no-repeat,
    var(--screw) 100% 0 / 9px 9px no-repeat,
    var(--screw) 0 100% / 9px 9px no-repeat,
    var(--screw) 100% 100% / 9px 9px no-repeat;
}

/* Top sign with light bulbs that switch on and off */
.console__marquee {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 16px;
  background: #0a0e1a;
  box-shadow: inset 0 0 0 2px #04060c, inset 0 4px 12px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .14);
  overflow: hidden;
}
.console__marquee::before,
.console__marquee::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  height: 6px;
  background:
    radial-gradient(circle, #ffd23f 0 2px, transparent 2.5px) 0 50% / 14px 6px repeat-x,
    radial-gradient(circle, rgba(255, 210, 63, .22) 0 2px, transparent 2.5px) 7px 50% / 14px 6px repeat-x;
  animation: marquee-lights 1s steps(1) infinite;
}
.console__marquee::before { top: 4px; }
.console__marquee::after { bottom: 4px; animation-delay: -.5s; }
@keyframes marquee-lights {
  50% { background-position: 7px 50%, 14px 50%; }
}

.console__title {
  font-family: 'Press Start 2P', monospace;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  color: #ffd23f;
  text-shadow: 3px 3px 0 #b5370f, 0 0 14px rgba(255, 210, 63, .5);
}
/* Week buttons: the chosen one in red; locked ones have a padlock and,
   for non-supervisors, look dimmed */
.console__weeks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.console__week {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px 5px;
  border: 0;
  border-radius: 6px;
  background: #283252;
  color: #9aa6c8;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 3px 0 #141a2e;
  cursor: pointer;
  transition: background .15s, color .15s, translate .06s, box-shadow .06s;
}
.console__week:hover { background: #34406a; color: #fff; }
.console__week:active { translate: 0 2px; box-shadow: 0 1px 0 #141a2e; }
.console__week:focus-visible { outline: 2px solid #ffd23f; outline-offset: 2px; }
.console__week[aria-pressed="true"] { background: #e5484d; color: #fff; box-shadow: 0 3px 0 #8f1d2c; }
.console__week[aria-pressed="true"]:active { box-shadow: 0 1px 0 #8f1d2c; }
.console__week[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.console__week[aria-disabled="true"]:hover { background: #283252; color: #9aa6c8; }
.console__week[aria-disabled="true"]:active { translate: none; box-shadow: 0 3px 0 #141a2e; }
.console__lock { flex: none; width: 9px; height: 11px; margin-top: -2px; }
.console__week--locked:not([aria-disabled="true"]) .console__lock { color: #ffd23f; }

/* "Semana 2 bloqueada · muy pronto" when tapping a closed week */
.console__week-notice {
  flex-basis: 100%;
  margin: 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  color: #ffd23f;
}

/* Black frame around the screen */
.console__bezel {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(#1d2231, #11141e);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), inset 0 -2px 0 rgba(0, 0, 0, .45), 0 2px 0 rgba(255, 255, 255, .12);
}

/* CRT screen: font sizes are measured from its width (cqw) */
.console__screen {
  position: relative;
  container-type: inline-size;
  border-radius: 10px;
  overflow: hidden;
  background: #0b1426;
  box-shadow: 0 0 0 2px #04060c, 0 0 28px rgba(126, 224, 129, .08);
  outline: none;
  cursor: pointer;
}
.console__screen:focus-visible { box-shadow: 0 0 0 2px #04060c, 0 0 0 5px #ffd23f; }
/* While playing, swiping on the screen is part of the game (it turns)
   instead of moving the page */
.console[data-state="playing"] .console__screen { cursor: none; touch-action: none; }

/* Old TV lines and darker edges, on top of everything */
.console__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 62%, rgba(0, 0, 0, .45));
}

.console__hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px 6px;
  background: #08101f;
  border-bottom: 2px solid #16233d;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(8px, 1.9cqw, 12px);
  letter-spacing: .04em;
  color: #7d8bb0;
}
.console__hud strong { font-weight: 400; color: #7ee081; text-shadow: 0 0 6px rgba(126, 224, 129, .6); }
.console__hud span:last-child strong { color: #ffd23f; text-shadow: 0 0 6px rgba(255, 210, 63, .5); }
.console__hud-sound { color: #4f5b78; }

.console__board { position: relative; }
.console__canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}
/* Each week has its canvas; only the chosen week's shows */
.console__canvas[hidden] { display: none; }

/* Overlays on the board */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 2.6cqw, 18px);
  padding: 4cqw;
  background: rgba(6, 10, 22, .74);
  font-family: 'Press Start 2P', monospace;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
}
.console[data-state="ready"] .overlay--start,
.console[data-state="loading"] .overlay--loading,
.console[data-state="paused"] .overlay--paused,
.console[data-state="over"] .overlay--over,
.console[data-state="finished"] .overlay--finished { display: flex; }
/* Before starting the board is barely visible, so the still snake is not confused with the overlay */
.overlay--start,
.overlay--loading,
.overlay--finished { background: rgba(6, 10, 22, .9); }
/* The end overlay waits for the game to finish its animation
   (Snake blinks; Doom shows its results). weekly-game.js sets the delay per game. */
.console[data-state="over"] .overlay--over { animation: overlay-appear .25s var(--end-delay, .8s) both; }
@keyframes overlay-appear {
  from { opacity: 0; }
}

.overlay__title {
  font-size: clamp(18px, 7cqw, 44px);
  line-height: 1.1;
  color: #ffd23f;
  text-shadow: .6cqw .6cqw 0 #b5370f, 0 0 2.4cqw rgba(255, 210, 63, .45);
}
.overlay__title--over {
  font-size: clamp(15px, 5.2cqw, 34px);
  color: #ff5c5c;
  text-shadow: .5cqw .5cqw 0 #5c1020, 0 0 2.4cqw rgba(255, 92, 92, .45);
}
/* Finishing the level is winning (Doom): same size, in green */
.overlay__title--success {
  color: #7ee081;
  text-shadow: .5cqw .5cqw 0 #1d5c2a, 0 0 2.4cqw rgba(126, 224, 129, .45);
}
.overlay__title--loading { font-size: clamp(14px, 4.4cqw, 28px); }
.overlay__text { max-width: 92%; font-size: clamp(8px, 2.2cqw, 14px); line-height: 1.6; color: #c9d2dc; }
.overlay__items {
  display: flex;
  gap: clamp(14px, 5cqw, 36px);
  font-size: clamp(8px, 2.2cqw, 14px);
}
.overlay__items:empty { display: none; }

/* Loading bar (Doom downloads about 4.5 MB the first time) */
.overlay__bar {
  width: min(70%, 320px);
  height: clamp(10px, 2.6cqw, 18px);
  padding: 2px;
  border: 2px solid #7d8bb0;
  border-radius: 3px;
}
.overlay__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, #7ee081 0 8px, #4fb85a 8px 10px);
  transition: width .15s linear;
}
.overlay__item { display: inline-flex; align-items: center; gap: clamp(6px, 1.6cqw, 12px); }
.overlay__sprite { --px: clamp(2px, .75cqw, 5px); display: block; }
.overlay__blink {
  font-size: clamp(9px, 2.5cqw, 15px);
  color: #7ee081;
  text-shadow: 0 0 8px rgba(126, 224, 129, .5);
  animation: blink 1s steps(1) infinite;
}
.overlay__help { font-size: clamp(7px, 1.7cqw, 11px); line-height: 1.7; color: #7d8bb0; }

/* Pause: the game's controls in two columns, the keys in yellow. The board darkens more so they read well. */
.overlay--paused { background: rgba(6, 10, 22, .88); }
.overlay__controls {
  display: grid;
  grid-template-columns: auto auto;
  gap: clamp(4px, 1.3cqw, 9px) clamp(10px, 3cqw, 22px);
  margin: 0;
  font-size: clamp(7px, 1.8cqw, 11px);
  line-height: 1.3;
  text-align: left;
}
.overlay__controls dt { text-align: right; color: #ffd23f; }
.overlay__controls dd { margin: 0; color: #c9d2dc; }
.overlay__score { font-size: clamp(9px, 2.5cqw, 15px); color: #c9d2dc; }
.overlay__score strong {
  display: block;
  margin-top: clamp(4px, 1.4cqw, 10px);
  font-weight: 400;
  font-size: clamp(16px, 4.6cqw, 30px);
  color: #7ee081;
  text-shadow: 0 0 10px rgba(126, 224, 129, .55);
}
/* The pixel font draws accented capitals tiny: messages with accents use the terminal font */
.overlay__status {
  max-width: 86%;
  min-height: 1.4em;
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(12px, 2.8cqw, 18px);
  line-height: 1.4;
  text-transform: none;
  color: #c9d2dc;
}
.overlay__status--record { color: #ffd23f; animation: blink .5s steps(1) 6; }
.overlay__status--notice { color: #ff8a8a; }
/* Games left today; with none left, the prompt to start goes away */
.overlay__games { max-width: 92%; font-size: clamp(7px, 1.8cqw, 11px); line-height: 1.6; color: #ffd23f; }
.overlay__games:empty { display: none; }
.console[data-no-games] .overlay--start .overlay__blink,
.console[data-no-games] .overlay--over .overlay__blink { display: none; }
/* More lines with run details (Doom: the points of each factor, one per line and lined up in columns) */
.overlay__detail { font-size: clamp(7px, 1.8cqw, 11px); line-height: 1.6; color: #7d8bb0; white-space: pre; text-align: left; }
.overlay__button {
  padding: clamp(7px, 1.8cqw, 12px) clamp(12px, 3cqw, 20px);
  border: 0;
  border-radius: 6px;
  background: #ffd23f;
  color: #120926;
  font-family: inherit;
  font-size: clamp(8px, 2cqw, 12px);
  text-transform: uppercase;
  box-shadow: 0 4px 0 #b58a00;
}
.overlay__button:active { translate: 0 3px; box-shadow: 0 1px 0 #b58a00; }
/* Top 3 of a finished week: names in the terminal font, like the status (accents) */
.overlay__podium {
  width: min(88%, 420px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(12px, 2.8cqw, 18px);
  line-height: 1.5;
  text-transform: none;
}
.overlay__podium li { display: flex; gap: .6em; }
.overlay__podium-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; }
.overlay__podium strong { font-weight: 400; color: #7ee081; }
.overlay__button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* With a keyboard it says "Espacio"; on phones, "A" */
.console .touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .console .keyboard-only { display: none; }
  .console .touch-only { display: inline; }
  .console .overlay__controls.touch-only { display: grid; }
}

/* Controls */
.console__controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 0 6px;
}

.dpad {
  --size: 42px;
  display: grid;
  grid-template-columns: repeat(3, var(--size));
  grid-template-rows: repeat(3, var(--size));
  grid-template-areas:
    '.         arriba .      '
    'izquierda centro derecha'
    '.         abajo  .      ';
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .35));
  touch-action: none;   /* the finger can slide over the d-pad without moving the page */
}
.dpad__button,
.dpad__center {
  position: relative;
  border: 0;
  padding: 0;
  background: #1a1f2b;
}
.dpad__button { touch-action: none; }
.dpad__button--up { grid-area: arriba; border-radius: 8px 8px 0 0; }
.dpad__button--down { grid-area: abajo; border-radius: 0 0 8px 8px; }
.dpad__button--left { grid-area: izquierda; border-radius: 8px 0 0 8px; }
.dpad__button--right { grid-area: derecha; border-radius: 0 8px 8px 0; }
.dpad__center { grid-area: centro; }
.dpad__center::after {
  content: '';
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: #12151e;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6);
}
.dpad__button:active,
.dpad__button--pressed { background: #11141c; }
.dpad__button:focus-visible { z-index: 1; outline: 3px solid #ffd23f; outline-offset: 2px; }

/* Small arrow on each d-pad arm */
.dpad__button::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-style: solid;
  border-color: transparent;
}
.dpad__button--up::after { border-width: 0 6px 8px; border-bottom-color: #4a5268; }
.dpad__button--down::after { border-width: 8px 6px 0; border-top-color: #4a5268; }
.dpad__button--left::after { border-width: 6px 8px 6px 0; border-right-color: #4a5268; }
.dpad__button--right::after { border-width: 6px 0 6px 8px; border-left-color: #4a5268; }

/* Speaker grille */
.console__speaker {
  justify-self: center;
  display: flex;
  gap: 7px;
  transform: skewX(-22deg);
}
.console__speaker span {
  width: 6px;
  height: 46px;
  border-radius: 3px;
  background: rgba(4, 12, 28, .55);
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .14);
}

/* A and B buttons, diagonally */
.console__buttons { display: flex; gap: 14px; }
.console__button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.console__button-group--b { margin-top: 28px; }
.console__button {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: rgba(0, 0, 0, .42);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -4px 0 rgba(0, 0, 0, .22), 0 5px 0 rgba(0, 0, 0, .35);
  touch-action: none;   /* they can be held down (in Doom, A fires while held) */
  transition: translate .06s, box-shadow .06s, filter .15s;
}
.console__button--a { background: #e5484d; }
.console__button--b { background: #f5a524; }
.console__button:active {
  translate: 0 3px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .22), 0 2px 0 rgba(0, 0, 0, .35);
}
.console__button:focus-visible { outline: 3px solid #ffd23f; outline-offset: 3px; }
.console__button-label {
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

/* Start: tilted pill below the other controls.
   The button is bigger than the visible pill, so it is easy to hit with a finger. */
.console__menu {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  gap: 22px;
}
.console__menu-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.console__menu .console__button-label { font-size: 10px; }
.console__pill {
  position: relative;
  width: 58px;
  height: 30px;
  border: 0;
  padding: 0;
  background: none;
  touch-action: manipulation;
}
.console__pill::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 12px;
  margin-top: -6px;
  border-radius: 999px;
  background: #1a1f2b;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 3px 0 rgba(0, 0, 0, .35);
  transform: rotate(-20deg);
  transition: translate .06s, box-shadow .06s, opacity .15s;
}
.console__pill:active::before { translate: 0 2px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), 0 1px 0 rgba(0, 0, 0, .35); }
.console__pill:focus-visible { outline: 3px solid #ffd23f; outline-offset: 1px; border-radius: 8px; }

/* Leaderboard: the white ranking card, more compact */
.records { padding: 26px 22px 22px; }
.records .ranking-card__header { margin-bottom: 16px; padding-bottom: 14px; }
.records .ranking-empty { padding: 12px 0; }
.records__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.record {
  display: grid;
  grid-template-columns: 32px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f8fa;
}
.record .scarer-card__rank { width: 32px; height: 32px; font-size: 13px; }
.record .scarer-card__avatar { width: 40px; height: 40px; }
.record--gold { background: #fffbea; border-color: #f3dc8a; }
.record--mine { border-color: var(--blue); background: #eef5fd; box-shadow: 0 0 0 2px rgba(22, 103, 194, .18); }
.record__info { display: flex; flex-direction: column; min-width: 0; }
.record__name {
  overflow: hidden;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--navy);
}
.record__name small { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--blue); }
.record__user {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gray);
}
.record__points { font-family: 'Press Start 2P', monospace; font-size: 12px; color: var(--navy); }
.record--gold .record__points { color: #8a6400; }

.records__mine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-soft);
}
.records__mine:empty { display: none; }
.records__mine strong { font-weight: 600; color: var(--navy); }
.records__mine .records__list { align-self: stretch; text-align: left; }   /* your row, when it is not in the table */

@media (max-width: 640px) {
  .game-link { margin-top: 18px; padding: 10px 14px; font-size: 8px; }
  .weekly-game { margin-top: 40px; }
  .console { padding: 14px 12px 20px; border-radius: 24px; }
  .console::before { inset: 6px; }
  .console__marquee { margin-bottom: 10px; padding: 16px 10px; border-radius: 12px; gap: 8px 10px; }
  .console__title { font-size: 12px; }
  .console__week { font-size: 8px; }
  .console__week-notice { font-size: 7px; }
  .console__bezel { padding: 10px 8px; border-radius: 14px; }
  .console__controls { gap: 10px; margin-top: 18px; padding: 0; }
  .dpad { --size: 38px; }
  .console__speaker { gap: 5px; }
  .console__speaker span { width: 5px; height: 34px; }
  .console__button { width: 50px; height: 50px; font-size: 12px; }
  .console__button-group--b { margin-top: 22px; }
  .records { padding: 18px 14px; }
}
@media (max-width: 380px) {
  .console__speaker { display: none; }
  .console__controls { grid-template-columns: auto auto; justify-content: space-between; }
}


/* ---------- 15. Team registration (inscripciones.html) ---------- */

.competitions__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.competitions__actions .hero__button { margin-top: 0; }
.competitions__find-team {
  background: #f0f6ff;
  color: var(--blue-dark);
}
.competitions__find-team:hover {
  background: #e4effd;
}

.team__actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}
.team__actions-row .hero__button {
  width: 100%;
  margin: 0;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  padding: 0 16px;
}
.hero__button--find-team {
  border: 0;
  background: #fff;
  color: var(--navy);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px var(--blue), 0 10px 22px -10px rgba(10, 44, 82, .3);
}
.hero__button--find-team:hover {
  background: #f0f6ff;
  transform: translateY(-2px);
}
@media (max-width: 580px) {
  .team__actions-row {
    grid-template-columns: 1fr;
  }
}
.hero__button--secondary {
  background: #f0f6ff;
  color: var(--blue-dark);
}
.hero__button--secondary:hover {
  background: #e4effd;
}

/* Tabs grouped by day: the day's name between two thin lines, its tabs centered below.
   Every tab is a quarter of the row, so the tabs of both days line up in columns. */
.registration__tabs { display: grid; gap: 14px; }
.registration__day-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-family: var(--font-varsity);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
}
.registration__day-name::before,
.registration__day-name::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.registration__day-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.registration__day-tabs .day { flex: 0 0 calc((100% - 24px) / 4); }
.registration__tabs .day svg { width: 24px; height: 24px; }
.registration__tabs .day strong { font-size: 14px; }

/* The competition's facts use the activity page boxes (.event__facts) */
.registration__summary { margin-top: 20px; }

/* How many of the team spots are taken */
.registration__bar {
  display: block;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) var(--filled), var(--line) var(--filled));
}

.registration__text { margin-bottom: 14px; color: var(--ink-soft); }
.registration__text strong { color: var(--navy); overflow-wrap: anywhere; }

/* Team card: the banner on the left, the data on the right */
.team {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f7f8fa;
  min-width: 0;
}
.team--mine { border-color: #b9d3ef; background: #fff; }
.team > div { min-width: 0; }

.team__banner { min-width: 0; }
.team__banner svg {
  width: 100%;
  rotate: -3deg;
  filter: drop-shadow(0 8px 8px rgba(10, 44, 82, .3));
}

.team__name {
  font-family: var(--font-varsity);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.team__count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray);
}

.team__badge {
  flex: none;
  padding: 1px 9px;
  border-radius: 999px;
  background: #dceafa;
  color: var(--blue-dark);
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.team__badge--full { background: #dff6e8; color: #1c7441; }

/* One box per member, and an empty dashed box per free spot */
.team__members {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  min-width: 0;
}
.team__members li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  min-width: 0;
  overflow: hidden;
}
.team--mine .team__members li { background: #f7f8fa; }
.team__members li.team__slot {
  border: 1.5px dashed #c3ccd6;
  background: none;
  color: var(--gray);
  font-size: 14px;
}
.team__slot .team__avatar { border-style: dashed; background: none; }

.team__who {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  line-height: 1.2;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}
.team__who small {
  font-size: 13px;
  color: var(--gray);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team__avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}
.team__avatar svg { width: 100%; height: 100%; }

.team__members .team__badge,
.team__remove {
  flex: none;
  margin-left: auto;
}
.team__remove {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #b42340;
  display: grid;
  place-items: center;
}
.team__remove:hover { background: #fde3e8; }

.team__captain {
  font-size: 14px;
  color: var(--ink-soft);
  word-break: break-word;
}
.team__captain a { font-weight: 600; color: var(--blue); white-space: nowrap; }

.team__add {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  min-width: 0;
}
.team__add input {
  flex: 1 1 0;
  min-width: 0;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #e2e6ec;
  border-radius: 999px;
  background: #f3f5f8;
  font: inherit;
  font-size: 15px;
}
.team__add input:focus { outline: none; border-color: var(--blue); background: #fff; }

.team__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  min-width: 0;
}
.team__buttons .week-button {
  flex: 1 1 auto;
  min-height: 42px;
  height: auto;
  padding: 8px 14px;
  cursor: pointer;
  justify-content: center;
  text-align: center;
}
.team__danger { border-color: #f5b6c3; background: #fff5f7; color: #b42340; }

.team-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Form: the banner preview next to the fields (above them on phones).
   On wide screens it stays in view while going down through the options. */
.team-form {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: start;
}
.team-form__preview { position: sticky; top: 20px; }
.team-form__preview svg {
  width: 100%;
  rotate: -3deg;
  filter: drop-shadow(0 14px 14px rgba(10, 44, 82, .35));
}

.team-form__letters {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #dce2ea;
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-varsity);
  font-size: 20px;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}
.team-form__letters:focus { outline: none; border-color: var(--blue); }

.team-form__greek { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.team-form__greek .random-button { min-width: 32px; font-size: 14px; }

/* Banner designer: one group per part, with round swatches for the colors
   and small banners (drawn with the current design) for the rest */
.banner-pickers { display: grid; gap: 18px; margin-top: 10px; }
.banner-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.banner-picker legend {
  margin-bottom: 8px;
  padding: 0;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}
.banner-picker__options { display: flex; flex-wrap: wrap; gap: 8px; }
.banner-picker__options--tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }

.banner-picker__swatch {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
  transition: transform .15s, box-shadow .15s;
}
.banner-picker__swatch:hover { transform: scale(1.12); }
.banner-picker__swatch[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 0 3px #fff, 0 0 0 5px var(--blue);
}

.banner-picker__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 4px 7px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: .03em;
  color: var(--ink-soft);
  transition: border-color .15s, transform .15s;
}
.banner-picker__tile:hover { border-color: #9cc0e8; transform: translateY(-2px); }
.banner-picker__tile[aria-pressed="true"] {
  border-color: var(--blue);
  background: #eef5fc;
  color: var(--navy);
  box-shadow: 0 0 0 1px var(--blue);
}
.banner-picker__thumb { width: 44px; }
.banner-picker__thumb svg { width: 100%; filter: drop-shadow(0 3px 3px rgba(10, 44, 82, .25)); }

/* Team form: initial members box */
.team-form__members-box {
  margin: 10px 0 16px;
  padding: 16px;
  border: 1px solid #e2e6ec;
  border-radius: 16px;
  background: #f8fafc;
}
.team-form__members-title {
  display: block;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
.team-form__hint {
  margin: 4px 0 12px;
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.35;
}
.team-form__members-fields {
  display: grid;
  gap: 12px;
}
.team-form__required {
  color: #c8323b;
  font-size: 12px;
  margin-left: 4px;
}
.team-form__optional {
  color: var(--gray);
  font-size: 12px;
  margin-left: 4px;
}

/* Free agents: players looking for a team */
.free-agents {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px dashed var(--line);
}
.free-agents__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.free-agents__header .event__subtitle {
  margin-bottom: 4px;
}
.free-agents__cta {
  flex: none;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}
.free-agents__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.free-agent-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f7f8fa;
  transition: transform .15s, border-color .15s;
}
.free-agent-card:hover {
  transform: translateY(-2px);
  border-color: #b9d3ef;
}
.free-agent-card--me {
  border-color: #b9d3ef;
  background: #fff;
  box-shadow: 0 4px 14px rgba(22, 103, 194, .08);
}
.free-agent-card__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.free-agent-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.free-agent-card__positions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.position-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef5fc;
  color: var(--blue-dark);
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .04em;
  border: 1px solid #d4e4f7;
}
.free-agent-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.free-agent__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.whatsapp-button:hover {
  background: #20ba59;
  transform: translateY(-1px);
}
.whatsapp-button svg {
  width: 16px;
  height: 16px;
}
.phone-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.phone-link:hover {
  color: var(--blue);
  text-decoration: underline;
}
.free-agent__anon {
  font-size: 13px;
  color: var(--gray);
  font-style: italic;
}
.free-agent__leave-btn {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 999px;
}

/* Find team modal form */
.auth-field__select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dce2ea;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--navy);
  cursor: pointer;
}
.auth-field__select:focus {
  outline: none;
  border-color: var(--blue);
}
.find-team__positions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field__label {
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.position-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.position-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.position-checkbox:hover {
  border-color: var(--blue);
  background: #f7faff;
}
.position-checkbox input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Individual registrations (atletismo & videojuegos) */
.participant-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f7f8fa;
  transition: transform .15s, border-color .15s;
}
.participant-card:hover {
  transform: translateY(-2px);
  border-color: #b9d3ef;
}
.participant-card--me {
  border-color: #b9d3ef;
  background: #fff;
  box-shadow: 0 4px 14px rgba(22, 103, 194, .08);
}
.participant-card__num {
  font-family: var(--font-varsity);
  font-size: 18px;
  color: var(--blue-dark);
  min-width: 32px;
  text-align: center;
}
.participant-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.participant-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.participant-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
/* Individual registration: Tu inscripción card */
.my-registration-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid #b9d3ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(22, 103, 194, .08);
}

.my-registration-card__content {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.my-registration-card__avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border: 1.5px solid #d4e4f7;
  border-radius: 50%;
  background: #f7faff;
  overflow: hidden;
}
.my-registration-card__avatar svg {
  width: 100%;
  height: 100%;
}

.my-registration-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.my-registration-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.my-registration-card__name {
  margin: 0;
  font-family: var(--font-varsity);
  font-size: 19px;
  color: var(--navy);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-registration-card__user {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 500;
}

.my-registration-card__phone {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.my-registration-card__phone strong {
  color: var(--navy);
}

.my-registration-card__cancel-btn {
  flex: none;
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
  white-space: nowrap;
  border-radius: 999px;
  cursor: pointer;
  align-self: center;
}

@media (max-width: 640px) {
  .my-registration-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }
  .my-registration-card__cancel-btn {
    width: 100%;
    justify-content: center;
  }
}
.individual-form__row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (max-width: 640px) {
  /* Four labels do not fit: two per row, icon beside the label */
  .registration__day-tabs .day { flex-basis: calc((100% - 8px) / 2); flex-direction: row; justify-content: center; gap: 6px; padding: 10px 4px; }
  .registration__tabs .day svg { flex: none; width: 18px; height: 18px; }
  .registration__tabs .day strong { font-size: 11.5px; letter-spacing: .03em; }
  .team-list { grid-template-columns: 1fr; }
  .team {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 14px;
  }
  .team__banner {
    display: flex;
    justify-content: center;
  }
  .team__banner svg {
    width: 80px;
    max-height: 105px;
    margin: 0 auto;
  }
  .team__name {
    text-align: center;
    font-size: 19px;
  }
  .team__count {
    justify-content: center;
    margin-top: 2px;
  }
  .team__captain {
    text-align: center;
    margin-top: 8px;
  }
  .team__buttons {
    justify-content: center;
  }
  .team__badge {
    font-size: 11px;
    padding: 1px 7px;
  }
  .team-form { grid-template-columns: 1fr; gap: 18px; }
  .team-form__preview { position: static; width: 150px; margin: 0 auto; }
  .banner-picker__options--tiles { grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); }
  .free-agents__list { grid-template-columns: 1fr; }
  .position-checkboxes { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .team__add {
    flex-direction: column;
  }
  .team__add input {
    width: 100%;
    box-sizing: border-box;
  }
  .team__add .week-button {
    width: 100%;
    justify-content: center;
  }
  .team__buttons {
    flex-direction: column;
  }
  .team__buttons .week-button {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   VICE CITY UNLOCK MODAL & CELEBRATION ANIMATION
   ========================================================= */

.vice-unlock-modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: min(92vw, 540px);
  width: 100%;
  overflow: visible;
}

.vice-unlock-modal::backdrop {
  background: radial-gradient(circle at center, rgba(32, 8, 44, 0.94) 0%, rgba(9, 3, 16, 0.98) 100%);
  backdrop-filter: blur(8px);
  animation: viceBackdropFade .4s ease;
}

@keyframes viceBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vice-unlock-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 88% 12%, rgba(255, 42, 133, 0.45) 0%, transparent 48%),
    radial-gradient(ellipse at 12% 88%, rgba(0, 229, 255, 0.22) 0%, transparent 48%),
    linear-gradient(160deg, #180927 0%, #2a0b33 45%, #470d32 80%, #691732 100%);
  border: 2px solid rgba(255, 42, 133, 0.7);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 0 40px rgba(255, 42, 133, 0.45),
    0 0 75px rgba(56, 189, 248, 0.2),
    0 25px 60px rgba(0, 0, 0, 0.85);
  padding: 32px 24px 26px;
  text-align: center;
  color: #ffffff;
  animation: viceCardPop .55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes viceCardPop {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    filter: brightness(1.6);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(1);
  }
}

.vice-unlock-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 2px,
    transparent 2px,
    transparent 4px
  );
  z-index: 1;
}

.vice-unlock-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all .2s;
}
.vice-unlock-close:hover {
  background: #ff2a85;
  border-color: #ff2a85;
  transform: rotate(90deg);
}

.vice-unlock-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 42, 133, 0.2);
  border: 1px solid rgba(255, 42, 133, 0.55);
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .15em;
  color: #fed7aa;
  margin-bottom: 8px;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(255, 42, 133, 0.4);
}

.vice-unlock-palm {
  font-size: 15px;
  filter: drop-shadow(0 0 6px #ff2a85);
}

.vice-unlock-title {
  margin: 0 0 16px;
  font-family: var(--font-gta);
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1;
  letter-spacing: .03em;
  color: #ffffff;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(255, 42, 133, 0.8),
    0 0 40px rgba(56, 189, 248, 0.55);
}

.vice-unlock-preview-wrap {
  position: relative;
  max-width: 360px;
  margin: 0 auto 16px;
  z-index: 2;
}

.vice-unlock-preview-wrap .idcard {
  box-shadow:
    0 0 0 2px rgba(255, 60, 172, 0.6),
    0 0 30px rgba(255, 42, 133, 0.55),
    0 20px 40px rgba(0, 0, 0, 0.75);
  animation: viceCardFloat 3.5s ease-in-out infinite alternate;
}

@keyframes viceCardFloat {
  0% { transform: translateY(0px) rotate(-0.5deg); }
  100% { transform: translateY(-6px) rotate(0.5deg); }
}

.vice-unlock-shimmer {
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
  pointer-events: none;
  z-index: 5;
  animation: viceSweep 3.2s infinite;
}

@keyframes viceSweep {
  0% { transform: translateX(-120%); }
  45%, 100% { transform: translateX(120%); }
}

.vice-unlock-desc {
  margin: 0 auto 20px;
  max-width: 420px;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.45;
  color: #f1f5f9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  z-index: 2;
  position: relative;
}

.vice-unlock-desc strong {
  color: #ff3b81;
  text-shadow: 0 0 8px rgba(255, 59, 129, 0.6);
}

.vice-unlock-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

.vice-unlock-audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fed7aa;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .2s;
}
.vice-unlock-audio-btn:hover {
  background: rgba(255, 42, 133, 0.25);
  border-color: #ff2a85;
  color: #fff;
  transform: translateY(-2px);
}

.vice-unlock-equip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2a85 0%, #ff6b4a 55%, #ffa347 100%);
  color: #ffffff;
  font-family: var(--font-varsity);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 42, 133, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all .2s;
}
.vice-unlock-equip-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 42, 133, 0.9), 0 6px 18px rgba(0, 0, 0, 0.5);
}
.vice-unlock-equip-btn svg {
  width: 17px;
  height: 17px;
}


/* ==========================================================================
   Mafia Italiana Card Style (Franco Impero 🇮🇹)
   ========================================================================== */

.idcard--mafia {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(197, 160, 89, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 85%, rgba(206, 43, 55, 0.15) 0%, transparent 45%),
    repeating-linear-gradient(90deg, #121316 0px, #121316 14px, #18191f 14px, #18191f 15px);
  color: #ffffff;
  border: 1.5px solid #c5a059;
  box-shadow:
    0 0 0 2px rgba(197, 160, 89, 0.35),
    0 0 24px rgba(197, 160, 89, 0.22),
    0 26px 46px -10px rgba(0, 0, 0, .85);
}

.idcard--mafia::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #009246 0%, #009246 33.3%, #ffffff 33.3%, #ffffff 66.6%, #ce2b37 66.6%, #ce2b37 100%);
  pointer-events: none;
  z-index: 3;
}

.idcard--mafia::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%, rgba(197, 160, 89, 0.08) 100%);
  pointer-events: none;
  z-index: 1;
}

.idcard--mafia .idcard__crest {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 10px rgba(197, 160, 89, 0.45));
  z-index: 2;
}

.idcard--mafia .idcard__brand {
  z-index: 2;
}

.idcard--mafia .idcard__week {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 8.8cqw;
  line-height: 1;
  letter-spacing: .04em;
  color: #f7f3e8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 14px rgba(197, 160, 89, 0.45);
}

.idcard--mafia .idcard__systems {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.4cqw;
  letter-spacing: .32em;
  color: #d4af37;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.idcard--mafia .idcard__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: min(4.4cqw, 68cqw / var(--letters, 1));
  letter-spacing: .03em;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 10px rgba(197, 160, 89, 0.3);
  z-index: 2;
}

.idcard--mafia .idcard__role {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.9cqw;
  letter-spacing: .08em;
  color: #e2d5b8;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  z-index: 2;
}

.idcard--mafia .idcard__photo {
  border: 1.3cqw solid #c5a059;
  box-shadow: 0 0 18px rgba(197, 160, 89, 0.4), inset 0 0 8px rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, #101114 0%, #1c1d24 100%);
  z-index: 2;
}

.idcard--mafia .idcard__band {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: min(5cqw, 56cqw / var(--letters, 1));
  letter-spacing: .05em;
  background: linear-gradient(90deg, rgba(20, 21, 26, 0.95) 0%, rgba(35, 33, 28, 0.95) 55%, rgba(20, 21, 26, 0.95) 100%);
  color: #d4af37;
  border-top: 1px solid #c5a059;
  border-bottom: 1px solid #c5a059;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.idcard--mafia .idcard__stamp {
  left: 45%;
  top: 37%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2cqw;
  padding: .35cqw 1.2cqw;
  letter-spacing: .08em;
  border: 1.5px solid #c5a059;
  color: #e6c888;
  background: rgba(18, 19, 22, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(197, 160, 89, 0.5);
  z-index: 2;
}

.idcard__band--franco {
  padding-right: 40% !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  letter-spacing: .06em;
  background: linear-gradient(90deg, #16171b 0%, #2f2a1e 50%, #16171b 100%) !important;
  color: #f5deb3 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(197, 160, 89, 0.6) !important;
  box-shadow: inset 0 0 10px rgba(197, 160, 89, 0.25), 0 0 14px rgba(0, 0, 0, 0.7) !important;
  border-top: 1.5px solid #c5a059 !important;
  border-bottom: 1.5px solid #c5a059 !important;
}

.idcard--mafia.idcard--mafia-gold {
  box-shadow:
    0 0 0 2.5px #fbbf24,
    0 0 28px rgba(251, 191, 36, 0.6),
    0 26px 46px -10px rgba(0, 0, 0, .85);
}
.idcard--mafia.idcard--mafia-silver {
  box-shadow:
    0 0 0 2.5px #cbd5e1,
    0 0 28px rgba(203, 213, 225, 0.5),
    0 26px 46px -10px rgba(0, 0, 0, .85);
}
.idcard--mafia.idcard--mafia-bronze {
  box-shadow:
    0 0 0 2.5px #f97316,
    0 0 28px rgba(249, 115, 22, 0.5),
    0 26px 46px -10px rgba(0, 0, 0, .85);
}

/* Titles and tags styling */
.scarer-card__title-tag--franco {
  background: rgba(197, 160, 89, 0.16) !important;
  color: #d4af37 !important;
  border: 1px solid rgba(197, 160, 89, 0.45) !important;
  text-shadow: 0 0 8px rgba(197, 160, 89, 0.35);
}

.title-item--franco .title-item__name {
  color: #d4af37 !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}


/* ==========================================================================
   Franco Impero Unlock Modal (Silent Animation)
   ========================================================================== */

.franco-unlock-modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: min(92vw, 540px);
  width: 100%;
  overflow: visible;
}

.franco-unlock-modal::backdrop {
  background: radial-gradient(circle at center, rgba(16, 17, 22, 0.95) 0%, rgba(5, 6, 8, 0.98) 100%);
  backdrop-filter: blur(8px);
  animation: francoBackdropFade .4s ease;
}

@keyframes francoBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.franco-unlock-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 88% 12%, rgba(197, 160, 89, 0.28) 0%, transparent 48%),
    radial-gradient(ellipse at 12% 88%, rgba(206, 43, 55, 0.18) 0%, transparent 48%),
    repeating-linear-gradient(90deg, #111215 0px, #111215 14px, #18191f 14px, #18191f 15px);
  border: 2px solid #c5a059;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 35px rgba(197, 160, 89, 0.35),
    0 30px 60px -10px rgba(0, 0, 0, 0.9);
  padding: 28px 24px 24px;
  text-align: center;
  color: #fff;
  animation: francoBoxPop .45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes francoBoxPop {
  0% {
    transform: scale(0.85) translateY(24px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.franco-unlock-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #009246 0%, #009246 33.3%, #ffffff 33.3%, #ffffff 66.6%, #ce2b37 66.6%, #ce2b37 100%);
  pointer-events: none;
  z-index: 4;
}

.franco-unlock-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 89, 0.4);
  background: rgba(0, 0, 0, 0.6);
  color: #e6c888;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  z-index: 10;
}
.franco-unlock-close:hover {
  background: #c5a059;
  color: #111;
  transform: rotate(90deg);
}

.franco-unlock-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.5);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2em;
  color: #f5deb3;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.franco-unlock-flag {
  font-size: 15px;
}

.franco-unlock-title {
  margin: 0 0 16px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 6.5vw, 42px);
  line-height: 1;
  letter-spacing: .06em;
  color: #ffffff;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(197, 160, 89, 0.8),
    0 0 35px rgba(212, 175, 55, 0.5);
  position: relative;
  z-index: 2;
}

.franco-unlock-preview-wrap {
  position: relative;
  max-width: 360px;
  margin: 0 auto 16px;
  z-index: 2;
}

.franco-unlock-preview-wrap .idcard {
  box-shadow:
    0 0 0 2px rgba(197, 160, 89, 0.6),
    0 0 30px rgba(197, 160, 89, 0.4),
    0 20px 40px rgba(0, 0, 0, 0.85);
  animation: francoCardFloat 3.5s ease-in-out infinite alternate;
}

@keyframes francoCardFloat {
  0% { transform: translateY(0px) rotate(-0.4deg); }
  100% { transform: translateY(-6px) rotate(0.4deg); }
}

.franco-unlock-shimmer {
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  background: linear-gradient(105deg, transparent 20%, rgba(197, 160, 89, 0.25) 50%, transparent 80%);
  pointer-events: none;
  z-index: 5;
  animation: francoSweep 3.2s infinite;
}

@keyframes francoSweep {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(120%); }
}

.franco-unlock-desc {
  margin: 0 auto 20px;
  max-width: 420px;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.45;
  color: #f1f5f9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  z-index: 2;
  position: relative;
}

.franco-unlock-desc strong {
  color: #d4af37;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.franco-unlock-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

.franco-unlock-equip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #997328 0%, #d4af37 50%, #997328 100%);
  color: #121316;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid #f5deb3;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.6), 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all .2s;
}
.franco-unlock-equip-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.9), 0 6px 18px rgba(0, 0, 0, 0.6);
  background: linear-gradient(90deg, #d4af37 0%, #f5deb3 50%, #d4af37 100%);
}
.franco-unlock-equip-btn svg {
  width: 17px;
  height: 17px;
}

/* =============================================
   CONFERENCE PRE-REGISTRATION (evento.html)
   Marketing hook + capacity + sign-up for talks. See js/pre-register.js.
   ============================================= */
.pre-register { margin-top: 8px; }

/* Same look as the home page card: white with the blue line inside, Nacho poking out
   over the top and everything centered. The point boxes are .prereg-points. */
.pre-register__card {
  display: grid;
  justify-items: center;
  margin-top: 84px;
  padding: 0 28px 28px;
  border-radius: 26px;
  background: #fff;
  text-align: center;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px var(--blue), 0 18px 36px -20px rgba(10, 44, 82, .55);
}
.pre-register__plush {
  width: 150px;
  height: auto;
  margin: -78px 0 6px;
  transform: rotate(-5deg);
  filter: drop-shadow(0 10px 10px rgba(10, 44, 82, .3));
}
.pre-register__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  color: var(--navy);
}
.pre-register__prize {
  margin: 6px 0 18px;
  color: var(--ink-soft);
  text-wrap: balance;
}
.pre-register__prize strong { color: var(--blue); }
.pre-register .prereg-points { width: 100%; margin-bottom: 14px; }

.pre-register__body { width: min(100%, 520px); }
.pre-register__body .registration__text { margin: 12px 0 0; }
.pre-register__count { font-weight: 600; color: var(--navy); }
.pre-register__actions { margin-top: 16px; }
/* As wide as its text; a long label wraps inside the pill instead of spilling out */
.pre-register__actions .hero__button {
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 52px;
  padding: 10px 22px;
  font-size: 14px;
  letter-spacing: .1em;
  line-height: 1.3;
}
/* Cancel: the same pill as Inscribirme, white with a soft red line */
.pre-register__cancel {
  border: 0;
  color: #b42340;
  cursor: pointer;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px #f5b6c3, 0 10px 22px -12px rgba(180, 35, 64, .45);
}
.pre-register__cancel:hover { background: #fff5f7; }
.pre-register__status { margin-top: 14px; }
.pre-register__status .team__badge { display: inline-block; background: var(--blue); color: #fff; }
.pre-register .auth-message--success { background: #eef4fc; color: var(--blue-dark); border-color: #b9d3ef; }
@media (max-width: 480px) {
  .pre-register__card { padding: 0 14px 22px; }
}

.pre-register__admin-actions {
  flex-wrap: wrap;
  margin-top: 6px;
}
#pre-register-manual { margin-bottom: 16px; }

/* Admin action rows on team / participant cards */
.team__buttons--admin { margin-top: 8px; }
.participant-card__admin-remove { margin-left: auto; }

/* =============================================
   PRE-REGISTER CTA (index.html speakers section + modal)
   Big button to pick a conference and pre-register. See js/pre-register-cta.js.
   ============================================= */
/* As wide as the ID card above it. Nacho pokes his head out over the top, the text goes
   centered below. The blue line inside the white card is the one the hero buttons use. */
.prereg-cta {
  display: grid;
  justify-items: center;
  width: min(540px, 100%);
  margin: 116px auto 0;
  padding: 0 24px 26px;
  border-radius: 26px;
  background: #fff;
  text-align: center;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px var(--blue), 0 22px 40px -18px rgba(10, 44, 82, .7);
}
/* Clicking Nacho opens the same modal as the button */
.prereg-cta__plush {
  width: 180px;
  height: auto;
  margin: -96px 0 8px;
  cursor: pointer;
  transform: rotate(-5deg);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 12px 10px rgba(10, 44, 82, .35));
  transition: transform .25s;
}
.prereg-cta:hover .prereg-cta__plush { transform: rotate(3deg) translateY(-4px); }

.prereg-cta__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.1;
  color: var(--navy);
}
.prereg-cta__title span { color: var(--blue); }
.prereg-cta__pitch {
  margin: 8px 0 12px;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: balance;
}
.prereg-cta__points {
  margin-bottom: 20px;
  font-size: .95rem;
  line-height: 1.7;
  font-weight: 600;
  color: var(--navy);
  text-wrap: balance;
}
.prereg-cta__points strong {
  margin-right: 3px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  white-space: nowrap;
}
.prereg-cta__button { height: 50px; }

/* Modal: Nacho and the title on top, the three point values, then the conference picker.
   Same look as the card: white, blue, centered. */
.prereg-modal { max-width: 760px; }
.prereg-modal__header {
  margin-bottom: 18px;
  text-align: center;
}
.prereg-modal__plush {
  display: block;
  width: 108px;
  height: auto;
  margin: 0 auto 6px;
  transform: rotate(-5deg);
  filter: drop-shadow(0 8px 8px rgba(10, 44, 82, .25));
}
.prereg-modal__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  color: var(--navy);
}
.prereg-modal__prize {
  margin-top: 6px;
  color: var(--ink-soft);
  text-wrap: balance;
}
.prereg-modal__prize strong { color: var(--blue); }

/* The three point values as boxes: here and on each conference page (js/event.js) */
.prereg-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.prereg-point {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 12px 6px;
  border-radius: 16px;
  background: #eef4fc;
  color: var(--blue-dark);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}
.prereg-point strong {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
  color: var(--blue);
}
.prereg-point--top { background: var(--blue); color: #fff; }
.prereg-point--top strong { color: #fff; }
.prereg-point--zero { background: #f3f5f8; color: var(--gray); }
.prereg-point--zero strong { color: var(--gray); }
@media (max-width: 480px) {
  .prereg-point { padding: 10px 3px; font-size: 12px; }
}

.prereg-modal__body { text-align: center; }

/* Two columns of conferences (one on phones). Each one: the title, the day and room,
   and the spots left. */
.prereg-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}
.prereg-option {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 6px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.prereg-option:hover { border-color: #b9d3ef; }
.prereg-option--active {
  border-color: var(--blue);
  background: #f5f9fe;
  box-shadow: 0 0 0 3px rgba(22, 103, 194, .15);
}
.prereg-option__title { font-weight: 700; line-height: 1.3; color: var(--navy); }
/* Day and room side by side, each with its icon */
.prereg-option__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: .88rem;
  color: var(--ink-soft);
}
.prereg-option__meta span { display: inline-flex; align-items: center; gap: 5px; }
.prereg-option__meta svg { flex: none; width: 15px; height: 15px; color: var(--blue); }
.prereg-option__spots {
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef4fc;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
.prereg-option__spots--full { background: #f3f5f8; color: var(--gray); }
.prereg-option__spots--in { background: var(--blue); color: #fff; }

.prereg-modal__cta { width: min(100%, 380px); }
