:root {
  color-scheme: dark;
  font-family: system-ui,sans-serif;
  color: #edf2ff;
  background: #0a1021;
  --accent: #a8fcda;
  --panel: #151e33;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

header {
  border-bottom: 1px solid #26304a;
}

.bar,main {
  width: min(1120px,92%);
  margin: auto;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  line-height: 1;
  font-weight: 900;
}

.brand-prefix {
  color: var(--brand-yellow);
}

.brand-suffix {
  color: #fff;
  font-weight: 750;
}

.wallet {
  font-size: .9rem;
  color: #c5cfe4;
}

main {
  padding: 32px 0;
}

.hero {
  background: radial-gradient(ellipse at 90% 0%,#3c6974,transparent 58%),linear-gradient(115deg,#172943,#25214b);
  border: 1px solid #394763;
  border-radius: 12px;
  padding: clamp(25px,6vw,72px);
}

h1 {
  font-size: clamp(2rem,7vw,4.5rem);
  line-height: 1;
  margin: 12px 0;
}

p {
  color: #c5cfe4;
  line-height: 1.5;
}

small {
  color: var(--accent);
  font-size: .85rem;
}

button,input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 1px solid #46516c;
  border-radius: 8px;
  background: var(--panel);
  color: inherit;
  padding: 10px 16px;
}

button:hover {
  border-color: var(--accent);
}

button:focus-visible,input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.primary,[aria-pressed=true] {
  background: var(--accent);
  color: #11241e;
  border-color: transparent;
  font-weight: 700;
}

.catalog {
  margin-top: 32px;
}

.controls,.filters,.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.controls {
  justify-content: space-between;
  margin-bottom: 16px;
}

input {
  background: var(--panel);
  color: inherit;
  border: 1px solid #46516c;
  border-radius: 8px;
  padding: 10px;
  max-width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr));
  gap: 14px;
}

.card {
  text-align: left;
  padding: 0;
  overflow: hidden;
}

.art {
  display: grid;
  place-items: center;
  min-height: 125px;
  font-size: 3rem;
  background: radial-gradient(circle at 65% 20%,var(--tone),transparent 72%),#1c2646;
}

.caption {
  display: grid;
  gap: 4px;
  padding: 14px;
}

footer {
  margin-top: 32px;
  color: #aab7d0;
  font-size: .875rem;
}

dialog {
  max-width: min(430px,92vw);
  border: 1px solid #46516c;
  border-radius: 12px;
  background: var(--panel);
  color: inherit;
  padding: 24px;
}

dialog::backdrop {
  background: #050915cc;
}

:root {
  background: #1f152d;
  --site-width: 488px;
  --brand-yellow: #ffdf36;
  --accent: var(--brand-yellow);
  --panel: #322047;
}

