/* App shell. Logged-in pages and the login page load this sheet. */

/* Klei is the default. data-palette on the document switches a player's color. */
:root {
  color-scheme: light;
  --page: #f6f1e6;
  --header: #fbf7f0;
  --surface: #fffdf8;
  --text: #1e1a14;
  --muted: #5e574c;
  --accent: #8e3b28;
  --accent-text: #ffffff;
  --sidebar: #4a3424;
  --sidebar-text: #f8f1e6;
  --border: #e0d4c4;
  --stripe: #f8f3e9;
  --radius: 16px;
  --radius-control: 10px;
  --header-h: 3.25rem;
  --sidebar-w: 11.5rem;
  --tabbar-h: 3.75rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-size: 16px;
  --danger: #fdd6d6;
  --success: #cdedd8;
  --warning: #ffeeba;
  --info: #d3eef6;
  --date-day: #efe6d6;
  --date-day-text: #1e1a14;
  --date-month: #8e3b28;
  --chart-1: #8e3b28;
  --chart-2: #8a5a12;
  --chart-3: #7a3e5c;
  --chart-4: #a15c00;
  --chart-5: #3d6b38;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --page: #141416;
    --header: #141416;
    --surface: #222226;
    --text: #f4f4f5;
    --muted: #b7b8be;
    --accent: #e4b15a;
    --accent-text: #1c1408;
    --sidebar: #0c0c0e;
    --sidebar-text: #f4f4f5;
    --border: #3a3a40;
    --stripe: #2c2a24;
    --date-day: #2a2a2e;
    --date-day-text: #f4f4f5;
    --date-month: #e4b15a;
    --chart-1: #e4b15a;
    --chart-2: #f0a894;
    --chart-3: #e7c26a;
    --chart-4: #e7a0c8;
    --chart-5: #b7d49a;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #141416;
  --header: #141416;
  --surface: #222226;
  --text: #f4f4f5;
  --muted: #b7b8be;
  --accent: #e4b15a;
  --accent-text: #1c1408;
  --sidebar: #0c0c0e;
  --sidebar-text: #f4f4f5;
  --border: #3a3a40;
  --stripe: #2c2a24;
  --date-day: #2a2a2e;
  --date-day-text: #f4f4f5;
  --date-month: #e4b15a;
  --chart-1: #e4b15a;
  --chart-2: #f0a894;
  --chart-3: #e7c26a;
  --chart-4: #e7a0c8;
  --chart-5: #b7d49a;
}

:root[data-palette="rood"] {
  color-scheme: light;
  --page: #f4f5f7;
  --header: #ffffff;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5c6168;
  --accent: #c81d24;
  --accent-text: #ffffff;
  --sidebar: #1c1c1e;
  --sidebar-text: #f5f5f5;
  --border: #e3e5ea;
  --stripe: #ffe0e0;
  --date-day: #c81d24;
  --date-day-text: #ffffff;
  --date-month: #c81d24;
  --chart-1: #c81d24;
  --chart-2: #c46a12;
  --chart-3: #3d6b45;
  --chart-4: #7a3e78;
  --chart-5: #a15c28;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme])[data-palette="rood"] {
    color-scheme: dark;
    --page: #141416;
    --header: #141416;
    --surface: #222226;
    --text: #f4f4f5;
    --muted: #b7b8be;
    --accent: #ff7070;
    --accent-text: #2a0c0c;
    --sidebar: #0c0c0e;
    --sidebar-text: #f4f4f5;
    --border: #3a3a40;
    --stripe: #322628;
    --date-day: #2a2a2e;
    --date-day-text: #f4f4f5;
    --date-month: #ff7070;
    --chart-1: #ff7070;
    --chart-2: #ffc07a;
    --chart-3: #b7d49a;
    --chart-4: #e4b0e0;
    --chart-5: #f0d090;
  }
}

:root[data-theme="dark"][data-palette="rood"] {
  color-scheme: dark;
  --page: #141416;
  --header: #141416;
  --surface: #222226;
  --text: #f4f4f5;
  --muted: #b7b8be;
  --accent: #ff7070;
  --accent-text: #2a0c0c;
  --sidebar: #0c0c0e;
  --sidebar-text: #f4f4f5;
  --border: #3a3a40;
  --stripe: #322628;
  --date-day: #2a2a2e;
  --date-day-text: #f4f4f5;
  --date-month: #ff7070;
  --chart-1: #ff7070;
  --chart-2: #ffc07a;
  --chart-3: #b7d49a;
  --chart-4: #e4b0e0;
  --chart-5: #f0d090;
}

:root[data-palette="geel"] {
  color-scheme: light;
  --page: #f4f5f7;
  --header: #ffffff;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5c6168;
  --accent: #f5c518;
  --accent-text: #1a1408;
  --link: #1a1a1a;
  --sidebar: #1c1c1e;
  --sidebar-text: #f5f5f5;
  --border: #e3e5ea;
  --stripe: #fff4cc;
  --date-day: #f5c518;
  --date-day-text: #1a1408;
  --date-month: #f5c518;
  --chart-1: #b98300;
  --chart-2: #2c2c2c;
  --chart-3: #738f5e;
  --chart-4: #c17a4a;
  --chart-5: #8a8a8a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme])[data-palette="geel"] {
    color-scheme: dark;
    --page: #141416;
    --header: #141416;
    --surface: #222226;
    --text: #f4f4f5;
    --muted: #b7b8be;
    --accent: #f5c518;
    --accent-text: #1a1408;
    --link: #f5c518;
    --sidebar: #0c0c0e;
    --sidebar-text: #f4f4f5;
    --border: #3a3a40;
    --stripe: #2a2a24;
    --date-day: #2a2a2e;
    --date-day-text: #f4f4f5;
    --date-month: #f5c518;
    --chart-1: #f5c518;
    --chart-2: #d5d6da;
    --chart-3: #b7c9a4;
    --chart-4: #e7b08a;
    --chart-5: #a8aab2;
  }
}

:root[data-theme="dark"][data-palette="geel"] {
  color-scheme: dark;
  --page: #141416;
  --header: #141416;
  --surface: #222226;
  --text: #f4f4f5;
  --muted: #b7b8be;
  --accent: #f5c518;
  --accent-text: #1a1408;
  --link: #f5c518;
  --sidebar: #0c0c0e;
  --sidebar-text: #f4f4f5;
  --border: #3a3a40;
  --stripe: #2a2a24;
  --date-day: #2a2a2e;
  --date-day-text: #f4f4f5;
  --date-month: #f5c518;
  --chart-1: #f5c518;
  --chart-2: #d5d6da;
  --chart-3: #b7c9a4;
  --chart-4: #e7b08a;
  --chart-5: #a8aab2;
}

