@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100..900&family=Sofia+Sans+Condensed:wght@1..1000&display=swap');

/* 
  font-family: 'Roboto', sans-serif;
  font-family: 'Sofia Sans Condensed', sans-serif;
*/

:root {
  --f: 'Roboto', system-ui, -apple-system, sans-serif;
  --fh: 'Sofia Sans Condensed', system-ui, -apple-system, sans-serif;
  --red: #c8102e;
  --red2: #e8192e;
  --gold: #c8a84b;
  --dark: #1a1a1f;
  --bg: #212128;
  --text: #ffffff;
  --muted: #9090a0;
  --muted2: #b0b4c3;
  --card-bg: rgba(26, 26, 31, 0.85);
  --border-red: rgba(200, 16, 46, 0.35);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(200, 16, 46, 0.15);
  --shadow-btn: 0 4px 20px rgba(232, 25, 46, 0.45);
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  font-family: var(--f);
  background: #1a1a1a;
  color: var(--text);
  overflow-x: hidden;
}

body.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

/* Background Card Suits */
.suits-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.suits-bg span {
  position: absolute;
  color: rgba(255, 255, 255, 0.07);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Top Bar */
.top-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, #000000 0%, #050000 25%, #7a0010 65%, #c8102e 100%);
  padding: 10px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-bottom: 2px solid rgba(200, 16, 46, 0.4);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.top-bar img {
  height: auto;
  max-width: 100%;
  width: 128px;
  display: block;
}

/* Container */
.container {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  width: 100%;
  max-width: 520px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 36px;
  text-align: center;
  font-size: 16px;
}

/* First & Final Screens */
.first-screen,
.final-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-red);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 26px 22px 28px;
  -webkit-animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@-webkit-keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.first-screen.active,
.final-screen.active {
  display: flex;
}

/* Header */
.header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.header h3 {
  font-family: var(--fh);
  font-size: 2rem;
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 4px;
}

.header p {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted2);
}

.header p.bold {
  letter-spacing: 0.025em;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  padding: 8px 14px;
  background: rgba(200, 16, 46, 0.15);
  border: 1px solid rgba(200, 16, 46, 0.3);
  border-radius: 8px;
  margin-top: 4px;
}

/* Chest Section */
.chest-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  margin-top: 18px;
  width: 100%;
}

.chest-img {
  max-height: 240px;
  max-width: 90%;
  -o-object-fit: contain;
  object-fit: contain;
  -webkit-animation: floatBox 3s ease-in-out infinite;
  animation: floatBox 3s ease-in-out infinite;
  -webkit-filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(200, 16, 46, 0.25));
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(200, 16, 46, 0.25));
  transition: transform 0.2s ease;
}

.chest-section:hover .chest-img {
  transform: scale(1.04);
}

.chest-img-final {
  max-height: 320px;
  max-width: 90%;
  -o-object-fit: contain;
  object-fit: contain;
  -webkit-animation: floatBox 3s ease-in-out infinite;
  animation: floatBox 3s ease-in-out infinite;
  -webkit-filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(200, 16, 46, 0.35));
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(200, 16, 46, 0.35));
}

@-webkit-keyframes floatBox {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatBox {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Buttons */
.btn {
  margin-top: 12px;
  width: 100%;
  max-width: 340px;
  padding: 15px 24px;
  font-family: var(--fh);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #f0253b 0%, #c8102e 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-btn), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, -webkit-filter 0.15s;
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s, -webkit-filter 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
  outline: 0;
}

.btn:hover {
  -webkit-filter: brightness(1.1);
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 25, 46, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn:active {
  transform: scale(0.97);
}

/* Final Screen */
.final-screen .text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
}

.final-screen .text p:first-child {
  font-family: var(--fh);
  font-size: 1.6rem;
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  color: var(--red2);
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.25;
}

.final-screen .text p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted2);
}

.final-screen .btn {
  margin-top: 20px;
  -webkit-animation: pulseBtn 2s infinite;
  animation: pulseBtn 2s infinite;
}

@-webkit-keyframes pulseBtn {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(232, 25, 46, 0.45);
  }

  50% {
    box-shadow: 0 4px 30px rgba(232, 25, 46, 0.45), 0 0 15px rgba(255, 255, 255, 0.25);
  }
}

@keyframes pulseBtn {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(232, 25, 46, 0.45);
  }

  50% {
    box-shadow: 0 4px 30px rgba(232, 25, 46, 0.45), 0 0 15px rgba(255, 255, 255, 0.25);
  }
}

.highlight {
  color: var(--gold);
  font-weight: bold;
}

@media (max-width: 480px) {
  .container {
    padding: 16px 12px 24px;
  }

  .first-screen,
  .final-screen {
    padding: 20px 16px 22px;
  }

  .chest-img,
  .chest-img-final {
    max-height: 200px;
  }

  .btn {
    font-size: 1.05rem;
    padding: 14px 20px;
  }
}