:root {
  --ink: #17304f;
  --gold: #dca64b;
  --gold-strong: #bf8430;
  --card: rgba(255, 248, 238, 0.84);
  --line: rgba(255, 255, 255, 0.6);
  --shadow: 0 24px 60px rgba(31, 57, 95, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #d6e7f7;
}

.scene-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(173, 208, 249, 0.85), rgba(251, 245, 232, 0.5)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  filter: blur(1px);
  transform: scale(1.03);
}

.scene-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
}

.layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr 340px;
  gap: 22px;
  padding: 22px;
}

.wish-nav,
.admin-panel,
.banner-panel {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.wish-nav,
.admin-panel {
  border-radius: 28px;
}

.wish-nav {
  padding: 18px 16px;
}

.wish-logo {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  background: linear-gradient(180deg, #3b4f79, #253149);
  color: #f9e2a5;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 18px;
}

.wish-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wish-card {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(143, 177, 214, 0.22);
  border: 1px solid rgba(91, 125, 164, 0.18);
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.wish-card.active {
  outline: 3px solid rgba(239, 204, 131, 0.6);
}

.wish-card:hover {
  transform: translateY(-1px);
}

.wish-card img {
  display: block;
  width: 100%;
  height: 114px;
  object-fit: cover;
}

.wish-card-title {
  padding: 10px 12px 14px;
  font-size: 16px;
  font-weight: 700;
}

.main-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 4px;
}

.site-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
}

.subtitle {
  margin-top: 6px;
  font-size: 15px;
  color: rgba(23, 48, 79, 0.72);
}

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

.currency-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(37, 54, 84, 0.88);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.banner-panel {
  position: relative;
  min-height: 700px;
  border-radius: 32px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 248, 238, 0.88) 0%, rgba(255, 248, 238, 0.58) 40%, rgba(255, 248, 238, 0.10) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.banner-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 56%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.96;
}

.banner-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 44px 42px 34px;
}

.banner-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #39b5df, #55d1f1);
  color: #fff;
  font-weight: 700;
}

.banner-title {
  margin: 18px 0 10px;
  font-size: 74px;
  line-height: 1;
  letter-spacing: 2px;
}

.banner-description {
  max-width: 520px;
  margin: 0;
  font-size: 21px;
  line-height: 1.8;
  font-weight: 600;
}

.hero-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
}

.featured-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  min-width: 210px;
  border-radius: 22px;
  background: rgba(23, 48, 79, 0.72);
  color: #fff7ea;
}

.featured-label {
  display: inline-block;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2cb7a, #d99334);
  color: #5b3510;
  font-weight: 800;
}

.featured-box strong {
  font-size: 38px;
}

.featured-weapon {
  font-size: 16px;
  opacity: 0.9;
}

.time-left {
  font-size: 18px;
  font-weight: 700;
}

.banner-actions {
  display: flex;
  gap: 18px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.wish-button,
.admin-login,
.admin-save {
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wish-button:hover,
.admin-login:hover,
.admin-save:hover {
  transform: translateY(-2px);
}

.wish-button {
  min-width: 220px;
  padding: 18px 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffef9, #f7eddc);
  color: var(--gold-strong);
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(191, 132, 48, 0.18);
}

.wish-button-accent {
  background: linear-gradient(180deg, #fff5dc, #f2d8a7);
}

.draw-result {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.result-chip {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.result-chip span {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.result-chip strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
}

.rarity-5 {
  border: 1px solid rgba(211, 162, 52, 0.6);
}

.rarity-4 {
  border: 1px solid rgba(120, 120, 220, 0.45);
}

.rarity-3 {
  border: 1px solid rgba(120, 120, 120, 0.18);
}

.footer-note {
  margin-top: 26px;
  font-size: 14px;
  color: rgba(23, 48, 79, 0.72);
}

.admin-panel {
  padding: 20px 18px;
  overflow: auto;
}

.admin-panel h2 {
  margin: 4px 0 8px;
}

.admin-tip {
  margin: 0 0 14px;
  color: rgba(23, 48, 79, 0.68);
  line-height: 1.6;
}

.editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(89, 121, 160, 0.24);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-login,
.admin-save {
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
}

.admin-login {
  margin-top: 10px;
  background: linear-gradient(180deg, #f9cf75, #d89538);
  color: #56320c;
}

.admin-save {
  margin-top: 8px;
  background: linear-gradient(180deg, #335c8d, #204068);
  color: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(23, 48, 79, 0.92);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

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

.hidden {
  display: none;
}

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

  .wish-nav,
  .admin-panel {
    order: 2;
  }

  .main-panel {
    order: 1;
  }

  .banner-panel {
    min-height: 560px;
  }

  .banner-art {
    width: 48%;
  }
}

@media (max-width: 740px) {
  .layout {
    padding: 14px;
    gap: 14px;
  }

  .topbar,
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .banner-copy {
    padding: 28px 22px 26px;
  }

  .banner-title {
    font-size: 48px;
  }

  .banner-description {
    font-size: 17px;
  }

  .wish-button {
    width: 100%;
    min-width: 0;
    font-size: 20px;
  }

  .banner-art {
    width: 100%;
    opacity: 0.32;
  }
}
