:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f7f7f7;
  --muted: #a5a5a5;
  --dim: #707070;
  --danger: #ff6262;
  --ok: #75f0a0;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  --mx: 50%;
  --my: 20%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.12), transparent 34rem),
    radial-gradient(circle at 100% 20%, rgba(255, 255, 255, 0.055), transparent 26rem),
    linear-gradient(180deg, #0a0a0a 0%, #050505 58%, #000 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
  pointer-events: none;
  animation: gridFloat 18s ease-in-out infinite alternate;
}

@keyframes gridFloat {
  to {
    background-position: 28px 42px;
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.13), transparent 16rem),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.035) 45%, transparent 52%);
  opacity: 0.75;
  pointer-events: none;
  animation: sheenMove 11s ease-in-out infinite alternate;
}

@keyframes sheenMove {
  from {
    transform: translateX(-2%);
  }
  to {
    transform: translateX(2%);
  }
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.site-bg-layer {
  position: fixed;
  inset: -24px;
  z-index: -2;
  opacity: 0.42;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.site-bg-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-visualizer {
  position: fixed;
  inset: auto 0 0;
  z-index: 1;
  width: 100vw;
  height: 150px;
  opacity: 0.42;
  pointer-events: none;
  contain: strict;
}

.cursor-glow {
  position: fixed;
  left: var(--mx);
  top: var(--my);
  z-index: 60;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%);
  mix-blend-mode: screen;
  opacity: 0.55;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 220ms ease;
}

.ambient-orbit {
  position: fixed;
  z-index: -1;
  width: 38vmax;
  height: 38vmax;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  top: -20vmax;
  right: -14vmax;
  animation: orbitDrift 18s linear infinite;
}

.orbit-two {
  left: -20vmax;
  bottom: -18vmax;
  animation: orbitDrift 24s linear infinite reverse;
}

@keyframes orbitDrift {
  to {
    transform: rotate(360deg);
  }
}

.landing {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px;
  text-align: center;
}

.landing-content {
  display: grid;
  justify-items: center;
  gap: 22px;
  animation: landingIn 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes landingIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    filter: blur(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing h1 {
  margin: 0;
  font-size: clamp(64px, 16vw, 176px);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 12%, #7c7c7c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titlePulse 5s ease-in-out infinite;
}

@keyframes titlePulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.14));
  }
}

.landing-copy {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.view-counter {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  color: var(--muted);
  backdrop-filter: blur(18px);
}

.view-counter span:first-child {
  color: var(--text);
  font-weight: 900;
}

.app {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 140px;
}

.app-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 52px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.app-header h2,
.section-head h3,
.panel-head h3,
.modal-card h3,
.rep-form h3,
.comments-block h3 {
  margin: 0;
  letter-spacing: 0;
}

.community-panel {
  display: grid;
  gap: 22px;
}

.wall-form {
  display: grid;
  grid-template-columns: 0.65fr 1fr auto;
  gap: 10px;
  align-items: start;
}

.wall-form .status-line {
  grid-column: 1 / -1;
}

.vote-box {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.vote-box h4 {
  margin: 6px 0 0;
  font-size: 22px;
}

.vote-options {
  display: grid;
  gap: 10px;
}

.vote-options button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  overflow: hidden;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.vote-options button span,
.vote-options button b {
  position: relative;
  z-index: 1;
}

.vote-options button i {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(255, 255, 255, 0.11);
  transition: width 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vote-options button.voted {
  border-color: var(--line-strong);
}

.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 70;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: min(420px, calc(100% - 20px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.mobile-nav button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.mobile-nav button:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

@media (max-width: 620px) {
  .cursor-glow,
  .ambient-orbit {
    display: none;
  }

  body::after {
    opacity: 0.38;
  }

  .audio-visualizer {
    height: 86px;
    opacity: 0.28;
  }
}

.app-header h2 {
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1;
}

.app-header p:not(.kicker) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn,
.danger-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  position: relative;
  overflow: hidden;
}

.primary-btn::after,
.secondary-btn::after,
.ghost-btn::after,
.danger-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.42), transparent 80%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
  pointer-events: none;
}

.primary-btn:hover::after,
.secondary-btn:hover::after,
.ghost-btn:hover::after,
.danger-btn:hover::after {
  transform: translateX(120%);
}

.primary-btn {
  min-height: 46px;
  padding: 0 22px;
  border-color: #fff;
  background: #fff;
  color: #000;
  font-weight: 900;
}

.primary-btn.xl {
  min-height: 58px;
  padding: 0 42px;
  text-transform: uppercase;
}

.secondary-btn,
.ghost-btn {
  min-height: 42px;
  padding: 0 18px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.ghost-btn {
  color: var(--muted);
}

.icon-btn {
  width: 42px;
  height: 42px;
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
}

.danger-btn {
  min-height: 42px;
  padding: 0 18px;
  background: rgba(255, 98, 98, 0.1);
  border-color: rgba(255, 98, 98, 0.28);
  color: var(--danger);
  font-weight: 900;
}

button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.menu-page,
.page-section {
  animation: rise 420ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-head {
  margin-bottom: 22px;
}

.section-head h3,
.panel-head h3 {
  margin-top: 8px;
  font-size: clamp(36px, 6vw, 78px);
  line-height: 0.95;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.menu-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 42%),
    var(--surface);
  text-align: left;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  transform-style: preserve-3d;
  animation: cardIn 580ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--stagger, 0) * 90ms);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  will-change: transform;
  overflow: hidden;
}

.menu-card:nth-child(1) {
  --stagger: 1;
}

.menu-card:nth-child(2) {
  --stagger: 2;
}

.menu-card:nth-child(3) {
  --stagger: 3;
}

.menu-card::before,
.content-panel::before,
.add-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--card-x, 50%) var(--card-y, 0%), rgba(255, 255, 255, 0.18), transparent 34%);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.menu-card:hover::before,
.content-panel:hover::before,
.add-panel:hover::before {
  opacity: 1;
}

