@import url("/page-scrollbar.css?v=1");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;800&display=swap");

:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --surface: rgba(248, 250, 252, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.72);
  --line: rgba(148, 163, 184, 0.28);
  --line-strong: rgba(51, 65, 85, 0.28);
  --text: #020617;
  --muted: #475569;
  --heading: #e2e8f0;
  --heading-soft: rgba(226, 232, 240, 0.78);
  --brand: #0369a1;
  --brand-strong: #075985;
  --brand-soft: rgba(3, 105, 161, 0.12);
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.32);
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.72)),
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.28), transparent 28%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 24%);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.24);
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-copy {
  min-width: 0;
}

.brand-kicker {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.65);
}

.brand-title {
  margin: 0;
  font-size: 16px;
  color: #f8fafc;
}

.brand-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.68);
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.88);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topbar-link:hover,
.topbar-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateY(-1px);
}

.topbar-link.is-active {
  background: rgba(14, 165, 233, 0.14);
  color: #ffffff;
}

.layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.35fr);
  gap: 24px;
}

.hero-panel,
.content-panel {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.8)),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.24), transparent 34%);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22), transparent 72%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: rgba(186, 230, 253, 0.96);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.hero-title span {
  display: block;
  color: #7dd3fc;
}

.hero-title-soft {
  color: #7dd3fc !important;
}

.hero-text {
  margin: 16px 0 0;
  max-width: 32rem;
  color: var(--heading-soft);
  font-size: 15px;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.stat-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: border-color 0.24s ease, background-color 0.24s ease, transform 0.24s ease;
}

.stat-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(14, 165, 233, 0.1);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 800;
}

.stat-card span {
  color: rgba(226, 232, 240, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.hero-list,
.quick-links {
  display: grid;
  gap: 12px;
}


.hero-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-list li,
.quick-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: rgba(226, 232, 240, 0.82);
}

.hero-list li::before,
.quick-link::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  flex: 0 0 auto;
}

.quick-link {
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.quick-link:hover,
.quick-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.36);
  background: rgba(14, 165, 233, 0.08);
}

.content-panel {
  min-width: 0;
  padding: 30px;
  background: linear-gradient(180deg, var(--surface), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.content-header h2 {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #0f172a;
}

.content-header p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.content-chip {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.status-grid.compact-status {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 0;
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
}

.wizard-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.28s ease;
}

.wizard-dot strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
  transition: background-color 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

.wizard-dot span {
  font-size: 14px;
}

.wizard-dot.is-active {
  color: var(--brand-strong);
}

.wizard-dot.is-active strong {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #ffffff;
  transform: translateY(-1px);
}

.wizard-line {
  height: 2px;
  flex: 1 1 auto;
  min-width: 32px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(3, 105, 161, 0.54), rgba(148, 163, 184, 0.22));
}

.status-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.status-card label,
.status-card .status-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.status-value {
  font-size: 16px;
  color: #0f172a;
  line-height: 1.6;
  font-weight: 700;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.wizard-form {
  overflow: hidden;
}

.wizard-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: height 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.wizard-track {
  position: relative;
  left: 0;
  display: flex;
  align-items: flex-start;
  width: 100%;
  transition: left 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.wizard-step {
  display: grid;
  align-content: start;
  gap: 18px;
  flex: 0 0 100%;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5)),
    rgba(255, 255, 255, 0.44);
}

.wizard-step:not(.is-active) {
  height: max-content;
  pointer-events: none;
}

.step-copy {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.step-copy h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  line-height: 1.2;
}

.step-copy p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.7;
}

.field {
  display: grid;
  gap: 8px;
}

.field.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #0f172a;
  font-weight: 700;
}

