:root {
  --background: #f6f4fb;
  --surface: #ffffff;
  --surface-strong: #fbf9ff;
  --text: #171226;
  --muted: #625b78;
  --line: #ded5ef;
  --line-strong: #c8b8e8;
  --violet: #6236c5;
  --violet-dark: #2a1559;
  --gold: #f5bd27;
  --orange: #f27722;
  --cyan: #18bcd4;
  --danger: #cf3030;
  --shadow: 0 14px 32px rgba(42, 21, 89, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(98, 54, 197, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 119, 34, 0.05) 1px, transparent 1px),
    var(--background);
  background-size: 28px 28px;
  color: var(--text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

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

.header,
.brand,
.account,
.card-header,
.split,
.inline-form,
.theme-meta,
.user-row,
.number-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header {
  justify-content: space-between;
  padding: 14px 0 22px;
  border-bottom: 1px solid var(--line-strong);
}

.account {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.brand {
  min-width: 0;
}

.logo {
  width: 96px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 14px rgba(98, 54, 197, 0.18));
}

.eyebrow {
  margin: 5px 0 0;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

h1,
h2 {
  margin: 0;
}

h1 {
  color: var(--violet-dark);
  font-size: 34px;
  line-height: 1.05;
}

h2 {
  color: var(--text);
  font-size: 20px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.side,
.stack,
.theme-list,
.user-list {
  display: grid;
  gap: 14px;
}

.poll,
.side,
.card {
  min-width: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.poll {
  padding: 0;
  overflow: hidden;
}

.poll .card-header {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(98, 54, 197, 0.08), rgba(245, 189, 39, 0.1));
}

.card-header {
  justify-content: space-between;
}

.poll-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.result-reveal-status {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 14px 16px 0;
  padding: 12px 14px;
  border: 1px solid rgba(245, 189, 39, 0.65);
  border-radius: 6px;
  background: #fff9e7;
  color: var(--violet-dark);
}

.result-reveal-status[hidden] {
  display: none;
}

.result-reveal-status.has-error {
  border-color: #efb3b3;
  background: #fff4f4;
  color: var(--danger);
}

.drum-indicator {
  display: inline-flex;
  gap: 4px;
  align-items: flex-end;
  height: 18px;
}

.drum-indicator i {
  width: 5px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
  animation: drum-bar 420ms ease-in-out infinite alternate;
}

.drum-indicator i:nth-child(2) {
  height: 16px;
  animation-delay: 120ms;
}

.drum-indicator i:nth-child(3) {
  height: 11px;
  animation-delay: 240ms;
}

.card-header p,
.card p,
small {
  color: var(--muted);
}

.theme-list {
  padding: 16px;
}

.theme-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--surface-strong);
}

.theme-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  cursor: pointer;
}

.theme-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--violet);
}

.result-row {
  border-left-color: #18bcd4;
}

.result-row.result-selected {
  border-color: rgba(98, 54, 197, 0.5);
  border-left: 4px solid var(--violet);
  background: #f6f2ff;
}

.result-choice {
  cursor: default;
}

.result-rank {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #edf9fb;
  color: #0e7383;
  font-weight: 900;
}

.result-selected .result-rank {
  background: var(--violet);
  color: white;
}

.result-votes,
.results-countdown {
  color: var(--violet-dark);
  white-space: nowrap;
}

.live-result-votes {
  color: var(--violet-dark);
  white-space: nowrap;
}

.live-result-votes[hidden] {
  display: none;
}

.live-result-row {
  border-left-color: var(--cyan);
}

.live-result-row.live-winner {
  border-color: rgba(245, 189, 39, 0.85);
  border-left: 4px solid var(--gold);
  background: #fffaf0;
  box-shadow: 0 8px 24px rgba(245, 189, 39, 0.2);
}

.theme-list.is-drumroll .theme-row {
  animation: result-suspense 360ms ease-in-out infinite alternate;
}

.theme-list.is-drumroll .theme-row:nth-child(2n) {
  animation-delay: 90ms;
}

.theme-list.is-drumroll .theme-row:nth-child(3n) {
  animation-delay: 180ms;
}

