/* ========================================
   Base Styles & Reset
   ======================================== */

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

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-gradient);
  color: var(--color-text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   App Container
   ======================================== */

.app-container {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  z-index: var(--z-content);
}

/* ========================================
   Screens
   ======================================== */

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: 
    opacity var(--transition-slow),
    visibility var(--transition-slow),
    transform var(--transition-slow);
}

.screen.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* ========================================
   Typography
   ======================================== */

.title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-gold-300);
  text-align: center;
  text-shadow: 
    0 2px 4px rgba(0,0,0,0.3),
    0 0 40px rgba(255, 193, 7, 0.3);
  margin-bottom: var(--space-2);
}

.title-decoration {
  display: inline-block;
  animation: sparkle 2s ease-in-out infinite;
}

.subtitle {
  font-family: var(--font-decorative);
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  text-align: center;
}

/* ========================================
   Header
   ======================================== */

.header {
  text-align: center;
  margin-bottom: var(--space-8);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  margin-top: var(--space-8);
  text-align: center;
}

.fortune-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ========================================
   Responsive
   ======================================== */

@media (min-width: 640px) {
  .title {
    font-size: var(--text-4xl);
  }
  
  .subtitle {
    font-size: var(--text-2xl);
  }
}
