/* Reset & basics */
* {
  box-sizing: border-box;
  font-family: "Walter Turncoat", cursive;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  color: #0077b6;
  display: flex;
  justify-content: center;
  background: linear-gradient(to bottom, #075359 0%, #0f0530 100%);
}

h1 {
  font-size: 5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  user-select: none;
}

.title {
	font-family: "Slackey", sans-serif;
}

#start-screen,
#options-screen,
#game-screen,
#rules-screen {
  text-align: center;
  z-index: 1;
  position: relative;
}

#start-screen {
  margin-top: 25vh; /* push content down */
}

#game-screen {
  margin-top: 2vh;
  width: 100vw;
  height: 100vh;
}

#rules-list {
  color: #b0e0ff;
  font-size: 1.5rem;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
  list-style-type: disc;
  line-height: 2.5rem;
  padding-left: 2rem;
}

#bubble-container,
#seagrass-container,
#fishing-line-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -10; /* or lower */
}

/* Style for each bubble */
.bubble {
  position: absolute;
  bottom: -100px;
  border: 2px solid rgba(173, 216, 230, 0.4);
  border-radius: 50%;
  background: rgba(173, 216, 230, 0.08);
  box-shadow: 0 0 10px rgba(173, 216, 230, 0.2);
  backdrop-filter: blur(1px);
  mix-blend-mode: screen;
  animation: floatUp linear;
}

@keyframes floatUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-120vh);
    opacity: 0;
  }
}

/* Each grass blade */
.grass-blade {
  position: absolute;
  bottom: 0;
  width: 12px; /* broader base */
  height: 80vh; /* up to 80% of screen height */
  background: linear-gradient(to top, rgba(0, 255, 100, 0.25), rgba(0, 255, 100, 0.1));
  border-radius: 0 100% 0% 0;
  transform-origin: bottom center;
  animation: sway ease-in-out infinite;
  opacity: 0.4;
}

/* Keyframes for swaying side to side */
@keyframes sway {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}

.title span {
  display: inline-block;
  animation: wave 1.5s ease-in-out infinite;
  font-family: inherit;
}

/* Add delay to each letter to create wave effect */
.title span:nth-child(1) { animation-delay: 0s; }
.title span:nth-child(2) { animation-delay: 0.15s; }
.title span:nth-child(3) { animation-delay: 0.3s; }
.title span:nth-child(4) { animation-delay: 0.45s; }
.title span:nth-child(5) { animation-delay: 0.6s; }
.title span:nth-child(6) { animation-delay: 0.75s; }

/* Keyframes for vertical wave movement */
@keyframes wave {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px); /* move up */
  }
}

/* Button container for side-by-side layout */
.btn-container {
  display: flex;
  justify-content: center;
  background-color: transparent;
  gap: 2rem;
  align-items: baseline;
  margin-top: 3rem;
}

/* Button styling */
.glow-btn {
  padding: 1rem 3rem;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  color: white;
  background-color: #0096c7; /* base blue */
  box-shadow: 0 0 10px rgba(0, 150, 199, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
  user-select: none;
}

.glow-btn:hover {
  box-shadow: 0 0 20px rgba(38, 198, 218, 0.9);
  background-color: #00b4d8;
  transform: scale(1.05);
}

.glow-btn:active {
  background-color: #0077b6; /* darker blue on click */
  box-shadow: 0 0 8px rgba(0, 118, 168, 0.7);
  transform: scale(0.98);
  outline: none;
}

/* Remove focus outline */
.glow-btn:focus {
  outline: none;
}

.screen-fade-in {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.screen-fade-out {
  opacity: 0;
}

.subheading {
  font-size: 3rem;
  font-weight: bold;
}

/* Match Options styles */
#options-title {
  margin-bottom: 2.5rem;
  color: #0077b6;
  user-select: none;
}

#rules-title {
  margin-bottom: 2.5rem;
  color: #0077b6;
  user-select: none;
}

.option-group {
  margin: 2rem auto;
  text-align: center;
}

.option-label {
  font-size: 1.6rem;
  color: #b0e0ff;
  margin-bottom: 0.5rem;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: transparent; /* Track color */
  color: #0077b6;
  border-radius: 10px;
  border: 1px solid #0077b6;
  width: 60%;
  margin-top: 0.5rem;
}

