/* Team Epiphany Game Styles */
body #teamepiphany-game {
  font-family: Roboto, sans-serif;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #231f1f;
}

/* Hide screens with x-cloak until Alpine.js loads */
[x-cloak] {
  display: none !important;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

.screen-background {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.screen-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: var(--app-width);
  height: var(--app-height);
}

/* Loading Screen */
.loading-screen .loading-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
}

.loading-text {
  font-size: 1.6rem;
  font-weight: 500;
}

.progress-bar {
  overflow: hidden;
  width: 80%;
  height: 1rem;
  border-radius: 0.5rem;
  background: #3e3838;
}

.progress-fill {
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 0.5rem;
  background: #eb0029;
}

.progress-text {
  font-size: 1.5rem;
  font-weight: bold;
  display: none;
}

/* Start Screen */
.start-screen .game-logo {
  position: absolute;
  top: 13.5%;
  display: flex;
  justify-content: center;
  width: 100%;
}

.start-screen .game-logo img {
  width: 670px;
  height: auto;
  margin-bottom: 215px;
}

/* Invisible refresh buttons */
.invisible-refresh-buttons {
  position: absolute;
  z-index: 1000;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 80px 80px;
  grid-template-rows: 80px 80px;
  gap: 0;
}

.invisible-refresh-btn {
  z-index: 1000;
  width: 80px;
  height: 80px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  border: none;
  outline: none;
  background: transparent;
}

.invisible-refresh-btn:hover {
  opacity: 0;
}

.invisible-refresh-btn:active {
  opacity: 0;
}

.welcome-message {
  font-family: 'Knockout', sans-serif;
  font-size: 12.5em;
  font-weight: 500;
  line-height: 0.85;
  position: absolute;
  top: 800px;
  margin-bottom: 215px;
  text-align: center;
  text-transform: uppercase;
}

