@font-face {
  font-family: "DIN Condensed";
  src:
    local("DIN Condensed Light"),
    local("DINCondensed-Light"),
    url("/fonts/DINCondensed-Light.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DIN Condensed";
  src: url("/fonts/DINCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #000000;
  --color-fg: #ffffff;
  --color-muted: #4b4b4b;
  --color-note: #888888;
  --color-border: #ffffff;
  --color-border-soft: rgba(255, 255, 255, 0.82);
  --color-border-dim: #555555;
  --color-surface-muted: #474747;
  --color-field-light: #d3d3d3;
  --color-field-dark: #2e2e2e;
  --color-card-title: #323232;
  --color-payment-submit: #3a3a3a;
  --color-payment-submit-text: #f5f5f5;
  --color-toast-bg: #050505;

  --font-main: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --font-din-condensed: "DIN Condensed", "D-DIN Condensed", "Arial Narrow", sans-serif;
  --color-card-title-box: #444444;

  --page-pad: 12px;
  --content-max: 640px;
  --payment-amount-width: 14em;

  --main-artboard-width: min(var(--content-max), calc(100vw - var(--page-pad) * 2));
  --main-form-width: 100%;
  --main-note-width: 100%;
  --main-note-small-width: min(520px, 100%);

  --logo-intro-size: 144px;
  --logo-header-size: 64px;
  --logo-card-size: 72px;
  --card-title-width: 58px;
  --card-title-box-bleed: 0px;
  --final-logo-size: 96px;
  --final-copy-width: min(380px, 100%);

  --ease-ui: ease;
}
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-main);
}

body {
  text-transform: none;
}

input,
button {
  font-family: inherit;
}

.page {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--color-bg);
}

.logo {
  display: block;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
}

.btn-outline {
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-fg);
  cursor: pointer;
  border-radius: 0;
}

.btn-outline:hover {
  filter: brightness(1.1);
}
.page-main {
  position: relative;
}

.intro-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  z-index: 10;
}

.intro-screen.is-hidden {
  display: none;
}

.logo-intro {
  width: var(--logo-intro-size);
  height: var(--logo-intro-size);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.4),
    0 0 28px rgba(255, 255, 255, 0.18);
}

.logo-header {
  width: var(--logo-header-size);
  height: var(--logo-header-size);
  margin: 0 auto 6px;
}

.main-screen {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--page-pad);
  overflow-x: hidden;
  overflow-y: auto;
}

.main-screen.is-active {
  display: flex;
}

.main-artboard {
  width: var(--main-artboard-width);
  height: auto;
  margin: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.absolution-block h2 {
  margin: 0 0 3px;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.absolution-list {
  list-style: none;
  margin: 0 auto 5px;
  padding: 6px 10px;
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--color-border-dim);
}

.absolution-list li {
  display: grid;
  grid-template-columns: 1em 1fr 1em;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.absolution-list li::before,
.absolution-list li::after {
  content: "";
  width: 0.38em;
  height: 0.38em;
  border-radius: 50%;
  background: currentColor;
  align-self: center;
}

.absolution-list li::before {
  justify-self: start;
}

.absolution-list li::after {
  justify-self: end;
}

.absolution-list li:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.85);
  outline-offset: 1px;
}

.absolution-list li.active:not(.others-line) {
  outline: 1px solid rgba(255, 255, 255, 0.65);
  outline-offset: 1px;
}

.absolution-list li.others-line {
  margin: 4px 0 0;
  line-height: 1;
}

.absolution-list li.others-line .others-box {
  display: inline-block;
  justify-self: center;
  min-width: 56px;
  border: 1px solid var(--color-border);
  padding: 0 8px;
  line-height: 1.1;
  text-align: center;
}

.absolution-list li.others-line.active .others-box {
  background: rgba(255, 255, 255, 0.08);
}

