:root {
  color-scheme: light;
  --ink: #151622;
  --muted: #5f657a;
  --paper: #fffaf0;
  --panel: rgba(255, 250, 240, 0.94);
  --line: rgba(21, 22, 34, 0.2);
  --yellow: #ffe44f;
  --orange: #ff7a2f;
  --pink: #ff4f9a;
  --cyan: #28d7ff;
  --green: #45e072;
  --blue: #4666ff;
  --purple: #8f4bff;
  --shadow: 0 8px 0 rgba(21, 22, 34, 0.16), 0 20px 42px rgba(21, 22, 34, 0.18);
  --home-logo-left: 7%;
  --home-logo-top: 5%;
  --home-logo-width: 27.1%;
  --home-tagline-left: 9.5%;
  --home-tagline-top: 45%;
  --home-tagline-width: 22.4%;
  --home-enter-left: 20.8%;
  --home-enter-top: 80%;
  --home-enter-width: 20%;
  --dashboard-logo-left: -6.3%;
  --dashboard-logo-top: 0.6%;
  --dashboard-logo-width: 20%;
  --dashboard-top-controls-left: 67.8%;
  --dashboard-top-controls-top: 0.9%;
  --dashboard-top-controls-width: 31.3%;
  --dashboard-top-controls-hidden-left: 74.05%;
  --dashboard-top-controls-hidden-width: 25.05%;
  --dashboard-game-panel-left: 9.8%;
  --dashboard-game-panel-top: 30.4%;
  --dashboard-game-panel-width: 79.5%;
  --dashboard-game-panel-height: 46%;
  --dashboard-game-tile-width: 21.2%;
  --login-panel-left: 35%;
  --login-panel-top: 7.5%;
  --login-panel-width: 33.2%;
  --login-logo-left: 41.4%;
  --login-logo-top: 5.3%;
  --login-logo-width: 20%;
  --login-email-left: 41.5%;
  --login-email-top: 34%;
  --login-email-width: 20%;
  --login-email-icon-left: 4%;
  --login-email-icon-top: 19.7%;
  --login-email-icon-width: 10.2%;
  --login-email-label-left: 10%;
  --login-email-label-top: 10%;
  --login-email-label-width: 40%;
  --login-password-left: 41.5%;
  --login-password-top: 42%;
  --login-password-width: 20%;
  --login-password-icon-left: 5.5%;
  --login-password-icon-top: 19.7%;
  --login-password-icon-width: 10.2%;
  --login-password-label-left: 14%;
  --login-password-label-top: 25%;
  --login-password-label-width: 30%;
  --login-button-left: 41.5%;
  --login-button-top: 49%;
  --login-button-width: 20%;
  --login-or-left: 39%;
  --login-or-top: 59%;
  --login-or-width: 25%;
  --login-create-left: 41%;
  --login-create-top: 66%;
  --login-create-width: 21.4%;
  --login-forgot-left: 39%;
  --login-forgot-top: 71%;
  --login-forgot-width: 25%;
  --account-panel-left: 32.5%;
  --account-panel-top: 2%;
  --account-panel-width: 35%;
  --account-arc-left: 59%;
  --account-arc-top: 66.5%;
  --account-arc-width: 1.5%;
  --account-first-field-left: 43.4%;
  --account-first-field-top: 28.6%;
  --account-first-field-width: 18%;
  --account-first-placeholder-left: 42.8%;
  --account-first-placeholder-top: 28.4%;
  --account-first-placeholder-width: 13%;
  --account-last-field-left: 43.4%;
  --account-last-field-top: 37.9%;
  --account-last-field-width: 18%;
  --account-last-placeholder-left: 42.8%;
  --account-last-placeholder-top: 37.5%;
  --account-last-placeholder-width: 13%;
  --account-email-field-left: 43.4%;
  --account-email-field-top: 47%;
  --account-email-field-width: 18%;
  --account-email-placeholder-left: 42.4%;
  --account-email-placeholder-top: 46.5%;
  --account-email-placeholder-width: 12%;
  --account-email-confirm-field-left: 43.4%;
  --account-email-confirm-field-top: 55.9%;
  --account-email-confirm-field-width: 18%;
  --account-email-confirm-placeholder-left: 42.5%;
  --account-email-confirm-placeholder-top: 55.5%;
  --account-email-confirm-placeholder-width: 12%;
  --account-password-field-left: 43.4%;
  --account-password-field-top: 64.9%;
  --account-password-field-width: 18%;
  --account-password-placeholder-left: 43%;
  --account-password-placeholder-top: 64.1%;
  --account-password-placeholder-width: 14%;
  --account-password-eye-left: 59%;
  --account-password-eye-top: 66.1%;
  --account-password-eye-width: 1.5%;
  --account-password-confirm-field-left: 43.4%;
  --account-password-confirm-field-top: 74.1%;
  --account-password-confirm-field-width: 18%;
  --account-password-confirm-placeholder-left: 43%;
  --account-password-confirm-placeholder-top: 73.2%;
  --account-password-confirm-placeholder-width: 14%;
  --account-password-confirm-eye-left: 59%;
  --account-password-confirm-eye-top: 75.2%;
  --account-password-confirm-eye-width: 1.5%;
  --account-message-left: 38.4%;
  --account-message-top: 78.9%;
  --account-message-width: 25%;
  --account-submit-left: 45.4%;
  --account-submit-top: 79.6%;
  --account-submit-width: 11%;
  --account-back-left: 41.8%;
  --account-back-top: 82.7%;
  --account-back-width: 18%;
  --forgot-panel-left: 32.8%;
  --forgot-panel-top: 2%;
  --forgot-panel-width: 35%;
  --forgot-email-field-left: 42.6%;
  --forgot-email-field-top: 45.2%;
  --forgot-email-field-width: 19%;
  --forgot-email-placeholder-left: 42%;
  --forgot-email-placeholder-top: 45.2%;
  --forgot-email-placeholder-width: 12.5%;
  --forgot-message-left: 37.8%;
  --forgot-message-top: 39.5%;
  --forgot-message-width: 25%;
  --forgot-submit-left: 38.5%;
  --forgot-submit-top: 52%;
  --forgot-submit-width: 23%;
  --forgot-back-left: 40.8%;
  --forgot-back-top: 64%;
  --forgot-back-width: 18.5%;
  --reset-panel-left: 32.5%;
  --reset-panel-top: 2%;
  --reset-panel-width: 35%;
  --reset-password-field-left: 42.1%;
  --reset-password-field-top: 44.5%;
  --reset-password-field-width: 20.8%;
  --reset-password-placeholder-left: 41.8%;
  --reset-password-placeholder-top: 43.6%;
  --reset-password-placeholder-width: 14.8%;
  --reset-password-eye-left: 60%;
  --reset-password-eye-top: 46%;
  --reset-password-eye-width: 1.5%;
  --reset-password-confirm-field-left: 42.1%;
  --reset-password-confirm-field-top: 56.4%;
  --reset-password-confirm-field-width: 20.8%;
  --reset-password-confirm-placeholder-left: 41.8%;
  --reset-password-confirm-placeholder-top: 55.6%;
  --reset-password-confirm-placeholder-width: 14.8%;
  --reset-password-confirm-eye-left: 60%;
  --reset-password-confirm-eye-top: 57.9%;
  --reset-password-confirm-eye-width: 1.5%;
  --reset-message-left: 36.3%;
  --reset-message-top: 38.7%;
  --reset-message-width: 27%;
  --reset-submit-left: 40%;
  --reset-submit-top: 63%;
  --reset-submit-width: 20%;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 80% 0%, rgba(143, 75, 255, 0.22), transparent 34%),
    radial-gradient(circle at 15% 12%, rgba(255, 228, 79, 0.2), transparent 24%),
    linear-gradient(180deg, #fffdf7 0%, #edfaff 42%, #171827 100%);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.home-page {
  min-height: 100vh;
  overflow: hidden;
}

.home-stage {
  min-height: 100vh;
  padding: 0;
  background: #050712;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(300px, 760px) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  padding: clamp(24px, 5vw, 72px);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 18, 0.42) 0%, rgba(5, 7, 18, 0.2) 42%, rgba(5, 7, 18, 0.06) 100%),
    radial-gradient(circle at 28% 20%, rgba(35, 83, 180, 0.22), transparent 34%),
    url("../assets/brand/homepage-background.png") center / cover no-repeat;
  box-shadow: none;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 4, 12, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(2, 4, 12, 0.1), rgba(2, 4, 12, 0.36));
}

.home-hero::after {
  display: none;
}

.brand-stack {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: max(100vw, calc(100vh * 1.7768));
  height: 100vh;
  min-width: 0;
  margin: 0;
}

.home-logo {
  position: absolute;
  left: var(--home-logo-left);
  top: var(--home-logo-top);
  width: var(--home-logo-width);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.54));
}

.home-logo img {
  width: 100%;
}

.tagline-panel {
  position: absolute;
  left: var(--home-tagline-left);
  top: var(--home-tagline-top);
  display: grid;
  width: var(--home-tagline-width);
  place-items: center;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.42));
}

.tagline-panel img {
  width: 100%;
}

.tagline-panel p {
  position: absolute;
  width: 76%;
  color: #f8fbff;
  font-size: clamp(1rem, 1.72vw, 1.66rem);
  font-weight: 1000;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 0 #111325, 0 0 18px rgba(79, 203, 255, 0.55);
}

.enter-button,
.action-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 1000;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.enter-button:hover,
.action-button:hover,
.small-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.enter-button {
  position: absolute;
  left: var(--home-enter-left);
  top: var(--home-enter-top);
  display: block;
  width: var(--home-enter-width);
  aspect-ratio: 2 / 1;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.42));
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.enter-button:hover {
  transform: translate(-50%, calc(-50% - 2px)) scale(1.02);
}

.enter-button:active {
  transform: translate(-50%, calc(-50% + 2px)) scale(0.99);
}

.enter-state {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 80ms ease;
}

.enter-normal {
  opacity: 1;
}

.enter-button:hover .enter-normal,
.enter-button:active .enter-normal,
.enter-button:active .enter-hover {
  opacity: 0;
}

.enter-button:hover .enter-hover,
.enter-button:active .enter-pressed {
  opacity: 1;
}

.home-page:not(.layout-editor-page) .enter-button {
  clip-path: inset(5% 0 6% 0);
}

.rad-corner-actions {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 6;
  display: grid;
  gap: 8px;
  justify-items: end;
  pointer-events: none;
}

.rad-corner-action {
  display: inline-flex;
  min-width: 10.4rem;
  min-height: 2.45rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(89, 228, 255, 0.56);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(27, 14, 58, 0.92), rgba(5, 8, 24, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(240, 197, 106, 0.18), transparent 70%);
  box-shadow: 0 0 18px rgba(74, 204, 255, 0.2), 0 10px 22px rgba(0, 0, 0, 0.42);
  color: #f8fbff;
  font: 900 0.82rem/1.1 Arial, sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.78);
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 120ms ease, color 120ms ease, filter 120ms ease, transform 120ms ease;
}

.rad-corner-action:hover,
.rad-corner-action:focus-visible {
  border-color: rgba(240, 197, 106, 0.78);
  color: #f0c56a;
  filter: brightness(1.08);
  outline: 0;
  transform: translateY(-1px);
}

.rad-corner-action.is-disabled,
.rad-corner-action:disabled {
  border-color: rgba(126, 145, 186, 0.38);
  color: rgba(216, 225, 255, 0.5);
  cursor: default;
  filter: grayscale(0.3);
  opacity: 0.78;
}

.rad-corner-action.is-disabled:hover,
.rad-corner-action:disabled:hover {
  color: rgba(216, 225, 255, 0.5);
  filter: grayscale(0.3);
  transform: none;
}

.auth-shell,
.document-shell {
  display: grid;
  min-height: 100vh;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: clamp(16px, 4vw, 42px);
}

.auth-shell {
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 79, 154, 0.28), transparent 34%),
    radial-gradient(circle at 10% 10%, rgba(69, 224, 114, 0.2), transparent 28%),
    linear-gradient(180deg, #f8fff5, #eefdff 58%, #151622);
}

