@import url('fonts.css');

body, html {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

h1, h2, h3, h4, h5, h6, p, ol, ul { padding: 0; margin-top: 0; }
ol, ul { list-style-type: none; list-style-position: inside; }
img { height: auto; }

:root{
  --menu-bg: #111;
  --menu-text: #fff;
  --link: #D3E0FF;
  --hover: #F0F8FF;
}

body.standalone-site {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  background: #000;
  color: #fff;
}

body.gallery-open {
  overflow: hidden;
}

a {
  color: var(--link);
  font-weight: 300;
  transition: all .3s cubic-bezier(.215, .61, .355, 1);
  text-decoration: none;
}

a:focus, a:hover { color: var(--hover); }

h1, .text-1 { font-size: 3rem; }
h2, .text-2 { font-size: 2rem; }
h3, .text-3 { font-size: 1.5rem; }
h4, p, .text-4 { font-size: 1.1rem; line-height: 1.8; }
p { font-weight: 300; }
h1, h2, h3, h4, p, ol, ul { margin-bottom: 1rem; word-wrap: break-word; }

.wrap {
  overflow: hidden;
  min-height: 100vh;
  width: 100%;
  background: #000;
}

.skip-link.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.skip-link.screen-reader-text:focus {
  left: 20px;
  top: 20px;
  z-index: 1001;
  background: #111;
  color: #fff;
  padding: 12px 14px;
}

.header-container {
  background: transparent;
  position: relative;
  z-index: 999;
  width: 100%;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding: 30px 34px 0;
  gap: 32px;
}

.header__logo {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: clamp(2.55rem, 5.2vw, 4.15rem);
  line-height: .88;
  letter-spacing: -.065em;
  text-transform: none;
  display: inline-block;
  flex: 0 0 auto;
}

.header__menu {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 38px;
  padding-top: 12px;
  margin-left: auto;
  justify-content: flex-end;
}

.header__menu li {
  display: inline-block;
  position: relative;
  margin: 0;
  padding: 0;
}

.header__menu li a {
  display: block;
  padding: 0;
  margin: 0;
  color: #fff;
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1;
  text-decoration: none;
  position: relative;
  width: fit-content;
}

.header__menu li a::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -0.22em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .22s cubic-bezier(.215, .61, .355, 1);
}

.header__menu li a:hover,
.header__menu li.current-menu-item > a,
.header__menu li.current-menu-ancestor > a,
.header__menu li.current_page_item > a,
.header__menu li.current-page-ancestor > a {
  opacity: .78;
  color: #fff;
}

.header__menu li a:hover::before,
.header__menu li a:focus::before,
.header__menu li.current-menu-item > a::before,
.header__menu li.current-menu-ancestor > a::before,
.header__menu li.current_page_item > a::before,
.header__menu li.current-page-ancestor > a::before {
  transform: scaleX(1);
}

.header__hamburger { display: none; }

.spacer { height: 0; }

.grid { display: flex; flex-wrap: wrap; max-width: 1650px; margin: 0 auto; }
.grid__center { justify-content: center; }
[class *= 'col-'] { padding: 3%; }
.col-50 { width: 50%; }
.col-100 { width: 100%; }

main#main-content.grid {
  max-width: 100%;
  width: 100%;
  margin: 0;
  display: block;
  padding: 12px 24px 120px;
  background: #000;
}

main#main-content > .col-100 {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.article {
  width: 100%;
  max-width: 100%;
  margin: 0;
  text-align: center;
  background: #000;
}

.article h1 {
  margin: 0;
  color: #fff;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: .95;
  letter-spacing: -.05em;
}

.text-content {
  margin: 22px 0 0;
  text-align: center;
}

