@font-face {
  font-family: "Nunito";
  src: url("/nunito-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: block;
}
:root {
  --currency-icon-size: 1.35em;
  --currency-icon-gap: 0.22em;
  --currency-icon-optical-lift: 0.05em;
  --portal-sidebar-width: 205px;
  --vedalia-background: #c4b398;
  --vedalia-brown: #45352c;
  --vedalia-text: #332b25;
  --vedalia-cream: #efe2ce;
  --vedalia-muted: #d0bda7;
  --vedalia-orange: #d3a078;
  --vedalia-orange-hover: #ddae87;
  --vedalia-button-text: #2e2119;
  --vedalia-border: #96806b;
  --vedalia-field: #d7c7b0;
  --vedalia-spring: cubic-bezier(0.2, 0.8, 0.25, 1.25);
  --glass-border: var(--vedalia-border);
  --glass-background: var(--vedalia-brown);
  --popup-glass-background: var(--vedalia-brown);
  --dropdown-glass-background: var(--vedalia-brown);
  --dropdown-glass-border: var(--vedalia-border);
  --dropdown-glass-shadow:
    0 16px 38px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(239, 226, 206, 0.045);
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  --surface-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  --nested-surface-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  --glass-blur: 14px;
  --button-border: var(--vedalia-orange);
  --button-background: var(--vedalia-orange);
  --button-background-hover: var(--vedalia-orange-hover);
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #c4b398;
  color: #efe2ce;
  font-family: "Nunito", sans-serif;
}

html.portal-assets-loading :is(
    .panel,
    .account-controls,
    .client-download-form,
    .privacy-form
  ) {
  visibility: hidden !important;
}

img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
}

body.session-loading::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(4, 5, 8, 0.82);
  pointer-events: none;
}

body.session-loading.portal-bootstrapped::after {
  display: none;
}
.portal-sidebar a.portal-nav-button {
  display: block;
  box-sizing: border-box;
  text-decoration: none;
  color: #efe2ce;
  font: inherit;
  border-radius: 8px;
}

body.session-loading .client-download-form,
body.session-loading .privacy-form {
  display: none;
}

.panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: min(360px, calc(100vw - 32px));
  padding: 22px;
  border: 2px solid #96806b;
  border-radius: 8px;
  background: #45352c;
  text-align: center;
}

.panel[hidden] {
  display: none;
}

.panel.account-panel {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow: hidden;
  text-align: left;
}

.panel h1 {
  margin: 0 0 12px;
  font-size: 22px;
}

.panel p {
  margin: 0 0 16px;
  line-height: 1.45;
}

.button,
.panel button {
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  padding: 9px 14px;
  border: 2px solid #96806b;
  border-radius: 8px;
  background: #45352c;
  color: #efe2ce;
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.panel button:hover {
  background: rgba(239, 226, 206, 0.12);
  color: #efe2ce;
}

.account-controls {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 11;
  display: none;
  align-items: flex-start;
  gap: 8px;
}
.account-controls.visible {
  display: flex;
}
.account-controls.with-scrollbar {
  right: 33px;
}

.account-menu-wrap {
  position: relative;
}

.playtime-wrap {
  position: relative;
}

.playtime-button {
  box-sizing: border-box;
  height: 40px;
  min-width: 82px;
  padding: 10px 13px;
  border: 2px solid #96806b;
  border-radius: 8px;
  background: #45352c;
  color: #efe2ce;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.playtime-button.infinite span,
.game-infinite-status {
  color: transparent;
  background: repeating-linear-gradient(
    90deg,
    #ff5f6d 0,
    #ffc371 40px,
    #5eff8b 80px,
    #57c7ff 120px,
    #b56cff 160px,
    #ff5f6d 200px
  );
  background-size: 200px 100%;
  background-repeat: repeat-x;
  background-clip: text;
  -webkit-background-clip: text;
  animation: playtime-rainbow 3s linear infinite;
}

@keyframes playtime-rainbow {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 200px 0;
  }
}

.playtime-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 210px;
  padding: 11px 13px;
  border: 1px solid rgba(239, 226, 206, 0.28);
  border-radius: 8px;
  background: #45352c;
  box-shadow: var(--dropdown-glass-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  text-align: center;
  font-size: 14px;
}

.playtime-menu[hidden] {
  display: none;
}
.playtime-menu p {
  margin: 0;
}
.playtime-menu p + p {
  margin-top: 4px;
}
.playtime-skeleton {
  display: inline-block;
  width: 52px;
  height: 14px;
  border-radius: 999px;
}

.currency-button {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 10px 13px;
  border: 2px solid #96806b;
  border-radius: 8px;
  background: #45352c;
  color: #efe2ce;
  font: inherit;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.currency-button:hover {
  background: #45352c;
}

.currency-button :is(img, svg.currency-icon) {
  display: block;
  width: var(--currency-icon-size);
  height: var(--currency-icon-size);
  object-fit: contain;
}

.currency-button span {
  display: block;
  line-height: 1;
}

.currency-balance-skeleton {
  width: 32px;
  height: 14px;
  border-radius: 999px;
}

.settings-menu-button {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid #96806b;
  border-radius: 8px;
  background: #45352c;
  color: #efe2ce;
  cursor: pointer;
}

.settings-menu-button:hover {
  background: #45352c;
}

.settings-menu-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  display: grid;
  gap: 6px;
  width: 180px;
  padding: 7px;
  border: 1px solid var(--dropdown-glass-border);
  border-radius: 8px;
  background: var(--dropdown-glass-background);
  box-shadow: var(--dropdown-glass-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.account-menu[hidden] {
  display: none;
}

#yarn-menu {
  width: 165px;
}

.account-menu .button[hidden] {
  display: none !important;
}

.account-menu .button {
  width: 100%;
  border-color: rgba(239, 226, 206, 0.28) !important;
  background-color: #45352c !important;
  white-space: nowrap;
}

.account-menu .button:not(:disabled):hover {
  border-color: rgba(239, 226, 206, 0.66) !important;
  background-color: rgba(10, 10, 10, 0.6) !important;
}

.privacy-form,
.client-download-form {
  position: fixed;
  right: 16px;
  z-index: 11;
  width: 148px;
  margin: 0;
}

.privacy-form {
  bottom: 14px;
}

.client-download-form {
  bottom: 59px;
}

.client-download-button,
.privacy-button {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
}

.form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.form input {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: #45352c;
  color: #efe2ce;
  font: inherit;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 74px;
}

.panel button.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 6px 9px;
  border: 0;
  background: transparent;
  color: rgba(239, 226, 206, 0.78);
  font-size: 13px;
}

.panel button.password-toggle:hover {
  background: rgba(239, 226, 206, 0.12);
  color: #efe2ce;
}

.link-button {
  border: 0;
  padding: 0;
  margin-top: 12px;
  background: transparent;
  color: #efe2ce;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.link-button:hover {
  background: transparent;
  color: #efe2ce;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  height: 520px;
}

.user-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}

.tab-button {
  width: auto;
  min-width: 112px;
}

.tab-button.active {
  background: rgba(239, 226, 206, 0.16);
}

.tab-panel {
  display: none;
}

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

.games-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  height: 520px;
}

.game-list {
  display: grid;
  gap: 10px;
  align-content: start;
  height: 448px;
  overflow-y: auto;
  padding-right: 4px;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgba(239, 226, 206, 0.45);
  border-radius: 8px;
  background: #45352c;
  text-align: left;
}

.game-name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: bold;
  line-height: 22px;
}

.game-status {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  text-transform: capitalize;
}

.game-infinite-status {
  margin: 3px 1px 0;
  font-size: 14px;
  line-height: 18px;
}

.panel button.join-game-button {
  width: auto;
  padding: 8px 12px;
}

.account-left,
.account-right {
  display: grid;
  gap: 14px;
}

.account-left {
  grid-template-rows: auto minmax(0, 1fr);
}

.account-right {
  grid-template-rows: 1fr 1fr;
}

.avatar-layout .account-right {
  grid-template-rows: 1fr;
}

.account-box {
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(239, 226, 206, 0.45);
  border-radius: 8px;
  background: #45352c;
}

.account-box h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.selected-avatar-box {
  align-self: start;
}

.available-avatar-box {
  min-height: 0;
}

#selected-avatar {
  display: grid;
}

.account-actions {
  display: grid;
  align-content: center;
  gap: 10px;
  border-color: transparent;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.link-account-box {
  display: grid;
  align-content: center;
  text-align: center;
}

.roblox-list {
  display: grid;
  gap: 10px;
  height: 300px;
  align-content: start;
  overflow-y: auto;
  padding-right: 4px;
}

.roblox-account {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(239, 226, 206, 0.45);
  border-radius: 8px;
  background: #45352c;
}

.roblox-account.clickable {
  cursor: pointer;
}

.roblox-account.clickable:hover {
  background: rgba(239, 226, 206, 0.12);
}

.panel button.unlink-roblox-button {
  width: auto;
  padding: 8px 10px;
  justify-self: end;
}

.roblox-account :is(img, svg.currency-icon) {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.roblox-name {
  font-weight: bold;
}

@media (max-width: 720px) {
  .games-layout,
  .account-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .account-right {
    grid-template-rows: auto;
  }
}

.avatar-page-heading {
  margin-bottom: 18px;
}
.avatar-page-heading p {
  margin: 6px 0 0;
}

.panel .profile-redesign {
  padding: 0;
}
.profile-redesign .profile-page-content {
  max-width: 1268px;
  margin-inline: auto;
  padding: 16px 34px 40px;
}
.profile-redesign .avatar-page-heading {
  margin: 0 0 20px;
}
.profile-redesign .avatar-page-heading h1 {
  margin: 0;
  font-size: 28px;
  line-height: 35px;
  font-weight: 800;
}
.profile-redesign .profile-summary-grid {
  display: block;
}
.profile-redesign .profile-summary-card {
  border: 1px solid #806953;
  border-radius: 14px;
  padding: 20px;
  color: #f2e4d2;
  box-shadow:
    0 3px 0 #35281f35,
    0 7px 18px #45352c20;
}
.profile-redesign .profile-summary-copy h2 {
  color: #f2e4d2;
  font-size: 23px;
  font-weight: 800;
}
.profile-redesign .profile-summary-copy p {
  color: #d0bda7;
  font-size: 14px;
}
.profile-redesign .avatar-linked-section {
  margin-top: 32px;
}
.profile-redesign .avatar-linked-section .avatar-section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.profile-redesign .avatar-section-heading h2 {
  font-size: 23px;
  font-weight: 800;
}
.profile-redesign .avatar-section-heading p {
  color: #594a3c;
  font-size: 14px;
  line-height: 1.5;
}
.profile-redesign .avatar-accounts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.profile-redesign .profile-avatar-tile {
  display: block;
  padding: 0;
  border: 1px solid #806953;
  border-radius: 14px;
  box-shadow:
    0 3px 0 #35281f35,
    0 7px 16px #45352c20;
}
.profile-redesign .profile-avatar-tile.is-selected {
  border-color: #d3a078;
  box-shadow:
    0 0 0 1px #d3a078,
    0 7px 16px #45352c20;
}
.profile-redesign .avatar-account-image,
.profile-redesign .avatar-account-placeholder {
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: cover;
  border-radius: 12px;
}
.profile-redesign .profile-avatar-name {
  display: block;
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.profile-redesign .profile-avatar-handle {
  display: block;
  color: #d0bda7;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.profile-redesign .profile-avatar-footer {
  border-top: 1px solid #806953;
  padding: 12px 16px;
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.profile-redesign .profile-avatar-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d3a078;
  font-size: 14px;
  font-weight: 800;
}
.profile-redesign .is-selected .profile-avatar-state {
  color: #f2e4d2;
}
.profile-redesign svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}
.panel .profile-redesign :is(.profile-change-username, .profile-link-account) {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  min-height: 44px;
  margin: 0;
  border: 1px solid #b5835c;
  border-radius: 11px;
  background: #d3a078;
  color: #2e2119;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 2px #98724f;
  white-space: nowrap;
}
.panel
  .profile-redesign
  :is(.profile-change-username, .profile-link-account):hover {
  background: #ddb18b;
  transform: translateY(-2px);
  translate: none;
  scale: none;
  box-shadow: 0 4px #98724f;
}
.panel
  .profile-redesign
  :is(.profile-change-username, .profile-link-account):active {
  transform: translateY(1px);
  box-shadow: none;
}
.panel .profile-redesign .unlink-roblox-button {
  width: auto;
  padding: 6px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #e3af99;
  box-shadow: none;
  font-size: 14px;
  transform: none;
  translate: none;
  scale: none;
}
.panel .profile-redesign .unlink-roblox-button:hover {
  color: #ffc7ac;
  background: transparent;
  box-shadow: none;
}
@media (max-width: 700px) {
  .profile-redesign .profile-page-content {
    padding: 24px 20px;
  }
  .profile-redesign .avatar-accounts-grid {
    grid-template-columns: 1fr;
  }
  .profile-redesign .profile-summary-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .profile-redesign .profile-change-username {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .profile-redesign .avatar-section-heading {
    flex-wrap: wrap;
  }
}

#profile-page button::after {
  display: none;
}
#profile-page :is(.profile-change-username, .profile-link-account) {
  min-height: 44px;
  font-size: 16px;
  padding: 10px 18px;
  border-radius: 12px;
  translate: none;
  scale: none;
  transition:
    transform 105ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 130ms ease-out,
    box-shadow 130ms ease-out;
}
#profile-page .unlink-roblox-button {
  min-width: 92px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 11px;
  background: #8a4437;
  color: #fff0df;
  border: 1px solid #793a30;
  box-shadow: 0 2px 0 #683429;
  font-size: 14px;
  font-weight: 800;
  translate: none;
  scale: none;
  transition:
    transform 105ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 130ms ease-out,
    box-shadow 130ms ease-out;
}
#profile-page .unlink-roblox-button:hover {
  background: #9c5142;
  color: #fff0df;
  box-shadow: 0 4px 0 #683429;
  transform: translateY(-2px);
}
#profile-page .unlink-roblox-button:active {
  background: #8a4437;
  transform: translateY(1px);
  box-shadow: 0 2px 0 #683429;
}
#profile-page .avatar-accounts-grid {
  gap: 20px;
}
body:has(#profile-page.active) .account-controls {
  top: 10px;
}
body:has(#profile-page.active)
  .account-controls
  :is(.playtime-button, .currency-button, .settings-menu-button) {
  height: 48px;
}
body:has(#profile-page.active) .settings-menu-button {
  width: 48px;
}
#profile-page .profile-summary-card {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 20px;
  box-shadow: none;
}
#profile-page :is(.profile-change-username, .profile-link-account) {
  box-sizing: border-box;
  width: 200px;
  padding-inline: 8px;
}
#profile-page .profile-summary-card > .profile-image-frame {
  border-radius: 12px;
  overflow: hidden;
}
#profile-page #profile-headshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  margin: 0;
}
#profile-page .profile-avatar-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
}
#profile-page .profile-avatar-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
#profile-page .profile-avatar-footer {
  border: 0;
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
#profile-page .profile-avatar-tile.is-selected .profile-avatar-footer {
  align-self: center;
  justify-content: center;
}
#profile-page .profile-select-avatar {
  min-width: 92px;
  min-height: 40px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 11px;
  border: 0;
  background: #d3a078;
  color: #2e2119;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 2px #98724f;
  translate: none;
  scale: none;
}
#profile-page .profile-select-avatar:not(:disabled):hover {
  background: #ddb18b;
  transform: translateY(-2px);
  box-shadow: 0 4px #98724f;
}
#profile-page .profile-select-avatar:not(:disabled):active {
  transform: translateY(1px);
  box-shadow: none;
}
#profile-page .profile-select-avatar:disabled {
  background: #705b48;
  color: #e0cbb3;
  box-shadow: none;
  opacity: 1;
  transform: none;
  cursor: default;
}
#profile-page .profile-link-surround {
  background: transparent;
  border: 0;
  margin: 0;
}
#profile-page .avatar-section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 18px;
}
#profile-page .avatar-section-heading > p {
  flex-basis: 100%;
  margin: 0;
}
#profile-page .avatar-section-heading .profile-link-account {
  width: auto;
  padding-inline: 14px;
}
#profile-page .profile-page-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 1268px;
  margin-inline: auto;
  padding-inline: 34px;
}
#profile-page .profile-avatar-tile .avatar-account-image,
#profile-page .profile-avatar-tile .avatar-account-placeholder {
  width: 88px;
  height: 88px;
  flex-basis: 88px;
}
#profile-page .profile-avatar-name {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
}
#profile-page .profile-avatar-handle {
  font-size: 16px;
}
#profile-page :is(.profile-select-avatar, .unlink-roblox-button) {
  min-width: 104px;
}
#profile-page .profile-link-surround {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#profile-page .profile-link-account {
  margin: 0;
}
#profile-page .profile-avatar-tile.clickable::after {
  display: none;
}
#profile-page .profile-avatar-tile.clickable:hover {
  background: #574234;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px #45352c30;
}
#profile-page .profile-avatar-tile.clickable:active {
  background: #45352c;
  transform: translateY(0) scale(0.995);
  box-shadow:
    inset 0 2px 6px #0000003d,
    0 3px 8px #00000029;
}
#profile-page .profile-avatar-tile.clickable:focus-visible {
  outline: 2px solid #d3a078;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  #profile-page .profile-page-content {
    padding-inline: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #profile-page button {
    transition: none;
    transform: none;
  }
}

