:root {
  color-scheme: dark;
  --bg: #120608;
  --bg-2: #1d090c;
  --panel: rgba(43, 13, 17, 0.9);
  --panel-strong: #2b0d11;
  --red: #ff243d;
  --red-2: #b20f24;
  --red-3: #6d0a16;
  --gold: #ffb84d;
  --text: #fff5f5;
  --muted: #cba2a6;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 22% 10%, rgba(255, 36, 61, 0.24), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(255, 184, 77, 0.12), transparent 22rem),
    linear-gradient(135deg, var(--bg), #090304 58%, var(--bg-2));
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%);
  background-size: 26px 26px;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--red), var(--red-3));
  box-shadow: 0 12px 28px rgba(255, 36, 61, 0.26);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 6, 8, 0.68);
}

.topnav a {
  min-height: 36px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.topnav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 540px;
  margin: 0 auto;
  padding: 18px 0 32px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: #f0c7ca;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.download-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.download-button {
  min-width: 250px;
  padding: 13px 18px;
}

.download-button:hover,
.button:hover,
.menu-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

.download-button.primary,
.button.primary,
.menu-item.active {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, var(--red), var(--red-2));
  box-shadow: 0 18px 42px rgba(255, 36, 61, 0.28);
}

.download-button small,
.download-button strong {
  display: block;
}

.download-button small {
  margin-top: 3px;
  color: #ffd1d5;
  font-size: 12px;
  font-weight: 700;
}

.icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.24);
  font-size: 15px;
  font-weight: 900;
}

.server-panel,
.preview-panel,
.admin-form,
.features article,
.dashboard-sidebar,
.admin-panel,
.skin-card,
.stats-grid article,
.table-wrap,
.settings-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.server-panel {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.server-panel div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.server-panel strong {
  display: block;
  margin-top: 18px;
  font-size: 34px;
  overflow-wrap: anywhere;
}

.server-panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #37ff85;
  box-shadow: 0 0 20px rgba(55, 255, 133, 0.82);
}

.hero-art {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(52vw, 580px);
  height: min(52vw, 580px);
  pointer-events: none;
}

.block,
.ember {
  position: absolute;
  display: block;
}

.block {
  width: 110px;
  height: 110px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(145deg, var(--red-2), #351014);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(12deg);
}

.block::after {
  position: absolute;
  inset: 16px;
  content: "";
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.18);
}

.block-1 {
  top: 12%;
  right: 8%;
}

.block-2 {
  top: 32%;
  right: 32%;
  width: 150px;
  height: 150px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 40%),
    linear-gradient(145deg, var(--red), #4f111a);
}

.block-3 {
  top: 62%;
  right: 5%;
  width: 88px;
  height: 88px;
}

