@font-face {
  font-family: Archivo;
  src: url("/fonts/archivo-black.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Space;
  src: url("/fonts/space-mono.woff2") format("woff2");
  font-display: swap;
}
:root {
  --bg: #0a0a0c;
  --panel: #151518;
  --text: #ececf1;
  --muted: #a0a0aa;
  --accent: #a46bff;
  --purple: #9945ff;
  --line: #ececf1;
  --subtle: #323237;
  --danger: #ff777f;
  --green: #bcf27c;
  --yellow: #f2d970;
  --shadow: 5px 5px 0 var(--line);
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 Arial,
    Helvetica,
    sans-serif;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 5px;
}
:focus-visible {
  outline: 3px solid var(--accent);
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
::selection {
  background: var(--purple);
  color: white;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Archivo, Arial, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.6rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
h3 {
  line-height: 1.35;
}
p {
  margin-bottom: 1.2rem;
}
.mono,
.eyebrow,
.btn,
.badge,
.nav-links,
.field-label {
  font-family: Space, monospace;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.mono {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.container {
  max-width: 1240px;
  margin: auto;
  padding: 36px 32px 72px;
}
.narrow {
  max-width: 880px;
}
.nav {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 16px 32px;
  border-bottom: 2px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--purple);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  font: 1.6rem Archivo;
}
.brand-name {
  font: 1.65rem Archivo;
  letter-spacing: -0.07em;
}
.brand-caption {
  display: block;
  font: 0.625rem Space;
  letter-spacing: 0.13em;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: 38px;
  font-size: 0.8rem;
}
.nav-links a:hover,
.footer a:hover {
  color: var(--accent);
}
.nav-auth {
  margin-left: auto;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: bold;
  line-height: 1.4;
  border-radius: 0;
  text-decoration: none;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.btn:hover:not(:disabled) {
  background: var(--panel);
}
.btn-primary {
  background: var(--purple);
  box-shadow: var(--shadow);
}
.btn-primary:hover:not(:disabled) {
  background: #8140d8;
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--line);
}
.btn-small {
  font-size: 0.75rem;
  padding: 8px 12px;
  min-height: 40px;
}
.btn-approve {
  background: var(--green);
  color: var(--bg);
}
.btn-danger {
  color: var(--danger);
  border-color: var(--danger);
}
.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.ticker {
  min-height: 33px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 32px;
  background: var(--purple);
  color: white;
  font: 0.7rem Space;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: currentColor;
  margin-right: 8px;
}
.hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 22px 0 44px;
}
.hero h1 {
  margin: 16px 0 22px;
  max-width: 720px;
}
.hero h1 span {
  display: inline;
  background: var(--text);
  color: var(--bg);
  padding: 0 0.12em;
  box-decoration-break: clone;
}
.hero p {
  max-width: 530px;
  color: var(--muted);
  font-size: 1.05rem;
}
.archive-stamp {
  border: 2px solid var(--line);
  box-shadow: 7px 7px 0 var(--line);
  transform: rotate(1deg);
}
.panel-title {
  padding: 10px 16px;
  border-bottom: 2px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font: 0.75rem Space;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stamp-body {
  padding: 24px;
}
.stamp-number {
  font: 4.5rem Archivo;
  line-height: 1.05;
}
.stamp-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--line);
}
.stamp-rules > div {
  padding: 12px;
  text-align: center;
  border-right: 2px solid var(--line);
}
.stamp-rules > div:last-child {
  border-right: 0;
}
.stamp-rules strong {
  display: block;
  font: 1.4rem Archivo;
}
.stamp-rules small {
  font: 0.65rem Space;
  color: var(--muted);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 16px 0;
}
.section-heading h2 {
  margin: 0;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
}
.search {
  position: relative;
  flex: 1;
  max-width: 430px;
}
.search input {
  padding-left: 42px;
}
.search-icon {
  position: absolute;
  top: 10px;
  left: 15px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter {
  padding: 9px 14px;
  border: 1px solid var(--subtle);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  min-height: 42px;
}
.filter.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  border: 2px solid var(--line);
  background: var(--bg);
  padding: 24px;
}
.video-card {
  padding: 0;
  transition: transform 0.15s;
}
.video-card:hover {
  transform: translateY(-4px);
}
.thumb {
  aspect-ratio: 16/9;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-label {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--text);
  color: var(--bg);
  font: 0.75rem Space;
  padding: 3px 8px;
}
.thumb-play {
  font-size: 2rem;
}
.video-card .meta {
  padding: 18px;
}
.video-card h3 {
  margin: 8px 0 12px;
  font-size: 1.15rem;
}
.badge {
  display: inline-flex;
  padding: 4px 8px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--subtle);
  line-height: 1.4;
}
.badge.published,
.badge.approved {
  color: var(--green);
  border-color: var(--green);
}
.badge.voting {
  color: var(--yellow);
  border-color: var(--yellow);
}
.badge.rejected,
.badge.expired {
  color: var(--danger);
  border-color: var(--danger);
}
.empty-state {
  border: 2px dashed var(--subtle);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 36px;
}
.empty-symbol {
  font: 3rem Archivo;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--muted);
  max-width: 450px;
}
.footnote {
  font-size: 0.8rem;
  color: var(--muted);
}
.footer {
  border-top: 2px solid var(--line);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font: 0.75rem Space;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.page-header {
  margin: 16px 0 32px;
  max-width: 760px;
}
.page-header h1 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  margin: 12px 0 18px;
}
.page-header p {
  color: var(--muted);
  max-width: 620px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, 1fr);
  gap: 32px;
  align-items: flex-start;
}
.field-label,
label {
  display: block;
  font-size: 0.875rem;
  margin: 20px 0 8px;
}
input[type="text"],
input[type="search"],
input[type="date"],
textarea,
select {
  display: block;
  width: 100%;
  background: var(--panel);
  border: 1px solid #777780;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 0;
}
input::placeholder,
textarea::placeholder {
  color: #9696a2;
}
textarea {
  resize: vertical;
}
.dropzone {
  border: 2px dashed #777780;
  padding: 30px;
  text-align: center;
  background: var(--panel);
}
.dropzone input {
  max-width: 100%;
  font-size: 0.875rem;
}
.dropzone strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.progress {
  height: 10px;
  background: var(--subtle);
  margin: 20px 0;
}
.progress > div {
  height: 100%;
  background: var(--purple);
  transition: width 0.2s;
}
.steps {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  padding: 16px 0;
  border-bottom: 1px solid var(--subtle);
  display: flex;
  gap: 16px;
  line-height: 1.4;
}
.steps li:before {
  counter-increment: steps;
  content: "0" counter(steps);
  font: 0.9rem Space;
  color: var(--accent);
}
.steps li strong {
  display: block;
  margin-bottom: 4px;
}
.steps li span {
  font-size: 0.875rem;
  color: var(--muted);
}
.notice {
  border-left: 3px solid var(--accent);
  background: var(--panel);
  padding: 16px 20px;
  font-size: 0.875rem;
  line-height: 1.7;
}
.notice.warning {
  border-color: var(--yellow);
}
.error {
  color: var(--danger);
  background: #251417;
  padding: 12px 16px;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.success {
  color: var(--green);
  background: #152015;
  padding: 12px 16px;
}
.signin-panel {
  max-width: 700px;
  margin: 36px auto 72px;
  text-align: center;
  padding: 48px 32px;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}
.signin-panel h2 {
  margin: 20px 0;
}
.signin-panel p {
  max-width: 440px;
  margin: 0 auto 24px;
  color: var(--muted);
}
.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.rule-card {
  border: 1px solid var(--subtle);
  padding: 16px;
}
.rule-card strong {
  display: block;
  font: 1.8rem Archivo;
}
.rule-card span {
  font-size: 0.8rem;
  color: var(--muted);
}
.submission {
  border: 1px solid var(--subtle);
  padding: 20px;
  margin: 14px 0;
}
.submission-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.submission h3 {
  margin-bottom: 8px;
}
.submission p {
  font-size: 0.9rem;
}
.vote-bar {
  display: flex;
  min-height: 8px;
  background: var(--subtle);
  margin: 16px 0;
}
.vote-bar > span {
  background: var(--green);
}
.vote-summary {
  display: flex;
  justify-content: space-between;
  font: 0.8rem Space;
  gap: 16px;
}
.checkbox-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: inherit;
  font-size: 0.9rem;
}
.checkbox-label input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex-shrink: 0;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
th,
td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--subtle);
}
th {
  color: var(--muted);
  font-weight: normal;
}
video {
  width: 100%;
  max-height: 70vh;
  background: black;
  display: block;
}
.player-frame {
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--subtle);
  margin: 32px 0;
}
.wallet-adapter-modal-wrapper {
  border: 2px solid var(--line) !important;
  border-radius: 0 !important;
  background: var(--bg) !important;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -80px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
.loading {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
}
.skeleton {
  height: 260px;
  background: var(--panel);
  border: 1px solid var(--subtle);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.collection {
  position: relative;
  aspect-ratio: 1.9;
  border: 2px solid var(--line);
  overflow: hidden;
  background: var(--panel);
  text-align: left;
  padding: 0;
}
.collection img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.collection:hover img {
  opacity: 0.7;
}
.collection span {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font: 1.15rem Archivo;
  color: white;
}
.wallet-error {
  max-width: 260px;
  font-size: 0.75rem;
  color: var(--danger);
}
@media (max-width: 900px) {
  .hero {
    gap: 32px;
    grid-template-columns: 1.4fr 1fr;
  }
  .nav {
    gap: 20px;
    padding: 16px 24px;
  }
  .nav-links {
    margin-left: 0;
    gap: 20px;
  }
  .container {
    padding: 28px 24px 60px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .ticker {
    padding: 7px 24px;
  }
  .archive-stamp {
    transform: none;
  }
  .stamp-body {
    padding: 20px;
  }
  .stamp-number {
    font-size: 3.5rem;
  }
  .brand-caption {
    display: none;
  }
}
@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
  }
  .brand-name {
    font-size: 1.5rem;
  }
  .nav-auth {
    order: 1;
  }
  .nav-links {
    order: 2;
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--subtle);
    padding-top: 14px;
  }
  .container {
    padding: 20px 16px 48px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 16px 0 36px;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .archive-stamp {
    max-width: none;
    box-shadow: 4px 4px 0 var(--line);
  }
  .stamp-body {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 16px;
  }
  .stamp-number {
    font-size: 2.8rem;
  }
  .ticker {
    padding: 8px 16px;
    justify-content: center;
  }
  .ticker span:nth-child(n + 3) {
    display: none;
  }
  .grid,
  .collection-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-direction: column;
  }
  .search {
    max-width: none;
  }
  .footer {
    flex-direction: column;
    padding: 24px 16px;
  }
  .btn {
    font-size: 0.75rem;
    padding: 10px 14px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .rule-grid {
    gap: 6px;
  }
  .rule-card {
    padding: 12px;
  }
  .rule-card strong {
    font-size: 1.4rem;
  }
  .card {
    padding: 20px;
  }
  .signin-panel {
    padding: 32px 20px;
  }
  .collection {
    aspect-ratio: 2.4;
  }
  .submission-head {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
