/* =========================================================
   unlockID
   Datei: /public/css/index.css
   Zweck:
   - Startseite: super clean
   - Fokus auf Code Slots + UNLOCK Button
   - Dark Hacker Look (ohne Balken/overdesign)
   - Feedback FX: ACCESS DENIED / GRANTED + Field Blink
   - AAA Modules: Countdown + Claim Panel + Weekly Toplist
   - Security Demo: Attempts + Lock Panel
   - Claim Check (unten)
========================================================= */

:root{
  --u-bg: #000;
  --u-panel: rgba(255,255,255,0.03);
  --u-line: rgba(255,255,255,0.08);

  --u-text: rgba(255,255,255,0.92);
  --u-muted: rgba(255,255,255,0.52);

  --u-cyan: #16e0ff;
  --u-cyan-soft: rgba(22, 224, 255, 0.16);

  --u-red: rgba(255,80,80,0.95);
  --u-green: rgba(70,255,160,0.95);

  --u-shadow: 0 0 0 1px rgba(22,224,255,0.08), 0 0 32px rgba(0,0,0,0.8);
}

/* Global Box-Sizing */
*,
*::before,
*::after{
  box-sizing: border-box;
}

/* Body / Layout */
.page{
  background: var(--u-bg);
  color: var(--u-text);
  margin: 0;
  min-height: 100vh;

  font-family: "Oxanium", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Platz für fixed footer */
  padding-bottom: 64px;
}

/* Main Center */
.main{
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding: 68px 16px 22px;
}

/* Unlock Panel */
.unlock{
  width: 100%;
  display: flex;
  justify-content: center;
}

.unlock__panel{
  width: 100%;
  max-width: 760px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.012)
  );

  border: 1px solid var(--u-line);
  border-radius: 18px;
  padding: 26px 22px;

  box-shadow: var(--u-shadow);
  position: relative;
  overflow: clip;
}

/* subtle scanline overlay */
.unlock__panel::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.04) 1px,
      rgba(0,0,0,0) 3px,
      rgba(0,0,0,0) 6px
    );
  mix-blend-mode: overlay;
}

/* Title */
.unlock__title{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  text-align: center;
}

.unlock__brand{
  font-weight: 800;
  letter-spacing: 1.2px;
  font-size: 18px;
  color: rgba(255,255,255,0.92);
}

/* =========================================================
   COUNTDOWN
========================================================= */

.countdown{
  width: 100%;
  max-width: 520px;
  margin: 0 auto 14px;

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;

  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);

  background: linear-gradient(
    180deg,
    rgba(22,224,255,0.06),
    rgba(255,255,255,0.02)
  );

  box-shadow:
    0 0 0 1px rgba(22,224,255,0.06),
    0 0 18px rgba(22,224,255,0.06);
}

.countdown__label{
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.countdown__time{
  justify-self: end;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
}

.countdown__sub{
  grid-column: 1 / -1;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: 0.6px;
}

/* =========================================================
   FLASH (ACCESS DENIED/GRANTED)
========================================================= */

.unlock__flash{
  display: none;
  justify-content: center;
  align-items: center;

  margin: 0 auto 14px;
  width: 100%;
  max-width: 520px;

  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);

  font-weight: 800;
  letter-spacing: 2.2px;
  font-size: 12px;
  text-transform: uppercase;

  background: rgba(255,255,255,0.03);
  user-select: none;

  position: relative;
  overflow: hidden;
}

.unlock__flash.is-show{
  display: flex;
  animation: flashPop 240ms ease;
}

.unlock__flash.is-denied{
  color: var(--u-red);
  border-color: rgba(255,80,80,0.35);
  box-shadow: 0 0 0 4px rgba(255,80,80,0.10), 0 0 24px rgba(255,80,80,0.12);
}

.unlock__flash.is-granted{
  color: var(--u-green);
  border-color: rgba(70,255,160,0.35);
  box-shadow: 0 0 0 4px rgba(70,255,160,0.10), 0 0 24px rgba(70,255,160,0.12);
}

.unlock__flash.is-show::after{
  content: "";
  position: absolute;
  top: -8px;
  left: -30%;
  width: 40%;
  height: 160%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.18),
    rgba(255,255,255,0)
  );
  transform: skewX(-18deg);
  animation: shimmerSwipe 520ms ease;
  opacity: 0.6;
}

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

@keyframes shimmerSwipe{
  0%{ left: -35%; opacity: 0; }
  35%{ opacity: 0.85; }
  100%{ left: 110%; opacity: 0; }
}

/* =========================================================
   CODE INPUT + BUTTON
========================================================= */