:root[data-palette="roze"] {
  color-scheme: light;
  --page: #f4f5f7;
  --header: #ffffff;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5c6168;
  --accent: #b4235a;
  --accent-text: #ffffff;
  --sidebar: #1c1c1e;
  --sidebar-text: #f5f5f5;
  --border: #e3e5ea;
  --stripe: #ffd9e8;
  --date-day: #b4235a;
  --date-day-text: #ffffff;
  --date-month: #b4235a;
  --chart-1: #b4235a;
  --chart-2: #c46a12;
  --chart-3: #3d6b45;
  --chart-4: #7a3e78;
  --chart-5: #a15c28;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme])[data-palette="roze"] {
    color-scheme: dark;
    --page: #141416;
    --header: #141416;
    --surface: #222226;
    --text: #f4f4f5;
    --muted: #b7b8be;
    --accent: #ffb0cc;
    --accent-text: #3a1020;
    --sidebar: #0c0c0e;
    --sidebar-text: #f4f4f5;
    --border: #3a3a40;
    --stripe: #32242c;
    --date-day: #2a2a2e;
    --date-day-text: #f4f4f5;
    --date-month: #ffb0cc;
    --chart-1: #ffb0cc;
    --chart-2: #ffc07a;
    --chart-3: #b7d49a;
    --chart-4: #e4b0e0;
    --chart-5: #f0b090;
  }
}

:root[data-theme="dark"][data-palette="roze"] {
  color-scheme: dark;
  --page: #141416;
  --header: #141416;
  --surface: #222226;
  --text: #f4f4f5;
  --muted: #b7b8be;
  --accent: #ffb0cc;
  --accent-text: #3a1020;
  --sidebar: #0c0c0e;
  --sidebar-text: #f4f4f5;
  --border: #3a3a40;
  --stripe: #32242c;
  --date-day: #2a2a2e;
  --date-day-text: #f4f4f5;
  --date-month: #ffb0cc;
  --chart-1: #ffb0cc;
  --chart-2: #ffc07a;
  --chart-3: #b7d49a;
  --chart-4: #e4b0e0;
  --chart-5: #f0b090;
}

:root[data-palette="oranje"] {
  color-scheme: light;
  --page: #f4f5f7;
  --header: #ffffff;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5c6168;
  --accent: #c93c00;
  --accent-text: #ffffff;
  --sidebar: #1c1c1e;
  --sidebar-text: #f5f5f5;
  --border: #e3e5ea;
  --stripe: #ffe3c4;
  --date-day: #c93c00;
  --date-day-text: #ffffff;
  --date-month: #c93c00;
  --chart-1: #c93c00;
  --chart-2: #c81d24;
  --chart-3: #3d6b38;
  --chart-4: #7a3068;
  --chart-5: #8a5a12;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme])[data-palette="oranje"] {
    color-scheme: dark;
    --page: #141416;
    --header: #141416;
    --surface: #222226;
    --text: #f4f4f5;
    --muted: #b7b8be;
    --accent: #ff6a00;
    --accent-text: #2a1004;
    --sidebar: #0c0c0e;
    --sidebar-text: #f4f4f5;
    --border: #3a3a40;
    --stripe: #322820;
    --date-day: #2a2a2e;
    --date-day-text: #f4f4f5;
    --date-month: #ff6a00;
    --chart-1: #ff6a00;
    --chart-2: #ff9a8a;
    --chart-3: #ffd080;
    --chart-4: #e8b0d4;
    --chart-5: #c6e2a8;
  }
}

:root[data-theme="dark"][data-palette="oranje"] {
  color-scheme: dark;
  --page: #141416;
  --header: #141416;
  --surface: #222226;
  --text: #f4f4f5;
  --muted: #b7b8be;
  --accent: #ff6a00;
  --accent-text: #2a1004;
  --sidebar: #0c0c0e;
  --sidebar-text: #f4f4f5;
  --border: #3a3a40;
  --stripe: #322820;
  --date-day: #2a2a2e;
  --date-day-text: #f4f4f5;
  --date-month: #ff6a00;
  --chart-1: #ff6a00;
  --chart-2: #ff9a8a;
  --chart-3: #ffd080;
  --chart-4: #e8b0d4;
  --chart-5: #c6e2a8;
}

:root[data-palette="groen"] {
  color-scheme: light;
  --page: #f4f5f7;
  --header: #ffffff;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5c6168;
  --accent: #1f6a3a;
  --accent-text: #ffffff;
  --sidebar: #1c1c1e;
  --sidebar-text: #f5f5f5;
  --border: #e3e5ea;
  --stripe: #d8f3de;
  --date-day: #1f6a3a;
  --date-day-text: #ffffff;
  --date-month: #1f6a3a;
  --chart-1: #1f6a3a;
  --chart-2: #a15c00;
  --chart-3: #b42348;
  --chart-4: #6b3a78;
  --chart-5: #8a5a12;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme])[data-palette="groen"] {
    color-scheme: dark;
    --page: #141416;
    --header: #141416;
    --surface: #222226;
    --text: #f4f4f5;
    --muted: #b7b8be;
    --accent: #c6e36a;
    --accent-text: #1a240c;
    --sidebar: #0c0c0e;
    --sidebar-text: #f4f4f5;
    --border: #3a3a40;
    --stripe: #263228;
    --date-day: #2a2a2e;
    --date-day-text: #f4f4f5;
    --date-month: #c6e36a;
    --chart-1: #c6e36a;
    --chart-2: #ffb15e;
    --chart-3: #ffb0c4;
    --chart-4: #e4b0e8;
    --chart-5: #f0d090;
  }
}

:root[data-theme="dark"][data-palette="groen"] {
  color-scheme: dark;
  --page: #141416;
  --header: #141416;
  --surface: #222226;
  --text: #f4f4f5;
  --muted: #b7b8be;
  --accent: #c6e36a;
  --accent-text: #1a240c;
  --sidebar: #0c0c0e;
  --sidebar-text: #f4f4f5;
  --border: #3a3a40;
  --stripe: #263228;
  --date-day: #2a2a2e;
  --date-day-text: #f4f4f5;
  --date-month: #c6e36a;
  --chart-1: #c6e36a;
  --chart-2: #ffb15e;
  --chart-3: #ffb0c4;
  --chart-4: #e4b0e8;
  --chart-5: #f0d090;
}