body {
  background: conic-gradient(#28163c 25%,#311945 0 50%,#28163c 0 75%,#311945 0) 0 0/74px 74px;
  width: min(100%,var(--site-width));
  min-height: 100vh;
  margin-inline: auto;
}

header {
  background: #261639;
  border-color: #65426f;
}

.bar,main,.dock-inner {
  width: 100%;
  margin: auto;
}

.bar,main {
  padding-inline: 16px;
}

.brand {
  font-size: clamp(1.3rem,5vw,2.1rem);
  letter-spacing: -.05em;
}

.balance-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet {
  color: #fff0b5;
}

main {
  padding-block: 16px 100px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: #de8b63;
  border-radius: 10px;
  background: radial-gradient(ellipse at 80% 40%,#d5795a,transparent 55%),linear-gradient(125deg,#582459,#a64166);
  padding: clamp(20px,5vw,50px);
}

.hero::after {
  content: '✦';
  position: absolute;
  z-index: -1;
  right: 8%;
  top: 50%;
  transform: translateY(-50%) rotate(18deg);
  font-size: clamp(7rem,28vw,16rem);
  line-height: 1;
  color: #ffcf76;
  opacity: .55;
}

.hero p {
  color: #fff4fa;
}

.shortcut-row {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  margin: 15px 0;
  padding-bottom: 5px;
}

.shortcut-row button {
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  place-items: center;
  min-width: 90px;
  padding: 8px;
  background: linear-gradient(#633463,#332048);
  border-color: #925a86;
}

.shortcut-row span {
  font-size: 1.55rem;
}

.announcement {
  margin: 12px 0;
  color: #ffe787;
  border-block: 1px solid #75446d;
  padding: 10px 0;
}

.jackpot {
  text-align: center;
  border: 2px solid #f8bc6f;
  border-radius: 10px;
  background: linear-gradient(110deg,#571f47,#a83058,#571f47);
  padding: 13px 10px;
  box-shadow: inset 0 0 0 4px #682649;
}

.jackpot strong {
  display: block;
  font-size: clamp(1.5rem,6vw,3rem);
  color: #ffe787;
  font-variant-numeric: tabular-nums;
}

.catalog {
  margin-top: 18px;
}

.grid {
  grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr));
}

@media(max-width:500px) {
  .grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .wallet {
    font-size: .78rem;
  }
  .balance-group button {
    padding: 7px 9px;
  }
}

.dock {
  position: fixed;
  inset: auto 0 0;
  width: min(100%,var(--site-width));
  margin-inline: auto;
  z-index: 2;
  background: #281835;
  border-top: 1px solid #935d85;
  padding-bottom: env(safe-area-inset-bottom);
}

.dock-inner {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
}

.dock button {
  display: grid;
  place-items: center;
  gap: 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 2px;
  color: #ffe6ef;
  font-size: clamp(.72rem,3vw,.95rem);
}

.dock button:hover {
  background: #4a2b53;
}

.dock span {
  font-size: 1.3rem;
  color: var(--accent);
}

.filters {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 6px;
  margin-top: 14px;
  padding: 6px;
  background: #291936;
  border: 1px solid #75446d;
  border-radius: 8px;
}

.filters button {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding: 7px 2px;
  font-size: clamp(.76rem,3vw,1rem);
}

.filters span {
  font-size: 1.35rem;
  line-height: 1.2;
}

.controls input {
  width: min(100%,320px);
}

@media(max-width:600px) {
  .hero h1 {
    margin: 7px 0;
  }
  .hero p {
    margin: 8px 0 12px;
  }
  .bar {
    padding-block: 10px;
  }
  .shortcut-row {
    margin-block: 10px;
  }
  .jackpot {
    padding-block: 8px;
  }
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.menu-toggle {
  color: var(--accent);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.45rem;
}

.drawer {
  position: fixed;
  inset: 0 auto 0 max(0px,calc((100% - var(--site-width))/2));
  margin: 0;
  width: min(360px,85vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  overflow: auto;
  border: 0;
  border-right: 1px solid #925a86;
  border-radius: 0;
  padding: 16px;
  background: linear-gradient(160deg,#50234e,#271635 65%);
  box-shadow: 12px 0 40px #130b24aa;
}

.drawer::backdrop {
  background: #10071899;
  backdrop-filter: blur(7px);
}

body:has(.drawer[open]) {
  overflow: hidden;
}

.drawer-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.drawer h2 {
  margin: 0;
  color: var(--accent);
}

.drawer-card {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #925a86;
  border-radius: 8px;
  background: #653459;
}

.drawer-card p {
  margin: 4px 0;
}

.drawer-options {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
}

.drawer-options button {
  display: grid;
  place-items: center;
  gap: 5px;
  min-width: 0;
  padding: 10px 2px;
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.drawer-options span {
  font-size: 1.5rem;
}

@media(max-width:420px) {
  header .bar {
    padding-inline: 10px;
    gap: 6px;
  }
  .brand-group {
    gap: 6px;
  }
  .menu-toggle {
    width: 34px;
    height: 36px;
  }
  .balance-group {
    gap: 5px;
  }
  .wallet strong {
    display: block;
  }
}

.auth {
  width: min(470px,calc(100% - 28px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.auth-panel {
  max-height: calc(100dvh - 84px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid #ab6c9e;
  border-radius: 12px;
  background: #41234d;
}

.auth-close {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 12px 0 0;
}

.auth-close button {
  position: relative;
  display: block;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #321c40e6;
  color: #fff;
}

.auth-close span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.auth-close span::before,.auth-close span::after {
  content: '';
  grid-area: 1/1;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.auth-close span::after {
  transform: rotate(-45deg);
}

.auth:focus {
  outline: none;
}

.auth[open] {
  animation: auth-popup-in 270ms cubic-bezier(.2,.72,.28,1) both;
}

.auth[open]::backdrop {
  animation: auth-backdrop-in 180ms ease-out both;
}

@keyframes auth-popup-in {
  from {
    opacity: 0;
    transform: scale(.58);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes auth-popup-in-reduced {
  from {
    opacity: 0;
    transform: scale(.83);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes auth-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media(prefers-reduced-motion:reduce) {
  .auth[open] {
    animation: auth-popup-in-reduced 200ms ease-out both;
  }
  .auth[open]::backdrop {
    animation: auth-backdrop-in 180ms ease-out both;
  }
}

.auth::backdrop {
  background: #14091eb5;
  backdrop-filter: blur(8px);
}

.auth-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-tabs {
  margin: 0 0 18px;
}

.auth-tabs button {
  flex: 1;
}

.auth label {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
}

.auth input {
  width: 100%;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 6px;
}

.auth-submit {
  width: 100%;
  margin-top: 15px;
}

.auth-error {
  color: #ffd0df;
  min-height: 1.25em;
  margin: 10px 0 0;
}

.auth-tabs {
  border-bottom: 1px solid #99688e;
  padding-bottom: 8px;
}

.auth .strength {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  font-size: .875rem;
}

.strength-bars {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 6px;
  flex: 1;
  max-width: 240px;
}

.strength-bars span {
  height: 7px;
  border-radius: 4px;
  background: #795b83;
}

.strength-bars[data-level="1"] {
  --strength-color: #ff646d;
}

.strength-bars[data-level="2"] {
  --strength-color: #ffdf36;
}

.strength-bars:is([data-level="3"],[data-level="4"]) {
  --strength-color: #60db8a;
}

.strength-bars span.filled {
  background: var(--strength-color);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
}

.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.auth .consent label {
  display: inline;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.consent details {
  margin-top: 6px;
  font-size: .875rem;
}

.consent summary {
  color: var(--accent);
  cursor: pointer;
}

.consent p {
  margin: 5px 0;
}

.auth-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0,1fr);
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  text-align: center;
}

.auth-actions button {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
}

.account-field {
  display: flex;
  align-items: stretch;
  border: 1px solid #46516c;
  border-radius: 8px;
  background: var(--panel);
}

.account-field:focus-within,.auth .password-with-icon input:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.account-field input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
}

.account-field:has(input:autofill) {
  background: #393656;
}

.account-field input:autofill {
  box-shadow: inset 0 0 0 100px #393656;
  -webkit-text-fill-color: #fff;
}

.account-field input:focus-visible {
  outline: none;
}

#country-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  padding: 0 11px;
  border-right: 1px solid #70577c;
  white-space: nowrap;
  color: var(--accent);
}

.auth [hidden] {
  display: none!important;
}

#register-method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}

#register-method button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f3ddec;
  text-align: left;
  font-size: clamp(.75rem,2.7vw,.85rem);
}

#register-method button[aria-pressed=true] {
  color: var(--accent);
  font-weight: 500;
}

#register-method button:disabled {
  opacity: .62;
  cursor: not-allowed;
}

.method-icon {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #271635;
  color: var(--accent);
  font-size: .72rem;
}

.method-lock {
  color: #fff;
}

.method-code {
  border: 1px solid currentColor;
  background: transparent;
}

.phone-hint {
  margin: 6px 0 0;
  color: #ffd0df;
  font-size: .875rem;
}

.account-kind {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.account-kind button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: .875rem;
}

.account-kind button[aria-pressed=true] {
  color: var(--accent);
}

.kind-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid #bd96b9;
  border-radius: 4px;
}

.account-kind button[aria-pressed=true] .kind-mark {
  background: var(--accent);
  border-color: var(--accent);
  color: #291936;
}

.account-kind button[aria-pressed=true] .kind-mark::before {
  content: '✓';
  line-height: 1;
}

@media(max-width:340px) {
  .account-kind {
    grid-template-columns: 1fr;
  }
}

.password-with-icon {
  position: relative;
  display: block;
}

.password-with-icon input {
  padding: 12px 47px 12px 37px;
}

.password-with-icon {
  margin-top: 12px;
}

.password-lock {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  pointer-events: none;
}

.auth label.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.password-with-icon .field-icon {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.auth .field-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 1.45rem;
}

.field-icon svg {
  width: 22px;
  height: 22px;
}

.field-icon[aria-pressed=true] .eye-slash {
  display: none;
}

.auth-scroll, .profile-view {
  scrollbar-width: thin;
  scrollbar-color: #b68bac transparent;
}

@supports selector(::-webkit-scrollbar) {
  .auth-scroll, .profile-view {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
  .auth-scroll::-webkit-scrollbar, .profile-view::-webkit-scrollbar {
    width: 4px;
  }
  .auth-scroll::-webkit-scrollbar-track, .profile-view::-webkit-scrollbar-track {
    background: transparent;
  }
  .auth-scroll::-webkit-scrollbar-thumb, .profile-view::-webkit-scrollbar-thumb {
    background: #b68bac;
    border-radius: 4px;
  }
}

#auth-guest,#auth-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#auth-guest > .auth-tabs,.auth-footer,.auth-error {
  flex: none;
}

.auth-scroll {
  min-height: 0;
  overflow: auto;
  padding: 0 8px 6px 2px;
  scrollbar-gutter: stable;
}

#auth-guest:has([data-auth-mode="register"][aria-pressed="true"]) {
  > .auth-tabs {
    margin-bottom: 8px;
  }
  .auth-scroll {
    max-height: 246px;
  }
  .auth-scroll label:has(.account-field) {
    gap: 6px;
    margin-top: 4px;
  }
  #register-method {
    margin-top: 7px;
  }
  #register-method button {
    padding-block: 3px;
  }
  .password-with-icon {
    margin-top: 9px;
  }
  .password-with-icon input {
    min-height: 42px;
    padding-block: 8px;
  }
  .strength {
    margin-top: 7px;
  }
}

.auth-footer {
  padding-top: 6px;
}

.auth-footer .consent {
  margin-top: 5px;
}

.auth-error:empty {
  display: none;
}

@media(max-height:440px) {
  .auth-panel {
    padding: 8px 12px;
  }
  .auth-tabs {
    margin-bottom: 6px;
  }
  .auth-submit {
    margin-top: 6px;
  }
  .auth-actions {
    margin-top: 0;
  }
}

#auth-form.enter-from-left {
  --entry-offset: -100%;
  animation: auth-slide-in 460ms ease-out;
}

#auth-form.enter-from-right {
  --entry-offset: 100%;
  animation: auth-slide-in 460ms ease-out;
}

@keyframes auth-slide-in {
  from {
    transform: translateX(var(--entry-offset));
  }
  to {
    transform: translateX(0);
  }
}

@media(prefers-reduced-motion:reduce) {
  #auth-form.enter-from-left {
    --entry-offset: -24px;
    animation-duration: 240ms;
  }
  #auth-form.enter-from-right {
    --entry-offset: 24px;
    animation-duration: 240ms;
  }
}

#auth-guest > .auth-tabs {
  gap: 0;
  padding: 0;
}

