body {
  margin: 0;
  overflow: hidden;
  background: #0f0c09;
  font-family: Georgia, "Times New Roman", serif;
  color: #eadbb8;
}

#introContainer {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(88, 61, 32, 0.12), transparent 52%),
    #0d0906;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1.2s ease;
  z-index: 20;
}

#introLogo {
  width: min(825px, 59vw);
  opacity: 0;
  transform: scale(0.62);
  transition: opacity 1.4s ease, transform 1.4s ease;
  filter: drop-shadow(0 0 28px rgba(0, 0, 0, 0.42));
}

#titleScreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background:
    linear-gradient(rgba(16, 10, 6, 0.18), rgba(16, 10, 6, 0.58)),
    url("./rushlife_G&S.png") center center / contain no-repeat,
    #0d0906;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 10;
}

#titleScreen.show {
  opacity: 1 !important;
}

.title-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(180px);
}

.menu-buttons {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-status-line {
  margin: 18px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 18px;
  color: #d7c19a;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

#buyFullGameBtn.is-owned {
  opacity: 0.72;
  cursor: default;
}

.popup-actions {
  margin-top: 20px;
}

.titleButton,
.bubbleBtn {
  padding: 22px 48px;
  font-size: 30px;
  font-weight: 700;
  border-radius: 18px;
  cursor: pointer;
  color: #ead6b0;
  background:
    linear-gradient(180deg, #5f4324 0%, #3e2a16 70%, #2b1b0f 100%);
  border: 3px solid #8d6a3f;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 208, 0.12),
    0 10px 0 #1f130b,
    0 0 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.4px;
}

.titleButton:hover,
.bubbleBtn:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #b88e57;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 208, 0.16),
    0 12px 0 #1f130b,
    0 0 24px rgba(0, 0, 0, 0.42);
}

.titleButton:active,
.bubbleBtn:active {
  transform: translateY(4px) scale(0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 208, 0.10),
    0 5px 0 #1f130b,
    0 0 10px rgba(0, 0, 0, 0.26);
}

#playerCountPopup,
#messageOverlay,
#howToPlayPopup,
#loadSavePopup {
  position: fixed;
  inset: 0;
  background: rgba(6, 4, 2, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  opacity: 0;
}

#messageOverlay.show,
#howToPlayPopup.show,
#loadSavePopup.show {
  animation: fadeInOverlay 0.35s ease forwards;
}

.popup-box,
#messageBox,
#howToPlayBox {
  background:
    linear-gradient(180deg, rgba(62, 43, 24, 0.98), rgba(39, 27, 15, 0.99));
  border: 4px solid #8f6a3e;
  border-radius: 26px;
  padding: 34px 42px;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 240, 208, 0.08),
    0 0 34px rgba(0, 0, 0, 0.48);
  color: #eadbb8;
  min-width: min(720px, 90vw);
}

.popup-box h2,
#characterSelect h1,
#rosterSummary h1 {
  font-size: 42px;
  color: #ecd9b6;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.player-count-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
}

#characterSelect,
#rosterSummary,
#creditsScreen {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(82, 58, 28, 0.12), transparent 54%),
    rgba(10, 7, 5, 0.96);
  display: none;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  z-index: 30;
}

#characterGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 320px));
  gap: 36px;
  margin-top: 20px;
}

.character-card,
.roster-entry {
  width: 300px;
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(54, 37, 21, 0.98), rgba(31, 21, 12, 0.99));
  border-radius: 18px;
  border: 3px solid #65492b;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  transform: translateY(20px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.character-card.show-in,
.roster-entry.roster-in {
  animation: cardIn 0.4s ease forwards;
}

.character-card:hover {
  transform: scale(1.04);
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.5);
  border-color: #b58a55;
}

.character-card.selected {
  transform: scale(1.06);
  border-color: #d0a36a !important;
  box-shadow: 0 0 26px rgba(208, 163, 106, 0.24);
  opacity: 1 !important;
}

.character-image-wrapper {
  width: 128px;
  height: 256px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.character-card img,
.roster-entry img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.character-name,
.roster-entry .name {
  font-size: 30px;
  color: #ecd9b6;
  text-align: center;
}

.character-subtitle,
.roster-entry .player-order {
  font-size: 18px;
  color: #bfa47d;
  text-align: center;
}

#rosterList {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

#messageText,
#howToPlayText {
  font-size: 32px;
  color: #eadbb8;
  margin-bottom: 26px;
  line-height: 1.35;
}

.screen-fade {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  z-index: 999;
}

.screen-fade.show {
  opacity: 1;
}

#creditsScreen {
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 60;
}

#creditsScroll {
  position: absolute;
  bottom: -100%;
  width: 100%;
  text-align: center;
  animation: creditsRoll 55s linear forwards;
}

.credits-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px;
}

.credits-title {
  font-size: 52px;
  margin-bottom: 26px;
  color: #eadbb8;
}

.credits-section h2 {
  font-size: 30px;
  color: #cba06a;
  margin-top: 36px;
  margin-bottom: 8px;
}

.credits-section p {
  font-size: 22px;
  color: #e5d4b3;
  line-height: 1.45;
}

.screen-slide-in-right {
  animation: slideInRight 0.4s ease forwards;
}

.screen-slide-in-left {
  animation: slideInLeft 0.4s ease forwards;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes creditsRoll {
  from { bottom: -100%; }
  to { bottom: 100%; }
}

.credits-ending-banner {
  margin: 0 auto 42px;
  max-width: 720px;
  padding: 28px 22px 18px;
  border: 2px solid rgba(203, 160, 106, 0.45);
  border-radius: 16px;
  background: rgba(24, 16, 10, 0.55);
}

.credits-ending-banner[hidden] {
  display: none !important;
}

.credits-ending-kicker {
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bfa47d;
  margin-bottom: 10px;
}

.credits-ending-title {
  font-size: 44px;
  color: #eadbb8;
  margin-bottom: 6px;
}

.credits-ending-subtitle {
  font-size: 28px;
  color: #cba06a;
  margin-bottom: 18px;
}

.credits-ending-path,
.credits-ending-next {
  font-size: 20px;
  color: #e5d4b3;
  line-height: 1.45;
  margin: 8px 0;
}
/*EOF*/