/* Shared portal interior system. No game canvas or admin styles. */
#content {
  min-height: calc(100svh - 68px);
}
main[data-page]:not([data-page='home']):not([data-page='jogo']) {
  max-width: 1100px;
  margin-inline: auto;
}
.club-heading {
  margin: 20px 0;
}
.club-heading .eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #bca3ff;
}
.club-heading h1 {
  font-size: 32px;
  letter-spacing: -0.8px;
  margin: 7px 0;
  line-height: 1.2;
}
.club-rules {
  border: 1px solid #ffffff12;
  background: #211d30;
  border-radius: 12px;
  padding: 13px 16px;
  margin: 16px 0;
  color: #b9b0cb;
  font-size: 13px;
  line-height: 1.6;
}
.club-rules summary {
  cursor: pointer;
  font-weight: 700;
  color: #d2c6eb;
}
.club-rules p {
  margin: 10px 0 0;
  font-size: 13px;
}
.club-stats {
  padding: 16px 18px;
  background: linear-gradient(110deg, #34234f, #202b3d);
  border: 1px solid #a881ff30;
  border-radius: 14px;
  font-size: 14px !important;
  color: #e5d9fa;
  margin: 16px 0;
}
.club-tasks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.club-tasks .task-card {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 18px;
  border: 1px solid #ffffff10;
  border-radius: 15px;
  background: linear-gradient(125deg, #252035, #1c1b2a);
  box-shadow: none;
}
.task-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #9971ed20;
  color: #c7a5ff;
  font-size: 25px;
}
.task-copy {
  min-width: 0;
}
.task-copy .eyebrow {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #a99dbd;
}
.club-tasks .task-copy h2 {
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.25px;
  margin: 5px 0;
}
.club-tasks .task-copy p {
  font-size: 12px;
  margin: 5px 0 0;
  color: #a99dbd;
}
.task-copy p:empty {
  display: none;
}
.club-tasks .task-bottom {
  display: flex;
  justify-content: space-between;
  margin: 3px 0 0;
}
.club-tasks .task-bottom strong {
  font-size: 17px;
  color: #d0b3ff;
  white-space: nowrap;
}
.club-tasks .primary {
  padding: 10px 14px;
  font-size: 12px;
  min-height: 38px;
  box-shadow: none;
  border-radius: 9px;
  line-height: 1.25;
}
.club-tasks .is-claimed {
  background: #1e242b;
}
.is-claimed .task-icon {
  color: #9ce4c3;
  background: #58ca9820;
}
.club-footnote {
  font-size: 12px !important;
  line-height: 1.7;
  color: #9289a4;
  margin-top: 18px;
}
.reward-overview {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin: 18px 0;
}
.reward-overview .wallet,
.reward-overview .pass-summary {
  margin: 0;
  padding: 18px;
  border: 1px solid #8d70c638;
  border-radius: 15px;
  background: linear-gradient(115deg, #302545, #20283a);
  font-size: 12px;
  line-height: 1.5;
  color: #c9bfd9;
}
.reward-overview .wallet h2 {
  font-size: 30px;
  margin: 5px 0;
  line-height: 1.2;
}
.reward-overview .wallet a {
  font-size: 12px;
  color: #a7eccd;
}
.pass-summary strong {
  display: block;
  font-size: 30px;
  color: #f5edff;
  margin-top: 5px;
}
#reward-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
#reward-list .reward-card {
  display: grid;
  align-items: start;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid #ffffff12;
  overflow: hidden;
}
#reward-list .reward-art {
  min-height: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #b9f0d7;
}
#reward-list .reward-card > div:last-child {
  padding: 0;
  min-width: 0;
}
#reward-list .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
  color: #b3a2c9;
}
#reward-list h2 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
#reward-list p {
  font-size: 12px;
  line-height: 1.6;
  color: #b2a9c2;
  margin: 7px 0;
}
#reward-list p:empty {
  display: none;
}
#reward-list strong {
  display: block;
  font-size: 16px;
  color: #d1b3ff;
  margin: 14px 0 10px;
}
#reward-list .primary {
  font-size: 12px;
  padding: 11px 15px;
  box-shadow: none;
  border-radius: 9px;
  margin: 0;
  max-width: 100%;
  white-space: normal;
}
#reward-list > .notice {
  grid-column: 1/-1;
  font-size: 13px;
  padding: 18px;
  border-radius: 12px;
}
main[data-page='recompensas'] > h2 {
  font-size: 20px;
  margin: 24px 0 12px;
}
.ledger {
  border: 1px solid #ffffff10;
  border-radius: 14px;
  overflow: hidden;
  background: #1c1a29;
}
.ledger > div {
  padding: 13px 16px;
  border-bottom: 1px solid #ffffff0c;
  gap: 12px;
  font-size: 13px;
}
.ledger > div:last-child {
  border: 0;
}
.ledger small {
  font-size: 11px;
  color: #978ba9;
}
.ledger strong {
  white-space: nowrap;
}
.auth-panel,
.legal-page {
  background: #1e1b2c;
  border: 1px solid #ffffff12;
  border-radius: 18px;
  padding: 28px;
}
.auth-panel {
  margin: 24px auto;
}
.auth-panel h1,
.legal-page h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 18px;
}
.auth-panel p,
.legal-page p {
  font-size: 14px;
  line-height: 1.8;
  color: #b9afc9;
}
.legal-page h2 {
  font-size: 20px;
  margin: 26px 0 10px;
}
.account-summary {
  background: linear-gradient(115deg, #302545, #20283a);
  border-color: #7960a538;
  padding: 20px;
  border-radius: 15px;
  margin: 20px 0;
}
.account-summary h2 {
  font-size: 21px;
}
.metric-grid {
  gap: 12px;
}
.metric {
  background: #242033;
  border-color: #ffffff10;
  padding: 16px;
}
.metric small {
  font-size: 12px;
}
.metric strong {
  font-size: 26px;
  margin-top: 8px;
}
.auth-panel .primary,
.action-row button {
  border-radius: 10px;
  box-shadow: none;
  font-size: 14px;
  padding: 12px 18px;
}
.field input {
  background: #151321;
  border-color: #413550;
}
.primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.primary:focus-visible,
summary:focus-visible {
  outline: 2px solid #d7bcff;
  outline-offset: 3px;
}
@media (max-width: 780px) {
  .club-tasks,
  #reward-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .club-heading {
    margin: 14px 0;
  }
  .club-heading h1 {
    font-size: 27px;
  }
  .club-rules {
    margin: 12px 0;
    font-size: 12px;
    padding: 11px 13px;
  }
  .club-stats {
    font-size: 12px !important;
    padding: 13px;
    margin: 12px 0;
  }
  .club-tasks {
    gap: 9px;
  }
  .club-tasks .task-card {
    padding: 14px;
    gap: 9px 12px;
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .task-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 22px;
  }
  .club-tasks .task-copy h2 {
    font-size: 14px;
  }
  .club-tasks .task-bottom {
    margin: 0;
  }
  .club-tasks .task-bottom strong {
    font-size: 16px;
  }
  .club-tasks .primary {
    font-size: 11px;
    padding: 9px 12px;
    min-height: 35px;
  }
  .reward-overview {
    gap: 9px;
    margin: 14px 0;
  }
  .reward-overview .wallet,
  .reward-overview .pass-summary {
    padding: 14px;
    font-size: 11px;
  }
  .reward-overview .wallet h2,
  .pass-summary strong {
    font-size: 26px;
  }
  #reward-list {
    gap: 11px;
    margin: 16px 0 24px;
  }
  #reward-list .reward-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  #reward-list .reward-art {
    width: 44px;
    height: 44px;
    font-size: 23px;
    border-radius: 11px;
  }
  #reward-list h2 {
    font-size: 17px;
  }
  #reward-list .eyebrow {
    font-size: 8px;
    letter-spacing: 0.6px;
  }
  .auth-panel,
  .legal-page {
    padding: 20px;
    margin: 16px 0;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .account-summary {
    padding: 16px;
  }
  .back {
    font-size: 12px;
  }
}
.club-tasks .task-card {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}
.club-tasks .task-bottom {
  grid-column: 3;
  grid-row: 1;
  padding: 0;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.task-copy {
  line-height: 1.35;
}
.reward-art svg {
  width: 28px;
  height: 28px;
}
.back {
  margin-bottom: 12px;
}
@media (max-width: 680px) {
  .club-tasks .task-card {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }
  .club-tasks .task-bottom {
    max-width: 112px;
  }
  .club-tasks .task-bottom .primary {
    white-space: normal;
  }
  .club-heading {
    margin-top: 10px;
  }
  .back {
    margin-bottom: 10px;
  }
}

/* One-row portal header: compact account action and icon-only language control. */
.topbar {
  gap: 10px;
  align-items: center;
}
.topbar .language-control {
  background: transparent !important;
  flex: none;
}
.topbar .language-toggle {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  background: #ffffff05;
  border: 1px solid #ffffff16;
  border-radius: 12px;
  color: #cfc6e1;
}
.language-toggle svg {
  width: 21px;
  height: 21px;
  display: block;
  flex: 0 0 21px;
  margin: 0;
}
.topbar .account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 15px;
  background: #8060e9;
  border: 1px solid #a58af366;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: inset 0 1px #ffffff18;
}
.account-link svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.topbar .account-link.is-signed-in {
  background: #34284c;
  color: #dccbff;
}
.topbar .account-link:hover {
  background: #9474f2;
}
.topbar .language-toggle:hover,
.topbar .language-toggle[aria-expanded='true'] {
  background: #a985fa20;
  border-color: #a985fa80;
}
.topbar a:focus-visible,
.language-toggle:focus-visible {
  outline: 2px solid #dac2ff;
  outline-offset: 3px;
}
@media (max-width: 680px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-rows: auto;
    gap: 7px;
    padding: 14px 0 18px;
    min-height: 68px;
  }
  .topbar .mobile-brand {
    grid-area: 1/1;
    font-size: 25px;
    white-space: nowrap;
  }
  .topbar .balance {
    grid-area: 1/2;
    min-height: 36px;
    padding: 6px 8px;
    max-width: 82px;
    overflow: hidden;
  }
  .topbar .balance strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar .language-control {
    grid-area: 1/3;
  }
  .topbar .language-toggle {
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 10px;
  }
  .topbar .language-menu {
    right: -76px;
    background: #252033;
    border-color: #534165;
  }
  .topbar .account-link {
    grid-area: 1/4;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 11px;
    gap: 5px;
    border-radius: 10px;
  }
  .topbar .account-link svg {
    width: 15px;
    height: 15px;
  }
}
@media (max-width: 360px) {
  .topbar {
    gap: 5px;
  }
  .topbar .mobile-brand {
    font-size: 22px;
  }
  .topbar .mobile-brand i {
    display: none;
  }
  .topbar .account-link {
    width: 36px;
    padding: 8px;
  }
  .topbar .account-link span {
    display: none;
  }
  .topbar .language-menu {
    right: -42px;
  }
  .topbar .balance {
    max-width: 62px;
  }
}