.unlock__form{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.code{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: auto;
}

.code__slot{
  width: 52px;
  height: 58px;

  background: rgba(255,255,255,0.02);
  border: 1px solid var(--u-line);
  border-radius: 14px;

  color: var(--u-text);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;

  outline: none;
  transition: transform 120ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 180ms ease;
}

.code__slot:focus{
  border-color: rgba(22,224,255,0.65);
  box-shadow:
    0 0 0 4px rgba(22,224,255,0.12),
    0 0 20px rgba(22,224,255,0.08);
  transform: translateY(-1px);
}

.code__slot:hover{
  border-color: rgba(255,255,255,0.16);
}

.code__slot:disabled{
  opacity: 0.55;
  cursor: not-allowed;
}

.code.is-denied .code__slot{
  border-color: rgba(255,80,80,0.55) !important;
  box-shadow: 0 0 0 4px rgba(255,80,80,0.10), 0 0 18px rgba(255,80,80,0.10) !important;
  animation: slotPunchRed 420ms ease 0s 2;
}

.code.is-granted .code__slot{
  border-color: rgba(70,255,160,0.55) !important;
  box-shadow: 0 0 0 4px rgba(70,255,160,0.10), 0 0 18px rgba(70,255,160,0.10) !important;
  animation: slotPunchGreen 420ms ease 0s 2;
}

@keyframes slotPunchRed{
  0%{ transform: translateY(0); }
  50%{ transform: translateY(-2px); }
  100%{ transform: translateY(0); }
}

@keyframes slotPunchGreen{
  0%{ transform: translateY(0); }
  50%{ transform: translateY(-2px); }
  100%{ transform: translateY(0); }
}

.unlock__btn{
  height: 58px;
  padding: 0 18px;

  border-radius: 14px;
  border: 1px solid rgba(22,224,255,0.35);

  background: linear-gradient(
    180deg,
    rgba(22,224,255,0.18),
    rgba(22,224,255,0.06)
  );

  color: rgba(255,255,255,0.92);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 1.6px;
  font-size: 13px;

  cursor: pointer;
  transition: transform 120ms ease, box-shadow 200ms ease, border-color 200ms ease, opacity 180ms ease;
  white-space: nowrap;
}

.unlock__btn:hover{
  border-color: rgba(22,224,255,0.55);
  box-shadow:
    0 0 0 4px rgba(22,224,255,0.10),
    0 0 24px rgba(22,224,255,0.16);
  transform: translateY(-1px);
}

.unlock__btn:active{
  transform: translateY(0px);
}

.unlock__btn:disabled{
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================================================
   Attempts Info (Premium)
========================================================= */

.attempts{
  margin: 12px auto 0;
  width: 100%;
  max-width: 520px;

  height: 38px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);

  color: rgba(255,255,255,0.70);
  font-weight: 800;
  letter-spacing: 1.6px;
  font-size: 12px;
  text-transform: uppercase;

  box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
}

/* =========================================================
   LOCK PANEL (AAA)
========================================================= */

.lock{
  margin: 14px auto 0;
  width: 100%;
  max-width: 520px;

  border-radius: 16px;
  border: 1px solid rgba(255,80,80,0.22);

  background: linear-gradient(
    180deg,
    rgba(255,80,80,0.10),
    rgba(255,255,255,0.02)
  );

  box-shadow:
    0 0 0 1px rgba(255,80,80,0.08),
    0 0 22px rgba(255,80,80,0.08);

  padding: 16px;
}

.lock__badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 28px;
  padding: 0 12px;
  border-radius: 999px;

  border: 1px solid rgba(255,80,80,0.35);
  background: rgba(255,80,80,0.08);

  color: rgba(255,80,80,0.95);
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 11px;
  text-transform: uppercase;
}

.lock__title{
  margin-top: 10px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.92);
}

.lock__sub{
  margin-top: 8px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  letter-spacing: 0.6px;

  display: flex;
  align-items: center;
  gap: 8px;
}

.lock__time{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 28px;
  padding: 0 10px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);

  color: rgba(255,255,255,0.88);
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 12px;
}

/* =========================================================
   CLAIM PANEL (AAA)
========================================================= */

.claim{
  width: 100%;
  max-width: 520px;
  margin: 16px auto 0;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(
    180deg,
    rgba(70,255,160,0.08),
    rgba(255,255,255,0.02)
  );

  box-shadow:
    0 0 0 1px rgba(70,255,160,0.08),
    0 0 22px rgba(70,255,160,0.06);

  padding: 16px;
}

.claim__badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 28px;
  padding: 0 12px;
  border-radius: 999px;

  border: 1px solid rgba(70,255,160,0.28);
  color: rgba(70,255,160,0.95);
  background: rgba(70,255,160,0.06);

  font-weight: 800;
  letter-spacing: 1.4px;
  font-size: 11px;
  text-transform: uppercase;
}

.claim__title{
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.92);
}