.menu-card:hover {
  transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  border-color: var(--line-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px) rotateX(8deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.menu-card span {
  position: relative;
  z-index: 1;
  color: var(--dim);
  font-weight: 900;
}

.menu-card strong {
  position: relative;
  z-index: 1;
  margin-top: 68px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.menu-card small {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.player {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto 110px 80px;
  gap: 14px;
  align-items: center;
  width: min(760px, calc(100% - 32px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 38px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(145deg, #fff, #9a9a9a),
    #fff;
  color: #000;
  font-size: 24px;
  font-weight: 1000;
  box-shadow: 0 0 42px rgba(255, 255, 255, 0.12);
}

.profile-avatar.large {
  width: min(180px, 42vw);
  height: min(180px, 42vw);
  font-size: clamp(36px, 10vw, 62px);
}

.profile-identity h3,
.profile-page-panel h3 {
  margin: 6px 0 10px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.9;
}

.profile-identity p:not(.kicker),
.profile-page-panel p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.profile-pills,
.profile-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.profile-pills span,
.profile-stats-grid span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.profile-stats-grid span {
  display: grid;
  gap: 8px;
  min-height: 120px;
  align-content: center;
  border-radius: 8px;
}

.profile-stats-grid strong {
  color: var(--text);
  font-size: 42px;
}

.profile-page-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

.profile-page-panel .profile-stats-grid {
  grid-column: 1 / -1;
}

.player span {
  display: block;
  color: var(--dim);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.player strong {
  display: block;
  max-width: 220px;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-controls {
  display: flex;
  gap: 6px;
}

.player-controls button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  outline: none;
}

input:not([type="range"]),
textarea,
select {
  padding: 14px 15px;
}

input[type="range"] {
  height: 6px;
  accent-color: #fff;
}

textarea {
  resize: vertical;
}

.page-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.content-panel,
.add-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), transparent 34%),
    rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  content-visibility: auto;
  contain-intrinsic-size: 1px 520px;
}

.content-panel,
.add-panel,
.player,
.app-header {
  animation: glassEnter 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes glassEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.content-panel {
  padding: 28px;
}

.add-panel {
  margin-bottom: 16px;
  padding: 22px;
}

.add-panel form,
.rep-form,
#bg-form,
#music-form {
  display: grid;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr;
  gap: 10px;
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-head span {
  color: var(--muted);
  font-weight: 900;
}

.readonly-note,
.status-line {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.item-list,
.comments-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.item-list.compact {
  margin-top: 18px;
}

.wish-item,
.link-item,
.music-item,
.tag-item,
.comment-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  animation: listPop 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.wish-item:hover,
.link-item:hover,
.music-item:hover,
.tag-item:hover,
.comment-item:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

@keyframes listPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wish-item,
.link-item {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.wish-item.pinned {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.075);
}

.item-main {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.check {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.item-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.item-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.item-title.done {
  color: var(--dim);
  text-decoration: line-through;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.item-meta a {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.pin-pill {
  color: #fff;
  border-color: var(--line-strong);
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.item-actions button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-weight: 900;
  object-fit: cover;
}

.reputation-panel {
  display: grid;
  gap: 28px;
}

.rep-score {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}

.rep-score strong {
  font-size: clamp(64px, 12vw, 112px);
  line-height: 0.9;
  animation: scoreGlow 2.8s ease-in-out infinite;
}

@keyframes scoreGlow {
  50% {
    text-shadow: 0 0 26px rgba(255, 255, 255, 0.16);
  }
}

.rep-score strong.positive {
  color: var(--ok);
}

.rep-score strong.negative {
  color: var(--danger);
}

.rep-score span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.rep-score div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.rep-score b {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.own-banner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(117, 240, 160, 0.28);
  border-radius: 8px;
  background: rgba(117, 240, 160, 0.075);
}

.own-banner p {
  margin: 0;
  color: var(--ok);
}

.rep-choice {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.rep-choice label {
  cursor: pointer;
}

.rep-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rep-choice span {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
}

.rep-choice input:checked + span {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.comment-item {
  grid-template-columns: auto 1fr auto;
  align-items: start;
}

.comment-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-weight: 900;
}

.comment-item p {
  margin: 0;
  line-height: 1.55;
}

.comment-item small {
  color: var(--muted);
}

.liked-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.mini-player-btn,
.secret-admin-btn {
  position: fixed;
  z-index: 40;
  border-radius: 999px;
}

.mini-player-btn {
  right: 22px;
  top: 22px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.78);
  color: var(--text);
  font-weight: 900;
  backdrop-filter: blur(18px);
}

.secret-admin-btn {
  left: 0;
  bottom: 0;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(14px);
}

.modal-card {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 14, 14, 0.92);
  box-shadow: var(--shadow);
  animation: modalReveal 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalReveal {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(18px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.modal-card h3 {
  margin-bottom: 18px;
  font-size: 28px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.admin-card {
  width: min(900px, 100%);
  padding: 0;
  overflow: hidden;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.admin-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 460px;
}

.admin-tabs {
  display: grid;
  align-content: start;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.admin-tab {
  min-height: 54px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  padding: 0 18px;
  font-weight: 900;
}

.admin-tab.active {
  border-left-color: #fff;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.admin-panes {
  padding: 24px;
  overflow: auto;
  max-height: 66vh;
}

.admin-pane {
  display: none;
}

.admin-pane.active {
  display: grid;
  gap: 12px;
}

.admin-pane h4 {
  margin: 0 0 10px;
  font-size: 24px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.spam-warning {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(120, 0, 0, 0.86);
  color: #fff;
  font-size: clamp(42px, 10vw, 120px);
  text-align: center;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 150;
  transform: translateY(18px);
  opacity: 0;
  padding: 12px 15px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 900;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-glow,
  .ambient-orbit {
    display: none;
  }
}

@media (max-width: 880px) {
  .menu-grid,
  .form-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .app-header {
    position: static;
    grid-template-columns: 1fr auto;
  }

  #home-btn {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .menu-card {
    min-height: 190px;
  }

  .player {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .admin-tabs {
    grid-template-columns: repeat(5, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-tab {
    border-left: 0;
    border-bottom: 3px solid transparent;
    text-align: center;
    padding: 0 8px;
  }
}

@media (max-width: 620px) {
  .landing {
    padding: 18px;
  }

  .landing h1 {
    font-size: clamp(58px, 20vw, 92px);
  }

  .app {
    width: min(100% - 22px, 560px);
    padding-top: 12px;
  }

  .app-header,
  .wish-item,
  .link-item,
  .comment-item,
  .own-banner,
  .form-footer,
  .page-toolbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .panel-head {
    align-items: start;
    flex-direction: column;
  }

  .content-panel {
    padding: 18px;
  }

  .profile-hero,
  .profile-page-panel,
  .wall-form,
  .profile-stats-grid {
    grid-template-columns: 1fr;
  }

  body.entered .mobile-nav {
    display: grid;
  }

  .player {
    bottom: 72px;
  }

  .item-actions {
    justify-content: flex-start;
  }
}
