:root {
  --mobile-max-width: 430px;
  --bg-start: #060022;
  --bg-end: #120033;
  --glass-border: rgba(118, 138, 255, 0.58);
  --glass-fill: rgba(39, 53, 145, 0.42);
  --field-fill: rgba(84, 117, 204, 0.32);
  --cyan: #67f2ff;
  --text-main: #f6f6ff;
  --text-soft: rgba(240, 244, 255, 0.86);
  --text-dim: rgba(226, 235, 255, 0.65);
  --shadow-glow: 0 18px 40px rgba(15, 44, 152, 0.38);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 50% 22%, rgba(84, 186, 255, 0.3), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(187, 122, 255, 0.15), transparent 18%),
    linear-gradient(180deg, var(--bg-start), var(--bg-end));
  color: var(--text-main);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(108, 186, 255, 0.07), transparent 28%, rgba(155, 109, 255, 0.08) 64%, transparent 100%),
    url("./images/bg.jpg") center top / cover no-repeat;
  opacity: 0.54;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 34px
    );
  mix-blend-mode: screen;
  opacity: 0.24;
  pointer-events: none;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100vw, var(--mobile-max-width));
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(6, 0, 34, 0.12), rgba(15, 0, 52, 0.28));
}

.screen {
  min-height: 100vh;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 0 !important;
  position: relative;
}

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

.screen-home {
  background: #10001a;
  isolation: isolate;
}

.screen-entry,
.screen-form {
  width: 100%;
  align-items: stretch;
  isolation: isolate;
}

.screen-status {
  width: 100%;
  align-items: stretch;
  padding: 18px 18px calc(env(safe-area-inset-bottom, 0px) + 24px) !important;
  isolation: isolate;
}

.screen-entry {
  background: url("./images/bg.jpg") center 18% / cover no-repeat;
}

.screen-form {
  /* background:
    radial-gradient(circle at 50% -6%, rgba(95, 116, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(9, 10, 49, 0.92) 0%, rgba(19, 3, 56, 0.96) 100%); */
}

.screen-entry::before,
.screen-form::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.screen-entry::before {
  background:
    linear-gradient(90deg, rgba(84, 162, 255, 0.04), transparent 24%, rgba(121, 83, 255, 0.06) 78%, transparent 100%),
    linear-gradient(180deg, rgba(7, 8, 38, 0.12) 0%, rgba(11, 5, 39, 0.22) 58%, rgba(16, 0, 44, 0.42) 100%);
  opacity: 1;
}

.screen-form::before {
  /* background:
    linear-gradient(90deg, rgba(84, 162, 255, 0.06), transparent 22%, rgba(121, 83, 255, 0.08) 78%, transparent 100%),
    radial-gradient(circle at 50% 16%, rgba(106, 227, 255, 0.16), transparent 26%);
  opacity: 0.88; */
}

.screen-entry > *,
.screen-form > *,
.screen-status > * {
  position: relative;
  z-index: 1;
}

.screen-entry .legal-text,
.screen-form .legal-text,
.screen-status .legal-text {
  margin-top: auto;
  align-self: center;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 4px);
}

.screen-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #10001a;
  z-index: 0;
}

.hero-top {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-top: 10px;
}

.hero-top-center {
  justify-content: center;
  padding-top: 6px;
}

.hero-top.compact {
  padding-top: 2px;
}

.brand-logo {
  width: 116px;
  height: auto;
}

.auth-hero {
  width: 100%;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.auth-hero-logo {
  margin: 15px 0 0 36px;
  width: 132px;
  height: auto;
}

.auth-hero-title {
  width: min(334px, 84vw);
  max-width: 90%;
  margin: 48px 30px 30px 30px;
  display: block;
  filter: drop-shadow(0 12px 26px rgba(78, 143, 255, 0.18));
}

.auth-hero-register {
  margin-bottom: 4px;
}

.register-hero-panel {
  width: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  margin-bottom: 0px;
  box-shadow: 0 20px 36px rgba(8, 14, 54, 0.28);
}

.register-hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.register-hero-logo {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 128px;
  height: auto;
  z-index: 2;
}

.register-hero-title {
  position: absolute;
  left: 50px;
  right: 50px;
  bottom: 55px;
  width: 100%;
  max-width: 75%;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 12px 26px rgba(78, 143, 255, 0.18));
}

.auth-hero-status {
  margin-bottom: 4px;
}

.status-hero-bar {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 15px 18px 0;
}

.status-hero-bar .auth-hero-logo {
  margin: 0;
  width: 132px;
  flex-shrink: 0;
}

