/* latin - 400 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v12-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin - 500 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v12-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin - 600 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v12-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin - 700 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin - 800 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v12-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --body-color:       #050508;
  --bg-color:         rgba(18, 18, 24, 0.7);
  --container-color:  rgba(18, 18, 24, 0.9);
  --keyword-color:    #ffd700;
  --button-color:     #7b61ff;
  --buttonhover-color:#6c52ed;
  --selection-color:  #14141d;
  --selectionhover-color: #1e1935;
  --z-index: 9999;
  --star-size: 42px;
  --star-color: rgba(255, 255, 255, 0.1);
  --star-background: #ffd700;
  --text-color:       #f3f4f6;
  --text-muted:       #9ca3af;

  --border-light: rgba(255, 255, 255, 0.08);
  --radius-outer: 24px;
  --radius-inner: 16px;
  --radius-pill: 50px;
  --shadow-glow: 0 0 20px rgba(123, 97, 255, 0.15);
}

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

* {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  height: 100%;
  background-color: var(--body-color);
}

body {
  margin: 0;
  padding: 0;
  overflow: auto;
  color: var(--text-color);
  background-color: var(--body-color);
  background-image:
    radial-gradient(circle at 50% 15%, rgba(123, 97, 255, 0.18) 0%, rgba(5, 5, 8, 0) 50%),
    radial-gradient(circle at 10% 80%, rgba(168, 85, 247, 0.08) 0%, rgba(5, 5, 8, 0) 40%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: #fff;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  background-color: var(--container-color);
  color: var(--text-color);
  border: none;
  margin: 0;
  padding: 0.85rem 1.5rem;
  font-weight: 500;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.05);
}

/* Daily Challenge Badge */
.daily-badge {
  text-align: center;
  margin: 0.85rem auto 0.25rem auto;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 5px 16px;
  border-radius: 9999px;
  display: block;
  width: fit-content;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.12);
  animation: fadeInBadge 0.35s ease-out;
}

@keyframes fadeInBadge {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

#howTo {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 1.1rem;
  text-align: left;
}

.game-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 0;
}

.container {
  background-color: var(--bg-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  width: 95%;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  padding: 0;
  padding-bottom: 1.5rem;
  border-radius: var(--radius-outer);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

h1 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.08), 0 3px 10px rgba(0, 0, 0, 0.6);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font-size: 1.15rem;
  padding: 0.75rem 2rem;
  margin-bottom: 1rem;
  background-color: var(--button-color);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  margin: auto;
  font-weight: 700;
  transition: all 0.3s ease;
}

button:hover {
  background-color: var(--buttonhover-color);
}

#closeButton {
  position: absolute;
  width: 1.25rem;
  height: auto;
  right: 1rem;
  cursor: pointer;
}

#questionMark {
  width: 1.25rem;
  height: auto;
  margin-right: .25rem;
}

.transpartentLayer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.transpartentLayer.active {
  opacity: 1;
  visibility: visible;
}
#instructionContainer {
  position: absolute;
  background-color: var(--container-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-light);
  color: var(--text-color);
  margin: auto;
  max-width: 500px;
  width: 90%;
  min-width: 300px;
  padding: 2.25rem 2rem 2rem 2rem;
  border-radius: var(--radius-outer);

  top: 6rem;
  left: 50%;
  transform: translate(-50%, 0%);
}

#instructionContainer h2 {
  font-size: 1.45rem;
  font-weight: 700;
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.75rem;
  color: var(--text-color);
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--button-color);
  color: var(--body-color);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.step-content {
  text-align: left;
  flex-grow: 1;
}

.step-content h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.step-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}



#scoreDisplay,
#counterContainer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--selection-color);
  border: 1px solid #2f3342;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#counterContainer:empty {
  display: none !important;
}

#scoreLabel {
  color: var(--text-muted);
}

#scoreNumber {
  color: var(--button-color);
  font-weight: 700;
}