/* Webkit (Chrome, Safari, Edge) */
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  height: 30px;
  width: 30px;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  border: 9px solid #0077b6;
}

.slider-value {
  font-size: 1.8rem;
  margin-top: 0.5rem;
  color: #90e0ef;
}

#bot-naming-container {
  position: absolute;
  top: 45%;
  left: 150%;
  text-align: center;
  user-select: none;
  opacity: 1;
  width: max-content;
}

.bot-naming-label {
  display: block;
  /* color: #b0e0ff; */
  /* margin-bottom: 0.5rem; */
  /* font-size: 1.6rem; */
}

#bot-naming-toggle {
  display: flex;
  padding: 0 0;
  font-size: 1.3rem;
  cursor: pointer;
  font-weight: normal;
}

#bot-naming-toggle span {
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

/* Active segment has normal "glow-btn" look */
#bot-naming-toggle span.active {
  background-color: #0077b6;
  color: #fff;
}

/* Inactive segment mimics glow-btn border but transparent bg */
#bot-naming-toggle span:not(.active) {
  background-color: transparent;
  color: #0077b6;
}

#sound-toggle-container {
  position: absolute;
  top: 45%;
  right: 150%; /* Mirrors the bot-naming container's left side */
  user-select: none;
  pointer-events: auto;
}

#sound-toggle-btn {
  width: 150px;
  height: 150px;
  background: url('../assets/misc/speaker.png') no-repeat center/contain;
  background-size: 80%;
  opacity: 0.6;
  border: 4px solid rgba(0, 119, 182, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#sound-toggle-btn:hover {
  transform: scale(1.1);
}

/* Slightly bigger font and brighter background for Go button */
.go-btn {
  font-size: 2rem; /* bigger than 1.5rem */
  background-color: #00b4d8; /* brighter blue */
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.9);
  animation: glowBreath 3s ease-in-out infinite;
}

.go-btn:hover {
  background-color: #00d0f0; /* even brighter on hover */
  box-shadow: 0 0 25px rgba(0, 208, 240, 1);
  transform: scale(1.07);
}

.go-btn:active {
  background-color: #008db5; /* darker on click */
  box-shadow: 0 0 10px rgba(0, 141, 181, 0.8);
  transform: scale(0.95);
}

@keyframes glowBreath {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 150, 199, 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgba(38, 198, 218, 0.9);
  }
}

@keyframes pulse1 {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(0, 150, 199, 0.6);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(38, 198, 218, 0.9);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(0, 150, 199, 0.6);
  }
}

/* INPUT FIELD STYLE */
#player-name-input {
  opacity: 0;
  width: 0;
  transform: translateX(-30px);
  transition: 
	  opacity 0.4s ease, 
	  transform 0.4s ease, 
	  width 0.4s ease, 
	  padding 0.4s ease;
  padding: 0.4rem 0;
  border-radius: 30px;
  border: 3px solid #0077b675;
  font-size: 1.4rem;
  background-color: transparent;
  color: #b0e0ff;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#player-name-input:focus {
  outline: none;
  border-color: #07b4d8;
  box-shadow: 0 0 10px #b0e0ff;
}

.bot-toggle-row {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: all 0.4s ease;
}

/* Animate the button shift */
#bot-toggle {
  transition: transform 0.4s ease;
}

/* check if needed */
.bot-toggle-row.with-input {
  justify-content: center;
}

/* When visible */
.bot-toggle-row.with-input #player-name-input {
  width: 250px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  padding: 0.4rem 0.8rem;
}

.bot-toggle-row.with-input #bot-toggle {
  transform: translateX(-10px);
}

.toggle-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.8rem;
}

.toggle-btn {
  padding: 0.6rem 1.5rem;
  font-size: 1.3rem;
  border: 2px solid #0077b6;
  border-radius: 8px;
  background-color: transparent;
  color: #0077b6;
  cursor: pointer;
  transition: all 0.2s ease, transform 1s ease;
}

.toggle-btn:hover {
  background-color: rgba(0, 119, 182, 0.1);
}

.toggle-btn.active {
  background-color: #0077b6;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 119, 182, 0.5);
}

.icon {
	padding: 0.6rem 1rem;
	font-size: 2rem;
	line-height: 1;
}

.icon-small {
	font-size: 1.2rem;
   padding: 0.4rem 0.8rem;
}

