/*
  The public MaitriCup website.
  ---------------------------------------------------------------------------
  Separate from auth.css on purpose. That file dresses the sign-in and
  registration forms, which are a product surface: compact, quiet, and built
  to be filled in. This one is a shopfront - large type, photography, and room
  to breathe. Sharing one stylesheet between the two would mean every change
  to the marketing pages risking the forms that take players' passwords.

  COLOUR
  ------
  Taken from the logo: deep navy and gold. Both are declared once here as
  custom properties, so retheming the whole site is editing this block and
  nothing else.
*/
:root {
  --navy-900: #060d24;
  --navy-800: #0b1b3f;
  --navy-700: #122a5c;
  --navy-600: #1b3b7a;

  --gold-400: #ffd34d;
  --gold-500: #f5b921;
  --gold-600: #d99a07;

  --ink: #0b1b3f;
  --body: #4a5878;
  --muted: #8a97b4;
  --line: #e4e9f4;
  --paper: #ffffff;
  --paper-2: #f6f8fd;

  --shell: 1200px;
  --radius: 16px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 10px rgba(11, 27, 63, 0.07);
  --shadow: 0 14px 38px rgba(11, 27, 63, 0.13);
  --shadow-lg: 0 26px 70px rgba(6, 13, 36, 0.3);

  --head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }

p { margin: 0 0 16px; }
a { color: var(--gold-600); text-decoration: none; }
img { max-width: 100%; display: block; }

.shell {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
}

/* --- Navigation ---------------------------------------------------------- */

/*
  Fixed, and translucent over the hero until the page is scrolled - the class
  is toggled by a few lines of script at the bottom of each page. A solid bar
  over a photograph hides the part of the photograph worth showing.
*/
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 16px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.nav.is-stuck {
  background: rgba(6, 13, 36, 0.93);
  backdrop-filter: blur(12px);
  padding: 9px 0;
  box-shadow: 0 8px 30px rgba(6, 13, 36, 0.35);
}

.nav .shell {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo img { height: 52px; width: auto; transition: height 0.3s; }
.nav.is-stuck .nav-logo img { height: 42px; }

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.nav-links a {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
  opacity: 0.9;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold-500);
  transition: right 0.25s;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { opacity: 1; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 8px 22px rgba(245, 185, 33, 0.35);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 34px;
  border-radius: 999px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  box-shadow: 0 14px 34px rgba(245, 185, 33, 0.42);
}

.btn-navy {
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
  color: #fff;
  box-shadow: 0 14px 34px rgba(18, 42, 92, 0.5);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

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

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 150px 0 90px;
  overflow: hidden;
}

/*
  The photograph sits in its own layer rather than on the section, so the
  darkening gradient above it can be tuned without touching the image, and so
  the image can be swapped by editing one line.
*/
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/assets/images/stadium.jpg") center/cover no-repeat;
  transform: scale(1.04);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(6, 13, 36, 0.25), rgba(6, 13, 36, 0.86) 70%),
    linear-gradient(180deg, rgba(6, 13, 36, 0.9) 0%, rgba(6, 13, 36, 0.4) 40%, rgba(6, 13, 36, 0.95) 100%);
}

