/* 
 * Non-Playable Coin (NPC) Rewards Page Clone
 * Pure Vanilla CSS - No external frameworks or libraries
 */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --bg-viewport: #ffffff;
  --bg-frame-gradient-start: #f5f6fe;
  --bg-frame-gradient-mid: #f9faff;
  --bg-frame-gradient-end: #f1f3fd;
  --text-primary: #12141a;
  --text-heading: #1e2229;
  --text-muted: #8d95a5;
  --text-body: #404654;
  --btn-yellow: #ffe925;
  --btn-yellow-hover: #ffdf00;
  --btn-yellow-active: #f5d400;
  --btn-text: #111111;
  --coin-blue: #72bbf8;
  --border-light: rgba(0, 0, 0, 0.06);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.04);
  --font-display: 'Archivo Black', 'Impact', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-viewport);
  font-family: var(--font-sans);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 20px;
}

/* Outer Application Wrapper */
.app-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  min-height: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Custom Futuristic Frame with Notches */
.frame-wrapper {
  position: relative;
  width: 100%;
  min-height: 640px;
  background: linear-gradient(135deg, var(--bg-frame-gradient-start) 0%, var(--bg-frame-gradient-mid) 50%, var(--bg-frame-gradient-end) 100%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(45, 62, 105, 0.07), 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Top Notch Geometry */
.frame-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  z-index: 20;
  pointer-events: none;
}

.top-notch-cutout {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 24px;
  background-color: var(--bg-viewport);
  clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* Bottom Notch Geometry & Bottom Badge */
.frame-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.bottom-notch-cutout {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 24px;
  background-color: var(--bg-viewport);
  clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-mini-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 25;
}

.bottom-mini-badge:hover {
  transform: translateX(-50%) scale(1.15) rotate(15deg);
}

.bottom-mini-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* Ambient Meme Hands Background Blur Shapes */
.ambient-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hand-blur-top-left {
  position: absolute;
  top: -60px;
  left: 24%;
  width: 320px;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(226, 167, 134, 0.55) 0%, rgba(200, 136, 104, 0.35) 45%, transparent 75%);
  filter: blur(42px);
  transform: rotate(-15deg);
  opacity: 0.75;
}

.hand-blur-top-right {
  position: absolute;
  top: 40px;
  right: -50px;
  width: 380px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(205, 140, 107, 0.65) 0%, rgba(184, 115, 85, 0.45) 45%, transparent 75%);
  filter: blur(48px);
  transform: rotate(20deg);
  opacity: 0.85;
}

.hand-blur-bottom-right {
  position: absolute;
  bottom: -40px;
  right: -30px;
  width: 300px;
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(215, 155, 125, 0.45) 0%, rgba(195, 128, 98, 0.25) 50%, transparent 75%);
  filter: blur(45px);
  opacity: 0.6;
}

/* Header inside frame */
.frame-header {
  position: relative;
  z-index: 10;
  padding: 32px 44px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-text {
  font-size: 15px;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
  cursor: pointer;
}

.brand-logo-text:hover {
  opacity: 0.8;
}

/* Hero Content Grid */
.hero-content-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  padding: 40px 48px 60px 48px;
  min-height: 520px;
  gap: 32px;
}

/* Left Column: Typography and CTA */
.hero-text-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 600px;
}

.event-badge-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 6.5vw, 86px);
  line-height: 0.95;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 22px;
  user-select: none;
}

.hero-description {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--text-body);
  font-weight: 500;
  max-width: 490px;
  margin-bottom: 34px;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Claim Button with Unique Notch Accent */
.claim-btn-container {
  position: relative;
  display: inline-block;
}

.claim-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--btn-yellow);
  color: var(--btn-text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 234, 37, 0.42), 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: visible;
  outline: none;
}

/* Subtle top folded trapezoid accent on button */
.claim-btn::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 6px;
  background: #ecd510;
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
  border-radius: 2px 2px 0 0;
  transition: all 0.2s ease;
}

.claim-btn:hover {
  background-color: var(--btn-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 234, 37, 0.6), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.claim-btn:hover::before {
  background: #ffe000;
  width: 56px;
}

.claim-btn:active {
  transform: translateY(1px);
  background-color: var(--btn-yellow-active);
  box-shadow: 0 4px 12px rgba(255, 234, 37, 0.35);
}

/* Right Column: Visual Stage with Floating Coins */
.hero-visual-column {
  position: relative;
  height: 100%;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Central Main Coin Emblem */
.main-coin-wrapper {
  position: relative;
  width: clamp(280px, 32vw, 410px);
  aspect-ratio: 1 / 1;
  z-index: 8;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: floatMain 6s ease-in-out infinite;
}

.main-coin-wrapper:hover {
  transform: scale(1.04) rotate(-2deg);
}

.main-coin-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(26, 38, 70, 0.16));
  user-select: none;
  pointer-events: none;
}

