/* ------- Osmo [https://osmo.supply/] ------- */
/* Osmo UI: https://slater.app/10324/23333.css */

:root {
  --font-primary: 'Nunito', sans-serif;
  --font-display: 'Poppins', sans-serif;
  --color-primary: #ff9800;
  --color-primary-dark: #f57c00;
  --color-primary-light: #ffd180;
  --color-accent: #2c4f7c;
  --color-accent-light: #4675b8;
  --color-text: #333333;
  --color-text-light: #ffffff;
  --color-background: #f8f9fa;
  --color-card: #ffffff;
  --color-success: #4CAF50;
  --color-info: #2196F3;
  --border-radius: 10px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
  background-color: var(--color-neutral-900);
  color: var(--color-light);
  font-family: var(--font-primary);
  font-size: var(--size-font);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.cloneable {
  padding: var(--container-padding);
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  display: flex;
  position: relative;
}

form {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 40%;
}



.osmo-icon-svg {
  width: 8em;
  position: relative;
}

.parallax__header {
  z-index: 2;
  padding: var(--section-padding) var(--container-padding);
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  display: flex;
  position: relative;
}

.parallax {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.parallax__content {
  padding: var(--section-padding) var(--container-padding);
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
}

.cover {
  object-fit: cover;
  width: 100%;
  max-width: none;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.parallax__visuals {
  /* Decorative backdrop — it hangs over the top of the content section, so it
     must not swallow clicks meant for the score row (.parallax__title opts
     back in below). */
  pointer-events: none;
  object-fit: cover;
  width: 100%;
  max-width: none;
  height: 120%;
  position: absolute;
  top: 0;
  left: 0;
}

.parallax__placeholder {
  z-index: 0;
  opacity: 0;
  object-fit: cover;
  width: 100%;
  max-width: none;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.parallax__layers {
  object-fit: cover;
  width: 100%;
  max-width: none;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.cover-copy {
  object-fit: cover;
  width: 100%;
  max-width: none;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.parallax__fade {
  z-index: 30;
  object-fit: cover;
  width: 100%;
  max-width: none;
  height: 20%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.parallax__black-line-overflow {
  z-index: 20;
  background-color: var(--color-black);
  width: 100%;
  height: 2px;
  position: absolute;
  bottom: -1px;
  left: 0;
}

.parallax__title {
  pointer-events: auto;
  text-align: center;
  text-transform: none;
  margin-top: 0;
  margin-bottom: .1em;
  margin-right: .075em;
  font-family: PP Neue Corp Wide, sans-serif;
  font-size: 7vw;
  font-weight: 600;
  line-height: 1;
  position: relative;
}


.parallax__radial-gradient {
  z-index: 10;
  background-image: radial-gradient(circle farthest-corner at 50% 50%, transparent, var(--color-black));
  opacity: .2;
  pointer-events: none;
  mix-blend-mode: multiply;
  position: fixed;
  inset: 0;
}

.parallax__layer-title {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 90svh;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
}

.parallax__layer-img {
  pointer-events: none;
  object-fit: cover;
  width: 100%;
  max-width: none;
  height: 117.5%;
  position: absolute;
  top: -17.5%;
  left: 0;
}

.parallax__layer-img.is-third {
  top: -20%;
}

.content-box {
      flex: 1 1 calc (33.33% - 20px);
      width: 500px;
      height: 150px;
      background-color: orange;
      border: 2px solid #ccc;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0 20px;
      font-size: 1.5rem;
      text-align: center;
    }

@font-face {
  font-family: 'PP Neue Corp Wide';
  src: url('https://cdn.prod.website-files.com/671752cd4027f01b1b8f1c7f/6717e399d30a606fed425914_PPNeueCorp-WideUltrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@keyframes flip {
  from {
    transform: rotateX(-0deg);
  }
  to {
    transform: rotateX(-90deg);
  }
}

@keyframes bflip {
  from {
    transform: rotateX(90deg);
  }
  to {
    transform: rotateX(0deg);
  }
}

* {
  box-sizing: border-box;
  padding: 0px;
  margin: 0px;
}

html {
  width: 100%;
}
body {
  padding: 30px;
  background-color: #111111;
  width: 100%;
}

.body {
  background-color: #111111;
  color: #DDDDDD;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.title {
  padding: 5px;
  margin: 10px;
  font: bold 24px arial, sans-serif;
}
.title span {
  font-size: 14px;
  color: rgba(255,255,255,0.3);
}

.flex-center-all {
  display: flex;
  justify-content: center;
  align-items: center;
}


.split-flap-wrapper, .split-flap-wrapper-book {
  width: 700px;
  height: 300px;
  transform: scale(0.45);
  border: 1px solid black;
  padding: 10px;
  background: radial-gradient(#404040, black);
  box-shadow: inset 2px 2px 15px #444444;
  border-bottom: 5px solid black;
  border-right: 5px solid black;
  border-radius: 5px;
  flex-shrink: 0;
    border: 2px solid orange;
  overflow: hidden;
}

.split-flap-wrapper-book {
   width: max-content;
   min-width: 0;
   transform-origin: center center;
   transform: scale(0.30);
}

.flap {
  width: 200px;
  height: 100%;
  border: 2px solid black;
  margin: 5px;
  font-size: 190px;
  flex-direction: column;
  display: flex;
  background-color: black;
  perspective: 700px;
  overflow: hidden;
  border-radius: 4px;
 
  box-shadow: inset 2px 2px #111111;
  padding: 10px;
}
.top {
  border-bottom: 1px solid #222222;
  box-shadow: inset 0px -1px white;
}
.top,
.bottom {
  width: 100%;
  height: 50%;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: black;
}

.top-flap-visible,
.top-flap-queued, .top-static-flap {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  background-color: black;
  z-index: 2;
    border-radius: 15px;
  border-top: 1px solid #333333;
   background-color: rgb(10,10,10);
}
.top-flap-queued {
  z-index: 1;
}

.bottom-flap-visible,
.bottom-flap-queued, .bottom-static-flap {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  background-color: black;
  z-index: 1;
  overflow: hidden;
  border-radius: 15px;
  border-bottom: 1px solid  #333333;
/*   background-color: rgb(15,15,15); */
  background: radial-gradient(#404040, black);
}

.top span {
  display: block;
  margin-top: 12%;
}
.bottom span {
  display: block;
  margin-top: -58%;
}

.bottom-flap-queued {
  z-index: 2;
  transform: rotateX(90deg);
  overflow: hidden;
}

.top-flap-animation {
  animation: flip 0.05s ease-in;
  transform-origin: bottom;
}

.bottom-flap-animation {
  animation: bflip 0.05s ease-in;
  transform-origin: top;
  animation-delay: 0.05s;
}


/* Outer Wrapper */
.body {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px dashed brown;
}


/* Form */
form {
  border: 2px solid #222222;
  padding: 10px 50px;
  margin-bottom: 5px;
  background-color: #111111;
  box-shadow: 3px 4px 4px black;
  border-radius: 10px;
}
input, button {
  width: 300px;
  height: 40px;
  margin: 10px;
  margin-right: 0px;
  border: 2px solid black;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
}
button {
  width: auto;
  min-width: 80px;
  height: 40px;
  font-weight: bold;
  transition: 0.2s;
  cursor: pointer;
  margin: 0px 5px;
  line-height: 20px;
  padding: 5px 15px;
  box-sizing: border-box;
}
button:hover{
  color: white;
  background-color: black;
  transition: 0.2s;
}
select {
  padding: 5px;
  border-radius: 5px;
  margin: 0px 5px;
}

label {
  border-left: 2px solid grey;
  padding-left: 10px;

}
.static {
  font-size: 14px;
}
.top-static {
  height: 100%;
    box-shadow: none;

}
.top-static-flap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 20px;
  height: 100%;
  bottom: 0px;
  left: 0px;
  background: radial-gradient(#202020, black);
  border-bottom: 1px solid grey;
}

.logo-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0;
}

.osmo-icon-svg {
  position: relative;
  z-index: 10;
  mix-blend-mode: soft-light;
  filter: contrast(420%) brightness(350%);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  width: 100px;
  height: 100px;
}

.osmo-icon-svg:hover {
  transform: scale(1.05);
  filter: contrast(450%) brightness(400%);
}

.click-hint {
  color: #fff;
  background-color: rgba(255, 165, 0, 0.8);
  padding: 4px 14px;
  border: none;
  border-radius: 15px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 5px 0 0;
  cursor: pointer;
  animation: pulse 2s infinite;
}

.click-hint:hover {
  color: #fff;
  background-color: var(--color-primary-dark);
}

.click-hint:active {
  transform: scale(0.96);
}

@keyframes pulse {
  0% { opacity: 0.8; }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.8; }
}
/*     background: 
	linear-gradient(0deg, rgba(0,0,0,1), rgba(0,0,0,0)),
	url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.87' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
 */
}

.sound-toggle-wrapper {
  position: absolute;
  top: 70px;
  right: 50px;
  display: flex;
  flex-direction: column;
}
.sound-toggle-wrapper button {
  width: 140px;
  border: 1px solid white;
  padding: 8px 10px;
  height: auto;
  min-height: 40px;
  line-height: 24px;
  display: inline-block;
  vertical-align: middle;
}
.sound-toggle-wrapper button:active {
  width: 140px;
  border: 1px solid white;
  transform: scale(0.95);
}

/* button[dataSoundOn='on'] {
  background-color: #73db67;
  color: white;
  border: 2px solid grey;
}

button[dataSoundOn='off'] {
  background-color: red;
  color: black;
  border: 2px solid grey;
} */


.sound-status {
  
}

/* Styles for the book section */
.book-section {
  margin-top: 30px;
  width: 600px;
  display: flex;
  flex-direction: column;
  align-items: left;
}

.book-list-column {
  position: absolute;
  top: 100px;
  left: 40px;
  margin-bottom: 20px;
  font-size: 14px;
  width: 300px;
  align-items: left;
  border: 2px solid orange;
  background: radial-gradient(#404040, black);
  box-shadow: inset 2px 2px 15px #444444;
  border-radius: 5px;
}

.column-hint {
  margin: -10px 0 18px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(51, 51, 51, 0.6);
  text-align: left;
}

/* ---- Editable book / player lists ---- */
.editable-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 6px 12px;
  line-height: 1.3;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius);
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.entry-row:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.entry-row:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.18);
}

.entry-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-width: 0;
  margin: 0;
  border: none;
  padding: 0;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.entry-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 4px 2px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid transparent;
}

.entry-input:hover {
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

.entry-input:focus {
  outline: none;
  border-bottom-color: var(--color-primary);
}

.entry-row input[type="checkbox"]:not(:checked) ~ .entry-input {
  color: rgba(51, 51, 51, 0.45);
}

.entry-remove {
  flex: 0 0 auto;
  width: 26px;
  min-width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(51, 51, 51, 0.35);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.entry-row:hover .entry-remove,
.entry-row:focus-within .entry-remove,
.entry-remove:focus-visible {
  opacity: 1;
}

.entry-remove:hover {
  background-color: rgba(214, 69, 65, 0.12);
  color: #d64541;
}

.entry-row--add {
  border-style: dashed;
  border-color: rgba(0, 0, 0, 0.18);
  background-color: transparent;
}

.entry-row--add:hover {
  background-color: rgba(255, 152, 0, 0.06);
  border-color: var(--color-primary-light);
}

.entry-add-icon {
  flex: 0 0 auto;
  width: 18px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  user-select: none;
}

.entry-add-input::placeholder {
  color: rgba(51, 51, 51, 0.45);
  font-weight: 500;
}

/* Styles for the book section */
.player-section {
  margin-top: 30px;
  width: 600px;
  display: flex;
  flex-direction: column;
  align-items: left;
}

.player-list-column {
  position: absolute;
  top: 100px;
  left: 40px;
  margin-bottom: 20px;
  font-size: 14px;
  width: 300px;
  align-items: left;
  border: 2px solid orange;
  background: radial-gradient(#404040, black);
  box-shadow: inset 2px 2px 15px #444444;
  border-radius: 5px;
}


.content-container2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.content-box2 {
  box-sizing: border-box;
  background-color: var(--color-card);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  padding: 25px;
  text-align: center;
  color: var(--color-text);
  box-shadow: var(--box-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-box2:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.content-box2 h2 {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.content-box2 h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 3px;
}

.book-entries, 
.player-entries {
  margin-bottom: 20px;
  text-align: left;
}


form {
  border: none;               /* Remove the black border */
  background: none;           /* Remove any background color */
  box-shadow: none;           /* Remove any shadow */
  padding: 0;                 /* Remove extra padding */
  margin: 10px 0 0 0;         /* Add slight spacing above the form */
}

/* Rules container styles are defined below */

.rules-container {
  max-width: 850px;
  margin: 30px auto;
  text-align: center;
}

#toggle-rules-btn {
  background-color: var(--color-primary);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 15px;
  font-family: var(--font-primary);
  font-weight: 600;
  box-shadow: var(--box-shadow);
  transition: all 0.2s ease;
}

#toggle-rules-btn:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#toggle-rules-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rules {
  background-color: var(--color-accent);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  padding: 0;
  box-shadow: var(--box-shadow);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.3s ease-out;
  color: var(--color-text-light);
  font-family: var(--font-primary);
}

.rules.open {
  max-height: 1200px;
  padding: 30px;
  transition: max-height 0.5s ease-in, padding 0.3s ease-in;
}

.rules h2 {
  margin-top: 0;
  color: var(--color-primary-light);
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
  position: relative;
  display: inline-block;
}

.rules h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 3px;
}

.rules h3 {
  margin-top: 25px;
  margin-bottom: 12px;
  color: var(--color-primary-light);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.rules p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: left;
  opacity: 0.95;
}

.rules strong {
  color: var(--color-primary-light);
  font-weight: 700;
}

.rules em {
  font-style: italic;
  opacity: 0.9;
}

#players-list {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-top: 20px;
}

.player {
  text-align: center;
}

.player-score {
  font-size: 24px;
  margin: 10px 0;
}

.score-buttons {
  display: flex;
  justify-content: center;
}

.score-buttons button {
  margin: 0 5px;
}

.settings-button-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  position: relative;
  padding: 0;
}

.settings-button-container button {
  flex: 1 1 auto;
}

.settings h3,
.sound-toggle-wrapper h3 {
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(51, 51, 51, 0.55);
  text-align: left;
  margin: 22px 0 0;
}

#reset-game, #reset-scores {
  margin: 0;
  padding: 12px 15px;
  font-size: 15px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  width: 150px;
  height: auto;
  min-height: 44px;
  line-height: 20px;
  font-family: var(--font-primary);
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#reset-game:hover, #reset-scores:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#reset-game:active, #reset-scores:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.status-indicator {
  font-size: 13px;
  padding: 5px 10px;
  margin-left: 12px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-block;
  opacity: 0;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

.status-indicator.active {
  opacity: 1;
}

.status-indicator.clean-slate {
  background-color: var(--color-success);
  color: white;
}

.status-indicator.in-progress {
  background-color: var(--color-info);
  color: white;
}

/* Not needed as we have another hover style above */

/* Score panel: the player row plus its discrete edit toggle */
.score-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.edit-scores-btn {
  flex: 0 0 auto;
  width: 32px;
  min-width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.edit-scores-btn:hover {
  background-color: rgba(255, 152, 0, 0.15);
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  opacity: 1;
}

.edit-scores-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  opacity: 1;
}

/* Message line under the scores: what just happened, what to do next */
.score-message {
  min-height: 22px;
  margin: 0 0 10px;
  max-width: 620px;
  text-align: center;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.score-message.active {
  opacity: 1;
}

.score-message.warning {
  color: var(--color-primary-light);
}

.score-message.success {
  color: #8bd88f;
}

/* Player score row styling */
.player-score-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 25px 0;
  width: 100%;
  padding-top: 15px;
}

/* Inside the panel the row hugs its chips so the edit icon sits beside them */
.score-panel .player-score-row {
  width: auto;
  flex: 0 1 auto;
  margin-bottom: 15px;
}

/* Nudge when a spin is blocked because nobody has scored yet */
@keyframes needs-score-nudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.player-score-row.needs-score {
  animation: needs-score-nudge 0.45s ease;
}

.player-score-item {
  background-color: var(--color-primary);
  border-radius: var(--border-radius);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--box-shadow);
  font-family: var(--font-primary);
}

.player-score-item:hover {
  transform: translateY(-3px);
  background-color: var(--color-primary-dark);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.player-score-item:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Bar-raiser styling */
.player-score-item.bar-raiser {
  background-color: var(--color-accent);
  cursor: not-allowed;
  border: 2px solid var(--color-primary-light);
  position: relative;
}

.player-score-item.bar-raiser:hover {
  transform: none;
  background-color: var(--color-accent);
  box-shadow: var(--box-shadow);
}

.player-score-item.bar-raiser .player-name {
  color: white;
}

.player-score-item.bar-raiser::after {
  content: '👑';
  position: absolute;
  top: -15px;
  right: -5px;
  font-size: 18px;
}

.player-score-item .player-name {
  font-size: 16px;
  font-weight: 700;
  margin-right: 12px;
  color: white;
  font-family: var(--font-primary);
}

/* Holder of this round's point — movable until the next spin */
.player-score-item.round-winner {
  background-color: var(--color-success);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3), var(--box-shadow);
  position: relative;
}

.player-score-item.round-winner:hover {
  background-color: #43a047;
}

.player-score-item.round-winner::before {
  content: '⭐';
  position: absolute;
  top: -12px;
  left: -6px;
  font-size: 16px;
}

.player-score-item.round-winner .player-points {
  color: var(--color-success);
}

/* Manual score editing */
.player-score-row.editing .player-score-item {
  cursor: default;
  padding: 12px 12px;
  gap: 4px;
}

.player-score-row.editing .player-score-item:hover {
  transform: none;
  background-color: var(--color-primary);
  box-shadow: var(--box-shadow);
}

.player-score-row.editing .player-score-item.bar-raiser:hover {
  background-color: var(--color-accent);
}

.player-score-row.editing .player-score-item.round-winner:hover {
  background-color: var(--color-success);
}

.player-score-row.editing .player-score-item.bar-raiser {
  cursor: default;
}

.player-score-row.editing .player-name {
  margin-right: 6px;
  margin-left: 6px;
}

.score-adjust {
  flex: 0 0 auto;
  width: 26px;
  min-width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  color: white;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.score-adjust:hover {
  background-color: white;
  color: var(--color-primary-dark);
}

.score-adjust:active {
  transform: scale(0.9);
}

.player-score-item .player-points {
  background-color: white;
  color: var(--color-primary-dark);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-family: var(--font-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}