body {
  margin: 0;
  background-color: rgb(42, 42, 48);
}

.top-bar {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 20px;
  background-color: rgb(46, 47, 72);
}

.top-bar img {
  height: 48px;
  width: auto;
}

.top-bar input {
  width: min(320px, 45vw);
  margin-left: auto;
  padding: 10px 12px;
  border: 1px solid rgb(35, 35, 52);
  border-radius: 8px;
  background-color: rgb(35, 35, 52);
  color: white;
  font: inherit;
}

.box-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 16px;
}

.box {
  font-family: "Raleway", sans-serif;
  padding: 20px 15px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.blue-box-normal {
  background-color: rgb(46, 47, 72);
  border: 3px rgb(35, 35, 52);
  color: rgb(255, 255, 255);
  flex: 1;
  min-width: 0;
  margin-top: 16px;
  height: 600px;
}

.blue-box-tall {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background-color: rgb(46, 47, 72);
  border: 3px rgb(35, 35, 52);
  color: rgb(255, 255, 255);
  border-radius: 0 0 12px 12px;
  width: 55px;
  height: 600px;
  transition: width 0.2s;
}

.blue-box-tall.expanded {
  width: 165px;
}

.blue-box-tall:not(.expanded) h3 span {
  display: none;
}

.blue-box-tall h3 img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.blue-box-tall h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.blue-box-tall h3 span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-family: "Raleway", sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

#sideMenu > .side-link:first-of-type {
  margin-top: 8px;
}

.side-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 30px;
}

.side-link[href="profile.html"] img {
  filter: brightness(0) invert(1);
}

.blue-box-tall:not(.expanded) .side-link {
  justify-content: center;
}

.blue-box-tall:not(.expanded) .side-link span {
  display: none;
}

.side-link:hover {
  text-decoration: underline;
}

.blue-box-tall:not(.expanded) h3 {
  justify-content: center;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.blue-box-tall.expanded .menu-toggle {
  justify-content: flex-start;
}

.menu-toggle img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.blue-box-tall:not(.expanded) .close-icon,
.blue-box-tall.expanded .list-icon {
  display: none;
}

.green-box {
  background-color: #27592c;
  color: rgb(255, 255, 255);
}

/* Shared page layout: panels stretch with the viewport and grow with content. */
.site-page,
.site-page * {
  box-sizing: border-box;
}
.site-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: Raleway, Arial, sans-serif;
}
.site-page .top-bar {
  flex: 0 0 auto;
  gap: 16px;
  min-height: 64px;
  height: auto;
  padding: 8px 20px;
}
.site-page .top-bar > img {
  flex-shrink: 0;
  max-width: 180px;
  object-fit: contain;
}
.site-page .top-bar input {
  min-width: 100px;
  flex: 0 1 320px;
  width: 320px;
}
.site-page .account-details {
  min-width: 0;
  flex-shrink: 0;
  margin-left: 0;
}
.site-page .account-profile {
  min-width: 0;
}
.site-page .nav-avatar-stage {
  flex-shrink: 0;
}
.site-page #accountName {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-page .box-row {
  flex: 1;
  align-items: stretch;
  padding: 16px 16px 0;
  min-width: 0;
  gap: 16px;
}
.site-page .box {
  margin: 0;
  border-radius: 12px 12px 0 0;
  height: auto;
}
.site-page .blue-box-tall {
  width: 76px;
  flex: 0 0 76px;
  padding: 20px 14px;
  min-height: 0;
}
.site-page .blue-box-tall.expanded {
  width: 230px;
  flex-basis: 230px;
}
.site-page .side-link {
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.4;
  white-space: normal;
}
.site-page .side-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.site-page .blue-box-normal {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 24px;
}
.home-intro {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.site-page .character-preview {
  width: 230px;
  height: 300px;
  float: none;
  margin: 0;
}
.welcome-copy {
  min-width: 0;
}
.site-page h1 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  overflow-wrap: anywhere;
  margin: 0 0 20px;
}
.site-page h2 {
  font-size: 22px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.site-page #accountStatus:empty {
  display: none;
}
.site-page .home-games {
  clear: none;
  padding-top: 0;
}
.site-page .recommended-home {
  margin-top: 28px;
}
.site-page .games-heading {
  flex-wrap: wrap;
  margin-bottom: 16px;
  gap: 8px 20px;
}
.site-page .games-heading h2 {
  margin: 0;
}
.site-page .game-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 150px));
  min-width: 0;
}
.site-page .obby-card {
  min-width: 0;
}
.site-page .obby-card h3 {
  overflow-wrap: anywhere;
}
.site-footer {
  margin-top: auto;
  padding-top: 40px;
  font-size: 13px;
  color: #c3c5d4;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding-top: 20px;
  border-top: 1px solid #494b69;
}
.footer-links a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.social-links img {
  display: block;
  object-fit: contain;
}
@media (max-width: 700px) {
  .site-page .top-bar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
  }
  .site-page .top-bar > img {
    max-width: 135px;
  }
  .site-page .top-bar input {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    margin: 0;
  }
  .site-page .account-details {
    margin-left: auto;
    gap: 10px;
  }
  .site-page #accountName {
    max-width: 100px;
  }
  .site-page .box-row {
    padding: 10px 10px 0;
    gap: 10px;
  }
  .site-page .blue-box-tall {
    width: 56px;
    flex-basis: 56px;
    padding: 20px 10px;
  }
  .site-page .blue-box-tall.expanded {
    width: 150px;
    flex-basis: 150px;
  }
  .site-page .side-link {
    font-size: 14px;
    gap: 6px;
  }
  .site-page .side-link img {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
  .site-page .blue-box-normal {
    padding: 18px 14px;
  }
  .home-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .site-page .character-preview {
    width: min(230px, 100%);
    height: 260px;
    margin: 0 auto;
  }
  .site-page h2 {
    font-size: 18px;
  }
  .site-footer {
    padding-top: 32px;
  }
  .footer-links {
    gap: 12px 16px;
  }
}
@media (max-width: 420px) {
  .site-page #accountName {
    max-width: 72px;
  }
  .site-page .account-details {
    gap: 8px;
    font-size: 13px;
  }
  .site-page .top-bar > img {
    max-width: 110px;
  }
  .site-page .account-profile {
    gap: 5px;
  }
}