#portal-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: 68px;
  min-height: 68px;
  padding: 10px 333px 10px 17px;
  margin: 0 0 16px;
  background: #d0bfa6;
  border-bottom: 1px solid #ab9278;
}
#portal-topbar .profile-image-frame {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}
#portal-topbar #portal-heading-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.portal-content:has(> #portal-topbar) > .tab-panel[data-user-panel="store"] {
  padding: 0 34px;
}
#profile-page .profile-page-content {
  padding-top: 0;
}
@media (max-width: 600px) {
  #portal-topbar {
    padding: 10px;
    height: auto;
    min-height: 68px;
  }
}

.profile-summary-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid rgba(239, 226, 206, 0.28);
  border-radius: 10px;
  background: #45352c;
}

.profile-summary-copy {
  min-width: 0;
}
.profile-summary-copy h2 {
  margin: 0 0 5px;
  overflow: hidden;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-summary-copy p {
  margin: 0;
}
.panel .profile-change-username {
  white-space: nowrap;
}

.profile-avatar-heading {
  margin: 42px 0 22px;
}
.profile-avatar-heading p {
  margin: 5px 0 0;
}

.avatar-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.avatar-section-heading h2,
.avatar-section-heading h3 {
  margin: 0;
  font-size: 16px;
}
.avatar-section-heading p {
  margin: 0;
  font-size: 13px;
}

.avatar-profile-copy {
  min-width: 0;
}
.avatar-profile-copy h3 {
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar-profile-copy p {
  margin: 0;
}

.avatar-linked-section {
  margin-top: 30px;
}
.avatar-selected-section {
  margin-top: 0;
}
.avatar-linked-section .avatar-section-heading {
  display: block;
}
.avatar-linked-section .avatar-section-heading p {
  margin-top: 5px;
}
.profile-summary-grid,
.avatar-accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 12px;
}

.avatar-account-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(239, 226, 206, 0.28);
  border-radius: 9px;
  background: #45352c;
  overflow: hidden;
  transition:
    transform 105ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 130ms ease-out,
    border-color 130ms ease-out,
    box-shadow 130ms ease-out;
}

.avatar-account-card.clickable {
  cursor: pointer;
}
.avatar-account-card.clickable::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(239, 226, 206, 0.05) 49%,
    transparent 68%
  );
  transform: translateX(-130%);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.avatar-account-card.clickable:hover,
.avatar-account-card.clickable:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(239, 226, 206, 0.48);
  background-color: rgba(8, 8, 8, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(239, 226, 206, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.28);
  outline: none;
}
.avatar-account-card.clickable:hover::after,
.avatar-account-card.clickable:focus-visible::after {
  transform: translateX(130%);
}
.avatar-account-card.clickable:active {
  transition-duration: 55ms;
  transform: translateY(0) scale(0.995);
  border-color: rgba(239, 226, 206, 0.4);
  background-color: #45352c;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.24),
    0 3px 8px rgba(0, 0, 0, 0.16);
}

.avatar-account-image,
.avatar-account-placeholder {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(239, 226, 206, 0.08);
}

@keyframes skeleton-pulse {
  0%,
  100% {
    background-color: rgba(239, 226, 206, 0.07);
  }
  50% {
    background-color: rgba(239, 226, 206, 0.13);
  }
}

.skeleton-block {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line {
  display: block;
  height: 14px;
  border-radius: 999px;
}

.selected-avatar-loading-copy {
  display: grid;
  gap: 8px;
  align-content: center;
}
.selected-avatar-loading-name {
  width: min(150px, 70%);
  height: 19px;
}
#profile-page .profile-avatar-skeleton {
  pointer-events: none;
}
#profile-page .profile-avatar-skeleton .selected-avatar-loading-copy {
  flex: 1;
  min-width: 0;
}
#profile-page .profile-avatar-skeleton .selected-avatar-loading-name {
  width: 75%;
  max-width: 150px;
  height: 23px;
}
#profile-page .profile-avatar-skeleton .selected-avatar-loading-handle {
  width: 60%;
  max-width: 110px;
  height: 21px;
}
#profile-page .profile-avatar-action-placeholder {
  display: block;
  width: 104px;
  height: 40px;
  border-radius: 11px;
}
.selected-avatar-loading-handle {
  width: min(110px, 52%);
}

@keyframes content-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.content-reveal {
  animation: content-reveal 140ms ease-out both;
}

.avatar-image-reveal {
  animation: content-reveal 160ms ease-out both;
}

.avatar-card-actions {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.panel button.unlink-roblox-button {
  width: 128px;
  min-width: 128px;
  height: 40px;
  padding: 0 18px;
  border-width: 2px;
  font-size: 14px;
  text-align: center;
}

.panel button.avatar-link-card {
  display: grid;
  width: 100%;
  padding: 14px;
  border: 1px dashed rgba(239, 226, 206, 0.28);
  background: #45352c;
  text-align: left;
}
.panel button.avatar-link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(239, 226, 206, 0.05) 49%,
    transparent 68%
  );
  transform: translateX(-130%);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.panel button.avatar-link-card:hover,
.panel button.avatar-link-card:focus-visible {
  transform: translateY(-1.25px);
  border-color: rgba(239, 226, 206, 0.48);
  background: rgba(8, 8, 8, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(239, 226, 206, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.28);
}
.panel button.avatar-link-card:hover::after,
.panel button.avatar-link-card:focus-visible::after {
  transform: translateX(130%);
}
.avatar-link-symbol {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(239, 226, 206, 0.28);
  border-radius: 8px;
  background: rgba(239, 226, 206, 0.07);
  font-size: 32px;
  font-weight: 300;
}
.avatar-link-card .avatar-profile-copy > span {
  display: block;
}
.avatar-link-card .avatar-profile-copy .muted {
  margin-top: 4px;
}

.avatar-empty-state {
  padding: 22px;
  border: 1px dashed rgba(239, 226, 206, 0.24);
  border-radius: 9px;
  background: #45352c;
}
.avatar-empty-state p {
  margin: 0;
}

.link-account-modal {
  text-align: left;
}
.link-account-modal h2 {
  margin: 0;
}
.link-account-modal .avatar-link-form {
  margin-top: 16px;
}
.change-username-modal {
  text-align: left;
}
.change-username-modal h2 {
  margin: 0;
}
.change-username-modal .form {
  margin-top: 16px;
}
.change-password-modal h2 {
  margin: 0;
}
.change-password-modal .form-error {
  min-height: 0;
  margin: 0;
}
.username-change-status {
  margin: 0 !important;
  color: rgba(239, 226, 206, 0.68);
  font-size: 13px;
  text-align: left;
}
.username-change-status:empty {
  display: none;
}
.username-change-status.available {
  color: #8ff0ad;
}
.username-change-status.invalid {
  color: #ffb5b5;
}
.panel #purchase-username-button:disabled {
  opacity: 0.55;
  cursor: default;
}
.panel #save-password-button:disabled {
  opacity: 0.55;
  cursor: default;
}
#purchase-username-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--currency-icon-gap);
}
#purchase-username-button :is(img, svg.currency-icon) {
  width: var(--currency-icon-size);
  height: var(--currency-icon-size);
  display: block;
  flex-shrink: 0;

  object-fit: contain;
}
.unlink-account-modal {
  width: fit-content;
  min-width: min(420px, calc(100vw - 32px));
  max-width: min(520px, calc(100vw - 32px));
  text-align: left;
}
.unlink-account-modal h2 {
  margin: 0;
  overflow-wrap: anywhere;
}
.unlink-account-modal > p {
  max-width: 376px;
  margin: 8px 0 18px;
}
.payment-success-modal {
  width: min(350px, calc(100vw - 32px));
}
.payment-success-modal h2 {
  margin: 0;
}
.payment-success-modal > p {
  margin: 16px 0;
}
body .modal-backdrop .modal.payment-success-modal .modal-actions {
  justify-content: center;
}

@media (max-width: 600px) {
  .avatar-section-heading {
    display: block;
  }
  .avatar-section-heading p {
    margin-top: 5px;
  }
  .profile-summary-grid,
  .avatar-accounts-grid {
    grid-template-columns: 1fr;
  }
  .avatar-account-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .avatar-account-image,
  .avatar-account-placeholder {
    width: 64px;
    height: 64px;
  }
  .avatar-link-symbol {
    width: 64px;
    height: 64px;
  }
  .avatar-card-actions {
    grid-column: 2;
    justify-content: center;
    align-items: center;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #45352c;
}
.modal-backdrop[hidden] {
  display: none;
}

.modal {
  box-sizing: border-box;
  width: min(420px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--popup-glass-background);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  text-align: center;
}

.modal > h2 {
  margin-top: 0;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.challenge-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: stretch;
  margin: 10px 0;
}

.challenge-code {
  display: grid;
  place-items: center;
  margin: 0;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(239, 226, 206, 0.12);
  overflow-wrap: anywhere;
  text-align: center;
}

.panel .copy-icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  aspect-ratio: 1;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.copy-icon-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.muted {
  opacity: 0.78;
  font-size: 14px;
}

.empty-state-copy {
  font-size: 16px;
  font-weight: 400;
}

.panel.has-error {
  padding-bottom: 66px;
}

.error {
  display: none;
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 10px;
  margin: 0;
  color: #ffb5b5;
}
.error.is-visible {
  display: block;
}

.form-error {
  position: static;
  display: none;
  min-height: 38px;
  margin: 2px 0 0;
  text-align: center;
}

.form-error:empty {
  color: transparent;
}

.account-error {
  position: fixed;
  left: 50%;
  top: 34px;
  right: auto;
  bottom: auto;
  z-index: 30;
  transform: translate(-50%, -50%);
  margin: 0;
  box-sizing: border-box;
  width: min(520px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(239, 226, 206, 0.7);
  border-radius: 8px;
  background: #45352c;
  box-shadow:
    0 3px 0 #35281f55,
    0 8px 18px #45352c28;
  color: #f2e4d2;
  text-align: center;
  pointer-events: none;
}

.username-rules,
.password-rules {
  display: none;
  gap: 6px;
  margin: -2px 0 2px;
  text-align: left;
  font-size: 14px;
}

.username-rules.visible,
.password-rules.visible {
  display: grid;
}

.username-rule-message {
  color: #ffb5b5;
}

.input-rule {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 6px;
  align-items: center;
  color: rgba(239, 226, 206, 0.62);
}

.input-rule.met {
  color: #8cff9f;
}

.input-rule.missing {
  color: #ffb5b5;
}

.input-rule-icon {
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: bold;
}

.input-rule-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.panel.auth-panel {
  inset: 0;
  transform: none;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 32px;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: rgba(4, 5, 8, 0.64);
  text-align: left;
}

.panel.auth-panel.has-error {
  padding-bottom: 40px;
}

.auth-shell {
  box-sizing: border-box;
  width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass-background);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

body .auth-shell {
  border: 5px solid #45352c;
  border-radius: 20px;
  background: #45352c;
  box-shadow: 0 3px 0 #35281f55, 0 8px 18px #45352c28;
  backdrop-filter: none;
}
body .auth-card { padding: 0; }
body .auth-card .auth-card-header { text-align: center; }
body .auth-card .form-error { margin: 0; min-height: 0; }
body .auth-card-header {
  margin: 0;
  padding: 18px 26px;
  min-height: 72px;
  box-sizing: border-box;
  text-align: left;
  background: #45352c;
}
body .auth-card-header h2 { color: #f2e4d2; font-weight: 800; }
body .auth-card .form { display: block; margin: 0; }
body .auth-card-body {
  display: grid;
  gap: 12px;
  padding: 22px 26px;
  background: #d0bfa6;
}
body .auth-card .auth-field { color: #594a3c; }
body .auth-card .form input {
  background: #e3d5c1;
  color: #45352c;
  border: 2px solid #96806b;
}
body .auth-card .form input::placeholder { color: #776553; }
body .auth-card .password-toggle { color: #594a3c; }
body .auth-card-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 26px;
  min-height: 72px;
  box-sizing: border-box;
  background: #45352c;
}
body .auth-card-footer { margin: 0; padding: 0 26px 18px; }
body .auth-card .form-error:empty { display: none; }
body .auth-card .auth-card-actions > button { text-align: center; }
body .panel.auth-panel .auth-card .password-field > button.password-toggle {
  color: #594a3c !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
body .panel.auth-panel .auth-card .password-field > button.password-toggle:hover {
  color: #9a6235 !important;
}
body :is(.auth-card, .modal) input {
  -webkit-text-fill-color: #45352c !important;
  color: #45352c !important;
  caret-color: #45352c;
}
body :is(.auth-card, .modal) input:is(:-webkit-autofill, :autofill) {
  -webkit-text-fill-color: #45352c !important;
  caret-color: #45352c;
  box-shadow: 0 0 0 1000px #e3d5c1 inset !important;
}
body .auth-card #register-link {
  display: inline-block;
  text-decoration: none;
  transition: translate 180ms cubic-bezier(0.2, 0.8, 0.25, 1.25), scale 150ms cubic-bezier(0.2, 0.8, 0.25, 1.25);
}
body .auth-card #register-link:is(:hover, :focus-visible) { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) {
  body .auth-card #register-link:hover { translate: 0 -2px; }
}
body .auth-card #register-link:active { translate: 0 2px; scale: 0.97; }
@media (prefers-reduced-motion: reduce) {
  body .auth-card #register-link { transition: none; translate: none; scale: none; }
}

.auth-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 26px;
}

.auth-card-header {
  margin-bottom: 20px;
  text-align: center;
}

#ban-logout-form {
  margin: 0;
}

#ban-logout-error:empty {
  display: none;
}

.panel .auth-card-header h2 {
  margin: 0;
  font-size: 24px;
}

.panel .auth-card-header p {
  margin: 9px 0 0;
  color: rgba(239, 226, 206, 0.7);
  font-size: 16px;
  line-height: 1.5;
}

.auth-card .form {
  margin-top: 0;
  gap: 12px;
}

.auth-field {
  display: grid;
  gap: 7px;
  color: rgba(239, 226, 206, 0.82);
  font-size: 14px;
  font-weight: bold;
}

.auth-card .form input {
  min-height: 46px;
  border-color: rgba(239, 226, 206, 0.34);
  border-radius: 8px;
  background: #45352c;
}

.auth-card .form input:focus {
  border-color: rgba(239, 226, 206, 0.82);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(239, 226, 206, 0.09);
}

.auth-card-footer {
  margin-top: 18px;
  color: rgba(239, 226, 206, 0.65);
  font-size: 14px;
  text-align: center;
}

.panel .auth-card-footer .link-button {
  display: inline;
  width: auto;
  margin: 0 0 0 4px;
  padding: 0;
  border: 0;
  color: #efe2ce;
  background: transparent;
  font-weight: bold;
}

.auth-card .error {
  position: static;
  min-height: 20px;
  margin: 12px 0 0;
  text-align: left;
}

.auth-card .form-error {
  min-height: 20px;
  margin-top: 0;
}

.auth-status-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

:is(
    .button,
    .panel button,
    .playtime-button,
    .currency-button,
    .settings-menu-button
  ):not(.link-button):not(.password-toggle):not(.product-detail-close):not(
    .portal-nav-button
  ):not(.avatar-link-card) {
  position: relative;
  overflow: hidden;
  border-color: var(--button-border);
  background: var(--button-background);
  box-shadow:
    inset 0 1px 0 rgba(239, 226, 206, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.18);
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

:is(
    .button,
    .panel button,
    .playtime-button,
    .currency-button,
    .settings-menu-button
  ):not(.link-button):not(.password-toggle):not(.product-detail-close):not(
    .portal-nav-button
  ):not(.avatar-link-card)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 28%,
    rgba(239, 226, 206, 0.06) 48%,
    transparent 68%
  );
  transform: translateX(-130%);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

:is(
    .button,
    .panel button,
    .playtime-button,
    .currency-button,
    .settings-menu-button
  ):not(.link-button):not(.password-toggle):not(.product-detail-close):not(
    .portal-nav-button
  ):not(.avatar-link-card):not(:disabled):hover {
  transform: translateY(-0.5px);
  border-color: rgba(239, 226, 206, 0.66);
  background-color: var(--button-background-hover);
  box-shadow:
    inset 0 1px 0 rgba(239, 226, 206, 0.09),
    0 5px 14px rgba(0, 0, 0, 0.2);
}

:is(
    .button,
    .panel button,
    .playtime-button,
    .currency-button,
    .settings-menu-button
  ):not(.link-button):not(.password-toggle):not(.product-detail-close):not(
    .portal-nav-button
  ):not(.avatar-link-card):not(:disabled):hover::after {
  transform: translateX(130%);
}

:is(
    .button,
    .panel button,
    .playtime-button,
    .currency-button,
    .settings-menu-button
  ):not(.link-button):not(.password-toggle):not(.product-detail-close):not(
    .portal-nav-button
  ):not(.avatar-link-card):not(:disabled):active {
  transform: translateY(0);
  background-color: rgba(239, 226, 206, 0.075);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.24),
    0 2px 7px rgba(0, 0, 0, 0.2);
}

