.game-data-content {
  min-width: 0;
}

.game-data-heading {
  display: grid;
  min-height: 102px;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 0 8px 15px;
  border-bottom: 1px solid var(--cream-300);
}

.game-data-heading-icon {
  width: 70px;
  height: 70px;
  color: var(--green-800);
}

.game-data-eyebrow,
.game-data-kicker {
  margin: 0 0 4px;
  color: #9b7007;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-data-heading h1 {
  margin: 0 0 5px;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.55rem);
  line-height: 1.05;
}

.game-data-heading p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.game-data-message {
  display: grid;
  gap: 3px;
  margin: 0 0 18px;
  padding: 14px 17px;
  border: 1px solid #dfc46c;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  color: #554714;
  background: #fffae8;
}

.game-data-message--error {
  border-color: #c8827b;
  border-left-color: #a6382f;
  color: #70251f;
  background: #fff3f1;
}

.game-data-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.game-data-search-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 21px;
  border: 1px solid var(--cream-300);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #fbf8ed);
  box-shadow: 0 5px 16px rgb(34 55 40 / 10%);
}

.game-data-search-symbol {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgb(10 105 57 / 18%);
  border-radius: 50%;
  color: var(--green-800);
  background: #f1f8f2;
}

.game-data-search-symbol .people-icon,
.game-data-search-symbol .od-icon {
  transform: scale(1.1);
}

.game-data-search-card h2,
.game-data-link-card h2 {
  margin: 0;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: 1.28rem;
}

.game-data-search-card p:not(.game-data-kicker) {
  min-height: 42px;
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.game-data-search-card label,
.game-database-filters label > span,
.fair-play-form label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--green-950);
  font-size: 0.78rem;
  font-weight: 800;
}

.game-data-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.game-data-input-row input,
.game-database-filters input,
.game-database-filters select,
.fair-play-form input,
.fair-play-form select,
.fair-play-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #b8b5a8;
  border-radius: 7px;
  color: #24372b;
  background: #fff;
  font: inherit;
}

.game-data-input-row input:focus,
.game-database-filters :is(input, select):focus,
.fair-play-form :is(input, select, textarea):focus {
  border-color: var(--green-700);
  outline: 3px solid rgb(10 105 57 / 17%);
}