.auth-tabs [data-auth-mode] {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-weight: 500;
}

.auth-tabs [data-auth-mode] {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.auth-tabs [data-auth-mode]:focus-visible {
  outline: none;
}

.auth-tabs [data-auth-mode] svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.auth-tabs [data-auth-mode][aria-pressed=true] {
  color: var(--accent);
}

.auth-tabs [data-auth-mode][aria-pressed=true]::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 22%;
  right: 22%;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
}

.account-icon {
  display: none;
  flex: none;
  align-self: center;
  margin-left: 11px;
  color: var(--accent);
}

#auth-guest:has([data-auth-mode="login"][aria-pressed="true"]) .account-field:has(#country-prefix[hidden]) .account-icon {
  display: block;
}

.auth #clear-password {
  display: none;
  right: 43px;
}

#auth-guest:has([data-auth-mode="login"][aria-pressed="true"]) #password-controls:has(input:not(:placeholder-shown)) #clear-password {
  display: grid;
}

#auth-guest:has([data-auth-mode="login"][aria-pressed="true"]) #auth-password:not(:placeholder-shown) {
  padding-right: 88px;
}

#register-name {
  padding-right: 12px;
}

.register-name-hint {
  margin: 6px 0 0;
  color: var(--accent);
  font-size: .875rem;
}