.instruction-message {
  font-size: 42px;
  line-height: 1.4;
  position: absolute;
  top: 1175px;
  width: 71%;
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.privacy-message {
  font-size: 2.25em;
  position: absolute;
  top: 77%;
  width: 70%;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.action-button, .action-button:hover, .action-button:active {
  font-size: 60px;
  font-weight: bold;
  position: absolute;
  top: 1530px;
  width: 74.6%;
  height: 7.55%;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  color: white;
  border: none;
  border-radius: 0.25em;
  background: #0064ff;
  box-shadow: 0 0.25em 0 0 rgba(0, 0, 0, 0.3);
}

.action-button:active {
  transform: translateY(0);
}

.action-button:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.5;
}

/* Pre-Watch Screen */
.infoscreen .welcome-message {
  top: 25.8%;
  width: 80%;
}

.infoscreen .welcome-message em {
  font-style: normal;
  display: block;
}

.infoscreen .welcome-message b {
  font-family: 'KnockoutLight', sans-serif !important;
  font-size: 0.45em;
  font-weight: 300;
  display: block;
  margin-top: 0.25em;
}

.infoscreen .welcome-message small {
  font-family: Roboto, sans-serif;
  font-size: 0.2em;
  font-weight: 400;
  line-height: 1.3;
  display: block;
  margin-top: 0.8em;
  padding: 0 3em;
  text-transform: none;
}

/* Pre-watch screen */
.pre-watch-screen .welcome-message {
  line-height: 0.75 !important;
  top: 728px;
}

.pre-watch-screen .welcome-message small {
  margin-top: 61px;
}

/* Countdown Screens */

.countdown-screen .screen-content {
  margin-top: 370px;
}

.countdown-screen .animated-label {
  font-family: Roboto, sans-serif;
  font-size: 60px;
  font-weight: 500;
  position: relative;
  display: inline-block;
  text-align: center;
  color: #ffffff;
}

.countdown-screen .animated-label .dot {
  transition: opacity 0.4s ease-in-out;
  opacity: 0;
}

.countdown-screen .animated-label .dot1 {
  animation: dotFade1 1.8s infinite;
}

.countdown-screen .animated-label .dot2 {
  animation: dotFade2 1.8s infinite;
}

.countdown-screen .animated-label .dot3 {
  animation: dotFade3 1.8s infinite;
}

.countdown-screen .countdown-header {
  font-family: 'Knockout', sans-serif;
  font-size: 12.5em;
  line-height: 0.8;
  margin-top: 5%;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.countdown-screen .countdown-subheader {
  font-family: 'KnockoutLight', sans-serif;
  font-size: 6.25em;
  font-weight: 100 !important;
  line-height: 0.8;
  width: 70%;
  margin-bottom: 0.4em;
  text-transform: uppercase;
}

.countdown-screen .countdown-container {
  position: absolute;
  top: 25%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 69.9%;
  height: 49.8%;
  border-radius: 1.5em;
  background: #231f1fa3;
}

.countdown-screen .countdown-timer {
  color: #ff6b6b;
}

.countdown-screen .countdown-timer-container {
  font-family: 'overtime-lcd-pro', sans-serif;
  font-size: 12.5em;
  line-height: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68%;
  height: 38%;
  text-align: center;
  border: 1px solid #ffffffe7;
  border-radius: 0.04em;
  background: url(/wp-content/uploads/2025/07/tissot_logo.svg) center 85% / 85% auto no-repeat, #000000e9;
  font-feature-settings: "ss01" !important;
}

.countdown-screen .countdown-timer-base {
  font-size: 100%;
  position: absolute;
  z-index: 1;
  top: 0.08em;
  left: 0;
  width: 100%;
  height: 100%;
  color: #50505085;
}

.countdown-screen .countdown-timer {
  position: absolute;
  z-index: 2;
  top: 0.08em;
  left: 0;
  width: 100%;
  height: 100%;
  color: #eb0029;
}

/* Timer Display */
.timer-display {
  font-size: 3rem;
  font-weight: bold;
  position: absolute;
  z-index: 20;
  top: 5%;
  right: 5%;
  padding: 1rem 1.5rem;
  color: #ff6b6b;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.7);
}

/* Countdown for other screen */
.normal-countdown-timer-container {
  font-family: 'overtime-lcd-pro', sans-serif;
  font-size: 112px;
  line-height: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 278px;
  height: 198px;
  text-align: center;
  border: 5px solid #ffffffe7;
  border-radius: 5px;
  background: url(/wp-content/uploads/2025/07/tissot_logo.svg) center 88% / 85% auto no-repeat, #000000e9;
  font-feature-settings: "ss01" !important;
}

.normal-countdown-timer-container .countdown-timer {
  position: absolute;
  z-index: 2;
  top: 0.15em;
  left: 0;
  width: 100%;
  height: 100%;
  color: #eb0029;
}

/* Watch Screen */
.watch-screen .screen-content {
  position: relative;
}

.watch-screen .video-container {
  position: relative;
  top: 235px;
  width: 828px;
  height: 1471px;
  aspect-ratio: 9/16 !important;
}

.watch-screen video {
  width: 100%;
  height: 100%;
  border: calc(var(--app-height) * 0.0042) solid #ffffffe9;
  background: rgba(0, 0, 0, 0.75);
}

.watch-screen .countdown-timer-base {
  font-size: 100%;
  position: absolute;
  z-index: 1;
  top: 0.08em;
  left: 0;
  width: 100%;
  height: 100%;
  color: #50505085;
}

.video-text-container {
  display: flex;
  justify-content: center;
  height: calc(var(--app-height) * 0.066);
  min-height: calc(var(--app-height) * 0.066);
  max-height: calc(var(--app-height) * 0.066);
  margin-bottom: 1em;
}

.video-heading {
  font-size: 3.4em;
  font-weight: 500;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--app-height) * 0.066);
  min-height: calc(var(--app-height) * 0.066);
  max-height: calc(var(--app-height) * 0.066);
}

.question-text {
  font-family: 'Knockout', sans-serif;
  font-size: 110px;
  line-height: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--app-height) * 0.066);
  min-height: calc(var(--app-height) * 0.066);
  max-height: calc(var(--app-height) * 0.066);
  margin-bottom: 80px;
  text-transform: uppercase;
}

.question-overlay {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: calc(var(--app-height) * 0.635);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  transform: scale(0.9);
  pointer-events: none;
  opacity: 0;
  border: calc(var(--app-height) * 0.0042) solid #ffffffe9;
  background: rgba(0, 0, 0, 0.75);
}

.question-overlay.show {
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  opacity: 1;
}

.question-content {
  width: 90%;
  transition: transform 0.5s ease 0.2s;
  transform: translateY(20px);
  text-align: center;
}