.status-logout-btn {
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: 2px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status-logout-btn img {
  width: 28px;
  height: 28px;
  display: block;
}

.status-logout-btn:active {
  transform: scale(0.96);
}

.auth-hero-status .auth-hero-title {
  margin-top: 44px;
}

.home-hero-panel {
  width: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rise-in 480ms ease-out both;
}

.home-hero-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(180px, 32vh, 280px);
  background: linear-gradient(180deg, rgba(16, 0, 26, 0) 0%, rgba(16, 0, 26, 0.72) 46%, #10001a 78%, #10001a 100%);
  pointer-events: none;
  z-index: 1;
}

.home-art {
  width: 100%;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(45, 120, 255, 0.18));
}

.home-brand-overlay {
  position: absolute;
  top: 5%;
  left: 28%;
  transform: translateX(-50%);
  width: 132px;
  z-index: 2;
}

.home-title-stage {
  position: absolute;
  top: 16%;
  left: 50%;
  transform: translateX(-50%);
  width: 86%;
  max-width: 334px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(160px, 45vh, 500px);
  z-index: 3;
}

.home-title-overlay {
  width: 100%;
  display: block;
}

.hero-copy {
  width: 100%;
  text-align: center;
  margin-top: 78px;
  animation: rise-in 480ms ease-out both;
}

.hero-copy.compact {
  margin-top: 38px;
}

.hero-copy h1 {
  margin: 8px 0 6px;
  font-size: 52px;
  line-height: 0.94;
  letter-spacing: -1px;
  font-weight: 900;
  text-shadow: 0 0 24px rgba(121, 210, 255, 0.22);
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 1.9px;
  color: var(--text-soft);
  font-style: italic;
}

.event-subtitle {
  margin: 0;
  font-size: 15px;
  letter-spacing: 3.6px;
  color: rgba(255, 255, 255, 0.86);
}

.event-subtitle.zh-tight {
  font-size: 13px;
  letter-spacing: 6px;
  margin-top: 4px;
}