.vote-confetti {
  position: fixed;
  z-index: 1500;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.vote-confetti i {
  position: absolute;
  top: -18px;
  width: 9px;
  height: 16px;
  border-radius: 1px;
  animation-name: vote-confetti-fall;
  animation-timing-function: cubic-bezier(.2,.7,.3,1);
  animation-fill-mode: forwards;
}

@keyframes drum-bar {
  from { transform: scaleY(0.55); opacity: 0.55; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes result-suspense {
  from { transform: translateX(-2px); }
  to { transform: translateX(2px); }
}

@keyframes vote-confetti-fall {
  0% { transform: translate3d(0, -5vh, 0) rotate(0); opacity: 1; }
  100% { transform: translate3d(var(--confetti-drift), 110vh, 0) rotate(var(--confetti-turn)); opacity: 0.95; }
}

.vote-detail-button {
  text-decoration: none;
}

.vote-detail-button[aria-expanded="true"] {
  border-color: var(--violet);
  background: #f1ecfb;
  color: var(--violet);
}

.theme-vote-details {
  grid-column: 1 / -1;
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f5fb;
}

.theme-vote-details[hidden] {
  display: none;
}

.theme-vote-details[aria-busy="true"] {
  color: var(--muted);
}

.theme-vote-details.has-error {
  color: var(--danger);
}

.theme-vote-details ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.theme-vote-details li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.theme-vote-details p {
  margin: 8px 0 0;
}

.theme-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.theme-main strong {
  overflow-wrap: anywhere;
}

.theme-meta {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.vote-link {
  color: var(--violet-dark);
  font-weight: 800;
  text-decoration-color: rgba(98, 54, 197, 0.35);
  text-underline-offset: 3px;
}

.vote-details {
  margin: 16px 16px 0;
  padding: 14px;
  border: 1px solid rgba(24, 188, 212, 0.35);
  border-radius: 8px;
  background: #f2fdff;
}

.vote-details ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.vote-details li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(24, 188, 212, 0.2);
}

.small-link {
  color: var(--violet);
  font-weight: 800;
  text-decoration: none;
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: #f1ecfb;
  color: var(--muted);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.pill {
  border: 1px solid var(--line-strong);
  background: white;
  color: var(--violet-dark);
}

.tag.green {
  background: #e9fbfd;
  color: #0e7383;
}

.tag.gold {
  background: #fff0c7;
  color: #7a5300;
}

.challenge {
  margin: 14px 0;
  padding: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--violet-dark), #3c1b7a);
  color: white !important;
  font-size: 18px;
  font-weight: 800;
}

.challenge-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 12px 0;
  background: var(--surface-strong);
}

.challenge-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: stretch;
  margin-top: 10px;
}

.challenge-actions > .button {
  width: 100%;
  min-width: 0;
}

.cover-upload {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  margin: 0;
}

.upload-cover-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  cursor: pointer;
}

.cover-upload-input {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: white;
  color: var(--text);
  padding: 0 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

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

.button.primary {
  border-color: var(--violet);
  background: var(--violet);
  color: white;
}

.button.discord {
  border-color: #5865f2;
  background: #5865f2;
  color: white;
}

.discord-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
}

.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.button.dark {
  border-color: var(--violet-dark);
  background: var(--violet-dark);
  color: white;
}

.button.outline {
  border-color: var(--violet);
  color: var(--violet);
}

.button.secondary {
  border-color: var(--line-strong);
  color: var(--violet-dark);
}

.button.danger {
  border-color: var(--danger);
  color: var(--danger);
}

input,
select {
  min-height: 38px;
  border: 1px solid #cfc3e7;
  border-radius: 6px;
  background: white;
  padding: 0 12px;
  color: var(--text);
  font: inherit;
}

input:focus,
select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(98, 54, 197, 0.14);
  outline: none;
}

.stack input,
.stack select,
.inline-form input {
  width: 100%;
}

.inline-form {
  min-width: 360px;
}

.number-row {
  gap: 8px;
}