.block-4 {
  top: 68%;
  right: 42%;
  width: 72px;
  height: 72px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(145deg, #ff8a2a, var(--red-3));
}

.ember {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(255, 184, 77, 0.7);
  animation: float 3.8s ease-in-out infinite;
}

.ember-1 {
  top: 18%;
  right: 58%;
}

.ember-2 {
  top: 54%;
  right: 13%;
  animation-delay: 1s;
}

.ember-3 {
  top: 82%;
  right: 28%;
  animation-delay: 1.8s;
}

@keyframes float {
  50% {
    transform: translateY(-18px);
    opacity: 0.62;
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 56px;
}

.features article {
  padding: 24px;
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.features h2,
.preview-panel h2,
.section-heading h2 {
  margin: 18px 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

.features p,
.preview-panel p,
.section-heading p,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer a {
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.dashboard,
.cabinet-shell,
.auth-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 72px;
}

.auth-shell {
  display: grid;
  max-width: 760px;
  min-height: 70vh;
  align-content: center;
}

.auth-form {
  max-width: 520px;
}

.dashboard {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
}

.dashboard-sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.menu-item {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.dashboard-content {
  min-width: 0;
}

.admin-panel {
  display: none;
  padding: 24px;
}

.admin-panel.active {
  display: block;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 22px;
}

.section-heading h1 {
  font-size: clamp(42px, 6vw, 78px);
}

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

.stats-grid article {
  padding: 20px;
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.stats-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  overflow-wrap: anywhere;
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.compact-form {
  max-width: 760px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: #f4d7da;
  font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.role-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  outline: none;
}

.admin-form input[type="file"] {
  padding: 10px;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.role-select:focus {
  border-color: rgba(255, 36, 61, 0.74);
  box-shadow: 0 0 0 4px rgba(255, 36, 61, 0.12);
}

.role-select {
  min-width: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.button {
  min-width: 150px;
  padding: 0 18px;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
}

.button.danger {
  background: rgba(255, 36, 61, 0.16);
}

.save-state {
  min-height: 22px;
  margin: 0;
  color: var(--gold);
  font-weight: 800;
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  font-weight: 700;
}

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

.skin-admin-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.skin-admin-item img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  image-rendering: pixelated;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.32);
}

.settings-list {
  display: grid;
  gap: 12px;
  max-width: 720px;
  padding: 20px;
  color: var(--muted);
  font-weight: 800;
}

.settings-list label {
  display: flex;
  gap: 10px;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.profile-card {
  min-width: 0;
}

.profile-card-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.skin-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.texture-paths {
  display: grid;
  gap: 10px;
}

.texture-paths code {
  display: block;
  overflow-wrap: anywhere;
}

.skin-preview {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    rgba(0, 0, 0, 0.2);
  background-size: 22px 22px;
}

.skin-preview canvas {
  width: 192px;
  height: 192px;
  image-rendering: pixelated;
}

code {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #ffd1d5;
  background: rgba(0, 0, 0, 0.28);
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .hero,
  .features,
  .dashboard,
  .cabinet-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-art {
    inset: 0 0 auto auto;
    width: 92vw;
    height: 92vw;
    opacity: 0.52;
  }

  .server-panel {
    max-width: 460px;
  }

  .dashboard-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
  }

  .topnav a {
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(44px, 17vw, 70px);
  }

  .download-button {
    width: 100%;
    justify-content: flex-start;
  }

  .form-row,
  .footer,
  .skin-admin-item {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

/* Launcher-aligned theme */
:root {
  --bg: #0b1027;
  --bg-2: #121833;
  --panel: rgba(16, 20, 45, 0.78);
  --panel-strong: rgba(8, 12, 31, 0.88);
  --red: #a38bff;
  --red-2: #6357df;
  --red-3: #171d3a;
  --gold: #f0bf73;
  --green: #57e3a0;
  --pink: #ff6bcb;
  --text: #f7f2ff;
  --muted: #c7c2df;
  --line: rgba(240, 191, 115, 0.24);
  --violet-line: rgba(163, 139, 255, 0.3);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(7, 10, 27, 0.56), rgba(7, 10, 27, 0.72)),
    url("launcher-bg.png") center top / cover fixed no-repeat,
    #0b1027;
}

body::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(8, 12, 31, 0.82) 0, rgba(8, 12, 31, 0.5) 330px, rgba(8, 12, 31, 0.14) 60%, rgba(8, 12, 31, 0.68) 100%),
    radial-gradient(circle at 76% 18%, rgba(255, 107, 203, 0.22), transparent 20rem),
    radial-gradient(circle at 56% 88%, rgba(87, 227, 160, 0.12), transparent 22rem);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 10, 27, 0) 48%, rgba(7, 10, 27, 0.88) 100%);
}

.topbar {
  width: min(1220px, calc(100% - 32px));
  padding: 18px 18px;
  margin-top: 16px;
  border: 1px solid rgba(240, 191, 115, 0.2);
  border-radius: 18px;
  background: rgba(8, 12, 31, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: 54px;
  height: 42px;
  border-color: rgba(163, 139, 255, 0.45);
  border-radius: 50%;
  color: #ffffff;
  background:
    radial-gradient(circle at 62% 72%, rgba(240, 191, 115, 0.75), transparent 7px),
    rgba(7, 10, 27, 0.42);
  box-shadow: 0 0 22px rgba(163, 139, 255, 0.18);
  text-shadow: 0 2px 10px rgba(163, 139, 255, 0.72);
}

.brand strong {
  color: #ffffff;
  font-size: 17px;
}

.brand small,
.eyebrow,
.save-state {
  color: var(--gold);
}

.topnav {
  border-color: var(--violet-line);
  border-radius: 12px;
  background: rgba(247, 242, 255, 0.1);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

.topnav a {
  border-radius: 9px;
  color: var(--text);
}

.topnav a:hover {
  background: rgba(163, 139, 255, 0.22);
}

.hero {
  grid-template-columns: minmax(0, 1fr) 360px;
  width: min(1220px, calc(100% - 32px));
  min-height: 610px;
  padding-top: 42px;
}

.hero-content {
  max-width: 790px;
  padding: 32px;
  border: 1px solid rgba(240, 191, 115, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(8, 12, 31, 0.76), rgba(16, 20, 45, 0.5));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-content::before {
  display: block;
  width: min(360px, 78vw);
  height: 88px;
  margin: -4px 0 14px;
  content: "HOKARIA";
  border: 3px solid rgba(163, 139, 255, 0.82);
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
  line-height: 82px;
  text-align: center;
  text-shadow: 0 6px 22px rgba(163, 139, 255, 0.8);
  box-shadow: inset 0 -6px 0 rgba(240, 191, 115, 0.82), 0 18px 44px rgba(0, 0, 0, 0.24);
}

h1 {
  color: #ffffff;
  font-size: clamp(48px, 7vw, 96px);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.hero-text,
.features p,
.preview-panel p,
.section-heading p,
.muted {
  color: var(--muted);
}

.download-actions {
  gap: 18px;
}

.download-button.primary {
  min-width: 310px;
  min-height: 86px;
  border: 2px solid rgba(240, 191, 115, 0.74);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 107, 203, 0.28), rgba(124, 109, 255, 0.38)),
    linear-gradient(180deg, rgba(25, 16, 48, 0.98), rgba(77, 31, 103, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 216, 148, 0.28), 0 18px 42px rgba(255, 107, 203, 0.2);
}

.download-button.primary:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(255, 216, 148, 0.95);
  background:
    linear-gradient(135deg, rgba(255, 107, 203, 0.36), rgba(163, 139, 255, 0.48)),
    linear-gradient(180deg, rgba(37, 24, 68, 0.98), rgba(92, 38, 121, 0.92));
}

.download-button.primary .icon {
  display: grid;
  color: #17112c;
  background: linear-gradient(180deg, #ffd894, #f0bf73);
}

.download-button.primary small {
  display: block;
  color: #ffd894;
}

.download-button.primary strong {
  color: #fff7ff;
  font-size: 20px;
  text-shadow: 0 2px 10px rgba(61, 11, 86, 0.7);
}

.download-button,
.button,
.menu-item {
  border-color: var(--violet-line);
  border-radius: 12px;
  background: rgba(247, 242, 255, 0.1);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.download-button:hover,
.button:hover,
.menu-item:hover {
  border-color: rgba(240, 191, 115, 0.42);
  background: rgba(247, 242, 255, 0.17);
}

.button.primary,
.menu-item.active {
  background: linear-gradient(135deg, #a38bff 0%, #6357df 100%);
  box-shadow: 0 18px 42px rgba(124, 109, 255, 0.34);
}

.download-button.primary {
  border: 2px solid rgba(240, 191, 115, 0.74);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 107, 203, 0.28), rgba(124, 109, 255, 0.36)),
    linear-gradient(180deg, rgba(25, 16, 48, 0.98), rgba(77, 31, 103, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 216, 148, 0.28), 0 18px 42px rgba(255, 107, 203, 0.2);
}

.button.danger {
  background: linear-gradient(135deg, rgba(240, 191, 115, 0.24), rgba(255, 107, 130, 0.26));
}

.icon,
.feature-icon {
  color: #0b1027;
  background: var(--gold);
  box-shadow: 0 10px 30px rgba(240, 191, 115, 0.26);
}

.server-panel,
.preview-panel,
.admin-form,
.features article,
.dashboard-sidebar,
.admin-panel,
.skin-card,
.stats-grid article,
.table-wrap,
.settings-list {
  border-color: rgba(240, 191, 115, 0.22);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.server-panel {
  align-self: end;
  margin-bottom: 44px;
  background: rgba(8, 12, 31, 0.74);
}

.server-panel strong {
  color: #ffffff;
}

.status-dot {
  background: var(--green);
  box-shadow: 0 0 22px rgba(87, 227, 160, 0.9);
}

.hero-art {
  inset: 68px 26px auto auto;
  width: min(42vw, 520px);
  height: 360px;
  border: 1px solid rgba(240, 191, 115, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(rgba(7, 10, 27, 0.08), rgba(7, 10, 27, 0.38)),
    url("launcher-bg.png") center / cover no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-art::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(8, 12, 31, 0.82) 0 28%, rgba(8, 12, 31, 0.1) 28%);
}

.hero-art::after {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 190px;
  height: 64px;
  content: "";
  background: url("play-button.png") center / contain no-repeat;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.38));
}

.block {
  display: none;
}

.ember {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 28px rgba(255, 107, 203, 0.82);
}

.features {
  width: min(1220px, calc(100% - 32px));
}

.features article {
  background: linear-gradient(180deg, rgba(16, 20, 45, 0.8), rgba(8, 12, 31, 0.72));
}

.dashboard,
.cabinet-shell,
.auth-shell {
  width: min(1220px, calc(100% - 32px));
}

.dashboard {
  grid-template-columns: 260px minmax(0, 1fr);
}

.dashboard-sidebar {
  border-width: 1px;
  background: rgba(8, 12, 31, 0.74);
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.role-select,
code {
  border-color: rgba(240, 191, 115, 0.38);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(9, 13, 35, 0.86);
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.role-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(240, 191, 115, 0.13);
}

.skin-preview {
  border-color: var(--violet-line);
  border-radius: 16px;
  background:
    linear-gradient(45deg, rgba(247, 242, 255, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(247, 242, 255, 0.06) 25%, transparent 25%),
    rgba(9, 13, 35, 0.72);
  background-size: 22px 22px;
}

th,
td {
  border-bottom-color: rgba(247, 242, 255, 0.12);
}

th {
  color: var(--gold);
}

.footer {
  width: min(1220px, calc(100% - 32px));
  border-top-color: rgba(240, 191, 115, 0.22);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 24px;
  }

  .hero-art {
    position: relative;
    inset: auto;
    width: 100%;
    height: 300px;
    opacity: 1;
  }

  .server-panel {
    max-width: none;
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    margin-top: 8px;
    padding: 14px;
    border-radius: 14px;
  }

  .hero-content::before {
    height: 82px;
  }

  .download-button.primary {
    min-width: 0;
    width: 100%;
    min-height: 72px;
  }

  .download-button.primary strong {
    font-size: 20px;
  }
}

/* Hokaria reference layout */
:root {
  --bg: #07091d;
  --bg-2: #15102b;
  --panel: rgba(14, 12, 32, 0.72);
  --panel-strong: rgba(12, 10, 28, 0.86);
  --red: #f05a9a;
  --red-2: #cc3779;
  --red-3: #3b183d;
  --gold: #ff6aa7;
  --green: #22f58a;
  --pink: #ff5fa2;
  --text: #fff7ff;
  --muted: #c9c2dd;
  --line: rgba(255, 95, 162, 0.34);
  --violet-line: rgba(255, 95, 162, 0.34);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

body {
  background:
    linear-gradient(180deg, rgba(6, 7, 21, 0.12), rgba(6, 7, 21, 0.58) 72%, rgba(6, 7, 21, 0.94)),
    url("hokaria-bg.png") center top / cover fixed no-repeat,
    #07091d;
}

body::before {
  background:
    linear-gradient(90deg, rgba(6, 7, 21, 0.1), rgba(6, 7, 21, 0.34) 36%, rgba(6, 7, 21, 0.08) 68%, rgba(6, 7, 21, 0.34)),
    radial-gradient(circle at 26% 34%, rgba(255, 95, 162, 0.16), transparent 28rem),
    radial-gradient(circle at 76% 18%, rgba(255, 95, 162, 0.2), transparent 20rem);
}

.topbar {
  width: 100%;
  max-width: none;
  min-height: 98px;
  margin: 0;
  padding: 20px max(24px, calc((100vw - 1188px) / 2));
  border: 0;
  border-bottom: 1px solid rgba(255, 95, 162, 0.56);
  border-radius: 0;
  background: rgba(8, 8, 25, 0.28);
  box-shadow: none;
}

.brand {
  gap: 14px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background:
    radial-gradient(circle at 42% 38%, #ff6aa7 0 28%, transparent 29%),
    conic-gradient(from 145deg, #ff2e78, #ff7db3, #441e65, #ff2e78);
  font-size: 0;
}

.brand-mark::after {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(8, 8, 25, 0.82);
}

.brand strong {
  color: #ffffff;
  font-size: 0;
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 95, 162, 0.42);
}

.brand strong::after {
  display: block;
  width: clamp(210px, 18vw, 285px);
  height: clamp(56px, 4.9vw, 76px);
  content: "";
  background: url("hokaria-logo-crop.png") left center / contain no-repeat;
  filter: drop-shadow(0 0 16px rgba(255, 95, 162, 0.38));
}

.brand small {
  display: none;
}

.topnav {
  gap: 18px;
  padding: 10px;
  border: 1px solid rgba(255, 95, 162, 0.28);
  border-radius: 12px;
  background: rgba(10, 10, 30, 0.7);
  backdrop-filter: blur(14px);
}

.topnav a {
  min-width: 86px;
  min-height: 38px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff7ff;
  font-size: 14px;
}

.topnav a:first-child,
.topnav a:hover {
  border-color: rgba(255, 95, 162, 0.7);
  color: #ff8fbd;
  background: rgba(255, 95, 162, 0.1);
}

.hero {
  width: min(1188px, calc(100% - 32px));
  min-height: 560px;
  grid-template-columns: minmax(0, 760px) minmax(280px, 1fr);
  align-items: end;
  padding: 68px 0 32px;
}

.hero-content {
  max-width: none;
  min-height: 382px;
  padding: 54px 46px 30px;
  border: 1px solid rgba(255, 95, 162, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(16, 13, 35, 0.88), rgba(20, 13, 37, 0.68)),
    linear-gradient(135deg, rgba(255, 95, 162, 0.12), transparent 54%);
  box-shadow: var(--shadow);
}

.hero-content::before {
  width: auto;
  height: auto;
  margin: 0 0 16px;
  content: "ANIME EDITION";
  border: 0;
  color: #ff5fa2;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: left;
  text-shadow: 0 0 16px rgba(255, 95, 162, 0.62);
  box-shadow: none;
}

.eyebrow {
  margin-bottom: 10px;
  color: #ff5fa2;
}

h1 {
  color: #ffffff;
  font-size: clamp(66px, 8.2vw, 118px);
  line-height: 0.76;
  letter-spacing: 0.02em;
  text-shadow: 0 0 24px rgba(255, 95, 162, 0.22), 0 12px 38px rgba(0, 0, 0, 0.62);
}

.hero-content h1::before {
  display: block;
  width: min(620px, 100%);
  height: clamp(128px, 12vw, 166px);
  content: "";
  background: url("hokaria-logo-crop.png") left center / contain no-repeat;
  filter: drop-shadow(0 0 22px rgba(255, 95, 162, 0.32)) drop-shadow(0 14px 28px rgba(0, 0, 0, 0.52));
}

.hero-content h1 {
  font-size: 0;
}

.hero-content h1::before {
  line-height: 0.8;
}

.hero-text {
  max-width: 500px;
  margin-top: 20px;
  font-size: 16px;
}

.download-actions {
  margin-top: 22px;
  gap: 14px;
}

.download-button,
.download-button.primary {
  min-width: 262px;
  min-height: 78px;
  border: 1px solid rgba(255, 95, 162, 0.52);
  border-radius: 6px;
  background: rgba(15, 12, 34, 0.72);
  box-shadow: inset 0 0 24px rgba(255, 95, 162, 0.06), 0 16px 38px rgba(0, 0, 0, 0.3);
}

.download-button.primary {
  background: linear-gradient(135deg, #ff4f98, #c94791);
}

.download-button:hover,
.download-button.primary:hover {
  border-color: rgba(255, 119, 181, 0.88);
  background: linear-gradient(135deg, rgba(255, 87, 156, 0.92), rgba(89, 38, 90, 0.82));
}

.download-button .icon {
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  font-size: 22px;
}

.download-button strong,
.download-button.primary strong {
  color: #ffffff;
  font-size: 17px;
}

.download-button small,
.download-button.primary small {
  color: rgba(255, 247, 255, 0.7);
}

.hero-art {
  display: none;
}

.server-panel {
  align-self: end;
  width: min(100%, 330px);
  margin: 0 0 0 22px;
  padding: 24px;
  border: 1px solid rgba(255, 95, 162, 0.42);
  border-radius: 8px;
  background: rgba(16, 13, 35, 0.72);
  box-shadow: var(--shadow);
}

.server-panel strong {
  margin-top: 16px;
  font-size: 30px;
}

.features {
  width: min(1188px, calc(100% - 32px));
  gap: 24px;
  padding-bottom: 22px;
}

.features article {
  min-height: 172px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(19, 16, 41, 0.78), rgba(18, 14, 35, 0.62));
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 147, 190, 0.7);
  border-radius: 50%;
  color: transparent;
  background-color: rgba(18, 14, 35, 0.5);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 76%;
  box-shadow: 0 0 28px rgba(255, 95, 162, 0.32);
  overflow: hidden;
}

.features article:nth-child(1) .feature-icon {
  background-image: url("feature-torii.png");
  background-size: 104%;
}

.features article:nth-child(2) .feature-icon {
  background-image: url("feature-sun.png");
  background-size: 104%;
}

.features article:nth-child(3) .feature-icon {
  background-image: url("feature-kanji.png");
  background-size: 86%;
}

.features h2 {
  margin-top: 14px;
  font-size: 18px;
}

.footer {
  width: min(1188px, calc(100% - 32px));
  padding-top: 8px;
  border-top: 0;
}

.admin-form,
.dashboard-sidebar,
.admin-panel,
.skin-card,
.stats-grid article,
.table-wrap,
.settings-list {
  border-color: rgba(255, 95, 162, 0.3);
  border-radius: 8px;
  background: rgba(14, 12, 32, 0.76);
}

.button.primary,
.menu-item.active {
  background: linear-gradient(135deg, #ff4f98, #b93a82);
  box-shadow: 0 18px 42px rgba(255, 95, 162, 0.24);
}

@media (max-width: 980px) {
  .topbar {
    min-height: auto;
    padding: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .server-panel {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 640px) {
  .brand strong {
    font-size: 0;
  }

  .brand strong::after {
    width: 190px;
    height: 54px;
    background-size: contain;
  }

  .topnav {
    gap: 8px;
  }

  .hero-content {
    padding: 32px 22px 24px;
  }

  .hero-content h1::before {
    height: clamp(92px, 25vw, 126px);
    background-size: contain;
  }

  .download-button,
  .download-button.primary {
    width: 100%;
  }
}

/* Home page: reference redesign */
.home-page {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff7ff;
  background:
    linear-gradient(90deg, rgba(5, 5, 19, 0.9) 0%, rgba(8, 7, 28, 0.56) 34%, rgba(8, 7, 28, 0.2) 66%, rgba(5, 5, 19, 0.78) 100%),
    linear-gradient(180deg, rgba(5, 5, 19, 0.02) 0%, rgba(5, 5, 19, 0.12) 54%, rgba(5, 5, 19, 0.95) 100%),
    url("hokaria-user-bg.png") center top / cover fixed no-repeat,
    #07091d;
}

.home-page::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 78, 160, 0.2), transparent 24rem),
    radial-gradient(circle at 78% 16%, rgba(120, 67, 255, 0.26), transparent 25rem),
    radial-gradient(circle at 52% 88%, rgba(255, 78, 160, 0.12), transparent 22rem);
}

.home-page::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 76%, transparent);
}

.home-page a {
  color: inherit;
}

.home-nav {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  width: min(1220px, calc(100% - 36px));
  min-height: 58px;
  margin: 10px auto 0;
  padding: 0 14px 0 20px;
  border: 1px solid rgba(255, 112, 180, 0.36);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(19, 14, 48, 0.84), rgba(13, 12, 39, 0.64));
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.38), inset 0 0 28px rgba(255, 95, 162, 0.08);
  backdrop-filter: blur(18px);
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 188px;
}

.home-brand-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(16, 13, 42, 0.98) 0 36%, transparent 38%),
    conic-gradient(from 130deg, #ff4aa1, #ffc0df, #6c39ff, #ff4aa1);
  box-shadow: 0 0 24px rgba(255, 95, 162, 0.56);
}

.home-brand img {
  width: 126px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 95, 162, 0.5));
}

.home-menu {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 30px);
  min-width: 0;
  max-width: 100%;
}

