:root {
  color-scheme: dark;
  --bg: #101014;
  --card: #1a1a21;
  --line: #393942;
  --fg: #f7f5f6;
  --muted: #b3afb8;
  --pink: #ff5387;
  --mint: #88e5df;
  font:
    16px/1.6 "Source Sans 3",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  border-bottom: 1px solid var(--line);
  background: #15151a;
}
.head,
main {
  max-width: 1160px;
  margin: auto;
  padding: 0 36px;
}
.head {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 800;
}
.brand small {
  font: 600 10px/1.3 monospace;
  letter-spacing: 2px;
  max-width: 60px;
  color: var(--muted);
}
.mark {
  display: grid;
  place-items: center;
  font-size: 26px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--pink);
  color: #24101c;
  box-shadow: 3px 3px 0 var(--mint);
}
.badge,
.pill {
  font-size: 13px;
  color: var(--mint);
  border: 1px solid #365856;
  background: #192a2a;
  border-radius: 99px;
  padding: 3px 10px;
  white-space: nowrap;
}
.head nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.head nav a,
.head nav button {
  font-size: 14px;
}
.head nav a:hover,
a.link:hover {
  color: var(--mint);
}
main {
  padding-top: 46px;
  padding-bottom: 96px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(32px, 5vw, 55px);
  line-height: 1.24;
  letter-spacing: -0.055em;
}
h2 {
  font-size: 24px;
  line-height: 1.4;
}
h3 {
  font-size: 18px;
}
.intro {
  margin-bottom: 27px;
}
.intro p,
.muted,
small {
  color: var(--muted);
}
.intro p {
  margin-top: 9px;
}
.section {
  margin: 28px 0 14px;
}
.grid,
.cols {
  display: grid;
  gap: 18px;
}
.grid {
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
}
.cols {
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.85fr);
  align-items: start;
}
.card,
dialog {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  min-width: 0;
}
.offer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #251b27, #1b1920 82%);
  border-top: 3px solid var(--pink);
}
.offer:nth-child(even) {
  border-top-color: var(--mint);
  background: linear-gradient(115deg, #19282a, #171d21 82%);
}
.price {
  font-size: 44px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.05em;
  margin: 12px 0 18px;
}
.price small {
  font-size: 16px;
  margin-right: 4px;
}
.terms {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.terms span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #e3dde2;
  font-size: 14px;
}
.offer .foot {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
}
.stack {
  display: grid;
  gap: 16px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.field {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.field small {
  font-weight: 400;
}
input:not([type="checkbox"]),
textarea,
select {
  background: #111116;
  color: var(--fg);
  border: 1px solid #45434f;
  border-radius: 9px;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
  font: inherit;
}
input[type="checkbox"] {
  accent-color: var(--pink);
  width: 20px;
  height: 20px;
  flex: none;
}
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--pink);
  color: #210d15;
  border-radius: 9px;
  padding: 10px 16px;
  line-height: 1.5;
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  min-height: 44px;
}
.secondary,
.head button {
  color: var(--fg);
  background: #27262f;
  border: 1px solid var(--line);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
.link {
  color: var(--mint);
  font-weight: 650;
}
.list {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
}
.person,
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.person input {
  margin-left: auto;
}
.avatar {
  border-radius: 50%;
  background: #412b3a;
  color: #ffc3d6;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}
.person:nth-child(3n) .avatar {
  background: #233d40;
  color: var(--mint);
}
.person:has(:checked) {
  border-color: var(--pink);
  background: #2a1e28;
}
.sticky {
  position: sticky;
  top: 16px;
}
.line {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.tiny {
  font: 13px/1.5 monospace;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.qr {
  width: 215px;
  max-width: 100%;
  image-rendering: pixelated;
  background: white;
  padding: 6px;
  border-radius: 10px;
}
.narrow {
  max-width: 580px;
}
.formrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.formrow > * {
  min-width: 0;
}
dialog {
  color: var(--fg);
  width: min(540px, 94vw);
  max-height: 86vh;
  overflow: auto;
}
dialog::backdrop {
  background: #050509bc;
}
dialog > #close {
  margin-top: 16px;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 92vw;
  background: #f7e3ea;
  color: #32142a;
  padding: 12px 20px;
  border-radius: 12px;
  z-index: 10;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 10px 6px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-size: 14px;
}
.tablewrap {
  overflow: auto;
}
.hero {
  padding: 32px;
  background: linear-gradient(115deg, #2d1e2c, #1c1d27 74%);
  border-radius: 20px;
  border: 1px solid #473344;
  margin-bottom: 28px;
}
.hero .pill {
  display: inline-block;
  margin-bottom: 16px;
}
.hero p {
  color: var(--muted);
  margin-top: 12px;
}
.meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}
.meta dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.meta dt {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 740px) {
  .head,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .head {
    min-height: 62px;
    gap: 8px;
  }
  .brand {
    font-size: 20px;
    gap: 8px;
  }
  .brand small {
    display: none;
  }
  .head nav {
    gap: 10px;
  }
  .head nav a,
  .head nav button {
    font-size: 13px;
  }
  .mark {
    width: 29px;
    height: 29px;
    font-size: 20px;
  }
  .badge {
    font-size: 11px;
    padding: 2px 6px;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .card,
  dialog,
  .hero {
    padding: 17px;
  }
  .sticky {
    position: static;
  }
  main {
    padding-top: 25px;
    padding-bottom: calc(115px + env(safe-area-inset-bottom));
  }
  .mobilebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #19191ff7;
    border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .list {
    max-height: 340px;
  }
  #notice {
    bottom: 86px;
  }
  .tablewrap table,
  .tablewrap tbody,
  .tablewrap tr,
  .tablewrap td {
    display: block;
  }
  .tablewrap thead {
    display: none;
  }
  .tablewrap tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px;
  }
  .tablewrap td {
    border: 0;
    padding: 3px 6px;
  }
  .formrow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    margin-bottom: 18px;
  }
}
@media (max-width: 370px) {
  .head {
    flex-wrap: wrap;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .head nav {
    gap: 6px;
  }
  .head button {
    padding: 4px;
  }
  .formrow {
    grid-template-columns: 1fr;
  }
}
