/*
 * Kompakte, einbettbare Spielprotokollansicht fuer das 352 x 462 Pixel
 * grosse OlmiView-Iframe im Forum und auf doko-wissen.de. Alle fachlichen
 * Karten- und Ereignisdaten stammen aus dem normalen Spielprotokoll-Client.
 */

html,
body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #eef3ef;
}

.olmiview-shell {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.olmiview-state {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  gap: 5px;
  padding: 20px;
  color: #365345;
  text-align: center;
}

.olmiview-state strong {
  color: #003c20;
  font-family: var(--font-display);
  font-size: 1rem;
}

[data-game-protocol][data-compact-focus],
[data-game-protocol][data-compact-focus] * {
  box-sizing: border-box;
}

[data-game-protocol][data-compact-focus] {
  --protocol-board-width: 100%;
  --protocol-board-height: 100%;
  --protocol-hand-card-width: 35px;
  --protocol-hand-card-height: 37px;
  --protocol-hand-image-width: 88px;
  --protocol-hand-image-height: 124px;
  --protocol-overview-card-width: 52px;
  --protocol-overview-card-height: 56px;
  --protocol-overview-image-width: 128px;
  --protocol-overview-image-height: 188px;
  --protocol-side-seat-width: 37px;
  --protocol-live-block-gap: 2px;
  --protocol-live-side-anchor: 86px;
  --protocol-live-side-lift: 68px;
  width: min(100%, 352px);
  height: min(100%, 462px);
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  color: #1d392b;
  background: #eef3ef;
  font-size: 10px;
}

[data-game-protocol][data-compact-focus] .game-log-viewer {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: 42px minmax(0, 1fr);
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

[data-game-protocol][data-compact-focus] .game-log-viewer__toolbar {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 3px 4px;
  overflow: hidden;
  border-bottom: 1px solid #c9d3cc;
  background: #fffdf8;
}

[data-game-protocol][data-compact-focus] .game-log-viewer__toolbar > div:first-child,
[data-game-protocol][data-compact-focus] .game-log-timing-switch {
  display: none;
}

/* Die normale Website bleibt mobil beim Gesamtverlauf. Nur der explizite
 * Kompaktmodus darf im schmalen Wiki-Iframe zwischen beiden Ansichten wechseln. */
[data-game-protocol][data-compact-focus] .game-log-view-switch {
  display: inline-flex !important;
  width: 100%;
  max-width: 344px;
  height: 34px;
  padding: 2px;
  border-radius: 7px;
}

[data-game-protocol][data-compact-focus] .game-log-view-switch button {
  display: block !important;
  min-width: 0;
  min-height: 28px;
  flex: 1 1 0;
  padding: 3px 5px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.05;
}

[data-game-protocol][data-compact-focus] .game-log-panel {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 3px;
  overflow: hidden;
}

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

[data-game-protocol][data-compact-focus] .game-log-panel[data-view-panel="focus"]:not([hidden]) {
  display: grid !important;
  grid-template-rows: 29px minmax(0, 1fr);
}

[data-game-protocol][data-compact-focus] .game-log-panel[data-view-panel="overview"]:not([hidden]) {
  display: block !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

/* Das 352-x-462-Inlay nutzt dieselbe serverseitige Auswertung, aber mit einer
 * eigenen, scrollbar-kompakten Dichte. */
[data-game-protocol][data-compact-focus] .game-log-panel.game-log-panel--evaluation:not([hidden]) {
  display: block !important;
  padding: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

[data-game-protocol][data-compact-focus] .game-evaluation {
  gap: 8px;
}

[data-game-protocol][data-compact-focus] .game-evaluation__header {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  padding: 8px;
  border-radius: 8px;
}

[data-game-protocol][data-compact-focus] .game-evaluation__header > div:first-child {
  display: none;
}

[data-game-protocol][data-compact-focus] .game-evaluation__headline-values {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

[data-game-protocol][data-compact-focus] .game-evaluation__metric {
  min-height: 56px;
  padding: 6px 7px;
  border-radius: 6px;
}

[data-game-protocol][data-compact-focus] .game-evaluation__metric > span,
[data-game-protocol][data-compact-focus] .game-evaluation__metric small {
  font-size: 11px;
}

[data-game-protocol][data-compact-focus] .game-evaluation__metric strong {
  font-size: 15px;
}

[data-game-protocol][data-compact-focus] .game-evaluation__items > header,
[data-game-protocol][data-compact-focus] .game-evaluation__players > h4 {
  margin-bottom: 5px;
}

[data-game-protocol][data-compact-focus] .game-evaluation__items h4,
[data-game-protocol][data-compact-focus] .game-evaluation__players h4 {
  font-size: 14px;
}

[data-game-protocol][data-compact-focus] .game-evaluation__items ol {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

[data-game-protocol][data-compact-focus] .game-evaluation-item {
  gap: 5px;
  padding: 5px 6px;
  border-left-width: 3px;
  border-radius: 6px;
}

[data-game-protocol][data-compact-focus] .game-evaluation-item__category,
[data-game-protocol][data-compact-focus] .game-evaluation-item > div > small {
  font-size: 10px;
}

[data-game-protocol][data-compact-focus] .game-evaluation-item strong {
  font-size: 12px;
}

[data-game-protocol][data-compact-focus] .game-evaluation-item__points {
  min-width: 28px;
  font-size: 14px;
}

[data-game-protocol][data-compact-focus] .game-evaluation-player {
  padding: 5px 6px;
  border-radius: 6px;
}

[data-game-protocol][data-compact-focus] .game-evaluation__players > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-game-protocol][data-compact-focus] .game-evaluation-player span {
  font-size: 11px;
}

[data-game-protocol][data-compact-focus] .game-evaluation-player strong {
  font-size: 13px;
}

[data-game-protocol][data-compact-focus] .trick-picker {
  display: grid;
  grid-template-areas: "previous buttons next";
  grid-template-columns: 27px minmax(0, 1fr) 27px;
  align-items: stretch;
  gap: 2px;
  margin: 0 0 3px;
}

[data-game-protocol][data-compact-focus] .trick-picker__grid {
  grid-area: buttons;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
}

[data-game-protocol][data-compact-focus] .trick-picker__grid button,
[data-game-protocol][data-compact-focus] .trick-picker__arrow {
  min-width: 0;
  min-height: 26px;
  padding: 0;
  border-radius: 4px;
  font-size: 9px;
  line-height: 1;
}

[data-game-protocol][data-compact-focus] .trick-picker__arrow {
  display: grid;
  width: 27px;
  height: 26px;
  place-items: center;
  justify-self: stretch;
  appearance: none;
  font-size: 18px;
}

[data-game-protocol][data-compact-focus] .trick-picker__arrow--previous {
  grid-area: previous;
}

[data-game-protocol][data-compact-focus] .trick-picker__arrow--next {
  grid-area: next;
}

[data-game-protocol][data-compact-focus] .trick-picker__keyboard-hint {
  display: none !important;
}

[data-game-protocol][data-compact-focus] .game-table-viewport {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 7px;
  scrollbar-width: none;
}

[data-game-protocol][data-compact-focus] .game-table-viewport::-webkit-scrollbar {
  display: none;
}

[data-game-protocol][data-compact-focus] .game-table-stage {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 45%) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(rgb(255 255 255 / 45%) 1px, transparent 1px) 0 0 / 18px 18px,
    radial-gradient(circle at center, #f8faf8, #e7eee9);
}

[data-game-protocol][data-compact-focus] .game-seat {
  z-index: 10;
  width: var(--protocol-seat-width, auto);
  height: var(--protocol-seat-height, auto);
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgb(25 46 32 / 12%);
}

[data-game-protocol][data-compact-focus] .game-type-badge {
  max-width: 150px;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 9px;
}

[data-game-protocol][data-compact-focus] .game-seat--north,
[data-game-protocol][data-compact-focus] .game-seat--south {
  --protocol-seat-width: auto;
  --protocol-seat-height: 39px;
  --protocol-seat-transform: none;
}

[data-game-protocol][data-compact-focus] .game-seat--north {
  --protocol-seat-top: 2px;
  --protocol-seat-right: 2px;
  --protocol-seat-bottom: auto;
  --protocol-seat-left: 43px;
}

[data-game-protocol][data-compact-focus] .game-seat--south {
  --protocol-seat-top: auto;
  --protocol-seat-right: 43px;
  --protocol-seat-bottom: 2px;
  --protocol-seat-left: 2px;
}

[data-game-protocol][data-compact-focus] .game-seat--west,
[data-game-protocol][data-compact-focus] .game-seat--east {
  --protocol-seat-width: var(--protocol-side-seat-width);
  --protocol-seat-height: auto;
  --protocol-seat-transform: none;
}

[data-game-protocol][data-compact-focus] .game-seat--west {
  --protocol-seat-top: 2px;
  --protocol-seat-right: auto;
  --protocol-seat-bottom: 45px;
  --protocol-seat-left: 2px;
}

[data-game-protocol][data-compact-focus] .game-seat--east {
  --protocol-seat-top: 45px;
  --protocol-seat-right: 2px;
  --protocol-seat-bottom: 2px;
  --protocol-seat-left: auto;
}

[data-game-protocol][data-compact-focus] .game-seat__header {
  position: absolute;
  top: var(--protocol-seat-header-top, auto);
  right: var(--protocol-seat-header-right, auto);
  bottom: var(--protocol-seat-header-bottom, auto);
  left: var(--protocol-seat-header-left, auto);
  z-index: 6;
  display: flex;
  min-height: 11px;
  width: max-content;
  max-width: calc(100% - 4px);
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1px 2px;
  border-radius: 3px;
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 1px 3px rgb(24 45 31 / 14%);
  transform: var(--protocol-seat-header-transform, none);
  pointer-events: none;
}

[data-game-protocol][data-compact-focus] .game-seat__identity {
  width: 100%;
  justify-content: center;
  gap: 0;
}

[data-game-protocol][data-compact-focus] .game-seat__identity .player-avatar {
  display: none;
}

[data-game-protocol][data-compact-focus] .game-seat__name {
  width: 100%;
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

[data-game-protocol][data-compact-focus] .game-seat--north .game-seat__header,
[data-game-protocol][data-compact-focus] .game-seat--south .game-seat__header {
  --protocol-seat-header-top: auto;
  --protocol-seat-header-right: auto;
  --protocol-seat-header-bottom: 0;
  --protocol-seat-header-left: 50%;
  --protocol-seat-header-transform: translateX(-50%);
}

[data-game-protocol][data-compact-focus] .game-seat--west .game-seat__header,
[data-game-protocol][data-compact-focus] .game-seat--east .game-seat__header {
  --protocol-seat-header-top: 50%;
  --protocol-seat-header-right: 0;
  --protocol-seat-header-bottom: auto;
  --protocol-seat-header-left: auto;
  width: 12px;
  height: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

[data-game-protocol][data-compact-focus] .game-seat--west .game-seat__header {
  --protocol-seat-header-transform: translateY(-50%);
}

[data-game-protocol][data-compact-focus] .game-seat--east .game-seat__header {
  --protocol-seat-header-transform: translateY(-50%) rotate(180deg);
  transform-origin: center;
}

[data-game-protocol][data-compact-focus] .game-seat--west .game-seat__identity,
[data-game-protocol][data-compact-focus] .game-seat--east .game-seat__identity {
  width: 12px;
  height: auto;
  justify-content: center;
}

[data-game-protocol][data-compact-focus] .game-seat--west .game-seat__name,
[data-game-protocol][data-compact-focus] .game-seat--east .game-seat__name {
  width: 12px;
  height: auto;
  max-height: none;
  padding: 2px 1px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(24 45 31 / 14%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-overflow: ellipsis;
}

[data-game-protocol][data-compact-focus] .game-seat__party {
  min-height: 10px;
  padding: 1px 3px;
  font-size: 6px;
  line-height: 1;
}

[data-game-protocol][data-compact-focus] .game-seat--west .game-seat__party,
[data-game-protocol][data-compact-focus] .game-seat--east .game-seat__party,
[data-game-protocol][data-compact-focus] .game-seat__party,
[data-game-protocol][data-compact-focus] .game-seat__announcements {
  display: none;
}

[data-game-protocol][data-compact-focus] .game-seat__hand {
  width: var(--protocol-compact-hand-width, auto);
  height: var(--protocol-compact-hand-height, auto);
  min-width: 0;
  min-height: 0;
  flex: var(--protocol-compact-hand-flex, 0 1 auto);
  grid-template-columns: var(--protocol-compact-hand-columns, none);
  grid-template-rows: var(--protocol-compact-hand-rows, none);
  grid-auto-flow: var(--protocol-compact-hand-flow, row);
  align-self: var(--protocol-compact-hand-align-self, auto);
  align-items: var(--protocol-compact-hand-align-items, normal);
  align-content: var(--protocol-compact-hand-align-content, normal);
  justify-content: var(--protocol-compact-hand-justify, normal);
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
}

[data-game-protocol][data-compact-focus] .game-seat--north .game-seat__hand,
[data-game-protocol][data-compact-focus] .game-seat--south .game-seat__hand {
  --protocol-compact-hand-width: 100%;
  --protocol-compact-hand-height: var(--protocol-hand-card-height);
  --protocol-compact-hand-flex: 1 1 auto;
  --protocol-compact-hand-columns: repeat(11, minmax(0, 1fr)) var(--protocol-hand-card-width);
  --protocol-compact-hand-rows: var(--protocol-hand-card-height);
  --protocol-compact-hand-flow: column;
  --protocol-compact-hand-align-self: stretch;
  --protocol-compact-hand-align-items: start;
  --protocol-compact-hand-justify: stretch;
  --protocol-compact-hand-ten-columns:
    repeat(
      9,
      min(var(--protocol-hand-card-width), calc((100% - var(--protocol-hand-card-width)) / 9))
    )
    var(--protocol-hand-card-width);
  overflow: visible;
}

[data-game-protocol][data-compact-focus] .game-seat--west .game-seat__hand,
[data-game-protocol][data-compact-focus] .game-seat--east .game-seat__hand {
  --protocol-compact-hand-width: var(--protocol-hand-card-width);
  --protocol-compact-hand-height: 100%;
  --protocol-compact-hand-flex: 1 1 0;
  --protocol-compact-hand-columns: var(--protocol-hand-card-width);
  --protocol-compact-hand-rows: repeat(11, minmax(0, 1fr)) var(--protocol-hand-card-height);
  --protocol-compact-hand-flow: row;
  --protocol-compact-hand-align-self: flex-start;
  --protocol-compact-hand-align-content: stretch;
  --protocol-compact-hand-justify: start;
  --protocol-compact-hand-ten-rows:
    repeat(
      9,
      min(var(--protocol-hand-card-height), calc((100% - var(--protocol-hand-card-height)) / 9))
    )
    var(--protocol-hand-card-height);
  overflow: visible;
}

[data-game-protocol][data-compact-focus] .game-seat__hand[data-card-count="10"] {
  grid-template-columns: var(--protocol-compact-hand-ten-columns, var(--protocol-compact-hand-columns));
  grid-template-rows: var(--protocol-compact-hand-ten-rows, var(--protocol-compact-hand-rows));
}

[data-game-protocol][data-compact-focus] .game-seat__card {
  position: relative;
  z-index: auto;
  width: var(--protocol-hand-card-width);
  height: var(--protocol-hand-card-height);
  overflow: hidden;
  border-radius: 2px;
}

[data-game-protocol][data-compact-focus] .game-seat__card img {
  width: var(--protocol-hand-image-width);
  max-width: none;
  height: var(--protocol-hand-image-height);
  max-height: none;
  border-radius: 2px;
  object-fit: fill;
  object-position: top left;
  transform: translate(-10%, -8%);
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 22%));
}

[data-game-protocol][data-compact-focus] .game-seat__card.is-current {
  z-index: auto;
  outline: 0;
  transform: var(--protocol-current-card-transform, none);
}

[data-game-protocol][data-compact-focus] .game-seat--south .game-seat__card.is-current {
  --protocol-current-card-transform: translateY(-10px);
}

[data-game-protocol][data-compact-focus] .game-seat--west .game-seat__card.is-current {
  --protocol-current-card-transform: translateX(10px);
}

[data-game-protocol][data-compact-focus] .game-seat--north .game-seat__card.is-current {
  --protocol-current-card-transform: translateY(10px);
}

[data-game-protocol][data-compact-focus] .game-seat--east .game-seat__card.is-current {
  --protocol-current-card-transform: translateX(-10px);
}

[data-game-protocol][data-compact-focus] .game-seat__card.is-current img {
  outline: 0;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 22%));
}

[data-game-protocol][data-compact-focus] .game-seat__card.is-played {
  visibility: hidden;
}

[data-game-protocol][data-compact-focus] .game-seat__card > .move-time,
[data-game-protocol][data-compact-focus] .trick-stack__card > .move-time {
  right: -1px;
  bottom: -2px;
  padding: 0 2px;
  font-size: 6px;
}

[data-game-protocol][data-compact-focus] .game-felt {
  top: calc(50% - 110px);
  left: calc(50% - 101px);
  z-index: auto;
  width: 202px;
  height: 220px;
  transform: none;
  border-width: 4px;
  border-radius: 40%;
  box-shadow:
    inset 0 0 0 1px #a98355,
    inset 0 0 18px rgb(0 0 0 / 25%),
    0 3px 7px rgb(20 38 27 / 19%);
}

[data-game-protocol][data-compact-focus] .team-score {
  min-width: 60px;
  padding: 4px 7px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgb(0 30 18 / 20%);
}

[data-game-protocol][data-compact-focus] .team-score small,
[data-game-protocol][data-compact-focus] .team-score span {
  font-size: 9px;
}

[data-game-protocol][data-compact-focus] .team-score strong {
  margin: 1px 0;
  font-size: 21px;
}

[data-game-protocol][data-compact-focus] .team-score--re {
  bottom: -30.5px;
  left: -22.5px;
  transform: none;
}

[data-game-protocol][data-compact-focus] .team-score--kontra {
  top: -30.5px;
  right: -22.5px;
  transform: none;
}

[data-game-protocol][data-compact-focus] .central-trick {
  --trick-card-width: 88px;
  --trick-card-height: 127px;
  --trick-card-half-height: 63.5px;
  --trick-horizontal-offset: 36px;
  --trick-vertical-offset: 55px;
  z-index: 30;
  width: 247px;
  height: 283px;
}

[data-game-protocol][data-compact-focus] .trick-stack__card {
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 30%));
}

[data-game-protocol][data-compact-focus] .trick-stack__card img {
  border-radius: 3px;
}

[data-game-protocol][data-compact-focus] .trick-stack__card.is-lead-card img {
  outline-width: 1px;
  outline-offset: 1px;
}

[data-game-protocol][data-compact-focus] .winner-arrow {
  top: calc(var(--winner-target-y) - 6px);
  left: calc(var(--winner-target-x) - 26px);
  width: 26px;
  height: 12px;
  transform-origin: 26px 6px;
}

[data-game-protocol][data-compact-focus] .winner-arrow::before {
  top: 4px;
  width: 20px;
  height: 4px;
  box-shadow: 0 0 0 1px rgb(0 50 28 / 48%);
}

[data-game-protocol][data-compact-focus] .winner-arrow::after {
  left: 18px;
  border-top-width: 6px;
  border-bottom-width: 6px;
  border-left-width: 8px;
}

[data-game-protocol][data-compact-focus] .live-announcement-track {
  z-index: 81;
  gap: 2px;
  overflow: visible;
}

[data-game-protocol][data-compact-focus] .live-announcements {
  z-index: 80;
  overflow: visible;
}

[data-game-protocol][data-compact-focus] .live-announcement-track--seat-0 {
  --protocol-live-top: calc(
    50% + var(--trick-card-half-height) + var(--trick-vertical-offset) + var(--protocol-live-block-gap)
  );
}

[data-game-protocol][data-compact-focus] .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));
}

