* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #eceef6;
  color: #29364c;
  font:
    14px/1.5 system-ui,
    -apple-system,
    'Microsoft YaHei',
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.phone-shell {
  max-width: 480px;
  margin: auto;
  background: #f7f8ff;
  min-height: 100vh;
  padding-bottom: 84px;
  box-shadow: 0 0 50px #1e25481a;
}
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: white;
  position: sticky;
  top: 0;
  z-index: 20;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand img {
  width: 102px;
  height: 35px;
  object-fit: contain;
}
.brand small {
  font-size: 10px;
  color: #9ca4b3;
  writing-mode: vertical-rl;
}
.header-buttons {
  display: flex;
  gap: 12px;
}
.btn,
.header-buttons button {
  border-radius: 5px;
  background: linear-gradient(115deg, #ff545b, #ff9990);
  color: white;
  padding: 9px 24px;
  display: inline-block;
  text-align: center;
  border: 1px solid #ff686b;
}
.header-buttons button {
  font-size: 12px;
  padding: 6px 20px;
}
.header-buttons button.outline,
.btn.outline {
  background: white;
  color: #ff5c64;
}
.demo-note {
  padding: 6px 10px;
  font-size: 10px;
  text-align: center;
  background: #fff1f0;
  color: #bb6769;
}
.home-pad {
  padding: 10px 12px;
}
.banner {
  width: 100%;
  height: auto;
  aspect-ratio: 2.22;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 28px;
  padding: 8px 12px;
  margin: 12px 0;
  color: #ff5b62;
  font-size: 12px;
}
.notice span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice button {
  background: #ff7779;
  color: white;
  border-radius: 16px;
  padding: 3px 12px;
  font-size: 11px;
}
.categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.category {
  grid-column: span 2;
  position: relative;
  min-height: 78px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(120deg, #c18aff, #9d61e4);
  box-shadow: 0 3px 7px #d2c9ec99;
  text-align: right;
}
.category:nth-child(-n + 2) {
  grid-column: span 3;
}
.category:nth-child(n + 4) {
  background: linear-gradient(130deg, #ffce83, #ff8895);
}
.category img {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: calc(100% - 48px);
  height: 90%;
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
}
.category span {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.4;
  padding: 2px 0;
  color: white;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 1px 3px #71448b;
}
.feature-banner {
  width: 100%;
  aspect-ratio: 3.5;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 20px 0 10px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 10px;
}
.section-title h2 {
  font-size: 18px;
  margin: 0;
  border-left: 4px solid #ff626b;
  padding-left: 6px;
}
.section-title a,
.section-title button {
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid #dce0eb;
  border-radius: 5px;
  color: #7b8291;
  background: white;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 10px;
}
.game-card {
  position: relative;
  min-width: 0;
}
.game-open {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}
.game-card .game-open img {
  width: 100%;
  height: auto;
  aspect-ratio: 0.74;
  object-fit: cover;
  border-radius: 11px;
  background: #ffd2d1;
  display: block;
}
.game-title {
  display: block;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 5px 0;
  color: #66708c;
}
.card-label {
  background: #ffe0e2;
  color: #ff6267;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 9px;
}
.save {
  position: absolute;
  top: 7px;
  right: 7px;
  background: #ffffffdf;
  color: #ff626b;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  font-size: 18px;
  z-index: 1;
}
.saved {
  background: #ff6267;
  color: white;
}
.showcase-card {
  background: linear-gradient(120deg, #ff5a61, #ff9690);
  border-radius: 10px;
  min-height: 145px;
  display: grid;
  place-content: center;
  color: white;
  text-align: center;
}
.showcase-card span {
  font-size: 40px;
}
.showcase-card small {
  font-size: 11px;
}
.announcement {
  background: white;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 12px;
  border: 1px solid #f0f1f7;
}
.announcement strong {
  color: #ff656b;
}
.announcement p {
  font-size: 12px;
  color: #8790a3;
  margin-bottom: 0;
}
.ranking {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  height: 140px;
  margin: 20px 0;
}
.ranking div {
  width: 29%;
  height: 85px;
  display: grid;
  place-content: center;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(#e3e9ff, #959fc1);
  color: white;
  font-size: 24px;
}
.ranking div:nth-child(2) {
  height: 125px;
  background: linear-gradient(#ffd4d5, #ff696b);
}
.ranking div:nth-child(3) {
  background: linear-gradient(#ffdfb4, #ff9b51);
}
.site-footer {
  margin: 25px 12px 10px;
  padding: 14px;
  background: white;
  border-radius: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand img {
  width: 110px;
  max-height: 40px;
  object-fit: contain;
}
.footer-brand span {
  border: 1px solid #ff7679;
  border-radius: 20px;
  padding: 5px;
  font-size: 10px;
  color: #ff6267;
}
.footer-brand button {
  color: #ff656b;
}
.site-footer p {
  font-size: 11px;
  color: #8790a2;
  line-height: 1.8;
  margin: 22px 0;
}
.site-footer > small {
  display: block;
  font-size: 10px;
  color: #a8adba;
  text-align: center;
  margin-top: 20px;
}
.footer-links button {
  display: block;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid #f2f3f8;
  padding: 13px 2px;
  color: #69768f;
  font-size: 13px;
}
.footer-links b {
  float: right;
  color: #b7bdcc;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  height: 68px;
  z-index: 30;
  border-top: 1px solid #f0eef5;
  box-shadow: 0 -3px 20px #34374608;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  width: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #9a9fb5;
  font-size: 11px;
}
.bottom-nav a > span {
  font-size: 25px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.bottom-nav a.active {
  color: #ff646a;
}
.bottom-nav .middle-nav > span {
  border: 6px solid #ffe3e4;
  background: linear-gradient(120deg, #ff6071, #ff9b90);
  color: white;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  margin-top: -25px;
  text-align: center;
  line-height: 44px;
  font-size: 31px;
  box-shadow: 0 3px 10px #ffb8bb;
}
.floating-service {
  position: fixed;
  bottom: 120px;
  right: max(16px, calc((100vw - 460px) / 2));
  z-index: 25;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ff747c;
  color: white;
  font-size: 29px;
  border: 3px solid white;
  box-shadow: 0 2px 10px #ed979c55;
}
.page-title {
  margin: 16px 0;
  font-size: 24px;
}
.filter-tabs {
  display: flex;
  overflow: auto;
  gap: 8px;
  padding: 8px 0 18px;
}
.filter-tabs button {
  white-space: nowrap;
  border-radius: 22px;
  background: white;
  padding: 7px 18px;
  color: #778197;
  border: 1px solid #e7e9f0;
}
.filter-tabs button.active {
  background: #ff6b74;
  color: white;
  border-color: #ff6b74;
}
.empty {
  padding: 30px;
  text-align: center;
  color: #8991a4;
}
.account-card {
  background: white;
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 15px;
}
.account-card h3 {
  margin-top: 0;
}
.account-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.avatar {
  background: linear-gradient(140deg, #ffb7ba, #ff6673);
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  text-align: center;
  font-size: 30px;
  line-height: 58px;
}
.muted {
  color: #8a92a4;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.stat-row {
  display: flex;
  justify-content: space-around;
  margin: 24px 0;
  text-align: center;
}
.stat-row strong {
  font-size: 22px;
  color: #ff6c74;
  display: block;
}
.field {
  display: block;
  margin: 14px 0;
  color: #6b748a;
  font-size: 13px;
}
.field input {
  display: block;
  width: 100%;
  border: 1px solid #e3e6ee;
  border-radius: 7px;
  padding: 12px;
  margin-top: 6px;
  background: #fff;
  color: #29364c;
}
.form-error {
  color: #da4656;
  font-size: 12px;
  min-height: 20px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #26304388;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.overlay[hidden] {
  display: none;
}
.modal {
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow: auto;
  border-radius: 18px;
  background: white;
  padding: 26px;
  position: relative;
  box-shadow: 0 16px 60px #131b4d3b;
}
.modal h2 {
  margin: 4px 0 18px;
  font-size: 23px;
}
.modal .close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 27px;
  color: #a5abba;
}
.modal .btn {
  width: 100%;
  margin: 7px 0;
}
.modal p {
  line-height: 1.9;
  color: #798299;
  font-size: 13px;
}
.switch {
  color: #ff646a;
  display: block;
  text-align: center;
  margin-top: 18px;
}
.check {
  display: flex;
  align-items: start;
  gap: 8px;
  font-size: 12px;
  color: #8b91a0;
}
.check input {
  margin-top: 4px;
}
.modal-art {
  width: 120px;
  max-height: 160px;
  object-fit: contain;
  display: block;
  margin: 10px auto;
  border-radius: 12px;
}
#toast {
  position: fixed;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
  background: #263349ed;
  color: white;
  border-radius: 9px;
  padding: 11px 20px;
  max-width: 85vw;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  font-size: 13px;
}
#toast.show {
  opacity: 1;
}
#site-global-footer {
  max-width: 480px;
  margin: auto;
  position: relative;
  z-index: 31;
}
.setup-link {
  display: block;
  padding: 14px;
  background: #fff3d9;
  color: #a77b32;
  font-size: 12px;
}
@media (min-width: 700px) {
  body {
    background: radial-gradient(ellipse at top, #fff1f0, #e8ecf8 60%);
  }
  .phone-shell {
    margin: 24px auto 0;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Independent inner pages reconstructed from the public reference screens. */
.auth-layout .top-header,
.auth-layout .demo-note,
.auth-layout .site-footer,
.auth-layout .bottom-nav,
.subpage-layout .top-header,
.subpage-layout .demo-note,
.subpage-layout .site-footer,
.subpage-layout .bottom-nav,
.activity-layout .top-header,
.activity-layout .demo-note,
.activity-layout .site-footer {
  display: none;
}
.auth-layout,
.subpage-layout {
  padding-bottom: 30px;
  min-height: 100vh;
}
.inner-header {
  height: 50px;
  background: linear-gradient(105deg, #ff565c, #ff9b8e);
  color: white;
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 25;
}
.inner-header.white {
  background: white;
  color: #12334c;
}
.inner-header h1 {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
}
.inner-header a {
  font-size: 34px;
  text-align: center;
  line-height: 1;
}
.auth-hero {
  height: 154px;
  background: linear-gradient(105deg, #ff565c, #ff9c8e);
  color: white;
  padding: 0 20px;
}
.auth-top {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-top a {
  font-size: 34px;
  margin-left: -7px;
  color: white;
}
.auth-top img {
  width: 110px;
  height: 44px;
  object-fit: contain;
}
.auth-top span {
  font-size: 24px;
}
.auth-hero h1 {
  font-size: 18px;
  margin: 7px 0 9px;
}
.auth-hero p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  max-width: 300px;
}
.auth-main {
  padding: 0 21px 25px;
}
.auth-tabs {
  display: flex;
  min-height: 63px;
  gap: 20px;
}
.auth-tabs button,
.auth-tabs > span {
  width: 100%;
  text-align: center;
  display: grid;
  align-content: center;
  color: #8893a6;
  padding: 6px 0;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
.auth-tabs i {
  font-style: normal;
  font-size: 23px;
  line-height: 1.3;
}
.auth-tabs .active {
  color: #ff5f68;
  border-bottom-color: #ff5f68;
}
.auth-label {
  display: block;
  margin: 10px 0 14px;
}
.auth-label > span {
  display: block;
  margin-bottom: 10px;
  color: #1a3b52;
  font-size: 15px;
}
.auth-label i {
  font-style: normal;
  color: #ff5f68;
  font-size: 21px;
  vertical-align: middle;
  margin-right: 4px;
}
.auth-label input {
  border: 0;
  background: white;
  border-radius: 12px;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  outline-color: #ffb1b3;
  color: #2e4156;
  font-size: 14px;
}
.auth-label input::placeholder {
  color: #b8beca;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 48px;
}
.password-wrap button {
  position: absolute;
  right: 5px;
  top: 3px;
  height: 38px;
  width: 38px;
  color: #8d97aa;
}
.auth-agree {
  display: flex;
  align-items: center;
  font-size: 12px;
  line-height: 1.5;
  color: #8490a4;
  gap: 8px;
  margin: 17px 0;
}
.auth-agree input {
  width: 19px;
  height: 19px;
  accent-color: #ff6f73;
  margin: 0;
  flex-shrink: 0;
}
.auth-agree a {
  color: #ff6e75;
}
.auth-submit,
.auth-outline {
  display: block;
  text-align: center;
  width: calc(100% - 46px);
  margin: 20px auto;
  padding: 8px 15px;
  background: linear-gradient(105deg, #ff545d, #ff9b8b);
  border: 1px solid #ff686e;
  border-radius: 28px;
  color: white;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}
.auth-outline {
  background: transparent;
  color: #ff6069;
  font-weight: 500;
  font-size: 18px;
}
.auth-outline b {
  font-size: 21px;
}
.auth-main .form-error {
  margin: 3px 0;
  font-size: 12px;
  min-height: 0;
}
.auth-tip,
.auth-demo {
  font-size: 10px;
  color: #98a0b1;
  line-height: 1.5;
}
.auth-demo {
  text-align: center;
  margin-top: 25px;
}
.auth-helpers {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-top: 30px;
}
.auth-helpers i {
  display: block;
  color: #ff656e;
  font-style: normal;
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.auth-helpers a {
  font-size: 12px;
}
.about-banner {
  display: block;
  width: 100%;
  aspect-ratio: 2.64;
  object-fit: cover;
}
.about-links {
  padding: 12px 20px;
}
.inner-row {
  display: flex;
  width: 100%;
  gap: 14px;
  align-items: center;
  min-height: 61px;
  border-bottom: 1px solid #e9ebf3;
  text-align: left;
  padding: 10px 0;
  font-size: 14px;
}
.inner-row i {
  color: #ff626b;
  font-size: 27px;
  font-style: normal;
}
.inner-row strong {
  flex: 1;
  font-weight: 400;
}
.inner-row > span {
  color: #8c98aa;
  font-size: 28px;
}
.support-banner {
  width: 100%;
  aspect-ratio: 2.22;
  object-fit: cover;
  display: block;
}
.support-links {
  padding: 14px 12px;
}
.support-links .inner-row {
  background: white;
  border-radius: 6px;
  padding: 8px 12px;
  min-height: 55px;
  border: 0;
}
.support-links .inner-row i {
  border-radius: 50%;
  background: #23a4d8;
  color: white;
  font-size: 23px;
  display: grid;
  place-content: center;
  width: 32px;
  height: 32px;
}
.support-links p {
  color: #a4adbc;
  font-size: 11px;
  text-align: center;
}
.notification-empty {
  padding: 12px;
  text-align: center;
  color: #babec7;
}
.notification-empty .empty-doc {
  display: block;
  font-size: 112px;
  color: #d8d9de;
  line-height: 1.2;
}
.notification-empty p {
  font-size: 13px;
}
.document-page {
  padding: 16px 20px 40px;
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.document-page h2 {
  font-size: 18px;
  margin: 12px 0;
}
.document-page h3 {
  font-size: 16px;
  margin: 28px 0 10px;
}
.document-page p {
  color: #65718a;
}
.guide-page section {
  margin: 15px 0 34px;
}
.guide-page h2 {
  font-size: 16px;
}
.inner-panel {
  margin: 16px 12px;
  padding: 25px 18px;
  background: white;
  border-radius: 10px;
  text-align: center;
}
.inner-panel p {
  color: #8a94a6;
  font-size: 13px;
  line-height: 1.9;
}
.inner-panel h2 {
  font-size: 20px;
}
.inner-panel .auth-submit,
.inner-panel .auth-outline {
  font-size: 15px;
  width: 100%;
  margin: 18px 0 0;
}
.large-symbol {
  font-size: 60px;
  color: #ff757b;
}
.activity-page {
  min-height: calc(100vh - 68px);
}
.activity-summary {
  background: white;
  padding: 12px 15px 16px;
  text-align: center;
}
.activity-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.activity-brand img {
  width: 100px;
  height: 35px;
  object-fit: contain;
}
.activity-brand small {
  color: #ffa0a4;
  font-size: 10px;
}
.activity-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 5px 0 13px;
}
.activity-totals > div + div {
  border-left: 1px solid #95a4bd;
}
.activity-totals span {
  display: block;
  color: #8c9bb3;
  font-size: 12px;
}
.activity-totals strong {
  font-family: Georgia, serif;
  font-size: 21px;
  color: #13334b;
}
.activity-detail {
  display: inline-block;
  border: 1px solid #ff6d75;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 14px;
  color: #ff626a;
}
.activity-links {
  display: flex;
  gap: 34px;
  padding: 16px 24px 12px;
}
.activity-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #8793aa;
}
.activity-links img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.activity-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px;
}
.activity-cards a {
  display: block;
  background: white;
  border-radius: 6px;
  overflow: hidden;
}
.activity-cards img {
  display: block;
  width: 100%;
  aspect-ratio: 1.75;
  object-fit: cover;
}
.activity-cards strong {
  display: block;
  font-size: 14px;
  padding: 10px 10px 0;
  color: #15334e;
}
.activity-cards p {
  font-size: 12px;
  color: #8a96aa;
  line-height: 1.3;
  margin: 4px 10px 16px;
}
.activity-demo {
  text-align: center;
  font-size: 10px;
  color: #a8adbb;
  padding: 12px 24px;
}
.activity-illustration {
  max-width: 100%;
  max-height: 145px;
  object-fit: contain;
  border-radius: 8px;
}
.wallet-card {
  margin: 18px 12px;
  padding: 26px;
  background: linear-gradient(105deg, #ff6872, #ffa496);
  border-radius: 14px;
  color: white;
}
.wallet-card > * {
  display: block;
}
.wallet-card strong {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.5;
}
.wallet-card small {
  font-size: 11px;
  opacity: 0.8;
}
.preview-image {
  max-width: 140px;
  max-height: 220px;
  border-radius: 10px;
}
.subpage-layout .floating-service,
.auth-layout .floating-service {
  bottom: 90px;
}
@media (max-width: 340px) {
  .auth-main {
    padding-left: 15px;
    padding-right: 15px;
  }
  .activity-links {
    gap: 20px;
  }
  .auth-agree {
    font-size: 11px;
  }
}

.auth-top .lang-flag {
  width: 27px;
  height: 20px;
}
.auth-label i svg {
  vertical-align: middle;
}
.auth-tabs i svg {
  vertical-align: middle;
}
.auth-helpers i svg {
  width: 36px;
  height: 36px;
}
.floating-service {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.floating-service img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Classification links must never shrink into vertical text. */
.filter-tabs {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 8px;
  scroll-padding-inline: 8px;
  -webkit-overflow-scrolling: touch;
}
.filter-tabs > a,
.filter-tabs > button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: max-content;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  line-height: 1.4;
  padding: 8px 16px;
  font-size: 13px;
}
.language-indicator {
  font-size: 13px !important;
  min-width: 28px;
  text-align: center;
}
html[dir='rtl'] .footer-links b {
  float: left;
}
html[dir='rtl'] .inner-header > a {
  transform: scaleX(-1);
}
.inner-row strong,
.auth-tabs button,
.auth-tabs > span {
  overflow-wrap: anywhere;
}
.category span {
  font-size: 12px;
}

/* Keep the translated brand badge horizontal too. */
.top-header {
  min-height: 62px;
  height: auto;
}
.brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.brand img {
  height: 30px;
}
.brand small {
  writing-mode: horizontal-tb;
  font-size: 8px;
  line-height: 1.2;
  max-width: 120px;
  letter-spacing: 0;
}
.header-buttons {
  gap: 8px;
}
.header-buttons button {
  padding: 6px 12px;
}
.header-buttons > a {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-head h3 {
  overflow-wrap: anywhere;
}

.game-odd {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  line-height: 19px;
  margin-top: 5px;
  background: #e3e4e9;
  border-radius: 4px;
  overflow: hidden;
  padding: 0 4px;
  color: #523535;
}
.game-odd i {
  position: absolute;
  inset: 0 auto 0 0;
  background: #ff9399;
  z-index: -1;
}
.game-odd b {
  font-weight: 500;
}
.chess-provider {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 32%;
  min-width: 100px;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  color: #35313d;
  text-decoration: none;
}
.chess-provider img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.chess-provider span {
  padding: 8px 3px;
  font-size: 13px;
}
.chess-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
}
.chess-card {
  border: 0;
  padding: 0;
  background: transparent;
  min-width: 0;
  color: #333;
}
.chess-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}
.chess-card span {
  display: block;
  padding: 7px 0;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.chess-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.chess-heading a {
  font-size: 30px;
  text-decoration: none;
  color: inherit;
}
.chess-heading h1 {
  font-size: 20px;
}
.auth-choice {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}
.footer-language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 10px;
  border-bottom: 1px solid #eee;
}
.footer-language select {
  max-width: 68%;
  padding: 9px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  color: #333;
}
.notice > span {
  flex: 1;
  min-height: 20px;
}

.top-header .brand {
  display: flex;
  flex: 0 1 120px;
  min-width: 0;
  flex-direction: row;
  align-items: center;
}
.top-header .brand img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 38px;
  object-fit: contain;
  flex-shrink: 1;
}
.header-buttons {
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}
.header-buttons button {
  padding: 6px 12px;
}
.app-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff626b;
  font-size: 25px;
  line-height: 1;
  width: 28px;
  height: 32px;
  flex-shrink: 0;
}
.footer-brand img {
  object-fit: contain;
  height: auto;
  max-height: 45px;
  max-width: 140px;
}

.app-download img {
  display: block;
  width: 21px;
  height: 22px;
  object-fit: contain;
}