#question,
#keywordReveal {
  display: flex;
  gap: .2rem;
  flex-wrap: wrap;
  flex-basis: 50%;
  font-size: 1.15rem;
  margin-left: 0rem;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  width: auto;
  align-items: flex-start;
  top: 0;
}

#keywordReveal {
  width: 100%;
  margin: 0 auto;
  margin-bottom: 1rem;
  justify-content: center;
  align-items: center;
}

#keywordReveal .keyword {
  animation: none;
}


.keyword {
  background-color: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  
  /* CSS Animation for keyword reveal */
  animation: revealKeyword 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes revealKeyword {
  from {
    transform: scale(1.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


main {
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  text-align: center;
  padding: 0 1rem 0 1rem;

}

#question {
  margin-bottom: 1rem;
  margin-top: 0;
  min-height: 3.5rem;
  width: 100%;
  display: flex;
  justify-content: center;

}

#options {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 0rem;
}

#options .answer {
  width: 100%;
  background: linear-gradient(135deg, rgba(28, 30, 44, 0.85) 0%, rgba(16, 17, 24, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-inner);
  overflow: hidden;
  cursor: pointer;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease,
              background 0.25s ease;
  
  /* CSS Animation for options reveal */
  opacity: 0;
  animation: showAnswer 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes showAnswer {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hideAnswer {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

#options .answer.fade-out {
  animation: hideAnswer 0.25s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0s !important;
}

#options .answer:hover {
  background: linear-gradient(135deg, rgba(40, 42, 60, 0.95) 0%, rgba(22, 24, 35, 0.98) 100%);
  border-color: rgba(123, 97, 255, 0.5);
  box-shadow: 0 8px 25px rgba(123, 97, 255, 0.25),
              0 0 15px rgba(123, 97, 255, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.poster-frame {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1015;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.poster-frame::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-shadow: inset -4px 0 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

#options img.option_image {
  height: 85px;
  width: 58px;
  object-fit: cover;
  display: block;
}

#options .button {
  font-size: 0.9rem;
  color: #f3f4f6;
  border: none;
  cursor: pointer;
  margin: 0;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  line-height: 1.3;
}

#options .button .option-title {
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#options .button .option-year {
  display: block;
  font-size: 0.82em;
  font-weight: 500;
  color: #ffd700;
  opacity: 0.9;
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .container {
    width: 95%;
    margin-top: 1rem;
    border-radius: 8px;
  }
}

@media (min-width: 640px) {
  #options .answer {
    width: 48%;
  }

  #options img.option_image {
    height: 115px;
    width: 80px;
  }
  #options .button {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
}

@media (min-width: 1260px) {
  #options .answer {
    width: 32%;
  }
  #options img.option_image {
    height: 140px;
    width: 98px;
  }
  #options .button {
    font-size: 1.05rem;
    padding: 0.85rem 1.15rem;
  }
  .keyword{
    font-size: 1.1rem;
  }
}



#resultContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  padding: 2rem 1rem;
}

#resultContainer.clickable {
  cursor: pointer;
}

.result-card {
  background-color: var(--container-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-outer);
  max-width: 500px;
  width: 100%;
  padding: 4.5rem 1.5rem 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  animation: revealCard 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes revealCard {
  from {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.result-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
  z-index: 10;
}

.result-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.08);
}

#quizButtons {
  margin-top: 0;
}

#result {
  font-size: 1.1rem;
  color: var(--text-color);
  margin: 0.5rem 0 1.25rem 0;
  text-align: center;
  line-height: 1.4;
}

#resultHeader {
  display: flex;
  flex-direction: row;
  margin: auto;
  max-width: 250px;
  justify-content: space-around;
}

#playerChoice {
  width: 100%;
  background: linear-gradient(135deg, rgba(30, 32, 46, 0.9) 0%, rgba(18, 19, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #f3f4f6;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.75rem 1.25rem;
  margin: 0 auto 1.25rem auto;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  letter-spacing: 0.02em;
}

#playerChoice .score-highlight {
  color: #ffd700;
  font-weight: 800;
  font-size: 1.15em;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}

