:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #8b95a5;
  --line: #e8edf4;
  --blue: #1358ff;
  --blue-2: #008cff;
  --soft-blue: #eaf2ff;
  --green: #12ad5c;
  --red: #f04444;
  --orange: #ff7a1a;
  --shadow: 0 12px 34px rgba(47, 78, 128, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #dfe7f3;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  outline: none;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

input {
  width: 100%;
  min-width: 0;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  outline: none;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

.phone-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.login-view {
  min-height: 100vh;
  padding: 34px 26px;
  display: grid;
  align-content: start;
  gap: 0;
  background: #fff;
}

.login-brand {
  margin-top: 70px;
  display: grid;
  justify-items: center;
  gap: 34px;
}

.login-brand img {
  width: 154px;
  height: auto;
  object-fit: contain;
}

.login-brand p,
small,
.muted {
  color: var(--muted);
}

.login-brand p {
  font-size: 24px;
  letter-spacing: 2px;
}

.language-switch {
  justify-self: end;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #555b66;
  font-size: 18px;
}

.login-card,
.sheet form,
.stack-form {
  display: grid;
  gap: 14px;
}

.login-card {
  margin-top: 92px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-mode {
  display: grid;
  gap: 22px;
}

.login-mode-register {
  margin-top: -28px;
  text-align: center;
  justify-items: stretch;
}

.login-mode-register h1 {
  margin-top: 18px;
  font-size: 36px;
}

.login-mode-register > p {
  margin-top: -8px;
  color: #4e5665;
  font-size: 25px;
}

.login-card input,
.login-card button,
.stack-form input,
.stack-form button,
.primary-button {
  min-height: 48px;
  padding: 0 14px;
}

.login-card input {
  min-height: 64px;
  border: 0;
  border-radius: 8px;
  background: #f4f4f5;
  color: #30343a;
  font-size: 22px;
}

.login-card input::placeholder {
  color: #a0a7b4;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap input {
  padding: 0 52px 0 18px;
}

.input-clear,
.input-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 30px;
  height: 30px;
  min-height: 0 !important;
  padding: 0 !important;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #cfd3da !important;
  color: white !important;
  font-size: 22px;
  line-height: 1;
}

.input-eye {
  background: transparent !important;
  color: #9aa2ad !important;
  font-size: 24px;
}

.login-row {
  margin: 6px 10px 12px;
  display: flex;
  justify-content: space-between;
  color: #697386;
  font-size: 18px;
}

.login-row button,
.register-switch button,
.register-link,
.policy-text button {
  color: #2f83ff;
  font-weight: 500;
}

.login-primary,
.primary-button,
.pill-button {
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 800;
}

.login-primary,
.login-secondary {
  min-height: 64px;
  font-size: 22px;
}

.login-secondary {
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  background: white;
  color: var(--blue);
  font-weight: 800;
}

.login-primary.disabled {
  background: #63a7f8;
}

.register-switch,
.register-link,
.policy-text {
  text-align: center;
  font-size: 18px;
}

.policy-text {
  margin-top: 42px;
  color: #5f6877;
  font-size: 16px;
}

.main-view {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.screen {
  min-height: 0;
  overflow: auto;
  padding-bottom: 96px;
}

.screen.subpage {
  padding-bottom: 0;
}

.screen.chat-subpage {
  height: 100vh;
  overflow: hidden;
}

.home-screen,
.mine-screen,
.bill-screen {
  min-height: 100%;
  padding: max(18px, env(safe-area-inset-top)) 14px 18px;
}

.profile-row,
.mine-profile,
.transfer-user,
.contact-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-row {
  grid-template-columns: auto 1fr auto auto;
  display: grid;
  margin-bottom: 22px;
}

.avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8edf6;
  color: #617097;
  border: 5px solid rgba(255, 255, 255, 0.82);
  font-size: 26px;
  font-weight: 900;
}

.avatar.small {
  width: 54px;
  height: 54px;
  font-size: 18px;
  border-width: 3px;
}

.avatar.tiny {
  width: 46px;
  height: 46px;
  font-size: 16px;
  border-width: 0;
  background: #ffd6e5;
  color: #d72a6b;
  flex: 0 0 auto;
}

.avatar.large {
  width: 122px;
  height: 122px;
  margin: 26px auto;
  font-size: 36px;
}

.profile-row h1,
.mine-profile h1 {
  font-size: 24px;
  line-height: 1.2;
}

.profile-row p,
.mine-profile p {
  margin-top: 9px;
  max-width: 210px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.id-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 7px;
  background: #bed5ff;
  color: #0a2c7e;
  font-size: 14px;
  font-weight: 900;
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #2c394f;
  font-size: 24px;
  position: relative;
}

.icon-circle i {
  position: absolute;
  right: -2px;
  top: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-style: normal;
  line-height: 18px;
}

.virtual-card {
  min-height: 174px;
  padding: 24px;
  border-radius: 8px;
  color: white;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(145deg, #101c40 0%, #253f93 58%, #2b64eb 100%);
  box-shadow: 0 18px 42px rgba(35, 84, 177, 0.26);
}

.card-brand {
  font-size: 18px;
  font-weight: 900;
}

.card-balance {
  margin-top: 30px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
}

.card-number {
  margin-top: 22px;
  opacity: 0.92;
  font-weight: 800;
}

.virtual-card button {
  float: right;
  margin-top: -6px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 20px;
  background: #1877ff;
  color: white;
  font-weight: 900;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 24px 0;
}

.action-row button {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #1d2736;
  font-size: 15px;
}

.action-row span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.action-row button:nth-child(2) span,
.action-row button:nth-child(4) span {
  background: var(--orange);
}

.section-title {
  margin: 8px 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--blue);
  font-size: 22px;
}

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

.service-grid button,
.list-item,
.bill-summary,
.game-card,
.wallet-card,
.recharge-card,
.qr-card,
.contact-detail,
.profile-edit,
.placeholder {
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 5px 18px rgba(47, 78, 128, 0.06);
}

.service-grid button {
  min-height: 84px;
  padding: 14px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.service-grid span,
.round-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff2d9;
  color: #ef9b23;
  font-size: 22px;
  font-weight: 900;
}

.service-grid strong {
  display: block;
  font-size: 17px;
}

.service-grid small,
.list-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.page-header,
.plain-header {
  height: 64px;
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
}

.plain-header {
  grid-template-columns: 1fr 42px;
  background: transparent;
}

.plain-header.centered {
  grid-template-columns: 1fr;
  text-align: center;
}

.page-header h2,
.plain-header h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}

.plain-header h2 {
  text-align: left;
}

.back-button {
  font-size: 42px;
  line-height: 1;
  color: #263244;
}

.text-button {
  color: var(--blue);
  font-weight: 800;
}

.blue-stage {
  min-height: calc(100vh - 64px);
  padding: 54px 20px;
  background:
    radial-gradient(circle at 34% 8%, rgba(255, 255, 255, 0.34), transparent 22%),
    linear-gradient(145deg, #05b3ff, #0056ff);
}

.qr-card,
.recharge-card {
  width: min(100%, 340px);
  margin: 0 auto;
  padding: 26px 22px;
  text-align: center;
}

.qr-card h3 {
  font-size: 24px;
}

.qr-card p,
.recharge-card p {
  margin: 10px 0 18px;
}

.qr {
  width: min(72vw, 260px);
  aspect-ratio: 1;
  margin: 18px auto;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  gap: 1px;
  background: white;
}

.qr i {
  background: white;
}

.qr i.dark {
  background: #050505;
}

.split-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 16px 0;
}

.split-actions button {
  min-height: 42px;
  color: #516d9d;
  border-right: 1px solid var(--line);
}

.address-line {
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 8px;
  align-items: center;
  margin: 8px 0 18px;
  text-align: left;
}

.address-line strong {
  min-width: 0;
  color: var(--blue);
  overflow-wrap: anywhere;
}

.address-line button,
.input-action button {
  min-height: 38px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--soft-blue);
  font-weight: 800;
}