.mini-logo {
  display: inline-grid;
  grid-template-columns: 60px auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.mini-logo span {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--cyan), var(--yellow), var(--pink));
  color: #ffffff;
  font-weight: 1000;
  text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink);
  transform: rotate(-4deg);
}

.mini-logo strong {
  font-size: 1.18rem;
}

.auth-panel,
.document-panel {
  display: grid;
  width: min(100%, 480px);
  gap: 18px;
  padding: clamp(18px, 4vw, 30px);
  border: 5px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-panel.wide {
  width: min(100%, 760px);
}

.eyebrow {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-panel h1,
.document-panel h1,
.dashboard-intro h1,
.admin-topbar h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 1000;
  line-height: 0.92;
  letter-spacing: 0;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-form .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: #293044;
  font-weight: 900;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 3px 0 rgba(21, 22, 34, 0.08);
}

.form-message {
  min-height: 22px;
  color: #b42318;
  font-weight: 850;
}

.form-message.success {
  color: #146c3d;
}

.login-page {
  min-height: 100vh;
  overflow: hidden;
  background: #050712;
  color: #f8fbff;
}

.login-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #050712;
}

.login-stage::before,
.login-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-stage::before {
  inset: -24px;
  background: url("../assets/brand/homepage-background.png") center / cover no-repeat;
  filter: blur(7px) brightness(0.42) saturate(0.9);
  transform: scale(1.04);
}

.login-stage::after {
  background:
    radial-gradient(circle at 50% 16%, rgba(149, 60, 255, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(4, 6, 18, 0.18), rgba(4, 6, 18, 0.62));
}

.login-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 200vh;
  height: 100vh;
  transform: translate(-50%, -50%);
}

.login-piece {
  position: absolute;
  z-index: 2;
  display: block;
}

.login-panel-frame,
.login-rad-emblem img,
.login-image-button img,
.login-create-button img,
.login-forgot-button img,
.login-or-divider {
  width: 100%;
}

.login-panel-frame {
  left: var(--login-panel-left);
  top: var(--login-panel-top);
  width: var(--login-panel-width);
  z-index: 1;
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

.login-rad-emblem {
  left: var(--login-logo-left);
  top: var(--login-logo-top);
  width: var(--login-logo-width);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.48));
}

.login-art-form {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.login-field,
.login-image-button,
.login-create-button,
.login-forgot-button {
  pointer-events: auto;
}

.login-field {
  display: block;
  height: auto;
  color: #f8fbff;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
}

.login-email-field {
  left: var(--login-email-left);
  top: var(--login-email-top);
  width: var(--login-email-width);
}

.login-password-field {
  left: var(--login-password-left);
  top: var(--login-password-top);
  width: var(--login-password-width);
}

.field-frame {
  width: 100%;
}

.login-field input {
  position: absolute;
}

.field-art {
  z-index: 1;
  pointer-events: none;
}

.field-art img {
  width: 100%;
}

.email-icon-wrap {
  left: var(--login-email-icon-left);
  top: var(--login-email-icon-top);
  width: var(--login-email-icon-width);
}

.password-icon-wrap {
  left: var(--login-password-icon-left);
  top: var(--login-password-icon-top);
  width: var(--login-password-icon-width);
}

.field-icon-wrap {
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(159, 96, 255, 0.55));
}

.login-field input {
  left: 14%;
  top: 18%;
  z-index: 2;
  width: 78%;
  height: 62%;
  min-height: 0;
  padding: 0 1.2%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #f7fbff;
  font-size: clamp(1rem, 3.4vh, 1.7rem);
  font-weight: 1000;
  line-height: 1;
  outline: 0;
  text-shadow: 0 0 12px rgba(156, 104, 255, 0.5);
}

.login-field input:-webkit-autofill {
  -webkit-text-fill-color: #f7fbff;
  transition: background-color 9999s ease-out;
}

.email-label-wrap {
  left: var(--login-email-label-left);
  top: var(--login-email-label-top);
  width: var(--login-email-label-width);
}

.password-label-wrap {
  left: var(--login-password-label-left);
  top: var(--login-password-label-top);
  width: var(--login-password-label-width);
}

.field-label-wrap {
  opacity: 0.72;
  transition: opacity 120ms ease;
  pointer-events: none;
}

.login-field:focus-within .field-label-wrap,
.login-field input:not(:placeholder-shown) ~ .field-label-wrap {
  opacity: 0;
}

.login-message {
  position: absolute;
  left: var(--login-email-left);
  top: calc(var(--login-password-top) + 6%);
  z-index: 4;
  width: var(--login-email-width);
  min-height: 1.35em;
  color: #ffd1dc;
  font-size: clamp(0.78rem, 1vw, 1rem);
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.76);
}

.login-message.success {
  color: #c7ffd8;
}

.login-image-button {
  left: var(--login-button-left);
  top: var(--login-button-top);
  width: var(--login-button-width);
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.5));
}

.login-image-button:hover,
.login-create-button:hover,
.login-forgot-button:hover,
.login-rad-emblem:hover {
  transform: translateY(-2px);
  filter: brightness(1.08) drop-shadow(0 16px 22px rgba(0, 0, 0, 0.5));
}

.login-image-button:active,
.login-create-button:active,
.login-forgot-button:active {
  transform: translateY(2px) scale(0.99);
}

.login-or-divider {
  left: var(--login-or-left);
  top: var(--login-or-top);
  width: var(--login-or-width);
  z-index: 3;
  pointer-events: none;
}

.login-create-button {
  left: var(--login-create-left);
  top: var(--login-create-top);
  width: var(--login-create-width);
  z-index: 3;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.48));
}

.login-forgot-button {
  left: var(--login-forgot-left);
  top: var(--login-forgot-top);
  width: var(--login-forgot-width);
  z-index: 3;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.44));
}

.login-page:not(.login-layout-editor-page) .login-image-button {
  clip-path: inset(12% 5% 12% 5%);
}

.login-page:not(.login-layout-editor-page) .login-create-button {
  clip-path: inset(10% 10% 14% 10%);
}

.login-page:not(.login-layout-editor-page) .login-forgot-button {
  clip-path: inset(38% 8% 35% 8%);
}

.account-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 200vh;
  height: 100vh;
  transform: translate(-50%, -50%);
}

.account-piece {
  position: absolute;
  z-index: 2;
  display: block;
}

.account-piece img {
  width: 100%;
}

.account-panel {
  left: var(--account-panel-left);
  top: var(--account-panel-top);
  width: var(--account-panel-width);
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.62));
}

.account-arc-divider {
  left: var(--account-arc-left);
  top: var(--account-arc-top);
  width: var(--account-arc-width);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(40, 236, 255, 0.48));
}

.account-page:not(.account-layout-editor-page) .account-arc-divider {
  display: none;
}

.account-art-form {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.account-input-wrap,
.account-image-button,
.account-back-link,
.account-eye-toggle {
  pointer-events: auto;
}

.account-input-wrap {
  height: calc(var(--account-first-field-width) * 0.32);
  color: #f8fbff;
}

.account-first-field {
  left: var(--account-first-field-left);
  top: var(--account-first-field-top);
  width: var(--account-first-field-width);
  height: calc(var(--account-first-field-width) * 0.32);
}

.account-last-field {
  left: var(--account-last-field-left);
  top: var(--account-last-field-top);
  width: var(--account-last-field-width);
  height: calc(var(--account-last-field-width) * 0.32);
}

.account-email-field {
  left: var(--account-email-field-left);
  top: var(--account-email-field-top);
  width: var(--account-email-field-width);
  height: calc(var(--account-email-field-width) * 0.32);
}

.account-email-confirm-field {
  left: var(--account-email-confirm-field-left);
  top: var(--account-email-confirm-field-top);
  width: var(--account-email-confirm-field-width);
  height: calc(var(--account-email-confirm-field-width) * 0.32);
}

.account-password-field {
  left: var(--account-password-field-left);
  top: var(--account-password-field-top);
  width: var(--account-password-field-width);
  height: calc(var(--account-password-field-width) * 0.32);
}

.account-password-confirm-field {
  left: var(--account-password-confirm-field-left);
  top: var(--account-password-confirm-field-top);
  width: var(--account-password-confirm-field-width);
  height: calc(var(--account-password-confirm-field-width) * 0.32);
}

.account-input-wrap input {
  width: 100%;
  height: 100%;
  padding: 0 1%;
  border: 0;
  border-radius: 3px;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #f9fbff;
  font-size: clamp(0.9rem, 2.6vh, 1.45rem);
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 0 12px rgba(168, 84, 255, 0.72), 0 2px 8px rgba(0, 0, 0, 0.82);
}

.account-input-wrap input:focus {
  box-shadow: inset 0 0 0 2px rgba(40, 236, 255, 0.48), 0 0 18px rgba(148, 64, 255, 0.36);
}

.account-input-wrap input:-webkit-autofill {
  -webkit-text-fill-color: #f9fbff;
  transition: background-color 9999s ease-out;
}

.account-placeholder {
  z-index: 4;
  pointer-events: none;
  opacity: 0.76;
  filter: none;
  transition: opacity 120ms ease;
}

.account-placeholder.is-placeholder-hidden {
  opacity: 0;
}

.account-first-placeholder {
  left: var(--account-first-placeholder-left);
  top: var(--account-first-placeholder-top);
  width: var(--account-first-placeholder-width);
}

.account-last-placeholder {
  left: var(--account-last-placeholder-left);
  top: var(--account-last-placeholder-top);
  width: var(--account-last-placeholder-width);
}

.account-email-placeholder {
  left: var(--account-email-placeholder-left);
  top: var(--account-email-placeholder-top);
  width: var(--account-email-placeholder-width);
}

.account-email-confirm-placeholder {
  left: var(--account-email-confirm-placeholder-left);
  top: var(--account-email-confirm-placeholder-top);
  width: var(--account-email-confirm-placeholder-width);
}

.account-password-placeholder {
  left: var(--account-password-placeholder-left);
  top: var(--account-password-placeholder-top);
  width: var(--account-password-placeholder-width);
}

.account-password-confirm-placeholder {
  left: var(--account-password-confirm-placeholder-left);
  top: var(--account-password-confirm-placeholder-top);
  width: var(--account-password-confirm-placeholder-width);
}

.account-eye-toggle {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 0 12px rgba(40, 236, 255, 0.56));
}

.account-eye-toggle:hover {
  transform: translateY(-1px) scale(1.05);
  filter: brightness(1.12) drop-shadow(0 0 16px rgba(40, 236, 255, 0.68));
}

.account-eye-active {
  display: none;
}

.account-eye-toggle.is-showing-password .account-eye-default {
  display: none;
}

.account-eye-toggle.is-showing-password .account-eye-active {
  display: block;
}

.account-password-eye {
  left: var(--account-password-eye-left);
  top: var(--account-password-eye-top);
  width: var(--account-password-eye-width);
  z-index: 5;
}

.account-password-confirm-eye {
  left: var(--account-password-confirm-eye-left);
  top: var(--account-password-confirm-eye-top);
  width: var(--account-password-confirm-eye-width);
  z-index: 5;
}

.account-image-button {
  left: var(--account-submit-left);
  top: var(--account-submit-top);
  width: var(--account-submit-width);
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.58));
}

.account-back-link {
  left: var(--account-back-left);
  top: var(--account-back-top);
  width: var(--account-back-width);
  background: transparent;
  box-shadow: none;
  filter: none;
}

.account-back-link img {
  background: transparent;
}

.account-image-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.58));
}

.account-back-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.account-image-button:active,
.account-back-link:active {
  transform: translateY(2px) scale(0.99);
}

.account-message {
  position: absolute;
  left: var(--account-message-left);
  top: var(--account-message-top);
  z-index: 6;
  width: var(--account-message-width);
  min-height: 1.4em;
  color: #ffd1dc;
  font-size: clamp(0.78rem, 0.9vw, 1rem);
  font-weight: 950;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.78);
}

.account-message.success {
  color: #c7ffd8;
}

.account-page:not(.account-layout-editor-page) .account-image-button {
  clip-path: inset(13% 1% 14% 1%);
}

.account-page:not(.account-layout-editor-page) .account-back-link {
  clip-path: inset(38% 11% 35% 11%);
}

.reset-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 200vh;
  height: 100vh;
  transform: translate(-50%, -50%);
}