.transparent {
	background-color: transparent;
	backdrop-filter: blur(1px);
}

.translucent-heavy {
  background-color: rgba(0, 13, 30, 0.3);
  backdrop-filter: blur(7px);
}

.translucent-light {
  background-color: rgba(45, 45, 45, 0.1);
  backdrop-filter: blur(4px);
}

/* Menu icon button in top-left */
#menu-btn {
  position: absolute;
  top: 0.6rem;
  left: 1.5rem;
  z-index: 10;
  border: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Apply glow style when menu is active (via a class toggle) */
#menu-btn.menu-open {
  background-color: #0096c7;
  box-shadow: 0 0 10px rgba(0, 150, 199, 0.6);
  border-radius: 10px;
}

/* Menu Popup Overlay */
#menu-subwindow {
  position: fixed;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2rem 3rem;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 119, 182, 0.6);
  text-align: center;
  opacity: 0;
  z-index: 21;
  transition: opacity 0.3s ease;
}

/* Close (X) Button inside popup */
#close-menu-btn {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
}

/* Buttons inside the menu */
.menu-option {
  display: block;
  width: 100%;
  margin: 1rem 0;
  font-size: 1.5rem;
  font-weight: 500;
}

.menu-option-row {
	display: flex;
	justify-content: space-evenly;
	align-items: flex-end;
	width: 100%;
	margin-top: 2rem;
}

#fish {
  position: fixed;
  top: 50vh;
  left: 50vw;
  pointer-events: none;
  width: 360px;
  height: 180px;
  background: url('../assets/fish/fish1.png') no-repeat center/contain;
  transition: 
    transform 0.6s ease,
    filter 3s ease,
    opacity 3s ease,
	 width 3s ease,
    height 3s ease;
  z-index: -9; /* behind buttons but above bubbles and grass */
  opacity: 0.8;
}

#fishing-line {
  position: absolute;
  top: 0;
  left: 20vw;
  width: 5px;
  height: 55vh;
  background: rgba(128, 128, 128, 0.5);
  filter: blur(0.8px);
  opacity: 0.8;
  transition: height 4s ease, left 0.1s ease;
  transform-origin: top center;
  animation: sway-top 14s ease-in-out infinite alternate;
}

#fishing-hook {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-90%);
  transform-origin: top center;
  width: 25px;
  height: 49px;
  background: url('../assets/fish/hook.png') no-repeat center/contain;
  transition: transform 3s ease, opacity 3s ease, left 0.1s ease;
  animation: hook-sway 4s ease-in-out infinite;
  pointer-events: none;
  z-index: -8;
}

/* Top sways gently left and right */
@keyframes sway-top {
  0%   { transform: rotate(-15deg) translateX(25px); }
  50%  { transform: rotate(5deg) translateX(20px); }
  100% { transform: rotate(-5deg) translateX(25px); }
}

@keyframes hook-sway {
  0%, 100% {
    transform: translateX(-90%) rotate(-15deg);
  }
  50% {
    transform: translateX(-90%) rotate(5deg);
  }
}

#player-container {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 0;
}

.player-avatar {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 40%;
  border: 3px solid var(--border-color, white); /* fallback = white */
  box-shadow: inset 0 0 10px var(--glow-color, transparent), 0 0 30px var(--glow-color, transparent);
  background-color: transparent;
  object-fit: cover;
  overflow: hidden;
  cursor: pointer;
}

.player-avatar img {
  width: 105%; /* scale with wrapper */
  height: 105%;
  position: absolute;
  object-fit: cover;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  image-rendering: pixelated;
}

