/* Sticker gallery / add / detail */

.sticker-main {
  padding-bottom: 40px;
}

.sticker-gallery-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.sticker-btn.ghost {
  background: transparent;
  border: 1px solid rgba(143, 164, 200, 0.35);
  color: #e2e8f0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sticker-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sticker-card-link {
  color: inherit;
  text-decoration: none;
}

.sticker-card-link:hover .sticker-card-open {
  border-color: rgba(125, 211, 252, 0.45);
}

.sticker-card figcaption {
  display: grid;
  gap: 2px;
}

.sticker-card-by {
  font-weight: 850;
}

.sticker-card-count {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 750;
}

.sticker-detail {
  display: grid;
  grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 8px;
}

.sticker-detail-art {
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(143, 164, 200, 0.22);
  background:
    linear-gradient(45deg, #1a2336 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(-45deg, #1a2336 25%, transparent 25%) 0 0 / 16px 16px,
    #0d1422;
  min-height: 260px;
}

.sticker-detail-art img {
  max-width: 100%;
  max-height: min(52vh, 420px);
  object-fit: contain;
}

.sticker-detail-meta .df-page-title {
  margin-bottom: 4px;
}

.sticker-share {
  margin: 0 0 14px;
  font-size: 0.84rem;
  font-weight: 700;
}

.sticker-share a {
  color: #7dd3fc;
}

.sticker-share-box {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(143, 164, 200, 0.22);
  background: rgba(10, 16, 28, 0.75);
}

.sticker-share-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

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

.sticker-share-input {
  min-width: 0;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(143, 164, 200, 0.28);
  background: #05080f;
  color: #e2e8f0;
  padding: 0 12px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
}

.sticker-share-open {
  color: #7dd3fc;
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
  word-break: break-all;
}

/* Shiny gamble CTA */
.sticker-gamble-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin: 0 0 16px;
  padding: 0 18px;
  border-radius: 14px;
  border: 2px solid rgba(255, 230, 140, 0.85);
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(125deg, #f6d365 0%, #fda085 28%, #f6d365 55%, #ff9a9e 78%, #f6d365 100%);
  background-size: 220% 220%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 10px 28px rgba(255, 160, 60, 0.35),
    0 0 32px rgba(255, 215, 80, 0.28);
  animation: stickerGambleGlow 2.4s ease-in-out infinite, stickerGambleShift 4.5s linear infinite;
}
.sticker-gamble-btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 14px 34px rgba(255, 160, 60, 0.45),
    0 0 48px rgba(255, 220, 100, 0.45);
}
.sticker-gamble-shine {
  position: absolute;
  inset: -40% -30%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.15) 55%,
    transparent 65%
  );
  transform: translateX(-60%);
  animation: stickerGambleShimmer 2.2s ease-in-out infinite;
  pointer-events: none;
}
.sticker-gamble-text {
  position: relative;
  z-index: 1;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 950;
  letter-spacing: 0.03em;
  color: #2a1408;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
@keyframes stickerGambleShimmer {
  0%, 15% { transform: translateX(-70%) skewX(-12deg); opacity: 0; }
  35% { opacity: 1; }
  55%, 100% { transform: translateX(70%) skewX(-12deg); opacity: 0; }
}
@keyframes stickerGambleGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18) inset,
      0 10px 28px rgba(255, 160, 60, 0.32),
      0 0 28px rgba(255, 215, 80, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.3) inset,
      0 12px 34px rgba(255, 140, 80, 0.5),
      0 0 46px rgba(255, 230, 120, 0.55);
  }
}
@keyframes stickerGambleShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.sticker-collect {
  margin: 0 0 16px;
  border: 1px solid rgba(143, 164, 200, 0.22);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(14, 20, 34, 0.92);
}

.sticker-collect-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.sticker-collectors {
  border: 1px solid rgba(143, 164, 200, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(12, 18, 32, 0.7);
}

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

.sticker-collector-list[hidden] {
  display: none !important;
}

.sticker-collector-list li {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(143, 164, 200, 0.12);
  font-size: 0.9rem;
  font-weight: 750;
  color: #e2e8f0;
}

.sticker-collector-list li:last-child {
  border-bottom: 0;
}

.sticker-collector-list strong {
  color: #7dd3fc;
}

.sticker-detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  font-weight: 800;
}

.sticker-detail-nav .sticker-btn {
  min-height: 42px;
  padding: 0 14px;
}

/* Homepage leaderboard */
.home-sticker-board {
  margin: 0 0 14px;
  border: 2px solid rgba(143, 164, 200, 0.26);
  background: rgba(21, 29, 46, 0.88);
}

.home-sticker-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--chrome, #1a2740);
  color: #fff;
}

.home-sticker-board-head a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.home-sticker-board ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-sticker-board li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(143, 164, 200, 0.12);
  font-weight: 800;
}

.home-sticker-board li:last-child {
  border-bottom: 0;
}

