:root {
  --header-height: 40px;
  --footer-height: 42px;
  --footer-icon-size: 20px;
  --footer-icon-offset: 5px;
  --wallet-size: 35px;
  --wallet-offset: 23px;
  --gift-size: 41px;
  --gift-width: 64px;
  --gift-offset: -8px;
  --ku-blue: #45b5d9;
  --ku-dark-blue: #337caa;
  --ku-orange: #ff7500;
  --rail-blue: #e7f1fb;
  --register-gutter: 6.5%;
  --app-safe-top: 0px;
  --app-safe-left: 0px;
  --app-safe-right: 0px;
  color-scheme: light;
  font-family: Arial, "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #dce4ea;
  color: #000000;
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  html, body { background: #000; }
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.mobile-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  :root {
    --app-safe-top: env(safe-area-inset-top, 0px);
    --app-safe-left: env(safe-area-inset-left, 0px);
    --app-safe-right: env(safe-area-inset-right, 0px);
  }
  html, body { background: #000; }
  .mobile-shell {
    height: calc(100dvh - var(--app-safe-top) - env(safe-area-inset-bottom, 0px));
    margin-block-start: var(--app-safe-top);
  }
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 2%;
  background: #ffffff;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 112px;
  height: auto;
  max-height: 30px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: min(2vw, 9.6px);
  height: 100%;
}

.member-actions {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  align-items: center;
  justify-content: flex-end;
}

.header-actions[hidden],
.member-actions[hidden],
.member-wallet[hidden] { display: none; }

.member-summary {
  display: flex;
  min-width: 0;
  height: 100%;
  align-items: baseline;
  gap: min(2vw, 10px);
  background: transparent;
  line-height: var(--header-height);
}

.member-name {
  overflow: hidden;
  color: #8695b9;
  font-size: 11.2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-balance {
  position: relative;
  padding-right: 15px;
  color: #535867;
  font-size: 16px;
  white-space: nowrap;
}

.member-balance::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: 10px;
  background: #535867;
  mask: url('../assets/icon-arrow-white.svg') no-repeat center / 100% auto;
  content: '';
}

.member-summary[aria-expanded='true'] .member-balance::after { transform: rotate(180deg); }

.member-sign-out {
  display: grid;
  width: clamp(30px, 9.1vw, 40px);
  height: 40px;
  flex: 0 0 auto;
  place-items: center end;
  color: #535867;
  background: transparent;
}

.member-sign-out span {
  position: relative;
  width: 14px;
  height: 17px;
  margin-right: 4px;
  border: 1.5px solid currentColor;
  border-right: 0;
  border-radius: 2px 0 0 2px;
}

.member-sign-out span::before {
  position: absolute;
  top: 6px;
  left: 4px;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  content: '';
}

.member-sign-out span::after {
  position: absolute;
  top: 3px;
  left: 12px;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: '';
}

.member-wallet {
  position: absolute;
  z-index: 1;
  top: 100%;
  right: 0;
  display: flex;
  width: min(73vw, 280px);
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 5px;
  background: #49484b;
  color: #fff;
  font-size: 13px;
}

.header-pill {
  min-height: 23px;
  padding: 0 8px 0 26px;
  border-radius: 999px;
  background-position: 6px center;
  background-repeat: no-repeat;
  background-size: 15px auto;
  color: #ffffff;
  font-size: 13.6px;
  line-height: 23px;
  white-space: nowrap;
}

.register-pill {
  background-color: #ffa84d;
  background-image: url("../assets/icon-join.svg");
}

.login-pill {
  background-color: #399fda;
  background-image: url("../assets/icon-login.svg");
}

.page-content {
  position: absolute;
  top: var(--header-height);
  right: 0;
  bottom: var(--footer-height);
  left: 0;
  padding: 0 2%;
  overflow: hidden;
  background: #ffffff;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: min(38.5vw, 184px);
  min-height: 123px;
  overflow: hidden;
}

.hero-banner::before,
.hero-banner::after {
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  height: 30%;
  content: "";
  pointer-events: none;
}

.hero-banner::before {
  top: -1px;
  background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 50%);
}

.hero-banner::after {
  bottom: -1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 50%, #ffffff 100%);
}

.banner-button {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  background: #fff;
}

.banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: transform 600ms ease;
}

.banner-track img {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  height: 100%;
  object-fit: cover;
}

.hero-banner.is-dragging .banner-track,
.hero-banner.is-snapping .banner-track { transition: none; }
.banner-button:focus-visible::after {
  position: absolute;
  z-index: 3;
  inset: 2px;
  border: 2px solid #0079bd;
  background: transparent;
  box-shadow: inset 0 0 0 1px #fff;
  content: '';
}

.banner-dots {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.banner-dot {
  display: grid;
  width: 11px;
  height: 12px;
  place-items: center;
  background: transparent;
  pointer-events: auto;
}

.banner-dot::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 3px #0009;
  content: '';
}

.banner-dot[aria-current]::before {
  width: 6px;
  height: 6px;
}

.banner-dot:focus-visible::before { outline: 1px solid #0079bd; outline-offset: 1px; }

.game-area {
  --card-gap: 6px;
  --promo-offset: 8px;
  display: flex;
  width: 100%;
  height: calc(100% - min(38.5vw, 184px));
  min-height: 0;
}

.category-rail {
  display: flex;
  flex: 0 0 17.65%;
  flex-direction: column;
  gap: var(--card-gap);
  padding-top: var(--card-gap);
  padding-bottom: calc(var(--card-gap) + 6px);
  overflow: auto;
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar { display: none; }

.category-button {
  display: flex;
  min-height: 46px;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  outline: 0;
  background: var(--rail-blue);
  color: #535867;
}

.category-button.is-active {
  border-color: #3281d0;
}

.category-button img {
  display: block;
  width: clamp(18px, 3dvh, 30px);
  height: clamp(18px, 3dvh, 30px);
  object-fit: contain;
}

.category-button span {
  max-width: 100%;
  margin-top: 0.5dvh;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: normal;
}

.category-button.is-active img {
  width: clamp(23px, 3.8dvh, 36px);
  height: clamp(23px, 3.8dvh, 36px);
  margin-block: -3px;
  animation: lift-category-icon 800ms ease-out infinite;
}

@keyframes lift-category-icon {
  50% { transform: translateY(-0.85dvh); }
}

.game-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.game-grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: space-between;
  gap: var(--card-gap) 0;
  padding: var(--card-gap) 0 0 2.35%;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.game-grid[hidden] { display: none; }

.game-grid::-webkit-scrollbar {
  display: none;
}

.game-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: calc(50% - 3px);
  height: calc(36% - var(--promo-offset));
  min-height: 111px;
  overflow: hidden;
  border-radius: 10px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: left;
}

.card-live { background-image: url("../assets/hot-live-bg.png"); }
.card-loto { background-image: url("../assets/hot-loto-bg.png"); }
.card-sport { background-image: url("../assets/hot-sport-bg.png"); }
.card-slot { background-image: url("../assets/hot-slot-bg.png"); }

.game-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 10px 10px 0;
}

.game-copy strong {
  color: #535867;
  font-size: 14.96px;
  line-height: 1;
  white-space: nowrap;
}

.game-copy img {
  display: block;
  width: auto;
  height: 40px;
  margin-top: -6px;
}

.person-sprite {
  position: absolute;
  z-index: 1;
  right: -1px;
  bottom: -1px;
  width: clamp(138px, 22.3dvh, min(52vw, 250px));
  height: clamp(108px, 17.39dvh, min(40.56vw, 194.69px));
  background-image: url("../assets/hot-people.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.card-live .person-sprite { background-position: 2.8dvh 11.2%; }
.card-loto .person-sprite { background-position: 2.8dvh 33.35%; }
.card-sport .person-sprite { background-position: 5.5dvh top; }
.card-slot .person-sprite { background-position: 5.5dvh 22.3%; }

.game-card:active,
.activity-card:active,
.partner-card:active,
.footer-button:active { filter: brightness(0.96); }

.club-logos {
  display: flex;
  gap: 4px;
}

.club-logos img {
  width: auto;
  height: 21px;
  margin-top: -4px;
}

.game-badge {
  position: absolute;
  z-index: 3;
  background-repeat: no-repeat;
  background-size: 100% auto;
  pointer-events: none;
}

.game-badge.jackpot {
  top: 3px;
  right: 1px;
  width: 32px;
  height: 42px;
  background-image: url('../assets/icon_superGold.svg');
}

.game-badge.hot {
  top: 0;
  left: 0;
  width: 25px;
  height: 16px;
  background-image: url('../assets/icon_hotLabel.svg');
}

.provider-card {
  height: max(75px, calc((100% - var(--provider-rows) * var(--card-gap) - 6px) / var(--provider-rows)));
  min-height: 75px;
  background-image: var(--card-background, linear-gradient(#b2d2ed, #d1e6f6));
}

.provider-card.is-wide {
  width: 100%;
  align-items: center;
}

.provider-card .game-copy {
  width: 55px;
  align-items: center;
  margin: 10px 6px 0;
  text-align: center;
}

.provider-card .game-copy strong { white-space: pre-line; }
.provider-card .game-copy > img { max-width: 74px; object-fit: contain; }
.provider-card.is-wide .game-copy { width: 47%; margin: 0; }
.provider-card.is-wide .game-copy > img { height: 47px; }

.provider-sprite {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(138px, 22.3dvh, min(52vw, 250px));
  height: clamp(108px, 17.39dvh, min(40.56vw, 194px));
  background-position-x: 5.5dvh;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.provider-card.is-wide .provider-sprite { right: 4%; background-position-x: right; }
.game-grid[data-category='loto'] .provider-sprite,
.game-grid[data-category='chess'] .provider-sprite {
  top: auto;
  right: 0;
  bottom: 0;
  width: 68%;
  height: 100%;
  background-size: 100% 300%;
}

.game-grid[data-category='fish'] .provider-sprite { top: 25%; }
.game-grid[data-category='dg'] .provider-card { align-items: flex-end; justify-content: center; }
.game-grid[data-category='dg'] .game-copy { margin-bottom: 8%; }
.game-grid[data-category='dg'] .provider-sprite {
  right: 0;
  width: 100%;
  height: 80%;
  background-position-x: center;
  background-size: auto 300%;
}

.game-grid[data-category='hot'] .person-sprite {
  transform-origin: right bottom;
  animation: card-arrive 600ms ease-out both;
}

@keyframes card-arrive {
  from { transform: translateX(9%); opacity: 0.7; }
  to { transform: none; opacity: 1; }
}

.activity-card,
.partner-stack {
  width: calc(50% - 3px);
  height: calc(28% - var(--promo-offset));
  min-height: 78px;
}

.activity-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f8ddd8;
}

.activity-background,
.activity-foreground {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.activity-background {
  object-fit: cover;
}

.activity-foreground {
  z-index: 1;
  object-fit: cover;
}

.partner-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--card-gap);
}

.partner-card {
  display: flex;
  width: 100%;
  height: calc((100% - var(--card-gap)) / 2);
  align-items: center;
  justify-content: space-between;
  padding: 0 min(1.9vw, 9px) 0 0;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(135deg, #e3ebff 0%, #daddfe 50%, #ccbef7 100%);
  color: #535867;
  text-align: left;
}

.partner-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}

.partner-copy strong {
  border-bottom: 1px solid #7465a3;
  font-size: 12px;
  font-weight: 700;
}

.partner-copy small {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
}

.partner-card img {
  display: block;
  width: auto;
  height: min(8.7vw, 42px);
  max-height: 84%;
  object-fit: contain;
}

.laliga-card .partner-copy {
  align-items: center;
}

.laliga-card .partner-copy strong {
  border-bottom: 0;
  font-size: 11px;
  font-weight: 700;
}

.laliga-card .partner-copy small {
  margin-top: 0;
  font-size: 11px;
  font-weight: 700;
}

.cinema-copy {
  align-self: center;
  display: block;
  height: 70%;
  overflow: hidden;
}

.cinema-titles {
  display: block;
  height: 100%;
  animation: cinema-titles 7.5s ease-in-out infinite;
}

.cinema-titles > span {
  position: relative;
  display: grid;
  height: 50%;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.cinema-titles > span::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(17vw, 70px);
  height: 1px;
  margin: auto;
  background: #a89cdf;
  content: '';
}

@keyframes cinema-titles {
  0%, 27% { transform: translateY(0); }
  33.3%, 60.3% { transform: translateY(-50%); }
  66.7%, 94% { transform: translateY(-100%); }
  100% { transform: translateY(-150%); }
}

.site-footer {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: calc(var(--footer-height) + 1px);
  border-top: 1px solid #e1e1e2;
  background: #ffffff;
}

.footer-button {
  position: relative;
  display: flex;
  width: 20%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--footer-icon-offset) + var(--footer-icon-size) + 3px) 2px 0;
  background-color: #ffffff;
  color: #000000;
}

.footer-button::before {
  position: absolute;
  top: var(--footer-icon-offset);
  width: var(--footer-icon-size);
  height: var(--footer-icon-size);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
  content: "";
}

.footer-button span {
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.footer-gift::before {
  top: var(--gift-offset);
  width: var(--gift-width);
  height: var(--gift-size);
  background-image: url("../assets/footer-gift.png");
  background-size: auto 100%;
}

.footer-service::before { background-image: url("../assets/footer-service.svg"); }
.footer-record::before { background-image: url("../assets/footer-record.svg"); }
.footer-member::before { background-image: url("../assets/footer-member.svg"); }

.footer-wallet::before {
  top: auto;
  bottom: var(--wallet-offset);
  width: var(--wallet-size);
  height: var(--wallet-size);
  background-image: url("../assets/footer-wallet.svg");
  background-position: center top;
  background-size: 100% 200%;
}

.register-screen {
  position: absolute;
  z-index: 90;
  inset: 0;
  overflow: hidden auto;
  background: #fff;
  color: #000000;
}

.register-screen[hidden] {
  display: none;
}

.register-screen:focus {
  outline: 0;
}

.register-header {
  position: sticky;
  z-index: 2;
  top: 0;
  width: 100%;
  height: 40px;
  background: #0f548b url("../assets/register-header.jpg") repeat-y;
  background-size: 100% auto;
  color: #ffffff;
}

.register-header h1 {
  height: 40px;
  margin: 0 40px;
  font-size: 14.4px;
  font-weight: 400;
  line-height: 40px;
  text-align: center;
  white-space: nowrap;
}

.register-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  transform: rotate(90deg);
  background: url("../assets/icon-arrow-white.svg") no-repeat center;
  background-size: auto 40%;
}

.register-form {
  padding-block: 20px max(20px, env(safe-area-inset-bottom));
}

.register-fields {
  background: #ffffff;
}

.register-row {
  position: relative;
  display: flex;
  min-height: 59px;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0 var(--register-gutter);
  border-bottom: 1px solid #dddddd;
  background: #ffffff;
}

.register-row + .register-row { margin-top: 20px; }

.register-row > span {
  font-size: 15.2px;
  line-height: 18px;
}

.register-row input {
  width: 100%;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #111111;
  font-size: 15.2px;
  line-height: normal;
  appearance: none;
}

.register-row input::placeholder {
  color: #aaa;
  opacity: 1;
}

.register-row.has-error {
  padding-bottom: 17px;
  background: #fff5f5;
}

.register-error {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  color: #df2424;
  font-size: 12px;
  line-height: 1;
}

.register-terms {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px var(--register-gutter);
}

.term-row {
  display: flex;
  align-items: flex-start;
  color: #555;
  font-size: 15.2px;
  line-height: 1.35;
}

.register-checkbox {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-content: center;
  padding: 0;
  border: 1px solid #aaaaaa;
  border-radius: 50%;
  margin: 0 10px 0 0;
  appearance: none;
  background: #ffffff;
}

.register-checkbox:checked {
  border-color: #1589ff;
  background: #1589ff url("../assets/icon-check.svg") no-repeat center;
  background-size: auto 60%;
}

.term-row a {
  color: #2782d7;
  text-decoration: underline;
}

.register-submit {
  display: block;
  width: calc(100% - 2 * var(--register-gutter));
  min-height: 50px;
  margin: 0 var(--register-gutter);
  border-radius: 10px;
  background: #a7aebb;
  color: #ffffff;
  font-size: 15.2px;
  line-height: 50px;
}

.login-mask {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  max-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  border: 0;
  margin: auto;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.46);
}

.login-mask[open] {
  display: flex;
}

.login-mask::backdrop { background: transparent; }

.login-popup {
  position: relative;
  width: 88%;
  max-width: 600px;
  margin: auto;
  overflow: hidden;
  border-radius: 13px;
  background: #ffffff;
}

.login-close {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  background: url("../assets/icon-close.svg") no-repeat center;
  background-size: 40% auto;
}

.login-title {
  margin-bottom: -1px;
  background-color: #eeeeee;
  color: #000000;
  font-size: 15.2px;
  font-weight: 700;
  line-height: 38px;
  text-align: center;
}

.login-form {
  padding: 18px 12px 0;
  background-color: #ffffff;
}

.login-row {
  position: relative;
  display: flow-root;
  width: 100%;
  margin-bottom: 10px;
}

.login-input {
  width: 100%;
  height: 40px;
  padding: 0 40px;
  border: 0;
  border-bottom: 1px solid #dddddd;
  border-radius: 0;
  outline: 0;
  background-color: transparent;
  background-position: 10px 50%;
  background-repeat: no-repeat;
  background-size: auto 20px;
  color: #000000;
  font-size: 21.6px;
  line-height: 1;
  appearance: none;
}

.login-input::placeholder {
  color: #888888;
  font-size: 15.1px;
  opacity: 1;
}

.account-input { background-image: url("../assets/icon-login-id.svg"); }
.password-input { background-image: url("../assets/icon-login-password.svg"); }

.password-eye {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: url('../assets/icon-eye-on.svg') no-repeat center / auto 25px;
}

.password-eye.is-visible { background-image: url('../assets/icon-eye-off.svg'); }

.forgot-link {
  float: right;
  margin: 8px 0 -2px;
  color: var(--ku-dark-blue);
  font-size: 14.4px;
  line-height: 1;
  text-decoration: none;
}

.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  clear: both;
}

.sign-button {
  width: 48%;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 2px;
  color: #ffffff;
  font-size: 14.4px;
  line-height: 38px;
}

.register-button { background-color: #ff7500; }
.submit-button { background-color: #45b5d9; }

.maintenance-dialog {
  width: min(82%, 330px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.maintenance-dialog::backdrop {
  background: rgba(0, 0, 0, 0.38);
}

.maintenance-card {
  text-align: center;
}

.maintenance-card h2 {
  margin: 0;
  padding: 13px 40px 10px;
  border-bottom: 1px solid #eeeeee;
  color: #222222;
  font-size: 16px;
}

.maintenance-card p {
  margin: 0;
  padding: 24px 18px;
  color: #535353;
  font-size: 15px;
  line-height: 1.5;
}

.maintenance-card button {
  width: 100%;
  height: 44px;
  border-top: 1px solid #dddddd;
  background: #ffffff;
  color: #2782d7;
  font-size: 15px;
  font-weight: 700;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #0079bd;
  outline-offset: 2px;
}

.login-input:focus-visible { outline-offset: -2px; }

@media (min-width: 350px) {
  :root {
    --footer-height: 48px;
    --footer-icon-size: 22px;
    --footer-icon-offset: 6px;
    --wallet-size: 39px;
    --wallet-offset: 27px;
    --gift-size: 46px;
    --gift-width: 72px;
    --gift-offset: -10px;
  }

  .header-pill {
    min-height: 25px;
    padding: 0 10px 0 30px;
    background-size: 17px auto;
    font-size: 14.96px;
    line-height: 25px;
  }

  .footer-button span { font-size: 11.44px; }
  .member-name { font-size: 12.8px; }
  .member-balance { font-size: 18.4px; }
  .register-header h1 { font-size: 15.84px; }
  .register-row > span,
  .register-row input,
  .term-row,
  .register-submit,
  .login-title,
  .sign-button { font-size: 16.72px; }
  .login-input { font-size: 23.76px; }
  .login-input::placeholder { font-size: 16.63px; }
  .forgot-link { font-size: 15.84px; }
  .game-area { --card-gap: 7px; --promo-offset: 9px; }
  .game-badge.jackpot { width: 37px; height: 45px; }
}

@media (min-width: 375px) {
  .member-name { font-size: 14.4px; }
  .member-balance { font-size: 19.2px; }
}

@media (min-width: 350px) and (min-aspect-ratio: 1/2) {
  .card-live .person-sprite,
  .card-loto .person-sprite { background-position-x: 1.5vw; }
  .card-sport .person-sprite,
  .card-slot .person-sprite,
  .provider-sprite { background-position-x: 7.5vw; }
}

@media (prefers-reduced-motion: reduce) {
  .banner-track { transition: none; }
  .game-grid[data-category='hot'] .person-sprite,
  .category-button.is-active img,
  .cinema-titles { animation: none; }
}

@media (min-width: 350px) and (max-width: 399px) and (min-height: 724px) {
  .game-grid[data-category='hot'] .game-copy > img { height: 47px; }
  .card-sport .club-logos img { height: 28px; margin-top: -6px; }
}

@media (max-width: 360px) {
  .header-pill {
    padding-right: 7px;
    padding-left: 25px;
    background-size: 15px auto;
    font-size: 12px;
  }

  .category-rail { gap: 4px; }
  .category-button { min-height: 39px; }
  .category-button img { width: 21px; height: 21px; }
  .category-button span { font-size: 9px; }
  .game-copy { margin-left: 5px; }
  .game-copy strong { font-size: 11px; }
  .person-sprite { right: -8px; }
}

@media (min-width: 400px) {
  :root {
    --footer-height: 55px;
    --footer-icon-size: 25px;
    --footer-icon-offset: 8px;
    --wallet-size: 47px;
    --wallet-offset: 29px;
    --gift-size: 53px;
    --gift-width: 82px;
    --gift-offset: -9px;
  }

  .game-area { --card-gap: 8px; --promo-offset: 10px; }
  .game-card, .activity-card, .partner-stack { width: calc(50% - 4px); }
  .game-grid[data-category='hot'] .game-card { height: calc(35% - 10px); }
  .provider-card.is-wide { width: 100%; }
  .game-grid[data-category='hot'] .game-copy { margin-left: 15px; }
  .game-grid[data-category='hot'] .game-copy > img { height: 55px; }
  .register-form { padding-top: 25px; }
  .register-row > span { line-height: 1.35; }
  .register-checkbox { margin: 2px 15px 0 0; }
  .login-popup { border-radius: 18px; }
  .login-row { margin-bottom: 15px; }

  .login-input {
    height: 50px;
    padding-left: 60px;
    background-position-x: 15px;
    background-size: auto 30px;
  }

  .password-eye { width: 50px; height: 50px; }
  .forgot-link { margin-top: 10px; margin-bottom: -5px; }
  .sign-button { height: 48px; margin-bottom: 15px; line-height: 48px; }
  .login-close { width: 48px; height: 48px; }
  .login-title { line-height: 48px; }
  .login-form { padding: 25px 15px 0; }
}

@media (min-width: 700px) {
  body {
    display: grid;
    place-items: center;
    padding: 20px;
  }

  .mobile-shell {
    height: min(860px, calc(100dvh - 40px));
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(17, 47, 68, 0.25);
  }

  .login-popup { max-width: 422px; }
}