:is(
    .button,
    .panel button,
    .playtime-button,
    .currency-button,
    .settings-menu-button
  ):not(.link-button):not(.password-toggle):not(.product-detail-close):not(
    .portal-nav-button
  ):not(.avatar-link-card):focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.avatar-card-actions .unlink-roblox-button {
  border-color: rgba(255, 92, 92, 0.7) !important;
  background-color: rgba(150, 25, 34, 0.24) !important;
  color: rgba(255, 225, 225, 0.96) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 170, 170, 0.09),
    0 3px 9px rgba(80, 0, 6, 0.2) !important;
}

.avatar-card-actions .unlink-roblox-button::after {
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 190, 190, 0.08) 49%,
    transparent 68%
  );
}

.avatar-card-actions .unlink-roblox-button:hover {
  border-color: rgba(255, 112, 112, 0.86) !important;
  background-color: rgba(178, 31, 41, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 190, 190, 0.12),
    0 4px 11px rgba(90, 0, 7, 0.24) !important;
}

.panel #confirm-unlink-account-button {
  border-color: rgba(255, 92, 92, 0.7) !important;
  background-color: rgba(150, 25, 34, 0.24) !important;
  color: rgba(255, 225, 225, 0.96) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 170, 170, 0.09),
    0 3px 9px rgba(80, 0, 6, 0.2) !important;
}

.panel #confirm-unlink-account-button::after {
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 190, 190, 0.08) 49%,
    transparent 68%
  );
}

.panel #confirm-unlink-account-button:hover {
  border-color: rgba(255, 112, 112, 0.86) !important;
  background-color: rgba(178, 31, 41, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 190, 190, 0.12),
    0 4px 11px rgba(90, 0, 7, 0.24) !important;
}

.playtime-button,
.currency-button,
.settings-menu-button {
  border-color: rgba(239, 226, 206, 0.28) !important;
  background-color: #45352c !important;
}

.playtime-button:not(:disabled):hover,
.currency-button:not(:disabled):hover,
.settings-menu-button:not(:disabled):hover {
  border-color: rgba(239, 226, 206, 0.66) !important;
  background-color: rgba(10, 10, 10, 0.6) !important;
}

.panel button.avatar-link-card {
  transition:
    transform 105ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 130ms ease-out,
    border-color 130ms ease-out,
    box-shadow 130ms ease-out;
}

.panel button.avatar-link-card:hover,
.panel button.avatar-link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(239, 226, 206, 0.48);
  background-color: rgba(8, 8, 8, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(239, 226, 206, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.panel button.avatar-link-card:active {
  transition-duration: 55ms;
  transform: translateY(0) scale(0.995);
  border-color: rgba(239, 226, 206, 0.4);
  background: #45352c;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.24),
    0 3px 8px rgba(0, 0, 0, 0.16);
}

body:has(.auth-panel) .client-download-form,
body:has(.auth-panel) .privacy-form {
  display: none;
}

@media (max-width: 760px) {
  .panel.auth-panel,
  .panel.auth-panel.has-error {
    padding: 18px;
  }
  .auth-card {
    padding: 24px 20px;
  }
}
.panel.portal-panel {
  inset: 0;
  transform: none;
  width: 100%;
  max-height: none;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
  background: rgba(4, 5, 8, 0.82);
}

body:has(.portal-panel) .client-download-form,
body:has(.portal-panel) .privacy-form {
  right: auto;
  left: 14px;
  width: calc(var(--portal-sidebar-width) - 28px);
  max-width: calc(100vw - 28px);
}

body:has(.portal-panel) .client-download-button,
body:has(.portal-panel) .privacy-button {
  padding-inline: clamp(4px, calc(var(--portal-sidebar-width) - 122px), 12px);
  font-size: clamp(11px, calc(var(--portal-sidebar-width) * 0.075), 13px);
}

.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--portal-sidebar-width) minmax(0, 1fr);
}

.portal-sidebar {
  position: sticky;
  top: 0;
  box-sizing: border-box;
  height: 100vh;
  padding: 24px 14px;
  border-right: 1px solid rgba(239, 226, 206, 0.22);
  background: #45352c;
}

.portal-brand {
  display: block;
  margin: 0 10px 24px;
  color: #efe2ce;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.portal-nav {
  display: grid;
  gap: 7px;
}

.panel .portal-nav-button {
  width: 100%;
  padding: 11px 13px;
  border: 0;
  text-align: left;
  font-weight: 700;
  background: transparent;
}

.panel .portal-nav-button:hover,
.panel .portal-nav-button.active {
  background: rgba(239, 226, 206, 0.14);
}

.portal-content {
  position: relative;
  box-sizing: border-box;
  width: min(1240px, 100%);
  min-width: 0;
  padding: 53px 34px 64px;
}

.portal-section-title,
.avatar-page-heading h1,
.profile-avatar-heading h2,
.store-page-heading h1 {
  margin: 0;
  font-size: 24px;
  line-height: 28px;
}

.store-page-heading {
  margin-bottom: 28px;
}
.store-page-heading p {
  margin: 6px 0 0;
}
#store-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 1268px;
  margin-inline: auto;
}
#store-page .store-page-heading {
  margin: 0 0 20px;
}
.creator-code-card {
  display: grid;
  width: calc((100% - 36px) / 3);
  gap: 8px;
  margin: 24px 0 0;
}
.creator-code-label-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.creator-code-label-row > h2 {
  margin: 0;
  color: #332b25;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}
.creator-code-label-row label {
  cursor: pointer;
}
.creator-code-help {
  position: relative;
  display: inline-flex;
}
.creator-code-help-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #332b25;
}
.creator-code-help-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.creator-code-tooltip {
  position: absolute;
  z-index: 5;
  left: -8px;
  bottom: calc(100% + 9px);
  box-sizing: border-box;
  width: min(300px, calc(100vw - 40px));
  padding: 9px 11px;
  border: 1px solid #806953;
  border-radius: 9px;
  background: #45352c;
  color: #efe2ce;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.creator-code-tooltip::after {
  position: absolute;
  top: 100%;
  left: 10px;
  width: 8px;
  height: 8px;
  border-right: 1px solid #806953;
  border-bottom: 1px solid #806953;
  background: #45352c;
  content: "";
  transform: translateY(-4px) rotate(45deg);
}
.creator-code-help:hover .creator-code-tooltip {
  opacity: 1;
  visibility: visible;
}
.creator-code-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}
.creator-code-fields input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 10px 13px;
  border: 1px solid #a98a6b;
  border-radius: 11px;
  outline: 0;
  background: #e1d2bc;
  color: #332b25;
  font: 600 16px/22px "Nunito", sans-serif;
}
.creator-code-fields input:focus {
  border-color: #806953;
  box-shadow: 0 0 0 2px rgba(128,105,83,.22);
}
.creator-code-fields input.is-locked {
  background: #d7c7b0;
  color: #594a3c;
  cursor: default;
}
.creator-code-fields input.is-locked:focus {
  border-color: #a98a6b;
  box-shadow: none;
}
.creator-code-status {
  margin: 0;
  color: #594a3c;
  font-size: 14px;
  font-weight: 600;
}
.creator-code-status:empty { display: none; }
.creator-code-status.is-error { color: #b52218; }
.creator-code-status.is-success { color: #496b35; }
#store-page .store-page-heading h1 {
  font-size: 28px;
  line-height: 35px;
  font-weight: 800;
  margin: 0;
}
#store-page .store-page-heading p {
  font-size: 16px;
  color: #594a3c;
  margin: 5px 0 0;
}
#store-page .yarn-package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
#store-page .yarn-package-card {
  position: relative;
  container-type: inline-size;
  padding: 20px;
  min-width: 0;
  border: 1px solid #806953;
  border-radius: 14px;
  background: #45352c;
  color: #f2e4d2;
  box-shadow:
    0 3px 0 #35281f40,
    0 8px 18px #45352c25;
  transition:
    transform 105ms ease-out,
    box-shadow 130ms ease-out;
}
#store-page .yarn-package-card:hover {
  transform: none;
}
#store-page .yarn-package-card.yarn-package-skeleton {
  pointer-events: none;
}
#store-page .yarn-package-skeleton .store-package-skeleton-icon {
  width: var(--currency-icon-size);
  height: var(--currency-icon-size);
  flex: 0 0 var(--currency-icon-size);
  border-radius: 50%;
}
#store-page .yarn-package-skeleton .store-package-skeleton-amount {
  width: 92px;
  height: 24px;
}
#store-page .yarn-package-skeleton .store-package-skeleton-label {
  display: block;
  width: 48px;
  height: 14px;
  margin: 5px 0 24px;
}
#store-page .yarn-package-skeleton .store-package-skeleton-button {
  display: block;
  width: 100%;
  height: 44px;
  border-radius: 12px;
}
#store-page .yarn-package-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
#store-page .yarn-package-main {
  gap: var(--currency-icon-gap);
  font-size: 28px;
}
#store-page .store-yarn-bonus-badge {
  flex: 0 0 auto;
  margin: 0;
  border-color: #b5835c;
  border-radius: 8px;
  background: #d3a078;
  color: #2e2119;
  font-size: 14px;
}
@container (max-width: 230px) {
  #store-page .yarn-package-header {
    gap: 6px;
  }
  #store-page .store-yarn-bonus-badge {
    padding: 4px 6px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }
}
@container (max-width: 200px) {
  #store-page .yarn-package-header {
    gap: 4px;
  }
  #store-page .store-yarn-bonus-badge {
    padding: 3px 4px;
    font-size: 8px;
    letter-spacing: 0.02em;
  }
}
#store-page .yarn-package-icon {
  width: var(--currency-icon-size);
  height: var(--currency-icon-size);
  flex-shrink: 0;
}
#store-page .yarn-package-main h2 {
  color: #f2e4d2;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}
#store-page .store-yarn-label {
  margin: 3px 0 22px;
  color: #d0bda7;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
#store-page .store-buy-button {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #b5835c;
  border-radius: 12px;
  background: #d3a078;
  color: #2e2119;
  box-shadow: 0 2px #98724f;
  font-size: 16px;
  font-weight: 800;
  translate: none;
  scale: none;
  transition:
    transform 105ms ease-out,
    background-color 130ms ease-out,
    box-shadow 130ms ease-out;
}
#store-page .store-buy-button::after {
  display: none;
}
#store-page .store-buy-button:not(:disabled):hover {
  background: #ddb18b;
  transform: translateY(-2px);
  box-shadow: 0 4px #98724f;
}
#store-page .store-buy-button:not(:disabled):active {
  transform: translateY(1px);
  box-shadow: none;
}
#store-page .store-buy-button:disabled {
  background: #705b48;
  color: #e0cbb3;
  border-color: #705b48;
  box-shadow: none;
  transform: none;
  opacity: 1;
}
#store-page .store-yarn-note {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid #ab9278;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #594a3c;
}
@media (max-width: 850px) {
  #store-page .yarn-package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .creator-code-card {
    width: calc((100% - 18px) / 2);
  }
}
@media (max-width: 600px) {
  .portal-content:has(> #portal-topbar) > #store-page {
    padding-inline: 20px;
  }
}
@media (max-width: 420px) {
  #store-page .yarn-package-grid {
    grid-template-columns: 1fr;
  }
  .creator-code-card { width: 100%; }
  .creator-code-fields { grid-template-columns: 1fr; }
  .creator-code-fields .modal-action-button { width: 100%; }
}

#playtime-button.creator #playtime-balance,
#playtime-button.staff #playtime-balance {
  font-weight: 800;
  letter-spacing: .02em;
}
@media (prefers-reduced-motion: reduce) {
  #store-page .yarn-package-card,
  #store-page .store-buy-button {
    transition: none;
    transform: none;
  }
}
.yarn-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  gap: 18px;
}
.yarn-package-card {
  padding: 22px;
  border: 1px solid rgba(239, 226, 206, 0.34);
  border-radius: 12px;
  background: #45352c;
}
.yarn-package-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 8px;
  border: 1px solid rgba(239, 226, 206, 0.44);
  border-radius: 999px;
  color: rgba(239, 226, 206, 0.8);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.yarn-package-main {
  display: flex;
  align-items: center;
  gap: 14px;
}
.yarn-package-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.yarn-package-copy {
  min-width: 0;
}
.yarn-package-copy h2 {
  margin: 0;
  font-size: 22px;
}
.yarn-package-copy p {
  margin: 5px 0 0;
}
.yarn-package-price {
  margin: 22px 0 16px;
  font-size: 28px;
  font-weight: 800;
}
.yarn-package-main > h2 {
  margin: 0;
  font-size: 28px;
}
.store-buy-button {
  width: 100%;
  margin-top: 22px;
}
.store-payment-status:empty {
  display: none;
}
.store-payment-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: rgba(239, 226, 206, 0.76);
  line-height: 1.4;
}
.store-payment-status.success {
  color: #8ff0ad;
}
.store-payment-status.error {
  color: #ff9b9b;
}
.store-setup-note {
  padding: 13px;
  border: 1px dashed rgba(239, 226, 206, 0.34);
  border-radius: 8px;
  color: rgba(239, 226, 206, 0.74);
  line-height: 1.45;
}

.auth-shell,
.modal,
.account-box,
.yarn-package-card {
  box-shadow: var(--surface-shadow);
}

.avatar-account-card,
.shop-product,
.game-card-icon,
.game-detail-icon,
.store-setup-note {
  box-shadow: var(--nested-surface-shadow);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 16px;
  margin-top: 16px;
}

.games-grid .game-card {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #efe2ce;
  text-decoration: none;
  transition: transform 120ms ease;
}

.games-grid .game-card:hover {
  transform: translateY(-2px);
}

.game-card-icon {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border: 1px solid rgba(239, 226, 206, 0.34);
  border-radius: 9px;
  object-fit: cover;
  background: #45352c;
}

