/* BoraPlay / midnight arcade: artwork carries the color; chrome stays quiet. */
.mobile-brand {
  display: none;
}
.account-summary > div {
  min-width: 0;
}
.account-summary h2 {
  overflow-wrap: anywhere;
  font-size: 22px;
}
.avatar {
  flex-shrink: 0;
}
@media (max-width: 680px) {
  .topbar .mobile-brand {
    display: block;
    flex-basis: 100%;

    letter-spacing: -1px;
    font-weight: 1000;
    color: white;
  }
  .mobile-brand span {
    color: #aa97ff;
  }
  .mobile-brand i {
    font-size: 12px;
    color: #8df0ca;
    margin-left: 7px;
    font-style: normal;
  }
  .account-summary h2 {
    font-size: 18px;
  }
}
:root {
  color-scheme: dark;
  --ink: #f3f5ff;
  --muted: #9aa8c4;
  --blue: #735cff;
  --line: #29344d;
}
body {
  background: radial-gradient(ellipse at 72% 0%, #243253 0, transparent 48%), #0b1120;
  color: var(--ink);
  font-size: 16px;
}
.rail {
  background: #101827;
  border-right: 1px solid #263149;
  border-radius: 0;
  box-shadow: none;
  width: 184px;
  padding: 34px 18px;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
}
.brand {
  font-size: 30px;
  color: #fff;
  letter-spacing: -1.8px;
}
.brand span {
  color: #a392ff;
}
.brand i {
  color: #98f5d2;
}
.rail nav {
  gap: 10px;
  margin-top: 54px;
}
.rail nav a {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 12px;
  color: #aab6ce;
  font-size: 14px;
}
.rail nav a span {
  font-size: 23px;
}
.rail nav a.active {
  background: #735cff24;
  color: #c3b8ff;
  box-shadow: inset 3px 0 #9a86ff;
}
.rail nav a:hover {
  background: #202c44;
  color: white;
}
.rail-bottom {
  color: #98a8c6;
}
.site {
  margin-left: 184px;
  max-width: 1500px;
  padding: 0 40px;
}
.topbar {
  height: 94px;
  border-bottom: 1px solid #263149;
  gap: 14px;
}
.topbar p {
  margin-right: auto;
  color: #a6b4d0;
  font-size: 14px;
}
.balance,
.language-control {
  background: #182337 !important;
  border: 1px solid #2b3853;
  color: #e0e7fb !important;
  border-radius: 12px;
}
.language-control select {
  color: #e0e7fb !important;
}
.language-control select option {
  background: #182337;
}
.balance {
  padding: 10px 14px;
}
.coin {
  color: #604113;
}
.account-link {
  padding: 12px 18px;
  background: #7360ed;
  border: 1px solid #a191ff66;
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}
.heading {
  margin: 34px 0 24px;
}
.heading h1 {
  font-size: 42px;
  letter-spacing: -1px;
}
.heading h1 span {
  color: #ad9fff;
}
.eyebrow {
  color: #9eadd0;
  font-size: 12px;
  letter-spacing: 2px;
}
.search {
  background: #182337;
  border: 1px solid #2b3853;
  box-shadow: none;
  min-width: 280px;
  border-radius: 12px;
}
.search input {
  color: #e6ecff;
}
.search input::placeholder {
  color: #8c9bb6;
}
.search span {
  color: #9caaca;
}
.filters button {
  background: #172237;
  color: #b0bfda;
  border: 1px solid #2a3650;
  border-radius: 10px;
}
.filters button[aria-pressed='true'] {
  background: #735cff;
  color: white;
  border-color: #9581ff;
}
.filters > span {
  color: #91a1bc;
}
.mosaic {
  grid-template-columns: minmax(0, 3.6fr) minmax(220px, 1fr);
  gap: 24px;
}
.game-list {
  gap: 24px;
}
.game-card {
  aspect-ratio: 1/1.08;
  border-radius: 22px;
  border: 1px solid #ffffff2b;
  box-shadow: 0 18px 40px #0005;
}
.game-card:after {
  inset: 35% 0 0;
  background: linear-gradient(transparent, #080e28eb);
}
.game-card:hover {
  box-shadow:
    0 0 0 2px #a496ff,
    0 20px 42px #0007;
  transform: translateY(-4px);
}
.tag {
  background: #0b132bd9;
  color: #e3e9ff;
  border: 1px solid #ffffff36;
  font-size: 12px;
  backdrop-filter: blur(8px);
}
.game-caption {
  bottom: 24px;
}
.game-caption h2 {
  font-size: 32px;
}
.game-caption small {
  color: #d2d8f8;
}
.play-circle {
  background: #fff;
  color: #5035c6;
  box-shadow: 0 0 24px #ffffff35;
}
.side-tiles {
  gap: 20px;
}
.activity-tile {
  background: linear-gradient(145deg, #262c57, #191f3c);
  border: 1px solid #5c5a9366;
  box-shadow: none;
  padding: 26px;
  color: #f4efff;
}
.activity-tile .pill {
  background: #c2a4ff1f;
  color: #c8baff;
  border: 1px solid #b69cff33;
}
.tile-icon {
  color: #c4afff;
  text-shadow: 0 0 35px #a18bff55;
}
.activity-tile h2 {
  font-size: 29px;
  line-height: 1.2;
}
.activity-tile p {
  color: #bbc5e7;
  font-size: 14px;
}
.circle-arrow {
  color: #c1acff;
}
.reward-tile {
  background: linear-gradient(130deg, #123b43, #122934);
  border: 1px solid #41797666;
  box-shadow: none;
}
.reward-tile > span {
  color: #92f4ce;
}
.reward-tile p {
  color: #acdace;
  font-size: 14px;
}
.under-grid {
  border: 1px solid #25314a;
  background: #121d30;
  border-radius: 16px;
  padding: 20px 24px;
  margin: 28px 0;
  justify-content: space-between;
}
.under-grid p {
  color: #94a7c8;
}
.under-grid strong {
  color: #dbe5ff;
}
.mini-icon {
  background: #22304a;
  color: #b7a6ff;
}
.about-strip {
  border-color: #263149;
}
.about-strip p {
  color: #97a8c5;
}
.about-strip h2 {
  font-size: 25px;
}
.back {
  color: #aebedf;
}
.player {
  box-shadow: 0 18px 60px #0004;
  border: 1px solid #303751;
}
.player:fullscreen {
  border: 0;
}
.player-bar {
  background: #192337;
  border: 1px solid #2a3852;
  border-top: 0;
}
.player-bar button {
  background: #28344e;
  color: #d2c8ff;
}
.player-bar span {
  color: #98aac8;
}
.instructions,
.task-card,
.reward-card,
.ledger,
.text-page,
.empty {
  background: #141f33;
  border: 1px solid #2a3650;
}
.instructions p,
.instructions li,
.text-page p,
.task-card p,
.reward-card p {
  color: #aebbd4;
}
.instructions {
  padding: 28px;
}
.club-small {
  background: #24264c;
  color: #ded8ff;
  border: 1px solid #4a4779;
}
.club-small p {
  color: #b8b4d3;
}
.ad-slot {
  background: #10192b;
  border-color: #34425d;
  color: #8f9eb8;
}
.related {
  background: #1c2940;
  border: 1px solid #303d58;
}
.related small {
  color: #a2b3d0;
}
.fineprint {
  color: #a4b4cf;
}
.primary {
  background: #7560ef;
  box-shadow: 0 3px 0 #483597;
  color: white;
  border: 1px solid #aa98ff55;
}
.primary:hover:not(:disabled) {
  background: #8b76ff;
}
.secondary {
  background: #26354f;
  color: #c5d4f5;
}
.primary:disabled {
  opacity: 0.42;
}
.notice {
  background: #282537;
  border-color: #5e506e;
  color: #e6d7f8;
}
.notice span {
  color: #beb1cf;
}
.wallet {
  background: linear-gradient(115deg, #302c62, #172b42);
  border: 1px solid #514878;
}
.wallet a {
  color: #9cf0d5;
}
.pioneer {
  background: #312858;
  color: #c2aaff;
}
.pix {
  background: #173d3c;
  color: #88e7c5;
}
.ledger small {
  color: #98a8c5;
}
.plus {
  color: #8af0bd;
}
.steps a {
  background: #24324b;
}
.task-number {
  color: #a5abd0;
}
.task-bottom > strong {
  color: #b8a7ff;
}
.task-bottom small {
  color: #a3b2ca;
}
footer {
  border-color: #25314a;
  color: #9eafce;
}
footer p,
footer > small {
  color: #8899b7;
}
footer .wordmark {
  color: #d7e1fa;
}
footer a:hover {
  color: white;
}
dialog {
  background: #172237;
  border: 1px solid #3b4663;
  color: #f0f3ff;
}
dialog p {
  color: #aebbd5;
}
.close {
  color: #c6d2eb;
}
dialog::backdrop {
  background: #050915c9;
}
#toast {
  background: #293657;
  border: 1px solid #657197;
  color: #fff;
}
.auth-panel {
  max-width: 480px;
  margin: 36px auto;
  background: #172238;
  border: 1px solid #33415f;
  border-radius: 24px;
  padding: 36px;
}
.auth-panel h1 {
  font-size: 32px;
}
.auth-panel p {
  color: #a8b9d6;
  line-height: 1.7;
}
.stack {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: #0d1729;
  color: #f0f4ff;
  border: 1px solid #3a4967;
  border-radius: 10px;
  font: inherit;
  box-sizing: border-box;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid #9b87ff;
  outline-offset: 2px;
}
.form-error {
  color: #ffb4bd !important;
  min-height: 24px;
  font-size: 14px;
}
.auth-switch {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: #b7a6ff;
}
.account-panel {
  max-width: 900px;
}
.account-summary {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid #384660;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(115deg, #26294e, #17293d);
  margin: 28px 0;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #7960ee;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}
.account-summary h2 {
  margin: 0 0 8px;
}
.account-summary p {
  margin: 0;
  color: #aabbd6;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.metric {
  padding: 22px;
  background: #172339;
  border: 1px solid #303e59;
  border-radius: 16px;
}
.metric small {
  font-size: 14px;
  color: #a5b6d3;
}
.metric strong {
  display: block;
  font-size: 32px;
  margin-top: 12px;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.admin-tabs button {
  padding: 12px 18px;
  background: #1b2941;
  color: #bbc9e1;
  border: 1px solid #34425f;
  border-radius: 10px;
  font-size: 14px;
}
.admin-tabs button.active {
  background: #7259e8;
  color: white;
}
.admin-card {
  background: #141f33;
  border: 1px solid #2c3b56;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid #2a3650;
  white-space: nowrap;
}
th {
  color: #9fafd0;
  font-weight: 700;
}
td button {
  padding: 8px 12px;
  margin-right: 6px;
  border-radius: 8px;
  background: #2b3955;
  color: #f0f3ff;
}
.status-pill {
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #243e3b;
  color: #9be4c7;
}
.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.admin-form .wide {
  grid-column: 1/-1;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.check-field input {
  accent-color: #9b84ff;
}
.inline-help {
  color: #9cacca;
  line-height: 1.7;
  font-size: 14px;
}
.ad-preview {
  border: 1px dashed #5b6a88;
  padding: 34px;
  text-align: center;
  border-radius: 14px;
  background: #0e1727;
}
.ad-preview strong {
  display: block;
  margin-bottom: 10px;
}
.ad-demo-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: #080e20f2;
  display: grid;
  place-content: center;
  text-align: center;
  color: white;
  padding: 30px;
}
.ad-demo-overlay button {
  margin-top: 24px;
}
.auth-required {
  border: 1px solid #4c4377;
  border-radius: 14px;
  padding: 18px;
  background: #272442;
  margin: 18px 0;
}
.auth-required a {
  color: #c3afff;
  text-decoration: underline;
}
@media (min-width: 1600px) {
  .site {
    margin-right: auto;
  }
  .game-card {
    max-height: 510px;
  }
  .mosaic {
    max-width: 1280px;
  }
}
@media (max-width: 1050px) {
  .rail {
    width: 100px;
    padding: 30px 10px;
  }
  .brand {
    font-size: 22px;
  }
  .brand i {
    display: none;
  }
  .rail nav a {
    flex-direction: column;
    padding: 13px 6px;
    gap: 6px;
    font-size: 13px;
  }
  .site {
    margin-left: 100px;
    padding: 0 24px;
  }
  .mosaic {
    grid-template-columns: 1fr;
  }
  .side-tiles {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .activity-tile {
    padding: 22px;
  }
  .tile-icon {
    display: none;
  }
  .activity-tile h2 {
    font-size: 24px;
  }
  .reward-tile {
    padding: 22px;
  }
  .game-layout {
    grid-template-columns: 1fr;
  }
  .game-aside {
    display: none;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  body {
    padding-bottom: 78px;
  }
  .rail {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0 14px;
    z-index: 30;
    border-top: 1px solid #34415a;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #101827f5;
    backdrop-filter: blur(15px);
  }
  .rail .brand,
  .rail-bottom {
    display: none;
  }
  .rail nav {
    margin: 0;
    display: flex;
    width: 100%;
    justify-content: space-around;
    gap: 6px;
  }
  .rail nav a {
    flex: 1;
    padding: 8px 0;
    font-size: 12px;
    gap: 3px;
    border-radius: 10px;
  }
  .rail nav a span {
    font-size: 21px;
  }
  .rail nav a.active {
    box-shadow: none;
    background: #735cff25;
  }
  .site {
    margin: 0;
    padding: 0 18px;
  }
  .topbar {
    height: auto;
    min-height: 78px;

    flex-wrap: wrap;

    padding: 14px 0;
  }
  .topbar p {
    display: none;
  }
  .language-control {
    position: static;
    margin: 0;
    order: 1;
    height: 40px;
    padding: 0 9px !important;
  }
  .language-control select {
    font-size: 12px;
    width: 88px;
  }
  .balance {
    position: static;
    order: 2;
    margin-left: auto;
    font-size: 12px;
    gap: 5px;
    padding: 8px;
  }
  .balance .coin {
    width: 20px;
    height: 20px;
  }
  .account-link {
    order: 3;
    padding: 11px 12px;
    font-size: 12px;
  }
  .heading {
    display: block;
    margin: 28px 0 18px;
  }
  .heading h1 {
    font-size: 34px;
  }
  .search {
    margin-top: 22px;
    min-width: 0;
    width: 100%;
  }
  .search input {
    height: 48px;
  }
  .filters {
    margin: 18px 0;
  }
  .filters button {
    padding: 9px 13px;
  }
  .filters > span {
    font-size: 12px;
    width: 100%;
    margin-top: 5px;
  }
  .game-list {
    gap: 14px;
  }
  .game-card {
    aspect-ratio: 0.78;
    border-radius: 17px;
  }
  .tag {
    font-size: 10px;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
  }
  .game-caption {
    left: 12px;
    right: 10px;
    bottom: 16px;
  }
  .game-caption h2,
  html[lang='en'] .game-caption h2 {
    font-size: 21px;
    letter-spacing: -0.5px;
  }
  .game-caption small {
    font-size: 12px;
  }
  .play-circle {
    width: 29px;
    height: 29px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .side-tiles {
    gap: 14px;
  }
  .activity-tile,
  .reward-tile {
    border-radius: 17px;
    padding: 18px;
  }
  .activity-tile h2 {
    font-size: 21px;
  }
  .activity-tile p {
    font-size: 12px;
  }
  .activity-tile .pill {
    font-size: 9px;
  }
  .reward-tile {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }
  .reward-tile > span {
    font-size: 35px;
  }
  .reward-tile h3 {
    font-size: 19px;
  }
  .reward-tile p {
    font-size: 12px;
  }
  .under-grid {
    padding: 18px;
    gap: 20px;
    flex-direction: column;
  }
  .about-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .player {
    min-height: 450px;
  }
  .player:fullscreen {
    min-height: 0;
  }
  .auth-panel {
    padding: 25px 20px;
    margin: 24px auto;
  }
  .account-summary {
    padding: 22px;
    gap: 15px;
  }
  .account-summary p {
    word-break: break-all;
    font-size: 14px;
  }
  .admin-card {
    padding: 18px;
  }
  .admin-form {
    grid-template-columns: 1fr;
  }
  .admin-form .wide {
    grid-column: auto;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 28px;
  }
  .admin-tabs button {
    padding: 10px 12px;
  }
  .notice {
    align-items: flex-start;
  }
  footer {
    padding-bottom: 25px;
  }
  footer > div {
    margin-left: 0;
    flex-wrap: wrap;
  }
  .topbar .balance > span:last-child {
    display: none;
  }
}
/* Language selection stays at the far right, including compact screens. */
.topbar .language-control {
  order: 4;
  position: relative;
  padding: 0 !important;
  border: 0;
  background: transparent;
  height: auto;
  z-index: 30;
}
.topbar .balance {
  order: 2;
}
.topbar .account-link {
  order: 3;
}
.language-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid #34415d;
  border-radius: 13px;
  background: #19243a;
  color: #e9efff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.language-toggle:hover,
.language-toggle[aria-expanded='true'] {
  border-color: #907cff;
  background: #26304c;
}
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  width: 180px;
  padding: 7px;
  display: grid;
  gap: 4px;
  border: 1px solid #394565;
  border-radius: 15px;
  background: #18233a;
  box-shadow: 0 14px 38px #0007;
}
.language-menu[hidden] {
  display: none;
}
.language-menu button {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #e9efff;
  text-align: left;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.language-menu button:hover,
.language-menu button[aria-pressed='true'] {
  background: #735cff35;
}
.language-toggle:focus-visible,
.language-menu button:focus-visible {
  outline: 2px solid #bcafff;
  outline-offset: 3px;
}
@media (max-width: 680px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .topbar .mobile-brand {
    grid-area: 1/1;
    min-width: 0;
    margin: 0;
    font-size: 27px;
  }
  .topbar .language-control {
    grid-area: 1/2;
    justify-self: end;
  }
  .language-toggle {
    padding: 10px;
    font-size: 12px;
  }
  .topbar .balance {
    grid-area: 2/1;
    margin: 0;
    justify-self: start;
  }
  .topbar .account-link {
    grid-area: 2/2;
    justify-self: end;
  }
}

.legal-page {
  max-width: 960px;
}
.legal-page h2 {
  font-size: 22px;
  margin: 32px 0 12px;
}
.legal-page p {
  overflow-wrap: anywhere;
}
.legal-page a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #bfb3ff;
}
.legal-page nav {
  line-height: 2.2;
  margin-top: 28px;
}
footer > div {
  flex-wrap: wrap;
}
@media (max-width: 680px) {
  .legal-page {
    padding: 24px;
  }
  .legal-page h1 {
    font-size: 30px;
  }
  .legal-page p {
    font-size: 15px;
  }
}
