:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(18, 18, 18, 0.82);
  --panel-strong: rgba(24, 24, 24, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.18);
  --line-soft: rgba(255, 255, 255, 0.1);
  --text: #f7f7f7;
  --muted: #a7a7a7;
  --dim: #747474;
  --orange: #ff7a0a;
  --orange-2: #ff4f08;
  --green: #40d66e;
  --red: #ff5b55;
  --amber: #ffb84d;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --nav-h: 92px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 122, 10, 0.05), transparent 340px),
    #050505;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.noscript {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text);
  background: var(--bg);
}

#app {
  min-height: 100dvh;
}

.app-shell {
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

.app-shell.no-nav {
  padding-bottom: 0;
}

.page {
  width: min(100%, 560px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 32px 20px 28px;
}

.page.wide {
  width: min(100%, 1180px);
  padding-inline: 18px;
}

.page.flush {
  padding: 0;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.back-link,
.icon-button,
.circle-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  background: transparent;
}

.back-link svg,
.icon-button svg,
.circle-button svg,
.nav-item svg,
.field-icon svg,
.rule-icon svg,
.mini-icon svg,
.status-line svg,
.action-row svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button,
.circle-button {
  border-color: var(--line);
  background: rgba(10, 10, 10, 0.58);
  backdrop-filter: blur(14px);
}

.circle-button.lg {
  width: 68px;
  height: 68px;
  font-size: 28px;
}

.circle-button.is-active {
  border-color: var(--orange);
  color: var(--orange);
}

.back-link {
  margin-left: -8px;
  font-size: 34px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 16px;
  font-weight: 600;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
}

.hero-title,
.page-title {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 13vw, 76px);
  line-height: 0.98;
  font-weight: 760;
  letter-spacing: 0;
}

.page-title {
  margin-top: 4px;
  font-size: clamp(42px, 12vw, 66px);
}

.section-title {
  margin: 26px 0 10px;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.subtitle,
.body-copy,
.muted {
  color: var(--muted);
  line-height: 1.45;
}

.subtitle {
  margin: 12px 0 24px;
  font-size: 18px;
}

.body-copy {
  margin: 0 0 18px;
  font-size: 17px;
}

.small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.accent {
  color: var(--orange);
}

.danger {
  color: var(--red);
}

.success {
  color: var(--green);
}

.grid {
  display: grid;
  gap: 14px;
}

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

.glass-card,
.form-card,
.admin-card,
.empty-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.glass-card {
  padding: 18px;
}

.empty-card {
  padding: 28px 18px;
  text-align: center;
}

.empty-card h2,
.empty-card h3 {
  margin: 0 0 8px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.compact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  width: 100%;
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #fff;
  font-weight: 700;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button {
  min-height: 62px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 16px 40px rgba(255, 92, 8, 0.28);
}

.secondary-button {
  border: 1px solid var(--orange);
  color: var(--orange);
  background: rgba(255, 122, 10, 0.06);
}

.ghost-button {
  color: var(--muted);
  background: transparent;
}

.danger-button {
  border: 1px solid rgba(255, 91, 85, 0.5);
  color: var(--red);
  background: rgba(255, 91, 85, 0.06);
}

.compact-button {
  min-height: 40px;
  width: auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.primary-button:hover,
.secondary-button:hover,
.compact-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.primary-button svg,
.secondary-button svg,
.ghost-button svg,
.danger-button svg,
.compact-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.36);
  font-size: 13px;
  white-space: nowrap;
}

.pill.orange {
  border-color: rgba(255, 122, 10, 0.46);
  color: var(--orange);
}

.pill.green {
  border-color: rgba(64, 214, 110, 0.42);
  color: var(--green);
}

.pill.red {
  border-color: rgba(255, 91, 85, 0.45);
  color: var(--red);
}

.pill svg {
  width: 18px;
  height: 18px;
}

.footer {
  margin: 20px auto 0;
  color: #8f8f8f;
  text-align: center;
  font-size: 14px;
}

.bottom-nav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  min-height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
  border-top: 1px solid var(--line-soft);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(18px);
}

.bottom-nav-inner {
  width: min(100%, 560px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 4px;
}

.nav-item {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 68px;
  gap: 4px;
  color: #a9a9a9;
  font-size: 12px;
  background: transparent;
}

.nav-item svg {
  width: 28px;
  height: 28px;
}

.nav-item.is-active {
  color: var(--orange);
}

.nav-item.capture {
  transform: translateY(-12px);
}

.nav-item.capture .capture-ring {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.78);
}

.home-hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: #030303;
}