.hero .shell { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: clamp(0.62rem, 1.4vw, 0.83rem);
  margin-bottom: 18px;
  opacity: 0.92;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: clamp(30px, 8vw, 90px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}

.hero-eyebrow::after { background: linear-gradient(90deg, var(--gold-500), transparent); }

.hero h1 {
  color: #fff;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: 0.01em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 6px;
}

.hero h1 span {
  background: linear-gradient(180deg, #fff 30%, var(--gold-400) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-rule {
  width: min(560px, 80%);
  height: 3px;
  margin: 14px auto 18px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.hero-tagline {
  color: #e8edfa;
  font-size: clamp(1rem, 2.1vw, 1.32rem);
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}

.hero-tagline b { color: var(--gold-400); font-weight: 700; }

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* --- Page header (inner pages) ------------------------------------------- */

.page-head {
  position: relative;
  padding: 190px 0 86px;
  text-align: center;
  overflow: hidden;
}

.page-head .hero-bg { filter: blur(2px); }

.page-head h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  text-transform: uppercase;
}

.page-head p {
  position: relative;
  z-index: 2;
  color: #cfd8ef;
  max-width: 680px;
  margin-inline: auto;
}

.crumb {
  position: relative;
  z-index: 2;
  color: var(--gold-400);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* --- Sections ------------------------------------------------------------ */

.section { padding: 96px 0; }
.section-dark { background: var(--navy-900); color: #c3cde6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-tint { background: var(--paper-2); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }

.kicker {
  display: inline-block;
  color: var(--gold-600);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 12px;
}

.section-dark .kicker { color: var(--gold-400); }

.lede { font-size: 1.07rem; }

/* --- Stat strip ---------------------------------------------------------- */

.stats {
  position: relative;
  z-index: 3;
  margin-top: -58px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat { background: #fff; padding: 32px 18px; text-align: center; }

.stat b {
  display: block;
  font-family: var(--head);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

/* --- Cards --------------------------------------------------------------- */

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
  color: #b9c5e2;
}

/* A photo card: image on top, words below. */
.photo-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.photo-card img { height: 210px; width: 100%; object-fit: cover; }
.photo-card .body { padding: 22px 24px 26px; }

/* --- Split (text beside a picture) --------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.ticks { list-style: none; padding: 0; margin: 0 0 26px; }

.ticks li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
}

.ticks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 13px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--navy-900);
  border-bottom: 2px solid var(--navy-900);
  transform: rotate(-45deg);
}

/* --- Teams --------------------------------------------------------------- */

.team {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.team img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.team::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 36, 0.1), rgba(6, 13, 36, 0.92));
}

.team .meta { position: relative; z-index: 2; padding: 22px; }
.team .meta b { display: block; font-family: var(--head); font-size: 1.14rem; }
.team .meta span { font-size: 0.82rem; color: var(--gold-400); font-weight: 700; }

/* --- Schedule table ------------------------------------------------------ */

.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }

table { width: 100%; border-collapse: collapse; background: #fff; min-width: 620px; }

thead th {
  background: var(--navy-800);
  color: #fff;
  text-align: left;
  font-family: var(--head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 20px;
}

tbody td { padding: 16px 20px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--paper-2); }

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-gold { background: rgba(245, 185, 33, 0.16); color: var(--gold-600); }
.pill-navy { background: rgba(18, 42, 92, 0.1); color: var(--navy-700); }

/* --- Sponsors ------------------------------------------------------------ */

.tier-label {
  text-align: center;
  font-family: var(--head);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 42px 0 20px;
}

.sponsors { display: grid; gap: 20px; align-items: center; }
.sponsors-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.sponsors-3 { grid-template-columns: repeat(3, 1fr); }
.sponsors-4 { grid-template-columns: repeat(4, 1fr); }

/*
  A sponsor slot. Deliberately a bordered panel rather than a bare logo: real
  sponsor artwork arrives in a dozen shapes and colours, and a frame keeps a
  tall logo and a wide one looking like they belong on the same row.
*/
.sponsor {
  display: grid;
  place-items: center;
  padding: 26px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 108px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.sponsor:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-500); }
.sponsor img { max-height: 54px; width: auto; }
.sponsor.is-title { min-height: 150px; border-width: 2px; border-color: var(--gold-500); }
.sponsor.is-title img { max-height: 84px; }

/* --- Call to action band ------------------------------------------------- */

.band {
  position: relative;
  padding: 92px 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
}

.band h2 { color: #fff; }
.band p { color: #b8c4e0; max-width: 640px; margin-inline: auto 24px; }
.band .shell { position: relative; z-index: 2; }

/* --- Contact ------------------------------------------------------------- */

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  margin-bottom: 16px;
}

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(245, 185, 33, 0.16);
}

.textarea { min-height: 140px; resize: vertical; }

.contact-item { display: flex; gap: 16px; margin-bottom: 26px; }

.contact-item .card-icon { margin: 0; flex: none; width: 46px; height: 46px; font-size: 1.1rem; }

/* --- Footer -------------------------------------------------------------- */

.footer { background: var(--navy-900); color: #93a1c4; padding: 72px 0 0; }
.footer h4 { color: #fff; font-size: 0.86rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { color: #93a1c4; display: block; padding: 5px 0; }
.footer a:hover { color: var(--gold-400); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-logo img { height: 66px; margin-bottom: 16px; }

.footer-bottom {
  margin-top: 56px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

/* --- Reveal on scroll ---------------------------------------------------- */

/*
  Guarded by `.js` on <html>, which the inline script adds. Without it the
  page would start invisible for anyone whose script did not run, which is a
  blank website rather than an unanimated one.
*/
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s, transform 0.6s; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .photo-card:hover, .sponsor:hover { transform: none; }
}

/* --- Narrow screens ------------------------------------------------------ */

@media (max-width: 940px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sponsors-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 13, 36, 0.97);
    border-radius: 14px;
    padding: 10px 0;
    margin: 10px 0 0;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 22px; }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }

  .grid-2, .grid-3, .grid-4, .sponsors-3, .sponsors-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero { min-height: 86vh; }
  .hero-actions .btn { width: 100%; }
}

/* ======================================================================== */
/*  TEAM REGISTRATION (team-register.html)                                  */
/* ======================================================================== */

/*
  A single card on the stadium photograph, matching the player registration's
  feel while collecting something quite different. The orange here is the
  tournament's action colour, the same one the app's buttons use - gold is for
  the marketing pages, orange is for things you press.
*/
.team-page {
  --orange: #f97316;
  --orange-dark: #ea580c;
  min-height: 100vh;
  position: relative;
}

.team-bg {
  position: fixed;
  inset: 0;
  background: url("assets/assets/images/stadium.jpg") center/cover no-repeat;
}

.team-veil {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 36, 0.92), rgba(6, 13, 36, 0.8));
}

.team-shell {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 640px);
  margin-inline: auto;
  padding: 36px 0 56px;
}