.player-avatar.glow:hover {
  box-shadow: inset 0 0 10px 10px var(--border-color), 0 0 15px 10px var(--border-color, #fff)
}

.player-avatar.tilt-shake {
  animation: tilt-shake 0.4s;
}

@keyframes tilt-shake {
  0%   { transform: var(--base-transform) rotate(0deg); }
  10%  { transform: var(--base-transform) rotate(-8deg); }
  20%  { transform: var(--base-transform) rotate(8deg); }
  30%  { transform: var(--base-transform) rotate(-8deg); }
  40%  { transform: var(--base-transform) rotate(8deg); }
  50%  { transform: var(--base-transform) rotate(0deg); }
  100% { transform: var(--base-transform) rotate(0deg); }
}

.player-name {
	position: absolute;
	text-align: center;
	width: 100px;
	color: white;
	text-shadow: 0 0 4px black;
	font-size: 25px;
	transition: text-shadow 0.7s ease, color 0.3s ease, font-size 0.3s ease;
	pointer-events: none;
}

.player-name.glow {
    color: #b0e0ff;
	 font-size: 30px;
    text-shadow:
        0 0 10px #fff,
        0 0 15px #0ff,
        0 0 20px #0ff;
}

.user-play-area {
	position: absolute;
	width: 600px;
	height: 200px;
	z-index: 900;
}

#card-deck-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;  /* just big enough to fit cards visually */
  height: 140px;
  pointer-events: none;
}

.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 140px;
  border-radius: 8px;
  transition: opacity 0.1s ease, transform 0.1s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  overflow: visible;             /* Prevent corner clipping */
  object-fit: cover;            /* Ensures image doesn't stretch */
  /* image-rendering: auto;        /* Ensures smooth scaling */
}

.card-remove {
	transition: opacity 0.3s ease, transform 0.3s ease;
	opacity: 0;
	transform: scale(0.3) rotate(-30deg) translateY(-50px);
}

.card-take {
	position: absolute;
	z-index: 1000;
	transition: transform 0.5s ease, left 0.5s ease, top 0.5s ease, width 0.5s ease, height 0.5s ease;
}

.user-card {
	width: 128px;
	height: 180px;
}

.bot-card {
	width: 32px;
	height: 45px;
}

.floating-text-btn {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3.5rem;
  color: #8fd3ff;
  cursor: pointer;
  user-select: none;
  animation: grow-pulse 1.4s infinite ease-in-out;
  transition: opacity 1s ease, transform 0.2s;
  background: transparent;
  opacity: 0;
  text-align: center;
  z-index: 999;
}

/* Optional hover effect */
.floating-text-btn:hover {
  transform: translateX(-50%) scale(1.05);
}

.floating-text-btn.fade-in {
  opacity: 1;
}

.floating-text-btn.grow-and-fade-out {
  transition: transform 2s ease, opacity 2s ease;
  transform: translateX(-50%) scale(1.3);
  opacity: 0;
}

.floating-text-btn.vertical-shake {
	animation: vertical-shake 0.3s;
}

.hidden {
    display: none;
}

@keyframes grow-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.12); }
}

@keyframes vertical-shake {
  0% { transform: translateX(-50%) translateY(0); }
  25% { transform: translateX(-50%) translateY(-3px); }
  50% { transform: translateX(-50%) translateY(3px); }
  75% { transform: translateX(-50%) translateY(-3px); }
  100% { transform: translateX(-50%) translateY(0); }
}

.floating-text {
    position: absolute;
    transform: translate(-50%, 0);
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    transition: transform 5s ease, opacity 5s ease;
    z-index: 2000;
    opacity: 1;
}

.floating-text.gain {
    color: hsl(130, 100%, 55%); /* green */
    text-shadow: 0 0 6px rgba(0, 255, 0, 0.6);
}

.floating-text.loss {
    color: hsl(0, 100%, 60%); /* red */
    text-shadow: 0 0 6px rgba(255, 0, 0, 0.5);
}

.floating-text.remove {
	opacity: 0;
	transform: translate(-50%, -60px);
}

.speech-bubble {
    position: absolute;
    transform: translateX(-50%);
    max-width: 300px;
    padding: 8px 8px;
    background: rgba(128, 128, 128, 0.2); /* semi-transparent gray background */
    color: #7feefa; /* soft neon blue */
    border-radius: 30px;
    box-shadow:
        0 0 10px rgba(176, 224, 255, 0.6), /* soft outer glow */
        0 0 20px rgba(0, 255, 255, 0.4);   /* cyan glow */
    font-size: 1.3rem;
    z-index: 1000;	/* show in front of all elements - not be obstructed */
    opacity: 1;
    transition: opacity 0.4s ease;
    word-wrap: break-word;
    white-space: normal;       /* allow multiline */
    text-align: center;        /* optional: center text */
    line-height: 1.2;
	 backdrop-filter: blur(2px); /* slight blur behind */
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.2) transparent transparent transparent;
}

.speech-bubble.fade-out {
    opacity: 0;
}

