@font-face {
  font-family: "AdriannaExtended-ExtraBoldItalic";
  src: local("AdriannaExtended-ExtraBoldItalic"), local("Adrianna Extended ExtraBold Italic");
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}

:root {
  --body-font: "Courier Prime", "American Typewriter", "Courier New", Courier, monospace;
}

:root {
  --bg: #050505;
  --ink: #f5f5f5;
  --line: #4a4a4a;
  --accent: #f5f5f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.4;
}

.container {
  width: min(920px, 92vw);
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

h1,
h2 {
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.hero {
  text-align: center;
}

.main-title {
  position: relative;
  width: fit-content;
  margin: 0 auto 1.4rem;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: "AdriannaExtended-ExtraBoldItalic", "Arial Black", "Impact", "Helvetica Neue", sans-serif;
  font-style: italic;
  font-weight: 800;
}

.main-title span {
  display: inline;
}

.main-title::before,
.main-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(60px, 6.2vw, 105px);
  height: clamp(60px, 6.2vw, 105px);
  transform: translateY(-50%);
  border-radius: 50%;
  background: #3d50a2;
}

.main-title::before {
  left: calc(-1 * clamp(60px, 6.2vw, 105px) - 1.4rem);
}

.main-title::after {
  right: calc(-1 * clamp(60px, 6.2vw, 105px) - 1.4rem);
}

.input-card {
  border: 8px solid #fff;
  padding: 1rem;
  background: #050505;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 14px;
}

textarea,
input {
  width: 100%;
  font: inherit;
  color: inherit;
  border: 1px solid #666;
  padding: 0.9rem;
  background: #050505;
}

textarea {
  min-height: 140px;
  resize: vertical;
  border: 8px solid #fff;
  border-radius: 12px;
  font-family: "AdriannaExtended-ExtraBoldItalic", "Arial Black", "Impact", "Helvetica Neue", sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  line-height: 1.35;
  font-style: italic;
  letter-spacing: 0.02em;
}

#thought {
  background: #ffffff;
  color: #111111;
}

#thought::placeholder {
  color: #444444;
}

.submitted-message {
  margin-top: 1rem;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  text-align: center;
  letter-spacing: 0.02em;
}

