:root {
  color-scheme: dark;
  --bg: #101113;
  --surface: #191b1e;
  --raised: #222529;
  --line: #303338;
  --text: #f4f5f2;
  --muted: #a2a7ad;
  --accent: #c6fc55;
  --danger: #ff8f94;
  --radius: 20px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button svg,
a svg {
  pointer-events: none;
}
svg {
  width: 23px;
  height: 23px;
  vertical-align: middle;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.35;
}
p {
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.eyebrow,
.mini-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--muted);
}
.brand {
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.065em;
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.brand-symbol {
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  width: 32px;
  height: 32px;
  font-size: 17px;
  color: #172004;
  transform: rotate(-5deg);
  margin-right: 2px;
}
.brand-dot {
  color: var(--accent);
  margin-left: -7px;
}
.sidebar {
  width: 244px;
  padding: 34px 23px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 10;
  background: var(--bg);
  overflow-y: auto;
}
.sidebar .eyebrow {
  margin: 17px 0 28px;
  font-size: 0.6875rem;
}
.side-links {
  display: grid;
  gap: 6px;
}
.side-links a {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: #b2b6bc;
}
.side-links a:hover,
.sidebar-bottom > a:hover {
  background: var(--surface);
  color: white;
}
.side-links a.active {
  background: #c6fc5512;
  color: var(--accent);
}
.primary,
.secondary,
.danger {
  border: 0;
  border-radius: 12px;
  min-height: 46px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 750;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary {
  background: var(--accent);
  color: #192109;
}
.primary:hover {
  background: #d5ff83;
}
.primary:active {
  transform: scale(0.98);
}
.secondary {
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--line);
}
.danger {
  background: #ff66771a;
  border: 1px solid #ff66774d;
  color: var(--danger);
}
.publish-link {
  font-size: 0.875rem;
  margin-top: 25px;
  white-space: nowrap;
  padding: 12px 7px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
  display: grid;
  gap: 12px;
}
.sidebar-bottom > a,
.text-button {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 7px 6px;
  border: 0;
  background: none;
  text-align: left;
}
.footer-links {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  font-size: 0.75rem;
  color: #8b9096;
}
.footer-links span {
  width: 100%;
}
.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
.account-chip strong {
  font-size: 0.875rem;
  display: block;
}
.account-chip small {
  color: var(--muted);
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #31382a;
  color: var(--accent);
  font-weight: 800;
  overflow: hidden;
  border: 1px solid #ffffff18;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.large {
  width: 86px;
  height: 86px;
  font-size: 1.7rem;
  border: 4px solid var(--bg);
}
#main {
  margin-left: 244px;
  margin-right: 300px;
  min-height: 100svh;
  padding: 28px 30px 40px;
  outline: none;
}
.right-rail {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  padding: 34px 26px 20px;
  border-left: 1px solid var(--line);
  overflow-y: auto;
}
.rail-heading {
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.9375rem;
}
.rail-heading svg {
  color: var(--accent);
  width: 20px;
}
.game-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.game-tile {
  width: 42px;
  height: 48px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--game-color, #c6fc55) 15%, #1c1f20);
  border: 1px solid
    color-mix(in srgb, var(--game-color, #c6fc55) 35%, transparent);
  color: var(--game-color, #c6fc55);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.game-row span:last-child {
  font-size: 0.875rem;
  font-weight: 650;
}
.game-row small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}
.install-card {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid #c6fc5533;
  border-radius: 18px;
  background: linear-gradient(140deg, #c6fc5510, transparent 70%);
}
.install-card h2 {
  font-size: 1.6rem;
  margin: 20px 0 10px;
}
.install-card p {
  font-size: 0.875rem;
}
.install-card .secondary {
  font-size: 0.875rem;
  width: 100%;
  padding: 10px;
}
.app-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 24px;
  border-radius: 14px;
  color: #101113;
  background: var(--accent);
  margin-top: 20px;
}
.rail-note {
  font-size: 0.8125rem;
  margin-top: 25px;
  line-height: 1.7;
}
.mobile-header,
.bottom-nav {
  display: none;
}
.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 25px;
}
.page-top h1 {
  margin: 0;
}
.page-top p {
  margin: 7px 0 0;
  font-size: 0.9375rem;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
}
.feed-tabs {
  display: flex;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.feed-tabs a {
  padding: 0 0 15px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.feed-tabs a.active {
  color: white;
  border-bottom: 2px solid var(--accent);
}
.filter-row {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.875rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px 15px;
  color: var(--muted);
  min-height: 40px;
}
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #172004;
  font-weight: 700;
}
.clip-feed {
  height: calc(100svh - 168px);
  min-height: 360px;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.clip {
  scroll-snap-align: start;
  position: relative;
  min-height: 100%;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  border-radius: var(--radius);
  overflow: hidden;
  background: #070808;
  border: 1px solid #ffffff14;
}
.clip:last-child {
  margin-bottom: 0;
}
.clip-media {
  position: relative;
  min-height: 260px;
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.clip video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(100svh - 380px);
  min-height: 240px;
  object-fit: contain;
  background: #070808;
}
.clip-head {
  padding: 16px 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.clip-head .tag {
  background: #ffffff0d;
  font-size: 0.8125rem;
  padding: 5px 10px;
  border-radius: 7px;
  color: #d0d3d7;
}
.clip-head .tag:first-child {
  color: var(--accent);
}
.clip-head .clip-count {
  font-size: 0.75rem;
  color: var(--muted);
}
.clip-controls {
  position: absolute;
  top: 8px;
  right: 10px;
  display: flex;
  gap: 8px;
}
.clip-controls button {
  background: #101113b8;
  backdrop-filter: blur(8px);
  width: 38px;
  min-height: 38px;
  border-color: #ffffff30;
}
.clip-footer {
  padding: 18px 20px 20px;
  background: linear-gradient(#111314, #16181b);
  border-top: 1px solid #ffffff0a;
}
.creator-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.creator-line strong {
  font-size: 0.9375rem;
}
.creator-line small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.creator-line a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.clip-title {
  font-size: 1.0625rem;
  margin: 0 0 6px;
}
.clip-description {
  font-size: 0.875rem;
  margin: 0 0 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.clip-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid #ffffff12;
  padding-top: 12px;
}
.reaction {
  min-height: 42px;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c7cbd0;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 0.875rem;
}
.reaction:hover {
  background: #ffffff0b;
}
.reaction.active {
  color: var(--accent);
}
.reaction:last-child {
  margin-left: auto;
}
.reaction svg {
  width: 21px;
}
.clip-live {
  margin-left: auto;
  border: 1px solid #ffffff2b;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 0.75rem;
  color: #ded4ff;
}
.empty-state {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55svh;
  padding: 35px 20px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 0, #c6fc5507, transparent 60%);
}
.empty-state .empty-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 26px;
  background: #c6fc550e;
  border: 1px solid #c6fc5522;
  color: var(--accent);
  margin-bottom: 25px;
  transform: rotate(-5deg);
}
.empty-icon svg {
  width: 37px;
  height: 37px;
}
.empty-state h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  max-width: 340px;
}
.empty-state p {
  max-width: 350px;
  font-size: 0.9375rem;
}
.empty-state .secondary {
  margin-top: 10px;
}
.loading-state {
  min-height: 50svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
}
.spinner {
  width: 30px;
  height: 30px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.form-page {
  max-width: 580px;
  margin: 15px auto;
}
.form-page h1 {
  margin-top: 30px;
}
.form-page > p {
  font-size: 0.9375rem;
}
form {
  display: grid;
  gap: 19px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 650;
}
input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  background: #17191c;
  border: 1px solid #383c41;
  color: var(--text);
  border-radius: 11px;
  padding: 12px 14px;
  outline: none;
  font-size: 1rem;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 19px;
  min-height: 19px;
  height: 19px;
  margin: 2px 0;
  flex-shrink: 0;
}
input[type="file"] {
  font-size: 0.875rem;
  padding: 10px;
  max-width: 100%;
}
input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 7px;
  background: var(--raised);
  color: var(--text);
  padding: 8px;
  margin-right: 10px;
  font: inherit;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}
.check-label a {
  color: var(--accent);
  text-decoration: underline;
}
.form-note {
  padding: 15px 18px;
  border-radius: 12px;
  background: #c6fc5509;
  border: 1px solid #c6fc5529;
  color: #d0dcb9;
  font-size: 0.875rem;
}
.form-error {
  padding: 12px;
  border-radius: 9px;
  background: #ff66771a;
  color: #ffabb0;
  font-size: 0.875rem;
  margin: 0;
}
.form-error:empty {
  display: none;
}
.form-links {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.875rem;
  margin-top: 20px;
  color: var(--accent);
}
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed #667944;
  border-radius: 18px;
  padding: 28px 18px;
  background: #c6fc5506;
  text-align: center;
  min-height: 175px;
}
.upload-zone svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
}
.upload-zone input {
  margin-top: 10px;
  text-align: left;
  max-width: 390px;
}
.upload-zone small {
  font-weight: 400;
  color: var(--muted);
}
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.preview-video {
  width: 100%;
  max-height: 380px;
  border-radius: 14px;
  background: #000;
}
progress {
  width: 100%;
  height: 9px;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  accent-color: var(--accent);
}
progress::-webkit-progress-bar {
  background: var(--raised);
}
progress::-webkit-progress-value {
  background: var(--accent);
}
.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}
.search-form button {
  flex-shrink: 0;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 30px;
}
.game-card {
  padding: 18px 14px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 135px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
.game-card strong {
  font-size: 0.875rem;
}
.game-card .game-tile {
  width: 42px;
  height: 42px;
}
.clip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.video-tile {
  display: block;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: var(--surface);
}
.tile-image {
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, #222b20, #191b1e);
  display: grid;
  place-items: center;
  position: relative;
  color: var(--accent);
}
.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.tile-image > svg {
  width: 40px;
  height: 40px;
}
.tile-image .duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.75rem;
  background: #101113d0;
  color: white;
  padding: 2px 6px;
  border-radius: 5px;
}
.tile-body {
  padding: 13px;
}
.tile-body h3 {
  font-size: 0.9375rem;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.tile-body p {
  font-size: 0.8125rem;
  margin: 0;
}
.profile-cover {
  height: 135px;
  border-radius: 20px;
  background: linear-gradient(115deg, #3a4924, #202a1b 55%, #151b16);
  border: 1px solid #c6fc5520;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
}
.profile-cover span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #c6fc5599;
}
.profile-info {
  padding: 0 8px;
  margin-top: -43px;
  position: relative;
}
.profile-info .profile-actions {
  float: right;
  margin-top: 55px;
  display: flex;
  gap: 8px;
}
.profile-info h1 {
  font-size: 1.9rem;
  margin: 15px 0 3px;
}
.profile-info .username {
  font-size: 0.875rem;
  margin-bottom: 14px;
}
.profile-info .bio {
  white-space: pre-wrap;
  font-size: 0.9375rem;
  max-width: 500px;
  overflow-wrap: anywhere;
}
.stats {
  display: flex;
  gap: 25px;
  margin: 24px 0;
}
.stats > div {
  display: flex;
  flex-direction: column;
}
.stats strong {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}
.stats span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.profile-info + .clip-grid {
  margin-top: 25px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 16px;
}
.section-title h2 {
  margin: 0;
}
.section-title span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.list-row {
  padding: 18px 0;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
}
.list-row .row-content {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.list-row h3,
.list-row p {
  margin: 0 0 5px;
}
.list-row p {
  font-size: 0.875rem;
}
.list-row small {
  color: var(--muted);
  font-size: 0.75rem;
}
.list-row .row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.list-row .row-actions button,
.list-row .row-actions a {
  font-size: 0.8125rem;
  min-height: 38px;
  padding: 7px 11px;
}
.status {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  background: #ffffff10;
  color: #c4c8ce;
}
.status.published {
  background: #c6fc5515;
  color: var(--accent);
}
.status.pending {
  background: #ffd26f15;
  color: #ffd26f;
}
.status.rejected {
  background: #ff717815;
  color: var(--danger);
}
.notice-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.load-more {
  margin: 24px auto;
  display: flex;
}
.settings-block {
  margin: 30px 0;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.settings-block h2 {
  font-size: 1.15rem;
}
.games-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.games-checks label {
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
}
.admin-tabs {
  overflow-x: auto;
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}
.admin-tabs .chip {
  cursor: pointer;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}
.admin-stats > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
}
.admin-stats strong {
  display: block;
  font-size: 1.4rem;
}
.admin-stats span {
  font-size: 0.75rem;
  color: var(--muted);
}
dialog {
  background: #191b1e;
  color: var(--text);
  border: 1px solid #3b3f45;
  border-radius: 22px;
  padding: 0;
  width: min(540px, calc(100vw - 30px));
  max-height: 85svh;
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(6px);
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
}
.sheet-header h2 {
  margin: 0;
  font-size: 1.2rem;
}
#sheet-body {
  padding: 22px;
  overflow-y: auto;
}
#sheet-body p {
  font-size: 0.9375rem;
}
#sheet-body ol {
  padding-left: 22px;
  color: var(--muted);
  display: grid;
  gap: 12px;
}
.comment-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.comment-row header {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
}
.comment-row p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0;
  color: var(--text);
}
.comment-row footer {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.comment-row footer button {
  padding: 5px 0;
  background: none;
  border: 0;
  color: inherit;
  min-height: 34px;
}
.comment-row .reply-label {
  font-size: 0.75rem;
  color: var(--accent);
}
.comment-form {
  margin-top: 20px;
}
.comment-form textarea {
  min-height: 80px;
}
.inline-player {
  width: 100%;
  max-height: 60svh;
  background: black;
  border-radius: 12px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 30px);
  background: #e8eddf;
  color: #171d0f;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 40px #0007;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 1000;
  font-size: 0.875rem;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.skip-link {
  position: fixed;
  left: 10px;
  top: -100px;
  background: var(--accent);
  color: black;
  padding: 12px;
  z-index: 1000;
}
.skip-link:focus {
  top: 10px;
}
.setup-body {
  padding: 20px;
}
.setup-body .form-page {
  padding: 25px;
}
.setup-body .brand span {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0;
}
.fatal-error {
  padding: 30px;
  position: fixed;
  inset: 80px 20px auto;
  background: var(--surface);
  border: 1px solid var(--danger);
  border-radius: 16px;
  z-index: 100;
}
.legal-page {
  max-width: 760px;
  margin: 50px auto;
  padding: 25px;
}
.legal-page .brand {
  margin-bottom: 45px;
}
.legal-page li {
  margin-bottom: 12px;
  color: var(--muted);
}
.live-player {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 15px;
  background: black;
}
.offline-body {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 25px;
}
.offline-body main {
  max-width: 420px;
  text-align: center;
}
.offline-body .app-icon {
  margin: 0 auto 30px;
}
.no-connection {
  padding: 10px 16px;
  background: #ffd26f20;
  color: #ffde9c;
  font-size: 0.875rem;
  border-radius: 10px;
  margin-bottom: 18px;
}
.legal-copy {
  white-space: pre-wrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (min-width: 1600px) {
  #main {
    padding-left: max(40px, calc((100vw - 1440px) / 2));
    padding-right: max(40px, calc((100vw - 1440px) / 2));
  }
  .clip-feed {
    max-width: 780px;
    margin: auto;
  }
}
@media (max-width: 1180px) {
  .right-rail {
    display: none;
  }
  #main {
    margin-right: 0;
    padding: 26px 40px;
  }
  .clip-feed {
    max-width: 720px;
    margin: auto;
  }
  .sidebar {
    width: 224px;
  }
  #main {
    margin-left: 224px;
  }
}
@media (max-width: 760px) {
  .sidebar,
  .right-rail {
    display: none;
  }
  .mobile-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #ffffff0a;
    background: #101113f5;
    backdrop-filter: blur(15px);
  }
  .brand {
    font-size: 1.4rem;
  }
  .brand-symbol {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .header-actions {
    display: flex;
    gap: 10px;
  }
  .header-actions a {
    width: 36px;
    height: 40px;
    display: grid;
    place-items: center;
  }
  .bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 66px;
    height: calc(66px + env(safe-area-inset-bottom));
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    z-index: 30;
    background: #101113f5;
    backdrop-filter: blur(18px);
    border-top: 1px solid #ffffff13;
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #9a9fa5;
    min-width: 52px;
    min-height: 48px;
    justify-content: center;
  }
  .bottom-nav a span:last-child:not(:first-child) {
    font-size: 0.6875rem;
    font-weight: 650;
  }
  .bottom-nav a.active {
    color: var(--accent);
  }
  .bottom-nav .bottom-publish {
    background: var(--accent);
    color: #132000;
    min-width: 49px;
    min-height: 40px;
    height: 40px;
    border-radius: 13px;
    margin: 0 5px;
  }
  .bottom-publish svg {
    width: 27px;
    height: 27px;
  }
  #main {
    margin: 0;
    padding: 23px 17px calc(90px + env(safe-area-inset-bottom));
    min-height: calc(100svh - 60px);
  }
  #main.feed-page {
    padding: 0 0 calc(66px + env(safe-area-inset-bottom));
  }
  .feed-tabs {
    margin: 0;
    padding: 0 18px;
    border-bottom: 0;
    gap: 25px;
    height: 51px;
  }
  .feed-tabs a {
    padding: 13px 0 9px;
    font-size: 0.9375rem;
  }
  .feed-page .filter-row {
    padding: 4px 17px 12px;
  }
  .feed-page .chip {
    padding: 5px 13px;
    min-height: 32px;
    font-size: 0.8125rem;
  }
  .clip-feed {
    height: calc(100svh - 222px - env(safe-area-inset-bottom));
    min-height: 340px;
    border-radius: 0;
  }
  .clip {
    border-radius: 0;
    border-width: 1px 0;
    margin-bottom: 8px;
    min-height: 100%;
  }
  .clip-head {
    padding: 10px 15px;
  }
  .clip-head .tag {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  .clip video {
    max-height: calc(100svh - 448px - env(safe-area-inset-bottom));
    min-height: 180px;
  }
  .clip-media {
    min-height: 180px;
  }
  .clip-footer {
    padding: 12px 15px;
  }
  .creator-line {
    margin-bottom: 8px;
  }
  .avatar {
    width: 34px;
    height: 34px;
  }
  .creator-line strong {
    font-size: 0.875rem;
  }
  .clip-title {
    font-size: 1rem;
  }
  .clip-description {
    font-size: 0.8125rem;
    margin-bottom: 9px;
    display: block;
  }
  .clip-actions {
    padding-top: 7px;
    gap: 5px;
  }
  .reaction {
    padding: 5px 9px;
    min-height: 37px;
  }
  .clip-footer .reaction:first-child {
    padding-left: 0;
  }
  .clip-controls button {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  .empty-state {
    border: 0;
    border-radius: 0;
    min-height: calc(100svh - 245px);
    padding: 24px;
  }
  .empty-state h2 {
    font-size: 1.65rem;
  }
  .empty-state .empty-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
  }
  .empty-state p {
    font-size: 0.875rem;
  }
  .page-top {
    margin-bottom: 23px;
  }
  .page-top h1 {
    font-size: 1.9rem;
  }
  .form-page {
    margin: 0 auto;
  }
  .form-page h1 {
    margin-top: 18px;
  }
  .two-cols {
    grid-template-columns: 1fr;
  }
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .game-card {
    padding: 13px 10px;
    min-height: 122px;
  }
  .game-card strong {
    font-size: 0.8125rem;
  }
  .clip-grid {
    gap: 10px;
  }
  .tile-body {
    padding: 10px;
  }
  .tile-body h3 {
    font-size: 0.875rem;
  }
  .profile-info {
    padding: 0 3px;
  }
  .profile-info .profile-actions {
    margin-top: 54px;
  }
  .profile-actions .secondary {
    font-size: 0.8125rem;
    padding: 8px 12px;
    min-height: 40px;
  }
  .profile-cover {
    height: 115px;
  }
  .stats {
    gap: 25px;
  }
  .stats strong {
    font-size: 1.3rem;
  }
  .list-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .list-row .row-actions {
    width: 100%;
    padding-left: 0;
  }
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  dialog {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 90svh;
    margin: 0;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  #toast {
    bottom: calc(82px + env(safe-area-inset-bottom));
    width: max-content;
    text-align: center;
  }
  .live-player {
    height: 300px;
  }
  .legal-page {
    margin: 15px auto;
    padding: 20px;
  }
  .setup-body .form-page {
    padding: 8px;
  }
  .search-form {
    gap: 7px;
  }
  .search-form button {
    padding: 10px 13px;
  }
  .search-form input {
    min-width: 0;
  }
}
@media (max-width: 360px) {
  .feed-tabs {
    gap: 19px;
  }
  .clip-actions {
    gap: 1px;
  }
  .reaction {
    padding: 5px 7px;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-info .profile-actions {
    float: none;
    margin-top: 10px;
  }
  .stats {
    gap: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .clip-feed {
    scroll-snap-type: none;
  }
}

.clip-title,
.profile-info h1,
.creator-line strong,
.account-chip strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.creator-line > a:first-child {
  min-width: 0;
}
.creator-line > a:first-child > span:last-child {
  min-width: 0;
}
.clip-description summary {
  cursor: pointer;
  color: var(--muted);
}
.clip-description[open] summary {
  color: var(--accent);
}
.clip-description p {
  margin: 10px 0;
  white-space: pre-wrap;
  color: var(--text);
  font-size: inherit;
}

/* Hide visual scrollbars while preserving touch, wheel and keyboard scrolling. */
html,body,*{scrollbar-width:none!important}*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
