/* Midnight Misfits · dark chrome, cut crystal, electric pink */
:root {
  --bg: #080609;
  --pink: #ff3ed4;
  --pink2: #d823ac;
  --muted: #b7a9bc;
  --line: #3e233d;
  --font-display: "Barlow Condensed", Impact, sans-serif;
  --font-body: "Inter", sans-serif;
  --font-tech: "Rajdhani", sans-serif;
}
body {
  background: #080609;
  color: #f4edf4;
}
.ambient-bg {
  background:
    radial-gradient(ellipse at 85% 8%, #55104030, transparent 43%), #080609;
}
.ambient-bg:after {
  display: none;
}
.topbar {
  height: 94px;
  padding: 0 5%;
  gap: 30px;
  background: #0b080cf2;
  border-color: #562244;
  box-shadow: none;
}
.brand-logo {
  width: 155px !important;
  height: 68px !important;
  object-fit: contain;
}
.primary-nav {
  gap: 28px;
}
.primary-nav > a {
  font-size: 12px;
  letter-spacing: 2px;
}
.primary-nav > a.active {
  color: #ff9be9;
}
.primary-nav > a.active:after {
  height: 2px;
  background: #ff51d5;
}
.header-right {
  gap: 25px;
}
.discord-status {
  font: 600 10px var(--font-body);
  letter-spacing: 1px;
  color: #b3a4b6;
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.discord-status i,
.hero-bottom i,
.discord-note i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #e7aa76;
  border-radius: 50%;
  margin-right: 5px;
}
.header-cta {
  clip-path: none;
  border-radius: 2px;
  padding: 12px 18px;
  background: linear-gradient(#321026, #120b14);
  border: 1px solid #b74c9a;
  font-size: 12px;
  box-shadow:
    inset 0 0 0 2px #110813,
    0 0 16px #ee2c9e15;
}
.page-container {
  max-width: 1290px;
  padding-left: 42px;
  padding-right: 42px;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -60px;
  background: #ff84e3;
  color: #120711;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.small-label,
.section-label {
  font: 600 10px var(--font-body);
  letter-spacing: 2.8px;
  color: #c786b7;
}
.little-gem {
  color: #ff5be0;
  margin-right: 8px;
}
.night-hero {
  max-width: 1600px;
  margin: auto;
  position: relative;
  padding: 25px 5% 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 42% 70% at 77% 49%, #7c14522e, transparent),
    linear-gradient(120deg, #080609, #100810 70%, #080609);
}
.hero-coordinate {
  font: 500 9px var(--font-body);
  letter-spacing: 2.7px;
  color: #8b7289;
  display: flex;
  gap: 15px;
  align-items: center;
}
.hero-coordinate span {
  color: #d84ab4;
}
.night-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  min-height: 610px;
  gap: 35px;
  max-width: 1250px;
  margin: auto;
}
.night-copy {
  padding: 35px 0;
}
.night-copy h1 {
  font:
    700 clamp(54px, 5.8vw, 88px)/1.08 "Cinzel",
    Georgia,
    serif;
  letter-spacing: -4px;
  margin: 25px 0;
  color: #fff0fa;
}
.night-copy h1 em {
  font-style: normal;
  color: #ff79db;
  text-shadow: 0 0 35px #ff27bb44;
}
.night-intro {
  font-size: 20px;
  letter-spacing: 0.2px;
  color: #f2d7ea;
  margin: 0 0 16px;
}
.night-description {
  font-size: 14px;
  color: #b7a8b7;
  line-height: 1.95;
  max-width: 450px;
  margin-bottom: 30px;
}
.text-link {
  font-size: 12px;
  font-weight: 600;
  color: #edcde4;
  display: inline-flex;
  gap: 20px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #7a376761;
}
.text-link:hover {
  color: #ff7bde;
  border-color: #ff54d2;
}
.hero-signoff {
  display: flex;
  gap: 17px;
  align-items: center;
  margin-top: 36px;
  color: #8d758d;
  font-size: 8px;
  letter-spacing: 2px;
}
.hero-signoff b {
  color: #e061bd;
  font-size: 15px;
}
.btn {
  border-radius: 4px;
  background: linear-gradient(135deg, #21101e, #110a13);
  border-color: #7b396b;
  font-size: 13px;
  letter-spacing: 1.8px;
  padding: 16px 24px;
  box-shadow: inset 0 0 0 3px #0e080f;
}
.btn.primary,
.jewel-button {
  position: relative;
  isolation: isolate;
  min-height: 60px;
  border: 0 !important;
  background: url("assets/jewel-frame.svg") center/100% 100% no-repeat !important;
  color: #fff0fc;
  padding: 22px 35px;
  box-shadow: none !important;
  filter: drop-shadow(0 0 9px #ff19cf38);
  clip-path: none;
  gap: 17px;
}
.btn.primary:hover {
  filter: drop-shadow(0 0 14px #ff19cf80) brightness(1.15);
}
.btn.primary:disabled {
  filter: grayscale(0.6);
  opacity: 0.5;
}
.crest-stage {
  position: relative;
  min-height: 535px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.main-crest {
  width: 430px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 35px #ff24c438);
}
.crest-orbit {
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid #6e345a70;
  border-radius: 50%;
  z-index: -1;
  box-shadow:
    0 0 0 18px #3f193522,
    0 0 0 60px #39132f13;
}
.orbit-two {
  width: 370px;
  height: 370px;
  border-style: dashed;
  transform: rotate(30deg);
  opacity: 0.5;
}
.crest-label {
  font-size: 8px;
  letter-spacing: 4px;
  color: #b17a9e;
  margin-bottom: 3px;
}
.crest-plaque {
  display: flex;
  align-items: center;
  gap: 23px;
  font:
    600 17px "Cinzel",
    serif;
  letter-spacing: 2px;
  padding: 12px 30px;
  border-top: 1px solid #6f395d;
  border-bottom: 1px solid #6f395d;
  background: linear-gradient(90deg, transparent, #3b122c77, transparent);
  margin-top: -8px;
  z-index: 3;
}
.crest-plaque span {
  font-size: 10px;
  color: #f267d2;
}
.crest-caption {
  font-size: 7px;
  letter-spacing: 2px;
  color: #997d96;
  margin-top: 17px;
}
.crest-star {
  position: absolute;
  color: #ff87e1;
  text-shadow: 0 0 15px #ff29d2;
}
.star-one {
  top: 72px;
  right: 37px;
  font-size: 25px;
}
.star-two {
  bottom: 100px;
  left: 20px;
  font-size: 33px;
}
.star-three {
  top: 165px;
  left: 8px;
  font-size: 13px;
}
.hero-bottom {
  border-top: 1px solid #42203a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  color: #91778e;
  font-size: 8px;
  letter-spacing: 1.7px;
}
.hero-bottom b {
  color: #f299d8;
  font-weight: 500;
  margin-left: 7px;
}
.hero-bottom i {
  background: #ff65cf;
  box-shadow: 0 0 8px #ff42d5;
}
.night-ribbon {
  border-top: 1px solid #572546;
  border-bottom: 1px solid #572546;
  background: #1a0b17;
  white-space: nowrap;
  overflow: hidden;
  font: 600 12px var(--font-tech);
  letter-spacing: 4px;
  padding: 17px 0;
  text-align: center;
  color: #d4a2c4;
}
.night-ribbon span {
  padding: 0 33px;
  color: #ff66d8;
}
.section {
  padding-top: 82px;
  padding-bottom: 82px;
}
.section-title {
  font:
    600 clamp(30px, 3.1vw, 45px)/1.25 "Cinzel",
    Georgia,
    serif;
  text-transform: none;
  letter-spacing: -1.5px;
  margin-top: 15px;
}
.section-title em {
  color: #ef81d0;
}
.section-desc {
  font-size: 13px;
  line-height: 1.95;
  color: #b2a0b3;
}
.section-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.crew-section > .section-desc {
  margin-top: 0;
}
.homepage-roster {
  margin-top: 35px;
}
.lineup-label {
  display: none !important;
}
.lineup-section,
.lineup-section.home-lineup {
  padding: 0 !important;
  background: none !important;
  border: none !important;
}
.lineup {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px !important;
  max-width: 1200px !important;
  margin: auto !important;
  align-items: stretch !important;
  padding: 10px 0 !important;
}
.banner,
.banner.gold {
  width: 100% !important;
  min-width: 0 !important;
  height: 320px !important;
  transform: none !important;
  clip-path: polygon(
    0 5%,
    8% 0,
    92% 0,
    100% 5%,
    100% 95%,
    92% 100%,
    8% 100%,
    0 95%
  ) !important;
  border: 1px solid #a64e91 !important;
  background: #170c1a !important;
  box-shadow: inset 0 0 0 3px #452238 !important;
  transition:
    filter 0.2s,
    translate 0.2s;
}
.banner:hover {
  translate: 0 -6px;
  filter: brightness(1.14);
}
.banner-shell,
.banner-interior,
.banner-style-art,
.banner-style-glow,
.banner-glint,
.banner-top,
.banner-bottom-icon {
  display: none !important;
}
.banner-avatar,
.banner.gold .banner-avatar {
  position: absolute !important;
  inset: 4px 4px auto !important;
  left: 4px !important;
  top: 4px !important;
  bottom: auto !important;
  width: calc(100% - 8px) !important;
  height: 246px !important;
  object-fit: cover !important;
  object-position: 50% 25% !important;
  transform: none !important;
  filter: none !important;
  z-index: 2 !important;
  clip-path: none !important;
  mask-image: linear-gradient(#000 75%, transparent);
}
.banner-nameplate,
.banner.gold .banner-nameplate {
  position: absolute !important;
  top: auto !important;
  bottom: 39px !important;
  left: 7px !important;
  right: 7px !important;
  width: auto !important;
  height: auto !important;
  padding: 10px 0 !important;
  background: none !important;
  border: none !important;
  clip-path: none !important;
  transform: none !important;
  font: 700 20px var(--font-tech) !important;
  letter-spacing: 1px !important;
  color: #fff1fb !important;
  text-shadow: 0 2px 4px #000 !important;
  z-index: 5 !important;
}
.banner-info,
.banner.gold .banner-info {
  position: absolute !important;
  bottom: 18px !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  padding: 0 !important;
  z-index: 5 !important;
  background: none !important;
}
.banner-rank {
  font: 500 8px var(--font-body) !important;
  letter-spacing: 1.7px !important;
  color: #d58cbd !important;
}
.banner-username {
  display: none !important;
}
.roster-hint {
  text-align: center;
  font-size: 8px;
  color: #876f84;
  letter-spacing: 2px;
  margin-top: 22px;
}
.belong-section {
  padding: 75px 0;
  background: linear-gradient(100deg, #140b13, #0c080d);
  border-block: 1px solid #35202e;
}
.two-col {
  gap: 65px;
}
.belong-visual {
  border: 1px solid #763a65;
  outline: 1px solid #3b2035;
  outline-offset: 7px;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse, #69164d30, transparent 70%),
    repeating-linear-gradient(130deg, transparent 0 45px, #8b3a6509 46px 47px);
  position: relative;
}
.belong-visual:before,
.belong-visual:after {
  content: "◆";
  position: absolute;
  left: 50%;
  color: #ff7ee2;
  text-shadow: 0 0 12px #ff30da;
  top: -12px;
}
.belong-visual:after {
  top: auto;
  bottom: -11px;
}
.belong-symbol {
  font-size: 75px;
  color: #ee7bd2;
  text-shadow: 0 0 24px #ed2bb85c;
  margin: 16px;
}
.belong-visual p {
  font:
    600 26px/1.4 "Cinzel",
    serif;
  text-align: center;
  margin: 0 0 22px;
}
.belong-visual em {
  font-style: normal;
  color: #e87fcc;
}
.code-list {
  margin: 25px 0;
}
.code-list > div {
  display: flex;
  gap: 18px;
  border-top: 1px solid #392130;
  padding: 11px 0;
  align-items: baseline;
}
.code-list > div > span {
  font: 600 11px var(--font-tech);
  color: #dd6cb7;
}
.code-list p {
  font-size: 11px;
  color: #a894a6;
  line-height: 1.8;
  margin: 0;
}
.code-list strong {
  display: block;
  color: #e8cee0;
  font-size: 12px;
}
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.world-card {
  position: relative;
  padding: 25px 25px 32px;
  border: 1px solid #543047;
  background:
    radial-gradient(ellipse at 80% 30%, #50143640, transparent), #100a10;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.world-card:hover {
  transform: translateY(-5px);
  border-color: #f15dc6;
}
.world-number {
  font-size: 8px;
  letter-spacing: 2px;
  color: #af7f9f;
}
.world-icon {
  display: block;
  font-size: 53px;
  color: #ee8cd9;
  margin: 22px 0;
  text-shadow: 0 0 30px #ff36c54a;
}
.world-card h3 {
  font: 600 21px var(--font-tech);
  margin: 12px 0;
}
.world-card p {
  font-size: 11px;
  color: #ab93a5;
}
.world-arrow {
  position: absolute;
  right: 24px;
  bottom: 32px;
  color: #de7abe;
}
.invitation {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 75px;
  border-top: 1px solid #50263f;
  background: radial-gradient(ellipse at center, #5c10352b, transparent 65%);
}
.invite-ornament {
  color: #df75c5;
  font-size: 20px;
  letter-spacing: 12px;
  margin-bottom: 30px;
}
.invitation h2 {
  font:
    600 clamp(30px, 4vw, 52px)/1.3 "Cinzel",
    serif;
  letter-spacing: -1.8px;
  margin: 20px 0;
}
.invitation h2 em {
  font-style: normal;
  color: #f28bd5;
}
.invitation > p {
  font-size: 12px;
  color: #ac92a6;
  margin: 20px 0 25px;
}
.discord-note {
  font-size: 10px;
  color: #a88c9f;
  margin-top: 27px;
  line-height: 1.8;
}
.footer {
  padding: 28px 5%;
  background: #0c080c;
  border-color: #3b2032;
  gap: 15px;
}
.footer-copy strong {
  font:
    600 13px "Cinzel",
    serif;
  letter-spacing: 1px;
}
.footer-copy small {
  font-size: 7px;
  letter-spacing: 1.5px;
}
.footer-brand img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}
.footer-links a,
.copyright {
  font-size: 8px;
  letter-spacing: 1px;
}
.page-head {
  padding-top: 65px;
  padding-bottom: 40px;
}
.page-heading {
  font:
    600 clamp(40px, 6vw, 75px) "Cinzel",
    serif;
  text-shadow: none;
  letter-spacing: -2px;
}
.page-heading span {
  transform: none;
  color: #f081d0;
  text-shadow: 0 0 30px #fa3ba12b;
}
.page-desc {
  font-size: 13px;
}
.page-subtitle {
  font-size: 12px;
  letter-spacing: 2px;
}
.feature-panel {
  clip-path: none;
  border: 1px solid #73365e;
  background:
    radial-gradient(ellipse at top right, #5a133941, transparent), #140b14;
  padding: 35px;
  box-shadow: inset 0 0 0 5px #0c080d;
}
.feature-panel h3 {
  font:
    600 29px/1.3 "Cinzel",
    serif;
}
.feature-panel p {
  font-size: 13px;
}
.value-card,
.game-card,
.form-card,
.admin-panel,
.admin-metric,
.rule,
.modal {
  background: linear-gradient(130deg, #1a0e19, #0e090f) !important;
  border-color: #59304d !important;
  clip-path: none !important;
}
.value-card h3,
.rule h3 {
  font: 600 22px var(--font-tech);
}
.value-icon,
.rule-number {
  color: #ee8bd1;
}
.form-card {
  box-shadow: inset 0 0 0 4px #0b070d !important;
}
.field input,
.field select,
.field textarea,
.search-wrap input {
  background: #0c080d;
  border-color: #654058;
  border-radius: 3px;
  color: #f4e9f0;
}
.field input:focus,
.field textarea:focus {
  border-color: #f877d2;
  box-shadow: 0 0 0 3px #e940b51c;
}
.choice,
.filter,
.admin-tabs button {
  background: #160c15;
  border-color: #543048;
  border-radius: 2px;
}
.choice.active,
.filter.active {
  border-color: #f881d7;
  background: #46152f;
}
.community-update {
  margin-bottom: 70px;
  padding-top: 30px;
  padding-bottom: 30px;
  border-block: 1px solid #543047;
}
.community-update h2 {
  font:
    600 28px "Cinzel",
    serif;
}
.community-update p {
  font-size: 13px;
  line-height: 1.9;
  color: #bda6b5;
}
.roster-page {
  padding-bottom: 70px;
}
.roster-page > .lineup-section {
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 0 35px !important;
}
.roster-tools {
  max-width: 1200px;
}
.notice {
  font-size: 12px;
  line-height: 1.8;
  border-color: #70465e;
  background: #20101b;
}
.rules-stack {
  max-width: 950px;
}
.rule {
  padding: 22px 28px;
  border-width: 0 0 1px 0 !important;
}
.rule p {
  font-size: 12px;
}
.top-ornament {
  color: #f78ad8;
}
.modal-overlay {
  backdrop-filter: blur(12px);
}
.modal {
  border-radius: 4px;
}
.modal-member img {
  object-fit: cover;
}
.empty-note {
  color: #bba0b1;
  font-size: 12px;
}
[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}
@media (min-width: 1600px) {
  .night-hero-grid {
    min-height: 680px;
  }
  .main-crest {
    width: 490px;
  }
}
@media (max-width: 1100px) {
  .topbar {
    gap: 20px;
    padding-inline: 25px;
  }
  .primary-nav {
    gap: 17px;
  }
  .discord-status {
    display: none;
  }
  .night-copy h1 {
    font-size: 60px;
    letter-spacing: -3px;
  }
  .main-crest {
    width: 350px;
  }
  .crest-orbit {
    width: 350px;
    height: 350px;
  }
  .crest-plaque {
    font-size: 13px;
    padding-inline: 20px;
  }
  .crest-caption {
    font-size: 6px;
  }
  .night-hero-grid {
    min-height: 560px;
    gap: 10px;
  }
  .banner,
  .banner.gold {
    height: 280px !important;
  }
  .banner-avatar,
  .banner.gold .banner-avatar {
    height: 210px !important;
  }
  .banner-nameplate,
  .banner.gold .banner-nameplate {
    font-size: 17px !important;
  }
  .two-col {
    gap: 35px;
  }
  .header-cta {
    font-size: 10px;
  }
  .hero-bottom {
    font-size: 7px;
  }
  .night-copy .btn-row {
    gap: 12px;
  }
  .btn.primary {
    padding-inline: 27px;
  }
  .night-copy .text-link {
    font-size: 11px;
  }
  .lineup {
    gap: 12px !important;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 76px;
    padding-inline: 20px;
  }
  .brand-logo {
    width: 130px !important;
    height: 60px !important;
  }
  .header-right {
    margin-left: auto;
  }
  .header-cta {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    height: auto;
    background: #140b13;
    border-bottom: 1px solid #78325d;
    padding: 15px 25px;
    z-index: 40;
  }
  .primary-nav.open {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .primary-nav > a {
    padding: 15px;
    height: auto;
    display: block;
  }
  .primary-nav > a.active:after {
    display: none;
  }
  .night-hero {
    padding: 20px 24px 0;
  }
  .hero-coordinate {
    font-size: 7px;
    letter-spacing: 1.8px;
  }
  .night-hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .night-copy {
    padding-top: 45px;
    padding-bottom: 0;
  }
  .night-copy h1 {
    font-size: clamp(43px, 9vw, 65px);
    letter-spacing: -2.6px;
  }
  .night-copy .small-label {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .night-intro {
    font-size: 17px;
  }
  .night-description {
    font-size: 12px;
  }
  .hero-signoff {
    margin-top: 25px;
    font-size: 7px;
    gap: 14px;
  }
  .crest-stage {
    min-height: 400px;
    margin-top: 22px;
  }
  .main-crest {
    width: 310px;
  }
  .crest-orbit {
    width: 310px;
    height: 310px;
  }
  .crest-label {
    font-size: 7px;
  }
  .star-one {
    right: 18px;
    top: 40px;
  }
  .star-two {
    left: 5px;
    bottom: 70px;
  }
  .star-three {
    left: 15px;
    top: 110px;
  }
  .hero-bottom {
    font-size: 7px;
    gap: 15px;
  }
  .hero-bottom > span:last-child {
    display: none;
  }
  .hero-bottom a {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .page-container {
    padding-inline: 24px;
  }
  .section {
    padding-top: 55px;
    padding-bottom: 55px;
  }
  .section-title {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .section-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .section-topline > .text-link {
    margin-bottom: 15px;
  }
  .lineup {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 15px !important;
  }
  .banner,
  .banner.gold {
    height: 300px !important;
  }
  .banner-avatar,
  .banner.gold .banner-avatar {
    height: 235px !important;
  }
  .banner:last-child {
    grid-column: 1/-1;
    width: calc(50% - 8px) !important;
    justify-self: center;
  }
  .banner-nameplate,
  .banner.gold .banner-nameplate {
    font-size: 20px !important;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .belong-section {
    padding: 50px 0;
  }
  .belong-visual {
    min-height: 300px;
  }
  .worlds-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .world-card {
    padding: 22px;
  }
  .world-icon {
    font-size: 40px;
    margin: 12px 0;
  }
  .invitation {
    padding-block: 45px;
  }
  .invitation h2 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .invite-ornament {
    font-size: 16px;
    letter-spacing: 7px;
  }
  .footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .footer-copy {
    flex-basis: 70%;
  }
  .footer-links {
    justify-content: center;
  }
  .copyright {
    width: 100%;
    margin: 10px 0 0;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-heading {
    font-size: 42px;
  }
  .page-subtitle {
    font-size: 10px;
  }
  .page-head {
    padding-top: 42px;
  }
  .roster-page > .lineup-section {
    padding-inline: 24px !important;
  }
  .form-layout {
    grid-template-columns: 1fr;
  }
  .modal-member {
    display: flex;
    flex-direction: column;
  }
  .modal-member img {
    max-height: 230px;
  }
  .admin-list-item {
    flex-wrap: wrap;
  }
  .admin-header {
    flex-wrap: wrap;
  }
  .admin-shell {
    padding-inline: 20px;
  }
  .rule {
    padding: 20px 15px;
    gap: 18px;
  }
  .rule h3 {
    font-size: 19px;
  }
  .feature-panel {
    padding: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
/* Extended community pages */
.owned-games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.owned-game {
  border: 1px solid #693653;
  background: linear-gradient(130deg, #22101e, #100a12);
  overflow: hidden;
}
.owned-game > img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  border-bottom: 1px solid #693653;
}
.owned-game > div {
  padding: 23px;
}
.owned-game h3 {
  font: 600 25px var(--font-tech);
  margin: 13px 0;
}
.owned-game p {
  font-size: 12px;
  line-height: 1.9;
  color: #b9a1b3;
  min-height: 90px;
}
.owned-game .small-label {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 20px 0 35px;
}
.memory-card {
  margin: 0;
  border: 1px solid #67324f;
  background: #130b13;
}
.memory-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  transition: filter 0.2s;
}
.memory-card a:hover img {
  filter: brightness(1.15);
}
.memory-card figcaption {
  padding: 20px;
}
.memory-card h2 {
  font: 600 23px var(--font-tech);
  margin: 12px 0;
}
.memory-card p {
  font-size: 12px;
  color: #b8a0b2;
  line-height: 1.8;
}
.memory-card .small-label {
  font-size: 7px;
  letter-spacing: 1.3px;
}
.guide-tools {
  max-width: 650px;
  margin: 10px auto 30px;
}
.guide-tools label {
  display: block;
  font-size: 13px;
  margin-bottom: 12px;
}
.guide-tools input {
  width: 100%;
  padding: 16px;
  color: #f9e3f4;
  background: #170c16;
  border: 1px solid #804165;
  border-radius: 3px;
}
.guide-tools p {
  font-size: 11px;
  color: #b898ac;
}
.money-table-wrap {
  max-width: 850px;
  margin: 0 auto 30px;
  max-height: 620px;
  overflow: auto;
  border: 1px solid #62304d;
}
.money-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.money-table caption {
  padding: 15px;
  color: #d3a6c4;
  background: #1d0e1a;
}
.money-table th,
.money-table td {
  padding: 14px 23px;
  border-bottom: 1px solid #3d2033;
}
.money-table thead {
  position: sticky;
  top: 0;
  background: #311327;
  color: #ff98db;
}
.money-table tbody th {
  color: #ed7ccb;
}
.money-table tbody tr:nth-child(2n) {
  background: #190c16;
}
.form-layout > #application-message,
.form-layout > #form-connection-notice {
  grid-column: 1/-1;
}
.form-layout > #application-form {
  grid-column: 1/-1;
}
.footer-links {
  flex-wrap: wrap;
}
.world-card p {
  line-height: 1.8;
}
@media (max-width: 1000px) {
  .primary-nav {
    gap: 16px;
  }
  .primary-nav > a {
    font-size: 10px;
  }
  .topbar {
    gap: 20px;
  }
  .owned-game > div {
    padding: 18px;
  }
  .owned-game h3 {
    font-size: 22px;
  }
  .header-right .header-cta {
    font-size: 9px;
    padding: 12px;
  }
}
@media (max-width: 760px) {
  .owned-games,
  .memory-grid {
    grid-template-columns: 1fr;
  }
  .owned-game > img {
    aspect-ratio: 1.6;
  }
  .owned-game p {
    min-height: 0;
  }
  .memory-card img {
    aspect-ratio: 1.5;
  }
  .footer-links {
    gap: 15px;
  }
  .money-table th,
  .money-table td {
    padding: 12px;
  }
  .page-heading {
    overflow-wrap: anywhere;
  }
  .owned-game .text-link {
    min-height: 44px;
  }
}
/* Crew photo sharing */
.memory-upload-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 45px;
  align-items: start;
  padding: 20px 0 65px;
  margin-bottom: 45px;
  border-bottom: 1px solid #61304e;
}
.memory-upload-section .form-card {
  padding: 28px;
  margin: 0;
}
.memory-upload-section .fine-print {
  font-size: 11px;
  line-height: 1.8;
  max-width: 460px;
  color: #c1a7b8;
}
.memory-upload-section input[type="file"] {
  padding: 12px;
  width: 100%;
  font-size: 12px;
}
.memory-upload-section input::file-selector-button {
  background: #4b173a;
  color: #ffe6f7;
  border: 1px solid #ad5b90;
  padding: 9px 12px;
  margin-right: 12px;
  cursor: pointer;
}
.memory-upload-section #memory-preview {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #090609;
  margin-top: 15px;
  border: 1px solid #6d3558;
}
.memory-upload-section [hidden] {
  display: none !important;
}
.memory-upload-section .notice:empty {
  display: none;
}
.memory-upload-section .checkbox-row {
  font-size: 12px;
}
.memory-card h3 {
  font: 600 23px var(--font-tech);
  margin: 12px 0;
}
.memory-card .memory-meta {
  font-size: 10px;
  color: #b891aa;
}
.memory-card .small-label {
  overflow-wrap: anywhere;
}
.memory-card p {
  overflow-wrap: anywhere;
}
#memory-upload-status {
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .memory-upload-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 40px;
  }
  .memory-upload-section .form-card {
    padding: 20px;
  }
  .memory-upload-section .btn {
    max-width: 100%;
    font-size: 12px;
    padding-inline: 22px;
  }
}
/* Membership and Beta Tester application selector */
.application-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto 35px;
}
.application-tabs > button {
  text-align: left;
  padding: 24px 28px;
  border: 1px solid #63334f;
  background: #160c15;
  color: #dfc0d5;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.application-tabs > button[aria-selected="true"] {
  border-color: #f68ad4;
  background: linear-gradient(135deg, #42132e, #190d19);
  box-shadow:
    inset 0 0 0 3px #160b14,
    0 0 25px #f337b513;
}
.application-tabs span {
  font-size: 9px;
  letter-spacing: 2px;
  color: #cf87b5;
  display: block;
}
.application-tabs strong {
  font: 700 26px var(--font-tech);
  display: block;
  margin: 10px 0 6px;
}
.application-tabs small {
  font-size: 11px;
  color: #b59aaa;
}
.application-panel-heading {
  font:
    600 28px "Cinzel",
    serif;
  max-width: 1000px;
  margin: 25px auto 15px;
  color: #edc8df;
}
#beta-panel > .section-desc {
  max-width: 1000px;
  margin: 0 auto 25px;
  font-size: 13px;
}
#beta-panel .form-layout > #beta-message,
#beta-panel .form-layout > #beta-connection-notice,
#beta-panel .form-layout > #beta-form {
  grid-column: 1/-1;
}
#membership-panel[hidden],
#beta-panel[hidden] {
  display: none !important;
}
[role="tabpanel"] {
  padding-bottom: 50px;
}
.primary-nav {
  gap: clamp(12px, 1.6vw, 28px);
}
@media (max-width: 760px) {
  .application-tabs {
    gap: 12px;
  }
  .application-tabs > button {
    padding: 18px 15px;
  }
  .application-tabs strong {
    font-size: 20px;
    line-height: 1.2;
  }
  .application-tabs small {
    font-size: 10px;
    line-height: 1.7;
  }
  .application-tabs span {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .application-panel-heading {
    font-size: 23px;
  }
}
/* Full-size crew portraits; keep the five-member home feature strip. */
.roster-page #lineup {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  padding: 12px 0 25px !important;
}
.roster-page #lineup > .banner {
  height: 350px !important;
}
.roster-page #lineup .banner-avatar {
  height: 275px !important;
  object-position: 50% 30% !important;
}
.roster-page .roster-grid .small-member img {
  object-position: 50% 25%;
}
@media (max-width: 760px) {
  .roster-page #lineup {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 15px !important;
  }
  .roster-page #lineup > .banner {
    height: 290px !important;
  }
  .roster-page #lineup .banner-avatar {
    height: 220px !important;
  }
}
/* Show the complete square game artwork, including its title. */
.owned-games {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.owned-game > img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #0c080d;
}
.owned-game {
  display: flex;
  flex-direction: column;
}
.owned-game > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.owned-game p {
  min-height: 0;
  flex: 1;
}
.owned-game .text-link {
  align-self: flex-start;
  margin-top: 12px;
}
.hub-game {
  border-color: #e578c1;
  box-shadow: 0 0 24px #ec32b31a;
}
.hub-game .small-label {
  color: #ffb0e5;
}
.roblox-community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-top: 35px;
  padding-bottom: 35px;
  margin-bottom: 45px;
  border-top: 1px solid #63334f;
}
.roblox-community h2 {
  font: 600 28px var(--font-tech);
  margin: 12px 0;
}
.roblox-community p {
  color: #bca1b3;
  font-size: 12px;
  line-height: 1.8;
}
.roblox-community .btn {
  text-align: center;
  font-size: 12px;
  flex-shrink: 0;
}
@media (max-width: 1050px) {
  .owned-games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .owned-games {
    grid-template-columns: 1fr;
  }
  .owned-game > img {
    aspect-ratio: 1 / 1;
    object-position: center;
  }
  .roblox-community {
    flex-direction: column;
    align-items: flex-start;
  }
  .roblox-community .btn {
    max-width: 100%;
    font-size: 10px;
    padding-inline: 25px;
  }
}
/* Midnight Misfits calendar */
.calendar-page {
  padding-bottom: 70px;
}
.calendar-top,
.calendar-toolbar,
.calendar-controls,
.calendar-key,
.calendar-form-actions,
.calendar-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.calendar-top {
  margin: 10px 0 24px;
}
.calendar-top p,
.calendar-help {
  color: #bca0b5;
  font-size: 12px;
}
.calendar-shell {
  border: 1px solid #703053;
  background: linear-gradient(145deg, #21101f, #0e090f);
  box-shadow:
    inset 0 0 0 5px #100912,
    0 20px 80px #0005;
}
.calendar-toolbar {
  padding: 30px;
}
.calendar-toolbar h2 {
  font:
    600 clamp(26px, 4vw, 42px) "Cinzel",
    serif;
  margin: 12px 0 0;
  color: #ffe3f7;
}
.calendar-controls button,
.calendar-key button,
.calendar-dialog button:not(.btn),
.day-number {
  border: 1px solid #713353;
  background: #210e1d;
  color: #ffd1f0;
  border-radius: 4px;
  padding: 10px 16px;
  cursor: pointer;
}
.calendar-controls button:hover,
.calendar-key button:hover {
  background: #4b173d;
}
.calendar-filters {
  display: flex;
  gap: 18px;
  padding: 0 30px 25px;
}
.calendar-filters label:first-child {
  flex: 1;
}
.calendar-filters label,
.calendar-dialog label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  color: #e3b9d6;
}
.calendar-filters input,
.calendar-filters select,
.calendar-dialog input,
.calendar-dialog select,
.calendar-dialog textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #63304e;
  border-radius: 4px;
  background: #0d080e;
  color: #fae9f6;
  padding: 12px;
  font: inherit;
  color-scheme: dark;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays {
  padding: 15px 0;
  border-block: 1px solid #56233f;
  color: #d698c3;
  text-align: center;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.calendar-day {
  min-height: 125px;
  padding: 10px 7px;
  border-right: 1px solid #3b1c31;
  border-bottom: 1px solid #3b1c31;
  min-width: 0;
}
.calendar-day:nth-child(7n) {
  border-right: 0;
}
.calendar-day.outside {
  background: #08060988;
  color: #806778;
}
.calendar-day.is-today {
  background: #5e174138;
  box-shadow: inset 0 0 0 1px #ed5ab4;
}
.day-number {
  display: inline-block;
  padding: 4px 7px !important;
  font-size: 12px;
  border: 0 !important;
  background: transparent !important;
}
.is-today .day-number {
  background: #ef74cc !important;
  color: #190b15;
  border-radius: 50%;
}
.calendar-event {
  display: block;
  width: 100%;
  text-align: left;
  margin: 6px 0 0;
  padding: 7px 6px;
  border: 0;
  border-left: 2px solid #f179d0;
  background: #4a1a3b;
  color: #ffeaf9;
  border-radius: 3px;
  cursor: pointer;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.calendar-event span {
  display: block;
  font-size: 9px;
  color: #e6a8d1;
  margin-bottom: 3px;
}
.calendar-event strong {
  font-weight: 500;
}
.calendar-key {
  padding: 18px 25px;
  color: #bc8ba9;
  font-size: 11px;
  flex-wrap: wrap;
}
.calendar-agenda {
  padding-top: 40px;
}
.agenda-event {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 5px 20px;
  width: 100%;
  padding: 22px;
  margin: 10px 0;
  text-align: left;
  border: 1px solid #5b2b49;
  background: #180d16;
  color: #ffe5f6;
  cursor: pointer;
}
.agenda-event > span {
  grid-row: span 2;
  color: #f990d8;
  font: 600 22px var(--font-tech);
}
.agenda-event strong {
  font-size: 16px;
}
.agenda-event small {
  color: #bd9bb2;
  font-size: 12px;
}
.calendar-empty {
  padding: 45px 20px;
  text-align: center;
  border: 1px dashed #54233f;
  color: #bfa2b5;
}
.calendar-empty > span {
  font-size: 35px;
  color: #ee78cb;
}
.calendar-empty h3 {
  color: #f5d4ea;
}
.calendar-empty p {
  font-size: 13px;
}
.calendar-invite {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 25px;
  border-block: 1px solid #4e213c;
}
.calendar-invite p {
  font-size: 13px;
}
.calendar-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: 90vh;
  overflow: auto;
  padding: 35px;
  border: 1px solid #a74b82;
  border-radius: 6px;
  background: linear-gradient(135deg, #291020, #0e090f);
  color: #f8e5f2;
  box-shadow: 0 0 80px #e52daf25;
}
.calendar-dialog::backdrop {
  background: #050307cf;
  backdrop-filter: blur(8px);
}
.calendar-dialog h2 {
  font:
    600 30px "Cinzel",
    serif;
  margin-right: 20px;
}
.calendar-dialog p {
  font-size: 13px;
  line-height: 1.8;
  color: #d3afc7;
}
.calendar-dialog form {
  display: grid;
  gap: 18px;
}
.calendar-dialog .calendar-close {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 3px 10px !important;
  font-size: 24px;
}
.calendar-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.calendar-form-actions {
  flex-wrap: wrap;
}
.event-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.calendar-dialog .event-time {
  color: #ff9bdb;
}
#calendar-status:empty {
  display: none;
}
#calendar-status {
  padding: 14px;
  border-left: 2px solid #f478c8;
  background: #2d1426;
  font-size: 13px;
}
#edit-message,
#owner-message {
  color: #ffacdb;
}
.calendar-dialog [hidden],
.calendar-key [hidden] {
  display: none !important;
}
.calendar-page button:focus-visible,
.calendar-dialog button:focus-visible {
  outline: 2px solid #ff9be1;
  outline-offset: 3px;
}
@media (max-width: 1150px) {
  .primary-nav {
    gap: 13px;
  }
  .primary-nav > a {
    letter-spacing: 1px;
    font-size: 10px;
  }
  .header-right {
    gap: 12px;
  }
}
@media (max-width: 760px) {
  .calendar-toolbar {
    padding: 20px;
    align-items: flex-start;
  }
  .calendar-toolbar .small-label {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .calendar-controls {
    gap: 5px;
  }
  .calendar-controls button {
    padding: 8px;
  }
  .calendar-filters {
    padding: 0 15px 18px;
    flex-direction: column;
  }
  .calendar-day {
    min-height: 90px;
    padding: 6px 2px;
  }
  .calendar-weekdays {
    font-size: 9px;
    letter-spacing: 0;
  }
  .calendar-event {
    padding: 4px 3px;
    font-size: 9px;
  }
  .calendar-event span {
    font-size: 8px;
  }
  .calendar-key {
    padding: 14px;
    font-size: 10px;
  }
  .calendar-top {
    align-items: flex-start;
  }
  .calendar-top .small-label {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .calendar-top .text-link {
    font-size: 10px;
    white-space: nowrap;
  }
  .calendar-form-row {
    grid-template-columns: 1fr;
  }
  .calendar-dialog {
    padding: 30px 20px;
  }
  .agenda-event {
    padding: 18px 12px;
    grid-template-columns: 65px 1fr;
    gap: 5px 10px;
  }
  .calendar-page .section-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
}

.calendar-top .text-link {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #7a376761;
  cursor: pointer;
}