.games-grid .game-name {
  margin: 9px 1px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.games-grid .game-status {
  margin: 2px 1px 0;
}

.games-grid .game-infinite-status {
  margin: 2px 1px 0;
}

.game-card-skeleton {
  pointer-events: none;
}
.game-card-loading-name {
  width: 68%;
  height: 16px;
  margin: 9px 1px 5px;
}
.game-card-loading-status {
  width: 52%;
  height: 12px;
  margin: 0 1px;
}

.game-detail-back {
  position: absolute;
  top: 16px;
  left: 34px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  height: 46px;
  margin: 0;
  color: rgba(239, 226, 206, 0.78);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  text-decoration: none;
}
.game-detail-back-icon {
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.game-detail-back:hover,
.game-detail-back:focus-visible {
  color: #efe2ce;
  text-decoration: underline;
}

.game-detail-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 36px;
}
.game-detail-back + .game-detail-hero {
  margin-top: 16px;
}

.game-detail-icon {
  display: block;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(239, 226, 206, 0.4);
  border-radius: 12px;
  object-fit: cover;
}

.game-detail-copy {
  display: flex;
  min-height: 220px;
  flex-direction: column;
}
.game-detail-copy h1 {
  margin: 0 0 2px;
  font-size: 30px;
}
.game-detail-copy .game-detail-status {
  margin: 0;
}
.game-detail-copy .game-infinite-status {
  margin: 2px 0 0;
}
.game-detail-description-wrap {
  margin: 8px 0 6px;
}
.game-detail-copy .game-detail-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(239, 226, 206, 0.82);
  line-height: 18px;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.panel button.game-description-more {
  width: max-content;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(239, 226, 206, 0.72);
  font-size: 13px;
  line-height: 16px;
}
.panel button.game-description-more:hover {
  background: transparent;
  color: #efe2ce;
}
.panel .play-game-button {
  align-self: flex-start;
  width: auto;
  min-width: 150px;
  height: 46px;
  margin-top: auto;
}
.panel .play-game-button:disabled,
.panel .play-game-button:disabled:hover {
  border-color: rgba(239, 226, 206, 0.38);
  background: rgba(239, 226, 206, 0.1);
  color: rgba(239, 226, 206, 0.62);
  cursor: default;
}

.shop-section {
  margin-top: 30px;
}
.shop-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.shop-list {
  display: grid;
  width: 70%;
  gap: 10px;
}
.shop-product {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  gap: 13px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(239, 226, 206, 0.28);
  border-radius: 9px;
  background: #45352c;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 105ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 130ms ease-out,
    border-color 130ms ease-out,
    box-shadow 130ms ease-out;
}
.shop-product:not(.shop-product-skeleton)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(239, 226, 206, 0.05) 49%,
    transparent 68%
  );
  transform: translateX(-130%);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.shop-product-skeleton {
  cursor: default;
  pointer-events: none;
}
.shop-product-loading-icon {
  width: 58px;
  height: 58px;
  border-radius: 7px;
}
.shop-product-loading-name {
  width: min(180px, 70%);
  height: 17px;
}
.shop-product-loading-price {
  width: 52px;
  height: 17px;
}
.shop-product-loading-button {
  width: 100px;
  height: 35px;
  border-radius: 7px;
}
.game-detail-loading-title {
  width: min(300px, 72%);
  height: 31px;
  margin-bottom: 12px;
}
.game-detail-loading-status {
  width: min(180px, 48%);
  margin-bottom: 18px;
}
.game-detail-loading-description {
  width: min(560px, 92%);
  margin-bottom: 8px;
}
.game-detail-loading-description.short {
  width: min(390px, 68%);
}
.game-detail-loading-button {
  width: 150px;
  height: 46px;
  margin-top: auto;
  border-radius: 7px;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block {
    animation: none;
  }
  .content-reveal,
  .avatar-image-reveal {
    animation: none;
  }
  :is(
      .button,
      .panel button,
      .playtime-button,
      .currency-button,
      .settings-menu-button
    ):not(.link-button):not(.password-toggle):not(.product-detail-close):not(
      .portal-nav-button
    ):not(.avatar-link-card),
  :is(
      .button,
      .panel button,
      .playtime-button,
      .currency-button,
      .settings-menu-button
    ):not(.link-button):not(.password-toggle):not(.product-detail-close):not(
      .portal-nav-button
    ):not(.avatar-link-card)::after {
    transition: none;
  }
  .avatar-account-card.clickable,
  .avatar-account-card.clickable::after,
  .panel button.avatar-link-card,
  .panel button.avatar-link-card::after,
  .shop-product:not(.shop-product-skeleton),
  .shop-product:not(.shop-product-skeleton)::after {
    transition: none;
  }
  .avatar-account-card.clickable::after,
  .panel button.avatar-link-card::after,
  .shop-product:not(.shop-product-skeleton)::after {
    display: none;
  }
}
.shop-product:hover,
.shop-product:focus-visible,
.shop-product.is-selected {
  transform: translateY(-2px);
  border-color: rgba(239, 226, 206, 0.48);
  background-color: rgba(8, 8, 8, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(239, 226, 206, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.28);
  outline: none;
}
.shop-product:not(.shop-product-skeleton):hover::after,
.shop-product:not(.shop-product-skeleton):focus-visible::after {
  transform: translateX(130%);
}
.shop-product:not(.shop-product-skeleton):active {
  transition-duration: 55ms;
  transform: translateY(0) scale(0.995);
  border-color: rgba(239, 226, 206, 0.4);
  background-color: #45352c;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.24),
    0 3px 8px rgba(0, 0, 0, 0.16);
}
.shop-product-icon {
  width: 58px;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
}
.shop-product-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.shop-product-title-row {
  display: flex;
  min-width: 0;
  align-items: baseline;
}
.shop-product h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}
.shop-product p {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}
.shop-price {
  display: inline-flex;
  align-items: center;
  gap: var(--currency-icon-gap);
  font-weight: 700;
  vertical-align: middle;
}
.shop-price :is(img, svg.currency-icon) {
  display: block;
  width: var(--currency-icon-size);
  height: var(--currency-icon-size);
  flex-shrink: 0;
  object-fit: contain;
}
.shop-price-value {
  display: block;
  line-height: 1;
}
.balance-price {
  display: inline;
  white-space: nowrap;
}
.balance-yarn {
  display: inline-block;
  width: var(--currency-icon-size);
  height: var(--currency-icon-size);
  margin: 0 var(--currency-icon-gap) 0 0;
  object-fit: contain;
  vertical-align: calc(
    (1cap - var(--currency-icon-size)) / 2 + var(--currency-icon-optical-lift)
  );
}
.balance-value {
  font-weight: 700;
}
.shop-product-action {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 5px;
  width: 100px;
}
.subscription-expiry {
  color: rgba(239, 226, 206, 0.78);
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  white-space: normal;
}
.panel .shop-buy-button {
  width: 100px;
  padding: 9px 12px;
}
.panel .shop-buy-button:disabled,
.panel .shop-buy-button:disabled:hover,
.panel #product-detail-purchase-button:disabled,
.panel #product-detail-purchase-button:disabled:hover {
  border-color: rgba(239, 226, 206, 0.38);
  background: rgba(239, 226, 206, 0.1);
  color: rgba(239, 226, 206, 0.62);
  cursor: default;
}

.product-detail-modal {
  width: min(520px, calc(100vw - 32px));
  text-align: left;
}
.product-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-detail-header h2 {
  margin: 0;
}
.product-detail-close {
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 26px !important;
  line-height: 1;
  transform: translateY(-3px);
}
.product-detail-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 8px 0 12px;
}
.product-detail-icon {
  width: 112px;
  height: 112px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(239, 226, 206, 0.08);
}
.product-detail-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.product-detail-name {
  margin: 0;
  font-size: 18px;
}
.product-detail-description {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.product-detail-price {
  align-self: flex-start;
  margin: 0;
  transform: translateX(-2px);
}
.product-detail-balance {
  margin: 10px 0 6px;
}
.product-detail-subscription {
  margin: 0 0 18px;
}
.product-detail-actions {
  display: block;
}
.panel .product-detail-actions button {
  width: 100%;
}

@media (max-width: 1050px) {
  .games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1120px) {
}
@media (max-width: 820px) {
  :root {
    --portal-sidebar-width: 126px;
  }
  .portal-content {
    padding-left: 20px;
    padding-right: 20px;
  }
  .shop-list {
    width: 100%;
  }
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .game-detail-hero {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .game-detail-icon {
    width: 150px;
    height: 150px;
  }
  .game-detail-copy {
    min-height: 150px;
  }
  .game-detail-back {
    left: 20px;
  }
}
@media (max-width: 600px) {
  .portal-shell {
    display: block;
  }
  .portal-sidebar {
    position: sticky;
    z-index: 20;
    width: 100%;
    height: auto;
    padding: 70px 14px 10px;
  }
  .portal-brand {
    display: none;
  }
  .portal-nav {
    box-sizing: border-box;
    grid-template-columns: repeat(3, 1fr);
    padding-right: 0;
  }
  .portal-content {
    padding-top: 28px;
  }
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .game-detail-hero {
    grid-template-columns: 1fr;
  }
  .game-detail-icon {
    width: min(220px, 100%);
    height: auto;
    aspect-ratio: 1;
  }
  .game-detail-copy {
    min-height: 0;
  }
  .panel .play-game-button,
  .game-detail-loading-button {
    margin-top: 14px;
  }
  .game-detail-back {
    position: static;
    height: auto;
    margin: -42px 0 20px;
  }
  .game-detail-back + .game-detail-hero {
    margin-top: 0;
  }
  .shop-product {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }
  .shop-product-icon {
    width: 48px;
    height: 48px;
  }
  .shop-product-loading-icon {
    width: 48px;
    height: 48px;
  }
  .shop-product-action {
    grid-column: 2 / 4;
    width: 100%;
  }
  .panel .shop-buy-button {
    width: 100px;
  }
  body:has(.portal-panel) .client-download-form,
  body:has(.portal-panel) .privacy-form {
    display: none;
  }
  .profile-summary-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .panel .profile-change-username {
    grid-column: 1 / -1;
    width: 100%;
  }
}

html,
body {
  background-color: var(--vedalia-background);
}
body.session-loading::after,
.panel.portal-panel,
.panel.auth-panel {
  background: var(--vedalia-background);
}
.panel.portal-panel {
  color: var(--vedalia-text);
}
.portal-sidebar,
.auth-shell,
.modal,
.account-box,
.roblox-account,
.avatar-account-card,
.link-roblox-account-card,
.game-card,
.yarn-package-card,
.shop-product,
.playtime-menu,
.account-menu {
  background-color: var(--vedalia-brown);
  color: var(--vedalia-cream);
}
.games-grid .game-card {
  background-color: var(--vedalia-brown);
  color: var(--vedalia-cream);
}
.panel .portal-nav-button,
.portal-sidebar a.portal-nav-button {
  color: var(--vedalia-cream);
}
.panel .portal-nav-button:hover,
.panel .portal-nav-button.active,
.portal-sidebar a.portal-nav-button.active {
  background-color: var(--vedalia-orange);
  color: var(--vedalia-button-text);
}
.button,
.panel button,
.playtime-button,
.currency-button,
.settings-menu-button {
  color: var(--vedalia-button-text);
}
.button:hover,
.panel button:hover {
  color: var(--vedalia-button-text);
}
.playtime-button,
.currency-button,
.settings-menu-button {
  background: var(--vedalia-brown);
  border-color: var(--vedalia-border);
  color: var(--vedalia-cream);
}
.playtime-button:hover,
.currency-button:hover,
.settings-menu-button:hover {
  background: #57463a;
  color: var(--vedalia-cream);
}
.account-menu .button,
.account-menu button,
.account-menu .button:hover,
.account-menu button:hover {
  color: var(--vedalia-cream);
}
.panel input,
.panel select,
.panel textarea {
  background-color: var(--vedalia-field);
  color: var(--vedalia-text);
  border-color: var(--vedalia-border);
}
.panel input::placeholder,
.panel textarea::placeholder {
  color: #665443;
}
.game-detail-back,
.game-detail-back:hover,
.game-detail-back:focus-visible,
.game-detail-copy .game-detail-description,
.panel button.game-description-more,
.panel button.game-description-more:hover,
.store-setup-note {
  color: #594a3c;
}
.store-payment-status {
  color: #594a3c;
}
.store-payment-status.success {
  color: #36573b;
}
.store-payment-status.error {
  color: #8a302d;
}
.panel .play-game-button:disabled,
.panel .play-game-button:disabled:hover,
.panel button:disabled {
  background-color: #655345;
  color: var(--vedalia-muted);
  border-color: var(--vedalia-border);
}
.modal-close,
.panel button.modal-close {
  color: var(--vedalia-cream);
}
.account-controls .playtime-button,
.account-controls .currency-button,
.account-controls .settings-menu-button {
  background: var(--vedalia-brown) !important;
  border-color: var(--vedalia-border) !important;
  color: var(--vedalia-cream);
}
.panel button.avatar-link-card {
  color: var(--vedalia-cream);
}
.panel .auth-shell button.link-button,
.panel .modal button.link-button,
.panel button.password-toggle,
.panel button.product-detail-close {
  color: var(--vedalia-cream);
}
.avatar-account-card.clickable:hover,
.avatar-account-card.clickable:focus-visible,
.avatar-link-card:hover,
.shop-product:hover {
  background-color: #57463a;
}

.portal-sidebar {
  padding: 16px 17px 24px;
  border-right-color: var(--vedalia-border);
}
.portal-sidebar .portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--vedalia-cream);
  font:
    800 28px "Nunito",
    sans-serif;
}
.portal-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 14px;
  background: var(--vedalia-orange);
  color: var(--vedalia-button-text);
}
.portal-brand-mark svg {
  display: block;
  width: 24px;
  height: 24px;
}
.portal-sidebar .portal-nav-button,
.portal-sidebar a.portal-nav-button {
  display: flex;
  align-items: center;
  gap: 11px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
}
.portal-nav-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.portal-sidebar .portal-nav-button:not(.active):hover {
  background: #57463a;
  color: var(--vedalia-cream);
}
.portal-sidebar .portal-nav-button.active {
  background: var(--vedalia-orange);
  color: var(--vedalia-button-text);
}
body:has(.portal-panel) .client-download-button,
body:has(.portal-panel) .privacy-button {
  background: var(--vedalia-brown);
  color: var(--vedalia-muted);
  border: 1px solid var(--vedalia-border);
  box-shadow: none;
}
@media (max-width: 600px) {
  .portal-sidebar {
    padding: 70px 14px 10px;
  }
  .portal-sidebar .portal-brand {
    display: none;
  }
  .portal-sidebar .portal-nav-button {
    justify-content: center;
    padding-inline: 6px;
    gap: 7px;
  }
}

.portal-content:has(> #portal-topbar),
.portal-content:has(> #profile-page.active) {
  width: 100%;
  padding: 0 0 40px;
}
#games-view > .portal-section-title {
  margin: 0 34px;
  font-size: 28px;
}
#games-view > p {
  margin: 18px 34px;
}
#games-view > .games-empty {
  text-align: left;
}
#games-view > .games-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 18px 34px 0;
}
#games-view > .games-grid .game-card {
  min-width: 0;
  overflow: hidden;
  padding: 0 0 16px;
  border: 1px solid var(--vedalia-border);
  border-radius: 13px;
  background: var(--vedalia-brown);
  color: var(--vedalia-cream);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}
#games-view > .games-grid .game-card:hover,
#games-view > .games-grid .game-card:focus-visible {
  transform: none;
  border-color: var(--vedalia-orange);
  box-shadow: 0 0 0 1px var(--vedalia-orange);
}
#games-view > .games-grid .game-card-icon {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: fill;
  image-rendering: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#games-view > .games-grid .game-name {
  margin: 15px 17px 7px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 19px;
}
#games-view > .games-grid .game-status {
  margin: 0 17px;
  color: var(--vedalia-muted);
  opacity: 1;
}
#games-view > .games-grid .game-infinite-status {
  margin: 5px 17px 0;
}
#games-view > .games-grid .game-card-loading-name {
  margin: 16px 17px 8px;
}
#games-view > .games-grid .game-card-loading-status {
  margin: 0 17px;
}
@media (max-width: 600px) {
  #games-view > .portal-section-title {
    margin-inline: 20px;
  }
  #games-view > p {
    margin-inline: 20px;
  }
  #games-view > .games-grid {
    grid-template-columns: 1fr;
    margin-inline: 20px;
  }
}