.home-menu a {
  position: relative;
  padding: 22px 0 20px;
  color: #f4eaff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-menu a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  border-radius: 999px;
  opacity: 0;
  background: #ff5fa2;
  box-shadow: 0 0 18px rgba(255, 95, 162, 0.95);
}

.home-menu a.active,
.home-menu a:hover {
  color: #ff8fc0;
}

.home-menu a.active::after,
.home-menu a:hover::after {
  opacity: 1;
}

.home-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.home-socials a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-socials a:hover {
  background: rgba(255, 95, 162, 0.18);
}

.home-play,
.strip-download {
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 95, 162, 0.62);
  border-radius: 6px;
  color: #ffd8eb;
  background: linear-gradient(135deg, rgba(255, 79, 152, 0.24), rgba(255, 79, 152, 0.08));
  box-shadow: inset 0 0 22px rgba(255, 95, 162, 0.14), 0 0 26px rgba(255, 95, 162, 0.18);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-play:hover,
.strip-download:hover {
  background: linear-gradient(135deg, #ff4f98, #b93a82);
}

.home-main {
  position: relative;
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 28px;
}

.scroll-rail {
  position: absolute;
  top: 156px;
  left: -98px;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scroll-rail i {
  display: block;
  width: 1px;
  height: 368px;
  background: linear-gradient(180deg, #ffffff, rgba(255, 95, 162, 0.88), rgba(255, 255, 255, 0));
}

.scroll-rail b {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(250px, 1fr) 280px;
  gap: 22px;
  align-items: start;
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-height: 520px;
  min-width: 0;
}

.hero-kicker {
  display: inline-flex;
  margin: 18px 0 20px 160px;
  padding: 8px 24px;
  border: 1px solid rgba(255, 95, 162, 0.24);
  border-radius: 7px;
  color: #ff8fc0;
  background: rgba(19, 14, 48, 0.68);
  box-shadow: inset 0 0 22px rgba(255, 95, 162, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  width: min(560px, 100%);
  height: clamp(96px, 10vw, 134px);
  margin: 0;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  background: url("hokaria-logo-crop.png") left center / contain no-repeat;
  filter: drop-shadow(0 0 18px rgba(255, 95, 162, 0.42)) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.5));
}

.hero-lead {
  width: 100%;
  max-width: 510px;
  margin: 14px 0 0;
  color: #f0e6ff;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.hero-lead strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-lead strong::first-line {
  color: #ff70ad;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.launcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: 220px;
  min-height: 64px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 95, 162, 0.42);
  border-radius: 8px;
  background: rgba(16, 13, 35, 0.7);
  box-shadow: inset 0 0 24px rgba(255, 95, 162, 0.06), 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.launcher-btn.primary {
  width: 252px;
  border-color: rgba(255, 144, 194, 0.7);
  background: linear-gradient(135deg, rgba(255, 100, 172, 0.96), rgba(201, 59, 138, 0.9));
  box-shadow: 0 18px 48px rgba(255, 75, 150, 0.28);
}

.launcher-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 144, 194, 0.86);
  background: linear-gradient(135deg, rgba(255, 95, 162, 0.88), rgba(96, 43, 102, 0.78));
}