:root[data-palette="paars"] {
  color-scheme: light;
  --page: #f4f5f7;
  --header: #ffffff;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5c6168;
  --accent: #7a2ea0;
  --accent-text: #ffffff;
  --sidebar: #1c1c1e;
  --sidebar-text: #f5f5f5;
  --border: #e3e5ea;
  --stripe: #f0d9fa;
  --date-day: #7a2ea0;
  --date-day-text: #ffffff;
  --date-month: #7a2ea0;
  --chart-1: #7a2ea0;
  --chart-2: #c45102;
  --chart-3: #1f6a3a;
  --chart-4: #b4235a;
  --chart-5: #8a5a12;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme])[data-palette="paars"] {
    color-scheme: dark;
    --page: #141416;
    --header: #141416;
    --surface: #222226;
    --text: #f4f4f5;
    --muted: #b7b8be;
    --accent: #e4b6ff;
    --accent-text: #2a1038;
    --sidebar: #0c0c0e;
    --sidebar-text: #f4f4f5;
    --border: #3a3a40;
    --stripe: #2c2634;
    --date-day: #2a2a2e;
    --date-day-text: #f4f4f5;
    --date-month: #e4b6ff;
    --chart-1: #e4b6ff;
    --chart-2: #ffb15e;
    --chart-3: #b7d49a;
    --chart-4: #ffb0cc;
    --chart-5: #f0d090;
  }
}

:root[data-theme="dark"][data-palette="paars"] {
  color-scheme: dark;
  --page: #141416;
  --header: #141416;
  --surface: #222226;
  --text: #f4f4f5;
  --muted: #b7b8be;
  --accent: #e4b6ff;
  --accent-text: #2a1038;
  --sidebar: #0c0c0e;
  --sidebar-text: #f4f4f5;
  --border: #3a3a40;
  --stripe: #2c2634;
  --date-day: #2a2a2e;
  --date-day-text: #f4f4f5;
  --date-month: #e4b6ff;
  --chart-1: #e4b6ff;
  --chart-2: #ffb15e;
  --chart-3: #b7d49a;
  --chart-4: #ffb0cc;
  --chart-5: #f0d090;
}

:root[data-palette="blauw"] {
  color-scheme: light;
  --page: #f4f5f7;
  --header: #ffffff;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5c6168;
  --accent: #155eef;
  --accent-text: #ffffff;
  --sidebar: #1c1c1e;
  --sidebar-text: #f5f5f5;
  --border: #e3e5ea;
  --stripe: #dce8ff;
  --date-day: #155eef;
  --date-day-text: #ffffff;
  --date-month: #155eef;
  --chart-1: #155eef;
  --chart-2: #2c2c2c;
  --chart-3: #738f5e;
  --chart-4: #c17a4a;
  --chart-5: #b98300;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme])[data-palette="blauw"] {
    color-scheme: dark;
    --page: #141416;
    --header: #141416;
    --surface: #222226;
    --text: #f4f4f5;
    --muted: #b7b8be;
    --accent: #60a5fa;
    --accent-text: #0b1a33;
    --sidebar: #0c0c0e;
    --sidebar-text: #f4f4f5;
    --border: #3a3a40;
    --stripe: #242c38;
    --date-day: #2a2a2e;
    --date-day-text: #f4f4f5;
    --date-month: #60a5fa;
    --chart-1: #60a5fa;
    --chart-2: #d5d6da;
    --chart-3: #b7c9a4;
    --chart-4: #e7b08a;
    --chart-5: #f0d090;
  }
}

:root[data-theme="dark"][data-palette="blauw"] {
  color-scheme: dark;
  --page: #141416;
  --header: #141416;
  --surface: #222226;
  --text: #f4f4f5;
  --muted: #b7b8be;
  --accent: #60a5fa;
  --accent-text: #0b1a33;
  --sidebar: #0c0c0e;
  --sidebar-text: #f4f4f5;
  --border: #3a3a40;
  --stripe: #242c38;
  --date-day: #2a2a2e;
  --date-day-text: #f4f4f5;
  --date-month: #60a5fa;
  --chart-1: #60a5fa;
  --chart-2: #d5d6da;
  --chart-3: #b7c9a4;
  --chart-4: #e7b08a;
  --chart-5: #f0d090;
}

@media (min-width: 768px) {
  :root {
    --text-size: 14px;
  }
}

body.app {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-size);
  line-height: 1.5;
}

.app *,
.app *::before,
.app *::after {
  box-sizing: border-box;
}

.app :focus-visible {
  outline: 2px solid var(--link, var(--accent));
  outline-offset: 2px;
}

.app a {
  color: var(--link, var(--accent));
}

.app a:not(.brand):not(.nav-link):not(.tabbar-link):not(.btn):not(.menu-item):not(.menu-more):not(.note):not(.carousel-control-prev):not(.carousel-control-next):not(.jump-link):not(.person-tile) {
  text-decoration: underline;
}

.app h1,
.app h2,
.app h3,
.app h4,
.app h5,
.app h6,
.app p {
  margin: 0 0 0.5rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex: 0 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  height: var(--header-h);
  padding: 0 0.6rem;
  background: var(--header);
  border-bottom: 1px solid var(--border);
}

.app .brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 2rem;
  width: auto;
  flex: none;
  color: var(--text);
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.env-banner {
  flex: 0 0 auto;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #f44336;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topbar-spacer {
  flex: 1;
}

.icon-button,
.menu-item,
.sidebar-toggle,
.tabbar-link {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-control);
  text-decoration: none;
}

.icon-button.is-on,
.tabbar-link.is-active,
.tabbar button.is-active {
  color: var(--link, var(--accent));
}

.icon-button .badge {
  position: absolute;
  top: 0.15rem;
  right: 0.05rem;
}

.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  flex: none;
}

.avatar-fallback.is-muted {
  background: var(--muted);
  color: var(--surface);
}

img.img-avatar {
  display: inline-block;
  width: var(--avatar, 6.25rem);
  height: var(--avatar, 6.25rem);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  vertical-align: middle;
  background: var(--stripe);
  font-size: 0;
  flex: none;
}

.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 1rem 0.75rem;
  margin: 0.35rem 0 0.85rem;
}

.app #reactieview .card-body > h5:not(:first-child) {
  margin-top: 0;
  padding-top: 1.25rem;
}

.person-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  text-align: center;
  text-decoration: none;
}

.person-tile > span:not(.avatar-fallback) {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.person-tile img.img-avatar,
.person-tile .avatar-fallback {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 999px;
  object-fit: cover;
}

.person-tile img.img-avatar {
  display: block;
  font-size: 0;
}

.person-tile .avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  font-weight: 700;
}

.app .vote-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.app .vote-action .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.app .played-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 1rem 0.75rem;
  margin-top: 0.85rem;
}

.app .played-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  text-align: center;
}

