.ghost {
  margin: 0;
  position: absolute;
  z-index: 2;
}

.ghost-character {
  background-position: 0px 0px;
}
/* Leaderboard Modal Styles */
.leaderboard-modal,
.name-input-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.leaderboard-modal.show,
.name-input-modal.show {
  opacity: 1;
}

.leaderboard-content,
.name-input-content {
  background-color: #000;
  border: 0.3125rem solid #2121ff;
  border-radius: 0.625rem;
  padding: 1.25rem;
  max-width: 37.5rem;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 1.25rem rgba(33, 33, 255, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.leaderboard-modal.show .leaderboard-content,
.name-input-modal.show .name-input-content {
  transform: scale(1);
}

.name-input-content {
  max-width: 25rem;
  text-align: center;
}

/* Header Styles */
.leaderboard-header,
.name-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #ffdf00;
  padding-bottom: 0.625rem;
}

.leaderboard-header h2,
.name-input-header h3 {
  color: #ffdf00;
  margin: 0;
  font-family: "Courier New", monospace;
  font-weight: bold;
  text-shadow: 2px 2px 0.25rem rgba(0, 0, 0, 0.5);
}

.name-input-header h3 {
  margin: 0 auto;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.close-button {
  background: none;
  border: none;
  color: #ff0000;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3125rem;
  line-height: 1;
}

.close-button:hover {
  color: #ff4444;
  transform: scale(1.2);
}

/* Leaderboard List Styles */
.leaderboard-list {
  margin-bottom: 1.25rem;
}

.score-entry {
  display: grid;
  grid-template-columns: 2.5rem 1fr 5rem 3.75rem 8.75rem;
  gap: 0.625rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #333;
  color: #fff;
  font-family: "Courier New", monospace;
  align-items: center;
}

.score-entry:last-child {
  border-bottom: none;
}

.score-entry.first-place {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0) 100%);
  border-left: 0.25rem solid #ffdf00;
  padding-left: 0.375rem;
}

.score-entry .rank {
  font-weight: bold;
  text-align: center;
  color: #ffdf00;
}

.score-entry.first-place .rank {
  color: #ffd700;
  text-shadow: 0 0 0.625rem #ffd700;
}

.score-entry .name {
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-entry .score {
  text-align: right;
  font-weight: bold;
  color: #00ff00;
}

.score-entry .level {
  text-align: center;
  color: #ff6b6b;
}

.score-entry .date {
  font-size: 0.8em;
  color: #888;
  text-align: right;
}

.no-scores {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 2.5rem 1.25rem;
  font-family: "Courier New", monospace;
}

/* Statistics Styles */
.leaderboard-stats {
  border-top: 2px solid #333;
  padding-top: 0.9375rem;
}

.leaderboard-stats h4 {
  color: #ffdf00;
  margin: 0 0 0.625rem 0;
  font-family: "Courier New", monospace;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3125rem 0;
  color: #fff;
  font-family: "Courier New", monospace;
}

.stat-row span:last-child {
  color: #00ff00;
  font-weight: bold;
}

/* Name Input Styles */
.name-input-body {
  margin: 1.25rem 0;
}

.name-input-body p {
  color: #fff;
  font-family: "Courier New", monospace;
  margin: 0.625rem 0;
}

#final-score,
#final-level {
  color: #00ff00;
  font-weight: bold;
}

#leaderboard-position {
  color: #ffdf00;
  font-weight: bold;
  font-size: 1.1em;
  margin: 0.9375rem 0;
}

.input-group {
  margin: 1.25rem 0;
}

.input-group label {
  display: block;
  color: #ffdf00;
  font-family: "Courier New", monospace;
  margin-bottom: 0.3125rem;
}

.input-group input {
  width: 100%;
  padding: 0.625rem;
  border: 2px solid #2121ff;
  border-radius: 0.3125rem;
  background-color: #000;
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  text-align: center;
}

