:root {
  color-scheme: dark;
  font: 16px/1.55 Inter, "Microsoft YaHei", system-ui, sans-serif;
  color: #f0e7d9;
  background: #0a101a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; }
button, input { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid #f3ce84; outline-offset: 4px; }
.registration {
  width: min(100% - 32px, 960px);
  margin: clamp(18px, 7vh, 76px) auto;
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  border: 1px solid #40434d;
  border-radius: 22px;
  overflow: hidden;
  background: #131d2b;
  box-shadow: 0 24px 80px #0007;
}
.welcome {
  padding: clamp(22px, 4vw, 38px);
  display: flex;
  align-items: end;
  min-height: 540px;
  background: linear-gradient(180deg, #131a2910 20%, #0a101adb 72%, #0a101a 100%),
    #1a2736 url("/player/next/assets/village-night.webp") center / cover no-repeat;
}
.brand { display: block; font: 600 25px/1.3 Georgia, "Songti SC", SimSun, serif; letter-spacing: .06em; }
.welcome p { color: #d8ccba; margin: 10px 0 0; font-size: 14px; }
.panel { min-width: 0; padding: clamp(20px, 4vw, 44px); }
.return { display: inline-block; color: #d8c6aa; font-size: 14px; text-underline-offset: 4px; }
h1 { margin: 14px 0 7px; font: 600 clamp(25px, 4vw, 36px)/1.25 Georgia, "Songti SC", SimSun, serif; }
h2 { margin: 0 0 6px; font-size: 17px; }
p { margin: 0 0 16px; }
.muted { color: #bfc6d1; font-size: 14px; }
.credentials { display: grid; gap: 14px; margin-top: 24px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; color: #eee1ce; font-size: 14px; }
.field input {
  width: 100%; min-width: 0; min-height: 44px; border-radius: 8px; border: 1px solid #56647a;
  color: #f0e7d9; padding: 9px 12px; background: #0d1522; font-size: 16px;
}
.field input[readonly] { color: #dfc999; }
.hint { color: #bfc6d1; font-size: 13px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 14px; border: 1px solid #657389; border-radius: 8px;
  color: #f0e7d9; background: #1c2a3e; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { background: #2a3a50; }
.button:disabled { opacity: .55; cursor: wait; }
.primary { width: 100%; margin-top: 18px; background: #e5bd75; color: #21180e; border-color: #f0d599; }
.primary:hover { background: #f0ce92; }
.verify { margin-top: 24px; }
.group-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.group-box { padding: 16px; border: 1px solid #4b596d; background: #102032; border-radius: 12px; margin-bottom: 18px; }
.group-box .field { margin: 13px 0 10px; }
.group-box input { font-family: "IBM Plex Mono", Consolas, monospace; font-size: 14px; }
.verify-footer { display: flex; justify-content: center; margin-top: 8px; }
.link-button { background: transparent; color: #d8c6aa; border: 0; padding: 7px; cursor: pointer; font-size: 14px; }
.link-button:hover { text-decoration: underline; }
.status { margin: 14px 0 0; min-height: 1.5em; color: #ebcd96; white-space: pre-line; overflow-wrap: anywhere; }
.status[data-error="true"] { color: #ffb3ab; }
@media (max-width: 690px) {
  .registration { grid-template-columns: 1fr; }
  .welcome { min-height: 145px; background-position: center 43%; }
  .welcome p { margin-top: 4px; }
  .group-box input { font-size: 12px; }
}
@media (max-width: 355px) {
  .registration { width: calc(100% - 20px); }
  .group-actions { grid-template-columns: 1fr; }
}