.form-screen,
.transfer-screen,
.list-screen,
.game-screen {
  padding: 18px 14px;
  display: grid;
  gap: 12px;
}

.wallet-card {
  min-height: 118px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #21304a;
  background: linear-gradient(135deg, #d7e6ff, #a9c7ff);
}

.wallet-card strong {
  margin: 8px 8px 0 0;
  font-size: 28px;
  display: inline-block;
}

.wallet-card em {
  padding: 4px 11px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}

.eye-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
}

.stack-form {
  margin-top: 20px;
}

.stack-form label {
  display: grid;
  gap: 9px;
  font-size: 18px;
  font-weight: 800;
}

.stack-form input {
  min-height: 56px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 500;
}

.input-action {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 8px;
}

.two-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}

.two-buttons button:first-child,
.stack-form > button:not(.primary-button) {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 800;
}

.orange {
  color: var(--orange);
}

.list-screen {
  gap: 10px;
}

.list-item {
  width: 100%;
  min-height: 72px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.list-item strong {
  font-size: 18px;
}

.list-item em {
  color: var(--muted);
  font-style: normal;
}

.muted-bg {
  background: #eeedf8;
  color: #8880b8;
}

.blue-bg {
  background: #e8f0ff;
  color: var(--blue);
}

.green-bg {
  background: #e8fbf0;
  color: var(--green);
}

.search-box {
  padding: 10px 14px;
}

.search-box input {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  background: #eef1f5;
  font-size: 18px;
}

.tabs {
  height: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: white;
  border-bottom: 1px solid var(--line);
}

.tabs button {
  font-size: 18px;
  color: #666d79;
  font-weight: 800;
}

.tabs button.active {
  color: var(--blue);
  box-shadow: inset 0 -3px var(--blue);
}

.contact-detail,
.profile-edit {
  margin: 18px 14px;
  padding: 18px 0;
  display: grid;
  gap: 8px;
}

.contact-hero {
  padding: 14px 18px 24px;
  border-bottom: 10px solid #f3f4f6;
}

.danger-line {
  min-height: 58px;
  color: var(--red);
  font-size: 18px;
  font-weight: 800;
  border-top: 1px solid var(--line);
}

.amount-form {
  padding: 22px;
  display: grid;
  gap: 18px;
  border-radius: 8px;
  background: white;
}

.amount-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #e2e6ed;
}