button {
  margin-top: 0.9rem;
  border: 1px solid var(--accent);
  background: #050505;
  color: var(--accent);
  font: inherit;
  padding: 0.55rem 1rem;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

button:hover {
  background: #191919;
}

.guidance {
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
}

.char-note {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: #bfbfbf;
}

.feed-wrap {
  margin-top: 46vh;
  min-height: 92vh;
  padding-top: 1.2rem;
  width: min(96vw, 1700px);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

body.mobile-video-only .feed-wrap {
  margin-top: 3.2rem;
  min-height: auto;
  padding-top: 0.6rem;
  width: min(96vw, 980px);
}

body.mobile-video-only .container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.mobile-video-only .votes-section {
  order: 2;
}

body.mobile-video-only .feed-wrap {
  order: 1;
}

body.mobile-video-only .admin-link {
  margin-top: auto;
  padding-top: 1.25rem;
}

.display-frame {
  position: relative;
  overflow: hidden;
  border: 8px solid #ffffff;
  border-radius: 26px;
  background: #000000;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin: 0 auto;
  padding: 2.1rem 2.4rem 5.4rem;
}

body.mobile-video-only .display-frame {
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: 76vh;
  padding: 0;
}

.feed-art {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(80vw, 980px);
  height: auto;
  opacity: 0.2;
  filter: grayscale(1) contrast(1.08);
  pointer-events: none;
  z-index: 1;
  transition: opacity 900ms ease;
}

.interstitial {
  position: absolute;
  inset: 0;
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
  background: #000;
}

.interstitial.visible {
  opacity: 1;
}

.interstitial.fade-out {
  opacity: 0;
}

.interstitial video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-scroll-hint {
  display: none;
}

.frame-content {
  position: relative;
  z-index: 4;
  min-height: 100%;
  transition: opacity 700ms ease;
  padding-bottom: 154px;
  padding-right: 0;
}

.display-frame.text-mode .feed-art {
  opacity: 0.2;
}

.display-frame.video-mode .feed-art {
  opacity: 0;
}

body.mobile-video-only .frame-content,
body.mobile-video-only .feed-art {
  display: none;
}

.feed-heading {
  position: relative;
  width: fit-content;
  margin: 0 auto 2.2rem;
  padding: 0;
  z-index: 2;
}

.feed-heading::before,
.feed-heading::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(45px, 4.5vw, 75px);
  height: clamp(45px, 4.5vw, 75px);
  transform: translateY(-50%);
  border-radius: 50%;
  background: #3d50a2;
  transition: opacity 280ms ease;
}

.feed-heading::before {
  left: calc(-1 * clamp(45px, 4.5vw, 75px) - 1.4rem);
}

.feed-heading::after {
  right: calc(-1 * clamp(45px, 4.5vw, 75px) - 1.4rem);
}

.display-frame.video-mode .feed-heading::before,
.display-frame.video-mode .feed-heading::after {
  opacity: 0;
}

.feed-label {
  text-align: center;
  font-family: "AdriannaExtended-ExtraBoldItalic", "Arial Black", "Impact", "Helvetica Neue", sans-serif;
  font-size: clamp(1.5rem, 2.9vw, 2.8rem);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.feed-subtitle {
  text-align: center;
  font-size: clamp(1.35rem, 2.1vw, 2.025rem);
  margin: 0;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.feed {
  min-height: 0;
  max-width: min(86vw, 1200px);
  margin: 0 auto;
  text-align: left;
  white-space: pre-wrap;
  font-size: clamp(2rem, 5.2vw, 5.3rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  padding: 0 1vw;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.7);
}

.hot-note {
  text-align: center;
  font-size: clamp(1rem, 1.6vw, 1.55rem);
  margin: 1.45rem auto 0;
  max-width: min(82vw, 980px);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 2;
  color: #f5f5f5;
  min-height: 1.4em;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hot-note.visible {
  opacity: 1;
}

.display-frame.hide-entry-content .feed,
.display-frame.hide-entry-content .hot-note {
  opacity: 0;
}

.feed-empty {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.frame-logo {
  width: auto;
  max-width: min(30vw, 285px);
  max-height: 75px;
  opacity: 0.95;
}

.frame-brand {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.frame-note {
  margin: 0;
  font-size: clamp(0.62rem, 0.95vw, 0.9rem);
  color: #d8d8d8;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.frame-qr {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 8;
  width: auto;
  height: clamp(65px, 5.75vw, 90px);
  opacity: 0.96;
}

.votes-section {
  width: min(50vw, 920px);
  margin: 2.2rem auto 0;
}

.votes-section h2 {
  text-align: left;
  font-size: clamp(1.45rem, 2.7vw, 2.3rem);
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: "AdriannaExtended-ExtraBoldItalic", "Arial Black", "Impact", "Helvetica Neue", sans-serif;
  font-style: italic;
  font-weight: 800;
  width: 100%;
}

.votes-note {
  margin: 0 0 0.8rem;
  font-size: clamp(0.85rem, 1vw, 1rem);
  color: #d8d8d8;
  line-height: 1.35;
}

.votes-list {
  display: grid;
  gap: 0.55rem;
  width: 100%;
}

.vote-item {
  padding: 0.35rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.7rem;
}

.vote-item.hidden-by-flags {
  opacity: 0.45;
}

.vote-text {
  margin: 0;
  font-size: clamp(0.95rem, 1.15vw, 1.18rem);
  line-height: 1.35;
}

.vote-hot {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.1rem 0.35rem;
  min-width: 2.1rem;
  min-height: 2rem;
  border: 1px solid #666;
  border-radius: 8px;
  background: #060606;
  cursor: pointer;
  font-size: 1.15rem;
}

.flag-floating {
  margin-left: 0.4rem;
  min-width: 1.9rem;
  min-height: 1.7rem;
  padding: 0 0.22rem;
  vertical-align: middle;
}

.vote-btn.active,
.vote-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.vote-btn:hover:not(:disabled) {
  background: #151515;
}

.count {
  min-width: 1.35rem;
  text-align: center;
  font-size: 1rem;
}

.vote-empty {
  text-align: center;
  color: #bfbfbf;
}

.footer-link {
  margin-top: 2rem;
}

.admin-link {
  margin-top: 45vh;
  text-align: center;
}

.credit-link {
  margin: 7.8rem auto 0.8rem;
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  font-family: "AdriannaExtended-ExtraBoldItalic", "Arial Black", "Impact", "Helvetica Neue", sans-serif;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}

.credit-link a {
  color: #4da3ff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.credit-link a:hover {
  color: #74b9ff;
  text-decoration-thickness: 3px;
}

.admin {
  max-width: 980px;
}

.narrow {
  max-width: 460px;
}

.hidden {
  display: none;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-list {
  display: grid;
  gap: 1rem;
}

.admin-critical {
  border: 1px solid #5e1f1f;
  border-radius: 10px;
  padding: 0.7rem;
  margin-bottom: 1rem;
  background: rgba(58, 0, 0, 0.2);
}

.admin-critical h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.6rem 0 1rem;
}

.admin-panel button {
  display: inline-block;
  margin: 0;
}

.admin-card {
  border: 1px solid var(--line);
  padding: 1rem;
}

.admin-meta {
  margin: 0.35rem 0 0.7rem;
  color: #c9c9c9;
  font-size: 0.9rem;
}

.admin-stats-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.55rem;
}

.admin-stats-edit label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-stats-edit input {
  width: 6rem;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.admin-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

a {
  color: var(--ink);
}

@media (max-width: 640px) {
  .container {
    padding-top: 1.6rem;
  }

  textarea {
    min-height: 120px;
  }

  .main-title::before,
  .main-title::after {
    width: clamp(34px, 8.4vw, 52px);
    height: clamp(34px, 8.4vw, 52px);
  }

  .main-title::before {
    left: calc(-1 * clamp(34px, 8.4vw, 52px) - 0.18rem);
  }

  .main-title::after {
    right: calc(-1 * clamp(34px, 8.4vw, 52px) - 0.18rem);
  }

  .main-title {
    max-width: min(74vw, 310px);
    margin-bottom: 1rem;
    line-height: 0.88;
  }

  .main-title span {
    display: block;
  }

  .main-title .title-anon {
    font-size: 0.62em;
    margin-bottom: 0.08em;
  }

  .feed-wrap {
    margin-top: 34vh;
    min-height: 78vh;
    width: 95vw;
  }

  .display-frame {
    padding: 1.1rem 1rem 3.8rem;
  }

  .frame-content {
    padding-right: 0;
    padding-bottom: 0;
  }

  .feed-heading {
    padding: 0;
  }

  .admin-link {
    margin-top: 28vh;
  }

  .frame-logo {
    max-width: 56vw;
    max-height: 62px;
  }

  .frame-note {
    font-size: 0.68rem;
  }

  .frame-qr {
    display: none;
  }

  body.mobile-video-only .container {
    width: 94vw;
    padding-top: 1.3rem;
    min-height: 100vh;
  }

  body.mobile-video-only .feed-wrap {
    margin-top: 1.8rem;
    min-height: auto;
    width: 94vw;
    order: 1;
  }

  body.mobile-video-only .display-frame {
    border-width: 6px;
    border-radius: 18px;
    max-height: 72vh;
  }

  body.mobile-video-only .votes-section {
    order: 2;
    width: 90vw;
    margin-top: 2.8rem;
  }

  body.mobile-video-only .credit-link {
    order: 3;
    margin-top: 1.5rem;
  }

  body.mobile-video-only .admin-link {
    order: 4;
    margin-top: 1.1rem;
    padding-top: 0;
  }

  .votes-list {
    width: 100%;
  }

  .votes-section h2 {
    width: 100%;
    text-align: center;
    white-space: normal;
    font-size: clamp(1.2rem, 6.8vw, 2rem);
    letter-spacing: 0.03em;
    line-height: 0.95;
  }

  .vote-item {
    grid-template-columns: auto 1fr;
    row-gap: 0.45rem;
  }

  .vote-hot {
    align-self: start;
  }

  body.mobile-video-only .mobile-scroll-hint {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
    margin: 0;
    color: #ffffff;
    text-align: center;
    font-size: clamp(1.2rem, 5.55vw, 1.5rem);
    letter-spacing: 0.04em;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.95), 0 0 16px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: mobile-hint-glitch 6.4s steps(1, end) infinite;
    pointer-events: none;
    width: min(88vw, 430px);
  }
}

@media (max-width: 360px) {
  .votes-section h2 {
    text-wrap: balance;
    text-align: center;
  }
}

@keyframes mobile-hint-glitch {
  0% { opacity: 0; transform: translate(-50%, -50%); filter: none; }
  12% { opacity: 0; }
  18% { opacity: 0.95; transform: translate(-50%, -50%); filter: none; }
  20% { opacity: 0.55; transform: translate(calc(-50% - 0.5px), calc(-50% + 0.5px)); filter: blur(0.25px); }
  23% { opacity: 0.9; transform: translate(-50%, -50%); filter: none; }
  34% { opacity: 0; }
  48% { opacity: 0; }
  54% { opacity: 0.92; transform: translate(-50%, -50%); filter: none; }
  56% { opacity: 0.6; transform: translate(calc(-50% + 0.5px), calc(-50% - 0.5px)); filter: blur(0.2px); }
  59% { opacity: 0.88; transform: translate(-50%, -50%); filter: none; }
  72% { opacity: 0; }
  100% { opacity: 0; transform: translate(-50%, -50%); filter: none; }
}

@media (max-width: 1100px) {
  .votes-section {
    width: min(70vw, 860px);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
