* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at center, #242424 0%, #111 55%, #070707 100%);
  color: #e8e1d1;
  font-family: "Courier New", monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.container {
  width: 100%;
  max-width: 850px;
  text-align: center;
}

.classified {
  display: inline-block;
  color: #b3261e;
  border: 3px solid #b3261e;
  padding: 8px 18px;
  margin-bottom: 25px;
  font-weight: bold;
  letter-spacing: 4px;
  transform: rotate(-2deg);
  text-transform: uppercase;
}

h1 {
  font-size: clamp(55px, 10vw, 100px);
  letter-spacing: 12px;
  color: #f0eadc;
  margin-bottom: 5px;
}

.tagline {
  color: #aaa;
  font-size: 18px;
  margin-bottom: 35px;
}

.countdown {
  display: inline-block;
  margin: 25px 0 22px;
  padding: 14px 24px;

  color: #ff3b30;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 3px;

  border-top: 2px solid #b3261e;
  border-bottom: 2px solid #b3261e;

  text-shadow: 0 0 18px rgba(255, 59, 48, 0.35);
}

button {
  font-family: "Courier New", monospace;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  border: none;
}

#generateBtn {
  background: #b3261e;
  color: white;
  padding: 18px 35px;
  font-size: 18px;
  border: 2px solid #d9d2c3;
  box-shadow: 6px 6px 0 #000;
  transition: 0.15s ease;
}

#generateBtn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 #000;
}

.case-file {
  position: relative;
  margin-top: 45px;
  background: #d9d0b8;
  color: #171717;
  padding: 40px;
  text-align: left;
  border: 1px solid #888;
  box-shadow: 12px 15px 30px rgba(0, 0, 0, 0.55);
  transform: rotate(-0.5deg);
}

.case-file::before {
  content: "CONFIDENTIAL";
  position: absolute;
  top: 12px;
  right: 20px;
  color: rgba(160, 25, 20, 0.25);
  font-size: 24px;
  font-weight: bold;
  transform: rotate(8deg);
}

.case-title {
  font-size: 30px;
  margin-bottom: 25px;
  border-bottom: 2px solid #222;
  padding-bottom: 12px;
}

.case-row {
  margin: 12px 0;
  font-size: 16px;
}

.case-label {
  font-weight: bold;
}

.alibi-text {
  margin-top: 30px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.3);
  border-left: 5px solid #222;
  font-size: 21px;
  line-height: 1.5;
}

.stamp {
  width: fit-content;
  margin: 30px auto 10px;
  color: #a51e18;
  border: 5px solid #a51e18;
  padding: 10px 20px;
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 4px;
  transform: rotate(-8deg);
  text-transform: uppercase;
}

.actions {
  margin-top: 25px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.actions button {
  padding: 12px 18px;
  background: #171717;
  color: #eee;
  border: 1px solid #555;
}

.hidden {
  display: none;
}

.footer {
  margin-top: 40px;
  color: #666;
  font-size: 12px;
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  body {
    padding: 15px;
  }

  h1 {
    letter-spacing: 6px;
  }

  .case-file {
    padding: 25px 20px;
  }

  .alibi-text {
    font-size: 17px;
  }
}

@keyframes stampHit {
  0% {
    transform: translateY(-180px) scale(3) rotate(-8deg);
    opacity: 0;
  }

  55% {
    transform: translateY(15px) scale(0.85) rotate(-8deg);
    opacity: 1;
  }

  75% {
    transform: translateY(-8px) scale(1.15) rotate(-8deg);
  }

  100% {
    transform: translateY(0) scale(1) rotate(-8deg);
    opacity: 1;
  }
}

.release-message {
  margin: -8px auto 32px;
  color: #e8e1d1;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 2px;
  font-weight: bold;
  text-transform: uppercase;
}

.release-message::first-line {
  color: #8f8f8f;
}

#writeOwnBtn {
  margin-left: 10px;
  background: #a51e18;
  color: #e8e1d1;
  padding: 18px 35px;
  font-size: 18px;
  border: 2px solid #777;
  transition: 0.15s ease;
}

#writeOwnBtn:hover {
  border-color: #b3261e;
  color: #fff;
}

#ownAlibiBox {
  max-width: 650px;
  margin: 25px auto 0;
  padding: 20px;
  border: 1px solid #555;
  background: #111;
}