.platform-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.launcher-btn strong,
.launcher-btn small {
  display: block;
}

.launcher-btn strong {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.launcher-btn small {
  margin-top: 3px;
  color: rgba(255, 247, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 500px;
  margin-top: 18px;
  border: 1px solid rgba(255, 95, 162, 0.28);
  border-radius: 8px;
  background: rgba(16, 13, 35, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.hero-stats article {
  min-width: 0;
  padding: 15px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats article:last-child {
  border-right: 0;
}

.hero-stats span {
  display: block;
  color: #bdb5d4;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-stats strong {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: #ffffff;
  font-size: 18px;
}

.hero-stats i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22f58a;
  box-shadow: 0 0 16px rgba(34, 245, 138, 0.86);
}

.hero-sidebar {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 18px;
  grid-column: 3;
  padding-top: 108px;
}

.hero-character {
  position: absolute;
  z-index: 2;
  right: 210px;
  bottom: 8px;
  width: min(360px, 32vw);
  height: 540px;
  pointer-events: none;
}

.hero-character::before {
  position: absolute;
  inset: 10% 8% 6%;
  content: "";
  border-radius: 45% 45% 12% 12%;
  background: radial-gradient(circle at 50% 42%, rgba(255, 86, 168, 0.22), transparent 60%);
  filter: blur(18px);
}

.hero-character img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 0 28px rgba(255, 95, 162, 0.34)) drop-shadow(0 28px 46px rgba(0, 0, 0, 0.58));
}

.glass-widget {
  border: 1px solid rgba(255, 95, 162, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 17, 45, 0.84), rgba(16, 13, 35, 0.66));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), inset 0 0 24px rgba(255, 95, 162, 0.06);
  backdrop-filter: blur(14px);
}

.news-widget {
  padding: 18px;
}

.news-widget h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-widget article {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.news-widget strong {
  color: #ff79b4;
  font-size: 13px;
  text-transform: uppercase;
}

.news-widget strong::before {
  content: "✦ ";
}

.news-widget span,
.news-widget small {
  color: #d8d1ea;
  font-size: 12px;
  line-height: 1.35;
}

.news-widget small {
  color: #8f86a9;
}

.status-widget {
  position: relative;
  min-height: 116px;
  padding: 18px;
  overflow: hidden;
}

.status-widget span,
.event-widget span {
  color: #d8d1ea;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-widget span::after {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 48px;
  border-radius: 50%;
  content: "";
  background: #22f58a;
  box-shadow: 0 0 14px rgba(34, 245, 138, 0.86);
}

.status-widget strong {
  display: block;
  margin-top: 12px;
  color: #22f58a;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(34, 245, 138, 0.3);
}

.status-widget small {
  display: block;
  margin-top: 8px;
  color: #d8d1ea;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-widget i {
  position: absolute;
  right: 18px;
  bottom: 17px;
  left: 18px;
  height: 22px;
  background:
    linear-gradient(90deg, transparent 0 4%, #17d982 4% 5%, transparent 5% 10%, #17d982 10% 12%, transparent 12% 18%, #17d982 18% 19%, transparent 19% 28%, #17d982 28% 31%, transparent 31% 38%, #17d982 38% 39%, transparent 39% 48%, #17d982 48% 52%, transparent 52% 62%, #17d982 62% 63%, transparent 63% 72%, #17d982 72% 74%, transparent 74% 82%, #17d982 82% 84%, transparent 84%);
  opacity: 0.86;
  clip-path: polygon(0 55%, 5% 55%, 8% 30%, 13% 68%, 17% 44%, 23% 52%, 27% 22%, 31% 74%, 37% 42%, 43% 60%, 49% 34%, 56% 58%, 62% 18%, 68% 80%, 74% 45%, 80% 56%, 86% 28%, 92% 62%, 100% 44%, 100% 100%, 0 100%);
}

.event-widget {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 16px;
}

.event-flower {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 8px;
  color: #ffd9eb;
  background: linear-gradient(135deg, #ff5fa2, #ae3b93);
  box-shadow: 0 0 28px rgba(255, 95, 162, 0.34);
  font-size: 36px;
}

.event-widget strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-widget small {
  display: block;
  margin-top: 5px;
  color: #d8d1ea;
  font-size: 12px;
  line-height: 1.35;
}

.modes-section {
  position: relative;
  z-index: 5;
  margin-top: 16px;
}

.section-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-tabs strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.section-tabs strong::before {
  content: "◆ ";
  color: #ff5fa2;
}

.section-tabs span {
  color: #ff8fc0;
  font-size: 11px;
  font-weight: 900;
}

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

.mode-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 150px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 95, 162, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 8, 25, 0.02), rgba(8, 8, 25, 0.9)),
    url("launcher-bg.png") center / cover no-repeat;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36), inset 0 0 22px rgba(255, 95, 162, 0.08);
}

.mode-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.52;
  background: radial-gradient(circle at 20% 0%, rgba(255, 95, 162, 0.62), transparent 34%);
}

.mode-rpg {
  background-position: 44% 52%;
}

.mode-sky {
  background-image:
    linear-gradient(180deg, rgba(8, 8, 25, 0.08), rgba(8, 8, 25, 0.82)),
    url("launcher-bg.png");
  filter: saturate(1.12) brightness(1.08);
}