.steps {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 5px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  align-items: start;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.steps__item {
  display: block;
}

.steps__item--left {
  text-align: left;
  justify-self: start;
}

.steps__item--center {
  text-align: center;
  justify-self: center;
}

.steps__item--right {
  text-align: right;
  justify-self: end;
}

.main-form-wrap {
  width: var(--main-form-width);
  max-width: 100%;
  margin: 0 auto 6px;
  border: 1px solid var(--color-border-soft);
  padding: 6px 8px 5px;
}

.main-form {
  display: grid;
  gap: 5px;
}

.main-form input {
  display: block;
  width: 100%;
  height: 22px;
  margin: 0;
  border: 1px solid var(--color-border);
  padding: 0;
  background: transparent;
  color: var(--color-fg);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  border-radius: 0;
  outline: none;
  direction: ltr;
  caret-color: var(--color-fg);
  appearance: none;
}

.main-form input[name="summary"] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-form input::placeholder {
  color: var(--color-fg);
  opacity: 1;
}

.main-form input:-webkit-autofill,
.main-form input:-webkit-autofill:hover,
.main-form input:-webkit-autofill:focus,
.main-form input:autofill {
  -webkit-text-fill-color: var(--color-fg);
  caret-color: var(--color-fg);
  box-shadow: 0 0 0 1000px #000000 inset;
  transition: background-color 99999s ease-out;
}

.main-form input:focus::placeholder {
  color: transparent;
}

@supports (font: -apple-system-body) and (-webkit-appearance: none) and
  (not (-moz-appearance: none)) {
  .main-form input:focus:not(:placeholder-shown) {
    padding-left: 0;
    text-align: center;
  }
}

.main-form .btn-outline {
  width: 120px;
  height: 26px;
  margin: 0 auto;
  font-size: 11px;
  font-weight: 700;
}

.note {
  width: var(--main-note-width);
  max-width: 100%;
  margin: 0 auto 6px;
  font-size: 8px;
  line-height: 1.6;
  text-transform: uppercase;
  text-align: justify;
  text-align-last: justify;
  color: var(--color-note);
}

.note--small {
  width: var(--main-note-small-width);
  max-width: 100%;
  margin-bottom: 6px;
  font-size: 8px;
  line-height: 1.5;
  text-transform: none;
  text-align: justify;
  text-align-last: justify;
  color: var(--color-fg);
}

.confirm-btn {
  display: block;
  width: 80px;
  height: 26px;
  margin: 0 auto 16px;
  font-size: 11px;
  font-weight: 700;
}
.page-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.payment-screen {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--page-pad) 0;
}

.payment-artboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: calc(100% - 32px);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 0;
  box-sizing: border-box;
}

.payment-amounts {
  display: flex;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
}

.payment-amounts-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  font-size: 16px;
}

.payment-amount-block {
  width: 100%;
}

.payment-amount-block .pay-amount-line--label {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 15px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: normal;
}

.payment-amount-block .pay-amount-line--label span {
  flex-shrink: 0;
}

.payment-amount-block .pay-figure {
  display: block;
  margin: 2px 0 0;
  white-space: nowrap;
  font-size: 1em;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.payment-amount-block--muted .pay-amount-line--label,
.payment-amount-block--muted .pay-figure {
  color: var(--color-surface-muted);
}

.pay-label,
.pay-figure {
  margin: 0;
}

.pay-label {
  font-size: 11px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pay-label--muted {
  color: var(--color-surface-muted);
}

.pay-figure {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pay-figure--muted {
  color: var(--color-surface-muted);
}

.payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 16px 16px 14px;
  border: 1px solid #d8d8d8;
  background: var(--color-bg);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.55),
    0 0 32px rgba(255, 255, 255, 0.14);
}

.payment-card .payment-form {
  align-self: stretch;
  width: 100%;
}

.logo-card {
  width: var(--logo-card-size);
  height: var(--logo-card-size);
  margin: 0 auto 8px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.card-title {
  display: grid;
  gap: 1px;
  width: min(var(--card-title-width), 100%);
  min-width: min(var(--card-title-width), 100%);
  max-width: min(var(--card-title-width), 100%);
  margin: 0 auto 10px;
  box-sizing: border-box;
  font-family: var(--font-din-condensed);
  font-size: 15px;
  font-weight: 100;
  line-height: 0.85;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.card-title__line:first-child {
  font-size: 14px;
}

.card-title__line {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--color-card-title-box);
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.card-title__line--boxed {
  display: flex;
  align-items: center;
  width: calc(100% + var(--card-title-box-bleed));
  margin-left: calc(var(--card-title-box-bleed) / -2);
  padding: 0;
  line-height: 0.8;
  background: var(--color-card-title-box);
  color: var(--color-bg);
}

.card-title__chars {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  transform: translateY(1px);
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field {
  width: 100%;
  height: 22px;
  border: none;
  padding: 0 6px 1px;
  font-size: 11px;
  line-height: 22px;
  outline: none;
  appearance: none;
}

.field::placeholder {
  line-height: 22px;
  opacity: 1;
}

.field--light {
  background: var(--color-field-light);
  color: #151515;
}

.field--dark {
  background: var(--color-field-dark);
  color: var(--color-fg);
}

.field--stripe {
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 1px;
  overflow: hidden;
}

.field--stripe > div,
.field--stripe .StripeElement,
.field--stripe .__PrivateStripeElement {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}

.field--stripe iframe {
  width: 100% !important;
}

.payment-stripe-error {
  margin: 0;
  padding: 8px 0;
  font-size: 9px;
  line-height: 1.4;
  color: var(--color-note);
  text-align: center;
}

.payment-stripe-error code {
  font-size: inherit;
}

.payment-submit {
  width: 100px;
  height: 22px;
  margin: 4px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  border: 1px solid var(--color-border-dim);
  background: var(--color-payment-submit);
  font-size: 9px;
  font-weight: 500;
  color: var(--color-payment-submit-text);
  cursor: pointer;
  border-radius: 0;
}

.payment-submit:hover:not(:disabled) {
  filter: brightness(1.1);
}

.payment-days {
  text-align: center;
}

.payment-days .pay-label {
  font-size: 15px;
}

.pay-figure--days {
  margin-top: 4px;
  font-size: 16px;
}
.page-final {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.final-screen {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--page-pad) 0;
  overflow: visible;
}

.final-artboard {
  width: calc(100% - 32px);
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 42px;
  border: 1px solid var(--color-border);
  box-sizing: border-box;
}

.final-top-logo {
  width: var(--final-logo-size);
  height: var(--final-logo-size);
  margin: 0 auto 14px;
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.5),
    0 0 36px rgba(255, 255, 255, 0.1);
}

.final-heading-wrap h1,
.final-heading-wrap h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
}

.delegacy-box {
  width: min(180px, 100%);
  height: auto;
  margin: 8px auto;
  border: 1px solid var(--color-border);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.final-copy {
  width: 340px;
  max-width: 100%;
  margin: 14px auto 0;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-word;
}

.final-copy p {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-word;
}

.final-copy #budgetInput {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10ch;
  min-width: 10ch;
  height: 22px;
  margin-left: 4px;
  padding: 0 4px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-fg);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.mission-line {
  margin: 16px 0 8px;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.action-buttons {
  width: 120px;
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.action-buttons .btn-outline {
  height: 28px;
  font-size: 12px;
}

.final-slogan {
  margin: 24px 0 0;
  font-size: 13px;
  font-weight: 400;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 100;
  transform: translateX(-50%);
  max-width: min(92vw, 340px);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  border: 1px solid var(--color-border);
  background: var(--color-toast-bg);
  color: var(--color-fg);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.22),
    0 0 24px rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-ui);
}

.notice-panel {
  width: min(340px, 92vw);
  padding: 18px 18px 16px;
  text-align: center;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.22),
    0 0 24px rgba(255, 255, 255, 0.08);
}

.notice-text {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--color-fg);
  white-space: pre-line;
}

