:root {
  color-scheme: light;
  --icbc-red: #d91f1f;
  --ink: #392b1f;
  --muted: #806d56;
  --gold: #d7aa58;
  --gold-deep: #9b6a24;
  --paper: #fffaf0;
  --surface: rgba(255, 250, 236, 0.86);
  --line: rgba(161, 121, 51, 0.28);
  --good: #16784a;
  --warn: #b45f06;
  --bad: #b3261e;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 50% 10%, rgba(255, 237, 185, 0.76), transparent 70%),
    linear-gradient(135deg, #fff7df 0%, #f5e2bb 42%, #dcebf2 100%);
}

.screen-body {
  min-height: 100vh;
  overflow: auto;
  background:
    radial-gradient(1200px 760px at 50% 6%, rgba(255, 239, 197, 0.62), transparent 72%),
    linear-gradient(180deg, #2b251f 0%, #17130f 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 800;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 4px solid var(--icbc-red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--icbc-red);
  font-weight: 900;
}

.staff-logout {
  min-height: 38px;
  margin-left: auto;
  padding: 0 12px;
  white-space: nowrap;
}

.staff-shell .brand {
  gap: 12px;
}

.staff-shell .brand > span:nth-child(2) {
  font-size: 16px;
}

.icbc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #071019;
  line-height: 1;
  margin-top: 0;
  width: fit-content;
  position: relative;
  z-index: 2;
}

.icbc-en {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0;
}

.icbc-symbol {
  width: 40px;
  height: 40px;
  border: 4px solid #d40000;
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}

.icbc-symbol::before,
.icbc-symbol::after,
.icbc-symbol-core,
.icbc-symbol-core::before,
.icbc-symbol-core::after {
  content: "";
  position: absolute;
  background: #d40000;
}

.icbc-symbol::before {
  width: 23px;
  height: 4px;
  left: 5px;
  top: 8px;
  border-radius: 2px;
}

.icbc-symbol::after {
  width: 23px;
  height: 4px;
  left: 5px;
  bottom: 8px;
  border-radius: 2px;
}

.icbc-symbol-core {
  width: 5px;
  height: 25px;
  left: 50%;
  top: 50%;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.icbc-symbol-core::before,
.icbc-symbol-core::after {
  width: 7px;
  height: 17px;
  top: 4px;
  background: transparent;
  border-top: 4px solid #d40000;
  border-bottom: 4px solid #d40000;
}

.icbc-symbol-core::before {
  right: 8px;
  border-left: 4px solid #d40000;
  border-radius: 3px 0 0 3px;
}

.icbc-symbol-core::after {
  left: 8px;
  border-right: 4px solid #d40000;
  border-radius: 0 3px 3px 0;
}

.icbc-cn {
  padding-bottom: 6px;
  border-bottom: 2px solid #d40000;
  font-size: 30px;
  font-weight: 900;
  white-space: nowrap;
}

.icbc-branch {
  align-self: flex-end;
  padding-bottom: 7px;
  margin-left: 4px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-btn {
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #e94837 0%, #c8221b 100%);
  box-shadow: 0 18px 36px rgba(177, 45, 28, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  font-weight: 800;
}

.secondary-btn {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--gold-deep);
  font-weight: 700;
}

.screen-stage {
  width: 1080px;
  min-height: 1920px;
  height: 1920px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 84px 54px 80px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 51% 8%, rgba(255, 255, 255, 0.78), transparent 70%),
    linear-gradient(165deg, rgba(255, 250, 230, 0.94) 0%, rgba(255, 238, 202, 0.5) 24%, rgba(246, 222, 178, 0.2) 52%, rgba(244, 220, 173, 0.36) 100%),
    radial-gradient(820px 520px at 50% 34%, rgba(255, 245, 215, 0.84), transparent 72%),
    radial-gradient(760px 620px at 82% 34%, rgba(181, 224, 237, 0.22), transparent 75%),
    linear-gradient(135deg, #f8e6c0 0%, #fff5dc 38%, #e9f0ef 78%, #e8d2a6 100%);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.42);
}

.screen-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(950px 520px at 50% -6%, rgba(255, 255, 255, 0.56), transparent 70%),
    linear-gradient(170deg, transparent 0 9%, rgba(255, 255, 255, 0.74) 12%, rgba(255, 241, 205, 0.18) 16%, transparent 21%),
    radial-gradient(closest-side at 50% 43%, transparent 74%, rgba(120, 88, 44, 0.16) 100%),
    repeating-linear-gradient(172deg, rgba(255, 255, 255, 0.18) 0 3px, transparent 3px 56px);
  pointer-events: none;
}

.ambient-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.ambient-dust i {
  position: absolute;
  bottom: -40px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 228, 158, 0.82), rgba(255, 228, 158, 0));
  animation: dust-up 18s linear infinite;
}

