.game-screen {
  width: min(1040px, 100%);
  margin-inline: auto;
}

.game-header {
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  padding-bottom: 9px !important;
  border-bottom: 1px solid var(--line);
}

.brand--compact .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  scale: 0.9;
}

.game-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--paper);
}

.icon-button:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.match-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.74fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 9px;
  margin: 10px 0;
}

.player-card,
.turn-status {
  min-width: 0;
  min-height: 63px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.player-card {
  gap: 10px;
  padding: 8px 12px;
  transition: border-color 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

.player-card.is-active {
  border-color: color-mix(in srgb, var(--player-color) 64%, transparent);
  background: color-mix(in srgb, var(--player-color) 10%, var(--paper));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--player-color) 38%, transparent);
}

.player-card--one {
  --player-color: var(--coral);
}

.player-card--two {
  --player-color: var(--blue);
  justify-content: flex-end;
  text-align: right;
}

.player-ball {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--player-color);
  box-shadow: 0 3px 7px color-mix(in srgb, var(--ink) 18%, transparent);
}

.player-copy {
  min-width: 0;
  display: grid;
  line-height: 1.05;
}

.player-card small {
  color: var(--player-color);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.player-card strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-card em {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 0.53rem;
  font-style: normal;
}

.player-card b {
  margin-left: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  font-weight: 500;
}

.player-card--two b {
  margin-right: auto;
  margin-left: 0;
}

.turn-status {
  flex-direction: column;
  justify-content: center;
  padding: 7px 12px;
  text-align: center;
}

.turn-status strong {
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.turn-status small {
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-stage {
  width: min(420px, 100%, max(280px, calc((100dvh - 280px) * 4 / 7)));
  margin-inline: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-raised);
  box-shadow: 0 18px 42px color-mix(in srgb, var(--ink) 10%, transparent);
}

#course-canvas {
  width: 100%;
  aspect-ratio: 4 / 7;
  display: block;
  border-radius: 17px;
  touch-action: none;
}

#course-canvas.is-aimable {
  cursor: grab;
}

#course-canvas.is-aimable:active {
  cursor: grabbing;
}

.shot-panel {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(175px, 1fr) minmax(130px, 0.6fr) auto;
  align-items: center;
  gap: 15px;
  margin-top: 9px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
}

.shot-copy {
  min-width: 0;
  display: grid;
}

.shot-copy strong {
  font-size: 0.78rem;
}

.shot-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.power-meter {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: center;
  gap: 8px;
}

.power-meter > span {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
}

.power-meter i {
  width: 50%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), var(--coral));
  transition: width 80ms linear;
}

.power-meter b {
  font-size: 0.65rem;
  text-align: right;
}

.shot-buttons {
  display: flex;
  gap: 5px;
}

.shot-buttons button {
  min-width: 42px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--paper-raised);
  font-size: 1rem;
  font-weight: 850;
}

.shot-buttons button:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.shot-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.shot-buttons .shoot-button {
  min-width: 70px;
  border-color: color-mix(in srgb, var(--lime) 70%, var(--ink));
  background: var(--lime);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.game-footer {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 3px;
}

.game-footer p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.6rem;
}

.terrain-key {
  width: 13px;
  height: 8px;
  display: inline-block;
  margin: 0 3px 0 7px;
  border-radius: 3px;
  vertical-align: -1px;
}

.terrain-key:first-child {
  margin-left: 0;
}

.terrain-key--slope {
  border: 1px dashed var(--blue);
  background: color-mix(in srgb, var(--blue) 14%, var(--lime));
}

.terrain-key--sand {
  border: 1px dashed var(--coral);
  background: color-mix(in srgb, var(--coral) 20%, var(--color-canvas));
}

.text-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 0;
  color: var(--ink-muted);
  background: transparent;
  font-size: 0.66rem;
  font-weight: 850;
}

.text-button:hover {
  color: var(--blue);
}

.text-button svg {
  width: 17px;
  height: 17px;
}