.amount-input span {
  font-size: 46px;
  font-weight: 900;
}

.amount-input input {
  border: 0;
  background: white;
  font-size: 46px;
  font-weight: 300;
}

.bill-screen {
  background:
    radial-gradient(circle at 70% 0%, rgba(19, 88, 255, 0.12), transparent 26%),
    var(--bg);
}

.bill-summary {
  padding: 18px;
  margin-top: 12px;
}

.bill-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bill-summary button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.bill-summary dl {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 10px;
}

.bill-summary dt {
  grid-row: 1;
  color: #6f7c93;
}

.bill-summary dd {
  grid-row: 2;
  font-size: 20px;
  font-weight: 900;
}

.ledger-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.ledger-list article {
  min-height: 64px;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  background: white;
}

.ledger-list small {
  display: block;
  margin-top: 4px;
}

.green {
  color: var(--green);
}

.red {
  color: var(--red);
}

.empty-state {
  margin: 48px auto;
  color: var(--muted);
  text-align: center;
}

.mine-screen {
  background: linear-gradient(180deg, #cddcff 0 36%, #ffffff 36% 100%);
}

.mine-head {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  min-height: 42px;
}

.mine-profile {
  margin-top: 34px;
  cursor: pointer;
}

.mine-screen .wallet-card {
  margin: 20px auto 28px;
  width: 82%;
  background: linear-gradient(135deg, #d6e5ff, #9dbdff);
}

.mine-list {
  margin: 0 -14px;
  padding: 26px 20px;
  border-radius: 28px 28px 0 0;
  background: white;
  display: grid;
  gap: 4px;
}

.mine-list button {
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 18px;
}

.mine-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 15px;
}

.field-row {
  min-height: 66px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #f0f2f5;
}

.field-row span {
  color: #7b8492;
}

.field-row strong {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.field-row button {
  color: var(--blue);
  font-weight: 800;
}

.chat-room {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding-bottom: 0;
}

.message-list {
  min-height: 0;
  overflow: auto;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f1f3f6;
}

.message {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 3px 12px rgba(18, 31, 52, 0.05);
}

.message.mine {
  align-self: flex-end;
  background: #dff0ff;
}

.message small {
  display: block;
  margin-bottom: 4px;
}

.chat-notice {
  align-self: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: #e3e7ee;
  color: #87909e;
  font-size: 13px;
}

.composer {
  min-height: 72px;
  padding: 10px 10px max(10px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 8px;
  align-items: center;
  background: white;
  border-top: 1px solid var(--line);
}

.composer > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f3f7;
  color: #445065;
  font-size: 28px;
}

.composer form {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 7px;
}

.composer input {
  min-height: 44px;
  border: 0;
  border-radius: 22px;
  padding: 0 16px;
  background: #f0f2f6;
  font-size: 17px;
}

.composer form button {
  border-radius: 50%;
  background: #e8efff;
  color: var(--blue);
  font-weight: 900;
}

.tool-tray {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px 20px;
  background: #f7f8fb;
  border-top: 1px solid var(--line);
}

.tool-tray.open {
  display: grid;
}

.tool-tray button {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: #5b6576;
  font-weight: 800;
}

.tool-tray span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: white;
  color: #242d3c;
  font-size: 28px;
  box-shadow: 0 3px 10px rgba(33, 48, 74, 0.06);
}

.red-packet-card {
  width: min(300px, 74vw);
  margin-top: 9px;
  padding: 12px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff8f62, #ee463d);
  color: white;
  text-align: left;
}

.red-packet-card span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #c52824;
  color: #ffdd89;
  font-weight: 900;
}