.ambient-dust i:nth-child(1) { left: 13%; animation-duration: 16s; }
.ambient-dust i:nth-child(2) { left: 29%; animation-duration: 21s; animation-delay: 3s; }
.ambient-dust i:nth-child(3) { left: 45%; animation-duration: 15s; animation-delay: 7s; }
.ambient-dust i:nth-child(4) { left: 61%; animation-duration: 23s; animation-delay: 2s; }
.ambient-dust i:nth-child(5) { left: 76%; animation-duration: 17s; animation-delay: 9s; }
.ambient-dust i:nth-child(6) { left: 88%; animation-duration: 20s; animation-delay: 5s; }

@keyframes dust-up {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.44; }
  84% { opacity: 0.34; }
  100% { transform: translateY(-1980px); opacity: 0; }
}

.screen-brand {
  position: absolute;
  top: 84px;
  left: 54px;
  z-index: 5;
}

.flow-page {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 260px 64px 96px;
}

.flow-page.active {
  display: flex;
  animation: page-in 0.48s cubic-bezier(0.25, 0.8, 0.35, 1);
}

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

.kicker,
.flow-page h1,
.flow-lead,
.paper-ticket,
.egg-label {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

.kicker {
  border: 2px solid #c9a253;
  color: #8a5a1e;
  font-size: 32px;
  letter-spacing: 6px;
  padding: 13px 42px;
  border-radius: 999px;
}

.flow-page h1 {
  margin: 42px 0 0;
  font-size: 82px;
  line-height: 1.36;
  letter-spacing: 0;
  color: #8a5210;
  font-weight: 800;
}

.flow-lead {
  margin: 34px 0 0;
  max-width: 760px;
  font-size: 38px;
  line-height: 1.65;
  color: #a07840;
}

.flow-lead.small {
  margin-top: 18px;
  font-size: 32px;
}

.pulse {
  animation: label-pulse 2.4s ease-in-out infinite;
}

@keyframes label-pulse {
  0%, 100% { opacity: 0.48; }
  50% { opacity: 1; }
}

.flow-page > .egg {
  margin-top: 76px;
}

.egg.glow {
  box-shadow:
    inset -22px -28px 64px rgba(135, 86, 27, 0.14),
    0 30px 80px rgba(111, 79, 26, 0.2),
    0 0 110px rgba(255, 207, 111, 0.86);
}

.egg.breath {
  animation: breathe 4.4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018); }
}

.egg-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #b09159;
  font-size: 38px;
  letter-spacing: 5px;
  animation: label-pulse 2.4s ease-in-out infinite;
}