.claim__box{
  margin-top: 10px;

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;

  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.35);
}

.claim__code{
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 16px;
  color: rgba(255,255,255,0.92);
}

.claim__copy{
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;

  border: 1px solid rgba(22,224,255,0.35);
  background: linear-gradient(
    180deg,
    rgba(22,224,255,0.18),
    rgba(22,224,255,0.06)
  );

  color: rgba(255,255,255,0.92);
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 1.6px;
  font-size: 12px;

  cursor: pointer;
}

.claim__copy:hover{
  border-color: rgba(22,224,255,0.55);
  box-shadow:
    0 0 0 4px rgba(22,224,255,0.10),
    0 0 20px rgba(22,224,255,0.12);
}

.claim__text{
  margin-top: 10px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  letter-spacing: 0.4px;
  line-height: 1.35;
}

.claim__toast{
  margin-top: 10px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(22,224,255,0.25);
  background: rgba(22,224,255,0.06);
  color: rgba(255,255,255,0.86);

  display: grid;
  place-items: center;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;

  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.claim__toast.is-show{
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   TOPLIST (AAA)
========================================================= */

.toplist{
  margin-top: 18px;
  width: 100%;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);

  padding: 14px;
}

.toplist__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.toplist__title{
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 12px;
  color: rgba(255,255,255,0.90);
  text-transform: uppercase;
}

.toplist__meta{
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.6px;
}

.toplist__table{
  display: grid;
  gap: 8px;
}

.toplist__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 12px;
  border-radius: 14px;

  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.35);
}

.toplist__user{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.toplist__rank{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 26px;
  min-width: 42px;
  padding: 0 10px;

  border-radius: 999px;
  border: 1px solid rgba(22,224,255,0.22);
  background: rgba(22,224,255,0.06);

  color: rgba(22,224,255,0.92);
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 11px;
}

.toplist__name{
  font-weight: 800;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.90);

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}

.toplist__time{
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.toplist__empty{
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  letter-spacing: 0.6px;
  padding: 10px;
}

/* =========================================================
   CLAIM CHECK (AAA)
========================================================= */

.claimcheck{
  margin-top: 18px;
  width: 100%;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);

  padding: 14px;
}

.claimcheck__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.claimcheck__title{
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 12px;
  color: rgba(255,255,255,0.90);
  text-transform: uppercase;
}

.claimcheck__meta{
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.6px;
}

.claimcheck__form{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.claimcheck__input{
  height: 46px;
  border-radius: 14px;

  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);

  color: rgba(255,255,255,0.92);
  padding: 0 14px;

  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.6px;
  font-size: 13px;

  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.claimcheck__input::placeholder{
  color: rgba(255,255,255,0.35);
}

.claimcheck__input:focus{
  border-color: rgba(22,224,255,0.55);
  box-shadow:
    0 0 0 4px rgba(22,224,255,0.10),
    0 0 20px rgba(22,224,255,0.08);
}

.claimcheck__btn{
  height: 46px;
  padding: 0 16px;

  border-radius: 14px;
  border: 1px solid rgba(22,224,255,0.35);

  background: linear-gradient(
    180deg,
    rgba(22,224,255,0.18),
    rgba(22,224,255,0.06)
  );

  color: rgba(255,255,255,0.92);
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 1.6px;
  font-size: 12px;

  cursor: pointer;
}

.claimcheck__btn:hover{
  border-color: rgba(22,224,255,0.55);
  box-shadow:
    0 0 0 4px rgba(22,224,255,0.10),
    0 0 20px rgba(22,224,255,0.12);
  transform: translateY(-1px);
}

.claimcheck__btn:active{
  transform: translateY(0);
}

.claimcheck__msg{
  margin-top: 10px;
  height: 38px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);

  color: rgba(255,255,255,0.70);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 12px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px){
  .main{
    padding: 54px 14px 22px;
  }

  .unlock__panel{
    width: 100%;
    max-width: calc(100vw - 28px);
    padding: 20px 14px;
    border-radius: 16px;
  }

  /* Mobile: Button unter Slots */
  .unlock__form{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .code{
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    justify-content: space-between;
    gap: 5px;
  }

  .code__slot{
    height: 54px;
    border-radius: 12px;
    font-size: 20px;

    flex: 1 1 0;
    min-width: 36px;
    max-width: 44px;

    width: auto;
  }

  .unlock__btn{
    width: 100%;
  }

  .countdown,
  .unlock__flash,
  .attempts,
  .lock,
  .claim{
    max-width: 100%;
  }

  .toplist__head,
  .claimcheck__head{
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .toplist__time{
    font-size: 11px;
  }

  .claimcheck__form{
    grid-template-columns: 1fr;
  }

  .claimcheck__btn{
    width: 100%;
  }
}