.reset-piece {
  position: absolute;
  z-index: 2;
  display: block;
}

.reset-piece img {
  width: 100%;
}

.reset-panel {
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.62));
}

.forgot-panel {
  left: var(--forgot-panel-left);
  top: var(--forgot-panel-top);
  width: var(--forgot-panel-width);
}

.reset-password-panel {
  left: var(--reset-panel-left);
  top: var(--reset-panel-top);
  width: var(--reset-panel-width);
}

.reset-art-form {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.reset-input-wrap,
.reset-image-button,
.reset-back-link,
.reset-eye-toggle {
  pointer-events: auto;
}

.reset-input-wrap {
  color: #f8fbff;
}

.reset-input-wrap input {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0 1%;
  border: 0;
  border-radius: 3px;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #f9fbff;
  font-size: clamp(0.9rem, 2.6vh, 1.45rem);
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 0 12px rgba(168, 84, 255, 0.72), 0 2px 8px rgba(0, 0, 0, 0.82);
}

.reset-input-wrap input:focus {
  box-shadow: inset 0 0 0 2px rgba(40, 236, 255, 0.48), 0 0 18px rgba(148, 64, 255, 0.36);
}

.reset-input-wrap input:-webkit-autofill {
  -webkit-text-fill-color: #f9fbff;
  transition: background-color 9999s ease-out;
}

.reset-placeholder {
  z-index: 4;
  pointer-events: none;
  opacity: 0.78;
  filter: none;
  transition: opacity 120ms ease;
}

.reset-placeholder.is-placeholder-hidden {
  opacity: 0;
}

.forgot-email-field {
  left: var(--forgot-email-field-left);
  top: var(--forgot-email-field-top);
  width: var(--forgot-email-field-width);
  height: calc(var(--forgot-email-field-width) * 0.3);
}

.forgot-email-placeholder {
  left: var(--forgot-email-placeholder-left);
  top: var(--forgot-email-placeholder-top);
  width: var(--forgot-email-placeholder-width);
}

.reset-password-field {
  left: var(--reset-password-field-left);
  top: var(--reset-password-field-top);
  width: var(--reset-password-field-width);
  height: calc(var(--reset-password-field-width) * 0.28);
}

.reset-password-placeholder {
  left: var(--reset-password-placeholder-left);
  top: var(--reset-password-placeholder-top);
  width: var(--reset-password-placeholder-width);
}

.reset-password-confirm-field {
  left: var(--reset-password-confirm-field-left);
  top: var(--reset-password-confirm-field-top);
  width: var(--reset-password-confirm-field-width);
  height: calc(var(--reset-password-confirm-field-width) * 0.28);
}

.reset-password-confirm-placeholder {
  left: var(--reset-password-confirm-placeholder-left);
  top: var(--reset-password-confirm-placeholder-top);
  width: var(--reset-password-confirm-placeholder-width);
}

.reset-eye-toggle {
  z-index: 5;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 0 12px rgba(40, 236, 255, 0.56));
}

.reset-eye-toggle:hover {
  transform: translateY(-1px) scale(1.05);
  filter: brightness(1.12) drop-shadow(0 0 16px rgba(40, 236, 255, 0.68));
}

.reset-eye-toggle.is-showing-password .account-eye-default {
  display: none;
}

.reset-eye-toggle.is-showing-password .account-eye-active {
  display: block;
}

.reset-password-eye {
  left: var(--reset-password-eye-left);
  top: var(--reset-password-eye-top);
  width: var(--reset-password-eye-width);
}

.reset-password-confirm-eye {
  left: var(--reset-password-confirm-eye-left);
  top: var(--reset-password-confirm-eye-top);
  width: var(--reset-password-confirm-eye-width);
}

.reset-image-button,
.reset-back-link {
  z-index: 4;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reset-image-button {
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.58));
}

.reset-back-link {
  background: transparent;
  box-shadow: none;
  filter: none;
}

.reset-back-link img {
  background: transparent;
}

.reset-image-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.58));
}

.reset-back-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.reset-image-button:active,
.reset-back-link:active {
  transform: translateY(2px) scale(0.99);
}

.forgot-submit-button {
  left: var(--forgot-submit-left);
  top: var(--forgot-submit-top);
  width: var(--forgot-submit-width);
}

.forgot-back-link {
  left: var(--forgot-back-left);
  top: var(--forgot-back-top);
  width: var(--forgot-back-width);
}

.reset-submit-button {
  left: var(--reset-submit-left);
  top: var(--reset-submit-top);
  width: var(--reset-submit-width);
}

.reset-message {
  position: absolute;
  z-index: 6;
  min-height: 1.4em;
  color: #ffd1dc;
  font-size: clamp(0.78rem, 0.9vw, 1rem);
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.78);
}

.reset-message.success {
  color: #c7ffd8;
}

.forgot-message {
  left: var(--forgot-message-left);
  top: var(--forgot-message-top);
  width: var(--forgot-message-width);
}

.reset-password-message {
  left: var(--reset-message-left);
  top: var(--reset-message-top);
  width: var(--reset-message-width);
}

.reset-page:not(.reset-layout-editor-page) .reset-image-button {
  clip-path: inset(13% 1% 14% 1%);
}

.reset-page:not(.reset-layout-editor-page) .reset-back-link {
  clip-path: inset(38% 11% 35% 11%);
}

.plain-note {
  color: #343b52;
  font-weight: 800;
  line-height: 1.3;
}

.action-button {
  min-height: 56px;
  padding: 12px 20px;
  background: #ffffff;
  box-shadow: 0 6px 0 rgba(21, 22, 34, 0.16);
}

.action-button.primary {
  background: linear-gradient(145deg, var(--yellow), var(--orange));
}

.action-button.secondary {
  background: linear-gradient(145deg, #ffffff, #dffbff);
}

.text-link {
  color: #2b3eff;
  font-weight: 900;
}

.app-header,
.play-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(14px, 3vw, 28px);
  border-bottom: 4px solid var(--ink);
  background: rgba(255, 250, 240, 0.94);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-actions a,
.small-button {
  min-height: 42px;
  padding: 8px 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 0 rgba(21, 22, 34, 0.14);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
  text-decoration: none;
}

.dashboard-page {
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 228, 79, 0.18), transparent 26%),
    radial-gradient(circle at 92% 6%, rgba(40, 215, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #fbfff7 0%, #eefbff 46%, #161827 100%);
}

.dashboard-shell {
  display: grid;
  gap: 22px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 38px);
}

.dashboard-intro {
  display: grid;
  gap: 8px;
}

.dashboard-intro p:last-child {
  color: #30364d;
  font-size: 1.05rem;
  font-weight: 800;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.game-portal,
.coming-portal {
  min-height: 330px;
  border: 5px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.game-portal {
  position: relative;
  display: grid;
  grid-template-rows: minmax(190px, 1fr) auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 250, 240, 0.94)),
    url("../games/monster-munch/assets/generated/background-adventure-map.webp") center / cover no-repeat;
  transform: rotate(-1deg);
  transition: transform 160ms ease, filter 160ms ease;
  clip-path: polygon(8% 0, 100% 0, 94% 92%, 48% 100%, 0 92%, 0 10%);
}

.brb-portal {
  background:
    linear-gradient(180deg, rgba(8, 10, 20, 0.04), rgba(255, 250, 240, 0.94)),
    url("../assets/dashboard/brb-in-development-tile.png") center / contain no-repeat;
  transform: rotate(1deg);
}

.brb-portal:hover {
  transform: translateY(-4px) rotate(1deg) scale(1.015);
}

.game-portal:hover {
  transform: translateY(-4px) rotate(-1deg) scale(1.015);
  filter: saturate(1.08);
}

.game-portal::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 3px dashed rgba(21, 22, 34, 0.2);
  clip-path: polygon(8% 0, 100% 0, 94% 92%, 48% 100%, 0 92%, 0 10%);
  pointer-events: none;
}

.portal-art {
  display: grid;
  place-items: center;
  padding: 22px;
}

.portal-art img {
  width: min(86%, 210px);
  aspect-ratio: 1;
  padding: 8px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: #fff4c7;
  object-fit: contain;
  filter: drop-shadow(0 12px 0 rgba(21, 22, 34, 0.16)) drop-shadow(0 20px 22px rgba(21, 22, 34, 0.18));
}

.brb-portal .portal-art img {
  width: min(96%, 250px);
  aspect-ratio: auto;
  padding: 10px;
  background: rgba(11, 13, 26, 0.86);
}

.portal-copy {
  display: grid;
  gap: 4px;
  padding: 18px 18px 28px;
  background: rgba(255, 250, 240, 0.92);
}

.portal-copy span,
.coming-portal span {
  color: #6f2edb;
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.portal-copy strong,
.coming-portal strong {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 1000;
  line-height: 0.95;
}

.portal-copy em,
.coming-portal em {
  color: #333b54;
  font-style: normal;
  font-weight: 900;
}

.coming-portal {
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  opacity: 0.86;
  overflow: hidden;
}

.dice-portal {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 228, 79, 0.72)),
    repeating-linear-gradient(45deg, #ffffff 0 18px, #dffbff 18px 36px);
}

.cards-portal {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 79, 154, 0.54)),
    repeating-linear-gradient(90deg, #fffaf0 0 20px, #e6fff1 20px 40px);
}

.discord-portal {
  background:
    linear-gradient(160deg, rgba(16, 18, 34, 0.92), rgba(53, 37, 94, 0.82) 48%, rgba(40, 215, 255, 0.42)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 16px, rgba(143, 75, 255, 0.16) 16px 32px);
  color: #ffffff;
}

.discord-portal span,
.discord-portal em {
  color: #c6f7ff;
}

.party-portal {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(40, 215, 255, 0.58)),
    repeating-linear-gradient(135deg, #fffaf0 0 16px, #f3e9ff 16px 32px);
}

.social-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.social-preview h2 {
  max-width: 760px;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.social-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.social-chips span {
  padding: 8px 10px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(21, 22, 34, 0.13);
}

.dashboard-page {
  min-height: 100vh;
  overflow: hidden;
  background: #030512;
}

.dashboard-shell {
  position: relative;
  display: grid;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  place-items: center;
  overflow: hidden;
}

.dashboard-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/dashboard/dashboard-background.png") center / cover no-repeat;
  pointer-events: none;
}

.dashboard-canvas {
  position: relative;
  z-index: 1;
  width: min(100vw, 177.7778vh);
  height: min(56.25vw, 100vh);
  overflow: visible;
}

.dashboard-piece {
  position: absolute;
  z-index: 2;
  display: block;
  line-height: 0;
}

.dashboard-piece img {
  display: block;
  width: 100%;
  pointer-events: none;
  user-select: none;
}

.dashboard-logo {
  left: var(--dashboard-logo-left);
  top: var(--dashboard-logo-top);
  width: var(--dashboard-logo-width);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.58));
}

.dashboard-top-controls {
  left: var(--dashboard-top-controls-left);
  top: var(--dashboard-top-controls-top);
  z-index: 5;
  display: grid;
  width: var(--dashboard-top-controls-width);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2.1%;
  align-items: center;
  padding: 1.25%;
  border: 1px solid rgba(119, 81, 231, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(174, 74, 255, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(16, 24, 47, 0.78), rgba(4, 7, 18, 0.9));
  box-shadow: 0 18px 26px rgba(0, 0, 0, 0.46), inset 0 0 18px rgba(40, 224, 255, 0.08);
}

.dashboard-top-controls.is-admin-hidden {
  left: var(--dashboard-top-controls-hidden-left);
  width: var(--dashboard-top-controls-hidden-width);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-top-controls::before,
.dashboard-top-controls::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  pointer-events: none;
}

.dashboard-top-controls::before {
  top: 8%;
  background: linear-gradient(90deg, transparent, rgba(35, 225, 255, 0.36), transparent);
  filter: blur(1px);
}

.dashboard-top-controls::after {
  bottom: 8%;
  background: linear-gradient(90deg, transparent, rgba(225, 70, 255, 0.36), transparent);
  filter: blur(1px);
}

.dashboard-top-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 9px 12px rgba(0, 0, 0, 0.56));
  transform: translateZ(0);
  transition: transform 130ms ease, filter 130ms ease;
}