.big-btn {
  width: 620px;
  min-height: 118px;
  margin-top: auto;
  margin-bottom: 16px;
  border: 4px solid rgba(232, 195, 126, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, #e74c3f 0%, #c93026 54%, #a72018 100%);
  color: #fff8ec;
  box-shadow:
    0 18px 36px rgba(121, 47, 22, 0.28),
    inset 0 4px 0 rgba(255, 255, 255, 0.28),
    inset 0 -7px 12px rgba(89, 18, 12, 0.18);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 10px;
  text-indent: 10px;
  text-shadow: 0 2px 0 rgba(94, 25, 16, 0.18);
}

.big-btn:active {
  transform: scale(0.98);
}

.big-btn:disabled {
  cursor: default;
  background: linear-gradient(180deg, #caa198 0%, #b6897f 58%, #a77a70 100%);
  border-color: rgba(225, 200, 158, 0.78);
  color: rgba(255, 249, 238, 0.88);
  box-shadow:
    0 15px 30px rgba(112, 76, 58, 0.22),
    inset 0 3px 0 rgba(255, 255, 255, 0.2);
  transform: none;
}

.ghost-btn {
  min-height: 76px;
  padding: 0 38px;
  border: 2px solid #c9a253;
  border-radius: 999px;
  background: rgba(255, 250, 236, 0.78);
  color: #8a5a1e;
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(120, 90, 40, 0.14);
}

.login-title {
  font-size: 68px !important;
}

.screen-form {
  width: 580px;
  margin-top: 30px;
  display: grid;
  gap: 14px;
}

.screen-form .flow-input {
  min-height: 74px;
  font-size: 28px;
  border: 2px solid rgba(201, 162, 83, 0.58);
  border-radius: 10px;
  background: rgba(255, 252, 242, 0.78);
  color: #6b4a1e;
  font-weight: 700;
}

.screen-form .flow-input::placeholder {
  color: rgba(160, 120, 64, 0.58);
}

.screen-form .flow-input:focus,
.screen-form .flow-input.selected {
  outline: 0;
  border-color: #c4933e;
  box-shadow: 0 0 0 4px rgba(201, 162, 83, 0.14);
}

.screen-form .send-code {
  min-height: 74px;
  min-width: 190px;
  border: 2px solid #c4933e;
  border-radius: 10px;
  background: rgba(255, 250, 236, 0.68);
  color: #8a5a1e;
  box-shadow: none;
  font-size: 24px;
  font-weight: 900;
}

.screen-agree {
  color: #8a6b3c;
  font-size: 20px;
  font-weight: 700;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.keypad button {
  height: 72px;
  border-radius: 12px;
  background: rgba(255, 252, 242, 0.9);
  border: 1px solid rgba(190, 154, 92, 0.28);
  color: #6b4a1e;
  box-shadow: 0 5px 0 rgba(202, 176, 128, 0.42), 0 9px 18px rgba(120, 90, 40, 0.08);
  font-size: 30px;
  font-weight: 800;
}

.keypad button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(202, 176, 128, 0.42);
}

.login-submit {
  width: 460px;
  min-height: 96px;
  margin: 24px auto 0;
  font-size: 34px;
  letter-spacing: 6px;
  text-indent: 6px;
}

.wish-egg {
  margin-top: 54px !important;
  overflow: hidden;
}

.wish-egg.holding {
  animation: tremble 0.16s linear infinite;
}

.crack {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 5px;
  height: 170px;
  border-radius: 999px;
  background: rgba(168, 133, 79, 0.86);
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255, 208, 120, 0.95));
  transform: rotate(18deg);
}

.crack.c2 {
  top: 48%;
  height: 210px;
  transform: rotate(-24deg);
}

.wish-egg.s1 .crack.c1,
.wish-egg.s2 .crack.c1,
.wish-egg.s2 .crack.c2 {
  opacity: 0.78;
}

.egg-wrap {
  position: relative;
  margin-top: 64px;
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 470px;
  height: 590px;
  border: 3px solid rgba(217, 168, 86, 0.72);
  border-radius: 50% 50% 46% 46% / 60% 60% 42% 42%;
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  pointer-events: none;
  animation: ring-out 2.2s ease-out infinite;
}

.ring:nth-child(2) {
  animation-delay: 1.1s;
}

@keyframes ring-out {
  0% { opacity: 0.84; transform: translate(-50%, -50%) scale(0.94); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.28); }
}

.ticket-title {
  margin-top: 42px !important;
  font-size: 62px !important;
}

