:root {
  font-family: Tahoma, Verdana, Arial, sans-serif;
  color: #463d70;
  background: #dcdbea;
  font-size: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 24px 12px;
  min-height: 100vh;
  background: repeating-linear-gradient(130deg, #e9e8f2 0 2px, #deddeb 2px 5px);
}
button,
input,
a {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
.retroSite {
  width: min(100%, 920px);
  margin: auto;
  background: #756ac1;
  border: 3px solid #fff;
  border-radius: 24px 24px 10px 10px;
  overflow: hidden;
  box-shadow: 0 9px 25px #51466c33;
}
.siteHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 150px;
  padding: 20px 28px;
  background: linear-gradient(#e3f6bd, #b6e76b 46%, #8ace13 90%, #6baf14);
  border-bottom: 4px solid #eaefda;
  box-shadow: inset 0 2px #fff;
  color: #43552d;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
}
.brandOrb {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid #eae7ff;
  background: radial-gradient(circle at 32% 20%, #fff, #e8e8f8 30%, #b3addc 65%, #8276bd);
  box-shadow:
    inset 0 0 0 4px #c1b9e5,
    3px 5px 7px #5c5d6880;
  font: bold 68px Arial;
  color: #9e91d5;
  text-shadow: 2px 2px #f5f2ff;
}
.brandWord {
  font: bold italic 47px Arial;
  color: white;
  letter-spacing: -3px;
  text-shadow:
    2px 2px #77639d,
    -2px -1px #77639d;
}
.brandWord small {
  display: block;
  font: bold 11px Tahoma;
  letter-spacing: 2px;
  text-align: center;
  color: #f4ffdf;
  text-shadow: 1px 1px #657c3e;
}
.topAccount {
  text-align: right;
}
.topAccount > span {
  display: block;
  margin-bottom: 14px;
  font-style: italic;
}
.topAccount nav {
  display: flex;
  gap: 9px;
  align-items: center;
}
.topAccount button,
.topAccount a,
.communityTabs a,
.communityTabs button,
.mainScreen {
  background: linear-gradient(#f5f4ff, #bcb7d9);
  border: 2px solid white;
  border-radius: 10px;
  box-shadow: 2px 3px #73718e70;
  padding: 8px 21px;
  color: #494067;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 1px 1px white;
}
.topAccount button:first-child {
  background: linear-gradient(#e4ffb0, #90ca41);
}
.communityMain {
  padding: 25px 28px 18px;
}
.communityEyebrow {
  font-size: 11px;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 9px;
}
.communityDeck {
  display: grid;
  grid-template-columns: 110px 1.2fr 1fr;
  gap: 13px;
  border: 4px solid #b3a9de;
  border-radius: 22px 55px 16px 16px;
  background: linear-gradient(130deg, #9a8cce, #aca0d7);
  padding: 17px 19px;
  box-shadow: inset 0 1px #d2c9ec;
}
.onlineTile {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-right: 1px solid #c5b9e2;
}
.onlineTile img {
  width: 43px;
  height: 43px;
  object-fit: contain;
  image-rendering: auto;
}
.onlineTile span,
.communityDeck h2 {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px #6c5b98;
}
.onlineTile strong {
  font-size: 28px;
  color: #fff;
  text-shadow: 1px 2px #776399;
}
.communityDeck h2 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.communityDeck h2 img {
  height: 22px;
  width: 22px;
  object-fit: contain;
}
.popularList {
  display: grid;
  gap: 4px;
}
.popularList a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 5px;
}
.popularList a:hover {
  background: #bdb1e1;
}
.popularList small {
  color: #e5f7c5;
}
.xivTile {
  padding-left: 12px;
  border-left: 1px solid #c5b9e2;
}
.xivTile p {
  color: #f1e9fc;
  line-height: 1.6;
  font-size: 11px;
}
.heart {
  color: #f4bbdc;
  font-size: 22px;
  text-shadow: 1px 2px #926395;
}
.communityTabs {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin: 19px 8px -2px;
}
.communityTabs a,
.communityTabs button {
  padding: 6px 12px;
  border-radius: 13px 13px 0 0;
  background: linear-gradient(#c0b4e5, #8f7bbd);
  color: #fff;
  text-shadow: 1px 1px #49355f;
  font-size: 13px;
}
.communityTabs button img {
  height: 24px;
  vertical-align: middle;
  margin-right: 5px;
}
.welcomeWindow,
.retroWindow {
  border: 3px solid #e8e9dd;
  border-radius: 9px;
  overflow: hidden;
  background: #cbb4ed;
  box-shadow: 2px 3px #49428d55;
}
.windowTitle {
  display: flex;
  gap: 6px;
  align-items: center;
  background: linear-gradient(#f5fff1, #c8e2be);
  padding: 8px 10px;
  border-bottom: 2px solid #9a9db8;
  color: #49436a;
  font-weight: bold;
  text-shadow: 1px 1px white;
}
.windowTitle > span,
.windowTitle > button {
  margin-left: auto;
}
.windowTitle img {
  height: 22px;
  width: 22px;
  object-fit: contain;
}
.windowTitle button {
  border: 1px solid #b2a7c5;
  background: #faf7ff;
  border-radius: 4px;
  color: #776797;
}
.welcomeBody {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  padding: 25px;
  background: linear-gradient(125deg, #c7b2e8, #b5a4dc);
}
.welcomeBody h1 {
  font-size: 27px;
  color: #fff;
  margin: 0 0 18px;
  text-shadow: 1px 2px #80729f;
}
.welcomeBody h2 {
  font-size: 15px;
  margin: 0 0 9px;
}
.welcomeBody p {
  line-height: 1.8;
  font-size: 12px;
  margin: 0;
}
.welcomeIllustration {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border: 3px solid #e3dced;
  border-radius: 17px;
  background: #a3a1d0;
  display: grid;
  place-items: center;
}
.welcomeIllustration img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  /* Crop the narrow white edge baked into the original room artwork. */
  transform: scale(1.06);
}
.welcomeIllustration span {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  text-align: center;
  background: #fffef2db;
  border-radius: 12px;
  font-size: 10px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #e3daf5;
  padding: 15px 22px;
  background: #7163b4;
}
footer a {
  color: #e4f8b6;
}
#communityStatus {
  color: #f7eaff;
  min-height: 14px;
  margin-bottom: 0;
}
.authPanel {
  position: fixed;
  z-index: 50;
  top: 65px;
  right: max(20px, calc((100vw - 880px) / 2));
  width: min(390px, calc(100vw - 30px));
  border: 3px solid white;
  border-radius: 17px;
  background: #d6c4ee;
  box-shadow: 0 12px 45px #28224d88;
  overflow: hidden;
}
.windowClose {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 1px solid #b5a3cc;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  background: #f3ecff;
  color: #70608d;
}
.authTabs {
  display: flex;
  gap: 7px;
  padding: 10px 42px 10px 10px;
  background: #a398d2;
}
.authTabs button {
  flex: 1;
  padding: 8px;
  border: 1px solid white;
  border-radius: 7px;
  background: linear-gradient(#fff, #bfb5dc);
  color: #55446f;
}
.authTabs button[aria-pressed="true"] {
  background: linear-gradient(#eaffb7, #9ed04d);
}
.authContent {
  padding: 20px 24px;
}
.authContent h2 {
  font-size: 21px;
  margin: 0 0 7px;
}
.authContent p {
  line-height: 1.5;
}
.authContent label {
  display: block;
  font-weight: bold;
  margin: 12px 0 5px;
}
.authContent input {
  width: 100%;
  padding: 8px;
  border: 1px solid #9687ad;
  background: #fff;
  border-radius: 3px;
}
.authContent small {
  display: block;
  margin-top: 4px;
  color: #7a678b;
  font-size: 10px;
}
.primary {
  width: 100%;
  padding: 10px;
  margin-top: 18px;
  border: 2px solid #f4ffe0;
  border-radius: 9px;
  background: linear-gradient(#daf8aa, #8fc630);
  color: #44572a;
  font-weight: bold;
}
.privacyNote {
  font-size: 10px;
  color: #826a93;
  border-top: 1px solid #baa7d0;
  padding-top: 10px;
}
.textButton {
  display: block;
  margin: 9px auto;
  background: none;
  border: 0;
  color: #59417b;
  text-decoration: underline;
  font-size: 11px;
}
#authStatus {
  min-height: 15px;
}
#authStatus.error {
  color: #9f2350;
}
.launchHeader {
  position: relative;
  min-height: 156px;
  padding-top: 35px;
}
.mainScreen {
  position: absolute;
  top: 10px;
  left: 12px;
  padding: 5px 12px;
  font-size: 10px;
  background: linear-gradient(#9fabb0, #677d7b);
  color: white;
  text-shadow: 1px 1px #464e59;
}
.launchHeader .brandWord {
  font-size: 33px;
}
.launchGreeting {
  flex: 1;
  text-align: center;
}
.launchGreeting h1 {
  font: bold italic 29px Tahoma;
  color: #fff;
  text-shadow: 2px 2px #6f5b9c;
  margin: 0 0 6px;
}
.launchGreeting p {
  font-size: 11px;
  font-weight: bold;
  font-style: italic;
  margin: 0;
}
.logoutOrb {
  border-radius: 50%;
  width: 65px;
  height: 65px;
  border: 4px solid #f1efff;
  background: radial-gradient(circle at 35% 20%, #fff, #b4b0e0 65%, #7668af);
  font: bold 44px Arial;
  color: #9084bf;
  box-shadow: 2px 4px #72609b80;
}
.launchMain {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  padding: 25px;
}
.launchList {
  height: 300px;
  overflow: auto;
  background: linear-gradient(110deg, #d8bef4, #c6a7e9);
  padding: 7px;
  scrollbar-color: #b1a6c6 #eeeaf4;
}
.roomTabs {
  display: flex;
  gap: 4px;
  padding: 7px 7px 0;
  background: #b5a2d6;
}
.roomTabs button {
  flex: 1;
  padding: 5px 4px;
  border: 1px solid #eee5fc;
  border-radius: 6px 6px 0 0;
  color: #fff;
  background: #a18bbf;
  text-shadow: 1px 1px #6e5b88;
}
.roomTabs button[aria-pressed="true"] {
  background: #d8c3ef;
  color: #4f416b;
  text-shadow: none;
}
.roomSearch {
  display: block;
  padding: 6px;
  background: #c6b1df;
}
.roomSearch input {
  width: 100%;
  padding: 5px;
  border: 1px solid #aa95bf;
  background: #f8f2ff;
}
.launchRoom {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 6px;
  border: 0;
  background: none;
  color: #4f3f70;
  text-align: left;
  padding: 6px 4px;
  border-radius: 4px;
  font-size: 12px;
}
.launchRoom img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.launchRoom small {
  font-size: 10px;
  color: #7c658f;
  min-width: 30px;
}
.launchRoom:hover,
.launchRoom[aria-pressed="true"] {
  background: #f2eaffb3;
  outline: 1px solid #aa91c9;
}
.roomLaunch,
.friendTools {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: linear-gradient(#cbebac, #a9d67a);
  border-top: 2px solid #eaf7de;
}
.roomLaunch span {
  font-size: 10px;
  flex: 1;
}
.roomLaunch button,
.friendTools button {
  background: linear-gradient(#fff, #d7d6e9);
  border: 1px solid #8e9d9c;
  border-radius: 6px;
  padding: 6px 12px;
  color: #46466a;
  white-space: nowrap;
}
.friendTools input {
  width: 100%;
  min-width: 0;
  padding: 6px;
  border: 1px solid #9f9db5;
}
.panelHint {
  font-size: 10px;
  padding: 0 8px;
  color: #78628c;
}
.launchFriend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 4px;
  border-bottom: 1px solid #bca0d6;
}
.launchFriend small {
  margin-left: auto;
  font-size: 10px;
}
.launchFriend button {
  border: 0;
  background: transparent;
  color: #88709d;
}
.friendDot {
  color: #9786aa;
}
.friendDot.online {
  color: #7bb42b;
}
.emptyList {
  line-height: 1.6;
  padding: 9px;
  color: #7e6494;
}
.launchStatus {
  grid-column: 1/-1;
  color: #eee4ff;
  text-align: center;
  margin: 0;
  min-height: 20px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #fff3b4;
  outline-offset: 2px;
}
@media (max-width: 650px) {
  body {
    padding: 8px;
  }
  .siteHeader {
    padding: 18px 14px;
    gap: 10px;
    min-height: 115px;
  }
  .brandOrb {
    width: 64px;
    height: 64px;
    font-size: 44px;
  }
  .brandWord {
    font-size: 34px;
  }
  .brandWord small {
    font-size: 9px;
  }
  .topAccount > span {
    font-size: 10px;
  }
  .topAccount nav {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .topAccount button,
  .topAccount a {
    padding: 7px 10px;
    font-size: 11px;
  }
  .communityMain {
    padding: 18px 13px;
  }
  .communityDeck {
    grid-template-columns: 75px 1fr;
    gap: 10px;
    padding: 13px;
  }
  .xivTile {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid #c5b9e2;
    padding: 10px 0 0;
  }
  .xivTile p {
    margin-bottom: 0;
  }
  .welcomeBody {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .welcomeIllustration {
    min-height: 160px;
  }
  .welcomeIllustration img {
    height: 100%;
  }
  .launchMain {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 16px;
  }
  .roomsWindow {
    grid-row: 1;
  }
  .friendsWindow .launchList {
    height: 140px;
  }
  .launchHeader {
    padding-top: 40px;
    gap: 10px;
  }
  .launchGreeting h1 {
    font-size: 20px;
  }
  .logoutOrb {
    width: 45px;
    height: 45px;
    font-size: 30px;
  }
  .launchHeader .brand {
    display: none;
  }
  .communityTabs a,
  .communityTabs button {
    font-size: 11px;
    padding: 6px;
  }
  .communityTabs button img {
    height: 18px;
  }
}

.originalLogo {
  display: block;
  width: 235px;
  max-width: 100%;
  height: auto;
}
.launchHeader .originalLogo {
  width: 160px;
}
@media (max-width: 650px) {
  .originalLogo {
    width: 175px;
  }
  .launchHeader .brand {
    display: flex;
  }
  .launchHeader .originalLogo {
    width: 100px;
  }
  .launchGreeting h1 {
    font-size: 17px;
  }
}

/* Shared original emblem without the wordmark. */
.originalLogo,
.launchHeader .originalLogo {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.logoutOrb,
.windowClose {
  background: transparent url("/assets/xivio-simple-0ca1b4a613d4.png") center/contain no-repeat;
  border: 0;
  box-shadow: none;
  color: transparent;
  font-size: 0;
}
.logoutOrb {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
}
.windowClose {
  width: 26px;
  height: 26px;
}
@media (max-width: 650px) {
  .originalLogo,
  .launchHeader .originalLogo {
    width: 64px;
    height: 64px;
  }
  .logoutOrb {
    width: 45px;
    height: 45px;
  }
}

/* Keep the supplied emblem at its native 53 × 54 pixels on every screen. */
.originalLogo,
.launchHeader .originalLogo {
  width: 53px;
  height: 54px;
  max-width: none;
  flex-shrink: 0;
}
.logoutOrb,
.windowClose {
  width: 53px;
  height: 54px;
  min-width: 53px;
  background-size: 53px 54px;
  flex-shrink: 0;
}
.authTabs {
  min-height: 70px;
  padding-right: 70px;
}

.siteHeader:has(.headerWelcome) {
  position: relative;
}
.headerWelcome {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  margin: 0;
  color: white;
  text-shadow: 1px 2px #77639d;
  font: bold 30px Tahoma;
  white-space: nowrap;
}
@media (max-width: 650px) {
  .headerWelcome {
    top: 10px;
    font-size: 22px;
  }
  .siteHeader:has(.headerWelcome) {
    padding-top: 48px;
  }
}

.siteHeader:has(.headerWelcome) {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 210px;
  gap: 10px;
  align-items: center;
}
.headerWelcome {
  position: static;
  transform: none;
  justify-self: center;
  align-self: center;
  font-size: 50px;
  line-height: 1.2;
  text-align: center;
}
.siteHeader:has(.headerWelcome) .topAccount {
  justify-self: end;
}
@media (max-width: 800px) {
  .siteHeader:has(.headerWelcome) {
    grid-template-columns: 65px minmax(0, 1fr) 180px;
  }
  .headerWelcome {
    font-size: clamp(24px, 4.8vw, 42px);
  }
}
@media (max-width: 650px) {
  .siteHeader:has(.headerWelcome) {
    padding-top: 20px;
    grid-template-columns: 53px minmax(0, 1fr);
    gap: 14px;
  }
  .headerWelcome {
    font-size: clamp(25px, 6vw, 38px);
  }
  .siteHeader:has(.headerWelcome) .topAccount {
    grid-column: 1/-1;
    justify-self: end;
  }
}