[data-game-protocol][data-compact-focus] .live-announcement-track--seat-2 {
  --protocol-live-bottom: calc(
    50% + var(--trick-card-half-height) + var(--trick-vertical-offset) + var(--protocol-live-block-gap)
  );
}

[data-game-protocol][data-compact-focus] .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));
}

[data-game-protocol][data-compact-focus] .live-announcement {
  min-width: 48px;
  max-width: 74px;
  gap: 0;
  padding: 3px 4px;
  border-width: 1px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgb(0 35 20 / 23%);
  font-size: 9px;
  line-height: 1;
  justify-items: center;
  text-align: center;
  white-space: nowrap;
}

[data-game-protocol][data-compact-focus] .live-announcement strong {
  font-size: 10px;
}

[data-game-protocol][data-compact-focus] .live-announcement .move-time {
  margin-top: 1px;
  font-size: 8px;
}

[data-game-protocol][data-compact-focus] .trick-overview {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  border-radius: 5px;
}

[data-game-protocol][data-compact-focus] .trick-overview__row {
  grid-template-columns: 22px repeat(4, minmax(0, 1fr));
  min-width: 0;
}

[data-game-protocol][data-compact-focus] .trick-overview__cell {
  min-width: 0;
  min-height: 59px;
  gap: 1px;
  padding: 2px 1px;
  overflow: hidden;
  font-size: 7px;
}

