/* Herní tahák — tactile tabletop identity shared by every section. */
:root {
  --felt-950: #031416;
  --felt-900: #062125;
  --felt-800: #0a3032;
  --felt-700: #164341;
  --felt-line: #55766d;
  --paper: #f1e1bd;
  --paper-light: #fff3d5;
  --paper-muted: #d8c69f;
  --paper-ink: #18302d;
  --wood: #5b351f;
  --wood-deep: #2b160e;
  --wood-light: #8a5833;
  --brass: #e0b45e;
  --brass-light: #ffe19b;
  --burgundy: #7d3332;
  --sage: #66734c;
  --board-text: #f8f0de;
  --board-muted: #b8cbc3;
  --board-danger: #7b3536;
  --table-shadow: 0 18px 42px #010b0d80;
  --card-shadow: 0 11px 22px #010b0d66, 0 3px 0 #2a180f;
  color-scheme: dark;
}

html {
  min-width: 0;
  background: var(--felt-950);
}

body {
  color: var(--board-text);
  background-color: var(--felt-950);
  background-image:
    radial-gradient(ellipse at 15% 6%, #1d4a443d 0, transparent 34%),
    radial-gradient(ellipse at 88% 90%, #76512620 0, transparent 35%),
    repeating-radial-gradient(circle at 30% 25%, #ffffff08 0 1px, transparent 1px 4px),
    linear-gradient(145deg, #04181b, #08282b 54%, #04171a);
  background-size: auto, auto, 9px 9px, auto;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
select,
textarea {
  transition: border-color .18s ease, background-color .18s ease, color .18s ease,
    box-shadow .18s ease, transform .18s ease;
}

button:not(:disabled),
summary {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--brass-light) !important;
  outline-offset: 3px !important;
}

button:disabled,
[aria-disabled="true"] {
  opacity: .52;
  cursor: not-allowed !important;
}

/* Header: one recognisable table scene instead of a generic app bar. */
.site-header,
.score-page > header {
  min-height: 104px;
  height: auto;
  position: sticky;
  top: 0;
  z-index: 40;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px clamp(16px, 3vw, 34px) 18px;
  flex-wrap: wrap;
  overflow: hidden;
  background-color: #061b1e;
  background-image:
    linear-gradient(90deg, #041719f0 0, #072225d5 43%, #061a1dcc 72%, #07191ee8 100%),
    url("/assets/brand/tabletop-header.webp");
  background-position: center, center 48%;
  background-size: cover, cover;
  border: 0;
  border-bottom: 7px solid var(--wood-deep);
  box-shadow: 0 8px 0 #8b5a2d55, 0 18px 42px #010b0dcf;
}

.site-header::after,
.score-page > header::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 -1px;
  height: 7px;
  pointer-events: none;
  background:
    repeating-linear-gradient(92deg, #b07a42 0 18px, #714321 19px 22px, #935d2e 23px 43px),
    var(--wood);
  box-shadow: inset 0 1px #e7b46a7d, inset 0 -2px #160c08b8;
}

.site-header > *,
.score-page > header > * {
  position: relative;
  z-index: 1;
}

.site-header .brand,
.score-page > header .brand {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 17px 9px 10px;
  border: 1px solid #f0c77b8f;
  border-radius: 8px 16px 8px 16px;
  color: var(--paper-light);
  background:
    linear-gradient(105deg, #704527f5, #3a2115f4 54%, #25140df4),
    repeating-linear-gradient(3deg, transparent 0 7px, #fff1cc0c 8px 9px);
  box-shadow: inset 0 1px #ffe9b660, inset 0 -3px #160b0790, 0 9px 20px #01090b99;
  text-decoration: none;
  text-shadow: 0 2px 2px #120907;
}

.site-header .brandmark,
.score-page > header .brandmark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  border: 1px solid #7c5a2d;
  border-radius: 9px;
  color: #4b2a16;
  background: linear-gradient(145deg, #fff0cb, #d7b775);
  box-shadow: inset 0 1px #fffbea, inset 0 -3px #9f773b, 0 4px 8px #0007;
  transform: rotate(-3deg);
}

.site-header .brandmark .icon,
.score-page > header .brandmark .icon {
  width: 29px;
  height: 29px;
  filter: none;
}

.site-header .top-actions,
.score-page > header .top-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-header .nav-button,
.score-page > header .nav-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid #d9bf8570;
  border-radius: 8px 8px 13px 8px;
  color: #f2ead8;
  background:
    linear-gradient(145deg, #163d3df2, #0b282cf2),
    repeating-linear-gradient(45deg, transparent 0 7px, #ffffff08 8px 9px);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px #fff7df1c, 0 5px 12px #010b0d66;
}

.site-header .nav-button:hover,
.site-header .nav-button.active,
.score-page > header .nav-button:hover,
.score-page > header .nav-button.active {
  color: #1d2c28;
  border-color: #ffe0a0;
  background: linear-gradient(145deg, #ffe5a2, #d4a650);
  box-shadow: inset 0 1px #fffceb, inset 0 -3px #a77a32, 0 6px 15px #010b0d8c;
  transform: translateY(-1px) rotate(-.25deg);
  text-shadow: none;
}

.notifications-bell {
  position: relative;
  gap: 7px;
  padding-inline: 11px !important;
}
.notifications-bell svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notification-badge {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border: 1px solid #fff0bd;
  border-radius: 999px;
  color: #fff8e5;
  background: #9b3735;
  box-shadow: 0 2px 5px #0009;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.site-header .source {
  padding: 7px 10px;
  border-radius: 999px;
  color: #f5dfb1;
  background: #071b1dd6;
  box-shadow: inset 0 0 0 1px #d1aa5c55;
}

/* Common tactile controls and materials. */
.club-shell input,
.club-shell select,
.club-shell textarea,
.journal-shell input,
.journal-shell select,
.journal-shell textarea,
.nights-shell input,
.nights-shell select,
.nights-shell textarea,
.editor-shell input,
.editor-shell select,
.editor-shell textarea,
.score-page input,
.score-page select,
.score-page textarea,
.dropdown-control {
  border-color: #769087;
  background: #08252a;
  color: var(--board-text);
  box-shadow: inset 0 3px 8px #0006, 0 1px #fff1c718;
}

.club-shell input:hover,
.club-shell select:hover,
.club-shell textarea:hover,
.journal-shell input:hover,
.journal-shell select:hover,
.journal-shell textarea:hover,
.nights-shell input:hover,
.nights-shell select:hover,
.nights-shell textarea:hover,
.editor-shell input:hover,
.editor-shell select:hover,
.editor-shell textarea:hover,
.score-page input:hover,
.score-page select:hover,
.score-page textarea:hover {
  border-color: var(--brass);
}

.primary,
.score-page .score-button.primary,
.club-shell .primary,
.nights-shell .primary {
  border-color: #ffe2a0 !important;
  color: #1d2b27 !important;
  background: linear-gradient(145deg, #ffe39a, #d7a84f) !important;
  box-shadow: inset 0 1px #fffced, inset 0 -3px #a67831, 0 7px 14px #010b0d66 !important;
  font-weight: 800;
}

.danger {
  border-color: #d28d84 !important;
  background: linear-gradient(145deg, #81413e, #552827) !important;
}

dialog { color: var(--board-text); }
dialog::backdrop { background: #01090bd9; backdrop-filter: blur(3px); }
table { font-variant-numeric: tabular-nums; }

/* Collection: wooden filter tray + a true tabletop shelf. */
.collection-app {
  grid-template-columns: 282px minmax(0, 1fr);
  max-width: 1780px;
  min-height: calc(100vh - 104px);
  background:
    radial-gradient(ellipse at 74% 0, #1b50452b, transparent 42%),
    repeating-radial-gradient(circle at 28% 25%, #ffffff07 0 1px, transparent 1px 5px),
    #062326;
}

.game-night-prompt {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 18px clamp(18px, 3vw, 42px) 0;
  padding: 18px 20px;
  border: 2px solid #e2bd70;
  border-radius: 10px 19px 10px 19px;
  color: var(--paper-light);
  background:
    repeating-linear-gradient(28deg, #ffffff08 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #194944, #0a2c2f);
  box-shadow: var(--card-shadow), inset 0 1px #fff2bf29;
}
.game-night-prompt-token {
  width: 30px;
  height: 30px;
  border: 3px solid #fff0c5;
  border-radius: 50%;
  background: linear-gradient(145deg, #e6bd65, #aa7932);
  box-shadow: inset 0 0 0 4px #7b4d24, 0 4px 8px #0008;
}
.game-night-prompt h2 { margin: 3px 0 4px; color: var(--brass-light); font: 700 24px/1.15 Georgia, serif; }
.game-night-prompt p { margin: 0; color: #dce9e2; }
.game-night-prompt > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid #fff0bd;
  border-radius: 999px;
  color: #182b27;
  background: linear-gradient(145deg, #ffe39a, #d3a348);
  box-shadow: inset 0 1px #fffced, inset 0 -3px #a67831, 0 6px 12px #0006;
  font-weight: 800;
  text-decoration: none;
}

.collection-controls {
  top: 104px;
  max-height: calc(100dvh - 104px);
  padding: 24px 18px 21px;
  border: 0;
  border-right: 9px solid var(--wood-deep);
  background: linear-gradient(90deg, #2d190fff, #57331ff4 52%, #311b11fa);
  box-shadow: inset -2px 0 #a66c3796, 14px 0 28px #010b0d73;
}

.collection-controls::before {
  content: "";
  position: absolute;
  inset: 12px 10px;
  z-index: -1;
  border: 1px solid #e4bd7770;
  border-radius: 14px;
  background:
    repeating-radial-gradient(circle at 40% 25%, #ffffff08 0 1px, transparent 1px 5px),
    linear-gradient(155deg, #0a3434, #062225);
  box-shadow: inset 0 0 24px #0007;
}

.collection-controls .shelfhead,
.collection-controls .search-field,
.collection-controls .filter-toggle,
.collection-controls .filter-panel,
.collection-controls .visit-summary,
.collection-controls .import-note { position: relative; z-index: 1; }

.visit-summary {
  margin-top: 13px;
  padding: 12px;
  border: 1px solid #536a65;
  border-radius: 10px;
  color: #eef3ed;
  background: #0b2326d9;
  box-shadow: inset 0 1px #fff4d10a;
}
.visit-summary-heading { display: grid; gap: 2px; }
.visit-summary-heading strong { color: var(--brass-light); font-size: 13px; }
.visit-summary-heading span { color: #b8c9c3; font-size: 11px; }
.visit-summary dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 10px 0 0;
}
.visit-summary dl div {
  min-width: 0;
  padding: 7px 4px;
  border-radius: 7px;
  background: #173238;
  text-align: center;
}
.visit-summary dt { color: #b8c9c3; font-size: 10px; }
.visit-summary dd { margin: 2px 0 0; color: #fff5df; font-weight: 800; }
.visit-summary p { margin: 8px 1px 0; color: #b8c9c3; font-size: 11px; }
.admin-contact-notice { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 22px 0; padding: 12px 16px; border: 1px solid #d8b46688; border-radius: 10px; color: #f6e3b6; background: #173034; text-decoration: none; }
.admin-contact-notice span { color: #d9c58f; }
.admin-contact-notice:hover { border-color: #f0ce87; background: #203a36; }
.collection-controls .shelfhead h1 { color: var(--paper-light); font-size: 29px; text-shadow: 0 2px 2px #0008; }
.collection-controls .eyebrow { color: var(--brass-light); }
.collection-controls #search,
.collection-controls .filter-toggle {
  border-color: #d9b66e7a;
  background: #051c1fd9;
  box-shadow: inset 0 3px 8px #0007, 0 2px #cda45a1c;
}
.filter-count { box-shadow: inset 0 1px #fff4c2, inset 0 -2px #9c7336; }
.filter-panel {
  border: 1px solid #e1bd7661;
  background: #291811c7;
  box-shadow: inset 0 0 0 4px #0b2e2d, 0 9px 20px #0006;
}
.collection-results { padding: 24px clamp(18px, 3vw, 42px) 56px; }

.results-heading {
  min-height: 142px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
  padding: 22px 25px;
  overflow: hidden;
  border: 1px solid #d8b66b80;
  border-radius: 16px 28px 16px 28px;
  background-color: #092b2d;
  background-image:
    linear-gradient(90deg, #052024ec 0, #062326b0 48%, #04181b9e 100%),
    url("/assets/brand/collection-table.webp");
  background-position: center, center;
  background-size: cover, cover;
  box-shadow: var(--table-shadow), inset 0 1px #fff0c442, inset 0 -5px #2a170f;
}
.results-heading::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8px;
  border: 1px solid #f1cc7e3d;
  border-radius: 11px 22px 11px 22px;
  pointer-events: none;
}
.results-heading h2 {
  max-width: 620px;
  margin: 4px 0 0;
  color: var(--paper-light);
  font-size: clamp(31px, 3.4vw, 48px);
  text-shadow: 0 3px 7px #000b;
}
.results-heading .eyebrow,
.results-heading #results { color: #ffe0a0; text-shadow: 0 2px 4px #000; }
.collection-results #games { gap: 16px; }
.collection-view-toggle { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid #d8b66b80; border-radius: 10px; background: #061d20d9; }
.collection-view-toggle button { min-height: 42px; padding: 7px 11px; border: 1px solid transparent; border-radius: 7px; color: #f4e4bf; background: transparent; font: inherit; cursor: pointer; }
.collection-view-toggle button[aria-pressed="true"] { color: #172a25; background: #e7c47d; border-color: #f2d798; font-weight: 750; }
.collection-results #games.is-list { grid-template-columns: minmax(0, 1fr); gap: 3px; }
.collection-results #games.is-list .game { min-height: 0; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 0; padding: 4px 8px; border-radius: 7px; box-shadow: none; }
.collection-results #games.is-list .game:hover { transform: none; box-shadow: none; }
.collection-results #games.is-list .cover,
.collection-results #games.is-list .cover-small { display: none !important; }
.collection-results #games.is-list .game-copy { display: flex; flex-flow: row wrap; align-items: baseline; gap: 2px 9px; min-width: 0; line-height: 1.25; }
.collection-results #games.is-list .game-labels { display: contents; }
.collection-results #games.is-list .game strong { order: -1; display: inline; max-width: 100%; font: 600 14px/1.2 Georgia,"Times New Roman",serif; overflow-wrap: anywhere; }
.collection-results #games.is-list .game-labels small { font-size: 11px; line-height: 1.2; }
.collection-results #games.is-list .extension-badge { padding: 1px 5px; }
.collection-results .list-type { display: none; }
.collection-results #games.is-list .list-type { display: inline; order: 2; color: #b4c4be; font-size: 11px; }
.collection-results #games.is-list .list-meta { order: 3; gap: 2px 9px; font-size: 11px; }
.collection-results #games.is-list .open-game { display: none; }
.game-id { display: inline-block; color: #f2d797; opacity: .78; font-size: 12px; letter-spacing: .03em; }
.print-game-link { display: inline-flex; min-height: 40px; align-items: center; margin: 8px 10px 8px 0; padding: 6px 10px; border: 1px solid #647777; border-radius: 8px; color: #e6eeea; background: #0d2224; text-decoration: none; font-size: 14px; font-weight: 600; }
.print-game-link:hover, .print-game-link:focus-visible { color: #fff; border-color: #a9c0b8; background: #173335; text-decoration: none; }
@media (max-width: 700px) { .print-game-link { min-height: 44px; } }
.edit-game-link { display: inline-flex; min-height: 40px; align-items: center; margin: 8px 10px 8px 0; padding: 6px 10px; border: 1px solid #c6a45c6b; border-radius: 8px; color: #f2d797; background: #102a29; text-decoration: none; font-size: 14px; }

.collection-results .game {
  min-height: 132px;
  position: relative;
  isolation: isolate;
  padding: 12px;
  overflow: hidden;
  border: 1px solid #d9c08b78;
  border-radius: 10px 18px 10px 18px;
  color: #f7f0df;
  background:
    repeating-linear-gradient(25deg, #ffffff05 0 1px, transparent 1px 7px),
    linear-gradient(138deg, #1e4a46, #0e3234 62%, #092427);
  box-shadow: var(--card-shadow), inset 0 1px #fff5d033;
}
.collection-results .game::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6px;
  border: 1px solid #efcf8e24;
  border-radius: 7px 14px 7px 14px;
  pointer-events: none;
}
.collection-results .game:nth-child(3n + 2) {
  background:
    repeating-linear-gradient(-28deg, #ffffff05 0 1px, transparent 1px 7px),
    linear-gradient(138deg, #24443e, #123338 62%, #0b2528);
}
.collection-results .game.is-expansion {
  border-color: #d5a95e9c;
  background:
    repeating-linear-gradient(25deg, #ffffff05 0 1px, transparent 1px 7px),
    linear-gradient(138deg, #4b3d28, #203a35 58%, #10282a);
}
.collection-results .game:hover {
  border-color: var(--brass-light);
  transform: translateY(-3px) rotate(-.18deg);
  box-shadow: 0 17px 30px #010b0d91, 0 4px 0 #3a2113, inset 0 1px #fff5d052;
}
.collection-results .cover-small {
  border: 2px solid #f5dfad8c;
  border-radius: 5px;
  box-shadow: 4px 6px 10px #0008, -1px -1px #fff2c430;
}
.collection-results .game strong { color: var(--paper-light); font-size: 17px; }
.open-game {
  border: 1px solid #e0ba6e66;
  color: #ffe0a0;
  background: #061e20c7;
  box-shadow: inset 0 1px #fff7da18;
}

/* Game detail: a rules folder made of visibly different paper cards. */
.collection-detail {
  background:
    repeating-radial-gradient(circle at 35% 20%, #ffffff07 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #062124, #0b3332);
}
.collection-back.mobile-back {
  border-color: #e0bd777d;
  background: linear-gradient(145deg, #50311f, #29180f);
  color: var(--paper-light);
  box-shadow: inset 0 1px #ffe2a34a, 0 7px 13px #0007;
}
.collection-detail .game-hero {
  min-height: 320px;
  border: 8px solid var(--wood-deep);
  border-radius: 17px;
  background-color: #08282a;
  background-image:
    linear-gradient(90deg, #04181de8 0, #062024bc 48%, #05191c8c),
    url("/assets/brand/collection-table.webp");
  background-position: center, center;
  background-size: cover, cover;
  box-shadow: 0 0 0 1px #c58c4f, var(--table-shadow), inset 0 1px #fff0c43d;
}
.collection-detail .cover-large {
  border: 3px solid #f7dfad9c;
  box-shadow: 10px 16px 25px #000a, -2px -2px #fff2c43d;
  transform: rotate(-1.5deg);
}
.collection-detail .sections {
  gap: 10px;
  padding: 8px;
  border: 0;
  background: linear-gradient(90deg, #3b2114, #684128, #3a2115);
  box-shadow: inset 0 1px #dfa56b5c, inset 0 -3px #1e100b, 0 10px 20px #0006;
}
.collection-detail .sections a {
  min-height: 52px;
  border: 1px solid #6b5937;
  border-radius: 6px 13px 6px 13px;
  color: var(--paper-ink);
  background:
    repeating-linear-gradient(12deg, #00000004 0 1px, transparent 1px 6px),
    linear-gradient(145deg, var(--paper-light), #d7c18e);
  box-shadow: inset 0 1px #fffef4, inset 0 -3px #ae9360;
  font-weight: 800;
}
.collection-detail .sections a .icon { color: var(--burgundy); }
.collection-detail .sections a:hover { color: #fff7e4; background: linear-gradient(145deg, #8a4438, #5f2d2c); }
.collection-detail .guide-grid { gap: 22px; }

.collection-detail .panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #9d8558;
  border-radius: 7px 17px 7px 17px;
  color: #20332f;
  background:
    repeating-linear-gradient(8deg, #5a432b08 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #fff1d0, #dfc997);
  box-shadow: 0 16px 29px #010b0d70, 0 4px 0 #4b2a18, inset 0 1px #fffefa;
}
.collection-detail .panel::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #755b352c;
  border-radius: 4px 13px 4px 13px;
  pointer-events: none;
}
.collection-detail #turn {
  background:
    repeating-linear-gradient(-8deg, #5a432b08 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #f1ddb2, #cfb77f);
}
.collection-detail #remember {
  border-color: #a75b50;
  background:
    repeating-linear-gradient(8deg, #5a2d270a 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #f2d6b9, #dcae8e);
}
.collection-detail #end {
  border-color: #73805e;
  background:
    repeating-linear-gradient(-8deg, #3c4a2d0a 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #e9e2ba, #c5c68f);
}
.collection-detail .panel h3,
.collection-detail .panel h4 { position: relative; z-index: 1; color: #5d3028; text-shadow: none; }
.collection-detail #end h3 { color: #3f5133; }
.collection-detail .panel h3 > .icon,
.collection-detail .panel .steps li::before { color: #6e382f; border-color: #6e382f; }
.collection-detail .panel p,
.collection-detail .panel li,
.collection-detail .panel label,
.collection-detail .checkrow,
.collection-detail .setup-options,
.collection-detail .supplied-content { color: #20332f; }
.collection-detail .checkrow { border-bottom-color: #5f57322e; }
.collection-detail .checkrow:has(input:checked) span { color: #66716a; }
.collection-detail .reset,
.collection-detail .references a { color: #713a30; }
.collection-detail .progress { background: #8f7c5748; }
.collection-detail #progress-label,
.collection-detail .references p { color: #53625d; }
.collection-detail .note-banner { border-left-color: #7a3731; color: #4a2b25; background: #8d47301a; }
.collection-detail .notes {
  color: var(--board-text);
  border: 7px solid var(--wood-deep);
  background:
    radial-gradient(circle at 85% 10%, #80572e2b, transparent 28%),
    linear-gradient(145deg, #123c3b, #08262a);
  box-shadow: 0 0 0 1px #b47a43, var(--table-shadow);
}
.collection-detail .notes::after { display: none; }
.collection-detail .notes h3,
.collection-detail .notes p,
.collection-detail .notes label { color: var(--paper-light); }

/* Score counter: visible wooden scoring track and player boards. */
.score-page .score-main { max-width: 1220px; padding-top: 28px; }
.score-page .score-heading {
  min-height: 232px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px min(34vw, 410px) 30px 34px;
  overflow: hidden;
  border: 8px solid var(--wood-deep);
  border-radius: 18px;
  background-color: #082427;
  background-image:
    linear-gradient(90deg, #062326f4 0, #062326e3 48%, #061a1da6 100%),
    url("/assets/brand/score-track.webp");
  background-position: center, right 4% center;
  background-size: cover, auto 112%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px #b27a42, var(--table-shadow), inset 0 1px #fff0c42e;
}
.score-page .score-heading::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8px;
  border: 1px solid #f0c87530;
  border-radius: 10px;
  pointer-events: none;
}
.score-page .score-heading h1 { color: var(--paper-light); font-size: clamp(42px, 5vw, 64px); text-shadow: 0 4px 9px #000b; }
.score-page .score-heading .score-note { color: #ecdfc4; }
.score-page .panel {
  border: 1px solid #a98b55;
  border-radius: 8px 18px 8px 18px;
  color: var(--paper-ink);
  background:
    repeating-linear-gradient(8deg, #5a432b08 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #f3e4c4, #d6c08e);
  box-shadow: 0 15px 28px #010b0d70, 0 4px 0 #3a2113, inset 0 1px #fffefa;
}
.score-page .panel::before { display: none; }
.score-page .panel h2,
.score-page .panel label,
.score-page .panel p,
.score-page .panel .score-note,
.score-page .panel summary { color: var(--paper-ink); }
.score-page .score-player-card {
  position: relative;
  overflow: hidden;
  border: 2px solid #d5bd82;
  border-radius: 11px 19px 11px 19px;
  color: var(--board-text);
  background:
    repeating-linear-gradient(28deg, #ffffff06 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #174844, #092b2f);
  box-shadow: 0 9px 18px #0007, 0 3px 0 #492a18, inset 0 1px #fff2c52b;
}
.score-page .score-player-card:nth-child(4n + 2) { background: linear-gradient(145deg, #6a3735, #3d2627); }
.score-page .score-player-card:nth-child(4n + 3) { background: linear-gradient(145deg, #59603d, #303927); }
.score-page .score-player-card:nth-child(4n + 4) { background: linear-gradient(145deg, #4e456b, #2c2940); }
.score-page .score-player-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #f6d88e2c;
  border-radius: 7px 14px 7px 14px;
  pointer-events: none;
}
.score-page .score-player-card h3,
.score-page .score-player-card span,
.score-page .score-player-card strong,
.score-page .score-player-card label { color: var(--paper-light); }
.score-page .score-toolbar {
  padding: 12px 14px;
  border: 5px solid var(--wood-deep);
  border-radius: 12px;
  background: linear-gradient(90deg, #4b2b1a, #744628, #3d2216);
  box-shadow: 0 0 0 1px #aa6d3b, 0 9px 18px #0006;
}
.score-page .score-toolbar p { color: var(--paper-light); }
.score-page .score-table-wrap {
  border: 5px solid var(--wood-deep);
  background: #08272a;
  box-shadow: 0 0 0 1px #a66d3c, inset 0 4px 12px #0008;
}

/* Journal and statistics: a club ledger on the table. */
.journal-shell {
  background:
    radial-gradient(ellipse at 85% 12%, #5f44232e, transparent 35%),
    repeating-radial-gradient(circle at 30% 25%, #ffffff07 0 1px, transparent 1px 5px),
    #062326;
}
.journal-main { gap: 22px; padding-top: 22px; }
.journal-banner {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 220px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  overflow: hidden;
  border: 7px solid var(--wood-deep);
  border-radius: 15px;
  background-color: #08262a;
  background-image:
    linear-gradient(90deg, #062225f2 0%, #062225d6 34%, #06222572 62%, #061b1e24 100%),
    url("/assets/brand/journal-ledger.webp");
  background-position: center, right center;
  background-size: cover, auto 145%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px #a96f3c, var(--table-shadow);
}
.journal-banner-copy { position: relative; z-index: 1; max-width: min(58%, 620px); }
.journal-banner-copy .eyebrow { color: #f0ce87; text-shadow: 0 2px 5px #000; }
.journal-banner-copy h1 {
  margin: 5px 0 0;
  color: var(--paper-light);
  font: 600 clamp(38px, 5vw, 58px)/1.05 Georgia, serif;
  text-shadow: 0 3px 6px #000;
}
.journal-tabs {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  min-height: 0;
  align-items: center;
  padding: 5px;
  border-width: 1px;
  border-radius: 12px;
  background: #0b2327d9;
  box-shadow: inset 0 1px #fff2ce16, 0 5px 12px #0005;
}
.journal-tabs button {
  position: relative;
  z-index: 1;
  border-color: #e1c1808a;
  color: var(--paper-ink);
  background: linear-gradient(145deg, #fff0c9, #cdb47b);
  box-shadow: inset 0 1px #fffefa, inset 0 -3px #9b824f, 0 5px 10px #0006;
}
.journal-tabs button.active { background: linear-gradient(145deg, #ffe19a, #d09f45); }
.journal-main aside {
  border: 7px solid var(--wood-deep);
  border-radius: 14px;
  background:
    repeating-radial-gradient(circle at 35% 30%, #ffffff08 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #164440, #082b2f);
  box-shadow: 0 0 0 1px #a86d3a, var(--table-shadow);
}
.journal-detail,
.stats-card,
.stats-filters {
  border: 1px solid #9f8657;
  border-radius: 8px 18px 8px 18px;
  color: var(--paper-ink);
  background:
    repeating-linear-gradient(8deg, #5a432b08 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #f3e4c3, #d6c08d);
  box-shadow: 0 15px 29px #010b0d70, 0 4px 0 #432617, inset 0 1px #fffefa;
}
.journal-detail::before,
.stats-card::before { display: none; }
.journal-detail h2,
.journal-detail h3,
.journal-detail h4,
.journal-detail p,
.journal-detail label,
.stats-card h3,
.stats-card h4,
.stats-card p,
.stats-card span,
.stats-card td,
.stats-card th,
.stats-filters label { color: var(--paper-ink); }
.journal-detail .journal-message { color: #6f362e; }
.journal-list button {
  border: 1px solid #d1b77b5c;
  border-radius: 7px 13px 7px 13px;
  background: linear-gradient(145deg, #1e4a47, #0b3033);
  box-shadow: inset 0 1px #fff4d01a, 0 4px 8px #0004;
}
.journal-list button.active {
  color: #172b28;
  background: linear-gradient(145deg, #ffe7a7, #cba55a);
  border-color: #ffe0a0;
  box-shadow: inset 0 1px #fffefa, inset 0 -3px #9d793b, 0 7px 13px #0006;
}
.journal-list button.active span,
.journal-list button.active strong { color: #172b28; }
.summary-cards { gap: 16px; }
.journal-shell .summary-cards article {
  position: relative;
  overflow: hidden;
  border: 6px solid var(--wood-deep);
  border-radius: 50% 14px 14px 14px;
  background: linear-gradient(145deg, #164641, #082b2e);
  box-shadow: 0 0 0 1px #a56c3b, 0 12px 22px #0006;
}
.journal-shell .summary-cards article strong,
.journal-shell .summary-cards article span { color: var(--paper-light); }
.bar-track { border: 1px solid #695f43; background: #3b3328; box-shadow: inset 0 2px 5px #0005; }
.bar-track i { background: linear-gradient(90deg, #9b6e2f, #e2b75c); }
.stats-table-wrap,
.journal-table-wrap {
  border: 5px solid var(--wood-deep);
  background: #08272a;
  box-shadow: 0 0 0 1px #a76c3a, inset 0 3px 10px #0008;
}
.stats-table-wrap th,
.stats-table-wrap td,
.journal-table-wrap th,
.journal-table-wrap td { color: var(--board-text); }

/* Club and profiles: membership cards, not dashboard tiles. */
.club-shell {
  background:
    radial-gradient(ellipse at 82% 8%, #6245222d, transparent 35%),
    repeating-radial-gradient(circle at 30% 25%, #ffffff07 0 1px, transparent 1px 5px),
    #062326;
}
.club-main,
.invitation-main,
.member-profile-page { position: relative; }
.invitation-main::before {
  content: "";
  display: block;
  width: 100%;
  height: 148px;
  margin: 0 0 22px;
  border: 7px solid var(--wood-deep);
  border-radius: 16px;
  background-color: #08262a;
  background-image:
    linear-gradient(90deg, #062225dc, #062225ad 44%, #061b1e52),
    url("/assets/brand/club-cards.webp");
  background-position: center, right center;
  background-size: cover, auto 177%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px #aa7040, var(--table-shadow);
}
.club-banner {
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  overflow: hidden;
  border: 7px solid var(--wood-deep);
  border-radius: 16px;
  background-color: #08262a;
  background-image:
    linear-gradient(90deg, #062225ee 0%, #062225c7 38%, #061b1e54 68%, #061b1e16 100%),
    url("/assets/brand/club-cards.webp");
  background-position: center, right center;
  background-size: cover, auto 165%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px #aa7040, var(--table-shadow);
}
.club-banner .eyebrow { color: #f0ce87; text-shadow: 0 2px 5px #000; }
.club-banner h1 {
  margin: 5px 0 0;
  color: var(--paper-light);
  text-shadow: 0 3px 6px #000;
}
.invitation-main::before {
  background-image:
    linear-gradient(90deg, #062225dd, #062225ad 44%, #061b1e52),
    url("/assets/brand/game-night.webp");
}
.member-directory { margin-top: 0; }
.club-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #9d8658;
  border-radius: 8px 18px 8px 18px;
  color: var(--paper-ink);
  background:
    repeating-linear-gradient(8deg, #5a432b08 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #f2e3c1, #d7c18e);
  box-shadow: 0 15px 29px #010b0d70, 0 4px 0 #432617, inset 0 1px #fffefa;
}
.club-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  height: auto;
  border: 1px solid #735d382d;
  border-radius: 4px 14px 4px 14px;
  background: none;
  pointer-events: none;
}
.club-card h2,
.club-card h3,
.club-card p,
.club-card label,
.club-card small,
.club-card strong,
.club-card td,
.club-card th { position: relative; z-index: 1; color: var(--paper-ink); }
.invite-card {
  border: 7px solid var(--wood-deep);
  color: var(--paper-ink);
  background:
    linear-gradient(135deg, #fff0cfef, #dbc18ae8),
    url("/assets/brand/game-night.webp") right center / auto 125% no-repeat;
  box-shadow: 0 0 0 1px #b47b42, var(--table-shadow);
}
.invite-card .invite-form,
.club-card .profile-form,
.club-card .invite-link {
  position: relative;
  z-index: 1;
  border: 1px solid #886d45;
  background: #0a3031f2;
  box-shadow: inset 0 3px 10px #0006;
}
.invite-card .invite-form label,
.invite-card .invite-form strong,
.club-card .profile-form label,
.club-card .invite-link label,
.club-card .invite-link p { color: var(--paper-light); }
.club-card .profile-photo-editor strong,
.club-card .profile-photo-editor p { color: var(--paper-light); }
.club-card .club-table-wrap {
  border: 5px solid var(--wood-deep);
  background: #08272a;
  box-shadow: 0 0 0 1px #a76c3a, inset 0 3px 10px #0008;
}
.club-card .club-table-wrap th,
.club-card .club-table-wrap td { color: var(--paper-light); }
.club-card .club-table-wrap a { color: var(--brass-light); }
.member-card-grid { gap: 16px; }
.member-card {
  position: relative;
  min-height: 96px;
  overflow: hidden;
  padding: 17px 15px;
  border: 2px solid #d2b476;
  border-radius: 9px 18px 9px 18px;
  color: var(--paper-light);
  background:
    repeating-linear-gradient(28deg, #ffffff06 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #164642, #082b2f);
  box-shadow: 0 9px 17px #0006, 0 3px 0 #4b2b19, inset 0 1px #fff2c535;
}
.member-card::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid #d7b76d;
  border-radius: 50%;
  box-shadow: inset 0 2px 3px #0005;
}
.member-card:hover {
  border-color: var(--brass-light);
  background: linear-gradient(145deg, #20534d, #0d3436);
  transform: translateY(-2px) rotate(-.2deg);
}
.member-card strong,
.member-card small { color: var(--paper-light); }
.member-avatar,
.profile-avatar {
  border: 2px solid #f0d18e;
  background: linear-gradient(145deg, #7b4232, #422524);
  box-shadow: inset 0 1px #fff0c43d, 0 4px 9px #0007;
}
.member-hero {
  min-height: 230px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 7px solid var(--wood-deep);
  border-radius: 16px;
  background-color: #08262a;
  background-image:
    linear-gradient(90deg, #062225ef, #062225c7 52%, #061b1e69),
    url("/assets/brand/club-cards.webp");
  background-position: center, right center;
  background-size: cover, auto 170%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px #aa7040, var(--table-shadow);
}
.member-hero h1,
.member-hero p,
.member-hero .eyebrow { color: var(--paper-light); text-shadow: 0 2px 5px #000; }
.favorite-games li,
.favorite-picker-list article {
  border: 1px solid #a18757;
  border-radius: 7px 14px 7px 14px;
  background: #f7e7c4;
  box-shadow: 0 8px 14px #0004, 0 3px 0 #6b4026;
}

/* Game nights: a visible invitation scene and token-based votes. */
.nights-shell {
  background:
    radial-gradient(ellipse at 82% 8%, #6245222d, transparent 35%),
    repeating-radial-gradient(circle at 30% 25%, #ffffff07 0 1px, transparent 1px 5px),
    #062326;
}
.nights-banner {
  grid-column: 1 / -1;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  overflow: hidden;
  border: 7px solid var(--wood-deep);
  border-radius: 16px;
  background-color: #08262a;
  background-image:
    linear-gradient(90deg, #062225ee 0%, #062225c4 38%, #061b1e52 68%, #061b1e16 100%),
    url("/assets/brand/game-night.webp");
  background-position: center, right center;
  background-size: cover, auto 165%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px #aa7040, var(--table-shadow);
}
.nights-banner .eyebrow { color: #f0ce87; text-shadow: 0 2px 5px #000; }
.nights-banner h1 {
  margin: 5px 0 0;
  color: var(--paper-light);
  font-size: clamp(38px, 5vw, 58px);
  text-shadow: 0 3px 6px #000;
}
.nights-list-heading { justify-content: flex-end; }
.nights-list-card {
  border: 7px solid var(--wood-deep);
  border-radius: 14px;
  background:
    repeating-radial-gradient(circle at 35% 30%, #ffffff08 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #164440, #082b2f);
  box-shadow: 0 0 0 1px #a86d3a, var(--table-shadow);
}
.night-detail-card {
  border: 1px solid #9f8657;
  border-radius: 8px 18px 8px 18px;
  color: var(--paper-ink);
  background:
    repeating-linear-gradient(8deg, #5a432b08 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #f3e4c3, #d6c08d);
  box-shadow: 0 15px 29px #010b0d70, 0 4px 0 #432617, inset 0 1px #fffefa;
}
.night-detail-card::before { display: none; }
.night-detail-card h2,
.night-detail-card h3,
.night-detail-card p,
.night-detail-card .night-date span,
.night-detail-card .night-message { color: var(--paper-ink); }
.night-detail-card .night-details { border-left-color: var(--burgundy); color: #412d26; background: #8f4b3820; }
.night-detail-card .night-section { border-top-color: #7d6e4b66; }
.nights-shell .vote-grid article,
.nights-shell .linked-games article,
.attendance-list > div {
  border: 2px solid #d0b270;
  border-radius: 9px 16px 9px 16px;
  color: var(--paper-light);
  background:
    repeating-linear-gradient(28deg, #ffffff06 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #164642, #082b2f);
  box-shadow: 0 8px 15px #0005, 0 3px 0 #4a2a18;
}
.nights-shell .vote-grid article strong,
.nights-shell .vote-grid article span,
.attendance-list > div strong,
.attendance-list > div span { color: var(--paper-light); }
.attendance-buttons button,
.member-attendance-buttons button,
.vote-grid button { border-radius: 999px; box-shadow: inset 0 1px #fff4d124, 0 3px 6px #0005; }
.attendance-buttons button.selected,
.member-attendance-buttons button.selected,
.vote-grid button.selected {
  border-color: #ffe2a0;
  color: #1a2a26;
  background: linear-gradient(145deg, #ffe399, #d3a348);
  box-shadow: inset 0 1px #fffef0, inset 0 -3px #9c7333, 0 4px 8px #0005;
}
.night-form,
.journal-modal > form {
  border: 8px solid var(--wood-deep);
  border-radius: 15px;
  background:
    repeating-radial-gradient(circle at 35% 30%, #ffffff08 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #164440, #082b2f);
  box-shadow: 0 0 0 1px #a86d3a, 0 26px 90px #000d;
}

/* Editor stays practical, with restrained tabletop materials. */
.editor-shell {
  background:
    repeating-radial-gradient(circle at 30% 25%, #ffffff06 0 1px, transparent 1px 6px),
    #062326;
}
.editor-workspace { border-top: 9px solid var(--wood-deep); box-shadow: inset 0 1px #a56d3c; }
.editor-sidebar,
.editor-form,
.editor-intro {
  border: 1px solid #7f7860;
  border-radius: 8px 16px 8px 16px;
  background:
    repeating-linear-gradient(28deg, #ffffff05 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #123b3a, #08292d);
  box-shadow: 0 14px 27px #010b0d6e, 0 4px 0 #3e2417, inset 0 1px #fff2c51c;
}
.editor-sidebar::before,
.editor-form::before,
.editor-intro::before { display: none; }
.variant-card,
.editor-section,
.editor-fields fieldset { border-radius: 7px 13px 7px 13px; box-shadow: inset 0 1px #fff1c70d; }

/* Drop-down menus and states stay above every material layer. */
.dropdown-menu {
  border: 2px solid #d5b474;
  border-radius: 8px 14px 8px 14px;
  background:
    repeating-linear-gradient(28deg, #ffffff05 0 1px, transparent 1px 7px),
    #103536;
  box-shadow: 0 16px 35px #01090bde, 0 4px 0 #3a2114;
}
.dropdown-menu [role="option"] { background: transparent; }
.dropdown-menu [role="option"][aria-selected="true"],
.dropdown-menu [role="option"].is-focused,
.dropdown-menu [role="option"]:hover { color: #172824; background: linear-gradient(145deg, #ffe4a0, #d2a552); }

@media (max-width: 1280px) {
  .collection-app { grid-template-columns: 260px minmax(0, 1fr); }
  .results-heading { min-height: 126px; }
}

@media (max-width: 900px) {
  .collection-controls { top: auto; max-height: none; }
  .score-page .score-heading { padding-right: 280px; }
}

@media (max-width: 720px) {
  .admin-contact-notice { align-items: flex-start; flex-direction: column; margin: 10px; }
  .visit-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html,
  body { max-width: 100%; overflow-x: hidden; }

  .site-header,
  .score-page > header {
    min-height: 0;
    position: relative;
    padding: 12px 12px 15px;
    gap: 10px;
    background-image:
      linear-gradient(90deg, #041719eb, #072225c7 56%, #07191edb),
      url("/assets/brand/tabletop-header.webp");
    background-position: center, 70% center;
    background-size: cover, auto 205px;
  }

  .site-header .brand,
  .score-page > header .brand {
    min-height: 48px;
    padding: 6px 12px 7px 7px;
    font-size: clamp(22px, 7vw, 27px);
  }
  .site-header .brandmark,
  .score-page > header .brandmark { width: 34px; height: 34px; flex-basis: 34px; }
  .site-header .brandmark .icon,
  .score-page > header .brandmark .icon { width: 25px; height: 25px; }
  .site-header .top-actions,
  .score-page > header .top-actions {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    padding: 2px 1px 7px;
    scrollbar-width: thin;
    scrollbar-color: #c0914f #071d20;
  }
  .site-header .nav-button,
  .score-page > header .nav-button {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 9px 12px;
    scroll-snap-align: start;
  }

  .collection-app { min-height: 0; }
  .game-night-prompt {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 11px;
    margin: 13px 10px 0;
    padding: 15px 13px;
  }
  .game-night-prompt-token { width: 24px; height: 24px; border-width: 2px; }
  .game-night-prompt h2 { font-size: 21px; }
  .game-night-prompt > a { grid-column: 2; width: 100%; }
  .collection-controls { padding: 20px 15px 18px; border: 0; border-bottom: 8px solid var(--wood-deep); }
  .collection-controls::before { inset: 8px; }
  .collection-results { padding: 17px 13px 45px; }
  .results-heading {
    min-height: 118px;
    align-items: end;
    margin-bottom: 16px;
    padding: 17px;
    border-radius: 11px 20px 11px 20px;
    background-position: center, 60% center;
  }
  .results-heading h2 { max-width: 230px; font-size: 29px; }
  .results-heading #results { max-width: 110px; text-align: right; }
  .collection-results #games { gap: 12px; }
  .results-heading { flex-wrap: wrap; }
  .collection-view-toggle { margin-left: auto; }
  .collection-results #games.is-list .game { grid-template-columns: minmax(0,1fr); }
  .collection-results .game { min-height: 116px; border-radius: 8px 15px 8px 15px; }
  .collection-detail { padding: 16px 11px 40px; }
  .collection-detail .game-hero {
    min-height: 0;
    padding: 17px;
    border-width: 6px;
    background-position: center, 66% center;
  }
  .collection-detail .sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-detail .panel { padding: 21px 18px; }

  .score-page .score-main { padding: 17px 11px 42px; }
  .score-page .score-heading {
    min-height: 226px;
    justify-content: flex-end;
    padding: 100px 18px 22px;
    border-width: 6px;
    background-image:
      linear-gradient(0deg, #062326f7 0, #062326c0 56%, #061a1d54 100%),
      url("/assets/brand/score-track.webp");
    background-position: center, right -40px top -50px;
    background-size: cover, 270px auto;
  }
  .score-page .score-heading h1 { font-size: 37px; }
  .score-page .panel { padding: 17px 14px; }

  .journal-main,
  .nights-main { padding: 12px 10px 40px; }
  .journal-banner,
  .nights-banner,
  .club-banner,
  .invitation-main::before {
    min-height: 0;
    height: 150px;
    border-width: 6px;
    background-size: cover, auto 150%;
  }
  .journal-banner {
    min-height: 205px;
    height: auto;
    gap: 20px;
    padding: 20px 16px 16px;
    background-image:
      linear-gradient(90deg, #062225f2 0%, #062225c7 46%, #061b1e56 78%, #061b1e20 100%),
      url("/assets/brand/journal-ledger.webp");
    background-position: center, 68% center;
  }
  .journal-banner-copy { max-width: 76%; }
  .journal-banner-copy h1 { font-size: 38px; }
  .journal-tabs { width: 100%; padding: 5px; }
  .journal-main aside,
  .nights-list-card { border-width: 6px; }
  .journal-detail,
  .stats-card,
  .stats-filters,
  .night-detail-card,
  .club-card { border-radius: 7px 15px 7px 15px; }

  .club-main,
  .invitation-main,
  .member-profile-page { padding-inline: 10px; }
  .club-banner,
  .nights-banner {
    padding: 18px;
    background-position: center, 68% center;
  }
  .club-banner h1,
  .nights-banner h1 { font-size: 36px; }
  .member-hero {
    min-height: 190px;
    border-width: 6px;
    background-position: center, 65% center;
    background-size: cover, auto 140%;
  }
  .club-card { padding: 17px; }
  .invite-card { border-width: 6px; }
  .nights-banner { grid-column: auto; }
  .nights-shell .vote-grid article,
  .nights-shell .linked-games article,
  .attendance-list > div { border-radius: 8px 14px 8px 14px; }

  body:not(.show-detail) .journal-shell article { display: block; }
  body:not(.show-detail) .notifications-list article { display: grid; }
  body:not(.show-detail) .nights-shell .vote-grid article,
  body:not(.show-detail) .nights-shell .linked-games article { display: flex; }
  body:not(.show-detail) .member-profile-page .favorite-picker-list article { display: grid; }
}

@media (max-width: 390px) {
  .site-header,
  .score-page > header { padding-inline: 9px; }
  .site-header .source { max-width: 105px; font-size: 12px; line-height: 1.3; text-align: right; }
  .results-heading { display: flex; }
  .results-heading h2 { max-width: 205px; font-size: 27px; }
  .results-heading #results { font-size: 12px; }
  .collection-results .game { grid-template-columns: 66px minmax(0, 1fr); }
  .collection-results .cover-small { width: 66px; height: 90px; }
  .journal-tabs button { padding-inline: 12px; }
}

@media (max-width: 340px) {
  .results-heading { min-height: 110px; display: block; }
  .results-heading #results { max-width: none; margin-top: 7px; text-align: left; }
  .collection-detail .sections { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
