.game-protocol {
  --protocol-re: #8f3348;
  --protocol-re-soft: #f8e9ed;
  --protocol-kontra: #176b70;
  --protocol-kontra-soft: #e4f2f2;
  --protocol-board-width: 1200px;
  --protocol-board-height: 780px;
  --protocol-hand-card-width: 64px;
  --protocol-hand-card-height: 92px;
  --protocol-side-seat-width: 415px;
  --protocol-top-seat-width: 700px;
  --protocol-felt-width: 430px;
  --protocol-felt-height: 330px;
  --protocol-felt-half-width: 215px;
  --protocol-team-score-inline-inset: 18px;
  --protocol-overview-card-width: 72px;
  --protocol-overview-card-height: 80px;
  --protocol-overview-image-width: 180px;
  --protocol-overview-image-height: 267px;
  --protocol-live-block-gap: 4px;
  --protocol-live-side-anchor: 68px;
  --protocol-live-side-lift: 73px;
  min-width: 0;
}

.game-protocol-layout {
  padding: 20px 30px 42px;
}

.game-protocol-page-heading {
  min-width: 0;
  margin-left: 282px;
}

.game-protocol-page-heading .competition-breadcrumb,
.game-protocol-page-heading .competition-breadcrumb a {
  color: inherit;
  font-weight: inherit;
}

.game-protocol-heading {
  margin-bottom: 18px;
}

.game-protocol-content {
  display: grid;
  gap: 0;
}

.game-protocol-notice,
.game-protocol-state {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid #d9c277;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  color: #5d4b12;
  background: #fff9e3;
}

.game-protocol-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.game-protocol-notice a {
  overflow-wrap: anywhere;
  color: var(--green-800);
  font-weight: 850;
}

.game-protocol-notice--success {
  border-color: #8dbda2;
  border-left-color: var(--green-700);
  color: #155b36;
  background: #eff9f2;
}

.game-protocol-notice--danger {
  border-color: #d69b95;
  border-left-color: #a33831;
  color: #752720;
  background: #fff1ef;
}

.game-protocol-state {
  max-width: 780px;
  margin: 18px auto 48px;
  padding: 28px;
  text-align: center;
}

.game-protocol-state h2,
.game-protocol-section h2,
.game-hands h2 {
  margin: 0 0 7px;
  color: var(--green-950);
  font-family: var(--font-display);
}

.game-protocol-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: 1px solid var(--green-800);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(110deg, var(--green-800), var(--green-700));
  box-shadow: 0 4px 10px rgb(7 95 49 / 18%);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.game-protocol-button--danger {
  border-color: #8e2d28;
  background: linear-gradient(110deg, #a63d35, #7d2823);
  box-shadow: 0 4px 10px rgb(125 40 35 / 20%);
}

.game-summary {
  overflow: hidden;
  border: 1px solid var(--cream-300);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #fcfaf3);
  box-shadow: 0 6px 20px rgb(34 52 40 / 8%);
}

.game-summary__header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--cream-300);
}

.game-summary__title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 17px;
}

.game-summary__title h2 {
  margin: 0;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.game-summary__title p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
}

.game-summary__table-icon {
  display: inline-flex;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  align-items: center;
  justify-content: center;
  color: var(--green-800);
  font-size: 3.2rem;
  transform-origin: center;
}

.game-summary__table-icon.od-icon--card-pairs {
  transform: scale(1.45);
}

.game-summary__table-icon.od-icon--notepad,
.game-summary__table-icon.od-icon--podium {
  transform: scale(1.1);
}

/*
 * Das Listen-Symbol besteht aus drei untereinanderliegenden Zeilen. Die
 * generische Kopfzeile ist ein Flex-Container; auf demselben Element wuerde
 * sie die drei Zeilen nebeneinander anordnen und damit die Haekchen
 * verschieben. Fuer dieses zusammengesetzte Symbol gilt deshalb wieder sein
 * blockweises Grundlayout.
 */
.game-summary__table-icon.od-icon--notepad {
  display: inline-block;
}

.game-summary__status {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: #286044;
  background: #e8f4eb;
  font-size: 0.75rem;
  font-weight: 900;
}

.game-summary__status--cancelled {
  color: #8a2d27;
  background: #fbe6e3;
}

.game-summary__status--corrected {
  color: #775600;
  background: #fff0bf;
}

.game-summary__private-reference,
.game-summary__valuation-notice {
  margin: 0;
  padding: 12px 20px;
  border-bottom: 1px solid var(--cream-300);
}

.game-summary__private-reference {
  color: #315443;
  background: #edf6ef;
}

.game-summary__private-reference a {
  color: var(--green-800);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.game-summary__valuation-notice {
  color: #704f08;
  background: #fff8df;
}

.game-summary__valuation-notice > strong {
  display: block;
  margin-bottom: 3px;
  color: #6b4b05;
}

.game-summary__valuation-notice ul {
  margin: 0;
  padding-left: 20px;
}

.game-summary-player__name-suffix {
  color: #6b776f;
  font-size: 0.72rem;
  font-weight: 800;
}

.game-summary__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--cream-300);
}

.game-summary__facts div {
  min-width: 0;
  padding: 15px 18px;
  border-right: 1px solid var(--cream-300);
}

.game-summary__facts div:last-child {
  border-right: 0;
}

.game-summary__facts dt {
  margin-bottom: 4px;
  color: #8e6711;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-summary__facts dd {
  margin: 0;
  color: #284838;
  font-weight: 780;
  line-height: 1.35;
}

.game-summary__players {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 20px 12px;
}

.game-summary-player,
.game-summary-player > a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.game-summary-player {
  padding: 10px;
  border: 1px solid #dedfd7;
  border-radius: 10px;
  background: #fff;
}

.game-summary-player > a {
  width: 100%;
  color: inherit;
}

.game-summary-player span:last-child {
  display: grid;
  min-width: 0;
}

.game-summary-player strong {
  overflow: hidden;
  color: var(--green-950);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-summary-player small {
  color: var(--muted);
  font-weight: 800;
}

.game-summary-player--re {
  border-left: 4px solid var(--protocol-re);
}

.game-summary-player--kontra {
  border-left: 4px solid var(--protocol-kontra);
}

.game-summary__parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px 19px;
}

.game-summary-party {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: baseline;
  gap: 9px;
  padding: 12px 15px;
  border-radius: 10px;
}

.game-summary-party > span {
  font-weight: 950;
}