.text-content ul,
.text-content ol {
  display: inline-block;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

.text-content a,
.footer a {
  color: rgba(255,255,255,.9);
  text-decoration-line: underline;
  text-decoration-color: rgba(255,255,255,.32);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.text-content a:hover,
.footer a:hover,
.text-content a:focus,
.footer a:focus {
  color: #fff;
  text-decoration-color: rgba(255,255,255,.85);
}

.footer {
  background: #000;
}

.footer .grid {
  max-width: 100%;
  padding: 0 24px 24px;
  justify-content: center;
  text-align: center;
}

.footer .col-50 {
  width: auto;
  min-width: 0;
}

.privacy,
.sma-center {
  text-align: center;
}

/* Links page */
.jg-wrap { max-width: 1200px; margin: 0 auto; }
.jg-hero { display: grid; gap: 24px; margin-bottom: 28px; }
.jg-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: rgba(255,255,255,.64); }
.jg-links { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.jg-link { display: block; background: #111; border: 1px solid rgba(255,255,255,.1); padding: 22px; color: #fff; text-decoration: none !important; }
.jg-link strong { display: block; margin-bottom: 8px; font-size: 1.1rem; }
.jg-link small { color: rgba(255,255,255,.7); }

/* Nobody is Perfect */
.np-shell { display: grid; gap: 24px; padding: 24px 0 0; }
.np-shell-home { max-width: 760px; margin: 0 auto; }
.np-card { background: #111; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 28px; }
.np-entry-card { display: grid; gap: 24px; text-align: center; }
.np-entry-card h2, .np-card h2, .np-card h3 { margin: 0; }
.np-entry-actions, .np-flow-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.np-entry-button { width: 100%; max-width: 320px; justify-content: center; }
.np-flow-card { text-align: left; }
.np-form { display: grid; gap: 14px; }
.np-form label { display: grid; gap: 8px; color: #fff; text-align: left; }
.np-form input, .np-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.03);
  color: #fff;
  font: inherit;
}
.np-form-inline { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: end; }
.np-room-header, .np-round-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.np-room-links, .np-scoreboard, .np-choice-list, .np-results-list, .np-answer-status, .np-answer-options { display: grid; gap: 12px; }
.np-scoreboard { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }
.np-score-item, .np-answer-status-item, .np-choice-item, .np-result-card, .np-option-card {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
}
.np-score-item.is-you, .np-option-card.is-selected { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.np-answer-status-item.is-done, .np-result-card.is-correct { border-color: rgba(123,255,158,.4); background: rgba(123,255,158,.08); }
.np-result-card.is-wrong { border-color: rgba(255,110,110,.35); background: rgba(255,110,110,.08); }
.np-option-card.is-disabled { opacity: .7; }
.np-round-state {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: #ddd;
}
.np-meta { color: #ddd; }
.np-inline-action { margin-top: 18px; }
.np-lobby-start-form { grid-template-columns: 1fr; }
.np-grid { display: grid; gap: 18px; }
.np-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.np-flash {
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}
.np-result-main { display: grid; gap: 4px; }
.np-result-meta { color: #ddd; }
.button {
  font-size: 1rem;
  background: transparent;
  border: 1px solid #fffff0;
  color: #fffff0;
  padding: 15px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: bold;
  transition: all .5s cubic-bezier(.215, .61, .355, 1);
  text-decoration: none !important;
}
.button:hover,
.button:focus,
a.button:hover,
a.button:focus,
.bg-button-ghost:hover,
.bg-button-ghost:focus,
a.bg-button-ghost:hover,
a.bg-button-ghost:focus {
  background: #fffff0;
  color: #111 !important;
}

/* Boardgames */
.bg-shell,
.bg-detail {
  display: grid;
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
}

.bg-detail-section {
  display: grid;
  gap: 16px;
  position: relative;
  padding: 26px 0 4px;
}

.bg-detail-section::before,
.bg-detail-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.2) 10%, rgba(255,255,255,.2) 90%, rgba(255,255,255,0) 100%);
}

.bg-detail-section h3,
.bg-classification-card h4 {
  margin: 0;
}

.bg-detail-hero {
  display: grid;
  gap: 24px;
  position: relative;
  padding: 26px 0 6px;
}

.bg-lead {
  margin: 0;
  color: rgba(255,255,255,.82);
}

.bg-filters {
  display: grid;
  gap: 16px;
}

.bg-filters-inline {
  grid-template-columns: minmax(240px, 360px) minmax(180px, 220px) auto;
  align-items: end;
  gap: 18px;
}

.bg-filters label,
.bg-filter-actions {
  display: grid;
  gap: 8px;
}

.bg-filters span,
.bg-stats span {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
}

.bg-filters select,
.bg-filters input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  color: #fff;
  color-scheme: dark;
  font: inherit;
  padding: 14px 16px;
}

.bg-number-field {
  position: relative;
}

.bg-number-field input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
  padding-right: 40px;
}

.bg-filters select option,
.bg-filters select optgroup {
  background: #111;
  color: #fff;
}

.bg-filters input[type="number"]::-webkit-outer-spin-button,
.bg-filters input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bg-number-stepper {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: grid;
  gap: 2px;
}

.bg-number-step {
  border: 0;
  padding: 0;
  width: 18px;
  height: 12px;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.bg-number-step:hover,
.bg-number-step:focus {
  color: #fff;
}

.bg-filter-actions {
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.bg-button-ghost {
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.88);
}

.bg-button-ghost:hover {
  border-color: #fffff0;
}

.bg-table-wrap {
  overflow-x: auto;
}

.bg-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
}

.bg-table thead tr,
.bg-table tbody tr {
  background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.14) 8%, rgba(255,255,255,.14) 92%, rgba(255,255,255,0) 100%);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: left bottom;
}