.portal-panel {
  font-size: 16px;
}
.portal-panel button,
.portal-panel input,
.portal-panel select,
.portal-panel textarea,
.account-controls {
  font-family: "Nunito", sans-serif;
}
.portal-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.portal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding: 24px 0 0;
  color: #594a3c;
  font-size: 14px;
}
.portal-footer > span {
  font-weight: 800;
}
.portal-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.portal-footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  color: #45352c;
  text-decoration: none;
  font-weight: 700;
}
.portal-footer a:hover {
  color: #2e2119;
  text-decoration: underline;
}
.portal-footer svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}
.portal-content:has(> #portal-topbar) > .portal-footer {
  margin-inline: 34px;
  padding-top: 24px;
  border-top: 1px solid #96806b;
}
.portal-content > .tab-panel.active {
  padding-bottom: 32px;
}
body:has(.portal-panel) .client-download-form,
body:has(.portal-panel) .privacy-form {
  display: none;
}
.portal-utility-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}
.playtime-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.account-controls .currency-button,
.account-controls .playtime-button,
.account-controls .settings-menu-button {
  box-shadow: none;
  border-width: 1px;
  border-radius: 12px;
}
.account-controls .currency-button:focus-visible,
.account-controls button:focus-visible,
.portal-panel a:focus-visible,
.portal-panel button:focus-visible {
  outline: 3px solid var(--vedalia-orange);
  outline-offset: 3px;
}
.portal-sidebar .portal-nav-button {
  font-weight: 700;
}
.portal-sidebar {
  border-right-color: #786350;
}
#games-view > .games-grid .game-name {
  font-weight: 800;
}
#games-view > .games-grid .game-status {
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 820px) and (min-width: 601px) {
  :root {
    --portal-sidebar-width: 180px;
  }
}
@media (max-width: 600px) {
  .portal-footer {
    gap: 8px;
  }
  .portal-footer nav {
    gap: 16px;
  }
  .portal-content:has(> #portal-topbar) > .portal-footer {
    margin-inline: 20px;
  }
}

.portal-sidebar {
  display: flex;
  flex-direction: column;
}
.portal-sidebar-actions {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 24px;
}
.portal-sidebar .portal-sidebar-action {
  display: flex;
  align-items: center;
  gap: 11px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 11px;
  background: transparent;
  color: var(--vedalia-cream);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.portal-sidebar-action svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}
.portal-sidebar .portal-sidebar-action:hover {
  background: #57463a;
  color: var(--vedalia-cream);
}
.portal-sidebar .portal-sidebar-action:focus-visible {
  outline: 3px solid var(--vedalia-orange);
  outline-offset: 2px;
}

.floating-profile {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 17px 8px 8px;
  background: var(--vedalia-brown);
  color: var(--vedalia-cream);
  border: 1px solid var(--vedalia-border);
  border-radius: 14px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}
.floating-profile:hover {
  border-color: var(--vedalia-orange);
  background: #57463a;
}
.floating-profile-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .portal-sidebar-actions {
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
    padding-top: 10px;
  }
  .portal-sidebar .portal-sidebar-action {
    justify-content: center;
  }
}
.floating-profile {
  padding: 5px 16px 5px 6px;
  border-radius: 14px;
  background: #45352c;
  border-color: #b5835c;
  color: #f2e4d2;
  box-shadow:
    0 3px 0 #8e7359,
    0 5px 10px #45352c18;
}
.floating-profile:hover {
  background: #574234;
  border-color: #d3a078;
}
body:has(#portal-topbar)
  .account-controls
  :is(.playtime-button, .currency-button, .settings-menu-button) {
  background: #574234 !important;
  border-color: #b5835c !important;
  color: #f2e4d2;
  box-shadow: none;
}
body:has(#portal-topbar)
  .account-controls
  :is(.playtime-button, .currency-button, .settings-menu-button):hover {
  background: #70523d !important;
}
body:has(#portal-topbar) .playtime-menu {
  color: var(--vedalia-cream);
}
#games-view > .games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
  gap: 20px;
  margin-inline: 34px;
}
#games-view > .games-grid .game-name {
  font-size: 17px;
  margin: 13px 14px 5px;
}
#games-view > .games-grid .game-status {
  margin-inline: 14px;
}
.profile-image-frame {
  display: inline-grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background: #715a47;
}
.profile-image-frame > :is(img, svg.currency-icon) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-summary-card > .profile-image-frame {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
}
.profile-image-frame.image-pending > :is(img, svg.currency-icon) {
  opacity: 0;
}
.profile-name-skeleton {
  display: block;
  width: 100px;
  height: 16px;
  border-radius: 8px;
}
.profile-loading-chip {
  min-height: 48px;
  box-sizing: border-box;
}
.image-pending,
.profile-name-skeleton {
  animation: profile-loading-pulse 1.3s ease-in-out infinite;
}
@keyframes profile-loading-pulse {
  0%,
  100% {
    background-color: #715a47;
  }
  50% {
    background-color: #a08265;
  }
}
.portal-brand {
  position: relative;
  min-height: 39px;
}

.portal-sidebar .portal-brand:not(:has(.portal-brand-mark)) {
  font-size: 0;
  color: transparent;
  min-height: 39px;
}
.portal-brand:not(:has(.portal-brand-mark))::before,
.portal-brand:not(:has(.portal-brand-mark))::after {
  content: "";
  position: absolute;
  animation: profile-loading-pulse 1.3s ease-in-out infinite;
}
.portal-brand:not(:has(.portal-brand-mark))::before {
  left: 0;
  width: 39px;
  height: 39px;
  border-radius: 14px;
}
.portal-brand:not(:has(.portal-brand-mark))::after {
  left: 49px;
  width: 82px;
  height: 19px;
  border-radius: 8px;
}
.portal-sidebar .portal-nav-button:not(:has(svg))::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 5px;
  background: currentColor;
  opacity: 0.22;
}
.portal-brand.brand-pending > * {
  visibility: hidden;
}
.portal-brand.brand-pending::before,
.portal-brand.brand-pending::after {
  content: "";
  position: absolute;
  animation: profile-loading-pulse 1.3s ease-in-out infinite;
}
.portal-brand.brand-pending::before {
  left: 0;
  width: 39px;
  height: 39px;
  border-radius: 14px;
}
.portal-brand.brand-pending::after {
  left: 49px;
  width: 82px;
  height: 19px;
  border-radius: 8px;
}
@media (max-width: 1200px) {
  #games-view > .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 950px) {
  #games-view > .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .floating-profile-name {
    max-width: 110px;
  }
}
@media (max-width: 600px) {
  #games-view > .games-grid {
    margin-inline: 20px;
    gap: 14px;
  }
  .profile-summary-card > .profile-image-frame {
    width: 64px;
    height: 64px;
  }
}
@media (max-width: 420px) {
  #games-view > .games-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1001px) {
  #games-view > .games-grid,
  #games-view > .portal-section-title,
  #games-view > .games-empty {
    margin-inline: max(28px, calc((100% - 1500px) / 2));
  }
}
@media (prefers-reduced-motion: reduce) {
  .image-pending,
  .profile-name-skeleton,
  .portal-brand.brand-pending::before,
  .portal-brand.brand-pending::after {
    animation: none;
    background-color: #715a47;
  }
}

.portal-panel :is(button:not(:disabled), a),
.account-controls :is(button:not(:disabled), a) {
  transition:
    translate 180ms var(--vedalia-spring),
    scale 150ms var(--vedalia-spring),
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease;
}
.portal-panel :is(button:not(:disabled), a):active,
.account-controls :is(button:not(:disabled), a):active {
  scale: 0.97;
  translate: 0 2px;
}
.portal-nav-button svg,
.portal-sidebar-action svg,
.portal-brand-mark,
.floating-profile .profile-image-frame,
.account-controls .portal-utility-icon,
.currency-button :is(img, svg.currency-icon) {
  transition: transform 260ms var(--vedalia-spring);
}
#games-view > .games-grid .game-card {
  transition:
    translate 220ms var(--vedalia-spring),
    scale 140ms ease,
    box-shadow 220ms ease,
    border-color 160ms ease;
}
#games-view > .games-grid .game-card-icon {
  transition: transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transform-origin: center;
}
#games-view > .games-grid .game-card:active {
  translate: 0 1px;
  scale: 0.98;
  box-shadow: 0 1px 0 #45352c40;
}
.floating-profile:active {
  translate: 0 3px;
  scale: 0.99;
  box-shadow: 0 0 0 #8e7359;
}
.portal-sidebar :is(.portal-nav-button, .portal-sidebar-action):active {
  translate: 1px 1px;
  scale: 0.96;
}
.portal-panel :is(input, select, textarea) {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}
.portal-panel :is(input, select, textarea):focus-visible {
  box-shadow: 0 0 0 3px #d3a07855;
}
@media (hover: hover) and (pointer: fine) {
  .portal-panel :is(button:not(:disabled), a):hover,
  .account-controls :is(button:not(:disabled), a):hover {
    translate: 0 -2px;
  }
  .portal-sidebar :is(.portal-nav-button, .portal-sidebar-action):hover {
    translate: 3px 0;
  }

  .floating-profile:hover {
    translate: 0 -2px;
    box-shadow:
      0 5px 0 #8e7359,
      0 8px 14px #45352c20;
  }

  #games-view > .games-grid .game-card:not(.game-card-skeleton):hover {
    translate: 0 -5px;
    box-shadow:
      0 5px 0 #a88a6b,
      0 10px 18px #45352c22;
    border-color: #d3a078;
  }

  .portal-panel :is(button:not(:disabled), a):active,
  .account-controls :is(button:not(:disabled), a):active {
    translate: 0 2px;
    scale: 0.97;
  }
  #games-view > .games-grid .game-card:active {
    translate: 0 1px;
    scale: 0.98;
    box-shadow: 0 1px 0 #a88a6b;
  }
  .floating-profile:active {
    translate: 0 3px;
    scale: 0.99;
    box-shadow: none;
  }
}
#games-view > .games-grid .game-card:focus-visible {
  box-shadow: 0 0 0 3px #d3a078;
}

body:has(#portal-topbar) .account-controls {
  top: 10px;
  right: 8px;
}
body:has(#portal-topbar) .account-controls.with-scrollbar {
  right: 22px;
}
body:has(#portal-topbar)
  .account-controls
  :is(.playtime-button, .currency-button, .settings-menu-button) {
  height: 48px;
  border-radius: 14px;
  font-weight: 800;
  background: #45352c !important;
  border-color: #b5835c !important;
  color: #f2e4d2;
  box-shadow:
    0 3px 0 #8e7359,
    0 5px 10px #45352c18;
  transform: none;
}
body:has(#portal-topbar) .settings-menu-button {
  width: 48px;
}
body:has(#portal-topbar)
  .account-controls
  :is(.playtime-button, .currency-button, .settings-menu-button):active {
  translate: 0 3px;
  scale: 0.99;
  transform: none;
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  body:has(#portal-topbar)
    .account-controls
    :is(.playtime-button, .currency-button, .settings-menu-button):hover {
    background: #574234 !important;
    border-color: #d3a078 !important;
    translate: 0 -2px;
    transform: none;
    box-shadow:
      0 5px 0 #8e7359,
      0 8px 14px #45352c20;
  }
  body:has(#portal-topbar)
    .account-controls
    :is(.playtime-button, .currency-button, .settings-menu-button):active {
    translate: 0 3px;
    scale: 0.99;
    transform: none;
    box-shadow: none;
  }
}
#games-view > .games-grid .game-thumbnail {
  display: block;
  overflow: hidden;
  margin: 6px 6px 0;
  border: 2px solid var(--vedalia-brown);
  border-radius: 9px;
  background: var(--vedalia-brown);
}
#games-view > .games-grid .game-thumbnail .game-card-icon {
  display: block;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .portal-panel *,
  .portal-panel *::before,
  .portal-panel *::after,
  .account-controls *,
  .account-controls *::before,
  .account-controls *::after {
    transition: none !important;
    animation: none !important;
    translate: none !important;
    scale: none !important;
  }
  .portal-panel
    :is(a, button)
    :is(
      svg,
      :is(img, svg.currency-icon),
      .portal-brand-mark,
      .profile-image-frame
    ),
  .account-controls :is(svg, img) {
    transform: none !important;
  }
}

body
  :is(
    .floating-profile,
    .playtime-button,
    .currency-button,
    .settings-menu-button
  ) {
  background: #45352c !important;
  border: 1px solid #b5835c !important;
  color: #f2e4d2 !important;
  border-radius: 14px !important;
  box-shadow:
    0 3px 0 #8e7359,
    0 5px 10px #45352c18 !important;
  transform: none !important;
  transition:
    translate 180ms var(--vedalia-spring),
    scale 150ms var(--vedalia-spring),
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease !important;
}
body
  :is(
    .floating-profile,
    .playtime-button,
    .currency-button,
    .settings-menu-button
  )::after {
  content: none !important;
}
body
  :is(
    .portal-nav-button,
    .portal-sidebar-action,
    .portal-brand,
    .floating-profile,
    .account-controls
  )
  :is(
    svg,
    :is(img, svg.currency-icon),
    .portal-brand-mark,
    .profile-image-frame
  ) {
  transform: none !important;
  translate: none !important;
  scale: none !important;
  transition: none !important;
}
body
  :is(
    .portal-nav-button,
    .portal-sidebar-action,
    .portal-brand,
    .floating-profile,
    .account-controls
  )
  svg,
body .currency-button :is(img, svg.currency-icon),
body .portal-brand-mark {
  animation: none !important;
}
@media (hover: hover) and (pointer: fine) {
  body
    :is(
      .floating-profile,
      .playtime-button,
      .currency-button,
      .settings-menu-button
    ):hover {
    background: #574234 !important;
    border-color: #d3a078 !important;
    translate: 0 -2px !important;
    scale: 1 !important;
    box-shadow:
      0 5px 0 #8e7359,
      0 8px 14px #45352c20 !important;
  }
}
body
  :is(
    .floating-profile,
    .playtime-button,
    .currency-button,
    .settings-menu-button
  ):active {
  translate: 0 3px !important;
  scale: 0.99 !important;
  box-shadow: none !important;
}
body .account-menu,
body .playtime-menu {
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #b5835c;
  border-radius: 16px;
  background: #45352c;
  color: #f2e4d2;
  box-shadow:
    0 6px 0 #8e735940,
    0 12px 28px #2e211933;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  top: calc(100% + 14px);
}
body .account-menu {
  width: 220px;
  gap: 5px;
}
body .account-menu .button {
  box-sizing: border-box;
  padding: 11px 13px;
  min-height: 42px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #efe2ce !important;
  box-shadow: none !important;
}
body .account-menu .button::after {
  content: none !important;
}
body .account-menu .button:hover {
  background: #614b3b !important;
  border-color: #967657 !important;
  transform: none !important;
  translate: none;
  box-shadow: none !important;
}
body .account-menu #logout-button {
  color: #e9b6a0 !important;
}
body .playtime-menu {
  width: 260px;
  padding: 17px;
  text-align: left;
  left: auto;
  right: 0;
  transform: none;
}
body .playtime-menu #playtime-remaining {
  font-weight: 800;
  font-size: 15px;
}
body .playtime-menu #playtime-restock {
  color: #d0bda7;
  font-size: 13px;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.playtime-progress {
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 13px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  accent-color: #d3a078;
  background: #6b5543;
}
.playtime-progress[hidden] {
  display: none;
}
.playtime-progress::-webkit-progress-bar {
  background: #6b5543;
  border-radius: 8px;
}
.playtime-progress::-webkit-progress-value {
  background: #d3a078;
  border-radius: 8px;
}
.playtime-progress::-moz-progress-bar {
  background: #d3a078;
  border-radius: 8px;
}
#playtime-balance {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 600px) {
  body .playtime-menu {
    left: 0;
    right: auto;
    width: min(260px, calc(100vw - 32px));
  }
}
@media (prefers-reduced-motion: reduce) {
  body
    :is(
      .floating-profile,
      .playtime-button,
      .currency-button,
      .settings-menu-button
    ) {
    translate: none !important;
    scale: none !important;
    transition: none !important;
  }
}