.game-summary-party strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.game-summary-party small {
  color: #4e6157;
}

.game-summary-party--re {
  color: var(--protocol-re);
  background: var(--protocol-re-soft);
}

.game-summary-party--kontra {
  color: var(--protocol-kontra);
  background: var(--protocol-kontra-soft);
}

.game-summary-party.is-winner {
  box-shadow: inset 0 0 0 2px currentcolor;
}

.game-summary__details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 18px;
  padding: 14px 20px 17px;
  border-top: 1px solid var(--cream-300);
  color: #405a4c;
  background: #faf8f0;
  font-size: 0.84rem;
}

.game-summary__details a {
  color: var(--green-800);
  font-weight: 850;
}

.game-summary__details summary {
  cursor: pointer;
}

.game-summary__details p,
.game-summary__details ul {
  margin: 0;
}

.game-protocol-section,
.game-protocol-warnings {
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid var(--cream-300);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgb(34 52 40 / 7%);
}

.game-protocol-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.game-protocol-share > div:first-child {
  flex: 1 1 480px;
}

.game-protocol-action-result {
  display: grid;
  flex: 1 0 100%;
  gap: 3px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #d2d9d4;
  border-left: 4px solid var(--green-700);
  border-radius: 8px;
  color: #24513a;
  background: #f3faf5;
}

.game-protocol-action-result[hidden] {
  display: none;
}

.game-protocol-action-result a {
  overflow-wrap: anywhere;
  color: var(--green-800);
  font-weight: 850;
}

.game-protocol-action-result--warning,
.game-protocol-action-result--loading {
  border-color: #d9c277;
  border-left-color: var(--gold);
  color: #5d4b12;
  background: #fff9e3;
}

.game-protocol-action-result--danger {
  border-color: #d69b95;
  border-left-color: #a33831;
  color: #752720;
  background: #fff1ef;
}

.game-protocol-share p,
.game-protocol-section > header p {
  margin: 0;
}

.game-protocol-comments {
  display: grid;
  gap: 13px;
}

.game-comment {
  display: grid;
  gap: 9px;
  padding: 14px 16px;
  border: 1px solid #e0ddd2;
  border-radius: 10px;
  background: #fffdf9;
}

.game-comment > header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-comment > header div {
  display: grid;
}

.game-comment > header small {
  color: var(--muted);
}

.game-comment > p {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.game-comment--deleted {
  opacity: 0.74;
}

.game-protocol-text-button {
  padding: 0;
  border: 0;
  color: #8a2d27;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.game-comment-form {
  display: grid;
  gap: 9px;
  margin-top: 5px;
  padding-top: 15px;
  border-top: 1px solid var(--cream-300);
}

.game-comment-form label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--green-950);
  font-weight: 900;
}

.game-comment-form label span {
  color: var(--muted);
  font-size: 0.75rem;
}

.game-comment-form textarea {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid #aebbb3;
  border-radius: 8px;
  color: #213c2e;
  background: #fff;
  font: inherit;
}

.game-comment-form .game-protocol-button {
  justify-self: start;
}

.game-protocol-empty {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.game-protocol-moderation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.game-protocol-moderation-grid article {
  padding: 16px;
  border: 1px solid #dccdc3;
  border-radius: 10px;
  background: #fffaf7;
}

.game-protocol-moderation-grid h3 {
  margin: 0 0 5px;
  color: #67302b;
}

.game-protocol-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0 12px;
  color: #5f312d;
  font-weight: 800;
  line-height: 1.35;
}

.game-protocol-confirmation input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: #8d312a;
}

.game-protocol-correction {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 11px;
  border: 1px solid #d6b4ae;
  border-radius: 8px;
  color: #6f2c27;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.game-protocol-correction span {
  color: #765b57;
  font-size: 0.75rem;
}

.game-protocol-moderation-grid form[aria-busy="true"] button,
.game-protocol-moderation-grid button:disabled,
.game-protocol-share form[aria-busy="true"] button {
  cursor: wait;
  opacity: 0.72;
}

.game-protocol-chat > summary,
.game-protocol-warnings > summary {
  color: var(--green-950);
  cursor: pointer;
  font-weight: 900;
}

.game-chat-log {
  display: grid;
  gap: 5px;
  margin-top: 15px;
}

.game-chat-log p {
  display: grid;
  grid-template-columns: 66px 150px minmax(0, 1fr);
  gap: 9px;
  margin: 0;
  padding: 7px 9px;
  border-radius: 6px;
  background: #f5f7f5;
}

.game-chat-log time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.game-chat-log span {
  overflow-wrap: anywhere;
}

.game-protocol-page .site-shell {
  width: min(1380px, calc(100% - 40px));
}

.game-protocol-layout,
.game-protocol-content,
.game-log-viewer,
.game-log-panel,
.game-table-viewport,
.trick-overview,
.game-hands {
  min-width: 0;
  max-width: 100%;
}

.game-log-viewer,
.game-hands {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--cream-300);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgb(34 52 40 / 8%);
}

.game-log-viewer__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid #ded9ca;
  background: #fffdf8;
}