.home-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.14) 44%, rgba(0, 0, 0, 0.92) 78%, #050505 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 45%, rgba(0, 0, 0, 0.48));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 28px 20px calc(var(--nav-h) + 34px);
  display: flex;
  flex-direction: column;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-dot::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255, 122, 10, 0.7);
}

.status-dot.closed::before {
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 91, 85, 0.55);
}

.hero-bottom {
  padding-top: 0;
}

.prize-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 22px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 122, 10, 0.42);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(0, 0, 0, 0.34);
}

.prize-chip svg {
  width: 24px;
  height: 24px;
  color: var(--orange);
}

.hero-links {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.hero-links .ghost-button {
  width: auto;
}

.summary-card {
  padding: 18px 16px;
}

.summary-row,
.rule-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.summary-row:first-child,
.rule-row:first-child {
  padding-top: 0;
}

.summary-row:last-child,
.rule-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-row h3,
.rule-row h3,
.profile-card h3,
.admin-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.summary-row p,
.rule-row p,
.profile-card p,
.admin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.rule-icon,
.mini-icon {
  display: grid;
  place-items: center;
  color: var(--orange);
}

.rule-icon {
  width: 52px;
  height: 52px;
  border-right: 1px solid var(--line);
  padding-right: 16px;
  font-size: 36px;
}

.mini-icon {
  width: 34px;
  height: 34px;
  font-size: 26px;
}

.steps-card {
  padding: 18px 16px;
}

.step-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

.step-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--orange);
  border-radius: 999px;
  color: var(--orange);
  font-size: 20px;
  font-weight: 700;
}

.field {
  position: relative;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 14px 14px 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.select {
  appearance: none;
}

.textarea {
  min-height: 96px;
  resize: vertical;
  padding-left: 14px;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(255, 122, 10, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 122, 10, 0.14);
}

.field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 22px;
  pointer-events: none;
}

.select-caret {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 12px;
  color: var(--muted);
}

.checkbox-row input {
  position: absolute;
  opacity: 0;
}

.checkbox-box {
  width: 28px;
  height: 28px;
  border: 2px solid var(--orange);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: transparent;
}

.checkbox-row input:checked + .checkbox-box {
  color: #fff;
  background: var(--orange);
}

.checkbox-row a {
  color: var(--orange);
}

.form-error {
  display: none;
  margin: 12px 0 0;
  color: var(--red);
  line-height: 1.35;
}

.form-error.is-visible {
  display: block;
}

.capture-screen {
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  background: #000;
}

.camera-stage,
.preview-stage {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  background: #000;
}

.camera-stage video,
.preview-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.camera-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 42%, rgba(0, 0, 0, 0.62)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 32%, transparent 68%, rgba(0, 0, 0, 0.36));
}

.grid-lines {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 33.2%, rgba(255, 255, 255, 0.18) 33.3%, transparent 33.5%, transparent 66.4%, rgba(255, 255, 255, 0.18) 66.6%, transparent 66.8%),
    linear-gradient(to bottom, transparent 33.2%, rgba(255, 255, 255, 0.18) 33.3%, transparent 33.5%, transparent 66.4%, rgba(255, 255, 255, 0.18) 66.6%, transparent 66.8%);
}

.focus-corners {
  position: absolute;
  inset: 23% 24%;
  z-index: 4;
  pointer-events: none;
}

.focus-corners span {
  position: absolute;
  width: 58px;
  height: 58px;
  border-color: var(--orange);
  border-style: solid;
}

.focus-corners span:nth-child(1) {
  left: 0;
  top: 0;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 8px;
}

.focus-corners span:nth-child(2) {
  right: 0;
  top: 0;
  border-width: 2px 2px 0 0;
  border-top-right-radius: 8px;
}

