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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #000;
  font-family: "Lexend Deca", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font: inherit;
  color: inherit;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

textarea {
  resize: vertical;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

.is-hidden {
  display: none !important;
}

.button-pressed {
  transform: scale(0.96) !important;
}

.history-game-card, .auth-form .auth-submit, #home-page #home-buttons-container .menu-buttons, #winner-dim #winner-window button, #game-container #throw-container #easypad .easypad-key, #game-container #throw-container #numpad .numpad-key, #game-container #throw-container #throw-row #revert-score, .settings-menu .pad-mode-group .pad-mode-buttons .live-button, .settings-menu .pad-mode-group .pad-mode-buttons .start-new-game, .square-button {
  border-radius: 10px;
  background: #333;
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s ease-out, background 0.15s ease-out;
}
.history-game-card:active, .auth-form .auth-submit:active, #home-page #home-buttons-container .menu-buttons:active, #winner-dim #winner-window button:active, #game-container #throw-container #easypad .easypad-key:active, #game-container #throw-container #numpad .numpad-key:active, #game-container #throw-container #throw-row #revert-score:active, .settings-menu .pad-mode-group .pad-mode-buttons .live-button:active, .settings-menu .pad-mode-group .pad-mode-buttons .start-new-game:active, .square-button:active {
  transform: scale(0.96);
}
.history-game-card:hover, .auth-form .auth-submit:hover, #home-page #home-buttons-container .menu-buttons:hover, #winner-dim #winner-window button:hover, #game-container #throw-container #easypad .easypad-key:hover, #game-container #throw-container #numpad .numpad-key:hover, #game-container #throw-container #throw-row #revert-score:hover, .settings-menu .pad-mode-group .pad-mode-buttons .live-button:hover, .settings-menu .pad-mode-group .pad-mode-buttons .start-new-game:hover, .square-button:hover {
  background: rgb(76.5, 76.5, 76.5);
}

.auth-form .auth-input, #game-container #throw-container #throw-row #current-throw, #game-settings .player-input {
  border: none;
  background: #333;
  border-radius: 10px;
  color: #fff;
  outline: none;
  box-shadow: none;
}
.auth-form .auth-input:focus-visible, #game-container #throw-container #throw-row #current-throw:focus-visible, #game-settings .player-input:focus-visible {
  border: 1px solid;
  border-color: #305a30;
}

#game-container #throw-container #easypad .easypad-key, #game-container #throw-container #numpad .numpad-key, #game-container #throw-container #darts-display .dart-slot, #game-container #throw-container #throw-row #revert-score, .tooltip-container, .square-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-list, .player-details-table.scrollable tbody, #game-container #game-info #top-row #players-panel, #game-settings {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.history-list::-webkit-scrollbar, .player-details-table.scrollable tbody::-webkit-scrollbar, #game-container #game-info #top-row #players-panel::-webkit-scrollbar, #game-settings::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: #222;
  color: #fff;
  transform: translateY(-100px);
  transition: transform 0.3s ease-out;
  line-height: 100px;
  padding: 0 16px;
  font-size: 1.125rem;
  z-index: 100;
  display: flex;
  align-items: center;
}
header .header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
header .header-logo-link:hover {
  opacity: 0.95;
}
header img {
  margin-left: 20px;
  scale: 2;
}
header.visible {
  transform: translateY(0);
}

.square-button {
  position: fixed;
  right: 16px;
  top: 12px;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 300;
  padding: 0;
  transition: all 0.1s ease-out;
  border: 1px solid rgb(76.5, 76.5, 76.5);
}
.square-button:active {
  transform: scale(0.96);
}
.square-button:hover {
  background: rgb(76.5, 76.5, 76.5);
}
.square-button.with-header {
  top: 30px;
}

.settings-button {
  right: 76px;
}