.notice-close {
  width: 140px;
  height: 36px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.toast--error {
  color: #d6b15e;
  border-color: var(--color-border-soft);
  box-shadow:
    0 0 8px rgba(214, 177, 94, 0.18),
    0 0 20px rgba(255, 255, 255, 0.06);
}

.toast.is-visible {
  opacity: 1;
}

.page-receipt {
  min-height: 100vh;
}

.receipt-screen {
  --receipt-max-width: 400px;

  min-height: 100vh;
  padding: 24px 12px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--color-bg);
  color: var(--color-fg);
}

.receipt-status-block {
  width: min(var(--receipt-max-width), calc(100vw - 32px));
  margin: 0 auto 14px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.receipt-status {
  width: min(var(--receipt-max-width), calc(100vw - 32px));
  margin: 0 auto;
  flex-shrink: 0;
  color: #d8d8d8;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

.receipt-status-block .receipt-status {
  width: 100%;
  margin: 0;
}

.receipt-status--warning {
  color: #d6b15e;
  font-weight: 600;
}

.receipt-body {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.receipt-capture {
  --receipt-copy-width: 100%;

  padding: 28px;
  background: #000000;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
}

/* Frame is for on-page display only; drop it when capturing the receipt image. */
.receipt-capture--export {
  border: none;
}

.receipt-card {
  width: min(var(--receipt-max-width), calc(100vw - 32px));
  padding: 20px 26px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000000;
  color: #f2f2f2;
  font-family: var(--font-main);
  text-align: center;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.receipt-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.45));
}

.receipt-capture--export .receipt-logo {
  filter: none;
}

.receipt-motto {
  margin: 0 0 26px;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
  text-decoration: underline;
}

.receipt-copy {
  width: var(--receipt-copy-width, 100%);
  margin: 0 auto 16px;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-word;
}

.receipt-copy p {
  margin: 0;
  color: #cfcfcf;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-word;
}

.receipt-copy span {
  text-decoration: underline;
}

.receipt-days {
  margin: 14px 0 16px;
  color: #f5f5f5;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
}

.receipt-copy--second {
  margin-bottom: 20px;
}

.receipt-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 34px;
  margin: 0 0 28px;
  padding: 0 18px;
  border: 1px solid var(--color-border);
  background: var(--color-payment-submit);
  color: var(--color-payment-submit-text);
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
}

.receipt-support-btn:hover {
  filter: brightness(1.1);
}

.receipt-footer {
  margin: 0;
  color: #777777;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
  text-decoration: underline;
}

.receipt-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.receipt-download {
  min-width: 108px;
  height: 32px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-fg);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

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

/* Support share panel (receipt page) */
.support-widget {
  position: relative;
  z-index: 40;
}

.support-overlay {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.72);
}

.support-overlay[hidden] {
  display: none;
}

body.support-open {
  overflow: hidden;
}

.support-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(248px, 100%);
}

.support-panel__frame {
  position: relative;
  width: 100%;
}

.support-panel__close {
  position: absolute;
  top: -4px;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.support-panel__close:hover {
  opacity: 0.8;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  padding-top: 22px;
}

.support-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--support-brand);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.15s var(--ease-ui), filter 0.15s var(--ease-ui);
}

.support-grid__item:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
}