.red-packet-card small {
  color: rgba(255, 255, 255, 0.82);
}

.red-packet-card em {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffe8a8;
  color: #b9412c;
  font-style: normal;
  font-weight: 900;
}

.sheet {
  width: min(94vw, 480px);
  border: 0;
  border-radius: 8px;
  background: white;
  color: var(--text);
  box-shadow: var(--shadow);
}

.sheet::backdrop,
.packet-detail-dialog::backdrop {
  background: rgba(15, 25, 42, 0.55);
}

.sheet-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sheet input {
  min-height: 46px;
  margin-top: 7px;
  padding: 0 12px;
}

.segmented {
  height: 44px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: 22px;
  background: #f1f3f6;
}

.segmented button {
  border-radius: 18px;
  color: #767f8e;
  font-weight: 800;
}

.segmented button.active {
  background: white;
  color: var(--red);
  box-shadow: 0 2px 8px rgba(32, 43, 60, 0.08);
}

.packet-detail-dialog {
  width: min(96vw, 520px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff8f2;
  color: #2c2521;
}

.packet-cover {
  position: relative;
  height: 220px;
  display: grid;
  place-items: end center;
  background: linear-gradient(160deg, #f23d31, #bd1618);
}

.packet-cover::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -76px;
  height: 132px;
  border-radius: 50% 50% 0 0;
  background: #fff8f2;
}

.packet-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center end;
  padding: 0 30px 20px 150px;
  color: #ffe19a;
  text-align: right;
  font-weight: 900;
}

.packet-art span {
  font-size: 38px;
}

.packet-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  color: white;
  font-size: 32px;
}

.packet-avatar {
  position: relative;
  z-index: 3;
  width: 74px;
  height: 74px;
  margin-bottom: -34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef3fb;
  border: 4px solid #fff8f2;
  font-weight: 900;
}

.packet-detail-body {
  padding: 52px 20px 20px;
  display: grid;
  gap: 8px;
  text-align: center;
}

#packetDetailAmount {
  margin: 12px 0;
  font-size: 28px;
}

.packet-claim-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  text-align: left;
}

.packet-claim-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f0dfd0;
}

.game-card {
  padding: 18px;
}

.game-card span {
  color: var(--blue);
  font-weight: 900;
}

.game-card h3 {
  margin: 8px 0;
  font-size: 24px;
}

.bet-form {
  display: grid;
  gap: 10px;
}

.bet-form input {
  min-height: 50px;
  padding: 0 14px;
}

.bet-form div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bet-form button {
  min-height: 46px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 900;
}