.password-with-icon:has(#register-name:placeholder-shown) ~ .register-name-hint {
  display: none;
}

.field-error {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 5px 0 0;
  color: #ffb3bf;
  font-size: .875rem;
  line-height: 1.35;
}

.field-error::before {
  content: '!';
  flex: 0 0 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffb3bf;
  color: #41234d;
  text-align: center;
  font: 800 12px/16px system-ui;
}

.auth label.remember-account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-weight: 400;
  cursor: pointer;
}

.auth .remember-account input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--accent);
}

.auth-actions button {
  padding-inline: 4px;
  font-size: clamp(.75rem,3.5vw,1rem);
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.auth-loading-dots {
  display: none;
  align-items: center;
  gap: 4px;
}

.auth-submit[aria-busy=true] {
  cursor: wait;
}

.auth-submit {
  position: relative;
}

.auth-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.auth[open] .auth-submit {
  --beat-scale: 1.02;
  --beat-spread: 8px;
  animation: auth-submit-pulse 1.5s ease infinite;
}

.auth[open] .auth-submit::after {
  animation: auth-submit-wave 1.5s ease infinite;
}

.auth-submit[aria-busy=true] .auth-loading-dots {
  display: inline-flex;
}

.auth-loading-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: auth-loading-dot .9s ease-in-out infinite alternate;
}

.auth-loading-dots i:nth-child(2) {
  animation-delay: .15s;
}

.auth-loading-dots i:nth-child(3) {
  animation-delay: .3s;
}

@keyframes auth-submit-pulse {
  0%,64%,100% {
    transform: scale(1);
  }
  25%,34% {
    transform: scale(var(--beat-scale));
  }
}

@keyframes auth-submit-wave {
  0%,13% {
    box-shadow: 0 0 0 0 #ffdf3600;
  }
  25% {
    box-shadow: 0 0 0 2px #ffdf3666;
  }
  40% {
    box-shadow: 0 0 0 var(--beat-spread) #ffdf3638;
  }
  64% {
    box-shadow: 0 0 0 var(--beat-spread) #ffdf3600;
  }
  100% {
    box-shadow: 0 0 0 0 #ffdf3600;
  }
}

@keyframes auth-loading-dot {
  from {
    opacity: .3;
  }
  to {
    opacity: 1;
  }
}

@media(prefers-reduced-motion:reduce) {
  .auth[open] .auth-submit {
    --beat-scale: 1.01;
    --beat-spread: 6px;
  }
  .auth-loading-dots i {
    animation: none;
  }
}

.auth-reminder .auth-panel {
  text-align: center;
  padding: 24px;
  min-height: 150px;
  justify-content: center;
}

.auth-reminder h2 {
  margin: 0 0 12px;
}

.auth-reminder p {
  margin: 0;
  color: #f5e8fa;
}

.entry-splash {
  container-type: inline-size;
  position: fixed;
  inset: 0;
  width: min(100%,var(--site-width));
  margin-inline: auto;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center,#492c62 0%,#241733 64%,#171022 100%);
  animation: entry-reveal 750ms both;
}

.entry-splash .brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: min(74%,65dvh);
  aspect-ratio: 1;
  padding: 12px;
  border: 0;
  border-radius: 18%;
  background: #2b1b3d;
  box-shadow: 0 14px 48px #120b21a6;
}

.entry-splash .brand-prefix {
  font-size: min(36cqw,31dvh);
  letter-spacing: -.06em;
}

.entry-splash .brand-suffix {
  font-size: min(16cqw,14dvh);
  letter-spacing: -.035em;
}

@keyframes entry-reveal {
  0%,76% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@media(prefers-reduced-motion:reduce) {
  .entry-splash {
    animation-timing-function: steps(1,end);
  }
}

.username-suggestions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  font-size: .875rem;
}

.username-suggestions button {
  max-width: 100%;
  padding: 3px 7px;
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: inherit;
}

.auth :is(.account-icon,.password-lock,.field-icon,.method-code) {
  color: #f1e8f5;
}

.auth-tabs [data-auth-mode][aria-pressed=true] {
  color: #f1e8f5;
}

.auth-tabs [data-auth-mode][aria-pressed=true]::after {
  background: var(--accent);
}

.auth-submit:has(.register-gift:not([hidden])) {
  margin-top: 24px;
}

.register-gift {
  position: absolute;
  right: 8px;
  top: -20px;
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  line-height: 1;
}

.register-gift-icon {
  font-size: 1.65rem;
  transform: rotate(-12deg);
}

.register-gift-value {
  background: #16673a;
  color: #fff;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 750;
}

.terms-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: .875rem;
  text-align: left;
}

.terms-dialog h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 1.2rem;
}

.terms-dialog {
  width: min(360px,calc(100% - 32px));
}

.terms-dialog .auth-panel {
  padding: 14px 16px;
}

.terms-dialog .auth-scroll {
  max-height: min(230px,34dvh);
  padding: 0 8px 0 2px;
}

.terms-dialog ol {
  margin: 0;
  padding-left: 1.45em;
  line-height: 1.5;
}

.terms-dialog li {
  margin: 0 0 10px;
}

.terms-footer {
  flex: none;
  padding-top: 8px;
}

.terms-footer p {
  margin: 0 0 8px;
  font-size: .875rem;
}

.terms-footer button {
  width: 100%;
}

#auth-guest:has([data-auth-mode="register"][aria-pressed="true"]) #account-label {
  font-size: .9rem;
  font-weight: 400;
}

#auth .auth-panel {
  padding-top: 8px;
}

#auth-guest > .auth-tabs {
  margin-bottom: 8px;
}

.auth-tabs [data-auth-mode] {
  min-height: 40px;
  padding-block: 5px;
}