/* Floating Top-Center Coin */
.floating-coin-top {
  position: absolute;
  top: -24px;
  left: 20%;
  width: 76px;
  height: 76px;
  z-index: 6;
  opacity: 0.92;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12)) blur(0.3px);
  animation: floatTop 5.2s ease-in-out infinite alternate;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.floating-coin-top:hover {
  transform: scale(1.2) rotate(20deg) !important;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18)) blur(0);
}

.floating-coin-top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Floating Bottom-Right Coin */
.floating-coin-bottom {
  position: absolute;
  bottom: 0px;
  right: 18px;
  width: 140px;
  height: 140px;
  z-index: 7;
  opacity: 0.85;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.14)) blur(1px);
  animation: floatBottom 6.8s ease-in-out infinite alternate-reverse;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.floating-coin-bottom:hover {
  transform: scale(1.15) rotate(-10deg) !important;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.2)) blur(0);
  opacity: 1;
}

.floating-coin-bottom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Floating Animations */
@keyframes floatMain {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1.5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes floatTop {
  0% {
    transform: translateY(0px) rotate(5deg);
  }
  100% {
    transform: translateY(-14px) rotate(-8deg);
  }
}

@keyframes floatBottom {
  0% {
    transform: translateY(0px) rotate(-5deg);
  }
  100% {
    transform: translateY(-16px) rotate(12deg);
  }
}

/* Wallet Connection & Eligibility Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 25, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-group img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.01em;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f3f4f8;
  color: #555c6d;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.modal-close-btn:hover {
  background: #e5e7ef;
  color: #111111;
}

.modal-subtitle {
  font-size: 14px;
  color: #656d81;
  line-height: 1.5;
  margin-bottom: 22px;
}

/* Wallet Options Grid */
.wallets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.wallet-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: #f8f9fc;
  border: 1px solid #e7eaf2;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #1a1e27;
  cursor: pointer;
  transition: all 0.18s ease;
}

.wallet-option-btn:hover {
  background: #f0f3fd;
  border-color: #c7d2fe;
  transform: translateX(3px);
}

.wallet-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.wallet-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e7eafd;
  color: #4338ca;
  text-transform: uppercase;
}

/* Custom Address Input Form */
.address-check-section {
  position: relative;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #e2e5ee;
}

.address-check-title {
  font-size: 12px;
  font-weight: 700;
  color: #7d8597;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.address-input-wrapper {
  display: flex;
  gap: 8px;
}

.address-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #dce1eb;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #111111;
  outline: none;
  background: #fafbfe;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.address-input:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.address-submit-btn {
  padding: 0 16px;
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s;
  white-space: nowrap;
}

.address-submit-btn:hover {
  background: #273042;
}

/* Allocation Claim Result Panel */
.claim-result-view {
  display: none;
  text-align: center;
  padding: 10px 0 6px 0;
}

.claim-result-view.active {
  display: block;
}

.claim-status-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: #ecfdf5;
  border: 3px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #059669;
}

.result-headline {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.result-wallet-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  background: #f1f3f9;
  color: #4b5563;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.allocation-box {
  background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
  border: 1px solid #fde047;
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 22px;
}

.allocation-amount {
  font-family: var(--font-display);
  font-size: 34px;
  color: #854d0e;
  line-height: 1.1;
  margin-bottom: 4px;
}

.allocation-label {
  font-size: 13px;
  font-weight: 700;
  color: #a16207;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-action-btn {
  width: 100%;
  padding: 15px;
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-action-btn:hover {
  background: #000000;
  transform: translateY(-1px);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-message {
  padding: 12px 20px;
  background: #111827;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: slideToast 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes slideToast {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-content-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 32px 60px 32px;
    gap: 40px;
  }

  .hero-text-column {
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-description {
    max-width: 540px;
  }

  .main-coin-wrapper {
    width: clamp(240px, 45vw, 340px);
  }

  .floating-coin-top {
    left: 10%;
    top: -10px;
  }

  .floating-coin-bottom {
    right: 5%;
    bottom: -10px;
  }
}

@media (max-width: 640px) {
  body {
    padding: 12px 8px;
  }

  .frame-wrapper {
    border-radius: 20px;
    min-height: 580px;
  }

  .frame-header {
    padding: 24px 20px 0 20px;
  }

  .hero-content-grid {
    padding: 24px 20px 48px 20px;
    gap: 32px;
  }

  .hero-main-title {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-description {
    font-size: 15px;
  }

  .claim-btn {
    width: 100%;
    padding: 15px 24px;
    font-size: 14px;
  }

  .top-notch-cutout {
    width: 140px;
    height: 18px;
  }

  .bottom-notch-cutout {
    width: 130px;
    height: 18px;
  }

  .floating-coin-top {
    width: 52px;
    height: 52px;
    left: 5%;
  }

  .floating-coin-bottom {
    width: 90px;
    height: 90px;
    right: 2%;
  }
}