.dashboard-top-logout-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 9px 12px rgba(0, 0, 0, 0.56));
  transform: translateZ(0);
  transition: transform 130ms ease, filter 130ms ease;
}

.dashboard-top-button:focus-visible,
.dashboard-top-logout-button:focus-visible {
  outline: 2px solid rgba(40, 224, 255, 0.9);
  outline-offset: 3px;
  border-radius: 8px;
}

.top-button-state {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 70ms ease;
}

.top-button-normal {
  opacity: 1;
}

.dashboard-top-button:hover,
.dashboard-top-button:focus-visible,
.dashboard-top-logout-button:hover,
.dashboard-top-logout-button:focus-visible {
  transform: translateY(-5%) scale(1.08);
  filter:
    drop-shadow(0 0 10px rgba(46, 228, 255, 0.66))
    drop-shadow(0 0 18px rgba(192, 69, 255, 0.64))
    drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5))
    saturate(1.2)
    brightness(1.12);
}

.dashboard-top-button:active,
.dashboard-top-logout-button:active {
  transform: translateY(5%) scale(0.9);
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.58)) saturate(0.8) brightness(0.64);
}

.dashboard-top-button:hover .top-button-normal,
.dashboard-top-button:focus-visible .top-button-normal,
.dashboard-top-button:active .top-button-normal,
.dashboard-top-button:active .top-button-hover,
.dashboard-top-logout-button:hover .top-button-normal,
.dashboard-top-logout-button:focus-visible .top-button-normal,
.dashboard-top-logout-button:active .top-button-normal,
.dashboard-top-logout-button:active .top-button-hover {
  opacity: 0;
}

.dashboard-top-button:hover .top-button-hover,
.dashboard-top-button:focus-visible .top-button-hover,
.dashboard-top-button:active .top-button-pressed,
.dashboard-top-logout-button:hover .top-button-hover,
.dashboard-top-logout-button:focus-visible .top-button-hover,
.dashboard-top-logout-button:active .top-button-pressed {
  opacity: 1;
}

.dashboard-top-button.is-active {
  filter:
    drop-shadow(0 0 10px rgba(46, 228, 255, 0.7))
    drop-shadow(0 0 18px rgba(192, 69, 255, 0.68))
    drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5))
    saturate(1.18)
    brightness(1.08);
}

.dashboard-popout {
  position: absolute;
  left: 72.9%;
  top: 12%;
  z-index: 7;
  width: 26%;
  aspect-ratio: 4 / 5;
  color: #f8fbff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.86);
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.54));
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.dashboard-popout[hidden] {
  display: none;
}

.dashboard-notifications-popout {
  background-image: url("../assets/dashboard/notifications-panel-frame-clean-v1.png");
}

.dashboard-profile-popout {
  background-image: url("../assets/dashboard/profile-panel-frame-clean-v1.png");
}

.dashboard-social-popout {
  background-image: url("../assets/dashboard/social-panel-frame-clean-v1.png");
}

.dashboard-admin-popout {
  background-image: url("../assets/dashboard/admin-panel-frame-clean-v1.png");
}

.dashboard-panel-content {
  position: absolute;
  inset: 31.5% 17% 19.5% 20.6%;
  z-index: 1;
  display: grid;
  min-height: 0;
  min-width: 0;
  align-content: start;
  justify-items: stretch;
  gap: 0.62em;
  font-size: 0.72rem;
  line-height: 1.12;
  pointer-events: auto;
}

.dashboard-panel-close {
  position: absolute;
  top: 17.5%;
  right: 16.5%;
  z-index: 2;
  width: 9.5%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dashboard-panel-close::before,
.dashboard-panel-close::after {
  content: "";
  position: absolute;
  left: 28%;
  right: 28%;
  top: 48%;
  height: 2px;
  border-radius: 999px;
  background: rgba(247, 232, 255, 0.82);
  box-shadow: 0 0 8px rgba(197, 82, 255, 0.8);
}

.dashboard-panel-close::before {
  transform: rotate(45deg);
}

.dashboard-panel-close::after {
  transform: rotate(-45deg);
}

.dashboard-panel-row,
.dashboard-friend-row,
.dashboard-empty-state,
.dashboard-party-panel,
.dashboard-profile-actions button,
.dashboard-profile-actions a,
.dashboard-panel-action,
.dashboard-social-search,
.dashboard-social-add {
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid rgba(58, 224, 255, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(25, 10, 48, 0.78), rgba(5, 7, 22, 0.9)),
    radial-gradient(circle at 50% 0%, rgba(193, 93, 255, 0.18), transparent 68%);
  color: #edf7ff;
  font: inherit;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 14px rgba(34, 218, 255, 0.08),
    0 0 10px rgba(161, 64, 255, 0.12);
}

.dashboard-panel-row,
.dashboard-friend-row {
  display: flex;
  width: 94%;
  min-height: 2.55em;
  align-items: center;
  justify-self: center;
  justify-content: space-between;
  padding: 0.5em 0.72em;
}

.dashboard-panel-row > span,
.dashboard-panel-row > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-panel-row strong {
  color: #9eedff;
  font-size: 0.82em;
}

.dashboard-notification-row {
  display: grid;
  min-height: 5.05em;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-content: stretch;
  justify-items: stretch;
  gap: 0.22em 0.55em;
  padding-block: 0.48em 0.52em;
}

.dashboard-notification-row.is-unread {
  border-color: rgba(158, 237, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 16px rgba(34, 218, 255, 0.14),
    0 0 12px rgba(44, 223, 255, 0.16);
}

.dashboard-notification-copy {
  display: grid;
  min-width: 0;
  gap: 0.12em;
  white-space: normal;
}

.dashboard-notification-copy strong,
.dashboard-notification-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-notification-copy strong {
  color: #ffffff;
  font-size: 0.9em;
  white-space: nowrap;
}

.dashboard-notification-copy em {
  display: -webkit-box;
  color: rgba(207, 238, 255, 0.82);
  font-size: 0.78em;
  font-style: normal;
  font-weight: 750;
  line-height: 1.16;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.dashboard-notification-meta {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  justify-items: end;
  gap: 0.16em;
  white-space: nowrap;
}

.dashboard-notification-meta time {
  color: #9eedff;
  font-size: 0.78em;
  font-weight: 850;
}

.dashboard-notification-badge {
  border: 1px solid rgba(177, 115, 255, 0.42);
  border-radius: 999px;
  padding: 0.12em 0.42em;
  background: rgba(12, 6, 32, 0.72);
  color: rgba(237, 247, 255, 0.82);
  font-size: 0.62em;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-notification-row.is-unread .dashboard-notification-badge {
  border-color: rgba(58, 224, 255, 0.62);
  color: #9eedff;
}

.dashboard-notification-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34em;
}

.dashboard-notification-action {
  min-height: 1.85em;
  border: 1px solid rgba(58, 224, 255, 0.38);
  border-radius: 5px;
  padding: 0.18em 0.5em;
  background:
    linear-gradient(180deg, rgba(27, 14, 58, 0.86), rgba(6, 9, 25, 0.9)),
    rgba(4, 9, 24, 0.62);
  color: #edf7ff;
  font: inherit;
  font-size: 0.68em;
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
  cursor: pointer;
}

.dashboard-notification-action.is-secondary {
  border-color: rgba(177, 115, 255, 0.42);
  color: rgba(237, 247, 255, 0.86);
}

.dashboard-notification-action:disabled {
  cursor: wait;
  opacity: 0.62;
}

.dashboard-empty-state {
  display: grid;
  box-sizing: border-box;
  width: 94%;
  min-height: 6.9em;
  align-content: center;
  justify-self: center;
  justify-items: center;
  gap: 0.42em;
  padding: 0.82em 0.95em;
  text-align: center;
}

.dashboard-empty-state strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 1.05em;
}

.dashboard-empty-state span {
  max-width: 100%;
  color: rgba(207, 238, 255, 0.86);
  font-size: 0.82em;
  font-weight: 750;
  line-height: 1.25;
}

.dashboard-profile-content {
  inset: 28% 18.4% 18.3% 19.8%;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  align-content: start;
  justify-items: center;
  gap: 0.52em;
  text-align: center;
}

.dashboard-avatar {
  display: grid;
  width: 31%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(135, 74, 255, 0.62);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(75, 220, 255, 0.32), transparent 58%),
    radial-gradient(circle, rgba(105, 35, 170, 0.72), rgba(6, 4, 18, 0.92));
  color: #f5edff;
  font-size: clamp(0.62rem, 0.86vw, 1rem);
  font-weight: 950;
  box-shadow: inset 0 0 15px rgba(199, 76, 255, 0.22), 0 0 12px rgba(40, 224, 255, 0.18);
}

.dashboard-avatar[data-dashboard-avatar="monster-munch"],
.dashboard-avatar-choice span[data-dashboard-avatar="monster-munch"] {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 210, 88, 0.26), transparent 58%),
    radial-gradient(circle, rgba(30, 184, 198, 0.62), rgba(6, 4, 18, 0.92));
}

.dashboard-avatar[data-dashboard-avatar="brb-racer"],
.dashboard-avatar-choice span[data-dashboard-avatar="brb-racer"] {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 98, 80, 0.3), transparent 58%),
    radial-gradient(circle, rgba(100, 38, 24, 0.68), rgba(6, 4, 18, 0.92));
}

.dashboard-avatar[data-dashboard-avatar="mythweaver"],
.dashboard-avatar-choice span[data-dashboard-avatar="mythweaver"] {
  background:
    radial-gradient(circle at 50% 35%, rgba(147, 98, 255, 0.38), transparent 58%),
    radial-gradient(circle, rgba(46, 20, 102, 0.72), rgba(6, 4, 18, 0.92));
}

.dashboard-avatar[data-dashboard-avatar="arcade-mage"],
.dashboard-avatar-choice span[data-dashboard-avatar="arcade-mage"] {
  background:
    radial-gradient(circle at 50% 35%, rgba(68, 232, 255, 0.34), transparent 58%),
    radial-gradient(circle, rgba(88, 28, 156, 0.72), rgba(6, 4, 18, 0.92));
}

.dashboard-profile-name {
  display: grid;
  max-width: 100%;
  gap: 0.12em;
}

.dashboard-profile-name strong,
.dashboard-profile-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-profile-name strong {
  color: #ffffff;
  font-size: clamp(0.64rem, 0.9vw, 1.05rem);
}

.dashboard-profile-name span {
  color: #9eedff;
  font-size: 0.82em;
}

.dashboard-profile-meta {
  display: grid;
  width: 94%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4em;
}

.dashboard-profile-meta span {
  display: grid;
  min-width: 0;
  gap: 0.12em;
  padding: 0.46em 0.55em;
  border: 1px solid rgba(52, 216, 255, 0.32);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(19, 9, 42, 0.68), rgba(4, 9, 24, 0.72)),
    rgba(4, 9, 24, 0.56);
  box-shadow: inset 0 0 12px rgba(34, 218, 255, 0.06);
}