/* Controles do cabeçalho do lobby */
body > header {
  position: sticky;
  top: 0;
  z-index: 4;
}

#catalog {
  scroll-margin-top: 84px;
}
.bar .menu-toggle {
  width: 36px;
  min-width: 36px;
  border: 0;
  background: transparent;
}

.bar .menu-toggle svg,
#refresh-balance svg,
#profile-refresh svg,
#deposit-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bar .menu-toggle svg {
  transform: scaleX(1.4);
}

.balance-group .wallet {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 3px 0 6px;
  border: 1px solid #80658d;
  border-radius: 999px;
  white-space: nowrap;
}

.wallet-flag {
  width: 19px;
  height: 19px;
  flex: none;
}

.wallet strong {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-variant-numeric: tabular-nums;
}

.balance-group #refresh-balance {
  display: grid;
  place-items: center;
  width: 28px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f2e9f7;
}

.wallet-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.deposit-control {
  position: relative;
}

.deposit-buttons {
  display: flex;
  align-items: stretch;
  background: var(--accent);
  border-radius: 8px;
}

.balance-group .deposit-buttons button {
  height: 36px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #2b1b3d;
  font-weight: 700;
  font-size: .875rem;
}

.balance-group .deposit-buttons #deposit-toggle {
  padding-inline: 4px;
}

#deposit-toggle svg {
  display: block;
  width: 16px;
  fill: currentColor;
  stroke: none;
}

#deposit-toggle[aria-expanded=true] svg {
  transform: rotate(180deg);
}

.deposit-options {
  position: absolute;
  z-index: 3;
  top: calc(100% + 5px);
  right: 0;
  min-width: max(100%, 100px);
  padding: 4px;
  border: 1px solid #80658d;
  border-radius: 8px;
  background: #39234d;
  box-shadow: 0 8px 20px #0a071980;
}

.deposit-options button {
  width: 100%;
  border-color: transparent;
  text-align: left;
}

@media (max-width: 380px) {
  header .bar { padding-inline: 8px; }
  .bar .brand { font-size: 1.15rem; }
  .bar .menu-toggle { width: 29px; min-width: 29px; }
  .bar .menu-toggle svg {
  transform: scaleX(1.4);
}

.balance-group .wallet { padding-left: 4px; gap: 3px; }
  .wallet-flag { width: 16px; height: 16px; }
  .balance-group #refresh-balance { width: 23px; }
  .balance-group .deposit-buttons button { padding-inline: 5px; font-size: .8rem; }
}

.wallet #balance.is-loading {
  color: #f2e9f7;
  font-size: .7rem;
  text-decoration: none;
}

#refresh-balance.is-refreshing svg, #profile-refresh.is-refreshing svg {
  animation: balance-refresh-spin 500ms linear infinite;
}

@keyframes balance-refresh-spin {
  to { transform: rotate(360deg); }
}

/* Foco visual restrito às janelas de conta */
:is(body > header, body > main, .dock, .profile-view, dialog:not(.auth)) :focus,
dialog:not(.auth):focus {
  outline: none;
}

.deposit-bonus {
  position: absolute;
  z-index: 1;
  top: -9px;
  right: 0;
  padding: 3px 6px;
  border-radius: 999px;
  background: #a42d4b;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

/* Navegação inferior */
.dock .dock-inner > button {
  position: relative;
  min-height: 72px;
  align-content: start;
  gap: 5px;
  padding-block: 10px 8px;
}

.dock svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock button[aria-current="page"] {
  color: var(--accent);
}

.dock .dock-gift {
  height: 27px;
  font-size: 1.65rem;
  line-height: 27px;
}

.dock .dock-bonus {
  position: absolute;
  top: 3px;
  left: calc(50% + 6px);
  padding: 2px 4px;
  border-radius: 999px;
  background: #a42d4b;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Jackpot e vitrines de jogos */
.jackpot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  background: radial-gradient(ellipse at 50% 0%, #713d78, transparent 70%), #30183f;
  border-color: #bb8759;
}

.jackpot h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.2rem, 6vw, 2rem);
  font-style: italic;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.jackpot strong {
  color: #fff1b6;
  font-size: clamp(1.3rem, 7vw, 2.5rem);
  line-height: 1.12;
}

.jackpot-ornament {
  color: #eab67a;
  font-size: clamp(1.6rem, 7vw, 3rem);
}

.catalog-nav.filters {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 5px 0;
  border: 0;
  background: transparent;
  gap: 2px;
}

.catalog-nav.filters button {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 6px 1px;
  font-size: clamp(.79rem, 3.45vw, 1rem);
}

.catalog-nav.filters button:hover {
  color: var(--accent);
}

.catalog {
  margin-top: 10px;
}

.game-shelf {
  margin-block: 20px 26px;
  scroll-margin-top: 85px;
}

.game-shelf h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.game-shelf .game-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 2.2vw, 12px);
}

.game-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4;
  justify-content: space-between;
  border-color: #ffffff31;
  background: radial-gradient(ellipse at 50% 30%, var(--card-light), transparent 53%),
    linear-gradient(145deg, var(--tone), #20152e);
  color: #fff;
  text-align: center;
}