#ownAlibiInput {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 15px;

  background: #d9d0b8;
  color: #171717;

  border: none;
  outline: none;

  font-family: "Courier New", monospace;
  font-size: 17px;
  line-height: 1.5;
}

#submitOwnAlibiBtn {
  margin-top: 15px;
  background: #b3261e;
  color: white;
  padding: 14px 25px;
  border: 2px solid #d9d2c3;
}
/* =========================
   OFFICIAL CASE FILE
========================= */

.case-file {
  position: relative;
  margin-top: 45px;
  background: #eee9dc;
  color: #161616;
  padding: 42px;
  text-align: left;
  border: 1px solid #8b877d;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  transform: rotate(-0.25deg);
  overflow: hidden;
}

.case-file::before {
  content: "RESTRICTED";
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
  font-size: 90px;
  font-weight: 900;
  letter-spacing: 10px;
  color: rgba(120, 20, 20, 0.045);
  pointer-events: none;
  white-space: nowrap;
}

.doc-header {
  position: relative;
  padding-bottom: 16px;
  border-bottom: 3px solid #1d1d1d;
  margin-bottom: 24px;
}

.doc-agency {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 3px;
}

.doc-office {
  margin-top: 4px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
}

.doc-classification {
  margin-top: 12px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: #8f211b;
}

.doc-title {
  padding: 11px 0;
  margin-bottom: 20px;
  border-top: 1px solid #777;
  border-bottom: 1px solid #777;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
}

.doc-meta {
  border-top: 1px solid #6f6c65;
  margin-bottom: 26px;
}

.meta-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 9px 4px;
  border-bottom: 1px solid #aaa69c;
  font-size: 14px;
}

.meta-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  color: #4b4944;
}

.doc-section-title {
  margin-top: 27px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: #1c1c1c;
  color: #eee9dc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.alibi-text {
  margin-top: 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid #9a968c;
  border-left: 6px solid #1d1d1d;
  font-size: 20px;
  line-height: 1.55;
  font-weight: bold;
}

.authorization-text {
  padding: 8px 2px 20px;
  max-width: 620px;
  font-size: 13px;
  line-height: 1.6;
  color: #3e3c38;
}

.authorization-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid #777;
}

.auth-value {
  margin-top: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid #4f4d48;
  font-size: 15px;
  font-weight: bold;
}

.stamp {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin: 35px 0 22px;
  color: #9d211b;
  border: 6px double #9d211b;
  padding: 10px 23px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 5px;
  transform: rotate(-8deg);
  text-transform: uppercase;
  opacity: 0.92;
}

.doc-footer {
  margin-top: 28px;
  padding-top: 11px;
  border-top: 2px solid #1d1d1d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
}

.actions {
  margin-top: 30px;
}

@media (max-width: 600px) {
  .case-file {
    padding: 25px 18px;
  }

  .meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .authorization-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .case-file::before {
    font-size: 55px;
  }
}
.auth-title {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #66625b;
  text-transform: uppercase;
}

.authorization-grid .auth-value {
  font-family: "Courier New", monospace;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
}
/* =========================
   ALIBI REQUEST FORM
========================= */

#ownAlibiBox {
  max-width: 720px;
  margin: 30px auto 0;
  padding: 32px;
  background: #eee9dc;
  color: #161616;
  border: 1px solid #8b877d;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.request-form-header {
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 3px solid #1d1d1d;
}

.request-form-number {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #8f211b;
}

.request-form-title {
  margin-top: 6px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 2px;
}

.request-form-subtitle {
  margin-top: 5px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: #5d5a54;
}

.request-field {
  margin-bottom: 22px;
}

.request-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

#ownObligationInput,
#ownAlibiInput {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.45);
  color: #171717;
  border: 1px solid #8d897f;
  outline: none;
  font-family: "Courier New", monospace;
  font-size: 15px;
}

#ownObligationInput {
  height: 48px;
}

#ownAlibiInput {
  min-height: 115px;
  resize: vertical;
  line-height: 1.5;
}

#ownObligationInput:focus,
#ownAlibiInput:focus {
  border-color: #8f211b;
  box-shadow: inset 0 0 0 1px #8f211b;
}

.request-warning {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #aaa69c;
  background: rgba(0, 0, 0, 0.035);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.6px;
}

