/* europinball.org. Colours are variables: light by default, dark when the device says so or the reader picks it
   (theme.js sets data-theme on <html>). The accent comes from the tournament's settings, in /theme.php. */
:root {
  --ink: #1c2230; --muted: #5d6676; --accent: #0b5cad; --line: #dde2e8; --paper: #ffffff; --page: #f3f5f8;
  --card: #ffffff; --field: #ffffff; --good: #e3f3e7; --bad: #fbe7e4; --warn: #d9a400; --danger: #b3261e; --header: #ffffff; --hover: #eef2f7;
  --radius: 6px; --gap: 12px;
  /* Group assignment's states (user 2026-11-22: readable without colour too, each has its own mark and border). */
  --wish-first: #1e7b3a; --wish-other: #9a7a00; --wish-none: #b35a00; --wish-waiting: #6b7280; --wish-clash: #b3261e;
  /* Log in with Google and Facebook (SignInButton): light in both themes, as Google's branding asks. */
  --signin-paper: #ffffff; --signin-ink: #1f1f1f; --signin-line: #747775; --signin-hover: #f2f2f2; --signin-muted: #5f6368; --signin-shadow: rgba(60, 64, 67, .3);
}
:root[data-theme=dark] {
  --ink: #e4e8ee; --muted: #9aa4b2; --line: #343b47; --paper: #171b22; --page: #12151b;
  --card: #1c212a; --field: #12161c; --good: #1d3527; --bad: #3d2220; --warn: #b8900c; --danger: #c0473f; --header: #1a1f27; --hover: #252c37;
  --wish-first: #5cc47c; --wish-other: #e0c03a; --wish-none: #f0954a; --wish-waiting: #9aa4b2; --wish-clash: #ef6b62;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --ink: #e4e8ee; --muted: #9aa4b2; --line: #343b47; --paper: #171b22; --page: #12151b;
    --card: #1c212a; --field: #12161c; --good: #1d3527; --bad: #3d2220; --warn: #b8900c; --danger: #c0473f; --header: #1a1f27; --hover: #252c37;
    --wish-first: #5cc47c; --wish-other: #e0c03a; --wish-none: #f0954a; --wish-waiting: #9aa4b2; --wish-clash: #ef6b62;
  }
}

* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--page); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header: logo, the site's pages, then the account links and the light/dark button. */
header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 8px 16px; background: var(--header); border-bottom: 1px solid var(--line); }
/* The top bar stays while scrolling. */
header { position: sticky; top: 0; z-index: 20; }
@media (min-width: 720px) {
  main .ui-side, body .ui-side { top: calc(var(--headerHeight, 56px) + 12px); }
}
.menuButton { display: none; font: inherit; font-size: 20px; line-height: 1; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; }
.brand { display: flex; align-items: center; font-weight: 700; color: var(--ink); }
.brand img { height: 44px; width: auto; display: block; }
nav { display: flex; flex-wrap: wrap; gap: 4px 14px; flex: 1; }
nav a { color: var(--ink); font-weight: 500; }
.account { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; }
.account form { margin: 0; }
.account input[type=submit] { padding: 3px 10px; font-size: 14px; background: transparent; color: var(--accent); border: 1px solid var(--line); }
.themeToggle { font: inherit; padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; }

main { max-width: 1080px; margin: 0 auto; padding: 12px 16px 24px; }
h1 { font-size: 24px; margin: 8px 0 12px; }
h2 { font-size: 18px; margin: 0 0 8px; color: var(--accent); }
h3 { font-size: 16px; margin: 14px 0 6px; }
p { margin: 6px 0; }
footer { color: var(--muted); padding: 16px; text-align: center; font-size: 13px; }
.ui-footerLogos:empty { display: none; }
.ui-footerLogoRow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-bottom: 14px; }
.ui-footerLogoRow > p { flex-basis: 100%; margin: 0; }
.ui-footerLogo { color: inherit; }
.ui-footerLogo .ui-picture.ui-logo { max-height: 56px; max-width: 160px; }
.ui-footerLogoRowMain .ui-footerLogo .ui-picture.ui-logo { max-height: 84px; max-width: 240px; }