.printer {
  width: 760px;
  height: 70px;
  border-radius: 20px;
  background: linear-gradient(180deg, #c9b285, #ae9468);
  margin-top: 34px;
  box-shadow: 0 10px 24px rgba(120, 90, 40, 0.35);
  position: relative;
  z-index: 2;
}

.printer::after {
  content: "";
  position: absolute;
  left: 60px;
  right: 60px;
  top: 28px;
  height: 14px;
  background: #5d4a2c;
  border-radius: 8px;
}

.ticket-wrap {
  height: 800px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  margin-top: -8px;
}

.paper-ticket {
  width: 620px;
  min-height: 690px;
  margin: 0 auto;
  background: #fffef8;
  border: 2px solid #eadfc2;
  border-top: 0;
  border-bottom: 0;
  box-shadow: 0 20px 40px rgba(120, 90, 40, 0.25);
  padding: 40px 46px 20px;
  color: #6b4a1e;
  font-size: 30px;
  line-height: 1.75;
  white-space: pre-line;
  transform: translateY(-105%);
}

.paper-ticket.printing {
  animation: print-out 2.2s cubic-bezier(0.35, 0.5, 0.45, 1) forwards;
}

@keyframes print-out {
  from { transform: translateY(-105%); }
  to { transform: translateY(0); }
}

.paper-ticket h2 {
  margin: 0 0 18px;
  font-size: 38px;
  color: #8a5210;
}

.ticket-divider {
  border-top: 2px dashed #cfb488;
  margin: 20px 0;
}

.ticket-code {
  color: #b7271f;
  font-family: Menlo, Consolas, monospace;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 2px;
}

.torn {
  width: 620px;
  height: 26px;
  margin: 0 auto;
  background:
    linear-gradient(-45deg, #fffef8 13px, transparent 0),
    linear-gradient(45deg, #fffef8 13px, transparent 0);
  background-size: 26px 26px;
  background-repeat: repeat-x;
  filter: drop-shadow(0 8px 10px rgba(120, 90, 40, 0.18));
}

.bottom-btn {
  margin-bottom: 12px;
  font-size: 34px;
  letter-spacing: 1px;
  text-indent: 0;
}

.scan-title {
  font-size: 72px !important;
}

.qr-big {
  width: 430px;
  min-height: 430px;
  border-radius: 28px;
  margin-top: 68px;
  border: 5px dashed #c9a253;
  background: repeating-linear-gradient(45deg, #f7edd6 0 26px, #efe0bd 26px 52px);
  display: grid;
  place-items: center;
  padding: 24px;
  color: #a07840;
  font-size: 30px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.qr-big img {
  width: 330px;
  height: 330px;
  border-radius: 8px;
  background: white;
}

.scan-actions {
  width: 850px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.scan-actions .big-btn {
  width: 540px;
  margin: 0;
  font-size: 34px;
  letter-spacing: 1px;
  text-indent: 0;
}

.rescan-hint {
  min-height: 48px;
  margin-top: 22px;
  color: #b09159;
  font-size: 28px;
}

.progress-chip {
  position: absolute;
  top: 88px;
  right: 54px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(190, 154, 92, 0.34);
  background: rgba(255, 252, 242, 0.82);
  color: #8a5210;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(120, 90, 40, 0.18);
}

.progress-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 35%, #d9bb78 36% 100%);
}

.progress-panel {
  position: absolute;
  inset: 0;
  z-index: 20;
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(90, 66, 30, 0.36);
  backdrop-filter: blur(6px);
}

.progress-card {
  position: absolute;
  top: 500px;
  left: 50%;
  width: 760px;
  transform: translateX(-50%);
  border: 3px solid #e3c98f;
  border-radius: 44px;
  background: #fdf7e9;
  padding: 54px 48px;
  text-align: center;
  box-shadow: 0 22px 60px rgba(90, 66, 30, 0.32);
}

.progress-card h2 {
  margin: 0 0 20px;
  color: #8a5210;
  font-size: 42px;
  letter-spacing: 6px;
}

.egg-slots {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 34px 0;
}

.egg-slot {
  width: 58px;
  height: 78px;
  border-radius: 50% 50% 46% 46% / 60% 60% 42% 42%;
  border: 2px dashed rgba(201, 162, 83, 0.42);
  background: rgba(255, 252, 242, 0.58);
}

.egg-slot.filled {
  border-style: solid;
  background: radial-gradient(circle at 36% 26%, #fffef8 0%, #f5e6c4 55%, #e6c98e 100%);
  box-shadow: 0 10px 24px rgba(201, 162, 83, 0.34);
}

.progress-card strong {
  display: block;
  color: #8a5210;
  font-size: 30px;
}

.progress-card p {
  color: #a07840;
  font-size: 26px;
  line-height: 1.6;
}

.penguin-figure {
  margin-top: 300px;
  width: 250px;
  height: 250px;
  position: relative;
}

.penguin-body {
  width: 160px;
  height: 210px;
  margin: 0 auto;
  border-radius: 48% 48% 44% 44%;
  background: #2e2e33;
  position: relative;
}

.penguin-body::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 58px;
  width: 92px;
  height: 122px;
  border-radius: 48%;
  background: #f7f1e2;
}

.penguin-body::after {
  content: "";
  position: absolute;
  left: 66px;
  top: 52px;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 20px solid #e8a24a;
}

.egg {
  width: 450px;
  height: 585px;
  min-width: 450px;
  min-height: 585px;
  border-radius: 50% 50% 46% 46% / 60% 60% 42% 42%;
  background:
    radial-gradient(circle at 34% 22%, #fff 0 9%, rgba(255, 255, 255, 0.74) 18%, transparent 30%),
    radial-gradient(circle at 44% 42%, rgba(255, 252, 222, 0.96), rgba(240, 197, 112, 0.66) 64%, rgba(173, 119, 43, 0.36));
  box-shadow:
    inset -22px -28px 64px rgba(135, 86, 27, 0.18),
    0 30px 80px rgba(111, 79, 26, 0.24),
    0 0 110px rgba(255, 207, 111, 0.86);
  position: relative;
  transition: transform 0.2s ease;
}

.egg::before,
.egg::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 2px solid rgba(255, 227, 154, 0.62);
  transform: rotate(-18deg);
}

.egg::after {
  inset: 26% 10%;
  transform: rotate(22deg);
}

.egg.holding {
  transform: scale(1.025);
  animation: tremble 0.16s linear infinite;
}

@keyframes tremble {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 4px -2px;
  }
}

.palm-target {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 64px;
  font-weight: 900;
}

.palm-target span {
  width: 156px;
  height: 156px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(255, 219, 135, 0.52);
  box-shadow: 0 0 42px rgba(255, 226, 150, 0.9);
}

.countdown {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
}

.countdown span {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.35);
  color: var(--gold-deep);
  font-size: 32px;
  font-weight: 900;
}

.countdown span.on {
  color: #fff;
  background: var(--icbc-red);
}

.form-stack {
  display: grid;
  gap: 16px;
}

.input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 16px;
  color: var(--ink);
}

select.input {
  height: 54px;
  padding-right: 42px;
  font-size: 16px;
  line-height: 1.2;
}

.input:focus {
  outline: 3px solid rgba(217, 31, 31, 0.16);
}

.inline-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hint {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.error {
  color: var(--bad);
  min-height: 22px;
}

.ticket {
  background: var(--paper);
  border: 1px solid rgba(151, 116, 56, 0.24);
  border-radius: 8px;
  padding: 28px;
  line-height: 1.8;
  box-shadow: inset 0 0 0 8px rgba(215, 170, 88, 0.08);
}

.ticket h2 {
  margin: 0 0 16px;
  color: #9c561f;
}

.code {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff2e0;
  color: var(--icbc-red);
  font-weight: 900;
  letter-spacing: 0;
}

.qr-box {
  margin-top: 20px;
  min-height: 180px;
  border: 2px dashed var(--gold);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: var(--gold-deep);
  overflow-wrap: anywhere;
  background: repeating-linear-gradient(45deg, rgba(255, 247, 225, 0.82) 0 16px, rgba(239, 221, 179, 0.62) 16px 32px);
}

.qr-box img {
  display: block;
  margin: 0 auto 12px;
  width: 220px;
  height: 220px;
  background: #fff;
  border-radius: 8px;
}

.mobile-shell,
.staff-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff8e8 0%, #f3dfb8 100%);
  padding: 18px;
}

.mobile-card,
.staff-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 16px 36px rgba(118, 83, 29, 0.14);
}

.mobile-card + .mobile-card,
.staff-card + .staff-card {
  margin-top: 14px;
}

.section-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.status {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e9f6ef;
  color: var(--good);
  font-weight: 800;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0;
}

.tab {
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-weight: 800;
}

.tab.active {
  background: var(--icbc-red);
  color: white;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.metric {
  min-height: 84px;
  padding: 12px;
  border-radius: 8px;
  background: #fff9ed;
  border: 1px solid var(--line);
}

.metric b {
  display: block;
  font-size: 28px;
  color: #a4531d;
}

.list-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.prize-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.asset-placeholder {
  height: 86px;
  border: 1px dashed var(--gold);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 250, 236, 0.82);
  margin-bottom: 10px;
}

.tab-panel.staff-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.step-chip,
.type-badge,
.record-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff3dc;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.compact-form {
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.field-label {
  margin: 4px 0 -4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

#redeemCodeField {
  display: grid;
  gap: 10px;
}

.verification-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(22, 120, 74, 0.28);
  border-radius: 8px;
  background: #f0f8f3;
}

.verification-summary p,
.verification-summary span {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.verification-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--good);
  font-weight: 900;
}