.input-group input:focus {
  outline: none;
  border-color: #ffdf00;
  box-shadow: 0 0 0.625rem rgba(255, 223, 0, 0.3);
}

/* reCAPTCHA Styles */
.recaptcha-group {
  margin: 0.9375rem 0;
  display: flex;
  justify-content: center;
}

.g-recaptcha {
  transform: scale(0.9);
  transform-origin: center;
}

.recaptcha-error {
  color: #ff4444;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  text-align: center;
  margin-top: 0.625rem;
}

/* Button Styles */
.leaderboard-footer,
.name-input-footer {
  display: flex;
  justify-content: center;
  gap: 0.9375rem;
  margin-top: 1.25rem;
}

.submit-button,
.skip-button,
.clear-button {
  background-color: #fcc73f;
  border: 0.1875rem solid #231f20;
  border-radius: 0.5rem;
  color: #231f20;
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s ease;
  box-shadow: 0.1875rem 0.1875rem #ee2a29;
}

.submit-button:hover,
.skip-button:hover,
.clear-button:hover {
  transform: translateY(-2px);
  box-shadow: 0.3125rem 0.3125rem #ee2a29;
}

.submit-button:active,
.skip-button:active,
.clear-button:active {
  transform: translateY(1px);
  box-shadow: 1px 1px #ee2a29;
}

.skip-button {
  background-color: #666;
  color: #fff;
  box-shadow: 0.1875rem 0.1875rem #444;
}

.skip-button:hover {
  box-shadow: 0.3125rem 0.3125rem #444;
}

.skip-button:active {
  box-shadow: 1px 1px #444;
}

.clear-button {
  background-color: #ff4444;
  color: #fff;
  box-shadow: 0.1875rem 0.1875rem #cc2222;
}

.clear-button:hover {
  box-shadow: 0.3125rem 0.3125rem #cc2222;
}

.clear-button:active {
  box-shadow: 1px 1px #cc2222;
}

/* Responsive Design */
@media only screen and (max-width: 37.5rem) {
  .leaderboard-content,
  .name-input-content {
    width: 95%;
    padding: 0.9375rem;
    border-width: 0.1875rem;
  }
  .score-entry {
    grid-template-columns: 1.875rem 1fr 4.375rem 3.125rem;
    gap: 0.5rem;
    font-size: 0.9em;
  }
  .score-entry .date {
    display: none; /* Hide date on mobile */
  }
  .leaderboard-header h2 {
    font-size: 1.2em;
  }
  .name-input-header h3 {
    font-size: 1.1em;
  }
  .leaderboard-footer,
  .name-input-footer {
    flex-direction: column;
    gap: 0.625rem;
  }
}
/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.875rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.score-entry {
  animation: fadeInUp 0.3s ease forwards;
}

.score-entry:nth-child(1) {
  animation-delay: 0.1s;
}

.score-entry:nth-child(2) {
  animation-delay: 0.2s;
}

.score-entry:nth-child(3) {
  animation-delay: 0.3s;
}

.score-entry:nth-child(4) {
  animation-delay: 0.4s;
}

.score-entry:nth-child(5) {
  animation-delay: 0.5s;
}

.score-entry:nth-child(6) {
  animation-delay: 0.6s;
}

.score-entry:nth-child(7) {
  animation-delay: 0.7s;
}

.score-entry:nth-child(8) {
  animation-delay: 0.8s;
}

.score-entry:nth-child(9) {
  animation-delay: 0.9s;
}

.score-entry:nth-child(10) {
  animation-delay: 1s;
}
* {
  font-family: "Press Start 2P", sans-serif;
}

html {
  font-size: 1.01137vw;
  scroll-behavior: smooth;
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  overflow: hidden;
  background-color: #f8f9fa;
}