.number-row label {
  color: var(--orange);
  font-size: 22px;
  font-weight: 900;
}

.number-row input {
  min-width: 84px;
}

.current-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.strikes {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.strike {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e2ddea;
  color: #8b849a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.strike.red {
  background: #ffe0e0;
  color: var(--danger);
}

.mini-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: white;
  color: var(--violet-dark);
  font-weight: 800;
  cursor: pointer;
}

.mini-button {
  padding: 0 10px;
  font-size: 12px;
}

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.danger-icon {
  border-color: #efb3b3;
  color: var(--danger);
}

.theme-edit {
  position: relative;
}

.theme-edit summary {
  list-style: none;
}

.theme-edit summary::-webkit-details-marker {
  display: none;
}

.row-edit-form {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) auto;
  gap: 8px;
  width: min(720px, calc(100vw - 40px));
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.theme-meta form {
  margin: 0;
}

.admin-status {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.history-card .card-header {
  margin: -16px -16px 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(98, 54, 197, 0.06), rgba(24, 188, 212, 0.08));
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-row,
.history-edit {
  display: flex;
  gap: 10px;
  align-items: center;
}

.history-row {
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.history-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.history-edit {
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}

.history-edit input {
  flex: 1 1 auto;
  min-width: 180px;
}

.history-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 38px;
  border-radius: 6px;
  background: #fff0c7;
  color: #7a5300;
  font-weight: 900;
}

.history-vote-details {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(24, 188, 212, 0.35);
  border-radius: 8px;
  background: #f2fdff;
}

.history-vote-details ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.history-vote-details li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(24, 188, 212, 0.2);
}

.archive-intro {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.archive-card {
  display: grid;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.archive-card:hover {
  border-color: var(--violet);
}

.archive-thumb {
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--surface-strong);
  overflow: hidden;
}

.archive-thumb img,
.archive-detail-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 140px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(98, 54, 197, 0.86), rgba(245, 189, 39, 0.72)),
    var(--violet-dark);
  color: white;
  font-size: 28px;
  font-weight: 900;
}

.archive-card-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.archive-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.archive-card-top small {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.archive-card-body strong {
  min-height: 42px;
  overflow-wrap: anywhere;
}

.archive-number {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #fff0c7;
  color: #7a5300;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.archive-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 0;
  margin-top: 20px;
  overflow: hidden;
  padding: 0;
}

.archive-detail-cover {
  display: block;
  min-height: 260px;
  max-height: 520px;
  background: var(--surface-strong);
  overflow: hidden;
}

.archive-detail-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  padding: 20px;
}

.archive-title-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: 0 0 4px;
}

.archive-title-panel h2 {
  color: var(--violet-dark);
  font-size: 30px;
  line-height: 1.1;
}

.archive-title-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  color: var(--muted);
}

.archive-title-meta strong {
  color: rgba(98, 91, 120, 0.62);
  font-size: 16px;
  line-height: 1;
}

.archive-cover-form {
  margin-top: 8px;
}

.archive-credits {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.archive-credits p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.archive-credits strong {
  color: var(--violet-dark);
}

.archive-meta-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.mt {
  margin-top: 10px;
}

.notice,
.error {
  border-radius: 6px;
  padding: 12px 14px;
  font-weight: 800;
}

.notice {
  background: #eefbf6;
  border: 1px solid #b8ddcf;
  color: #0f665c;
}

.error {
  background: #fff0f0;
  border: 1px solid #e9b7b7;
  color: #9e2727;
}

.empty,
.empty-small {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
}

.empty {
  padding: 24px;
}

.full {
  margin-top: 20px;
}

.user-row {
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.user-row span {
  display: grid;
  gap: 6px;
  margin-right: auto;
}

.brand-logo,
.brand-title,
.brand-title:link,
.brand-title:visited,
.brand-title:hover,
.brand-title:focus,
.brand-title:active {
  color: var(--violet-dark);
  text-decoration: none !important;
  border-bottom: 0 !important;
}

.brand-title:hover {
  color: var(--violet);
}

.theme-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.theme-status {
  display: grid;
  grid-template-rows: auto auto;
  gap: 4px;
  justify-items: center;
  align-items: center;
  min-width: 68px;
}

.theme-status .tag {
  grid-row: 1;
  justify-self: center;
}

.theme-status .strikes {
  grid-row: 2;
  justify-content: center;
}

.challenge-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.archive-intro {
  display: none;
}

.archive-card-body {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr);
  padding-top: 12px;
}

.archive-card-body .archive-number {
  grid-column: 1;
  grid-row: 1;
}

.archive-card-body > small {
  position: static;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  color: rgba(98, 91, 120, 0.82);
  font-size: 13px;
  white-space: nowrap;
}

.archive-card-body > strong {
  grid-column: 1 / -1;
  grid-row: 2;
}

.archive-card-body > small + small {
  display: none;
}

.archive-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
}

