:root {
  --primary: #C9901A;      /* koyu altın - vurgu / odak rengi */
  --primary-dark: #2B2B2B; /* kurumsal koyu antrasit */
  --bg-grad-1: #FFE9A8;    /* acik altin */
  --bg-grad-2: #F5A623;    /* koyu altin */
  --gold-light: #FFD65A;
  --card-bg: #ffffff;
  --text: #2B2B2B;
  --muted: #6b7280;
  --error: #dc2626;
  --radius: 18px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: linear-gradient(160deg, var(--bg-grad-1), var(--bg-grad-2));
  background-attachment: fixed;
  color: var(--text);
}

.page {
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.brand {
  text-align: center;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.brand-logo-card {
  display: inline-block;
  background: #fff;
  border-radius: 16px;
  padding: 14px 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  margin-bottom: 14px;
}
.brand-logo-img { display: block; height: 52px; width: auto; max-width: 220px; }
.brand-emoji { font-size: 40px; line-height: 1; margin-bottom: 4px; }
.brand h1 { font-size: 24px; margin: 4px 0; color: var(--primary-dark); }
.brand-sub { margin: 0; opacity: 0.75; font-size: 14px; color: var(--primary-dark); }

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

form { display: flex; flex-direction: column; gap: 14px; }

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input, select {
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  outline: none;
  background: #f9fafb;
  color: var(--text);
  width: 100%;
}
input:focus, select:focus {
  border-color: var(--primary);
  background: #fff;
}

.btn-primary {
  margin-top: 6px;
  background: linear-gradient(135deg, var(--gold-light), var(--bg-grad-2));
  color: var(--primary-dark);
  border: none;
  padding: 15px 18px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.1s ease, opacity 0.2s ease;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }

.btn-secondary {
  margin-top: 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.btn-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(43,43,43,0.35);
  border-top-color: var(--primary-dark);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error {
  color: var(--error);
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  margin: 0;
}

.wheel-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  margin: 4px auto 22px;
}

.pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 34px;
  color: #111827;
  z-index: 3;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
}

.wheel-rotor {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 8px #fff, 0 10px 30px rgba(0,0,0,0.35);
  transform: rotate(0deg);
}
.wheel-rotor.spinning {
  transition: transform 6.5s cubic-bezier(0.18, 0.86, 0.22, 1);
}

.wheel-rotor svg { width: 100%; height: 100%; display: block; }

.wheel-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 2;
}

#spinBtn { width: 100%; }

.footer-note {
  text-align: center;
  color: var(--primary-dark);
  opacity: 0.6;
  font-size: 12px;
  margin-top: 24px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.confetti { font-size: 42px; }
.modal-card h2 { margin: 4px 0 10px; color: var(--primary-dark); }
.prize-name { font-size: 19px; font-weight: 700; margin: 6px 0 16px; }
.code-label { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.code {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 12px 10px;
  color: var(--primary-dark);
}
.small { color: var(--muted); font-size: 13px; margin-top: 14px; }

@media (max-width: 360px) {
  .brand h1 { font-size: 21px; }
  .card { padding: 18px 14px; }
}