.settings-menu {
  position: fixed;
  top: 0;
  width: 65%;
  left: 0;
  max-width: 320px;
  height: 100vh;
  margin: 0;
  border: none;
  background: #222;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  z-index: 250;
  transform: translateX(-100vw);
  transition: transform 0.3s ease-out;
}
.settings-menu.open {
  transform: translateX(0);
}
.settings-menu h2 {
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 700;
}
.settings-menu .pad-mode-group {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.settings-menu .pad-mode-group p {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.8;
}
.settings-menu .pad-mode-group .pad-mode-buttons {
  display: flex;
  gap: 10px;
}
.settings-menu .pad-mode-group .pad-mode-buttons .start-new-game {
  flex: 1;
  font-weight: 600;
  padding: 12px 0;
  font-size: 1.125rem;
  transition: transform 0.1s ease-out, background 0.15s ease-out, border-color 0.15s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.settings-menu .pad-mode-group .pad-mode-buttons .live-button {
  flex: 1;
  padding: 12px 0;
  font-weight: 600;
  font-size: 1.125rem;
  transition: transform 0.1s ease-out, background 0.15s ease-out;
}
.settings-menu .pad-mode-group .live-status {
  font-size: 0.875rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.settings-menu .pad-mode-group .live-status .live-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff0000;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.settings-menu .pad-mode-group .live-status .live-status-text {
  flex: 1;
  word-break: break-all;
}
.settings-menu .pad-mode-group .live-status .live-status-text a {
  color: #305a30;
  text-decoration: underline;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.menu {
  position: fixed;
  top: 0;
  width: 70%;
  right: 0;
  max-width: 320px;
  height: 100vh;
  margin: 0;
  border: none;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  z-index: 200;
  transform: translateX(100vw);
  transition: transform 0.3s ease-out;
}
.menu.open {
  transform: translateX(0);
}
.menu ul {
  width: 100%;
}
.menu a, .menu .menu-link-button {
  width: 100%;
  display: block;
  padding: 14px 20px;
  margin: 0;
  font-size: 1.125rem;
  border-bottom: 1px solid #222;
  background: none;
  border: none;
  border-radius: 10px;
  text-align: left;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
  outline: none;
}
.menu a:hover, .menu .menu-link-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
  pointer-events: none;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#game-page {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  min-height: calc(98vh - 100px);
}

.radio-input {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 10px;
  background-color: #333;
  color: #fff;
  width: 100%;
  overflow: hidden;
}
.radio-input input {
  display: none;
}
.radio-input label {
  flex: 1 1 0;
  width: auto;
  padding: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1 !important;
  font-weight: 600 !important;
  letter-spacing: -1px;
  font-size: 1.125rem !important;
  flex-shrink: 1;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative !important;
}
.radio-input .selection {
  display: none;
  position: absolute;
  height: 100%;
  width: calc(100% / var(--items));
  left: 0;
  top: 0;
  transition: 0.15s ease;
  will-change: transform;
  background-color: transparent;
}
.radio-input label:has(input:checked) {
  color: #fff;
}
.radio-input label:has(input:checked) ~ .selection {
  background-color: #305a30;
  display: inline-block;
}
.radio-input label:nth-of-type(1):has(input:checked) ~ .selection {
  left: calc((0) * 100% / var(--items));
}
.radio-input label:nth-of-type(2):has(input:checked) ~ .selection {
  left: calc((1) * 100% / var(--items));
}
.radio-input label:nth-of-type(3):has(input:checked) ~ .selection {
  left: calc((2) * 100% / var(--items));
}
.radio-input label:nth-of-type(4):has(input:checked) ~ .selection {
  left: calc((3) * 100% / var(--items));
}
.radio-input label:nth-of-type(5):has(input:checked) ~ .selection {
  left: calc((4) * 100% / var(--items));
}
.radio-input label:nth-of-type(6):has(input:checked) ~ .selection {
  left: calc((5) * 100% / var(--items));
}
.radio-input label:nth-of-type(7):has(input:checked) ~ .selection {
  left: calc((6) * 100% / var(--items));
}
.radio-input label:nth-of-type(8):has(input:checked) ~ .selection {
  left: calc((7) * 100% / var(--items));
}

.radio-input--players {
  --items: 8;
}

.tooltip-container {
  color: #fff;
  position: relative;
  background: rgb(25.5, 25.5, 25.5);
  cursor: help;
  transition: all 0.3s ease-in-out;
  font-size: 1rem;
  border-radius: 4px;
  width: 30px;
  height: 30px;
}
.tooltip-container:hover .tooltip {
  z-index: 2;
  opacity: 1;
  top: -150px;
  pointer-events: auto;
  visibility: visible;
}
.tooltip-container .tooltip {
  z-index: 2;
  padding: 10px;
  width: 200px;
  height: 150px;
  background-color: #1f3b1f;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
  border-radius: 10px;
}
.tooltip-container .tooltip::before {
  background-color: #1f3b1f;
  position: absolute;
  content: "";
  height: 0.6em;
  width: 0.6em;
  bottom: -0.2em;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
}

.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 1.375rem;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  justify-content: space-between;
}
.check span {
  pointer-events: none;
}
.check input[type=checkbox] {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
  margin: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.check .check-box {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.check .check-box::after {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: rgb(65.7391304348, 123.2608695652, 65.7391304348);
  transform: scale(0);
  transition: transform 0.12s ease;
}
.check input[type=checkbox]:checked ~ .check-box {
  background-color: none;
}
.check input[type=checkbox]:checked ~ .check-box::after {
  transform: scale(1);
}
.check input[type=checkbox]:focus-visible ~ .check-box {
  box-shadow: 0 0 0 4px rgba(48, 90, 48, 0.4);
}

#game-settings {
  position: static;
  z-index: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1.125rem;
  bottom: 0;
  overflow-y: auto;
}
#game-settings * {
  flex-shrink: 0;
}
#game-settings #num-of-players-flex {
  display: flex;
  gap: 8px;
}
#game-settings #num-of-players-flex .tooltip-container:hover .tooltip {
  top: 35px;
}
#game-settings #num-of-players-flex .tooltip-container .tooltip {
  width: 250px;
  top: 15px;
  height: 90px;
  transform: translateX(-70%);
}
#game-settings #num-of-players-flex .tooltip-container .tooltip::before {
  bottom: 85px;
  left: 70%;
}
#game-settings label {
  position: relative;
  z-index: 0;
  font-weight: 600;
  font-size: 1.25rem;
  opacity: 0.8;
}
#game-settings select, #game-settings input[type=checkbox], #game-settings button {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  color: #fff;
}
#game-settings select {
  background: #333;
  padding: 0 12px;
  border: 1px solid #555;
}
#game-settings input[type=checkbox] {
  width: 24px;
  height: 24px;
}
#game-settings button {
  background: #333;
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  transition: 0.2s;
  cursor: pointer;
}
#game-settings button:active {
  scale: 0.98;
}
#game-settings #player-name-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#game-settings .player-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
#game-settings .player-row .drag-handle {
  flex: 0 0 auto;
  font-size: 1.25rem;
  cursor: grab;
  color: #888;
  touch-action: none;
  user-select: none;
}
#game-settings .player-row .drag-handle:active {
  cursor: grabbing;
}
#game-settings #player-name-container.drag-disabled .drag-handle {
  display: none;
}
#game-settings .player-input {
  height: 46px;
  padding: 0 14px;
  font-size: 1rem;
  transition: 0.2s;
  flex: 1 1 auto;
  width: auto;
}
#game-settings .player-input::placeholder {
  opacity: 0.7;
}
#game-settings .player-ghost {
  opacity: 0.4;
}
#game-settings .game-switches {
  display: grid;
  grid-template-columns: 5fr 1fr;
  gap: 8px;
  margin-top: 12px;
  max-width: 283px;
}
#game-settings .game-switches .check {
  max-width: 200px;
}
#game-settings .game-switches .tooltip-container {
  left: -29px;
}
#game-settings .game-switches .tooltip-container:hover .tooltip {
  top: -75px;
}
#game-settings .game-switches .tooltip-container .tooltip {
  width: 250px;
  top: -55px;
  height: 70px;
  transform: translateX(-70%);
}
#game-settings .game-switches .tooltip-container .tooltip::before {
  left: 70%;
}