.question-overlay.show .question-content {
  transform: translateY(0);
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.answer-button {
  transition: all 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(-20px);
  opacity: 0;
}

.question-overlay.show .answer-button {
  transform: translateX(0);
  opacity: 1;
}

.question-overlay.show .answer-button:nth-child(1) {
  transition-delay: 0.3s;
}

.question-overlay.show .answer-button:nth-child(2) {
  transition-delay: 0.4s;
}

.question-overlay.show .answer-button:nth-child(3) {
  transition-delay: 0.5s;
}

.question-overlay.show .answer-button:nth-child(4) {
  transition-delay: 0.6s;
}

.answer-button {
  font-size: 2.625em;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(var(--app-height) * 0.075);
  cursor: pointer;
  color: #000000;
  border: 3px solid #000;
  border-radius: 0.2em;
  background: #ffffff;
  box-shadow: 0 0.25em 0 0 rgba(0, 0, 0, 0.3);
}

.answer-button:hover {
  transform: translateY(-2px);
  color: #000000;
  border: none;
  background: #ffffff;
}

.answer-button.incorrect {
  opacity: 0.65 !important;
  border: 3px solid #000;
}

.answer-button.disabled {
  cursor: not-allowed;
  opacity: 0.4;
  border: 3px transparent;
  box-shadow: none;
}

/* Result Overlay */
.result-overlay {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: calc(var(--app-height) * 0.635);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  transform: scale(0.9);
  pointer-events: none;
  opacity: 0;
  border: calc(var(--app-height) * 0.0042) solid #ffffffe9;
  background: rgba(0, 0, 0, 0.75);
}

.result-overlay.show {
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  opacity: 1;
}

.result-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  height: 100%;
  padding: 0 2em;
  transition: transform 0.5s ease 0.2s, opacity 0.5s ease 0.2s;
  transform: translateY(30px);
  text-align: center;
  opacity: 0;
}

.result-overlay.show .result-content {
  transform: translateY(0);
  opacity: 1;
}

.selected-answer-display {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 30px;
}

.selected-answer-display img {
  position: absolute;
  top: 23%;
  right: 5%;
  width: auto !important;
  height: calc(var(--app-height) * 0.040) !important;
}

.selected-answer-display .answer-button-display {
  font-size: 2.5em;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 200px;
  height: calc(var(--app-height) * 0.075);
  padding: 12px 20px;
  color: #000;
  border: 2px solid #555;
  border-radius: 8px;
  background: #ffffffc9;
}

.selected-answer-display .answer-button-display.result-incorrect {
  background: #ffffff80;
}

.timeout-timer {
  font-size: 6rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #ff6b6b;
}

.result-heading {
  font-family: 'Knockout', sans-serif;
  font-size: 110px;
  margin-top: 210px;
  margin-bottom: 0.2em;
  transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
  transform: translateY(20px);
  text-transform: uppercase;
  opacity: 0;
}

.result-overlay.show .result-heading {
  transform: translateY(0);
  opacity: 1;
}

.result-text {
  font-size: 2.75em;
  width: 90%;
  transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
  transform: translateY(20px);
  opacity: 0;
}

.result-overlay.show .result-text {
  transform: translateY(0);
  opacity: 1;
}

.result-text b {
  font-family: 'KnockoutLight', sans-serif;
  font-size: 150%;
  font-weight: normal;
  display: block;
  text-transform: uppercase;
}

/* Pre-Play screen */
.pre-play-screen .welcome-message em {
  line-height: 0.75;
}

.pre-play-screen .welcome-message small {
  margin-top: 70px;
  padding: 0;
}

/* Play Screen */
.play-screen .question-container {
  width: 90%;
  margin-top: 406px;
}

.play-screen .question-text {
  font-family: 'Roboto', sans-serif;
  font-size: 3.75em;
  font-weight: 500;
  line-height: 1.3;
  display: block;
  height: max-content;
  max-height: max-content;
  margin-bottom: 1.2em;
  text-align: left;
  text-transform: none;
  opacity: 0.75;
}

.play-screen .answer-options {
  display: flex;
  margin-top: 2em;
  gap: 2.25em;
}

.play-screen .answer-button {
  position: relative;
  transform: translateY(0);
  opacity: 1;
}