.game-art {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  font-size: clamp(1.65rem, 9vw, 3.25rem);
  filter: drop-shadow(0 5px 6px #1d103a88);
}

.game-name {
  display: grid;
  place-items: center;
  min-height: 2.65em;
  padding: 3px 4px 5px;
  text-shadow: 0 1px 3px #160d20, 0 0 6px #160d20;
  font-size: clamp(.68rem, 3vw, .9rem);
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.lobby-news {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  background: #372048;
  color: var(--accent);
}

.lobby-news p {
  margin: 0;
  color: inherit;
  font-size: .875rem;
  font-weight: 650;
}

.lobby-news svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lobby-news .news-envelope {
  color: #e5cee9;
}

/* Arte e valor do Jackpot */
.jackpot.jackpot-art {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.jackpot-board {
  position: relative;
  container-type: inline-size;
}

.jackpot-board img {
  display: block;
  width: 100%;
  height: auto;
}

#jackpot-amount,
#jackpot-sprite {
  position: absolute;
  top: 63%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

#jackpot-sprite:not([hidden]) {
  --digit-unit: .125cqw;
  display: flex;
  gap: .35cqw;
}

.jackpot-digit-cell {
  display: flex;
  flex: 0 0 calc(var(--cell-width) * var(--digit-unit));
  justify-content: center;
}

#jackpot-sprite span {
  flex: none;
  width: calc(var(--glyph-width) * var(--digit-unit));
  height: calc(72 * var(--digit-unit));
  background-image: url("../assets/jackpot-digits.png");
  background-size: calc(836 * var(--digit-unit)) calc(72 * var(--digit-unit));
  background-position: calc(-1 * var(--glyph-offset) * var(--digit-unit)) 0;
  background-repeat: no-repeat;
}

.jackpot-readable,
#jackpot-amount.jackpot-readable {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.lobby-news .news-ticker {
  overflow: hidden;
  white-space: nowrap;
}

.news-ticker > .news-track {
  display: inline-block;
  color: #ffff00;
  padding-inline-start: 100%;
  animation: news-scroll 30s linear infinite;
}

.news-wave {
  animation: news-volume 1.25s ease-in-out infinite;
}

.news-wave-outer {
  animation-delay: .18s;
}

@keyframes news-scroll {
  to { transform: translateX(-100%); }
}

@keyframes news-volume {
  0%, 100% { opacity: .25; }
  50% { opacity: 1; }
}

.news-track > span + span {
  margin-inline-start: 2.5rem;
}

.news-track a {
  color: inherit;
  text-underline-offset: 2px;
}

.news-ticker:hover .news-track,
.news-ticker:focus-within .news-track {
  animation-play-state: paused;
}

.game-card {
  position: relative;
}

.game-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-name {
  position: relative;
}

/* Favoritos e sinalização dos jogos populares */
.catalog-nav.filters {
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: minmax(70px, 1fr);
  overflow-x: auto;
  scrollbar-width: thin;
}

.game-tile {
  position: relative;
  min-width: 0;
}

.game-tile .game-card {
  width: 100%;
  height: 100%;
}

.game-hot {
  position: absolute;
  top: -5px;
  left: -2px;
  width: clamp(34px, 37%, 49px);
  height: auto;
  pointer-events: none;
}

.game-favorite {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: clamp(28px, 8vw, 34px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.game-favorite::before {
  content: "";
  width: 21px;
  border-radius: 50%;
  aspect-ratio: 1;
  background: url("../assets/favorite-star.png") center / contain no-repeat;
  filter: grayscale(1);
  opacity: .78;
}

.game-favorite[aria-pressed=true] {
  background: transparent;
}

.game-favorite[aria-pressed=true]::before {
  box-shadow: 0 0 0 1px var(--accent);
  filter: none;
  opacity: 1;
}

.category-icon {
  display: block;
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
}

/* Acesso à conta no cabeçalho */
.bar [hidden] {
  display: none;
}

.header-auth {
  display: flex;
  gap: 6px;
}

.header-auth button {
  position: relative;
  min-height: 32px;
  padding: 0 clamp(8px, 2.5vw, 14px);
  font-size: .875rem;
}

.header-register-bonus {
  --bonus-bubble-color: #197c43;
  position: absolute;
  z-index: 1;
  top: -.6rem;
  right: -.12rem;
  max-width: calc(100% + .25rem);
  padding: 3px 5px;
  border-radius: 7px 7px 7px 2px;
  background: var(--bonus-bubble-color);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.header-register-bonus::after {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  left: 1px;
  width: 6px;
  height: 4px;
  background: var(--bonus-bubble-color);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Tela de perfil */
#lobby-header[hidden],
#lobby-main[hidden],
.profile-view[hidden] {
  display: none;
}

body:has(.profile-view:not([hidden])) {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.profile-view {
  height: calc(100dvh - 73px - env(safe-area-inset-bottom));
  padding-bottom: 14px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  background: #221631;
}

.profile-header {
  padding: 10px 14px 12px;
  background:
    url("../assets/profile/perfil-linhas.svg") center / 100% 100% no-repeat,
    radial-gradient(ellipse at 85% 0%, #69477e, transparent 64%),
    #382249;
}

.profile-top,
.profile-identity {
  display: flex;
  align-items: center;
  gap: 9px;
}

.profile-top {
  justify-content: space-between;
  margin-bottom: 12px;
}

.profile-top h1 {
  margin: 0;
  font-size: 1.15rem;
}

.profile-top button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.55rem;
  color: var(--accent);
}

.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #bf916d;
  background: #54376a;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 800;
}

.profile-account {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-identity small,
.profile-vip small {
  display: block;
  color: #dcc9e6;
}

.profile-wallet {
  text-align: right;
  white-space: nowrap;
}

.profile-wallet :is(svg, button){vertical-align:middle}

.profile-wallet button {
  padding: 4px 5px;
  border: 0;
  background: transparent;
  color: #f2e9f7;
}

.profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 12px;
}

.profile-shortcuts button {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 7px 2px;
  border: 0;
  background: transparent;
  font-size: .875rem;
}

.profile-shortcuts span,
.profile-list button > span {
  color: var(--accent);
  font-size: 1.25rem;
}

.profile-vip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  width: calc(100% - 28px);
  margin: 12px auto;
  padding: 12px;
  text-align: left;
  background: linear-gradient(120deg, #523566, #321f45);
  border: 1px solid #91658b;
}

.profile-vip strong {
  font-size: 1.2rem;
  color: var(--accent);
}

.profile-vip-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #2a1a38;
  color: var(--accent);
}

.profile-list {
  margin-bottom: 8px;
  padding-inline: clamp(20px, 5vw, 27px);
  background: #2d1d3e;
}

.profile-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 51px;
  padding: 9px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  font-size: .9rem;
}

.profile-list button > span {
  width: 22px;
  text-align: center;
}

.profile-list button::after {
  content: '';
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  margin-left: auto;
  margin-right: 4px;
  border-top: 2px solid #ddc0e5;
  border-right: 2px solid #ddc0e5;
  transform: rotate(45deg);
}

.profile-list button small {
  max-width: 50%;
  margin-left: auto;
  color: #ddc0e5;
  text-align: right;
  line-height: 1.25;
}

.profile-list button small + span,
.profile-list button:has(small)::after {
  margin-left: 0;
}

/* Ícones do menu Perfil */
.profile-view :is(.profile-symbol, .profile-symbol-image) {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
}

.profile-view .profile-symbol {
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(85%) sepia(83%) saturate(1243%) hue-rotate(346deg) brightness(106%) contrast(103%);
}

.profile-shortcuts :is(.profile-symbol, .profile-symbol-image) {
  width: 29px;
  height: 29px;
}

.profile-symbol-image {
  object-fit: contain;
}

/* Foto, identificação e ações do Perfil */
.profile-top-actions {
  display: flex;
  gap: 4px;
}

.profile-top-actions svg,
.profile-copy svg,
#profile-edit-photo svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-photo {
  position: relative;
  flex: 0 0 auto;
}

.profile-photo .profile-avatar {
  width: 54px;
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#profile-edit-photo {
  position: absolute;
  right: -2px;
  bottom: -3px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  background: #21152e;
  color: #fff;
}

#profile-edit-photo svg,
.profile-copy svg {
  width: 15px;
  height: 15px;
}

.profile-account-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
  font-size: .875rem;
}