.team-head { text-align: center; margin-bottom: 26px; }
.team-head img { height: 74px; margin: 0 auto 16px; }
.team-head h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 2.6rem); }
.team-head p { color: #c3cde6; max-width: 440px; margin-inline: auto; }

.team-card {
  background: #fff;
  border-radius: 22px;
  padding: 30px 28px 34px;
  box-shadow: 0 30px 80px rgba(6, 13, 36, 0.45);
}

.team-foot { text-align: center; margin-top: 22px; }
.team-foot a { color: #c3cde6; font-weight: 600; }

/* --- Stepper ------------------------------------------------------------- */

.tsteps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 26px;
}

.tsteps .step { display: grid; justify-items: center; gap: 6px; width: 78px; text-align: center; }

.tsteps .dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: #eef1f8;
  color: #9aa6c2;
}

.tsteps .step.is-done .dot,
.tsteps .step.is-current .dot { background: var(--orange); color: #fff; }
.tsteps .step.is-current .dot { box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.18); }

.tsteps .label { font-size: 0.72rem; font-weight: 700; color: #9aa6c2; }
.tsteps .step.is-done .label, .tsteps .step.is-current .label { color: var(--orange); }

.tsteps .bar { flex: 1; height: 2px; max-width: 46px; margin-top: 15px; background: #e4e9f4; }
.tsteps .step.is-done + .bar { background: var(--orange); }

/* --- Fields -------------------------------------------------------------- */

.tstep-title { font-size: 1.55rem; margin-bottom: 4px; }
.tstep-sub { color: var(--muted); margin-bottom: 22px; }

.tfield { display: block; margin-bottom: 16px; }
.tlabel { display: block; font-size: 0.86rem; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.tlabel .req, .req { color: var(--orange); }

.tinput {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}

.tinput:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.tverified {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.tlogo {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--paper-2);
}

.tlogo-mark {
  width: 52px; height: 52px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: rgba(249, 115, 22, 0.12);
}

.tlogo b { display: block; font-size: 0.92rem; color: var(--ink); }
.tlogo span { font-size: 0.84rem; color: var(--muted); }

/* --- Buttons ------------------------------------------------------------- */

.tbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 0;
  border-radius: 12px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: filter 0.18s, transform 0.18s;
}

.tbtn:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.tbtn:disabled { opacity: 0.6; cursor: default; }

.tbtn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32); }
.tbtn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.tbtn-wide { width: 100%; }

.trow { display: flex; justify-content: space-between; gap: 14px; margin-top: 24px; }
.trow .tbtn { flex: 1; }

.tfoot { text-align: center; margin-top: 18px; font-size: 0.92rem; color: var(--muted); }

/* --- The squad ----------------------------------------------------------- */

.tsquad-head { margin: 26px 0 12px; font-size: 1.1rem; }

.squad { list-style: none; padding: 0; margin: 0; }

.squad-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 9px;
  background: #fff;
}

.squad-no {
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2);
  font-size: 0.8rem; font-weight: 800; color: var(--muted);
}