.bet-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bet-list span {
  padding: 8px 10px;
  border-radius: 8px;
  background: white;
  color: #5c6675;
  font-size: 13px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.admin-list {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
}

.admin-item {
  padding: 10px;
  border-radius: 8px;
  background: #f4f7fb;
  color: #475268;
}

.admin-page {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-stats article,
.admin-panel {
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(28, 46, 82, 0.04);
}

.admin-stats article {
  min-height: 78px;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.admin-stats span,
.admin-panel p,
.admin-user-list small,
.admin-packet-list small,
.admin-ledger-list small {
  color: #87909f;
}

.admin-stats strong {
  color: #121b2d;
  font-size: 24px;
}

.admin-stats small {
  color: #647086;
  font-weight: 700;
}

.admin-panel {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-panel h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.admin-panel p {
  margin: 0;
  font-size: 13px;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}

.admin-inline-form label {
  display: grid;
  gap: 6px;
  color: #647086;
  font-size: 13px;
  font-weight: 800;
}

.admin-inline-form input {
  min-height: 42px;
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  padding: 0 10px;
  background: #f8fafc;
  font-size: 15px;
}

.primary-mini,
.ghost-mini,
.danger-button {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 900;
  white-space: nowrap;
}

.primary-mini {
  background: var(--blue);
  color: #fff;
}

.ghost-mini {
  border: 1px solid #d9e3f5;
  color: #2869ff;
  background: #fff;
}

.danger-button {
  color: #f04444;
  background: #fff1f1;
}

.admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tags button,
.admin-tags span {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: #edf4ff;
  color: #145bff;
  font-weight: 800;
}

.admin-user-list,
.admin-packet-list,
.admin-ledger-list {
  display: grid;
  gap: 8px;
}

.admin-user-list article,
.admin-packet-list article,
.admin-ledger-list article {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f7f9fd;
}

.admin-packet-list article,
.admin-ledger-list article {
  grid-template-columns: 1fr auto auto;
}

.admin-user-list strong em {
  margin-left: 4px;
  color: #145bff;
  font-size: 11px;
}

.admin-user-list small,
.admin-packet-list small,
.admin-ledger-list small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.admin-packet-list span,
.admin-ledger-list span {
  font-weight: 900;
  color: #121b2d;
}

.placeholder {
  margin: 22px 14px;
  padding: 30px 20px;
  text-align: center;
}

.placeholder strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  width: min(100%, 520px);
  transform: translateX(-50%);
  height: calc(74px + env(safe-area-inset-bottom));
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.bottom-nav button {
  display: grid;
  gap: 3px;
  justify-items: center;
  align-content: center;
  color: #8c96a8;
  font-size: 13px;
  font-weight: 800;
}

.bottom-nav span {
  min-height: 27px;
  font-size: 25px;
  line-height: 1;
}

.bottom-nav button.active {
  color: var(--blue);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 50;
  transform: translateX(-50%);
  width: min(86vw, 360px);
  padding: 12px 14px;
  border-radius: 8px;
  background: #172033;
  color: white;
  text-align: center;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.group-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #c99ae4;
  color: white;
  font-size: 23px;
  font-weight: 900;
}

.group-avatar::after {
  content: "群";
  position: absolute;
  right: -5px;
  bottom: 2px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #4c8cff;
  color: white;
  border: 2px solid white;
  font-size: 12px;
}

.chat-list .list-item {
  min-height: 88px;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.message-list {
  background: #f2f3f6;
  padding-right: 14px;
}

.message {
  position: relative;
  max-width: 95%;
  padding: 0;
  display: grid;
  justify-items: start;
  gap: 5px;
  background: transparent;
  box-shadow: none;
}

.message.mine {
  width: 100%;
  max-width: none;
  align-self: stretch;
  justify-items: end;
  background: transparent;
}

.sender-side {
  display: grid;
  grid-template-columns: 1fr 58px;
  align-items: center;
  gap: 10px;
  color: #6f7786;
  font-size: 16px;
}

.sender-side .avatar {
  background: #95ddd5;
  color: #00625c;
}

.sender-side .avatar::before {
  content: "群主";
  position: absolute;
  margin: -34px 0 0 -32px;
  padding: 1px 5px;
  border-radius: 10px;
  background: #ff7d23;
  color: white;
  font-size: 11px;
}

.message-bubble {
  max-width: min(76%, 360px);
  min-height: 48px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  background: white;
  color: var(--text);
  box-shadow: 0 8px 22px rgba(19, 88, 255, 0.12);
  font-size: 18px;
}

.mine .message-bubble {
  margin-right: 68px;
  background: #064cff;
  color: white;
  font-size: 20px;
}

.message-bubble small {
  margin: 0 0 0 3px;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
}

.inline-dice {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(145deg, #ffffff, #d8dbe2);
  color: #333;
  font-size: 0;
  box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.18);
}

.inline-dice::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
  box-shadow: -8px -8px #333, 8px 8px #333;
}

.packet-message .message-bubble {
  display: none;
}

.red-packet-card {
  position: relative;
  width: min(385px, 76vw);
  min-height: 88px;
  margin: 0 68px 0 0;
  padding: 13px 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 117, 29, 0.94), rgba(255, 20, 20, 0.94)),
    radial-gradient(circle at 80% 20%, rgba(255, 236, 172, 0.42), transparent 28%);
  color: white;
  box-shadow: 0 14px 34px rgba(18, 46, 120, 0.18);
  text-align: left;
}

.red-packet-card::after {
  content: "马年吉祥";
  position: absolute;
  right: 22px;
  top: 10px;
  color: rgba(255, 236, 172, 0.42);
  font-size: 30px;
  font-weight: 900;
  transform: rotate(-3deg);
}

.red-packet-card .mini-cover {
  width: 42px;
  height: 54px;
}

.red-packet-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 20px;
}

.red-packet-card small {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.red-packet-card b {
  display: none;
}

.red-packet-card.finished {
  background:
    linear-gradient(90deg, rgba(255, 220, 185, 0.95), rgba(255, 192, 188, 0.95)),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.62), transparent 30%);
  color: #ff6532;
  box-shadow: none;
}