.focus-corners span:nth-child(3) {
  left: 0;
  bottom: 0;
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 8px;
}

.focus-corners span:nth-child(4) {
  right: 0;
  bottom: 0;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 8px;
}

.camera-permission {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  z-index: 7;
  transform: translateY(-50%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-align: center;
  background: rgba(8, 8, 8, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.camera-permission.is-hidden {
  display: none;
}

.camera-permission.is-loading {
  pointer-events: none;
  opacity: 0.74;
}

.camera-permission svg {
  width: 42px;
  height: 42px;
  color: var(--orange);
}

.camera-permission h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.camera-permission p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.capture-top,
.capture-controls,
.preview-controls {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(22px, env(safe-area-inset-top)) 20px 0;
  pointer-events: none;
}

.capture-top > *,
.capture-controls > *,
.preview-controls > * {
  pointer-events: auto;
}

.capture-controls,
.preview-controls {
  top: auto;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 18px);
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.capture-copy {
  display: grid;
  gap: 5px;
  margin-bottom: 6px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

.record-title {
  color: var(--orange);
  font-size: 18px;
  font-weight: 700;
}

.record-button {
  --progress: 0deg;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: conic-gradient(var(--orange) var(--progress), #fff var(--progress), #fff 360deg);
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.26), 0 18px 45px rgba(0, 0, 0, 0.5);
}

.record-button::before {
  content: "";
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
}

.record-button.is-recording::before {
  width: 54px;
  height: 54px;
  border-radius: 13px;
}

.camera-actions {
  width: min(100%, 360px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.preview-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  z-index: 4;
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.preview-video {
  background: #070707;
}

.preview-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preview-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.preview-action {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(10, 10, 10, 0.58);
  backdrop-filter: blur(14px);
  font-size: 11px;
}

.preview-action svg {
  width: 22px;
  height: 22px;
  color: var(--orange);
}

.preview-action.danger {
  color: var(--red);
}

.preview-action.danger svg {
  color: var(--red);
}

.preview-submit {
  min-height: 50px;
}

.draft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}

.draft-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111;
  text-align: left;
}

.draft-card.is-selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px rgba(255, 122, 10, 0.52);
}

.draft-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.draft-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 42%, rgba(0, 0, 0, 0.66));
  pointer-events: none;
}

.draft-badge,
.select-mark,
.draft-date {
  position: absolute;
  z-index: 3;
}

.draft-badge {
  left: 10px;
  top: 10px;
}

.select-mark {
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  color: #000;
  background: rgba(0, 0, 0, 0.18);
}

.draft-card.is-selected .select-mark {
  border-color: var(--orange);
  color: #050505;
  background: var(--orange);
}

.draft-date {
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #d8d8d8;
  font-size: 13px;
}

.profile-card {
  padding: 18px;
}

.profile-head {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: start;
}

.avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8d8d8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 58px;
}

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

.profile-line,
.status-line {
  display: grid;
  grid-template-columns: 28px minmax(110px, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--text);
}

.profile-line svg,
.status-line svg {
  color: var(--orange);
  font-size: 22px;
}

.profile-line span,
.status-line span {
  color: var(--muted);
}