.archive-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.archive-nav-item.next {
  justify-content: flex-end;
}

.archive-nav-number {
  color: rgba(98, 91, 120, 0.58);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.archive-nav-arrow {
  display: inline-grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  border: 1px solid rgba(98, 91, 120, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(98, 91, 120, 0.72);
  text-decoration: none !important;
  box-shadow: none;
  line-height: 0;
  overflow: hidden;
}

.archive-nav-arrow:hover {
  border-color: rgba(98, 91, 120, 0.48);
  color: rgba(42, 21, 89, 0.7);
  background: rgba(255, 255, 255, 0.72);
}

.archive-nav-arrow svg {
  display: block;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  fill: none !important;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.archive-nav-arrow path {
  fill: none !important;
  stroke: currentColor;
}

.gallery-section {
  padding: 16px;
}

.gallery-heading,
.creator-header,
.creator-group-heading,
.lightbox-caption {
  display: flex;
  align-items: center;
}

.gallery-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.gallery-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.gallery-grid {
  columns: 4 230px;
  column-gap: 14px;
}

.member-gallery-grid.is-masonry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 2px;
  gap: 14px;
  columns: auto;
}

.member-gallery-grid.is-masonry .gallery-item {
  display: block;
  margin: 0;
}

.gallery-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  break-inside: avoid;
  border-radius: 6px;
  background: #17151b;
  box-shadow: 0 8px 22px rgba(23, 18, 38, 0.14);
}

.gallery-delete-form {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 8px;
  margin: 0;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.gallery-item:hover .gallery-delete-form,
.gallery-item:focus-within .gallery-delete-form {
  opacity: 0.82;
  transform: scale(1);
  pointer-events: auto;
}

.gallery-delete-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 5px;
  background: rgba(104, 101, 113, 0.82);
  color: white;
  box-shadow: 0 3px 9px rgba(23, 18, 38, 0.2);
  cursor: pointer;
}

.gallery-delete-button:hover,
.gallery-delete-button:focus-visible {
  background: #595661;
}

.gallery-delete-button:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}

.gallery-delete-button svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.gallery-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-open[data-media-type="video"] {
  cursor: pointer;
}

.gallery-open img,
.gallery-open video {
  display: block;
  width: 100%;
  transition: transform 180ms ease, opacity 180ms ease;
}

.gallery-open img {
  height: auto;
}

.gallery-open video {
  aspect-ratio: 16 / 9;
  height: auto;
  background: #0d0c10;
  object-fit: cover;
  pointer-events: none;
}

.gallery-open:hover img,
.gallery-open:focus-visible img,
.gallery-open:hover video,
.gallery-open:focus-visible video {
  opacity: 0.9;
  transform: scale(1.015);
}

.gallery-video-marker {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding-left: 3px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(17, 15, 22, 0.72);
  color: white;
  font-size: 20px;
  line-height: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.gallery-open:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: -3px;
}

.gallery-credit,
.gallery-challenge-badge {
  position: absolute;
  z-index: 2;
  margin: 0;
  border-radius: 5px;
  background: rgba(17, 15, 22, 0.78);
  backdrop-filter: blur(5px);
}

.gallery-credit {
  right: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
}

.gallery-challenge-badge {
  top: 8px;
  left: 8px;
}