[data-game-protocol][data-compact-focus] .trick-overview__row--head .trick-overview__cell {
  min-height: 24px;
  padding: 2px 1px;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-game-protocol][data-compact-focus] .trick-overview__cell--game-type {
  min-height: 25px;
  justify-content: flex-start;
  padding: 3px 5px;
  font-size: 9px;
  text-align: left;
}

[data-game-protocol][data-compact-focus] .trick-overview__cell--result {
  display: none;
}

[data-game-protocol][data-compact-focus] .trick-overview__card {
  width: var(--protocol-overview-card-width);
  max-width: var(--protocol-overview-card-width);
  align-items: flex-start;
  gap: 1px;
}

[data-game-protocol][data-compact-focus] .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: 2px;
  clip-path: inset(0 60% 70% 0);
  object-fit: fill;
  object-position: top left;
}

[data-game-protocol][data-compact-focus] .trick-overview__card.is-lead-card img {
  outline-width: 1px;
  outline-offset: 0;
}

[data-game-protocol][data-compact-focus] .trick-overview__event {
  display: block;
  width: var(--protocol-overview-card-width);
  max-width: 100%;
  align-self: center;
  overflow: hidden;
  font-size: 11px;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-game-protocol][data-compact-focus] .trick-overview__event .move-time {
  font-size: 8px;
}

@media (max-width: 280px), (max-height: 360px) {
  [data-game-protocol][data-compact-focus] {
    transform-origin: top center;
  }

  [data-game-protocol][data-compact-focus] .game-log-viewer {
    grid-template-rows: 38px minmax(0, 1fr);
  }

  [data-game-protocol][data-compact-focus] .game-log-view-switch {
    height: 30px;
  }
}