.otp-stage {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.query-toolbar {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.search-result {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(164, 83, 29, 0.25);
  border-radius: 8px;
  background: #fff8ea;
}

.search-result-head,
.block-title,
.prize-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-result-head span {
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 800;
}

.search-result-grid,
.prize-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.search-result-grid > div,
.prize-metrics > div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.search-result-grid b,
.prize-metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.search-result-grid strong,
.prize-metrics b {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.search-detail {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.search-detail ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-block {
  margin-top: 18px;
}

.block-title {
  margin-bottom: 10px;
}

.daily-filter-title {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
}

.date-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
  width: 100%;
}

.date-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.date-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.date-filter input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 8px;
  color: var(--ink);
  font-size: 16px;
}

.date-filter .secondary-btn {
  min-width: 72px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 16px;
}

.daily-chart {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.chart-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.chart-date {
  color: var(--muted);
  font-size: 11px;
}

.chart-bars {
  display: grid;
  gap: 4px;
}

.chart-bar {
  width: max(9%, var(--bar));
  min-height: 21px;
  padding: 3px 7px;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
}

.chart-bar.activity {
  background: #b8682d;
}

.chart-bar.redeem {
  background: #27755a;
}

.data-table-wrap {
  margin-top: 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.data-table {
  width: 100%;
  min-width: 430px;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th,
.data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: var(--muted);
  background: #fff7e8;
  font-weight: 800;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table code {
  color: var(--icbc-red);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.stock-progress {
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadfc9;
}

.stock-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d28a3a, #d12f25);
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.prize-admin-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.prize-thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff1d7;
  color: var(--gold-deep);
  font-weight: 900;
}

.prize-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prize-admin-head > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.prize-admin-head strong,
.prize-admin-head .type-badge {
  display: block;
}

.prize-admin-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prize-admin-head .type-badge {
  width: fit-content;
  min-height: 22px;
  margin-top: 5px;
  padding: 0 8px;
  font-size: 10px;
}

.prize-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prize-metrics > div {
  text-align: center;
}

.prize-metrics b {
  font-size: 18px;
  color: #9c561f;
}

.stock-adjust-panel {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.stock-adjust-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stock-stepper {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.stock-step-btn {
  min-height: 48px;
  border: 0;
  background: #fff8ea;
  color: var(--gold-deep);
  font-size: 24px;
  font-weight: 800;
}

.stock-step-btn:first-child {
  border-right: 1px solid var(--line);
}

.stock-step-btn:last-child {
  border-left: 1px solid var(--line);
}

.stock-step-btn:active {
  background: #f7e8c7;
}

.stock-delta-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.stock-delta-input:focus {
  outline: 3px solid rgba(217, 31, 31, 0.16);
  outline-offset: -3px;
}

.stock-apply-btn {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold-deep);
  background: #fff;
  font-weight: 800;
}

.stock-apply-btn:active {
  background: #fff3dc;
}

.notice-dialog {
  width: min(360px, calc(100vw - 36px));
  padding: 24px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 28px 80px rgba(49, 35, 21, 0.32);
}

.notice-dialog::backdrop {
  background: rgba(43, 34, 25, 0.5);
  backdrop-filter: blur(3px);
}

.notice-dialog h3 {
  margin: 12px 0 6px;
}

.notice-dialog p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.notice-dialog .primary-btn {
  width: 100%;
}

.notice-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--bad);
  font-size: 24px;
  font-weight: 900;
}

.notice-dialog.success .notice-icon {
  background: var(--good);
}

@media (max-width: 900px) {
  body:not(.screen-body) {
    overflow: auto;
  }

  .screen-body .screen-stage {
    width: 1080px;
    min-height: 1920px;
  }

  .mobile-shell,
  .staff-shell {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .date-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .date-filter .secondary-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 1120px) {
  .screen-body .screen-stage {
    margin: 0;
  }
}