.profile-actions {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.action-row {
  display: grid;
  grid-template-columns: 28px 1fr 20px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
}

.action-row:last-child {
  border-bottom: 0;
}

.action-row svg:first-child {
  color: var(--orange);
  font-size: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.gallery-card .media {
  aspect-ratio: 9 / 16;
  background: #111;
}

.gallery-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card-body {
  padding: 12px;
}

.gallery-card-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.gallery-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 10px 0 14px;
  border-bottom: 1px solid var(--line-soft);
}

.tab {
  min-height: 46px;
  color: var(--muted);
  background: transparent;
  border-bottom: 3px solid transparent;
}

.tab.is-active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.jury-shell {
  width: min(100%, 620px);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 26px 10px 0;
}

.jury-top {
  display: grid;
  grid-template-columns: 48px 1fr 76px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.jury-code {
  text-align: center;
  font-size: clamp(22px, 7vw, 34px);
  letter-spacing: 0.08em;
}

.jury-card {
  position: relative;
  overflow: hidden;
  min-height: min(68dvh, 740px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #111;
}

.jury-card video {
  width: 100%;
  height: min(68dvh, 740px);
  object-fit: cover;
}

.jury-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 16px 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
}

.jury-controls {
  display: grid;
  grid-template-columns: 58px 58px 1fr 58px 58px;
  align-items: center;
  gap: 10px;
}

.jury-score {
  text-align: center;
}

.jury-score strong {
  display: block;
  color: var(--orange);
  font-size: 28px;
  line-height: 1;
}

.jury-score span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.jury-note {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.jury-bottom {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0 -10px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(18px);
}

.jury-bottom button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 60px;
  color: var(--muted);
  background: transparent;
}

.jury-bottom button.is-active {
  color: var(--orange);
}

.jury-bottom svg {
  width: 26px;
  height: 26px;
}

.admin-shell {
  min-height: 100dvh;
  background: #050505;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(18px);
}

.admin-header-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-title {
  display: grid;
  gap: 2px;
}

.admin-title strong {
  font-size: 18px;
}

.admin-title span {
  color: var(--muted);
  font-size: 12px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 18px 12px;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.admin-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.admin-tabs button.is-active {
  border-color: var(--orange);
  color: var(--orange);
}

.admin-grid {
  display: grid;
  gap: 14px;
}

.admin-grid.metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

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

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.admin-card {
  padding: 16px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

.data-table th {
  color: #d9d9d9;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.035);
}

.data-table td strong {
  color: var(--text);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.mini-video {
  width: 46px;
  height: 82px;
  object-fit: cover;
  border-radius: 6px;
  background: #111;
}

.admin-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.admin-form input,
.admin-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  border-bottom: 1px solid var(--line-soft);
}

.switch-row:last-child {
  border-bottom: 0;
}

.switch {
  position: relative;
  width: 54px;
  height: 30px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.switch input:checked + span {
  border-color: rgba(255, 122, 10, 0.7);
}

.switch input:checked + span::after {
  transform: translateX(24px);
  background: var(--orange);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
  z-index: 100;
  transform: translateX(-50%) translateY(20px);
  width: min(calc(100% - 28px), 430px);
  padding: 12px 14px;
  border: 1px solid rgba(255, 122, 10, 0.5);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(18, 18, 18, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.modal {
  width: min(100%, 520px);
  max-height: min(90dvh, 760px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101010;
  box-shadow: var(--shadow);
}

.modal h2 {
  margin: 0 0 10px;
}

.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;
}

@media (min-width: 520px) {
  .draft-grid,
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .button-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button-row.single {
    grid-template-columns: 1fr;
  }
}

@media (min-height: 700px) {
  .hero-top {
    margin-bottom: clamp(110px, 28vh, 340px);
  }
}

@media (max-height: 699px) {
  .hero-content {
    padding-top: 22px;
    padding-bottom: calc(var(--nav-h) + 14px);
  }

  .hero-top {
    margin-bottom: 0;
  }

  .hero-bottom .subtitle {
    margin: 8px 0 10px;
    font-size: 16px;
    line-height: 1.35;
  }

  .hero-bottom .prize-chip {
    margin: 6px 0 12px;
  }

  .hero-bottom .primary-button {
    min-height: 54px;
  }
}

@media (min-width: 760px) {
  .page {
    padding-top: 42px;
  }

  .grid.two,
  .admin-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid.metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .modal-backdrop {
    place-items: center;
  }
}

@media (max-width: 390px) {
  .page {
    padding-inline: 16px;
  }

  .hero-content {
    padding-inline: 16px;
  }

  .hero-title,
  .page-title {
    font-size: 40px;
  }

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

  .profile-line,
  .status-line {
    grid-template-columns: 26px 1fr;
  }

  .profile-line strong,
  .status-line strong {
    grid-column: 2;
  }

  .jury-controls {
    grid-template-columns: 50px 50px 1fr 50px 50px;
    gap: 7px;
  }

  .circle-button.lg {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }
}
