:root {
  --bg: #ffffff;
  --fg: #0b0b0b;
  --muted: rgba(0,0,0,0.45);
  --track: #e6e6e6;
  --fill: #0b0b0b;
  --glass: rgba(255,255,255,0.75);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Duru Sans', system-ui, sans-serif;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(0,0,0,0.08);

  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;

  color: #000;
}

.life-note {
  margin-top: 72px;
  padding: 10px 16px;

  text-align: center;
  font-size: 0.8rem;
  line-height: 1.4;

  color: #000;
  background: #f2f2f2;
}

.page {
  
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}


.card {
  width: 100%;
  max-width: 460px;
  text-align: center;

  padding: 48px 32px;
}

.title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 14px;

  white-space: nowrap;
  text-align: center;

  letter-spacing: 0.6px;
  line-height: 1.1;
}

.statement {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.time-line {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}

.days,
.time {
  font-size: 1.4rem;
}

.time {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
}

.remaining-days {
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

.remaining-days span {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
}

.current-date {
  margin-bottom: 22px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--muted);
}

.percent-wrap {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}

.percent-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2rem;
}

.percent-symbol {
  font-size: 0.9rem;
  margin-top: 6px;
  color: var(--muted);
}

.progress {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--track);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  position: relative;
  height: 100%;
  width: 0%;
  background: var(--fill);
  border-radius: 6px;
  overflow: hidden;

  transition: width 0.6s ease;
}


.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 140%;
  height: 100%;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.15) 25%,
    rgba(255,255,255,0.35) 37%,
    rgba(255,255,255,0.15) 50%
  );

  animation: waveMove 2.2s linear infinite;
}

@media (max-width: 480px) {

  .progress {
    height: 5px;
    padding: 0 2px;           
  }

  .progress-fill {
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
  }

  .progress-fill::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -80%;
    width: 260%;
    height: 200%;

    /* softer, organic wave */
    background: radial-gradient(
      circle at 30% 50%,
      rgba(255,255,255,0.18),
      rgba(255,255,255,0.06) 45%,
      rgba(255,255,255,0.02) 65%
    );

    animation: mobileAliveWave 4.8s ease-in-out infinite;
    pointer-events: none;
  }
}

@keyframes mobileAliveWave {
  0% {
    transform: translateX(0%) translateY(0%);
  }
  50% {
    transform: translateX(35%) translateY(8%);
  }
  100% {
    transform: translateX(70%) translateY(0%);
  }
}


.share-section {
  margin-top: 28px;
}

.share-btn {
  width: 100%;
  padding: 14px;

  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;

  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  background: transparent;
  color: var(--fg);

  cursor: pointer;
}

.donate-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.qr-box {
  max-width: 220px;
  margin: 0 auto 14px;
  padding: 14px;
  background: rgba(0,0,0,0.03);
  border-radius: 14px;
}

.qr-box img {
  width: 100%;
  display: block;
}

.ad-section {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
}

@media (max-width: 480px) {

  .site-header {
    height: 56px;
    font-size: 1.1rem;
    letter-spacing: 2px;
  }

  .life-note {
    margin-top: 56px;
    font-size: 0.7rem;
  }


  .card {
    padding: 36px 20px;
  }

  .title {
    font-size: 1.4rem;
    white-space: normal;
  }

  .days,
  .time {
    font-size: 1.2rem;
  }

  .percent-number {
    font-size: 1.7rem;
  }

  .qr-box {
    max-width: 200px;
  }
}

.seo-text {
  position: absolute;
  left: -9999px;
}


.dob-section {
  margin-bottom: 32px;
  text-align: center;
}

.dob-label {
  margin-bottom: 15px;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.dob-fields {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dob-fields select {
  min-width: 90px;
  padding: 12px 14px;

  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;

  color: var(--fg);
  background: #ffffff;

  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dob-fields select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}

@media (max-width: 480px) {

  .dob-fields {
    gap: 8px;
  }

  .dob-fields select {
    min-width: 80px;
    padding: 11px 12px;
    font-size: 0.8rem;
  }
}


.days-left-box {
  margin: 22px auto 26px;
  padding: 18px 20px;

  width: 100%;
  max-width: 280px;

  border-radius: 16px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);

  text-align: center;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.6);
}