.dashboard-profile-meta strong {
  overflow: hidden;
  color: rgba(225, 236, 255, 0.82);
  font-size: 0.68em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-profile-meta em {
  overflow: hidden;
  color: #9eedff;
  font-size: 0.9em;
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-profile-actions {
  display: grid;
  width: 94%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4em;
}

.dashboard-profile-actions button,
.dashboard-profile-actions a,
.dashboard-panel-action {
  display: grid;
  min-height: 2.35em;
  place-items: center;
  padding: 0.25em 0.4em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.dashboard-profile-actions button[data-dashboard-coming-soon] {
  color: rgba(237, 247, 255, 0.82);
}

.dashboard-action-note {
  min-height: 2.5em;
  width: 94%;
  margin: 0;
  overflow: hidden;
  color: rgba(207, 238, 255, 0.82);
  font-size: 0.78em;
  font-weight: 750;
  line-height: 1.2;
}

.dashboard-panel-action {
  width: min(74%, 13em);
  justify-self: center;
  align-self: end;
  border-color: rgba(255, 207, 98, 0.52);
}

.dashboard-notification-tools {
  display: grid;
  width: 94%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4em;
  justify-self: center;
}

.dashboard-notification-tools[hidden] {
  display: none;
}

.dashboard-notification-tools .dashboard-panel-action {
  width: 100%;
  min-height: 2.2em;
  align-self: center;
  padding-inline: 0.32em;
  border-color: rgba(58, 224, 255, 0.38);
  font-size: 0.78em;
}

.dashboard-notification-tools .dashboard-panel-action.is-secondary {
  border-color: rgba(177, 115, 255, 0.42);
  color: rgba(237, 247, 255, 0.84);
}

.dashboard-notification-message {
  min-height: 1.2em;
}

.dashboard-social-content {
  inset: 32% 17% 16.6% 20.6%;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 0.54em;
}

.dashboard-social-request {
  display: grid;
  width: 94%;
  justify-self: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.38em;
}

.dashboard-social-search {
  width: 100%;
  min-height: 2.55em;
  padding: 0.42em 0.65em;
  outline: 0;
  text-align: center;
}

.dashboard-social-add {
  min-height: 2.55em;
  min-width: 4.2em;
  padding: 0.42em 0.65em;
  border-color: rgba(255, 207, 98, 0.5);
  cursor: pointer;
}

.dashboard-party-panel {
  display: grid;
  width: 90%;
  justify-self: center;
  gap: 0.24em;
  padding: 0.34em 0.46em;
  border-color: rgba(255, 207, 98, 0.34);
}

.dashboard-party-summary {
  display: grid;
  min-width: 0;
  gap: 0.12em;
  text-align: center;
}

.dashboard-party-summary strong,
.dashboard-party-summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-party-summary strong {
  color: #ffffff;
  font-size: 0.86em;
}

.dashboard-party-summary span {
  color: rgba(207, 238, 255, 0.82);
  font-size: 0.7em;
  font-weight: 800;
}

.dashboard-party-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34em;
}

.dashboard-party-actions button {
  min-height: 1.72em;
  border: 1px solid rgba(255, 207, 98, 0.34);
  border-radius: 5px;
  padding: 0.2em 0.36em;
  background: rgba(4, 7, 23, 0.68);
  color: rgba(237, 247, 255, 0.82);
  font: inherit;
  font-size: 0.7em;
  font-weight: 950;
  text-align: center;
  cursor: pointer;
}

.dashboard-party-actions button:only-child {
  grid-column: 1 / -1;
  width: min(68%, 9.5em);
  justify-self: center;
}

.dashboard-party-actions button:disabled {
  cursor: default;
  opacity: 0.68;
}

.dashboard-party-chat {
  display: grid;
  min-width: 0;
  gap: 0.22em;
}

.dashboard-party-chat[hidden] {
  display: none;
}

.dashboard-party-chat-list {
  display: grid;
  min-height: 2.5em;
  max-height: 3.25em;
  align-content: start;
  gap: 0.28em;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.28em;
  border: 1px solid rgba(58, 224, 255, 0.2);
  border-radius: 5px;
  background: rgba(3, 6, 20, 0.44);
  scrollbar-color: rgba(190, 78, 255, 0.68) rgba(7, 5, 19, 0.18);
  scrollbar-width: thin;
}

.dashboard-party-chat-message {
  display: grid;
  max-width: 88%;
  gap: 0.08em;
  padding: 0.28em 0.36em;
  border: 1px solid rgba(58, 224, 255, 0.22);
  border-radius: 5px;
  background: rgba(8, 10, 30, 0.72);
  line-height: 1.15;
}

.dashboard-party-chat-message.is-outgoing {
  justify-self: end;
  border-color: rgba(255, 207, 98, 0.34);
}

.dashboard-party-chat-message strong,
.dashboard-party-chat-message span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-party-chat-message strong {
  color: #ffffff;
  font-size: 0.64em;
}

.dashboard-party-chat-message span {
  color: rgba(237, 247, 255, 0.86);
  font-size: 0.68em;
  font-weight: 750;
}

.dashboard-party-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.28em;
}

.dashboard-party-chat-form input,
.dashboard-party-chat-form button {
  min-width: 0;
  min-height: 1.7em;
  border: 1px solid rgba(58, 224, 255, 0.3);
  border-radius: 5px;
  background: rgba(4, 7, 23, 0.68);
  color: rgba(237, 247, 255, 0.86);
  font: inherit;
  font-size: 0.62em;
  font-weight: 900;
}

.dashboard-party-chat-form input {
  padding: 0.2em 0.44em;
}

.dashboard-party-chat-form button {
  padding: 0.2em 0.46em;
  cursor: pointer;
}

.dashboard-party-popout {
  position: fixed;
  left: auto;
  right: clamp(8px, 1vw, 18px);
  top: 29%;
  z-index: 8;
  box-sizing: border-box;
  width: clamp(420px, 26vw, 540px);
  aspect-ratio: 4 / 5;
  color: #f8fbff;
  pointer-events: auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.86);
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.58));
  background-image: url("../assets/dashboard/social-panel-frame-clean-v1.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: grab;
}

.dashboard-party-popout[hidden] {
  display: none;
}

.dashboard-party-popout.is-positioned {
  right: auto;
}

.dashboard-party-popout.is-dragging {
  filter:
    drop-shadow(0 0 12px rgba(46, 228, 255, 0.5))
    drop-shadow(0 24px 30px rgba(0, 0, 0, 0.6));
  cursor: grabbing;
}

.dashboard-party-popout-content {
  position: absolute;
  inset: 27.4% 18% 18.2% 19.2%;
  display: grid;
  min-height: 0;
  min-width: 0;
  grid-template-rows: auto minmax(4.8rem, 0.78fr) auto minmax(7.4rem, 1.22fr);
  gap: 0.3rem;
  align-content: stretch;
  overflow: hidden;
  padding: 0;
  font-size: 0.72rem;
}

.dashboard-party-popout-content header {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
  padding-right: 1.75rem;
  touch-action: none;
}

.dashboard-party-popout-content header[data-party-popout-drag-handle] {
  cursor: grab;
}

.dashboard-party-popout.is-dragging .dashboard-party-popout-content header[data-party-popout-drag-handle] {
  cursor: grabbing;
}

.dashboard-party-popout button,
.dashboard-party-popout textarea,
.dashboard-party-popout select,
.dashboard-party-popout a {
  cursor: auto;
}

.dashboard-party-popout button,
.dashboard-party-popout a {
  cursor: pointer;
}

.dashboard-party-popout input,
.dashboard-party-popout textarea {
  cursor: text;
}

.dashboard-party-popout-content h2 {
  margin: 0;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1;
}

.dashboard-party-popout-content header span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(207, 238, 255, 0.86);
  font-size: 0.68rem;
  font-weight: 850;
}

.dashboard-party-popout-close {
  top: 17.2%;
  right: 15.5%;
  width: 8.8%;
}

.dashboard-party-member-list {
  display: grid;
  min-height: 0;
  max-height: none;
  align-content: start;
  gap: 0.24rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.18rem;
  scrollbar-color: rgba(190, 78, 255, 0.68) rgba(7, 5, 19, 0.18);
  scrollbar-width: thin;
}

.dashboard-party-member {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.36rem;
  padding: 0.28rem 0.38rem;
  border: 1px solid rgba(58, 224, 255, 0.32);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(25, 10, 48, 0.78), rgba(5, 7, 22, 0.88)),
    radial-gradient(circle at 50% 0%, rgba(193, 93, 255, 0.15), transparent 68%);
}

.dashboard-party-member.is-invited {
  border-color: rgba(255, 207, 98, 0.34);
}

.dashboard-party-member-avatar {
  display: grid;
  width: 1.55rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(221, 154, 255, 0.56);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(189, 92, 255, 0.95), rgba(35, 24, 74, 0.92));
  color: #ffffff;
  font-size: 0.56rem;
  font-weight: 950;
}

.dashboard-party-member-main {
  display: grid;
  min-width: 0;
  gap: 0.06rem;
}

.dashboard-party-member-main strong,
.dashboard-party-member-main em,
.dashboard-party-member-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-party-member-main strong {
  color: #ffffff;
  font-size: 0.64rem;
  line-height: 1;
}

.dashboard-party-member-main em,
.dashboard-party-member-main small {
  color: rgba(158, 237, 255, 0.88);
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 850;
}

.dashboard-party-member-status {
  justify-self: end;
  padding: 0.13rem 0.3rem;
  border: 1px solid rgba(58, 224, 255, 0.34);
  border-radius: 999px;
  color: #9eedff;
  font-size: 0.5rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-party-member.is-invited .dashboard-party-member-status {
  border-color: rgba(255, 207, 98, 0.38);
  color: rgba(255, 226, 155, 0.94);
}

.dashboard-party-popout-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.32rem;
}

.dashboard-party-popout-actions button {
  min-height: 1.58rem;
  border: 1px solid rgba(255, 207, 98, 0.36);
  border-radius: 6px;
  background: rgba(4, 7, 23, 0.72);
  color: rgba(237, 247, 255, 0.9);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 950;
  cursor: pointer;
}

.dashboard-party-popout-actions button:only-child {
  grid-column: 1 / -1;
}

.dashboard-party-popout-actions button:disabled {
  cursor: default;
  opacity: 0.68;
}

.dashboard-party-popout .dashboard-party-chat {
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.3rem;
}

.dashboard-party-popout .dashboard-party-chat-list {
  min-height: 0;
  height: 100%;
  max-height: none;
  align-content: start;
  box-sizing: border-box;
  gap: 0.28rem;
  padding: 0.38rem;
  border-color: rgba(58, 224, 255, 0.3);
  border-radius: 7px;
  background: rgba(3, 6, 20, 0.62);
}

.dashboard-party-popout .dashboard-party-chat-message {
  gap: 0.12rem;
  padding: 0.36rem 0.42rem;
}

.dashboard-party-popout .dashboard-party-chat-message strong {
  font-size: 0.58rem;
}

.dashboard-party-popout .dashboard-party-chat-message span {
  font-size: 0.64rem;
  line-height: 1.2;
}

.dashboard-party-popout .dashboard-party-chat-form {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 0.3rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-party-popout .dashboard-party-chat-form input,
.dashboard-party-popout .dashboard-party-chat-form button {
  box-sizing: border-box;
  min-height: 1.8rem;
  font-size: 0.62rem;
}

.dashboard-social-search:disabled {
  cursor: default;
  opacity: 0.78;
}

.dashboard-social-search:focus {
  border-color: rgba(40, 224, 255, 0.8);
  box-shadow: 0 0 10px rgba(40, 224, 255, 0.2), inset 0 0 12px rgba(34, 218, 255, 0.08);
}

.dashboard-social-message {
  width: 94%;
  min-height: 1.3em;
  justify-self: center;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 206, 213, 0.9);
  font-size: 0.76em;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
}

.dashboard-social-message.success {
  color: #9eedff;
}

.dashboard-friend-card {
  display: grid;
  min-height: 6.4em;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.38em 0.52em;
  padding: 0.5em 0.62em 0.58em;
}

.dashboard-friend-card.is-online,
.dashboard-friend-card.is-playing {
  border-color: rgba(58, 224, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 16px rgba(34, 218, 255, 0.12),
    0 0 12px rgba(44, 223, 255, 0.14);
}

.dashboard-friend-card.is-offline {
  border-color: rgba(177, 115, 255, 0.34);
}

.dashboard-friend-avatar {
  display: grid;
  width: 2.85em;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(135, 74, 255, 0.58);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(64, 228, 255, 0.24), transparent 58%),
    radial-gradient(circle, rgba(82, 27, 150, 0.78), rgba(5, 5, 19, 0.94));
  color: #f5edff;
  font-size: 0.9em;
  font-weight: 950;
  box-shadow: inset 0 0 12px rgba(199, 76, 255, 0.2), 0 0 10px rgba(40, 224, 255, 0.14);
}

.dashboard-friend-main {
  display: grid;
  min-width: 0;
  gap: 0.1em;
}

.dashboard-friend-main strong,
.dashboard-friend-main em,
.dashboard-friend-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-friend-main strong {
  color: #ffffff;
  font-size: 0.9em;
}

.dashboard-friend-main em {
  color: #9eedff;
  font-size: 0.76em;
  font-style: normal;
  font-weight: 850;
}

.dashboard-friend-main small {
  color: rgba(207, 238, 255, 0.8);
  font-size: 0.7em;
  font-weight: 800;
}