.profile-copy {
  flex: none;
  min-width: 23px;
  min-height: 25px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #e9d9f1;
}

.profile-copy:disabled {
  opacity: .38;
}

#profile-feedback {
  margin: 5px 0 0;
  color: #e9d9f1;
  font-size: .8rem;
}

#info-text {
  white-space: pre-line;
}

@media (max-width: 360px) {
  .profile-header { padding-inline: 8px; }
  .profile-identity { gap: 6px; }
  .profile-photo .profile-avatar { width: 44px; }
  .profile-wallet .wallet-flag { width: 14px; }
  .profile-wallet button { padding-inline: 2px; }
}

/* Alinhamento da identidade no topo do Perfil */
.profile-top {
  position: relative;
  align-items: flex-start;
  margin-bottom: 8px;
}

.profile-top h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.profile-top-actions {
  gap: 10px;
}

.profile-identity {
  display: grid;
  grid-template-columns: auto minmax(0, max-content) auto;
  justify-content: start;
  align-items: center;
  gap: clamp(5px, 2vw, 10px);
}

.profile-photo .profile-avatar {
  width: clamp(44px, 12vw, 56px);
}

.profile-account-row {
  min-height: 23px;
  font-size: .94rem;
  line-height: 1.2;
}

.profile-account-row + .profile-account-row {
  color: #f2e5f6;
  font-size: 1.02rem;
  white-space: nowrap;
}

#profile-account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-wallet {
  align-self: end;
  margin-bottom: 1px;
  text-align: left;
}

.profile-wallet strong {
  font-size: 1.05rem;
}

.profile-wallet small {
  font-size: .66rem;
  line-height: 1.15;
}

.profile-shortcuts {
  margin-top: 14px;
}

.profile-shortcuts button {
  padding-block: 4px;
}

@media (max-width: 360px) {
  .profile-identity { gap: 5px; }
  .profile-account-row + .profile-account-row { font-size: .9rem; }
  .profile-wallet strong { font-size: .9rem; }
  .profile-copy { min-width: 20px; }
}

.profile-vip > span:last-child {
  width: 11px;
  height: 11px;
  margin-right: 4px;
  border-top: 2px solid #ddc0e5;
  border-right: 2px solid #ddc0e5;
  transform: rotate(45deg);
  font-size: 0;
}

.profile-shortcuts button {
  position: relative;
}

.profile-shortcuts .profile-rate {
  position: absolute;
  top: 0;
  left: calc(50% + 4px);
  padding: 2px 4px;
  border-radius: 999px;
  background: #197c43;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.profile-shortcuts .profile-deposit-rate {
  background: #a42d4b;
}

/* Cartão VIP demonstrativo */
.profile-vip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) 12px;
  gap: 8px;
  min-height: 118px;
  padding: 11px 10px;
  width: 100%;
  margin: 9px 0 0;
  background: linear-gradient(110deg, #21152ee8, #180f23f7),
    url("../assets/profile/vip-fundo.png") center / 100% 100% no-repeat;
  border-color: #ffffff26;
}

