:root {
  --bg: #e0f2ff;
  --bg-accent: #b6e3ff;
  --card: #ffffff;
  --card-border: #1f2a44;
  --text: #0f172a;
  --muted: #475569;
  --accent: #38bdf8;
  --accent-strong: #0284c7;
  --blue: #2563eb;
  --danger: #ef4444;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 18px 0 rgba(31, 42, 68, 0.18);
  --font-display: "Luckiest Guy", "Nunito", sans-serif;
  --font-body: "Nunito", "Luckiest Guy", sans-serif;
  --font-item: "Rubik", "Nunito", sans-serif;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 60%);
  color: var(--text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

.main-container {
  min-height: 100vh;
  padding: 48px 18px 90px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.lang-switcher {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 2px solid #111827;
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 4px 0 rgba(17, 24, 39, 0.18);
}

.lang-button {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.lang-select {
  border: none;
  background: transparent;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.hero {
  background: #ffffff;
  border: 4px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.section-logo {
  width: clamp(90px, 18vw, 150px);
  margin: 0 auto 10px;
  border-radius: 20px;
  border: 3px solid #111827;
  box-shadow: 0 8px 0 rgba(17, 24, 39, 0.2);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  letter-spacing: 0.02em;
}

.logo-line-1 {
  color: var(--text);
  display: block;
}

.logo-line-2 {
  color: var(--blue);
  display: block;
}

.section-subtitle {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--muted);
}

.section-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.meta-pill {
  background: #e0f2fe;
  color: #0c4a6e;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 2px solid #111827;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border: 3px solid #0f172a;
  box-shadow: 0 8px 0 rgba(15, 42, 68, 0.2);
}

.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.social-proof {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #111827;
  font-size: 0.85rem;
  color: var(--muted);
}

.social-proof .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.item-card {
  background: var(--card);
  border: 3px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.item-card:hover {
  transform: translateY(-4px);
}

.item-header {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.item-image {
  background: #e0f2fe;
  border-radius: var(--radius-md);
  padding: 12px;
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 2px solid #111827;
}

.item-image img {
  width: 100%;
  height: 110px;
  object-fit: contain;
}

.item-info {
  text-align: center;
}

.item-name {
  font-family: var(--font-item);
  font-size: 1.05rem;
  font-weight: 700;
}

.btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
}

.btn-claim {
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, #22c55e, #16a34a);
  color: #ffffff;
  font-family: "Lilita One", "Luckiest Guy", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: 3px solid #000000;
  box-shadow: 0 8px 0 rgba(17, 24, 39, 0.2);
  text-shadow: -1px -1px 0 #000000,
    1px -1px 0 #000000,
    -1px 1px 0 #000000,
    1px 1px 0 #000000;
}

.btn-claim:hover {
  transform: translateY(-2px);
}

.btn-submit {
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 0 rgba(17, 24, 39, 0.2);
}

.btn-full {
  width: 100%;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 2000;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 16, 0.8);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border: 3px solid #111827;
  border-radius: var(--radius-lg);
  width: min(92vw, 460px);
  padding: 26px;
  box-shadow: var(--shadow);
  z-index: 1;
  text-align: center;
}

.simple-modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.simple-modal-note {
  color: var(--muted);
  margin-bottom: 18px;
}

.form-group input {
  width: 100%;
  border-radius: var(--radius-md);
  border: 2px solid #111827;
  background: #e0f2fe;
  color: var(--text);
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
}

.error-message {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 6px;
  min-height: 1.1rem;
}

.modal-footer {
  margin-top: 18px;
}

.ios-popup {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-popup-background {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.85);
}

.ios-popup-content {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 3px solid #111827;
  border-radius: var(--radius-lg);
  width: min(92vw, 420px);
  padding: 24px;
  text-align: center;
}

.ios-instruction-gif {
  width: 100%;
  border-radius: var(--radius-md);
  border: 2px solid #111827;
}

.ios-instruction-text h3 {
  font-family: var(--font-display);
  margin: 14px 0 8px;
}

.ios-instruction-text p {
  color: var(--muted);
}

.how-to-claim {
  padding: 24px 0 40px;
}

.how-title {
  font-family: "Lilita One", var(--font-display);
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.how-steps {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.how-step {
  background: #ffffff;
  border: 2px solid #111827;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  box-shadow: 0 4px 0 rgba(17, 24, 39, 0.15);
}

.how-step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.how-step-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.animated-background,
.bg-item-img,
.bg-item-img img {
  display: none;
}

@media (max-width: 640px) {
  .main-container {
    padding-top: 32px;
  }

  .hero {
    padding: 16px;
  }

  .items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .item-card {
    padding: 12px;
    gap: 10px;
  }

  .item-image {
    min-height: 100px;
  }
}