.mode-pvp {
  background-position: 70% 50%;
}

.mode-card span,
.mode-card strong,
.mode-card small {
  position: relative;
  z-index: 1;
}

.mode-card span {
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.mode-card strong {
  margin-top: 2px;
  color: #dcd4ef;
  font-size: 11px;
}

.mode-card small {
  margin-top: 5px;
  color: #a69dbd;
  font-size: 10px;
  font-weight: 900;
}

.launcher-strip {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) auto repeat(3, minmax(150px, 1fr));
  gap: 18px;
  align-items: center;
  margin: 18px 0 0;
  padding: 20px 22px;
  border: 1px solid rgba(255, 95, 162, 0.38);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(21, 15, 48, 0.9), rgba(29, 19, 57, 0.72));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(255, 95, 162, 0.08);
  backdrop-filter: blur(14px);
}

.launcher-strip strong,
.launcher-strip b {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.launcher-strip span {
  display: block;
  margin-top: 5px;
  color: #d4cde7;
  font-size: 11px;
  line-height: 1.4;
}

.launcher-strip article {
  position: relative;
  min-height: 44px;
  padding-left: 52px;
}

.launcher-strip article::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  content: "✧";
  color: #ffd8eb;
  background: linear-gradient(135deg, rgba(255, 95, 162, 0.56), rgba(130, 57, 148, 0.58));
  box-shadow: 0 0 24px rgba(255, 95, 162, 0.22);
}

@media (max-width: 1180px) {
  .scroll-rail {
    display: none;
  }

  .home-hero {
    grid-template-columns: minmax(0, 560px) minmax(180px, 1fr) 270px;
    gap: 24px;
  }

  .hero-character {
    right: 188px;
    width: min(330px, 30vw);
    height: 500px;
  }

  .home-menu {
    gap: 14px;
  }
}

@media (max-width: 980px) {
  .home-nav {
    position: relative;
    top: auto;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
  }

  .home-menu {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
  }

  .home-menu a {
    flex: 0 0 auto;
  }

  .home-socials {
    display: none;
  }

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

  .hero-copy {
    max-width: 620px;
  }

  .hero-character {
    right: 0;
    bottom: 210px;
    width: min(330px, 42vw);
    height: 500px;
    opacity: 0.72;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-sidebar {
    grid-column: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 0;
  }

  .modes-section {
    margin-top: 28px;
  }

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

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

@media (max-width: 700px) {
  .home-main,
  .home-nav {
    width: min(100% - 24px, 1220px);
  }

  .home-main,
  .home-hero,
  .hero-copy,
  .hero-lead {
    max-width: calc(100vw - 24px);
  }

  .home-nav {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .home-brand {
    min-width: 0;
  }

  .home-play {
    width: 100%;
  }

  .hero-kicker {
    margin-left: 0;
  }

  .hero-copy h1 {
    width: calc(100vw - 54px);
    height: clamp(72px, 20vw, 96px);
    background-size: contain;
  }

  .hero-lead,
  .hero-lead strong {
    max-width: calc(100vw - 38px);
  }

  .hero-character {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(260px, 76vw);
    height: 330px;
    margin: -24px auto -8px;
    opacity: 1;
  }

  .home-menu {
    padding-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px 14px;
    overflow: visible;
  }

  .home-menu a {
    flex: 0 1 auto;
    padding: 8px 0;
    font-size: 10px;
  }

  .home-socials {
    display: none;
  }

  .hero-actions,
  .launcher-btn,
  .launcher-btn.primary {
    width: 100%;
  }

  .hero-stats,
  .hero-sidebar,
  .mode-grid,
  .launcher-strip {
    grid-template-columns: 1fr;
  }

  .hero-stats article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-stats article:last-child {
    border-bottom: 0;
  }
}

/* Exact-reference home layout */
.ref-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 3, 32, 0.08) 0%, rgba(8, 3, 32, 0.18) 56%, rgba(8, 3, 32, 0.82) 100%),
    url("ref/fone 1.svg") center top / cover fixed no-repeat,
    #08021f;
}

.ref-page::before,
.ref-page::after {
  display: none;
}

.ref-page img {
  display: block;
  max-width: 100%;
}

.ref-nav {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 230px auto 190px 180px;
  align-items: center;
  gap: 18px;
  width: min(1296px, calc(100% - 40px));
  min-height: 76px;
  margin: 31px auto 0;
  padding: 12px 22px;
  border: 1px solid rgba(251, 48, 203, 0.62);
  border-radius: 8px;
  background: rgba(42, 9, 82, 0.74);
  box-shadow: inset 0 0 28px rgba(255, 76, 215, 0.13), 0 0 26px rgba(42, 8, 90, 0.42);
  backdrop-filter: blur(8px);
}

.ref-brand,
.ref-menu,
.ref-socials,
.ref-download,
.ref-footer-brand,
.ref-footer-feature {
  display: flex;
  align-items: center;
}

.ref-brand {
  gap: 10px;
}

.ref-orb {
  width: 40px;
  height: 40px;
}

.ref-brand-word {
  width: 128px;
}

.ref-menu {
  gap: 24px;
}

.ref-menu-button,
.ref-play {
  display: grid;
  place-items: center;
  height: 42px;
  border: 1px solid rgba(255, 63, 206, 0.8);
  border-radius: 4px;
  background: rgba(186, 15, 158, 0.82);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.ref-menu-button {
  width: 96px;
  padding: 0 15px;
}

.ref-menu-button.active {
  border-color: rgba(0, 86, 255, 0.95);
  background: rgba(20, 32, 135, 0.72);
}

.ref-menu-button img {
  max-height: 21px;
}

.ref-socials {
  justify-content: center;
  gap: 18px;
}

.ref-socials a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
}

.ref-socials img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.ref-play {
  width: 164px;
  margin-left: auto;
  padding: 0 18px;
}

.ref-play img {
  max-height: 19px;
}

.ref-shell {
  position: relative;
  z-index: 2;
  width: min(1296px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 18px;
}

.ref-hero {
  position: relative;
  min-height: 715px;
}

.ref-left {
  position: relative;
  z-index: 5;
  width: 980px;
  padding-top: 58px;
}

.ref-logo {
  width: 680px;
  margin: 0 0 84px -42px;
}

.ref-downloads {
  display: flex;
  gap: 22px;
  margin-left: 0;
}

.ref-download {
  width: 264px;
  height: 78px;
  gap: 14px;
  padding: 11px 17px;
  border: 1px solid rgba(252, 50, 204, 0.55);
  border-radius: 7px;
  background: rgba(62, 11, 94, 0.76);
  box-shadow: inset 0 0 20px rgba(255, 66, 205, 0.08);
  transition: transform 160ms ease, filter 160ms ease;
}

.ref-download:hover,
.ref-card:hover,
.ref-play:hover,
.ref-menu-button:hover,
.ref-footer-download:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.ref-download-win {
  background: rgba(209, 22, 159, 0.83);
}

.ref-download-mac {
  background: rgba(39, 11, 66, 0.8);
}

.ref-os-icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.ref-download-title {
  width: 132px;
}

.ref-download-sub {
  width: 92px;
  margin: 6px auto 0;
}

.ref-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 550px;
  height: 80px;
  margin-top: 12px;
  border: 1px solid rgba(252, 50, 204, 0.45);
  border-radius: 7px;
  background: rgba(51, 10, 81, 0.78);
  box-shadow: inset 0 0 20px rgba(255, 66, 205, 0.08);
  overflow: hidden;
}

.ref-stats article {
  display: grid;
  place-items: center;
  align-content: center;
  border-right: 1px solid rgba(252, 50, 204, 0.48);
}

.ref-stats article:last-child {
  border-right: 0;
}

.ref-stats img {
  width: auto;
  height: 18px;
}

.ref-stats strong {
  margin-top: 3px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(52, 0, 83, 0.8), 0 0 12px rgba(255, 101, 217, 0.6);
}

.ref-cards {
  display: grid;
  grid-template-columns: repeat(3, 142px) 398px;
  gap: 38px;
  align-items: end;
  margin-top: 39px;
}

.ref-card {
  position: relative;
  display: block;
  height: 140px;
  overflow: hidden;
  border: 1px solid rgba(252, 50, 204, 0.8);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.ref-card-wide {
  width: 398px;
}

.ref-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref-card span {
  position: absolute;
  right: 12px;
  bottom: 7px;
  left: 12px;
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid rgba(114, 236, 255, 0.55);
  border-radius: 7px;
  background: rgba(118, 226, 238, 0.72);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.18);
}

