@font-face {
  font-family: Jakarta;
  src: url("/assets/fonts/plus-jakarta-sans-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Chakra;
  src: url("/assets/fonts/chakra-petch-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0f0d1f;
  --panel: #1a1730;
  --raised: #25213f;
  --fg: #efefff;
  --muted: #b4b1ca;
  --line: #ffffff12;
  --cyan: #22d3f5;
  --blue: #2f7dff;
  --brand: linear-gradient(110deg, #ac4200, #b51555 48%, #970ca8);
  --rail: 64px;
  --header: 64px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    13px/1.6 Jakarta,
    system-ui,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  cursor: pointer;
  background: none;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
button:hover:not(:disabled),
a:hover {
  color: #fff;
}
button:active:not(:disabled) {
  transform: scale(0.98);
}
[hidden] {
  display: none !important;
}
svg {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.04em;
}
h1 {
  font-size: 32px;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 16px;
}
p {
  margin: 10px 0;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 120;
  background: var(--cyan);
  color: var(--bg);
  padding: 12px;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.shell {
  margin-left: var(--rail);
}
header {
  height: var(--header);
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 16px 0 4px;
  background: #0f0d1ff5;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
}
.brand img {
  height: 46px;
  width: auto;
  object-fit: contain;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(474px, 40vw);
  height: 44px;
  padding: 0 16px;
  background: #37304e;
  border-radius: 99px;
}
.search > span {
  font-size: 28px;
  line-height: 1;
}
.search input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  font-size: 12px;
}
.search input::placeholder {
  color: #c1bbd6;
}
.search:focus-within {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.search kbd {
  display: none;
}
.search button {
  width: 32px;
  min-height: 32px;
  font-size: 22px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel);
  font-size: 27px;
  display: inline-grid;
  place-items: center;
  position: relative;
}
.mobile-menu {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 44px;
  background: none;
  font-size: 22px;
  z-index: 60;
}
.balance {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  background: #272436;
  border: 1px solid #e6ca6a44;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}
.balance img {
  width: 20px;
  height: 20px;
}
.balance #header-streak {
  color: #ffe08d;
  border-left: 1px solid #ffffff30;
  padding-left: 7px;
}
.avatar {
  height: 44px;
  min-width: 76px;
  border-radius: 99px;
  background: var(--brand);
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar.signed-in {
  min-width: 44px;
  width: 44px;
  padding: 0;
  overflow: hidden;
  background: var(--raised);
  border: 1px solid var(--cyan);
}
.header-right .avatar.guest-signin {
  width: auto;
  min-width: 76px;
  flex: none;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  white-space: nowrap;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.notification {
  font-size: 22px;
}
.notification i {
  position: absolute;
  right: 7px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}
.search-open {
  display: none;
}
#sidebar {
  position: fixed;
  top: 64px;
  bottom: 0;
  left: 0;
  width: 64px;
  padding: 12px 8px;
  z-index: 40;
  background: var(--bg);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  max-width: var(--rail);
  scrollbar-width: none;
  transition: width 0.18s;
}
#nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#nav > button {
  min-height: 44px;
  width: 100%;
  display: flex;
  gap: 18px;
  align-items: center;
  text-align: left;
  padding: 10px 13px;
  border-radius: 12px;
  color: #b6a7ff;
  white-space: nowrap;
}
#nav > button:nth-child(3n) {
  color: #ff86cb;
}
#nav > button:nth-child(4n) {
  color: #ffce5b;
}
#nav > button:nth-child(5n) {
  color: #75f9d7;
}
#nav > button.active {
  background: #292142;
  color: var(--cyan);
}
#nav > button span {
  display: none;
  font-size: 12px;
}
#nav > button svg {
  width: 20px;
  height: 20px;
}
.side-bottom,
.drawer-brand,
#menu-close {
  display: none;
}
.nav-expanded {
  --rail: 224px;
}
.nav-expanded #sidebar {
  width: var(--rail);
  box-shadow: 20px 0 40px #0007;
}
.nav-expanded #nav > button span {
  display: inline;
}
.nav-expanded .side-bottom {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin-top: 24px;
}
.side-bottom button {
  min-height: 44px;
  color: var(--muted);
  text-align: left;
}
#menu-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: #060410b8;
  z-index: 45;
}
main {
  max-width: 1760px;
  margin: 0 auto;
  padding: 22px 24px 36px;
  min-height: 65vh;
}
main:focus {
  outline: none;
}
.moods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.mood-card {
  position: relative;
  min-height: 110px;
  overflow: hidden;
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  background: linear-gradient(
    115deg,
    color-mix(in srgb, var(--mood) 17%, #151226),
    #1a172b
  );
  border: 1px solid #ffffff06;
}
.mood-card span {
  position: relative;
  display: block;
  padding-top: 62px;
  color: var(--mood);
  font-weight: 800;
  font-size: 13px;
}
.mood-art {
  position: absolute;
  width: 100px;
  height: 100px;
  right: 4px;
  top: 0;
  object-fit: contain;
}
.mood-card:hover {
  border-color: var(--cyan);
}
.reward-promo {
  display: flex;
  align-items: center;
  position: relative;
  gap: 24px;
  min-height: 88px;
  overflow: hidden;
  border: 1px solid #7e2299;
  border-radius: 16px;
  padding: 16px 24px 16px 140px;
  margin: 0 0 30px;
  background:
    radial-gradient(ellipse at bottom right, #86219499, transparent 70%),
    linear-gradient(115deg, #18132c, #392568 60%, #351841);
}
.promo-mascot {
  position: absolute;
  width: 150px;
  height: 112px;
  left: 10px;
  bottom: -14px;
  object-fit: contain;
}
.promo-title {
  font-family: Chakra, Jakarta, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.promo-title > span {
  color: #ffabef;
}
.promo-title small {
  display: none;
  font:
    500 12px/1.5 Jakarta,
    sans-serif;
  margin-top: 6px;
  white-space: normal;
}
.reward-promo > p {
  font-size: 12px;
  color: var(--fg);
}
.reward-promo > .primary {
  margin-left: auto;
  min-width: 108px;
  flex: none;
}
.primary,
.secondary,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  border-radius: 99px;
  padding: 11px 24px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}
.primary {
  background: var(--brand);
  color: #fff;
}
.primary:hover {
  filter: brightness(1.06);
}
.secondary {
  background: var(--raised);
  border: 1px solid #ffffff20;
}
.text-button {
  min-height: 44px;
  padding: 8px 0;
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 28px 0 16px;
}
.section-head h2 > button {
  padding: 0;
  min-height: 32px;
  text-align: left;
  font: inherit;
  letter-spacing: inherit;
}
.section-head h2 > button span {
  color: var(--muted);
  margin-left: 4px;
}
.section-head p {
  font-size: 11px;
  margin: 6px 0 0;
}
.section-head > button {
  min-height: 32px;
  color: var(--muted);
  font-size: 12px;
  flex: none;
}
.spark {
  color: var(--cyan);
  margin-left: 4px;
}
.top-games {
  position: relative;
}
.top-games > .section-head {
  margin-top: 0;
}
.top-mosaic {
  display: grid;
  grid-template-columns: 2.04fr repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.game-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 12px;
  isolation: isolate;
  background: var(--panel);
  aspect-ratio: 16/9;
  transition:
    box-shadow 0.16s,
    transform 0.16s;
}
.game-card.featured {
  grid-row: span 2;
  aspect-ratio: auto;
}
.card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
  display: block;
}
.card-art picture,
.card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-art img {
  transition: transform 0.25s;
}
.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #050612d9, transparent 60%);
}
.card-title {
  position: absolute;
  left: 10px;
  right: 8px;
  bottom: 10px;
  font-family: Chakra, Jakarta, sans-serif;
  font-size: clamp(14px, 10.5cqi, 30px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: white;
  text-shadow: 0 2px 2px #000;
  -webkit-text-stroke: 3px #080b1b;
  paint-order: stroke fill;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: normal;
  padding: 2px 0 3px;
}
.game-card[data-long="true"] .card-title {
  font-size: clamp(13px, 9cqi, 27px);
}
.featured .card-title {
  left: 18px;
  bottom: 18px;
  font-size: clamp(30px, 12.5cqi, 74px) !important;
  -webkit-text-stroke: 5px #080b1b;
}
.card-badge {
  position: absolute;
  z-index: 2;
  left: 6px;
  top: 6px;
  border-radius: 6px;
  padding: 3px 6px;
  background: #d1ff36;
  color: #182500;
  font-size: 8px;
  line-height: 1.6;
  font-weight: 800;
  pointer-events: none;
}
.card-badge.daily {
  background: #c9bdff;
  color: #241944;
}
.save {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
}
.save:before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid #ffffff55;
  background: #1c1829e8;
  border-radius: 50%;
  z-index: -1;
}
.save svg {
  width: 15px;
  height: 15px;
  color: white;
}
.save.saved svg {
  color: var(--cyan);
  fill: #22d3f533;
}
.card-hover {
  position: absolute;
  top: 38px;
  left: 10px;
  right: 10px;
  opacity: 0;
  font-size: 10px;
  text-shadow: 0 1px 4px #000;
  display: flex;
  justify-content: space-between;
}
.card-hover b {
  color: var(--cyan);
}
.rail-wrap {
  position: relative;
  min-width: 0;
}
.game-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(170px, 17.3vw, 240px);
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  padding: 2px 0 4px;
}
.game-rail > .game-card {
  scroll-snap-align: start;
  min-height: 100px;
}
.rail-arrow {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0b0a18e0;
  font-size: 30px;
  z-index: 4;
}
.top-next {
  top: 56%;
  right: -10px;
}
.themed {
  padding: 4px 16px 14px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  margin-top: 24px;
  border: 1px solid var(--line);
}
.themed .section-head {
  margin-top: 12px;
}
.theme-friends {
  background-image:
    linear-gradient(90deg, #103236e8, #211e3aa8),
    url("/assets/home/section-friends.webp");
}
.theme-brain {
  background-image:
    linear-gradient(90deg, #12313ae8, #17223ca8),
    url("/assets/home/section-brain.webp");
}
.reward-band {
  position: relative;
  padding: 20px 170px 24px 22px;
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(90deg, #39214ded, #251c35b0),
    url("/assets/home/section-rewards.webp") center/cover;
}
.reward-band .section-head {
  margin: 0;
}
.band-chest {
  position: absolute;
  width: 140px;
  height: 140px;
  right: 10px;
  top: 12px;
  object-fit: contain;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.all-games {
  margin-top: 30px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  max-width: 100%;
  padding: 4px 2px 14px;
}
.chip {
  background: var(--panel);
  border: 1px solid #ffffff20;
  padding: 9px 18px;
  flex: none;
}
.chip.active {
  background: #22d3f51a;
  color: #b8f3ff;
  border-color: var(--cyan);
}
.page-intro {
  padding: 14px 0 12px;
  margin-bottom: 16px;
}
.eyebrow {
  display: block;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.page-intro p {
  font-size: 13px;
  max-width: 72ch;
}
.page-intro h1 {
  margin: 4px 0 10px;
}
.two-col,
.three-col {
  display: grid;
  gap: 18px;
  margin: 20px 0;
}
.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.panel {
  min-width: 0;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #211b37, var(--panel));
  border: 1px solid var(--line);
  margin: 16px 0;
}
.two-col > .panel,
.three-col > .panel {
  margin: 0;
}
.panel > .section-head:first-child {
  margin-top: 0;
}
.panel > a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--cyan);
}
.panel > a.primary {
  min-height: 44px;
  color: white;
}
.panel p {
  font-size: 12px;
  line-height: 1.9;
}
.panel .game-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat strong {
  font:
    700 34px/1.3 Chakra,
    Jakarta,
    sans-serif;
}
.stat small {
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  overflow-wrap: anywhere;
}
.row:last-child {
  border-bottom: 0;
}
.row p {
  font-size: 11px;
  margin: 5px 0 0;
}
.row h3 {
  font-size: 13px;
  letter-spacing: 0;
}
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: 5px 10px;
  background: #22d3f515;
  color: #aeefff;
  font-size: 11px;
  font-weight: 700;
}
.badge {
  white-space: normal;
}
.muted,
.loading-note,
.filter-note {
  color: var(--muted);
}
.loading-note {
  font-size: 11px;
  line-height: 1.8;
}
.filter-note button {
  min-height: 44px;
  color: var(--cyan);
  text-decoration: underline;
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 26px 16px;
  min-height: 250px;
  background: var(--panel);
  border-radius: 16px;
  text-align: center;
  grid-column: 1/-1;
}
.empty p {
  max-width: 42ch;
  margin: 10px 0 20px;
}
.empty-mascot {
  width: 112px;
  height: 112px;
  object-fit: contain;
}
.empty h2 {
  font-size: 20px;
}
.toggle {
  width: 46px;
  height: 26px;
  position: relative;
  border-radius: 99px;
  background: #60556f;
  flex: none;
  min-height: 32px;
}
.toggle:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
}
.toggle.on {
  background: #066c82;
}
.toggle.on:before {
  left: 21px;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0;
}
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 2px;
  background: #17122b;
}
.day b {
  color: #ffe084;
  font-size: 25px;
}
.day.ready {
  border-color: var(--cyan);
  background: #153448;
}
.day small {
  font-size: 10px;
}
.progress {
  height: 8px;
  background: #39314d;
  border-radius: 99px;
  overflow: hidden;
  margin: 20px 0;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: inherit;
}
.notice {
  padding: 14px 18px;
  border-left: 3px solid #a18aff;
  background: #33245199;
  border-radius: 8px;
  color: #d4cfe6;
  font-size: 12px;
  margin: 14px 0;
}
.tabs {
  display: flex;
  gap: 8px;
}
.tabs button {
  min-height: 44px;
  padding: 10px 18px;
  background: var(--raised);
  border-radius: 99px;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
summary {
  cursor: pointer;
  padding: 14px 0;
  min-height: 44px;
  font-weight: 700;
}
footer {
  max-width: 1712px;
  border-top: 1px solid var(--line);
  margin: 16px 24px 0;
  padding: 24px 0;
  color: var(--muted);
  font-size: 11px;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.footer-top .brand img {
  height: 34px;
}
.footer-links {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
}
.footer-games { margin-top: 24px; }
.footer-games h2 { font-size: 16px; color: var(--fg); }
.footer-games ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 16px 24px; list-style: none; padding: 0; }
.footer-games a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--fg); font-weight: 700; }
.footer-games p { margin: 0; line-height: 1.7; }
.numbers-tabs { margin-bottom: 24px; }
.numbers-tabs [aria-pressed="true"] { border-color: #22d3f5; color: #22d3f5; }
.numbers-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.numbers-toolbar h2, .numbers-toolbar p { margin: 0; }
.numbers-toolbar p { margin-top: 6px; color: var(--muted); }
.numbers-kpis { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 16px; }
.numbers-kpis strong { overflow-wrap: anywhere; font-size: clamp(20px,3vw,32px); }
.numbers-chart { display: block; width: 100%; height: auto; color: var(--muted); }
.numbers-chart text { fill: currentColor; font-size: 11px; }
.numbers-legend { display: flex; flex-wrap: wrap; gap: 24px; font-size: 12px; }
.numbers-legend span:first-child { color: #22d3f5; }
.numbers-legend span:last-child { color: #ff3d7f; }
.numbers-game { margin: 20px 0; }
.numbers-game div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.numbers-game small { color: var(--muted); }
.numbers-game svg { display: block; width: 100%; height: 12px; }
.footer-links a,
.footer-links button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: 11px;
  color: var(--muted);
}
#mobile-dock {
  display: none;
}
#overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #050410c9;
  backdrop-filter: blur(6px);
  overflow: auto;
}
.modal {
  position: relative;
  border: 1px solid #a27bd733;
  box-shadow: 0 25px 90px #0009;
  border-radius: 20px;
  width: min(640px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(at top right, #56236477, transparent 65%),
    linear-gradient(145deg, #211b37, #151125);
  scrollbar-width: thin;
}
.modal-content {
  padding: 32px;
}
.modal .close {
  position: sticky;
  top: 10px;
  float: right;
  margin: 10px 10px -54px 0;
  z-index: 8;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #161221ef;
  font-size: 28px;
}
.modal h2 {
  font-size: 27px;
  margin: 12px 0;
}
.sheet-logo {
  width: auto;
  height: 46px;
  display: block;
  margin: 0 0 20px;
}
.detail-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.game-lockup {
  font-family: Chakra, Jakarta, sans-serif;
  font-size: 36px !important;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  margin: 16px 0;
  min-width: 0;
}
.field input,
.field textarea,
.field select,
.country-search {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  background: #100d20;
  border: 1px solid #a798c844;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 500;
}
.field textarea {
  resize: vertical;
}
.field small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.form-status,
#form-error {
  color: #ffb7c4;
  font-size: 12px;
  white-space: pre-wrap;
}
.form-status:empty,
#form-error:empty {
  display: none;
}
.check-row {
  display: flex;
  gap: 10px;
  align-items: start;
  line-height: 1.8;
  font-size: 12px;
  margin: 18px 0;
}
.check-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--cyan);
  flex: none;
}
.check-row a {
  color: var(--cyan);
  text-decoration: underline;
}
.full-width {
  width: 100%;
}
.divider {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  margin: 22px 0;
  font-size: 11px;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: #ffffff20;
  flex: 1;
}
.google-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 42px;
  border: 1px solid #747775;
  border-radius: 12px;
  background: #fff;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 600;
}
.google-button:hover:not(:disabled) {
  background: #f2f2f2;
  color: #1f1f1f;
}
.google-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
}
#connected-auth .auth-privacy {
  margin-top: 10px;
  font-size: 11px;
}
#connected-auth .auth-privacy .text-button {
  min-height: 24px;
  padding: 0;
  font-size: inherit;
}
#connected-auth > .primary {
  min-height: 52px;
}
#connected-auth > #form-error:not(:empty) {
  margin-bottom: 12px;
}
.phone-row {
  display: flex;
  gap: 8px;
}
.phone-row .field {
  flex: 1;
}
.country-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid #a798c844;
  border-radius: 12px;
  padding: 12px;
  background: #100d20;
  white-space: nowrap;
}
.country-picker {
  position: absolute;
  top: var(--picker-top, 180px);
  left: 32px;
  right: 32px;
  z-index: 15;
  border: 1px solid #6e548e;
  border-radius: 16px;
  background: #211a34;
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 12px 40px #0005;
}
.country-list {
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 10px;
}
.country-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 10px 6px;
  border-radius: 8px;
}
.country-option:hover,
.country-option:focus-visible {
  background: var(--raised);
}
.country-option .dial {
  margin-left: auto;
  color: var(--muted);
}
.flag {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 18px;
  background-image: url("/assets/home/flags.webp");
  background-repeat: no-repeat;
  background-size: 384px auto;
  vertical-align: middle;
  border-radius: 2px;
}
.otp-inputs {
  display: flex;
  gap: 8px;
  margin: 24px 0;
}
.otp-inputs input {
  width: calc((100% - 40px) / 6);
  height: 60px;
  min-width: 0;
  text-align: center;
  font:
    700 26px Chakra,
    system-ui;
  border-radius: 12px;
  border: 1px solid #a798c866;
  background: #100d20;
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.avatar-option {
  min-width: 44px;
  min-height: 44px;
  aspect-ratio: 1;
  padding: 2px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: #201a33;
}
.avatar-option img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.avatar-option[aria-pressed="true"] {
  border-color: var(--cyan);
  background: #164251;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid #22d3f522;
  border-radius: 16px;
  background:
    radial-gradient(at right top, #4f236977, transparent 70%),
    linear-gradient(120deg, #182734, #20182f);
}
.profile-avatar {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #22d3f555;
  background: var(--raised);
  flex: none;
  display: grid;
  place-items: center;
  font: 700 40px Chakra;
}
.profile-head h2 {
  font-size: 28px;
}
.profile-head > button {
  margin-left: auto;
}
.profile-head p {
  margin: 5px 0;
}
.profile-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.profile-bio {
  max-width: 48ch;
  overflow-wrap: anywhere;
}
.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.profile-fields .wide {
  grid-column: 1/-1;
}
.account-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.account-menu button {
  min-height: 48px;
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--panel);
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-menu button svg {
  color: var(--cyan);
}
.review-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 150;
  max-width: min(440px, 90vw);
  padding: 12px 22px;
  border: 1px solid #22d3f544;
  border-radius: 14px;
  background: #27213a;
  box-shadow: 0 8px 40px #0008;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  text-align: center;
  font-size: 12px;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.lite .game-card img {
  filter: saturate(0.7) brightness(0.8);
}
.no-motion *,
.no-motion *:before,
.no-motion *:after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (hover: hover) {
  .game-card:hover,
  .game-card:focus-within {
    box-shadow:
      0 0 0 2px var(--cyan),
      0 5px 20px #0005;
    z-index: 5;
  }
  .game-card:hover .card-art img {
    transform: scale(1.04);
  }
  .game-card:hover .card-hover,
  .game-card:focus-within .card-hover {
    opacity: 1;
  }
  .save:hover:before {
    border-color: var(--cyan);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.community-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}
.community-entry > *:not(.community-art) {
  position: relative;
  z-index: 1;
}
.community-entry {
  padding: 28px;
  min-height: 240px;
}
.community-entry p {
  max-width: 55ch;
}
.community-entry .primary {
  min-height: 44px;
}
.profile-fields .field > small {
  font-weight: 500;
}
.modal-content > a,
.modal-content p > a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.country-trigger .flag {
  pointer-events: none;
}

/* Social: the same ZUQ palette, with a quieter reading surface. */
.social-page { max-width:1280px; margin:auto; }
.social-title,.chat-list-heading,.chat-header,.social-person,.compose-tools,.bubble-meta,.reply-preview { display:flex; align-items:center; gap:12px; }
.social-title { justify-content:space-between; margin-bottom:16px; }
.social-title h1 { margin:2px 0; font-size:clamp(26px,3vw,38px); letter-spacing:-1.2px; }
.social-tabs { display:flex; gap:8px; margin-bottom:18px; }
.social-tabs button { min-width:92px; min-height:44px; border:1px solid var(--line); border-radius:24px; padding:8px 20px; background:var(--panel); color:var(--muted); font-weight:700; }
.social-tabs button[aria-current=page] { color:#07151b; background:var(--cyan); }
.social-workspace { display:grid; grid-template-columns:minmax(280px,34%) minmax(0,1fr); border:1px solid #ffffff18; border-radius:24px; overflow:hidden; height:min(760px,calc(100dvh - 190px)); min-height:420px; background:#151226; }
.chat-list { position:relative; display:flex; flex-direction:column; min-width:0; border-right:1px solid var(--line); background:#19162a; padding:22px 0 74px; overflow:hidden; }
.chat-list-heading { justify-content:space-between; padding:0 20px 16px; }
.chat-list-heading h2 { margin:0; font-size:25px; }
.chat-list-heading .secondary { padding:8px 12px; font-size:12px; }
.chat-search { display:flex; align-items:center; gap:8px; background:#0f0d1f; border:1px solid var(--line); border-radius:14px; margin:0 16px 14px; padding:0 12px; }
.chat-search input { border:0; min-height:46px; width:100%; background:none; outline-offset:4px; }
.chat-search>span { color:var(--cyan); font-size:28px; }
.conversation-list { overflow:auto; overscroll-behavior:contain; flex:1; }
.conversation-row { width:100%; min-height:86px; display:flex; gap:12px; align-items:center; background:none; border:0; border-bottom:1px solid var(--line); padding:14px 18px; text-align:left; }
.conversation-row:hover,.conversation-row.selected { background:#22d3f50b; }
.social-avatar { width:48px; height:48px; flex:none; border-radius:17px; object-fit:cover; background:#29233f; }
.conversation-copy { display:flex; flex:1; min-width:0; flex-direction:column; gap:3px; }
.conversation-copy strong,.conversation-copy>span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.conversation-copy strong { font-size:14px; }
.conversation-copy>span { color:var(--muted); font-size:12px; }
.conversation-meta { display:flex; flex-direction:column; align-items:flex-end; gap:7px; color:var(--muted); font-size:10px; }
.unread-pill { display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 6px; border-radius:20px; color:#06171b; background:var(--cyan); font-size:11px; font-weight:800; }
.unread-pill[hidden] { display:none; }
.dock-unread { position:absolute; top:4px; left:55%; }
.chat-fab { position:absolute; bottom:17px; right:20px; width:52px; height:52px; border-radius:18px; border:1px solid #ffffff38; color:white; background:var(--brand); font-size:26px; box-shadow:0 6px 24px #05030b55; }
.chat-thread { display:flex; flex-direction:column; min-width:0; min-height:0; background:radial-gradient(ellipse at top right,#58256122,transparent 65%),#111020; }
.chat-header { min-height:82px; flex:none; padding:16px 22px; background:#1c182d; border-bottom:1px solid var(--line); }
.chat-header>div { flex:1; min-width:0; }
.chat-header h2 { font-size:16px; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-header small { color:var(--muted); font-size:11px; }
.chat-back { display:none; }
.chat-messages { padding:20px 22px 8px; flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; display:flex; flex-direction:column; gap:8px; }
.chat-day { align-self:center; margin:14px 0 12px; background:#262137; border:1px solid var(--line); border-radius:10px; padding:4px 12px; font-size:10px; color:#c9c4df; }
.bubble { position:relative; max-width:82%; min-width:110px; padding:10px 13px 4px; border:1px solid #ffffff12; box-shadow:0 3px 6px #0002; border-radius:16px 16px 16px 3px; align-self:flex-start; background:#2b253e; overflow-wrap:anywhere; }
.bubble.mine { align-self:flex-end; border-radius:16px 16px 3px 16px; background:linear-gradient(120deg,#843121,#8c1958 50%,#69207e); }
.bubble p { white-space:pre-wrap; color:#f5efff; margin:3px 0 1px; font-size:13px; line-height:1.65; }
.bubble-author { color:#8ce9f5; font-size:10px; }
.bubble.mine .bubble-author { display:none; }
.bubble-meta { justify-content:flex-end; min-height:28px; gap:6px; font-size:9px; color:#e5d6e7; }
.bubble-meta small { font-size:9px; }
.ticks { font-size:12px; letter-spacing:-3px; margin-right:3px; }
.ticks.read { color:#79f4ff; }
.message-menu { border:0; background:none; min-height:44px; min-width:44px; color:inherit; margin:-7px -9px -7px 0; }
.bubble.failed { border-color:#f69ba7; }
.message-unavailable { opacity:.65; font-style:italic; }
.bubble blockquote { margin:2px 0 8px; padding:6px 10px; border-left:3px solid var(--cyan); border-radius:5px; background:#0002; font-size:11px; white-space:pre-wrap; }
.game-invite { display:flex; flex-direction:column; gap:8px; color:white; text-decoration:none; padding:4px 0; }
.game-invite img { width:100%; height:auto; max-width:240px; border-radius:10px; }
.game-invite b { display:block; color:#a1f6ff; padding:8px 0; }
.chat-compose { flex:none; padding:10px 16px 12px; border-top:1px solid var(--line); background:#1b172c; }
#social-compose { display:flex; gap:9px; align-items:flex-end; }
#social-compose textarea { flex:1; min-width:0; min-height:48px; max-height:120px; resize:vertical; border-radius:15px; background:#0f0d1f; padding:12px; border:1px solid #ffffff20; line-height:1.5; }
#social-compose>.primary { width:48px; min-width:48px; min-height:48px; padding:8px; border-radius:16px; }
.compose-tools { gap:2px; }
.compose-tools button { min-height:48px; min-width:44px; padding:6px; border:0; background:none; font-size:24px; }
.outbox-note { display:block; color:var(--muted); font-size:9px; margin-top:8px; text-align:center; }
.reply-preview { justify-content:space-between; border-left:3px solid var(--cyan); background:#ffffff08; padding:7px 10px; margin-bottom:8px; border-radius:8px; font-size:11px; overflow-wrap:anywhere; }
.reply-preview span { max-height:60px; overflow:auto; }
.social-error { color:#ffc0c9; font-size:12px; margin:5px 0 10px; }
.social-error:empty { display:none; }
.typing-indicator { min-height:22px; color:#9decf5; font-size:11px; margin:4px 0 0; }
.chat-start { color:var(--muted); text-align:center; margin:auto; }
.chat-welcome { display:flex; flex:1; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:30px; overflow:auto; }
.chat-welcome>img { width:200px; height:200px; object-fit:contain; margin-bottom:20px; }
.chat-welcome h2 { font-size:25px; letter-spacing:-.8px; margin:8px 0; }
.chat-welcome>p { color:var(--muted); margin:0 0 20px; }
.chat-welcome .channel-card { margin:26px 0 0; text-align:left; padding:16px; }
.chat-welcome .channel-card img { width:64px; height:64px; }
.chat-welcome .channel-card h2 { font-size:14px; }
.chat-list-empty { text-align:center; padding:24px 22px; color:var(--muted); }
.chat-list-empty h3 { color:var(--fg); margin:14px 0 4px; }
.chat-list-empty p { font-size:12px; }
.chat-list-empty img { width:100px; height:100px; object-fit:contain; }
.social-person { padding:15px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.social-person>div { flex:1; min-width:100px; }
.social-person small { display:block; color:var(--muted); }
.social-person .secondary { padding:8px 12px; min-height:44px; }
.social-person>strong { flex:1; }
.playing-chip { color:#9ef3d3; border:1px solid #9ef3d330; background:#6cf0bc0a; border-radius:20px; padding:2px 7px; font-size:10px; width:fit-content; display:block; margin-top:4px; }
#social-add { display:flex; align-items:end; gap:10px; margin-bottom:28px; }
#social-add label { flex:1; margin:0; }
#social-add .primary { min-height:48px; }
.social-gate { max-width:650px; text-align:center; margin:25px auto; padding:36px; }
.social-gate>img { display:block; margin:0 auto 22px; object-fit:contain; }
.social-gate h1 { font-size:clamp(26px,4vw,36px); line-height:1.2; letter-spacing:-1px; }
.social-gate p { color:var(--muted); font-size:14px; }
.social-gate .primary { margin:16px 5px 0; }
.social-gate form { max-width:320px; margin:20px auto 0; text-align:left; }
.social-gate a { display:block; color:var(--cyan); margin-top:20px; }
.channel-card { display:flex; align-items:center; gap:20px; padding:24px; border:1px solid #74e8ad26; background:linear-gradient(110deg,#17343788,#25213c); border-radius:22px; margin:24px 0; }
.channel-card>img { flex:none; object-fit:contain; }
.channel-card h2 { font-size:20px; line-height:1.3; letter-spacing:-.5px; margin:5px 0; }
.channel-card p { color:var(--muted); font-size:12px; margin:7px 0 12px; }
.channel-card a { display:inline-flex; gap:8px; align-items:center; min-height:44px; text-decoration:none; }
.social-dialog .modal-actions { gap:8px; display:flex; flex-wrap:wrap; }
.social-dialog>button { margin:4px; }
.emoji-picker { display:grid; grid-template-columns:repeat(auto-fit,minmax(44px,1fr)); gap:5px; }
.emoji-picker button { padding:5px; min-height:48px; font-size:25px; }
.group-icons { display:grid; grid-template-columns:repeat(6,1fr); gap:8px; margin:16px 0; padding:14px; border:1px solid var(--line); border-radius:14px; }
.group-icons legend,.group-members legend { padding:0 5px; color:var(--muted); }
.group-icons label { position:relative; cursor:pointer; }
.group-icons input { position:absolute; inset:0; opacity:0; margin:0; width:100%; height:100%; cursor:pointer; }
.group-icons img { display:block; width:100%; height:auto; border-radius:12px; border:2px solid transparent; }
.group-icons input:checked+img { border-color:var(--cyan); box-shadow:0 0 0 2px #22d3f533; }
.group-icons input:focus-visible+img { outline:3px solid var(--cyan); outline-offset:3px; }
.group-members { border:1px solid var(--line); border-radius:14px; max-height:280px; overflow:auto; margin-bottom:20px; }
.group-members label { display:flex; gap:12px; align-items:center; min-height:60px; }
.group-members input { width:22px; height:22px; accent-color:var(--cyan); }
.invite-game-list { display:grid; gap:8px; max-height:55dvh; overflow:auto; }
.invite-game-list button { display:flex; align-items:center; text-align:left; gap:14px; padding:9px; background:var(--panel); border:1px solid var(--line); border-radius:12px; }
.invite-game-list img { border-radius:8px; }
.public-player { text-align:center; }
.public-player img { width:88px; height:88px; border-radius:26px; }
.public-player .playing-chip { margin:auto; }
.moderation-report { border:1px solid var(--line); border-radius:16px; padding:20px; margin:20px 0; }
.preserve-lines { white-space:pre-wrap; }
.social-embedded .shell { margin:0; }
.social-embedded #sidebar,.social-embedded #topbar,.social-embedded footer,.social-embedded #mobile-dock,.social-embedded .skip-link,.social-embedded .social-title { display:none!important; }
.social-embedded #app { padding:10px; }
.social-embedded .social-tabs { margin-bottom:10px; }
.social-embedded .social-workspace { height:calc(100dvh - 85px); min-height:250px; border-radius:16px; }
.social-embedded .chat-list-heading { padding:0 12px 10px; }
.social-embedded .social-workspace { grid-template-columns:1fr; }
.social-embedded .chat-thread { display:none; }
.social-embedded .has-conversation .chat-thread { display:flex; }
.social-embedded .has-conversation .chat-list { display:none; }
.social-embedded .chat-back { display:block; }
.quick-phrases { display:flex; gap:5px; overflow:auto; padding:0 0 8px; }
.quick-phrases .chip { white-space:nowrap; min-height:44px; font-size:11px; }
@media(prefers-reduced-motion:reduce) { .social-page *, .social-gate * { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

#nav [data-route="chats"] { position:relative; }
#nav [data-route="chats"] .unread-pill { position:absolute; top:2px; right:4px; }
.chat-list-empty .channel-card { flex-direction:column; text-align:center; padding:16px 10px; gap:8px; }
.chat-list-empty .channel-card h2 { font-size:16px; }
@media(min-width:761px) { .chat-list-empty .channel-card { display:none; } }

/* Shared privacy sheet overrides the safety module without changing its files. */
html body dialog#zuq-safety-dialog,
html body dialog#zuq-safety-dialog * {
  box-sizing: border-box;
}
html body dialog#zuq-safety-dialog {
  inset: 0;
  width: calc(100% - 32px);
  max-width: 540px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #514368;
  border-radius: 24px;
  background: #17142b;
  color: #efefff;
  box-shadow: 0 24px 80px #0008;
  color-scheme: dark;
  font: 400 14px/1.7 "ZUQ Jakarta", Jakarta, system-ui, sans-serif;
  overflow-wrap: anywhere;
}
html body dialog#zuq-safety-dialog::backdrop {
  background: #05040ccc;
}
html body dialog#zuq-safety-dialog form {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
}
html body dialog#zuq-safety-dialog h2 {
  margin: 0;
  color: #efefff;
  font: 700 26px/1.2 "ZUQ Chakra", Chakra, sans-serif;
  letter-spacing: -0.03em;
}
html body dialog#zuq-safety-dialog p {
  margin: 0;
  color: #b4b1ca;
  font-size: 14px;
  line-height: 1.7;
}
html body dialog#zuq-safety-dialog label {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: #efefff;
  font-size: 14px;
  font-weight: 600;
}
html body dialog#zuq-safety-dialog select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 36px 10px 14px;
  border: 1px solid #6b5f83;
  border-radius: 12px;
  appearance: none;
  background: linear-gradient(45deg, transparent 50%, #efefff 50%) right 18px center / 6px 6px no-repeat,
    linear-gradient(135deg, #efefff 50%, transparent 50%) right 12px center / 6px 6px no-repeat,
    #100d20;
  color: #efefff;
  font: 400 16px/1.5 "ZUQ Jakarta", Jakarta, system-ui, sans-serif;
}
html body dialog#zuq-safety-dialog option {
  background: #100d20;
  color: #efefff;
}
html body dialog#zuq-safety-dialog label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding-block: 8px;
  cursor: pointer;
}
html body dialog#zuq-safety-dialog input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #22d3f5;
  cursor: pointer;
}
html body dialog#zuq-safety-dialog input:disabled {
  opacity: 0.5;
  cursor: default;
}
html body dialog#zuq-safety-dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(110deg, #ac4200, #b51555 48%, #970ca8);
  color: #fff;
  font: 800 14px/1.5 "ZUQ Jakarta", Jakarta, system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
}
html body dialog#zuq-safety-dialog button#zuq-private {
  border-color: #74658f;
  background: transparent;
  color: #efefff;
}
html body dialog#zuq-safety-dialog button:hover:not(:disabled) {
  filter: brightness(1.12);
}
html body dialog#zuq-safety-dialog a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 4px;
  color: #22d3f5;
  text-decoration: underline;
  text-underline-offset: 4px;
}
html body dialog#zuq-safety-dialog :is(select, input, button, a):focus-visible {
  outline: 2px solid #22d3f5;
  outline-offset: 3px;
}
html body dialog#zuq-safety-dialog select:focus-visible {
  border-color: #22d3f5;
}

/* Utility workspaces share the arcade's palette, typography and account hooks. */
.utility-page .footer-games { display:none; }
.admin-workspace { display:grid; grid-template-columns:190px minmax(0,1fr); gap:24px; align-items:start; }
.admin-subnav { display:flex; flex-direction:column; padding:8px; border:1px solid var(--line); background:var(--panel); border-radius:18px; position:sticky; top:84px; gap:4px; }
.admin-subnav button { min-height:44px; padding:10px 14px; text-align:left; border-radius:11px; color:var(--muted); }
.admin-subnav button[aria-current="page"] { background:var(--raised); color:var(--cyan); box-shadow:inset 3px 0 var(--cyan); }
.workspace-content,.workspace-content > *, .workspace-form,.form-grid > * { min-width:0; }
.workspace-content { overflow-wrap:anywhere; }
.workspace-title { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.overview-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.overview-kpis .stat strong { font-size:clamp(18px,2.2vw,34px); }
.workspace-filter { display:flex; align-items:end; flex-wrap:wrap; gap:12px; margin:18px 0; }
.workspace-filter .field { flex:1; min-width:140px; margin:0; }
.workspace-filter button { flex:none; }
.workspace-form { margin-top:18px; display:grid; gap:14px; }
.workspace-form > button { justify-self:start; }
.workspace-form .field { margin:0; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.field select { width:100%; min-width:0; min-height:48px; padding:12px; background:var(--bg); border:1px solid #ffffff28; border-radius:12px; }
.workspace-form fieldset { border:1px solid #ffffff28; border-radius:14px; padding:16px; min-width:0; }
.workspace-form legend { font-weight:800; padding:0 6px; }
.workspace-check { display:flex; align-items:start; gap:10px; padding:10px 0; cursor:pointer; }
.workspace-check input { width:20px; height:20px; flex:none; accent-color:var(--cyan); }
.workspace-item { border-top:1px solid var(--line); padding:24px 0; }
.workspace-item:first-of-type { border-top:0; }
.workspace-item h4 { margin:16px 0 4px; }
.meta { font-size:11px; overflow-wrap:anywhere; }
.thread-message { padding:14px 16px; border-left:3px solid #22d3f580; border-radius:0 10px 10px 0; margin:10px 0; background:#ffffff05; }
.thread-message small { display:block; color:var(--muted); }
.thread-message p,.preserve-lines { white-space:pre-wrap; overflow-wrap:anywhere; }
.thread-message.internal-note { border-color:#ffce5b; background:#ffce5b0a; }
.status-approved,.status-resolved { color:#75f9d7; }
.status-changes_requested,.status-waiting { color:#ffce5b; }
.status-rejected { color:#ff86cb; }
.detail-grid { display:grid; grid-template-columns:minmax(110px,1fr) minmax(0,2fr); gap:10px 16px; margin:16px 0; }
.detail-grid dt { color:var(--muted); }
.detail-grid dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.workspace-pager { display:flex; align-items:center; justify-content:end; flex-wrap:wrap; gap:10px; border-top:1px solid var(--line); padding-top:16px; }
.workspace-pager > span { margin-right:auto; }
.table-scroll { max-width:100%; overflow:auto; }
.catalog-table { width:100%; border-collapse:collapse; min-width:730px; text-align:left; }
.catalog-table th { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.05em; }
.catalog-table th,.catalog-table td { border-bottom:1px solid var(--line); padding:14px 10px; vertical-align:middle; }
.catalog-title { display:flex; gap:12px; align-items:center; min-width:170px; }
.catalog-title img { object-fit:cover; border-radius:8px; flex:none; }
.catalog-table small { display:block; color:var(--muted); }
.catalog-table a,.workspace-content a:not(.primary),.workspace-item a { color:var(--cyan); text-decoration:underline; }
.audit-entry { border-top:1px solid var(--line); padding:16px 0; }
.audit-entry small { color:var(--muted); }
.developer-tabs { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
.developer-tabs [aria-pressed="true"] { color:var(--cyan); border-color:var(--cyan); }
.developer-hero { display:flex; align-items:center; gap:32px; background:radial-gradient(at top right,#970ca830,transparent 65%),var(--panel); }
.developer-hero h2 { font-family:Chakra,Jakarta,sans-serif; font-size:34px; max-width:560px; }
.developer-hero p { max-width:650px; }
.developer-mascot { width:160px; height:160px; object-fit:contain; margin-left:auto; }
.submission-timeline { border-left:2px solid #22d3f544; margin:20px 0 20px 8px; padding-left:28px; }
.submission-timeline li { padding:6px 0 10px; }
.submission-timeline small { color:var(--muted); }
.submission-preview img { width:min(300px,100%); aspect-ratio:16/9; object-fit:cover; border-radius:12px; display:block; margin:16px 0; }
.workspace-content pre,.utility-page pre { overflow:auto; padding:16px; background:var(--bg); border:1px solid var(--line); border-radius:12px; }

/* Operator controls share the existing shell palette and typography. */
.staff-session,.role-entry { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.staff-session p { margin:6px 0 0; color:var(--muted); }
.staff-session code,.role-entry code { display:block; font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.role-entry { padding:14px 0; border-bottom:1px solid var(--line); }
.staff-confirm { border:1px solid #22d3f53d; background:#22d3f508; padding:14px; border-radius:12px; }
.catalog-editor summary { display:flex; align-items:center; flex-wrap:wrap; gap:12px; cursor:pointer; padding:8px 0; }
.catalog-editor summary img { object-fit:cover; border-radius:8px; }
.catalog-editor[open] summary { margin-bottom:18px; }
.catalog-editor form { margin-top:20px; }
.mood-assignments { display:flex; flex-wrap:wrap; gap:12px 24px; }
.announcement-card { border-color:#22d3f559; background:linear-gradient(125deg,#17243c,#20182d); }
.announcement-update { border-color:#ff3d7f55; }
.announcement-card h2 { margin:10px 0; }
.maintenance-banner { margin-bottom:20px; border-color:#ffda7566; }
.request-deadlines { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0; }
.deadline { padding:8px 12px; border-radius:10px; border:1px solid var(--line); font-size:12px; color:var(--muted); }
.deadline-overdue { background:#ff3d7f16; border-color:#ff3d7f66; color:#ff9fbd; font-weight:700; }
.admin-subnav { max-height:calc(100dvh - 105px); overflow-y:auto; }
.admin-workspace input[type="datetime-local"] { min-width:0; max-width:100%; }

/* Publisher portal and isolated game wrapper */
.publisher-steps{display:flex;flex-wrap:wrap;gap:1.2rem;list-style:none;padding:0}.publisher-steps [aria-current]{color:#f4c660;font-weight:700}.publisher-checks{padding-left:1.4rem}.publisher-checks li{margin:.6rem 0}.publisher-game iframe,#publisher-test-frame iframe{width:100%;height:min(72vh,760px);min-height:360px;border:0;border-radius:18px;background:#100e20}.publisher-game header{margin:1rem 0}.publisher-game .panel{margin-top:1rem}.publisher-table{overflow:auto}.publisher-table td,.publisher-table th{padding:.6rem;text-align:left;border-bottom:1px solid #ffffff22}#publisher-sdk-log{max-height:340px;overflow:auto;white-space:pre-wrap}.publisher-game .chip{display:inline-block;margin:.4rem}progress{width:100%;accent-color:#a490ff}pre{overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}.publisher-art-preview{width:180px;max-height:180px;object-fit:contain}

/* Inline sign-in preferences, returning account and provider feedback. */
.auth-age{margin:20px 0 0;padding:14px 16px;border:1px solid #635779;border-radius:14px;background:#221d38;align-items:center;min-height:48px;cursor:pointer}
.auth-age input{width:22px;height:22px;accent-color:#ad7aff;flex-shrink:0}
.auth-returning{display:flex;align-items:center;gap:12px;padding:12px 0;color:#f7f4ff}
.auth-returning img,.auth-avatar{border-radius:50%;object-fit:cover;flex-shrink:0}
.auth-avatar{display:grid;place-items:center;width:40px;height:40px;background:#554074;font-weight:700}
.auth-returning small{display:block;color:#b6adc9;font-size:12px}
.auth-browser-helper{margin:16px 0;padding:16px;border:1px solid #786591;border-radius:14px;background:#211b34;font-size:14px}
.auth-browser-helper strong{color:#f7f4ff}
.auth-browser-helper p{margin:8px 0 12px}
.auth-browser-helper .secondary{min-height:44px;margin-right:8px}
.google-button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.google-button.last-used{box-shadow:0 0 0 2px #bd9aff}
.last-used-label{margin-left:auto;font:600 11px/1.2 system-ui;color:#544061}
#connected-auth .last-used{outline:2px solid #b895ef;outline-offset:3px}
#connected-auth #email-link-status{color:#b9ebce;line-height:1.5}
#toast .auth-toast-avatar{border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:10px}
#toast span.auth-toast-avatar{display:inline-grid;width:32px;height:32px}

.game-engagement { margin-block: 1rem; }
[data-game-vote][aria-pressed="true"] { border-color: #79f6d3; color: #79f6d3; box-shadow: 0 0 0 1px currentColor; }
#email-preferences .workspace-check { display: flex; gap: .75rem; align-items: center; margin-block: .75rem; }

.leaderboard-list { list-style:none; padding:0; margin:1rem 0; }
.leaderboard-list li { display:flex; align-items:center; gap:.75rem; padding:.75rem 0; border-bottom:1px solid var(--line, #ffffff20); }
.leaderboard-list li span { flex:1; overflow-wrap:anywhere; }
.leaderboard-list img { border-radius:50%; }
[data-competition-admin] .form-grid { margin-block:1rem; }
.workspace-item progress { display:block; max-width:100%; margin-block:.5rem; }