.bg-table th,
.bg-table td {
  padding: 20px 20px;
  text-align: left;
  vertical-align: middle;
  height: 128px;
}

.bg-table th {
  height: auto;
  padding-top: 0;
  padding-bottom: 16px;
}

.bg-table tbody tr:last-child {
  background-image: none;
}

.bg-table th {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
}

.bg-cover-link {
  display: inline-flex;
}

.bg-cover,
.bg-detail-cover {
  display: block;
  width: 86px;
  height: 86px;
  border-radius: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
}

.bg-detail-cover {
  width: min(280px, 100%);
  height: auto;
}

.bg-game-link {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 400;
}

.bg-meta,
.bg-empty {
  margin: 8px 0 0;
  color: rgba(255,255,255,.62);
  font-size: .94rem;
}

.bg-bgg-meta {
  margin: 6px 0 0;
}

.bg-bgg-inline {
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.22);
  text-underline-offset: 0.18em;
}

.bg-bgg-inline:hover {
  color: #fff;
  text-decoration-color: rgba(255,255,255,.58);
}

.bg-detail-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.bg-action-back {
  margin-left: auto;
}

.bg-cover-fallback {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.9);
  font-size: 1.5rem;
  letter-spacing: -.08em;
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.02));
}

.bg-detail-hero {
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  align-items: start;
}

.bg-detail-copy h2 {
  margin-bottom: 14px;
}

.bg-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin: 24px 0 18px;
}

.bg-stats div {
  padding: 0 10px 0 0;
}

.bg-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
  color: #fff;
}

.bg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.bg-tags span {
  padding: 0;
  border: 0;
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  position: relative;
}

.bg-tags span::after {
  content: "•";
  margin-left: 10px;
  color: rgba(255,255,255,.32);
}

.bg-tags span:last-child::after {
  content: "";
  margin: 0;
}

.bg-prose p {
  margin: 0 0 12px;
  color: rgba(255,255,255,.84);
}

.bg-prose p:last-child {
  margin-bottom: 0;
}

.bg-classification-grid,
.bg-info-grid,
.bg-gallery {
  display: grid;
  gap: 16px;
}

.bg-classification-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.bg-info-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.bg-classification-card,
.bg-info-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.bg-classification-card {
  text-align: center;
}

.bg-classification-card .bg-tags {
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.bg-classification-card .bg-tags span {
  display: block;
}

.bg-classification-card .bg-tags span::after {
  content: "";
  margin: 0;
}

.bg-info-card span {
  display: block;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
}

.bg-info-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 1rem;
}

.bg-gallery {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.bg-gallery-item {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  min-height: 180px;
  cursor: pointer;
}

.bg-gallery-item img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
}

.bg-gallery-count {
  margin: 2px 0 0;
  text-align: center;
  color: rgba(255,255,255,.6);
  font-size: .92rem;
}

.bg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,.92);
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 68px;
  align-items: center;
  gap: 12px;
  padding: 32px;
}

.bg-lightbox[hidden] {
  display: none;
}

.bg-lightbox-figure {
  margin: 0;
  display: grid;
  place-items: center;
}