#games-view > .games-grid .game-card:not(.game-card-skeleton):hover,
#games-view > .games-grid .game-card:active {
  border-color: var(--vedalia-border);
  box-shadow: none;
}
#profile-page .profile-summary-card,
#profile-page .profile-avatar-tile,
#store-page .yarn-package-card,
#games-view > .games-grid .game-card:not(.game-card-skeleton) {
  position: relative;
  box-shadow:
    0 3px 0 #35281f55,
    0 8px 18px #45352c28;
}
#profile-page .profile-avatar-tile.clickable:hover,
#games-view > .games-grid .game-card:not(.game-card-skeleton):hover {
  box-shadow:
    0 4px 0 #35281f55,
    0 12px 24px #45352c38;
}
#profile-page .profile-avatar-tile.clickable:active,
#games-view > .games-grid .game-card:not(.game-card-skeleton):active {
  box-shadow:
    0 1px 0 #35281f55,
    0 3px 8px #45352c28;
}
#games-view
  > .games-grid
  .game-card:not(.game-card-skeleton)
  :is(.game-name, .game-status, .game-infinite-status) {
  padding-right: 48px;
}
#games-view > .games-grid .game-status {
  position: relative;
}
.game-detail-infinite-status {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 21px;
}
.game-detail-infinite-status > .game-unlimited-status {
  box-sizing: border-box;
  width: fit-content;
  height: auto;
  min-height: 29px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #45352c;
  vertical-align: top;
}
.game-unlimited-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 21px;
  line-height: 21px;
  vertical-align: top;
  font-size: 14px;
  color: #ffbf69;
  text-transform: none;
  white-space: nowrap;
}
.game-unlimited-status > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.game-unlimited-status > span,
#playtime-button.infinite #playtime-balance {
  background: repeating-linear-gradient(
    90deg,
    #ff9d55 0,
    #ffe58a 65px,
    #ff927a 130px,
    #ff9d55 200px
  );
  background-size: 200px 100%;
  background-repeat: repeat-x;
  font-weight: 800;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .game-unlimited-status > span {
    animation: playtime-rainbow 3s linear infinite;
  }
  .game-unlimited-status > svg,
  #playtime-button.infinite .portal-utility-icon,
  #playtime-button.infinite .portal-utility-icon use {
    animation: unlimited-icon-colors 3s linear infinite;
  }
}
#playtime-button.infinite .portal-utility-icon {
  color: #ff9d55;
}
@media (prefers-reduced-motion: reduce) {
  #playtime-button.infinite #playtime-balance {
    animation: none;
  }
}
@keyframes unlimited-icon-colors {
  0%,
  100% {
    color: #ff9d55;
  }
  35% {
    color: #ff927a;
  }
  67.5% {
    color: #ffe58a;
  }
}
.game-card-open {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
body .account-menu {
  border-color: transparent;
}
body .account-controls .account-menu .button,
body .account-controls .account-menu .button:not(:disabled):hover,
body .account-controls .account-menu .button:not(:disabled):active {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  transition: color 120ms ease !important;
}
body .account-controls .account-menu .button:not(:disabled):hover {
  color: #d3a078 !important;
}
body .account-controls .account-menu .button:not(:disabled):active {
  color: #f2e4d2 !important;
}
body .account-menu .button::before,
body .account-menu .button::after {
  content: none !important;
}
body .playtime-menu .playtime-title {
  margin: 0;
  color: #f2e4d2;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}
body .playtime-menu #playtime-remaining {
  margin: 6px 0 0;
  color: #d0bda7;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
body .playtime-menu .playtime-progress {
  margin-top: 12px;
}
body .playtime-menu #playtime-restock {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #f2e4d2;
  line-height: 1.4;
}
body .account-controls .account-menu .button:not(:disabled) {
  transition:
    background-color 140ms ease,
    color 140ms ease !important;
}
body .account-controls .account-menu .button:not(:disabled):hover,
body .account-controls .account-menu .button:not(:disabled):focus-visible {
  background: #5b4638 !important;
  color: #f2e4d2 !important;
}
body .account-controls .account-menu #logout-button:hover,
body .account-controls .account-menu #logout-button:focus-visible {
  background: #684637 !important;
  color: #ffd5be !important;
}
body .account-controls .account-menu .button:not(:disabled):active {
  background: #70513c !important;
}
.game-page-content {
  padding: 0 34px 40px;
}
.game-page-content .game-detail-back {
  position: static;
  height: auto;
  margin: 0 0 24px;
  font-size: 16px;
}
.game-page-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.05fr);
  gap: 40px;
  align-items: start;
}
.game-page-content .game-page-columns {
  max-width: 1400px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
}
.game-page-information,
.game-page-shop {
  min-width: 0;
}
.game-page-content .game-detail-hero {
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  margin: 0 0 24px;
}
.game-page-content .game-detail-icon {
  width: 160px;
  height: 160px;
  border: 4px solid #45352c;
  box-sizing: border-box;
  border-radius: 18px;
  box-shadow: none;
}
.game-page-content .game-detail-copy {
  min-height: 160px;
}
.game-page-content .game-detail-copy h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 3px 0 8px;
}
#games-view .game-page-content .play-game-button {
  width: max-content;
  min-width: 110px;
  padding: 9px 20px;
  margin-top: auto;
  font-size: 16px;
}
.game-page-content .game-page-about {
  margin-top: 28px;
  border-top: 1px solid #a58d72;
  padding-top: 20px;
}
.game-page-content .game-page-description {
  margin: 18px 0 0;
  color: #594a3c;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  overflow: hidden;
}
.game-page-content .game-page-shop > h2 {
  margin: 0 0 16px;
  font-size: 24px;
}
.game-page-content :is(.game-detail-copy h1, .game-page-shop > h2) {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 3px;
}
.game-page-content .game-shop-tabs,
.game-page-content .game-info-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.game-page-content .game-shop-tabs {
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #a58d72;
  padding: 0 0 12px;
  border-radius: 0;
}
#games-view .game-page-content :is(.game-shop-tabs, .game-info-tabs) button {
  width: auto;
  flex: none;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #45352c;
  box-shadow: none;
  font-size: 15px;
}
#games-view .game-page-content .game-info-tabs button {
  flex: none;
}
#games-view
  .game-page-content
  :is(.game-shop-tabs, .game-info-tabs)
  button[aria-selected="true"] {
  background: #45352c;
  color: #f2e4d2;
}
#games-view
  .game-page-content
  :is(.game-shop-tabs, .game-info-tabs)
  button:hover {
  background: #b5a185;
  transform: translateY(-1px);
}
#games-view
  .game-page-content
  :is(.game-shop-tabs, .game-info-tabs)
  button[aria-selected="true"]:hover {
  background: #574234;
}
#games-view
  .game-page-content
  :is(.game-shop-tabs, .game-info-tabs)
  button:active {
  transform: translateY(1px);
}
.game-page-content [role="tabpanel"][hidden] {
  display: none;
}
.game-page-content .shop-list {
  width: 100%;
  gap: 10px;
}
.game-page-content .compact-shop-product {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid #806953;
  border-radius: 13px;
  background: #45352c;
  color: #f2e4d2;
  box-shadow: none;
}
.game-page-content .compact-shop-product::after,
#games-view .game-page-content button::after {
  display: none;
}
.game-page-content .compact-shop-product:hover,
.game-page-content .compact-shop-product.is-selected {
  background: #574234;
  box-shadow: none;
  transform: translateY(-2px);
}
.game-page-content .compact-shop-product:active {
  transform: translateY(1px);
}
.game-page-content .compact-shop-product:focus-visible,
#games-view .game-page-content button:focus-visible {
  outline: 2px solid #d3a078;
  outline-offset: 3px;
}
.game-page-content .shop-product-icon {
  width: 52px;
  height: 52px;
  margin: -5px;
  border-radius: 9px;
}
.game-page-content .shop-product h3 {
  color: #f2e4d2;
  font-size: 16px;
  line-height: 1.35;
}
.game-page-content .shop-product-copy {
  gap: 5px;
}
.game-page-content .compact-product-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #d0bda7;
  font-size: 14px;
}
.game-page-content .subscription-expiry {
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.4;
  white-space: nowrap;
}
.game-page-content .shop-price {
  font-size: 14px;
  white-space: nowrap;
}
.game-page-content .shop-product-action {
  grid-column: auto;
  width: auto;
}
#games-view .game-page-content .shop-buy-button {
  width: auto;
  min-width: 64px;
  padding: 7px 13px;
  font-size: 14px;
  border-radius: 9px;
  margin: 0;
}
.game-page-content .game-shop-empty,
.game-page-content .game-screenshots-empty {
  color: #594a3c;
  padding: 20px 0;
  font-size: 16px;
}
@media (min-width: 1500px) {
  .game-page-columns {
    gap: 56px;
  }
}
@media (max-width: 1150px) {
  .game-page-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 600px) {
  .game-page-content {
    padding-inline: 20px;
  }
  .game-page-content .game-detail-hero {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
  }
  .game-page-content .game-detail-icon {
    width: 110px;
    height: 110px;
  }
  .game-page-content .game-detail-copy {
    min-height: 110px;
  }
  .game-page-content .game-detail-copy h1 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .game-page-content .compact-shop-product,
  #games-view .game-page-content button {
    transition: none;
    transform: none !important;
  }
}

.game-page-content .game-access-section {
  width: min(100%, 430px);
}
.game-page-content .game-access-section .compact-shop-product {
  background: #d0bfa6;
  color: #332b25;
  border-color: #a58d72;
}
.game-page-content .game-access-section .compact-shop-product:hover,
.game-page-content .game-access-section .compact-shop-product.is-selected {
  background: #d8c7ae;
}
.game-page-content .game-access-section .shop-product h3 {
  color: #332b25;
}
.game-page-content .game-access-section .compact-product-meta {
  color: #594a3c;
}
#profile-page :is(.profile-change-username, .profile-link-account),
#games-view .game-page-content :is(.play-game-button, .shop-buy-button) {
  background: #d3a078;
  color: #2e2119;
  border: 0;
  box-shadow: 0 2px 0 #98724f;
}
#profile-page
  :is(.profile-change-username, .profile-link-account):not(:disabled):hover,
#games-view
  .game-page-content
  :is(.play-game-button, .shop-buy-button):not(:disabled):hover {
  background: #ddb18b;
  color: #2e2119;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #98724f;
}
#profile-page
  :is(.profile-change-username, .profile-link-account):not(:disabled):active,
#games-view
  .game-page-content
  :is(.play-game-button, .shop-buy-button):not(:disabled):active {
  background: #d3a078;
  transform: translateY(1px);
  box-shadow: none;
}
#games-view
  .game-page-content
  :is(.play-game-button, .shop-buy-button):disabled,
#games-view
  .game-page-content
  :is(.play-game-button, .shop-buy-button):disabled:hover {
  background: #705b48;
  color: #e0cbb3;
  opacity: 1;
  box-shadow: none;
  transform: none;
  cursor: default;
}
#games-view
  .game-page-content
  :is(.game-shop-tabs, .game-info-tabs)
  button:active {
  box-shadow: none;
}
#games-view .game-page-content .game-description-more {
  background: transparent;
  color: #45352c;
  box-shadow: none;
  border: 0;
  padding: 0;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.game-page-content {
  font-family: inherit;
}

#games-view > .portal-section-title,
#profile-page .avatar-page-heading h1,
#games-view .game-page-content .game-detail-copy > h1,
#games-view .game-page-content .game-page-shop > h2 {
  font-family: inherit;
  font-size: 28px;
  font-weight: 800;
  line-height: 35px;
}
#profile-page .profile-summary-copy h2,
#profile-page .avatar-section-heading h2,
#games-view
  .game-page-content
  :is(.game-page-about, .game-page-screenshots)
  > h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}
#games-view > .games-grid .game-name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}
#profile-page
  :is(
    .profile-summary-copy p,
    .avatar-section-heading p,
    .profile-avatar-note
  ) {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
#profile-page .profile-avatar-handle {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
#profile-page
  :is(
    .profile-change-username,
    .profile-link-account,
    .profile-select-avatar,
    .unlink-roblox-button
  ) {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}
.game-page-content .game-detail-copy {
  justify-content: flex-start;
}
.game-page-content .game-launch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  flex-wrap: wrap;
}
#games-view .game-page-content .game-launch-row .play-game-button {
  margin: 0;
  min-height: 48px;
  min-width: 112px;
  font-size: 16px;
  padding: 12px 18px;
  border-radius: 12px;
}
.game-page-content .game-launch-row .game-access-section {
  flex: 1 1 230px;
  width: auto;
  max-width: 320px;
  min-width: 0;
}
#games-view .game-page-content .game-access-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 9px 12px;
  text-align: left;
  background: #d0bfa6;
  color: #332b25;
  border: 1px solid #a58d72;
  border-radius: 12px;
  box-shadow: none;
}
#games-view .game-page-content .game-access-control:hover {
  background: #d8c7ae;
  border-color: #967d62;
  box-shadow: none;
  transform: translateY(-2px);
}
#games-view .game-page-content .game-access-control:active {
  transform: translateY(1px);
  box-shadow: none;
}
.game-access-control strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}
.game-access-control small {
  display: block;
  font-size: 14px;
  color: #594a3c;
  font-weight: 600;
  margin-top: 3px;
}
.game-access-state {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  color: #594a3c;
}
#games-view .game-page-content .shop-buy-button {
  min-width: 92px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 16px;
  border-radius: 12px;
}
#games-view .game-page-content .game-shop-tabs button {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 800;
}
.game-page-content .shop-product h3 {
  font-size: 17px;
  font-weight: 800;
}
.game-page-content .game-page-about h2,
.game-page-content .game-page-screenshots h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 14px;
}
.game-page-content .game-page-screenshots {
  margin-top: 28px;
}
.game-page-content .game-screenshots-empty {
  margin: 0;
  padding: 0;
}
#games-view .game-page-content .game-description-more {
  font-size: 16px;
  margin-top: 10px;
}
@media (max-width: 1250px) {
  .game-page-content .game-detail-hero {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
  }
  .game-page-content .game-detail-icon {
    width: 140px;
    height: 140px;
  }
  .game-page-content .game-launch-row {
    margin-left: -158px;
    margin-top: 24px;
  }
}
@media (max-width: 1000px) {
  .game-page-content .game-page-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .game-page-content :is(.game-detail-copy h1, .game-page-shop > h2) {
    font-size: 24px;
  }
}

.game-page-content {
  box-sizing: border-box;
  max-width: 1268px;
  margin-inline: auto;
}
.game-page-content .game-detail-hero {
  --detail-icon-size: 160px;
  --detail-hero-gap: 24px;
  --detail-play-width: 140px;
  grid-template-columns: var(--detail-icon-size) minmax(0, 1fr);
  column-gap: var(--detail-hero-gap);
  row-gap: 20px;
  align-items: stretch;
}
.game-page-content .game-detail-icon {
  width: var(--detail-icon-size);
  height: var(--detail-icon-size);
  align-self: end;
}
.game-page-content .game-detail-copy {
  min-height: var(--detail-icon-size);
}
#games-view .game-page-content .game-detail-copy > .play-game-button {
  box-sizing: border-box;
  width: var(--detail-play-width);
  min-width: 0;
  min-height: 48px;
  margin: auto 0 0;
  padding: 12px 14px;
  border-radius: 12px;
}
.game-page-content .game-detail-hero > .game-access-section {
  grid-column: 1 / -1;
  width: calc(
    var(--detail-icon-size) + var(--detail-hero-gap) + var(--detail-play-width)
  );
  max-width: 100%;
  margin: 0;
}
.game-page-content .game-detail-back {
  font-size: 18px;
  gap: 12px;
  min-height: 32px;
}
.game-page-content .game-detail-back-icon {
  width: 11px;
  height: 11px;
  border-width: 2.5px;
  margin-left: 3px;
}
#games-view .game-page-content .game-shop-tabs button {
  border: 1px solid transparent;
}
#games-view .game-page-content .game-shop-tabs button[aria-selected="false"] {
  background: #cdbca2;
  border-color: #a58d72;
  color: #45352c;
}
#games-view
  .game-page-content
  .game-shop-tabs
  button[aria-selected="false"]:hover {
  background: #d8c7ae;
  border-color: #8f755e;
}
#games-view .game-page-content .game-detail-copy > .play-game-button:disabled,
#games-view
  .game-page-content
  .game-detail-copy
  > .play-game-button:disabled:hover {
  background: #c49a77;
  color: #493323;
  border: 1px solid #ac7c56;
  box-shadow: none;
  opacity: 1;
  transform: none;
}
@media (max-width: 1250px) {
  .game-page-content .game-detail-hero {
    --detail-icon-size: 140px;
    --detail-hero-gap: 18px;
  }
}
@media (max-width: 600px) {
  .game-page-content .game-detail-hero {
    --detail-icon-size: 110px;
    --detail-hero-gap: 16px;
    --detail-play-width: 130px;
  }
}