.app .played-game img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 6.25rem;
  object-fit: contain;
}

.app .played-game > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  line-height: 1.25;
}

.account-button img,
.account-button .avatar-fallback,
.note-avatar,
.note img {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: cover;
}

.menu {
  position: relative;
}

.menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: min(22rem, calc(100vw - 1rem));
  max-height: min(70vh, 28rem);
  overflow: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 40;
}

.menu-panel.is-open {
  display: block;
}

.menu-title,
.menu-more {
  margin: 0;
  padding: 0.55rem 0.85rem;
}

.menu-title {
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.menu-more,
.menu-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  color: var(--text);
  text-align: left;
  text-decoration: none;
}

.menu-more {
  border-top: 1px solid var(--border);
  justify-content: center;
  font-weight: 700;
  color: var(--link, var(--accent));
}

.menu-item:hover,
.menu-more:hover,
.note:hover {
  background: var(--stripe);
}

.menu-panel form {
  padding-bottom: 0.6rem;
}

.menu-panel label {
  display: block;
  padding: 0.45rem 0.85rem 0;
}

.menu-panel input[type="date"] {
  margin-top: 0.2rem;
}

.check {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.85rem;
}

.check input {
  margin-top: 0.25rem;
}

.menu-actions {
  display: flex;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem 0;
}

.note {
  display: flex;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  color: inherit;
  text-decoration: none;
}

.note-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.note-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.note-message,
.note strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame {
  min-height: calc(100vh - var(--header-h));
}

.sidebar {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 3rem;
}

.nav-group {
  margin: 0.85rem 0.9rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nav-link,
.sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.1rem 0.4rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-control);
  color: inherit;
  text-decoration: none;
}

.sidebar {
  background: var(--sidebar);
  color: var(--sidebar-text);
}

.sidebar .nav-link,
.sidebar .sidebar-toggle,
.nav-panel .nav-link,
.app .tabbar-link,
.app .menu-item,
.app .note {
  color: inherit;
  text-decoration: none;
}

.sidebar .nav-link.is-active,
.sidebar .nav-link:hover,
.nav-panel .nav-link.is-active,
.nav-panel .nav-link:hover {
  background: color-mix(in srgb, white 16%, transparent);
}

[data-palette="rood"] .sidebar .nav-link.is-active,
[data-palette="rood"] .nav-panel .nav-link.is-active,
[data-palette="geel"] .sidebar .nav-link.is-active,
[data-palette="geel"] .nav-panel .nav-link.is-active,
[data-palette="roze"] .sidebar .nav-link.is-active,
[data-palette="roze"] .nav-panel .nav-link.is-active,
[data-palette="oranje"] .sidebar .nav-link.is-active,
[data-palette="oranje"] .nav-panel .nav-link.is-active,
[data-palette="groen"] .sidebar .nav-link.is-active,
[data-palette="groen"] .nav-panel .nav-link.is-active,
[data-palette="paars"] .sidebar .nav-link.is-active,
[data-palette="paars"] .nav-panel .nav-link.is-active,
[data-palette="blauw"] .sidebar .nav-link.is-active,
[data-palette="blauw"] .nav-panel .nav-link.is-active,
:root[data-theme="dark"][data-palette="klei"] .sidebar .nav-link.is-active,
:root[data-theme="dark"][data-palette="klei"] .nav-panel .nav-link.is-active {
  background: var(--accent);
  color: var(--accent-text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme])[data-palette="klei"] .sidebar .nav-link.is-active,
  :root:not([data-theme])[data-palette="klei"] .nav-panel .nav-link.is-active {
    background: var(--accent);
    color: var(--accent-text);
  }
}

.app .tabbar-link.is-active,
.tabbar button.is-active,
.icon-button.is-on {
  color: var(--link, var(--accent));
}

.sidebar-toggle {
  position: sticky;
  bottom: 0;
  width: calc(100% - 0.8rem);
  background: var(--sidebar);
}

.nav-panel {
  display: none;
  position: fixed;
  z-index: 25;
  inset: var(--header-h) 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom)) 0;
  overflow: auto;
  background: var(--page);
  color: var(--text);
}

.app.is-nav-open .nav-panel {
  display: block;
}

.nav-panel .nav-link {
  padding: 0.7rem 0.55rem;
  font-size: 1rem;
}

.tabbar {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--header);
  border-top: 1px solid var(--border);
}

.tabbar-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: var(--tabbar-h);
  font-size: 0.72rem;
  text-decoration: none;
}