#game-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  justify-content: space-between;
}
#game-container #game-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#game-container #game-info #top-row {
  display: flex;
  gap: 12px;
}
#game-container #game-info #top-row #current-score-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#game-container #game-info #top-row #current-score-block #score-left {
  font-size: 6rem;
  font-weight: 700;
}
#game-container #game-info #top-row #current-score-block #score-player-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  font-size: 2rem;
  opacity: 0.8;
}
#game-container #game-info #top-row #players-panel {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
#game-container #game-info #top-row #players-panel .player-table-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
}
#game-container #game-info #top-row #players-panel .player-name-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}
#game-container #game-info #top-row #players-panel .current-player {
  font-weight: 600;
  border: 2px solid #305a30;
  font-size: 1.375rem;
  box-shadow: 0 0 8px #305a30;
  background: rgb(25.5, 25.5, 25.5);
}
#game-container #game-info #top-row #players-panel .finished-player {
  opacity: 0.8;
}
#game-container #game-info #top-row #players-panel .position-first {
  color: gold;
  font-weight: 700;
}
#game-container #game-info #top-row #players-panel .position-second {
  color: silver;
  font-weight: 700;
}
#game-container #game-info #top-row #players-panel .position-third {
  color: #cd7f32;
  font-weight: 700;
}
#game-container #throw-container #throw-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}
#game-container #throw-container #throw-row #checkout-hint {
  flex: 0.3;
  font-size: 0.875rem;
  opacity: 0.9;
}
#game-container #throw-container #throw-row #revert-score {
  flex: 1;
  height: 70px;
  font-size: 1.5rem;
}
#game-container #throw-container #throw-row #current-throw {
  flex: 1;
  min-width: 80px;
  text-align: right;
  font-size: 2rem;
  font-weight: 600;
  height: 80px;
  padding: 0 14px;
  transition: 0.2s;
}
#game-container #throw-container #throw-row #current-throw::placeholder {
  opacity: 0.7;
}
#game-container #throw-container #throw-row #current-throw.input-error {
  animation: shake 0.18s ease-in-out 0s 4, glow-red 0.6s ease-out;
  border-color: #ef4444;
  transform-origin: center;
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-3px) rotate(-2deg);
  }
  75% {
    transform: translateX(3px) rotate(2deg);
  }
}
@keyframes glow-red {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0), 0 0 0 0 rgba(239, 68, 68, 0);
  }
  40% {
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.9), 0 0 16px rgba(239, 68, 68, 0.9);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0), 0 0 0 rgba(239, 68, 68, 0);
  }
}
#game-container #throw-container #darts-display {
  flex: 2;
  display: flex;
  gap: 10px;
}
#game-container #throw-container #darts-display .dart-slot {
  flex: 1;
  height: 70px;
  border-radius: 10px;
  background: rgb(25.5, 25.5, 25.5);
  color: #fff;
  border: 1px solid rgb(76.5, 76.5, 76.5);
  font-size: 1.5rem;
}
#game-container #throw-container #numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
#game-container #throw-container #numpad .numpad-key {
  height: 70px;
  font-size: 1.5rem;
}
#game-container #throw-container #numpad .numpad-key.action {
  background: rgb(25.5, 25.5, 25.5);
}
#game-container #throw-container #easypad {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
#game-container #throw-container #easypad .easypad-key {
  height: 70px;
  font-size: 1.5rem;
}
#game-container #throw-container #easypad .easypad-key.action {
  background: rgb(25.5, 25.5, 25.5);
}
#game-container #throw-container #easypad .selected {
  border-color: #305a30;
  background: rgb(76.5, 76.5, 76.5);
}
#game-container #throw-container #easypad .multiplier-2x {
  background: rgb(76.5, 76.5, 76.5);
  box-shadow: 0 0 2px #305a30;
}
#game-container #throw-container #easypad .multiplier-3x {
  border-color: #305a30;
  background: rgb(89.25, 89.25, 89.25);
  box-shadow: 0 0 4px #305a30;
}
#game-container #throw-container #easypad .disabled {
  opacity: 0.4;
  pointer-events: none;
}