.primary-pill {
  border: 0;
  border-radius: 999px;
  width: min(230px, 100%);
  height: 56px;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #2c25c1 0%, #5530ce 100%, #0eaaff 100%);
  box-shadow: 0 12px 28px rgba(38, 77, 208, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.primary-pill:active {
  transform: translateY(1px) scale(0.995);
}

.home-cta {
  z-index: 1000;
  position: relative;
  width: min(230px, calc(100% - 80px));
  margin-top: 0;
  margin-bottom: 0;
}

.home-cta:active {
  transform: translateY(1px) scale(0.995);
}

.home-footer {
  width: 100%;
  margin-top: auto;
  position: relative;
  z-index: 1;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.legal-text {
  z-index: 1000;
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.64);
}

.glass-card {
  width: 100%;
  /* border-radius: 28px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(69, 91, 227, 0.26), rgba(18, 37, 109, 0.34));
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px); */
}

.form-card {
  margin-top: 18px;
  padding: 20px 16px 18px;
  border-radius: 30px;
}

.entry-card {
  width: 90%;
  margin: 0 auto;
  padding: 56px 25px 56px;
  border-radius: 24px;
  border: 1px solid rgba(93, 128, 255, 0.62);
  background: linear-gradient(180deg, rgba(50, 64, 178, 0.38), rgba(14, 36, 121, 0.3));
  box-shadow: 0 20px 40px rgba(13, 27, 112, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.field-label {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
}

.entry-field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 21px;
}

.entry-field-label::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.entry-card label[for="entry-mobile"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Crect x='4.25' y='1.75' width='9.5' height='14.5' rx='1.75' stroke='%23EAF2FF' stroke-width='1.5'/%3E%3Ccircle cx='9' cy='13.5' r='0.9' fill='%23EAF2FF'/%3E%3C/svg%3E");
}

.entry-card label[for="entry-code"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M9 1.75L14.75 4.25V8.75C14.75 12.68 12.17 15.03 9 16.25C5.83 15.03 3.25 12.68 3.25 8.75V4.25L9 1.75Z' stroke='%23EAF2FF' stroke-width='1.5'/%3E%3Cpath d='M6.5 9.25L8.25 11L11.75 7.5' stroke='%23EAF2FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  border: 0;
  border-radius: 999px;
  min-height: 52px;
  background: var(--field-fill);
  color: var(--text-main);
  padding: 0 18px;
  font-size: 16px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.field-select {
  appearance: none;
  background: linear-gradient(90deg, rgba(50, 52, 132, 0.96), rgba(43, 74, 155, 0.92));
  color: rgba(244, 247, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(132, 154, 255, 0.18);
}

.field-select option {
  background: #1d215f;
  color: rgba(244, 247, 255, 0.94);
}

.field-select option:checked,
.field-select option:hover {
  background: #294dbe;
  color: #ffffff;
}

.field-textarea {
  margin: 10px 0;
  border-radius: 18px;
  min-height: 92px;
  padding-top: 14px;
  resize: none;
}

.field-followup {
  margin-top: 12px;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: rgba(224, 237, 255, 0.42);
}

.entry-card > .field-input {
  min-height: 48px;
  margin-bottom: 36px;
  background: linear-gradient(90deg, rgba(75, 113, 208, 0.76), rgba(46, 93, 189, 0.82));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.entry-card > .field-input::placeholder,
.entry-card .code-row .field-input::placeholder {
  color: rgba(227, 237, 255, 0.58);
}

.code-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.code-row .field-input {
  flex: 1;
  min-width: 0;
}

.entry-card .code-row {
  min-height: 48px;
  padding: 0 14px 0 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(75, 113, 208, 0.76), rgba(46, 93, 189, 0.82));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  gap: 0;
  align-items: center;
}

.entry-card .code-row .field-input {
  min-height: 48px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(103, 242, 255, 0.28);
  background: rgba(18, 31, 96, 0.6);
  color: var(--cyan);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.entry-card .ghost-action {
  min-width: auto;
  min-height: 28px;
  padding: 0 0 0 16px;
  border: 0;
  border-left: 1px solid rgba(238, 244, 255, 0.24);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #35ebff;
  font-size: 15px;
}

.screen-entry .primary-pill {
  align-self: center;
  width: min(200px, 100%);
  height: 54px;
  margin-top: 34px;
  letter-spacing: 8px;
  text-indent: 8px;
}

.questionnaire {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 25px 25px 25px;
  gap: 12px;  
}

.question-card {
  position: relative;
  width: 100%;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(106, 84, 213, 0.58);
  background: linear-gradient(180deg, rgba(27, 30, 95, 0.58), rgba(16, 26, 84, 0.5));
  box-shadow: 0 18px 34px rgba(9, 16, 70, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
}

.question-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #6a54d5 0%, #3667c3 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.question-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.question-help {
  margin: 8px 4px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}

.question-help-top {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 4px 10px;
}

.question-help-top span {
  flex: 1;
}

.question-help-icon {
  width: auto;
  height: 14px;
  margin: 0 5px 0 0;
  padding: 6px 0 0 0;
  flex: 0 0 auto;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-list-lettered {
  gap: 12px;
}

.option-list-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
}

.option-chip,
.checkbox-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(105, 63, 255, 0.2), rgba(74, 176, 255, 0.15));
  box-shadow: inset 0 0 0 1px rgba(127, 150, 255, 0.2);
}

.option-chip input,
.checkbox-chip input {
  accent-color: #6e8cff;
}

.option-text {
  font-size: 15px;
  color: var(--text-soft);
}

.option-chip-lettered {
  position: relative;
  gap: 0;
  min-height: 25px;
  padding: 10px 18px 10px 90px;
  border: 1px solid rgba(118, 142, 255, 0.2);
  background: linear-gradient(90deg, rgba(55, 46, 136, 0.82), rgba(46, 70, 143, 0.86));
  box-shadow: inset 0 0 0 1px rgba(132, 153, 255, 0.08);
  overflow: visible;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.option-chip-lettered:hover {
  transform: translateY(-1px);
}

.option-chip-lettered input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.option-badge {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transform: translateY(-50%) rotate(-8deg);
  background: linear-gradient(180deg, #2b76ff 0%, #4b2dff 100%);
  box-shadow: 0 10px 18px rgba(57, 57, 177, 0.3);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(19, 28, 100, 0.35);
}

.option-chip-lettered .option-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(248, 249, 255, 0.92);
}

.option-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.option-content .option-text {
  min-width: 0;
}

.option-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 8px;
  width: 100%;
}

.option-text-primary,
.option-text-secondary {
  display: block;
}

.option-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(74, 160, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

.option-tag-growth {
  background: linear-gradient(90deg, #7ddcff 0%, #96baff 100%);
}

.option-tag-advanced {
  background: linear-gradient(90deg, #91d870 0%, #5dbf84 100%);
}

.option-chip-lettered.is-selected {
  border-color: #3ad7ff;
  background: linear-gradient(90deg, rgba(129, 199, 255, 0.34) 0%, rgba(103, 64, 234, 0.9) 52%, rgba(83, 45, 176, 0.92) 100%);
  box-shadow: 0 12px 28px rgba(35, 68, 181, 0.22), inset 0 0 0 1px rgba(199, 245, 255, 0.14);
}

.option-chip-lettered.is-selected .option-badge {
  background: linear-gradient(180deg, #c3f4ff 0%, #8d8fff 40%, #7042ff 100%);
  border: 1px solid rgba(240, 251, 255, 0.82);
  box-shadow: 0 12px 22px rgba(113, 75, 255, 0.34);
}

.option-chip-platform {
  position: relative;
  min-height: 30px;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(100, 132, 255, 0.24);
  background: linear-gradient(90deg, rgba(58, 80, 149, 0.9), rgba(62, 92, 160, 0.9));
  box-shadow: inset 0 0 0 1px rgba(141, 164, 255, 0.06);
  overflow: hidden;
}

.option-chip-platform input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.option-chip-platform .option-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: rgba(244, 247, 255, 0.94);
}

.option-chip-platform.is-selected {
  border-color: #3ad7ff;
  background: linear-gradient(90deg, rgba(129, 199, 255, 0.34) 0%, rgba(103, 64, 234, 0.9) 52%, rgba(83, 45, 176, 0.92) 100%);
  box-shadow: 0 10px 24px rgba(35, 68, 181, 0.18), inset 0 0 0 1px rgba(199, 245, 255, 0.14);
}

.option-chip-platform-wide {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding: 0 18px;
}

.option-chip-platform-wide .option-text {
  font-size: 14px;
  text-align: left;
}

.sub-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hidden {
  display: none !important;
}

.status-card {
  width: 90%;
  margin: auto;
  padding: 26px 20px 20px;
  text-align: center;
}

.waiting-card {
  min-height: 520px;
}

.status-icon {
  width: 126px;
  height: auto;
}

.waiting-icon {
  width: 112px;
}

.status-card h2 {
  margin: 10px 0 16px;
  font-size: 36px;
  line-height: 1;
}

.status-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.85;
}

.video-card {
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(110, 56, 255, 0.8), rgba(22, 189, 255, 0.78));
  padding: 6px;
}

.video-card img {
  width: 100%;
  display: block;
}

.compact-video {
  margin-top: 10px;
}

.approved-card {
  padding: 0;
  overflow: hidden;
}

.status-image {
  width: 100%;
  display: block;
}

#register-submit-btn {
  align-self: center;
  width: min(200px, 100%);
  margin-top: 22px;
  margin-bottom: 12px;
}

.screen-entry .legal-text,
.screen-form .legal-text,
.screen-status .legal-text {
  text-align: center;
}

@media (max-height: 760px) {
  .auth-hero-title {
    width: min(272px, 80vw);
    margin-top: 22px;
  }

  .register-hero-panel {
    height: clamp(200px, 30vh, 248px);
  }

  .register-hero-title {
    width: min(292px, calc(100% - 36px));
  }

  .entry-card {
    margin-top: 26px;
  }

  .screen-entry,
  .screen-form,
  .screen-status {
    padding-top: 14px !important;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  min-width: 140px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(5, 11, 38, 0.88);
  border: 1px solid rgba(120, 145, 255, 0.42);
  color: #fff;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 30;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.loading-mask {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 22, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.loading-core {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--cyan);
  animation: spin 900ms linear infinite;
}

.modal-open {
  overflow: hidden;
}

.ios-alert-mask {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 10, 24, 0.42);
  backdrop-filter: blur(8px);
  z-index: 60;
}

.ios-alert-panel {
  width: min(270px, calc(100vw - 48px));
  border-radius: 18px;
  overflow: hidden;
  background: rgba(247, 247, 249, 0.98);
  box-shadow: 0 18px 40px rgba(7, 10, 28, 0.3);
}

.ios-alert-body {
  padding: 18px 18px 16px;
  text-align: center;
}

.ios-alert-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.ios-alert-copy {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.ios-alert-actions {
  display: flex;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.ios-alert-btn {
  flex: 1;
  height: 48px;
  border: 0;
  background: transparent;
  color: #007aff;
  font-size: 17px;
}

.ios-alert-btn + .ios-alert-btn {
  border-left: 1px solid rgba(17, 24, 39, 0.12);
}

.ios-alert-btn-confirm {
  font-weight: 700;
}

.ios-alert-btn:active {
  background: rgba(0, 122, 255, 0.08);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