.tabbar .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.content {
  min-width: 0;
  padding: 0.75rem 1rem calc(var(--tabbar-h) + 1rem + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  .frame {
    display: flex;
    align-items: stretch;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: var(--header-h);
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    height: calc(100vh - var(--header-h));
    overflow: auto;
  }

  .nav-list {
    flex: 1;
    padding-bottom: 0.4rem;
  }

  .content {
    flex: 1;
    padding: 1rem 1.25rem 2rem;
  }

  .tabbar,
  .nav-panel,
  .app.is-nav-open .nav-panel {
    display: none;
  }

  html.is-sidebar-collapsed {
    --sidebar-w: 3.25rem;
  }

  html.is-sidebar-collapsed .nav-label,
  html.is-sidebar-collapsed .nav-group {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  html.is-sidebar-collapsed .nav-link,
  html.is-sidebar-collapsed .sidebar-toggle {
    justify-content: center;
  }

  html.is-sidebar-collapsed .sidebar-toggle .icon {
    transform: rotate(180deg);
  }
}

.app .main {
  margin: 0;
}

.app .container-fluid {
  padding: 0;
}

.app .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  border-radius: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.app .breadcrumb-menu {
  display: flex;
  margin-left: auto;
}

.app button.btn.settings-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.15rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1;
  white-space: nowrap;
}

.app button.btn.settings-toggle:hover,
.app button.btn.settings-toggle[aria-expanded="true"] {
  color: var(--text);
  background: transparent;
}

.app .settings-toggle .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.app .card {
  height: auto;
  margin: 0 0 1rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.app .card-header,
.app .card-footer {
  padding: 0.65rem 0.9rem;
}

.app .card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.app .card-header-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.log-actions,
.card-header-actions {
  white-space: nowrap;
}

.app a.log-action,
.log-action,
.log-action .btn {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.15rem;
  border: 0;
  background: transparent;
  color: var(--link, var(--accent));
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
}

.log-action .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.log-action .form-control {
  display: none;
}

.app .help-tip {
  position: relative;
  display: inline-flex;
}

.app .card:has(.help-tip:hover),
.app .card:has(.help-tip:focus-within) {
  position: relative;
  z-index: 3;
}

.app .help-tip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.app .help-tip-button .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.app .help-tip-bubble {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 2;
  width: min(18rem, 70vw);
  padding: 0.55rem 0.7rem;
  color: var(--text);
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.35;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  visibility: hidden;
}

.app .help-tip:hover .help-tip-bubble,
.app .help-tip:focus-within .help-tip-bubble {
  visibility: visible;
}

.app .card-header .settings-toggle {
  font-weight: 400;
}

.app .card-footer {
  border-top: 1px solid var(--border);
}

.app .card-body {
  padding: 0.9rem;
}

.app .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.app .row > [class*="col-"] {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
}

.app .row > .spellogo {
  flex: 0 1 auto;
  width: auto;
  max-width: min(46%, 200px);
}

.app .row > .spelshortdetails {
  flex: 1 1 0;
  max-width: none;
}

.app .spellogo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 200px;
  margin-inline: auto;
  object-fit: contain;
}

.app .spelshortdetails {
  font-size: 0.85rem;
  line-height: 1.25;
}

.app .spelshortdetails .row {
  row-gap: 0.45rem;
  column-gap: 0.35rem;
}

.app .spelshortdetails .row > .col-6 {
  flex: 1 1 calc(50% - 0.4rem);
  max-width: calc(50% - 0.4rem);
}

.app .result-list:has(.play-row),
.app .result-list:has(.rating-row) {
  gap: 0;
  margin: 0;
}

.app .play-row p,
.app .rating-row p {
  margin: 0.1rem 0 0;
}

.app .phone-fold > details > summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.app .phone-fold > details > summary::-webkit-details-marker {
  display: none;
}

.app .phone-fold > details > summary::marker {
  content: "";
}

.app .phone-fold > details > summary::after {
  content: "Meer";
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.app .phone-fold > details[open] > summary::after {
  content: "Minder";
}

.app .phone-fold > details:not([open]) > summary {
  border-bottom: 0;
}

.app .stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.app .stat-grid > .card {
  margin-bottom: 0;
}

.app .stat-players .h-rest-toggle,
.app .card-body > .h-rest-toggle {
  margin-top: 0.5rem;
}

@media (max-width: 767.98px) {
  .app .stat-players:not(.is-open) .col-extra {
    display: none;
  }
}

@media (min-width: 768px) {
  .app .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .app .stat-grid > .stat-span {
    grid-column: 1 / -1;
  }

  .app .phone-fold > details.fold-mobile > summary::after,
  .app .phone-fold > details.fold-mobile[open] > summary::after {
    content: none;
  }

  .app .phone-fold > details.fold-mobile > summary {
    pointer-events: none;
    cursor: default;
  }

  .app #stat-uitsplitsing > details.fold-mobile > summary {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .app .animated.fadeIn:has(.spelinfo-logboek) {
    display: flex;
    flex-direction: column;
  }

  .app .animated.fadeIn:has(.spelinfo-logboek) > .row:has(> .d-none.d-md-block) {
    display: none;
  }

  .app .spelinfo-algemeen table {
    table-layout: fixed;
  }

  .app .spelinfo-algemeen td:first-child {
    width: 62%;
  }

  .app .spelinfo-algemeen td {
    overflow-wrap: anywhere;
  }

  .app .animated.fadeIn:has(.spelinfo-logboek) > .row:has(.spelinfo-algemeen) {
    order: 1;
  }

  .app .animated.fadeIn:has(.spelinfo-logboek) > .row:has(.spelinfo-bgginfo) {
    order: 2;
  }

  .app .animated.fadeIn:has(.spelinfo-logboek) > .row:has(.spelinfo-speler) {
    order: 3;
  }

  .app .animated.fadeIn:has(.spelinfo-logboek) > .row:has(.spelinfo-waardering) {
    order: 4;
  }

  .app .animated.fadeIn:has(.spelinfo-logboek) > .row:has(.spelinfo-speluitleg) {
    order: 5;
  }

  .app .animated.fadeIn:has(.spelinfo-logboek) > .row:has(.spelinfo-logboek) {
    order: 6;
  }
}

.app .play-when {
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.app .rating-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.app .play-row .rating-head {
  flex-wrap: wrap;
}

.app .rating-meta {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.app .animated.fadeIn:has(.section-jump) {
  padding-bottom: 65vh;
}

.app .section-jump {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 0.75rem;
  padding: 0.4rem 0;
  overflow: visible;
  background: var(--page);
}

.app .jump-link {
  flex: 0 1 auto;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.app .jump-link.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.app .jump-target {
  scroll-margin-top: calc(var(--header-h) + 8.5rem);
}

.app .stat-band {
  margin: 1.35rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.app .jump-target > .stat-band:first-child {
  margin-top: 0.15rem;
}

@media (min-width: 768px) {
  .app .jump-link {
    padding: 0.28rem 0.7rem;
    font-size: 0.85rem;
  }

  .app .jump-target {
    scroll-margin-top: calc(var(--header-h) + 6.75rem);
  }
}

.app .section-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.app .section-filter label {
  display: flex;
  flex: 1 1 8rem;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.app .section-filter .form-control {
  width: 100%;
}

.app .rating-row[hidden],
.app .data-table tr[hidden] {
  display: none !important;
}

.app .result-list .play-row,
.app .result-list .rating-row {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0.65rem 0;
}

.app .form-group.row > .col-4 {
  flex: 0 0 6.5rem;
}

.app .form-group.row > .col-8,
.app .form-group.row > .col-6 {
  flex: 1 1 8rem;
}

@media (min-width: 768px) {
  .app .row > .col-6,
  .app .row > .col-sm-6,
  .app .row > .col-md-6,
  .app .row > .col-lg-6 {
    flex: 1 1 calc(50% - 0.75rem);
    max-width: calc(50% - 0.4rem);
  }

  .app .row > .spellogo {
    flex: 0 1 auto;
    width: auto;
    max-width: min(46%, 200px);
  }

  .app .row > .spelshortdetails {
    flex: 1 1 0;
    max-width: none;
  }

  .app .spelshortdetails {
    font-size: 1rem;
  }

  .app .spelshortdetails .row {
    row-gap: 0.75rem;
    column-gap: 0.75rem;
  }

  .app .row > .col-sm-4,
  .app .row > .form-group.col-sm-4 {
    flex: 1 1 calc(33.33% - 0.75rem);
  }

  .app .row > .col-sm-3,
  .app .row > .form-group.col-sm-3 {
    flex: 1 1 calc(25% - 0.75rem);
  }
}

.app #statistiek-overzicht .row > .col-sm-6 {
  flex: 1 1 calc(50% - 0.75rem);
  max-width: calc(50% - 0.4rem);
}

@media (min-width: 992px) {
  .app .row > .col-lg-3,
  .app #statistiek-overzicht .row > .col-lg-3 {
    flex: 1 1 calc(25% - 0.75rem);
    max-width: calc(25% - 0.6rem);
  }
}

.app .form-group {
  margin-bottom: 0.75rem;
}

.app label {
  display: block;
  margin-bottom: 0.2rem;
}

.app .form-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
}

.app .form-check label {
  display: inline;
  margin: 0;
}

.app .form-check-input:disabled ~ .form-check-label {
  color: var(--muted);
}

.app .form-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0.85rem 0 0;
}

.app .form-check-inline label {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.app input[type="text"],
.app input[type="date"],
.app input[type="number"],
.app input[type="search"],
.app input[type="email"],
.profile-prefs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
}

.app .profile-prefs select {
  width: auto;
  min-width: 8rem;
}

.app select,
.app textarea,
.app .form-control {
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.6rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}

.app input[type="checkbox"],
.app input[type="radio"],
.app input[type="hidden"] {
  width: auto;
  padding: 0;
}

.app .btn,
.app button.btn {
  display: inline-block;
  width: auto;
  padding: 0.45rem 0.85rem;
  font: inherit;
  line-height: 1.3;
  text-decoration: none;
  border-radius: var(--radius-control);
  cursor: pointer;
}

.app .btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--accent-text);
}