/* Each part of a page that starts with an H2 is a card. Headings inside a long form get a band instead. */
.ui-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 var(--gap); }
.ui-flag { height: 0.85em; width: auto; vertical-align: -0.05em; margin-right: 0.35em; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.ui-rank { color: var(--muted); }
.ui-security { background: var(--page); border-left: 4px solid var(--accent); }
.ui-security h3 { margin-top: 8px; }
.ui-formSection { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 16px 12px; margin: 0 0 var(--gap); }
.ui-formSection > legend { font-weight: 700; color: var(--accent); padding: 0 6px; font-size: 16px; }

/* Forms: label above the field on phones, beside it on wider screens. */
.field { margin: 6px 0; }
.field.checkField input[type=checkbox] { margin: 0; align-self: center; }
.field.checkField label { align-self: center; }
/* Sub-fields (ShownWhenValue, ShownWhenTicked): indented under the field they belong to, with a line on the left. */
.ui-certified ul { list-style: none; padding-left: 0; }
.ui-certified-notMet { color: var(--danger); }
.ui-certified-unknown { color: var(--muted); }
.ui-subFields { margin: 0 0 6px 1.5em; padding-left: 12px; border-left: 2px solid var(--line); }
.field.checkField .help { align-self: center; }
.field label { display: block; font-weight: 600; margin-bottom: 2px; }
@media (min-width: 720px) {
  .field { display: grid; grid-template-columns: 15em 1fr; gap: 0 12px; align-items: baseline; }
  .field label { margin: 0; }
  .field .help, .field .lookup, .field .suggestions { grid-column: 2; }
  /* A checkbox, its name and its help on one line. */
  .field.checkField { grid-template-columns: 15em auto 1fr; }
  .field.checkField .help { grid-column: 3; margin: 0; }
  /* A date with its Today button: the button to the right of the field (user 2026-11-16). */
  .field:has(> .ui-todayButton) { grid-template-columns: 15em auto 1fr; }
  .field:has(> .ui-todayButton) .help { grid-column: 2 / -1; }
  .field > .ui-todayButton { justify-self: start; align-self: center; }
  .ui-subFields .field:has(> .ui-todayButton) { grid-template-columns: calc(15em - 1.5em - 14px) auto 1fr; }
  /* The inputs of sub-fields line up with the ones above: the label column is narrower by the indent. */
  .ui-subFields .field { grid-template-columns: calc(15em - 1.5em - 14px) 1fr; }
  .ui-subFields .field.checkField { grid-template-columns: calc(15em - 1.5em - 14px) auto 1fr; }
  /* A number with its unit beside it (SettingsForm::pairUnit): "10 [plays]". */
  .field.ui-withUnit { grid-template-columns: 15em auto 1fr; }
  .ui-subFields .field.ui-withUnit { grid-template-columns: calc(15em - 1.5em - 14px) auto 1fr; }
  .field.ui-withUnit .help { grid-column: 2 / span 2; }
  /* In a form with labelled fields, its buttons and links line up with the fields, not the labels. */
  form:has(> .field) > input[type=submit], form:has(> .field) > button[type=submit], form:has(> .field) > .formLink { margin-left: calc(15em + 12px); }
}
form:has(> .field) > .formLink { display: block; margin-top: 8px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  font: inherit; padding: 5px 8px; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); max-width: 100%;
}
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field select, .field textarea { width: 100%; max-width: 32em; }
.field input[type=number] { width: 8em; }
.field.ui-withUnit select { width: auto; justify-self: start; margin-left: 6px; }
/* Dates and times are as wide as what they show (Ui\\DateField, TimeField), not stretched by the form grid. */
input.ui-date { width: 11em; justify-self: start; }
input.ui-time { width: 7em; justify-self: start; }
input[type=submit], button[type=submit] { font: inherit; padding: 6px 14px; color: #fff; background: var(--accent); border: 0; border-radius: var(--radius); cursor: pointer; }
input[type=submit]:hover { filter: brightness(1.1); }
.check { margin: 4px 0; display: flex; gap: 8px; align-items: center; }
.check[hidden] { display: none; }
.help { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
label .help { font-weight: normal; }
.lookup { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; min-height: 1.4em; }
.field input#password, .field input#passwordAgain { font-family: ui-monospace, monospace; }

/* rodentia/ui: every page's notices, warnings, buttons and menu items look the same. */
.ui-icon { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.2em; background: currentColor; -webkit-mask: var(--icon) no-repeat center / contain; mask: var(--icon) no-repeat center / contain; }
.ui-icon-trash { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6l1 2h4v2H4V5h4l1-2zm-3 6h12l-1 12H7L6 9zm4 2v8h1.5v-8H10zm3.5 0v8H15v-8h-1.5z'/%3E%3C/svg%3E"); }
.ui-defaultSubmit { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ui-apply { margin-left: 4px; padding: 1px 7px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: #fff; font: inherit; font-weight: 700; line-height: 1.4; cursor: pointer; vertical-align: middle; }
.ui-apply[hidden] { display: none; }
.ui-pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.ui-pager a, .ui-pager span { padding: 2px 8px; border-radius: var(--radius); }
.ui-pager .ui-current { background: var(--accent); color: #fff; }
.ui-trash { background: transparent; border: 0; padding: 2px 6px; color: var(--muted); cursor: pointer; font: inherit; }
.ui-trash:hover { color: var(--danger); }
/* The bin is an icon, not a button (user 2026-11-19): wins over the submit buttons' accent background above. */
button.ui-trash[type=submit] { background: transparent; border: 0; border-radius: 0; padding: 2px 4px; color: var(--muted); }
button.ui-trash[type=submit]:hover, button.ui-trash[type=submit]:focus-visible { color: var(--danger); filter: none; }
/* Order lines (Ui\QuantityLines): tight cells (user 2026-11-19). */
.ui-quantityLines th, .ui-quantityLines td { padding: 2px 6px; vertical-align: middle; white-space: nowrap; }
.ui-quantityLines td:first-child { white-space: normal; }
.ui-quantityLines input.ui-count { width: 4em; }
.ui-icon-edit { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.8 9.94l-3.75-3.75L3 17.25zm17.7-10.2a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E"); }
/* Details (Popup::DETAILS, user 2026-11-22): a list, for a box that does more than edit. */
.ui-icon-details { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm0 5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm0 5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zM8 6h13v2H8zm0 5h13v2H8zm0 5h13v2H8z'/%3E%3C/svg%3E"); }
/* Paid in full (user 2026-11-22): a tick in a circle. */
.ui-icon-grant { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E"); }
.ui-icon-paid { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.5 14.5-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E"); }
.ui-icon-back { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.4 7.4 14 6l-6 6 6 6 1.4-1.4L10.8 12z'/%3E%3C/svg%3E"); }
.ui-icon-download { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 4h2v8.2l3.3-3.3 1.4 1.4L12 16l-5.7-5.7 1.4-1.4 3.3 3.3V4zM5 18h14v2H5z'/%3E%3C/svg%3E"); }
.ui-downloadable > .ui-downloadBar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 0.5em; }
.ui-download { display: inline-flex; padding: 0.3em; border-radius: 50%; color: inherit; }
.ui-download:hover, .ui-download:focus-visible { background: rgba(127, 127, 127, 0.2); }
/* Fields that don't apply yet, still in view (Ui\\ShownWhenValue grey mode). */
.ui-greyed { opacity: 0.45; pointer-events: none; }
/* Why a field is greyed out, after its help, only while it is: "(Ends at isn't set)". */
.ui-whyOff { display: none; }
.ui-greyed .ui-whyOff { display: inline; pointer-events: auto; }
/* Why a setting can't be changed now, always shown: "(The tournament has started)". */
.ui-lockedWhy { font-style: italic; }
/* A setting linked to straight (#setting-…): it flashes a couple of times (SettingFocus in ui.js). */
.ui-flash { animation: ui-flash 0.5s ease-in-out 3; border-radius: var(--radius); }
@keyframes ui-flash { 50% { background: var(--accent); color: var(--paper); } }
.ui-edit { margin-left: 0.35em; color: inherit; opacity: 0.7; }
.ui-edit:hover { opacity: 1; }
.ui-back { display: inline-block; margin-bottom: 0.8em; text-decoration: none; }
.ui-back:hover { text-decoration: underline; }
/* Forms that save each field as it changes need no Save button while scripts run (user 2026-11-16). */
html.js form[data-action*="post#changed"] .ui-save { display: none; }
html.js .ui-inlineForm:has([data-action*="post#changed"]) .ui-save { display: none; }
.ui-iconText { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ui-icon-eye { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6.5 5 2.7 9.2 1.5 12c1.2 2.8 5 7 10.5 7s9.3-4.2 10.5-7C21.3 9.2 17.5 5 12 5zm0 11.5a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9zm0-7a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z'/%3E%3C/svg%3E"); }
.ui-icon-eye.ui-icon-eyeOff { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.3 2 2 3.3l3.2 3.2C3.4 7.9 2.1 9.9 1.5 12c1.2 2.8 5 7 10.5 7 1.9 0 3.6-.5 5-1.3l3.7 3.6 1.3-1.3L3.3 2zM12 16.5a4.5 4.5 0 0 1-4.2-6.2l1.6 1.6a2.5 2.5 0 0 0 3 3l1.6 1.6c-.6.3-1.3.5-2 .5zm0-11.5c5.5 0 9.3 4.2 10.5 7-.6 1.4-1.6 2.8-2.9 4l-3.1-3.1A4.5 4.5 0 0 0 11 7.6L8.6 5.3C9.7 5.1 10.8 5 12 5z'/%3E%3C/svg%3E"); }
/* A password field and its eye beside it, never inside (password managers sit there). */
.ui-passwordBox { display: inline-flex; align-items: center; gap: 0.25em; max-width: 100%; }
.ui-passwordBox .ui-reveal .ui-icon { width: 1.3em; height: 1.3em; }
.ui-icon-map { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.ui-notice, .ui-problem, .ui-warning { padding: 6px 12px; border-radius: var(--radius); margin: 8px 0; }
.ui-notice { background: var(--good); border-left: 4px solid #2e7d32; }
.ui-problem { background: var(--bad); border: 1px solid var(--danger); border-left-width: 4px; color: var(--ink); font-weight: 600; }
.ui-problem::before { content: "⚠ "; color: var(--danger); }
.ui-tgp ul { margin: 6px 0 10px 18px; padding: 0; }
.ui-tgp li { margin: 2px 0; }
.ui-tgp .ui-tgpWarning { color: var(--danger); }
.ui-debug { border: 2px solid #c62828; border-radius: var(--radius); background: var(--bad); padding: 6px 12px; margin: 8px 0; overflow-x: auto; }
.ui-debug pre { margin: 0; white-space: pre-wrap; font-size: 12px; }
.ui-debugInfo { font-size: 12px; color: var(--muted); text-align: center; padding: 4px; }
.ui-debugInfo pre { text-align: left; overflow-x: auto; font-size: 11px; }
.ui-warning { background: var(--card); border: 1px solid var(--warn); border-left-width: 4px; }
.ui-warning p { margin: 4px 0; }
/* The registration queue's waiting place (QueuePlace). */
.ui-queue { max-width: 40rem; }
.ui-queueTitle { font-weight: 600; }
.ui-queueAhead { font-size: 1.4em; margin: 12px 0; }
.ui-action, .ui-remove, .ui-add { font: inherit; font-size: 14px; padding: 3px 10px; border: 0; border-radius: var(--radius); cursor: pointer; color: #fff; vertical-align: middle; }
.ui-action { background: var(--accent); }
.ui-remove { background: var(--danger); }
.ui-add { background: var(--accent); font-weight: 700; min-width: 2em; }
.ui-new { font: inherit; padding: 5px 12px; border: 2px solid var(--accent); border-radius: var(--radius); background: transparent; color: var(--accent); font-weight: 600; cursor: pointer; }
.ui-new:hover { background: var(--hover); }
.ui-action:hover, .ui-remove:hover, .ui-add:hover { filter: brightness(1.1); }
form.ui-actionForm { display: inline-block; margin: 0 4px 4px 0; }
/* A player's payments on their row, then the Register line (Payments). */
.ui-payments form.ui-paymentLine { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0 0 4px; }
.ui-paymentLine .ui-amount input { width: 6em; }
.ui-paymentLine .ui-paidAt { color: var(--muted); font-size: .9em; }
.ui-toolTip { display: inline-block; width: 1.3em; height: 1.3em; line-height: 1.3em; text-align: center; border-radius: 50%; background: var(--hover); color: var(--muted); font-size: 12px; cursor: help; margin-left: 4px; }
.ui-menuItem.ui-current { text-decoration: underline; }

/* Tables: compact. Phones get their own CSS later. */
/* Tables are as wide as their content, never wider than the page (user 2026-11-19: "a lot of tables with empty space
   in them"); ui-wide makes one full width where that reads better. */
table { border-collapse: collapse; width: auto; max-width: 100%; margin: 6px 0; font-size: 14px; }
table.ui-wide { width: 100%; }
th, td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
tbody tr:hover { background: var(--hover); }

pre { white-space: pre-wrap; word-break: break-word; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; background: var(--card); font-size: 13px; }
.introduction { display: flex; gap: 16px; align-items: center; margin: 8px 0; }
.avatar { width: 72px; height: 72px; border-radius: 50%; }
input.need { width: 4em; }
/* WarningBanner (user 2026-11-16): a compact block about the size of the EPC logo, in black and yellow hazard stripes,
   each line on a plain label so it stays readable. HistoryBanner sits under the menu: an earlier year, an admin's own
   or a preview tournament. */
.ui-warningBanner { display: flex; flex-direction: column; align-items: center; gap: 2px; width: fit-content; max-width: calc(100% - 32px); margin: 8px auto 0; padding: 6px; border-radius: var(--radius); background: repeating-linear-gradient(-45deg, #111 0 10px, #f5c400 10px 20px); text-align: center; }
.ui-warningLabel { display: block; padding: 2px 10px; background: var(--paper); color: var(--ink); font-weight: 700; border-radius: 3px; }
.ui-warningLabel a { color: var(--accent); text-decoration: underline; font-weight: 600; font-size: 14px; }
.checkList { display: grid; grid-template-columns: repeat(auto-fill, minmax(15em, 1fr)); gap: 2px 12px; margin: 6px 0; }
.suggestions { list-style: none; margin: 2px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); max-width: 32em; }
.suggestions li { padding: 4px 8px; cursor: pointer; }
.suggestions li.chosen, .suggestions li:hover { background: var(--hover); }
.suggestions li.missing { color: var(--muted); font-size: 13px; }
.payWay { border-top: 1px solid var(--line); padding: 6px 0; }
.payWay h3 { margin: 2px 0; }
.payWay p { margin: 2px 0; }
img.qr { width: 160px; height: 160px; background: #fff; padding: 6px; border-radius: var(--radius); }
/* An image setting: the image, then its Remove button and the upload under it, lined up on the left. */
.imageField { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.imageField img.qr { object-fit: contain; }
/* A picture for dark backgrounds, previewed on one (assistantPictureDark). */
.imageField img.qr.ui-darkTile, img.ui-darkTile { background: #1b1e24; }
/* Settings folded under another, opened with the arrow (FoldOut). */
.ui-foldOut { margin: 4px 0 8px; }
.ui-foldOut > introduction { cursor: pointer; color: var(--accent); font-size: 14px; }
.ui-foldOut[open] { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--field); }
@media (min-width: 720px) { .field + .ui-foldOut { margin-left: calc(15em + 12px); } .ui-formSection > .ui-foldOut:last-child { margin-left: 0; } }

/* Information pages: the markdown editor, and the text as readers see it. */
textarea.markdown { width: 100%; max-width: none; min-height: 30em; font-family: ui-monospace, monospace; font-size: 13px; }
.field .markdownTools { grid-column: 2; margin-top: 4px; }
.info { max-width: 50em; }
.info img { max-width: 100%; height: auto; }
.ui-introduction { max-width: 50em; font-size: 1.15em; color: var(--muted); margin: 0 0 var(--gap); }
textarea.markdown[name="lowerMarkdown"] { min-height: 12em; }
.ui-editionFacts, .ui-phaseRules, .ui-offers ul, .ui-qualGroups ul { list-style: none; padding-left: 0; }
.ui-qualGroups ul { columns: 14em; }
form.inline { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
/* The front page's poster or logo, the same width every year (user 2026-11-16: they varied a lot); its height follows. */
.poster { display: block; width: min(100%, 360px); height: auto; margin: 0 auto 12px; border-radius: var(--radius); }
.newsItem { margin: 0 0 12px; } .newsItem h2 { margin: 0; font-size: 17px; } .newsItem p { margin: 2px 0; }

/* Admin pages: the section menu on the left, the page beside it. */
.ui-withSide { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 0 16px; max-width: 1300px; margin: 0 auto; padding: 12px 16px 0; }
.ui-withSide > main { max-width: none; margin: 0; padding: 0 0 24px; }
.ui-withSide.ui-withYearMenu { grid-template-columns: 13em minmax(0, 1fr) 13em; }
.ui-side { position: sticky; top: 12px; align-self: start; }
.ui-sideMenu { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.ui-sideMenu .ui-menuItem { padding: 4px 8px; border-radius: var(--radius); color: var(--ink); }
.ui-sideMenu .ui-menuItem:hover { background: var(--hover); text-decoration: none; }
.ui-sideMenu .ui-menuItem.ui-current { background: var(--accent); color: #fff; text-decoration: none; }
.ui-grid td { white-space: nowrap; } .ui-grid th, .ui-grid td { padding: 3px 8px; }
.ui-menuGroup > introduction { list-style: none; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.ui-menuGroup > introduction::-webkit-details-marker { display: none; }
.ui-menuGroup > introduction::before { content: "+"; width: 1.2em; text-align: center; color: var(--muted); font-weight: 700; }
.ui-menuGroup[open] > introduction::before { content: "−"; }
.ui-menuGroup > introduction > .ui-menuItem, .ui-menuLabel { flex: 1; padding: 4px 8px; }
.ui-menuChildren { display: flex; flex-direction: column; gap: 2px; margin-left: 1.2em; padding-left: 6px; border-left: 1px solid var(--line); }
/* In the top menu a group opens as a list below it. */
header nav .ui-menuGroup { position: relative; }
header nav .ui-menuGroup > introduction > .ui-menuItem { padding: 0; }
header nav .ui-menuChildren { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 12em; margin: 6px 0 0; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
header nav .ui-menuChildren .ui-menuItem { padding: 4px 8px; border-radius: var(--radius); }
header nav .ui-menuChildren .ui-menuItem:hover { background: var(--hover); text-decoration: none; }
header nav .ui-menuLabel { padding: 0; font-weight: 500; }
.ui-menuHeading { display: block; padding: 6px 8px 2px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; border-top: 1px solid var(--line); margin-top: 4px; }
.ui-menuChildren > .ui-menuHeading:first-child { border-top: 0; margin-top: 0; }
.ui-menuHeading.ui-menuNoLine { border-top: 0; }
.ui-menuDivider { display: block; border-top: 1px solid var(--line); margin: 4px 0; }
.ui-menuChildren > .ui-menuDivider:first-child { display: none; }
header nav .ui-menuGroup > introduction::before, header nav .ui-menuGroup[open] > introduction::before { content: none; }

/* The front page: the facts (dates, venues, divisions) and the main buttons. */
.facts { display: grid; gap: 4px; justify-items: center; text-align: center; margin: 8px 0 12px; }
.facts ul { list-style: none; margin: 0; padding: 0; }
.factDates { font-size: 20px; font-weight: 700; margin: 0; }
.factVenues, .factDivisions { color: var(--muted); }
.frontButtons { display: flex; gap: 12px; justify-content: center; margin: 8px 0 16px; }
.ui-linkButton { display: inline-block; padding: 8px 20px; border-radius: var(--radius); background: var(--accent); color: #fff; font-weight: 700; }
.ui-linkButton:hover { filter: brightness(1.1); text-decoration: none; }
.winner { text-align: center; }
/* A cancelled year (setting editionCancelled): said first, plainly. */
.cancelledNotice { text-align: center; font-size: 20px; font-weight: 700; color: #b71c1c; border: 2px solid #b71c1c; border-radius: var(--radius); padding: 8px 12px; margin: 8px auto 12px; max-width: 32em; }
/* Front page alignment (edition setting): centred, or everything to the left. */
main.frontCenter > h1, main.frontCenter .info { text-align: center; }
main.frontCenter .info { margin-left: auto; margin-right: auto; }
main.frontLeft .poster { margin-left: 0; }
main.frontLeft .facts { justify-items: start; text-align: left; }
main.frontLeft .frontButtons { justify-content: flex-start; }
main.frontLeft .winner { text-align: left; }
/* Dialogs: a window over the page. */
.ui-dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; width: min(720px, 94vw); background: var(--card); color: var(--ink); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); }
.ui-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.ui-dialog[open] { animation: ui-popIn 0.16s ease-out; }
.ui-dialog[open]::backdrop { animation: ui-fadeIn 0.16s ease-out; }
.ui-dialog.ui-closing { animation: ui-popOut 0.14s ease-in forwards; }
.ui-dialog.ui-closing::backdrop { animation: ui-fadeOut 0.14s ease-in forwards; }
@keyframes ui-popIn { from { opacity: 0; transform: translateY(8px) scale(0.96); } }
@keyframes ui-popOut { to { opacity: 0; transform: translateY(8px) scale(0.96); } }
@keyframes ui-fadeIn { from { opacity: 0; } }
@keyframes ui-fadeOut { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ui-dialog[open], .ui-dialog.ui-closing, .ui-dialog[open]::backdrop, .ui-dialog.ui-closing::backdrop { animation: none; } }
.ui-dialog.ui-popup { width: min(440px, 94vw); }
.ui-popup .ui-cancel { margin-left: 8px; }
.ui-dialogHeader { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.ui-dialogHeader h2 { margin: 0; }
.ui-dialogClose { font-size: 22px; line-height: 1; background: transparent; border: 0; color: var(--muted); cursor: pointer; }
.ui-dialogBody { padding: 12px 16px 16px; }
.ui-dialog textarea.markdown { min-height: 14em; }

/*
 * Phones: the menu button top left, then the logo and the light/dark button. The button opens the menu (its groups
 * fold open in place), the account links and, on admin pages, the admin menu. Without the script all of it shows.
 */
/* Tournament formats: standings, brackets (a column per round) and groups. */
.ui-bracket { display: flex; gap: var(--gap); overflow-x: auto; padding-bottom: 6px; position: relative; }
/* The lines (ui.js "bracket"): wider gaps between the rounds to draw in, the SVG under the matches. */
.ui-bracketDrawn { gap: calc(var(--gap) * 2); }
.ui-bracketLines { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; overflow: visible; }
.ui-bracketLines path { fill: none; stroke: var(--line); stroke-width: 2; }
.ui-bracket .ui-bracketRound { position: relative; z-index: 1; }
.ui-bracketRound { display: flex; flex-direction: column; justify-content: space-around; gap: 8px; min-width: 190px; }
.ui-bracketRound > h4 { margin: 0 0 4px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.ui-match { border: 1px solid var(--line); border-radius: var(--radius); background: var(--field); font-size: 14px; }
.ui-matchTitle { padding: 3px 8px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.ui-matchSide { display: flex; justify-content: space-between; gap: 8px; padding: 3px 8px; }
.ui-matchSide + .ui-matchSide { border-top: 1px solid var(--line); }
.ui-winner { font-weight: 700; }
/* A player's profile (PlayerPage): the picture beside who they are; their podium places. */
.ui-playerHeader { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; }
.ui-playerPicture { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.ui-playerIntro { margin: 0; }
.ui-highlights { margin: 0 0 12px; padding-left: 20px; }
/* The footer's page links (pages with In the footer: Privacy, Terms). */
.ui-footerLinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 8px 0; font-size: 14px; }
.ui-socialProfiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 8px 0; }
.ui-socialProfiles a.ui-socialIcon { display: inline-flex; padding: 4px; border-radius: 6px; color: inherit; opacity: .8; }
.ui-socialProfiles a.ui-socialIcon:hover, .ui-socialProfiles a.ui-socialIcon:focus-visible { opacity: 1; color: var(--accent); }
.ui-socialProfiles .ui-icon { width: 1.6em; height: 1.6em; }
/* Results navigation (user 2026-11-16): the strip (year dropdown, phases in playing order) over the results, and on
   wide screens every year's phases beside them (ResultsSideMenu); phones have the strip only. */
.ui-resultsStrip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 10px; }
.ui-resultsYear { display: flex; align-items: center; gap: 6px; margin: 0; }
.ui-resultsYear select { width: auto; }
.ui-resultsPhases { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ui-resultsPhase.ui-current { font-weight: 700; }
.ui-resultsArrow { color: var(--muted); }
.ui-resultsTop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 10px; }
.ui-resultsTop .ui-resultsStrip { margin: 0; }
.ui-resultsSide { display: none; }
/* Narrow screens: the All results button opens it (ui-resultsOpen), above the strip. */
.ui-resultsOpen .ui-resultsSide { display: block; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 8px 12px; margin: 0 0 12px; }
.ui-resultsSide introduction { cursor: pointer; padding: 2px 0; }
.ui-resultsSide ul { list-style: none; margin: 0 0 6px; padding-left: 14px; }
.ui-resultsSide li { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 0 8px; margin: 1px 0; }
.ui-resultsSidePhases { font-size: 13px; }
.ui-resultsSide .ui-current > .ui-resultsSideDivision, .ui-resultsSide a.ui-current { font-weight: 700; }
@media (min-width: 1100px) {
  .ui-resultsToggle { display: none; }
  main.resultsPage { max-width: 1320px; }
  .ui-resultsLayout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
  .ui-resultsSide { display: block; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; font-size: 14px; }
}
/* Swiss rounds (RoundsView): each round's matches in a grid, the latest round first. */
.ui-rounds .ui-round { margin-bottom: var(--gap); }
.ui-round > h3 { margin: 8px 0 4px; }
.ui-round { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ui-round > h3 { grid-column: 1 / -1; }
/* Set-the-highscore standings: the games that count, small, after the points (as v1). */
.ui-countedGames { font-size: 13px; color: var(--muted); }
.ui-countedGames a { color: inherit; }
.ui-countedPoints[title] { cursor: help; text-decoration: underline dotted; text-underline-offset: 2px; }
.ui-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.ui-group h3 { margin: 4px 0; }
.ui-goesOn td { font-weight: 700; }
.ui-machineLinks { line-height: 1.8; }
.ui-incident { color: var(--muted); }
.ui-filterBar { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.ui-filterBar[hidden] { display: none; }
.ui-filterBar input { width: 100%; max-width: 24em; }
.ui-filterCount { color: var(--muted); font-size: 14px; white-space: nowrap; }
.ui-inlineForm { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.ui-inlineForm input[type=text] { width: 9em; }
/* In a row's own form a tick box sits right after its label, not across a 15em label column (user 2026-11-16: it
   looked like a checkbox without a label at the far right). */
.ui-inlineForm .field.checkField { display: inline-flex; gap: 0.35em; align-items: center; margin: 0; }

@media (max-width: 719px) {
  header { gap: 8px 12px; padding: 6px 12px; }
  .menuButton { display: inline-block; }
  .brand img { height: 36px; }
  .account { margin-left: auto; }
  header nav { flex-direction: column; flex-basis: 100%; gap: 2px; order: 3; }
  header .account { order: 2; }
  .js body:not(.navOpen) header nav, .js body:not(.navOpen) header .account > :not(.themeToggle) { display: none; }
  .js body.navOpen header .account { flex-basis: 100%; margin-left: 0; order: 4; }
  header nav .ui-menuGroup > introduction { padding: 4px 0; }
  header nav .ui-menuChildren { position: static; min-width: 0; margin: 0 0 4px 1.2em; padding: 0 0 0 6px; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
  header nav .ui-menuGroup > introduction::before { content: "+"; }
  header nav .ui-menuGroup[open] > introduction::before { content: "−"; }
  .ui-withSide, .ui-withSide.ui-withYearMenu { grid-template-columns: minmax(0, 1fr); padding: 8px 12px 0; }
  .ui-side { position: static; margin-bottom: var(--gap); }
  .js body:not(.navOpen) .ui-side { display: none; }
  main { padding: 8px 12px 24px; }
  main table { display: block; max-width: 100%; overflow-x: auto; }
}

/* TAG: shown in capitals as typed (saved in capitals too). */
input.tag { text-transform: uppercase; width: 5em; }

/* Image upload with crop (ImageCrop). */
.ui-imageCrop { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ui-imageCropPreview { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.ui-gravatarChoice { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ui-gravatarChoice .ui-picture { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.ui-imageCropDialog { width: min(380px, 94vw); }
.ui-imageCropCanvas { width: 100%; max-width: 320px; aspect-ratio: 1; display: block; margin: 0 auto; cursor: grab; touch-action: none; border-radius: var(--radius); }
.ui-imageCropTools { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.ui-imageCropZoom { flex: 1; }
.ui-imageCropButtons { display: flex; gap: 8px; justify-content: flex-end; }

/* Schedule (ScheduleView): a grid per day, time across in half hours; each block's place and colour come as
   variables (--col, --span, --row, and --hue or --colour). Phones get a list in time order. */
.ui-scheduleDay { margin: 0 0 24px; }
.ui-scheduleDay h3 { margin: 0 0 4px; }
.ui-scheduleHours { margin: 0 0 8px; color: var(--muted); }
.ui-scheduleGrid { display: grid; grid-template-columns: repeat(var(--slots), minmax(28px, 1fr)); grid-auto-rows: minmax(52px, auto); gap: 4px; overflow-x: auto; }
.ui-scheduleHour { grid-row: 1; grid-column: var(--col) / span 2; font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 4px; min-height: 0; }
.ui-scheduleBlock { --base-l: 38%; grid-column: var(--col) / span var(--span); grid-row: var(--row); background: var(--colour, hsl(var(--hue, 210) 45% calc(var(--base-l) + var(--shade, 0) * 7%))); color: #fff; border-radius: var(--radius); padding: 6px 8px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ui-scheduleBlock strong { font-size: 14px; line-height: 1.2; }
.ui-scheduleDetails { font-size: 12px; opacity: 0.92; }
.ui-scheduleMark { font-size: 12px; margin-left: 4px; }
.ui-scheduleOther { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.ui-scheduleNotes { color: var(--muted); font-size: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ui-scheduleBlock { --base-l: 32%; } }
:root[data-theme="dark"] .ui-scheduleBlock { --base-l: 32%; }
@media (max-width: 700px) {
  .ui-scheduleGrid { display: flex; flex-direction: column; }
  .ui-scheduleHour { display: none; }
}

/* Volunteers: who works when (a column per period), and the schedule to plan in (a cell per period and task). */
.ui-volunteerGrid { overflow-x: auto; }
.ui-volunteerGrid th, .ui-volunteerGrid td { padding: 3px 8px; white-space: nowrap; }
.ui-volunteerGrid td:not(:first-child) { text-align: center; }
.ui-shiftPlanner { overflow-x: auto; }
.ui-shiftPlanner .ui-shortName { display: none; }
.ui-shiftPlanner.ui-short .ui-shortName { display: inline; }
.ui-shiftPlanner.ui-short .ui-fullName { display: none; }
.ui-shiftPlanner th, .ui-shiftPlanner td { padding: 4px 6px; vertical-align: top; }
.ui-shiftCell form > div { margin: 2px 0; white-space: nowrap; }
.ui-shiftCell input[type=number] { width: 3.5em; }
.ui-shiftCell select { max-width: 11em; }
.ui-shiftCell.ui-shiftShort { background: var(--bad); }
.js .ui-shiftCell [type=submit] { display: none; }
/* A form that saves each change (the sign-up once signed up) needs its button only without scripts. */
.js form.ui-autosave > [type=submit] { display: none; }
.ui-moveArrows { display: inline-flex; gap: 2px; white-space: nowrap; }
.ui-moveArrows > span { display: inline-block; min-width: 1.9em; }
.ui-moveArrows .ui-action { padding: 0 6px; min-width: 1.9em; }
.ui-pageText:empty { display: none; }
.ui-pageTextEdit { font-size: 0.85em; margin: 2px 0 10px; }
.ui-adminLink { font-size: 0.85em; color: var(--muted, #6b7785); }
.ui-adminLink:hover, .ui-adminLink:focus-visible { color: inherit; }
.ui-taskList { margin: 4px 0 12px; padding-left: 1.2em; }
.ui-volunteerPerks:empty { display: none; }

/* UI parts (Rodentia\Ui): fields as wide as what they hold, hints, articles. */
.field input.ui-count, input.ui-count { width: 6em; }
.field input.ui-money, input.ui-money { width: 8em; }
.field input.ui-dateTime, input.ui-dateTime { width: 14em; justify-self: start; }
.ui-hint { color: var(--muted); font-size: 14px; margin: 6px 0 10px; }
.ui-byline { color: var(--muted); font-size: 14px; margin: 2px 0 8px; }
.ui-checkNote { color: var(--muted); }
.ui-radioChoice label { margin-right: 12px; white-space: nowrap; }
.ui-articleText > p:first-child { font-size: 1.08em; }
/* Merchandise: pictures and drawn T-shirts. */
.ui-picture.ui-product { max-width: 160px; max-height: 160px; height: auto; display: block; }
.ui-picture.ui-game { max-width: 200px; max-height: 200px; width: auto; height: auto; display: block; margin: 4px 0; }
.ui-picture.ui-logo { max-width: 120px; max-height: 48px; width: auto; height: auto; display: block; }
/* Dark mode pictures (ui Picture): with a version for dark backgrounds both come, and the theme shows one; without
   one the usual picture shows in both themes. */
.ui-themedPicture { display: contents; }
.ui-themedPicture > .ui-onDark { display: none; }
:root[data-theme=dark] .ui-themedPicture > .ui-onLight { display: none; }
:root[data-theme=dark] .ui-themedPicture > .ui-onDark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .ui-themedPicture > .ui-onLight { display: none; }
  :root:not([data-theme=light]) .ui-themedPicture > .ui-onDark { display: block; }
}
.ui-shirtMockup svg { width: 140px; height: auto; display: block; }
.ui-productPicture { margin: 4px 0; }
/* A picture with a back (ProductPicture): one side at a time, a small round button in the corner turns it. */
.ui-productPicture.ui-twoSides { position: relative; display: inline-block; }
.ui-flip { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.85); color: #222; font-size: 16px; line-height: 26px; cursor: pointer; }
.ui-flip:hover { background: #fff; }
.ui-orderPicture { margin: 4px 0 8px; }
.ui-productSamples { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.ui-productGroup { margin: 8px 0 16px; }
input.ui-colourCode { width: 7em; }

/* A page without its visible heading (the credits): the heading stays for screen readers. */
main.ui-noHeading > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Credits (/credits.php): centred names; with scripts they roll up like a film's credits (ui.js Credits). */
.ui-credits { text-align: center; }
.ui-creditsRoll h2 { font-size: 1.8em; margin: 0 0 1.5em; }
.ui-creditsSection { margin: 0 0 2.2em; }
.ui-creditsSection h3 { font-size: .85em; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6em; }
.ui-creditsSection p { margin: .25em 0; font-size: 1.15em; }
.ui-creditsSection .ui-picture.ui-logo { margin: 0 auto; max-height: 64px; max-width: 200px; }
.ui-creditsLogo { margin: 1em 0; }
.ui-creditsSection .ui-creditsCaption { font-size: .85em; color: var(--muted); margin: .3em 0 0; }
.ui-creditsLine { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; text-align: left; }
.ui-creditsLine .ui-creditsRole { text-align: right; color: var(--muted); }
.ui-creditsEnd { font-size: 1.4em; margin-top: 2em; }
/* Rolling: the view scrolls by itself (ui.js Credits) and by hand (wheel, touch, keys; no scrollbar shown); fades top and bottom. */
.ui-credits.ui-rolling { position: relative; }
.ui-credits.ui-rolling .ui-creditsView { height: calc(100dvh - var(--credits-top, 30vh) - 24px); min-height: 50vh; overflow-y: auto; scroll-behavior: auto; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.ui-credits.ui-rolling .ui-creditsView::-webkit-scrollbar { display: none; }
.ui-credits.ui-rolling .ui-creditsRoll { padding: 30vh 0 35vh; }
.ui-credits.ui-rolling::before, .ui-credits.ui-rolling::after { content: ""; position: absolute; left: 0; right: 0; height: 15%; pointer-events: none; z-index: 1; }
.ui-credits.ui-rolling::before { top: 0; background: linear-gradient(var(--page), transparent); }
.ui-credits.ui-rolling::after { bottom: 0; background: linear-gradient(transparent, var(--page)); }
.ui-newForm, .ui-popupForm { margin: 8px 0; }

/* Google's sign-in button (GoogleButton), as Google's branding asks: white, grey border, the coloured G; Facebook's
   (FacebookButton, user 2026-11-23) drawn the same with its blue f, side by side (ui-signInButtons). */
.ui-googleButton, .ui-facebookButton { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--signin-line); border-radius: 22px; background: var(--signin-paper); color: var(--signin-ink); font: 500 15px/1 Roboto, Arial, sans-serif; text-decoration: none; box-sizing: border-box; }
.ui-googleButton:hover, .ui-googleButton:focus-visible, .ui-facebookButton:hover, .ui-facebookButton:focus-visible { background: var(--signin-hover); box-shadow: 0 1px 3px var(--signin-shadow); color: var(--signin-ink); text-decoration: none; }
.ui-googleButton .ui-googleLogo, .ui-facebookButton .ui-facebookLogo { display: block; width: 20px; height: 20px; }
.ui-signInButtons { display: flex; flex-wrap: wrap; gap: 12px; }
.ui-or { display: flex; align-items: center; gap: 12px; color: #666; font-size: .9em; margin: 16px 0; }
.ui-or::before, .ui-or::after { content: ""; flex: 1; border-top: 1px solid #ddd; }

/* A field that must be filled in (setRequired): a red star after its label. */
.ui-required { color: #c62828; font-weight: bold; cursor: help; }

/* Tabs (Ui\Tabs): the bar only when scripts work (ui-tabsOn); without them every panel shows under its title. */
.ui-tabBar { display: none; }
/* The bar and the panels make one box (user 2026-11-16: the tabs didn't look like they belonged together). */
.ui-tabsOn { border: 1px solid var(--line); border-radius: 8px; background: var(--card); margin: 8px 0 12px; overflow: hidden; }
.ui-tabsOn .ui-tabBar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 6px 0; background: var(--page); border-bottom: 1px solid var(--line); }
.ui-tabsOn .ui-tabPanel { padding: 4px 16px 12px; }
.ui-tabsOn .ui-tabTitle { display: none; }
.ui-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid transparent; border-bottom: none; border-radius: 6px 6px 0 0; background: none; color: inherit; font: inherit; cursor: pointer; margin-bottom: -1px; }
.ui-tab:hover { background: var(--hover); }
a.ui-tab { text-decoration: none; }
.ui-tab.ui-tabChosen { border-color: var(--line); background: var(--card); font-weight: 600; }
.ui-tab .ui-payLogo { height: 20px; width: auto; }
.ui-payLogo { height: 24px; width: auto; vertical-align: middle; background: #fff; border-radius: 4px; padding: 2px 4px; }
.ui-payLogo-card { background: #2c2e2f; }
/* The Coming soon page (user 2026-11-20): centred, the picture first. */
.ui-comingSoon { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.6em; margin: 2em auto; max-width: 40em; }
.ui-comingSoon .ui-poster { max-width: min(100%, 420px); height: auto; }
.ui-comingSoonName { font-size: 1.6em; font-weight: 700; margin: 0; }
.ui-comingSoonDetails, .ui-comingSoonOpens { color: var(--muted); margin: 0; }
.ui-comingSoonCountdown { font-size: 1.4em; font-variant-numeric: tabular-nums; }

/* A way to pay's own dark-mode logo needs no white chip behind it. */
.ui-themedPicture > .ui-payLogo.ui-onDark { background: transparent; }

/* Each way to pay's own button (PayButton), in the service's colours; the card one plain and dark. */
.ui-payButton { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px; border-radius: 22px; font: 600 16px/1 Arial, sans-serif; text-decoration: none; box-sizing: border-box; border: 1px solid transparent; }
.ui-payButton:hover, .ui-payButton:focus-visible { filter: brightness(.95); text-decoration: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.ui-payButtonLogo { height: 22px; width: auto; display: block; }
.ui-payButton-paypal, .ui-payButton-paypal:hover { background: #ffc439; color: #111; }
.ui-payButton-venmo, .ui-payButton-venmo:hover { background: #008cff; color: #fff; }
.ui-payButton-venmo .ui-payButtonLogo { background: #fff; border-radius: 4px; padding: 2px 4px; }
.ui-payButton-swish, .ui-payButton-swish:hover { background: #fff; color: #111; border-color: #747775; }
.ui-payButton-card, .ui-payButton-card:hover { background: #2c2e2f; color: #fff; }
.ui-cardBrands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; color: var(--muted); font-size: .9em; }
.ui-cardBrand { height: 28px; width: 40px; padding: 2px 4px; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-sizing: border-box; object-fit: contain; }

/* A value shown in a field row instead of a field (the current email address). */
.ui-fieldValue { align-self: center; overflow-wrap: anywhere; }

/* A tick box that can't be chosen now (an age limit): greyed out. */
.ui-checkField.ui-disabled { opacity: .5; }

/* My page with the user's picture before it (PersonPicture: own picture, Gravatar or a plain figure). */
.ui-meLink { display: inline-flex; align-items: center; gap: 6px; }
.ui-meIcon { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }

/* Two people side by side to compare (Duplicates); one under the other on phones. */
.ui-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .ui-compare { grid-template-columns: 1fr; } }

/* The Ask Pal button, lower right on admin pages, and its chat panel (agreed 2026-11-13). */
.ui-palButton { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 24px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.ui-palButton:hover, .ui-palButton:focus-visible { color: #fff; text-decoration: none; filter: brightness(1.1); }
.ui-palIcon { width: 20px; height: 20px; }
dialog.ui-palChat { margin: auto 16px 16px auto; width: min(440px, calc(100vw - 32px)); height: min(640px, calc(100vh - 32px)); overflow: hidden; display: none; flex-direction: column; padding: 0; }
dialog.ui-palChat[open] { display: flex; }
dialog.ui-palChat .ui-dialogHeader { padding: 8px 12px; }
dialog.ui-palChat .ui-dialogBody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ui-palButton .ui-picture.ui-assistant { width: 26px; height: 26px; border-radius: 50%; background: #fff; }
@media (max-width: 600px) { .ui-palButton span { display: none; } .ui-palButton { padding: 12px; } }

/* The answer to a change, floating just above what changed (Bubble.show): the page underneath doesn't move. */
/* Response bubbles (user 2026-11-20): where the pointer is, fixed in the window, never taking focus; an X in the corner. */
.ui-float { position: fixed; z-index: 60; margin: 0; padding-right: 26px; max-width: min(420px, calc(100vw - 16px)); box-shadow: 0 4px 16px rgba(0, 0, 0, .25); cursor: pointer; transition: opacity .6s; user-select: text; }
.ui-bubbleClose { position: absolute; top: 2px; right: 4px; background: transparent; border: 0; padding: 0 4px; font: inherit; font-size: 16px; line-height: 1; color: var(--muted); cursor: pointer; }
.ui-bubbleClose:hover { color: inherit; }
.ui-float .ui-undo { margin-left: .5em; }
.ui-float.ui-fading { opacity: 0; }

/* The chat (Ask Pal): history above, oldest first and scrolled to the newest; the question box at the bottom. */
.ui-chat { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.ui-chatLog { flex: 1; min-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 8px 12px; }
.ui-msg { max-width: 85%; overflow-wrap: anywhere; }
.ui-msg p { margin: 0 0 .4em; }
.ui-msg p:last-child { margin-bottom: 0; }
.ui-msgMine { align-self: flex-end; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 14px 14px 4px 14px; }
.ui-msgMine .ui-msgTime { display: block; font-size: .75em; opacity: .75; text-align: right; }
.ui-msgPal { align-self: flex-start; display: flex; gap: 8px; align-items: flex-start; }
.ui-msgPal .ui-msgBody { background: var(--page); border: 1px solid var(--line); padding: 8px 12px; border-radius: 14px 14px 14px 4px; }
.ui-picture.ui-assistant { width: 32px; height: 32px; flex: none; }
.ui-chatForm { display: flex; gap: 8px; align-items: flex-end; padding: 8px 12px; border-top: 1px solid var(--line); margin: 0; }
.ui-chatForm textarea { flex: 1; resize: none; min-height: 2.6em; }
.ui-chatForm .ui-themedPicture, .ui-msgPal .ui-themedPicture { flex: none; }

/* A small spinner while Pal thinks. */
.ui-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; vertical-align: -1px; animation: ui-spin .8s linear infinite; }
@keyframes ui-spin { to { transform: rotate(360deg); } }

/* Reception mode: the word Reception in the header, and the way back to the full site at the end of the menu. */
.ui-receptionTitle { font-weight: 700; font-size: 1.1em; margin-right: auto; }
.ui-menuLeave { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }

/* A Today button beside a date field: small, on the same line as the date. */
.ui-todayButton { margin-left: 6px; padding: 1px 7px; font-size: 0.8em; }
/* A wizard's numbered steps (set-up wizard): one line that wraps, the step shown in bold. */
/* The steps as a breadcrumb (user 2026-11-21): no numbers, the current one highlighted. */
.ui-stepList ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; list-style: none; padding: 0; margin: 8px 0 16px; color: var(--muted, #888); }
.ui-stepList li + li::before { content: "\203A"; margin: 0 .55em; color: var(--muted, #888); }
.ui-stepList li strong { color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 10px; font-weight: 600; }

/* The dropdown for long lists (Ui\SearchSelect): the text field, and the matches under it. */
.ui-searchSelect { display: inline-block; position: relative; max-width: 100%; }
.ui-searchSelect .suggestions { position: absolute; z-index: 20; min-width: 100%; }

/* A sponsor's fields on the left, its logo on the right (user 2026-11-16). */
.ui-sponsorForm { display: flex; flex-wrap: wrap; gap: 1em; align-items: flex-start; }
.ui-sponsorFields { flex: 1 1 22em; }
.ui-sponsorLogo { flex: 0 0 auto; max-width: 12em; }
.ui-sponsorLogo .ui-picture { max-width: 12em; max-height: 6em; }

/* A pen that opens a popup: a plain icon, not a button (user 2026-11-16). */
button.ui-edit { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.ui-popupForm:has(> button.ui-edit) { display: inline; }

/* A colour's swatch beside its choice (user 2026-11-16). */
.ui-colourSwatch { background: var(--swatch, transparent); display: inline-block; width: 1.2em; height: 1.2em; border: 1px solid var(--line, #8888); border-radius: 3px; vertical-align: middle; }

/* A login connected to another service, with the service's logo (My page, Connected accounts). */
.ui-connectedAccount p { display: flex; align-items: center; gap: 8px; }
.ui-connectedAccount .ui-googleLogo, .ui-connectedAccount .ui-facebookLogo { width: 20px; height: 20px; }

/* The page editor's preview: the page as the site shows it, framed apart from the form (user 2026-11-16). */
.ui-preview { border: 1px solid var(--line); border-radius: 8px; padding: 12px 20px; background: var(--paper); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }

/* A news item's main picture (user 2026-11-16): on the item, and beside the lead in lists. */
.ui-newsPicture img { max-width: 100%; max-height: 220px; border-radius: var(--radius); margin-top: 6px; }
.ui-newsMain { margin-bottom: 12px; }

/* A photo with its caption and photographer (Figure, user 2026-11-16): the caption left, "Photo: …" right. */
.ui-figure { margin: 0 0 12px; }
.ui-figure img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
.ui-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.ui-figure .ui-caption { color: var(--ink); }
.ui-figure .ui-photoCredit { margin-left: auto; font-style: italic; }
.ui-winnerPhotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }

/* Text for screen readers only (ui/Link: "opens in a new tab"). */
.ui-srOnly { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* A player as every list shows them (PlayerName): the flag, then the name with the TAG between, set apart. */
.ui-playerName { white-space: nowrap; }
.ui-playerName .ui-tag { font-weight: 600; font-variant: small-caps; letter-spacing: 0.03em; }

/* A colour field: the picker, its swatches (where the browser shows them) and the code box (user 2026-11-20). */
.ui-colorField { display: inline-flex; align-items: center; gap: 0.5em; }
.ui-colorField .ui-colorCode { width: 6.5em; font-family: monospace; }

/* Player registration's first step (LoginChoice, user 2026-11-21): the ways in side by side where there is room, all
   in one style, size and colour (user 2026-11-21) - Google's own light button (white, grey border, which Google's
   rules ask for), and the others drawn the same, each with its logo on the left. */
.ui-loginChoice .ui-loginButtons { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; max-width: 820px; }
.ui-loginChoice .ui-loginButtons > a { flex: 1 1 220px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: auto; min-height: 56px; padding: 6px 16px; border: 1px solid var(--signin-line); border-radius: 28px; background: var(--signin-paper); color: var(--signin-ink); font: 500 15px/1.25 Roboto, Arial, sans-serif; text-align: left; text-decoration: none; filter: none; }
.ui-loginChoice .ui-loginButtons > a:hover, .ui-loginChoice .ui-loginButtons > a:focus-visible { background: var(--signin-hover); box-shadow: 0 1px 3px var(--signin-shadow); color: var(--signin-ink); text-decoration: none; }
.ui-loginChoice .ui-loginButtons img, .ui-loginChoice .ui-loginButtons .ui-googleLogo, .ui-loginChoice .ui-loginButtons .ui-facebookLogo { display: block; flex: none; width: 24px; height: 24px; object-fit: contain; padding: 0; background: none; }
.ui-loginChoice .ui-loginMore { display: block; font-weight: normal; font-size: .85em; color: var(--signin-muted); }
.ui-loginButton { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.ui-underThirteen { max-width: 36em; }
/* A new password's rules, ticked as they are met (PasswordRules). */
.ui-passwordRules { list-style: none; padding: 0; margin: 4px 0 0; font-size: .9em; color: var(--muted, #888); }
.ui-passwordRules li::before { content: "\25CB"; display: inline-block; width: 1.3em; }
.ui-passwordRules li.ok { color: inherit; }
.ui-passwordRules li.ok::before { content: "\2713"; color: var(--ok, #1a7f37); }
/* A second password that doesn't match the first (password.js), and a button waiting for the rules. */
input.ui-mismatch { border-color: var(--danger, #c62828); background: color-mix(in srgb, var(--danger, #c62828) 10%, transparent); outline-color: var(--danger, #c62828); }
input[type=submit]:disabled, button[type=submit]:disabled { opacity: .45; cursor: not-allowed; }
/* A finder (ProfileFinder, user 2026-11-21): the field and Find on one line, the cards found under it. */
.ui-finder > div:first-child { display: flex; gap: 8px; align-items: center; max-width: 32em; }
.ui-finder > div:first-child .ui-text { flex: 1 1 auto; min-width: 0; }
.ui-finderResult { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ui-finderResult:empty { display: none; }
.ui-finderResult .ui-finderMessage { flex: 1 0 100%; margin: 0; }
.ui-finderResult .ui-card { flex: 0 1 260px; margin: 0; }
.ui-finderResult .ui-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; float: right; margin-left: 8px; }
/* Logging in with the other login first, going on second (LoginOrGoOn, user 2026-11-21). */
.ui-loginOrGoOn { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ui-loginOrGoOn p { margin: 0; }
.ui-action.ui-secondary, .ui-secondary input[type=submit], .ui-secondary button { background: transparent; color: var(--accent); border: 1px solid var(--accent); font-weight: 500; }
/* Social media icons (user 2026-11-21: uniform icons in the footer, as most sites have): brand shapes from Simple
   Icons 11.14.0 (CC0), plain ones for Bambuser and other links; drawn in the text's colour like every ui-icon. */
.ui-icon-social-facebook { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z'/%3E%3C/svg%3E"); }
.ui-icon-social-instagram { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077'/%3E%3C/svg%3E"); }
.ui-icon-social-youtube { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E"); }
.ui-icon-social-twitch { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z'/%3E%3C/svg%3E"); }
.ui-icon-social-discord { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z'/%3E%3C/svg%3E"); }
.ui-icon-social-x { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E"); }
.ui-icon-social-tiktok { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z'/%3E%3C/svg%3E"); }
.ui-icon-social-threads { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.43 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098 1.677 1.29 2.858 3.13 3.509 5.467l-2.04.569c-1.104-3.96-3.898-5.984-8.304-6.015-2.91.022-5.11.936-6.54 2.717C4.307 6.504 3.616 8.914 3.589 12c.027 3.086.718 5.496 2.057 7.164 1.43 1.783 3.631 2.698 6.54 2.717 2.623-.02 4.358-.631 5.8-2.045 1.647-1.613 1.618-3.593 1.09-4.798-.31-.71-.873-1.3-1.634-1.75-.192 1.352-.622 2.446-1.284 3.272-.886 1.102-2.14 1.704-3.73 1.79-1.202.065-2.361-.218-3.259-.801-1.063-.689-1.685-1.74-1.752-2.964-.065-1.19.408-2.285 1.33-3.082.88-.76 2.119-1.207 3.583-1.291a13.853 13.853 0 0 1 3.02.142c-.126-.742-.375-1.332-.75-1.757-.513-.586-1.308-.883-2.359-.89h-.029c-.844 0-1.992.232-2.721 1.32L7.734 7.847c.98-1.454 2.568-2.256 4.478-2.256h.044c3.194.02 5.097 1.975 5.287 5.388.108.046.216.094.321.142 1.49.7 2.58 1.761 3.154 3.07.797 1.82.871 4.79-1.548 7.158-1.85 1.81-4.094 2.628-7.277 2.65Zm1.003-11.69c-.242 0-.487.007-.739.021-1.836.103-2.98.946-2.916 2.143.067 1.256 1.452 1.839 2.784 1.767 1.224-.065 2.818-.543 3.086-3.71a10.5 10.5 0 0 0-2.215-.221z'/%3E%3C/svg%3E"); }
.ui-icon-social-bluesky { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479.815 2.736 3.713 3.66 6.383 3.364.136-.02.275-.039.415-.056-.138.022-.276.04-.415.056-3.912.58-7.387 2.005-2.83 7.078 5.013 5.19 6.87-1.113 7.823-4.308.953 3.195 2.05 9.271 7.733 4.308 4.267-4.308 1.172-6.498-2.74-7.078a8.741 8.741 0 0 1-.415-.056c.14.017.279.036.415.056 2.67.297 5.568-.628 6.383-3.364.246-.828.624-5.79.624-6.478 0-.69-.139-1.861-.902-2.206-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8Z'/%3E%3C/svg%3E"); }
.ui-icon-social-bambuser { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z'/%3E%3C/svg%3E"); }
.ui-icon-social-other { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z'/%3E%3C/svg%3E"); }
/* The manual's ? (HelpPopup, user 2026-11-21): a small round button at the top right of the page's content. */
.ui-help { float: right; margin: 0 0 8px 12px; }
.ui-helpButton { width: 1.8em; height: 1.8em; border-radius: 50%; border: 1px solid var(--accent); background: transparent; color: var(--accent); font-weight: 700; cursor: pointer; padding: 0; }
.ui-helpButton:hover, .ui-helpButton:focus-visible { background: var(--accent); color: #fff; }
/* The docs' header (Layout::docsMode): Back to the site where the main menu is elsewhere. */
.ui-docsTitle { flex: 1 1 auto; display: flex; align-items: center; padding: 0 12px; }
/* The standard table of things (ItemTable, user 2026-11-22): the pen and the trash can together at the end of each row. */
.ui-itemTable td.ui-itemActions { white-space: nowrap; text-align: right; width: 1%; }
.ui-itemTable td.ui-itemActions > * { display: inline-flex; vertical-align: middle; margin-left: 4px; }
/* A field saved with its own Set button (SetButton, user 2026-11-22): the button beside the field. */
.ui-setField .ui-setButton { margin-left: 6px; }
.ui-setField .ui-secretField { display: inline-flex; align-items: center; gap: 8px; }
.ui-testButton { margin: 4px 0 8px; }
/* A dropdown that switches the section under it (ViewSwitch, user 2026-11-22). */
.ui-viewSwitch > .field { max-width: 28rem; }
.ui-viewSection.ui-loading { opacity: .5; transition: opacity .2s; }
/* Group assignment (user 2026-11-22, as in v1): a group framed by how it fits the player's wishes. Each state has a
   mark of its own (✓, 2nd, ✗, –, ⚠) and a border style, so it reads without colour (user 2026-11-22: "the coloured
   frames are hardly visible to me"); the colours only add to it. */
.ui-groupCell { --state: var(--wish-waiting); display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; padding: 3px 6px; border: 3px solid var(--state); border-left-width: 8px; border-radius: 4px; background: color-mix(in srgb, var(--state) 14%, transparent); }
.ui-groupCell .help { flex-basis: 100%; font-size: .85em; }
.ui-groupCell select { max-width: 7em; }
.ui-wishMark { display: inline-block; min-width: 2.2em; padding: 0 4px; border-radius: 3px; text-align: center; font-weight: 700; color: var(--paper); background: var(--state); }
.ui-wishFirst { --state: var(--wish-first); }
.ui-wishOther { --state: var(--wish-other); border-style: dashed; }
.ui-wishNone { --state: var(--wish-none); border-style: double; border-width: 4px 4px 4px 8px; }
.ui-wishFree { --state: var(--wish-first); border-style: dotted; }
.ui-wishWaiting { --state: var(--wish-waiting); border-style: dotted; background: transparent; }
.ui-wishClash { --state: var(--wish-clash); border-width: 4px 4px 4px 10px; }
.ui-groupOver { font-weight: 700; color: var(--wish-clash); }
.ui-groupLegend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.ui-groupLegend .ui-groupCell { display: inline-flex; }
.ui-groupsTable td { vertical-align: middle; }
.ui-groupTools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0; }
.ui-groupTools > * { margin: 0; }
/* A page that may use the whole width of the screen (user 2026-11-22: group assignment's wide tables). */
main.ui-fullWidth, .ui-withSide:has(> main.ui-fullWidth) { max-width: none; }
/* Sortable tables (TableSort, user 2026-11-22): the header shows it sorts, and which way. */
th.ui-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.ui-sortable::after { content: "↕"; margin-left: 4px; opacity: .45; font-size: .9em; }
th.ui-sortable[aria-sort=ascending]::after { content: "▲"; opacity: 1; }
th.ui-sortable[aria-sort=descending]::after { content: "▼"; opacity: 1; }
th.ui-sortable:hover, th.ui-sortable:focus-visible { color: var(--ink); }
/* The ? beside a setting or a header (HelpPopup::inline, user 2026-11-22). */
.ui-help.ui-helpInline { float: none; display: inline-block; margin: 0 0 0 4px; vertical-align: middle; font-weight: normal; }
.ui-helpInline .ui-helpButton { width: 1.4em; height: 1.4em; font-size: 12px; }

/* "Sorting:" before a list's order (user 2026-11-22). */
.ui-sortLabel { margin-left: 12px; margin-right: 4px; }
.ui-paidField { width: 7em; }
.ui-iconButton { background: transparent; border: 0; padding: 2px 4px; color: var(--muted); cursor: pointer; }
.ui-iconButton:hover, .ui-iconButton:focus-visible { color: var(--accent, currentColor); }
/* The payments table's narrow tick columns (user 2026-11-22): what each player pays for, details on hover. */
.ui-payTable :is(td, th):has(> .ui-tick) { width: 1%; text-align: center; padding-left: 3px; padding-right: 3px; white-space: nowrap; }
/* Phones (user 2026-11-22: admins make urgent changes on phones): a wide table scrolls sideways inside itself, the
   page doesn't. */
@media (max-width: 719px) {
  main table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.ui-shiftCell .ui-shiftNeed { width: 3.2em; }
/* A machine out of order, where players see it (user 2026-11-22). */
.ui-outOfOrder { color: var(--danger); font-size: .9em; white-space: nowrap; }
/* A large icon (Icon::large, user 2026-11-22), and the large download with its words. */
.ui-icon.ui-iconLarge { width: 1.8em; height: 1.8em; }
.ui-download.ui-downloadLarge { border-radius: var(--radius); gap: 6px; align-items: center; padding: 6px 12px; border: 1px solid var(--line, rgba(127,127,127,.4)); font-weight: 600; text-decoration: none; }
/* The map to place a pin on (CoordinatesField, user 2026-11-22). */
.ui-mapDialog.ui-popup { width: min(720px, 96vw); }
.ui-mapPick { height: min(60vh, 460px); margin: 8px 0; border-radius: var(--radius); }
.ui-coordinatesField { display: inline-flex; align-items: center; gap: 4px; }
.ui-fieldLink { margin-left: 8px; white-space: nowrap; }
.ui-decimal { width: 7em; }

/* "Updated 24 November 2026" under an info or docs page (2026-11-23). */
.ui-updated { color: var(--muted); font-size: 0.9em; margin-top: 2em; }
