/* ========================================
   Casinos Austria – Gluecksrad
   Mobile-first, 3 screens
   Colors: #E40521 (red), #FFFFFF, #1A1A1A
   ======================================== */

:root {
  --color-red: #E40521;
  --color-red-dark: #B8031A;
  --color-white: #FFFFFF;
  --color-black: #1A1A1A;
  --color-gold: #D4AF37;
  --color-bg: #E40521;
  --color-card-bg: #F5F5F5;
  --font-main: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --radius: 0.75rem;
  --transition: 0.3s ease;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-black);
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Screens ---- */

.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 1;
}

.screen--active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.screen__inner {
  width: 100%;
  max-width: 26rem;
  padding: 1.5rem;
  margin: 1rem;
  background: var(--color-white);
  border: 5px solid var(--color-black);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.screen__title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

.screen__subtitle {
  font-size: 0.95rem;
  text-align: center;
  opacity: 0.75;
  line-height: 1.5;
}

/* ---- Logo ---- */

.logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.logo {
  height: 5rem;
  width: auto;
  object-fit: contain;
}

.logo--small {
  height: 3rem;
}

/* ---- Name Form ---- */

.name-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.name-form__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.name-form__input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1.1rem;
  font-family: var(--font-main);
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.03);
  color: var(--color-black);
  outline: none;
  transition: border-color var(--transition);
}

.name-form__input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.name-form__input:focus {
  border-color: var(--color-red);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-main);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

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

.btn--primary {
  width: 100%;
  background: var(--color-red);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-red-dark);
}

.btn--spin {
  width: 100%;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn--spin:hover {
  background: var(--color-red-dark);
}

.btn--spin:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Wheel ---- */

.wheel__greeting {
  font-size: 1.1rem;
  text-align: center;
  opacity: 0.85;
}

.wheel-container {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 30px solid var(--color-red);
  z-index: 20;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

#wheel-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(228, 5, 33, 0.15), 0 0 0 6px var(--color-red), 0 0 0 10px var(--color-black);
}

/* ---- Result ---- */

.result-card {
  width: 100%;
  background: var(--color-card-bg);
  border: 2px solid var(--color-red);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.result-card__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
  font-weight: 600;
}

.result-card__name {
  font-size: 1.4rem;
  font-weight: 700;
}

.result-card__divider {
  width: 3rem;
  height: 2px;
  background: var(--color-red);
  opacity: 0.3;
}

.result-card__icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-card__icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.result-card__prize {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1.3;
}

/* ---- Responsive ---- */

@media (min-width: 480px) {
  .screen__title {
    font-size: 1.75rem;
  }

  .wheel-container {
    max-width: 380px;
  }
}

@media (max-height: 680px) {
  .screen__inner {
    gap: 0.75rem;
    padding: 1rem;
  }

  .logo {
    height: 3.5rem;
  }

  .logo--small {
    height: 2.2rem;
  }
}