.field-label small {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.field-label-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.field-label .inline-note {
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
}

.input,
.select,
.button,
.button-secondary {
  border-radius: var(--radius-sm);
}

.input,
.select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.input::placeholder {
  font-size: 16px;
}

.input-large {
  min-height: 60px;
  font-size: 18px;
  font-weight: 700;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 52px;
  background-image:
    linear-gradient(135deg, transparent 50%, #0369a1 50%),
    linear-gradient(225deg, transparent 50%, #0369a1 50%),
    linear-gradient(rgba(3, 105, 161, 0.1), rgba(3, 105, 161, 0.1));
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px),
    calc(100% - 44px) 50%;
  background-size:
    7px 7px,
    7px 7px,
    1px 24px;
  background-repeat: no-repeat;
}

.input:hover,
.select:hover {
  border-color: rgba(3, 105, 161, 0.55);
  background-color: #ffffff;
}

.input:focus-visible,
.select:focus-visible,
.button:focus-visible,
.button-secondary:focus-visible,
.topbar-link:focus-visible,
.quick-link:focus-visible,
.check-row input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(3, 105, 161, 0.18);
}

.input:focus-visible,
.select:focus-visible {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.select option {
  color: #0f172a;
  background: #ffffff;
}

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

.field-hint.success {
  color: var(--success);
  font-weight: 700;
}

.field-hint.danger {
  color: var(--danger);
  font-weight: 700;
}

.field-hint a,
.text-link {
  color: var(--brand-strong);
  text-decoration: none;
}

.field-hint a:hover,
.text-link:hover {
  text-decoration: underline;
}

.field-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.status-inline::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.status-inline.success {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
}

.status-inline.danger {
  background: rgba(220, 38, 38, 0.12);
  color: var(--danger);
}

.status-inline.warning {
  background: rgba(217, 119, 6, 0.12);
  color: var(--warning);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.button,
.button-secondary {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button {
  background: linear-gradient(135deg, #0369a1, #0f172a);
  color: #f8fafc;
  box-shadow: 0 12px 26px rgba(3, 105, 161, 0.22);
}

.button:hover:not(:disabled),
.button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  background: #e5e7eb;
  border-color: #cbd5e1;
  color: #94a3b8;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(148, 163, 184, 0.38);
  color: #0f172a;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #ffffff;
  transform: translateY(-1px);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.check-row input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.check-row label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  color: #334155;
  font-size: 16px;
  line-height: 1.5;
}

.note-box {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.16);
  color: #0f172a;
}

.note-box strong {
  display: block;
  margin-bottom: 6px;
}

.footer-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.gacha {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
  min-height: 174px;
  padding: 17px 20px;
  border: 1px solid rgba(14, 165, 233, .32);
  border-radius: 20px;
  background: linear-gradient(125deg, #eaf8ff 0%, #fff 52%, #eaf3ff 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.95), 0 14px 32px rgba(3,105,161,.10);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.gacha::before { content: ""; position: absolute; z-index: -1; inset: -55% auto auto -30%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,.25), transparent 66%); animation: gacha-ambient 6s ease-in-out infinite alternate; }
.gacha::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 34%, rgba(255,255,255,.65) 50%, transparent 66%); transform: translateX(-135%); }
.gacha.is-ready { border-color: rgba(2,132,199,.5); box-shadow: inset 0 1px rgba(255,255,255,.95), 0 16px 38px rgba(3,105,161,.15); }
.gacha.is-revealing::after { animation: gacha-sweep 1.15s ease-out both; }

.gacha-machine { position: relative; z-index: 1; flex: 0 0 78px; display: flex; flex-direction: column; align-items: center; padding-bottom: 6px; filter: drop-shadow(0 6px 7px rgba(2,68,112,.18)); }
.gacha.is-ready .gacha-machine { animation: gacha-float 3.2s ease-in-out infinite; }
.gacha-machine[aria-disabled="false"] { cursor: pointer; touch-action: manipulation; }
.gacha-machine[aria-disabled="false"]:hover { filter: drop-shadow(0 9px 10px rgba(2,68,112,.25)) brightness(1.04); }
.gacha-machine:focus-visible { outline: 3px solid #0284c7; outline-offset: 4px; border-radius: 8px; }
.gacha-globe { position: relative; width: 72px; height: 64px; overflow: hidden; border: 3px solid #0284b8; border-radius: 38px 38px 21px 21px; background: radial-gradient(circle at 29% 19%, #fff 0%, #d6f8ff 35%, #75d8f5 100%); box-shadow: inset -7px -7px 11px rgba(3,105,161,.17), inset 4px 4px 8px rgba(255,255,255,.9); }
.gacha-globe::after { content: ""; position: absolute; inset: 6px auto auto 10px; width: 23px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.8); transform: rotate(-25deg); }
.gacha-capsule { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(3,72,112,.25); border-radius: 50%; box-shadow: inset 0 -8px rgba(255,255,255,.45), 0 2px 3px rgba(3,72,112,.12); animation: gacha-capsule-idle 3s ease-in-out infinite; }
.capsule-one { left: 6px; bottom: 5px; background: #ffcc75; animation-delay: -.4s; }.capsule-two { left: 24px; bottom: 19px; background: #fb87ad; animation-delay: -1.3s; }.capsule-three { right: 4px; bottom: 4px; background: #96e7ab; animation-delay: -2.1s; }
.gacha-neck { width: 53px; height: 6px; background: #075985; }
.gacha-body { position: relative; width: 74px; height: 59px; border: 3px solid #075985; border-radius: 11px 11px 16px 16px; background: linear-gradient(150deg, #36c7f6, #087db7 57%, #075985); box-shadow: inset 3px 2px 7px rgba(255,255,255,.26); }
.gacha-body::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: -6px; height: 6px; border-radius: 2px 2px 6px 6px; background: #064464; }
.gacha-dial { position: absolute; top: 7px; left: 6px; width: 29px; height: 29px; border: 2px solid #dff7ff; border-radius: 50%; background: linear-gradient(145deg, #258fc0, #075985); box-shadow: inset 0 1px 3px rgba(255,255,255,.4), 0 2px 4px rgba(2,31,54,.25); }
.gacha-dial::before { content: ""; position: absolute; inset: 5px; border: 1px solid #9fdef4; border-radius: 50%; background: #0b658c; }
.gacha-handle { position: absolute; z-index: 1; top: 50%; left: 50%; width: 23px; height: 6px; transform: translate(-50%,-50%) rotate(-35deg); border: 1px solid #fff; border-radius: 999px; background: linear-gradient(#fff, #a9e5f4); box-shadow: 0 2px 3px rgba(2,31,54,.34); }
.gacha-slot { position: absolute; right: 7px; bottom: 8px; width: 19px; height: 19px; border: 2px solid #dff7ff; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #0b4b70, #062d4c 72%); box-shadow: inset 0 2px 4px rgba(0,13,30,.5), 0 1px 3px rgba(2,31,54,.2); }
.gacha-prize { position: absolute; z-index: 2; top: 102px; left: 50px; width: 18px; height: 18px; border: 2px solid rgba(3,72,112,.3); border-radius: 50%; background: linear-gradient(#ffd480 50%, #fff2cf 50%); box-shadow: 0 4px 7px rgba(2,68,112,.2); opacity: 0; }
.gacha-shadow { position: absolute; bottom: 2px; left: 10px; width: 58px; height: 6px; border-radius: 50%; background: rgba(3,70,105,.13); filter: blur(3px); }
.gacha-spark { position: absolute; z-index: 2; color: #38bdf8; line-height: 1; pointer-events: none; animation: gacha-twinkle 2.5s ease-in-out infinite; }
.spark-one { top: 13px; left: 10px; font-size: 13px; }.spark-two { top: 26px; left: 99px; font-size: 16px; animation-delay: -.8s; }.spark-three { bottom: 10px; left: 98px; font-size: 10px; animation-delay: -1.7s; }
.gacha-copy { position: relative; z-index: 2; min-width: 0; }
.gacha-tag { display: inline-block; color: #075985; font-size: 21px; font-weight: 800; line-height: 1.3; letter-spacing: .035em; }
.gacha-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 11px; }
.gacha-button { position: relative; overflow: hidden; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #0284c7, #0f172a); color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 7px 13px rgba(3,105,161,.18); transition: transform .2s ease, box-shadow .2s ease; }
.gacha-button::after { content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 35%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.36), transparent); transform: skewX(-25deg); }
.gacha.is-ready .gacha-button:not(:disabled)::after { animation: gacha-button-shine 3.8s ease-in-out infinite; }
.gacha-button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(3,105,161,.26); }
.gacha-button:not(:disabled):active { transform: translateY(1px) scale(.98); }
.gacha-button:disabled { background: #dbe5ee; color: #718096; box-shadow: none; cursor: not-allowed; }
.gacha-result { display: inline-block; color: #0369a1; font-size: 22px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; transform-origin: center; }
.gacha.has-prize .gacha-result { color: #047857; }
.gacha-status { display: inline-flex; align-items: center; max-width: 100%; min-height: 28px; margin: 9px 0 0 !important; padding: 4px 10px; border: 1px solid rgba(3,105,161,.12); border-radius: 8px; background: rgba(3,105,161,.08); color: #35526a; font-size: 14px !important; font-weight: 600; line-height: 1.4; }
.gacha-status:empty { display: none; }
.gacha.is-spinning { box-shadow: inset 0 1px rgba(255,255,255,.95), 0 0 0 4px rgba(56,189,248,.12), 0 18px 42px rgba(3,105,161,.23); }
.gacha.is-spinning .gacha-machine { animation: gacha-shake .36s ease-in-out infinite; }
.gacha.is-spinning .gacha-dial { animation: gacha-turn .52s linear infinite; }
.gacha.is-spinning .gacha-capsule { animation: gacha-bounce .42s ease-in-out infinite alternate; }
.gacha.is-spinning .capsule-two { animation-delay: -.18s; }.gacha.is-spinning .capsule-three { animation-delay: -.3s; }
.gacha.is-spinning .gacha-prize { animation: gacha-eject .85s 1s ease-out both; }
.gacha.is-revealing .gacha-result { animation: gacha-pop .7s cubic-bezier(.2,1.5,.35,1) both; }
.gacha.is-revealing .gacha-spark { animation: gacha-burst .9s ease-out both; }

@keyframes gacha-ambient { from { transform: translate(-8%,-5%) scale(.8); opacity: .55; } to { transform: translate(12%,9%) scale(1.2); opacity: 1; } }
@keyframes gacha-float { 0%,100% { transform: translateY(1px); } 50% { transform: translateY(-6px); } }
@keyframes gacha-capsule-idle { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-5px) rotate(6deg); } }
@keyframes gacha-twinkle { 0%,100% { opacity: .25; transform: scale(.7) rotate(-15deg); } 50% { opacity: 1; transform: scale(1.25) rotate(12deg); } }
@keyframes gacha-shake { 0%,100% { transform: translateX(-3px) rotate(-5deg); } 50% { transform: translateX(3px) rotate(5deg); } }
@keyframes gacha-turn { to { transform: rotate(360deg); } }
@keyframes gacha-bounce { from { transform: translate(-4px,4px) rotate(-15deg); } to { transform: translate(5px,-14px) rotate(18deg); } }
@keyframes gacha-eject { 0% { opacity: 0; transform: translate(0,-5px) scale(.45); } 20% { opacity: 1; } 55% { transform: translate(22px,24px) scale(1.15); } 100% { opacity: 0; transform: translate(43px,47px) scale(.8); } }
@keyframes gacha-sweep { to { transform: translateX(135%); } }
@keyframes gacha-pop { 0% { opacity: .25; transform: scale(.55) rotate(-8deg); } 55% { opacity: 1; transform: scale(1.3) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes gacha-burst { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1.8) rotate(40deg); } 100% { opacity: 0; transform: scale(.7) rotate(80deg); } }
@keyframes gacha-button-shine { 0%,55% { left: -50%; } 85%,100% { left: 125%; } }

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .status-grid,
  .field.split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .gacha { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 14px; min-height: 168px; }
  .gacha-machine, .gacha-illustration { width: 88px; }
  .gacha-illustration { height: 125px; }
  .gacha-tag { font-size: 19px; }
  .gacha-button { width: 100%; }
  .gacha-status { font-size: 13px !important; }
  .page-shell {
    width: calc(100% - 20px);
    max-width: 100%;
    padding-top: 14px;
  }

  .layout,
  .hero-panel,
  .content-panel,
  .wizard-form,
  .wizard-viewport,
  .wizard-track,
  .wizard-step {
    min-width: 0;
    max-width: 100%;
  }

  .layout {
    gap: 18px;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    padding: 16px;
  }

  .brand {
    width: 100%;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex: 0 0 auto;
  }

  .brand-copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-kicker {
    margin-bottom: 2px;
    font-size: 9px;
    letter-spacing: 0.08em;
    line-height: 1.1;
    white-space: nowrap;
  }

  .brand-title {
    font-size: 15px;
    line-height: 1.25;
    word-break: keep-all;
  }

  .brand-subtitle {
    font-size: 11px;
    line-height: 1.35;
  }

  .topbar-links {
    width: 100%;
    justify-content: flex-start;
    overflow: hidden;
  }

  .topbar-link {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding: 9px 10px;
    text-align: center;
    font-size: 13px;
  }

  .hero-panel,
  .content-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .content-header {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }

  .content-header h2 {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .content-header p {
    font-size: 13px;
    line-height: 1.55;
  }

  .wizard-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr);
    gap: 4px;
    padding: 8px 6px;
    overflow: hidden;
  }

  .wizard-dot {
    justify-content: center;
    gap: 4px;
    min-width: 0;
  }

  .wizard-dot strong {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    font-size: 12px;
  }

  .wizard-dot span {
    min-width: 0;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.2;
  }

  .wizard-line {
    width: 100%;
    min-width: 12px;
  }

  .status-grid,
  .status-grid.compact-status {
    grid-template-columns: minmax(0, 1fr);
  }

  .wizard-step {
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
  }

  .step-copy h3 {
    font-size: 1.25rem;
  }

  .step-copy p,
  .field-hint,
  .status-value {
    font-size: 13px;
    line-height: 1.55;
  }

  .status-card {
    padding: 12px;
  }

  .input,
  .select,
  .button,
  .button-secondary {
    min-height: 48px;
  }

  .input-large {
    min-height: 50px;
    font-size: 15px;
  }

  .field-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .actions {
    flex-direction: column;
  }

  .button,
  .button-secondary {
    box-sizing: border-box;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