#winner-popup {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 3rem 2rem;
	border-radius: 20px;
	box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), 0 0 10px rgba(0, 255, 255, 0.4) inset;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	opacity: 0;
	max-height: 100vh;
	max-width: 95vw;
	width: max-content;
	transition: width 1s ease, height 1s ease, padding 1s ease, gap 1s ease, opacity 1s ease, display 2s ease;
}

#winner-popup .glow-btn:hover {
	background: rgba(0, 255, 255, 0.15);
	transform: scale(1.1);
	box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
	cursor: pointer;
}

#winner-popup .glow-btn {
	background: transparent;
	border: none;
	color: #b0e0ff;
}

#winner-title {
	font-size: 3.8rem;
	margin-bottom: 2rem;
	color: #b0e0ff;
	text-shadow: 0 0 8px cyan;
}

#winner-podium {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 2rem;
	height: auto;
	width: 100%;
	transition: width 1s ease, height 1s ease, padding 1s ease, gap 1s ease;
}

#winner-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;	
	transition: width 1s ease, height 1s ease, padding 1s ease, gap 1s ease;
}

.winner-avatar {
	display: block;
	position: relative;
	margin: 0 auto;
	border-radius: 40%;
	transition: all 0.6s ease;
}

.winner-avatar.first {
	width: 130px;
	height: 130px;
	border-color: #EFBF04;
	box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.7);
}

.winner-avatar.second {
	width: 105px;
	height: 105px;
	border-color: #C0C0C0;
	box-shadow: inset 0 0 10px rgba(192, 192, 192, 0.6), 0 0 30px rgba(224, 224, 224, 0.7);
}

.winner-avatar.third {
	width: 80px;
	height: 80px;
	border-color: #CD7F32;
	box-shadow: inset 0 0 10px rgba(205, 127, 50, 0.6), 0 0 30px rgba(255, 203, 164, 0.7);
}

.winner-label {
	position: relative;
	text-align: center;
	margin-top: 0.2rem;
	width: 100%;
	transition: all 0.6s ease;
}

.winner-label.first {
	font-size: 2.2rem;
	color: #EFBF04;
   text-shadow: 0 0 10px #EFBF04, 0 0 10px #EFBF04, 0 0 10px #EFBF04;
}

.winner-label.second {
	font-size: 1.6rem;
   color: #C0C0C0;
   text-shadow: 0 0 5px #C0C0C0, 0 0 10px #C0C0C0, 0 0 15px #E0E0E0;

}

.winner-label.third {
	font-size: 1.2rem;
	color: #CD7F32;
   text-shadow: 0 0 5px #CD7F32, 0 0 10px #CD7F32, 0 0 15px #FFCBA4;
}

/* Common glow effect */
.podium-glow {
  animation: border-glow 2s infinite ease-in-out;
  animation: text-glow 2s ease-in-out infinite;
}

Pulse animation for glow
@keyframes border-glow {
  0%, 100%  { box-shadow: 0 0 5px currentColor; }
  50%  		{ box-shadow: 0 0 10px currentColor; }
}

@keyframes text-glow {
  0%, 100% 	{ text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor; }
  50% 		{ text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor; }
}

.transparent-btn {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	font-size: 2.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0 0.6rem;
	transition: background 0.3s ease, transform 0.3s ease;
}

.remove-transform-ease {
	transition: transform 1s ease-out;
	transform: translate(0, 0);
}

#winner-stats {
  display: flow;
  column-count: 4;
  column-gap: 16px;
  width: 100%;
  overflow-y: auto;
}

.stat-section {
  break-inside: avoid;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  padding: 5px;
  display: flex;
  flex-direction: column;
}

.stat-heading {
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #90e0ef;
}

.stat-body {
  display: grid;
  grid-template-columns: 1fr;
}

.player-row {
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 15px;
  color: #eee;
  font-size: 1rem;
}

.special-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #ffdd57;
  margin-bottom: 6px;
  text-align: center;
}

.special-name {
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  color: #00e5ff;
}

dotlottie-wc.winner-avatar {
	transition: opacity 0.6s ease-in;
}


#fish,
#fishing-line,
#fishing-hook,
.bubble,
.grass-blade,
#fishing-line-container,
#bubble-container,
#seagrass-container
{
  will-change: transform;
}