.app .btn-secondary,
.app .btn-quiet {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.app .btn-sm {
  padding: 0.35rem 0.7rem;
}

.app .form-actions,
.app .card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.app .owner-filter-actions {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.app .owner-filter-list {
  max-height: 12rem;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.app .owner-filter-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.app .owner-filter-item + .owner-filter-item {
  border-top: 1px solid var(--border);
}

.app .owner-filter-item input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--accent);
}

.app .input-group {
  display: flex;
  align-items: stretch;
}

.app .input-group > .form-control {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: var(--radius-control) 0 0 var(--radius-control);
}

.app .input-group-append,
.app .input-group-prepend {
  display: flex;
  align-items: stretch;
}

.app .input-group-append {
  margin-left: -1px;
}

.app .input-group-text {
  display: flex;
  align-items: center;
  padding: 0 0.7rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  white-space: nowrap;
}

.app .badge {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #ece7e6;
  color: #23282c;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.app .badge-primary,
.app .badge-info {
  background: var(--accent);
  color: var(--accent-text);
}

.app .badge-danger {
  background: var(--danger);
}

.app .badge-success {
  background: var(--success);
}

.app .badge-secondary {
  background: #ece7e6;
}

.app .alert {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-control);
}

.app .alert-success,
.app .alert-primary {
  background: var(--success);
  color: #23282c;
}

.app .alert-warning {
  background: var(--warning);
  color: #23282c;
}

.app .alert-danger {
  background: var(--danger);
  color: #23282c;
}

.app .alert-info {
  background: var(--info);
  color: #23282c;
}

.app .collapse:not(.show) {
  display: none;
}

.app .switch {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  width: 2.75rem;
  height: 1.5rem;
  vertical-align: middle;
}

.app .form-check-inline .switch {
  align-items: stretch;
}

.app .switch-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.app .switch-slider {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #c8ced3;
}

.app .switch-slider::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
}

.app .switch-input:checked + .switch-slider {
  background: var(--accent);
}

.app .switch-input:checked + .switch-slider::after {
  left: 1.35rem;
}

.app .switch-input:focus-visible + .switch-slider {
  outline: 2px solid var(--link, var(--accent));
  outline-offset: 2px;
}

.app .date-poll {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.45rem;
  margin-top: 0.35rem;
}

.app .date-poll label {
  margin: 0;
  cursor: pointer;
}

.app .d-flex {
  display: flex;
}

.app .align-items-center {
  align-items: center;
}

.app .align-items-start {
  align-items: flex-start;
}

.app .justify-content-between {
  justify-content: space-between;
}

.app .flex-wrap {
  flex-wrap: wrap;
}

.app .pb-2.d-flex {
  gap: 0.85rem;
  padding-bottom: 0.65rem;
}

.app .d-flex > div:has(> .bg-light.font-xl) {
  flex: 0 0 auto;
  width: max-content;
}

.app .bg-light.font-xl {
  box-sizing: border-box;
  width: max-content;
  min-width: 3.4rem;
  margin: 0;
  padding: 0.45rem 0.7rem 0.2rem;
  background: var(--date-day);
  color: var(--date-day-text);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.app .bg-light.font-xl + .bg-info {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.15rem 0.25rem 0.2rem;
  background: var(--date-month);
  color: var(--accent-text);
  font-size: 0.8rem;
  line-height: 1.2;
  text-align: center;
}

.app .text-uppercase {
  text-transform: uppercase;
}

.app .font-weight-bold {
  font-weight: 700;
}

.app .small {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.app .text-value,
.app .text-value-sm {
  font-weight: 600;
}

.app .d-none {
  display: none;
}

@media (min-width: 768px) {
  .app .d-md-none {
    display: none;
  }

  .app .d-none.d-md-block {
    display: block;
  }
}

@media (min-width: 992px) {
  .app .d-lg-none {
    display: none;
  }
}

.app .carousel {
  position: relative;
}

.app .carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.app .carousel-item {
  display: none;
}

.app .carousel-item.active {
  display: block;
}

.app .carousel-control-prev,
.app .carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  color: var(--text);
  text-decoration: none;
}

.app .carousel-control-prev {
  left: 0;
}

.app .carousel-control-next {
  right: 0;
}

.app .carousel-control-prev:hover,
.app .carousel-control-next:hover,
.app .carousel-control-prev:focus-visible,
.app .carousel-control-next:focus-visible {
  color: var(--link, var(--accent));
}

.app .carousel-control-prev::before,
.app .carousel-control-next::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.app .carousel-control-prev::before {
  transform: rotate(-135deg);
}

.app .carousel-control-next::before {
  transform: rotate(45deg);
}

.app .carousel-control-prev .icons,
.app .carousel-control-next .icons {
  display: none;
}

.app .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--border);
}

.app .nav-tabs .nav-item {
  margin: 0 0 -1px;
}

.app .nav-tabs .nav-link {
  position: relative;
  display: inline-block;
  padding: 0.45rem 0.8rem;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--radius-control) var(--radius-control) 0 0;
}

.app .nav-tabs .nav-link.active {
  z-index: 1;
  color: var(--link, var(--accent));
  background: var(--surface);
  border-color: var(--border);
  border-bottom: 1px solid var(--surface);
}

