@font-face {
  font-family: "Site Brush";
  src: url("title.ttf") format("truetype");
  font-display: swap;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  background: #383842;
  text-align: center;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(var(--shade), var(--shade)), url("sunset.webp") 58% center / cover no-repeat;
  --shade: rgb(20 17 27 / 27%);
}
main { width: min(100%, 900px); padding: clamp(24px, 3.8vh, 40px) 16px 30px; }
h1, h2, p { margin: 0; }
h1 {
  font: 400 clamp(56px, 5.3vw, 98px)/1.12 "Site Brush", KaiTi, serif;
  color: #ff925b;
  text-shadow: 0 2px 8px #2b182980;
}
.bookmark { margin-top: clamp(20px, 4.2vh, 40px); font-size: clamp(18px, 1.45vw, 26px); }
kbd { font: inherit; }
.mobile-tip { display: none; }
nav {
  display: grid;
  justify-items: center;
  gap: clamp(15px, 3.1vh, 30px);
  margin: clamp(22px, 3.8vh, 38px) auto 0;
}
.entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(46px, 5.8vh, 56px);
  padding: 8px 26px;
  border: 2px solid rgb(255 255 255 / 36%);
  border-radius: 40px;
  background: rgb(35 31 43 / 25%);
  color: #fff;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.3;
  font-size: clamp(18px, 1.3vw, 24px);
  letter-spacing: .05em;
  text-decoration: none;
  cursor: pointer;
}
.entry:hover { background: #3a3349bd; border-color: #fff; }
:focus-visible { outline: 3px solid #ffcf83; outline-offset: 4px; }
.contacts { margin-top: clamp(18px, 2.6vh, 26px); }
.contacts h2 { color: #d4fa48; font-size: clamp(19px, 1.45vw, 26px); line-height: 1.5; text-shadow: 0 1px 4px #21231e; }
.codes { display: flex; justify-content: center; gap: 14px; margin-top: clamp(22px, 3.6vh, 36px); }
.code {
  display: block;
  width: clamp(116px, 6.5vw, 132px);
  padding: 4px;
  background: #fff;
  color: #236b50;
  text-decoration: none;
}
.code + .code { color: #3f548b; }
.code img { display: block; width: 100%; height: auto; }
.code span { display: block; font-size: 16px; font-weight: 700; line-height: 1.65; }
footer { margin-top: auto; padding: 16px 12px clamp(16px, 3vh, 30px); font-size: 14px; color: #f4f1ec; text-shadow: 0 1px 4px #16121c; }
dialog { width: min(400px, calc(100% - 32px)); max-height: 90svh; padding: 20px; border: 0; border-radius: 14px; color: #2c2931; text-align: left; }
dialog::backdrop { background: #16121cc9; }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-bar h2 { font-size: 21px; }
.close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3eff0; font-size: 26px; cursor: pointer; }
dialog p { margin: 12px 0 6px; line-height: 1.65; }
#large-code { display: block; width: 100%; height: auto; margin-top: 12px; }
#large-code[hidden] { display: none; }
@media (max-width: 650px) {
  body::before { background-position: 94% center; --shade: rgb(20 17 27 / 40%); }
  main { padding-top: clamp(32px, 7vh, 64px); }
  h1 { font-size: clamp(37px, 9.6vw, 60px); }
  .desktop-tip { display: none; }
  .mobile-tip { display: inline; }
  .bookmark { margin-top: 22px; font-size: 16px; }
  nav { gap: 16px; margin-top: 28px; }
  .entry { min-height: 46px; font-size: 18px; }
  .contacts { margin-top: 24px; }
  .contacts h2 { font-size: clamp(16px, 4.6vw, 21px); }
  .codes { margin-top: 18px; }
}
.brand-logo { display: block; width: auto; max-width: min(100%, 660px); max-height: clamp(56px, 10vw, 110px); margin: auto; object-fit: contain; }
.code img { aspect-ratio: 1; object-fit: contain; }

.bookmark-domain { margin: 8px auto 0; max-width: 100%; font-size: clamp(16px, 1.2vw, 20px); overflow-wrap: anywhere; }
.bookmark-domain a { color: inherit; text-underline-offset: .2em; }
nav { grid-template-columns: minmax(0, 1fr); }
.entry { max-width: 100%; min-width: 0; overflow-wrap: anywhere; text-align: center; }