.profile-vip-status,
.profile-vip-summary {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.profile-vip-summary {
  font-size: clamp(.69rem, 3vw, .88rem);
}

.profile-vip-summary strong {
  font-size: inherit;
  white-space: nowrap;
}

.profile-vip-summary small {
  font-size: .69rem;
  line-height: 1.2;
}

.profile-vip-level {
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile-vip .profile-vip-emblem {
  position: relative;
  flex: 0 0 clamp(36px, 11vw, 53px);
  width: auto;
  background: transparent;
}

.profile-vip-emblem img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-vip-emblem > span {
  position: relative;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
}

.profile-vip-progress {
  position: relative;
  display: block;
  min-width: 0;
  height: 13px;
}

.profile-vip-progress progress {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  appearance: none;
  border: 1px solid #fff8;
  border-radius: 999px;
  background: #201420a8;
  accent-color: #258951;
}

.profile-vip-progress progress::-webkit-progress-bar {
  background: transparent;
}

.profile-vip-progress progress::-webkit-progress-value {
  background: #258951;
  border-radius: 999px;
}

.profile-vip-progress progress::-moz-progress-bar {
  background: #258951;
  border-radius: 999px;
}

.profile-vip-progress small {
  position: absolute;
  inset: 0;
  color: #fff;
  font-size: clamp(.5rem, 2.1vw, .68rem);
  line-height: 13px;
  text-align: center;
  white-space: nowrap;
}

/* Informações no final do lobby */
.lobby-footer {
  margin: 24px -16px 0;
  padding: 20px 12px;
  border-top: 1px solid #695074;
  background: #261639;
  text-align: center;
}

.lobby-footer .brand {
  font-size: 1.35rem;
}

.lobby-footer p {
  margin: 10px auto 0;
  max-width: none;
  color: #e6d9eb;
  font-size: .95rem;
  line-height: 1.55;
}

.lobby-footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 20px);
  margin-top: 12px;
}

.lobby-footer-meta img {
  display: block;
  max-width: 40%;
  height: auto;
  object-fit: contain;
}

.lobby-pix {
  width: 90px;
}

.lobby-age-badge {
  width: 113px;
}

.lobby-footer-copyright {
  display: block;
  margin-top: 12px;
  color: #d6c1df;
}

.lobby-reference-mark {
  flex: 0 1 88px;
  min-width: 0;
  margin: 0;
}

.lobby-footer-meta .lobby-reference-mark img {
  width: 100%;
  max-width: none;
}

.lobby-reference-mark figcaption {
  color: #d6c1df;
  font-size: .65rem;
}

.lobby-footer-section {
  padding: 13px 0;
  border-top: 1px solid #695074;
  text-align: left;
}

.lobby-footer-section h2 {
  margin: 0;
  color: #f2e5f6;
  font-size: 1rem;
  font-weight: 550;
}

.lobby-footer-license {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lobby-footer-license small {
  display: block;
  margin-top: 3px;
  color: #d6c1df;
}

.lobby-footer-license img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.lobby-footer-contact {
  margin-bottom: 14px;
  border-bottom: 1px solid #695074;
}

.lobby-contact-icons {
  display: flex;
  gap: 10px;
  margin-top: 9px;
}

.lobby-contact-icons :is(svg, img) {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Chuva de envelopes do lobby */
.envelope-dialog {
  width: min(350px, calc(100% - 28px));
}

.envelope-panel {
  position: relative;
  isolation: isolate;
  align-items: center;
  padding: 22px 14px 26px;
  text-align: center;
  background: radial-gradient(ellipse at top, #73405d, #332044 75%);
}

.envelope-panel h2 {
  margin: 0;
  color: var(--accent);
  font-size: 1.25rem;
}

.envelope-panel p {
  margin: 10px 0 0;
}

.envelope-reward {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 74px;
  margin: 19px auto 0;
  overflow: hidden;
  border: 1px solid #ffb561;
  background: linear-gradient(135deg, #e7354f, #a31d45);
  color: #ffe686;
  box-shadow: 0 7px 20px #1b091a9c;
}

.envelope-reward::before {
  content: '';
  position: absolute;
  inset: 0 0 40%;
  background: #f36a77;
  clip-path: polygon(0 0, 100% 0, 50% 90%);
}

.envelope-reward span {
  position: relative;
  top: 8px;
  font-size: 1.3rem;
}

#envelope-rain {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

#envelope-rain span {
  position: absolute;
  top: -18px;
  left: var(--rain-x);
  width: 14px;
  height: 10px;
  border: 1px solid #ffd470;
  border-radius: 2px;
  background: #df4166;
  opacity: 0;
  animation: envelope-fall var(--rain-duration) linear var(--rain-delay) infinite;
}

@keyframes envelope-fall {
  0% { opacity: 0; transform: translateY(-10px) rotate(-25deg); }
  15% { opacity: .7; }
  80% { opacity: .65; }
  100% { opacity: 0; transform: translateY(310px) rotate(105deg); }
}

@media (prefers-reduced-motion: reduce) {
  #envelope-rain span { animation: none; }
}

.game-card.game-maintenance {
  cursor: not-allowed;
  box-shadow: inset 0 0 0 100vmax #10081785;
}

.game-maintenance .game-art {
  opacity: .45;
}

.game-maintenance-status {
  position: absolute;
  inset: 0 0 2.6em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  color: #fff;
  font-size: clamp(.62rem, 2.6vw, .8rem);
  font-weight: 700;
  text-shadow: 0 1px 4px #150a1c;
}

.game-maintenance-status > span {
  font-size: 1.35rem;
}

.catalog-nav.filters button > span {
  display: grid;
  place-items: center;
  height: 2.3rem;
  font-size: 1.75rem;
  line-height: 1;
}

.catalog-nav .category-icon {
  width: 2.25rem;
  height: 2.25rem;
}






.game-poster[src$="/queen-of-bounty.png"] {
  inset: 2px auto auto -5%;
  width: 200%;
  height: auto;
}