.game-page-content .game-detail-hero {
  --detail-play-width: 150px;
  --detail-access-width: calc(
    var(--detail-icon-size) + var(--detail-hero-gap) + var(--detail-play-width)
  );
}
.game-page-content .game-detail-hero > .game-access-section {
  width: var(--detail-access-width);
}
.game-access-card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  min-height: 74px;
  background: var(--access-background, #d0bfa6);
  color: var(--access-foreground, #332b25);
  border: 1px solid var(--access-border, #a58d72);
  border-radius: var(--access-radius, 12px);
}
.game-access-copy strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}
.game-access-copy > .shop-price {
  margin-top: 5px;
  color: var(--access-price, #594a3c);
}
.game-access-copy small {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: #594a3c;
  white-space: nowrap;
}
.game-access-card .shop-buy-button {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .game-page-content .game-detail-hero {
    --detail-access-width: 100%;
    --detail-play-width: 130px;
  }
  .game-access-card {
    flex-wrap: wrap;
  }
  .game-access-copy small {
    white-space: normal;
  }
}
.game-page-content .game-page-shop {
  align-self: start;
}
.game-page-content .game-detail-hero {
  margin-bottom: 0;
}
.game-page-content .game-page-about {
  margin-top: 35px;
}
.game-page-content .game-page-shop {
  margin-top: 0;
  padding-top: 0;
}
.game-page-content .game-detail-copy {
  margin-top: 0;
  padding-top: 0;
  align-self: start;
}
#games-view .game-page-content .game-page-shop > h2,
#games-view .game-page-content .game-detail-copy > h1 {
  margin-top: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 35px;
}
#games-view .game-page-content .game-access-control:disabled,
#games-view .game-page-content .game-access-control:disabled:hover {
  background: #d0bfa6;
  color: #332b25;
  border-color: #a58d72;
  opacity: 1;
  transform: none;
  box-shadow: none;
  cursor: default;
}
#games-view .game-page-content .game-detail-copy > .play-game-button:disabled,
#games-view
  .game-page-content
  .game-detail-copy
  > .play-game-button:disabled:hover {
  background: #705b48;
  color: #e0cbb3;
  border: 0;
  box-shadow: none;
  opacity: 1;
  transform: none;
  cursor: default;
}
.game-page-content .game-detail-back {
  margin-bottom: 16px;
  min-height: 28px;
  gap: 9px;
}
.game-page-content .compact-product-meta {
  align-items: baseline;
  gap: 0;
}
.game-page-content .shop-price,
.game-page-content .subscription-expiry {
  line-height: 1.4;
}
.game-page-content .subscription-expiry {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.game-page-content .subscription-divider {
  position: relative;
  top: -1px;
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 9px;
  background: #f2e4d2;
  border-radius: 50%;
  align-self: center;
  flex: none;
}
#games-view > .games-grid .game-card {
  transition:
    background-color 130ms ease-out,
    transform 105ms cubic-bezier(0.2, 0.8, 0.2, 1),
    translate 105ms cubic-bezier(0.2, 0.8, 0.2, 1),
    scale 105ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 130ms ease-out,
    border-color 130ms ease-out;
}
#games-view > .games-grid .game-card .game-thumbnail {
  transition:
    background-color 130ms ease-out,
    border-color 130ms ease-out;
}
#games-view > .games-grid .game-card:not(.game-card-skeleton):active,
#games-view
  > .games-grid
  .game-card:not(.game-card-skeleton):active
  .game-thumbnail {
  transition-duration: 55ms;
}
@media (prefers-reduced-motion: no-preference) {
  #profile-page .profile-avatar-tile.clickable:hover,
  #games-view > .games-grid .game-card:not(.game-card-skeleton):hover {
    translate: none;
    scale: none;
    transform: translateY(-3px);
  }
  #profile-page .profile-avatar-tile.clickable:active,
  #games-view > .games-grid .game-card:not(.game-card-skeleton):active {
    translate: none;
    scale: none;
    transform: translateY(1px);
    box-shadow:
      0 1px 0 #35281f55,
      0 2px 5px #45352c28;
  }
}
#games-view > .games-grid .game-card:not(.game-card-skeleton):hover,
#games-view > .games-grid .game-card:not(.game-card-skeleton):focus-visible {
  background-color: #574234;
}
#games-view
  > .games-grid
  .game-card:not(.game-card-skeleton):hover
  .game-thumbnail,
#games-view
  > .games-grid
  .game-card:not(.game-card-skeleton):focus-visible
  .game-thumbnail {
  background-color: #574234;
  border-color: #574234;
}

.game-access-card[data-product-id] {
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  #games-view .game-page-content .game-shop-tabs button {
    transition:
      background-color 140ms ease-out,
      border-color 140ms ease-out,
      transform 140ms ease-out;
  }
}
@media (prefers-reduced-motion: no-preference) {
  #games-view .game-page-content .game-access-card[data-product-id] {
    transition:
      transform 105ms cubic-bezier(0.2, 0.8, 0.2, 1),
      background-color 130ms ease-out,
      border-color 130ms ease-out,
      box-shadow 130ms ease-out;
  }
  #games-view .game-page-content .game-access-card[data-product-id]:active {
    transition-duration: 55ms;
    transform: translateY(0) scale(0.995);
    border-color: rgba(239, 226, 206, 0.4);
    box-shadow:
      inset 0 2px 6px rgba(0, 0, 0, 0.24),
      0 3px 8px rgba(0, 0, 0, 0.16);
  }
}
.game-access-card[data-product-id]:focus-visible {
  outline: 2px solid var(--access-focus, #967657);
  outline-offset: 3px;
}
.game-page-content .game-page-description {
  -webkit-line-clamp: 5;
}
.game-page-content .game-page-description.is-expanded {
  -webkit-line-clamp: unset;
}

.game-page-content {
  --access-background: #45352c;
  --access-foreground: #f2e4d2;
  --access-border: #806953;
  --access-radius: 13px;
  --access-price: #d0bda7;
  --access-focus: #d3a078;
  --access-hover: #574234;
  --access-hover-border: rgba(239, 226, 206, 0.48);
}
.game-page-content .game-access-card,
.game-page-content .compact-shop-product {
  box-sizing: border-box;
  min-height: 78px;
}
.game-page-content .game-page-about {
  margin-top: 31px;
}
.game-page-content .game-access-card[data-product-id]:hover,
.game-page-content .game-access-card[data-product-id].is-selected {
  background: var(--access-hover, #d8c7ae);
  border-color: var(--access-hover-border, #a58d72);
  box-shadow: none;
  transform: translateY(-2px);
}
.game-page-content .game-access-card[data-product-id]:active {
  background: var(--access-background, #d0bfa6);
}
#games-view .game-page-content .game-detail-copy > .play-game-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 21px;
}
#games-view
  .game-page-content
  .game-detail-copy
  > .play-game-button:not(:disabled) {
  border: 3px solid #45352c;
}
#games-view .game-page-content .game-detail-copy > .play-game-button::before {
  content: none !important;
}
#games-view .game-page-content .game-detail-copy > .play-game-button:disabled {
  margin-bottom: 3px;
  border-width: 1px;
}
.play-action-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  fill: currentColor;
}
.game-page-content .game-detail-copy .game-detail-status {
  font-size: 16px;
  line-height: 1.5;
}
.game-page-content .game-detail-hero > .game-access-section {
  grid-row: 2;
  align-self: start;
}
.game-page-content .game-page-description.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  max-height: none;
}
#games-view
  .game-page-content
  .game-detail-copy
  > .play-game-button:not(:disabled) {
  background: #d3a078;
  border: 1px solid #ab7952;
  color: #2e2119;
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 3px;
  border-radius: 14px;
  box-shadow: 0 3px 0 #98724f;
}
#games-view
  .game-page-content
  .game-detail-copy
  > .play-game-button:not(:disabled)::before {
  content: "▶";
  display: inline-block;
  margin-right: 10px;
  font-size: 14px;
}
#games-view
  .game-page-content
  .game-detail-copy
  > .play-game-button:not(:disabled):hover {
  background: #dfad83;
  box-shadow: 0 5px 0 #98724f;
  transform: translateY(-2px);
}
#games-view
  .game-page-content
  .game-detail-copy
  > .play-game-button:not(:disabled):active {
  transform: translateY(2px);
  box-shadow: none;
}

body .modal-backdrop {
  background: #211a1466;
  backdrop-filter: blur(5px);
}
body .modal {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid #a58d72;
  border-radius: 20px;
  background: #d0bfa6;
  color: #332b25;
  text-align: left;
  backdrop-filter: none;
  box-shadow: 0 18px 65px #211a1440;
  font-family: inherit;
}
body .modal h2 {
  color: #332b25;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
}
body .modal .muted {
  color: #594a3c;
  opacity: 1;
  font-size: 15px;
  line-height: 1.5;
}
body .modal .form {
  gap: 12px;
}
body .modal input {
  box-sizing: border-box;
  min-height: 48px;
  border: 1px solid #a58d72;
  border-radius: 11px;
  background: #e1d2bc;
  color: #332b25;
  font: inherit;
  font-size: 16px;
}
body .modal input::placeholder {
  color: #715d4a;
}
body .auth-card .form input:focus,
body .modal input:focus {
  border-color: #96806b;
  outline: 2px solid #a77a54;
  outline-offset: 2px;
  box-shadow: none;
}
body .modal .password-field input {
  padding-right: 72px;
}
body .modal .modal-actions,
body .modal .product-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 20px;
  margin-top: 18px;
  border-top: 1px solid #ae977d;
}
body
  .modal
  button:not(.password-toggle):not(.product-detail-close):not(
    .copy-icon-button
  ) {
  width: auto;
  min-width: 104px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #b5835c !important;
  border-radius: 11px;
  background: #d3a078 !important;
  color: #2e2119 !important;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 2px 0 #98724f !important;
  transition:
    transform 150ms ease,
    background-color 150ms ease;
}
body .modal button::after {
  content: none !important;
}
body
  .modal
  button:not(:disabled):not(.password-toggle):not(.product-detail-close):hover {
  background: #ddb18b !important;
  transform: translateY(-2px);
}
body
  .modal
  button:not(:disabled):not(.password-toggle):not(
    .product-detail-close
  ):active {
  transform: translateY(1px);
  box-shadow: none !important;
}
body .modal button:disabled {
  background: #705b48 !important;
  color: #e0cbb3 !important;
  border-color: #705b48 !important;
  box-shadow: none !important;
  opacity: 1;
  cursor: default;
}
body .modal button[id^="cancel-"] {
  order: -1;
  background: transparent !important;
  color: #45352c !important;
  border: 1px solid #a58d72 !important;
  box-shadow: none !important;
}
body .modal button[id^="cancel-"]:hover {
  background: #c4af92 !important;
}
body .auth-card button.password-toggle,
body .modal button.password-toggle {
  color: #594a3c !important;
  background: transparent !important;
  border: 0;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 800;
}
body .modal button.password-toggle:hover {
  color: #332b25 !important;
  text-decoration: underline;
}
body .modal button:focus-visible {
  outline: 2px solid #8b674a;
  outline-offset: 3px;
}
body .modal .product-detail-header {
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}
body .modal .product-detail-header h2 {
  margin: 0;
}
body .modal button.product-detail-close {
  font-size: 28px;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px !important;
  height: 34px;
  border-radius: 9px;
  background: #c0ab8f !important;
  color: #45352c !important;
  box-shadow: none !important;
  line-height: 1;
}
body .modal button.product-detail-close:hover {
  background: #b39b7d !important;
}
body .modal .product-detail-body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #332b25;
  align-items: center;
}
body .modal .product-detail-icon {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
}
body .modal .product-detail-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: #332b25;
}
body .modal .product-detail-price {
  transform: none;
  color: #45352c;
  font-size: 17px;
}
body .modal .product-detail-body .muted {
  color: #d0bda7;
  font-size: 15px;
}
body .modal .product-description-panel {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #bba387;
  border-radius: 12px;
  background: #ddcdb5;
}
body .modal .product-description-panel h3 {
  margin: 0 0 8px;
  color: #45352c;
  font-size: 16px;
  font-weight: 800;
}
body .modal .product-description-panel .product-detail-description {
  margin: 0;
  color: #3e3229;
  font-size: 16px;
  line-height: 1.65;
}
body .modal .product-detail-balance {
  margin: 20px 0 0;
}
body .modal .product-detail-subscription {
  margin: 10px 0 0;
}
body .auth-card .auth-card-actions > button,
body .modal :is(.modal-actions, .product-detail-actions) > button {
  min-width: 140px;
  min-height: 50px;
  padding: 12px 24px;
  font-size: 17px;
}
body .modal.payment-success-modal .modal-actions > button.payment-success-action {
  width: 100%;
}
body .modal .product-detail-actions > button {
  min-width: 84px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 16px;
  border-radius: 12px;
}
body .modal #product-detail-purchase-button {
  border: 0 !important;
  background: #d3a078 !important;
  color: #2e2119 !important;
  box-shadow: 0 2px 0 #98724f !important;
}
body .modal #product-detail-purchase-button:disabled,
body .modal #product-detail-purchase-button:disabled:hover {
  border: 0 !important;
  background: #705b48 !important;
  color: #e0cbb3 !important;
  box-shadow: none !important;
  transform: none;
}
body .modal .product-detail-icon {
  outline: 3px solid #d5c5ad;
  outline-offset: 0;
}
body .modal #confirm-unlink-account-button {
  background: #8a4437 !important;
  color: #fff0df !important;
  border: 1px solid #793a30 !important;
  box-shadow: 0 2px 0 #683429 !important;
}
body .modal #confirm-unlink-account-button:hover {
  background: #9c5142 !important;
  color: #fff0df !important;
}
body .modal #confirm-unlink-account-button:disabled {
  background: #705b48 !important;
  color: #e0cbb3 !important;
  box-shadow: none !important;
}
body .panel.auth-panel .auth-card .password-field > button.password-toggle,
body .modal button.password-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 10px;
  right: 3px;
  border-radius: 8px;
}
body .modal button.password-toggle:hover {
  background: #cdb89c !important;
}
.password-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
  pointer-events: none;
}
.modal-backdrop
  .modal
  :is(
    #cancel-product-detail-button,
    #product-detail-purchase-button,
    #save-password-button,
    #cancel-change-password-button,
    #purchase-username-button,
    #cancel-change-username-button,
    #cancel-unlink-account-button,
    #confirm-yarn-transfer-button,
    #cancel-yarn-transfer-button
  ) {
  background: #d3a078 !important;
  color: #2e2119 !important;
  border: 1px solid #b5835c !important;
  box-shadow: 0 2px 0 #98724f !important;
  transform: none !important;
}
.modal-backdrop
  .modal
  :is(
    #cancel-product-detail-button,
    #product-detail-purchase-button,
    #save-password-button,
    #cancel-change-password-button,
    #purchase-username-button,
    #cancel-change-username-button,
    #cancel-unlink-account-button,
    #confirm-yarn-transfer-button,
    #cancel-yarn-transfer-button
  ):not(:disabled):hover {
  background: #ddb18b !important;
  box-shadow: 0 4px 0 #98724f !important;
  transform: translateY(-2px) !important;
}
.modal-backdrop
  .modal
  :is(
    #cancel-product-detail-button,
    #product-detail-purchase-button,
    #save-password-button,
    #cancel-change-password-button,
    #purchase-username-button,
    #cancel-change-username-button,
    #cancel-unlink-account-button,
    #confirm-yarn-transfer-button,
    #cancel-yarn-transfer-button
  ):not(:disabled):active {
  background: #d3a078 !important;
  box-shadow: none !important;
  transform: translateY(1px) !important;
}
.modal-backdrop
  .modal
  :is(
    #product-detail-purchase-button,
    #save-password-button,
    #purchase-username-button,
    #confirm-yarn-transfer-button
  ):disabled,
