:root {
  --bg-a: #07040d;
  --bg-b: #130a1d;
  --bg-c: #1b0c24;
  --panel: rgba(22, 16, 34, 0.78);
  --panel-2: rgba(29, 20, 44, 0.8);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f5f0ff;
  --muted: #c3b6dd;
  --muted-2: #9f93ba;
  --accent: #d946ef;
  --accent-2: #8b5cf6;
  --accent-3: #22d3ee;
  --ok: #6ef3a3;
  --danger: #ff7f9f;
  --warn-bg: rgba(255, 214, 102, 0.1);
  --warn-line: rgba(255, 214, 102, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 35px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(217, 70, 239, 0.18), transparent 36%),
    radial-gradient(circle at 84% 18%, rgba(34, 211, 238, 0.12), transparent 34%),
    radial-gradient(circle at 50% 110%, rgba(139, 92, 246, 0.2), transparent 45%),
    linear-gradient(180deg, var(--bg-a), var(--bg-b) 44%, var(--bg-c));
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  background: url("./assets/background.png") center / cover no-repeat;
  filter: saturate(0.8) contrast(1.05);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 100%);
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
}

.bg-shape-a {
  width: 380px;
  height: 380px;
  top: -80px;
  left: -120px;
  opacity: 0.28;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.95), rgba(139, 92, 246, 0.25) 62%, transparent 75%);
}

.bg-shape-b {
  width: 340px;
  height: 340px;
  right: -90px;
  top: 140px;
  opacity: 0.22;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.95), rgba(34, 211, 238, 0.2) 64%, transparent 78%);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 12px 6px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(15, 10, 24, 0.74);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-lockup {
  display: grid;
  gap: 2px;
}

.brand-tag {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f7c5ff;
  font-weight: 700;
}

.brand-title {
  margin: 0;
  font-family: "Monoton", cursive;
  color: #fff;
  font-size: clamp(1.05rem, 1.35vw + 0.7rem, 1.6rem);
  letter-spacing: 0.03em;
  text-shadow: 0 0 16px rgba(217, 70, 239, 0.35);
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(60px, 2.2vw, 60px);
  max-width: min(220px, 65vw);
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.25));
}

.brand-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #efe8ff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d946ef, #8b5cf6);
  box-shadow: 0 0 8px rgba(217, 70, 239, 0.7);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(390px, 1.08fr);
  gap: 10px;
  align-items: start;
  flex: 1 1 auto;
  min-height: 0;
}

.banner-card,
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.banner-card {
  max-height: 100%;
  min-height: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(217, 70, 239, 0.22), transparent 58%),
    radial-gradient(circle at 84% 85%, rgba(34, 211, 238, 0.14), transparent 52%),
    rgba(17, 12, 28, 0.86);
}

.banner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.12), transparent 30%, rgba(34, 211, 238, 0.08));
  z-index: 0;
}

.banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 -40px 80px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.banner-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1082 / 1035;
  display: block;
  object-fit: cover;
  object-position: center top;
  padding: 8px 8px 0;
  filter: saturate(1.06) contrast(1.03);
}

.banner-overlay {
  position: relative;
  z-index: 3;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 8px 10px 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(180deg, rgba(13, 9, 19, 0.4), rgba(13, 9, 19, 0.84)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-height: none;
  overflow: visible;
}

.banner-kicker {
  margin: 0 0 6px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f4c6ff;
  font-weight: 700;
}

.banner-overlay h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.banner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.banner-tags span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #f3edff;
  font-size: 0.7rem;
  font-weight: 700;
}

.banner-overlay p:last-child {
  margin: 0;
  color: #ddd1f7;
  line-height: 1.36;
  font-size: 0.86rem;
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--panel);
  padding: 16px;
}

.form-card {
  max-height: 100%;
  overflow: auto;
  scrollbar-width: none;
}