#game-settings, #game-container {
  position: absolute;
  inset: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  will-change: transform, opacity;
}

#game-settings {
  transform: translateX(0);
  opacity: 1;
}

#game-container {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

body.game-active #game-settings {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}
body.game-active #game-container {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

#winner-dim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 400;
  display: none;
}
#winner-dim.visible {
  display: flex;
}
#winner-dim #winner-window {
  background: #222;
  color: #fff;
  padding: 24px 20px;
  border-radius: 10px;
  min-width: 260px;
  max-width: 90vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#winner-dim #winner-window h1 {
  font-size: 3rem;
  margin-bottom: 4px;
}
#winner-dim #winner-window button {
  display: inline-block;
  margin-top: 4px;
  height: 42px;
  font-size: 1rem;
}
#winner-dim #winner-window button.invisible {
  display: none;
}

main {
  padding-top: 110px;
  padding-inline: 15px;
  color: #fff;
}

#home-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
#home-page #home-buttons-container {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
}
#home-page #home-buttons-container .menu-buttons {
  width: 100%;
  border-radius: 15px;
  padding: 16px;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: transform 0.1s ease, background 0.2s ease;
}
#home-page #home-buttons-container .menu-buttons:active {
  transform: scale(0.98);
}
#home-page #home-buttons-container .menu-buttons.invisible {
  display: none;
}
#home-page #home-title-container {
  grid-column: span 2;
  margin-bottom: 60px;
}
#home-page #big-picture-container {
  grid-column: span 2;
  width: calc(100% + 30px);
  height: 300px;
  overflow: hidden;
  margin-left: -15px;
}
#home-page #big-picture-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
#home-page #home-about-container {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#home-page #home-about-container .about-section {
  margin-top: 60px;
  max-width: 500px;
}
#home-page #home-about-container .about-section .two-images {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  width: 100%;
}
#home-page #home-about-container .about-section .two-images img {
  flex: 1;
  width: 0;
  object-fit: contain;
}
#home-page #home-about-container .about-section .one-image {
  margin-top: 16px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 1.25rem;
  min-width: 12rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  background-color: #333;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.back-button:hover {
  background-color: rgb(63.75, 63.75, 63.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.back-button:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.auth-page {
  min-height: calc(100vh - 100px);
  padding-top: 100px;
  padding-right: 16px;
  padding-left: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.auth-card {
  background: #222;
  border-radius: 20px;
  padding: 24px 20px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-form label {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.85;
}
.auth-form .auth-input {
  height: 44px;
  padding: 0 12px;
  font-size: 1rem;
}
.auth-form .recaptcha-row {
  display: flex;
  justify-content: center;
}
.auth-form .auth-submit {
  margin-top: 8px;
  height: 44px;
  font-size: 1.125rem;
  font-weight: 600;
}
.auth-form .auth-error {
  font-size: 0.875rem;
  color: #ef4444;
  margin-top: 4px;
}

.auth-switch {
  font-size: 0.875rem;
  text-align: center;
  opacity: 0.85;
}
.auth-switch a {
  color: #305a30;
  text-decoration: underline;
}

.flash-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  width: 100%;
  padding: 0 16px;
  pointer-events: none;
}

.flash-list {
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
  max-width: 420px;
  margin-inline: auto;
}

.flash-message {
  background: rgb(56.8695652174, 106.6304347826, 56.8695652174);
  color: #fff;
  border-left: 3px solid #305a30;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #fff;
  margin-bottom: 6px;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.flash-message.fade-out {
  opacity: 0;
}

.details-page {
  padding-top: 20px;
  padding-right: 16px;
  padding-left: 16px;
  padding-bottom: 24px;
}
.details-page h1 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 16px;
}

.details-summary-card {
  background: #222;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.875rem;
}
.details-summary-card .summary-line + .summary-line {
  margin-top: 8px;
}

.details-container {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}

.player-details-card {
  background: #222;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.875rem;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.player-details-card.current-player {
  border-color: #305a30;
  box-shadow: 0 0 20px #305a30;
}

.player-details-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  min-width: 0;
}
.player-details-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  color: #cccccc;
}
.player-details-header .player-score-left {
  font-size: 3rem;
  font-weight: 600;
  color: rgb(83.4782608696, 156.5217391304, 83.4782608696);
  white-space: nowrap;
  flex-shrink: 0;
}
.player-details-header .player-score-left.position-first {
  color: gold;
}
.player-details-header .player-score-left.position-second {
  color: silver;
}
.player-details-header .player-score-left.position-third {
  color: #cd7f32;
}