.modal-backdrop
  .modal
  :is(
    #product-detail-purchase-button,
    #save-password-button,
    #purchase-username-button,
    #confirm-yarn-transfer-button
  ):disabled:hover,
.modal-backdrop
  .modal
  :is(
    #product-detail-purchase-button,
    #save-password-button,
    #purchase-username-button,
    #confirm-yarn-transfer-button
  ):disabled:active {
  background: #705b48 !important;
  color: #e0cbb3 !important;
  border-color: #705b48 !important;
  box-shadow: none !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  cursor: default;
}
.modal-backdrop .modal .modal-actions > #confirm-unlink-account-button {
  background: #8a4437 !important;
  color: #fff0df !important;
  border: 1px solid #793a30 !important;
  box-shadow: 0 2px 0 #683429 !important;
}
.modal-backdrop
  .modal
  .modal-actions
  > #confirm-unlink-account-button:not(:disabled):hover {
  background: #9c5142 !important;
  color: #fff0df !important;
  box-shadow: 0 4px 0 #683429 !important;
}
.modal-backdrop
  .modal
  .modal-actions
  > #confirm-unlink-account-button:not(:disabled):active {
  box-shadow: 0 2px 0 #683429 !important;
}
.modal-backdrop .modal .password-field > button.password-toggle,
.modal-backdrop .modal .password-field > button.password-toggle:hover,
.modal-backdrop .modal .password-field > button.password-toggle:active {
  top: 50%;
  right: 3px;
  transform: translateY(-50%) !important;
  translate: none !important;
  scale: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.modal-backdrop .modal button.product-detail-close,
.modal-backdrop .modal button.product-detail-close:hover,
.modal-backdrop .modal button.product-detail-close:active {
  transform: none !important;
  translate: none !important;
  scale: none !important;
}
body .account-controls .playtime-menu .playtime-title {
  font-size: 20px;
}
.modal-backdrop .modal.product-detail-modal,
.modal-backdrop .modal.verification-modal,
.modal-backdrop .modal.change-username-modal,
.modal-backdrop .modal.change-password-modal,
.modal-backdrop .modal.link-account-modal,
.modal-backdrop .modal.unlink-account-modal,
.modal-backdrop .modal.payment-success-modal,
.modal-backdrop .modal.yarn-transfer-modal {
  border: 5px solid #45352c;
  border-radius: 20px;
}

body .modal :is(.modal-actions, .product-detail-actions) > button {
  background: #d3a078 !important;
  color: #2e2119 !important;
  border: 1px solid #b5835c !important;
  box-shadow: 0 2px 0 #98724f !important;
  transform: none;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease !important;
}
body .auth-card .auth-card-actions > button:not(:disabled):hover,
body .modal :is(.modal-actions, .product-detail-actions) > button:not(:disabled):hover {
  background: #ddb18b !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #98724f !important;
}
body .auth-card .auth-card-actions > button:not(:disabled):active,
body .modal :is(.modal-actions, .product-detail-actions) > button:not(:disabled):active {
  transform: translateY(1px);
  box-shadow: none !important;
}
body .auth-card .auth-card-actions > button:disabled,
body .auth-card .auth-card-actions > button:disabled:hover,
body .modal :is(.modal-actions, .product-detail-actions) > button:disabled,
body
  .modal
  :is(.modal-actions, .product-detail-actions)
  > button:disabled:hover {
  background: #705b48 !important;
  color: #e0cbb3 !important;
  border-color: #705b48 !important;
  box-shadow: none !important;
  transform: none;
  opacity: 1;
}
body .modal .modal-actions > #confirm-unlink-account-button {
  background: #d3a078 !important;
  color: #692c23 !important;
  border-color: #ad5443 !important;
  box-shadow:
    0 2px 0 #98724f,
    0 0 10px #ad544330 !important;
}
body
  .modal
  .modal-actions
  > #confirm-unlink-account-button:not(:disabled):hover {
  background: #ddb18b !important;
  box-shadow:
    0 4px 0 #98724f,
    0 0 14px #ad544350 !important;
}
body
  .modal
  .modal-actions
  > #confirm-unlink-account-button:not(:disabled):active {
  box-shadow: 0 0 8px #ad544330 !important;
}
body .modal button.password-toggle,
body .modal button.password-toggle:hover,
body .modal button.product-detail-close,
body .modal button.product-detail-close:hover {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
body .modal button.password-toggle:hover {
  color: #9a6235 !important;
}
body .modal button.product-detail-close:hover {
  color: #d3a078 !important;
}
body .auth-card .input-rule.missing,
body .auth-card .username-rule-message,
body .modal .account-modal-body > .username-change-status.invalid,
body .modal .input-rule.missing,
body .modal .username-rule-message {
  color: #b52218;
  font-weight: 700;
}
body .auth-card .input-rule.met,
body .modal .account-modal-body > .username-change-status.available,
body .modal .input-rule.met {
  color: #16742b;
  font-weight: 700;
}
body .account-controls :is(.account-menu, .playtime-menu) {
  box-sizing: border-box;
  width: 260px;
  padding: 17px;
  border: 1px solid #b5835c;
  border-radius: 16px;
  font-size: 16px;
}
body .account-controls .account-menu {
  width: 220px;
  padding: 10px;
  gap: 3px;
}
body .account-controls .account-menu .button {
  padding: 8px 12px;
  font-size: 16px;
  min-height: 38px;
}
body .modal.product-detail-modal {
  width: min(560px, calc(100vw - 32px));
  overflow: hidden;
  padding: 0;
  background: #45352c;
}
body .modal.product-detail-modal .product-detail-header {
  margin: 0;
}
body .modal.product-detail-modal .product-detail-header h2,
body .modal.product-detail-modal .product-detail-close {
  color: #f2e4d2 !important;
}
body .modal.product-detail-modal .product-detail-body,
body .modal.product-detail-modal .product-description-panel {
  margin-inline: 26px;
}
body
  .modal.product-detail-modal
  :is(.product-detail-balance, .product-detail-subscription, .form-error) {
  margin-left: 26px;
  margin-right: 26px;
}

body
  .modal:is(
    .change-username-modal,
    .change-password-modal,
    .link-account-modal,
    .unlink-account-modal,
    .payment-success-modal,
    .yarn-transfer-modal
  ),
body .modal.verification-modal {
  padding: 0;
  background: #45352c;
}
body .modal .account-modal-header,
body .modal.product-detail-modal .product-detail-header,
body .verification-modal .verification-header {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 12px 26px;
  background: #45352c;
}
body .modal .account-modal-header h2,
body .verification-modal .verification-header h2 {
  margin: 0;
  color: #f2e4d2;
}
body .modal:has(> .account-modal-header) > form {
  display: block;
  margin: 0;
  padding: 0;
}
body .modal .account-modal-body {
  display: grid;
  gap: 12px;
  padding: 22px 26px;
  background: #d0bfa6;
}
body .modal .account-modal-body > p {
  margin: 0;
}
body .auth-card .auth-card-body > p:not(.error),
body .modal .account-modal-body > p:not(.error),
body .modal.unlink-account-modal .account-modal-body > .muted,
body .modal.payment-success-modal .account-modal-body > p,
body .modal .product-detail-balance,
body .modal .product-detail-subscription,
body .verification-modal #verification-instructions {
  color: #594a3c;
  opacity: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
body .modal:has(> .account-modal-header) .modal-actions,
body .modal.product-detail-modal .product-detail-actions,
body .verification-modal .modal-actions {
  box-sizing: border-box;
  min-height: 72px;
  align-items: center;
  padding: 12px 26px;
  margin: 0;
  border: 0;
  background: #45352c;
}

body .modal.product-detail-modal .purchase-modal-content {
  background: #d0bfa6;
  padding-block: 22px;
}
body .verification-modal .verification-body {
  background: #d0bfa6;
  padding: 22px 26px;
}
body .verification-modal #verification-instructions {
  margin: 0 0 16px;
}
body .verification-modal .challenge-code-row {
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid #bba387;
  border-radius: 12px;
  background: #ddcdb5;
}
body .verification-modal .challenge-code {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #3e3229;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  text-align: left;
  user-select: all;
}
body .verification-modal #copy-code-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid #b5835c !important;
  border-radius: 11px;
  background: #d3a078 !important;
  color: #2e2119 !important;
  box-shadow: 0 2px 0 #98724f !important;
  transition:
    transform 150ms ease,
    background-color 150ms ease;
}
body .verification-modal #copy-code-button:hover {
  background: #ddb18b !important;
}
body .verification-modal #copy-code-button:active {
  box-shadow: none !important;
}
@media (prefers-reduced-motion: reduce) {
  body .modal :is(.modal-actions, .product-detail-actions) > button {
    transition: none !important;
    transform: none !important;
  }
}
body .modal .form-error:empty {
  display: none;
}
body .auth-card .error,
body .modal .error {
  color: #b52218;
  font-size: 14px;
  font-weight: 700;
}
body .auth-card-body > p { margin: 0; color: #594a3c; }
body .auth-card.maintenance-card .auth-card-body > p { text-align: center; }
body .auth-card .auth-card-body > .error { color: #b52218; }
@media (prefers-reduced-motion: reduce) {
  body .modal button {
    transition: none !important;
    transform: none !important;
  }
}
@keyframes detail-skeleton-pulse {
  0%,
  100% {
    background-color: #a38c72;
  }
  50% {
    background-color: #af997d;
  }
}
.game-page-loading .skeleton-block {
  background: #a38c72;
  animation-name: detail-skeleton-pulse;
}
.game-page-loading .compact-shop-product .skeleton-block {
  background: #655345;
  animation-name: skeleton-pulse;
}
.game-page-loading .game-detail-loading-title {
  width: min(260px, 90%);
  height: 35px;
  margin: 0 0 8px;
}
.game-page-loading .game-detail-loading-status {
  width: 70px;
  height: 20px;
  margin: 0;
}
.game-page-loading .game-detail-loading-button {
  width: var(--detail-play-width);
  height: 48px;
  margin: auto 0 0;
  border-radius: 12px;
}
.game-page-loading .detail-access-title {
  width: 115px;
  height: 23px;
}
.game-page-loading .detail-price-placeholder {
  width: 42px;
  height: 20px;
}
.game-page-loading .game-access-copy .detail-price-placeholder {
  margin-top: 5px;
}
.game-page-loading .detail-buy-placeholder {
  display: block;
  width: 84px;
  height: 44px;
  border-radius: 12px;
}
.game-page-loading .game-access-card .detail-buy-placeholder {
  width: 72px;
}
.game-page-loading .detail-tab-placeholder {
  display: block;
  width: 130px;
  height: 46px;
  border-radius: 8px;
}
.game-page-loading .detail-section-placeholder {
  width: 210px;
  height: 31px;
}
.game-page-loading .detail-description-placeholder {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.game-page-loading .detail-description-placeholder .skeleton-line {
  width: 100%;
  height: 14px;
}
.game-page-loading .detail-description-placeholder .skeleton-line:last-child {
  width: 65%;
}
.game-page-loading .detail-product-title {
  width: min(180px, 85%);
  height: 23px;
}
.game-page-loading .compact-shop-product {
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .game-page-loading .skeleton-block {
    animation: none;
  }
  .game-access-card[data-product-id] {
    transition: none;
    transform: none;
  }
}

body .account-controls .currency-button {
  gap: var(--currency-icon-gap);
}
body .account-controls .currency-inline-pair {
  position: relative;
  left: -1px;
}

body :is(.yarn-package-main, #purchase-username-button) {
  align-items: center;
}
body
  :is(
    .currency-button,
    .shop-price,
    .yarn-package-main,
    #purchase-username-button
  )
  > .currency-icon {
  align-self: center;
}

body :is(.yarn-package-main, #purchase-username-button) > .currency-icon {
  position: relative;
  top: calc(-1 * var(--currency-icon-optical-lift));
}

body :is(.shop-price, .yarn-package-main) > .currency-icon {
  margin-left: calc(var(--currency-icon-size) * -0.09375);
}
.currency-button #currency-balance:not(.currency-balance-skeleton),
.shop-price-value,
#store-page .yarn-package-main > h2,
#purchase-username-button > span {
  display: block;
  line-height: 1;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  font-variant-numeric: lining-nums tabular-nums;
}

body .shop-price,
body .currency-button .currency-inline-pair {
  display: inline-block;
  line-height: 1.4;
  white-space: nowrap;
}
body .shop-price > .shop-price-value,
body .currency-button #currency-balance:not(.currency-balance-skeleton) {
  display: inline;
  height: auto;
  line-height: inherit;
  text-box-trim: none;
}
body .shop-price > .currency-icon,
body .currency-button .currency-inline-pair > .currency-icon {
  display: inline-block;
  position: static;
  top: auto;
  margin-right: var(--currency-icon-gap);
  vertical-align: calc(
    (1cap - var(--currency-icon-size)) / 2 + var(--currency-icon-optical-lift)
  );
}
body .currency-button #currency-balance.currency-balance-skeleton {
  display: inline-block;
}
.game-images-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.game-images-controls {
  display: flex;
  gap: 8px;
}
.panel .game-images-controls button {
  width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 24px;
}
.game-images-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.panel .game-image-tile {
  flex: 0 0 calc((100% - 14px) / 2);
  min-width: 0;
  padding: 0;
  border: 1px solid #806953;
  border-radius: 12px;
  overflow: hidden;
  background: #45352c;
  scroll-snap-align: start;
}
.game-image-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
body .modal.game-image-modal {
  width: min(1000px, calc(100vw - 32px));
  padding: 0;
  border: 5px solid #45352c;
  border-radius: 20px;
  overflow: hidden;
  background: #45352c;
}
.game-image-modal .account-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
body .game-image-modal .account-modal-body {
  padding: 16px;
}
.game-image-modal .account-modal-body img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
}
body .game-image-modal .modal-actions {
  justify-content: center;
}
.portal-sidebar .portal-brand.brand-pending > .portal-brand-mark {
  visibility: visible;
}
.portal-sidebar .portal-brand.brand-pending::before {
  display: none;
}
.portal-sidebar .portal-brand-name {
  font-family: "Nunito", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: normal;
  line-height: 1.2;
}
.portal-sidebar .portal-brand.brand-pending::after {
  left: 50px;
  width: calc(100% - 50px);
}

body .panel button.modal-action-button,
body .modal button.modal-action-button {
  box-sizing: border-box;
  width: auto;
  min-width: 104px;
  height: 44px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #b5835c !important;
  border-radius: 11px;
  background: #d3a078 !important;
  color: #2e2119 !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 2px 0 #98724f !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease !important;
}
body .panel button.modal-action-button::after,
body .modal button.modal-action-button::after { content: none !important; }
body .panel button.modal-action-button:not(:disabled):hover,
body .modal button.modal-action-button:not(:disabled):hover {
  background: #ddb18b !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 0 #98724f !important;
}
body .panel button.modal-action-button:not(:disabled):active,
body .modal button.modal-action-button:not(:disabled):active {
  background: #d3a078 !important;
  transform: translateY(1px) !important;
  box-shadow: none !important;
}
body .panel button.modal-action-button:disabled,
body .modal button.modal-action-button:disabled {
  background: #705b48 !important;
  color: #e0cbb3 !important;
  border-color: #705b48 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1;
  cursor: default;
}
body .auth-card .auth-card-actions > button.modal-action-button { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  body .panel button.modal-action-button,
  body .modal button.modal-action-button { transition: none !important; }
}