.page-left {
  width: 100%;
  display: flex;
  overflow-y: auto;
  max-height: 100vh;
  padding: 1.25rem;
  position: relative;
  max-width: 18.75rem;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 0.1875rem solid #fcc73f;
  box-shadow: 0.3125rem 0 1.25rem rgba(252, 199, 63, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 50%, #e1e8ed 100%);
  /* Brand Logo Section */
  /* Brand Content */
}
@media (max-height: 659px) {
  .page-left {
    justify-content: flex-start;
  }
}
.page-left .brand-logo {
  text-align: center;
}
.page-left .brand-logo img {
  display: block;
  max-width: 100%;
}
.page-left .brand-logo .brand-logo-icon {
  display: block;
  font-size: 4rem;
  margin-bottom: 0.9375rem;
  filter: drop-shadow(0.1875rem 0.1875rem 0.375rem rgba(0, 0, 0, 0.1));
}
.page-left .brand-logo .brand-title {
  margin: 0;
  color: #231f20;
  line-height: 1.4;
  font-size: 1.2rem;
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}
.page-left .brand-logo .brand-subtitle {
  color: #666;
  line-height: 1.6;
  font-size: 0.7rem;
  margin: 0.9375rem 0;
}
.page-left .brand-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 2.5rem;
  /* CTA Button */
}
.page-left .brand-content .brand-description {
  color: #555;
  line-height: 1.8;
  font-size: 0.6rem;
  text-align: center;
  margin: 1.25rem 0;
}
.page-left .brand-content .cta-button {
  color: #231f20;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  margin-top: 1.25rem;
  display: inline-block;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  background-color: #fcc73f;
  padding: 0.9375rem 1.25rem;
  border: 0.1875rem solid #231f20;
  box-shadow: 0.1875rem 0.1875rem #ee2a29;
}
.page-left .brand-content .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0.3125rem 0.3125rem #ee2a29;
}
.page-left .brand-content .cta-button:active {
  transform: translateY(1px);
  box-shadow: 1px 1px #ee2a29;
}
.page-left .how-to-win h2 {
  margin: 0;
  color: #000000;
  line-height: 1.8;
  font-size: 0.875rem;
}
.page-left .how-to-win p {
  color: #555;
  line-height: 1.8;
  font-size: 0.625rem;
  margin-bottom: 1.25rem;
}
.page-left .unlock-rewards h4 {
  margin-bottom: 0;
  font-size: 0.875rem;
  margin-top: 0.625rem;
}
.page-left .unlock-rewards ul {
  margin-top: 0;
  padding-left: 0;
  list-style: none;
}
.page-left .unlock-rewards li {
  color: #555;
  line-height: 1.8;
  font-size: 0.6rem;
  margin: 1.25rem 0;
  letter-spacing: -1px;
  margin-bottom: 0.3rem;
}
.page-left .eligibility-check {
  position: relative;
  display: inline-block;
}
.page-left .tooltip-trigger {
  gap: 0.25rem;
  cursor: pointer;
  font-weight: bold;
  align-items: center;
  font-size: 0.875rem;
  display: inline-flex;
  border-radius: 0.25rem;
}
.page-left .tooltip-content {
  left: 0px;
  width: 90%;
  opacity: 0;
  z-index: 9999;
  top: -2.5rem;
  text-align: left;
  padding: 0.5rem;
  color: #000000;
  visibility: hidden;
  position: absolute;
  border-radius: 0.375rem;
  border: 1px solid black;
  transform: translateY(-63%);
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 0.5rem rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 50%, #e1e8ed 100%);
}
.page-left .tooltip-content p {
  margin-bottom: 0;
  font-size: 0.5rem;
}
.page-left .tooltip-trigger img {
  width: 2.1875rem;
  height: 2.1875rem;
  display: inline-block;
  vertical-align: middle;
}
.page-left .eligibility-check:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

/* Main game content - center area */
.overflow-mask {
  flex: 1;
  width: 100%;
  color: #fff;
  display: flex;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  align-items: center;
  justify-content: center;
  background-color: #000;
  touch-action: manipulation;
}

.sub-heading {
  text-align: center;
  padding: 0 1.25rem;
}