.request-certification {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #777;
  font-size: 11px;
  line-height: 1.6;
  font-style: italic;
}

#submitOwnAlibiBtn {
  display: block;
  margin: 24px auto 0;
  background: #8f211b;
  color: #fff;
  padding: 14px 26px;
  border: 2px solid #1d1d1d;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
}

#submitOwnAlibiBtn:hover {
  transform: translateY(-1px);
}

/* =========================
   APPROVED STAMP LAYOUT
========================= */

.stamp-area {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 45px 20px 35px;
  overflow: visible;
}

/* Downloaded case file — same for automatic and custom alibis */
.case-file.download-mode .stamp-area {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 18px 20px 35px !important;
  margin: 0 !important;

  overflow: visible;
}

.case-file.download-mode .stamp {
  display: inline-block;

  width: auto !important;
  max-width: none !important;
  margin: 0 !important;

 font-size: 42px;
padding: 14px 28px;
letter-spacing: 3px;

  color: #a51e18 !important;
  border-color: #a51e18 !important;
  opacity: 1 !important;

  white-space: nowrap;

  transform: rotate(-6deg);
  transform-origin: center;
}

.t-countdown {
  margin: -8px auto 28px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #b3261e;
  text-transform: uppercase;
}

.about-alibi {
  max-width: 760px;
  margin: 50px auto 45px;
  padding: 0 24px;
  text-align: center;
}

.about-alibi h2 {
  margin: 0 0 22px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.about-alibi p {
  margin: 0 auto 16px;
  font-size: 17px;
  line-height: 1.7;
}

.about-alibi .no-questions {
  margin-top: 24px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 3px;
  color: #a51e18;
  text-transform: uppercase;
}

.contract-label {
  margin-bottom: 18px;
}

.contract-section {
  margin-top: 70px !important;
  padding-top: 10px;
}

.contract-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.buy-alibi-row {
  display: block;
  padding-top: 40px;
}


.token-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.token-links a {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid #777;
  color: #e8e1d1;
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.token-links a:hover {
  border-color: #b3261e;
  color: #fff;
}

.zelnick-quote {
  display: block;
  margin: 40px auto 35px;
  padding: 24px;
  max-width: 650px;
  border-top: 1px solid #555;
  border-bottom: 1px solid #555;
}

.quote-label {
  color: #b3261e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.zelnick-quote blockquote {
  margin: 0 0 16px;
  color: #e8e1d1;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.6;
}

.quote-author {
  color: #aaa;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.quote-source {
  color: #b3261e;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
}

.quote-source:hover {
  text-decoration: underline;
}

.zelnick-quote {
  display: block;
  max-width: 650px;
  margin: 40px auto 35px;
  padding: 24px 20px;
  border-top: 1px solid #555;
  border-bottom: 1px solid #555;
  text-align: center;
}

.quote-label {
  margin-bottom: 16px;
  color: #b3261e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.zelnick-quote blockquote {
  margin: 0 0 14px;
  color: #e8e1d1;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.55;
}

.quote-author {
  margin-bottom: 10px;
  color: #aaa;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
}

.quote-source {
  color: #b3261e;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
}

.quote-source:hover {
  text-decoration: underline;
}

.buy-alibi-btn {
  display: inline-block;
  padding: 16px 32px;

  background: #b3261e;
  color: #fff;

  border: 2px solid #d9d2c3;
  box-shadow: 5px 5px 0 #000;

  font-family: "Courier New", monospace;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;

  transition: 0.15s ease;
}

.buy-alibi-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #000;
}

.contract-section {
  margin-top: 70px !important;
  padding: 28px 30px 26px;

  border: 1px solid #555;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.02);
}

.contract-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;

  padding: 16px 18px;
  border: 1px solid #555;
  border-radius: 12px;
}

.disclaimer {
  max-width: 700px;
  margin: 60px auto 25px;
  color: #777;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

.disclaimer strong {
  font-size: 10px;
  color: #999;
}

.disclaimer p {
  margin-top: 10px;
}
#writeOwnBtn:hover {
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .case-file.download-mode .stamp {
    font-size: 38px !important;
    padding: 12px 22px !important;
    letter-spacing: 4px !important;
    max-width: calc(100% - 30px) !important;
    box-sizing: border-box;
  }
}
