/* We Are All Stars: the interface. Light and airy, lots of white, colours from the night-sky palette of the
   login illustration (deep indigo, violet to orchid, soft lavender, a warm sun, a touch of teal).
   The card designs (card.css) have their own fonts and colours and are not affected by anything here. */
:root {
  --bg: #FBFAFF; --surface: #FFFFFF; --ink: #1F1B4E; --muted: #6D6896; --line: #E4DFF6; --soft: #F3F0FD;
  --accent: #6D4EDB; --accent-2: #B25AD1; --accent-ink: #FFFFFF; --hi: #F6B863; --good: #4CC9BD; --danger: #D63B5D;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --shadow: 0 12px 34px rgba(80, 60, 170, .09), 0 1px 3px rgba(80, 60, 170, .06);
  --radius: 20px;
  /* The interface font. --font-display/-body/-label belong to the cards (card.css) and stay as they are. */
  --ui: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-label: 'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14112E; --surface: #1C1940; --ink: #EDEBFF; --muted: #A7A3D2; --line: #2D295C; --soft: #25214D;
    --accent: #9E83FF; --accent-2: #D08BE8; --accent-ink: #120E33; --danger: #FF8FA3; --good: #5CD9CD;
    --shadow: 0 12px 34px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 15px; line-height: 1.55; padding-inline: 16px; padding-block: 20px 64px; position: relative; min-height: 100vh; }
/* Soft colour washes in the corners, like the illustration: behind everything, never in the way. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60vw 50vh at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
              radial-gradient(50vw 45vh at 0% 100%, color-mix(in srgb, var(--hi) 14%, transparent), transparent 70%); }
.wrap { max-width: 1080px; margin-inline: auto; display: flex; flex-direction: column; gap: 22px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 800; font-size: 1.85rem; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--ink); }
.lead { color: var(--muted); max-width: 60ch; }
.hint { color: var(--muted); font-size: .86rem; max-width: 60ch; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 4px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.2rem; letter-spacing: -.01em; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand svg { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--accent) 35%, transparent)); }
.topnav { display: flex; align-items: center; gap: 16px; font-size: .85rem; font-weight: 500; min-width: 0; }
.topnav a { color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 38vw; }
.topnav a:hover { color: var(--ink); }
.topnav a.nav-short { max-width: none; flex: none; }   /* short links must not be truncated next to a long e-mail address */
/* Menu on a phone: a hamburger button that opens the links in a small panel. Without JavaScript (no .js on <html>)
   the links simply stay in the header, as on a desktop. */
.menu-btn { display: none; width: 42px; height: 42px; padding: 0; place-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); cursor: pointer; flex: none; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--ink); background: var(--soft); }
@media (max-width: 640px) {
  .js .menu-btn { display: grid; }
  .js .topnav { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; max-width: calc(100vw - 32px); flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); font-size: .95rem; }
  .js .topnav.open { display: flex; }
  .js .topnav a, .js .topnav form, .js .topnav button.link { display: block; width: 100%; max-width: none; padding: 12px 14px; border-radius: 12px; text-align: left; white-space: normal; overflow-wrap: anywhere; color: var(--ink); text-decoration: none; }
  .js .topnav form { padding: 0; }
  .js .topnav a:hover, .js .topnav button.link:hover { background: var(--soft); }
  .js .topnav button.link { text-decoration: none; }
}
.pill { font-weight: 700; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--hi); color: #3A2400; }