.app .tab-content {
  margin-top: -1px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}

.app .tab-content > .tab-pane {
  padding: 1rem;
}

.app .tab-pane {
  display: none;
}

.app .tab-pane.active {
  display: block;
}

.app table {
  width: 100%;
  border-collapse: collapse;
}

.app table th,
.app table td {
  padding: 0.3rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

/* Duplicate plays (plycopy set) stay italic and grey, as in the old logbook. */
.app .logspelinactive {
  font-style: italic;
  color: grey;
}

.app .card-body,
.app .tab-pane {
  overflow-x: auto;
}

.app .card-body tr[hidden],
.app .tab-pane tr[hidden] {
  display: none !important;
}

.app #statistiek-speler .chart-wrapper,
.app #statistiek-6maanden .chart-wrapper,
.app #statistiek-categorie .chart-wrapper,
.app #statistiek-locaties .chart-wrapper {
  position: relative;
  clear: both;
  width: 100%;
}

.app #statistiek-speler .chart-wrapper,
.app #statistiek-6maanden .chart-wrapper {
  height: 280px;
}

.app #statistiek-categorie .chart-wrapper,
.app #statistiek-locaties .chart-wrapper {
  height: 240px;
}

@media (min-width: 768px) {
  .app #statistiek-speler .chart-wrapper,
  .app #statistiek-6maanden .chart-wrapper {
    height: clamp(320px, 42vh, 480px);
  }

  .app #statistiek-categorie .chart-wrapper,
  .app #statistiek-locaties .chart-wrapper {
    height: 280px;
  }
}

.app .spelinfo-speler .chart-wrapper,
.app .spelerinfo-maanduren .chart-wrapper,
.app .spelerinfo-winstpercentage .chart-wrapper,
.app .spelerinfo-tegenstander .chart-wrapper {
  position: relative;
  clear: both;
  width: 100%;
  height: clamp(320px, 52vw, 500px);
}