.dashboard-friend-presence {
  display: grid;
  justify-items: end;
}

.dashboard-presence-pill {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 0.28em;
  border: 1px solid rgba(177, 115, 255, 0.42);
  border-radius: 999px;
  padding: 0.16em 0.46em;
  background: rgba(12, 6, 32, 0.74);
  color: rgba(237, 247, 255, 0.86);
  font-size: 0.64em;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-presence-pill i {
  display: block;
  width: 0.58em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(177, 115, 255, 0.82);
  box-shadow: 0 0 7px rgba(177, 115, 255, 0.46);
}

.dashboard-friend-card.is-online .dashboard-presence-pill,
.dashboard-friend-card.is-playing .dashboard-presence-pill {
  border-color: rgba(58, 224, 255, 0.62);
  color: #9eedff;
}

.dashboard-friend-card.is-online .dashboard-presence-pill i,
.dashboard-friend-card.is-playing .dashboard-presence-pill i {
  background: #53e6ff;
  box-shadow: 0 0 8px rgba(58, 224, 255, 0.72);
}

.dashboard-friend-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34em;
}

.dashboard-friend-actions button {
  min-height: 1.95em;
  border: 1px solid rgba(58, 224, 255, 0.3);
  border-radius: 5px;
  padding: 0.2em 0.45em;
  background: rgba(4, 7, 23, 0.64);
  color: rgba(237, 247, 255, 0.68);
  font: inherit;
  font-size: 0.7em;
  font-weight: 950;
  text-align: center;
  cursor: pointer;
}

.dashboard-friend-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.dashboard-friend-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.38em;
}

.dashboard-friend-request-row span {
  display: grid;
  gap: 0.1em;
}

.dashboard-friend-request-row em {
  overflow: hidden;
  color: rgba(207, 238, 255, 0.78);
  font-size: 0.74em;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-friend-request-row button {
  min-height: 2em;
  min-width: 3.4em;
  border: 1px solid rgba(58, 224, 255, 0.34);
  border-radius: 5px;
  background: rgba(4, 7, 23, 0.72);
  color: #edf7ff;
  font: inherit;
  font-size: 0.78em;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-friend-list,
.dashboard-notification-list,
.dashboard-admin-list {
  display: grid;
  width: 100%;
  min-height: 0;
  min-width: 0;
  max-height: 100%;
  align-content: start;
  gap: 0.55em;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.25em;
  scrollbar-color: rgba(190, 78, 255, 0.68) rgba(7, 5, 19, 0.18);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.dashboard-friend-list:has(.dashboard-empty-state:only-child),
.dashboard-notification-list:has(.dashboard-empty-state:only-child),
.dashboard-admin-list:has(.dashboard-empty-state:only-child) {
  align-content: center;
}

.dashboard-friend-list::-webkit-scrollbar,
.dashboard-notification-list::-webkit-scrollbar,
.dashboard-admin-list::-webkit-scrollbar {
  width: 0.42em;
}

.dashboard-friend-list::-webkit-scrollbar-track,
.dashboard-notification-list::-webkit-scrollbar-track,
.dashboard-admin-list::-webkit-scrollbar-track {
  background: rgba(7, 5, 19, 0.18);
  border-radius: 999px;
}

.dashboard-friend-list::-webkit-scrollbar-thumb,
.dashboard-notification-list::-webkit-scrollbar-thumb,
.dashboard-admin-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(47, 226, 255, 0.78), rgba(190, 78, 255, 0.8));
  box-shadow: 0 0 8px rgba(190, 78, 255, 0.42);
}

.dashboard-admin-content {
  inset: 31.5% 17% 18% 20.6%;
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr) auto;
}

.dashboard-notifications-content {
  inset: 32% 17% 20% 20.6%;
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.dashboard-modal-open {
  overflow: hidden;
}

.dashboard-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(3, 2, 12, 0.72);
  backdrop-filter: blur(8px);
}

.dashboard-modal-backdrop[hidden] {
  display: none;
}

.dashboard-settings-modal {
  position: relative;
  width: min(92vw, 430px);
  border: 1px solid rgba(58, 224, 255, 0.44);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(188, 79, 255, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(20, 10, 45, 0.96), rgba(4, 6, 20, 0.98));
  box-shadow:
    inset 0 0 22px rgba(34, 218, 255, 0.08),
    0 0 28px rgba(185, 70, 255, 0.24),
    0 26px 50px rgba(0, 0, 0, 0.62);
  color: #edf7ff;
}

.dashboard-settings-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 7, 24, 0.42);
  cursor: pointer;
}

.dashboard-settings-close::before,
.dashboard-settings-close::after {
  content: "";
  position: absolute;
  left: 28%;
  right: 28%;
  top: 49%;
  height: 2px;
  border-radius: 999px;
  background: rgba(247, 232, 255, 0.84);
  box-shadow: 0 0 8px rgba(197, 82, 255, 0.8);
}

.dashboard-settings-close::before {
  transform: rotate(45deg);
}

.dashboard-settings-close::after {
  transform: rotate(-45deg);
}

.dashboard-settings-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem;
}

.dashboard-settings-form h2 {
  margin: 0 2rem 0.25rem 0;
  color: #ffffff;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.dashboard-settings-form label,
.dashboard-settings-form fieldset {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.dashboard-settings-form label[hidden] {
  display: none;
}

.dashboard-settings-form label span,
.dashboard-settings-form legend {
  color: rgba(221, 238, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-settings-form input[type="text"],
.dashboard-settings-form select,
.dashboard-settings-form textarea {
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid rgba(58, 224, 255, 0.38);
  border-radius: 6px;
  background: rgba(4, 7, 23, 0.78);
  color: #edf7ff;
  font: inherit;
  font-weight: 850;
  outline: 0;
  padding: 0.55rem 0.72rem;
  box-shadow: inset 0 0 14px rgba(34, 218, 255, 0.08);
}

.dashboard-settings-form textarea {
  min-height: 7.4rem;
  line-height: 1.35;
  resize: vertical;
}

.dashboard-social-action-modal {
  width: min(92vw, 480px);
}

.dashboard-social-action-form {
  max-height: min(86vh, 680px);
}

.dashboard-social-conversation {
  min-height: 0;
}

.dashboard-social-conversation[hidden] {
  display: none;
}

.dashboard-social-conversation-list {
  display: grid;
  min-height: 9rem;
  max-height: min(36vh, 16rem);
  align-content: start;
  gap: 0.55rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.55rem;
  border: 1px solid rgba(58, 224, 255, 0.24);
  border-radius: 7px;
  background: rgba(3, 6, 20, 0.54);
  scrollbar-color: rgba(190, 78, 255, 0.68) rgba(7, 5, 19, 0.18);
  scrollbar-width: thin;
}

.dashboard-social-conversation-list:has(.dashboard-empty-state:only-child) {
  align-content: center;
}

.dashboard-social-conversation-list::-webkit-scrollbar {
  width: 0.42rem;
}

.dashboard-social-conversation-list::-webkit-scrollbar-track {
  background: rgba(7, 5, 19, 0.18);
  border-radius: 999px;
}

.dashboard-social-conversation-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(47, 226, 255, 0.78), rgba(190, 78, 255, 0.8));
}

.dashboard-chat-message {
  display: grid;
  max-width: 88%;
  gap: 0.22rem;
  padding: 0.48rem 0.58rem;
  border: 1px solid rgba(58, 224, 255, 0.24);
  border-radius: 7px;
  background: rgba(8, 10, 30, 0.78);
  color: #edf7ff;
  line-height: 1.25;
}

.dashboard-chat-message.is-outgoing {
  justify-self: end;
  border-color: rgba(255, 207, 98, 0.38);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 207, 98, 0.14), transparent 55%),
    rgba(26, 14, 42, 0.84);
}

.dashboard-chat-message.is-incoming {
  justify-self: start;
}

.dashboard-chat-message header {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.dashboard-chat-message strong,
.dashboard-chat-message time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-chat-message strong {
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 950;
}

.dashboard-chat-message time {
  color: rgba(207, 238, 255, 0.66);
  font-size: 0.64rem;
  font-weight: 800;
}

.dashboard-chat-message p {
  overflow-wrap: anywhere;
  color: rgba(237, 247, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 750;
}

.dashboard-social-action-form textarea {
  min-height: 5.2rem;
  resize: none;
}

.dashboard-settings-form input[type="text"]:focus,
.dashboard-settings-form select:focus,
.dashboard-settings-form textarea:focus {
  border-color: rgba(40, 224, 255, 0.82);
  box-shadow: 0 0 12px rgba(40, 224, 255, 0.2), inset 0 0 14px rgba(34, 218, 255, 0.1);
}

.dashboard-settings-form input[readonly] {
  color: rgba(207, 238, 255, 0.72);
  cursor: default;
  opacity: 0.82;
}

.dashboard-avatar-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.dashboard-avatar-choice {
  position: relative;
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.25rem;
  border: 1px solid rgba(58, 224, 255, 0.26);
  border-radius: 6px;
  background: rgba(4, 7, 23, 0.58);
  cursor: pointer;
}

.dashboard-avatar-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dashboard-avatar-choice span {
  display: grid;
  width: 2.1rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(135, 74, 255, 0.62);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(75, 220, 255, 0.32), transparent 58%),
    radial-gradient(circle, rgba(105, 35, 170, 0.72), rgba(6, 4, 18, 0.92));
  color: #f5edff;
  font-size: 0.68rem;
  font-weight: 950;
}

.dashboard-avatar-choice strong {
  max-width: 100%;
  overflow: hidden;
  color: rgba(221, 238, 255, 0.78);
  font-size: 0.58rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-avatar-choice:has(input:checked) {
  border-color: rgba(255, 207, 98, 0.62);
  box-shadow: 0 0 12px rgba(255, 207, 98, 0.16), inset 0 0 14px rgba(34, 218, 255, 0.08);
}

.dashboard-settings-message {
  min-height: 1.3rem;
  margin: 0;
  color: rgba(255, 206, 213, 0.9);
  font-size: 0.78rem;
  font-weight: 850;
}

.dashboard-settings-message.success {
  color: #9eedff;
}

.dashboard-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.dashboard-settings-actions button {
  min-height: 2.45rem;
  min-width: 6.8rem;
  border: 1px solid rgba(58, 224, 255, 0.38);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(25, 10, 48, 0.82), rgba(5, 7, 22, 0.92)),
    radial-gradient(circle at 50% 0%, rgba(193, 93, 255, 0.18), transparent 68%);
  color: #edf7ff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-game-panel {
  left: var(--dashboard-game-panel-left);
  top: var(--dashboard-game-panel-top);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, var(--dashboard-game-tile-width)));
  width: var(--dashboard-game-panel-width);
  height: var(--dashboard-game-panel-height);
  align-content: start;
  align-items: start;
  justify-content: center;
  column-gap: clamp(22px, 3.1%, 54px);
  row-gap: clamp(18px, 3.6%, 38px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-block: contain;
  padding: 0.4% 1.1% 1.6%;
  line-height: normal;
  scrollbar-width: thin;
  scrollbar-color: rgba(173, 72, 255, 0.72) rgba(4, 8, 30, 0.18);
}

.dashboard-game-panel::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.dashboard-game-panel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(4, 8, 30, 0.18);
}

.dashboard-game-panel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(4, 8, 30, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(226, 121, 255, 0.84), rgba(43, 215, 255, 0.68));
}

.dashboard-game-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1122 / 1402;
  min-width: 0;
  line-height: 0;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.54));
  transition: transform 150ms ease, filter 150ms ease;
}

button.dashboard-game-tile {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.dashboard-game-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.dashboard-game-tile[href]:hover,
button.dashboard-game-tile:hover {
  transform: translateY(-1.2%) scale(1.02);
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.58)) saturate(1.06);
}

.dashboard-game-tile[href]:active,
button.dashboard-game-tile:active {
  transform: translateY(0.8%) scale(0.99);
}

button.dashboard-game-tile:focus-visible {
  outline: 2px solid rgba(87, 224, 255, 0.94);
  outline-offset: 4px;
}

button.dashboard-game-tile:disabled {
  cursor: wait;
}

button.dashboard-game-tile.is-loading {
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.58)) saturate(0.9);
}