.play-screen .answer-button .answer-icon {
  position: absolute;
  top: 55%;
  right: 3%;
  transform: translateY(-50%);
}

.play-screen .answer-button .answer-icon img {
  width: auto !important;
  height: calc(var(--app-height) * 0.040) !important;
}

/* Question Progress Indicator */
.play-screen .question-progress {
  position: absolute;
  bottom: 280px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1080px;
  gap: 70px;
}

.play-screen .progress-number {
  font-family: 'Roboto', sans-serif;
  font-size: 60px;
  font-weight: 500;
  min-width: 1.2em;
  padding: 0.3em 0.6em;
  transition: all 0.3s ease;
  text-align: center;
  color: #275f9d;
  border-radius: 50%;
}

.play-screen .progress-number.active {
  color: #fff;
}

.play-screen .answer-button.disabled {
  cursor: not-allowed;
  color: #000 !important;
  background: #5d656d !important;
}

/* Score Display */
.score-display {
  font-family: 'KnockoutLight', sans-serif;
  font-size: 4rem;
  font-weight: normal;
  margin-top: 2rem;
  color: #4caf50;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.score-display.playtimeup {
  position: absolute;
  bottom: 270px;
}

/* Vote Screen */
.pre-vote-screen .welcome-message {
  top: 48%;
}

.pre-vote-screen .welcome-message em {
  font-size: calc(var(--app-height) * 0.0625);
  font-weight: normal;
}

.pre-vote-screen .welcome-message small {
  margin-top: 0.75em;
  padding: 0;
}

.pre-vote-screen .action-button, .pre-vote-screen .action-button:hover {
  margin-top: 0.75em;
  transition: 0.25s all;
  color: #000;
  border: 6px transparent;
  background-color: #fff;
}

.pre-vote-screen .action-button:active {
  color: #fff !important;
  border-color: #fff !important;
  background-color: #eb0029 !important;
}

.pre-vote-screen .privacy-message {
  margin-top: 1.25em;
}

.vote-countdown-screen .countdown-subheader {
  font-size: 2.25rem;
  line-height: 1;
  width: 85%;
  margin-bottom: 0.5em;
}

.vote-countdown-screen .countdown-container {
  border: calc(var(--app-height) * 0.0042) solid #ffffffe9;
}

.vote-screen .welcome-message {
  top: 380px;
  width: 95%;
}

.vote-screen .welcome-message em {
  font-size: calc(var(--app-height) * 0.0625);
  font-weight: normal;
}

.vote-screen .conferences-container {
  position: absolute;
  top: 660px;
  display: flex;
  justify-content: center;
  width: 90%;
  gap: 2em;
}

.vote-screen .conference-grid {
  display: grid;
  width: calc(50% - 1em);
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 1em;
}

.team-item {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: url(/wp-content/uploads/2025/07/elemenntbg_team.png) no-repeat;
  background-size: cover;
  box-shadow: inset 0 0 0 6px transparent;
}

.team-item.selected {
  box-shadow: inset 0 0 0 6px #eb0029;
}

.team-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16%;
  aspect-ratio: 1/1;
}

.team-logo img {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.vote-screen .team-name {
  display: none;
}

.vote-screen .confirm-button, .vote-screen .confirm-button:hover, .vote-screen .confirm-button:active {
  position: absolute;
  top: 1530px;
  max-width: 50%;
  color: #fff;
  border: 6px solid #fff;
  background: #eb0029;
}

.vote-screen .confirm-button[disabled] {
  opacity: 1;
  color: #000;
  border: 6px transparent;
  background: #ffffff;
}

/* Vote Results Screen */
.vote-results-screen .screen-content {
  position: absolute;
  top: 298px;
}

.vote-results-screen .welcome-message {
  position: static !important;
  margin-bottom: 50px !important;
}

.vote-results-screen .welcome-message em {
  font-size: calc(var(--app-height) * 0.0625);
  font-weight: normal;
}

.vote-results-screen .selected-team {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  gap: 1em;
}

.vote-results-screen .team-logo {
  width: 70%;
  height: 70%;
  background: url(/wp-content/uploads/2025/07/elemenntbg_team.png) no-repeat;
  background-size: cover;
}

.vote-results-screen .team-logo img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.vote-results-screen .team-logo.emptyteam {
  width: 610px;
  height: 610px;
}

.vote-results-screen .team-name {
  font-size: 3em;
  font-weight: 500;
  margin-top: 0.5em;
}

/* Sharing Screen */
.sharing-screen .screen-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
}