.app .h-summary {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.app .h-index tr.h-count > td {
  background: color-mix(in srgb, var(--accent) 32%, var(--surface));
}

.app .h-index tr.h-close > td {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.app .h-rest-toggle {
  margin-top: 0.5rem;
  padding: 0.35rem 0.7rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}

@media (max-width: 767.98px) {
  .app .h-index tr.h-rest {
    display: none;
  }

  .app .h-index-list.is-open tr.h-rest {
    display: table-row;
  }
}

@media (min-width: 768px) {
  .app .h-rest-toggle {
    display: none;
  }
}

@media (min-width: 768px) {
  .app table tbody tr:nth-child(even) {
    background: var(--stripe);
  }
}

.app .text-muted {
  color: var(--muted);
}

.app .clearfix {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app .float-right {
  margin-left: auto;
}

.settings-backdrop {
  position: fixed;
  z-index: 40;
  top: var(--header-h);
  right: 0;
  left: 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, #121212 45%, transparent);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.settings-drawer {
  position: fixed;
  z-index: 41;
  top: var(--header-h);
  right: 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  width: min(22rem, calc(100% - 2.75rem));
  padding: 0.85rem 1rem 1.25rem;
  overflow: auto;
  background: var(--surface);
  color: var(--text);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 32px color-mix(in srgb, #121212 18%, transparent);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.22s ease, visibility 0.22s ease;
}

.app.is-settings-open .settings-backdrop {
  opacity: 1;
  visibility: visible;
}

.app.is-settings-open .settings-drawer {
  transform: none;
  visibility: visible;
}

.app.is-settings-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .settings-backdrop,
  .settings-drawer {
    bottom: 0;
  }

  .settings-drawer {
    width: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-backdrop,
  .settings-drawer {
    transition: none;
  }
}

.settings-drawer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.settings-drawer-bar h2 {
  margin: 0;
  font-size: 1.05rem;
}

.settings-option + .settings-option {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.settings-row label {
  font-size: 0.9rem;
  font-weight: 700;
}

.settings-option p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.app .text-center,
.app center {
  text-align: center;
}

.login-page {
  min-height: 100vh;
}

.login-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.25rem 1rem;
}

.login-card {
  width: min(100%, 28rem);
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.login-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  --mark-hole: var(--surface);
}

.login-mark .brand-logo {
  height: 3.5rem;
}

.login-promo {
  display: none;
}

.login-code {
  display: flex;
  gap: 0.5rem;
}

.login-code .form-control {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .login-card {
    border-radius: var(--radius) 0 0 var(--radius);
  }

  .login-promo {
    display: flex;
    align-items: center;
    width: 16rem;
    min-height: 16rem;
    padding: 1.5rem;
    background: var(--accent);
    color: var(--accent-text);
    border-radius: 0 var(--radius) var(--radius) 0;
  }

  .login-promo h2,
  .login-promo p {
    color: inherit;
  }
}

.app .text-right {
  text-align: right;
}

.app .data-table,
.result-list {
  margin: 0.75rem 0 0;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app .data-table {
  display: none;
}

.result {
  padding: 0.75rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.result-facts,
.result-extra {
  color: var(--text);
}

.result-facts {
  margin: 0.15rem 0 0.35rem;
}

.result summary {
  cursor: pointer;
  color: var(--muted);
}

.result-label {
  display: inline-block;
  min-width: 8.5rem;
  color: var(--muted);
}

.result-extra p {
  margin: 0.35rem 0 0;
}

@media (min-width: 768px) {
  .result-list {
    display: none;
  }

  .app .data-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
  }

  .app .data-table th,
  .app .data-table td {
    padding: 0.3rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
  }

  .app .data-table tbody tr:nth-child(even) {
    background: var(--stripe);
  }
}

.app #myBtn {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--tabbar-h) + 1rem + env(safe-area-inset-bottom));
  z-index: 20;
  padding: 0.4rem 0.7rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}

@media (min-width: 768px) {
  .app #myBtn {
    bottom: 1.5rem;
  }
}

.ui-helper-hidden-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ui-autocomplete {
  z-index: 50;
  max-height: 16rem;
  margin: 0;
  padding: 0.25rem 0;
  overflow: auto;
  list-style: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}

.ui-menu-item-wrapper {
  display: block;
  padding: 0.4rem 0.7rem;
}

.ui-state-active,
.ui-menu-item-wrapper.ui-state-active {
  background: var(--accent);
  color: var(--accent-text);
}

.dice {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.face {
  display: flex;
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 0.7rem;
  padding: 0.5rem;
  border-radius: 8px;
  opacity: 0;
}

.face .dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
}

.face:nth-child(1) {
  border: 2px solid #f44336;
  animation: waves 5s linear infinite;
}

.face:nth-child(1) .dot {
  background: #f44336;
}

.face:nth-child(2) {
  border: 2px solid #e91e63;
  animation: waves 5s 0.2s linear infinite;
}

.face:nth-child(2) .dot {
  background: #e91e63;
}

.first-face,
.third-face .dot:nth-child(2),
.fifth-face .column:nth-child(2) {
  justify-content: center;
  align-items: center;
}

.second-face,
.third-face,
.fourth-face,
.fifth-face,
.sixth-face {
  justify-content: space-between;
}

.second-face .dot:last-of-type,
.third-face .dot:last-of-type {
  align-self: flex-end;
}

.fourth-face .column,
.fifth-face .column,
.sixth-face .column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#laadtekst {
  padding-top: 1rem;
  text-align: center;
}

.home-story {
  max-width: 68rem;
}

.home-story {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-story .card {
  margin: 0;
}

.home-story .card-header h2,
.home-story .card-header h3 {
  margin: 0;
  font-size: 1rem;
}

.home-group {
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
}

.home-story h1,
.home-pitch h1 {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.8rem;
  line-height: 1.15;
}

.home-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-lead {
  max-width: 40rem;
  color: var(--muted);
}

.home-section {
  margin-top: 0;
}

.home-section h2,
.home-period h3,
.home-block h3 {
  margin: 0;
  font-size: 1.15rem;
}

.home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}

.home-muted,
.home-empty {
  color: var(--muted);
}

.home-plays,
.home-picks,
.home-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-picks {
  grid-template-columns: 1fr;
}

.home-picks .home-cover img {
  width: auto;
  max-width: 9.5rem;
  max-height: 8rem;
  height: auto;
  aspect-ratio: auto;
  margin-inline: 0;
}

.home-pick-label {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-name {
  display: block;
  margin-top: 0.15rem;
  color: inherit;
}

.home-cover {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-cover img,
.home-examples img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 8.5rem;
  margin-inline: auto;
  border-radius: 12px;
  background: transparent;
}

.home-cover-fallback {
  display: flex;
  align-items: flex-end;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0.6rem;
  border-radius: 12px;
  background: var(--stripe);
  font-weight: 700;
}

.home-count {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.home-plays p,
.home-picks p,
.home-adds p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
}

.home-winners a,
.home-losers a {
  color: inherit;
}

.home-tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--stripe);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.home-achievements,
.home-adds,
.home-tiles,
.home-categories {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-achievements li {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.home-achievements li:first-child {
  margin-top: 0;
}

.home-adds {
  display: grid;
  gap: 0.85rem;
}

.home-adds li {
  display: flex;
  gap: 0.75rem;
  margin-top: 0;
  align-items: flex-start;
}

.home-achievements img,
.home-cover-small img,
.home-cover-small .home-cover-fallback {
  width: 4.5rem;
  height: 4.5rem;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 10px;
}

.home-periods {
  display: grid;
  gap: 1rem;
}

.home-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.home-tile {
  padding: 0.85rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.home-tile strong {
  display: block;
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1.1;
}

.home-tile-label {
  display: block;
  margin-top: 0.2rem;
  color: var(--text);
  font-size: 0.9rem;
}

.home-tile small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.home-split {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem 0.45rem;
}

.home-poster-grid {
  display: grid;
  gap: 1rem;
}

.home-story .home-poster {
  margin-top: 2rem;
}

.home-poster-lead {
  margin: 0 0 0.9rem;
}

.home-chart-block,
.home-categories-block {
  margin-top: 1.75rem;
}

.home-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.6rem;
}

.home-poster h3 {
  margin: 0;
  font-size: 0.95rem;
}

.home-categories-block p {
  margin: 0.2rem 0 0.55rem;
}

.home-legend {
  display: flex;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.8rem;
}

.home-swatch {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.3rem;
  border-radius: 2px;
  vertical-align: -0.05rem;
}

.home-swatch-groep {
  background: var(--accent);
}

.home-swatch-duo {
  background: var(--chart-2);
}

.home-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  height: 7.5rem;
  margin: 0;
}

.home-bar {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
}

.home-bar-stack {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}

.home-bar-groep,
.home-bar-duo {
  display: block;
  width: 100%;
}

.home-bar-groep {
  background: var(--accent);
}

.home-bar-duo {
  background: var(--chart-2);
}

.home-bar small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.65rem;
  text-align: center;
}

.home-categories li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}

.home-event {
  margin-top: 0;
}

.home-wrapped {
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.home-wrapped p {
  max-width: 36rem;
  margin: 0 0 0.45rem;
  color: var(--muted);
}

.home-features {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.home-features li {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.home-features h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.home-features p,
.home-examples p {
  margin: 0;
}

.home-examples {
  margin-top: 1.25rem;
}

.home-examples p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.app.is-pitch .content {
  padding: 0;
}

.home-pitch {
  display: grid;
  min-height: calc(100dvh - var(--header-h));
  max-width: none;
}

.home-splash-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.4rem 1.15rem 1.75rem;
}

.home-splash-copy .home-lead {
  margin-bottom: 0.85rem;
}

.home-splash-points {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-splash-points li {
  position: relative;
  margin-top: 0.4rem;
  padding-left: 0.95rem;
}

.home-splash-points li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.app .home-login {
  align-self: stretch;
  padding: 0.95rem 1.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  border-radius: 999px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 42%, transparent);
}

.home-splash-visual {
  position: relative;
  height: 32vh;
  min-height: 11rem;
  overflow: hidden;
}

.home-splash-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .home-pitch {
    grid-template-columns: minmax(22rem, 34rem) minmax(0, 1fr);
  }

  .home-splash-copy {
    padding: 2.5rem 2.75rem;
  }

  .app .home-login {
    align-self: flex-start;
    min-width: 14rem;
  }

  .home-splash-visual {
    height: auto;
    min-height: calc(100dvh - var(--header-h));
  }
}

.home-year {
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
}

.home-year .home-cover img {
  max-height: 9rem;
  margin-inline: 0;
}

.home-poster .home-tiles {
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .home-recent {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .home-examples {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-picks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-picks .home-cover img {
    max-width: 100%;
    max-height: 10.5rem;
  }

  .home-adds {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.25rem;
  }

  .home-period .home-tiles,
  .home-poster .home-tiles {
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  }

  .home-periods,
  .home-features {
    grid-template-columns: 1fr 1fr;
  }
}

@keyframes waves {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  4% {
    transform: translateY(-25px);
    opacity: 1;
  }

  8% {
    transform: translateY(0);
    opacity: 1;
  }

  70% {
    opacity: 0;
  }
}