.gallery-credit a,
.gallery-challenge-badge {
  display: block;
  overflow: hidden;
  padding: 6px 8px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-credit a:hover,
.gallery-credit a:focus-visible,
.gallery-challenge-badge:hover,
.gallery-challenge-badge:focus-visible {
  color: #ffe196;
}

.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(12, 11, 15, 0.94);
}

.lightbox-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-width: min(1536px, 100%);
  max-height: calc(100vh - 48px);
  margin: auto;
}

.lightbox-figure [hidden] {
  display: none;
}

.lightbox-figure img,
.lightbox-figure video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 104px);
  margin: auto;
  object-fit: contain;
}

.lightbox-figure video {
  width: min(100%, 1536px);
  background: black;
}

.lightbox-caption {
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  color: white;
  font-size: 13px;
}

.lightbox-caption a {
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.lightbox-caption a + a {
  color: #bdb8c9;
}

.lightbox-caption a:hover,
.lightbox-caption a:focus-visible {
  color: #ffe196;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  border-color: white;
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.lightbox-nav.previous {
  grid-column: 1;
}

.lightbox-figure {
  grid-column: 2;
}

.lightbox-nav.next {
  grid-column: 3;
}

.creator-header {
  gap: 16px;
  margin: 20px 0 6px;
  padding: 4px 0 14px;
  border-bottom: 1px solid var(--line-strong);
}

.creator-avatar,
.creator-avatar-placeholder {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  object-fit: cover;
}

.creator-avatar-placeholder {
  display: grid;
  place-items: center;
  color: var(--violet-dark);
  font-size: 24px;
  font-weight: 900;
}

.creator-title {
  min-width: 0;
}

.creator-title h2 {
  overflow-wrap: anywhere;
  font-size: 26px;
}

.creator-title p {
  margin: 5px 0 0;
  color: var(--muted);
}

.creator-group {
  padding: 22px 0 8px;
  border-bottom: 1px solid var(--line);
}

.creator-group-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.creator-group-heading a {
  color: var(--violet-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.creator-group-heading h2 {
  min-width: 0;
  font-size: 20px;
}

.creator-group-heading a:hover,
.creator-group-heading a:focus-visible {
  color: var(--violet);
}

.creator-group-heading span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .header,
  .account,
  .card-header,
  .grid,
  .theme-row,
  .user-row {
    display: grid;
  }

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

  .inline-form {
    min-width: 0;
  }

  .theme-meta {
    justify-content: flex-end;
  }

  .archive-detail {
    display: grid;
    grid-template-columns: 1fr;
  }

  .archive-intro {
    display: none;
  }
}

@media (max-width: 1000px) {
  .member-gallery-grid.is-masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .drum-indicator i,
  .theme-list.is-drumroll .theme-row,
  .vote-confetti i {
    animation: none;
  }
}

@media (max-width: 760px) {
  .member-gallery-grid.is-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row-edit-form {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 10px;
    grid-template-columns: 1fr;
    width: auto;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 20px, 1240px);
  }

  .brand {
    align-items: flex-start;
  }

  .logo {
    width: 76px;
  }

  h1 {
    font-size: 27px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .member-gallery-grid.is-masonry {
    grid-template-columns: 1fr;
  }

  .archive-navigation {
    gap: 10px;
  }

  .archive-nav-number {
    font-size: 13px;
  }

  .archive-title-panel h2 {
    font-size: 24px;
  }

  .gallery-lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 4px;
    padding: 56px 8px 12px;
  }

  .lightbox-figure {
    max-height: calc(100vh - 68px);
  }

  .lightbox-figure img,
  .lightbox-figure video {
    max-height: calc(100vh - 124px);
  }

  .lightbox-close,
  .lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }

  .creator-group-heading {
    align-items: flex-start;
  }

  .number-row {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .current-edit-grid {
    grid-template-columns: 1fr;
  }

  .number-row .button {
    grid-column: 1 / -1;
  }

  .history-row,
  .history-edit {
    display: grid;
    grid-template-columns: 1fr;
  }

  .history-edit input {
    min-width: 0;
  }

}