.home-sticker-board .rank {
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.home-sticker-board .who {
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-sticker-board .pts {
  color: #7dd3fc;
  font-size: 0.84rem;
}

.home-sticker-board-empty {
  margin: 0;
  padding: 14px 12px;
  color: #94a3b8;
  font-weight: 750;
  font-size: 0.88rem;
}

.home-sticker-board-foot {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(143, 164, 200, 0.14);
}

.home-sticker-board-foot a {
  color: #7dd3fc;
  font-weight: 850;
  text-decoration: none;
  font-size: 0.86rem;
}

@media (max-width: 820px) {
  .sticker-detail {
    grid-template-columns: 1fr;
  }
}

.sticker-submit {
  margin: 8px 0 22px;
  border: 1px solid rgba(143, 164, 200, 0.24);
  background: rgba(14, 20, 34, 0.92);
  border-radius: 12px;
  overflow: hidden;
}

.sticker-submit-head,
.sticker-gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: rgba(26, 39, 64, 0.9);
  border-bottom: 1px solid rgba(143, 164, 200, 0.18);
}

.sticker-submit-head strong,
.sticker-gallery-head strong {
  font-size: 1rem;
}

.sticker-submit-head span,
.sticker-gallery-head span {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 750;
}

.sticker-form {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.sticker-field {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #cbd5e1;
}

.sticker-field input {
  min-height: 44px;
  border: 1px solid rgba(143, 164, 200, 0.28);
  border-radius: 10px;
  background: #0a101c;
  color: #f1f5f9;
  padding: 0 12px;
  font: inherit;
  font-weight: 750;
}

.sticker-drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 22px 16px;
  border: 2px dashed rgba(143, 164, 200, 0.35);
  border-radius: 12px;
  background: rgba(8, 12, 22, 0.65);
  text-align: center;
  cursor: pointer;
  color: #e2e8f0;
}

.sticker-drop:hover,
.sticker-drop.is-drag {
  border-color: rgba(125, 211, 252, 0.65);
  background: rgba(30, 58, 95, 0.35);
}

.sticker-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.sticker-drop-icon {
  font-size: 1.5rem;
  color: #7dd3fc;
}

.sticker-drop strong {
  font-size: 0.95rem;
}

.sticker-drop em {
  color: #94a3b8;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.sticker-preview {
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 10px;
  background:
    linear-gradient(45deg, #1a2336 25%, transparent 25%) -8px 0 / 16px 16px,
    linear-gradient(-45deg, #1a2336 25%, transparent 25%) -8px 0 / 16px 16px,
    linear-gradient(45deg, transparent 75%, #1a2336 75%) -8px 0 / 16px 16px,
    linear-gradient(-45deg, transparent 75%, #1a2336 75%) -8px 0 / 16px 16px,
    #0d1422;
}

.sticker-preview[hidden] {
  display: none !important;
}

.sticker-preview img {
  max-width: min(240px, 70vw);
  max-height: 180px;
  object-fit: contain;
}

.sticker-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.sticker-btn {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  background: #3d5f9a;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}

.sticker-btn.ghost {
  background: transparent;
  border: 1px solid rgba(143, 164, 200, 0.35);
  color: #e2e8f0;
}

.sticker-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sticker-msg {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
}

.sticker-msg[hidden] {
  display: none !important;
}

.sticker-msg.is-error {
  color: #fca5a5;
}

.sticker-msg.is-ok {
  color: #86efac;
}

.sticker-gallery {
  margin-top: 8px;
  border: 1px solid rgba(143, 164, 200, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(12, 18, 32, 0.7);
}

.sticker-empty {
  padding: 28px 16px;
  text-align: center;
  color: #94a3b8;
  font-weight: 750;
}

.sticker-empty[hidden] {
  display: none !important;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 148px);
  justify-content: start;
  gap: 12px;
  padding: 14px;
}

.sticker-grid[hidden] {
  display: none !important;
}

.sticker-card {
  margin: 0;
  width: 148px;
  display: grid;
  gap: 8px;
}

.sticker-card-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  aspect-ratio: 1;
  padding: 12px;
  box-sizing: border-box;
  border: 1px solid rgba(143, 164, 200, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(45deg, #1a2336 25%, transparent 25%) 0 0 / 14px 14px,
    linear-gradient(-45deg, #1a2336 25%, transparent 25%) 0 0 / 14px 14px,
    #0d1422;
  cursor: pointer;
  overflow: hidden;
}

.sticker-card-open:hover {
  border-color: rgba(125, 211, 252, 0.45);
}

.sticker-card-open img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.sticker-card figcaption {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 850;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticker-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(4px);
}

.sticker-lightbox[hidden] {
  display: none !important;
}

.sticker-lightbox img {
  max-width: min(90vw, 720px);
  max-height: min(70vh, 720px);
  object-fit: contain;
  background:
    linear-gradient(45deg, #1a2336 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(-45deg, #1a2336 25%, transparent 25%) 0 0 / 16px 16px,
    #0d1422;
  border-radius: 12px;
  padding: 16px;
}

.sticker-lightbox p {
  margin: 0;
  text-align: center;
  color: #fff;
  font-weight: 900;
}

.sticker-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(20, 28, 44, 0.9);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  .sticker-grid {
    grid-template-columns: repeat(auto-fill, 120px);
    gap: 10px;
    padding: 12px;
  }
  .sticker-card {
    width: 120px;
  }
  .sticker-card-open {
    width: 120px;
    height: 120px;
    padding: 10px;
  }
}