.ref-card span img {
  max-height: 25px;
}

.ref-card-wide span img {
  max-height: 24px;
}

.ref-character {
  position: absolute;
  z-index: 4;
  right: 286px;
  bottom: -22px;
  width: 468px;
  height: 704px;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  filter: drop-shadow(0 0 20px rgba(255, 94, 221, 0.42));
}

.ref-side {
  position: absolute;
  z-index: 6;
  top: 86px;
  right: 0;
  display: grid;
  gap: 10px;
  width: 254px;
}

.ref-tablet {
  position: absolute;
  right: 0;
  bottom: -4px;
  z-index: 7;
  width: 304px;
  height: 202px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45));
}

.ref-news,
.ref-status {
  border: 1px solid rgba(51, 103, 255, 0.68);
  border-radius: 7px;
  background: rgba(20, 24, 91, 0.72);
  box-shadow: inset 0 0 24px rgba(32, 118, 255, 0.18), 0 18px 45px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

.ref-news {
  min-height: 348px;
  padding: 12px 18px 12px;
}

.ref-news-title {
  width: 176px;
  margin: 0 auto 8px;
}

.ref-news article {
  margin-top: 10px;
}

.ref-news article img {
  width: auto;
  max-height: 21px;
}

.ref-news p {
  margin: 5px 0 0 10px;
  color: #fff;
  font-size: 6px;
  font-weight: 900;
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.ref-status {
  min-height: 124px;
  padding: 8px 18px 14px;
}

.ref-status-title {
  width: 212px;
  margin: 0 auto 2px;
}

.ref-status div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.ref-status div img {
  width: 10px;
  height: 10px;
}

.ref-status strong {
  color: #55ff56;
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(85, 255, 86, 0.62);
}

.ref-status i {
  display: block;
  height: 38px;
  margin-top: 7px;
  background:
    linear-gradient(90deg, transparent 0 5%, #fff 5% 6%, transparent 6% 12%, #fff 12% 13%, transparent 13% 22%, #fff 22% 23%, transparent 23% 31%, #fff 31% 33%, transparent 33% 41%, #fff 41% 42%, transparent 42% 55%, #fff 55% 56%, transparent 56% 66%, #fff 66% 67%, transparent 67% 75%, #fff 75% 77%, transparent 77%),
    linear-gradient(#fff, #fff);
  background-size: 100% 26px, 100% 2px;
  background-position: center 4px, center 26px;
  background-repeat: no-repeat;
  clip-path: polygon(0 72%, 8% 72%, 12% 24%, 17% 83%, 21% 50%, 27% 66%, 31% 14%, 36% 86%, 43% 56%, 48% 72%, 54% 42%, 60% 64%, 65% 34%, 72% 78%, 79% 56%, 86% 68%, 92% 45%, 100% 62%, 100% 100%, 0 100%);
  opacity: 0.9;
}

.ref-footer {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 140px 106px repeat(3, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 80px;
  margin-top: -80px;
  padding: 8px 16px;
  border: 1px solid rgba(252, 50, 204, 0.55);
  border-radius: 7px;
  background: rgba(51, 10, 81, 0.78);
  box-shadow: inset 0 0 24px rgba(255, 66, 205, 0.08), 0 16px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
}

.ref-footer-brand {
  gap: 7px;
  min-width: 0;
}

.ref-footer-brand > img {
  width: 33px;
  height: 33px;
}

.ref-footer-brand span > img {
  width: 92px;
}

.ref-footer small {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.2;
}

.ref-footer-download {
  display: grid;
  width: 106px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(252, 50, 204, 0.85);
  border-radius: 4px;
  background: rgba(191, 16, 154, 0.86);
}

.ref-footer-download img {
  width: 72px;
}

.ref-footer-feature {
  min-width: 0;
  gap: 10px;
}

.ref-footer-feature > img {
  width: 41px;
  height: 41px;
  padding: 6px;
  border: 1px solid rgba(252, 50, 204, 0.72);
  border-radius: 4px;
  background: rgba(89, 15, 112, 0.76);
}

.ref-footer-feature b {
  display: block;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.ref-footer-feature small {
  margin-top: 3px;
  font-size: 8px;
  text-transform: uppercase;
}

@media (max-width: 1320px) {
  .ref-nav,
  .ref-shell {
    width: min(1180px, calc(100% - 28px));
  }

  .ref-nav {
    grid-template-columns: 190px auto 160px 164px;
    gap: 12px;
  }

  .ref-menu {
    gap: 14px;
  }

  .ref-left {
    width: 870px;
  }

  .ref-logo {
    width: 620px;
  }

  .ref-character {
    right: 226px;
    width: 430px;
  }

  .ref-cards {
    grid-template-columns: repeat(3, 142px) 330px;
    gap: 24px;
  }

  .ref-card-wide {
    width: 330px;
  }
}

@media (max-width: 1040px) {
  .ref-page {
    background-attachment: scroll;
  }

  .ref-nav {
    grid-template-columns: 1fr auto;
  }

  .ref-menu {
    grid-column: 1 / -1;
    order: 3;
    justify-content: center;
  }

  .ref-socials {
    display: none;
  }

  .ref-play {
    width: 160px;
  }

  .ref-hero {
    display: grid;
    min-height: auto;
  }

  .ref-left {
    width: 100%;
    padding-top: 34px;
  }

  .ref-logo {
    width: min(650px, 72vw);
    margin-left: 0;
    margin-bottom: 34px;
  }

  .ref-character {
    position: relative;
    right: auto;
    bottom: auto;
    justify-self: center;
    width: min(430px, 76vw);
    height: auto;
    margin-top: -40px;
  }

  .ref-side {
    position: relative;
    top: auto;
    right: auto;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-top: -12px;
  }

  .ref-tablet {
    display: none;
  }

  .ref-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ref-card,
  .ref-card-wide {
    width: 100%;
  }

  .ref-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }
}

@media (max-width: 680px) {
  .ref-nav,
  .ref-shell {
    width: calc(100% - 20px);
  }

  .ref-nav {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .ref-brand {
    justify-content: center;
  }

  .ref-menu {
    flex-wrap: wrap;
    gap: 8px;
  }

  .ref-menu-button {
    width: 31%;
    min-width: 88px;
  }

  .ref-play {
    width: 100%;
  }

  .ref-downloads,
  .ref-stats,
  .ref-side,
  .ref-footer {
    grid-template-columns: 1fr;
  }

  .ref-downloads {
    flex-direction: column;
  }

  .ref-download,
  .ref-stats {
    width: 100%;
  }

  .ref-stats {
    height: auto;
  }

  .ref-stats article {
    min-height: 76px;
    border-right: 0;
    border-bottom: 1px solid rgba(252, 50, 204, 0.48);
  }

  .ref-stats article:last-child {
    border-bottom: 0;
  }

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

  .ref-card {
    height: 150px;
  }

  .ref-news p {
    font-size: 8px;
  }
}

/* Reference asset rebuild overrides */
.ref-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.ref-nav,
.ref-menu-button,
.ref-menu-button.active,
.ref-play,
.ref-download,
.ref-stats,
.ref-news,
.ref-status,
.ref-footer,
.ref-footer-download {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.ref-menu-button,
.ref-play,
.ref-download,
.ref-stats,
.ref-news,
.ref-status,
.ref-footer,
.ref-footer-download {
  position: relative;
  overflow: hidden;
}

.ref-brand,
.ref-menu,
.ref-socials,
.ref-menu-button > img:not(.ref-layer),
.ref-play > img:not(.ref-layer),
.ref-download > img:not(.ref-layer),
.ref-download span,
.ref-stats article,
.ref-news > img:not(.ref-layer),
.ref-news-item,
.ref-status > img:not(.ref-layer),
.ref-status div,
.ref-status i,
.ref-footer > *:not(.ref-layer) {
  position: relative;
  z-index: 1;
}

.ref-orb {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(29, 4, 68, 0.96) 0 40%, transparent 42%),
    conic-gradient(from 135deg, #ff2ba7, #ffd6f0, #8d39ff, #ff2ba7);
  box-shadow: 0 0 20px rgba(255, 68, 198, 0.82), inset 0 0 8px rgba(255, 255, 255, 0.22);
}

.ref-brand-word {
  width: 116px;
}

.ref-logo {
  width: 720px;
  margin-left: -42px;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 18px rgba(255, 80, 198, 0.72));
}

.ref-stats img {
  clip-path: inset(0 0 0 18px);
  transform: translateX(-18px);
  margin-right: -18px;
}

.ref-download-win,
.ref-download-mac {
  background: transparent;
}

.ref-stats {
  border-radius: 0;
}

.ref-stats article {
  border-right-color: rgba(255, 55, 213, 0.46);
}

.ref-news-title {
  width: 190px;
  margin-bottom: 12px;
}

.ref-news-item {
  display: grid;
  gap: 5px;
  margin-top: 11px;
}

.ref-news-item img {
  width: min(100%, 220px);
  height: auto;
  max-height: 24px;
  object-fit: contain;
  object-position: left center;
}

.ref-news-item img:not(:first-child) {
  max-height: 8px;
  margin-left: 8px;
}

.ref-news p {
  display: none;
}

.ref-status-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d52cff;
  box-shadow: 0 0 14px rgba(213, 44, 255, 0.9);
}

.ref-footer-brand {
  gap: 8px;
}

.ref-copyright {
  width: 96px !important;
  margin-top: 5px;
}

.ref-rights {
  width: 104px !important;
  margin-top: 2px;
}

.ref-footer small,
.ref-footer-feature b {
  display: none;
}

.ref-footer-download img:not(.ref-layer) {
  width: 72px;
}

.ref-feature-icon {
  flex: 0 0 auto;
  display: block;
  width: 41px;
  height: 41px;
  border: 1px solid rgba(252, 50, 204, 0.72);
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 0, 166, 0.68), transparent 35%),
    rgba(89, 15, 112, 0.76);
}

.ref-footer-feature span img {
  width: auto;
  max-width: 150px;
  max-height: 14px;
}

.ref-footer-feature span img + img {
  margin-top: 3px;
  max-height: 10px;
}

.ref-card span {
  background-image: url("ref/Rectangle 21.svg");
  background-size: 100% 100%;
  border: 0;
  background-color: transparent;
  box-shadow: none;
}

@media (max-width: 680px) {
  .ref-logo {
    width: min(720px, 112vw);
    margin-left: -18px;
  }
}

/* Fixed 1650x928 reference composition */
body.ref-page {
  width: 100%;
  min-width: 1650px;
  height: 928px;
  min-height: 928px;
  overflow: auto;
  background:
    url("ref/fone 1.svg") center top / 1650px 928px no-repeat,
    #08021f;
}

.ref-page .ref-shell {
  position: relative;
  width: 1650px;
  height: 928px;
  margin: 0 auto;
  padding: 0;
}

.ref-page .ref-nav {
  position: absolute;
  top: 36px;
  left: 178px;
  z-index: 30;
  display: block;
  width: 1294px;
  height: 78px;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.ref-page .ref-brand {
  position: absolute;
  top: 15px;
  left: 24px;
  gap: 8px;
}

.ref-page .ref-brand .ref-orb {
  width: 42px;
  height: 42px;
}

.ref-page .ref-brand-word {
  width: 116px;
}

.ref-page .ref-menu {
  position: absolute;
  top: 17px;
  left: 218px;
  display: flex;
  gap: 26px;
}

.ref-page .ref-menu-button {
  width: 96px;
  height: 42px;
  padding: 0;
}

.ref-page .ref-menu-button img:not(.ref-layer) {
  max-width: 68px;
  max-height: 20px;
}

.ref-page .ref-socials {
  position: absolute;
  top: 16px;
  left: 882px;
  display: flex;
  gap: 18px;
  padding: 0;
  border: 0;
}

.ref-page .ref-socials a,
.ref-page .ref-socials img {
  width: 42px;
  height: 42px;
}

.ref-page .ref-play {
  position: absolute;
  top: 17px;
  right: 22px;
  width: 164px;
  height: 42px;
  margin: 0;
  padding: 0;
}

.ref-page .ref-play img:not(.ref-layer) {
  max-width: 126px;
  max-height: 18px;
}

.ref-page .ref-hero {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.ref-page .ref-left {
  position: static;
  width: auto;
  padding: 0;
}

.ref-page .ref-logo {
  position: absolute;
  top: 128px;
  left: 132px;
  z-index: 8;
  width: 725px;
  height: 210px;
  margin: 0;
  overflow: visible;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 12px rgba(255, 95, 190, 0.55));
}

.ref-page .ref-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ref-page .ref-downloads {
  position: absolute;
  top: 468px;
  left: 176px;
  z-index: 12;
  display: flex;
  gap: 22px;
  margin: 0;
}

.ref-page .ref-download {
  width: 264px;
  height: 78px;
  gap: 13px;
  padding: 10px 17px;
}

.ref-page .ref-os-icon {
  width: 60px;
  height: 60px;
}

.ref-page .ref-download-title {
  width: 132px;
}

.ref-page .ref-download-sub {
  width: 92px;
  margin-top: 5px;
}

.ref-page .ref-stats {
  position: absolute;
  top: 556px;
  left: 176px;
  z-index: 12;
  width: 552px;
  height: 80px;
  margin: 0;
}

.ref-page .ref-stats article {
  padding: 0;
}

.ref-page .ref-stats img {
  height: 18px;
}

.ref-page .ref-stats strong {
  font-size: 30px;
  line-height: 1;
}

.ref-page .ref-cards {
  position: absolute;
  top: 676px;
  left: 180px;
  z-index: 12;
  display: grid;
  grid-template-columns: 142px 142px 142px 398px;
  gap: 38px;
  margin: 0;
}

.ref-page .ref-card {
  width: 142px;
  height: 142px;
}

.ref-page .ref-card-wide {
  width: 398px;
}

.ref-page .ref-character {
  position: absolute;
  top: 118px;
  right: 286px;
  bottom: auto;
  z-index: 9;
  width: 470px;
  height: 724px;
}

.ref-page .ref-side {
  position: absolute;
  top: 198px;
  right: 178px;
  z-index: 14;
  display: grid;
  gap: 10px;
  width: 254px;
  padding: 0;
}

.ref-page .ref-news {
  width: 254px;
  height: 343px;
  min-height: 0;
  padding: 12px 18px;
}

.ref-page .ref-news-title {
  width: 184px;
  margin: 0 auto 10px;
}

.ref-page .ref-news-item {
  gap: 5px;
  margin-top: 9px;
}

.ref-page .ref-news-item img:first-child {
  max-height: 23px;
}

.ref-page .ref-news-item img:not(:first-child) {
  max-height: 7px;
}

.ref-page .ref-status {
  width: 254px;
  height: 124px;
  min-height: 0;
  padding: 8px 18px 14px;
}

.ref-page .ref-status-title {
  width: 214px;
}

.ref-page .ref-status strong {
  font-size: 17px;
}

.ref-page .ref-tablet {
  right: 178px;
  bottom: 10px;
  width: 292px;
  height: 174px;
}

.ref-page .ref-footer {
  position: absolute;
  left: 178px;
  bottom: 13px;
  z-index: 20;
  display: grid;
  grid-template-columns: 140px 106px 274px 274px 274px;
  gap: 24px;
  width: 1294px;
  height: 80px;
  min-height: 0;
  margin: 0;
  padding: 8px 16px;
}

.ref-page .ref-footer-download {
  width: 106px;
  height: 42px;
}

.ref-page .ref-footer-feature {
  gap: 10px;
}

/* Step-by-step rebuild */
body.step-page {
  width: 100%;
  min-width: 2269px;
  min-height: 1276px;
  margin: 0;
  overflow: auto;
  background: #07071f;
}

.step-bg {
  position: relative;
  width: 2269px;
  height: 1276px;
  margin: 0 auto;
  background: url("fone.png") center top / 2269px 1276px no-repeat;
}

.step-top-menu {
  position: absolute;
  top: -17px;
  left: 228px;
  width: 1814px;
  height: 227px;
  margin: 0;
}

.step-menu-banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.step-link {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 10px;
  transform-origin: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.step-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transition: filter 180ms ease;
}

.step-link::before {
  position: absolute;
  inset: -12px;
  z-index: -1;
  content: "";
  border-radius: 16px;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255, 35, 206, 0.62), rgba(126, 58, 255, 0.26) 48%, transparent 74%);
  filter: blur(10px);
  transform: scale(0.9);
  transition: opacity 180ms ease, transform 180ms ease;
}

.step-link:hover,
.step-link:focus-visible {
  z-index: 5;
  outline: none;
  transform: translateY(-5px) scale(1.18);
}

.step-link-home::before {
  background: radial-gradient(ellipse at center, rgba(0, 111, 255, 0.58), rgba(84, 62, 255, 0.28) 48%, transparent 74%);
}

.step-link:hover::before,
.step-link:focus-visible::before {
  opacity: 1;
  transform: scale(1.12);
}

.step-link:hover img,
.step-link:focus-visible img {
  filter:
    brightness(1.18)
    saturate(1.15)
    drop-shadow(0 0 12px rgba(255, 60, 214, 0.9))
    drop-shadow(0 0 28px rgba(111, 60, 255, 0.55));
}

.step-link-home {
  top: 84px;
  left: 324px;
  width: 155px;
  height: 58px;
}

.step-link-donate {
  top: 84px;
  left: 514px;
  width: 134px;
  height: 58px;
}

.step-link-cabinet {
  top: 84px;
  left: 683px;
  width: 134px;
  height: 58px;
}

.step-link-play {
  top: 84px;
  left: 1554px;
  width: 225px;
  height: 58px;
}

.step-bottom-panel {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: block;
  width: 1850px;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 2269px) {
  body.step-page {
    min-width: 0;
  }

  .step-bg {
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

/* KosmoLand auth/cabinet polish */
body:not(.step-page):not(.ref-page) {
  color: #e2e8f0;
  background:
    linear-gradient(90deg, rgba(5, 3, 8, 0.96), rgba(5, 3, 8, 0.78) 50%, rgba(5, 3, 8, 0.96)),
    radial-gradient(circle at 50% 18%, rgba(168, 85, 247, 0.16), transparent 34rem),
    #050308;
  font-family: "Exo 2", "Inter", system-ui, sans-serif;
}

body:not(.step-page):not(.ref-page)::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(103, 232, 249, 0.45), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(168, 85, 247, 0.58), transparent),
    radial-gradient(1px 1px at 85% 75%, rgba(255, 255, 255, 0.46), transparent);
  background-size: 940px 620px;
}

.topbar {
  width: min(1360px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  border-bottom-color: rgba(167, 139, 250, 0.22);
}

.brand strong {
  color: #f5f3ff;
  font-family: "Orbitron", "Exo 2", "Inter", sans-serif;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: 2px;
  text-transform: none;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.38);
}

.brand strong::after,
.brand-mark::after {
  display: none;
  content: none;
}

.brand small,
.eyebrow,
.topnav a:hover,
.topnav a.active {
  color: #a855f7;
}

.brand-mark {
  border-color: rgba(103, 232, 249, 0.36);
  color: #67e8f9;
  background: rgba(18, 14, 30, 0.72);
  font-size: 18px;
}

.topnav {
  border-color: rgba(167, 139, 250, 0.22);
  background: rgba(5, 3, 8, 0.64);
}

.auth-shell {
  min-height: calc(100vh - 72px);
}

.auth-form,
.profile-card,
.skin-card {
  border-color: rgba(167, 139, 250, 0.22);
  background: rgba(18, 14, 30, 0.86);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.button.primary {
  border-color: rgba(103, 232, 249, 0.52);
  color: #07050d;
  background: linear-gradient(135deg, #67e8f9, #c4b5fd);
}

/* Stable KosmoLand header for auth/profile pages */
body:not(.step-page):not(.ref-page) .topbar {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto !important;
  align-items: center !important;
  gap: 24px !important;
  width: min(1360px, calc(100% - 48px)) !important;
  min-height: 76px !important;
  margin: 0 auto !important;
  padding: 10px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(167, 139, 250, 0.22) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body:not(.step-page):not(.ref-page) .brand {
  display: inline-grid !important;
  grid-template-columns: 42px minmax(0, max-content) !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body:not(.step-page):not(.ref-page) .brand > span:last-child {
  min-width: 0 !important;
}

body:not(.step-page):not(.ref-page) .brand-mark {
  position: static !important;
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  border: 1px solid rgba(103, 232, 249, 0.36) !important;
  border-radius: 12px !important;
  color: #67e8f9 !important;
  background: rgba(18, 14, 30, 0.82) !important;
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.22) !important;
  font-family: "Orbitron", "Exo 2", "Inter", sans-serif !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

body:not(.step-page):not(.ref-page) .brand-mark::after,
body:not(.step-page):not(.ref-page) .brand strong::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  content: none !important;
  background: none !important;
  filter: none !important;
}

body:not(.step-page):not(.ref-page) .brand strong {
  display: block !important;
  width: auto !important;
  color: #f5f3ff !important;
  font-family: "Orbitron", "Exo 2", "Inter", sans-serif !important;
  font-size: clamp(19px, 2vw, 28px) !important;
  line-height: 1.05 !important;
  letter-spacing: 2px !important;
  text-transform: none !important;
  white-space: nowrap !important;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.38) !important;
}

body:not(.step-page):not(.ref-page) .brand small {
  display: block !important;
  margin-top: 4px !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

body:not(.step-page):not(.ref-page) .topnav {
  justify-self: end !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 8px !important;
  max-width: 100% !important;
  padding: 8px !important;
  border: 1px solid rgba(167, 139, 250, 0.24) !important;
  border-radius: 12px !important;
  background: rgba(5, 3, 8, 0.68) !important;
  backdrop-filter: blur(14px) !important;
}

body:not(.step-page):not(.ref-page) .topnav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 9px 15px !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  color: #f8fafc !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body:not(.step-page):not(.ref-page) .topnav a:hover,
body:not(.step-page):not(.ref-page) .topnav a.active {
  border-color: rgba(236, 72, 153, 0.72) !important;
  color: #fdf2f8 !important;
  background: rgba(236, 72, 153, 0.14) !important;
}

body:not(.step-page):not(.ref-page) .section-heading {
  max-width: 760px !important;
  margin-bottom: 28px !important;
}

body:not(.step-page):not(.ref-page) .section-heading .eyebrow {
  margin-bottom: 8px !important;
}

body:not(.step-page):not(.ref-page) .section-heading h1 {
  margin: 0 0 14px !important;
  font-size: clamp(44px, 6vw, 76px) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

body:not(.step-page):not(.ref-page) .section-heading p:not(.eyebrow) {
  width: 100% !important;
  max-width: 720px !important;
  line-height: 1.65 !important;
  overflow-wrap: anywhere !important;
}

body:not(.step-page):not(.ref-page) .auth-shell,
body:not(.step-page):not(.ref-page) .cabinet-shell {
  width: min(1220px, calc(100% - 32px)) !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

body:not(.step-page):not(.ref-page) .auth-form,
body:not(.step-page):not(.ref-page) .profile-card,
body:not(.step-page):not(.ref-page) .skin-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 520px !important;
}

@media (max-width: 780px) {
  body:not(.step-page):not(.ref-page) .topbar {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: min(100% - 28px, 560px) !important;
    padding: 12px 0 !important;
  }

  body:not(.step-page):not(.ref-page) .brand {
    justify-self: center !important;
  }

  body:not(.step-page):not(.ref-page) .topnav {
    justify-self: stretch !important;
    justify-content: center !important;
  }

  body:not(.step-page):not(.ref-page) .topnav a {
    flex: 1 1 auto !important;
  }

  body:not(.step-page):not(.ref-page) .section-heading h1 {
    font-size: clamp(36px, 11vw, 54px) !important;
  }

  body:not(.step-page):not(.ref-page) {
    overflow-x: hidden !important;
  }

  body:not(.step-page):not(.ref-page) .auth-shell,
  body:not(.step-page):not(.ref-page) .cabinet-shell {
    width: min(100% - 28px, 560px) !important;
    padding-top: 30px !important;
  }

  body:not(.step-page):not(.ref-page) .auth-form,
  body:not(.step-page):not(.ref-page) .profile-card,
  body:not(.step-page):not(.ref-page) .skin-card {
    max-width: 100% !important;
    padding: 20px !important;
  }
}

@media (max-width: 430px) {
  body:not(.step-page):not(.ref-page) .brand strong {
    font-size: 18px !important;
    letter-spacing: 1px !important;
  }

  body:not(.step-page):not(.ref-page) .topnav a {
    padding: 9px 10px !important;
    font-size: 13px !important;
  }
}