.page-right {
  width: 100%;
  overflow-y: auto;
  max-height: 100vh;
  padding: 1.25rem;
  position: relative;
  max-width: 18.75rem;
  border-left: 0.1875rem solid #fcc73f;
  box-shadow: -0.3125rem 0 1.25rem rgba(252, 199, 63, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 50%, #e1e8ed 100%);
  /* Leaderboard Panel Styles */
}
.page-right .leaderboard-panel .leaderboard-panel-header h2 {
  color: #231f20;
  font-size: 1rem;
  text-align: center;
  margin: 0 0 1.25rem 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.page-right .leaderboard-panel .panel-score-entry {
  color: #333;
  display: grid;
  gap: 0.625rem;
  font-size: 0.6rem;
  padding: 0.5rem 0;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  grid-template-columns: 1.875rem 1fr 5rem;
}
.page-right .leaderboard-panel .panel-score-entry:last-child {
  border-bottom: none;
}
.page-right .leaderboard-panel .panel-score-entry.first-place {
  padding-left: 0.375rem;
  border-left: 0.25rem solid #fcc73f;
  background: linear-gradient(90deg, rgba(252, 199, 63, 0.2) 0%, rgba(252, 199, 63, 0) 100%);
}
.page-right .leaderboard-panel .panel-score-entry.first-place .rank {
  color: #ee2a29;
  text-shadow: 0 0 0.3125rem #ee2a29;
}
.page-right .leaderboard-panel .panel-score-entry .rank {
  font-weight: bold;
  text-align: center;
  color: #fcc73f;
}
.page-right .leaderboard-panel .panel-score-entry .name {
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-right .leaderboard-panel .panel-score-entry .score {
  text-align: right;
  font-weight: bold;
  color: #28a745;
}
.page-right .leaderboard-panel .panel-no-scores {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 2.5rem 1.25rem;
  font-size: 0.7rem;
}
.page-right .leaderboard-panel .clear-panel-button {
  background-color: #ee2a29;
  border: 2px solid #231f20;
  border-radius: 0.3125rem;
  color: #fff;
  cursor: pointer;
  font-size: 0.6rem;
  font-weight: bold;
  padding: 0.5rem 0.9375rem;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 0.9375rem;
}
.page-right .leaderboard-panel .clear-panel-button:hover {
  background-color: #cc2222;
  transform: translateY(-1px);
}
.page-right .right-bottom {
  margin-top: auto;
}
.page-right .right-bottom .terms-and-conditions h3 {
  font-size: 0.875rem;
  color: #fcc73f;
  line-height: 1.8;
  margin-bottom: 0.375rem;
}
.page-right .right-bottom .terms-and-conditions ul {
  padding-left: 1.25rem;
  margin: 0.625rem 0;
}
.page-right .right-bottom .terms-and-conditions li {
  margin-bottom: 0.375rem;
  font-size: 0.6rem;
  color: #f1f1f1;
  line-height: 1.8;
}
.page-right .right-bottom .share-score a {
  font-size: 0.6rem;
  color: #f1f1f1;
  line-height: 1.8;
}

/* Responsive design for smaller screens */
@media only screen and (max-width: 75rem) {
  .page-left {
    padding: 0.9375rem;
  }
  .page-left .brand-logo .brand-logo-icon {
    font-size: 3rem;
  }
  .page-left .brand-logo .brand-title {
    font-size: 1rem;
  }
  .page-right {
    padding: 0.9375rem;
  }
}
@media only screen and (max-width: 62.5rem) {
  .page-left {
    display: none;
  }
  .page-right {
    width: 12.5rem;
    padding: 0.625rem;
  }
}
@media only screen and (max-width: 48rem) {
  body {
    height: auto;
    display: block;
    overflow: auto;
  }
  .page-right {
    width: 100%;
    height: 50vh;
    max-width: 100%;
    border-left: none;
    box-sizing: border-box;
    border-top: 0.1875rem solid #fcc73f;
    box-shadow: 0 -ptr(5px) 1.25rem rgba(252, 199, 63, 0.2);
  }
  .overflow-mask {
    flex: 1;
    max-width: none;
    min-height: 80vh;
  }
}
/* Pulse animation for the modal header */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
/* Scrollbar styling for page-left and page-right */
.page-left::-webkit-scrollbar,
.page-right::-webkit-scrollbar {
  width: 0.5rem;
}

.page-left::-webkit-scrollbar-track,
.page-right::-webkit-scrollbar-track {
  background: #f0f4f8;
}

.page-left::-webkit-scrollbar-thumb,
.page-right::-webkit-scrollbar-thumb {
  background: #fcc73f;
  border-radius: 0.25rem;
}

.page-left::-webkit-scrollbar-thumb:hover,
.page-right::-webkit-scrollbar-thumb:hover {
  background: #e0b332;
}

/* Button hover effects */
.page-left button:hover,
.page-right button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.3);
}

.page-left button:active,
.page-right button:active {
  transform: translateY(0);
  box-shadow: 0 2px 0.25rem rgba(0, 0, 0, 0.3);
}

.backdrop {
  position: absolute;
  visibility: hidden;
  max-width: 100vw;
  max-height: 100vh;
}

.fps-display {
  position: absolute;
  right: 0.625rem;
  top: 0.625rem;
  visibility: hidden;
}

.preload-div {
  align-items: baseline;
  bottom: 0;
  display: flex;
  flex-wrap: wrap-reverse;
  position: absolute;
  visibility: hidden;
}

.header-buttons {
  padding: 2rem 0;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.header-buttons a {
  font-family: none;
  display: inline-block;
}
.header-buttons img {
  height: 2rem;
}
.header-buttons button {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  outline: none;
  padding: 0;
}
.header-buttons button .material-icons {
  font-size: 2.5rem;
}

.paused-text {
  align-items: center;
  display: flex;
  font-size: 3.125rem;
  height: 100%;
  justify-content: center;
  left: 0;
  position: absolute;
  user-select: none;
  visibility: hidden;
  width: 100%;
  z-index: 1;
}

.game-ui {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.game-ui .one-up {
  animation: blink 0.6s infinite;
}
@keyframes blink {
  0% {
    opacity: 0;
  }
  49% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
.game-ui .row {
  display: flex;
}
.game-ui .top ._25 {
  width: 25%;
}
.game-ui .top ._50 {
  width: 50%;
}
.game-ui .top .column :first-child {
  text-align: center;
}
.game-ui .top .column :not(:first-child) {
  margin-right: calc(50% - 3em);
  text-align: right;
}
.game-ui .bottom {
  justify-content: space-between;
}
.game-ui .bottom .extra-lives {
  align-items: flex-start;
  display: flex;
}
.game-ui .bottom .fruit-display {
  display: flex;
  flex-direction: row-reverse;
}

.loading-cover {
  background: #ffdf00;
  height: 100vh;
  position: absolute;
  top: 0;
  width: 50%;
  z-index: 4;
}

.left {
  left: 0;
  transition: left 0.5s 0.5s;
}

.right {
  right: 0;
  transition: right 0.5s 0.5s;
}

.main-menu-container {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.25s;
  visibility: hidden;
  width: 100%;
  z-index: 5;
}

.brent-ward-logo {
  position: absolute;
  top: 2rem;
  left: 3rem;
}
.brent-ward-logo img {
  height: 2rem;
}

.logo {
  width: 50rem;
  max-width: 80vw;
  margin-top: 25vh;
}

.game-start {
  background-color: #fcc73f;
  border: 0.3125rem solid #231f20;
  border-radius: 0.625rem;
  box-shadow: 0.3125rem 0.3125rem #ee2a29;
  color: #231f20;
  cursor: pointer;
  font-size: 3rem;
  outline: none;
  padding: 1rem;
}
.game-start:active {
  box-shadow: none;
  transform: translateX(0.3125rem) translateY(0.3125rem);
}
.game-start:disabled {
  cursor: default;
}

/* Mobile desktop suggestion popup */
.mobile-desktop-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.mobile-desktop-popup.show {
  display: flex;
}

.mobile-popup-content {
  background-color: #000;
  border: 0.3125rem solid #2121ff;
  border-radius: 0.625rem;
  padding: 1.875rem 1.25rem;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 0 1.25rem rgba(33, 33, 255, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.mobile-desktop-popup.show .mobile-popup-content {
  transform: scale(1);
}

.mobile-popup-content h3 {
  color: #ffdf00;
  margin: 0 0 0.9375rem 0;
  font-family: "Press Start 2P", monospace;
  font-size: 1rem;
  text-shadow: 2px 2px 0.25rem rgba(0, 0, 0, 0.5);
}

.mobile-popup-content p {
  color: #fff;
  margin: 0 0 1.25rem 0;
  font-family: "Press Start 2P", monospace;
  font-size: 0.75rem;
  line-height: 1.5;
}

.mobile-popup-buttons {
  display: flex;
  gap: 0.9375rem;
  justify-content: center;
  flex-wrap: wrap;
}

.mobile-popup-button {
  background-color: #fcc73f;
  border: 0.1875rem solid #231f20;
  border-radius: 0.5rem;
  color: #231f20;
  cursor: pointer;
  font-family: "Press Start 2P", monospace;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.625rem 0.9375rem;
  transition: all 0.2s ease;
  box-shadow: 0.1875rem 0.1875rem #ee2a29;
}

.mobile-popup-button:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0.3125rem 0.3125rem #ee2a29;
}

.mobile-popup-button:active {
  transform: translateY(1px);
  box-shadow: 1px 1px #ee2a29;
}

.mobile-popup-button.dismiss {
  background-color: #666;
  color: #fff;
  box-shadow: 0.1875rem 0.1875rem #444;
}

.mobile-popup-button.dismiss:hover {
  box-shadow: 0.3125rem 0.3125rem #444;
}

.mobile-popup-button.dismiss:active {
  box-shadow: 1px 1px #444;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media only screen and (max-width: 37.5rem) {
  .game-start {
    scale: 0.5;
  }
}
/* Game UI Styles */
.game-ui-blur {
  filter: blur(5px);
}

.game-ui-clear {
  filter: unset;
}

.game-element-hidden {
  visibility: hidden;
}

.game-element-visible {
  visibility: visible;
}

.loading-opacity-fade {
  opacity: 0;
}

.main-menu-visible {
  opacity: 1;
  visibility: visible;
}

.main-menu-hidden {
  opacity: 0;
}

.cover-left-hidden {
  left: -50%;
}

.cover-left-visible {
  left: 0;
}

.cover-right-hidden {
  right: -50%;
}

.cover-right-visible {
  right: 0;
}

.error-message-visible {
  opacity: 1;
  visibility: visible;
}

.points-display {
  position: absolute;
  z-index: 2;
}

.modal-flex-display {
  display: flex;
}

.modal-none-display {
  display: none;
}

.input-highlight-yellow {
  border-color: #ffdf00;
  box-shadow: 0 0 0.625rem rgba(255, 223, 0, 0.3);
}

.input-highlight-blue {
  border-color: #2121ff;
  box-shadow: none;
}

.champion-glow {
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 0.3125rem #fcc73f;
  }
  to {
    text-shadow: 0 0 1.25rem #fcc73f, 0 0 1.875rem #fcc73f;
  }
}
/* Mobile Controls - Retro Console Style */
.mobile-controls {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1500;
  touch-action: manipulation;
}
.mobile-controls.show {
  display: block;
}

.mobile-controls-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border: 0.1875rem solid #333;
  border-radius: 0.75rem;
  box-shadow: inset 0.125rem 0.125rem 0.25rem rgba(255, 255, 255, 0.1), inset -0.125rem -0.125rem 0.25rem rgba(0, 0, 0, 0.5), 0.25rem 0.25rem 0.75rem rgba(0, 0, 0, 0.6);
}

.mobile-horizontal-controls {
  display: flex;
  gap: 0.25rem;
}

.mobile-control-btn {
  background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
  border: 0.125rem solid #666;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  position: relative;
  box-shadow: inset 0.0625rem 0.0625rem 0.125rem rgba(255, 255, 255, 0.2), inset -0.0625rem -0.0625rem 0.125rem rgba(0, 0, 0, 0.5), 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}
.mobile-control-btn::before {
  content: "";
  position: absolute;
  inset: 0.125rem;
  border-radius: 0.1875rem;
  background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
  border: 0.0625rem solid #fcc73f;
}
.mobile-control-btn img {
  width: 1.5rem;
  height: 1.5rem;
  filter: brightness(1.2) contrast(1.2);
  position: relative;
  z-index: 1;
  transition: all 0.15s ease;
}
.mobile-control-btn:hover {
  border-color: #fcc73f;
  box-shadow: inset 0.0625rem 0.0625rem 0.125rem rgba(255, 255, 255, 0.3), inset -0.0625rem -0.0625rem 0.125rem rgba(0, 0, 0, 0.5), 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.3), 0 0 0.5rem rgba(252, 199, 63, 0.3);
}
.mobile-control-btn:hover::before {
  border-color: #ffdf00;
  background: linear-gradient(145deg, #404040, #303030);
}
.mobile-control-btn:hover img {
  filter: brightness(1.4) contrast(1.3);
}
.mobile-control-btn:active, .mobile-control-btn.pressed {
  transform: translateY(0.0625rem);
  background: linear-gradient(145deg, #2a2a2a, #3a3a3a);
  box-shadow: inset 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.6), inset -0.0625rem -0.0625rem 0.125rem rgba(255, 255, 255, 0.1), 0.0625rem 0.0625rem 0.125rem rgba(0, 0, 0, 0.4);
}
.mobile-control-btn:active::before, .mobile-control-btn.pressed::before {
  background: linear-gradient(145deg, #252525, #353535);
  border-color: #ee2a29;
  box-shadow: inset 0.0625rem 0.0625rem 0.1875rem rgba(0, 0, 0, 0.4);
}
.mobile-control-btn:active img, .mobile-control-btn.pressed img {
  filter: brightness(0.9) contrast(1.1);
  transform: scale(0.95);
}
.mobile-control-btn.mobile-up {
  margin-bottom: 0.125rem;
}
.mobile-control-btn.mobile-down {
  margin-top: 0.125rem;
}

.mobile-controls-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 0.125rem, rgba(255, 255, 255, 0.03) 0.125rem, rgba(255, 255, 255, 0.03) 0.1875rem);
  border-radius: 0.75rem;
  pointer-events: none;
}

/* Hide mobile controls on desktop */
@media only screen and (min-width: 48.0625rem) {
  .mobile-controls {
    display: none !important;
  }
}
.maze-cover {
  background: #000;
  height: 100%;
  position: absolute;
  visibility: hidden;
  width: 100%;
  z-index: 3;
}

.maze {
  margin: 0 auto;
  position: relative;
}

.maze-img {
  position: absolute;
  user-select: none;
  width: 100%;
}

.maze-row {
  display: flex;
}

.dot-container {
  height: 100%;
  position: absolute;
  width: 100%;
}
.pacman {
  margin: 0;
  position: absolute;
  z-index: 1;
}

.pacman-character {
  background-position: 0px 0px;
}

.pacman-arrow {
  position: absolute;
}

.character-hidden {
  visibility: hidden;
}

.character-visible {
  visibility: visible;
}
.pickup-base {
  position: absolute;
}

.pickup-hidden {
  visibility: hidden;
}

.pickup-visible {
  visibility: visible;
}

.pickup-near-pacman {
  background: linear-gradient(45deg, #ff0000, #ffff00, #ff0000);
}

.power-pellet {
  animation: blink 0.3s infinite;
}

@keyframes blink {
  0% {
    opacity: 0;
  }
  49% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}