.form-card::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9333ea, #db2777, #22d3ee);
  background-size: 200% auto;
  animation: glowMove 6s linear infinite;
}

@keyframes glowMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: #f2c4ff;
  font-weight: 800;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2.05rem);
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.015em;
}

.intro {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.intro-small {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.42;
  font-size: 0.88rem;
}

.muted {
  color: var(--muted);
}

strong {
  color: #fff;
}

code,
pre {
  font-family: Consolas, "Courier New", monospace;
}

code {
  color: #ffe4ff;
}

.note {
  margin-bottom: 8px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--warn-line);
  background: linear-gradient(180deg, rgba(255, 214, 102, 0.08), rgba(255, 214, 102, 0.02)), var(--warn-bg);
  color: #f7e7bc;
  line-height: 1.38;
  font-size: 0.9rem;
}

.note code {
  color: #fff0c7;
}

.status-line {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--muted-2);
}

.status-line code {
  color: #e9e2ff;
}

hr {
  border: 0;
  height: 1px;
  margin: 10px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

form {
  display: grid;
  gap: 8px;
}

.gift-form {
  grid-template-columns: 1.25fr 1fr;
  align-items: end;
}

.gift-form .btn {
  grid-column: 1 / -1;
}

.status-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #ece4ff;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

input::placeholder {
  color: #b8aed4;
}

select option {
  color: #fff;
  background: #1a1327;
}

input:focus,
select:focus {
  border-color: rgba(217, 70, 239, 0.58);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(217, 70, 239, 0.12);
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    opacity 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

.btn.primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, #9333ea, #db2777);
  box-shadow:
    0 8px 22px rgba(217, 70, 239, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn.primary:hover {
  box-shadow:
    0 10px 28px rgba(217, 70, 239, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn.ghost {
  color: #f1e9ff;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn.ghost:hover {
  border-color: rgba(217, 70, 239, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.response-panel,
.status-panel {
  margin-top: 6px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.015);
}

.status-panel {
  margin-top: 2px;
}

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

.response-header h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
}

pre {
  margin: 8px 0 0;
  min-height: 74px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 10% 10%, rgba(217, 70, 239, 0.08), transparent 45%),
    #120d1b;
  color: #ffe8ff;
  padding: 10px 11px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.status-result {
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  padding: 9px 11px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.status-result.ok,
.status-line.ok,
.ok {
  color: var(--ok);
}

.status-result.error,
.status-line.error,
.error {
  color: var(--danger);
}

.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px 8px;
  text-align: center;
  color: #bdb1d7;
  font-size: 0.82rem;
  line-height: 1.45;
}

.footer-left + .footer-left {
  margin-top: 2px;
}

@media (max-width: 1100px) {
  body {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .page-grid {
    grid-template-columns: 1fr;
    flex: 0 0 auto;
  }

  .banner-card {
    aspect-ratio: 1082 / 1035;
    min-height: 0;
    max-height: none;
  }

  .form-card {
    max-height: none;
    overflow: visible;
  }

  .banner-image {
    padding: 6px 6px 0;
  }

  .banner-overlay {
    margin: 6px 8px 8px;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 8px 8px 4px;
  }

  .site-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 12px;
  }

  .chip-row {
    justify-content: flex-start;
  }

  .page-grid {
    gap: 8px;
  }

  .banner-card,
  .card {
    border-radius: 14px;
  }

  .card {
    padding: 12px;
  }

  .gift-form,
  .status-form {
    grid-template-columns: 1fr;
  }

  .banner-overlay {
    padding: 10px 11px;
  }

  .banner-overlay h2 {
    font-size: 1.02rem;
  }

  .banner-overlay p:last-child {
    font-size: 0.8rem;
  }

  .response-panel,
  .status-panel {
    padding: 9px;
  }

  pre {
    min-height: 70px;
    font-size: 0.86rem;
  }

  .site-footer {
    font-size: 0.76rem;
    padding: 0 8px 6px;
  }
}
