:root {
  color-scheme: dark;
  --bg: #1b1a14;
  --bg-soft: #231f17;
  --card: #262016;
  --card-strong: #2f281b;
  --text: #fffef0;
  --muted: #c5bea4;
  --accent: #fff7d6;
  --accent-strong: #f6d76b;
  --accent-warm: #ffe9a8;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 22px 50px rgba(9, 7, 3, 0.5);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 233, 168, 0.18), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(246, 215, 107, 0.18), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255, 247, 214, 0.12), transparent 55%),
    linear-gradient(140deg, rgba(27, 26, 20, 0.95), rgba(18, 16, 10, 0.95));
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.08;
  background-image: repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 6px);
  z-index: -2;
  pointer-events: none;
}

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: floatGlow 24s ease-in-out infinite;
}

.glow-1 {
  width: 52vmax;
  height: 52vmax;
  left: -10vmax;
  top: -12vmax;
  background: radial-gradient(circle, rgba(255, 247, 214, 0.55), rgba(255, 247, 214, 0));
  animation-duration: 28s;
}

.glow-2 {
  width: 60vmax;
  height: 60vmax;
  right: -15vmax;
  top: 10vmax;
  background: radial-gradient(circle, rgba(246, 215, 107, 0.5), rgba(246, 215, 107, 0));
  animation-duration: 32s;
  animation-delay: -10s;
}

.glow-3 {
  width: 46vmax;
  height: 46vmax;
  right: -5vmax;
  bottom: -18vmax;
  background: radial-gradient(circle, rgba(255, 233, 168, 0.45), rgba(255, 233, 168, 0));
  animation-duration: 26s;
  animation-delay: -16s;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(32px + env(safe-area-inset-top)) 6vw calc(72px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 56px;
  opacity: 0;
  transform: translateY(14px);
  animation: pageIn 0.8s ease forwards;
}

.ticker {
  overflow: hidden;
  border: 1px solid rgba(255, 247, 214, 0.2);
  border-radius: 14px;
  background: rgba(19, 16, 10, 0.7);
  padding: 10px 0;
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent-warm);
  animation: tickerMove 20s linear infinite;
  width: max-content;
}

.ticker-seq {
  display: inline-flex;
  gap: 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 56px;
  height: 56px;
}

.brand-title {
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.2em;
  font-family: "Bebas Neue", sans-serif;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link,
.btn,
.gallery-item,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.nav-cta {
  padding: 8px 14px;
  border: 1px solid rgba(255, 247, 214, 0.3);
  border-radius: 12px;
  color: var(--text);
}

.hero-copy h1 {
  font-size: clamp(32px, 4vw, 58px);
  margin: 12px 0 16px;
  line-height: 1.05;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: "Manrope", sans-serif;
  color: var(--accent-strong);
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
}

.hero-note {
  font-size: 14px;
  color: rgba(197, 190, 164, 0.85);
  font-family: "Manrope", sans-serif;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mascot-card {
  position: relative;
  width: min(380px, 90vw);
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, rgba(255, 247, 214, 0.08), rgba(47, 40, 27, 0.9));
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mascot-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.mascot-card.is-loaded .mascot-fallback {
  opacity: 0;
}

.mascot-img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: translateY(10px) scale(1.03);
}

.mascot-card canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.viewer-status {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(19, 16, 10, 0.72);
  border: 1px solid rgba(255, 247, 214, 0.2);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.mascot-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255, 247, 214, 0.35), transparent 65%);
  pointer-events: none;
}

.viewer-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(19, 16, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
  z-index: 2;
}

.mascot-mark {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 72px;
  opacity: 0.25;
}

.mascot-caption {
  font-size: 12px;
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}


.submit-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 36px);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.gallery-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.gallery-item {
  position: relative;
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  animation: tileIn 0.55s ease forwards;
  animation-delay: calc(var(--delay, 0) * 0.06s);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.gallery-meta {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  background: rgba(19, 16, 10, 0.8);
}

.gallery-meta span:first-child {
  color: var(--text);
  font-weight: 600;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 26px;
  border-radius: 18px;
  border: 1px dashed var(--border);
  color: var(--muted);
  background: rgba(19, 16, 10, 0.6);
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "Manrope", sans-serif;
}

.btn-primary {
  background: var(--accent-strong);
  color: #1b1a14;
  box-shadow: 0 10px 24px rgba(246, 215, 107, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--accent-warm);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 231, 168, 0.4);
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links span {
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 7, 0.75);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, rgba(39, 33, 22, 0.95), rgba(21, 17, 10, 0.98));
  border-radius: 20px;
  padding: 28px;
  width: min(760px, 92vw);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(12px);
  transition: transform 0.2s ease;
  -webkit-overflow-scrolling: touch;
  max-height: 90dvh;
  overflow: auto;
}

.modal.is-open .modal-content {
  transform: translateY(0);
}

.modal-content-wide {
  width: min(860px, 94vw);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
}

.modal-body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.modal-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(17, 14, 8, 0.6);
  border: 1px solid rgba(255, 247, 214, 0.12);
}

.modal-mark {
  width: 64px;
}

.modal-copy {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.modal-list {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.field input {
  padding: 12px 2px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 247, 214, 0.3);
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.preview {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.helper {
  font-size: 13px;
  color: rgba(197, 190, 164, 0.85);
}

.error {
  background: rgba(255, 110, 110, 0.2);
  color: #ffd0d0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.status {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  background: rgba(246, 215, 107, 0.18);
  color: var(--accent);
  border: 1px solid rgba(246, 215, 107, 0.35);
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.art-view {
  display: grid;
  gap: 16px;
}

.modal-img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 16px;
  background: #15120b;
}

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

.art-title {
  font-size: 18px;
  font-weight: 600;
}

.art-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.twitter-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.discord-tag {
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

body.modal-open {
  overflow: hidden;
}

@keyframes pageIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tileIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(6vmax, -4vmax, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-4vmax, 6vmax, 0) scale(0.96);
  }
}

@keyframes tickerMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

 
}

@media (max-width: 720px) {
  .page {
    padding: 24px 5vw calc(56px + env(safe-area-inset-bottom));
    gap: 40px;
  }

  .logo {
    width: 46px;
    height: 46px;
  }

  .brand-title {
    font-size: 18px;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-link {
    font-size: 12px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-item img {
    height: auto;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .modal-content,
  .modal-content-wide {
    width: min(96vw, 560px);
    max-height: 88vh;
    overflow: auto;
  }

  .modal-img {
    max-height: 50vh;
  }

  .art-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .glow,
  .ticker-track {
    animation: none;
  }

  .page,
  .gallery-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-note {
    font-size: 12px;
  }

  .gallery-item img {
    height: auto;
  }

  .btn {
    padding: 12px 18px;
  }

  .glow {
    filter: blur(54px);
    opacity: 0.45;
  }
}