.game-data-input-row button,
.game-data-button,
.fair-play-submit {
  min-height: 43px;
  padding: 9px 16px;
  border: 1px solid #075129;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(#11804a, #086035);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.game-data-input-row button:hover,
.game-data-button:hover,
.fair-play-submit:hover {
  background: linear-gradient(#159154, #07542e);
}

.game-data-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.game-data-link-card {
  display: grid;
  min-height: 175px;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 8px 13px;
  padding: 20px;
  border: 1px solid var(--cream-300);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 11px rgb(32 52 38 / 8%);
}

.game-data-link-card--featured {
  border-color: #d5aa32;
  box-shadow: inset 0 0 0 2px rgb(255 225 122 / 30%), 0 5px 14px rgb(111 77 5 / 13%);
}

.game-data-card-icon {
  width: 42px;
  height: 42px;
  align-self: center;
}

.game-data-link-card > .people-icon.game-data-card-icon {
  width: 24px;
  height: 20px;
  margin-block: 11px;
  transform: scale(1.75);
  transform-origin: center;
}

.game-data-link-card h2 {
  align-self: center;
}

.game-data-link-card p {
  grid-column: 1 / -1;
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.game-data-link-card > a {
  grid-column: 1 / -1;
  color: var(--green-800);
  font-weight: 800;
}

.game-data-link-card > a:hover {
  text-decoration: underline;
}

.game-database-filters {
  margin: 0 0 18px;
  padding: 17px;
  border: 1px solid var(--cream-300);
  border-radius: 10px;
  background: linear-gradient(145deg, #fffefa, #f8f4e8);
}

.game-database-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.game-database-cutoff {
  min-width: 0;
  grid-column: span 2;
  margin: 0;
  padding: 0;
  border: 0;
}

.game-database-cutoff-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.7fr);
  gap: 8px;
}

.game-database-admin-filter {
  display: flex;
  min-height: 44px;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #d7c27b;
  border-radius: 7px;
  color: #4d431f;
  background: #fff9df;
}

.game-database-admin-filter input {
  width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin: 0;
  accent-color: var(--green-800);
}

.game-database-filters .game-database-admin-filter > span {
  margin: 0;
  color: inherit;
}

.game-database-filter-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 14px;
}

.game-database-filter-actions a {
  color: var(--green-800);
  font-weight: 700;
}

.game-database-table {
  min-width: 740px;
  table-layout: fixed;
}

.game-database-table th,
.game-database-table td {
  box-sizing: border-box;
}

.game-database-table th:first-child,
.game-database-row--primary td:first-child {
  width: 112px;
  text-align: center;
}

.game-database-table th:nth-child(2),
.game-database-row--primary td:nth-child(2) {
  width: 100px;
}

.game-database-table th:nth-child(3),
.game-database-row--primary td:nth-child(3) {
  width: 244px;
}

.game-database-table th:nth-child(4),
.game-database-row--primary td:nth-child(4) {
  width: 92px;
  padding-right: 8px;
  padding-left: 8px;
  overflow-wrap: normal;
  white-space: normal;
  word-break: normal;
}

.game-database-table th:nth-child(5),
.game-database-row--primary td:nth-child(5) {
  width: 74px;
  padding-right: 8px;
  padding-left: 8px;
}

.game-database-table th:nth-child(6),
.game-database-row--primary td:nth-child(6) {
  width: 104px;
  padding-right: 8px;
  padding-left: 8px;
}

.od-data-table .game-database-table th.is-centered {
  text-align: center;
}

.game-database-table small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.game-id-link {
  color: var(--green-800);
  font-weight: 800;
  white-space: nowrap;
}

.game-time-table-cell time,
.game-table-type {
  display: block;
}

.game-time-table-cell time {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.game-table-type {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.od-data-table .game-database-table tbody .game-database-record--even {
  background: rgb(232 239 226 / 42%);
}

.od-data-table .game-database-table tbody .game-database-record--odd {
  background: rgb(255 253 248 / 96%);
}

.od-data-table .game-database-date-row td {
  padding: 10px 14px 7px;
  border-right: 0;
  border-bottom: 0;
  color: var(--green-950);
  background: #fffdf8;
  font-family: var(--font-display);
  font-size: 0.84rem;
  text-align: center;
}

.game-database-date-label {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.game-database-date-label::before,
.game-database-date-label::after {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #bcb7a6);
  content: "";
}

.game-database-date-label::after {
  background: linear-gradient(90deg, #bcb7a6, transparent);
}

.od-data-table .game-database-date-row:hover td {
  background: #fffdf8;
}

.od-data-table .game-database-table tbody .game-database-row:hover {
  background: #fff8db;
}

.game-eyes,
.game-announcements {
  text-align: center !important;
}

.game-eyes {
  white-space: nowrap;
}

.game-announcement-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1px 4px;
}

.game-announcement-entry,
.game-announcement-divider {
  white-space: nowrap;
}

.game-announcement--failed {
  color: #b3261e;
}

.game-participant-list {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
}

.game-participant {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 5px;
  color: var(--green-900);
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: rgb(7 95 49 / 24%);
  text-underline-offset: 2px;
}

.game-participant > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-participant--seat-0 { grid-area: 1 / 1; }
.game-participant--seat-1 { grid-area: 1 / 2; }
.game-participant--seat-2 { grid-area: 2 / 1; }
.game-participant--seat-3 { grid-area: 2 / 2; }

.game-participant-points {
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-decoration: none;
}

.game-participant:hover {
  color: var(--green-700);
  text-decoration-color: var(--gold);
}

.game-participant--re {
  color: #713044;
  background: #f8e9ed;
  text-decoration-color: rgb(143 51 72 / 27%);
}

.game-participants-unavailable {
  color: var(--muted);
  font-size: 0.76rem;
}

.game-corrected { color: #9b4a27 !important; font-weight: 800; }

.game-database-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  color: #4a4738;
  background: #fff9e5;
}

.game-database-note p {
  margin: 5px 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
}

@media (max-width: 1050px) {
  .game-database-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .game-data-search-grid,
  .game-data-link-grid {
    grid-template-columns: 1fr;
  }

  .game-data-search-card p:not(.game-data-kicker) {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  #hauptinhalt,
  #spielersuche {
    scroll-margin-top: 86px;
  }

  .game-data-heading {
    min-height: auto;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 2px 3px 13px;
  }

  .game-data-heading-icon {
    width: 48px;
    height: 48px;
  }

  .game-data-heading h1 {
    font-size: 1.55rem;
  }

  .game-data-heading p:last-child {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .game-data-search-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
    padding: 16px 13px;
  }

  .game-data-search-symbol {
    width: 44px;
    height: 44px;
  }

  .game-data-input-row {
    grid-template-columns: 1fr;
  }

  .game-database-filter-grid {
    grid-template-columns: 1fr;
  }

  .game-database-cutoff {
    grid-column: auto;
  }

  .game-database-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .game-database-filter-actions a {
    text-align: center;
  }

  .od-data-table .game-database-date-row td {
    padding-left: 18px;
    text-align: left;
  }

  .game-database-date-label {
    justify-content: flex-start;
    gap: 9px;
  }

  .game-database-date-label::before {
    display: none;
  }
}

@media (max-width: 400px) {
  .game-database-cutoff-fields {
    grid-template-columns: 1fr;
  }
}
