/* hga030.win — 按皇冠体育界面配色。联系方式只改 /js/config.js */

:root {
  --nav: #3f271c;
  --cream: #ffffff;
  --card: #ffffff;
  --line: #e6dfd4;
  --gold: #c9a24a;
  --gold-2: #e4c36a;
  --gold-deep: #8c6a28;
  --red: #d23c3c;
  --text: #3a2e26;
  --muted: #7a6e62;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.splash-active {
  overflow: hidden;
}

html.skip-splash .splash {
  display: none !important;
}

html.skip-splash body.splash-active {
  overflow: auto;
}

.phone {
  width: min(100%, 440px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button,
input {
  font-family: inherit;
}

/* ---------- 开屏 ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background:
    radial-gradient(520px 280px at 50% 38%, rgba(201, 162, 74, 0.32), transparent 68%),
    linear-gradient(165deg, #5c3d2c 0%, #3f271c 52%, #2c1b14 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-glow {
  position: absolute;
  width: 340px;
  height: 180px;
  border-radius: 50%;
  background: rgba(228, 195, 106, 0.28);
  filter: blur(30px);
}

.splash-inner {
  position: relative;
  text-align: center;
  color: #f8f3ea;
  padding: 1rem;
}

.splash-logo {
  width: min(210px, 58vw);
  height: auto;
  margin: 0 auto 0.2rem;
  mix-blend-mode: screen;
  animation: crownIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both, crown-glow 3.2s ease-in-out 0.7s infinite;
}

.splash-title {
  margin-top: 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  animation: fadeUp 0.45s ease 0.06s both;
}

.splash-slogan {
  margin-top: 0.55rem;
  color: rgba(248, 243, 234, 0.9);
  font-size: 1rem;
  letter-spacing: 0.12em;
  animation: fadeUp 0.45s ease 0.14s both;
}

.splash-bar {
  width: 148px;
  height: 3px;
  margin: 1.1rem auto 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.splash-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), #fff4d2 70%, var(--gold-2));
  animation: load 1.55s ease forwards;
}

@keyframes crownIn {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes load {
  to { width: 100%; }
}

@keyframes crown-glow {
  0%,
  100% {
    filter: brightness(0.9);
  }

  50% {
    filter: brightness(1.28);
  }
}

/* ---------- 页头：logo 和标语同一块深棕 ---------- */
.mast {
  color: #f6efe4;
  background:
    radial-gradient(520px 200px at 18% 0%, rgba(228, 195, 106, 0.2), transparent 58%),
    linear-gradient(180deg, #5a3a28 0%, #3f271c 58%, #3a241b 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 1rem 0.2rem;
  padding-top: calc(0.72rem + env(safe-area-inset-top, 0px));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 34px;
  object-fit: contain;
  mix-blend-mode: screen;
  animation: crown-glow 3.2s ease-in-out infinite;
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-text span {
  display: block;
  margin-top: 0.02rem;
  color: var(--gold-2);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(228, 195, 106, 0.55);
  color: var(--gold-2);
  font-size: 0.75rem;
  font-weight: 700;
}

.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e7c56a;
  box-shadow: 0 0 8px rgba(231, 197, 106, 0.8);
}

.board-head {
  padding: 0.35rem 1rem 1.15rem;
  text-align: center;
}

.board-head h1 {
  color: transparent;
  background-image: linear-gradient(
    105deg,
    #7a5a22 0%,
    #c9a24a 16%,
    #fff6d2 30%,
    #e8c56a 42%,
    #fffdf4 50%,
    #d4b15a 58%,
    #8c6a28 74%,
    #f3e2b8 88%,
    #7a5a22 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(90, 58, 40, 0.35));
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
  animation: fadeUp 0.6s ease both, slogan-flow 2.6s linear 0.6s infinite;
}

@keyframes slogan-flow {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 200% 50%;
  }
}

.wrap {
  width: calc(100% - 1.25rem);
  margin: 0 auto;
  padding: 0.9rem 0 calc(1.8rem + env(safe-area-inset-bottom, 0px));
}

.auto-banner {
  margin-bottom: 0.75rem;
  padding: 0.7rem 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  color: #5c4518;
  background: #f8efd2;
  border: 1px solid #e0c98a;
  border-radius: 8px;
}

.auto-banner a {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
}

/* ---------- 开户表单 ---------- */
.open-form {
  padding: 0.95rem 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(74, 50, 40, 0.06);
}

.sheet-title {
  margin: 0 0 0.55rem;
  padding: 0.62rem 0.7rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #5a3a28 0%, #3f271c 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}

.form-lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.crypto-pick {
  margin: 0 0 0.7rem;
  padding: 0;
  border: 0;
}

.crypto-pick legend {
  margin-bottom: 0.32rem;
  color: #5c4a3c;
  font-size: 0.82rem;
  font-weight: 700;
}

.pick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.pick {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--nav);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.pick input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pick.is-on {
  border-color: #3f271c;
  background: #3f271c;
  color: #fff;
}

.crypto-pick.is-invalid .pick {
  border-color: var(--red);
}

.field {
  display: block;
  margin-bottom: 0.7rem;
}

.field span {
  display: block;
  margin-bottom: 0.32rem;
  color: #5c4a3c;
  font-size: 0.82rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  font-size: 1rem;
  background: #fffcf8;
  border: 1px solid #ddd4c8;
  border-radius: 8px;
  outline: none;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.22);
}

.field.is-invalid input {
  border-color: var(--red);
}

.form-status {
  min-height: 1.3rem;
  margin: 0.15rem 0 0.65rem;
  color: var(--gold-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-status.is-error {
  color: var(--red);
}

.form-result {
  margin-top: 0.85rem;
}

.form-result-lead {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.55;
}

.form-copy {
  margin: 0.55rem 0 0.7rem;
  padding: 0.75rem 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  background: #fffcf8;
  border: 1px solid #ddd4c8;
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.55;
}

.form-result-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0.55rem;
}

.copy-again {
  min-height: 50px;
  border: 1px solid var(--gold-deep);
  border-radius: 8px;
  background: #fff;
  color: var(--gold-deep);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.copy-again:active {
  transform: translateY(1px);
}

.ico {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.8rem;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.send-tg {
  background: linear-gradient(180deg, #5a3a28 0%, #3f271c 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(228, 195, 106, 0.55);
}

.send:active {
  transform: translateY(1px);
}

.send:focus-visible,
.field input:focus-visible,
.pick:focus-within,
.copy-again:focus-visible,
.line-card:focus-visible,
.svc:focus-visible,
.channel:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.portal-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.line-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #5a3a28 0%, #3f271c 100%);
  color: #f8f3ea;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(228, 195, 106, 0.55);
  animation: card-rise 0.5s ease both;
}

.line-card:nth-child(2) { animation-delay: 0.08s; }
.line-card:nth-child(3) { animation-delay: 0.16s; }

.line-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(228, 195, 106, 0.42) 50%, transparent 68%);
  transform: translateX(-130%);
  animation: card-sheen 7.2s ease-in-out infinite;
  pointer-events: none;
}

.line-card:nth-child(1)::before { animation-delay: 0.4s; }
.line-card:nth-child(2)::before { animation-delay: 1.6s; }
.line-card:nth-child(3)::before { animation-delay: 2.8s; }

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes card-sheen {
  0%,
  14% {
    transform: translateX(-130%);
  }

  30%,
  100% {
    transform: translateX(130%);
  }
}

.line-card::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--gold-2);
  border-right: 1.5px solid var(--gold-2);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.line-card:active {
  filter: brightness(1.08);
}

.service {
  margin-top: 0.9rem;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.svc,
.channel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 52px;
  padding: 0.7rem 0.45rem;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.svc .ico,
.channel .ico {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.svc-tg,
.channel {
  background: linear-gradient(180deg, #5a3a28 0%, #3f271c 100%);
  box-shadow: inset 0 0 0 1px rgba(228, 195, 106, 0.55);
}

.footer {
  margin-top: 1.1rem;
  text-align: center;
  color: #8d8174;
  font-size: 0.75rem;
}

.disclaimer {
  max-width: 26rem;
  margin: 0.35rem auto 0;
  line-height: 1.6;
  text-wrap: balance;
}

.copy-fallback {
  position: fixed;
  left: -9999px;
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .splash {
    display: none !important;
  }

  body.splash-active {
    overflow: auto;
  }

  .splash-logo,
  .brand-mark,
  .splash-title,
  .splash-slogan,
  .splash-bar span,
  .line-card,
  .line-card::before,
  .board-head h1 {
    animation: none;
    transition: none;
  }

  .board-head h1 {
    color: #f3e2b8;
    background: none;
    -webkit-text-fill-color: #f3e2b8;
  }
}