.player-details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.player-details-table th, .player-details-table td {
  padding: 6px 8px;
  text-align: center;
}
.player-details-table th:first-child,
.player-details-table td:first-child {
  text-align: left;
  width: 10%;
}
.player-details-table th:nth-child(2),
.player-details-table td:nth-child(2) {
  width: 45%;
}
.player-details-table th:nth-child(3),
.player-details-table td:nth-child(3) {
  width: 22.5%;
}
.player-details-table th:nth-child(4),
.player-details-table td:nth-child(4) {
  width: 22.5%;
}
.player-details-table.no-darts-column th:first-child,
.player-details-table.no-darts-column td:first-child {
  width: 15%;
}
.player-details-table.no-darts-column th:nth-child(2),
.player-details-table.no-darts-column td:nth-child(2) {
  width: 42.5%;
}
.player-details-table.no-darts-column th:nth-child(3),
.player-details-table.no-darts-column td:nth-child(3) {
  width: 42.5%;
}
.player-details-table thead th {
  border-bottom: 1px solid #444;
  border-bottom-font-weight: 600;
}
.player-details-table tbody tr:nth-child(odd) {
  background: rgb(38.25, 38.25, 38.25);
}
.player-details-table .current-throw-row {
  background: rgb(63.75, 63.75, 63.75) !important;
  font-weight: 600;
  border-left: 3px solid #305a30;
}
.player-details-table .current-throw-row .pending-score {
  font-style: italic;
  opacity: 0.9;
}
.player-details-table .no-throws {
  text-align: center;
  opacity: 0.7;
}
.player-details-table.scrollable thead, .player-details-table.scrollable tbody, .player-details-table.scrollable tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}
.player-details-table.scrollable tbody {
  display: block;
  max-height: 224px;
  overflow-y: auto;
}