.site-page .profile-content {
  padding: 24px;
  overflow: hidden;
}
.legacy-profile {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 600px;
  border: 0;
  background: transparent;
}
.legacy-profile[hidden] {
  display: none;
}
.profile-content .site-footer {
  padding-top: 32px;
}
@media (max-width: 700px) {
  .site-page .profile-content {
    padding: 16px 12px;
  }
}

/* Keep the original logo artwork, without the extra holiday label or light trim. */
.site-logo {
  display: flex;
  align-items: center;
  width: 180px;
  height: 48px;
  flex: 0 0 180px;
  text-decoration: none;
  margin-right: 8px;
}
.site-logo > img {
  display: block;
  width: 100%;
  height: 48px;
  object-fit: contain;
}
@media (max-width: 700px) {
  .site-logo {
    width: 135px;
    flex-basis: 135px;
  }
}
@media (max-width: 420px) {
  .site-logo {
    width: 110px;
    flex-basis: 110px;
  }
}
.game-grid a.obby-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.game-grid a.obby-card:hover h3 {
  color: #b6c9ff;
}
.game-grid a.obby-card:focus-visible {
  outline: 2px solid #9db6ff;
  outline-offset: 5px;
  border-radius: 8px;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 1 360px;
  min-width: 100px;
  margin: 0 0 0 auto;
  background: #232334;
  border: 1px solid #454760;
  border-radius: 8px;
  overflow: hidden;
}
.site-page .header-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
}
.header-search button {
  align-self: stretch;
  border: 0;
  border-left: 1px solid #454760;
  background: transparent;
  color: #fff;
  padding: 0 12px;
  font: inherit;
  cursor: pointer;
}
.header-search button:hover {
  background: #3d4269;
}
.christmas-event[hidden] {
  display: none;
}
.christmas-event {
  margin-bottom: 28px;
}
.christmas-event-card > img {
  border: 3px solid #bd3c4c;
  outline: 2px dashed #81be8e;
  outline-offset: 3px;
}
.christmas-event-card h3 {
  padding-top: 5px;
}
@media (max-width: 700px) {
  .site-page .header-search {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    margin: 0;
  }
  .site-page .header-search input {
    order: 0;
    flex: 1;
    width: 100% !important;
  }
}

/* Subtle transitions while retaining the original local website design. */
.account-loading {
  visibility: visible !important;
}
@view-transition {
  navigation: auto;
}
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.14s;
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* Shared palette from the profile dropdown; preserve the existing layout. */
.site-page {
  background: #10141c;
  color: #f4f6fa;
}
.site-page .top-bar,
.site-page .blue-box-tall {
  background: #10141c;
}
.site-page .blue-box-normal {
  background: #10141c;
  border: 1px solid #343b49;
  border-radius: 12px;
}
.site-page .header-search {
  background: #151b25;
  border-color: #343b49;
}
.site-page .header-search input {
  color: #f4f6fa;
}
.site-page .header-search input::placeholder {
  color: #aab4c5;
}
.site-page .header-search button {
  border-color: #343b49;
}
.site-page .header-search button:hover,
.site-page .side-link:hover {
  background: #223750;
}
.site-page .side-link {
  border-radius: 7px;
  color: #f4f6fa;
}
.site-page .side-link:focus-visible,
.site-page a:focus-visible,
.site-page button:focus-visible {
  outline: 2px solid #739dff;
  outline-offset: 3px;
}
.site-page .footer-links {
  border-color: #343b49;
}
.site-page .footer-links,
.site-page .footer-bottom,
.site-page .games-empty {
  color: #aab4c5;
}
.site-page .games-heading > a {
  color: #9fbcff;
}
.site-page .obby-card > img {
  border-radius: 7px;
}

.help-article{max-width:800px;line-height:1.75;color:#b8c2d2}.help-article h1,.help-article h2{color:#f4f6fa}.help-article h2{margin-top:28px}.help-article a{color:#9fbcff}