/* Player sign-in: compact form with the homepage artwork as a restrained accent. */
.auth-player {
  position: relative;
  overflow: hidden;
  max-width: 460px;
  padding: 26px;
  margin: 18px auto;
  background: radial-gradient(ellipse at 100% 0, #4b2c784d, transparent 55%), #201b2f;
  border: 1px solid #aa89ed30;
  box-shadow: 0 20px 50px #0002;
}
.auth-player .auth-art {
  position: absolute;
  right: 0;
  top: 0;
  width: 150px;
  height: 135px;
  pointer-events: none;
  background:
    linear-gradient(90deg, #201b2f, transparent),
    linear-gradient(0deg, #201b2f, transparent),
    url('/assets/arcade-hero-v1.webp') 72% 40% / auto 140px;
  opacity: 0.65;
}
.auth-art span {
  display: none;
}
.auth-player > .eyebrow,
.auth-player > h1 {
  position: relative;
  max-width: 78%;
}
.auth-player > .eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #c1a6f7;
}
.auth-player h1 {
  font-size: 29px;
  margin: 8px 0 12px;
}
.auth-player > p {
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 20px;
  position: relative;
}
.auth-player .stack {
  gap: 14px;
}
.auth-player .field {
  gap: 7px;
  font-size: 12px;
  color: #d1c6e4;
}
.auth-player .field input {
  height: 45px;
  padding: 11px 13px;
  border-radius: 11px;
  background: #171321;
  border: 1px solid #514365;
  font-size: 16px;
}
.auth-player .inline-help {
  font-size: 11px;
  line-height: 1.6;
  color: #a396b8;
}
.auth-player .form-error {
  font-size: 12px;
  line-height: 1.5;
  min-height: 0;
  margin: 0;
}
.auth-player .form-error:empty {
  display: none;
}
.auth-player .primary {
  min-height: 44px;
  background: linear-gradient(110deg, #9270f5, #7053dd);
  border: 1px solid #b99bfa66;
  box-shadow: 0 5px 16px #7449dd24;
  font-size: 14px;
  margin-top: 2px;
}
.auth-player .auth-switch {
  border-top: 1px solid #ffffff0c;
  padding-top: 17px;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.6;
  color: #c8b1ff;
}
.rail nav svg {
  display: block;
  width: 23px;
  height: 23px;
}
.rail nav a.active svg {
  filter: drop-shadow(0 0 6px #b58fff55);
}
@media (max-width: 680px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .rail {
    position: fixed;
    inset: auto 0 0 0;
    margin: 0;
    width: 100%;
    height: calc(68px + env(safe-area-inset-bottom, 0px));
    padding: 6px max(10px, env(safe-area-inset-right, 0px))
      calc(6px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    border-radius: 0;
    box-sizing: border-box;
    background: linear-gradient(180deg, #211a30f7, #161221);
    border: 0;
    border-top: 1px solid #aa88e52b;
    box-shadow: 0 -8px 26px #0003;
    z-index: 40;
  }
  .rail nav {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    align-items: stretch;
  }
  .rail nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 0;
    border-radius: 12px;
    color: #9f94b4;
    min-width: 0;
  }
  .rail nav a b {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
  }
  .rail nav a span {
    line-height: 1;
  }
  .rail nav a.active {
    color: #e4d5ff;
    background: linear-gradient(140deg, #9d76f22b, #7554c91a);
    box-shadow: inset 0 0 0 1px #b58afb15;
  }
  .rail nav a.active:before {
    content: '';
    position: absolute;
    top: 0;
    width: 18px;
    height: 2px;
    background: #bd9bff;
    border-radius: 4px;
  }
  .auth-player {
    padding: 22px;
    margin: 8px auto 20px;
    border-radius: 20px;
  }
  .auth-player h1 {
    font-size: 27px;
  }
}
#reward-list .reward-card {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 12px;
  padding: 20px;
  background: radial-gradient(ellipse at 0 0, #7152b52e, transparent 65%), #211c30;
}
#reward-list .reward-card > div:last-child {
  display: contents;
}
#reward-list .reward-art {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid #bd98ff20;
  background: linear-gradient(135deg, #7553a64a, #373048);
  border-radius: 12px;
}
#reward-list .eyebrow,
#reward-list h2 {
  grid-column: 1/-1;
  padding-left: 58px;
}
#reward-list .eyebrow {
  padding-top: 3px;
}
#reward-list h2 {
  margin: 6px 0 17px;
  min-height: 23px;
}
#reward-list .reward-card p {
  grid-column: 1/-1;
  margin: 0 0 15px;
  line-height: 1.65;
}
#reward-list .reward-card p:empty {
  display: none;
}
#reward-list .reward-card strong {
  grid-column: 1;
  align-self: center;
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid #ffffff0c;
  min-height: 43px;
  display: flex;
  align-items: center;
}
#reward-list .reward-card .primary {
  grid-column: 2;
  align-self: end;
  margin-top: 4px;
  min-height: 40px;
  background: linear-gradient(110deg, #9674ed, #7356d6);
  border: 1px solid #c4a0ff35;
}
@media (max-width: 680px) {
  #reward-list .reward-card {
    padding: 17px;
    gap: 0 10px;
  }
  #reward-list .reward-art {
    top: 17px;
    left: 17px;
  }
  #reward-list .reward-card strong {
    font-size: 16px;
  }
  #reward-list .reward-card .primary {
    font-size: 11px;
    padding: 10px 14px;
  }
  #reward-list h2 {
    margin-bottom: 17px;
  }
}

/* Reserve the header while account/language controls initialize; no visible reflow. */
.topbar[aria-busy='true'] > * {
  visibility: hidden;
}
.topbar[aria-busy='true'] {
  background: linear-gradient(90deg, #24203380, transparent);
  border-radius: 12px;
}