.sharing-screen .sharing-wrapper {
  position: absolute;
  top: 325px;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 958px;
  height: 1590px;
}

.sharing-screen .sharing-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding: 1em;
  animation: slideUpFromBottom 0.7s ease-in-out 0.5s both;
  border-radius: 20px;
  background: white;
}

.sharing-screen .sharing-heading {
  font-family: 'KnockoutLight', sans-serif;
  font-size: 8.75em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(var(--app-height) * 0.09);
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  border-radius: calc(var(--app-height) * 0.0125);
  background-color: #eb0029;
}

.sharing-screen .sharing-content-section {
  width: 100%;
  margin: 16px 0 0 0;
  padding: 20px;
  border: 12px solid #231f1f;
  border-radius: 20px 20px 0 0;
  background-color: #231f1f;
}

.sharing-screen .sharing-subheading {
  font-family: 'KnockoutLight', sans-serif;
  font-size: 85px;
  line-height: 1;
  animation: subtlePulse 0.4s ease-in-out 1.8s;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
}

/* Project Logo Section */
.sharing-screen .sharing-project-logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 400px;
  padding: 30px;
  border: 12px solid #231f1f;
  border-top: none;
  border-right: 6px solid #231f1f;
  border-radius: 0 0 0 20px;
}

.sharing-screen .sharing-project-logo {
  width: 290px;
  height: 290px;
}

.sharing-screen .sharing-project-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Team Logo Section */
.sharing-screen .sharing-team-logo-section {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  height: 400px;
  padding: 30px;
  border: 12px solid #231f1f;
  border-top: none;
  border-left: 6px solid #231f1f;
  border-radius: 0 0 20px 0;
  background: url(/wp-content/uploads/2025/07/elemenntbg_team.png) no-repeat center center;
  background-size: cover;
}

.sharing-screen .sharing-team-description {
  font-family: Roboto, sans-serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #00438f;
}

.sharing-screen .sharing-selected-team-logo {
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  height: 240px;
  min-height: 240px;
  max-height: 240px;
}

.sharing-screen .sharing-selected-team-logo img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center;
}

/* Random Badge Section */
.sharing-screen .sharing-random-badge-section {
  width: 100%;
  margin: 16px 0 0 0;
}

.sharing-screen .sharing-random-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sharing-screen .sharing-random-badge img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.sharing-screen .qr-code-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  margin-top: 45px;
  animation: qrFadeIn 0.4s ease-in-out 1.5s forwards;
  opacity: 0;
  gap: 35px;
}

.sharing-screen .qr-code {
  overflow: hidden;
  width: 220px;
  height: 220px;
  padding: 16px;
  border-radius: 20px;
  background: white;
}

.sharing-screen .qr-code canvas {
  width: 100% !important;
  height: 100% !important;
}

.qr-placeholder {
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  color: #666;
  border-radius: 15px;
  background: #f5f5f5;
}