.dashboard-disabled-tile {
  pointer-events: none;
}

.dashboard-game-launch-message {
  position: absolute;
  left: 50%;
  bottom: 0.12rem;
  z-index: 2;
  width: min(90%, 34rem);
  min-height: 1.25rem;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 220, 230, 0.94);
  font-size: clamp(0.65rem, 0.72vw, 0.82rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.92);
  pointer-events: none;
}

.dashboard-game-launch-message.success {
  color: #9eedff;
}

.dashboard-game-launch-message:empty {
  display: none;
}

.play-page {
  display: grid;
  height: 100vh;
  height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #111827;
}

.play-header {
  min-height: 68px;
  color: var(--ink);
}

.play-header > div {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.play-header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.play-header strong {
  font-size: 1.25rem;
  line-height: 1;
}

.play-shell {
  min-height: 0;
  overflow: hidden;
}

.play-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.play-page .dashboard-popout {
  position: fixed;
  left: auto;
  right: clamp(8px, 2vw, 18px);
  top: clamp(72px, 9vh, 92px);
  width: min(390px, calc(100vw - 16px));
  aspect-ratio: 4 / 5;
}

.play-page .dashboard-social-content {
  inset: 31.5% 15% 13% 17.2%;
}

.play-page .dashboard-party-popout {
  position: fixed;
  left: auto;
  right: clamp(8px, 1vw, 18px);
  top: clamp(78px, 13vh, 124px);
  width: clamp(420px, 26vw, 540px);
}

.admin-shell {
  width: min(1260px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 34px);
}

.admin-gate {
  margin: min(10vh, 80px) auto 0;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-topbar,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card,
.admin-section {
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat-card {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stat-card strong {
  font-size: 2rem;
  line-height: 1;
}

.admin-section {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.admin-section h2 {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-row.compact {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.row-main strong {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.row-main span,
.row-main time,
.outbox-body,
.empty-state {
  color: #4d566f;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.approve-button {
  background: #dcffe7;
}

.pending-button {
  background: #fff3bd;
}

.deny-button {
  background: #ffe4e4;
}

.outbox-body {
  white-space: pre-wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 6px 8px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #f4f7ff;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.status-approved {
  background: #dcffe7;
}

.status-pending {
  background: #fff3bd;
}

.status-denied {
  background: #ffe4e4;
}

.log-table {
  display: grid;
  gap: 6px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.log-row {
  display: grid;
  grid-template-columns: 170px 170px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.9rem;
}

.log-row span {
  overflow-wrap: anywhere;
}

.document-panel {
  width: min(100%, 760px);
}

.document-panel {
  line-height: 1.5;
}

.document-panel p {
  color: #30364d;
  font-weight: 750;
}

.layout-editor-page {
  overflow: hidden;
}

.layout-canvas .layout-editable {
  outline: 2px dashed rgba(40, 215, 255, 0.78);
  outline-offset: 6px;
  cursor: move;
  touch-action: none;
}

.login-layout-editor-page .login-piece[data-login-layout-item] {
  outline: 2px dashed rgba(40, 215, 255, 0.78);
  outline-offset: 6px;
  cursor: move;
  touch-action: none;
}

.account-layout-editor-page .account-piece[data-account-layout-item] {
  outline: 2px dashed rgba(40, 215, 255, 0.78);
  outline-offset: 6px;
  cursor: move;
  touch-action: none;
}

.reset-layout-editor-page .reset-piece[data-reset-layout-item] {
  outline: 2px dashed rgba(40, 215, 255, 0.78);
  outline-offset: 6px;
  cursor: move;
  touch-action: none;
}

.dashboard-layout-editor-page .dashboard-piece[data-dashboard-layout-item] {
  outline: 2px dashed rgba(40, 215, 255, 0.78);
  outline-offset: 6px;
  cursor: move;
  pointer-events: auto;
  touch-action: none;
}

.dashboard-layout-editor-page .dashboard-disabled-tile {
  pointer-events: auto;
}

.dashboard-layout-editor-page,
.dashboard-layout-editor-page .dashboard-shell,
.dashboard-layout-editor-page .dashboard-canvas {
  overflow: visible;
}

.layout-canvas .layout-editable.is-selected,
.login-layout-editor-page .login-piece.is-selected,
.account-layout-editor-page .account-piece.is-selected,
.reset-layout-editor-page .reset-piece.is-selected,
.dashboard-layout-editor-page .dashboard-piece.is-selected {
  outline-color: #ffe44f;
}

.login-layout-editor-page .login-panel-frame {
  pointer-events: auto;
}

.login-layout-editor-page .login-art-form,
.login-layout-editor-page .login-field,
.login-layout-editor-page .login-image-button,
.login-layout-editor-page .login-create-button,
.login-layout-editor-page .login-forgot-button,
.login-layout-editor-page .login-rad-emblem {
  pointer-events: auto;
}

.login-layout-editor-page .login-field input {
  pointer-events: none;
}

.login-layout-editor-page .field-art {
  pointer-events: auto;
}

.account-layout-editor-page .account-panel,
.account-layout-editor-page .account-arc-divider,
.account-layout-editor-page .account-placeholder,
.account-layout-editor-page .account-input-wrap,
.account-layout-editor-page .account-eye-toggle,
.account-layout-editor-page .account-image-button,
.account-layout-editor-page .account-back-link,
.account-layout-editor-page .account-message {
  pointer-events: auto;
}

.account-layout-editor-page .account-input-wrap input {
  pointer-events: none;
}

.account-layout-editor-page .account-message::before {
  content: "Status message";
  display: grid;
  min-height: 1.8em;
  place-items: center;
  border: 2px dashed rgba(255, 228, 79, 0.82);
  border-radius: 4px;
  background: rgba(40, 215, 255, 0.12);
  color: #ffe44f;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.82);
}

.reset-layout-editor-page .reset-panel,
.reset-layout-editor-page .reset-placeholder,
.reset-layout-editor-page .reset-input-wrap,
.reset-layout-editor-page .reset-eye-toggle,
.reset-layout-editor-page .reset-image-button,
.reset-layout-editor-page .reset-back-link,
.reset-layout-editor-page .reset-message {
  pointer-events: auto;
}

.reset-layout-editor-page .reset-message::before {
  content: "Status message";
  display: grid;
  min-height: 1.8em;
  place-items: center;
  border: 2px dashed rgba(255, 228, 79, 0.82);
  border-radius: 4px;
  background: rgba(40, 215, 255, 0.12);
  color: #ffe44f;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.82);
}

.reset-layout-editor-page .reset-art-form {
  pointer-events: auto;
}

.reset-layout-editor-page .reset-input-wrap input {
  pointer-events: none;
}

.layout-resize-handle {
  position: absolute;
  right: -12px;
  bottom: -12px;
  z-index: 5;
  width: 22px;
  height: 22px;
  border: 3px solid #111325;
  border-radius: 50%;
  background: #ffe44f;
  box-shadow: 0 0 18px rgba(40, 215, 255, 0.75);
  cursor: nwse-resize;
}

.layout-editor-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
  display: grid;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  gap: 12px;
  overflow: auto;
  padding: 16px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 0 12px 0 rgba(21, 22, 34, 0.2), 0 24px 44px rgba(0, 0, 0, 0.28);
  color: var(--ink);
}

.layout-editor-panel h2 {
  font-size: 1.5rem;
}

.layout-editor-panel-header {
  margin: -4px -4px 0;
  padding: 4px;
  border-radius: 6px;
  cursor: move;
  touch-action: none;
  user-select: none;
}

.layout-editor-panel-header:active {
  cursor: grabbing;
}

.layout-editor-panel.is-dragging {
  opacity: 0.94;
}

.layout-editor-panel select,
.layout-editor-panel textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.layout-editor-panel textarea {
  min-height: 210px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
}

.layout-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.layout-note {
  color: #394156;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
}

.layout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 760px) {
  .layout-editor-page {
    overflow: auto;
  }

  .layout-editor-panel {
    position: static;
    width: auto;
    max-height: none;
    margin: 12px;
  }
}

@media (max-width: 980px) {
  .home-page {
    --home-logo-left: 7%;
    --home-logo-top: 5%;
    --home-logo-width: 27.1%;
    --home-tagline-left: 9.5%;
    --home-tagline-top: 45%;
    --home-tagline-width: 22.4%;
    --home-enter-left: 20.8%;
    --home-enter-top: 80%;
    --home-enter-width: 20%;
  }

  .login-page {
    --login-panel-left: 35%;
    --login-panel-top: 7.5%;
    --login-panel-width: 33.2%;
    --login-logo-left: 41.4%;
    --login-logo-top: 5.3%;
    --login-logo-width: 20%;
    --login-email-left: 41.5%;
    --login-email-top: 34%;
    --login-email-width: 20%;
    --login-password-left: 41.5%;
    --login-password-top: 42%;
    --login-password-width: 20%;
    --login-button-left: 41.5%;
    --login-button-top: 49%;
    --login-button-width: 20%;
    --login-or-left: 39%;
    --login-or-top: 59%;
    --login-or-width: 25%;
    --login-create-left: 41%;
    --login-create-top: 66%;
    --login-create-width: 21.4%;
    --login-forgot-left: 39%;
    --login-forgot-top: 71%;
    --login-forgot-width: 25%;
  }

  .home-hero {
    grid-template-columns: 1fr;
    align-content: start;
    background-position: 58% center;
  }

  .brand-stack {
    margin: 0 auto;
  }

  .game-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-preview {
    grid-template-columns: 1fr;
  }

  .social-chips {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .rad-corner-actions {
    left: min(calc(100vw - 9rem - 8px), 242px);
    right: auto;
    bottom: 8px;
    width: 8.8rem;
    gap: 6px;
    justify-items: stretch;
  }

  .rad-corner-action {
    width: 8.8rem;
    min-width: 8.8rem;
    min-height: 2.15rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.72rem;
  }

  .home-page {
    --home-logo-left: 7%;
    --home-logo-top: 5%;
    --home-logo-width: 27.1%;
    --home-tagline-left: 9.5%;
    --home-tagline-top: 45%;
    --home-tagline-width: 22.4%;
    --home-enter-left: 20.8%;
    --home-enter-top: 80%;
    --home-enter-width: 20%;
  }

  .login-page {
    --login-panel-left: 35%;
    --login-panel-top: 7.5%;
    --login-panel-width: 33.2%;
    --login-logo-left: 41.4%;
    --login-logo-top: 5.3%;
    --login-logo-width: 20%;
    --login-email-left: 41.5%;
    --login-email-top: 34%;
    --login-email-width: 20%;
    --login-password-left: 41.5%;
    --login-password-top: 42%;
    --login-password-width: 20%;
    --login-button-left: 41.5%;
    --login-button-top: 49%;
    --login-button-width: 20%;
    --login-or-left: 39%;
    --login-or-top: 59%;
    --login-or-width: 25%;
    --login-create-left: 41%;
    --login-create-top: 66%;
    --login-create-width: 21.4%;
    --login-forgot-left: 39%;
    --login-forgot-top: 71%;
    --login-forgot-width: 25%;
  }

  .login-field input {
    padding: 0 3%;
    font-size: clamp(0.92rem, 3vh, 1.24rem);
  }

  .login-message {
    top: calc(var(--login-password-top) + 5.2%);
    font-size: 0.78rem;
  }

  .home-stage {
    padding: 0;
  }

  .home-hero {
    min-height: 100vh;
    padding: 38px 14px 28px;
    background-position: 58% center;
  }

  .home-hero::before {
    inset: 0;
  }

  .brand-stack {
    gap: 12px;
  }

  .tagline-panel p {
    width: 72%;
    font-size: clamp(0.76rem, 4vw, 1rem);
  }

  .stack-form.two-column,
  .game-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .app-header,
  .play-header,
  .admin-topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .mini-logo {
    grid-template-columns: 50px auto;
  }

  .mini-logo span {
    width: 50px;
    height: 50px;
  }

  .game-portal,
  .coming-portal {
    min-height: 280px;
  }

  .admin-row,
  .admin-row.compact {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .log-row {
    grid-template-columns: 1fr;
  }

  .play-header {
    height: 118px;
  }

  .play-shell {
    height: calc(100vh - 118px);
  }
}

@media (max-aspect-ratio: 14 / 9), (max-width: 900px) {
  .dashboard-page {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: auto;
  }

  .dashboard-page .dashboard-shell {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    place-items: center;
    overflow: auto;
  }

  .dashboard-page .dashboard-canvas {
    display: grid;
    width: min(1120px, 100%);
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    grid-template-areas:
      "logo logo controls controls"
      "panel panel panel panel"
      "tiles tiles tiles tiles";
    align-content: center;
    align-items: center;
    gap: clamp(10px, 2vw, 24px);
    overflow: visible;
    padding: clamp(10px, 2.5vw, 28px);
  }

  .dashboard-page .dashboard-piece {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
  }

  .dashboard-page .dashboard-logo {
    grid-area: logo;
    justify-self: start;
    width: min(240px, 24vw);
  }

  .dashboard-page .dashboard-top-controls {
    grid-area: controls;
    justify-self: end;
    width: min(100%, 560px);
  }

  .dashboard-page .dashboard-game-panel {
    grid-area: tiles;
    justify-self: stretch;
    grid-template-columns: repeat(3, minmax(0, min(245px, 27vw)));
    width: 100%;
    height: clamp(250px, 34vw, 380px);
    min-height: 0;
    column-gap: clamp(14px, 2vw, 24px);
    row-gap: clamp(16px, 2.8vw, 28px);
    padding: 0 0 0.8rem;
  }

  .dashboard-page .dashboard-game-tile {
    flex: 0 0 min(245px, 27vw);
  }

  .dashboard-page .dashboard-popout {
    position: relative;
    left: auto;
    top: auto;
    grid-area: panel;
    justify-self: center;
    width: min(360px, 92vw);
  }

  .dashboard-page .dashboard-party-popout {
    position: fixed;
    left: 50%;
    top: clamp(86px, 12vh, 124px);
    width: min(430px, calc(100vw - 18px));
    transform: translateX(-50%);
  }
}

@media (max-width: 780px), (max-aspect-ratio: 4 / 3) {
  .dashboard-page .dashboard-canvas {
    width: min(720px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "logo logo"
      "controls controls"
      "panel panel"
      "tiles tiles";
    align-content: start;
    gap: clamp(10px, 3vw, 18px);
  }

  .dashboard-page .dashboard-logo {
    justify-self: center;
    width: min(260px, 64vw);
  }

  .dashboard-page .dashboard-top-controls {
    justify-self: center;
    width: min(560px, 92vw);
  }

  .dashboard-page .dashboard-game-panel {
    min-height: clamp(245px, 43vw, 360px);
  }

  .dashboard-page .dashboard-game-tile {
    flex-basis: min(260px, 42vw);
  }
}

@media (max-width: 780px), (pointer: coarse) {
  .dashboard-page .dashboard-game-panel {
    display: flex;
    height: auto;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(14px, 2vw, 24px);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .dashboard-page .dashboard-game-panel::-webkit-scrollbar {
    display: none;
  }

  .dashboard-page .dashboard-game-tile {
    flex: 0 0 min(260px, 42vw);
    width: auto;
  }
}

@media (max-width: 520px) {
  .dashboard-page .dashboard-canvas {
    width: min(420px, 100%);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "logo"
      "controls"
      "panel"
      "tiles";
    padding: clamp(8px, 3vw, 14px);
  }

  .dashboard-page .dashboard-logo {
    width: min(230px, 74vw);
  }

  .dashboard-page .dashboard-top-controls {
    width: min(360px, 92vw);
  }

  .dashboard-page .dashboard-party-popout {
    top: 6px;
    height: calc(100vh - 12px);
    height: calc(100dvh - 12px);
    aspect-ratio: auto;
    background-size: 100% 100%;
  }

  .dashboard-page .dashboard-game-panel {
    min-height: min(74vw, 330px);
  }

  .dashboard-page .dashboard-game-tile {
    flex-basis: min(260px, 74vw);
  }

  .dashboard-page .dashboard-notifications-popout {
    width: min(390px, 96vw);
  }

  .dashboard-page .dashboard-notifications-content {
    inset: 29% 13.8% 12.5% 16%;
    gap: 0.42em;
    font-size: 0.66rem;
  }

  .dashboard-notification-list {
    gap: 0.38em;
    padding-right: 0.12em;
  }

  .dashboard-notification-row {
    width: 96%;
    min-height: 4.65em;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2em;
    padding: 0.4em 0.5em 0.46em;
  }

  .dashboard-notification-copy strong {
    font-size: 0.86em;
  }

  .dashboard-notification-copy em {
    font-size: 0.74em;
    line-height: 1.18;
    -webkit-line-clamp: 2;
  }

  .dashboard-notification-meta {
    grid-template-columns: auto auto;
    justify-content: space-between;
    justify-items: start;
    gap: 0.34em;
  }

  .dashboard-notification-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.28em;
  }

  .dashboard-notification-action {
    min-height: 2em;
    padding: 0.2em 0.3em;
    font-size: 0.68em;
  }

  .dashboard-notification-tools {
    width: 96%;
    gap: 0.3em;
  }

  .dashboard-notification-tools .dashboard-panel-action {
    min-height: 2em;
    padding-inline: 0.25em;
    font-size: 0.7em;
  }

  .dashboard-notification-message {
    min-height: 1em;
    font-size: 0.68em;
    line-height: 1.15;
  }

  .dashboard-page .dashboard-social-popout {
    width: min(390px, 96vw);
  }

  .dashboard-page .dashboard-social-content {
    inset: 29.5% 13.8% 12.5% 16%;
    gap: 0.44em;
    font-size: 0.66rem;
  }

  .dashboard-social-request {
    width: 96%;
    gap: 0.3em;
  }

  .dashboard-social-search,
  .dashboard-social-add {
    min-height: 2.2em;
    padding: 0.34em 0.48em;
  }

  .dashboard-party-panel {
    width: 92%;
    gap: 0.22em;
    padding: 0.3em 0.38em;
  }

  .dashboard-party-actions {
    gap: 0.28em;
  }

  .dashboard-party-actions button {
    min-height: 1.9em;
    padding: 0.18em 0.28em;
    font-size: 0.66em;
  }

  .dashboard-party-popout-content {
    inset: 23.5% 18% 10% 18.5%;
    grid-template-rows: auto minmax(8rem, 0.9fr) auto minmax(9rem, 1.1fr);
    gap: 0.3rem;
    padding: 0;
    font-size: 0.66rem;
  }

  .dashboard-party-popout-content header {
    padding-right: 2rem;
  }

  .dashboard-party-member-list {
    max-height: none;
  }

  .dashboard-party-member {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.35rem;
    padding: 0.4rem 0.46rem;
  }

  .dashboard-party-member-status {
    justify-self: end;
    padding: 0.16rem 0.32rem;
    font-size: 0.52rem;
  }

  .dashboard-party-popout .dashboard-party-chat-list {
    min-height: 0;
    max-height: none;
  }

  .dashboard-friend-list {
    gap: 0.38em;
    padding-right: 0.12em;
  }

  .dashboard-friend-card {
    width: 96%;
    min-height: 6em;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.28em 0.44em;
    padding: 0.44em 0.5em 0.5em;
  }

  .dashboard-friend-avatar {
    width: 2.55em;
  }

  .dashboard-friend-presence {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .dashboard-presence-pill {
    justify-content: center;
    font-size: 0.62em;
  }

  .dashboard-friend-actions {
    gap: 0.28em;
  }

  .dashboard-friend-actions button {
    min-height: 2em;
    padding: 0.2em 0.3em;
    font-size: 0.68em;
  }

  .dashboard-social-message {
    min-height: 1em;
    font-size: 0.68em;
    line-height: 1.15;
  }

  .dashboard-social-action-modal {
    width: min(94vw, 370px);
  }

  .dashboard-social-action-form {
    max-height: 86vh;
    gap: 0.62rem;
    padding: 1rem;
  }

  .dashboard-social-conversation-list {
    min-height: 7.5rem;
    max-height: 28vh;
    padding: 0.45rem;
  }

  .dashboard-chat-message {
    max-width: 94%;
    padding: 0.42rem 0.5rem;
  }

  .dashboard-chat-message header {
    gap: 0.4rem;
  }

  .dashboard-chat-message strong {
    font-size: 0.7rem;
  }

  .dashboard-chat-message time {
    font-size: 0.58rem;
  }

  .dashboard-chat-message p {
    font-size: 0.76rem;
  }

  .dashboard-social-action-form textarea {
    min-height: 4.5rem;
  }
}

@media (max-width: 680px), (max-aspect-ratio: 3 / 4) {
  .home-page,
  .home-stage,
  .home-hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .home-page {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .home-page:not(.layout-editor-page) .home-hero {
    overflow-x: hidden;
    display: grid;
    padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background-position: 61% center;
  }

  .home-page:not(.layout-editor-page) .brand-stack {
    position: relative;
    left: auto;
    top: auto;
    display: grid;
    width: 100%;
    height: auto;
    min-height: calc(100dvh - 42px);
    grid-template-rows: auto auto minmax(32px, 1fr) auto;
    justify-items: center;
    align-content: stretch;
    gap: clamp(14px, 3vh, 26px);
  }

  .home-page:not(.layout-editor-page) .home-logo,
  .home-page:not(.layout-editor-page) .tagline-panel,
  .home-page:not(.layout-editor-page) .enter-button {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }

  .home-page:not(.layout-editor-page) .home-logo {
    width: min(76vw, 360px);
    margin-top: 2vh;
  }

  .home-page:not(.layout-editor-page) .tagline-panel {
    width: min(80vw, 360px);
  }

  .home-page:not(.layout-editor-page) .tagline-panel p {
    width: 72%;
    font-size: clamp(0.82rem, 4vw, 1.08rem);
  }

  .home-page:not(.layout-editor-page) .enter-button {
    align-self: end;
    width: min(72vw, 340px);
    margin-bottom: max(8vh, 54px);
  }

  .home-page:not(.layout-editor-page) .enter-button:hover,
  .home-page:not(.layout-editor-page) .enter-button:active {
    transform: none;
  }
}

@media (max-width: 680px) {
  .login-page:not(.login-layout-editor-page) .login-canvas,
  .account-page:not(.account-layout-editor-page) .account-canvas,
  .reset-page:not(.reset-layout-editor-page) .reset-canvas {
    left: 50%;
    top: 50%;
    width: 200vh;
    height: 100vh;
    height: 100dvh;
    transform: translate(-50%, -50%) scale(0.6);
    transform-origin: center;
  }

  .account-page:not(.account-layout-editor-page) .account-input-wrap input,
  .reset-page:not(.reset-layout-editor-page) .reset-input-wrap input {
    font-size: clamp(0.72rem, 3.3vw, 1rem);
  }

  .play-page {
    height: 100vh;
    height: 100dvh;
  }

  .play-header {
    display: grid;
    min-height: 52px;
    height: auto;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left));
    border-bottom-width: 2px;
  }

  .play-header > div {
    justify-items: center;
  }

  .play-header span {
    display: none;
  }

  .play-header strong {
    overflow: hidden;
    max-width: 100%;
    font-size: 0.92rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .play-header .small-button {
    min-height: 36px;
    padding: 6px 7px;
    border-width: 2px;
    border-radius: 6px;
    font-size: 0.68rem;
    box-shadow: none;
  }

  .play-page .dashboard-popout {
    top: 58px;
    right: 4px;
    width: min(390px, calc(100vw - 8px));
  }

  .play-page .dashboard-party-popout {
    top: 58px;
    right: 4px;
    width: min(430px, calc(100vw - 8px));
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    aspect-ratio: auto;
    background-size: 100% 100%;
  }

  .play-page .dashboard-social-content {
    inset: 29.5% 13.8% 12.5% 16%;
  }

  .play-shell {
    height: auto;
    min-height: 0;
  }
}

@media (min-width: 481px) and (max-width: 680px) {
  .login-page:not(.login-layout-editor-page) .login-canvas,
  .account-page:not(.account-layout-editor-page) .account-canvas,
  .reset-page:not(.reset-layout-editor-page) .reset-canvas {
    transform: translate(-50%, -50%) scale(0.72);
  }
}