.days-left-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}


.days-left-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--fg);

  display: inline-block;
  min-width: 6ch;
}

.days-left-number {
  animation: none;
}

.days-left-number.update {
  animation: pageFlip 0.45s ease;
}

@keyframes pageFlip {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


@media (max-width: 480px) {

  .progress {
    width: 88%;              
    margin: 0 auto;          
    height: 5px;             
  }

  .progress-fill {
    border-radius: 5px;
  }
}

.dob-fields select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 36px; 
  background-color: #fff;

  background-image:
    linear-gradient(45deg, transparent 50%, #555 50%),
    linear-gradient(135deg, #555 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}


.dob-fields select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}


@media (max-width: 480px) {
  .dob-fields select {
    padding-right: 34px;
    background-position:
      calc(100% - 16px) calc(50% - 3px),
      calc(100% - 10px) calc(50% - 3px);
  }
}


.footer {
  margin-top: 44px; 
}


.donate-title {
  margin-top: 12px;   
  margin-bottom: 20px; 
}


.time-box {
  margin: 20px auto 22px;
  padding: 16px 18px;

  width: 100%;
  max-width: 320px;

  border-radius: 16px;
  background: rgba(0,0,0,0.035);
  border: 1px solid rgba(0,0,0,0.08);

  box-shadow:
    0 6px 18px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.6);

  text-align: center;
}


.time-box .time-line {
  margin: 0;
}



#daysPassed {
  font-weight: 800;      
  letter-spacing: 0.3px;
}



@media (max-width: 480px) {
  .share-btn {
    width: 88%;        
    margin: 0 auto;    
  }
}


.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}



.custom-select {
  position: relative;
  width: 96px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
}


.custom-select .selected {
  display: flex;
  align-items: center;

  height: 34px;
  padding: 0 34px 0 12px;

  background: #0b0b0b;
  color: #e5e7ff;

  border-radius: 12px;
  border: 1px solid rgba(120,140,255,0.35);

  cursor: pointer;
  user-select: none;

  box-shadow:
    0 0 0 rgba(120,140,255,0),
    inset 0 0 0 rgba(120,140,255,0);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.12s ease;
}

.custom-select .selected:hover {
  border-color: rgba(120,140,255,0.7);
  box-shadow:
    0 0 10px rgba(120,140,255,0.35),
    inset 0 0 8px rgba(120,140,255,0.15);
}

.custom-select .selected:active {
  transform: scale(0.96);
}

.custom-select.open .selected {
  border-color: #7c8cff;
  box-shadow:
    0 0 14px rgba(120,140,255,0.55),
    inset 0 0 10px rgba(120,140,255,0.25);
}


.custom-select .selected::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;

  width: 6px;
  height: 6px;

  border-right: 2px solid #9aa8ff;
  border-bottom: 2px solid #9aa8ff;

  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.25s ease;
}

.custom-select.open .selected::after {
  transform: translateY(-40%) rotate(-135deg);
}


.custom-select .options {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  width: 100%;
  max-height: 190px;
  overflow-y: auto;

  background: #050510;
  border-radius: 14px;
  border: 1px solid rgba(120,140,255,0.45);

  box-shadow:
    0 0 18px rgba(120,140,255,0.45),
    0 0 40px rgba(120,140,255,0.2);

  display: none;
  z-index: 1000;
}

.custom-select.open .options {
  display: block;
}


.custom-select .option {
  padding: 9px 12px;
  font-size: 0.75rem;
  color: #dfe3ff;
  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.custom-select .option:hover {
  background: rgba(120,140,255,0.18);
  color: #ffffff;
}

.custom-select .option:active {
  background: rgba(120,140,255,0.28);
}


@media (max-width: 480px) {
  .custom-select {
    width: 86px;
    font-size: 0.72rem;
  }

  .custom-select .selected {
    height: 32px;
    padding: 0 30px 0 10px;
  }

  .custom-select .options {
    max-height: 160px;
  }
}

@media (max-width: 360px) {
  .custom-select {
    width: 80px;
  }
}