.squad-name { flex: 1; font-weight: 600; color: var(--ink); }
.squad-name em { font-style: normal; color: var(--orange); font-weight: 700; font-size: 0.84rem; }
.squad-mobile { font-size: 0.86rem; color: var(--muted); }

.squad-remove {
  border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: 1.3rem; line-height: 1; padding: 0 4px;
}

.squad-remove:hover { color: #dc2626; }

.squad-note {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.9rem;
  font-weight: 600;
}

.squad-note.is-ok { background: #f0fdf4; color: #166534; }

/* --- Review -------------------------------------------------------------- */

.tpanel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: var(--paper-2);
}

.tpanel h3 { margin-bottom: 10px; }
.tmeta { display: flex; justify-content: space-between; gap: 14px; margin: 0 0 7px; font-size: 0.93rem; }
.tmeta b { color: var(--muted); font-weight: 600; }
.tmeta span { color: var(--ink); font-weight: 600; text-align: right; }

.tcheck { display: flex; gap: 11px; align-items: flex-start; margin: 20px 0 4px; font-size: 0.93rem; }
.tcheck input { width: 19px; height: 19px; accent-color: var(--orange); flex: none; margin-top: 2px; }

.taddress { text-align: center; font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: 18px; }

.tdone-mark {
  width: 64px; height: 64px;
  margin: 4px auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.7rem; color: #fff;
  background: linear-gradient(135deg, #f59e0b, var(--orange));
}

.tdone-mark.is-ok { background: linear-gradient(135deg, #16a34a, #22c55e); }

/* The shared error box, in this page's own colours. */
.team-card .form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 12px;
  padding: 12px 15px;
  margin-bottom: 18px;
  font-size: 0.93rem;
  font-weight: 600;
}

@media (max-width: 560px) {
  .team-card { padding: 24px 18px 28px; }
  .tsteps .step { width: 64px; }
  .tsteps .label { font-size: 0.66rem; }
}

/* --- Splash screen ------------------------------------------------------- */

/*
  Only ever shown when the script is running, because only the script can
  take it away. `html.js` is added by the inline script at the bottom of each
  page; without it this rule does not match and the splash is invisible.
  A splash that cannot remove itself is a permanent blank page.
*/
.splash { display: none; }

.js .splash {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 999;
  place-items: center;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  transition: opacity 0.45s ease, visibility 0.45s;
}

.js .splash.is-gone { opacity: 0; visibility: hidden; }

.splash-inner { display: grid; justify-items: center; gap: 26px; }

.splash-inner img {
  height: 110px;
  animation: splash-breathe 1.8s ease-in-out infinite;
}

.splash-bar {
  width: 190px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.splash-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  animation: splash-slide 1.1s ease-in-out infinite;
}

@keyframes splash-breathe {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50%      { transform: scale(1.06); opacity: 1; }
}

@keyframes splash-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* Motion is decoration here; the splash still appears and still leaves. */
@media (prefers-reduced-motion: reduce) {
  .splash-inner img, .splash-bar span { animation: none; }
  .splash-bar span { width: 100%; }
}

/* --- Team logo picker ---------------------------------------------------- */

.tlogo { cursor: pointer; position: relative; }
.tlogo:hover { border-color: var(--orange); }

.tlogo-mark { position: relative; overflow: hidden; }
.tlogo-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.tlogo.has-logo .tlogo-glyph { display: none; }

.tlogo-text { display: grid; gap: 2px; }
.tlogo-text b { font-size: 0.92rem; color: var(--ink); }
.tlogo-text span { font-size: 0.84rem; color: var(--muted); }

.tlogo-status { font-weight: 700; color: var(--orange); }

.tlogo-pencil {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange);
  color: #fff;
  font-size: 0.86rem;
}

.tnote {
  font-size: 0.86rem;
  color: var(--muted);
  background: var(--paper-2);
  border-radius: 10px;
  padding: 10px 13px;
  margin: 2px 0 0;
}

/*
  A quiet Login beside the loud Register.

  The player app moved under the website, so there is no longer an obvious
  door for somebody who already has an account - they used to arrive at the
  app itself. This is that door, deliberately understated: far more visitors
  are registering than returning.
*/
.nav-login {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.9;
  padding: 11px 6px;
}

.nav-login:hover { opacity: 1; }

@media (max-width: 720px) { .nav-login { display: none; } }