.red-packet-card.finished small {
  color: #ff6532;
}

.mini-cover {
  width: 44px;
  height: 58px;
  position: relative;
  display: inline-grid;
  place-items: end center;
  border-radius: 8px;
  background:
    linear-gradient(160deg, #fff8ec 0 18%, transparent 18%),
    linear-gradient(180deg, #fff3dc 0 16%, #ff372d 16% 100%);
  box-shadow: 0 4px 10px rgba(110, 26, 18, 0.18);
}

.mini-cover::before {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 24px;
  height: 1px;
  background: #ffd37e;
  transform: rotate(-7deg);
}

.mini-cover::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-bottom: 25px;
  border-radius: 50%;
  background: #f7d189;
  box-shadow: 0 1px 3px rgba(70, 10, 0, 0.3);
}

.packet-send-dialog {
  width: min(100vw, 520px);
  height: 100dvh;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: #f7f7f8;
  color: var(--text);
}

.packet-send-dialog::backdrop {
  background: rgba(0, 0, 0, 0.42);
}

.packet-send-dialog form {
  min-height: 100%;
  padding: 0 14px 28px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 22px;
}

.send-page-header {
  height: 72px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
}

.send-page-header h3 {
  text-align: center;
  font-size: 24px;
}

.packet-send-dialog .segmented {
  width: min(320px, 72vw);
  margin: 10px auto 12px;
  background: #f0f0f1;
  box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.packet-send-dialog .segmented button.active {
  color: #ff3f45;
}

.packet-send-fields {
  display: grid;
  gap: 12px;
}

.send-row {
  min-height: 68px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: white;
  color: var(--text);
  text-align: left;
  font-size: 19px;
  font-weight: 800;
}

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

.send-row input {
  width: 160px;
  min-height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: right;
  font-size: 22px;
}

.cover-row strong {
  color: #7d8593;
  font-size: 17px;
  font-weight: 700;
}

.note-row {
  grid-template-columns: 1fr auto;
  min-height: 82px;
}

.note-row input {
  width: 100%;
  text-align: left;
}

.note-row small {
  align-self: end;
  padding-bottom: 14px;
}

.packet-total {
  align-self: end;
  justify-self: center;
  margin: 42px 0 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.packet-total strong {
  font-size: 44px;
}

.packet-total span {
  color: #6e7584;
  font-size: 23px;
}

.send-packet-button {
  min-height: 58px;
  border-radius: 8px;
  background: #f43f44;
  color: white;
  font-size: 21px;
  font-weight: 900;
}

.cover-dialog {
  width: min(100vw, 520px);
  max-height: 80dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 14px 14px 0 0;
  background: white;
}

.cover-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.cover-dialog header {
  height: 68px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.cover-dialog header h3 {
  font-size: 21px;
}

.cover-dialog header button {
  color: #ff4752;
  font-size: 18px;
  font-weight: 900;
}

.cover-options {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.cover-option {
  min-height: 86px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 58px 1fr 34px;
  gap: 16px;
  align-items: center;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f3f4f8;
  color: #545b67;
  text-align: left;
}

.cover-option.active {
  border-color: #ff4752;
  color: #ff4752;
  background: #fff5f5;
}

.cover-option i {
  width: 34px;
  height: 34px;
  display: none;
  place-items: center;
  border-radius: 10px 0 6px 0;
  background: #ff4752;
  color: white;
  font-style: normal;
}

.cover-option.active i {
  display: grid;
}

.packet-open-dialog,
.packet-result-dialog {
  width: min(100vw, 520px);
  padding: 0;
  border: 0;
  background: transparent;
}

.packet-open-dialog::backdrop,
.packet-result-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.horse-packet-large {
  position: relative;
  width: min(84vw, 350px);
  min-height: 462px;
  margin: 0 auto;
  overflow: visible;
  display: grid;
  grid-template-rows: 1.1fr auto 1fr;
  border: 4px solid white;
  border-radius: 34px;
  background: #ff1d17;
  color: white;
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.28);
}

.horse-packet-large::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(255, 210, 97, 0.76);
  border-radius: 27px;
  pointer-events: none;
}

.horse-packet-large::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: 48%;
  height: 72px;
  background: #ffcf58;
  clip-path: ellipse(64% 44% at 50% 0%);
  pointer-events: none;
}

.horse-hero {
  position: relative;
  min-height: 248px;
  padding: 24px 22px 0;
  border-radius: 29px 29px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 255, 255, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 19% 4%, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px),
    linear-gradient(180deg, #fa251d 0%, #d90f13 100%);
}

.horse-hero strong {
  position: absolute;
  right: 20px;
  top: 36px;
  z-index: 2;
  width: 190px;
  color: #ffe88f;
  font-size: 44px;
  line-height: 0.95;
  font-weight: 900;
  text-shadow: 0 4px 0 rgba(110, 19, 7, 0.28);
  white-space: nowrap;
}

.horse-hero small {
  position: absolute;
  right: 64px;
  top: 116px;
  z-index: 2;
  color: #ffeaa6;
  font-size: 8px;
  letter-spacing: 2px;
}

.horse-line-art {
  position: absolute;
  left: 34px;
  top: 48px;
  width: 130px;
  height: 158px;
  opacity: 0.82;
}

.horse-line-art::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 5px;
  width: 78px;
  height: 100px;
  border: 4px solid #ffe3a0;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 60% 38% 45% 35%;
  transform: rotate(-16deg);
}

.horse-line-art::after {
  content: "";
  position: absolute;
  left: 62px;
  top: 78px;
  width: 82px;
  height: 62px;
  border: 4px solid #ffe3a0;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(20deg);
  box-shadow: 18px 28px 0 -14px #ffe3a0, 39px 16px 0 -15px #ffe3a0;
}

.open-coin {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: 112px;
  height: 112px;
  margin-top: -34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #f1d39a, #e7bd76);
  color: #76190e;
  font-size: 48px;
  font-weight: 900;
  box-shadow: 0 8px 13px rgba(111, 0, 0, 0.36);
}

.horse-packet-large > h3 {
  align-self: start;
  justify-self: center;
  margin-top: 24px;
  width: 84%;
  text-align: center;
  font-size: 21px;
}

.packet-open-close {
  position: absolute;
  left: 50%;
  bottom: -70px;
  z-index: 4;
  width: 54px;
  height: 54px;
  transform: translateX(-50%);
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  font-size: 36px;
  line-height: 1;
}

.horse-packet-large.claimed {
  background: #ff1d17;
}

.horse-packet-large.claimed::after {
  top: 45%;
  height: 98px;
  background: linear-gradient(180deg, rgba(255, 242, 190, 0.94), #ffe3a5);
  clip-path: ellipse(70% 50% at 50% 0%);
}

.horse-packet-large.claimed .horse-hero {
  background: linear-gradient(180deg, #ffd8c7, #fff0bb);
}

.horse-packet-large.claimed .horse-hero strong,
.horse-packet-large.claimed .horse-hero small,
.horse-packet-large.claimed .horse-line-art {
  opacity: 0.38;
}

.claim-amount-view {
  position: absolute;
  left: 0;
  right: 0;
  top: 120px;
  z-index: 3;
  display: grid;
  justify-items: center;
  color: #ff1616;
}

.claim-amount-view strong {
  font-size: 58px;
  line-height: 1;
}

.claim-amount-view span {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 900;
}

.result-detail-link {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  z-index: 3;
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.horse-detail {
  width: min(100vw, 520px);
  height: 100dvh;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: white;
  color: var(--text);
}

.horse-detail::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.horse-detail-hero {
  position: relative;
  height: 242px;
  overflow: hidden;
  background: linear-gradient(180deg, #f91e18, #d70f13);
  color: #ffe88f;
}

.horse-detail-hero::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -54px;
  height: 92px;
  border-radius: 50%;
  background: white;
}

.horse-detail-hero .horse-line-art {
  left: 74px;
  top: 24px;
  transform: scale(1.25);
}

.horse-detail-hero strong {
  position: absolute;
  right: 42px;
  top: 20px;
  z-index: 2;
  max-width: 280px;
  font-size: 54px;
  line-height: 0.9;
  text-shadow: 0 5px 0 rgba(100, 18, 6, 0.25);
  white-space: nowrap;
}

.horse-detail-hero small {
  position: absolute;
  right: 118px;
  top: 132px;
  z-index: 2;
  color: #ffeaa6;
  letter-spacing: 3px;
}

.packet-detail-back {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 3;
  color: white;
  font-size: 42px;
}

.horse-detail .packet-detail-body {
  padding: 0 0 20px;
  display: block;
  text-align: center;
}

.horse-detail .packet-avatar {
  width: 92px;
  height: 92px;
  margin: -46px auto 22px;
  position: relative;
  z-index: 2;
  border-radius: 50%;
  background: #95ddd5;
  color: #00625c;
  font-size: 30px;
}

.horse-detail .packet-detail-body h3 {
  font-size: 23px;
}

.horse-detail .packet-detail-body > p {
  margin-top: 16px;
  color: #6f7786;
  font-size: 17px;
}

.horse-detail #packetDetailStatus {
  margin: 48px 0 0;
  padding: 0 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.horse-detail .packet-claim-list {
  margin: 0;
}

.horse-detail .packet-claim-row {
  min-height: 92px;
  padding: 14px;
  border-top: 0;
  border-bottom: 1px solid #f0f2f5;
}

.horse-detail .packet-claim-row > div:last-child {
  text-align: right;
}

.horse-detail .packet-claim-row > div:last-child strong {
  font-size: 19px;
}

.horse-detail .packet-claim-row small {
  color: #9aa2b0;
}

/* Asset-backed horse-year red packet skin */
.red-packet-card {
  width: min(385px, 78vw);
  min-height: 86px;
  padding: 12px 18px;
  grid-template-columns: 56px 1fr;
  background-image: url("/pic/redpacket-bubble.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: transparent;
  box-shadow: none;
}

.red-packet-card.finished {
  background-image: url("/pic/redpacket-bubble-disabled.png");
  background-size: 100% 100%;
  background-color: transparent;
}

.red-packet-card::after {
  display: none;
}

.red-packet-card .mini-cover,
.cover-option .mini-cover,
.send-row .mini-cover {
  background: url("/pic/redpacket-opened-icon.png") center / contain no-repeat;
  box-shadow: none;
}

.red-packet-card .mini-cover::before,
.red-packet-card .mini-cover::after,
.cover-option .mini-cover::before,
.cover-option .mini-cover::after,
.send-row .mini-cover::before,
.send-row .mini-cover::after {
  display: none;
}

.red-packet-card strong {
  color: white;
  text-shadow: 0 1px 1px rgba(118, 21, 0, 0.16);
}

.red-packet-card.finished strong {
  color: #ff6739;
}

.horse-packet-large {
  width: min(76vw, 330px);
  min-height: 438px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: url("/pic/redpacket-back.png") center / 100% 100% no-repeat;
  box-shadow: none;
}

.horse-packet-large::before,
.horse-packet-large::after {
  display: none;
}

.horse-packet-large .horse-hero {
  min-height: 250px;
  background: transparent;
}

.horse-packet-large .horse-hero strong,
.horse-packet-large .horse-hero small,
.horse-packet-large .horse-line-art {
  display: none;
}

.open-coin {
  width: 118px;
  height: 118px;
  margin-top: -20px;
  background: url("/pic/redpacket-open-coin.png") center / contain no-repeat;
  color: transparent;
  box-shadow: none;
}

.horse-packet-large > h3 {
  margin-top: 20px;
  color: white;
  font-size: 21px;
}

.horse-packet-large.claimed {
  background: url("/pic/redpacket-back.png") center / 100% 100% no-repeat;
}

.horse-packet-large.claimed::before {
  content: "";
  position: absolute;
  inset: 18px 18px 22px;
  display: block;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 245, 217, 0.86) 0 50%, rgba(255, 28, 22, 0.12) 50% 100%);
  pointer-events: none;
}

.horse-packet-large.claimed .horse-hero {
  background: transparent;
}

.claim-amount-view {
  top: 138px;
}

.result-detail-link {
  bottom: 60px;
}

.horse-detail-hero {
  height: 252px;
  background: url("/pic/redpacket-detail-bg.png") center top / cover no-repeat;
}

.horse-detail-hero .horse-line-art,
.horse-detail-hero strong,
.horse-detail-hero small {
  display: none;
}

.horse-detail .packet-detail-body {
  margin-top: -2px;
}

@media (max-width: 560px) {
  .phone-shell {
    width: 100%;
  }

  .admin-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-inline-form,
  .admin-user-list article,
  .admin-packet-list article,
  .admin-ledger-list article {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-row {
    grid-template-columns: 96px 1fr auto;
  }
}