.details-empty {
  margin-top: 24px;
  text-align: center;
  font-size: 1rem;
  opacity: 0.8;
}

.history-page {
  padding-top: 20px;
  padding-right: 16px;
  padding-left: 16px;
  padding-bottom: 24px;
}
.history-page h1 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 16px;
}

.history-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.history-game-card {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.history-game-card .history-game-top {
  display: flex;
  justify-content: space-between;
}
.history-game-card .history-game-title {
  font-weight: 700;
}
.history-game-card .history-game-date {
  font-size: 0.875rem;
  opacity: 0.7;
}
.history-game-card.selected {
  border-color: #305a30;
}

@media (max-width: 400px) {
  header img {
    display: none;
  }
}
@media (max-height: 870px) {
  #game-container #game-info #top-row #players-panel {
    max-height: 38vh;
  }
  #game-container #game-info #top-row #players-panel.easypad-mode {
    max-height: 30vh;
  }
  #game-container #throw-container #numpad, #game-container #throw-container #easypad {
    gap: 4px;
  }
  #game-container #throw-container #numpad .numpad-key, #game-container #throw-container #numpad .easypad-key, #game-container #throw-container #easypad .numpad-key, #game-container #throw-container #easypad .easypad-key {
    height: 8vh;
  }
}
@media (min-width: 768px) {
  header {
    font-size: 1.5rem;
    font-weight: 800;
  }
  .details-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .history-layout {
    flex-direction: row;
    gap: 20px;
  }
  .history-list {
    flex: 0 0 320px;
    max-height: calc(100vh - 180px);
  }
  .history-details {
    flex: 1;
    min-width: 0;
  }
  #home-page #home-buttons-container {
    grid-column: span 1;
    justify-self: end;
    margin-left: 0;
    margin-right: 50px;
  }
  #home-page #home-title-container {
    grid-column: span 1;
    max-width: 450px;
    margin-top: 20px;
  }
  #home-page #big-picture-container {
    grid-column: span 2;
    height: 719px;
  }
}
@media (min-width: 1024px) {
  .details-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .details-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1920px) {
  .player-details-header h2 {
    font-size: 3.75rem;
  }
  .player-details-header .player-score-left {
    font-size: 3.75rem;
  }
  header .header-logo-link {
    margin-left: calc((100vw - 1920px) / 2);
  }
  .square-button {
    right: calc(16px + (100vw - 1920px) / 2);
  }
  .settings-button {
    right: calc(76px + (100vw - 1920px) / 2);
  }
  .settings-menu {
    left: calc((100vw - 1920px) / 2);
  }
  .settings-menu:not(.open) {
    transform: translateX(calc(-100vw + (100vw - 1920px) / 2));
  }
  .menu {
    right: calc((100vw - 1920px) / 2);
  }
  .menu:not(.open) {
    transform: translateX(calc(100vw - (100vw - 1920px) / 2));
  }
  #home-page #big-picture-container {
    max-width: 1920px;
    margin-inline: auto;
  }
}

/*# sourceMappingURL=main.css.map */