.sharing-screen .sharing-qr-instruction {
  font-family: 'KnockoutLight', sans-serif;
  font-size: 42px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

/* Sharing Screen Back Button */
.sharing-back-button {
  font-family: 'KnockoutLight', sans-serif;
  font-size: 24px;
  font-weight: bold;
  position: absolute;
  z-index: 1000;
  top: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInFromLeft 0.8s ease-in-out 1s both;
  text-transform: uppercase;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  background: rgba(235, 0, 41, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  gap: 12px;
  backdrop-filter: blur(10px);
}

.sharing-back-button:hover {
  transform: translateY(-2px);
  background: rgba(235, 0, 41, 1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.sharing-back-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.sharing-back-button svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

.sharing-back-button span {
  letter-spacing: 1px;
}

/* Animation for back button */
@keyframes fadeInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Legacy sharing text class for backward compatibility */
.sharing-text {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .welcome-message {
    font-size: 2.5rem;
  }

  .instruction-message {
    font-size: 1.5rem;
  }

  .action-button {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    letter-spacing: 0;
  }

  .countdown-timer {
    font-size: 6rem;
  }

  .timer-display {
    font-size: 2rem;
    top: 3%;
    right: 3%;
  }

  .play-screen .answer-options {
    grid-template-columns: 1fr;
  }

  .vote-screen .conferences-container {
    flex-direction: column;
    gap: 1em;
  }

  .vote-screen .conference-grid {
    width: 100%;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

/* Animations */
.screen {
  animation: fadeIn 0.5s ease-in-out;
}

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

.answer-button, .team-item, .action-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Play Results Screen Styles */
.play-results-screen {
  /* Override any inherited styles that might hide content */
  visibility: visible !important;
  opacity: 1 !important;
}

.play-results-screen * {
  /* Ensure all child elements are visible by default */
  visibility: visible !important;
  opacity: 1 !important;
}

.play-results-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 70%;
  height: 53%;
  margin-top: 44%;
  padding: 40px 30px;
  transition: all 0.5s ease-out;
  transform: scale(0.8);
  text-align: center;
  opacity: 0;
  border: calc(var(--app-height) * 0.0042) solid #ffffffe9;
  border-radius: 1.75em;
  backdrop-filter: blur(10px);
}

.play-results-container.animate-in {
  transform: scale(1);
  opacity: 1;
}

/* Ensure text elements are always visible and override any inherited styles */
.play-results-container .result-heading,
.play-results-container .result-text,
.play-results-container .score-display {
  display: block !important;
  visibility: visible !important;
  transition: all 0.3s ease !important;
  transform: none !important;
  animation: none !important;
  opacity: 1 !important;
  color: #333 !important;
  text-shadow: none !important;
}

.play-results-container .result-heading {
  font-size: 12.5em;
  line-height: 1;
  margin-top: 0;
  margin-bottom: 0;
  color: #2c3e50 !important;
}

.play-results-container .result-text {
  font-family: 'KnockoutLight', sans-serif;
  font-size: 6.25em;
  font-weight: normal;
  line-height: 1;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  color: #fff;
}

.play-results-container .score-display {
  font-size: 12.5em;
  font-weight: bold;
  line-height: 1;
  color: #ffffff !important;
}

.play-results-container .result-icon {
  height: 8em;
}

.play-results-container .result-icon img {
  width: auto;
  height: calc(var(--app-height) * 0.066);
}

.play-results-container .timeout-timer {
  font-family: 'Courier New', monospace;
  font-size: 4em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  color: #e74c3c !important;
  border: 3px solid #e74c3c;
  border-radius: 50%;
  background: rgba(231, 76, 60, 0.1);
}

/* Play Results Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Sharing Screen Animation Keyframes */
@keyframes slideUpFromBottom {
  from {
    transform: translateY(100vh);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes subtlePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes quickPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

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

/* Sequential dot animation: appear 1,2,3 then disappear 3,2,1 with smooth fading */
@keyframes dotFade1 {
  0%, 14% {
    opacity: 0;
  }
  16%, 18% {
    opacity: 1;
  }
  20%, 82% {
    opacity: 1;
  }
  84%, 86% {
    opacity: 0;
  }
  88%, 100% {
    opacity: 0;
  }
}

@keyframes dotFade2 {
  0%, 31% {
    opacity: 0;
  }
  33%, 35% {
    opacity: 1;
  }
  37%, 65% {
    opacity: 1;
  }
  67%, 69% {
    opacity: 0;
  }
  71%, 100% {
    opacity: 0;
  }
}

@keyframes dotFade3 {
  0%, 48% {
    opacity: 0;
  }
  50%, 52% {
    opacity: 1;
  }
  54%, 56% {
    opacity: 1;
  }
  58%, 60% {
    opacity: 0;
  }
  62%, 100% {
    opacity: 0;
  }
}

/* Play Results Responsive adjustments */
@media (max-width: 768px) {
  .play-results-container {
    margin: 10px;
    padding: 30px 20px;
  }

  .play-results-container .result-heading {
    font-size: 2em;
  }

  .play-results-container .result-text {
    font-size: 1.2em;
  }

  .play-results-container .score-display {
    font-size: 2.5em;
  }

  .play-results-container .timeout-timer {
    font-size: 3em;
    width: 100px;
    height: 100px;
  }

  .play-results-container .result-icon img {
    max-width: 100px;
    max-height: 100px;
  }
}