#playerChoice .right-answer-title {
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

#playerChoice .right-answer-year {
  color: #ffd700;
  font-weight: 600;
  font-size: 0.9em;
  opacity: 0.95;
  margin-left: 0.35rem;
  letter-spacing: 0.03em;
}

#poster {
  width: 100%;
  max-width: 175px;
  max-height: 240px;
  object-fit: cover;
  margin: 1rem auto 0.75rem auto;
  display: block;
  outline: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#nextBtn,
#resultsBtn {
  font-size: 1.05rem;
  padding: 0.75rem 2rem;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  background: linear-gradient(135deg, #7b61ff 0%, #6344f5 100%);
  box-shadow: 0 4px 20px rgba(123, 97, 255, 0.4);
  transition: all 0.25s ease;
}

#nextBtn:hover,
#resultsBtn:hover {
  background: linear-gradient(135deg, #8b73ff 0%, #7153f7 100%);
  box-shadow: 0 6px 25px rgba(123, 97, 255, 0.6);
  transform: translateY(-1px);
}

#restartBtn {
  margin-top: 1rem;
}

#headerContainer {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.headerText {
  width: 85%;
  max-width: 800px;
  border: 0px solid white;
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0;
  border-radius: 16px;
  margin: 0.5rem auto 0.75rem auto;
  text-align: center;
}

#resultBox {
  width: 100%;
  margin: auto;
  text-align: center;
}

#scoreTimer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #333;
}



.alreadyPlayed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.alreadyPlayed_content {
  max-width: 480px;
  width: 90%;
  position: relative;
  padding: 2.5rem 2rem 2rem 2rem;
  background-color: var(--container-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-outer);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: revealCard 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.alreadyPlayed_close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  cursor: pointer;
  font-size: 28px;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s ease;
}

.alreadyPlayed_close span {
  display: inline-block;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.alreadyPlayed_close:hover span {
  color: var(--text-color);
}

#score-grid {
  display: flex;
  justify-content: center;
  gap: 1px;
  margin: auto;
  text-align: center;
  margin-bottom: 1rem;
}

#poster-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 1.25rem auto 1rem auto;
  padding: 0.75rem;
  background: rgba(14, 15, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  text-align: center;
}

#poster-grid a img {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

#poster-grid a:hover img {
  transform: translateY(-2px);
  border-color: var(--button-color);
}

footer {
  width: 100%;
  background-color: var(--container-color);
  padding: 15px 10px;
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


#countdownGame {
  width: 100%;
}

.countdown-card {
  margin: 3rem auto;
  max-width: 500px;
  width: 90%;
  padding: 2.5rem 2rem;
  background-color: var(--container-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-outer);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.countdown-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.countdown-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.4;
}

.countdown-timer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

.timer-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.timer-val {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--button-color);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.timer-divider {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: -1.25rem;
}

.timer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.star-rating {
  display: flex;
  align-items: center;
  font-size: 24px;
  justify-content: center;
  margin-bottom: 20px;
}

.Stars {
  --percent: calc(var(--rating) / 5 * 100%);
  
  display: inline-block;
  font-size: var(--star-size);
  font-family: Times, serif;
  line-height: 1;
}

.Stars::before {
  content: '★★★★★';
  letter-spacing: 3px;
  background: linear-gradient(90deg, var(--star-background) var(--percent), var(--star-color) var(--percent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 520px) {
  header {
    flex-direction: column !important;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-align: center;
  }
  h1 {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem;
  }
  #howTo {
    font-size: 0.9rem !important;
    justify-content: center;
  }
  .result-card {
    padding: 4rem 1rem 1.25rem !important;
  }
  .result-close-btn {
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
  }
}

.more-games-wrapper {
  margin-top: 1.5rem;
  display: none;
}
.more-games-btn-link {
  color: var(--button-color);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.more-games-btn-link:hover {
  color: var(--buttonhover-color);
  text-shadow: 0 0 8px rgba(123, 97, 255, 0.4);
}