*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0.01em; /* Apply subtle letter-spacing globally */
}

:root {
  --primary-color: #524ed2;
  --secondary-color: #bad3ea;
  --primary-hover-color: #6f6cda;
  --secondary-hover-color: #d1e2f1;
  --white: #f2f2f2;
  --black: #0d0d0d;
  --font: "Bangers";
  --text-shadow-md: 0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1), 0px 2px 4px rgb(0 0 0 / 0.1);
}

html {
  font-size: 16px;
  font-family: var(--font);
  line-height: 1;
}

html button,
html a {
  font-family: var(--font);
  line-height: 1;
}

html button:focus-visible {
  outline: solid 0.125rem rgb(114, 114, 114);
}

html button:focus {
  box-shadow: none;
}

body {
  --board-color: #ffffff;
  color: var(--black);
  padding: 0px 5px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100dvh;
  background-image: url("../images/background-pc.png");
  background-size: cover;
  position: relative;
}

#shade {
  background-color: rgba(24, 28, 37, 0.6); /* 181C25 with 60% opacity */
  max-width: 53rem;
  width: 100%;
  height: fit-content;
  border-radius: 5px;
}

#footer {
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 0.167rem + 2.667vw, 1.5rem); /* min 500 max 800 */

  padding: clamp(0.5rem, 0.083rem + 1.333vw, 0.75rem)
    clamp(0.5rem, -0.75rem + 4vw, 1.25rem); /* min 500 max 800 */
}
#footer dialog,
#footer a {
  font-family: sans-serif;
  font-size: 1.25rem;
  line-height: 1.25;
}

#aboutButton,
#howToPlayButton,
#feedbackButton {
  border: 0;
  padding: 0;
  background: none;
  color: #99999b;
  text-decoration: underline;
  transition: color 0.2s ease;
}

#aboutButton:hover,
#howToPlayButton:hover,
#feedbackButton:hover {
  color: #d4d4d8;
  cursor: pointer;
}

#howToPlayModal article,
#aboutModal article,
#feedbackModal article {
  max-height: 75dvh; /* Set maximum height to 85% of the dynamic viewport height */
  overflow-y: auto; /* Add vertical scrollbar if content exceeds max-height */
  display: flex; /* Ensures the dialog content respects max-height and scrolls properly */
  flex-direction: column; /* Aligns content vertically */
}

#howToPlayModal strong,
#aboutModal strong,
#feedbackModal strong {
  color: #f4f4f5;
}

#homeScreen,
#gameScreen,
#resultScreen {
  width: 100%;
  padding: clamp(0.5rem, -0.75rem + 4vw, 1.25rem)
    clamp(0.5rem, -0.75rem + 4vw, 1.25rem); /* min 500 max 800 */
  color: var(--white);
}
#settings {
  display: flex;
  justify-content: right;
  align-items: center;
  text-align: right;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 0.662rem + 1.569vw, 1.25rem); /* min 345 max 600 */
  margin-right: 3px;
}

#musicToggleButton,
#fullscreenToggleButton {
  font-size: 1.25rem;
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  color: transparent;
  text-shadow: 0 0 0 var(--white);
  margin-left: 0.75rem;
}
#musicToggleButton::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0%;
  width: 100%;
  height: 0.125rem;
  background: red;
  transform: rotate(45deg);
  transition: opacity 0.5s ease-in-out;
  border-radius: 0.125rem;
}

#musicToggleButton.active::after {
  opacity: 0;
}

#title {
  font-size: clamp(4rem, 1.294rem + 12.549vw, 6rem); /* min 345 max 600 */
  text-align: center;
  margin-bottom: clamp(2rem, 0.647rem + 6.275vw, 3rem); /* min 345 max 600 */
}

#backToMenuButton {
  width: 100%;
  border-radius: 5px;
  border: 0;
  padding: 1rem 1.25rem;
  cursor: pointer;
  color: var(--white);
  font-size: 1.25rem;
  margin-top: clamp(2rem, 1.324rem + 3.137vw, 2.5rem);
}