.bg-lightbox-image {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.bg-lightbox-close,
.bg-lightbox-nav {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.bg-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2.2rem;
  line-height: 1;
}

.bg-lightbox-nav {
  font-size: 3.2rem;
  line-height: 1;
  opacity: .92;
}

.bg-lightbox-nav:hover,
.bg-lightbox-close:hover {
  color: #fffff0;
}

@media (max-width: 768px) {
  h1,.text-1 { font-size: 1.95rem; }
  h2,.text-2 { font-size: 1.22rem; }
  h3,.text-3 { font-size: 1.08rem; }

  .header {
    padding: 16px 14px 0;
    flex-direction: column;
    gap: 14px;
    justify-content: flex-start;
  }

  .header__logo {
    font-size: clamp(2.3rem, 13vw, 3.3rem);
  }

  .header__hamburger {
    display: block;
    width: 40px;
    height: 35px;
    right: 14px;
    top: 34px;
    position: absolute;
  }

  .header__hamburger span {
    width: 33px;
    height: 2px;
    background: var(--menu-text);
    margin-top: 8px;
    display: block;
    transition: all .15s cubic-bezier(.215, .61, .355, 1);
  }

  .header__hamburger span:nth-child(2) { width: 25px; }

  .header__menu {
    position: absolute;
    top: 79px;
    left: 0;
    width: 100%;
    background: var(--menu-bg);
    height: 100vh;
    overflow: hidden;
    transform: translateX(-100%);
    transition: all .5s cubic-bezier(.215, .61, .355, 1);
    font-size: 1.2rem;
    display: block;
    padding-top: 18px;
    margin-left: 0;
  }

  .header__menu li {
    display: block;
    margin: 5px 0 10px 15px;
  }

  .menu-open .header__menu { transform: translateX(0); }
  .menu-open { overflow: hidden; }
  .menu-open .header__hamburger span:nth-child(1){transform: translateY(5px) rotate(45deg);}
  .menu-open .header__hamburger span:nth-child(2){opacity: 0;}
  .menu-open .header__hamburger span:nth-child(3){transform: translateY(-15px) rotate(-45deg);}

  .spacer { height: 0; }
  main#main-content.grid {
    padding: 20px 14px 84px;
    overflow-x: clip;
  }
  [class *= 'col-'] { width: 100%; }
  .sma-center { text-align: center; }
  .privacy { text-align: center; }
  .article h1 {
    margin-top: 10px;
    font-size: clamp(1.3rem, 6vw, 1.65rem);
  }
  .text-content {
    margin-top: 28px;
  }
  .bg-detail-hero,
  .bg-filter-actions,
  .bg-filters-inline {
    grid-template-columns: 1fr;
  }
  .bg-filters-inline {
    gap: 14px;
    padding: 28px 0 8px;
    align-items: stretch;
  }
  .bg-filters label,
  .bg-filter-actions {
    min-width: 0;
  }
  .bg-filter-actions {
    order: 3;
    gap: 10px;
  }
  .bg-stats {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px 12px;
  }
  .bg-stats div { padding-right: 0; }
  .bg-stats strong {
    font-size: 1rem;
    line-height: 1.25;
  }
  .bg-classification-grid,
  .bg-info-grid,
  .bg-gallery { grid-template-columns: 1fr; }
  .bg-lightbox {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    padding: 18px 10px;
  }
  .bg-lightbox-nav { font-size: 2.4rem; }
  .bg-lightbox-close {
    top: 10px;
    right: 14px;
    font-size: 1.9rem;
  }
  .bg-detail-hero { padding: 28px 0 6px; }
  .bg-detail-actions,
  .bg-filter-actions { flex-direction: column; }
  .bg-detail-actions .button,
  .bg-filter-actions .button,
  .bg-filter-actions a { width: 100%; }
  .bg-action-back { margin-left: 0; }
  .bg-table-wrap {
    overflow-x: visible;
  }
  .bg-table {
    min-width: 0;
    width: 100%;
  }
  .bg-table thead {
    display: none;
  }
  .bg-table,
  .bg-table tbody,
  .bg-table tr,
  .bg-table td {
    display: block;
  }
  .bg-table tbody {
    display: grid;
    gap: 18px;
  }
  .bg-table tbody tr {
    position: relative;
    min-height: 100px;
    padding: 18px 0 18px 102px;
  }
  .bg-table td {
    height: auto;
    padding: 0;
    background: none;
  }
  .bg-table td:first-child {
    position: absolute;
    left: 0;
    top: 18px;
    width: 86px;
  }
  .bg-table td:nth-child(2) {
    margin-bottom: 10px;
  }
  .bg-table td:nth-child(3),
  .bg-table td:nth-child(4) {
    display: inline-block;
    width: auto;
    margin-right: 16px;
    color: rgba(255,255,255,.82);
    font-size: .95rem;
  }
  .bg-table td:nth-child(3)::before {
    content: "Avg Rating: ";
    color: rgba(255,255,255,.58);
  }
  .bg-table td:nth-child(4)::before {
    content: "Spieler: ";
    color: rgba(255,255,255,.58);
  }
  .bg-cover,
  .bg-detail-cover {
    max-width: 100%;
  }
  .jg-links, .np-grid-2, .np-form-inline { grid-template-columns: 1fr; }
  .np-room-header, .np-round-head, .np-answer-status-item, .np-choice-item, .np-result-card { flex-direction: column; align-items: flex-start; }
  .np-entry-actions, .np-flow-actions { flex-direction: column; }
  .np-entry-button, .np-flow-actions .button, .np-lobby-start-form .button { width: 100%; max-width: none; }
}
