/* ========== THEME ========== */
:root {
  --bg-dark: #060c40;
  --navy: #000b24;
  --purple: #480970;
  --gold: #faed6d;
  --orange: #fd8300;
  --red: #fa1000;
  --cyan: #0cedfc;
  --text: #ffffff;
  --muted: #97b6c9;
  --radius: 16px;
  --header-pad: 140px;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-brd: rgba(255, 255, 255, 0.12);
  --card-width: 520px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1100px 600px at 20% 15%, var(--purple), transparent 55%),
              radial-gradient(900px 500px at 80% 0%, rgba(12, 237, 252, 0.15), transparent 60%),
              var(--bg-dark);
  overflow-x: hidden;
}

body {
  padding-top: var(--header-pad);
}

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(180deg, var(--navy) 78%, #1c0329);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.brand {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.3px;
  text-decoration: none;
  font-size: 2.56rem;
  line-height: 1.05;
  text-shadow: 0 0 14px rgba(250, 237, 109, 0.55);
}

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.nav-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.nav-btn:active {
  transform: translateY(1px);
}

/* ========== PAGE STRUCTURE ========== */
.page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  text-align: center;
  min-height: calc(100dvh - var(--header-pad) - 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.section {
  width: 100%;
  max-width: var(--card-width);
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(4px);
}

h1,
h2 {
  margin: 0 0 12px;
  text-align: center;
}

p {
  margin: 0 0 10px;
  color: #e3e8fb;
  line-height: 1.6;
  text-align: center;
}

/* ========== BUTTONS ========== */
.cta-block {
  display: flex;
  justify-content: center;
  margin: 6px 0 0;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.2px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(145deg, var(--gold), var(--orange));
  color: #000;
  box-shadow: 0 0 20px rgba(250, 237, 109, 0.6);
  font-size: 1.06rem;
}

.btn:active {
  transform: translateY(1px);
}

.btn.block {
  width: 100%;
  max-width: 360px;
}

/* ========== WINNERS ========== */
.winners-list {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: var(--card-width);
  display: grid;
  gap: 12px;
}

.winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(10, 16, 50, 0.88);
  border: 1px solid rgba(12, 237, 252, 0.28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
}

.winner-name {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.winner-amt {
  background: rgba(12, 237, 252, 0.18);
  border: 1px solid rgba(12, 237, 252, 0.4);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ========== LOGIN ========== */
.auth {
  width: 100%;
  max-width: var(--card-width);
  margin: 0 auto;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.input {
  width: 100%;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0d1333;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-align: left;
}

.input::placeholder {
  color: #a9b5d6;
}

.input:focus {
  border-color: rgba(12, 237, 252, 0.7);
  box-shadow: 0 0 0 3px rgba(12, 237, 252, 0.25);
}

/* ========== LUCK METER ========== */
.luck {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--card-width);
  margin: 0 auto;
  padding: 20px 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(12, 237, 252, 0.25), 0 10px 28px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(4px);
}

.luck-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 10px;
  text-shadow: 0 0 10px rgba(250, 237, 109, 0.4);
}

.luck-bar {
  width: 100%;
  height: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.luck-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff4d4d, #fd8300 35%, #faed6d 65%, #0cedfc);
  box-shadow: 0 0 16px rgba(250, 237, 109, 0.5);
  transition: width 0.6s ease;
}

.luck-legend {
  color: #e3e8fb;
  font-weight: 700;
  margin-top: 10px;
  font-size: 1.1rem;
}

/* ========== FOOTER ========== */
footer {
  margin-top: 40px;
  text-align: center;
  padding: 22px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, rgba(6, 12, 64, 0.88), rgba(6, 12, 64, 0.96));
}

footer a {
  color: #bcd3e4;
  text-decoration: underline;
}