/* Game Modes */
#gameModes {
  display: flex;
  gap:clamp(0.3rem, -0.231rem + 2.462vw, 1rem);
  align-items: center;
  margin-bottom: clamp(2rem, 0.647rem + 6.275vw, 3rem); /* min 345 max 600 */
}

.gameModesButtons {
  background-color: var(--secondary-color);
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  border: 0;
  cursor: pointer;
  color: var(--black);
  font-size: clamp(1.125rem, 0.272rem + 3.956vw, 2.25rem); /* min 345 max 800 */
  display: grid;
  grid-template-rows: 1fr 1fr; /* Two equal rows */
  align-items: center; /* Center items vertically */
  justify-items: center; /* Center items horizontally */
  transition: background-color 0.3s ease, color 0.3s ease;
  gap: clamp(0rem, -0.758rem + 3.516vw, 1rem); /* min 345 max 800 */
  padding: clamp(0.5rem, -2.154rem + 12.308vw, 4rem) 0.5rem; /* min 345 max 800 */
  position: relative; /* For absolute positioning of streak badge */
}

.gameModesButtons:hover {
  background-color: var(--secondary-hover-color);
}

.gameModesButtons.active {
  background-color: var(--primary-color);
  color: var(--white);
  cursor: auto;
}

/* Game Modes - SVG */
#classicButton svg {
  stroke: var(--black);
  fill: var(--black);
  transition: stroke 0.3s ease, fill 0.3s ease;
  width: clamp(2rem, 1.382rem + 2.866vw, 2.815rem); /* min 345 max 800 */
  height: clamp(2rem, 1.382rem + 2.866vw, 2.815rem); /* min 345 max 800 */
}

#classicButton.active svg {
  stroke: var(--white);
  fill: var(--white);
}

/* NEW Banner for Daily Challenge */
#dailyChallengeButton {
  position: relative;
  overflow: visible;
}

#dailyChallengeButton .new-banner {
  position: absolute;
  top: -2px;
  left: -8px;
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  color: white;
  padding: 2px clamp(0.5rem, -0.176rem + 3.137vw, 1rem); /* min 345 max 600 */
  font-size: 0.75rem;
  font-family: 'Oswald', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
  transform: rotate(-15deg);
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
  z-index: 1;
  animation: pulse-banner 2s infinite;
}

@keyframes pulse-banner {
  0%, 100% {
    transform: rotate(-30deg) scale(1);
  }
  50% {
    transform: rotate(-30deg) scale(1.05);
  }
}

#dailyChallengeButton svg {
  width: clamp(2.223rem, 1.538rem + 3.174vw, 3.125rem); /* min 345 max 800 */
  height: clamp(2.223rem, 1.538rem + 3.174vw, 3.125rem); /* min 345 max 800 */
}

#dailyChallengeButton svg g:nth-of-type(1) {
  stroke: var(--black);
  fill: var(--black);
  stroke-width: 0;
  transition: stroke 0.1s ease, fill 0.1s ease, stroke-width 0.1s ease;
}

#dailyChallengeButton.active svg g:nth-of-type(1) {
  stroke: var(--primary-color);
  fill: var(--white);
}

#dailyChallengeButton svg g:nth-of-type(2) {
  stroke: var(--white);
  fill: var(--white);
  stroke-width: 1.25;
}

#dailyChallengeButton.active svg g:nth-of-type(2) {
  stroke: var(--primary-color);
  fill: var(--primary-color);
  stroke-width: 1.5;
}

/* Streak Badge */
.streak-badge {
  position: absolute;
  top: clamp(0.25rem, -0.088rem + 1.569vw, 0.5rem); /* min 345 max 600 */
  right: clamp(0.25rem, -0.088rem + 1.569vw, 0.5rem); /* min 345 max 600 */
  background-color: #ff6b35;
  border: 1px solid #ff6b35;
  color: var(--white);
  padding: 0.2rem 0.2rem;
  border-radius: 12px;
  font-size: clamp(0.75rem, 0.5rem + 1vw, 1rem);
  gap: 0.2rem;
  z-index: 10;
}

.streak-badge svg {
  width: clamp(0.75rem, 0.5rem + 1vw, 1rem) !important;
  height: clamp(0.75rem, 0.5rem + 1vw, 1rem) !important;
  color:var(--white);
  fill: var(--white);
}

#endlessModeButton svg {
  fill: var(--black);
  stroke: var(--black);
  stroke-width: 1;
  transition: fill 0.3s ease, stroke 0.3s ease;
  width: clamp(2.311rem, 1.599rem + 3.301vw, 3.25rem); /* min 345 max 800 */
  height: clamp(2.311rem, 1.599rem + 3.301vw, 3.25rem); /* min 345 max 800 */
}

#endlessModeButton.active svg {
  stroke: var(--white);
  fill: var(--white);
}

#endlessModeButton svg g path:nth-of-type(4) {
  stroke: var(--white);
  transition: stroke 0.1s ease;
}

#endlessModeButton.active svg g path:nth-of-type(4) {
  stroke: var(--primary-color);
}

/* Start Button */
.startButton {
  background-color: var(--primary-color);
  width: 100%;
  border-radius: 5px;
  border: 0;
  padding: 1rem 1.25rem;
  cursor: pointer;
  color: var(--white);
  font-size: 1.25rem;
  margin-top: clamp(2rem, 0.647rem + 6.275vw, 3rem); /* min 345 max 600 */
}

#mainMenuButton {
  background-color: var(--primary-color);
  width: 100%;
  border-radius: 5px;
  border: 0;
  padding: 1rem 1.25rem;
  cursor: pointer;
  color: var(--white);
  font-size: 1.25rem;
}

.startButton:hover {
  background-color: var(--primary-hover-color);
}

/* Options - Title & Layout */
.optionTitle {
  font-size: clamp(1.5rem, 0.485rem + 4.706vw, 2.25rem); /* min 345 max 600 */
  margin-bottom: clamp(1.5rem, 0.824rem + 3.137vw, 2rem); /* min 345 max 600 */
}

/* Green completion badge for daily challenge */
.completion-badge {
  display: inline-flex;
  align-items: center;
  color: #4caf50;
  font-weight: bold;
  vertical-align: middle;
  margin-left: 0.2em;
}

.completion-badge svg {
  display: inline-block;
  vertical-align: middle;
  width: clamp(1rem, 0.324rem + 3.137vw, 1.5rem) !important;
  height: clamp(1rem, 0.324rem + 3.137vw, 1.5rem) !important;
}

/* Flame icon styling */
.lucide-flame-icon {
  display: inline-block;
  vertical-align: middle;
  color: #ff6b35;
  fill: #ff6b35;
}

/* Check icon styling */
.lucide-check-icon {
  display: inline-block;
  vertical-align: middle;
}

/* Result buttons container */
.result-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-top: clamp(1rem, -1.029rem + 9.412vw, 2.5rem); /* min 345 max 600 */
}

/* Share button for daily challenge */
.shareButton {
  width: 100%;
  background-color: var(--secondary-color); /* Twitter blue for virality association */
  color: var(--black);
  border: none;
  padding: 0.8rem 1rem; /* Match main menu button padding */
  border-radius: 5px; /* Match main menu button border radius */
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
}

.shareButton:hover {
  background-color: var(--secondary-hover-color);
}

.shareButton svg {
  width: 1rem;
  height: 1rem;
}

/* Share icon styling */
.lucide-share-icon {
  display: inline-block;
  vertical-align: middle;
}

#gameOptions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#optionsContainer {
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-template-columns:
    clamp(6.8rem, 3.824rem + 13.804vw, 9rem) /* min 345 max 600 */
    auto
    clamp(6.8rem, 3.824rem + 13.804vw, 9rem) /* min 345 max 600 */
    auto;
  row-gap: clamp(1.2rem, 0.659rem + 2.51vw, 1.6rem); /* min 345 max 600 */
}

.optionButtons {
  display: contents;
}

#timeControlLabel,
#evalLabel,
#timeLimitLabel {
  grid-column: 1;
}

#timeControlPrev,
#evalPrev,
#timeLimitPrev {
  grid-column: 2;
}

#timeControlSelection,
#evalSelection,
#timeLimitSelection {
  grid-column: 3;
  text-align: center;
  cursor: default;
}

#timeControlNext,
#evalNext,
#timeLimitNext {
  grid-column: 4;
}

/* Daily Challenge Stats Styles */

#dailyStreakInfo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  font-size: clamp(1rem, 0.662rem + 1.569vw, 1.25rem);
}

#dailyStreakInfo {
  display: flex;
  gap: clamp(1.2rem, 0.659rem + 2.51vw, 1.6rem); /* min 345 max 600 */
}

#dailyStreakInfo div {
  font-size: clamp(1rem, 0.662rem + 1.569vw, 1.25rem); /* min 345 max 600 */
}


#nextChallengeLine {
  color: #eeeeee6b;
}

.optionButtons div {
  font-size: clamp(1rem, 0.662rem + 1.569vw, 1.25rem); /* min 345 max 600 */
}

#evalSelection.hardStyle::before {
  font-family: sans-serif;
}

#evalSelection.hardStyle {
  color: #ff9500;
}
/* Options - Nav Button */
.optionNavButton {
  background-color: transparent;
  border: none;
  border-radius: 5px;
  padding: 0;
  cursor: pointer;
  width: fit-content;
  height: fit-content;
}

.triangle {
  background-color: transparent;
  height: clamp(0.9rem, 0.596rem + 1.412vw, 1.125rem); /* min 345 max 600 */
}

.triangle path {
  fill: var(--secondary-color);
  stroke: var(--secondary-color);
  stroke-linejoin: round;
  stroke-width: 0.5rem;
  transition: fill 0.05s ease, stroke 0.05s ease;
}

.optionNavButton:hover .triangle path {
  fill: var(--secondary-hover-color);
  stroke: var(--secondary-hover-color);
}

.optionNavButton:active .triangle path {
  fill: var(--primary-color);
  stroke: var(--primary-color);
}

.optionNavButton.active .triangle path {
  fill: var(--primary-color);
  stroke: var(--primary-color);
}

/* Game Header */
#gameHeader {
  display: grid;
  grid-template-columns: 0.2fr 0.8fr 1fr 1fr;
  font-size: clamp(1rem, 0.662rem + 1.569vw, 1.25rem); /* min 345 max 600 */
  height: 1.75rem;
  margin-bottom: 1rem;
}

#clock {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #398712;
  border-radius: 5px;
  font-family: "Oswald" !important;
  font-weight: 500;
}

#gameMode {
  display: flex;
  align-items: center;
  padding-left: clamp(0.3rem, 0.029rem + 1.255vw, 0.5rem);
}

#rounds {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

#score {
  display: flex;
  align-items: center;
  justify-content: right;
  position: relative;
}

#scoreText.streak {
  animation: pulse 2s infinite;
  color: #fea51f;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.streakIcon {
  position: relative;
  height: clamp(1rem, 0.662rem + 1.569vw, 1.25rem);
  margin-left: clamp(-1rem, -0.529rem + -1.255vw, -0.8rem);
  margin-right: clamp(0.3rem, 0.029rem + 1.255vw, 0.5rem);
  top: -2px;
}

#roundsText {
  margin-right: clamp(0.3rem, 0.029rem + 1.255vw, 0.5rem);
}

#heartsContainer {
  max-height: 20rem;
  transition: max-height 1s;
}

#heartsContainer.shrink {
  max-height: 0;
}

.heartIcon {
  position: relative;
  width: clamp(0.88rem, 0.582rem + 1.38vw, 1.1rem);
  height: clamp(0.88rem, 0.582rem + 1.38vw, 1.1rem);
  transition: width 1s, height 1s, opacity 1s;
  opacity: 1;
}

.heartIcon.shrink {
  width: 0;
  height: 0;
  opacity: 0;
}

.heartIcon.expand {
  width: clamp(0.88rem, 0.582rem + 1.38vw, 1.1rem);
  height: clamp(0.88rem, 0.582rem + 1.38vw, 1.1rem);
  opacity: 1;
}

.heartIcon.pulse {
  animation: heartPulse 1s;
}

@keyframes heartPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 500px) {
  #rounds {
    flex-direction: column;
  }
  #roundsText {
    margin-right: 0px;
  }
}

/* Board Container */
#boardContainer {
  position: relative;
  font-family: sans-serif;
  margin-bottom: 1.5rem;
}

cg-board {
  /* board backround*/
  background-image: url("https://lichess1.org/assets/hashed/brown.d4a5fe34.png") !important;
}

.cg-wrap coords {
  /* board coords */
  color: black !important;
  font-size: clamp(0.4rem, 0.129rem + 1.255vw, 0.6rem) !important;
  font-weight: bold !important;
}

.lpv:focus {
  /* remove focus outline */
  outline: none !important;
}

.shade .lpv {
  /* navigation buttons height */
  --controls-height: 3.5em;
}

.lpv .lpv__icon:before {
  /* navigation button icons size */
  font-size: 1rem;
}

.lpv .lpv__moves > index {
  /* font size of indexes in the sizebar */
  font-size: 0.8rem;
}

.lpv .lpv__moves > move {
  /* font size of moves in the sidebar */
  font-size: 0.9rem;
}

.lpv .lpv__player {
  /* font size of moves in the sidebar */
  padding-left: 0.2rem;
  padding-right: 0.5rem;
}

.lpv__menu {
  font-size: 1.2rem;
}

.lpv {
  /* remove bottom borders */
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  box-shadow: none !important;
}

#boardContainer
  > div.lpv.lpv--moves-auto.lpv--controls-true.lpv--players.lpv--menu
  > div.lpv__controls
  button {
  transition: none;
}

#boardContainer
  > div.lpv.lpv--moves-auto.lpv--controls-true.lpv--players.lpv--menu
  > div.lpv__menu.lpv__pane
  > a:nth-child(4) {
  background-color: rgb(68, 68, 68);
}

#boardContainer
  > div.lpv.lpv--moves-auto.lpv--controls-true.lpv--players.lpv--menu
  > div.lpv__menu.lpv__pane
  > a:nth-child(4).enabled {
  background-color: rgba(0, 0, 0, 0);
}

.lpv__pane {
  z-index: 70 !important;
}

@media (min-width: 501px) {
  .lpv.lpv--players.lpv--moves-auto {
    grid-template-columns:
      minmax(200px, calc(108vh - 2 * 2em - var(--controls-height)))
      minmax(210px, 1fr);
  }
}

@media (max-width: 500px) {
  .lpv.lpv--players.lpv--moves-auto {
    grid-template-areas:
      "player-top"
      "board"
      "player-bot"
      "controls"
      "side"
      "eval-field" !important;
    grid-template-columns: minmax(
      200px,
      calc(100vh - 2 * 2em - var(--controls-height) - 6em)
    ) !important;
  }
  #evalField {
    display: none !important;
  }
}
#countdownBar {
  position: absolute;
  --pico-progress-color: #398712;
  border-radius: 0 0 5px 5px;
  margin-bottom: 0px;
}

#answerBanner {
  position: absolute;
  border: 0;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 80;
  border-radius: 5px;
  transition: max-height 2s;
  max-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-shadow: 0px 0px 1rem 0px rgba(0, 0, 0, 0.5);
}

#answerBannerContent {
  padding: 0.75rem 1rem;
  font-size: clamp(1rem, 0.662rem + 1.569vw, 1.25rem); /* min 345 max 600 */
  font-family: var(--font);
}

#answerBanner.correct {
  background-color: #398712;
}

#answerBanner.incorrect {
  background-color: #d93526;
}

#answerBanner.active {
  max-height: 20rem;
}

/* Board Elements */
#evalBar.white {
  --pico-progress-color: #ffff;
  background-color: #3b3b3b;
  border: 1px solid #3b3b3b;
}

#evalBar.black {
  --pico-progress-color: #3b3b3b;
  background-color: #ffff;
  border: 1px solid #3b3b3b;
}

#evalField {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  padding-left: 0.6rem;
  border-bottom: 1px solid var(--c-lpv-border, hsl(0, 0%, 25%));
}

img.light-shadow {
  filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.4));
}

.mini-knight,
.mini-bishop,
.mini-rook,
.mini-queen {
  height: 2em;
  z-index: 60;
  margin-left: -1em;
}

.mini-pawn {
  height: 2em;
  z-index: 60;
  margin-left: -1.2em;
}

.mini-pawn:first-child,
.mini-knight:first-child,
.mini-bishop:first-child,
.mini-rook:first-child,
.mini-queen:first-child {
  margin-left: -0.2em;
}

.capturedValue {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  margin-left: 0.2em;
}

/* ELO Buttons */

#eloButtonsContainer {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Initially 1 row with 4 buttons */
  gap: 0.5rem;
}

.two-rows {
  grid-template-columns: 1fr 1fr; /* Switch to 2 rows with 2 buttons each */
}

.eloButton {
  background-color: var(--primary-color);
  border: 0;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  color: var(--white);
  font-size: clamp(1rem, 0.662rem + 1.569vw, 1.25rem); /* min 345 max 600 */
  font-family: "Oswald" !important;
  font-weight: 500;
}

.eloButton:hover {
  background-color: var(--primary-hover-color);
}

.correctGuess {
  pointer-events: none;
  background-color: #398712 !important;
}

.incorrectGuess {
  pointer-events: none;
  background-color: #d93526 !important;
}

/* Next & Result Buttons */
#nextGameButton,
#viewResultButton {
  background-color: var(--primary-color);
  border: 0;
  padding: 0.75rem 1rem;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  color: var(--white);
  font-size: clamp(1rem, 0.662rem + 1.569vw, 1.25rem); /* min 345 max 600 */
  margin-top: 1rem;
}

#nextGameButton:hover,
#viewResultButton:hover,
#mainMenuButton:hover {
  background-color: var(--primary-hover-color);
}

/* Result Screen */
#resultBanner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#resultHeader {
  margin-top: 2rem;
  color: #9bd87c;
  font-size: 2.5rem;
  text-align: center;
}

#resultSummary {
  margin-top: 1rem;
  font-size: clamp(1rem, 0.662rem + 1.569vw, 1.25rem);
}

#yourScoreText {
  margin-top: calc(3rem + clamp(0.5rem, -0.75rem + 4vw, 1.25rem));
  font-size: 2rem;
  color: #9bd87c;
}

#totalScore {
  margin-top: 1rem;
  font-size: 2rem;
}

#resultDetails {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#resultDetails hr {
  width: 100%;
  height: 2px;
  color: var(--white);
  background-color: var(--white);
  margin: 0;
  margin-top: 2rem;
}

#resultDetails {
  font-size: clamp(1rem, 0.662rem + 1.569vw, 1.25rem);
  display: flex;
  justify-content: center;
  align-items: center;
}

#resultDetailsContainer {
  display: grid;
  grid-template-rows: repeat(4, auto);
  grid-template-columns: clamp(6rem, 0.588rem + 25.098vw, 10rem) clamp(
      6rem,
      0.588rem + 25.098vw,
      10rem
    );
  row-gap: clamp(0.5rem, -0.176rem + 3.137vw, 1rem); /* min 345 max 600 */
  margin-bottom: 2rem;
}

#totalBaseScoreValue,
#totalTimeBonusValue,
#totalStreakBonusValue,
#longestStreakValue {
  text-align: right;
}

.notyf__toast {
  font-family: "oswald";
  max-width: none !important;
}

.notyfIcon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}