.game-log-viewer__toolbar h2 {
  margin: 0;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.game-log-view-switch {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid #cfd7d1;
  border-radius: 9px;
  background: #edf2ee;
}

.game-log-view-switch button {
  min-height: 44px;
  padding: 8px 15px;
  border: 0;
  border-radius: 7px;
  color: #4c5e53;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.game-log-view-switch button[aria-pressed="true"],
.game-log-view-switch button.is-active {
  color: #fff;
  background: var(--green-800);
  box-shadow: 0 3px 7px rgb(7 95 49 / 20%);
}

.game-log-timing-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #244333;
  cursor: pointer;
  font-weight: 850;
}

.game-log-timing-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.game-log-timing-switch i {
  position: relative;
  display: block;
  width: 50px;
  height: 28px;
  flex: 0 0 auto;
  border: 2px solid #9ba89f;
  border-radius: 999px;
  background: #dce2de;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.game-log-timing-switch i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgb(0 0 0 / 22%);
  content: "";
  transition: transform 160ms ease;
}

.game-log-timing-switch input:checked + i {
  border-color: var(--green-700);
  background: var(--green-700);
}

.game-log-timing-switch input:checked + i::after {
  transform: translateX(22px);
}

.game-log-timing-switch input:focus-visible + i {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.game-log-panel {
  padding: 20px 22px 24px;
}

.game-log-panel[hidden] {
  display: none !important;
}

.game-log-panel--evaluation {
  min-height: 360px;
  background:
    radial-gradient(circle at 92% 6%, rgb(204 170 76 / 14%), transparent 27%),
    linear-gradient(155deg, #fffefa 0%, #f6f3e9 100%);
}

.game-evaluation {
  display: grid;
  width: min(100%, 980px);
  gap: 18px;
  margin-inline: auto;
}

.game-evaluation__header {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(330px, 1.2fr);
  align-items: center;
  gap: 20px;
  padding: 18px;
  border: 1px solid #d8d2bd;
  border-radius: 13px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 7px 22px rgb(32 52 40 / 8%);
}

.game-evaluation__header h3 {
  margin: 2px 0 0;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(calc(1.25rem + 3px), calc(2vw + 3px), calc(1.8rem + 3px));
  line-height: 1.12;
}

.game-evaluation .game-data-eyebrow {
  font-size: calc(0.72rem + 2px);
}

.game-evaluation__headline-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.game-evaluation__metric {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 2px;
  padding: 11px 13px;
  border: 1px solid #d8dfda;
  border-radius: 10px;
  color: #294737;
  background: #f4f7f4;
}

.game-evaluation__metric--re {
  border-color: #d9aeb9;
  color: #74283b;
  background: var(--protocol-re-soft);
}

.game-evaluation__metric--kontra {
  border-color: #a9d0d1;
  color: #105c61;
  background: var(--protocol-kontra-soft);
}

.game-evaluation__metric > span,
.game-evaluation__metric small {
  font-size: calc(0.72rem + 3px);
  line-height: 1.25;
}

.game-evaluation__metric > span {
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.game-evaluation__metric strong {
  overflow-wrap: anywhere;
  font-size: calc(1.3rem + 3px);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.game-evaluation__metric small {
  color: inherit;
  opacity: 0.78;
}

.game-evaluation__items,
.game-evaluation__players {
  min-width: 0;
}

.game-evaluation__items > header,
.game-evaluation__players > h4 {
  margin: 0 0 9px;
  color: var(--green-950);
}

.game-evaluation__items > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.game-evaluation__items h4,
.game-evaluation__players h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(1.08rem + 3px);
}

.game-evaluation__items ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-evaluation-item {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #d8dfda;
  border-left: 4px solid #87978d;
  border-radius: 9px;
  background: rgb(255 255 255 / 88%);
}

.game-evaluation-item--re {
  border-left-color: var(--protocol-re);
}

.game-evaluation-item--kontra {
  border-left-color: var(--protocol-kontra);
}

.game-evaluation-item > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.game-evaluation-item__category {
  color: #617369;
  font-size: calc(0.67rem + 3px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-evaluation-item strong,
.game-evaluation-item small {
  overflow-wrap: anywhere;
}

.game-evaluation-item strong {
  color: #203d2d;
  font-size: calc(0.88rem + 3px);
  line-height: 1.2;
}

.game-evaluation-item > div > small {
  color: #64756b;
  font-size: calc(0.69rem + 3px);
  line-height: 1.25;
}

.game-evaluation-item__points {
  display: grid;
  min-width: 36px;
  justify-items: end;
  color: var(--green-950);
  font-size: calc(1.12rem + 3px);
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.game-evaluation-item__points small {
  margin-top: 3px;
  font-size: calc(0.59rem + 3px);
  letter-spacing: 0.05em;
}

.game-evaluation__empty {
  margin: 0;
  padding: 13px 14px;
  border: 1px dashed #bac5bd;
  border-radius: 9px;
  color: #5d7065;
  background: rgb(255 255 255 / 68%);
  font-size: calc(1rem + 2px);
}

.game-evaluation__players > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.game-evaluation-player {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid #d8dfda;
  border-radius: 9px;
  background: rgb(255 255 255 / 88%);
}

.game-evaluation-player--re {
  border-color: #dfbdc5;
  background: var(--protocol-re-soft);
}

.game-evaluation-player--kontra {
  border-color: #b4d5d6;
  background: var(--protocol-kontra-soft);
}

.game-evaluation-player span {
  min-width: 0;
  overflow: hidden;
  font-size: calc(0.78rem + 3px);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-evaluation-player strong {
  flex: 0 0 auto;
  font-size: calc(1rem + 3px);
  font-variant-numeric: tabular-nums;
}

.trick-picker {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 18px;
}

.trick-picker__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(44px, 1fr));
  gap: 6px;
  min-width: 0;
}

.trick-picker__grid button,
.trick-picker__arrow {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cbd4ce;
  border-radius: 7px;
  color: #345044;
  background: #fff;
  cursor: pointer;
  font-weight: 950;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.trick-picker__grid button[aria-current="step"],
.trick-picker__grid button.is-active {
  border-color: var(--green-800);
  color: #fff;
  background: var(--green-800);
  box-shadow: 0 3px 7px rgb(7 95 49 / 18%);
}

.trick-picker__grid button:focus-visible,
.trick-picker__arrow:focus-visible,
.game-log-view-switch button:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

.trick-picker__arrow {
  padding: 0;
  font-size: 1.8rem;
  line-height: 1;
}

.trick-picker__arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

.trick-picker__keyboard-hint {
  display: none;
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.trick-picker__keyboard-hint kbd {
  display: inline-block;
  min-width: 1.65em;
  padding: 1px 5px;
  border: 1px solid #c8d0ca;
  border-bottom-width: 2px;
  border-radius: 4px;
  color: #2b4939;
  background: #fff;
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.game-table-viewport {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #cdd8d0;
  border-radius: 16px;
  background: #eef3ef;
  overscroll-behavior-inline: contain;
  scrollbar-color: #8aa393 #e3ebe5;
  scrollbar-width: thin;
}

.game-table-viewport:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.game-table-stage {
  position: relative;
  width: max(100%, var(--protocol-board-width));
  min-height: var(--protocol-board-height);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 58%) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgb(255 255 255 / 58%) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at center, #f8faf8, #e7eee9);
}

.game-seat {
  position: absolute;
  top: var(--protocol-seat-top, auto);
  right: var(--protocol-seat-right, auto);
  bottom: var(--protocol-seat-bottom, auto);
  left: var(--protocol-seat-left, auto);
  z-index: 10;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid #bfcfc4;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 7px 20px rgb(25 46 32 / 13%);
  transform: var(--protocol-seat-transform, none);
}

.game-seat--north,
.game-seat--south {
  width: var(--protocol-top-seat-width);
  min-height: 185px;
}

.game-seat--north {
  --protocol-seat-top: 12px;
  --protocol-seat-left: 50%;
  --protocol-seat-transform: translateX(-50%);
}

.game-seat--south {
  --protocol-seat-bottom: 12px;
  --protocol-seat-left: 50%;
  --protocol-seat-transform: translateX(-50%);
}

.game-seat--west,
.game-seat--east {
  width: var(--protocol-side-seat-width);
  min-height: 292px;
}

.game-seat--west {
  --protocol-seat-top: 50%;
  --protocol-seat-left: 12px;
  --protocol-seat-transform: translateY(-50%);
}

.game-seat--east {
  --protocol-seat-top: 50%;
  --protocol-seat-right: 12px;
  --protocol-seat-transform: translateY(-50%);
}

.game-seat.is-winner {
  border-color: #daa91e;
  box-shadow: 0 0 0 4px rgb(221 163 0 / 17%), 0 10px 26px rgb(25 46 32 / 18%);
}

.game-type-badge {
  position: absolute;
  z-index: 24;
  max-width: min(260px, calc(100% - 30px));
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 8px;
  color: #fff;
  background: rgb(5 76 42 / 91%);
  box-shadow: 0 4px 12px rgb(0 38 21 / 18%);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.1;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-seat__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
}

.game-seat__identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.game-seat__name {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #173d29;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-seat__party {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.game-seat__party--re {
  color: var(--protocol-re);
  background: var(--protocol-re-soft);
}

.game-seat__party--kontra {
  color: var(--protocol-kontra);
  background: var(--protocol-kontra-soft);
}

.game-seat__party--solo {
  color: #6f520d;
  background: #fff2c9;
}

.game-seat__announcements {
  display: flex;
  min-width: 0;
  min-height: 27px;
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.game-seat__announcements::-webkit-scrollbar {
  display: none;
}

.game-seat__announcement {
  display: inline-flex;
  min-height: 24px;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid #d4b552;
  border-radius: 999px;
  color: #745714;
  background: #fff7d8;
  font-size: 0.7rem;
  font-weight: 950;
  white-space: nowrap;
}

.game-seat__announcement small {
  color: #88754a;
  font-size: 0.6rem;
}

.game-seat__live-announcements {
  display: inline-flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
}

.game-protocol:not([data-compact-focus]) .game-seat__announcement--live {
  border-color: #e0b229;
  color: #805010;
  background: rgb(255 252 239 / 98%);
  box-shadow: 0 2px 7px rgb(0 35 20 / 16%);
}

.game-seat__hand {
  display: grid;
  min-width: 0;
  margin: auto 0 0;
  padding: 5px 4px 3px;
  list-style: none;
}

.game-seat--north .game-seat__hand,
.game-seat--south .game-seat__hand {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
}

.game-seat--west .game-seat__hand,
.game-seat--east .game-seat__hand {
  grid-template-columns: repeat(6, var(--protocol-hand-card-width));
  grid-template-rows: repeat(2, var(--protocol-hand-card-height));
  align-content: center;
  justify-content: center;
  gap: 4px 1px;
  margin-top: 0;
  padding-right: 0;
  padding-left: 0;
}

.game-seat__card {
  position: relative;
  display: block;
  width: var(--protocol-hand-card-width);
  height: var(--protocol-hand-card-height);
  min-width: 0;
  transition: transform 140ms ease, opacity 140ms ease, filter 140ms ease;
}

.game-seat__card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 20%));
}

.game-seat__card.is-played img {
  filter: grayscale(0.7) opacity(0.32) drop-shadow(0 1px 2px rgb(0 0 0 / 14%));
}

.game-seat__card.is-current {
  z-index: 2;
  transform: translateY(-6px) scale(1.06);
}

.game-seat__card.is-current img {
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px #dfb331) drop-shadow(0 4px 4px rgb(0 0 0 / 23%));
}

.move-time {
  display: none;
  color: #495b50;
  font-size: 0.66rem;
  font-weight: 900;
}

.game-protocol.show-move-times .move-time {
  display: inline-block;
}

.game-seat__card > .move-time,
.trick-stack__card > .move-time {
  position: absolute;
  right: -3px;
  bottom: -4px;
  z-index: 4;
  margin: 0;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 1px 4px rgb(0 0 0 / 16%);
}

.game-felt {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: var(--protocol-felt-width);
  height: var(--protocol-felt-height);
  transform: translate(-50%, -50%);
  border: 8px solid #6b4e31;
  border-radius: 43%;
  background:
    radial-gradient(circle at 48% 42%, rgb(255 255 255 / 8%), transparent 30%),
    radial-gradient(circle at center, #167a45, #075b31 76%);
  box-shadow:
    inset 0 0 0 3px #a98355,
    inset 0 0 40px rgb(0 0 0 / 28%),
    0 12px 25px rgb(20 38 27 / 23%);
}

.game-felt__line {
  position: absolute;
  inset: 18px;
  border: 2px solid rgb(240 194 65 / 22%);
  border-radius: inherit;
  pointer-events: none;
}

.team-score {
  position: absolute;
  z-index: 20;
  display: grid;
  min-width: 88px;
  padding: 6px 10px;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 5px 14px rgb(0 30 18 / 24%);
  line-height: 1;
  text-shadow: 0 1px 2px rgb(0 0 0 / 24%);
}

.team-score small {
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.team-score strong {
  margin: 2px 0;
  font-size: 2rem;
  font-weight: 1000;
}

.team-score span {
  font-size: 0.68rem;
  opacity: 0.9;
}

.team-score--re {
  top: auto;
  bottom: var(--protocol-team-score-inline-inset);
  left: var(--protocol-team-score-inline-inset);
  background: rgb(143 51 72 / 93%);
}

.team-score--kontra {
  top: var(--protocol-team-score-inline-inset);
  right: var(--protocol-team-score-inline-inset);
  transform: none;
  background: rgb(23 107 112 / 93%);
  text-align: right;
}

.central-trick {
  --trick-card-width: 84px;
  --trick-card-height: 120px;
  --trick-card-half-height: 60px;
  --trick-horizontal-offset: 34px;
  --trick-vertical-offset: 48px;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 22;
  width: 240px;
  height: 250px;
  transform: translate(-50%, -50%);
}

.trick-stack {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trick-stack__card {
  position: absolute;
  top: calc(50% + var(--trick-offset-y, 0px));
  left: calc(50% + var(--trick-offset-x, 0px));
  z-index: calc(8 + var(--play-layer));
  width: var(--trick-card-width);
  height: var(--trick-card-height);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 5px 5px rgb(0 0 0 / 31%));
}

.trick-stack__card--south {
  --trick-offset-y: var(--trick-vertical-offset);
}

.trick-stack__card--west {
  --trick-offset-x: calc(0px - var(--trick-horizontal-offset));
}

.trick-stack__card--north {
  --trick-offset-y: calc(0px - var(--trick-vertical-offset));
}

.trick-stack__card--east {
  --trick-offset-x: var(--trick-horizontal-offset);
}

.trick-stack__card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: contain;
}

.trick-stack__card.is-lead-card img {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 9px var(--gold-light)) drop-shadow(0 5px 5px rgb(0 0 0 / 28%));
}

.winner-arrow {
  --winner-target-x: 50%;
  --winner-target-y: 50%;
  position: absolute;
  top: calc(var(--winner-target-y) - 10px);
  left: calc(var(--winner-target-x) - 46px);
  z-index: 40;
  width: 46px;
  height: 20px;
  transform: rotate(var(--winner-rotation, 0deg));
  transform-origin: 46px 10px;
  pointer-events: none;
}

.winner-arrow[hidden] {
  display: none;
}

.winner-arrow::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 36px;
  height: 6px;
  border-radius: 999px;
  background: #f4c43e;
  box-shadow: 0 0 0 2px rgb(0 50 28 / 48%), 0 2px 6px rgb(0 0 0 / 32%);
  content: "";
}

.winner-arrow::after {
  position: absolute;
  top: 0;
  left: 29px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 17px solid #f4c43e;
  content: "";
  filter: drop-shadow(2px 1px 0 rgb(0 50 28 / 55%));
}

.live-announcements {
  position: absolute;
  inset: 0;
  z-index: 44;
  pointer-events: none;
}

.live-announcements[hidden] {
  display: none;
}

.live-announcement-track {
  position: absolute;
  top: var(--protocol-live-top, auto);
  right: var(--protocol-live-right, auto);
  bottom: var(--protocol-live-bottom, auto);
  left: var(--protocol-live-left, auto);
  display: flex;
  flex-direction: var(--protocol-live-direction, row);
  gap: 5px;
  transform: var(--protocol-live-transform, none);
}

.live-announcement-track--seat-0 {
  --protocol-live-top: calc(
    50% + var(--trick-card-half-height) + var(--trick-vertical-offset) + var(--protocol-live-block-gap)
  );
  --protocol-live-left: 50%;
  --protocol-live-direction: column;
  --protocol-live-transform: translateX(-50%);
}

.live-announcement-track--seat-1 {
  --protocol-live-top: calc(50% - var(--protocol-live-side-lift));
  --protocol-live-right: calc(50% + var(--protocol-live-side-anchor));
  --protocol-live-direction: column;
}

.live-announcement-track--seat-2 {
  --protocol-live-bottom: calc(
    50% + var(--trick-card-half-height) + var(--trick-vertical-offset) + var(--protocol-live-block-gap)
  );
  --protocol-live-left: 50%;
  --protocol-live-direction: column-reverse;
  --protocol-live-transform: translateX(-50%);
}

.live-announcement-track--seat-3 {
  --protocol-live-top: calc(50% - var(--protocol-live-side-lift));
  --protocol-live-left: calc(50% + var(--protocol-live-side-anchor));
  --protocol-live-direction: column;
}

/* Im normalen Aufbau nutzt die Ereignisebene dieselbe zentrierte Geometrie
 * wie der Filz. Alle vier Sitzrichtungen bleiben in jeder Ausrichtung auf
 * dieser Ebene sichtbar. */
.game-protocol:not([data-compact-focus]) .live-announcements {
  inset: auto;
  top: 50%;
  left: 50%;
  width: var(--protocol-felt-width);
  height: var(--protocol-felt-height);
  transform: translate(-50%, -50%);
}

.live-announcement {
  position: relative;
  display: grid;
  min-width: 104px;
  max-width: 126px;
  gap: 1px;
  padding: 6px 8px;
  border: 2px solid #e0b229;
  border-radius: 12px;
  color: #294637;
  background: rgb(255 252 239 / 98%);
  box-shadow: 0 8px 20px rgb(0 35 20 / 25%);
  line-height: 1.12;
}

.live-announcement strong {
  color: #805010;
  font-size: 0.9rem;
}

.live-announcement .move-time {
  margin-top: 2px;
}

.trick-overview {
  width: min(100%, 780px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #d9dfda;
  border-radius: 10px;
}

.trick-overview__row {
  display: grid;
  grid-template-columns: 54px repeat(4, minmax(105px, 1fr)) 96px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e0e4e1;
  border-radius: 0;
  color: inherit;
  background: #fff;
  font: inherit;
  text-align: inherit;
}

button.trick-overview__row {
  cursor: pointer;
}

button.trick-overview__row:hover,
button.trick-overview__row:focus-visible {
  background: #f1f7f2;
}

button.trick-overview__row.is-static,
button.trick-overview__row.is-static:disabled {
  cursor: default;
  opacity: 1;
}

button.trick-overview__row.is-static:hover {
  background: #fff;
}

button.trick-overview__row.is-static:nth-child(odd):not(.trick-overview__row--head):hover {
  background: #fafbf9;
}

.trick-overview__row:last-child {
  border-bottom: 0;
}

.trick-overview__row:nth-child(odd):not(.trick-overview__row--head) {
  background: #fafbf9;
}

.trick-overview__row--head {
  position: sticky;
  top: 0;
  z-index: 3;
  color: #fff;
  background: var(--green-900);
}

.trick-overview__row--game-type,
.trick-overview__row--game-type:nth-child(odd) {
  grid-template-columns: minmax(0, 1fr);
  color: #244333;
  background: #f6f0d8;
}

.trick-overview__row--game-type .trick-overview__cell--game-type {
  grid-column: 1 / -1;
  min-height: 44px;
  justify-content: flex-start;
  padding: 8px 14px;
  border-right: 0;
  font-weight: 950;
  text-align: left;
}

.trick-overview__cell {
  display: flex;
  min-width: 0;
  min-height: 126px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 4px;
  border-right: 1px solid #e0e4e1;
  text-align: center;
}

.trick-overview__row--head .trick-overview__cell {
  min-height: 50px;
  border-color: rgb(255 255 255 / 15%);
  font-size: calc(0.82rem + 1px);
  font-weight: 900;
}

.trick-overview__cell:last-child {
  border-right: 0;
}

.trick-overview__cell--number,
.trick-overview__cell--result {
  flex-direction: column;
}

.trick-overview__cell--number {
  position: sticky;
  left: 0;
  z-index: 2;
  color: #53635a;
  background: inherit;
  box-shadow: 4px 0 8px rgb(25 46 32 / 6%);
  font-weight: 950;
}

.trick-overview__row--head .trick-overview__cell--number {
  z-index: 4;
  color: #fff;
}

.trick-overview__card {
  position: relative;
  display: inline-flex;
  width: var(--protocol-overview-card-width);
  max-width: var(--protocol-overview-card-width);
  align-items: center;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.trick-overview__card img {
  width: var(--protocol-overview-image-width);
  max-width: none;
  height: var(--protocol-overview-image-height);
  max-height: none;
  margin-right: calc(0px - var(--protocol-overview-card-width));
  margin-bottom: calc(var(--protocol-overview-card-height) - var(--protocol-overview-image-height));
  border-radius: 5px;
  clip-path: inset(0 60% 70% 0);
  object-fit: fill;
  object-position: top left;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 16%));
}

.trick-overview__card.is-lead-card img {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
}

.trick-overview__event {
  display: inline-flex;
  max-width: 100%;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  color: #876315;
  font-size: calc(0.68rem + 2px);
  font-style: normal;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
}

.trick-overview__event .move-time {
  flex: 0 0 auto;
  color: #6f6650;
  font-size: 0.58rem;
}

.game-hands > summary {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  background: #fffdf8;
  cursor: pointer;
  list-style: none;
}

.game-hands > summary::-webkit-details-marker {
  display: none;
}

.game-hands > summary span {
  display: flex;
  flex-direction: column;
}

.game-hands > summary small {
  color: #9b7114;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.game-hands > summary strong {
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.game-hands__toolbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 270px) minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
  padding: 13px 22px;
  border-top: 1px solid #e2ded1;
  border-bottom: 1px solid #e2ded1;
  color: #51655a;
  background: #edf5ef;
}

.game-hands__toolbar label {
  color: #244333;
  font-weight: 900;
}

.game-hands__toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 8px 34px 8px 12px;
  border: 1px solid #bfcac2;
  border-radius: 8px;
  color: #244333;
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.game-hands__toolbar p {
  margin: 0;
  font-size: 0.86rem;
}

.game-hands__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 22px 24px;
}

.game-hand-panel {
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid #d8ddd9;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff, #f7f8f5);
}

.game-hand-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-hand-panel__header strong {
  min-width: 0;
  overflow: hidden;
  color: #234832;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-hand-panel__party {
  flex: 0 0 auto;
  color: #785b18;
  font-size: 0.78rem;
  font-weight: 950;
}

.game-hand-panel__cards {
  display: flex;
  min-height: 118px;
  align-items: flex-end;
  margin-top: 12px;
  padding: 7px 5px 3px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
}

.game-hand-panel__card {
  position: relative;
  display: block;
  width: 69px;
  height: 99px;
  flex: 0 0 auto;
}

.game-hand-panel__card + .game-hand-panel__card {
  margin-left: -37px;
}

.game-hand-panel__card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgb(0 0 0 / 17%));
}

@media (hover: hover) and (pointer: fine) {
  .trick-picker__keyboard-hint {
    display: block;
  }

  .trick-picker__grid button:not(.is-active):not([aria-current="step"]):hover,
  .trick-picker__arrow:hover {
    border-color: var(--green-700);
    background: #f1f7f2;
  }
}

@media (max-width: 1180px) {
  .game-protocol {
    --protocol-board-width: 1040px;
    --protocol-board-height: 720px;
    --protocol-hand-card-width: 53px;
    --protocol-hand-card-height: 76px;
    --protocol-side-seat-width: 350px;
    --protocol-top-seat-width: 590px;
    --protocol-felt-width: 390px;
    --protocol-felt-height: 300px;
    --protocol-felt-half-width: 195px;
  }

  .game-protocol-page .site-shell {
    width: min(1180px, calc(100% - 24px));
  }

}

@media (max-width: 1040px) {
  .game-seat--west,
  .game-seat--east {
    min-height: 260px;
  }

  .game-log-viewer__toolbar {
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .game-log-viewer__toolbar > div:first-child {
    flex: 1 1 100%;
  }

  .trick-picker__grid {
    grid-template-columns: repeat(6, minmax(44px, 1fr));
  }

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

/*
 * Im Tablet-Hochkantmodus sind West und Ost die um -90 beziehungsweise +90
 * Grad abgeleiteten Gegenstuecke von Nord. Ihre Kopf- und Ansagezeilen drehen
 * vollstaendig mit; die Karten selbst bleiben aufrecht und bilden 2 x 6.
 * Alle vier Sitze werden von derselben Tischmitte und demselben Filzabstand
 * abgeleitet. Breitbild und das kompakte Wiki-Inlay bleiben unveraendert.
 */
@media (orientation: portrait) and (min-width: 761px) and (max-width: 1040px) {
  .game-protocol:not([data-compact-focus]) {
    --protocol-board-width: 800px;
    --protocol-board-height: 814px;
    --protocol-hand-card-width: 44px;
    --protocol-hand-card-height: 63px;
    --protocol-side-card-width: var(--protocol-hand-card-width);
    --protocol-side-card-height: var(--protocol-hand-card-height);
    --protocol-felt-width: 350px;
    --protocol-felt-height: 300px;
    --protocol-felt-half-width: 175px;
    --protocol-side-seat-width: 165px;
    --protocol-side-seat-height: 412px;
    --protocol-side-hand-width: 90px;
    --protocol-side-hand-height: 388px;
    --protocol-side-meta-length: 400px;
    --protocol-seat-felt-gap: 4px;
  }

  .game-protocol:not([data-compact-focus]) .game-seat--north,
  .game-protocol:not([data-compact-focus]) .game-seat--south {
    height: 185px;
    min-height: 185px;
  }

  .game-protocol:not([data-compact-focus]) .game-seat--west,
  .game-protocol:not([data-compact-focus]) .game-seat--east {
    top: calc((var(--protocol-board-height) - var(--protocol-side-seat-height)) / 2);
    right: var(--protocol-side-seat-right);
    bottom: auto;
    left: var(--protocol-side-seat-left);
    width: var(--protocol-side-seat-width);
    height: var(--protocol-side-seat-height);
    min-height: 0;
    gap: 0;
    padding: 0;
    overflow: hidden;
    transform: none;
  }

  .game-protocol:not([data-compact-focus]) .game-seat--west {
    --protocol-side-seat-right: calc(
      50% + var(--protocol-felt-half-width) + var(--protocol-seat-felt-gap)
    );
    --protocol-side-seat-left: auto;
    --protocol-side-header-left: 20px;
    --protocol-side-meta-left: 50px;
    --protocol-side-rotation: -90deg;
    --protocol-side-hand-right: 6px;
    --protocol-side-hand-left: auto;
  }

  .game-protocol:not([data-compact-focus]) .game-seat--east {
    --protocol-side-seat-right: auto;
    --protocol-side-seat-left: calc(
      50% + var(--protocol-felt-half-width) + var(--protocol-seat-felt-gap)
    );
    --protocol-side-header-left: calc(100% - 20px);
    --protocol-side-meta-left: calc(100% - 50px);
    --protocol-side-rotation: 90deg;
    --protocol-side-hand-right: auto;
    --protocol-side-hand-left: 6px;
  }

  .game-protocol:not([data-compact-focus]) .game-seat--west .game-seat__header,
  .game-protocol:not([data-compact-focus]) .game-seat--east .game-seat__header {
    position: absolute;
    top: 50%;
    left: var(--protocol-side-header-left);
    z-index: 3;
    width: var(--protocol-side-meta-length);
    height: 32px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    transform: translate(-50%, -50%) rotate(var(--protocol-side-rotation));
  }

  .game-protocol:not([data-compact-focus]) .game-seat--west .game-seat__identity,
  .game-protocol:not([data-compact-focus]) .game-seat--east .game-seat__identity {
    gap: 8px;
  }

  .game-protocol:not([data-compact-focus]) .game-seat--west .player-avatar--compact,
  .game-protocol:not([data-compact-focus]) .game-seat--east .player-avatar--compact {
    width: 32px;
    height: 32px;
    font-size: 0.86rem;
  }

  .game-protocol:not([data-compact-focus]) .game-seat--west .game-seat__party,
  .game-protocol:not([data-compact-focus]) .game-seat--east .game-seat__party {
    position: static;
    min-height: 28px;
    padding: 3px 10px;
    font-size: 0.76rem;
  }

  .game-protocol:not([data-compact-focus]) .game-seat--west .game-seat__announcements,
  .game-protocol:not([data-compact-focus]) .game-seat--east .game-seat__announcements {
    position: absolute;
    top: 50%;
    left: var(--protocol-side-meta-left);
    z-index: 2;
    width: var(--protocol-side-meta-length);
    height: 27px;
    min-height: 27px;
    flex-direction: row;
    transform: translate(-50%, -50%) rotate(var(--protocol-side-rotation));
  }

  .game-protocol:not([data-compact-focus]) .game-seat--west .game-seat__live-announcements,
  .game-protocol:not([data-compact-focus]) .game-seat--east .game-seat__live-announcements {
    flex-direction: row;
  }

  .game-protocol:not([data-compact-focus]) .game-seat--west .game-seat__announcement,
  .game-protocol:not([data-compact-focus]) .game-seat--east .game-seat__announcement {
    min-height: 24px;
    padding: 2px 8px;
    font-size: 0.7rem;
  }

  .game-protocol:not([data-compact-focus]) .game-seat--west .game-seat__hand,
  .game-protocol:not([data-compact-focus]) .game-seat--east .game-seat__hand {
    position: absolute;
    top: 12px;
    right: var(--protocol-side-hand-right);
    bottom: auto;
    left: var(--protocol-side-hand-left);
    width: var(--protocol-side-hand-width);
    height: var(--protocol-side-hand-height);
    flex: 0 0 var(--protocol-side-hand-height);
    grid-template-columns: repeat(2, var(--protocol-side-card-width));
    grid-template-rows: repeat(6, var(--protocol-side-card-height));
    grid-auto-flow: row;
    align-content: start;
    justify-content: start;
    gap: 2px;
    margin: 0;
    padding: 0;
  }

  .game-protocol:not([data-compact-focus]) .game-seat--west .game-seat__card.is-current,
  .game-protocol:not([data-compact-focus]) .game-seat--east .game-seat__card.is-current {
    transform: translateY(-3px);
  }

  .game-protocol:not([data-compact-focus]) .winner-arrow--seat-1,
  .game-protocol:not([data-compact-focus]) .winner-arrow--seat-3 {
    top: calc(var(--winner-target-y) - 7px);
    left: calc(var(--winner-target-x) - 25px);
    width: 25px;
    height: 14px;
    transform-origin: 25px 7px;
    background: #f4c43e;
    clip-path: polygon(0 36%, 66% 36%, 66% 0, 100% 50%, 66% 100%, 66% 64%, 0 64%);
    filter: drop-shadow(0 0 1px rgb(0 50 28 / 70%)) drop-shadow(0 2px 2px rgb(0 0 0 / 24%));
  }

  .game-protocol:not([data-compact-focus]) .winner-arrow--seat-1::before,
  .game-protocol:not([data-compact-focus]) .winner-arrow--seat-1::after,
  .game-protocol:not([data-compact-focus]) .winner-arrow--seat-3::before,
  .game-protocol:not([data-compact-focus]) .winner-arrow--seat-3::after {
    display: none;
  }

  .game-protocol:not([data-compact-focus]) .game-log-panel[data-view-panel="focus"] {
    padding-inline: 8px;
  }
}

@media (max-width: 760px) {
  .game-protocol {
    --protocol-overview-card-width: 60px;
    --protocol-overview-card-height: 67px;
    --protocol-overview-image-width: 150px;
    --protocol-overview-image-height: 223px;
  }

  .game-protocol-page .site-shell {
    width: 100%;
  }

  .game-protocol {
    --protocol-board-width: 900px;
    --protocol-board-height: 680px;
    --protocol-hand-card-width: 44px;
    --protocol-hand-card-height: 63px;
    --protocol-side-seat-width: 294px;
    --protocol-top-seat-width: 500px;
  }

  .game-log-viewer__toolbar {
    align-items: stretch;
    padding: 17px 14px;
  }

  .game-log-view-switch button[data-view-button="focus"],
  .game-log-panel[data-view-panel="focus"] {
    display: none !important;
  }

  .game-log-view-switch {
    display: inline-flex;
    width: 100%;
  }

  .game-log-view-switch button:not([data-view-button="focus"]) {
    flex: 1 1 0;
  }

  .game-evaluation__header {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .game-evaluation__items ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-evaluation__players > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-log-timing-switch {
    justify-content: space-between;
    width: 100%;
    padding-top: 9px;
    border-top: 1px solid #e1ded4;
  }

  .game-log-panel {
    padding: 13px 8px 18px;
  }

  .trick-picker {
    grid-template-areas:
      "buttons buttons"
      "previous next";
    grid-template-columns: 44px 44px;
    justify-content: space-between;
    gap: 7px;
  }

  .trick-picker__grid {
    grid-area: buttons;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
  }

  .trick-picker__grid button {
    min-width: 0;
    padding-inline: 2px;
  }

  .trick-picker__arrow--previous { grid-area: previous; }
  .trick-picker__arrow--next { grid-area: next; justify-self: end; }

  .game-table-viewport {
    border-radius: 11px;
  }

  .game-felt {
    width: 330px;
    height: 270px;
    border-width: 6px;
  }

  .team-score {
    min-width: 82px;
    padding: 6px 8px;
  }

  .team-score strong {
    font-size: 1.85rem;
  }

  .central-trick {
    --trick-card-width: 76px;
    --trick-card-height: 109px;
    --trick-card-half-height: 54.5px;
    --trick-horizontal-offset: 31px;
    --trick-vertical-offset: 44px;
    width: 220px;
    height: 232px;
  }

  .game-hands > summary {
    padding-inline: 16px;
  }

  .game-hands__toolbar {
    grid-template-columns: 1fr;
    padding: 13px 15px;
  }

  .game-hands__grid {
    padding: 14px 11px 18px;
  }

  .game-protocol:not([data-compact-focus]) .game-hand-panel__cards[data-card-count="12"] {
    display: grid;
    min-height: 212px;
    grid-template-columns: repeat(5, minmax(0, 1fr)) 69px;
    grid-template-rows: repeat(2, 99px);
    grid-auto-flow: row;
    align-items: end;
    gap: 4px 0;
    overflow-x: hidden;
  }

  .game-protocol:not([data-compact-focus])
    .game-hand-panel__cards[data-card-count="12"]
    .game-hand-panel__card + .game-hand-panel__card {
    margin-left: 0;
  }
}

@media (max-width: 400px) {
  .game-log-viewer,
  .game-hands {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .game-hands > summary strong {
    font-size: 1.42rem;
  }

  .game-evaluation__headline-values,
  .game-evaluation__players > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-log-timing-switch i,
  .game-log-timing-switch i::after,
  .game-seat__card {
    transition: none;
  }
}

@media (max-width: 1180px) {
  .game-protocol-layout {
    padding: 18px 18px 34px;
  }

  .game-protocol-page-heading {
    margin-left: 210px;
  }

  .game-summary__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-summary__facts div:nth-child(2) {
    border-right: 0;
  }

  .game-summary__facts div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--cream-300);
  }
}

@media (max-width: 880px) {
  .game-summary__players {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .game-protocol-layout {
    padding: 10px 10px 28px;
  }

  .game-protocol-page-heading {
    margin-left: 0;
  }

  .game-protocol-page-heading .competition-breadcrumb {
    display: none;
  }

  .game-protocol-heading {
    margin-bottom: 13px;
  }

  .game-summary__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-protocol-share {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .game-protocol-share > div:first-child,
  .game-protocol-share form,
  .game-protocol-share .game-protocol-action-result {
    min-width: 0;
    width: 100%;
  }

  .game-protocol-share .game-protocol-action-result {
    box-sizing: border-box;
    margin-top: 0;
  }

  .game-protocol-share .game-protocol-button {
    width: 100%;
  }

  .trick-overview__row {
    grid-template-columns: 34px repeat(4, minmax(0, 1fr));
  }

  .trick-overview__cell {
    min-height: 112px;
    gap: 2px;
    padding: 4px 2px;
    overflow: hidden;
    font-size: 0.68rem;
  }

  .trick-overview__row--head .trick-overview__cell {
    min-height: 44px;
    padding-inline: 2px;
    overflow: hidden;
    font-size: calc(0.61rem + 1px);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .trick-overview__card img {
    width: var(--protocol-overview-image-width);
    max-width: none;
    height: var(--protocol-overview-image-height);
    aspect-ratio: auto;
  }

  .trick-overview__event {
    display: grid;
    gap: 1px;
    font-size: calc(0.56rem + 2px);
  }

  .trick-overview__cell--result strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .trick-overview__cell--result small {
    font-size: 0.56rem;
  }

  .trick-overview__cell--result {
    display: none;
  }

  .game-summary__header {
    padding: 17px 15px 14px;
  }

  .game-summary__title {
    gap: 10px;
  }

  .game-summary__table-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 2.5rem;
  }

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

  .game-summary__facts div,
  .game-summary__facts div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--cream-300);
  }

  .game-summary__facts div:last-child {
    border-bottom: 0;
  }

  .game-summary__players {
    grid-template-columns: 1fr;
    padding: 14px 13px 9px;
  }

  .game-summary__parties {
    grid-template-columns: 1fr;
    padding: 0 13px 14px;
  }

  .game-summary__details {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 14px;
  }

  .game-protocol-section,
  .game-protocol-warnings {
    padding: 18px 15px;
  }

  .game-protocol-moderation-grid {
    grid-template-columns: 1fr;
  }

  .game-protocol-correction {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-chat-log p {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .game-chat-log span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 400px) {
  .game-protocol-layout {
    padding-inline: 0;
  }

  .game-protocol-page-heading,
  .game-protocol-notice,
  .game-protocol-state,
  .game-summary,
  .game-protocol-section,
  .game-protocol-warnings {
    margin-right: 8px;
    margin-left: 8px;
  }

  .game-summary,
  .game-protocol-section,
  .game-protocol-warnings {
    border-radius: 10px;
  }
}

@media print {
  .game-log-view-switch,
  .game-log-timing-switch,
  .trick-picker,
  .game-table-viewport {
    display: none !important;
  }

  .game-log-panel[data-view-panel="overview"],
  .game-log-panel[data-view-panel="evaluation"] {
    display: block !important;
  }

  .trick-overview {
    overflow: visible;
  }

  .trick-overview__row {
    min-width: 0;
    grid-template-columns: 54px repeat(4, 1fr) 88px;
  }
}