/* Steps */
/* Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 22px; min-width: 0; box-shadow: var(--shadow); }
.panel.narrow { max-width: 460px; width: 100%; margin-inline: auto; }
.panel.danger { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.panel.danger h3 { color: var(--danger); }
@media (max-width: 520px) { .panel { padding: 20px; border-radius: 18px; } }

/* Forms */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.f { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.f > span, .f > .lab { font-weight: 700; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
input[type=text], input[type=email], input[type=number], input:not([type]), select { font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236D4EDB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer; }
input[type=text]:hover, input[type=email]:hover, input[type=number]:hover, select:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
input[type=color] { width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); padding: 4px; cursor: pointer; }
textarea { font: inherit; font-size: .88rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%; min-height: 150px; resize: vertical; }
input:focus-visible, button:focus-visible, textarea:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: block; font-weight: 600; font-size: .88rem; padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .15s, background .15s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 54px; height: 34px; border-radius: 10px; border: 1.5px solid var(--line); cursor: pointer; padding: 0; overflow: hidden; display: flex; background: var(--surface); }
.swatch i { flex: 1; }
.swatch:hover { border-color: var(--ink); }
.btn { font: inherit; font-weight: 700; font-size: .9rem; padding: 12px 24px; border-radius: 99px; border: 1.5px solid transparent; background: var(--ink); color: var(--bg); cursor: pointer; text-decoration: none; display: inline-block; text-align: center; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent); transition: filter .15s, transform .1s, box-shadow .15s; }
.btn:hover { opacity: .88; box-shadow: 0 10px 24px color-mix(in srgb, var(--ink) 22%, transparent); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink); background: var(--soft); opacity: 1; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: none; }
.btn.small { padding: 8px 16px; font-size: .82rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; filter: none; }
.nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.note { font-size: .88rem; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 11px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.inline { display: inline; margin: 0; }
button.link { font: inherit; background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; }
button.link:hover { color: var(--ink); }

/* Team and player lists */
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list > li > a, .prow { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.list > li > a:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.list .grow { flex: 1; min-width: 0; }
.list .grow strong { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .sub { color: var(--muted); font-size: .82rem; }
/* Shirt-number chip in lists. Not ".nr": that is the number on a card (card.css). */
.pnum { font-weight: 800; font-size: .85rem; min-width: 34px; height: 34px; border-radius: 99px; background: var(--grad); color: var(--accent-ink); display: grid; place-items: center; padding-inline: 4px; font-variant-numeric: tabular-nums; flex: none; }
.pnum.empty { background: var(--soft); color: var(--muted); }

/* Import */
.impbox { display: flex; flex-direction: column; gap: 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.impbox textarea { background: var(--surface); }
.pvlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pvrow { display: grid; grid-template-columns: auto 84px 1fr 140px; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.pvrow input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ink); }
.pvrow input[type=text] { padding: 8px 10px; }
.check small { display: block; margin-top: 2px; }

/* Form + live card preview */
.stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
@media (min-width: 880px) { .stage { grid-template-columns: minmax(0, 1fr) 340px; } }
.side { min-width: 0; }
@media (min-width: 880px) { .side { position: sticky; top: 16px; } }
.sidebox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.sidebox .card { width: 100%; max-width: 260px; }
.sidebox #live-card { width: 100%; max-width: 260px; }
.cap { font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }

/* Design step: template picker and the whole set */
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.tpl { position: relative; border: 2px solid transparent; border-radius: 18px; background: var(--soft); padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; align-items: center; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tpl:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.tpl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tpl:has(input:checked) { border-color: var(--ink); background: var(--surface); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 22%, transparent); }
.tpl:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
.tpl [data-tpl] { width: 100%; max-width: 170px; }
.tpl .card { width: 100%; }
.tpl strong { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; }
.set { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
/* On a desktop the whole set is shown larger: 4 cards per row. */
@media (min-width: 880px) { .set { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.set .card { width: 100%; }
noscript .note { margin: 0; }

.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; background: var(--soft); flex: none; }
input[type=file] { font: inherit; font-size: .85rem; max-width: 100%; color: var(--muted); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: .8rem; margin-right: 12px; padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--accent); cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--ink); background: var(--soft); }

/* "Busy" overlay while a photo is turned into a drawing (player form) */
.busy { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(4px); }
.busy[hidden] { display: none; }
.busy-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; max-width: 340px; box-shadow: var(--shadow); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--soft); border-top-color: var(--accent); border-right-color: var(--accent-2); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* Per-card PDF link under a card in the design step's set */
.setcard { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.setcard .card { width: 100%; }
.setpdf { font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 4px 12px; border: 1.5px solid var(--line); border-radius: 99px; color: var(--ink); background: var(--surface); }
.setpdf:hover { border-color: var(--ink); background: var(--soft); }

/* Team page */
.btn[hidden] { display: none; }                       /* .btn sets display, which would beat the hidden attribute */
.prow { flex-wrap: wrap; }                            /* more buttons per row now: wrap on a phone instead of running off the screen */
.list .grow { flex: 1 1 140px; }
[data-bulk-consent] { display: flex; flex-direction: column; gap: 10px; }
.impbox progress { accent-color: var(--ink); }

/* Elements with their own display (.f, .row ...) must still disappear when hidden */
[hidden] { display: none !important; }

/* import preview: on a phone the position goes on its own line under the name */
@media (max-width: 560px) { .pvrow { grid-template-columns: auto 70px 1fr; } .pvrow input[name=position] { grid-column: 2 / -1; } }

/* Login: the form next to a night-sky illustration (a single column on a phone) */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); min-height: 440px; }
@media (min-width: 820px) { .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.hero-form { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.hero-form .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; font-size: .95rem; }
.hero-form .eyebrow i { width: 26px; height: 26px; border-radius: 50%; background: var(--hi); box-shadow: 0 0 0 6px color-mix(in srgb, var(--hi) 28%, transparent); flex: none; }
.hero-form h1 { font-size: 2.1rem; }
.hero-form h1 b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-art { position: relative; min-height: 220px; background: #231A6B; }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (min-width: 820px) { .hero-art { clip-path: ellipse(100% 120% at 100% 50%); margin-left: -8%; } }
@media (min-width: 820px) { .hero-form { padding-right: 76px; } }
@media (max-width: 819px) { .hero-art { order: -1; min-height: 160px; } .hero-form { padding: 28px 22px; } }

/* "New team": one question per screen */
.flow { width: 100%; max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; gap: 22px; padding-block: 8px 40px; animation: flow-in .35s ease both; }
@keyframes flow-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .flow { animation: none; } }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow-back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 14px 8px 0; }
.flow-back:hover { color: var(--ink); }
.flow-progress { display: flex; gap: 8px; }
.flow-progress i { width: 36px; height: 6px; border-radius: 99px; background: var(--line); transition: background .2s; }
.flow-progress i.on { background: var(--grad); }
.flow-q { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.tile { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--surface); border: 2px solid var(--line); border-radius: 26px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: clamp(1rem, 3.2vw, 1.25rem); box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s; }
.tile-icon { font-size: clamp(2.4rem, 9vw, 3.6rem); line-height: 1; }
.tile:hover, .tile:focus-visible { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 16px 36px color-mix(in srgb, var(--accent) 24%, transparent); }
.flow-search { font: inherit; font-size: 1.05rem; padding: 14px 18px; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); width: 100%; }
.bigrows { display: grid; gap: 10px; }
.bigrow { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 2px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.bigrow:hover, .bigrow:focus-visible { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.bigrow .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bigrow strong { font-weight: 700; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bigrow .sub { color: var(--muted); font-size: .85rem; }
.bigrow .chev { color: var(--ink); font-size: 1.6rem; line-height: 1; }
.bigrow.new { border-style: dashed; }
.bigrow .plus { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 1.3rem; font-weight: 700; flex: none; }
.flow-form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.flow-input { font: inherit; font-size: 1.2rem; font-weight: 600; padding: 16px 18px; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); width: 100%; }
.flow-input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; border-color: var(--ink); }
.flow-form .btn { padding: 16px 28px; font-size: 1rem; align-self: flex-start; }

/* Club tiles: like the sport tiles, a logo on top, the name, the town */
.flow-searchform { display: flex; gap: 10px; align-items: center; }
.flow-searchform .flow-search { flex: 1; }
.tiles.clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .tiles.clubs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 820px) { .tiles.clubs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile.club { justify-content: flex-start; gap: 6px; padding: 14px 10px 12px; text-align: center; font-weight: 700; font-size: clamp(.82rem, 2.6vw, .98rem); line-height: 1.2; }
.tile.club strong { font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.tile.club .sub { color: var(--muted); font-weight: 600; font-size: .82em; }
/* The logo area has a fixed share of the tile and the logo is placed inside it (never taller or wider than
   the area), so a tall or wide logo can't run into the name below it. */
.tile-logo { position: relative; flex: 1 1 0; width: 100%; min-height: 0; overflow: hidden; display: grid; place-items: center; }
.tile-logo img { position: absolute; inset: 6px 10px; width: calc(100% - 20px); height: calc(100% - 12px); object-fit: contain; }
.tile-initials { display: grid; place-items: center; height: 78%; max-height: 100%; aspect-ratio: 1; border-radius: 50%; font-weight: 800; font-size: clamp(1.1rem, 5vw, 1.8rem); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.tile.club.new { border-style: dashed; }
.tile.club .plus { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 2rem; font-weight: 600; }
.tiles .more { grid-column: 1 / -1; text-align: center; max-width: none; }
.tile.club[hidden] { display: none; }

/* Team page: dialogs, and the buttons under each card */
.dlg { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 26px; width: min(960px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; box-shadow: 0 30px 80px rgba(20, 10, 50, .35); }
.dlg::backdrop { background: color-mix(in srgb, var(--ink) 45%, transparent); backdrop-filter: blur(3px); }
.dlg[open] { display: flex; flex-direction: column; gap: 18px; }
.dlg .panel { border: 0; box-shadow: none; padding: 0; }
.dlg .stage { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) { .dlg .stage { grid-template-columns: minmax(0, 1fr) 280px; } }
.setbtns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.setadd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 160px; aspect-ratio: 55 / 85; border: 2px dashed var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .85rem; transition: border-color .15s, background .15s; }
.setadd b { font-size: 2rem; line-height: 1; }
.setadd:hover { border-color: var(--ink); background: var(--soft); }
.clubline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.clublogo { width: 22px; height: 22px; object-fit: contain; flex: none; }
button.setpdf { font-family: inherit; cursor: pointer; }
.setwand { display: inline-grid; place-items: center; width: 28px; height: 24px; padding: 0; border: 1.5px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); cursor: pointer; }
.setwand:hover { border-color: var(--ink); background: var(--soft); }
.setwand[disabled] { opacity: .45; cursor: wait; }
.facts { margin: 0; display: grid; gap: 10px; }
.facts > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
.facts dt { color: var(--muted); font-size: .86rem; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }
