:root {
  --sasa-bg: #07141b;
  --sasa-panel: #0c2029;
  --sasa-panel-strong: #102a35;
  --sasa-line: rgba(154, 200, 207, 0.18);
  --sasa-text: #f3f8f8;
  --sasa-muted: #8fa7ad;
  --sasa-cyan: #4fd5c3;
  --sasa-gold: #f4bf55;
  --sasa-coral: #e35e52;
}

* {
  box-sizing: border-box;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

.sasa-hall {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  color: var(--sasa-text);
  background: var(--sasa-bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.sasa-hall::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(95, 171, 182, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 171, 182, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
}

.sasa-hall__header {
  position: relative;
  z-index: 2;
  display: grid;
  height: 68px;
  padding: 0 26px;
  border-bottom: 1px solid var(--sasa-line);
  background: rgba(5, 19, 26, 0.96);
  align-items: center;
  grid-template-columns: 236px minmax(0, 1fr) 236px;
}

.sasa-brand {
  display: inline-flex;
  width: max-content;
  color: var(--sasa-text);
  text-decoration: none;
  align-items: center;
  gap: 11px;
}

.sasa-brand__mark {
  display: grid;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 6px 18px rgba(47, 210, 170, 0.18);
  place-items: center;
}

.sasa-brand__mark img,
.sasa-player-brand__mark img,
.sasa-launch-required__mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.sasa-brand__copy {
  display: flex;
  flex-direction: column;
}

.sasa-brand strong {
  font-size: 14px;
  line-height: 1.1;
}

.sasa-brand small {
  margin-top: 4px;
  color: var(--sasa-muted);
  font-size: 8px;
  font-weight: 800;
}

.sasa-primary-nav {
  display: flex;
  height: 100%;
  justify-content: center;
  gap: 30px;
}

.sasa-primary-nav__item {
  position: relative;
  border: 0;
  color: var(--sasa-muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.sasa-primary-nav__item::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.sasa-primary-nav__item:hover,
.sasa-primary-nav__item.is-active {
  color: var(--sasa-text);
}

.sasa-primary-nav__item.is-active::after {
  background: var(--sasa-cyan);
}

.sasa-hall__status {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 14px;
}

.sasa-runtime-state {
  display: inline-flex;
  color: var(--sasa-muted);
  font-size: 11px;
  align-items: center;
  gap: 8px;
}

.sasa-runtime-state > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45d487;
  box-shadow: 0 0 0 4px rgba(69, 212, 135, 0.12);
}

.sasa-icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--sasa-line);
  border-radius: 5px;
  color: var(--sasa-text);
  background: var(--sasa-panel);
  cursor: pointer;
  font-size: 18px;
}

.sasa-hall__main {
  position: relative;
  z-index: 1;
  display: grid;
  height: calc(100svh - 68px);
  grid-template-columns: 88px minmax(480px, 1fr) minmax(310px, 360px);
}

.sasa-category-rail {
  display: flex;
  padding: 18px 10px;
  border-right: 1px solid var(--sasa-line);
  background: rgba(6, 23, 31, 0.92);
  flex-direction: column;
  gap: 8px;
}

.sasa-category-rail__item {
  display: flex;
  width: 68px;
  min-height: 64px;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--sasa-muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
}

.sasa-category-rail__item:hover,
.sasa-category-rail__item.is-active {
  border-color: rgba(79, 213, 195, 0.23);
  color: var(--sasa-text);
  background: rgba(34, 100, 99, 0.28);
}

.sasa-category-rail__icon {
  display: grid;
  width: 23px;
  height: 23px;
  color: var(--sasa-cyan);
  font-size: 18px;
  place-items: center;
}

.sasa-category-rail__icon--fish {
  background-image: url("assets/fish-atlas.png");
  background-position: 66.666% 0;
  background-repeat: no-repeat;
  background-size: 400% 200%;
}

.sasa-catalog {
  min-width: 0;
  overflow: auto;
  padding: 28px 26px 42px;
}

.sasa-catalog__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.sasa-kicker {
  margin: 0 0 7px;
  color: var(--sasa-cyan);
  font-size: 9px;
  font-weight: 900;
}

.sasa-catalog h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.sasa-catalog__heading p:last-child {
  margin: 8px 0 0;
  color: var(--sasa-muted);
  font-size: 12px;
  line-height: 1.5;
}

.sasa-search {
  display: flex;
  width: min(270px, 42%);
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--sasa-line);
  border-radius: 5px;
  background: rgba(12, 32, 41, 0.9);
  align-items: center;
  gap: 9px;
}

.sasa-search > span {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--sasa-muted);
  border-radius: 50%;
}

.sasa-search > span::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: var(--sasa-muted);
  content: "";
  transform: rotate(45deg);
}

.sasa-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--sasa-text);
  background: transparent;
  font-size: 12px;
}

.sasa-search input::placeholder {
  color: #647c82;
}

.sasa-catalog__meta {
  display: flex;
  margin-top: 26px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sasa-line);
  color: var(--sasa-muted);
  font-size: 10px;
  align-items: center;
  justify-content: space-between;
}

.sasa-catalog__meta strong {
  color: var(--sasa-text);
  font-size: 12px;
}

.sasa-game-grid {
  display: grid;
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 14px;
}

.sasa-game-card {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--sasa-line);
  border-radius: 7px;
  color: var(--sasa-text);
  background: var(--sasa-panel);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, transform 150ms ease, background-color 150ms ease;
}

.sasa-game-card:hover,
.sasa-game-card:focus-visible {
  border-color: rgba(79, 213, 195, 0.56);
  outline: 0;
  transform: translateY(-2px);
}

.sasa-game-card.is-selected {
  border-color: var(--sasa-cyan);
  background: var(--sasa-panel-strong);
  box-shadow: inset 0 -2px 0 var(--sasa-cyan);
}

.sasa-game-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.72 / 1;
  overflow: hidden;
  background: #081a22;
}

.sasa-game-card__media::after {
  position: absolute;
  inset: 52% 0 0;
  background: linear-gradient(transparent, rgba(4, 16, 22, 0.78));
  content: "";
}

.sasa-game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.sasa-game-card:hover img {
  transform: scale(1.035);
}

.sasa-game-card__media--fruit {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 225, 125, 0.26), transparent 33%),
    radial-gradient(circle at 7% 100%, rgba(208, 47, 117, 0.52), transparent 43%),
    linear-gradient(135deg, #06251f 0%, #08705d 46%, #36123e 100%);
}

.sasa-fruit-slot-artwork {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.sasa-fruit-slot-artwork::before {
  position: absolute;
  inset: 9% 6%;
  border: 1px solid rgba(255, 219, 112, 0.76);
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.05), 0 0 16px rgba(255, 194, 64, 0.22);
  content: "";
}

.sasa-fruit-slot-artwork__title {
  position: absolute;
  z-index: 1;
  top: 13%;
  left: 9%;
  color: #ffe898;
  font-size: clamp(10px, 0.92vw, 14px);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 5px rgba(29, 3, 18, 0.72);
}

.sasa-fruit-slot-artwork__reels {
  position: absolute;
  z-index: 1;
  top: 18%;
  right: 9%;
  bottom: 13%;
  width: 55%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 223, 128, 0.72);
  border-radius: 10px;
  background: rgba(28, 7, 29, 0.9);
  box-shadow: 0 7px 18px rgba(4, 7, 10, 0.46);
}

.sasa-fruit-slot-artwork__reel {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(180deg, #fff9df, #ddf3d2 53%, #f4d685);
}

.sasa-fruit-slot-artwork__reel img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(34, 38, 10, 0.26));
}

.sasa-fruit-slot-artwork__wild {
  position: absolute;
  z-index: 2;
  bottom: 10%;
  left: 15%;
  width: 21%;
  height: 42%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.44));
  transform: rotate(-9deg);
}

.sasa-game-card__badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  background: rgba(4, 20, 27, 0.78);
  font-size: 9px;
  font-weight: 700;
}

.sasa-game-card__body {
  display: flex;
  min-width: 0;
  padding: 13px 14px 14px;
  flex-direction: column;
}

.sasa-game-card__body strong {
  font-size: 14px;
}

.sasa-game-card__body small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--sasa-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sasa-catalog-empty {
  margin-top: 18px;
  padding: 60px 20px;
  border: 1px dashed var(--sasa-line);
  border-radius: 7px;
  color: var(--sasa-muted);
  text-align: center;
}

.sasa-catalog-empty strong,
.sasa-catalog-empty span {
  display: block;
}

.sasa-catalog-empty strong {
  color: var(--sasa-text);
  font-size: 14px;
}

.sasa-catalog-empty span {
  margin-top: 7px;
  font-size: 11px;
}

.sasa-game-detail {
  min-width: 0;
  overflow: auto;
  border-left: 1px solid var(--sasa-line);
  background: #0a1c24;
}

.sasa-game-detail__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1.28 / 1;
  overflow: hidden;
  background: #08171e;
}

.sasa-game-detail__media::after {
  position: absolute;
  inset: 44% 0 0;
  background: linear-gradient(transparent, #0a1c24);
  content: "";
}

.sasa-game-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sasa-game-detail__media > span {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  padding: 5px 8px;
  border-radius: 4px;
  color: #061b20;
  background: var(--sasa-cyan);
  font-size: 9px;
  font-weight: 900;
}

.sasa-game-detail[data-theme="orchard"] .sasa-game-detail__media > span,
.sasa-game-detail[data-theme="water_margin"] .sasa-game-detail__media > span {
  background: #83d79c;
}

.sasa-game-detail[data-theme="poker"] .sasa-game-detail__media > span,
.sasa-game-detail[data-theme="dragon_tiger"] .sasa-game-detail__media > span,
.sasa-game-detail[data-theme="gold_shark"] .sasa-game-detail__media > span,
.sasa-game-detail[data-theme="racing"] .sasa-game-detail__media > span {
  background: #e1bf72;
}

.sasa-game-detail__body {
  position: relative;
  margin-top: -38px;
  padding: 0 24px 30px;
}

.sasa-game-detail h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1.15;
}

.sasa-game-detail__english {
  margin: 7px 0 0;
  color: var(--sasa-gold);
  font-size: 10px;
  font-weight: 900;
}

.sasa-game-detail__summary {
  margin: 18px 0 0;
  color: var(--sasa-muted);
  font-size: 12px;
  line-height: 1.7;
}

.sasa-game-facts {
  margin: 20px 0;
  border-top: 1px solid var(--sasa-line);
}

.sasa-game-facts > div {
  display: grid;
  min-height: 42px;
  border-bottom: 1px solid var(--sasa-line);
  align-items: center;
  grid-template-columns: 86px 1fr;
}

.sasa-game-facts dt {
  color: var(--sasa-muted);
  font-size: 10px;
}

.sasa-game-facts dd {
  margin: 0;
  color: var(--sasa-text);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.sasa-launch-button {
  display: flex;
  width: 100%;
  height: 48px;
  border: 1px solid #63e1cf;
  border-radius: 6px;
  color: #06201e;
  background: var(--sasa-cyan);
  cursor: pointer;
  font-weight: 900;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sasa-launch-button:hover,
.sasa-launch-button:focus-visible {
  background: #72e2d2;
  outline: 2px solid rgba(244, 191, 85, 0.6);
  outline-offset: 2px;
}

.sasa-launch-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.sasa-launch-button__icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #06201e;
}

.sasa-launch-button.is-loading .sasa-launch-button__icon {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(6, 32, 30, 0.25);
  border-top-color: #06201e;
  border-radius: 50%;
  animation: sasa-spin 700ms linear infinite;
}

.sasa-launch-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--sasa-gold);
  font-size: 10px;
  text-align: center;
}

.sasa-security-note {
  display: flex;
  margin-top: 16px;
  color: var(--sasa-muted);
  font-size: 9px;
  line-height: 1.5;
  align-items: center;
  gap: 7px;
}

.sasa-security-note > span:first-child {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border: 1px solid rgba(79, 213, 195, 0.45);
  border-radius: 50%;
  color: var(--sasa-cyan);
  place-items: center;
}

.sasa-back-button {
  position: absolute;
  z-index: 3;
  top: 84px;
  right: 24px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  color: #fff;
  background: rgba(4, 19, 26, 0.72);
  cursor: pointer;
  font-size: 10px;
}

.sasa-hall.is-direct .sasa-category-rail,
.sasa-hall.is-direct .sasa-catalog {
  display: none;
}

.sasa-hall.is-direct .sasa-hall__main {
  display: block;
}

.sasa-hall.is-direct .sasa-game-detail {
  position: relative;
  width: min(980px, calc(100% - 48px));
  height: calc(100svh - 104px);
  margin: 18px auto;
  border: 1px solid var(--sasa-line);
  border-radius: 7px;
}

.sasa-hall.is-direct .sasa-game-detail__media {
  position: absolute;
  inset: 0 42% 0 0;
  aspect-ratio: auto;
}

.sasa-hall.is-direct .sasa-game-detail__media::after {
  inset: 0;
  background: linear-gradient(90deg, transparent 58%, #0a1c24);
}

.sasa-hall.is-direct .sasa-game-detail__body {
  width: 42%;
  min-height: 100%;
  margin: 0 0 0 auto;
  padding: 80px 34px 32px;
}

.sasa-game-loading {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  overflow: hidden;
  color: #f3f8f8;
  background: #07141b;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.sasa-game-loading.is-visible {
  display: grid;
  place-items: center;
}

.sasa-game-loading__backdrop {
  position: absolute;
  inset: 0;
  background-image: url("assets/ocean-arena.jpg");
  background-position: center;
  background-size: cover;
  opacity: 0.42;
  transform: scale(1.03);
}

.sasa-game-loading__backdrop::after {
  position: absolute;
  inset: 0;
  background: rgba(3, 20, 29, 0.76);
  content: "";
}

.sasa-game-loading[data-theme="orchard"] .sasa-game-loading__backdrop {
  background-image:
    radial-gradient(circle at 52% 42%, rgba(255, 213, 100, 0.24), transparent 28%),
    radial-gradient(circle at 18% 85%, rgba(204, 39, 111, 0.42), transparent 34%),
    linear-gradient(145deg, #031b19 0%, #075b50 46%, #2a0b35 100%);
}

.sasa-game-loading[data-theme="poker"] .sasa-game-loading__backdrop {
  background-image: url("assets/royal-poker-room.png");
}

.sasa-game-loading[data-theme="water_margin"] .sasa-game-loading__backdrop {
  background-image: url("assets/water-margin.png");
}

.sasa-game-loading[data-theme="racing"] .sasa-game-loading__backdrop {
  background-image: url("assets/speed-arena.png");
}

.sasa-game-loading[data-theme="dragon_tiger"] .sasa-game-loading__backdrop {
  background-image: url("assets/dragon-tiger.png");
}

.sasa-game-loading[data-theme="gold_shark"] .sasa-game-loading__backdrop {
  background-image: url("assets/gold-shark.png");
}

.sasa-game-loading[data-theme="lucky_lion"] .sasa-game-loading__backdrop {
  background-image: url("assets/lucky-lion.png");
}

.sasa-game-loading[data-theme="mermaid"] .sasa-game-loading__backdrop {
  background-image: url("assets/mermaid-sea.png");
}

.sasa-game-loading[data-theme="golden_toad"] .sasa-game-loading__backdrop {
  background-image: url("assets/golden-toad-reef.png");
}

.sasa-game-loading[data-theme="li_kui"] .sasa-game-loading__backdrop {
  background-image: url("assets/li-kui-sea.png");
}

.sasa-game-loading[data-theme="money_tree"] .sasa-game-loading__backdrop {
  background-image: url("assets/money-tree-sea.png");
}

.sasa-game-loading[data-theme="havoc_heaven"] .sasa-game-loading__backdrop {
  background-image: url("assets/havoc-heaven-sea.png");
}

.sasa-game-loading[data-theme="demon_king"] .sasa-game-loading__backdrop {
  background-image: url("assets/demon-king-sea.png");
}

.sasa-game-loading[data-theme="orchard"] .sasa-game-loading__backdrop::after,
.sasa-game-loading[data-theme="water_margin"] .sasa-game-loading__backdrop::after {
  background: rgba(4, 28, 22, 0.78);
}

.sasa-game-loading[data-theme="poker"] .sasa-game-loading__backdrop::after,
.sasa-game-loading[data-theme="dragon_tiger"] .sasa-game-loading__backdrop::after,
.sasa-game-loading[data-theme="gold_shark"] .sasa-game-loading__backdrop::after {
  background: rgba(22, 10, 9, 0.78);
}

.sasa-game-loading[data-theme="racing"] .sasa-game-loading__backdrop::after {
  background: rgba(4, 10, 22, 0.8);
}

.sasa-game-loading[data-theme="mermaid"] .sasa-game-loading__backdrop::after,
.sasa-game-loading[data-theme="golden_toad"] .sasa-game-loading__backdrop::after,
.sasa-game-loading[data-theme="li_kui"] .sasa-game-loading__backdrop::after,
.sasa-game-loading[data-theme="money_tree"] .sasa-game-loading__backdrop::after,
.sasa-game-loading[data-theme="havoc_heaven"] .sasa-game-loading__backdrop::after {
  background: rgba(0, 28, 48, 0.76);
}

.sasa-game-loading[data-theme="demon_king"] .sasa-game-loading__backdrop::after {
  background: rgba(2, 18, 36, 0.76);
}

.sasa-game-loading__visual,
.sasa-game-loading__copy {
  position: relative;
  z-index: 1;
}

.sasa-game-loading__visual {
  width: 330px;
  height: 190px;
  margin-bottom: -28px;
}

.sasa-game-loading__copy {
  width: min(420px, calc(100% - 42px));
  text-align: center;
}

.sasa-game-loading__copy p {
  margin: 0;
}

.sasa-game-loading__copy > p:first-child {
  color: var(--sasa-cyan);
  font-size: 9px;
  font-weight: 900;
}

.sasa-game-loading__copy h2 {
  margin: 10px 0 8px;
  font-size: 28px;
}

.sasa-game-loading__copy > p:nth-of-type(2) {
  color: #a8bdc1;
  font-size: 11px;
}

.sasa-loading-track {
  width: 100%;
  height: 4px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.sasa-loading-track > span {
  display: block;
  width: 8%;
  height: 100%;
  background: var(--sasa-cyan);
  box-shadow: 0 0 14px rgba(79, 213, 195, 0.74);
  transition: width 180ms ease;
}

.sasa-loading-percent {
  display: block;
  margin-top: 9px;
  color: #a8bdc1;
  font-size: 9px;
}

.sasa-loading-ocean,
.sasa-loading-slot,
.sasa-loading-poker,
.sasa-loading-racing {
  position: absolute;
  inset: 0;
}

.sasa-loading-slot,
.sasa-loading-poker,
.sasa-loading-racing {
  display: none;
}

.sasa-loading-fish {
  position: absolute;
  display: block;
  width: 112px;
  height: 112px;
  background-image: url("assets/fish-atlas.png");
  background-repeat: no-repeat;
  background-size: 400% 200%;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.34));
}

.sasa-loading-fish--one {
  top: 34px;
  left: 32px;
  background-position: 66.666% 0;
  animation: sasa-fish-cross 2.4s ease-in-out infinite;
}

.sasa-loading-fish--two {
  top: 60px;
  right: 24px;
  background-position: 0 0;
  animation: sasa-fish-cross-reverse 2.8s ease-in-out infinite;
}

.sasa-loading-bubble {
  position: absolute;
  bottom: 18px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(177, 236, 241, 0.62);
  border-radius: 50%;
  animation: sasa-bubble-rise 2.2s linear infinite;
}

.sasa-loading-bubble--one { left: 96px; }
.sasa-loading-bubble--two { left: 164px; animation-delay: -0.8s; }
.sasa-loading-bubble--three { left: 226px; animation-delay: -1.4s; }

.sasa-game-loading[data-theme="orchard"] .sasa-loading-ocean,
.sasa-game-loading[data-theme="water_margin"] .sasa-loading-ocean,
.sasa-game-loading[data-theme="poker"] .sasa-loading-ocean,
.sasa-game-loading[data-theme="dragon_tiger"] .sasa-loading-ocean,
.sasa-game-loading[data-theme="gold_shark"] .sasa-loading-ocean,
.sasa-game-loading[data-theme="racing"] .sasa-loading-ocean {
  display: none;
}

.sasa-game-loading[data-theme="orchard"] .sasa-loading-slot,
.sasa-game-loading[data-theme="water_margin"] .sasa-loading-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sasa-loading-slot > span {
  display: grid;
  width: 82px;
  height: 104px;
  overflow: hidden;
  border: 2px solid rgba(242, 203, 103, 0.64);
  border-radius: 6px;
  background: rgba(8, 41, 31, 0.86);
  place-items: center;
  animation: sasa-reel-pulse 900ms ease-in-out infinite alternate;
}

.sasa-loading-slot > span:nth-child(2) { animation-delay: -300ms; }
.sasa-loading-slot > span:nth-child(3) { animation-delay: -600ms; }

.sasa-loading-slot img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.sasa-game-loading[data-theme="poker"] .sasa-loading-poker,
.sasa-game-loading[data-theme="dragon_tiger"] .sasa-loading-poker,
.sasa-game-loading[data-theme="gold_shark"] .sasa-loading-poker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sasa-loading-poker > span {
  position: absolute;
  display: flex;
  width: 82px;
  height: 116px;
  border: 2px solid #dbc077;
  border-radius: 6px;
  color: #17201d;
  background: #f4eee1;
  box-shadow: 0 16px 22px rgba(0, 0, 0, 0.3);
  font-size: 25px;
  font-weight: 900;
  align-items: flex-start;
  flex-direction: column;
  padding: 10px;
  animation: sasa-card-deal 1.6s ease-in-out infinite;
}

.sasa-loading-poker > span:nth-child(1) { transform: translateX(-64px) rotate(-12deg); }
.sasa-loading-poker > span:nth-child(2) { color: #9e3541; animation-delay: -0.2s; }
.sasa-loading-poker > span:nth-child(3) { transform: translateX(64px) rotate(12deg); animation-delay: -0.4s; }
.sasa-loading-poker small { font-size: 18px; }

.sasa-game-loading[data-theme="racing"] .sasa-loading-racing {
  display: block;
}

.sasa-loading-racing > span {
  position: absolute;
  top: 78px;
  width: 14px;
  height: 14px;
  border: 2px solid #f2c34f;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(242, 195, 79, 0.62);
  animation: sasa-race-light 1.1s ease-in-out infinite;
}

.sasa-loading-racing > span:nth-child(1) { left: 66px; }
.sasa-loading-racing > span:nth-child(2) { left: 126px; animation-delay: -0.22s; }
.sasa-loading-racing > span:nth-child(3) { right: 126px; animation-delay: -0.44s; }
.sasa-loading-racing > span:nth-child(4) { right: 66px; animation-delay: -0.66s; }

.sasa-loading-racing > i {
  position: absolute;
  top: 60px;
  left: 132px;
  width: 68px;
  height: 42px;
  border-radius: 18px 24px 8px 8px;
  background: #e34f4f;
  box-shadow: 0 18px 0 -12px #f5c454, 0 18px 28px rgba(0, 0, 0, 0.38);
  animation: sasa-race-car 1.35s ease-in-out infinite;
}

.sasa-session-active .sasa-hall {
  display: none;
}

.sasa-session-active.sasa-cocos-ready .sasa-game-loading {
  display: none;
}

.sasa-orientation {
  display: none;
}

.sasa-launch-required {
  position: fixed;
  inset: 0;
  z-index: 31000;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(32px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  box-sizing: border-box;
  color: var(--sasa-text);
  background:
    radial-gradient(circle at 50% 35%, rgba(47, 210, 170, 0.13), transparent 34%),
    #07141b;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.sasa-launch-required[hidden] {
  display: none;
}

.sasa-launch-required__mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 12px 34px rgba(47, 210, 170, 0.2);
  place-items: center;
}

.sasa-launch-required strong {
  font-size: clamp(22px, 5vw, 30px);
}

.sasa-launch-required > span:not(.sasa-launch-required__mark) {
  margin-top: 10px;
  color: var(--sasa-muted);
  font-size: clamp(13px, 3.2vw, 15px);
}

.sasa-launch-required button {
  min-width: min(72vw, 280px);
  min-height: 48px;
  margin-top: 24px;
  padding: 0 24px;
  border: 1px solid rgba(47, 210, 170, 0.72);
  border-radius: 24px;
  color: #041915;
  background: linear-gradient(135deg, #69f0c7, #2fd2aa);
  font: 700 15px/1 Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.sasa-launch-required-mode .sasa-hall,
.sasa-launch-required-mode .sasa-game-loading,
.sasa-launch-required-mode .sasa-orientation,
.sasa-launch-required-mode #GameDiv {
  display: none !important;
}

@media (orientation: portrait) and (max-width: 900px) {
  .sasa-session-active .sasa-hall,
  .sasa-session-active .sasa-game-loading {
    display: none !important;
  }

  .sasa-session-active .sasa-orientation {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    padding:
      max(34px, env(safe-area-inset-top))
      max(24px, env(safe-area-inset-right))
      max(34px, env(safe-area-inset-bottom))
      max(24px, env(safe-area-inset-left));
    box-sizing: border-box;
    color: var(--sasa-text);
    background:
      radial-gradient(circle at 50% 35%, rgba(47, 210, 170, 0.14), transparent 34%),
      #07141b;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .sasa-orientation__device {
    width: clamp(82px, 24vw, 116px);
    height: clamp(48px, 14vw, 68px);
    margin-bottom: 22px;
    border: 3px solid var(--sasa-cyan);
    border-radius: 12px;
    box-shadow: 0 0 28px rgba(47, 210, 170, 0.2);
    animation: sasa-device-rotate 1.8s ease-in-out infinite;
  }

  .sasa-orientation strong {
    font-size: clamp(22px, 6vw, 30px);
  }

  #SasaOrientationMessage {
    margin-top: 10px;
    color: var(--sasa-muted);
    font-size: clamp(12px, 3.4vw, 15px);
  }

  .sasa-orientation__button {
    min-width: min(72vw, 280px);
    min-height: 48px;
    margin-top: 24px;
    padding: 0 24px;
    border: 1px solid rgba(47, 210, 170, 0.72);
    border-radius: 24px;
    color: #041915;
    background: linear-gradient(135deg, #69f0c7, #2fd2aa);
    box-shadow: 0 12px 28px rgba(25, 172, 137, 0.24);
    font: 700 15px/1 Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  }

  .sasa-session-active #GameDiv {
    visibility: hidden;
  }
}

@media (orientation: landscape) {
  .sasa-session-active #GameDiv,
  .sasa-session-active #Cocos3dGameContainer,
  .sasa-session-active #GameCanvas {
    position: fixed;
    inset: 0;
    width: 100vw !important;
    width: var(--sasa-viewport-width, 100vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    height: var(--sasa-viewport-height, 100dvh) !important;
    overflow: hidden;
  }
}

@keyframes sasa-device-rotate {
  0%, 28% { transform: rotate(90deg); }
  58%, 100% { transform: rotate(0deg); }
}

@media (max-width: 1080px) {
  .sasa-hall__header {
    grid-template-columns: 190px minmax(0, 1fr) 150px;
  }

  .sasa-primary-nav {
    gap: 18px;
  }

  .sasa-hall__main {
    grid-template-columns: 76px minmax(400px, 1fr) 300px;
  }

  .sasa-category-rail__item {
    width: 56px;
  }

  .sasa-game-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sasa-hall__header {
    height: 58px;
    padding: 0 13px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sasa-brand__mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 17px;
  }

  .sasa-brand__copy {
    max-width: 112px;
  }

  .sasa-brand strong {
    font-size: 12px;
  }

  .sasa-brand small {
    margin-top: 2px;
    font-size: 7px;
  }

  .sasa-primary-nav,
  .sasa-runtime-state {
    display: none;
  }

  .sasa-hall__status {
    grid-column: 2;
  }

  .sasa-icon-button {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .sasa-hall__main {
    display: grid;
    height: calc(100svh - 58px);
    height: calc(100dvh - 58px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 58px minmax(0, 1fr);
  }

  .sasa-category-rail {
    display: flex;
    min-width: 0;
    padding: 6px 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--sasa-line);
    flex-direction: row;
    gap: 4px;
    scrollbar-width: none;
  }

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

  .sasa-category-rail__item {
    width: auto;
    min-width: 64px;
    min-height: 44px;
    padding: 4px 7px;
    border-radius: 9px;
    flex: 1 0 auto;
    flex-direction: row;
    gap: 5px;
  }

  .sasa-category-rail__icon {
    width: 18px;
    height: 18px;
    font-size: 15px;
  }

  .sasa-catalog {
    min-height: 0;
    padding: 18px 13px 184px;
  }

  .sasa-catalog__heading {
    display: block;
  }

  .sasa-catalog h1 {
    font-size: 23px;
  }

  .sasa-catalog__heading p:last-child {
    max-width: 310px;
    font-size: 11px;
  }

  .sasa-search {
    width: 100%;
    height: 42px;
    margin-top: 14px;
    border-radius: 10px;
  }

  .sasa-catalog__meta {
    margin-top: 18px;
  }

  .sasa-catalog__meta > span {
    display: none;
  }

  .sasa-game-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .sasa-game-card {
    border-radius: 12px;
  }

  .sasa-game-card__media {
    aspect-ratio: 1.78 / 1;
  }

  .sasa-game-detail {
    position: fixed;
    z-index: 10010;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: 166px;
    overflow: hidden;
    border-top: 1px solid rgba(79, 213, 195, 0.34);
    border-left: 0;
    background: rgba(7, 25, 33, 0.98);
    box-shadow: 0 -16px 34px rgba(2, 10, 14, 0.58);
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .sasa-game-detail__media {
    height: 100%;
    aspect-ratio: auto;
  }

  .sasa-game-detail__media::after {
    inset: 0;
    background: linear-gradient(90deg, transparent 48%, rgba(7, 25, 33, 0.98));
  }

  .sasa-game-detail__media > span {
    top: 10px;
    left: 10px;
  }

  .sasa-game-detail__body {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 17px 13px 13px 8px;
    justify-content: center;
    flex-direction: column;
  }

  .sasa-game-detail__body > .sasa-kicker,
  .sasa-game-detail__summary,
  .sasa-game-facts,
  .sasa-security-note {
    display: none;
  }

  .sasa-game-detail h2 {
    overflow: hidden;
    font-size: 21px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sasa-game-detail__english {
    margin-top: 4px;
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sasa-launch-button {
    height: 43px;
    margin-top: 13px;
    border-radius: 10px;
    flex: 0 0 auto;
  }

  .sasa-launch-status {
    min-height: 0;
    margin: 4px 0 0;
    font-size: 9px;
  }

  .sasa-hall.is-direct .sasa-hall__main {
    display: block;
  }

  .sasa-hall.is-direct .sasa-game-detail {
    top: 58px;
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(230px, 44dvh) minmax(0, 1fr);
  }

  .sasa-hall.is-direct .sasa-game-detail__media {
    position: relative;
    inset: auto;
  }

  .sasa-hall.is-direct .sasa-game-detail__media::after {
    background: linear-gradient(transparent 48%, #071921);
  }

  .sasa-hall.is-direct .sasa-game-detail__body {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 22px 22px max(22px, env(safe-area-inset-bottom));
    align-items: stretch;
  }

  .sasa-hall.is-direct .sasa-game-detail__body > .sasa-kicker,
  .sasa-hall.is-direct .sasa-game-detail__summary,
  .sasa-hall.is-direct .sasa-security-note {
    display: flex;
  }

  .sasa-hall.is-direct .sasa-game-detail h2 {
    font-size: 30px;
  }

  .sasa-hall.is-direct .sasa-launch-button {
    margin-top: 20px;
  }
}

@media (max-height: 680px) {
  .sasa-hall__header {
    height: 58px;
  }

  .sasa-hall__main {
    height: calc(100svh - 58px);
  }

  .sasa-catalog {
    padding-top: 20px;
  }

  .sasa-game-detail__media {
    aspect-ratio: 1.7 / 1;
  }

  .sasa-game-detail__body {
    padding-bottom: 18px;
  }

  .sasa-game-facts {
    margin: 14px 0;
  }
}

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

@keyframes sasa-fish-cross {
  0%, 100% { transform: translate(-14px, 6px) rotate(-2deg); }
  50% { transform: translate(18px, -8px) rotate(3deg); }
}

@keyframes sasa-fish-cross-reverse {
  0%, 100% { transform: translate(18px, -5px) scaleX(-1); }
  50% { transform: translate(-18px, 8px) scaleX(-1); }
}

@keyframes sasa-bubble-rise {
  0% { opacity: 0; transform: translateY(18px) scale(0.55); }
  22% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-112px) scale(1.2); }
}

@keyframes sasa-reel-pulse {
  from { transform: translateY(-8px); }
  to { transform: translateY(8px); }
}

@keyframes sasa-card-deal {
  0%, 100% { margin-top: 10px; }
  50% { margin-top: -8px; }
}

@keyframes sasa-race-light {
  0%, 100% { opacity: 0.32; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes sasa-race-car {
  0%, 100% { transform: translateX(-56px) skewX(-5deg); }
  50% { transform: translateX(56px) skewX(5deg); }
}

/* 统一游戏启动、横屏引导与连接失败的视觉系统。 */
.sasa-game-loading {
  padding: clamp(14px, 3vw, 32px);
  isolation: isolate;
  background: #04131b;
}

.sasa-game-loading.is-visible {
  display: grid;
  place-items: center;
}

.sasa-game-loading__backdrop {
  inset: -20px;
  opacity: 0.34;
  filter: saturate(0.82) contrast(1.04);
  transform: scale(1.05);
}

.sasa-game-loading__backdrop::after {
  background:
    linear-gradient(90deg, rgba(3, 16, 24, 0.96), rgba(3, 19, 28, 0.72) 50%, rgba(3, 16, 24, 0.96)),
    linear-gradient(180deg, rgba(4, 19, 27, 0.52), rgba(4, 16, 23, 0.9));
}

.sasa-game-loading__ambient,
.sasa-game-error__ambient,
.sasa-orientation__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sasa-game-loading__ambient::before,
.sasa-game-loading__ambient::after,
.sasa-game-error__ambient::before,
.sasa-game-error__ambient::after,
.sasa-orientation__ambient::before,
.sasa-orientation__ambient::after {
  position: absolute;
  border: 1px solid rgba(103, 229, 211, 0.13);
  border-radius: 50%;
  content: "";
}

.sasa-game-loading__ambient::before,
.sasa-game-error__ambient::before,
.sasa-orientation__ambient::before {
  top: -22vw;
  left: -13vw;
  width: 52vw;
  height: 52vw;
  box-shadow: 0 0 90px rgba(40, 210, 185, 0.08), inset 0 0 80px rgba(40, 210, 185, 0.04);
}

.sasa-game-loading__ambient::after,
.sasa-game-error__ambient::after,
.sasa-orientation__ambient::after {
  right: -18vw;
  bottom: -30vw;
  width: 62vw;
  height: 62vw;
  border-color: rgba(75, 154, 223, 0.1);
  box-shadow: inset 0 0 110px rgba(48, 130, 202, 0.06);
}

.sasa-game-loading__ambient > span {
  position: absolute;
  bottom: -24px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(193, 244, 239, 0.32);
  border-radius: 50%;
  animation: sasa-launch-bubble 5.6s linear infinite;
}

.sasa-game-loading__ambient > span:nth-child(1) { left: 12%; animation-delay: -1.1s; }
.sasa-game-loading__ambient > span:nth-child(2) { left: 29%; width: 12px; height: 12px; animation-delay: -4.2s; }
.sasa-game-loading__ambient > span:nth-child(3) { left: 55%; width: 9px; height: 9px; animation-delay: -2.6s; }
.sasa-game-loading__ambient > span:nth-child(4) { left: 74%; width: 14px; height: 14px; animation-delay: -0.4s; }
.sasa-game-loading__ambient > span:nth-child(5) { left: 89%; animation-delay: -3.4s; }

.sasa-game-loading__panel,
.sasa-game-error__panel,
.sasa-orientation__panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(133, 214, 211, 0.18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(10, 34, 44, 0.96), rgba(6, 24, 33, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.sasa-game-loading__panel {
  display: grid;
  width: min(960px, calc(100vw - 32px));
  height: min(520px, calc(100dvh - 28px));
  min-height: 350px;
  grid-template-rows: 66px minmax(0, 1fr) 50px;
}

.sasa-launch-brand {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  padding: 0 24px;
  border-bottom: 1px solid rgba(135, 204, 207, 0.12);
  background: rgba(5, 24, 32, 0.56);
  align-items: center;
}

.sasa-launch-brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(109, 239, 213, 0.52);
  border-radius: 10px;
  color: #04221d;
  background: linear-gradient(145deg, #72efd2, #38c9ae);
  box-shadow: 0 8px 22px rgba(28, 197, 164, 0.18);
  font-size: 17px;
  font-weight: 900;
  place-items: center;
}

.sasa-launch-brand__name {
  display: flex;
  min-width: 0;
  margin-left: 11px;
  flex-direction: column;
}

.sasa-launch-brand__name strong {
  color: #f4faf9;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.sasa-launch-brand__name small {
  margin-top: 4px;
  color: #789198;
  font-size: 9px;
}

.sasa-launch-brand__state {
  display: inline-flex;
  height: 28px;
  margin-left: auto;
  padding: 0 11px;
  border: 1px solid rgba(68, 214, 172, 0.2);
  border-radius: 14px;
  color: #99d8c6;
  background: rgba(42, 155, 126, 0.1);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  align-items: center;
  gap: 7px;
}

.sasa-launch-brand__state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #54d8ad;
  box-shadow: 0 0 0 4px rgba(84, 216, 173, 0.1);
}

.sasa-launch-brand__state.is-warning {
  border-color: rgba(247, 187, 91, 0.24);
  color: #f3c878;
  background: rgba(201, 133, 28, 0.09);
}

.sasa-launch-brand__state.is-warning i {
  background: #f4ba58;
  box-shadow: 0 0 0 4px rgba(244, 186, 88, 0.1);
}

.sasa-game-loading__body {
  position: relative;
  display: grid;
  min-height: 0;
  padding: 26px 50px 22px;
  align-items: center;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 48px;
}

.sasa-game-loading__body::before {
  position: absolute;
  top: 9%;
  left: 26%;
  width: 1px;
  height: 82%;
  background: linear-gradient(transparent, rgba(115, 192, 196, 0.16), transparent);
  content: "";
}

.sasa-loading-art {
  position: relative;
  display: grid;
  height: 214px;
  place-items: center;
}

.sasa-loading-art__halo {
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(95, 229, 211, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(39, 211, 184, 0.1), inset 0 0 42px rgba(39, 211, 184, 0.04);
  animation: sasa-launch-halo 2.8s ease-in-out infinite;
}

.sasa-loading-art__halo::before,
.sasa-loading-art__halo::after {
  position: absolute;
  inset: 17px;
  border: 1px dashed rgba(112, 226, 211, 0.2);
  border-radius: 50%;
  content: "";
  animation: sasa-launch-orbit 14s linear infinite;
}

.sasa-loading-art__halo::after {
  inset: 32px;
  border-style: solid;
  border-color: rgba(103, 181, 211, 0.1);
  animation-direction: reverse;
  animation-duration: 9s;
}

.sasa-loading-art__frame {
  position: relative;
  width: 142px;
  height: 142px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(151, 228, 216, 0.3);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(28, 72, 80, 0.88), rgba(7, 29, 38, 0.94));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sasa-loading-art__frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: rgba(6, 27, 36, 0.86);
  object-fit: cover;
}

.sasa-loading-art__frame.is-icon img {
  padding: 5px;
  background:
    radial-gradient(circle at 50% 42%, rgba(67, 166, 173, 0.2), transparent 58%),
    rgba(5, 25, 34, 0.9);
  object-fit: contain;
}

.sasa-loading-art__shine {
  position: absolute;
  top: -55%;
  left: -72%;
  width: 48%;
  height: 210%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: rotate(18deg);
  animation: sasa-launch-shine 2.8s ease-in-out infinite;
}

.sasa-loading-art__badge {
  position: absolute;
  bottom: 0;
  display: inline-flex;
  min-height: 27px;
  padding: 0 12px;
  border: 1px solid rgba(90, 224, 201, 0.28);
  border-radius: 14px;
  color: #a8e2d8;
  background: rgba(7, 32, 40, 0.94);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
  font-size: 10px;
  font-weight: 700;
  align-items: center;
}

.sasa-game-loading__copy {
  width: auto;
  min-width: 0;
  text-align: left;
}

.sasa-game-loading__copy p {
  margin: 0;
}

.sasa-loading-kicker,
.sasa-game-loading__copy > p:first-child {
  display: inline-flex;
  color: #70dbc8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  align-items: center;
  gap: 8px;
}

.sasa-loading-kicker > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #56dec0;
  box-shadow: 0 0 0 5px rgba(86, 222, 192, 0.09), 0 0 20px rgba(86, 222, 192, 0.28);
  animation: sasa-launch-pulse 1.6s ease-in-out infinite;
}

.sasa-game-loading__copy h2 {
  margin: 11px 0 7px;
  color: #f4faf9;
  font-size: clamp(25px, 3.2vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.sasa-loading-message,
.sasa-game-loading__copy > p:nth-of-type(2) {
  color: #b6c8cb;
  font-size: 13px;
  line-height: 1.6;
}

.sasa-loading-detail {
  min-height: 20px;
  margin-top: 1px !important;
  color: #708b92;
  font-size: 10px;
  line-height: 1.6;
}

.sasa-loading-steps {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sasa-loading-steps > span {
  position: relative;
  display: flex;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(130, 178, 184, 0.12);
  border-radius: 10px;
  color: #6f888f;
  background: rgba(9, 29, 37, 0.68);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
}

.sasa-loading-steps i {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid rgba(137, 177, 182, 0.22);
  border-radius: 50%;
  color: #668087;
  font-size: 9px;
  font-style: normal;
  place-items: center;
}

.sasa-loading-steps > span.is-current {
  border-color: rgba(85, 218, 192, 0.28);
  color: #c6e8e2;
  background: rgba(47, 156, 137, 0.1);
}

.sasa-loading-steps > span.is-current i {
  border-color: #58d8bf;
  color: #06241f;
  background: #58d8bf;
  box-shadow: 0 0 0 4px rgba(88, 216, 191, 0.09);
}

.sasa-loading-steps > span.is-complete {
  color: #88aca7;
}

.sasa-loading-steps > span.is-complete i {
  border-color: rgba(84, 208, 171, 0.3);
  color: #69d3b0;
  background: rgba(57, 165, 132, 0.1);
}

.sasa-loading-progress-row {
  display: flex;
  margin-top: 20px;
  color: #748c92;
  font-size: 10px;
  align-items: center;
  justify-content: space-between;
}

.sasa-loading-progress-row strong {
  color: #b8ded8;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.sasa-loading-track {
  width: 100%;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(128, 193, 195, 0.1);
  border-radius: 5px;
  background: rgba(2, 14, 20, 0.58);
}

.sasa-loading-track > span {
  position: relative;
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2eb89f, #64e4cb);
  box-shadow: 0 0 18px rgba(75, 220, 194, 0.44);
  transition: width 180ms ease;
}

.sasa-loading-track > span::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
  content: "";
  animation: sasa-progress-glow 1.25s ease-in-out infinite;
}

.sasa-game-loading__footer {
  display: flex;
  padding: 0 24px;
  border-top: 1px solid rgba(135, 204, 207, 0.1);
  color: #728b91;
  background: rgba(4, 19, 27, 0.42);
  font-size: 9px;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.sasa-game-loading__footer span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sasa-game-loading__footer i {
  display: grid;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #64d2b5;
  background: rgba(73, 183, 151, 0.1);
  font-size: 9px;
  font-style: normal;
  place-items: center;
}

.sasa-game-error {
  position: fixed;
  inset: 0;
  z-index: 33000;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(16px, 4vw, 34px);
  isolation: isolate;
  color: var(--sasa-text);
  background:
    radial-gradient(circle at 50% 32%, rgba(39, 175, 157, 0.11), transparent 34%),
    linear-gradient(145deg, #061820, #06131a 62%, #071a20);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  place-items: center;
}

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

.sasa-game-error__panel {
  width: min(720px, calc(100vw - 32px));
}

.sasa-game-error__content {
  display: flex;
  padding: 32px 34px 34px;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.sasa-game-error__icon {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 19px;
  border: 1px solid rgba(247, 187, 91, 0.3);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(162, 102, 17, 0.16), rgba(58, 49, 31, 0.12));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  place-items: center;
}

.sasa-game-error__icon::before,
.sasa-game-error__icon::after {
  position: absolute;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: #f3bc5d;
  content: "";
}

.sasa-game-error__icon::before { transform: rotate(45deg); }
.sasa-game-error__icon::after { transform: rotate(-45deg); }

.sasa-game-error__icon i {
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(247, 187, 91, 0.08);
  border-radius: 29px;
}

.sasa-game-error__eyebrow {
  margin: 0 0 8px;
  color: #d6a758;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.sasa-game-error__content h2 {
  margin: 0;
  color: #f7faf9;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.2;
}

.sasa-game-error__message {
  max-width: 500px;
  margin: 10px 0 0;
  color: #a7bcc0;
  font-size: 13px;
  line-height: 1.7;
}

.sasa-game-error__code {
  display: flex;
  min-width: min(100%, 390px);
  min-height: 44px;
  margin-top: 22px;
  padding: 0 15px;
  border: 1px solid rgba(134, 180, 184, 0.13);
  border-radius: 10px;
  color: #718b91;
  background: rgba(3, 17, 23, 0.46);
  font-size: 9px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sasa-game-error__code strong {
  overflow: hidden;
  color: #b3c5c8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sasa-game-error__actions {
  display: flex;
  width: min(100%, 390px);
  margin-top: 18px;
  gap: 10px;
}

.sasa-game-error__actions button {
  display: inline-flex;
  min-width: 0;
  height: 44px;
  flex: 1;
  border: 1px solid rgba(133, 190, 193, 0.18);
  border-radius: 11px;
  color: #c3d3d5;
  background: rgba(12, 39, 48, 0.78);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.sasa-game-error__actions button:hover,
.sasa-game-error__actions button:focus-visible {
  border-color: rgba(100, 222, 199, 0.5);
  outline: 0;
  transform: translateY(-1px);
}

.sasa-game-error__actions button.is-primary {
  border-color: rgba(103, 231, 207, 0.5);
  color: #05241e;
  background: linear-gradient(135deg, #74ecd1, #3bc8ae);
  box-shadow: 0 12px 26px rgba(28, 181, 152, 0.16);
}

.sasa-game-error__content > small {
  margin-top: 15px;
  color: #617b82;
  font-size: 9px;
}

.sasa-launch-error-mode .sasa-hall,
.sasa-launch-error-mode .sasa-game-loading,
.sasa-launch-error-mode .sasa-orientation,
.sasa-launch-error-mode .sasa-launch-required,
.sasa-launch-error-mode #GameDiv {
  display: none !important;
}

@media (orientation: portrait) and (max-width: 900px) {
  .sasa-session-active .sasa-orientation {
    padding:
      max(16px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
    isolation: isolate;
    background:
      radial-gradient(circle at 50% 25%, rgba(44, 203, 180, 0.15), transparent 34%),
      linear-gradient(165deg, #061b23, #06131a 58%, #071b21);
  }

  .sasa-orientation__panel {
    display: grid;
    width: min(430px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    grid-template-rows: 66px minmax(0, 1fr);
  }

  .sasa-orientation__content {
    display: flex;
    min-height: 0;
    padding: clamp(25px, 6vh, 48px) 27px 28px;
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .sasa-orientation__visual {
    position: relative;
    display: grid;
    width: 150px;
    height: 112px;
    margin-bottom: 13px;
    place-items: center;
  }

  .sasa-orientation__device {
    position: relative;
    width: 92px;
    height: 52px;
    margin: 0;
    border: 2px solid #67dfc8;
    border-radius: 13px;
    background: rgba(7, 35, 43, 0.7);
    box-shadow: 0 0 0 9px rgba(60, 205, 181, 0.05), 0 16px 32px rgba(0, 0, 0, 0.26);
    animation: sasa-landscape-device 2.8s cubic-bezier(0.45, 0, 0.25, 1) infinite;
  }

  .sasa-orientation__device::before {
    position: absolute;
    top: 50%;
    right: 5px;
    width: 4px;
    height: 4px;
    margin-top: -2px;
    border-radius: 50%;
    background: #67dfc8;
    content: "";
  }

  .sasa-orientation__device i {
    position: absolute;
    inset: 7px 12px 7px 8px;
    overflow: hidden;
    border-radius: 6px;
    background:
      radial-gradient(circle at 72% 38%, rgba(113, 239, 215, 0.45), transparent 18%),
      linear-gradient(145deg, #0e5263, #0d2d3a 72%);
  }

  .sasa-orientation__device i::after {
    position: absolute;
    right: -4px;
    bottom: -10px;
    left: -4px;
    height: 28px;
    border-radius: 50% 50% 0 0;
    background: #166257;
    content: "";
    transform: rotate(-4deg);
  }

  .sasa-orientation__rotate {
    position: absolute;
    right: 13px;
    bottom: 3px;
    display: grid;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(97, 221, 197, 0.25);
    border-radius: 50%;
    color: #76d9c6;
    background: #0a2933;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
    font-size: 17px;
    place-items: center;
  }

  .sasa-orientation__eyebrow {
    margin: 0 0 8px;
    color: #66d8c1;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.12em;
  }

  .sasa-orientation__content > strong {
    color: #f4faf9;
    font-size: clamp(24px, 6vw, 30px);
    line-height: 1.25;
  }

  #SasaOrientationMessage {
    margin-top: 10px;
    color: #91a9ae;
    font-size: 13px;
    line-height: 1.7;
  }

  .sasa-orientation__features {
    display: flex;
    margin-top: 20px;
    color: #8ba8a7;
    font-size: 10px;
    gap: 18px;
  }

  .sasa-orientation__features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .sasa-orientation__features i {
    color: #61d7bc;
    font-style: normal;
  }

  .sasa-orientation__button {
    display: inline-flex;
    width: min(100%, 300px);
    min-height: 50px;
    margin-top: 24px;
    border: 1px solid rgba(103, 231, 207, 0.55);
    border-radius: 13px;
    color: #05231e;
    background: linear-gradient(135deg, #75edd2, #38c6ac);
    box-shadow: 0 14px 30px rgba(29, 183, 153, 0.2);
    font: 750 14px/1 Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
    align-items: center;
    justify-content: center;
    gap: 9px;
  }

  .sasa-orientation__content > small {
    max-width: 310px;
    margin-top: 14px;
    color: #5f7980;
    font-size: 9px;
    line-height: 1.6;
  }

  .sasa-game-error__panel {
    width: min(430px, calc(100vw - 32px));
  }

  .sasa-game-error__content {
    padding: 28px 22px 26px;
  }

  .sasa-game-error__actions {
    flex-direction: column;
  }

  .sasa-game-error__actions button {
    flex: 0 0 46px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .sasa-game-loading {
    padding: 10px;
  }

  .sasa-game-loading__panel {
    width: min(920px, calc(100vw - 20px));
    height: calc(100dvh - 20px);
    min-height: 320px;
    grid-template-rows: 56px minmax(0, 1fr) 42px;
  }

  .sasa-launch-brand {
    padding: 0 20px;
  }

  .sasa-launch-brand__mark {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    font-size: 15px;
  }

  .sasa-game-loading__body {
    padding: 16px 38px 14px;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 38px;
  }

  .sasa-game-loading__body::before {
    left: 25%;
  }

  .sasa-loading-art {
    height: 188px;
  }

  .sasa-loading-art__halo {
    width: 178px;
    height: 178px;
  }

  .sasa-loading-art__frame {
    width: 124px;
    height: 124px;
    border-radius: 29px;
  }

  .sasa-loading-art__frame img {
    border-radius: 21px;
  }

  .sasa-game-loading__copy h2 {
    margin-top: 8px;
    font-size: clamp(23px, 3vw, 29px);
  }

  .sasa-loading-steps,
  .sasa-loading-progress-row {
    margin-top: 14px;
  }

  .sasa-loading-steps > span {
    height: 34px;
  }

  .sasa-game-loading__footer {
    gap: 28px;
  }

  .sasa-game-error__panel {
    width: min(680px, calc(100vw - 24px));
  }

  .sasa-game-error__content {
    padding: 20px 30px 22px;
  }

  .sasa-game-error__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border-radius: 18px;
  }

  .sasa-game-error__code {
    margin-top: 15px;
  }

  .sasa-game-error__actions {
    margin-top: 12px;
  }
}

@media (orientation: portrait) and (max-height: 680px) {
  .sasa-orientation__panel {
    grid-template-rows: 58px minmax(0, 1fr);
  }

  .sasa-orientation__content {
    padding: 19px 24px 20px;
  }

  .sasa-orientation__visual {
    height: 86px;
    margin-bottom: 5px;
    transform: scale(0.82);
  }

  .sasa-orientation__features {
    margin-top: 13px;
  }

  .sasa-orientation__button {
    min-height: 46px;
    margin-top: 16px;
  }

  .sasa-orientation__content > small {
    margin-top: 9px;
  }
}

@keyframes sasa-launch-bubble {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  18% { opacity: 0.52; }
  100% { opacity: 0; transform: translateY(-112vh) scale(1.18); }
}

@keyframes sasa-launch-halo {
  0%, 100% { opacity: 0.62; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes sasa-launch-orbit {
  to { transform: rotate(360deg); }
}

@keyframes sasa-launch-shine {
  0%, 24% { left: -72%; }
  68%, 100% { left: 136%; }
}

@keyframes sasa-launch-pulse {
  0%, 100% { opacity: 0.56; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes sasa-progress-glow {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}

@keyframes sasa-landscape-device {
  0%, 18% { transform: rotate(90deg) scale(0.88); }
  50%, 86%, 100% { transform: rotate(0deg) scale(1); }
}

/* 玩家进入游戏时使用的沉浸式欢迎、加载、横屏和友好失败场景。 */
#SasaGameLoading,
#SasaGameError,
#SasaOrientationNotice {
  --launch-image: url("assets/ocean-arena.jpg");
  --launch-accent: #57f0cf;
  --launch-accent-soft: rgba(87, 240, 207, 0.22);
  --launch-shadow: rgba(9, 225, 191, 0.38);
  --launch-overlay: rgba(2, 15, 29, 0.72);
}

#SasaGameLoading[data-theme="orchard"],
#SasaGameError[data-theme="orchard"],
#SasaOrientationNotice[data-theme="orchard"] {
  --launch-image:
    radial-gradient(circle at 50% 34%, rgba(255, 219, 111, 0.25), transparent 27%),
    radial-gradient(circle at 15% 88%, rgba(205, 42, 112, 0.46), transparent 34%),
    linear-gradient(145deg, #031b19 0%, #075b50 46%, #2a0b35 100%);
  --launch-accent: #ffe27a;
  --launch-accent-soft: rgba(255, 211, 95, 0.24);
  --launch-shadow: rgba(255, 187, 69, 0.38);
  --launch-overlay: rgba(10, 31, 20, 0.66);
}

#SasaGameLoading[data-theme="poker"],
#SasaGameError[data-theme="poker"],
#SasaOrientationNotice[data-theme="poker"] {
  --launch-image: url("assets/royal-poker-room.png");
  --launch-accent: #f3d58c;
  --launch-accent-soft: rgba(243, 213, 140, 0.22);
  --launch-shadow: rgba(235, 180, 71, 0.34);
  --launch-overlay: rgba(25, 7, 10, 0.72);
}

#SasaGameLoading[data-theme="water_margin"],
#SasaGameError[data-theme="water_margin"],
#SasaOrientationNotice[data-theme="water_margin"] {
  --launch-image: url("assets/water-margin.png");
  --launch-accent: #ffd768;
  --launch-accent-soft: rgba(255, 196, 75, 0.24);
  --launch-shadow: rgba(255, 166, 53, 0.4);
  --launch-overlay: rgba(32, 9, 5, 0.7);
}

#SasaGameLoading[data-theme="racing"],
#SasaGameError[data-theme="racing"],
#SasaOrientationNotice[data-theme="racing"] {
  --launch-image: url("assets/speed-arena.png");
  --launch-accent: #77e9ff;
  --launch-accent-soft: rgba(83, 211, 255, 0.22);
  --launch-shadow: rgba(56, 175, 255, 0.4);
  --launch-overlay: rgba(3, 11, 29, 0.72);
}

#SasaGameLoading[data-theme="dragon_tiger"],
#SasaGameError[data-theme="dragon_tiger"],
#SasaOrientationNotice[data-theme="dragon_tiger"] {
  --launch-image: url("assets/dragon-tiger.png");
  --launch-accent: #ffcf65;
  --launch-accent-soft: rgba(255, 195, 74, 0.23);
  --launch-shadow: rgba(255, 139, 42, 0.42);
  --launch-overlay: rgba(32, 7, 5, 0.72);
}

#SasaGameLoading[data-theme="gold_shark"],
#SasaGameError[data-theme="gold_shark"],
#SasaOrientationNotice[data-theme="gold_shark"] {
  --launch-image: url("assets/gold-shark.png");
  --launch-accent: #ffe07a;
  --launch-accent-soft: rgba(255, 206, 84, 0.24);
  --launch-shadow: rgba(255, 171, 33, 0.42);
  --launch-overlay: rgba(24, 10, 2, 0.7);
}

#SasaGameLoading[data-theme="lucky_lion"],
#SasaGameError[data-theme="lucky_lion"],
#SasaOrientationNotice[data-theme="lucky_lion"] {
  --launch-image: url("assets/lucky-lion.png");
  --launch-accent: #ffd56a;
  --launch-accent-soft: rgba(255, 197, 68, 0.24);
  --launch-shadow: rgba(255, 152, 45, 0.4);
  --launch-overlay: rgba(28, 5, 25, 0.7);
}

#SasaGameLoading[data-theme="mermaid"],
#SasaGameError[data-theme="mermaid"],
#SasaOrientationNotice[data-theme="mermaid"] {
  --launch-image: url("assets/mermaid-sea.png");
  --launch-accent: #61f1e1;
  --launch-accent-soft: rgba(76, 231, 223, 0.24);
  --launch-shadow: rgba(29, 218, 215, 0.4);
  --launch-overlay: rgba(1, 16, 39, 0.67);
}

#SasaGameLoading[data-theme="golden_toad"],
#SasaGameError[data-theme="golden_toad"],
#SasaOrientationNotice[data-theme="golden_toad"] {
  --launch-image: url("assets/golden-toad-reef.png");
  --launch-accent: #ffe278;
  --launch-accent-soft: rgba(255, 215, 89, 0.24);
  --launch-shadow: rgba(255, 178, 45, 0.42);
  --launch-overlay: rgba(2, 21, 39, 0.68);
}

#SasaGameLoading[data-theme="li_kui"],
#SasaGameError[data-theme="li_kui"],
#SasaOrientationNotice[data-theme="li_kui"] {
  --launch-image: url("assets/li-kui-sea.png");
  --launch-accent: #ffcf66;
  --launch-accent-soft: rgba(255, 194, 62, 0.24);
  --launch-shadow: rgba(255, 135, 35, 0.42);
  --launch-overlay: rgba(2, 16, 37, 0.7);
}

#SasaGameLoading[data-theme="money_tree"],
#SasaGameError[data-theme="money_tree"],
#SasaOrientationNotice[data-theme="money_tree"] {
  --launch-image: url("assets/money-tree-sea.png");
  --launch-accent: #ffdb64;
  --launch-accent-soft: rgba(255, 204, 67, 0.24);
  --launch-shadow: rgba(255, 152, 42, 0.42);
  --launch-overlay: rgba(1, 20, 38, 0.69);
}

#SasaGameLoading[data-theme="havoc_heaven"],
#SasaGameError[data-theme="havoc_heaven"],
#SasaOrientationNotice[data-theme="havoc_heaven"] {
  --launch-image: url("assets/havoc-heaven-sea.png");
  --launch-accent: #ffd46b;
  --launch-accent-soft: rgba(255, 190, 62, 0.24);
  --launch-shadow: rgba(255, 121, 42, 0.42);
  --launch-overlay: rgba(4, 15, 36, 0.69);
}

#SasaGameLoading[data-theme="demon_king"],
#SasaGameError[data-theme="demon_king"],
#SasaOrientationNotice[data-theme="demon_king"] {
  --launch-image: url("assets/demon-king-sea.png");
  --launch-accent: #ffcf63;
  --launch-accent-soft: rgba(255, 182, 50, 0.24);
  --launch-shadow: rgba(255, 96, 37, 0.44);
  --launch-overlay: rgba(4, 10, 31, 0.71);
}

#SasaGameLoading[data-theme="single_challenge"],
#SasaGameError[data-theme="single_challenge"],
#SasaOrientationNotice[data-theme="single_challenge"] {
  --launch-image: url("assets/single-challenge-scene.png");
  --launch-accent: #ffda78;
  --launch-accent-soft: rgba(255, 207, 91, 0.24);
  --launch-shadow: rgba(255, 164, 45, 0.4);
  --launch-overlay: rgba(22, 6, 14, 0.72);
}

.sasa-game-loading,
.sasa-game-error {
  padding:
    max(18px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
  color: #fff;
  background: #031321;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.sasa-player-backdrop {
  position: absolute;
  inset: -2.5%;
  z-index: 0;
  background-image: var(--launch-image);
  background-position: center;
  background-size: cover;
  opacity: 1;
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.05);
}

#SasaGameLoading .sasa-player-backdrop::before,
#SasaGameLoading .sasa-player-backdrop::after,
#SasaGameError .sasa-player-backdrop::before,
#SasaGameError .sasa-player-backdrop::after,
#SasaOrientationNotice .sasa-player-backdrop::before,
#SasaOrientationNotice .sasa-player-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
}

#SasaGameLoading .sasa-player-backdrop::before,
#SasaGameError .sasa-player-backdrop::before,
#SasaOrientationNotice .sasa-player-backdrop::before {
  background:
    radial-gradient(circle at 32% 46%, transparent 0, rgba(3, 18, 31, 0.08) 31%, rgba(3, 15, 28, 0.62) 76%),
    linear-gradient(90deg, rgba(1, 10, 22, 0.52), transparent 48%, rgba(1, 10, 22, 0.38));
}

#SasaGameLoading .sasa-player-backdrop::after,
#SasaGameError .sasa-player-backdrop::after,
#SasaOrientationNotice .sasa-player-backdrop::after {
  background:
    linear-gradient(180deg, rgba(1, 9, 19, 0.42), transparent 27%, rgba(1, 8, 18, 0.64)),
    var(--launch-overlay);
  mix-blend-mode: multiply;
}

.sasa-player-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.sasa-player-atmosphere::before {
  position: absolute;
  top: 13%;
  left: 18%;
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--launch-accent-soft), transparent 67%);
  filter: blur(16px);
  content: "";
  animation: sasa-player-breathe 4.6s ease-in-out infinite;
}

.sasa-player-atmosphere > span {
  position: absolute;
  bottom: -18px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--launch-shadow);
  animation: sasa-player-particle 6.8s linear infinite;
}

.sasa-player-atmosphere > span:nth-child(1) { left: 9%; animation-delay: -1.2s; }
.sasa-player-atmosphere > span:nth-child(2) { left: 24%; width: 11px; height: 11px; animation-delay: -4.8s; }
.sasa-player-atmosphere > span:nth-child(3) { left: 43%; animation-delay: -3.1s; }
.sasa-player-atmosphere > span:nth-child(4) { left: 62%; width: 9px; height: 9px; animation-delay: -5.7s; }
.sasa-player-atmosphere > span:nth-child(5) { left: 78%; animation-delay: -2.2s; }
.sasa-player-atmosphere > span:nth-child(6) { left: 91%; width: 12px; height: 12px; animation-delay: -0.5s; }

.sasa-player-brand {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  left: max(26px, env(safe-area-inset-left));
  z-index: 4;
  display: inline-flex;
  color: #fff;
  align-items: center;
  gap: 11px;
}

.sasa-player-brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 10px 34px var(--launch-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  place-items: center;
}

.sasa-player-brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.sasa-player-brand strong {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.sasa-player-brand small {
  margin-top: 4px;
  color: rgba(235, 250, 250, 0.67);
  font-size: 9px;
  line-height: 1;
}

.sasa-player-entry {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1050px, calc(100vw - 86px));
  min-height: min(520px, calc(100dvh - 110px));
  align-items: center;
  grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(42px, 7vw, 92px);
}

.sasa-player-art {
  position: relative;
  display: grid;
  width: min(38vw, 430px);
  height: min(38vw, 430px);
  justify-self: end;
  place-items: center;
}

.sasa-player-art__glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--launch-accent-soft), transparent 68%);
  box-shadow: 0 0 110px var(--launch-shadow);
  animation: sasa-player-breathe 3.4s ease-in-out infinite;
}

.sasa-player-art__orbit {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 42px var(--launch-accent-soft);
  animation: sasa-player-orbit 18s linear infinite;
}

.sasa-player-art__orbit::before,
.sasa-player-art__orbit::after {
  position: absolute;
  border-radius: 50%;
  background: var(--launch-accent);
  box-shadow: 0 0 20px var(--launch-shadow);
  content: "";
}

.sasa-player-art__orbit::before {
  top: 18%;
  right: -4px;
  width: 8px;
  height: 8px;
}

.sasa-player-art__orbit::after {
  bottom: 8%;
  left: 7%;
  width: 5px;
  height: 5px;
}

.sasa-player-art__frame {
  position: relative;
  display: grid;
  width: min(24vw, 280px);
  height: min(24vw, 280px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 32%;
  background: rgba(3, 18, 31, 0.38);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38), 0 0 55px var(--launch-accent-soft);
  place-items: center;
  animation: sasa-player-float 3.8s ease-in-out infinite;
}

.sasa-player-art__frame.is-scene {
  width: min(38vw, 430px);
  height: min(25vw, 282px);
  border-radius: 24px;
}

.sasa-player-art__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.34));
}

.sasa-player-art__frame.is-scene img {
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.sasa-player-art__shine {
  position: absolute;
  top: -80%;
  left: -76%;
  width: 35%;
  height: 250%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: rotate(20deg);
  animation: sasa-player-shine 3.2s ease-in-out infinite;
}

.sasa-player-art__badge {
  position: absolute;
  bottom: 10%;
  display: inline-flex;
  min-height: 30px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  color: #fff;
  background: rgba(3, 18, 31, 0.54);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 750;
  align-items: center;
}

.sasa-player-entry__copy {
  min-width: 0;
  max-width: 470px;
  text-align: left;
}

.sasa-player-kicker {
  margin: 0;
  color: var(--launch-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: 0 0 20px var(--launch-shadow);
}

.sasa-player-entry__copy h2,
.sasa-player-error h2,
.sasa-player-rotate h2 {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.46);
}

.sasa-player-entry__copy h2 {
  white-space: nowrap;
}

.sasa-player-entry__english {
  margin: 11px 0 0;
  color: rgba(235, 249, 249, 0.52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.sasa-player-entry__message {
  max-width: 420px;
  margin: 22px 0 0;
  color: rgba(241, 250, 250, 0.8);
  font-size: 15px;
  line-height: 1.7;
}

.sasa-player-loader {
  width: min(100%, 430px);
  margin-top: 38px;
  transition: opacity 360ms ease, transform 360ms ease;
}

.sasa-game-loading[data-stage="welcome"] .sasa-player-loader {
  opacity: 0;
  transform: translateY(8px);
}

.sasa-player-loader__track {
  position: relative;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.28);
}

.sasa-player-loader__track > span {
  position: relative;
  display: block;
  width: 6%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #effffb, var(--launch-accent));
  box-shadow: 0 0 22px var(--launch-shadow);
  transition: width 210ms ease;
}

.sasa-player-loader__track > span::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9));
  content: "";
  animation: sasa-player-progress 1.2s ease-in-out infinite;
}

.sasa-player-loader__meta {
  display: flex;
  margin-top: 12px;
  color: rgba(235, 248, 248, 0.68);
  font-size: 11px;
  align-items: center;
}

.sasa-player-loader__meta strong {
  margin-left: auto;
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.sasa-player-loader__dots {
  display: inline-flex;
  margin-right: 9px;
  gap: 4px;
}

.sasa-player-loader__dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--launch-accent);
  animation: sasa-player-dot 1.05s ease-in-out infinite;
}

.sasa-player-loader__dots i:nth-child(2) { animation-delay: 140ms; }
.sasa-player-loader__dots i:nth-child(3) { animation-delay: 280ms; }

.sasa-player-wish {
  position: absolute;
  right: 0;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 0;
  z-index: 3;
  margin: 0;
  color: rgba(237, 249, 249, 0.55);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
}

.sasa-game-loading.is-visible .sasa-player-entry__copy {
  animation: sasa-player-copy-in 620ms cubic-bezier(0.22, 0.9, 0.32, 1) both;
}

.sasa-game-loading.is-visible .sasa-player-art {
  animation: sasa-player-art-in 720ms cubic-bezier(0.22, 0.9, 0.32, 1) both;
}

.sasa-game-error {
  z-index: 33000;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  place-items: center;
}

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

.sasa-player-error {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(520px, calc(100vw - 44px));
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.sasa-player-error__art {
  position: relative;
  display: grid;
  width: 156px;
  height: 156px;
  margin-bottom: 26px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 42px;
  background: rgba(4, 20, 32, 0.48);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), 0 0 48px var(--launch-accent-soft);
  backdrop-filter: blur(14px);
  place-items: center;
}

.sasa-player-error__art img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  opacity: 0.58;
  filter: saturate(0.68);
}

.sasa-player-error__art.is-scene img {
  object-fit: cover;
}

.sasa-player-error__cloud {
  position: absolute;
  right: -12px;
  bottom: -10px;
  width: 74px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 25px;
  background: rgba(11, 33, 46, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.sasa-player-error__cloud::before,
.sasa-player-error__cloud::after {
  position: absolute;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.sasa-player-error__cloud::before { top: -16px; left: 13px; width: 34px; height: 34px; }
.sasa-player-error__cloud::after { top: -10px; right: 9px; width: 25px; height: 25px; }

.sasa-player-error__cloud i {
  position: absolute;
  bottom: -12px;
  width: 3px;
  height: 9px;
  border-radius: 2px;
  background: var(--launch-accent);
  opacity: 0.72;
  transform: rotate(18deg);
}

.sasa-player-error__cloud i:nth-child(1) { left: 18px; }
.sasa-player-error__cloud i:nth-child(2) { left: 35px; animation: sasa-player-rain 1s ease-in-out infinite; }
.sasa-player-error__cloud i:nth-child(3) { left: 52px; animation: sasa-player-rain 1s 300ms ease-in-out infinite; }

.sasa-player-error h2 {
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 48px);
}

.sasa-player-error > p:not(.sasa-player-kicker) {
  max-width: 430px;
  margin: 17px 0 0;
  color: rgba(239, 249, 249, 0.76);
  font-size: 14px;
  line-height: 1.75;
}

.sasa-player-error__actions {
  display: flex;
  width: min(100%, 410px);
  margin-top: 30px;
  gap: 12px;
}

.sasa-player-error__actions button,
.sasa-player-rotate__button {
  display: inline-flex;
  min-width: 0;
  min-height: 50px;
  padding: 0 22px;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 25px;
  color: #fff;
  background: rgba(6, 27, 40, 0.52);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.sasa-player-error__actions button:hover,
.sasa-player-error__actions button:focus-visible,
.sasa-player-rotate__button:hover,
.sasa-player-rotate__button:focus-visible {
  border-color: var(--launch-accent);
  outline: 0;
  box-shadow: 0 15px 36px var(--launch-accent-soft);
  transform: translateY(-2px);
}

.sasa-player-error__actions button.is-primary,
.sasa-player-rotate__button {
  border-color: rgba(255, 255, 255, 0.55);
  color: #09231f;
  background: linear-gradient(135deg, #f1fff9, var(--launch-accent));
  box-shadow: 0 15px 38px var(--launch-shadow);
}

.sasa-player-rotate {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(440px, calc(100vw - 44px));
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.sasa-player-rotate__art {
  position: relative;
  display: grid;
  width: min(48vw, 210px);
  height: min(48vw, 210px);
  margin-bottom: 22px;
  overflow: visible;
  place-items: center;
}

.sasa-player-rotate__halo {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: radial-gradient(circle, var(--launch-accent-soft), transparent 68%);
  box-shadow: 0 0 65px var(--launch-accent-soft);
  animation: sasa-player-breathe 3.2s ease-in-out infinite;
}

.sasa-player-rotate__art img {
  width: 66%;
  height: 66%;
  border-radius: 26%;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.36));
  animation: sasa-player-float 3.6s ease-in-out infinite;
}

.sasa-player-rotate__art.is-scene img {
  width: 82%;
  height: 58%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  object-fit: cover;
}

.sasa-player-rotate__device {
  position: absolute;
  right: -4px;
  bottom: 2px;
  width: 68px;
  height: 40px;
  border: 2px solid var(--launch-accent);
  border-radius: 11px;
  background: rgba(3, 20, 32, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34), 0 0 22px var(--launch-accent-soft);
  animation: sasa-player-device 2.8s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.sasa-player-rotate__device::before {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--launch-accent);
  content: "";
}

.sasa-player-rotate__device i {
  position: absolute;
  inset: 6px 11px 6px 6px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--launch-accent-soft), rgba(255, 255, 255, 0.06));
}

.sasa-player-rotate h2 {
  margin-top: 10px;
  font-size: clamp(32px, 8vw, 44px);
}

.sasa-player-rotate > p:not(.sasa-player-kicker) {
  margin: 14px 0 0;
  color: rgba(239, 249, 249, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.sasa-player-rotate__button {
  width: min(100%, 320px);
  margin-top: 27px;
  flex: 0 0 auto;
}

.sasa-player-rotate > small {
  max-width: 320px;
  margin-top: 14px;
  color: rgba(225, 242, 242, 0.52);
  font-size: 10px;
  line-height: 1.6;
}

@media (orientation: portrait) and (max-width: 900px) {
  html.sasa-session-active:not(.sasa-cocos-ready) .sasa-game-loading.is-visible {
    display: grid !important;
    place-items: center;
  }

  html.sasa-session-active:not(.sasa-cocos-ready) .sasa-orientation {
    display: none !important;
  }

  html.sasa-session-active.sasa-cocos-ready .sasa-game-loading {
    display: none !important;
  }

  html.sasa-session-active.sasa-cocos-ready .sasa-orientation {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: grid !important;
    min-height: 100vh;
    min-height: 100dvh;
    padding:
      max(20px, env(safe-area-inset-top))
      max(22px, env(safe-area-inset-right))
      max(20px, env(safe-area-inset-bottom))
      max(22px, env(safe-area-inset-left));
    isolation: isolate;
    color: #fff;
    background: #031321;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
    place-items: center;
  }

  html.sasa-session-active.sasa-cocos-ready.sasa-launch-error-mode .sasa-orientation {
    display: none !important;
  }

  .sasa-player-brand {
    top: max(18px, env(safe-area-inset-top));
    left: max(18px, env(safe-area-inset-left));
  }

  .sasa-player-brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 18px;
  }

  .sasa-player-entry {
    width: min(100%, 440px);
    min-height: 0;
    padding: 64px 0 44px;
    justify-items: center;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sasa-player-art {
    width: min(58vw, 238px);
    height: min(58vw, 238px);
    justify-self: center;
  }

  .sasa-player-art__frame {
    width: min(37vw, 160px);
    height: min(37vw, 160px);
    border-radius: 30%;
  }

  .sasa-player-art__frame.is-scene {
    width: min(64vw, 290px);
    height: min(40vw, 180px);
    border-radius: 18px;
  }

  .sasa-player-art__badge {
    bottom: 7%;
  }

  .sasa-player-entry__copy {
    max-width: 340px;
    text-align: center;
  }

  .sasa-player-entry__copy h2 {
    margin-top: 8px;
    font-size: clamp(33px, 9vw, 44px);
  }

  .sasa-player-entry__english {
    margin-top: 8px;
    font-size: 9px;
  }

  .sasa-player-entry__message {
    margin-top: 14px;
    font-size: 13px;
  }

  .sasa-player-loader {
    margin-top: 25px;
  }

  .sasa-player-wish {
    bottom: max(13px, env(safe-area-inset-bottom));
    font-size: 9px;
  }

  .sasa-player-error__art {
    width: 126px;
    height: 126px;
    margin-bottom: 22px;
    border-radius: 34px;
  }

  .sasa-player-error__actions {
    flex-direction: column;
  }

  .sasa-player-error__actions button {
    flex: 0 0 48px;
  }
}

@media (orientation: landscape) {
  html.sasa-session-active #GameDiv {
    position: fixed !important;
    top: env(safe-area-inset-top) !important;
    right: env(safe-area-inset-right) !important;
    bottom: env(safe-area-inset-bottom) !important;
    left: env(safe-area-inset-left) !important;
    width: auto !important;
    height: auto !important;
    overflow: hidden !important;
    background: #020b14;
  }

  html.sasa-session-active #Cocos3dGameContainer,
  html.sasa-session-active #GameCanvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .sasa-hall.is-direct .sasa-game-detail {
    height: calc(100dvh - 82px);
    margin: 12px auto;
  }

  .sasa-hall.is-direct .sasa-game-detail__media {
    inset: 0 40% 0 0;
  }

  .sasa-hall.is-direct .sasa-game-detail__body {
    width: 40%;
    min-height: 100%;
    padding: 38px 18px 10px;
  }

  .sasa-hall.is-direct .sasa-game-detail__body > .sasa-kicker,
  .sasa-hall.is-direct .sasa-game-detail__summary,
  .sasa-hall.is-direct .sasa-security-note {
    display: none;
  }

  .sasa-hall.is-direct .sasa-back-button {
    top: 12px;
    right: 14px;
    height: 28px;
  }

  .sasa-hall.is-direct .sasa-game-detail h2 {
    font-size: 23px;
  }

  .sasa-hall.is-direct .sasa-game-detail__english {
    margin-top: 3px;
    font-size: 8px;
  }

  .sasa-hall.is-direct .sasa-game-facts {
    margin: 7px 0;
  }

  .sasa-hall.is-direct .sasa-game-facts > div {
    min-height: 26px;
    grid-template-columns: 70px 1fr;
  }

  .sasa-hall.is-direct .sasa-game-facts dt,
  .sasa-hall.is-direct .sasa-game-facts dd {
    font-size: 9px;
  }

  .sasa-hall.is-direct .sasa-launch-button {
    height: 38px;
    margin-top: 8px;
  }

  .sasa-hall.is-direct .sasa-launch-status {
    min-height: 0;
    margin-top: 3px;
  }

  .sasa-player-brand {
    top: max(12px, env(safe-area-inset-top));
    left: max(17px, env(safe-area-inset-left));
  }

  .sasa-player-brand__mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 16px;
  }

  .sasa-player-entry {
    width: min(960px, calc(100vw - 72px));
    min-height: calc(100dvh - 40px);
    grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(32px, 6vw, 72px);
  }

  .sasa-player-art {
    width: min(50vh, 310px);
    height: min(50vh, 310px);
  }

  .sasa-player-art__frame {
    width: min(34vh, 210px);
    height: min(34vh, 210px);
  }

  .sasa-player-art__frame.is-scene {
    width: min(42vw, 360px);
    height: min(46vh, 225px);
  }

  .sasa-player-art__badge {
    bottom: 5%;
  }

  .sasa-player-entry__copy h2 {
    font-size: clamp(31px, 5vw, 48px);
  }

  .sasa-player-entry__message {
    margin-top: 15px;
    font-size: 13px;
  }

  .sasa-player-loader {
    margin-top: 24px;
  }

  .sasa-player-wish {
    display: none;
  }

  .sasa-player-error__art {
    width: 112px;
    height: 112px;
    margin-bottom: 15px;
    border-radius: 30px;
  }

  .sasa-player-error h2 {
    font-size: 34px;
  }

  .sasa-player-error > p:not(.sasa-player-kicker) {
    margin-top: 10px;
  }

  .sasa-player-error__actions {
    margin-top: 19px;
  }
}

@media (orientation: portrait) and (max-height: 690px) {
  .sasa-player-brand small,
  .sasa-player-wish {
    display: none;
  }

  .sasa-player-entry {
    padding-top: 52px;
  }

  .sasa-player-art {
    width: min(42vw, 190px);
    height: min(42vw, 190px);
  }

  .sasa-player-art__frame {
    width: min(29vw, 130px);
    height: min(29vw, 130px);
  }

  .sasa-player-art__frame.is-scene {
    width: min(54vw, 250px);
    height: min(33vw, 150px);
  }

  .sasa-player-entry__copy h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .sasa-player-entry__message {
    margin-top: 10px;
  }

  .sasa-player-loader {
    margin-top: 18px;
  }

  .sasa-player-rotate__art {
    width: 138px;
    height: 138px;
    margin-bottom: 10px;
  }

  .sasa-player-rotate h2 {
    font-size: 30px;
  }

  .sasa-player-rotate__button {
    min-height: 46px;
    margin-top: 18px;
  }

  .sasa-player-rotate > small {
    margin-top: 9px;
  }
}

@keyframes sasa-player-particle {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  18% { opacity: 0.62; }
  100% { opacity: 0; transform: translateY(-112vh) scale(1.28); }
}

@keyframes sasa-player-breathe {
  0%, 100% { opacity: 0.62; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes sasa-player-orbit {
  to { transform: rotate(360deg); }
}

@keyframes sasa-player-float {
  0%, 100% { transform: translateY(5px) scale(0.985); }
  50% { transform: translateY(-8px) scale(1.015); }
}

@keyframes sasa-player-shine {
  0%, 26% { left: -76%; }
  70%, 100% { left: 146%; }
}

@keyframes sasa-player-progress {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 1; }
}

@keyframes sasa-player-dot {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes sasa-player-copy-in {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes sasa-player-art-in {
  from { opacity: 0; transform: translateY(18px) scale(0.88); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sasa-player-rain {
  0%, 100% { opacity: 0.2; transform: translateY(-2px) rotate(18deg); }
  50% { opacity: 0.85; transform: translateY(5px) rotate(18deg); }
}

@keyframes sasa-player-device {
  0%, 18% { transform: rotate(90deg) scale(0.9); }
  54%, 88%, 100% { transform: rotate(0deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
